/* Theme values follow 开发规范.md. Artwork colors and export pixels are independent. */
:root {
  --page: #f8f6f1;
  --surface: #ffffff;
  --surface-soft: #f1f0eb;
  --ink: #292d29;
  --muted: #626b63;
  --accent: #27645f;
  --accent-hover: #1d504c;
  --accent-soft: #edf3ef;
  --accent-line: #b8ccc2;
  --line: #dddcd5;
  --control-line: #87948e;
  --canvas: #eaeaea;
  --focus: #397e78;
  --success: #27604b;
  --success-soft: #ecf4ee;
  --warning: #84520f;
  --warning-soft: #fff1db;
  --danger: #9b342c;
  --danger-soft: #fff0ed;
  --danger-line: #dfb5af;
  --paper-shadow: #292d291a;
  --font-title: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
*{box-sizing:border-box}
body{margin:0;font-size:16px;line-height:1.5}
button,input,select,textarea{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
a{color:var(--accent)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4%;background:var(--surface)}
.brand{font-family:var(--font-title);font-weight:600;font-size:clamp(22px,2.2vw,27px);letter-spacing:-.8px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:11px;white-space:nowrap}
.brand-mark{background:var(--accent);color:var(--surface);width:33px;height:35px;flex-shrink:0;border-radius:7px;display:grid;place-items:center;font-size:26px;font-weight:600;font-family:var(--font-title)}
.topbar>a:not(.brand){min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.local-note{font-size:14px;color:var(--muted)}
main{max-width:1480px;padding:34px 4% 0;margin:auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}
.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:750;color:var(--muted);margin:0 0 8px}
h1{font-family:var(--font-title);font-size:clamp(30px,3vw,42px);line-height:1.15;font-weight:400;letter-spacing:-1px;margin:0 0 12px}
h2{font-size:20px;line-height:1.35;margin:0;font-weight:650;letter-spacing:-.3px}
h3{margin:0;font-size:16px;font-weight:650}
.intro{color:var(--muted);margin:0;font-size:16px}
fieldset{border:0;padding:0;margin:0;min-width:0}
.layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:30px}
.controls{border:1px solid var(--line);border-radius:13px;background:var(--surface);align-self:start;overflow:hidden}
.controls section{padding:22px;border-bottom:1px solid var(--line)}
.controls section:last-child{border-bottom:0}
.section-label{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.section-label>span{font-size:12px;color:var(--muted);font-weight:650}
.section-label h2{font-size:16px}
.dropzone{border:1.5px dashed var(--control-line);border-radius:9px;min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--surface);text-align:center;padding:14px;cursor:pointer;position:relative}
.dropzone:hover,.dropzone.dragover{background:var(--accent-soft);border-color:var(--accent)}
.dropzone:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.dropzone input{position:absolute;width:1px;height:1px;opacity:0}
.dropzone strong{font-size:14px}
.dropzone>span:not(.upload-symbol){font-size:13px;color:var(--muted)}
.dropzone small{font-size:12px;margin-top:10px;color:var(--muted)}
.upload-symbol{color:var(--accent);font-size:28px;line-height:1;margin-bottom:12px}
.source-info{display:flex;gap:11px;margin:17px 0;align-items:center;min-width:0}
.source-info img{width:36px;height:46px;object-fit:contain;background:var(--canvas);border-radius:3px}
.source-info>div{min-width:0}
.source-info strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-info span{display:block;font-size:12px;color:var(--muted)}
.field-label{display:block;font-size:14px;font-weight:550;margin:16px 0 8px}
.field-label output{float:right;font-weight:450;color:var(--muted)}
select{width:100%;padding:10px 30px 10px 10px;border:1px solid var(--control-line);border-radius:6px;color:var(--ink);background:var(--surface);font-size:14px}
.ratio-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.ratio-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--surface);color:var(--ink);border:1px solid var(--control-line);border-radius:6px;min-height:98px;padding:10px 2px;font-size:14px}
.ratio-figure{display:grid;place-items:center;width:48px;height:48px;color:var(--muted)}
.ratio-shape{display:block;width:var(--shape-width);height:var(--shape-height);box-shadow:0 0 0 1px currentColor;border-radius:1px;background:var(--surface);visibility:hidden}
.ratio-options.ready .ratio-shape{visibility:visible}
.ratio-options button[aria-pressed=true] .ratio-figure{color:var(--accent)}
.ratio-options button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent);font-weight:650}
.ratio-options button:last-child{grid-column:span 2}
.check-line{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:13px}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}
input[type=range]{width:100%;accent-color:var(--accent)}
.muted{color:var(--muted)}
.small{font-size:13px;line-height:1.6}
.local-detail{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-bottom:0}
.compare-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 17px}
.compare-heading .eyebrow{margin-bottom:5px}
.no-stretch{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:5px 11px;background:var(--surface)}
.comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.preview-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.preview-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.mode-heading{padding:18px;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:84px}
.mode-heading strong{display:block;font-size:16px}
.mode-heading small{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.art-stage{height:326px;background:var(--canvas);display:flex;align-items:center;justify-content:center;padding:20px;border-block:1px solid var(--line)}
.art-stage canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 3px 12px var(--paper-shadow);background:var(--surface);object-fit:contain;display:block}
#crop-preview{cursor:grab;touch-action:none}
#crop-preview:active{cursor:grabbing}
.preview-caption{padding:13px 15px;display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);min-height:51px;align-items:center}
.mini-tag{background:var(--surface-soft);border-radius:4px;padding:3px 6px;white-space:nowrap}
.crop-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:15px 4px;font-size:13px}
.crop-controls>span{font-weight:600}
.crop-controls label{display:flex;align-items:center;gap:8px}
.crop-controls input{width:95px}
.crop-controls small{width:100%;color:var(--muted);font-size:12px}
.text-button{min-height:44px;border:0;background:transparent;color:var(--accent);padding:4px}
.output-panel{margin-top:20px;padding:20px 23px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.output-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.status{font-size:12px;color:var(--success);background:var(--success-soft);padding:4px 8px;border-radius:4px}
.status.warning{background:var(--warning-soft);color:var(--warning)}
.output-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:19px}
.output-grid>div{border-right:1px solid var(--line)}
.output-grid>div:last-child{border:0}
.output-grid span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.output-grid strong{font-size:17px;font-weight:600}
.resolution-note{font-size:13px;color:var(--muted);margin:13px 0}
.resolution-note.warning{color:var(--warning)}
.file-preview{background:var(--page);border-radius:5px;padding:9px 11px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:12px;overflow-wrap:anywhere}
#output-name{font-family:ui-monospace,Consolas,monospace}
#actual-size{color:var(--muted)}
.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.primary,.secondary{border-radius:6px;padding:11px 16px;line-height:1.3;font-size:14px;font-weight:600;min-height:44px}
.primary{background:var(--accent);color:var(--surface);border:1px solid var(--accent)}
.primary:hover:enabled{background:var(--accent-hover)}
.primary>span{padding-left:13px}
.secondary{border:1px solid var(--control-line);color:var(--ink);background:var(--surface)}
.secondary:hover:enabled{background:var(--surface-soft)}
.pack-section{margin-top:29px;padding:24px 0;border-top:1px solid var(--line)}
.pack-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pack-heading h2>span{font-weight:400;font-size:13px;color:var(--muted);margin-left:8px}
.pack-empty{font-size:14px;color:var(--muted);padding:22px 0}
.pack-section ul{list-style:none;padding:0;margin:18px 0}
.pack-section li{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:7px;margin-top:8px}
.file-icon{font-size:11px;font-weight:700;border:1px solid var(--control-line);border-radius:3px;color:var(--accent);padding:8px 5px}
.pack-section li>div{min-width:0;flex:1}
.pack-section li strong{font-size:13px;display:block;overflow-wrap:anywhere;font-weight:550}
.pack-section li small{font-size:12px;color:var(--muted)}
.remove{min-width:44px;min-height:44px;font-size:22px;line-height:1;border:0;background:none;padding:8px;color:var(--muted)}
.pack-status{font-size:13px;color:var(--warning)}
.pack-footnote{font-size:12px;color:var(--muted);line-height:1.7;max-width:680px}
.pack-footnote a{white-space:nowrap}
.zip-downloads{display:flex;gap:10px;flex-wrap:wrap}
.zip-downloads a{display:inline-block;font-size:14px;padding:8px 12px;border:1px solid var(--accent);border-radius:5px;background:var(--surface);text-decoration:none}
.notice{padding:12px 16px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:7px;color:var(--accent);font-size:14px;margin-bottom:20px}
.notice.error{color:var(--danger);border-color:var(--danger-line);background:var(--danger-soft)}
footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;padding:23px 0;color:var(--muted);font-size:12px;margin-top:12px}
footer strong{font-size:15px;color:var(--muted)}
fieldset:disabled #crop-preview{cursor:wait}
@media(min-width:1450px){.art-stage{height:370px}
}
@media(max-width:1080px){main{padding-inline:3%}
.layout{grid-template-columns:222px minmax(0,1fr);gap:21px}
.controls section{padding:17px}
.art-stage{height:290px}
.mode-heading{padding:13px;gap:7px}
.mode-heading strong{font-size:14px}
.mode-heading small{font-size:12px}
.mini-tag{display:none}
.output-panel{padding:18px}
.output-grid strong{font-size:15px}
}
@media(max-width:760px){.topbar{height:auto;min-height:66px;padding:12px 18px;gap:8px;flex-wrap:wrap}
.local-note{display:none}
main{padding:24px 18px 0}
.page-heading{margin-bottom:22px}
h1{font-size:32px}
.intro{font-size:14px}
.layout{display:flex;flex-direction:column;gap:23px}
.controls{width:100%;display:grid;grid-template-columns:1fr 1fr}
.controls section{border-right:1px solid var(--line)}
.controls .source-section{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.source-section .section-label{grid-column:1/-1}
.dropzone{grid-row:span 2;min-height:145px}
.source-info{margin:0}
.source-info strong{font-size:12px}
.controls section:last-child{border-right:0}
.local-detail{display:none}
.controls .small{font-size:12px}
.comparison{gap:11px}
.art-stage{height:245px;padding:12px}
.mode-heading{min-height:91px;align-items:flex-start}
.mode-heading input{margin-top:3px}
.mode-heading small{line-height:1.45}
.preview-caption{padding:10px;font-size:12px}
.no-stretch{display:none}
.output-grid{gap:8px}
.output-grid strong{font-size:14px}
.output-grid span{font-size:12px}
.output-grid>div{padding-right:6px}
.actions{gap:8px}
.primary,.secondary{padding:10px 12px}
.actions .primary{width:100%}
.actions .secondary{flex:1}
.pack-heading h2{font-size:18px}
.pack-heading .primary{font-size:13px}
.pack-heading .eyebrow{font-size:11px}
.pack-heading h2>span{display:block;margin:5px 0 0}
.pack-footnote a{white-space:normal}
footer{flex-direction:column;gap:6px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}
}


a.secondary,a.primary{text-decoration:none;text-align:center;display:inline-flex;align-items:center;justify-content:center}
a[aria-disabled=true]{opacity:.45;cursor:not-allowed}


.preview-card{display:flex;flex-direction:column}
.mode-heading{flex:1}
.art-stage,.preview-caption{flex-shrink:0}
@media(max-width:760px){.preview-caption{min-height:74px}
}

.export-options summary{min-height:44px;align-content:center;cursor:pointer;font-size:14px;font-weight:600}
.export-options summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.export-help{font-size:13px;color:var(--muted);margin:14px 0 0}
@media(max-width:760px){.controls section{grid-column:1/-1;border-right:0}
.ratio-options{grid-template-columns:repeat(5,1fr)}
.ratio-options button:last-child{grid-column:auto}
.output-title{align-items:flex-start;flex-wrap:wrap}
}

.sample-actions{margin-top:14px;min-width:0}
.sample-actions .secondary{width:100%;text-align:center}
.sample-credit{display:block;font-size:12px;color:var(--muted);margin-top:7px}
@media(max-width:480px){
.controls .source-section{grid-template-columns:minmax(0,1fr);gap:14px}
.source-section .dropzone{grid-row:auto}
.source-section .section-label,.source-section .sample-actions{margin:0}
}
@media(max-width:360px){.ratio-options{grid-template-columns:repeat(3,1fr)}.ratio-options button:last-child{grid-column:span 2}}

.guide-link{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;font-size:14px;text-underline-offset:4px}
.footer-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.footer-links a,.footer-links button{min-height:44px;display:inline-flex;align-items:center;font-size:13px;text-underline-offset:3px}
.info-page{max-width:820px;padding-top:48px}
.info-page section{margin:32px 0}
.info-page h2{margin-bottom:12px}
.info-page p{line-height:1.75}
.size-guide-page section{scroll-margin-top:24px}
.size-guide-page a.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}
.pixel-table th span{display:block;white-space:normal;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.print-checklist{padding-left:22px;color:var(--muted);line-height:1.75}
.print-checklist li{margin:8px 0}
.analytics-choice{position:fixed;bottom:18px;left:18px;right:18px;max-width:480px;background:var(--surface);border:1px solid var(--control-line);border-radius:10px;padding:20px;box-shadow:0 3px 12px var(--paper-shadow);z-index:5}
.analytics-choice strong{font-size:16px}
.analytics-choice p{font-size:14px;color:var(--muted);margin:8px 0 16px}
.analytics-choice>div{display:flex;gap:12px;flex-wrap:wrap}
.print-guide{margin-top:48px;padding-top:40px;border-top:1px solid var(--line);scroll-margin-top:24px}
.guide-heading{display:flex;justify-content:space-between;align-items:center;gap:28px}
.guide-heading>div{max-width:740px}
.guide-heading h2{font-family:var(--font-title);font-size:clamp(27px,2.6vw,34px);font-weight:400;line-height:1.2;letter-spacing:-.5px}
.guide-heading p:not(.eyebrow){margin:14px 0 0;color:var(--muted)}
.guide-heading>a{white-space:nowrap;flex-shrink:0}
.guide-nav{display:flex;gap:24px;flex-wrap:wrap;margin-top:20px}
.guide-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-underline-offset:4px}
.guide-section{padding:32px 0;border-bottom:1px solid var(--line);scroll-margin-top:24px}
.guide-section:last-child{border-bottom:0}
.guide-section h3{font-size:20px;letter-spacing:-.3px}
.guide-section p,.guide-section dd{color:var(--muted);font-size:15px;line-height:1.7}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding-left:24px;margin:22px 0 0}
.guide-steps li{padding-left:5px}
.guide-steps li::marker{color:var(--accent);font-weight:650}
.guide-steps strong{font-size:16px}
.guide-steps p{margin:8px 0 0}
.framing-guide{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:center}
.framing-guide dl{margin:20px 0 0}
.framing-guide dt{font-size:15px;font-weight:650;margin-top:16px}
.framing-guide dd{margin:4px 0 0}
.framing-example{max-width:390px;width:100%;justify-self:center}
.example-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.example-pair figure{margin:0;min-width:0}
.example-paper{aspect-ratio:4/5;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 3px 12px var(--paper-shadow);overflow:hidden}
.example-paper img{display:block;width:100%;height:100%;object-fit:cover}
.example-fit img{object-fit:contain}
.example-pair figcaption{font-size:14px;font-weight:600;text-align:center;margin-top:12px}
.example-pair figcaption span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.framing-example .example-note{font-size:12px;text-align:center;margin:16px 0 0}
.sizes-guide{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.print-detail-note{border-left:3px solid var(--accent-line);padding:4px 0 4px 16px;margin:22px 0 0}
.print-detail-note strong{display:block;color:var(--ink);margin-bottom:6px}
.size-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.size-table caption{text-align:left;font-size:13px;color:var(--muted);margin-bottom:12px}
.size-table th,.size-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.size-table thead th{background:var(--surface-soft);font-weight:600}
.size-table tbody th{color:var(--accent);white-space:nowrap;font-weight:600}
.size-table td{color:var(--muted);line-height:1.8}
.guide-faq h3{margin-bottom:16px}
.guide-faq details{border-bottom:1px solid var(--line)}
.guide-faq details:last-child{border-bottom:0}
.guide-faq summary{padding:17px 4px;cursor:pointer;font-size:15px;font-weight:550;min-height:44px}
.guide-faq summary::marker{color:var(--accent)}
.guide-faq summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.guide-faq details p{margin:0;padding:0 24px 18px;max-width:880px}
@media(max-width:760px){
  .page-heading{flex-wrap:wrap;gap:8px}
  .print-guide{margin-top:32px;padding-top:28px}
  .guide-heading{align-items:flex-start;flex-direction:column;gap:18px}
  .guide-nav{gap:8px 20px;margin-top:16px}
  .guide-section{padding:28px 0}
  .guide-steps{grid-template-columns:1fr;gap:20px}
  .framing-guide,.sizes-guide{grid-template-columns:1fr;gap:26px}
  .framing-example{max-width:340px}
  .size-table th,.size-table td{padding:10px 8px}
  .guide-faq details p{padding-inline:4px}
}


/* Feedback uses the same studio palette and controls as the tool. */
.topbar-actions{display:flex;align-items:center;gap:24px}
.topbar-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.feedback-prompt{margin:0;padding:0 4px;font-size:14px;color:var(--muted)}
.feedback-prompt a{display:inline-flex;align-items:center;min-height:44px}
.feedback-dialog{width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);overflow-y:auto}
.feedback-dialog::backdrop{background:var(--ink);opacity:.38}
.feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.feedback-heading h2{margin:0;font-size:22px}
.feedback-heading button{white-space:nowrap;min-height:44px}
.feedback-dialog>.muted{margin:8px 0 20px;font-size:14px}
.feedback-form{position:relative}
.feedback-form .field-label:first-child{margin-top:0}
.feedback-form textarea,.feedback-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--control-line);border-radius:6px;background:var(--surface);color:var(--ink)}
.feedback-form select{min-height:44px;font-size:16px}
.feedback-form textarea{resize:vertical;min-height:110px;max-height:260px;display:block}
.feedback-form .small{font-size:13px;line-height:1.5;margin:8px 0 16px}
.feedback-form .feedback-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.feedback-actions{display:flex;gap:12px}
.feedback-form .feedback-result{margin:0 0 16px;overflow-wrap:anywhere}
.feedback-form .feedback-success{background:var(--success-soft);color:var(--success)}
.feedback-form .feedback-error{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-line)}
.feedback-page-card{max-width:600px;background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:12px}
@media(max-width:760px){.topbar-actions .local-note{display:none}.topbar-actions{margin-left:auto}.feedback-dialog{padding:20px}.feedback-heading h2{font-size:20px}.feedback-page-card{padding:20px}}

.selected-print{font-size:13px;line-height:1.6;color:var(--accent);margin:0 0 16px;grid-column:1/-1}
.source-info #source-print-size{margin-top:7px}
.print-calculator{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.calculator-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.calculator-grid .field-label{margin-top:0}
.calculator-grid select,.calculator-grid input[type=number]{min-height:44px;width:100%;font-size:16px}
.calculator-grid input[type=number]{padding:10px 12px;border:1px solid var(--control-line);border-radius:6px;background:var(--surface);color:var(--ink)}
.pixel-target{padding:16px;background:var(--accent-soft);border-radius:6px;color:var(--accent)}
.pixel-target span{display:block;font-size:13px}
.pixel-target strong{display:block;font-size:22px;font-weight:600;margin:5px 0}
.print-calculator>p.small{margin-bottom:0}
.pixel-calculator{margin-top:24px;border-top:1px solid var(--line)}
.pixel-calculator summary{padding:16px 0 8px;min-height:44px;font-weight:600;cursor:pointer}
.pixel-calculator summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.pixel-calculator button{margin-top:16px}
.pixel-result{margin-top:20px;padding:16px;background:var(--surface-soft);border-radius:6px}
.pixel-result p:last-child{margin-bottom:0}
.frame-size-examples{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.frame-size-examples figure{margin:0;min-width:0}
.frame-size-stage{height:240px;background:var(--canvas);padding:16px;display:flex;align-items:center;justify-content:center;border-radius:8px}
.frame-size-stage img{width:auto;height:100%;aspect-ratio:4/5;object-fit:cover;box-shadow:0 2px 8px var(--paper-shadow)}
.frame-size-stage.frame-eleven img{aspect-ratio:11/14}
.frame-size-examples figcaption{margin-top:12px;font-size:14px}
.frame-size-examples figcaption strong,.frame-size-examples figcaption span{display:block}
.frame-size-examples figcaption span{color:var(--muted);font-size:13px;margin:4px 0}
.frame-size-examples a{display:inline-flex;align-items:center;min-height:44px}
.pixel-table tbody a{display:inline-block;min-height:44px;padding-block:8px;text-underline-offset:3px}
@media(max-width:600px){.print-calculator{padding:20px}.calculator-grid{grid-template-columns:1fr;gap:16px}.frame-size-examples{gap:16px}.frame-size-stage{height:184px;padding:12px}.frame-size-examples a{font-size:13px}}
@media(max-width:360px){.frame-size-stage{height:150px}.print-calculator{padding:16px}}

/* Keep navigation separate from artwork state; these are same-page links. */
.tool-root{--section-nav-height:78px;scroll-padding-top:var(--section-nav-height)}
.tool-topbar{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px}
.tool-topbar .topbar-actions{justify-self:end}
.section-nav{display:flex;align-items:center;gap:20px;height:100%}
.section-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:100%;padding:0 8px;border-bottom:3px solid transparent;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;color:var(--muted)}
.section-nav a:hover{color:var(--accent)}
.section-nav a[aria-current="location"]{color:var(--accent);border-bottom-color:var(--accent)}
.tool-page main [id]{scroll-margin-top:16px}
@media(max-width:1100px){.tool-topbar .local-note{display:none}}
@media(max-width:760px){
  .tool-root{--section-nav-height:101px}
  .tool-topbar{height:auto;grid-template-columns:minmax(0,1fr) auto;padding:8px 18px 0;gap:4px 12px}
  .tool-topbar .brand{font-size:22px;gap:8px}
  .tool-topbar .topbar-actions{grid-column:2;grid-row:1}
  .section-nav{grid-column:1/-1;grid-row:2;gap:16px}
  .section-nav a{flex:1;min-height:44px}
}
@media(max-width:360px){.tool-topbar .brand{font-size:20px}.tool-topbar .brand-mark{width:28px;height:30px;font-size:24px}}
