﻿
    :root{
--ease: cubic-bezier(.2,.8,.2,1);
      --ease2: cubic-bezier(.16,1,.3,1);
      --ok:#2bd4a6; --bad:#ff5d5d; --warn:#ffcc66;
      --navH: 64px;
      --radius: 18px;
      --shadow: 0 18px 55px rgba(0,0,0,.18);
      --shadow2: 0 10px 25px rgba(0,0,0,.14);
      --glass: blur(16px);

      /* Default palette (Light). Set data-theme="dark" to override. */
--bg:
        radial-gradient(1200px 700px at 18% 12%, rgba(80,120,255,.18), transparent 60%),
        radial-gradient(900px 600px at 78% 22%, rgba(255,120,210,.14), transparent 55%),
        radial-gradient(900px 600px at 52% 88%, rgba(100,255,190,.10), transparent 55%),
        linear-gradient(180deg, #f5f7fb, #f2f4f8);
      --text: rgba(0,0,0,.88);
      --muted: rgba(0,0,0,.60);
      --muted2: rgba(0,0,0,.46);
      --hair: rgba(0,0,0,.08);

      --card: rgba(255,255,255,.78);
      --card2: rgba(255,255,255,.90);
      --border: rgba(0,0,0,.10);
      --control: rgba(255,255,255,.92);
      --control2: rgba(255,255,255,.98);

      --navBg: rgba(255,255,255,.62);
      --navBgStrong: rgba(255,255,255,.84);
      --navBorder: rgba(0,0,0,.10);
      --navShadow: 0 10px 30px rgba(0,0,0,.10);
      --navShadowStrong: 0 16px 50px rgba(0,0,0,.14);

      --focus: 0 0 0 4px rgba(61, 225, 196, .22), 0 0 0 1px rgba(0,0,0,.08) inset;
      --link: rgba(0, 168, 140, .95);
      --linkHover: rgba(0, 150, 125, 1);
      --jump-link: #1A8A7E;
      --jump-link-hover: #146A60;
    }

    :root[data-theme="dark"]{
      --bg:
        radial-gradient(1200px 700px at 15% 15%, rgba(80,120,255,.22), transparent 60%),
        radial-gradient(900px 600px at 75% 25%, rgba(255,120,210,.16), transparent 55%),
        radial-gradient(900px 600px at 55% 85%, rgba(100,255,190,.12), transparent 55%),
        linear-gradient(180deg, #0b1020, #0a0f1a);
      --text: rgba(255,255,255,.92);
      --muted: rgba(255,255,255,.66);
      --muted2: rgba(255,255,255,.50);
      --hair: rgba(255,255,255,.14);

      --card: rgba(255,255,255,.08);
      --card2: rgba(255,255,255,.11);
      --border: rgba(255,255,255,.14);
      --control: rgba(10,14,24,.35);
      --control2: rgba(12,16,28,.45);

      --navBg: rgba(10,14,24,.42);
      --navBgStrong: rgba(10,14,24,.68);
      --navBorder: rgba(255,255,255,.12);
      --navShadow: 0 10px 30px rgba(0,0,0,.35);
      --navShadowStrong: 0 16px 55px rgba(0,0,0,.45);

      --focus: 0 0 0 4px rgba(158,236,204,.26), 0 0 0 1px rgba(255,255,255,.22) inset;
      --link: rgba(158,236,204,.92);
      --linkHover: rgba(176,246,220,1);
      --jump-link: #78D4C8;
      --jump-link-hover: #9BE8DC;
    }

    *{ box-sizing:border-box; }

/* Smooth, endless background: avoid hard seams when page grows */
html{
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body{
  margin:0;
  min-height:100vh;
  background: transparent;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display","SF Pro Text",
    "Segoe UI", Roboto, "PingFang SC","Hiragino Sans GB","Microsoft Yahei", Arial, sans-serif;
  letter-spacing:.2px;
  transition: background 380ms var(--ease), color 280ms var(--ease);
}

/* Paint the gradient on a fixed layer so it always looks continuous */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  transform: translateZ(0);
}

/* Subtle grain to reduce color banding on large gradients */
body::after{
  content:"";
  position: fixed;
  inset: -40px;
  z-index: -1;
  pointer-events:none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
}

@supports not (mix-blend-mode: overlay){
  body::after{ mix-blend-mode: normal; opacity: .035; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; font-variant-numeric: tabular-nums; }

    /* iOS-ish sticky nav */
    .nav{
      position: sticky; top:0; z-index: 999;
      height: var(--navH);
      display:flex; align-items:center; justify-content: space-between;
      padding: 10px 14px;
      background: var(--navBg);
      border-bottom: 1px solid transparent;
      box-shadow: var(--navShadow);
      backdrop-filter: blur(10px) saturate(1.1);
      -webkit-backdrop-filter: blur(10px) saturate(1.1);
      transition: background 260ms var(--ease), box-shadow 260ms var(--ease),
        border-color 260ms var(--ease), backdrop-filter 260ms var(--ease), -webkit-backdrop-filter 260ms var(--ease);
    }
    .nav.strong{
      background: var(--navBgStrong);
      border-color: var(--navBorder);
      box-shadow: var(--navShadowStrong);
      backdrop-filter: blur(22px) saturate(1.35);
      -webkit-backdrop-filter: blur(22px) saturate(1.35);
    }
    .navLeft{ display:flex; align-items:center; gap:10px; min-width: 0; }
    .appIcon{
      width: 34px; height: 34px; border-radius: 10px;
      background: linear-gradient(180deg, rgba(120,170,255,.34), rgba(120,170,255,.14));
      border: 1px solid color-mix(in oklab, rgba(140,200,255,.35) 90%, transparent);
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
      display:flex; align-items:center; justify-content:center;
      flex:0 0 auto;
    }
    .navTitle{ display:flex; flex-direction: column; gap:2px; min-width:0; }
    .navTitle .t1{ font-size: 14px; font-weight: 780; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .navTitle .t2{ font-size: 12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

    .navRight{ display:flex; align-items:center; gap:10px; flex-wrap: wrap; justify-content:flex-end; }

    /* switch */
    input[type="checkbox"]{ display:none; }
    .toggle{
      display:flex; align-items:center; gap: 10px;
      padding: 8px 10px; border-radius: 999px;
      border: 1px solid var(--border);
      background: color-mix(in oklab, var(--control) 80%, transparent);
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
      cursor:pointer; user-select:none;
      transition: transform 180ms var(--ease2), background 220ms var(--ease);
    }
    .toggle:active{ transform: scale(.985); }
    .switch{
      width: 42px; height: 24px; border-radius: 999px;
      background: color-mix(in oklab, var(--text) 20%, transparent);
      position: relative;
      box-shadow: 0 0 0 1px color-mix(in oklab, var(--text) 18%, transparent) inset;
      transition: background 250ms var(--ease), box-shadow 250ms var(--ease);
      flex:0 0 auto;
    }
    .switch::after{
      content:"";
      width: 20px; height: 20px; border-radius: 999px;
      position:absolute; top:2px; left:2px;
      background: color-mix(in oklab, white 92%, transparent);
      box-shadow: 0 8px 18px rgba(0,0,0,.22);
      transition: transform 250ms var(--ease2);
    }
    input[type="checkbox"]:checked + .switch{
      background: color-mix(in oklab, var(--ok) 42%, transparent);
      box-shadow: 0 0 0 1px color-mix(in oklab, var(--ok) 35%, transparent) inset, 0 0 24px color-mix(in oklab, var(--ok) 18%, transparent);
    }
    input[type="checkbox"]:checked + .switch::after{ transform: translateX(18px); }
    .toggleText{ display:flex; flex-direction: column; gap:2px; line-height: 1.05; }
    .toggleText .t1{ font-size: 12.5px; color: var(--text); opacity:.92; }
    .toggleText .t2{ font-size: 11.5px; color: var(--muted2); }

    /* Layout */
    .wrap{ max-width: 1040px; margin: 18px auto 28px; padding: 0 16px 28px; }
    .hero{ margin: 14px 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

    .grid{
      display:grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 14px;
      align-items:start;
    }
    @media (max-width: 900px){ .grid{ grid-template-columns: 1fr; } }

    .card{
      background: linear-gradient(180deg, var(--card2), var(--card));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: var(--glass);
      -webkit-backdrop-filter: var(--glass);
      overflow:hidden;
      transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
    }
    .card:hover{ transform: translateY(-1px); box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,.06) inset; }
    .inner{ padding: 16px; }
    .sectionTitle{ font-size: 12.5px; color: var(--muted); margin: 0 0 12px; letter-spacing:.25px; }

    .formGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 520px){ .formGrid{ grid-template-columns: 1fr; } }
    label.fieldLabel{ display:block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }

    .control{
      width:100%;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--control);
      color: var(--text);
      padding: 11px 12px;
      font-size: 14px;
      outline:none;
      transition: box-shadow 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
    }
    .control:focus{
      box-shadow: var(--focus);
      background: var(--control2);
      transform: translateY(-1px);
    }
    select.control{
      appearance:none;
      background-image:
        linear-gradient(45deg, transparent 50%, color-mix(in oklab, var(--text) 70%, transparent) 50%),
        linear-gradient(135deg, color-mix(in oklab, var(--text) 70%, transparent) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
      background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px), 0 0;
      background-size: 6px 6px, 6px 6px, 100% 100%;
      background-repeat: no-repeat;
      padding-right: 34px;
    }

    .divider{ height:1px; background: var(--hair); margin: 14px -16px; }
    .row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

    .btnRow{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin-top: 12px; }
    .btn{
      border: 1px solid var(--border);
      background: color-mix(in oklab, var(--card) 70%, transparent);
      color: var(--text);
      border-radius: 14px;
      padding: 10px 12px;
      font-size: 13px;
      cursor:pointer;
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, var(--shadow2);
      transition: transform 180ms var(--ease2), background 180ms var(--ease), filter 180ms var(--ease);
      display:inline-flex; align-items:center; gap:8px;
      user-select:none;
    }
    .btn:hover{ background: color-mix(in oklab, var(--card2) 70%, transparent); }
    .btn:active{ transform: scale(.985); filter: brightness(.98); }
    .btn.primary{
      background: linear-gradient(180deg, rgba(120,170,255,.34), rgba(120,170,255,.16));
      border-color: color-mix(in oklab, rgba(140,200,255,.35) 90%, transparent);
    }

    /* Status badge + icon */
    .resultTop{ display:flex; gap:10px; flex-wrap: wrap; align-items:center; justify-content: space-between; }
    .badge{
      display:inline-flex; align-items:center; gap:8px;
      padding: 8px 10px; border-radius: 999px;
      border: 1px solid var(--border);
      background: color-mix(in oklab, var(--control) 80%, transparent);
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
      font-size: 12.5px;
      color: var(--muted);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      user-select:none;
    }
    .badge strong{ font-weight: 780; color: var(--text); }
    .badge.ok{ border-color: color-mix(in oklab, var(--ok) 32%, transparent); }
    .badge.ok strong{ color: var(--ok); }
    .badge.no{ border-color: color-mix(in oklab, var(--bad) 32%, transparent); }
    .badge.no strong{ color: var(--bad); }

    .statusIcon{ width: 18px; height: 18px; flex:0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
    .draw path{ stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash 520ms var(--ease2) forwards; }
    @keyframes dash{ to{ stroke-dashoffset: 0; } }
    .pop{ animation: pop 420ms var(--ease2) both; transform-origin: center; }
    @keyframes pop{ 0%{ transform: scale(.6); opacity:0;} 65%{ transform: scale(1.08); opacity:1;} 100%{ transform: scale(1); opacity:1;} }

    .footnote{ margin-top: 10px; color: var(--muted2); font-size: 12.5px; line-height: 1.55; }

    /* iOS Settings grouped list */
    .settings{ display:flex; flex-direction:column; gap: 14px; margin-top: 12px; }
    .sectionHeader{ font-size: 12px; letter-spacing: .6px; color: var(--muted2); text-transform: uppercase; padding: 0 6px; }
    .group{
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: color-mix(in oklab, var(--control) 78%, transparent);
      box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
      overflow:hidden;
    }
    .cell{
      display:flex;
      align-items:center;
      justify-content: space-between;
      padding: 12px 14px;
      gap: 12px;
      background: transparent;
      color: inherit;
      text-decoration: none;
    }
    .cell + .cell{ border-top: 1px solid color-mix(in oklab, var(--hair) 90%, transparent); }
    .cellLeft{ min-width:0; display:flex; flex-direction:column; gap: 3px; }
    .cellTitle{ font-size: 13.5px; color: var(--text); opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cellSub{ font-size: 12px; color: var(--muted2); line-height:1.35; }
    .cellRight{ display:flex; align-items:center; gap: 10px; flex:0 0 auto; font-variant-numeric: tabular-nums; color: color-mix(in oklab, var(--text) 88%, transparent); white-space: nowrap; font-size: 13.5px; }
    .valueBig{ font-weight: 820; font-size: 15px; }
    .valueOk{ color: var(--ok); }
    .valueBad{ color: var(--bad); }

    .chev{ width: 16px; height: 16px; opacity: .8; transition: transform 260ms var(--ease2); }
    .cellButton{ cursor:pointer; user-select:none; transition: background 180ms var(--ease), transform 180ms var(--ease2); }
    .cellButton:hover{ background: color-mix(in oklab, var(--card2) 28%, transparent); }
    .cellButton:active{ transform: scale(.995); }

    .collapseBody{
      overflow:hidden;
      max-height: 0;
      opacity: 0;
      transform: translateY(-6px);
      transition: max-height 420ms var(--ease2), opacity 260ms var(--ease), transform 260ms var(--ease);
      will-change: max-height;
    }
    .collapseBody.open{ opacity:1; transform: translateY(0); }

    /* Toast */
    .toast{
      position: fixed;
      left: 50%;
      bottom: 16px;
      transform: translateX(-50%) translateY(20px);
      opacity: 0;
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: color-mix(in oklab, var(--card2) 86%, transparent);
      color: var(--text);
      box-shadow: var(--shadow2);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      font-size: 13px;
      pointer-events: none;
      transition: opacity 220ms var(--ease), transform 220ms var(--ease);
      z-index: 9999;
      max-width: calc(100vw - 24px);
      text-align: center;
    }
    .toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

    @media (max-width: 900px){ .hideMobile{ display:none; } }
    @media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }
  

    /* ===== Prologue 鈥滆烦杞€濆姛鑳斤細瀵艰埅楂樹寒 + 骞虫粦婊氬姩 + 鍒嗗尯鍏ュ満 ===== */
    html{ scroll-behavior:smooth; }
    section.section{
      scroll-margin-top: calc(var(--navH) + 18px);
      padding: 26px 0 10px;
    }
    .sectionHead{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap: 14px; margin: 6px 6px 14px;
    }
    .sectionHead .h{
      font-size: 18px; font-weight: 760; letter-spacing: .2px;
    }
    .sectionHead .sub{
      font-size: 12px; color: var(--muted2);
    }

    .navMid{
      display:flex; gap: 6px; align-items:center;
      padding: 6px;
      border-radius: 999px;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 10px 25px rgba(0,0,0,.06);
      backdrop-filter: blur(10px) saturate(1.05);
      -webkit-backdrop-filter: blur(10px) saturate(1.05);
    }
    :root[data-theme="light"] .navMid{
      background: rgba(255,255,255,.55);
      border-color: rgba(0,0,0,.08);
    }
    .navLink{
      appearance:none; -webkit-appearance:none;
      display:inline-flex; align-items:center; justify-content:center;
      height: 34px; padding: 0 12px;
      border-radius: 999px;
      font-size: 13px; font-weight: 650;
      color: rgba(255,255,255,.90);
      text-decoration:none;
      border: 1px solid transparent;
      transition: transform 200ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
      user-select:none;
    }
    :root[data-theme="light"] .navLink{ color: rgba(0,0,0,.78); }
    .navLink:hover{ transform: translateY(-1px); }
    .navLink.active{
      background: rgba(255,255,255,.22);
      border-color: rgba(255,255,255,.28);
      color: rgba(255,255,255,.96);
    }
    :root[data-theme="light"] .navLink.active{
      background: rgba(0,0,0,.06);
      border-color: rgba(0,0,0,.12);
      color: rgba(0,0,0,.88);
    }

    .iconBtn{
      width: 38px; height: 38px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.10);
      display:inline-flex; align-items:center; justify-content:center;
      cursor:pointer;
      transition: transform 200ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
      -webkit-tap-highlight-color: transparent;
    }
    :root[data-theme="light"] .iconBtn{
      border-color: rgba(0,0,0,.10);
      background: rgba(255,255,255,.70);
    }
    .iconBtn:hover{ transform: translateY(-1px); }
    .iconBtn:active{ transform: translateY(0px) scale(.98); }

    /* Mobile drawer (鏇夸唬 Prologue 鐨?header panel) */
    .menuBtn{ display:none; }
    .drawer{ position: fixed; inset: 0; z-index: 2000; pointer-events:none; opacity:0;
      transition: opacity 220ms var(--ease);
    }
    .drawer.open{ pointer-events:auto; opacity:1; }
    .drawerOverlay{ position:absolute; inset:0; background: rgba(0,0,0,.40); backdrop-filter: blur(2px); }
    .drawerPanel{
      position:absolute; left: 50%; transform: translateX(-50%) translateY(-10px);
      top: 12px; width: min(520px, calc(100% - 24px));
      border-radius: 22px;
      background: var(--card2);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
      overflow:hidden;
      transition: transform 260ms var(--ease2);
    }
    .drawer.open .drawerPanel{ transform: translateX(-50%) translateY(0); }
    .drawerHeader{
      display:flex; align-items:center; justify-content:space-between;
      padding: 14px 14px 10px;
      border-bottom: 1px solid var(--hair);
    }
    .drawerTitle{ font-weight: 800; letter-spacing: .2px; }
    .drawerList{ padding: 10px 12px 14px; }
    .drawerItem{
      display:flex; align-items:center; justify-content:space-between;
      padding: 12px 12px;
      border-radius: 14px;
      text-decoration:none;
      color: var(--text);
      border: 1px solid transparent;
      transition: background 220ms var(--ease), border-color 220ms var(--ease);
      margin-bottom: 8px;
    }
    .drawerItem:hover{
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.16);
    }
    :root[data-theme="light"] .drawerItem:hover{
      background: rgba(0,0,0,.04);
      border-color: rgba(0,0,0,.08);
    }
    .drawerItem .r{ color: var(--muted2); font-size: 12px; }

    /* Section enter animation like Prologue (inactive -> active) */
    .inactive{
      opacity: 0;
      transform: translateY(10px);
      filter: blur(1px);
    }
    .sectionAnim{
      transition: opacity 520ms var(--ease2), transform 520ms var(--ease2), filter 520ms var(--ease2);
      will-change: opacity, transform, filter;
    }

    /* Responsive */
    @media (max-width: 860px){
      .navMid{ display:none; }
      .menuBtn{ display:inline-flex; }
      .hideMobile{ display:none !important; }
    }


/* ===== Zhikebox additions (menu + homepage modules) ===== */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.45);
}
:root[data-theme="dark"] .topbar{
  background: rgba(15,16,20,.55);
  border-bottom-color: rgba(255,255,255,.08);
}
.brand{
  display:flex; flex-direction:column; gap:2px;
  line-height:1.05;
}
.brand .en{ font-weight: 800; letter-spacing: .2px; font-size: 15px;}
.brand .zh{ font-size: 12px; opacity: .75;}
.burger{
  width: 42px; height: 42px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
  cursor:pointer;
  user-select:none;
}
:root[data-theme="dark"] .burger{
  background: rgba(20,22,28,.55);
  border-color: rgba(255,255,255,.10);
}
.burger .lines{
  width: 18px; height: 12px; position: relative;
}
.burger .lines span{
  position:absolute; left:0; right:0;
  height:2px; border-radius: 10px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .25s var(--ease);
}
.burger .lines span:nth-child(1){ top:0; }
.burger .lines span:nth-child(2){ top:5px; opacity:.85; }
.burger .lines span:nth-child(3){ top:10px; opacity:.7; }

.burger[aria-expanded="true"] .lines span:nth-child(1){ top:5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .lines span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] .lines span:nth-child(3){ top:5px; transform: rotate(-45deg); opacity:.9; }

/* Overlay menu (Aliyun-ish drawer) */
.menu-overlay{
  position: fixed; inset: 0;
  z-index: 60;
  display: none;
}
.menu-overlay.open{ display:block; }
.menu-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-drawer{
  position:absolute;
  top: calc(var(--navH) + 10px);
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--navH) - 22px);
  overflow:auto;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transform: translateY(-6px);
  animation: popIn .22s var(--ease) both;
}
:root[data-theme="dark"] .menu-drawer{
  background: rgba(15,16,20,.62);
  border-color: rgba(255,255,255,.10);
}
@keyframes popIn{
  from{ opacity:0; transform: translateY(-10px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.drawer-title{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding: 6px 6px 12px;
}
.drawer-title strong{ font-size: 13px; letter-spacing:.2px; }
.drawer-title .hint{ font-size:12px; opacity:.7; }
.drawer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px){
  .drawer-grid{ grid-template-columns: 1fr 1fr; }
}
.drawer-card{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.40);
}
:root[data-theme="dark"] .drawer-card{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
}
.drawer-card h4{
  margin: 0 0 10px;
  font-size: 12px;
  opacity: .85;
  letter-spacing:.18px;
}
.drawer-links{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.drawer-links a{
  text-decoration:none;
  color: inherit;
}
.drawer-links .row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.50);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
:root[data-theme="dark"] .drawer-links .row{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.07);
}
.drawer-links .row:active{ transform: scale(.98); }
.drawer-links .row .left{ display:flex; gap:10px; align-items:center; }
.drawer-links .row .icon{ width: 22px; height: 22px; display:grid; place-items:center; opacity:.9; }
.drawer-links .row .label{ font-size: 13px; }
.drawer-links .row .meta{ font-size: 12px; opacity: .65; }

/* Main layout spacing because of topbar */
.page{
  padding-top: calc(var(--navH) + 18px);
}

/* Better anchor positioning under fixed topbar */
section[id]{ scroll-margin-top: calc(var(--navH) + 22px); }


/* Homepage modules */
.hero{
  padding: 10px 0 6px;
  text-align: left;
}
.hero h1{
  margin: 6px 0 6px;
  font-size: 26px;
  letter-spacing: .2px;
}
.hero p{
  margin: 0;
  opacity: .78;
}
.quick-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.45);
  text-decoration:none;
  box-shadow: var(--shadow2);
  color: inherit;
}
:root[data-theme="dark"] .pill{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
}
.pill:active{ transform: scale(.98); }
.section-sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .72;
}
.notice{
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.40);
}
:root[data-theme="dark"] .notice{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
}
.notice .date{ font-size: 12px; opacity: .7; margin-top: 8px; }

.noticeTop{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom: 8px;
}
.noticeBadge{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.45);
  flex:0 0 auto;
}
:root[data-theme="dark"] .noticeBadge{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
}
.noticeHead{ min-width:0; }
.noticeTitle{ font-weight: 800; letter-spacing:.18px; }
.noticeMeta{ font-size: 12px; opacity: .68; margin-top: 2px; }

.noticeBody{
  line-height: 1.65;
  opacity: .88;
  word-break: break-word;
}
.noticeBody a{ color: var(--jump-link); text-decoration: underline; text-underline-offset: 2px; }
.noticeBody a:hover{ color: var(--jump-link-hover); }
.noticeBody p{ margin: 0 0 10px; }
.noticeBody p:last-child{ margin-bottom: 0; }
.noticeBody ul,
.noticeBody ol{
  margin: 0 0 10px 1.1em;
  padding: 0;
}
.noticeBody blockquote{
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid color-mix(in oklab, var(--jump-link) 45%, transparent);
  background: rgba(255,255,255,.22);
  border-radius: 8px;
}
:root[data-theme="dark"] .noticeBody blockquote{
  background: rgba(255,255,255,.08);
}
.noticeBody pre,
.noticeBody code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}
.noticeBody pre{
  margin: 8px 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.08);
  overflow: auto;
}
:root[data-theme="dark"] .noticeBody pre{
  background: rgba(255,255,255,.08);
}
.noticeBody img.inline-emoji-media,
.noticeBody img.article-inline-image{
  display: inline-block;
  width: auto;
  max-width: none;
  height: 1em;
  vertical-align: -0.14em;
  margin: 0 .08em;
  border-radius: 0;
  box-shadow: none;
}
.noticeBody img:not(.inline-emoji-media):not(.article-inline-image){
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: var(--shadow2);
}
.noticeBody video,
.noticeBody .article-video-block{
  display: block;
  width: min(100%, 760px);
  max-width: 100%;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
}
.noticeItemBody a{ color: var(--jump-link); text-decoration: underline; text-underline-offset: 2px; }
.noticeItemBody a:hover{ color: var(--jump-link-hover); }

.skeleton{
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.20), rgba(255,255,255,.50), rgba(255,255,255,.20));
  background-size: 200% 100%;
  animation: shimmer 1.2s var(--ease) infinite;
  border: 1px solid rgba(255,255,255,.35);
}
:root[data-theme="dark"] .skeleton{
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.08);
}
.sk-line{ height: 12px; margin: 10px 0; }
.sk-line.short{ width: 66%; }

@keyframes shimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 200% 0; }
}

.noticeExtra{ margin-top: 10px; display:flex; flex-direction:column; gap: 10px; }

.noticeBtns{ display:flex; flex-wrap:wrap; gap: 10px; }
.miniBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.45);
  text-decoration:none;
  box-shadow: var(--shadow2);
  font-size: 12.5px;
  color: var(--jump-link);
}
.miniBtn:hover{ color: var(--jump-link-hover); }
:root[data-theme="dark"] .miniBtn{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
}
.miniBtn:active{ transform: scale(.98); }

.noticeHistory{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.28);
  padding: 10px 12px;
}
:root[data-theme="dark"] .noticeHistory{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.noticeHistory summary{
  cursor:pointer;
  font-weight: 700;
  opacity: .9;
}
.noticeHistoryBody{ margin-top: 10px; display:flex; flex-direction:column; gap: 10px; }

.noticeItem{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.30);
  padding: 10px 10px;
}
:root[data-theme="dark"] .noticeItem{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.noticeItemTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.noticeItemTitle{ font-weight: 760; }
.noticeItemDate{ font-size: 12px; opacity: .65; }
.noticeItemBody{ margin-top: 6px; font-size: 13px; opacity: .85; line-height: 1.55; }


/* ===== module typography / helpers ===== */
.kicker{
  display:inline-flex;
  font-size: 12px;
  letter-spacing: .18px;
  opacity: .7;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.35);
}
:root[data-theme="dark"] .kicker{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.cardTitle{
  display:flex;
  flex-direction:column;
  gap: 4px;
  margin-bottom: 12px;
}
.cardTitle .t1{ font-weight: 800; font-size: 15px; }
.cardTitle .t2{ font-size: 12px; opacity: .7; }

.groupHeader{
  font-size: 12px;
  letter-spacing: .14px;
  opacity: .78;
  padding: 10px 12px 8px;
}
.groupFooter{
  font-size: 12px;
  opacity: .7;
  padding: 10px 12px 12px;
  line-height: 1.45;
}

.cellIcon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.45);
}
:root[data-theme="dark"] .cellIcon{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
}
.cellText .t1{ font-weight: 700; }
.cellText .t2{ font-size: 12px; opacity: .68; margin-top: 2px; }
.cellText .t2.link-url{
  color: var(--jump-link);
  opacity: .92;
  font-weight: 700;
}
.cellText .t2.link-url:hover{
  color: var(--jump-link-hover);
}

.foot{
  margin: 18px 2px 30px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.35);
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
:root[data-theme="dark"] .foot{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
}
.mini{ font-size: 12px; opacity: .7; }

/* make .card exist if original css doesn't */
.card{
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  margin: 12px 0;
}
:root[data-theme="dark"] .card{
  background: rgba(15,16,20,.55);
  border-color: rgba(255,255,255,.10);
}


/* Inline text link helper */
.textLink{ color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.textLink:hover{ color: var(--linkHover); }


/* Icon images */
.cellIcon img.iconImg{ width:26px; height:26px; display:block; }
.drawer-links .icon img.iconImg{ width:18px; height:18px; display:block; }

.resourceSearchWrap{
  margin-top: 10px;
}
.resourceSearchInput{
  font-size: 15px;
  font-weight: 600;
}

.resourceFeed{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 0 8px 10px;
}
.resourceCardRow{
  display:flex;
  align-items:stretch;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  background: rgba(255,255,255,.30);
  padding: 10px;
  text-decoration:none;
  color: inherit;
  transition: transform .2s var(--ease2), box-shadow .2s var(--ease2), border-color .2s var(--ease2), background .2s var(--ease2);
}
:root[data-theme="dark"] .resourceCardRow{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.resourceCardRow:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.resourceThumb{
  width: 112px;
  min-width:112px;
  height: 84px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.56);
  display:grid;
  place-items:center;
}
:root[data-theme="dark"] .resourceThumb{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}
.resourceThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.resourceThumbPh{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size: 22px;
  font-weight: 900;
  color: color-mix(in oklab, var(--text) 66%, transparent);
  background: linear-gradient(145deg, color-mix(in oklab, var(--brand) 35%, transparent), color-mix(in oklab, var(--brand2) 35%, transparent));
}
.resourceCardMain{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.resourceCardTitle{
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
  margin:0;
}
.resourceCardSummary{
  margin:0;
  font-size: 13px;
  line-height: 1.55;
  opacity: .85;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resourceCardMeta{
  margin-top:auto;
  font-size: 12px;
  opacity: .7;
}
.resourceCardArrow{
  align-self:center;
  font-size: 24px;
  line-height: 1;
  opacity: .35;
}
.resourceReaderTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom: 8px;
}
.readerCover{
  margin: 8px 0 12px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.45);
}
:root[data-theme="dark"] .readerCover{
  background: rgba(255,255,255,.06);
}
.readerCover img{
  width:100%;
  max-height: 420px;
  object-fit: cover;
  display:block;
}
.readerMissing{
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 14px;
  opacity: .8;
}
@media (max-width: 780px){
  .resourceThumb{ width: 92px; min-width:92px; height: 72px; }
  .resourceCardTitle{ font-size: 15px; }
  .resourceCardSummary{ font-size: 12px; }
}
@media (max-width: 560px){
  .resourceCardRow{ padding: 8px; gap: 10px; }
  .resourceThumb{ width: 86px; min-width:86px; height: 66px; }
  .resourceCardArrow{ display:none; }
}

.timelineList{
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 0 8px 8px;
}
.resourceRow{
  width: 100%;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px;
  background: rgba(255,255,255,.30);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  transition: transform .2s var(--ease2), box-shadow .2s var(--ease2), border-color .2s var(--ease2), background .2s var(--ease2);
}
:root[data-theme="dark"] .resourceRow{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.resourceRow:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.timelineDot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 6px;
  background: linear-gradient(180deg, rgba(82,126,255,.95), rgba(94,216,185,.95));
  box-shadow: 0 0 0 3px rgba(82,126,255,.15);
}
.timelineMain{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.timelineHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.timelineTime{
  font-size: 12px;
  opacity: .74;
  white-space: nowrap;
}
.timelineSummary{
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .84;
}
.timelineTags{
  font-size: 12px;
  opacity: .68;
}
.resourceRow.active{
  border-color: rgba(82,126,255,.45);
  background: rgba(120,170,255,.18);
}
:root[data-theme="dark"] .resourceRow.active{
  border-color: rgba(120,170,255,.44);
  background: rgba(120,170,255,.24);
}

.reactionPanel{
  margin-top: 14px;
  border-top: 1px solid var(--hair);
  padding-top: 12px;
}
.reactionTitle{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12px;
}
.reactionHint{
  margin-top: 2px;
  font-size: 12px;
  opacity: .72;
}
.reactionGrid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
}
.reactionItem{
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.30);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease2), box-shadow .18s var(--ease2), border-color .18s var(--ease2), background .18s var(--ease2);
}
:root[data-theme="dark"] .reactionItem{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.reactionItem:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.reactionItem.selected{
  border-color: rgba(84,132,255,.52);
  background: rgba(120,170,255,.22);
}
:root[data-theme="dark"] .reactionItem.selected{
  border-color: rgba(120,170,255,.46);
  background: rgba(120,170,255,.24);
}
.reactionImgWrap{
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.58);
  display: grid;
  place-items: center;
  overflow: hidden;
}
:root[data-theme="dark"] .reactionImgWrap{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}
.reactionImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.reactionMeta{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.reactionName{
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}
.reactionCount{
  font-size: 12px;
  opacity: .72;
}
.reactionEmpty{
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  opacity: .76;
}

.reaction-guide-wrap{
  position: fixed;
  left: 50%;
  bottom: 16px;
  width: min(520px, calc(100vw - 20px));
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  z-index: 125;
  pointer-events: none;
}
.reaction-guide-wrap.show{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  transition: transform .26s var(--ease2), opacity .22s var(--ease);
  pointer-events: auto;
}
.reaction-guide-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  padding: 10px 12px;
}
:root[data-theme="dark"] .reaction-guide-card{
  border-color: rgba(255,255,255,.12);
  background: rgba(14,18,28,.92);
}
.reaction-guide-text{
  font-size: 13px;
  font-weight: 800;
}
.reaction-guide-actions{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 540px){
  .reactionGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Placeholder bubble notification */
.placeholder-bubble-wrap{
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 120;
  width: min(560px, calc(100vw - 20px));
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.placeholder-bubble-wrap.show{
  animation: placeholderBubbleRise .34s var(--ease2) forwards;
}
.placeholder-bubble-wrap.burst{
  animation: placeholderBubbleBurst .5s var(--ease2) forwards;
}
.placeholder-bubble-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.80);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
:root[data-theme="dark"] .placeholder-bubble-card{
  border-color: rgba(255,255,255,.12);
  background: rgba(15,18,26,.86);
}
.placeholder-bubble-media{
  flex: 0 0 auto;
}
.placeholder-bubble-media img{
  width: 84px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.placeholder-bubble-body{
  min-width: 0;
  flex: 1 1 auto;
}
.placeholder-bubble-title{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.placeholder-bubble-desc{
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.placeholder-bubble-progress{
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(130,160,255,.24);
}
.placeholder-bubble-progress span{
  display:block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 2s linear;
  background: linear-gradient(90deg, rgba(82,126,255,.96), rgba(90,218,184,.96));
}

.placeholder-burst-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 121;
}
.placeholder-burst-particle{
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.70);
  background: rgba(255,255,255,.66);
  box-shadow: 0 4px 10px rgba(0,0,0,.14);
  animation: placeholderBubbleParticle .62s ease-out forwards;
}
:root[data-theme="dark"] .placeholder-burst-particle{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.16);
}

@keyframes placeholderBubbleRise{
  from{ transform: translateX(-50%) translateY(120%); opacity:0; }
  to{ transform: translateX(-50%) translateY(0); opacity:1; }
}
@keyframes placeholderBubbleBurst{
  0%{ transform: translateX(-50%) translateY(0) scale(1); opacity:1; filter: blur(0); }
  40%{ transform: translateX(-50%) translateY(-2px) scale(1.03); opacity:1; }
  100%{ transform: translateX(-50%) translateY(8px) scale(.82); opacity:0; filter: blur(1px); }
}
@keyframes placeholderBubbleParticle{
  0%{ transform: translate(-50%, -50%) translate(0,0) scale(1); opacity:1; }
  100%{ transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(.2); opacity:0; }
}

@media (max-width: 600px){
  .placeholder-bubble-card{
    border-radius: 26px;
    padding: 10px;
  }
  .placeholder-bubble-media img{
    width: 72px;
    height: auto;
  }
}

/* Doctor paper mascot */
.doctor-mascot{
  position: fixed;
  left: 0;
  bottom: clamp(68px, 12vh, 150px);
  z-index: 58;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transition: transform .24s var(--ease);
}
.doctor-mascot.shy,
.doctor-mascot.talking{
  left: 0;
}
.doctor-mascot-figure{
  position: relative;
  flex: 0 0 auto;
}
.doctor-mascot-trigger{
  width: 102px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.doctor-mascot-trigger:focus-visible{
  border-radius: 20px;
  box-shadow: var(--focus);
}
.doctor-mascot-close{
  position: absolute;
  top: 8px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.52);
  background: rgba(255,255,255,.85);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow2);
}
:root[data-theme="dark"] .doctor-mascot-close{
  border-color: rgba(255,255,255,.14);
  background: rgba(14,18,28,.88);
}
.doctor-mascot-close:focus-visible{
  box-shadow: var(--focus);
}
.doctor-mascot-close:active{
  transform: scale(.96);
}
.doctor-mascot-img{
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.20));
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.doctor-mascot.shy .doctor-mascot-img,
.doctor-mascot.talking .doctor-mascot-img{
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.24));
}
.doctor-mascot-dialog{
  position: relative;
  width: min(338px, calc(100vw - 172px));
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: mascotDialogIn .2s var(--ease2) both;
}
:root[data-theme="dark"] .doctor-mascot-dialog{
  border-color: rgba(255,255,255,.12);
  background: rgba(14,18,28,.90);
}
.doctor-mascot-dialog::before{
  content: "";
  position: absolute;
  left: -7px;
  bottom: 20px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255,255,255,.48);
  border-bottom: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.88);
}
:root[data-theme="dark"] .doctor-mascot-dialog::before{
  border-left-color: rgba(255,255,255,.12);
  border-bottom-color: rgba(255,255,255,.12);
  background: rgba(14,18,28,.90);
}
.doctor-mascot-dialog-title{
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .12px;
}
.doctor-mascot-dialog-lines{
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doctor-mascot-dialog-lines p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.42;
  opacity: .84;
}
@keyframes mascotDialogIn{
  from{
    opacity: 0;
    transform: translateY(8px) scale(.97);
    filter: blur(1px);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@media (max-width: 900px){
  .doctor-mascot{
    left: 0;
    bottom: 74px;
    gap: 6px;
  }
  .doctor-mascot.shy,
  .doctor-mascot.talking{
    left: 0;
  }
  .doctor-mascot-trigger{
    width: 96px;
  }
  .doctor-mascot-close{
    width: 22px;
    height: 22px;
    top: 4px;
    right: -6px;
    font-size: 14px;
  }
  .doctor-mascot-dialog{
    width: min(220px, calc(100vw - 130px));
    margin-bottom: 6px;
    padding: 8px 10px;
  }
  .doctor-mascot-dialog-title{
    font-size: 12.5px;
  }
  .doctor-mascot-dialog-lines p{
    font-size: 11.5px;
  }
}
@media (max-width: 420px){
  .doctor-mascot{
    left: 0;
    bottom: 68px;
  }
  .doctor-mascot.shy,
  .doctor-mascot.talking{
    left: 0;
  }
  .doctor-mascot-trigger{
    width: 88px;
  }
  .doctor-mascot-dialog{
    width: min(198px, calc(100vw - 122px));
  }
}

