:root{
  color-scheme:light;
  --paper:#fff; --sheet:#fff; --surface:#f6f8fb; --ink:#171b25; --muted:#535f70;
  --line:#dce2ec; --accent:#374cda; --positive:#245d73;
  --sans:Inter,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --mono:"IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  font-family:var(--sans);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased
}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{color:inherit;font:inherit}
button,select,input[type=checkbox]{cursor:pointer}
button{background:none;border:0}
button:disabled{cursor:default;opacity:.5}
a,button{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
svg.icon{display:inline-block;width:1.18em;height:1.18em;vertical-align:-.18em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.wrap{width:min(1232px,calc(100% - clamp(40px,10vw,144px)));margin-inline:auto}
.skip{position:fixed;left:12px;top:-100px;z-index:20;background:white;padding:12px}.skip:focus{top:10px}

/* Masthead */
.site-head{background:#fff;border-bottom:1px solid #eaedf3}
.head-inner{height:72px;display:flex;align-items:center;gap:36px}
.brand{display:inline-flex;align-items:center;gap:11px;white-space:nowrap}
.brand-mark{display:block;width:37px;height:37px}
.brand strong{font-size:21px;line-height:1;font-weight:650;letter-spacing:-.045em}
nav{display:flex;align-items:center;gap:28px;margin-left:auto}
nav a{position:relative;color:var(--muted);font-size:13px;font-weight:520;padding:10px 0}
nav a.active,nav a:hover{color:var(--ink)}
nav a.active:after{content:"";position:absolute;bottom:1px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--accent)}
.save-nav,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--sheet);font-size:13px}
.save-nav{padding:8px 14px;min-height:36px}.save-total{font:11px var(--mono);color:var(--muted)}

/* A field of dots surrounds a still center. */
.hero{position:relative;isolation:isolate;display:grid;place-items:center;min-height:clamp(395px,35vw,495px);overflow:hidden;background:#fff;padding:58px 20px 64px}
#flow{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.hero-text{text-align:center;max-width:1000px}
.hero-signature{display:inline-flex;gap:8px;align-items:center;font-size:22px;font-weight:580;line-height:1;letter-spacing:-.055em}
.hero-signature img{width:31px;height:31px}
.hero h1{font-size:clamp(50px,5.25vw,80px);font-weight:540;letter-spacing:-.075em;line-height:1.15;margin:23px 0 18px;color:#131722}
.full-stop{color:var(--accent);display:inline-block;width:.65em}
.hero p{font-size:clamp(14px,1.2vw,17px);line-height:1.8;color:#526072;letter-spacing:.01em}
.mobile-break{display:none}
.hero-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:24px}
.browse,.secondary{min-height:43px;padding:11px 20px;font-weight:540;font-size:14px}
.browse{display:inline-flex;align-items:center;gap:16px;border-radius:999px;background:var(--ink);color:#fff}
.browse span{display:inline-block;transition:transform .18s}.browse:hover span{transform:translateY(2px)}
.browse:hover{background:#303d68}.secondary:hover,.save-nav:hover{border-color:#aab6d6;background:#f8faff}

/* Catalogue */
.catalog,.journal{border-top:1px solid var(--line);padding:30px 0 40px;scroll-margin:12px}
.section-head,.section-title,.catalog-controls{display:flex;align-items:center}
.section-head{justify-content:space-between;gap:20px;margin-bottom:21px}
.section-title{gap:12px;align-items:baseline}
h2{font:600 29px/1.3 var(--sans);letter-spacing:-.05em}
.section-title small,.panel-head small,.note-copy small{font:500 10px/1.4 var(--mono);letter-spacing:.06em;color:#617086}
.catalog-controls{gap:12px}
.filters{display:flex;align-items:center;padding:3px;border-radius:24px;background:#f1f3f7;gap:1px}
.filters button{white-space:nowrap;font-size:12px;padding:7px 12px;min-height:30px;color:var(--muted);border-radius:20px}
.filters button[aria-pressed=true]{background:#fff;color:#263bb8;box-shadow:0 1px 4px #17274e19;font-weight:620}
.filters span{font:10px var(--mono);margin-left:2px}
#search-form{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:24px;padding:0 11px;width:185px;background:#fff;color:var(--muted)}
#search-form input{width:100%;min-width:0;flex:1;background:none;border:0;outline:0;min-height:36px;font-size:12px}
#search-form:focus-within{border-color:#7384e7;box-shadow:0 0 0 3px #465de414}
#search-form button{display:grid;place-items:center;padding:4px}
#search-form input:placeholder-shown~button,#search-form input:not(:placeholder-shown)~kbd{display:none}
kbd{border:1px solid var(--line);border-radius:4px;font:10px var(--mono);padding:2px 5px;color:#637089}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.tool-card{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;transition:border-color .25s,transform .25s,box-shadow .25s}
.tool-card>a{display:grid;grid-template-columns:minmax(85px,34%) 1fr;align-items:center;gap:16px;padding:15px 17px 15px 13px;height:100%;min-height:151px}
.card-art{position:relative;display:grid;place-items:center;border-radius:12px;aspect-ratio:1;background:linear-gradient(135deg,#fff 0%,var(--tint) 100%);isolation:isolate}
.card-art img{height:86%;width:86%;object-fit:contain;display:block;mix-blend-mode:multiply;transition:transform .28s}
.tag{position:absolute;top:5px;left:7px;font:500 10px/1.4 var(--sans);color:#4f5b70}
.card-body{min-width:0;padding:8px 0}
.card-body h3{font-size:clamp(17px,1.38vw,21px);font-weight:620;letter-spacing:-.045em;line-height:1.4}
.card-body p{color:var(--muted);font-size:12px;line-height:1.7;margin-top:6px}
.go{display:inline-flex;margin-top:12px;color:var(--accent);font-size:14px;transition:transform .2s}
.bookmark{position:absolute;right:3px;top:1px;width:33px;height:33px;display:grid;place-items:center;color:#647389}
.bookmark[aria-pressed=true]{color:var(--accent)}.bookmark[aria-pressed=true] svg{fill:currentColor}
.tool-card:focus-within{outline:2px solid var(--accent);outline-offset:2px}
@media(hover:hover){.tool-card:hover{transform:translateY(-3px);border-color:#bac7e7;box-shadow:0 8px 24px #293c7210}.tool-card:hover .card-art img{transform:translateY(-2px) rotate(-3deg)}.tool-card:hover .go{transform:translateX(4px)}}
.search-status,.empty{font-size:14px;color:var(--muted);padding:12px 0}
.empty{grid-column:1/-1;text-align:center;border:1px dashed var(--line);border-radius:14px;padding:30px 18px}
.empty button,.text-link{color:var(--accent);text-decoration:underline;text-underline-offset:4px}

.journal-controls{display:flex;gap:6px}.journal-controls button,.icon-btn{height:34px;width:34px;border-radius:50%;border:1px solid var(--line);background:white}
.journal-grid{position:relative;display:flex;gap:12px;overflow:auto;padding:4px 2px;scrollbar-width:none;scroll-snap-type:x mandatory}
.journal-grid::-webkit-scrollbar{display:none}
.note{scroll-snap-align:start;display:flex;align-items:center;gap:14px;flex:0 0 calc((100% - 25px)/3);min-width:0;padding:20px;border:1px solid var(--line);border-radius:14px;background:#f8faff}
.note:hover{background:#eff4ff}.note-icon{font-size:22px;color:var(--accent)}
.note-copy{min-width:0}.note-copy small{display:block;font-size:9px}
.note-copy strong{display:block;font-size:16px;font-weight:580;margin-top:4px}
.note>.icon{margin-left:auto;width:14px;color:#657187}
footer{border-top:1px solid var(--line)}
.footer-inner,.footer-brand{display:flex;align-items:center;gap:9px}
.footer-inner{min-height:70px;gap:22px;font-size:12px;color:var(--muted)}
.footer-brand{margin-right:auto;color:var(--ink);font-weight:600}.footer-brand small{font-weight:450;color:var(--muted)}
body:has(dialog[open]){overflow:hidden}
dialog{padding:0;width:min(740px,calc(100% - 28px));max-height:min(85dvh,900px);border:1px solid var(--line);background:var(--sheet);border-radius:22px;color:var(--ink);box-shadow:0 14px 70px #18233b26}
dialog::backdrop{background:#19233852}
dialog[open]{animation:appear .16s ease-out}
@keyframes appear{from{opacity:0;transform:translateY(6px)}
to{opacity:1;transform:translateY(0)}
}
.panel-head{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:22px 26px 17px;border-bottom:1px solid var(--line);background:var(--sheet);position:sticky;top:0;z-index:2}
.panel-head small{color:var(--accent);display:block;margin-bottom:4px}
.panel-head h2{font-size:25px}
.icon-btn{border:1px solid var(--line);border-radius:50%;width:36px;height:36px;display:grid;place-items:center}
.panel-body{padding:22px 26px 28px}
.intro,.hint,.status,.article p,.article li{font-size:14px;line-height:1.75}
.intro{color:var(--muted);margin-bottom:17px}
.hint{font-size:12px;color:var(--muted)}
fieldset{padding:0;margin:0;border:0;min-width:0}
.field{display:grid;gap:7px;font-size:13px;font-weight:600;margin:13px 0}
.field input:not([type=checkbox]),.field select,.field textarea,.cell,.form-select{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--sheet);font:14px/1.55 var(--sans)}
textarea{resize:vertical;min-height:80px}
.panel-body .actions,.checks{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0}
.btn, .btn-lite{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--accent);padding:9px 15px;border-radius:9px;background:var(--accent);color:white;font-size:14px;cursor:pointer}
.btn-lite{border-color:var(--line);background:var(--sheet);color:var(--ink)}
.btn:hover{background:#2639b7}
.btn-lite:hover{border-color:#a6b3de}
.checks label{display:flex;gap:5px;align-items:center;font-size:13px}
.checks input{accent-color:var(--positive)}
.drop{border:1px dashed #b3c0e5;border-radius:12px;background:#f4f7ff;min-height:91px;padding:15px;display:grid;place-content:center;text-align:center;gap:3px;cursor:pointer;position:relative}
.drop strong{font-size:14px;color:var(--positive)}
.drop small{font-size:12px;color:var(--muted)}
.drop input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.drop:focus-within,.drop.dragging{outline:2px solid var(--positive);outline-offset:1px}
.filename{font:12px/1.65 var(--mono);overflow-wrap:anywhere;margin:7px 0;color:var(--muted)}
.row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr))}
.status{color:var(--positive);margin:11px 0;overflow-wrap:anywhere}
.status.error{color:#ad344e}
.output{background:#edf5ff;padding:13px 15px;border-radius:12px;overflow-wrap:anywhere;margin-top:14px}
.output:empty,.status:empty,.filename:empty{display:none}
.output img{max-width:100%;max-height:190px;display:block;object-fit:contain;margin:0 auto 10px}
.output .btn{margin:8px 0 0}
.output p{font-size:13px;line-height:1.8}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.metric{border:1px solid var(--line);background:var(--sheet);border-radius:9px;padding:9px 12px}
.metric b{display:block;font:22px var(--mono);color:var(--accent);overflow-wrap:anywhere}
.metric span,.chips{font-size:12px;color:var(--muted)}
.chips{line-height:1.9;margin-top:12px}
.table-scroll{overflow:auto;max-height:320px;background:var(--sheet);border:1px solid var(--line)}
.table-scroll table{border-collapse:collapse;font-size:13px}
.table-scroll td,.table-scroll th{border:1px solid var(--line);padding:0}
.table-scroll input{width:130px;padding:7px;border:0;background:transparent}
.table-scroll .header-row{background:#edf2ff}
.table-scroll th{font:11px var(--mono);padding:4px 8px;color:var(--muted)}
.file-row,.saved-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:7px 0;font-size:13px}
.file-row>span,.saved-row>a{flex:1;overflow-wrap:anywhere}
.file-row button,.saved-row button{color:var(--accent);padding:6px}
.article h3{font:700 19px var(--sans);margin:18px 0 8px}
.article p,.article li{margin:7px 0;color:var(--muted)}
.article ul,.article ol{padding-left:22px}
.game{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.game button{min-height:57px;border:1px solid var(--line);background:#edf2ff;font:600 20px var(--sans);border-radius:9px}
.game button[aria-pressed=true]{background:#dbdefd}
.game button:disabled{opacity:.65;cursor:default}
#toast{position:fixed;z-index:10;bottom:22px;left:50%;transform:translateX(-50%);border-radius:20px;background:var(--ink);color:white;padding:8px 15px;font-size:12px;pointer-events:none}
#toast:empty{display:none}
.panel-identity{display:flex;gap:12px;align-items:center;min-width:0}
.panel-identity img{border-radius:12px;background:#f0f4ff;object-fit:contain;padding:5px}
.panel-head h2{font-weight:620}.panel-head small{font-size:10px}
.drop{min-height:109px}.drop:before{content:'↑';font:22px/1 var(--sans);color:var(--accent);margin-bottom:5px}
.table-scroll textarea{width:135px;min-height:34px;height:34px;border:0;background:transparent;display:block;padding:6px 8px;resize:vertical;font:13px/1.6 var(--sans)}
.table-scroll textarea:focus-visible{outline-offset:-2px}
details{margin:14px 0}summary{cursor:pointer;font-size:14px;color:var(--accent)}
#pdf-count:not(:empty){margin:9px 0}#pdf-count:empty{display:none}#files:empty~#process{margin-top:14px}
.output audio{width:100%;margin-bottom:9px}.support{margin-top:15px}
@media(max-width:1000px){.wrap{width:calc(100% - 64px)}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:365px}.tool-card>a{min-height:136px}}
@media(max-width:760px){
 .wrap{width:calc(100% - 38px)}.head-inner{height:64px;gap:18px}.brand{gap:7px}.brand strong{font-size:19px}.brand-mark{width:32px;height:32px}nav{gap:16px}
 .catalog .section-head{align-items:flex-start;flex-direction:column;gap:14px}.catalog-controls{width:100%;justify-content:space-between}
 .hero{min-height:345px}.hero h1{font-size:clamp(40px,7.2vw,55px)}.tool-card>a{gap:12px;padding:12px;min-height:124px}
 .journal-grid .note{flex-basis:calc((100% - 13px)/2)}
}
@media(max-width:540px){
 .wrap{width:calc(100% - 32px)}.head-inner{height:60px;gap:10px}.brand strong{font-size:18px}.head-inner nav{gap:0}.head-inner nav a:first-child,.head-inner nav a:last-child{display:none}
 .save-nav{font-size:12px;padding:6px 9px;min-height:32px}.save-total{display:none}nav a{font-size:12px}
 .hero{min-height:344px;padding:37px 12px}.hero-signature{font-size:20px}.hero-signature img{width:27px;height:27px}
 .hero h1{font-size:clamp(30px,7.7vw,42px);margin:18px 0 14px;letter-spacing:-.075em}.hero p{font-size:13px}.mobile-break{display:inline}
 .hero-actions{margin-top:20px}.browse,.secondary{font-size:12px;min-height:40px;padding:10px 15px}
 h2{font-size:24px}.section-title{gap:8px}.section-head{margin-bottom:14px}.catalog,.journal{padding:22px 0 26px}
 .catalog-controls{gap:6px}.filters button{font-size:11px;padding:6px 8px}#search-form{width:auto;flex:1;gap:4px;padding:0 8px;min-width:0}#search-form kbd{display:none}
 .grid{gap:10px}.tool-card{border-radius:12px}.tool-card>a{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-height:0;padding:9px}
 .card-art{aspect-ratio:1.65;border-radius:9px}.card-art img{height:74px;max-height:90%;width:90%}.tag{font-size:9px}
 .card-body{padding:1px 4px 5px}.card-body h3{font-size:16px}.card-body p{font-size:11px;margin-top:3px}.go{display:none}.bookmark{top:6px;right:6px;width:31px;height:31px}
 .journal-grid .note{flex-basis:73%;padding:14px}.footer-inner{gap:6px;font-size:10px;min-height:55px}.footer-brand{gap:4px}.footer-brand small{display:none}.footer-brand img{width:18px;height:18px}
 .panel-head,.panel-body{padding:16px}.panel-identity{gap:9px}.panel-identity img{width:43px;height:43px}.panel-head h2{font-size:21px}.metric{padding:8px}.metric b{font-size:18px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Protect the reading area while retaining full-strength movement at the edges. */
#flow{mask-image:radial-gradient(ellipse 39% 44% at 50% 52%,#00000008 6%,#00000020 52%,#000 100%)}
.flow-toggle{position:absolute;right:max(17px,4vw);bottom:12px;width:44px;height:44px;display:grid;place-items:center;color:#56657f;line-height:1}
.flow-toggle span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #d8dfed;border-radius:50%;background:#ffffffdc;font:600 12px/1 var(--sans)}
.flow-toggle:hover span,.flow-toggle:focus-visible span{border-color:#899ae0;color:var(--accent)}
@media(max-width:540px){#flow{mask-image:radial-gradient(ellipse 50% 44% at 50% 50%,#00000008 12%,#00000030 60%,#000 100%)}.flow-toggle{right:7px;bottom:4px}}

.studio{position:relative;width:100%;align-self:center}
.studio-image{display:block;width:100%;height:auto;mix-blend-mode:multiply;user-select:none;-webkit-user-drag:none}
.studio-pin{position:absolute;transform:translate(-50%,-50%);width:46px;height:46px;display:grid;place-items:center;border-radius:50%;z-index:2;color:var(--ink)}
.print-pin{left:45.5%;top:24.2%}
.cutter-pin{left:80.8%;top:44.8%}
.pin-mark{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#fffffff2;box-shadow:0 0 0 1px #28357233,0 2px 6px #221b1830;font:500 19px/1 var(--sans);transition:transform .2s,background .2s,color .2s}
.pin-label{position:absolute;bottom:calc(50% + 19px);left:50%;padding:5px 9px;border-radius:5px;background:var(--ink);color:white;font:500 11px/1.3 var(--sans);white-space:nowrap;opacity:0;transform:translate(-50%,3px);transition:opacity .16s,transform .16s;pointer-events:none}
.studio-pin:is(:hover,:focus-visible) .pin-mark{background:var(--accent);color:white;transform:scale(1.08)}
.studio-pin:is(:hover,:focus-visible) .pin-label{transform:translate(-50%,0);opacity:1}
@media(hover:none){.pin-label{transform:translate(-50%,0);opacity:1;background:#fffcf6f2;color:var(--ink);box-shadow:0 1px 4px #21190920}}

/* The two editions share controls, tool state and layout breakpoints. */
:root {
  --mark:url("assets/nichiyo-mark.svg");
  --serif:"Songti SC","Songti TC","Noto Serif CJK SC",STSong,SimSun,serif;
  --switch-track:#f0f3f8;
}
html[data-theme="modern"] .studio-only,
html[data-theme="studio"] :is(.modern-only,#flow,.flow-toggle) { display:none }
.brand-mark { background:var(--mark) center / contain no-repeat;flex:none }
.footer-brand .brand-mark { width:24px;height:24px }
.head-inner { gap:clamp(10px,2vw,28px) }
.theme-switch {
  display:inline-flex;align-items:center;flex:none;gap:2px;padding:3px;border-radius:999px;
  background:var(--switch-track);border:1px solid var(--line);line-height:1
}
.theme-switch button {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:0 10px;min-height:31px;border-radius:inherit;font-size:12px;color:var(--muted);
  white-space:nowrap;transition:background-color .16s,color .16s
}
.theme-switch button[aria-pressed="true"] {
  background:var(--sheet);color:var(--ink);box-shadow:0 1px 4px #24231e20;font-weight:650
}
.theme-switch i { width:14px;height:14px;background:center / contain no-repeat }
.theme-switch [data-choice="modern"] i { background-image:url("assets/nichiyo-mark.svg") }
.theme-switch [data-choice="studio"] i { background-image:url("assets/atelier-mark.svg") }
.panel-head .theme-switch { margin-left:auto }
.panel-head .icon-btn { flex:none }
.hero-layout { width:100% }
.hero-text { margin-inline:auto }
.studio-about { font-size:13px;padding:12px 4px }
.studio-about:hover { text-decoration:underline;text-underline-offset:4px }

html[data-theme="studio"] {
  --paper:#fbfaf7;--sheet:#fffefa;--ink:#292c25;--muted:#616356;--line:#d8d4c7;
  --accent:#a53e2c;--positive:#526447;--switch-track:#efeee7;--surface:#f1f0e9;
  --mark:url("assets/atelier-mark.svg");

  .site-head,.panel-head { background:var(--paper);border-color:var(--line) }
  .brand-type { display:grid;gap:3px }
  .brand strong { font:650 23px/1.1 var(--serif);letter-spacing:.07em }
  .brand-type small { font:8px/1 var(--mono);text-transform:uppercase;letter-spacing:.15em }
  nav a.active { color:var(--accent) }
  nav a.active::after { height:2px;width:18px;left:0;border-radius:0 }
  .hero { display:block;padding:0;min-height:0;background:var(--paper) }
  .hero-layout {
    width:min(1232px,calc(100% - clamp(40px,10vw,144px)));
    display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);align-items:center;
    gap:clamp(16px,3.5vw,52px);padding-block:clamp(22px,2.6vw,40px) clamp(30px,3.2vw,48px)
  }
  .hero-text { text-align:left;margin:0 }
  .shop-sign { display:flex;align-items:center;gap:11px;font:600 12px/1.4 var(--serif);letter-spacing:.17em;color:var(--accent) }
  .shop-sign::before { content:"";width:25px;height:2px;background:currentColor }
  .hero h1 { color:var(--ink);font:600 clamp(52px,5.05vw,74px)/1.13 var(--serif);letter-spacing:-.025em;margin:18px 0 16px }
  .hero h1 em { font-style:normal;color:var(--accent) }
  .hero-intro { color:var(--muted) }
  .hero-actions { justify-content:flex-start;gap:20px }
  .browse:hover,.btn:hover { background:#434a39 }
  .save-nav:hover,.btn-lite:hover { background:var(--surface);border-color:#aba791 }
  .section-title h2,.panel-head h2,.card-body h3,.note-copy strong,.article h3 { font-family:var(--serif);letter-spacing:.012em }
  .section-title h2 { display:flex;align-items:center;gap:10px }
  .section-title h2::before { content:"";width:4px;height:.75em;background:var(--accent) }
  .journal .section-title h2::before { background:var(--positive) }
  .section-title small,.note-copy small { color:var(--muted);letter-spacing:.12em;text-transform:uppercase }
  .filters { background:var(--switch-track) }
  .filters button[aria-pressed="true"] { background:#383d32;color:white }
  #search-form { background:transparent }
  #search-form:focus-within { border-color:var(--positive);box-shadow:0 0 0 3px #52644717 }
  .tool-card { border-radius:10px;background:var(--sheet) }
  .tool-card:hover { border-color:#b1ab99;box-shadow:0 6px 17px #4936180b }
  .tool-card>a { grid-template-columns:minmax(70px,28%) 1fr }
  .card-art { background:#f0e7d5;overflow:hidden }
  .card-art:has([data-tool-art="count"]),.card-art:has([data-tool-art="png"]) { background:#e0e9eb }
  .card-art:has([data-tool-art="table"]),.card-art:has([data-tool-art="convert"]) { background:#e5e9da }
  .card-art img { width:82%;height:82% }
  .wood-tag { display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-bottom:4px }
  .bookmark { color:var(--muted) }
  .bookmark[aria-pressed="true"] { color:var(--accent) }
  .note { border-radius:6px;background:#f3f2eb }
  .note:hover { background:#e9ebdf }
  .note-icon,.journal-controls button { color:var(--positive) }
  .journal-controls button { border-radius:5px }
  dialog { border-radius:13px;background:var(--paper) }
  .drop,.output,.panel-identity img,.table-scroll .header-row,.game button { background:#eeeee3 }
  .drop { border-color:#9b9e89 }
  .game button[aria-pressed="true"] { background:#d5dfca }
}
@media (min-width:601px) and (max-width:835px) {
  .head-inner { gap:12px }.head-inner nav { gap:12px }
  .theme-switch button { padding-inline:7px }
}
@media (max-width:760px) {
  html[data-theme="studio"] .hero-layout { width:calc(100% - 38px);grid-template-columns:minmax(225px,.88fr) minmax(0,1.12fr);gap:10px }
  html[data-theme="studio"] .hero h1 { font-size:clamp(43px,6.8vw,52px) }
}
@media (max-width:600px) {
  .head-inner { height:auto;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1px 12px;padding:10px 0 5px }
  .head-inner .theme-switch { grid-column:2;grid-row:1;justify-self:end }
  .head-inner nav { grid-column:1;grid-row:2;gap:15px;margin:0 }
  .head-inner nav a,.head-inner nav a:first-child,.head-inner nav a:last-child { display:block;font-size:12px;padding:9px 0 }
  .head-inner .save-nav { grid-column:2;grid-row:2;justify-self:end;min-height:32px;padding:5px 9px }
  .theme-switch button { min-height:31px }
}
@media (max-width:540px) {
  html[data-theme="studio"] .hero-layout { width:calc(100% - 32px);grid-template-columns:1fr;gap:4px;padding:24px 0 12px }
  html[data-theme="studio"] .hero h1 { font-size:clamp(35px,9.8vw,48px);margin:11px 0 8px }
  html[data-theme="studio"] .hero-actions { margin-top:12px }
  html[data-theme="studio"] .studio { width:min(93%,355px);margin-left:auto }
  html[data-theme="studio"] .shop-sign { font-size:11px }
  html[data-theme="studio"] .card-art img { height:70px;max-height:90% }
  .panel-head { gap:6px }.panel-head .theme-switch button { padding-inline:6px }
  .panel-head .theme-switch i { display:none }
  .footer-brand .brand-mark { width:18px;height:18px }
}
@media (max-width:390px) {
  .panel-head .panel-identity img { width:31px;height:31px }
  .panel-head h2 { font-size:17px }
  .panel-head .icon-btn { width:32px;height:32px }
}
@media (prefers-reduced-motion:no-preference) {
  html[data-theme="modern"] .hero-text { animation:glass-in .28s ease-out }
  html[data-theme="studio"] .hero-text,html[data-theme="studio"] .studio { animation:studio-in .32s ease-out }
  @keyframes glass-in { from { opacity:.5;transform:translateY(4px) } }
  @keyframes studio-in { from { opacity:.5;transform:translateY(5px) } }
}
@media (max-width:360px) {
  .head-inner { column-gap:6px }
  .head-inner nav { gap:10px }
  .head-inner .theme-switch button { padding-inline:6px }
  html[data-theme="studio"] .head-inner .brand strong { font-size:18px }
}
