*{box-sizing:border-box}html{font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--canvas)}body{margin:0}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.wrap{max-width:1512px;width:calc(100% - clamp(40px,8vw,144px));margin:auto}header{background:#fff;border-bottom:1px solid var(--border)}.top{min-height:70px;display:flex;align-items:center;gap:clamp(22px,5vw,90px)}.brand{display:flex;align-items:center;gap:10px;color:#451134;flex-shrink:0}.top nav{display:flex;align-self:stretch;gap:6px;align-items:center}.top nav a,.plain{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:580;color:var(--muted)}.top nav a{padding:9px 14px;border-radius:7px}.top nav a[aria-current=page]{background:var(--selected);color:var(--accent)}.top nav a:hover,.plain:hover,footer button:hover{color:var(--accent)}.plain,footer button,.format button,.copy{border:0;background:transparent}.guide{margin-left:auto}.ico{width:17px;height:17px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.billboard{position:relative;overflow:hidden;isolation:isolate;margin:23px 0 29px;min-height:110px;border:1px solid #694129;background:#43291e;color:white;display:flex;align-items:center;justify-content:space-between;padding:15px clamp(20px,3vw,48px);border-radius:11px}.billboard:before{content:"";position:absolute;inset:0 0 0 33%;z-index:-1;background:repeating-linear-gradient(31deg,transparent 0 31px,#f5b28026 32px,transparent 33px),repeating-linear-gradient(149deg,transparent 0 31px,#f5b28026 32px,transparent 33px);mask-image:linear-gradient(90deg,transparent,#000 42%,#000)}.adcopy{z-index:1}.adcopy span{font-size:10px;font-weight:650;letter-spacing:1.6px;color:#ffd4a8;display:block;margin-bottom:3px}.adcopy strong{font-family:Georgia,serif;font-size:clamp(21px,2.1vw,31px);letter-spacing:-.7px;font-weight:500;line-height:1.2}.adcopy p{font-size:14px;margin:2px 0 0;color:#f6e5d7}.billboard>a{background:#fff0db;color:#472919;border:1px solid #e6be92;border-radius:6px;padding:8px 13px;font-size:13px;font-weight:650;display:inline-flex;align-items:center;gap:10px;z-index:1}.billboard>a:hover{background:white}.art{position:absolute;height:140px;width:230px;left:62%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.paper{position:absolute;left:55px;top:17px;width:112px;height:95px;border:2px solid #392217;border-radius:5px;transform:rotate(-30deg) skewX(26deg) scaleY(.73);box-shadow:0 4px 0 #2a1b16}.paper.back{background:#bd794a;top:36px;left:49px}.paper.mid{background:#e5b58a;top:26px;left:51px}.paper.front{background:linear-gradient(130deg,#fff9ed,#ebc4a0);color:#694127;padding:6px 12px}.paper b{font:bold 36px/1.25 monospace;letter-spacing:-5px}.paper em{display:block;width:75%;border-top:3px solid #ac7957;margin:7px 0}.paper em:last-child{width:52%}.star{position:absolute;color:#ffd6a4}.s1{left:10px;top:47px;font-size:26px}.s2{right:11px;top:40px;font-size:34px}.intro{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px}.crumb{font-size:13px;color:var(--muted);display:flex;gap:9px;align-items:center}.crumb span{color:#ad9e91}.crumb b{font-weight:550;color:var(--muted)}h1{font-size:clamp(31px,3vw,45px);line-height:1.1;letter-spacing:-1.9px;margin:9px 0 6px;font-weight:680}.intro p{margin:0;color:var(--muted)}.actions,.actions button,.filename,.format,.paneltitle,.copy,.status>span,.modes,.modes button,footer span{display:flex;align-items:center}.actions{gap:9px;align-self:flex-end;margin-bottom:2px}.actions button{gap:8px;background:white;border:1px solid var(--border);padding:9px 14px;border-radius:7px;font-size:14px;font-weight:600}.actions .primary{background:var(--primary);color:white;border-color:var(--primary)}.actions button:hover{filter:brightness(.96)}.menuwrap{position:relative}.menu{position:absolute;top:calc(100% + 6px);right:0;z-index:5;min-width:183px;background:white;padding:5px;border:1px solid var(--border);border-radius:8px;box-shadow:0 7px 30px #33251a1f}.menu button{border:0;width:100%;font-weight:500}.desk{background:white;border:1px solid var(--border);border-radius:11px;overflow:hidden;box-shadow:0 3px 12px #33251a05}.deskbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 17px;border-bottom:1px solid var(--border);min-height:55px}.filename{gap:9px;min-width:0;font:14px ui-monospace,Consolas,monospace}.filename strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:530}.filename .ico{color:var(--accent)}.modes{background:var(--raised);padding:3px;border-radius:7px;gap:2px}.modes button{font-size:12px;gap:6px;border:1px solid transparent;background:transparent;border-radius:5px;padding:4px 10px;color:var(--muted)}.modes button[aria-pressed=true]{background:white;color:var(--accent);box-shadow:0 1px 3px #33251a20;border-color:var(--border)}.modes .ico{width:14px}.panes{display:grid;grid-template-columns:1fr 1fr}.pane{min-width:0}.source{border-right:1px solid var(--border)}.desk[data-mode=source] .panes,.desk[data-mode=preview] .panes{grid-template-columns:1fr}.desk[data-mode=preview] .source,.desk[data-mode=source] .result{display:none}.desk[data-mode=source] .source{border:0}.panelbar{padding:0 16px;height:44px;background:var(--raised);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:6px}.paneltitle{gap:8px;text-transform:uppercase;letter-spacing:1.25px;font-size:11px;font-weight:700;color:var(--muted)}.paneltitle .ico{color:var(--accent);width:15px}.format{gap:3px}.format button,.copy{color:var(--muted);font-size:12px;border-radius:4px;padding:4px 6px}.format button:hover,.copy:hover{background:var(--selected)}.format button{min-width:24px;font-size:14px}.format button[aria-pressed=true]{color:var(--accent);background:var(--selected)}.copy{gap:6px}.copy .ico{width:13px}.editing,#output{height:clamp(395px,49vh,740px)}.editing{display:grid;grid-template-columns:43px minmax(0,1fr);background:var(--inset)}.editing textarea,#gutter{font:14px/25px ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;tab-size:2;margin:0;padding:20px 0}.editing textarea{width:100%;height:100%;border:0;border-radius:0;resize:none;background:transparent;color:var(--text);outline-offset:-3px;padding-right:14px}.editing textarea:focus{outline:none}.editing:focus-within{box-shadow:inset 2px 0 var(--accent)}#gutter{overflow:hidden;color:#786e65;text-align:right;padding-right:11px;font-size:12px;user-select:none;white-space:pre}#output{overflow:auto;padding:21px clamp(18px,2.4vw,36px);overflow-wrap:anywhere;line-height:1.62;font-size:15px}#output>:first-child{margin-top:0}#output h1,#output h2,#output h3{line-height:1.2;letter-spacing:-.8px;font-weight:660}#output h1{font-size:31px;margin:0 0 13px}#output h2{font-size:20px;margin:23px 0 8px}#output h3{font-size:17px}#output p,#output ul,#output ol{margin:8px 0 14px}#output ul,#output ol{padding-left:23px}#output li{padding-left:2px}#output li::marker{color:var(--accent)}#output blockquote{margin:15px 0;border-left:3px solid var(--accent);background:var(--raised);padding:8px 13px;color:var(--muted)}#output blockquote p{margin:0}#output pre,#dbody pre{white-space:pre-wrap;background:var(--raised);border-radius:6px;padding:12px}#output pre.raw{background:transparent;padding:0;white-space:pre;overflow-wrap:normal;font:14px/1.65 ui-monospace,monospace}#output code,#dbody code{background:var(--raised);border-radius:3px;color:var(--accent);padding:1px 4px;font-size:.88em}#output a,#dbody a{color:var(--accent);text-decoration:underline}#output table{border-collapse:collapse}#output td,#output th{border:1px solid var(--border);padding:4px 9px}#output .error{color:#9e353d}.status{border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:8px 17px;color:var(--muted);font-size:12px}.status>span{gap:6px}.status .ico{color:#638072;width:15px}footer{display:flex;justify-content:space-between;align-items:center;padding:17px 1px 25px;color:var(--muted);font-size:12px}footer span{gap:6px}footer .ico{width:13px}footer div{display:flex;gap:10px}footer button{padding:0;font-size:12px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#433026;color:white;padding:9px 16px;border-radius:7px;z-index:8;font-size:14px}dialog{border:1px solid var(--border);border-radius:13px;width:min(600px,94vw);max-height:82vh;color:inherit;padding:22px 26px;box-shadow:0 18px 60px #3724174a}dialog::backdrop{background:#30282066}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialoghead h2{margin:0;letter-spacing:-.7px}.dialoghead button{font-size:25px;border:0;border-radius:5px;background:var(--raised);width:34px}.refrow{display:grid;grid-template-columns:1fr 1.7fr;align-items:center;border-top:1px solid var(--border);padding:10px 0;gap:8px}.refrow code{width:fit-content}#dbody p{color:var(--muted)}[hidden]{display:none!important}
@media(min-width:1650px){.art{left:65%}}
@media(max-width:850px){.top{gap:16px}.top nav a{padding:7px 9px}.art{left:62%;transform:translate(-50%,-50%) scale(.78)}.wrap{width:calc(100% - 36px)}.intro p{font-size:14px}.panelbar{padding:0 10px}.format{gap:0}}
@media(max-width:650px){.top{flex-wrap:wrap;gap:0;min-height:0;padding:13px 0 5px}.brand{font-size:22px}.brand img{width:30px;height:30px}.top nav{order:3;flex:0 0 100%;margin-top:10px;gap:6px}.top nav a{font-size:13px}.guide{font-size:13px}.billboard{margin:16px 0 20px;min-height:104px;padding:12px 14px}.art{display:none}.billboard>a{padding:7px 9px;font-size:12px}.billboard>a .ico{display:none}.adcopy p{font-size:12px}.adcopy span{font-size:9px}.adcopy strong{font-size:21px}.intro{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:14px}.actions{align-self:auto}.actions button{padding:7px 11px}.deskbar{padding:8px;flex-wrap:wrap}.modes button{padding:4px 6px}.modes .ico{display:none}.filename{font-size:12px}.panes{grid-template-columns:1fr}.source{border-right:0}.desk[data-mode=split] .result{border-top:1px solid var(--border)}.desk[data-mode=split] .editing,.desk[data-mode=split] #output{height:305px}.editing,#output{height:60vh}.status{padding:8px 10px}footer{align-items:flex-start;gap:8px;flex-wrap:wrap}.wrap{width:calc(100% - 24px)}}

/* Give the working document the viewport and keep sponsorship below it. */
.work-page .wrap{width:calc(100% - clamp(24px,3vw,60px));max-width:none}
.work-page .top{min-height:56px}
.work-page .intro{margin:14px 0 12px;align-items:center}
.work-page .intro .crumb{display:none}
.work-page h1{font-size:clamp(23px,2.1vw,32px);letter-spacing:-1px;margin:0}
.work-page .intro p{font-size:14px;margin-top:3px}
.work-page .actions{align-self:center}
.work-page .deskbar{min-height:44px;padding:6px 12px}
.work-page .billboard{margin:18px 0 0;min-height:76px}
.work-page .billboard .adcopy strong{font-size:22px}
.workspace-tools,.diff-controls,.compare-bar,.opts{display:flex;align-items:center;gap:12px}
.toolbtn,#format select,#json-view{font-weight:500;line-height:1.35;font-family:inherit;font-size:13px;border:1px solid var(--border);background:white;border-radius:5px;padding:5px 9px;color:var(--text);cursor:pointer}
.toolbtn:hover{background:var(--selected)}.toolbtn:disabled{opacity:.5;cursor:default}
.toolbtn .ico{width:14px;height:14px;margin-right:6px}.sync,.opts label,.diff-controls label{font-size:13px;color:var(--muted);display:inline-flex;gap:5px;align-items:center}
:is(input[type=checkbox],input[type=radio]){accent-color:var(--primary)}
.work-page .panes{height:max(370px,calc(100dvh - 156px));grid-template-rows:minmax(0,1fr)}
.desk[data-mode=split] .panes{grid-template-columns:minmax(0,calc(var(--split,50%) - 5px)) 10px minmax(0,1fr)}
.work-page .pane{display:flex;flex-direction:column;min-height:0;border:0}
.work-page .panelbar{flex:none}.work-page .editing,.work-page #output{height:auto;min-height:0;flex:1}
.work-page .editing{grid-template-rows:minmax(0,1fr)}
#divider{display:grid;place-items:center;cursor:col-resize;touch-action:none;background:var(--raised);border-inline:1px solid var(--border)}
#divider b{height:36px;width:3px;background:#b5a292;border-radius:3px}#divider:hover,#divider:focus-visible{background:var(--selected)}
.desk:not([data-mode=split]) #divider{display:none}
.work-page .desk[data-mode=source] .result,.work-page .desk[data-mode=preview] .source{display:none}
.desk.expanded{position:fixed;inset:0;z-index:20;width:100%;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column}
.desk.expanded .panes{flex:1;min-height:0;height:0}.expanded-workspace{overflow:hidden}
.tree-node{font:14px/1.65 ui-monospace,monospace;color:var(--accent)}.tree-node>div{padding-left:17px;border-left:1px solid var(--border)}.tree-node summary{cursor:pointer}
#json-view{letter-spacing:normal;text-transform:none;max-width:145px}.format select{max-width:97px}
.compare-bar,.diff-controls{justify-content:space-between;flex-wrap:wrap;padding:9px 14px;border-bottom:1px solid var(--border)}
#editors{display:grid;grid-template-columns:1fr 1fr}#editors section{min-width:0}#editors section+section{border-left:1px solid var(--border)}
#editors textarea{display:block;width:100%;height:max(355px,calc(100dvh - 164px));resize:none;border:0;padding:16px;font:14px/1.7 ui-monospace,monospace;background:var(--inset);outline-offset:-3px}
.diff-controls{justify-content:flex-start}.diff-scroll{max-height:calc(100dvh - 198px);min-height:120px;overflow:auto}#diff-table{width:100%;border-collapse:collapse;table-layout:fixed}#diff-table th{position:sticky;top:0;background:var(--raised);text-align:left;font-size:13px;padding:8px}#diff-table td{vertical-align:top;border-top:1px solid var(--border);padding:3px 6px;font-size:13px}#diff-table td+td{border-left:1px solid var(--border)}#diff-table small{display:inline-block;min-width:4ch;color:var(--muted);margin-right:6px}#diff-table code{white-space:pre-wrap;overflow-wrap:anywhere}#diff-table .deleted{background:#fff0ee}#diff-table .inserted{background:#e9f8ef}#diff-table .missing{background:var(--raised)}.deleted mark{background:#ffb6b0}.inserted mark{background:#9ee3b3}.current{outline:2px solid var(--accent);outline-offset:-2px}#paging{padding:9px;text-align:center}.compare-desk .status{min-height:33px}
@media(max-width:650px){.work-page .top{padding:8px 0 5px}.work-page .intro{margin:9px 0}.work-page .intro p{display:none}.work-page .deskbar{gap:5px}.workspace-tools,.opts{gap:4px;flex-wrap:wrap}.workspace-tools .sync{font-size:12px}.deskbar .filename{flex:1 1 100%}.desk[data-mode=split] .panes{grid-template-columns:1fr;grid-template-rows:minmax(0,calc(var(--split,50%) - 5px)) 10px minmax(0,1fr)}.work-page .panes{height:max(450px,calc(100dvh - 201px))}#divider{cursor:row-resize;border-inline:none;border-block:1px solid var(--border)}#divider b{height:3px;width:36px}.work-page .desk[data-mode=split] .editing,.work-page .desk[data-mode=split] #output{height:auto}.desk.expanded .panes{height:0}#editors{grid-template-columns:1fr}#editors section+section{border:0}#editors textarea{height:26dvh}.compare-bar,.diff-controls{padding:7px;gap:6px}.work-page .status{gap:4px;flex-wrap:wrap}.work-page .top nav a{padding:6px 8px}#json-view{max-width:110px}}

.json-output-bar{height:auto;min-height:44px;flex-wrap:wrap;padding-block:5px}
#json-format-actions{margin-left:auto;max-width:100%;flex-wrap:wrap}


.work-page .page-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.work-page main.wrap{padding-top:10px}
.header-tools{margin-left:auto;display:flex;align-items:center;gap:14px}
.header-tools .guide,.header-tools .actions{margin:0}
.header-tools .menu{z-index:10}
@media(max-width:1200px){.work-page .top{column-gap:12px}.header-tools{gap:7px}.header-tools .actions{gap:5px}}
@media(max-width:1000px){.header-tools .header-label,.header-tools #export .ico:last-child{display:none}.header-tools #import,.header-tools #export,.header-tools #guide{justify-content:center;min-width:36px;min-height:36px;padding:7px}.header-tools .ico{width:17px;height:17px}}

/* Light palette. The theme picker overrides these roles for darker surfaces. */
:root {
  --canvas:#faf8f5;
  --panel:#fff;
  --inset:#fffdfa;
  --raised:#f6f1eb;
  --border:#ded6cf;
  --text:#2c2521;
  --muted:#66594f;
  --accent:#994007;
  --selected:#ffead6;
  --primary:#ae460e;
  --md-heading:#893509;
  --md-subheading:#945019;
  --md-strong:#623116;
  --md-em:#905333;
  --md-code:#914316;
  --md-marker:#965222;
  --md-quote:#745744;
  --md-link:var(--accent);
  --md-chip:#faeee1;
}
html[data-theme="light"] { color-scheme:light; }
#theme{font:inherit;font-size:14px;color:inherit;background:transparent;border:1px solid var(--border);border-radius:6px;padding:5px 3px;cursor:pointer}
#theme:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
html[data-theme="dark"]{
  --canvas:#1c1917;
  --panel:#26211e;
  --inset:#211d1a;
  --raised:#342b25;
  --border:#58483b;
  --text:#f4ece5;
  --muted:#cec0b5;
  --accent:#ffac70;
  --selected:#4c3021;
  --primary:#b64a10;
  --md-heading:#ffaf72;
  --md-subheading:#efb98e;
  --md-strong:#ffdec3;
  --md-em:#efb39a;
  --md-code:#f7c58c;
  --md-marker:#dda374;
  --md-quote:#cbb6a5;
  --md-link:var(--accent);
  --md-chip:#3a2d24;
}
html[data-theme="graphite"]{
  --canvas:#191b20;
  --panel:#202329;
  --inset:#1b1e23;
  --raised:#2b3038;
  --border:#56606e;
  --text:#e8ebf0;
  --muted:#b1bac6;
  --accent:#91c9ff;
  --selected:#2c4056;
  --primary:#335b7f;
  --md-heading:#c3d4e4;
  --md-subheading:#abbccf;
  --md-strong:#e2eaf4;
  --md-em:#bdbece;
  --md-code:#b2c9dd;
  --md-marker:#a2b7c8;
  --md-quote:#b3beca;
  --md-link:#bbd6f3;
  --md-chip:var(--raised);
}
html[data-theme="midnight"]{
  --canvas:#101b2a;
  --panel:#152235;
  --inset:#101c2c;
  --raised:#203249;
  --border:#47617a;
  --text:#e3edf8;
  --muted:#b3c5d8;
  --accent:#76deda;
  --selected:#204346;
  --primary:#235e60;
  --md-heading:#adcbff;
  --md-subheading:#97b8ed;
  --md-strong:#dce8ff;
  --md-em:#b3c0eb;
  --md-code:#a2c5ff;
  --md-marker:#94afdd;
  --md-quote:#afc2dd;
  --md-link:#91baff;
  --md-chip:var(--raised);
}
html[data-theme="espresso"]{
  --canvas:#231d1a;
  --panel:#2d2521;
  --inset:#27201d;
  --raised:#3b302a;
  --border:#6a584b;
  --text:#f2e6d8;
  --muted:#cab7a5;
  --accent:#f3bb77;
  --selected:#4d3a29;
  --primary:#79502c;
  --md-heading:#f1bb96;
  --md-subheading:#dca981;
  --md-strong:#f8dac2;
  --md-em:#e5b3a5;
  --md-code:#f0c5a1;
  --md-marker:#d6a080;
  --md-quote:#d2b6a4;
  --md-link:#f6b88a;
  --md-chip:var(--raised);
}
html[data-theme]:not([data-theme="light"]){color-scheme:dark;color:var(--text);background:var(--canvas)}
html[data-theme]:not([data-theme="light"]) :is(header,.desk,.menu,dialog,.deskbar){background:var(--panel);border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) :is(.panelbar,.compare-bar,.diff-controls,.status,.refrow,.tree-node>div){border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) :is(.editing,#editors textarea){background:var(--inset);color:var(--text)}
html[data-theme]:not([data-theme="light"]) .editing textarea{color:var(--text)}
html[data-theme]:not([data-theme="light"]) :is(.panelbar,.modes,.dialoghead button,#diff-table th){background:var(--raised)}
html[data-theme]:not([data-theme="light"]) :is(.plain,nav a,.paneltitle,.modes button,.format button,.copy,.status,footer,.sync,.opts label,.diff-controls label),
html[data-theme]:not([data-theme="light"]) :is(#dbody p,#diff-table small){color:var(--muted)}
html[data-theme]:not([data-theme="light"]) :is(#gutter,.filename .ico,.paneltitle .ico){color:var(--muted)}
html[data-theme]:not([data-theme="light"]) .status .ico{color:#92c9ad}
html[data-theme]:not([data-theme="light"]) :is(.actions button,.toolbtn,.format select),
html[data-theme]:not([data-theme="light"]) :is(#json-view,#theme){background:var(--raised);border-color:var(--border);color:var(--text)}
html[data-theme]:not([data-theme="light"]) .actions .primary{background:var(--primary);color:#fff;border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) :is(.modes button[aria-pressed=true],.format button[aria-pressed=true],.top nav a[aria-current=page]){background:var(--selected);color:var(--accent);border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) :is(.toolbtn,.copy,.format button,.menu button):hover{background:var(--selected);color:var(--text)}
html[data-theme]:not([data-theme="light"]) :is(.top nav a,.plain,footer button):hover{color:var(--accent)}
html[data-theme]:not([data-theme="light"]) #divider{background:var(--raised);border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) #divider:is(:hover,:focus-visible){background:var(--selected)}
html[data-theme]:not([data-theme="light"]) #divider b{background:var(--muted)}
html[data-theme]:not([data-theme="light"]) :is(#output,#dbody) :is(pre,code,blockquote){background:var(--raised);color:var(--text)}
html[data-theme]:not([data-theme="light"]) #output pre.raw{background:transparent;color:inherit}
html[data-theme]:not([data-theme="light"]) :is(#output,#dbody) a,html[data-theme]:not([data-theme="light"]) .tree-node{color:var(--accent)}
html[data-theme]:not([data-theme="light"]) :is(#output td,#output th,#diff-table td,#editors section+section){border-color:var(--border)}
html[data-theme]:not([data-theme="light"]) #diff-table .deleted{background:#4b282f}
html[data-theme]:not([data-theme="light"]) #diff-table .inserted{background:#213e34}
html[data-theme]:not([data-theme="light"]) #diff-table .missing{background:var(--inset)}
html[data-theme]:not([data-theme="light"]) .deleted mark{background:#813d50;color:#fff}
html[data-theme]:not([data-theme="light"]) .inserted mark{background:#32694f;color:#fff}
html[data-theme]:not([data-theme="light"]) #output .error{color:#ffabb2}
html[data-theme]:not([data-theme="light"]) .toast{background:var(--accent);color:var(--canvas)}
@media(min-width:651px) and (max-width:780px){.work-page .top{column-gap:5px}.work-page .top nav a{padding-inline:6px}}
@media(max-width:450px){.work-page .header-tools{gap:3px}.work-page .header-tools .actions{gap:2px}.work-page .top{column-gap:3px}.work-page .brand{gap:4px;font-size:19px}.work-page .brand img{width:24px;height:24px}.header-tools #import,.header-tools #export,.header-tools #guide{min-width:30px;padding:4px}}

#snapshot-url{display:block;width:100%;margin:.4rem 0 1rem;padding:.65rem .8rem;border:1px solid var(--border);border-radius:6px;color:inherit;background:var(--inset);font:inherit}
.snapshot-actions{display:flex;align-items:center;gap:1rem}
.snapshot-actions a{text-decoration:underline}
.snapshot-page main{max-width:56rem;margin:2rem auto}
.snapshot-page .deskbar{height:auto;flex-wrap:wrap;gap:1rem;padding:1rem 1.5rem}
.snapshot-name{min-width:0;max-width:100%}.snapshot-name span{color:var(--muted);font-size:.875rem}
.snapshot-name h1{margin:0;font-size:1.15rem;overflow-wrap:anywhere}
.snapshot-page #output{height:auto;min-height:8rem;padding:1.25rem 1.5rem;overflow-wrap:anywhere}
#snapshot-status{margin:1rem 1.5rem}#snapshot-status:empty{margin:0}

html[data-theme]:not([data-theme="light"]) :is(#output,#dbody) code{font-size:.95em}
html[data-theme]:not([data-theme="light"]) #output pre code{background:transparent;padding:0}
html[data-theme]:not([data-theme="light"]) #output :is(td,th){padding:6px 10px}
html[data-theme]:not([data-theme="light"]) #output th{background:var(--raised);color:var(--text)}
html[data-theme]:not([data-theme="light"]) #output code{border-radius:4px}
html[data-theme]:not([data-theme="light"]) #output .code-comment{color:var(--muted)}
html[data-theme]:not([data-theme="light"]) #output blockquote{border-color:var(--accent)}
html[data-theme]:not([data-theme="light"]) #output li::marker{color:var(--accent)}
html[data-theme]:not([data-theme="light"]) :is(a,button,select,textarea,[tabindex]):focus-visible{outline-color:var(--accent)}
html[data-theme]:not([data-theme="light"]) .editing:focus-within{box-shadow:inset 2px 0 var(--accent)}
html[data-theme]:not([data-theme="light"]) :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
html[data-theme]:not([data-theme="light"]) .current{outline-color:var(--accent)}

.quota-notice{margin:.5rem 0;font-size:.95rem;color:inherit}

footer a { text-decoration: underline; text-underline-offset: .2em; }

.source .panelbar:has(.source-tools) { height:auto; min-height:44px; flex-wrap:wrap; padding-block:4px; }
.source-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-left:auto; }
.editing #input { grid-area:1/2; position:relative; font-kerning:none; }
.editing #gutter { grid-area:1/1; }
.md-layer { display:none; }
.with-colors .md-layer {
  display:block; grid-area:1/2; min-width:0; min-height:0; overflow:hidden;
  pointer-events:none; user-select:none; position:relative;
}
.md-layer pre {
  position:absolute; top:0; left:0; margin:0; padding:20px 14px 20px 0;
  font:14px/25px ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-kerning:none; white-space:pre; tab-size:2; color:var(--text); counter-reset:source-line;
}
.md-source-line { position:relative; min-height:25px; counter-increment:source-line; }
.wrapped #gutter { visibility:hidden; }
.wrapped .md-layer { grid-column:1/-1; }
.wrapped .md-layer pre {
  left:43px; width:var(--editor-width); white-space:pre-wrap; overflow-wrap:break-word;
}
.wrapped .md-source-line::before {
  content:counter(source-line); position:absolute; right:100%; padding-right:11px;
  color:var(--muted); font-size:12px;
}
@media not (forced-colors:active) {
  html[data-theme] .with-colors #input { color:transparent; caret-color:var(--text); z-index:1; }
  html[data-theme] .with-colors #input::selection {
    background:color-mix(in srgb,var(--md-link) 30%,transparent); color:transparent;
  }
}
@media (forced-colors:active) {
  .md-layer { visibility:hidden; }
  .wrapped .md-source-line::before { visibility:visible; }
}
html[data-theme] :is(.md-heading,#output.markdown-preview h1){color:var(--md-heading)}
html[data-theme] :is(.md-subheading,#output.markdown-preview :is(h2,h3,h4,h5,h6)){color:var(--md-subheading)}
html[data-theme] :is(.md-strong,#output.markdown-preview strong){color:var(--md-strong);font-weight:bold}
html[data-theme] :is(.md-em,#output.markdown-preview em){color:var(--md-em);font-style:italic}
html[data-theme] :is(.md-code,#output.markdown-preview :not(pre)>code){color:var(--md-code)}
html[data-theme] #output.markdown-preview :not(pre)>code{background:var(--md-chip)}
html[data-theme] .md-marker,html[data-theme] #output.markdown-preview li::marker{color:var(--md-marker)}
html[data-theme] :is(.md-quote,#output.markdown-preview blockquote){color:var(--md-quote);font-style:italic;border-color:var(--md-quote)}
html[data-theme] :is(.md-link,#output.markdown-preview a[href]){color:var(--md-link)}
html[data-theme] #output.markdown-preview a[href]{text-decoration:underline;text-underline-offset:.15em}
html[data-theme] :is(.md-heading,.md-subheading){font-weight:bold}
html[data-theme] #output.markdown-preview blockquote{background:var(--md-chip)}

/* The mask keeps the approved serif lettering in both header palettes. */
html[data-theme]:not([data-theme="light"]) .brand { color: #faede3; }
.brand-name {
  width: 153px;
  aspect-ratio: 519 / 67;
  background: currentColor;
  mask: url("/wordmark.svg") center / contain no-repeat;
  font-size: 0;
}
@media (max-width: 780px) {
  .work-page .brand-name { width: 124px; }
}
@media (forced-colors: active) {
  .brand-name { background: LinkText; forced-color-adjust: none; }
}
