/* 21 NAND 全站的颜色、字体、圆角、间距。这个文件是生成的，不要手改 */
:root{
  color-scheme:dark;
  --brand:#ff9426; --on-accent:#1a0f03; --brand-text:var(--brand);
  --bg:#17110a; --bg-deep:#100b06; --bg-deeper:#0a0703; --plate:#060402;
  --panel:#211a11; --sel:#2e2518;
  --text:#d8cdb9; --ink:#f8f0e0; --text-dim:#b0a48f; --faint:#74695a;
  --line:#40362a; --field:#8a7c6a;
  --ok:#8bd98f; --warn:#ecd98a; --bad:#ff7d8a; --aux:#8fb8de;
  --img-rest:grayscale(1) contrast(1.7) brightness(.62) sepia(1) saturate(3.6) hue-rotate(-11deg);
  --shot-rest:grayscale(1) sepia(.4) saturate(1.4) hue-rotate(-11deg);   }
:root[data-theme=light]{
  color-scheme:light;
  --brand-text:#ab5600;
  --accent-hover:color-mix(in srgb,var(--brand-text) 82%,#000);
  --bg:#f8f2e6; --bg-deep:#f0e8d7; --bg-deeper:#e7dec9; --plate:#15100a;
  --panel:#fffcf5; --sel:#f0e7d3;
  --text:#39322a; --ink:#17110a; --text-dim:#61584b; --faint:#928875;
  --line:#d6ccb6; --field:#8d8370;
  --ok:#1f7a3a; --warn:#7d6500; --bad:#c0233a; --aux:#2a6a9e;
}
:root{
  --brand-hover:color-mix(in srgb,var(--brand) 86%,#fff); --bar-bg:color-mix(in srgb,var(--bg) 94%,transparent);
  --accent:var(--brand-text); --accent-hover:color-mix(in srgb,var(--brand-text) 86%,#fff);
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --cjk:"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --sans:var(--cjk); --head:var(--cjk);
  --fs:.9375rem; --lh:1.65; --fs-sm:.8125rem; --fs-xs:.75rem;
  --s1:.875rem; --s2:1.75rem; --s3:2.625rem;
  --r:2px; --r-sm:2px;
  --t-fast:.12s; --t-med:.25s; --ease:cubic-bezier(.2,.7,.2,1);
  --t-press:.08s; --t-state:.12s; --t-budget:.4s;
  --glow:0 .5rem 1.75rem color-mix(in srgb,var(--brand) 20%,transparent);
  --ring:0 0 0 1px color-mix(in srgb,var(--brand) 45%,transparent);
  --card:var(--panel); --card-2:var(--sel); --text-2:var(--text); --t2:var(--text); --muted:var(--text-dim); --mu:var(--text-dim);
  --line-soft:var(--line); --soft:var(--line); --bt:var(--brand-text); --bh:var(--brand-hover);
  --pos:var(--ok); --neg:var(--bad);
  --thumb-bg:var(--plate); --thumb-glow:transparent; --thumb-glow-2:transparent; --thumb-halo:transparent;
  --logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2.2 -2.2 354.4 70.4' fill='none' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round' stroke='%23000'%3E%3Cpath d='M5 11L40 11A5 5 0 0 1 45 16L45 28A5 5 0 0 1 40 33L10 33A5 5 0 0 0 5 38L5 50A5 5 0 0 0 10 55L45 55M65 11L80 11A5 5 0 0 1 85 16L85 55M125 55L125 16A5 5 0 0 1 130 11L140 11A5 5 0 0 1 145 16L145 50A5 5 0 0 0 150 55L160 55A5 5 0 0 0 165 50L165 11M185 55L185 16A5 5 0 0 1 190 11L220 11A5 5 0 0 1 225 16L225 55M185 33L225 33M245 55L245 16A5 5 0 0 1 250 11L260 11A5 5 0 0 1 265 16L265 50A5 5 0 0 0 270 55L280 55A5 5 0 0 0 285 50L285 11M305 11L340 11A5 5 0 0 1 345 16L345 50A5 5 0 0 1 340 55L305 55Z'/%3E%3C/svg%3E");
}
h1,h2,h3,h4,h5,button,input[type=button],input[type=submit],select,label,summary,time,th,nav{font-family:var(--head)}
code,pre,kbd,samp{font-family:var(--mono)}
h1,h2,h3,h4{word-break:keep-all;overflow-wrap:break-word}
a.brand:not([href="./"]){font-size:0}a.brand:not([href="./"])>span{font-size:1rem;margin-left:.5rem;vertical-align:middle}
a.brand:not([href="./"])::before{content:"";display:inline-block;width:7.55rem;height:1.5rem;vertical-align:middle;background:linear-gradient(90deg,var(--brand-text) 31.7%,var(--ink) 31.7%);-webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat}
:root{accent-color:var(--brand)}
.btn:active:not(:disabled),button:active:not(:disabled),[data-press]:active{filter:brightness(.88)}
a.card:active,.card:has(a:active),.side a:active,.toc a:active,.nav a:active{filter:brightness(.82)}
[data-nav-busy]:is(.card,.lot,[data-nav]){position:relative;cursor:progress;box-shadow:var(--ring)}
[data-nav-busy]:is(.card,.lot,[data-nav])::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--brand),transparent) 0 0/40% 100% no-repeat;animation:w-run 1s linear infinite}
a[data-nav-busy]:not(.btn,.card,[data-nav]){opacity:.6;cursor:progress}
.w-live{position:fixed;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}button:disabled,.btn:disabled,input:disabled,select:disabled{opacity:.5;cursor:not-allowed}
@media (forced-colors:active){a.brand::before{background:CanvasText!important}}:focus-visible{outline:2px solid var(--brand-text);outline-offset:2px}
[aria-busy=true]:is(button,.btn){position:relative;cursor:progress;filter:saturate(.55) brightness(.85)}
[aria-busy=true]:is(button,.btn)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,currentColor,transparent) 0 0/40% 100% no-repeat;animation:w-run 1s linear infinite}
.w-sk{display:block;position:relative;overflow:hidden;min-height:.9em;border-radius:var(--r);background:var(--sel);color:transparent!important;user-select:none}
.w-sk::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--ink) 9%,transparent),transparent) 0 0/50% 100% no-repeat;animation:w-run 1.2s linear infinite}
.w-sk.line{height:.9em;margin:.35em 0}.w-sk.w30{width:30%}.w-sk.w50{width:50%}.w-sk.w70{width:70%}.w-sk.w90{width:90%}.w-sk.pic{aspect-ratio:16/10}
.w-bar{display:block;height:.375rem;overflow:hidden;border-radius:var(--r);background:var(--sel)}
.w-bar>i{display:block;height:100%;width:calc(var(--p,0)*1%);background:var(--brand);transition:width var(--t-state) linear}
.w-bar.unknown>i{width:100%;background:repeating-linear-gradient(90deg,var(--brand) 0 .5rem,transparent .5rem 1rem) 0 0/2rem 100%;animation:w-slide 1s linear infinite}
.w-prog{display:grid;gap:.3rem;font-size:var(--fs-sm)}
.w-sent{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:var(--fs-sm)}
.w-sent .cells{display:flex;flex-wrap:wrap;gap:2px}
.w-sent .cells i{width:.625rem;height:.625rem;border:1px solid var(--field);border-radius:var(--r)}
.w-sent .cells i[data-s=out]{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 35%,transparent)}
.w-sent .cells i[data-s=ok]{border-color:var(--ok);background:var(--ok)}
.w-sent .cells i[data-s=bad]{border-color:var(--bad);background:var(--bad)}
.w-prog .n,.w-sent .n{font-family:var(--mono);color:var(--ink)}
.w-reveal[aria-busy=true]::after{content:"";display:inline-block;width:.5em;height:1em;margin-left:.1em;vertical-align:-.15em;background:var(--brand);animation:w-blink 1s steps(2) infinite}
@keyframes w-run{from{background-position:-60% 0}to{background-position:160% 0}}
@keyframes w-slide{to{background-position:2rem 0}}
@keyframes w-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
