@font-face{font-family:"Playwrite VN";src:url("PlaywriteVN.ttf") format("truetype");font-style:normal;font-weight:100 400;font-display:swap}
:root{--ink:#223b31;--body:#293e34;--muted:#53685d;--line:#d8dfd6;--studio:#f7f8f2;--forest:#275440;--paper:#fff;--green-light:#e5efe6;--orange:#c76a38;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--serif:Georgia,"Times New Roman",serif;font-family:var(--sans);font-size:16px;color:var(--body);background:var(--studio)}
*{box-sizing:border-box}body{margin:0;min-width:285px}.symbol-bank{position:absolute;width:0;height:0;overflow:hidden}.ico{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #609d78}
.topbar{background:#fff;border-bottom:1px solid var(--line)}.bar-inner,.shell,.site-footer{width:min(1250px,calc(100% - 88px));margin:auto}.bar-inner{min-height:66px;display:flex;align-items:center;gap:20px}.brand{display:inline-flex;align-items:center;gap:9px;color:#1b3e2e;font-size:26px;font-weight:780;letter-spacing:-1.6px}.brand-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#28543f}.brand-icon svg{width:27px;height:27px}.brand-sub{font-size:14px;padding-left:20px;border-left:1px solid #d6dfd5;color:var(--muted);line-height:24px}.top-actions{display:flex;gap:12px;align-items:center;margin-left:auto}
.btn{border:1px solid transparent;border-radius:9px;min-height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2;font-size:14px;font-weight:650;background:#fff;white-space:nowrap}.btn.primary{background:var(--forest);color:white;border-color:var(--forest);box-shadow:0 2px 2px #203a2920}.btn.primary:hover{background:#173f2c}.btn.quiet{color:#4d6154;background:transparent}.btn.quiet:hover,.btn.subtle:hover,.icon-btn:not(:disabled):hover,.zoom button:not(:disabled):hover{background:#edf3eb}.btn.subtle{background:#fff;border-color:var(--line);color:#374d40}.btn.small{font-size:14px;min-height:34px;padding:0 11px;gap:6px}.btn.small .ico{width:16px;height:16px}.btn:disabled{opacity:.45}.end{margin-left:auto}
.hero{display:flex;align-items:center;justify-content:space-between;position:relative;gap:24px;min-height:154px;padding:19px 0 20px;isolation:isolate}.hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(40px,4.65vw,70px);letter-spacing:-.055em;line-height:1.13;margin:0 0 10px;color:#243e30}.hero em{font-weight:500;color:#3b6c4d;position:relative;white-space:nowrap}.hero em:after{content:"";position:absolute;left:0;bottom:-1px;right:0;height:5px;background:#e8bb66;clip-path:polygon(0 58%,16% 34%,53% 0,100% 43%,86% 71%,19% 88%,0 100%);z-index:-1}.hero p{color:#536458;font-size:16px;line-height:1.5;margin:0}.hero-art{margin-right:4%;position:relative;width:235px;height:132px;flex:none;display:grid;place-items:center;align-self:center}.hero-art img{position:relative;width:100%;height:100%;object-fit:contain;z-index:1}.art-halo{position:absolute;inset:14% 3% 5%;border-radius:52% 48% 54% 40%;background-color:#f1e9d0;background-image:linear-gradient(to right,#d9d6b641 1px,transparent 1px),linear-gradient(to bottom,#d9d6b641 1px,transparent 1px);background-size:13px 13px;transform:rotate(-5deg)}
.workbench{display:grid;grid-template-columns:minmax(300px,355px) minmax(0,1fr);gap:23px;align-items:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 12px #223a2906;min-width:0}.card-heading{display:flex;align-items:center;gap:10px;padding:17px 20px;min-height:66px}.card h2,.dialog-heading h2{font-size:20px;letter-spacing:-.042em;line-height:1.25;margin:0;color:var(--ink);font-weight:700}.tile-icon{width:34px;height:34px;border-radius:10px;display:inline-grid;place-items:center;flex:none}.tile-icon.warm{background:#fbecce;color:#93601d}.tile-icon.cool{background:#e6efe4;color:#496b4e}.tile-icon .ico{width:19px;height:19px}.tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#eff2eb;border-radius:9px;margin:0 20px 18px;gap:3px}.tabs button{background:transparent;border:1px solid transparent;border-radius:6px;color:#526556;line-height:32px;font-size:14px;font-weight:630}.tabs button[aria-selected=true]{background:white;color:#2b5136;border-color:#d8e0d5;box-shadow:0 1px 3px #354b3421}.editor-body{padding:0 20px 22px}.form-group>label:not(.toggle),.field-heading label,.form-pair>label,legend{font-size:14px;font-weight:650;letter-spacing:-.012em;color:#32473b}.form-group>label:not(.toggle){display:block;margin:16px 0 7px}.form-group>label:first-child,.form-group>.form-pair:first-child{margin-top:0}
input[type=text],textarea,select{width:100%;border:1px solid #cdd8ce;border-radius:8px;background:#fdfefb;color:#2a4032;font-size:16px}.editor input[type=text],.editor select{height:41px;padding:0 11px}.editor textarea{line-height:1.63;resize:vertical;min-height:97px;padding:8px 11px;display:block}.field-heading{display:flex;align-items:baseline;justify-content:space-between;gap:9px;margin:18px 0 7px}.small-muted,output{color:#627466;font-size:12px;font-variant-numeric:tabular-nums}.field-hint{font-size:13px;color:#5a6b5d;line-height:1.45;margin:6px 0 0}fieldset{border:0;padding:0;margin:0;min-inline-size:0}legend{padding:0;margin:0 0 8px}.stroke-field{margin-top:20px}.style-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.style-card{position:relative;min-height:68px;border:1px solid #d6dfd6;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;background:#fff;font-size:13px;font-weight:600;color:#4e6052}.style-card:has(input:checked){border-color:#5f886b;background:#eff5ec;color:#294e33;box-shadow:inset 0 0 0 .5px #5f886b}.style-card input,.palette input{position:absolute;width:1px;height:1px;margin:0;opacity:0}.style-card:has(input:focus-visible),.palette label:has(input:focus-visible){outline:3px solid #629b76;outline-offset:2px}.style-glyph{width:44px;height:32px;display:flex;align-items:center;justify-content:center;font:300 25px/1 "Playwrite VN",cursive;color:#69836e}.faded-glyph{color:#8d9f91}.style-glyph canvas{display:block;width:44px;height:32px}.copy-glyph{font-size:21px;position:relative}.copy-glyph i{width:11px;border-bottom:1px dashed #88968a;align-self:flex-end;margin-bottom:7px}.ink-field{margin-top:19px}.palette{display:flex;flex-wrap:wrap;gap:6px}.palette label{position:relative;cursor:pointer;border:1px solid transparent;display:inline-flex;gap:6px;align-items:center;border-radius:6px;padding:5px 7px;font-size:13px;color:#4c6051}.palette label:has(input:checked){border-color:#b7c8b6;background:#f4f7f1;color:#2b4835}.palette b{font-weight:550}.palette label span{display:inline-block;width:15px;height:15px;background:var(--swatch);border-radius:50%}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.form-pair select{display:block;margin-top:7px}.editor select{appearance:none;background:#fdfefb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b6653' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center no-repeat;padding-right:27px;font-size:14px}.editor input[type=range]{width:100%;accent-color:var(--forest);margin:3px 0 7px}.toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e2e8e1;padding:12px 0;font-size:14px;cursor:pointer}.toggle input{margin:0;width:18px;height:18px;accent-color:var(--forest)}.mobile-view{display:none}
.preview{overflow:hidden}.preview .card-heading{border-bottom:1px solid var(--line)}.preview-tools{display:flex;align-items:center;gap:12px;padding:6px 17px;background:#fafbf7;border-bottom:1px solid #d6ded4;min-height:40px;font-size:13px;color:#536758}.a4{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:620}.a4 .ico{width:15px;height:15px}.toolbar-line{height:15px;border-left:1px solid #d2dccf}.page-nav,.zoom{display:flex;align-items:center;gap:3px}.page-nav span{white-space:nowrap;font-variant-numeric:tabular-nums}.icon-btn,.zoom button{display:inline-grid;place-items:center;height:28px;min-width:26px;border:0;padding:0 4px;background:transparent;border-radius:5px;color:#425a48}.icon-btn .ico{width:16px;height:16px}.icon-btn:disabled,.zoom button:disabled{color:#a6b1a7}.zoom{margin-left:auto;border:1px solid #dce3d9;border-radius:7px;background:#fff}.zoom button{font-size:12px;min-width:25px}.zoom button .ico{width:14px;height:14px}#zoomVal{font-variant-numeric:tabular-nums;min-width:37px}.stage{padding:22px 20px 28px;overflow:auto;max-height:83vh;min-height:290px;background-color:#e9eee6;background-image:radial-gradient(#c9d3c8 .85px,transparent .85px);background-size:9px 9px;scrollbar-color:#bdc9bc transparent}.sheet{width:min(100%,628px);margin:0 auto;background:white;box-shadow:0 4px 14px #1e352524,0 0 0 1px #43594017;aspect-ratio:210 / 297}.sheet canvas{display:block;width:100%;height:auto;aspect-ratio:210 / 297}.site-footer{display:flex;justify-content:space-between;gap:12px;color:#617263;font-size:12px;padding:18px 2px 24px}.site-footer span:last-child{color:#647767}#emptyState{text-align:center;margin:55px auto;max-width:260px}#emptyState h3{font-size:20px;margin:12px 0 2px}#emptyState p{font-size:15px;line-height:1.5;margin:6px 0 15px}
dialog{color:var(--body);padding:23px;border:1px solid #d5ded3;border-radius:17px;box-shadow:0 22px 80px #1a342a4a;width:min(510px,calc(100% - 30px));max-height:85dvh}dialog::backdrop{background:#1c322b60}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dialog-heading h2{font:600 30px/1.2 var(--serif)}.dialog-heading p,.help-note{color:var(--muted);font-size:14px;line-height:1.5;margin:6px 0 0}.close{background:#f0f3ed;flex:none;width:30px;height:30px}.template-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.tpl{background:#fafbf7;border:1px solid #d9e2d6;border-radius:10px;min-height:84px;text-align:left;padding:12px;display:flex;flex-direction:column;gap:12px;justify-content:center}.tpl:hover{border-color:#749379;background:#eff5ec}.tpl b{font-size:14px;font-weight:650}.tpl span{font:300 18px/1.6 "Playwrite VN",cursive;color:#426e50}.help-list{margin:19px 0 15px;padding-left:22px;font-size:16px;line-height:1.55}.help-list li{padding-bottom:9px}.help-note{padding-top:12px;border-top:1px solid var(--line)}.toast{position:fixed;z-index:10;bottom:20px;left:50%;transform:translateX(-50%);background:#234d39;color:#fff;padding:12px 18px;border-radius:9px;font-size:14px;box-shadow:0 3px 15px #18302233;max-width:90vw;text-align:center}#printArea{display:none}
@media(min-width:1500px){.bar-inner,.shell,.site-footer{width:min(1390px,calc(100% - 130px))}.workbench{grid-template-columns:380px minmax(0,1fr);gap:28px}.hero{min-height:172px}.sheet{width:min(100%,690px)}}
@media(max-width:960px){.bar-inner,.shell,.site-footer{width:calc(100% - 44px)}.workbench{grid-template-columns:minmax(285px,320px) minmax(0,1fr);gap:15px}.hero-art{width:190px;margin-right:2%}.stage{padding:17px 12px 22px}.card-heading{padding:15px}.editor-body{padding:0 15px 18px}.tabs{margin-left:15px;margin-right:15px}.card h2{font-size:18px}.preview-tools{padding:5px 10px;gap:5px}}
@media(max-width:740px){.topbar .bar-inner{min-height:58px}.bar-inner,.shell,.site-footer{width:calc(100% - 28px)}.brand{font-size:24px}.brand-icon{width:31px;height:31px}.top-actions{gap:3px}.brand-sub{display:none}.hero{min-height:122px;gap:4px;padding:15px 0}.hero h1{font-size:clamp(36px,8.3vw,54px);margin-bottom:8px}.hero p{font-size:14px;max-width:360px}.hero-art{width:clamp(82px,24vw,148px);height:93px;margin:0}.workbench{grid-template-columns:1fr;gap:14px}.editor .card-heading,.preview .card-heading{min-height:57px}.card{border-radius:13px}.editor-body{padding-bottom:16px}.form-group>label:not(.toggle){margin-top:10px}.form-group>label:first-child{margin-top:0}.field-heading,.stroke-field,.ink-field{margin-top:14px}.style-card{min-height:56px}.stage{padding:14px 10px 19px;max-height:72vh}.mobile-view{display:flex;background:#eaf2e7;color:#31583b;border:1px solid #c8d9c6;margin-top:16px;width:100%}.preview-tools{padding:5px 11px;gap:8px}.sheet{width:min(100%,570px)}.top-actions .btn{min-height:35px;padding:0 10px}.site-footer{padding:14px 0 17px}}
@media(max-width:405px){.hero-art{width:79px;height:82px}.top-actions .quiet{padding:0 8px}.top-actions .quiet span{display:none}.bar-inner{gap:8px}.btn.small{font-size:13px}.card-heading{gap:8px}.hero p{font-size:13px}.template-list{gap:7px}.tpl{padding:9px}}
@media (prefers-reduced-motion:no-preference){button,.style-card{transition:background-color .13s,border-color .13s}}
@page{size:A4 portrait;margin:0}
@media print{html,body{background:white;margin:0;padding:0}#studio,.symbol-bank,dialog,.toast{display:none!important}#printArea{display:block}#printArea img{width:210mm;height:297mm;display:block;break-after:page;page-break-after:always;margin:0}#printArea img:last-child{break-after:auto;page-break-after:auto}}

.roster{border-top:1px solid var(--line);margin-top:16px;padding-top:10px}.roster summary{list-style:none;display:flex;align-items:center;gap:8px;color:var(--forest);font-size:14px;font-weight:650;cursor:pointer;padding:5px 0}.roster summary::-webkit-details-marker{display:none}.roster summary .ico{width:16px;height:16px}.roster[open] summary .ico:last-child{transform:rotate(180deg)}.roster summary:focus-visible{outline:3px solid #609d78}.roster>label{display:block;font-size:14px;font-weight:650;margin:12px 0 6px}.roster #namesInput{min-height:78px}.roster p[role=alert]{color:#894422}
@media print{#printArea .print-page{position:relative;width:210mm;height:297mm;break-after:page;page-break-after:always}#printArea .print-page:last-child{break-after:auto;page-break-after:auto}#printArea .print-page img{display:block;break-after:auto;page-break-after:auto}#printArea .name-strip{position:absolute}}
