:root {
  color-scheme:light;
  --bg:#f6f5f2;
  --card:#ffffff;
  --text:#252423;
  --muted:#5b5854;
  --primary:#33312f;
  --primary-text:#ffffff;
  --accent:#8b8277;
  --line:#e4e0da;
  --paper:#fcfbf9;
  --selected:#eceae6;
  --radius:12px;
  --site-head-height:62px;
  --heading:"DM Serif Text",Georgia,serif;
  --body:"Instrument Sans",system-ui,sans-serif;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#191816;
  --card:#282623;
  --text:#f6f5f2;
  --muted:#c6bfb5;
  --primary:#eceae6;
  --primary-text:#252423;
  --line:#45413b;
  --paper:#22201d;
  --selected:#34302b;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Instrument Sans",system-ui,sans-serif;font-size:16px;line-height:1.6}
h1,h2,h3,p{margin:0}
h1,h2{font-family:"DM Serif Text",Georgia,serif;font-size:36px;font-weight:400;line-height:1.12;letter-spacing:-.025em}
h3{font-size:18px;line-height:1.35}
p{max-width:70ch}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
[hidden]{display:none !important}
.wrap{width:100%;max-width:1120px;margin-inline:auto;padding-inline:24px}
.skip-link{position:fixed;z-index:2;top:8px;left:8px;padding:8px 16px;background:var(--card);border-radius:var(--radius);transform:translateY(-200%)}
.skip-link:focus{transform:none}
.site-head{border-bottom:1px solid var(--line)}
.site-head-inner,.foot-inner{display:flex;min-height:calc(var(--site-head-height) - 1px);justify-content:space-between;align-items:center;gap:16px}
.wordmark{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:700;line-height:1;text-decoration:none;letter-spacing:-.04em}
.wordmark-icon{width:32px;height:32px;flex:none}
.top-nav,.site-foot nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.top-nav a,.site-foot nav a{font-size:14px;font-weight:600;text-decoration:none}
.top-nav a:hover,.site-foot nav a:hover{color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.theme-toggle{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--text);-webkit-tap-highlight-color:transparent}
.theme-toggle:hover,.theme-toggle:active{opacity:.74}
.theme-moon{width:14px;height:14px;border-radius:50%;box-shadow:-4px 2px 0 -1px currentColor;transform:translate(2px,-1px)}
.theme-sun{display:none;width:8px;height:8px;border:1.5px solid currentColor;border-radius:50%;box-shadow:0 -7px 0 -3px currentColor,0 7px 0 -3px currentColor,7px 0 0 -3px currentColor,-7px 0 0 -3px currentColor,5px 5px 0 -3px currentColor,-5px 5px 0 -3px currentColor,5px -5px 0 -3px currentColor,-5px -5px 0 -3px currentColor}
:root[data-theme="dark"] .theme-moon{display:none}
:root[data-theme="dark"] .theme-sun{display:block}
.tool-intro{padding:32px 0 24px}
.tool-intro h1{font:700 48px/1.04 var(--body);letter-spacing:-.04em;word-spacing:.025em}
.tool-intro p{margin-top:8px;font-size:18px;color:var(--muted)}
.guide{margin:48px 0 64px}
.guide-section{padding:32px 0;border-top:1px solid var(--line)}
.guide-section h2{margin-bottom:24px}
.steps{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.steps li{counter-increment:step}
.steps li::before{content:counter(step);display:grid;place-items:center;width:32px;height:32px;margin-bottom:12px;border-radius:50%;background:var(--selected);color:var(--primary);font-weight:700}
.steps p,.example p,.note-section p{margin-top:8px;color:var(--muted)}
.examples{display:grid;grid-template-columns:1fr;gap:0;max-width:840px}
.example{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.example:first-child{padding-top:0}
.example:last-child{border:0;padding-bottom:0}
.example-icon{width:72px;height:64px;display:grid;padding:12px;gap:4px;border-radius:var(--radius);background:var(--selected)}
.example-icon i{border-radius:2px;background:var(--primary)}
.example-icon i:nth-child(2n){background:var(--accent)}
.example-icon:not(.example-grid) i:nth-child(n+3){display:none}
.example-wide{grid-template-columns:1fr 1fr}
.example-stack{grid-template-rows:1fr 1fr;justify-content:center;grid-template-columns:30px}
.example-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.note-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:32px;align-items:start}
.note-section p:first-child{margin-top:0}
.text-link{color:var(--primary);font-weight:700;text-underline-offset:4px}
.note-section .text-link{display:inline-block;margin-top:12px}
.faq-list{max-width:840px}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list details:first-child{border-top:1px solid var(--line)}
.faq-list summary{padding:14px 0;font-weight:700;cursor:pointer}
.faq-list p{margin:0 0 16px;color:var(--muted)}
.site-foot{border-top:1px solid var(--line)}
.foot-inner{min-height:88px}
.legal{max-width:730px;padding:48px 0 64px}
.legal h1{margin-top:16px}
.legal-body{margin-top:16px}
.legal-body h2{font-size:28px;margin:24px 0 8px}
.legal-body p+p{margin-top:12px}
@media (max-width:640px){
  .wrap{padding-inline:16px}
  :root{--site-head-height:61px}
  .wordmark{font-size:18px}
  .wordmark-icon{width:28px;height:28px}
  .site-head-inner{min-height:52px;flex-wrap:nowrap;gap:8px}
  .top-nav{width:auto;flex-wrap:nowrap;gap:10px;margin-left:auto;color:var(--text)}
  .top-nav,.site-foot nav{gap:10px}
  .top-nav a{font-size:12.5px;display:inline-flex;align-items:center;min-height:40px;padding-inline:1px;white-space:nowrap}
  .site-foot nav a{font-size:12.5px;min-height:36px}
  .theme-toggle{height:40px;width:40px}
  .tool-intro{padding:24px 0 16px}
  .tool-intro h1{font-size:32px}
  .tool-intro p{font-size:16px}
  h2{font-size:28px}
  .steps,.note-section{grid-template-columns:1fr;gap:24px}
  .note-section h2{margin-bottom:0}
  .guide{margin:32px 0}
}
@media (max-width:360px){
  .site-head-inner{gap:5px}
  .site-head .wrap.site-head-inner{padding-inline:12px}
  .top-nav{gap:4px}
  .top-nav a{font-size:12px}
  .wordmark{gap:5px;font-size:17px}
  .theme-toggle{width:32px}
}

/* Align the homepage navigation with the wider working area. */
body:has(.tool-shell) .site-head-inner{max-width:1728px;padding-inline:clamp(16px,5vw,80px)}
body:has(#merge.is-editing) .site-head-inner{padding-inline:clamp(16px,3vw,48px)}

/* The task owns the first viewport. The guide starts below it. */
.tool-shell{
  min-block-size:calc(100vh - var(--site-head-height));
  min-block-size:calc(100svh - var(--site-head-height));
}
.tool-shell:not(:has(#merge.is-editing)){
  min-block-size:min(calc(100svh - var(--site-head-height)),720px);
}
.tool-shell:not(:has(#merge.is-editing)){
  display:grid;
  align-content:start;
  padding-block:clamp(14px,2.4vh,24px) clamp(24px,4vh,44px);
}
.tool-shell:not(:has(#merge.is-editing)) .tool-intro{
  padding:0 0 clamp(24px,3.5vh,36px);
  text-align:center;
}
.tool-shell:not(:has(#merge.is-editing)) h1{
  font:400 clamp(38px,5.5vw,72px)/1.04 var(--heading);
  letter-spacing:-.048em;
  text-wrap:balance;
}
.tool-shell:not(:has(#merge.is-editing)) .tool-intro p{
  margin:clamp(12px,1.7vh,16px) auto 0;
  font-size:clamp(15px,1.5vw,19px);
  line-height:1.45;
  text-wrap:balance;
}
@media (max-width:640px){
  .tool-shell:not(:has(#merge.is-editing)){align-content:start;min-block-size:auto;padding-block:clamp(14px,2.6vh,24px) 20px}
  .tool-shell:not(:has(#merge.is-editing)) h1{font-size:clamp(30px,7.8vw,35px);line-height:1.1;letter-spacing:-.03em}
  .tool-shell:not(:has(#merge.is-editing)) .tool-intro p{max-width:36ch;margin-top:10px}
}

/* Give the canvas the space previously occupied by the landing title. */
#main:has(#merge.is-editing){max-width:1728px}
.tool-shell:has(#merge.is-editing){padding-top:12px}
@media (min-width:801px){
  .tool-shell:has(#merge.is-editing){padding-top:clamp(12px,calc(12px + (100svh - 660px) * .125),36px)}
}
.tool-shell:has(#merge.is-editing) .tool-intro{display:none}
@media (max-width:640px){.tool-shell:has(#merge.is-editing){padding-top:10px}}

.scenario-guide{max-width:730px;margin-inline:auto}
.scenario-guide h3{margin:20px 0 8px}
.scenario-guide li+li{margin-top:8px}
.scenario-guide img{display:block;max-width:100%;height:auto}
.example-guide-link{display:inline-block;margin-top:8px}


/* Tool module polish 2026-11-29 */
#merge .pm-empty-meta{align-items:center;justify-content:center;gap:8px 16px;margin-top:10px}
#merge .pm-upload-hint{font-size:14px}
#merge .pm-sample-link{padding-inline:2px}
#merge .pm-upload-button{max-width:264px;min-height:52px;border-radius:10px}


@media (max-width:480px){
  .top-nav{gap:8px}
  .top-nav a{font-size:12px}
  .theme-toggle{width:36px;height:40px}
  .wordmark{font-size:17px}
  .wordmark-icon{width:26px;height:26px}
  .site-foot nav{gap:8px}
  .site-foot nav a{font-size:12px}
}
