:root{
    --ink:#20211e;
    --muted:#62655b;
    --paper:#f4f1e9;
    --line:#d7d5cc;
    --red:#be3528;
    --sage:#dfe5d7;
    --punk-green:#278F39}*{box-sizing:border-box}body{margin:0;background:#faf9f5;color:var(--ink);font:14px/1.55 Arial,Helvetica,sans-serif}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:10px 15px;border:1px solid #bfc1b6;border-radius:4px;background:#fff;color:var(--ink);text-decoration:none;cursor:pointer}button:hover,.button:hover{background:#eceee6}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #819063;outline-offset:3px}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.primary:hover{background:#43483b}.danger{color:#a72d23;border-color:#d9b4ad;margin-top:20px}.header{display:flex;align-items:center;gap:30px;justify-content:space-between;padding:25px 4%;border-bottom:1px solid var(--line);background:#faf9f5}.wordmark{font-weight:900;font-size:31px;letter-spacing:-1.8px;text-decoration:none;line-height:1}.wordmark span{
    color:var(--punk-green);
    display:inline-block;
    transform:rotate(-6deg);
}.wordmark small{display:block;font-size:9px;font-weight:normal;letter-spacing:1px;margin-top:9px}.header nav{display:flex;gap:27px}.header nav a{font-size:12px;text-decoration:none}.header [aria-current]{color:var(--red);font-weight:bold}.languages{display:flex;gap:7px;font-size:12px}.languages a{text-decoration:none}.skip{position:absolute;top:-60px;left:10px;z-index:99;background:white;padding:10px}.skip:focus{top:8px}h1{font:clamp(36px,4.7vw,67px)/1.08 Georgia,serif;letter-spacing:-2px;margin:0 0 23px}h2{font:26px/1.2 Georgia,serif;margin:0 0 18px}h3{font:25px/1.2 Georgia,serif}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:bold;margin:0 0 22px}.hero{max-width:1280px;position:relative;padding:76px 5% 70px;margin:auto}.hero h1{max-width:780px}.hero .lead{max-width:630px;font-size:18px;color:var(--muted);line-height:1.8;margin-bottom:30px}.hero-stamp{position:absolute;right:7%;top:85px;font-size:150px;font-weight:900;color:var(--punk-green);line-height:.8;transform:rotate(-8deg)}.hero-stamp small{display:block;font-size:11px;letter-spacing:3px;line-height:1.6;margin-top:25px}.tools-section{padding:30px 5% 70px;max-width:1400px;margin:auto}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title>span{font-size:10px;letter-spacing:2px}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tool-card{display:flex;flex-direction:column;position:relative;text-decoration:none;border:1px solid var(--line);background:white;padding:26px;min-height:260px;border-radius:5px}.tool-card:hover{border-color:var(--red)}.card-top{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.badge{font-size:10px;padding:4px 9px;background:#eeeee8;border-radius:20px}.badge.active{background:var(--sage);color:#344728}.tool-card h3{margin:35px 0 13px}.tool-card p{color:var(--muted);margin:0 0 30px}.card-arrow{margin-top:auto;font-size:20px;text-align:right}.page-heading{max-width:1500px;margin:auto;padding:40px 4% 25px}.page-heading h1{font-size:43px;letter-spacing:-1px}.page-heading>p:last-child{max-width:760px;color:var(--muted)}.archive-bar{margin:0 4%;padding:20px;background:var(--paper);border:1px solid var(--line);display:flex;gap:15px;align-items:end;flex-wrap:wrap}.archive-bar>label{flex:1;min-width:160px}.bar-actions{display:flex;gap:6px;flex-wrap:wrap}.bar-actions button{font-size:11px}.save-status{font-size:11px;color:var(--muted);margin:10px 4% 25px;min-height:18px}#app{margin:0 4% 50px;max-width:1600px}label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:bold}input:not([type=checkbox]),select,textarea{border:1px solid var(--line);border-radius:3px;background:white;padding:10px;width:100%;color:var(--ink);min-width:0;font-size:13px}textarea{resize:vertical}input[type=color]{padding:3px;width:65px;height:34px;cursor:pointer}.archive-actions{display:flex;gap:15px;align-items:end;margin-bottom:22px}.archive-actions>label{flex:1}.archive-actions>select{width:170px;height:41px}.archive-actions>button{white-space:nowrap}.archive-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(400px,2fr);gap:24px;align-items:start}.art-list,.work-editor,.panel{border:1px solid var(--line);background:white;border-radius:5px;padding:22px;min-width:0}.art-list{position:sticky;top:16px;max-height:85vh;overflow:auto}.list-head{display:flex;justify-content:space-between;font-size:12px;padding-bottom:18px}.art-row{display:flex;gap:12px;width:100%;justify-content:start;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 8px}.art-row.selected{background:#e8ecdf;box-shadow:inset 3px 0 #77865c}.art-row img,.no-photo{width:48px;height:55px;object-fit:contain;flex-shrink:0;background:var(--paper)}.no-photo{font:bold 30px Arial;display:flex;align-items:center;justify-content:center;color:#b3b6aa}.art-row>span:last-child{min-width:0}.art-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.art-row small{display:block;color:var(--muted);font-size:10px}.empty{padding:35px 0;color:var(--muted)}.editor-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.editor-title a{font-size:11px}.editor-title h2{font-size:25px}.photo-box{display:grid;grid-template-columns:170px 1fr;gap:24px;align-items:center;padding:18px;background:var(--paper);margin:15px 0 25px}.photo-box>img,.photo-empty{width:170px;height:160px;object-fit:contain}.photo-empty{display:flex;align-items:center;justify-content:center;font:bold 70px Arial;color:#b9bfb0}.photo-box input{font-size:11px}.photo-box button{font-size:10px;padding:6px 10px}.hint{font-size:11px;color:var(--muted);line-height:1.7}.work-fields,.event-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}.records{border-top:1px solid var(--line);margin-top:25px;padding-top:16px}.records summary{cursor:pointer;font-weight:bold;font-size:13px;margin-bottom:15px}.event-form{padding:15px;background:var(--paper);margin-bottom:20px}.event-form button{align-self:end}.event-row{border-bottom:1px solid var(--line);padding:12px 0}.event-row p{margin:4px 0}.history-row{font-size:11px;border-bottom:1px solid var(--line);padding:10px 0;overflow-wrap:anywhere}.history-row small{display:block;color:var(--muted)}.history-row p{margin:4px 0}.local-note{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:30px;padding-top:18px}.error{color:#a83225;font-size:12px}.label-layout{display:grid;grid-template-columns:minmax(200px,.75fr) minmax(240px,.9fr) minmax(300px,1.35fr);gap:20px;align-items:start}.panel h2{font-size:23px}.selection-row{display:flex;gap:7px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.selection-row.active{background:#eef1e7}.selection-row img{width:35px;height:40px;object-fit:contain}.selection-row button{padding:4px;border:0;font-size:11px}.selection-title{flex:1;min-width:0;text-align:left;justify-content:start;overflow-wrap:anywhere}.button-row{display:flex;gap:5px;flex-wrap:wrap}.button-row button{font-size:10px;padding:5px}.selection>a{margin-top:20px;font-size:11px}.label-settings>label{margin-top:16px}.check,.color-line{flex-direction:row;align-items:center;justify-content:space-between}.check input[type=checkbox]{margin:0}.check{justify-content:start;gap:8px;font-weight:normal}.style-row{border:1px solid var(--line);padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.style-row legend{font-size:11px;font-weight:bold}.style-row select,.style-row input:not([type=checkbox]){font-size:11px;padding:5px}.style-row .check{grid-column:1/-1}.style-row input[type=color]{width:40px;margin-left:auto}.preview-title{display:flex;justify-content:space-between;align-items:start;gap:10px}.preview-title span{font-size:10px;white-space:nowrap;color:var(--muted)}.canvas-stage,.sheet-stage{background:#e7e8df;padding:15px;display:flex;justify-content:center;align-items:center;min-height:100px}.canvas-stage canvas{display:block;max-width:100%;max-height:500px;width:auto;box-shadow:0 2px 10px #0002}.sheet-stage canvas{display:block;max-width:100%;max-height:400px;width:auto}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:11px}.pager button{padding:3px 10px}.label-preview>.primary{width:100%;margin-top:18px}.article{max-width:820px;padding:55px 5% 80px;margin:auto;min-height:60vh}.article h1{font-size:47px;margin:30px 0}.article h2{font-size:26px;margin-top:35px}.article p{color:var(--muted);font-size:16px;line-height:1.8}.article .button{margin-top:30px}.guide-grid{max-width:1200px;padding:20px 4% 60px;margin:auto;grid-template-columns:1fr 1fr}footer{border-top:1px solid var(--line);padding:30px 4%;display:grid;grid-template-columns:1fr 2fr 1fr;gap:25px;align-items:center;background:var(--paper);font-size:11px;color:var(--muted)}footer strong{font-size:20px;letter-spacing:-1px;color:var(--ink)}footer p{margin:5px 0}.credits{text-align:right}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#23271f;color:white;padding:13px 20px;border-radius:4px;max-width:90vw;z-index:30;box-shadow:0 4px 15px #0002}#toast:empty{display:none}dialog{border:1px solid var(--line);padding:28px;border-radius:6px;max-width:750px;width:90vw;color:var(--ink)}dialog::backdrop{background:#0006}dialog p{color:var(--muted)}dialog>button{margin:8px 8px 12px 0}.backup-row{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}[hidden]{display:none!important}@media(min-width:1800px){#app{margin-left:auto;margin-right:auto}}@media(max-width:1100px){.hero-stamp{display:none}.label-layout{grid-template-columns:1fr 1fr}.label-preview{grid-column:1/-1}.canvas-stage canvas{max-height:440px}.archive-layout{grid-template-columns:230px 1fr}.header{gap:15px}.header nav{gap:15px}.bar-actions{width:100%}}@media(max-width:750px){.header{flex-wrap:wrap;padding:20px 5%}.header nav{order:3;width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px}.hero{padding-top:45px}.hero h1{font-size:44px}.hero .lead{font-size:16px}.tool-grid{grid-template-columns:1fr}.tool-card{min-height:200px}.tool-card h3{margin-top:22px}.section-title>span{display:none}.page-heading h1{font-size:35px}.archive-layout,.label-layout{grid-template-columns:1fr}.art-list{position:static;max-height:330px}.label-preview{grid-column:auto}.archive-actions{flex-wrap:wrap}.archive-actions>label{flex-basis:100%}.photo-box{grid-template-columns:1fr;gap:10px}.photo-box>img,.photo-empty{width:100%;height:180px}.work-fields,.event-form{grid-template-columns:1fr}.wide{grid-column:auto}.bar-actions button{flex:1}.editor-title{align-items:start}.work-editor,.panel{padding:18px}.guide-grid{grid-template-columns:1fr}.article h1{font-size:37px}footer{grid-template-columns:1fr}.credits{text-align:left}.backup-row{display:block}.backup-row button{margin-top:8px}.archive-bar{padding:15px}.canvas-stage canvas{max-height:420px}}

/* Ready-to-use label compositions */
.template-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:22px 0 35px}.template-card{display:flex;flex-direction:column;gap:10px;padding:15px;text-align:left;background:#fff;border:1px solid #d9d7d0;border-radius:6px;cursor:pointer;color:#242522;min-width:0}.template-card.chosen{outline:2px solid #b63128;border-color:transparent}.template-card strong{font-size:14px}.template-card small{font-size:11px;color:#686a64}.template-thumb{height:150px;width:100%;display:flex;align-items:center;justify-content:center;background:#ebece6;padding:12px}.template-thumb canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 2px 6px #0002}.dimension-result{font-size:23px;margin:12px 0 8px}.advanced-styles{margin-top:25px}.usage-count{color:#686a64;font-size:13px;margin:12px 0}.label-preview .canvas-stage canvas{max-height:700px;width:auto;max-width:100%;object-fit:contain}.sheet-stage canvas{width:100%;height:auto}
@media(max-width:1000px){.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.template-thumb{height:110px;padding:6px}.template-card{padding:10px;gap:8px}.template-card strong{font-size:12px}.template-card small{font-size:10px}}
.sheet-stage canvas{max-height:none}
