:root{--yellow:#fff0a8;--pink:#f7cbdc;--cream:#fffaf4;--paper:#fffefd;--mint:#d7f0df;--ink:#79556b;--muted:#9c7c8e;--line:#b77b97;--line-soft:#e9cfda;--lav:#ece7fa;--green:#e8f3d6;--shadow:0 12px 0 rgba(177,113,142,.075),0 22px 55px rgba(143,95,104,.09)}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--yellow);color:var(--ink);font-family:'Trebuchet MS','Apple SD Gothic Neo','Malgun Gothic',sans-serif;line-height:1.65;min-height:100vh}button,a{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ad71ce;outline-offset:4px}svg{display:block;max-width:100%}
    .shell{width:min(1120px,calc(100% - 56px));margin:44px auto 55px;background:var(--cream);border:2px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
    .topbar{height:66px;background:var(--pink);border-bottom:2px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:12px}.brand{font-size:clamp(18px,2.6vw,26px);font-weight:900;letter-spacing:.035em;text-decoration:none;white-space:nowrap}.brand small{font-size:11px;letter-spacing:0;font-weight:700;margin-left:7px;color:#97677e}.window-dots{display:flex;gap:8px}.window-dots span{width:16px;height:16px;border:2px solid var(--line);border-radius:50%;background:#fff3ad}.window-dots span:nth-child(2){background:#cbeecf}.window-dots span:nth-child(3){background:#f4a9c8}
    .navrow{border-bottom:1px solid var(--line-soft);padding:0 30px;display:flex;align-items:end;gap:7px;min-height:64px;background:#fffaf7}.tab{border:1.5px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;background:#fff4f8;padding:13px 17px 12px;min-width:118px;display:flex;justify-content:center;align-items:center;gap:8px;color:var(--ink);font-size:14px;font-weight:800;position:relative;top:1px;transition:background .18s,transform .18s}.tab:hover{background:#fce1eb;transform:translateY(-3px)}.tab.active{background:#fff0b7;padding-top:17px;border-bottom:2px solid #fff0b7;top:2px}.tab-icon{font-size:17px;line-height:1}.nav-hint{margin-left:auto;padding-bottom:15px;font-size:11px;color:var(--muted);white-space:nowrap}
    main{min-height:590px}.view{display:none;animation:fade .24s ease-out}.view.active{display:block}@keyframes fade{from{opacity:.2;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.content{padding:48px 60px 54px}
    .hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(210px,.75fr);align-items:center;gap:38px;margin-bottom:65px}.hero-side{min-width:0}.eyebrow{color:#a4768d;font-weight:900;letter-spacing:.12em;text-transform:uppercase;font-size:11px;margin-bottom:13px}.hero p{font-size:15px;color:#947788;margin:0 0 22px;word-break:keep-all}.actions{display:flex;flex-wrap:wrap;gap:9px}.btn{border:1.5px solid var(--line);background:#fff8fb;border-radius:11px;padding:9px 17px;color:var(--ink);font-size:13px;font-weight:800;box-shadow:2px 3px 0 #ead1dc;transition:transform .16s,box-shadow .16s}.btn:hover{transform:translateY(-2px);box-shadow:2px 5px 0 #ead1dc}.btn.primary{background:var(--pink)}.btn.mint{background:var(--mint)}.btn:disabled{opacity:.55;cursor:default}
    .welcome-window{border:2px solid var(--line);border-radius:15px;background:#fff;box-shadow:6px 7px 0 #f7e1ea;overflow:hidden;max-width:540px}.window-head{background:var(--mint);border-bottom:2px solid var(--line);padding:9px 14px;display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.07em;font-weight:900}.controls{display:flex;gap:5px}.control{width:21px;height:21px;border:1.5px solid var(--line);background:#fff4b6;border-radius:5px;display:grid;place-items:center;color:var(--ink);font-weight:900;line-height:1;padding:0;font-size:13px}.control:last-child{background:#f7d3df}.window-body{padding:25px 24px 27px}.window-body .mini{font-size:11px;letter-spacing:.09em;font-weight:900;color:#ac7994}.window-body h2{font-size:26px;margin:5px 0 8px;letter-spacing:-.045em}.window-body p{font-size:13px;margin:0 0 17px;color:#93798b}.restore{display:none;background:#fff8fb;border:1.5px dashed var(--line);border-radius:14px;padding:20px;text-align:center}.restore.show{display:block}

    .section-top{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 19px}.section-title{font-size:23px;letter-spacing:-.04em;margin:0;line-height:1.3}.section-sub{font-size:12px;color:var(--muted);margin:6px 0 0}.filters{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1.5px solid #d7aabc;background:#fffaf9;color:#9a7387;border-radius:30px;padding:6px 14px;font-size:12px;font-weight:800}.chip:hover,.chip.active{background:#fff0b9;color:var(--ink);border-color:var(--line)}
    .work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 18px}.work-card{border:0;background:none;text-align:left;padding:0;color:inherit;min-width:0}.thumb{aspect-ratio:1.22;border-radius:13px;overflow:hidden;background:#f8e7ee;position:relative;transition:transform .18s,box-shadow .18s}.thumb svg{width:100%;height:100%}.work-card:hover .thumb,.work-card:focus-visible .thumb{transform:translateY(-4px);box-shadow:0 9px 18px #a36e8730}.work-name{font-weight:900;font-size:14px;margin-top:11px;display:block}.work-meta{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.status{display:inline-block;background:#e3f3da;border-radius:20px;color:#628365;padding:2px 8px;font-size:10px;font-weight:800}.status.private{background:#f1e6f7;color:#9b79ab}.empty{padding:36px;text-align:center;color:var(--muted)}
    .page-intro{margin-bottom:31px}.page-intro h1{font-size:32px;letter-spacing:-.055em;margin:0 0 7px}.page-intro p{margin:0;color:var(--muted);font-size:14px}.note{border:1px solid #e4c7d6;background:#fff5f8;border-radius:13px;padding:16px 18px;color:#946d82;font-size:13px;margin:0 0 25px}.about-layout{display:grid;grid-template-columns:210px 1fr;gap:32px;align-items:start}.portrait{background:#f9e1ec;border-radius:19px;padding:12px}.portrait svg{width:100%}.about-copy h2{margin:0 0 12px;font-size:25px}.about-copy p{font-size:14px;color:#93798a;line-height:1.9}.about-tags{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.about-tag{background:#e5f1df;border-radius:7px;padding:5px 10px;font-size:11px;font-weight:800}.etc-panel{max-width:580px;background:#fff;border:1.5px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:5px 6px 0 #f2dfe9}.etc-body{padding:25px}.etc-body h2{margin:0 0 8px}.etc-body p{color:var(--muted);font-size:14px}
    .footer{border-top:1px solid var(--line-soft);padding:16px 24px;text-align:center;font-size:.75rem;color:#a17c91}
    .modal-backdrop{position:fixed;inset:0;background:#58425288;display:none;align-items:center;justify-content:center;padding:22px;z-index:50}.modal-backdrop.open{display:flex}.modal{background:var(--paper);width:min(570px,100%);max-height:min(86vh,780px);overflow:auto;border:2px solid var(--line);border-radius:17px;box-shadow:9px 10px 0 #70465b33}.modal .window-head{position:sticky;top:0;z-index:2}.modal-inner{padding:25px}.modal-art{height:190px;border-radius:12px;overflow:hidden;margin-bottom:19px}.modal-art svg{width:100%;height:100%}.modal h2{margin:0 0 8px;font-size:25px}.modal p{color:#8c7181;font-size:14px;line-height:1.85}.modal .detail-type{font-size:11px;font-weight:900;letter-spacing:.12em;color:#aa7d91}.modal .detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:21px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(20px);background:#fff8fb;border:1.5px solid var(--line);border-radius:13px;padding:10px 18px;box-shadow:0 8px 24px #67435833;font-size:13px;font-weight:800;opacity:0;pointer-events:none;transition:.22s;z-index:80}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
    @media (max-width:880px){.nav-hint{display:none}.content{padding:38px 34px 45px}.navrow{padding:0 20px}.tab{min-width:0;flex:1;padding:12px 8px;font-size:12px}.tab.active{padding-top:16px}.hero{gap:22px;grid-template-columns:1.1fr .9fr}.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media (max-width:580px){.shell{width:calc(100% - 20px);margin:12px auto 22px;border-radius:16px}.topbar{height:56px;padding:0 16px}.brand{font-size:18px}.brand small{display:none}.window-dots span{width:12px;height:12px}.navrow{padding:0 7px;gap:3px;min-height:57px}.tab{font-size:10px;gap:3px;padding:11px 2px}.tab-icon{font-size:14px}.tab.active{padding-top:15px}.content{padding:28px 19px 37px}.hero{display:flex;flex-direction:column-reverse;align-items:stretch;gap:22px;margin-bottom:41px}.section-top{align-items:start;flex-direction:column}.work-grid{gap:19px 11px}.work-name{font-size:12px}.thumb{aspect-ratio:1.08}.work-meta{font-size:10px}.page-intro h1{font-size:28px}.about-layout{grid-template-columns:1fr}.portrait{max-width:190px}.footer{padding:12px 18px}.modal-inner{padding:17px}.modal-art{height:165px}}
    @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* FINAL CANDIDATE — signature scrapbook layer */
html,body{background:var(--yellow)}
.shell{border-radius:23px;box-shadow:0 11px 0 #d6a2a34d,0 25px 55px #a26f8c26}
.navrow{background:#fff8ed}.tab{border-radius:12px 12px 0 0;box-shadow:0 -2px 0 #fff8fb70 inset}.tab.active{background:#fff0b7}
.scrapbook{background:repeating-linear-gradient(0deg,transparent 0 28px,#eccbd228 29px,transparent 30px),#fff8ed;border:1.5px solid #e7c0d0;border-radius:20px;padding:22px 25px 18px;margin-bottom:51px;position:relative;box-shadow:6px 8px 0 #eedce3}

.scrapbook-heading{display:flex;justify-content:space-between;color:#ac7c94;letter-spacing:.13em;font-size:10px;font-weight:900;margin:6px 0 21px;padding-left:10px}
.scrapbook .hero{margin:0;grid-template-columns:minmax(0,1.2fr) minmax(210px,.8fr);gap:22px;padding:0 5px 10px}

.scrapbook .welcome-window{box-shadow:5px 6px 0 #e9cbd6}

.shelf-caption{align-self:center;display:flex;flex-direction:column;align-items:center;font-size:11px;font-weight:900;letter-spacing:.14em;color:#ba8b9c;text-align:center;gap:4px}.shelf-caption small{letter-spacing:0;font-weight:500;font-size:10px}.shelf-star{color:#e8b06c}

.work-grid{gap:27px 19px}.thumb{border:1px solid #e9d8df;border-radius:14px}.section-title{font-size:27px}.work-card:hover .thumb{transform:translateY(-3px) rotate(-.6deg)}
@media (max-width:880px){.scrapbook{padding:20px 17px}.scrapbook .hero{gap:16px}}
@media (max-width:580px){.scrapbook{padding:19px 12px 13px;margin-bottom:37px}.scrapbook-heading{font-size:8px;letter-spacing:.03em}.scrapbook .hero{display:flex;flex-direction:column-reverse}.shelf-caption{display:none}}
@media (hover:hover) and (pointer:fine){
  body,button,a,[data-detail],[data-go],[data-page],[data-filter],.work-card,.chip,#idea-button{cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2230%22%20height%3D%2233%22%20viewBox%3D%220%200%2040%2044%22%3E%3Cpath%20d%3D%22M5%203v32l9-9%208%2015%207-4-9-15%2013-1Z%22%20fill%3D%22%23f8b5d0%22%20stroke%3D%22%238e5872%22%20stroke-width%3D%222.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%209v15%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E') 4 2,auto!important}
  input,textarea,[contenteditable=true]{cursor:text!important}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Preserve the reference palette and scrapbook layout; improve usability. */
[hidden]{display:none!important}
.thumb{display:block}
.placeholder-art,.placeholder-art svg{width:100%;height:100%}
.thumb img,.modal-art img{display:block;width:100%;height:100%;object-fit:cover}
.modal-art img{object-fit:contain;background:var(--cream)}
.skip-link{position:fixed;left:16px;top:12px;z-index:100;background:var(--pink);padding:10px 16px;border:2px solid var(--line);border-radius:10px;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* CR-043: natural-ratio Masonry is scoped to Illust; shared/Home cards stay intact. */
#page-illustration .content{padding-top:28px}
#page-illustration .page-intro{margin-bottom:22px}
#page-illustration .page-intro p{word-break:keep-all}
#illustration-grid{--masonry-columns:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
#illustration-grid.masonry-ready{display:block;position:relative}
#illustration-grid.masonry-ready>.work-card{position:absolute;width:var(--masonry-width)}
#illustration-grid .thumb{aspect-ratio:auto;height:auto;box-shadow:0 3px 9px #a36e8714}
#illustration-grid .thumb.is-loading{aspect-ratio:var(--image-ratio,1)}
#illustration-grid .thumb img{display:block;width:100%;height:auto;object-fit:contain}
#illustration-grid .placeholder-art{height:auto;aspect-ratio:var(--image-ratio,1)}
#illustration-grid .image-message{padding:16px 8px;overflow-wrap:anywhere}
@media (max-width:880px){#illustration-grid{--masonry-columns:2;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:580px){#illustration-grid{gap:11px}}

/* CR-044: decorative browser chrome belongs only to the Web gallery. */
#page-web .content{padding-top:28px}
#page-web .page-intro{margin-bottom:22px}
#page-web .page-intro p{word-break:keep-all}
#page-web .note{padding:12px 16px}
#web-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#web-grid .browser-frame{display:block;width:100%;min-width:0;border:1px solid #e9d8df;border-radius:14px;overflow:hidden;background:var(--cream);box-shadow:0 3px 9px #a36e8714;transition:transform .18s,box-shadow .18s}
#web-grid .browser-bar{display:flex;align-items:center;gap:5px;height:24px;padding:0 10px;background:var(--pink);border-bottom:1px solid #e9d8df}
#web-grid .browser-bar>span{width:6px;height:6px;border:1px solid #b77b9780;border-radius:50%;background:#fff8ed;flex:none}
#web-grid .thumb{aspect-ratio:4 / 3;height:auto;border:0;border-radius:0;background:var(--cream);transform:none;box-shadow:none}
#web-grid .thumb img{width:100%;height:100%;object-fit:scale-down}
#web-grid .placeholder-art{background:var(--cream)}
#web-grid .image-message{padding:12px 6px;overflow-wrap:anywhere}
#web-grid .work-name{display:block;min-height:0;overflow:visible;overflow-wrap:anywhere;white-space:normal}
#web-grid .work-card:hover .browser-frame,#web-grid .work-card:focus-visible .browser-frame{transform:translateY(-3px);box-shadow:0 9px 18px #a36e8730}
@media (max-width:880px){#web-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:580px){#web-grid .browser-bar{height:20px;padding-inline:8px;gap:4px}#web-grid .browser-bar>span{width:5px;height:5px}}

/* CR-045: Web detail information only; keep shared chrome and artwork intact. */
.modal.web-detail #modal-file{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.modal.web-detail #close-modal{flex:none}
.modal.web-detail-empty #modal-art{margin-bottom:0}
.modal.web-detail #modal-type[hidden],.modal.web-detail #modal-title[hidden],.modal.web-detail #modal-description[hidden],.modal.web-detail #modal-actions[hidden]{display:none}
/* CR-059: Illust keeps only artwork, title and any supplied description/link. */
.modal.illust-detail #modal-description[hidden]{display:none}
.modal.illust-detail #modal-title{margin-bottom:0}
.no-script{margin:20px;padding:16px;border:2px solid var(--line);background:var(--cream)}
#main:focus{outline:none}
.control{position:relative}
.control::before{content:'';position:absolute;inset:-8px}
.window-body p,.hero p,.about-copy p,.etc-body p,.modal p{font-size:1rem}
.work-name,.btn,.chip{font-size:.875rem}
.hero p,.page-intro p,.section-sub,.about-copy p,.etc-body p,.work-meta{color:#805e73}
.work-name,.modal h2,.modal p{overflow-wrap:anywhere}

.toast{max-width:calc(100% - 32px);width:max-content;text-align:center}
@media (max-width:880px){.tab{font-size:.875rem}.scrapbook .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
@media (max-width:580px){
  .tab{font-size:.75rem;min-height:44px}.tab-icon{font-size:14px}

  .work-name{font-size:.875rem}.work-meta{font-size:.75rem}
  .chip,.btn{min-height:44px}
  .modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px)}
}
@media (max-width:360px){
  .content{padding-left:12px;padding-right:12px}.navrow{gap:2px;padding:0 4px}
  .tab{gap:2px;font-size:11px}.tab-icon{font-size:12px}
  .work-grid{grid-template-columns:1fr}
}

/* CR-002: keep the scrapbook frame steady as the collection grows. */
.work-card{display:flex;flex-direction:column;align-self:start;width:100%}
.thumb{width:100%;flex:none}
.work-name{line-height:1.65;min-height:3.3em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.work-meta{width:100%;min-height:2em;overflow-wrap:anywhere;font-size:.75rem}
.status{font-size:.75rem}
.placeholder-art{display:grid;place-items:center;background:#f8e7ee}
.image-message{text-align:center;color:var(--ink);font-size:.875rem;padding:24px}
.empty{grid-column:1 / -1;margin:0;min-height:190px;display:grid;place-items:center;border:1.5px dashed var(--line-soft);border-radius:14px;background:#fff5f8}
.modal-art{height:auto;min-height:190px;background:var(--cream)}
.modal-art img{height:auto;object-fit:contain}
.modal-art .placeholder-art{min-height:190px;height:auto}
.modal-art svg{height:auto}
.modal p{white-space:pre-line}
.modal,.modal-inner,.about-copy,.etc-panel,.section-top>div{min-width:0}
.page-intro,.about-copy,.etc-body,.note,.window-head,.section-sub{overflow-wrap:anywhere}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;max-width:100%;overflow-wrap:anywhere}
.chip{min-height:44px}
.filters{max-width:100%}
.navrow{flex-wrap:wrap}
.tab{flex-shrink:0;min-height:44px}
.navrow .tab:focus-visible{outline-offset:-4px}
@media (max-width:580px){
  .tab{flex:1 1 auto;font-size:.75rem;padding-inline:5px}
  .tab-icon{display:none}
  .scrapbook-heading{flex-wrap:wrap;gap:4px}
  .window-body{padding:20px 16px}

  .about-tags{gap:6px}.about-tag{font-size:.75rem}
}
@media (max-width:360px){.tab{font-size:.75rem}.topbar{padding-inline:10px;gap:6px}.window-dots{gap:5px}}

/* CR-004: tabs share a baseline with the window content at every width. */
.navrow{align-items:stretch;border-bottom:0;padding-top:12px}
.tab{top:0;margin-bottom:-2px;padding-top:12px;padding-bottom:12px;border-bottom:2px solid var(--line-soft);box-shadow:none;transform:none}
.tab.active{top:0;margin-bottom:-2px;padding-top:12px;padding-bottom:12px;border-bottom:2px solid #fff0b7;box-shadow:none;transform:none;z-index:1}
.tab:hover{transform:none}
main{border-top:2px solid #fff0b7}

.portrait img{display:block;width:100%;height:auto;border-radius:10px}
.portrait .placeholder-art{min-height:190px}

/* CR-048: preserve the existing width and trim; fit every source without cropping. */
#about-portrait{position:relative;aspect-ratio:4 / 5}
#about-portrait img,#about-portrait .placeholder-art{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);min-height:0;border-radius:10px}
#about-portrait img{object-fit:contain}

@media (max-width:580px){.navrow{padding-top:8px}}

.etc-entry{min-width:0;margin-bottom:24px;overflow-wrap:anywhere}
.etc-entry+.etc-entry{padding-top:24px;border-top:1px solid var(--line-soft)}
.etc-entry .thumb{margin-bottom:16px}
.etc-entry p{white-space:pre-line}

/* CR-008: native scrolling with pastel modal scrollbar styling. */
/* CR-010: a non-scrolling title bar and one shrinkable body for both modal types. */
.modal{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:min(86dvh,780px)}
.modal .window-head{position:static;flex:0 0 auto}
.modal-body{flex:0 1 auto;min-height:0;min-width:0;overflow:auto;margin:8px 6px 6px;overscroll-behavior-y:contain}
.modal-body:focus-visible{outline:2px solid #ad71ce;outline-offset:-2px}
.modal-inner{padding:17px 19px 19px}
.modal-inner>:last-child{margin-bottom:0}
.modal-art{height:auto;min-height:0}
@media (max-width:580px){
  .modal{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
  .modal-body{margin-top:6px}
  .modal-inner{padding:11px}
}
.modal-body{scrollbar-gutter:auto;overscroll-behavior:none}
.modal-backdrop{overscroll-behavior:none}
.modal-body::-webkit-scrollbar{width:12px;height:12px}
.modal-body::-webkit-scrollbar-track{background:#fff1f6;border:3px solid var(--paper);background-clip:padding-box;border-radius:999px;margin-block:12px}
.modal-body::-webkit-scrollbar-thumb{background:#d89ab4;border:3px solid var(--paper);background-clip:padding-box;border-radius:999px;min-height:36px}
.modal-body::-webkit-scrollbar-thumb:hover{background-color:#c381a1}
.modal-body::-webkit-scrollbar-thumb:active{background-color:#b77b97}
.modal-body::-webkit-scrollbar-corner{background:var(--paper)}
/* Standards-only browsers keep their platform's thumb shape and hover behavior. */
@supports not selector(::-webkit-scrollbar){
  .modal-body{scrollbar-width:thin;scrollbar-color:#d89ab4 #fff1f6}
  @media (hover:hover){.modal-body:hover{scrollbar-color:#c381a1 #fff1f6}}
}
@media (forced-colors:active){
  .modal-body{scrollbar-color:auto;scrollbar-width:auto}
  .modal-body::-webkit-scrollbar{width:auto;height:auto}
  .modal-body::-webkit-scrollbar-track,.modal-body::-webkit-scrollbar-thumb{background:revert;border:revert}
}

/* CR-038: match the page scrollbar to the modal; leave touch scrollbars native. */
@media (hover:hover) and (pointer:fine){
  html::-webkit-scrollbar{width:12px;height:12px}
  html::-webkit-scrollbar-track{background:var(--cream);border:3px solid var(--yellow);background-clip:padding-box;border-radius:999px}
  html::-webkit-scrollbar-thumb{background:#d89ab4;border:3px solid var(--yellow);background-clip:padding-box;border-radius:999px;min-height:36px}
  html::-webkit-scrollbar-thumb:hover{background-color:#c381a1}
  html::-webkit-scrollbar-corner{background:var(--yellow)}
  /* Keep WebKit shaping where supported; Firefox uses standard native shaping. */
  @supports not selector(::-webkit-scrollbar){
    html{scrollbar-width:thin;scrollbar-color:#d89ab4 var(--cream)}
  }
  @media (forced-colors:active){
    html{scrollbar-color:auto;scrollbar-width:auto}
    html::-webkit-scrollbar{width:auto;height:auto}
    html::-webkit-scrollbar-track,html::-webkit-scrollbar-thumb{background:revert;border:revert}
    html::-webkit-scrollbar-corner{background:revert}
  }
}

/* About: text-led pastel cards. */
#page-about .about-copy h2{font-size:1.35rem;line-height:1.6;word-break:keep-all}
.about-section{margin-top:38px}.about-section h2{font-size:1.4rem;margin:0 0 16px;letter-spacing:-.04em}
/* CR-046: a quiet, non-interactive list in the existing About flow. */
#page-about .about-checklist{list-style:none;margin:0;padding:0;display:grid;gap:12px;font-size:1rem;line-height:1.9;color:#805e73;text-align:left}
#page-about .about-checklist li{display:flex;align-items:flex-start;gap:10px;min-width:0}
#page-about .about-checklist svg{width:1.15em;height:1.15em;flex:none;margin-top:.375em;color:var(--ink)}
#page-about .about-checklist li>span{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
/* CR-047: introduction and existing checklist share the right-hand column. */
#page-about .about-copy>p{margin:0 0 16px}
#page-about .about-copy>p:last-of-type{margin-bottom:0}
#page-about .about-copy .about-section{margin-top:24px}
#page-about .about-copy .about-section h2{font-size:1.4rem}
@media (max-width:680px){#page-about .about-layout{grid-template-columns:minmax(0,1fr)}}

/* CR-014: slim notebook indexes on a browser-tab baseline. */
.navrow{align-items:flex-end;gap:6px;min-height:52px;padding:8px 30px 0;background:#fff8ed;border-bottom:1px solid var(--line-soft)}
.tab{--index-color:#f8dfeb;min-width:106px;min-height:40px;padding:7px 15px;line-height:1.5;font-size:13px;font-weight:700;gap:6px;top:0;margin-bottom:-1px;border:1px solid #d9b5c6;border-top:3px solid var(--index-color);border-radius:8px 8px 0 0;background:var(--index-color);box-shadow:none;transform:none;transition:background .18s,border-color .18s}
.tab:hover{background:var(--cream);border-color:#bd92a6;border-top-color:var(--index-color);transform:none}
.tab.active{top:0;margin-bottom:-1px;padding:7px 15px;background:var(--cream);border:1px solid #cba5b7;border-top:3px solid var(--index-color);border-bottom-color:var(--cream);box-shadow:none;transform:none;z-index:1;font-weight:800}
.tab-icon{font-size:14px;opacity:.75}
@media (max-width:880px){
  /* clip preserves the rounded window without creating a sticky scroll container. */
  .shell{overflow:clip}
  .navrow{padding:6px 14px 0;gap:4px;min-height:48px;background:#fff8ed;box-shadow:0 3px 5px #79556b0a}
  .tab,.tab.active{flex:1;min-width:0;padding:7px 8px;font-size:12px;min-height:40px}
}
@media (max-width:580px){
  .navrow{padding:4px 6px 0;gap:3px;min-height:46px}
  .tab,.tab.active{padding:7px 3px;gap:3px;border-radius:6px 6px 0 0;font-size:12px}
}

/* CR-018: vertical indexes with curved feet. */
.brand{font-size:clamp(1.125rem,2.6vw,1.625rem);line-height:1.2;letter-spacing:.045em}
.window-dots{flex-shrink:0}
.navrow{align-items:flex-end;flex-wrap:nowrap;gap:0;padding:10px 30px 0;min-height:47px;border-bottom:1px solid var(--line-soft);box-shadow:none}
.navrow .tab{--index-color:#FFFAF4;--index-outline:#cba5b7;flex:0 1 112px;isolation:isolate;min-width:94px;height:36px;min-height:36px;margin:0 0 -1px;padding:7px 16px;border:0;border-radius:0;background:transparent;box-shadow:none;top:0;transform:none;font-size:.875rem;font-weight:700;line-height:1.5;white-space:nowrap;transition:color .18s}
/* Rounded shoulders and curved feet fit inside the existing tab widths and gaps. */
.navrow .tab::before,.navrow .tab::after{content:"";position:absolute;z-index:-1;border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36Q5 36 5 31V10Q5 0 15 0H97Q107 0 107 10V31Q107 36 112 36Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36Q5 36 5 31V10Q5 0 15 0H97Q107 0 107 10V31Q107 36 112 36Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;pointer-events:none}
.navrow .tab::before{inset:0;background:var(--index-outline)}
.navrow .tab::after{inset:1px 1px 1px;background:var(--index-color)}
.navrow .tab:hover{color:#a45f83;background:transparent;transform:none}
.navrow .tab.active{--index-color:#FFF0A8;height:36px;min-height:36px;padding:7px 16px;background:transparent;color:var(--ink);z-index:1}
/* Only the active index covers its bottom outline with the active fill. */
.navrow .tab.active::after{bottom:0;background:var(--index-color)}
#main{border-top:0}
@media (max-width:880px){
  .navrow{padding:8px 14px 0;gap:0;min-height:45px}
  .navrow .tab,.navrow .tab.active{flex:1 1 0;min-width:0;padding:7px 9.5px;font-size:.8125rem}
}
@media (max-width:580px){
  .topbar{padding-inline:16px}
  .navrow{padding:8px 6px 0;gap:0}
  .navrow .tab,.navrow .tab.active{padding-inline:7px;font-size:.75rem;overflow-wrap:normal}
}

/* CR-019: the title bar and indexes stay together in normal flow and while sticky. */
@media (max-width:880px){
  html{--window-titlebar-height:66px;scroll-padding-top:calc(var(--window-titlebar-height) + 45px + env(safe-area-inset-top,0px) + 12px)}
  /* Keep one solid background-color in Safari's fixed-edge ancestor walk. */
  .window-header{position:sticky;top:0;z-index:10;background:var(--yellow)}
  /* CR-022: identical stops paint a flat pink surface, without a second solid
     background-color that sends WebKit back to pixel sampling/cached tint. */
  .window-header .topbar{background-color:transparent;background-image:linear-gradient(var(--pink),var(--pink));height:calc(var(--window-titlebar-height) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
}
@media (max-width:580px){
  html{--window-titlebar-height:56px}
}

/* CR-020: retain the in-flow height so shrinking never moves the page content.
   A negative sticky inset tucks only unused title-bar space above the viewport. */
@media (max-width:880px){
  html{--window-header-trim:0px;scroll-padding-top:calc(var(--window-titlebar-height) - var(--window-header-trim) + 45px + env(safe-area-inset-top,0px) + 12px)}
  html.header-compact{--window-header-trim:22px}
  .window-header{top:calc(0px - var(--window-header-trim));transition:top .16s ease}
  .window-header .brand,.window-header .window-dots{transform:translateY(calc(var(--window-header-trim) / 2));transition:transform .16s ease,font-size .16s ease}
  .window-header .window-dots span{transition:width .16s ease,height .16s ease}
  .header-compact .window-header .brand{font-size:1rem}
  .header-compact .window-header .window-dots span{width:10px;height:10px}
}
@media (max-width:580px){
  html.header-compact{--window-header-trim:18px}
}
@media (max-width:880px) and (prefers-reduced-motion:reduce){
  .window-header,.window-header .brand,.window-header .window-dots,.window-header .window-dots span{transition:none}
}

/* CR-023: move the shell's 2px top outline into the sticky header.
   Header padding replaces that border's space, keeping content positions stable. */
@media (max-width:880px){
  .shell{--window-frame-radius:23px;border-top-width:0}
  .window-header{padding-top:2px}
  .window-header::before{content:"";position:absolute;z-index:2;top:var(--window-header-trim);left:0;right:0;height:calc(var(--window-titlebar-height) + env(safe-area-inset-top,0px) - var(--window-header-trim) + 2px);border-top:2px solid var(--line);border-radius:calc(var(--window-frame-radius) - 2px) calc(var(--window-frame-radius) - 2px) 0 0;pointer-events:none;transition:top .16s ease,height .16s ease}
  .window-header .topbar{clip-path:inset(var(--window-header-trim) 0 0 round calc(var(--window-frame-radius) - 2px) calc(var(--window-frame-radius) - 2px) 0 0);transition:clip-path .16s ease}
}
@media (max-width:880px) and (prefers-reduced-motion:reduce){
  .window-header::before,.window-header .topbar{transition:none}
}

/* CR-025: the sticky backplane covers the shell's side strokes at the corners.
   Equal negative margins and padding keep the logo and menu content in place. */
@media (max-width:880px){
  .shell{overflow:visible}
  .window-header{margin-inline:-2px;padding-inline:2px}
  .window-header::before{border:2px solid var(--line);border-bottom:0;border-radius:var(--window-frame-radius) var(--window-frame-radius) 0 0}
}

/* CR-026: continue the same outline through the menu to the body edge.
   The trim still controls its top, so no stroke extends above the curved header. */
@media (max-width:880px){
  .window-header::before{height:auto;bottom:0}
}

/* Retain the SVG contours, extending their paint through the inset feet so
   the 6px overlap closes the cream seam instead of only touching foot tips. */
.navrow .tab{z-index:5}
.navrow .tab + .tab{margin-left:-6px}
.navrow .tab:nth-child(2){z-index:4}
.navrow .tab:nth-child(3){z-index:3}
.navrow .tab:nth-child(4){z-index:2}
.navrow .tab:nth-child(5){z-index:1}
.navrow .tab::before{left:-3px;right:-3px}
.navrow .tab::after{left:-2px;right:-2px}
.navrow .tab.active{z-index:10}

/* CR-039: a greeting window and an offset print share the Home notebook. */
#page-home .scrapbook{font-family:var(--font-body);padding:30px 28px 22px;margin-bottom:44px;isolation:isolate}
#page-home .scrapbook .hero{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto;align-items:start;gap:0;padding:0;margin:0}
#page-home .hero-side{grid-column:1 / 8;grid-row:1;margin-top:24px;position:relative;z-index:3;transform:rotate(-.5deg)}
#page-home .welcome-window{max-width:none;border-width:1.5px;border-radius:12px;box-shadow:5px 7px 0 #dbaac333}
#page-home .scrapbook .window-head{font-family:'DM Sans','Trebuchet MS',sans-serif;font-weight:600;font-size:.75rem;border-bottom-width:1.5px;min-height:39px;padding:8px 13px}
#page-home .window-body{padding:26px 25px 24px}
#page-home .welcome-message p{font-size:1.0625rem;font-weight:400;line-height:1.85;letter-spacing:-.025em;color:var(--ink);margin:0;word-break:keep-all;overflow-wrap:anywhere}
#page-home .welcome-message p+p{margin-top:17px}
#page-home .actions{margin-top:23px;gap:9px}
#page-home .actions .btn{font-size:.8125rem;font-weight:400;padding:7px 12px;min-height:44px;border-width:1px;border-radius:8px;box-shadow:2px 3px 0 #eed9e1}
/* CR-060: keep the existing reopen control as a compact welcome tab. */
#welcome-window{transform-origin:center bottom}
#welcome-window .actions .btn{white-space:nowrap;max-width:100%}
#restore-welcome{padding:0;border:0;background:none;text-align:left;min-width:0}
#restore-welcome.show{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#reopen-welcome{max-width:100%;white-space:nowrap}
#welcome-goodbye{font-size:.8125rem;color:var(--ink);background:var(--cream);border:1px solid var(--line-soft);border-radius:10px;padding:4px 8px;animation:welcome-goodbye 1s ease-out both}
#welcome-goodbye[hidden]{display:none}
@keyframes welcome-goodbye{0%,75%{opacity:1}100%{opacity:0}}
#page-home .work-note{grid-column:8 / -1;grid-row:1;min-width:0;position:relative;z-index:2;margin:50px 4px 6px 20px;padding:9px;border:1px solid #eee1d4;background:var(--paper);box-shadow:2px 5px 12px #79556b1a;transform:rotate(1deg)}
#page-home .work-note-open{position:relative;display:block;width:100%;aspect-ratio:1 / 1;padding:0;border:0;border-radius:0;background:var(--cream);color:var(--ink)}
#page-home .work-note-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0}
#page-home .work-note-art img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
#page-home .work-note-art .placeholder-art{min-height:0}
#page-home .work-note-empty{padding:18px;font-size:.875rem;overflow-wrap:anywhere}

@media (max-width:880px){
  #page-home .scrapbook{padding:24px 18px 20px}
  #page-home .window-body{padding:23px 19px}
  #page-home .work-note{margin-top:60px;margin-left:16px}
}

/* CR-052: public typography roles; preserve legacy navigation, chrome and footer. */
/* CR-057: contrast-only adjustments for secondary text. */
.footer{color:#896479}
.modal .detail-type{color:#896479}
:root{--font-legacy:'Trebuchet MS','Apple SD Gothic Neo','Malgun Gothic',sans-serif;--font-body:'Pretendard','Apple SD Gothic Neo','Malgun Gothic',sans-serif;--font-title:'cafe24Ssurround','Apple SD Gothic Neo','Malgun Gothic',sans-serif;--text-body:#705064}
body{font-family:var(--font-body);font-weight:400}
.navrow .tab,.footer,.window-head,.doodle-bar{font-family:var(--font-legacy)}
.brand{font-family:'Press Start 2P','Trebuchet MS',sans-serif;font-size:19px;font-weight:400;font-synthesis:none;letter-spacing:0;white-space:nowrap;flex-shrink:0}
@media (max-width:880px){.brand,.header-compact .window-header .brand{font-size:16px}}
@media (max-width:580px){.brand,.header-compact .window-header .brand{font-size:13px}}
h1,h2,h3,.section-title,.work-name,.modal.web-detail #modal-file{font-family:var(--font-title);font-weight:700;font-synthesis:none}
/* CR-053: reuse the existing local SemiBold face for controls only. */
.btn,.chip,.doodle .doodle-action,.doodle-dialog .doodle-action{font-family:var(--font-body);font-weight:600;font-synthesis:none}
#page-home .actions .btn{font-family:var(--font-body);font-weight:600}
.doodle .doodle-action,.doodle-dialog .doodle-action{font-weight:600!important}
#page-about .about-copy>h2{font-family:var(--font-body);font-weight:600}
#page-about .about-checklist{font-weight:500}
.hero p,.page-intro p,.section-sub,.about-copy p,.etc-body p,.modal p,.note,.image-message,.empty,.work-note-empty,.doodle-note,.doodle-help,.doodle-status,.doodle-external p{color:var(--text-body)}
#page-home .welcome-message p{color:var(--text-body)}
#page-about .about-checklist{color:var(--text-body)}
.hero p,.page-intro p,.section-sub,.about-copy p,.etc-body p,.modal p,.note,.image-message,.empty,.doodle-note,.doodle-help,.doodle-status{font-weight:400}
#page-etc .doodle-note,#page-etc .doodle-help,#page-etc .doodle-status,#page-etc .doodle-external p{color:var(--text-body);font-weight:400}
#page-etc .doodle-note{font-size:.875rem}
@media (max-width:580px){
  #page-home .scrapbook{padding:14px 12px 16px;margin-bottom:32px}
  #page-home .scrapbook .hero{display:flex;flex-direction:column;align-items:stretch;gap:18px}
  #page-home .hero-side{width:100%;margin-top:0;transform:none}
  #page-home .window-body{padding:22px 17px}
  #page-home .welcome-message p{font-size:1rem}
  #page-home .actions{margin-top:19px;gap:8px}
  #page-home .actions .btn{padding:7px 10px}
  #page-home .work-note{width:86%;max-width:310px;align-self:flex-end;margin:0;transform:none}

}
