/* 2026-10-10 kn-loader — the one waiting screen for /knowledge.
   Used by: the first-paint splash (login-overlay.js), the app cover while the
   workspace boots (Knowledge.dc.html notReady), and every news cover (parent
   data-knowledge-news-cover + news-host newsBoot / newsLoading).
   Markup:
     <div class="knl" role="status" aria-live="polite">
       <div class="knl-orb"><svg class="knl-ring" viewBox="0 0 120 120"><circle class="knl-track" cx="60" cy="60" r="57"/><circle class="knl-arc" cx="60" cy="60" r="57" pathLength="100"/></svg><img class="knl-mark" src="/knowledge/assets/kn-spark.svg?v=a57eb984e7dc" alt=""></div>
       <div class="knl-word">KNOWLEDGE</div>
       <div class="knl-bar"><i></i></div>
       <div class="knl-cap">正在準備你的知識庫</div>
     </div>
   .knl--inset = fills its positioned parent instead of the viewport.
   .knl--brand = a news source: its round logo IS the disc (assets/marks/<key>.svg, kn-marks.js),
     the same size as the KNOWLEDGE night disc; name in .knl-word.
   .knl--page = a work page: its sidebar icon in gold on the night disc; its name in the UI language only,
     set exactly like a news source's name (2026-10-15).
   2026-10-15: sizes are fixed px. They used to follow the text-size setting (--kts), which the
   app sets after the splash is up, so the name grew mid-load; every loader (splash, app cover,
   page/news cover, the news frame's own) now has the same disc and the same text in the same place.
   The palette is pinned to 蜂蜜奶油 (Coterie) on .knl itself: the splash runs before the
   app's theme tokens exist (the login page's /meida tokens are on :root then), and one
   brand screen must look the same whichever theme the workspace uses.
   No fade-in: a cover that fades in shows whatever it is covering. */
.knl{--bg:#ECE9E1;--surface:#FFFDF8;--ink:#1D1D1B;--muted:#5C5A54;--border:#E2DED4;--accent:#F6C343;--accent-text:#8A6508;--btn-bg:#252523;
  --font-disp:'Noto Sans TC','Helvetica Neue',Helvetica,sans-serif;--font-body:'Noto Sans TC','Helvetica Neue',Helvetica,sans-serif;
  position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:0 16px 24px;box-sizing:border-box;overflow:hidden;
  /* 2026-10-15: the disc sits at a fixed point (44% down its cover) and the words hang below it, so
     a longer or wrapping name never moves the disc and every cover puts it in the same place. */
  container-type:size;
  background:
    radial-gradient(48% 38% at 50% 44%,color-mix(in oklab,var(--accent,#F6C343) 16%,transparent),transparent 72%),
    radial-gradient(120% 90% at 50% 120%,color-mix(in oklab,var(--ink,#1D1D1B) 6%,transparent),transparent 60%),
    var(--bg,#ECE9E1);
  color:var(--ink,#1D1D1B);font-family:var(--font-body,'Noto Sans TC','Helvetica Neue',Helvetica,sans-serif);}
.knl--inset{position:absolute;z-index:2}
/* 2026-10-13: the hairline frame 14px inside the screen edge is gone; the owner saw it as a faint box
   around the whole screen that vanished (and the page seemed to jump) when loading finished. */
.knl-orb{position:absolute;left:calc(50% - 58px);top:calc(44vh - 58px);top:calc(44cqh - 58px);width:116px;height:116px;display:grid;place-items:center}
.knl > .knl-orb + *{margin-top:calc(44vh + 80px);margin-top:calc(44cqh + 80px)}
.knl-orb::before{content:"";position:absolute;inset:13px;border-radius:50%;
  background:radial-gradient(circle at 50% 30%,#fff,var(--surface,#FFFDF8) 60%);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 0 0 1px color-mix(in oklab,var(--border,#E2DED4) 80%,transparent),0 22px 44px -20px rgba(60,50,20,.42)}
/* our own mark sits on a night disc (Coterie's dark hero) so the gold spark glows */
.knl:not(.knl--brand) .knl-orb::before{background:radial-gradient(circle at 50% 28%,#45423b,var(--btn-bg,#252523) 62%,#141412);
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 0 0 1px rgba(0,0,0,.25),0 24px 46px -18px rgba(30,24,8,.6)}
.knl-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;animation:knl-spin 2.8s linear infinite}
.knl-track{fill:none;stroke:color-mix(in oklab,var(--ink,#1D1D1B) 12%,transparent);stroke-width:1}
.knl-arc{fill:none;stroke:var(--accent,#F6C343);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:6 94;
  filter:drop-shadow(0 0 4px color-mix(in oklab,var(--accent,#F6C343) 60%,transparent));animation:knl-dash 2.1s cubic-bezier(.6,0,.4,1) infinite}
.knl-mark{position:relative;width:54px;height:54px;object-fit:contain;display:block;animation:knl-breathe 3.4s ease-in-out infinite}
.knl--brand .knl-orb::before{display:none}
.knl--brand .knl-mark{width:90px;height:90px;border-radius:50%;object-fit:cover;background-size:cover!important;background-position:center!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 0 rgba(255,255,255,.35) inset,0 24px 46px -18px rgba(30,24,8,.55);animation-name:knl-breathe-soft}
.knl--page .knl-mark{width:52px;height:52px;filter:drop-shadow(0 0 6px rgba(246,195,67,.35))}
.knl-word{padding-left:.52em;font:600 calc(19px * var(--kts, 1))/1.4 'Cormorant Garamond',var(--font-disp,sans-serif);
  padding-block:.06em .16em; /* background-clip:text paints only inside the box: room for g/p/y descenders */
  letter-spacing:.52em;text-transform:uppercase;white-space:nowrap;
  background:linear-gradient(100deg,var(--ink,#1D1D1B) 0 38%,var(--accent-text,#8A6508) 48%,var(--accent,#F6C343) 50%,var(--accent-text,#8A6508) 52%,var(--ink,#1D1D1B) 62% 100%);
  background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  animation:knl-sheen 3.2s ease-in-out infinite}
.knl--brand .knl-word,.knl--page .knl-word{padding-left:.16em;letter-spacing:.16em;text-transform:none;font:600 calc(20px * var(--kts, 1))/1.4 var(--font-disp,sans-serif);
  white-space:normal;text-align:center;max-width:min(92%,420px);text-wrap:balance}
.knl-bar{position:relative;margin-top:12px; /* 2026-10-15: name ↔ line ↔ caption equal (~21px of empty space each, measured on the ink) */width:136px;height:2px;border-radius:2px;overflow:hidden;background:color-mix(in oklab,var(--ink,#1D1D1B) 10%,transparent)}
.knl-bar i{position:absolute;top:0;bottom:0;left:0;width:42%;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--accent,#F6C343) 35%,var(--accent-text,#8A6508) 65%,transparent);
  animation:knl-slide 1.6s cubic-bezier(.65,0,.35,1) infinite}
.knl-cap{margin-top:18px;font:400 calc(12px * var(--kts, 1))/1.5 var(--font-body,sans-serif);letter-spacing:.18em;color:var(--muted,#5C5A54);white-space:nowrap}
.knl-cap::after{content:"";display:inline-block;width:1.2em;text-align:left;animation:knl-dots 1.4s steps(4,end) infinite}
@keyframes knl-spin{to{transform:rotate(360deg)}}
@keyframes knl-dash{0%{stroke-dasharray:4 96;stroke-dashoffset:0}50%{stroke-dasharray:38 62;stroke-dashoffset:-18}100%{stroke-dasharray:4 96;stroke-dashoffset:-100}}
@keyframes knl-breathe{0%,100%{transform:scale(1);opacity:.92}50%{transform:scale(1.05);opacity:1}}
@keyframes knl-breathe-soft{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@keyframes knl-sheen{0%{background-position:100% 0}60%,100%{background-position:0 0}}
@keyframes knl-slide{from{transform:translateX(-105%)}to{transform:translateX(245%)}}
@keyframes knl-dots{0%{content:""}25%{content:"."}50%{content:".."}75%,100%{content:"..."}}
@media (max-width:560px){.knl-word{font-size:calc(17px * var(--kts, 1))}}
@media (prefers-reduced-motion:reduce){
  .knl-ring,.knl-arc,.knl-mark,.knl-word,.knl-bar i,.knl-cap::after{animation:none!important}
  .knl-arc{stroke-dasharray:30 70}.knl-word{background-position:0 0}.knl-bar i{left:29%}
}
