:root{font:15px/1.5 "Malgun Gothic",Arial,sans-serif;color:#202c42;background:#f3f5f8;--navy:#162b49;--blue:#215bac;--line:#dbe1ea;--muted:#576780}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input{border:1px solid #cbd4e1;border-radius:7px;background:white;color:inherit}button{cursor:pointer;padding:7px 12px;font-size:13px;font-weight:600}button:hover{background:#edf3fb;border-color:#809bbd}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #52a9f0;outline-offset:2px}
.top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px clamp(16px,3vw,52px);background:var(--navy);color:white;min-height:64px}.brand{display:flex;align-items:center;gap:18px;white-space:nowrap}.brand strong{font:bold 25px/1 Arial,sans-serif;letter-spacing:-1.9px}.brand i{font-style:normal;color:#ff645a}.brand span{font-size:14px;border-left:1px solid #62748a;padding-left:18px;font-weight:600}.top nav,.history,.deskbar>div,.searchbar{display:flex;align-items:center;gap:6px}.top button{background:transparent;color:white;border-color:#536882}.top button:hover{background:#304967}.top .accent{background:#fff;color:var(--navy);border-color:white}
main{margin:0 auto;padding:22px clamp(12px,2.5vw,44px) 24px}.heading,.deskbar,.deskfoot,.modalhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.heading{margin:0 0 17px}.heading h1{font-size:clamp(23px,2.3vw,33px);margin:0;letter-spacing:-.055em}.heading p{font-size:13px;color:var(--muted);margin:3px 0 0}.history button{background:transparent}.workspace{display:grid;grid-template-columns:minmax(180px,230px) minmax(270px,1fr) minmax(190px,248px);align-items:start;gap:14px}.panel,.desk{background:white;border:1px solid var(--line);border-radius:12px;min-width:0}.panel{padding:17px}.panel h2,dialog h2{font-size:17px;letter-spacing:-.035em;margin:0 0 12px}.panel select,.panel input:not([type=checkbox]),dialog input,dialog select{width:100%;min-width:0;padding:8px 9px;margin-top:4px}.panel label,dialog label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:11px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.divider{height:1px;background:var(--line);margin:18px 0}.wide{width:100%;margin:3px 0}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#174a90;color:white}.danger{color:#9d343b}.subtle{color:var(--muted)}.check{display:flex!important;align-items:center;gap:6px;margin:10px 0!important}.toolgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.toolgrid button{display:flex;align-items:center;gap:6px;min-height:39px;padding:6px;white-space:nowrap}.toolgrid b{font:bold 17px/1.2 Arial;color:var(--blue)}.hint,#matches{font-size:12px;line-height:1.65;color:var(--muted)}input[type=color]{height:34px;padding:2px!important}.desk{overflow:hidden}.deskbar,.deskfoot{padding:9px 14px}.deskbar{border-bottom:1px solid var(--line)}.deskbar strong,.deskfoot span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deskbar button{padding:3px 8px}.deskfoot{font-size:12px;color:var(--muted);border-top:1px solid var(--line)}.deskfoot span:last-child{white-space:nowrap}.mat{height:clamp(480px,68vh,920px);overflow:auto;background-color:#e4eaf0;background-image:radial-gradient(#bfccd7 .8px,transparent .8px);background-size:12px 12px;padding:clamp(8px,.6vw,12px);display:flex;align-items:flex-start}.paper{position:relative;flex:none;margin:0 auto;background:white;box-shadow:0 3px 16px #273f5426}.paper canvas{display:block;width:100%;height:auto}.paper #selection{pointer-events:none;position:absolute;border:2px solid #1474df}.paper #selection span{position:absolute;bottom:-5px;right:-5px;background:white;border:2px solid #1474df;width:10px;height:10px}
dialog{border:1px solid var(--line);border-radius:14px;padding:22px;color:inherit;width:min(420px,calc(100% - 22px));max-height:86dvh;overflow:auto;box-shadow:0 18px 70px #102a4830}dialog::backdrop{background:#13253870}.modalhead{margin-bottom:15px}.modalhead h2{margin:0}.modalhead button{border:0}.searchbar{margin-bottom:8px}.searchbar select{max-width:160px}#library{width:min(880px,calc(100% - 24px))}#results{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}#results button{text-align:left;padding:8px;min-width:0}#results img{display:block;width:100%;height:110px;object-fit:contain;background:#f2f4f8;margin-bottom:6px}#results small{display:block;color:var(--muted);font-weight:400}#fileError{color:#9e2f37}[hidden]{display:none!important}
@media(max-width:1000px){.workspace{grid-template-columns:185px minmax(220px,1fr)}.tools{grid-column:1/-1}.tools .toolgrid{grid-template-columns:repeat(6,1fr)}.top{flex-wrap:wrap}.tools #properties{max-width:580px}}@media(max-width:650px){.top{padding:12px}.top nav{flex-wrap:wrap}.top button{font-size:12px;padding:6px 8px}.heading{align-items:flex-start}.history{flex-direction:column;gap:3px}.history button{padding:3px 7px}.workspace{display:flex;flex-direction:column}.workspace>*{width:100%}.setup{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.setup h2,.setup .divider{grid-column:1/-1;margin:3px 0}.setup label{margin:0}.setup .pair{grid-column:1/-1}.tools .toolgrid{grid-template-columns:repeat(3,1fr)}.mat{height:410px;padding:8px}.panel{padding:13px}.deskfoot{font-size:11px}}
.facebar{display:flex;gap:8px;padding:7px 14px;border-bottom:1px solid var(--line);background:#fafbfd}.facebar button{display:flex;align-items:center;gap:8px;border-color:transparent;color:var(--muted);background:transparent}.facebar button[aria-pressed=true]{color:#124f9f;background:#e8f1ff;border-color:#a7c6ee}.facebar canvas{display:block;width:42px;height:27px;object-fit:contain;background:white;border:1px solid #c9d4e1}.splitpreviews{display:flex;align-items:flex-start;justify-content:center;gap:8px;background:#eef2f6;padding:6px;margin:10px 0}.splitimage{position:relative;display:inline-flex;min-width:0}.splitimage img,#pairImage{max-width:100%;height:auto;max-height:34vh;object-fit:contain;display:block}.splitpreviews:has(#pairImage:not([hidden]))>*{max-width:48%}#splitLine{position:absolute;background:#f14c2c;box-shadow:0 0 0 1px white;pointer-events:none}#sideSetup p{margin:8px 0}#splitNumber{float:right}
.top .brand{color:inherit;text-decoration:none}
.top .brand:hover span{text-decoration:underline}
.top .brand:focus-visible{outline:2px solid white;outline-offset:4px}
.top button.featured-action{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 14px;border-color:#ffedb0;background:#ffdc70;color:#302303;font-size:14px;font-weight:800}
.top button.featured-action:hover{background:#ffea9a;color:#302303}
.top button.featured-action:focus-visible{outline:2px solid white;outline-offset:3px}
.top .featured-action span{font-size:17px;line-height:1}
.heading{display:grid;grid-template-columns:minmax(clamp(250px,23vw,320px),.85fr) minmax(0,4fr) auto;grid-template-areas:"title consultation history";align-items:center;gap:12px clamp(12px,1.2vw,22px);margin-bottom:12px}
.heading-title{grid-area:title;min-width:0;overflow-wrap:anywhere}.heading h1{word-break:keep-all}.heading .history{grid-area:history;justify-self:end;white-space:nowrap}
.consultation{grid-area:consultation;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;min-width:0;padding:9px 14px;border:1px solid #e6cf93;border-left:4px solid #d49722;border-radius:8px;background:#fffaeb;word-break:keep-all}
.consultation h2{margin:0;color:#172e49;font-size:clamp(16px,1.2vw,19px);line-height:1.3;letter-spacing:-.035em}
.consultation p{margin:3px 0 0;color:#2e3540;font-size:13px;line-height:1.45}
.consultation-phone{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:4px 12px;border-radius:7px;background:#174b80;color:#fff;text-decoration:none;white-space:nowrap}
.consultation-phone span{font-size:13px;font-weight:600}.consultation-phone strong{font-size:clamp(18px,1.25vw,21px);font-variant-numeric:tabular-nums}
.consultation-phone:hover{background:#103b69}.consultation-phone:focus-visible{outline:3px solid #174b80;outline-offset:3px}
@media(max-width:950px){.heading{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title history" "consultation consultation";row-gap:9px}}
@media(max-width:580px){.consultation{flex-direction:column;align-items:flex-start;gap:7px;padding:10px 12px}.consultation-phone{min-height:40px}}
.case-links{display:grid;gap:9px;padding:12px}
.case-links h2,.case-links h3{margin:0;color:var(--navy)}.case-links small{font-size:12px;color:var(--muted)}
.case-links section+section{padding-top:8px;border-top:1px solid var(--line)}.case-links h3{margin-bottom:5px;font-size:14px}
.case-links-row{display:grid;grid-template-columns:minmax(0,1.25fr) repeat(2,minmax(0,1fr));align-items:center;gap:4px}
.case-links-row + .case-links-row{margin-top:5px}.case-links-row span{font-size:12px;color:var(--muted);word-break:keep-all}
.case-links a{display:block;padding:3px 2px;border:1px solid #b8cadd;border-radius:5px;background:#f3f7fc;color:#1c4778;font-size:12px;font-weight:600;text-align:center;text-decoration:none;white-space:nowrap}
.case-links a:hover,.case-links a:focus-visible{border-color:#4274a9;background:#e3eefc}.case-links a:focus-visible{outline:2px solid #2563b6;outline-offset:1px}
#results .case-result{display:grid;gap:4px;min-width:0}
#results .case-apply{padding:8px 10px;text-align:center}
@media(max-width:650px){
  .case-links-row{grid-template-columns:minmax(74px,1fr) repeat(2,minmax(0,1fr));align-items:center}
  .case-links a{padding:9px 4px}
}
.sendlink{display:block;padding:10px 12px;border-radius:7px;background:var(--blue);color:#fff;text-align:center;text-decoration:none;font-weight:600}.sendlink:hover{background:#174a90}#sendStatus{font-size:13px;overflow-wrap:anywhere}
.arrangebar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid var(--line);background:#fff}.arrangebar label{display:inline-flex;gap:5px;align-items:center;color:var(--muted);font-size:12px}.arrangebar select,.arrangebar button{font-size:12px;padding:5px 7px}.arrangebar button[aria-pressed=true],#cut[aria-pressed=true]{color:#124f9f;background:#e8f1ff;border-color:#86b2e9}.keyhelp dt{font-weight:700;margin-top:9px}.keyhelp dd{margin:2px 0 0;font-size:13px}.paper #subSelections{pointer-events:none}.paper #subSelections i{position:absolute;pointer-events:none;border:1px dashed #1474df}.paper #keyCursor{position:absolute;width:17px;height:17px;pointer-events:none;transform:translate(-50%,-50%);border:1px solid white;border-radius:50%;box-shadow:0 0 0 1px #143d70}.paper #keyCursor:before,.paper #keyCursor:after{content:"";position:absolute;background:#174a90;box-shadow:0 0 1px white}.paper #keyCursor:before{width:23px;height:1px;top:7px;left:-4px}.paper #keyCursor:after{height:23px;width:1px;left:7px;top:-4px}
#casePreview[open]{display:flex;flex-direction:column;width:min(97vw,2200px);max-width:none;height:94dvh;max-height:96dvh;padding:0;overflow:hidden}.previewbar,.previewtools,.previewfoot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px}.previewbar h2,.previewfoot p{margin:0}.previewtools{flex-wrap:wrap;background:#f5f7fa;border-block:1px solid var(--line)}.previewtools>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.previewtools [aria-pressed=true]{background:#163d68;color:#fff}.previewtools output{min-width:44px;text-align:center;font-size:13px}#previewViewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#dce3ea;contain:layout}#previewCrop{position:relative;overflow:hidden;margin:0 auto;background:#fff}#previewImage{position:absolute;max-width:none;max-height:none;user-select:none;-webkit-user-drag:none}.previewfoot{border-top:1px solid var(--line);font-size:13px}.previewfoot button{flex:none}#nameTargets{position:absolute;inset:0;pointer-events:none}.nameTarget{position:absolute;pointer-events:auto;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:1px;background:transparent;outline:1px dashed #17588c70}.nameTarget:hover,.nameTarget:focus-visible{background:#85baf333;outline:2px solid #1474df}#caseNotice{font-size:13px;color:#24476e;background:#eff5fc;margin:0;padding:8px 14px;border-bottom:1px solid var(--line)}#nameError{color:#9e2f37}.namehelp{font-size:13px;color:var(--muted)}@media(max-width:650px){#casePreview[open]{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.previewbar,.previewtools,.previewfoot{padding:8px}.previewtools button{padding:5px 7px}}
.facebar{flex-wrap:wrap}.facebar #addLogo{margin-left:auto;border:1px solid #a7bdcf;background:#fff;color:#18486c}.facebar #addLogo:hover{background:#eaf3fb}#logoOverlay{position:absolute;z-index:3;cursor:pointer;touch-action:none;outline:1px dashed #287aa180}#logoOverlay:focus-visible,#logoOverlay:hover{outline:2px solid #1474df}#logoPreview{display:block;max-width:100%;height:90px;object-fit:contain;margin:7px auto 12px}#logoError{font-size:13px;color:#8c3435;min-height:1em}
#more{overflow-anchor:none}
.workspace{grid-template-columns:minmax(180px,230px) minmax(0,1fr);grid-template-areas:"sidebar editor"}
.workspace>.sidebar{grid-area:sidebar}.workspace>.desk{grid-area:editor}
.sidebar{display:grid;align-content:start;gap:10px;min-width:0}
.setup #browse{font-weight:700}
#guideOpen{padding:11px 12px;border-color:#8cadd2;color:#194c82;background:#eff6ff;font-weight:700}
#quickGuide{width:min(700px,calc(100% - 24px));padding:0}
#quickGuide .modalhead{position:sticky;top:0;z-index:1;padding:13px 18px;background:#fff;border-bottom:1px solid var(--line)}
#quickGuide h2,#quickGuide h3{margin:0}
#quickGuide ol{margin:0;padding:6px 22px 20px 44px}
#quickGuide li{padding:12px 0;color:var(--navy)}
#quickGuide li+li{border-top:1px solid var(--line)}
#quickGuide li::marker{color:var(--blue);font-weight:bold}
#quickGuide p{margin:5px 0;font-size:14px;line-height:1.65;word-break:keep-all}
#quickGuide img{display:block;width:auto;max-width:min(100%,420px);height:auto;border:1px solid var(--line);border-radius:7px;margin:10px 0 2px}
.desk .mat{height:auto;overflow-x:auto;overflow-y:hidden}
html:has(dialog[open]){overflow:hidden}
@media(min-width:651px){
  main{padding:12px clamp(12px,2.5vw,44px)}
  .sidebar .setup{padding:12px}
  .setup h2{margin-bottom:6px}
  .setup label{margin-bottom:6px}
  .setup select{padding:4px 7px;margin-top:2px}
  .setup .wide{padding:5px 7px}
  .deskbar,.deskfoot{padding-block:6px}
  .desk .facebar{padding-block:5px}
}
#library,#envelopePicker{width:min(1760px,calc(100% - 24px));--gallery-height:86dvh;max-height:var(--gallery-height)}
#results{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
#results img{height:auto;background:#fff}
.casePicture{position:relative;margin-bottom:6px}#results .casePicture img{margin:0}.schoolCovers{display:block;position:absolute;inset:0;pointer-events:none}.schoolCovers i{position:absolute;display:block;background:#fff}
@media(max-width:650px){#library,#envelopePicker{padding:15px}#results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:410px){#results{grid-template-columns:minmax(0,1fr)}}
#paper{user-select:none}
.face-options,#annotationTools{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.facebar{align-items:center}
.annotation-label{margin-left:auto;padding:6px 10px;color:var(--blue);font-size:14px}
.facebar #addLogo{margin:0}
#annotationTools button{background:white;border-color:#bdcbdc;color:#2b496a}
#annotationTools button[aria-pressed=true]{color:#9d202a;background:#fff1f1;border-color:#cf8690}
#annotationTools #annotationDelete{color:#912b32;border-color:#c9898f;background:#fff6f6;font-weight:700}
#annotationTools #annotationDelete:hover{background:#ffe8e9}
#annotationTools #annotationDelete[aria-pressed=true]{background:#942d36;border-color:#942d36;color:#fff}
#logoOverlay{z-index:7}
#annotationHint{margin:0;padding:7px 14px;background:#fff7ee;border-bottom:1px solid #eed8bd;color:#6e4724;font-size:13px}
#annotationPosition{position:absolute;inset:0;z-index:6;cursor:crosshair;touch-action:none;user-select:none}
#annotationPosition:focus-visible{outline:2px solid #2366a8;outline-offset:1px}
#annotationPreview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#annotationTextValue{display:block;width:100%;padding:9px;border:1px solid var(--line);border-radius:6px;font:inherit;font-size:16pt;resize:vertical}
.annotation-dialog-actions{display:flex;justify-content:flex-end;gap:6px}
.setup-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.setup .setup-heading h2{margin:0}
#setupStart{padding:4px 11px;font-size:13px;border-color:#a8c4e7;color:#174d86;background:#edf5ff}
#setupProgress{grid-column:1/-1;padding:7px 9px;margin-bottom:8px;background:#fff6dc;border:1px solid #efcb78;border-radius:6px}
#setupStep{margin:0 0 5px;color:#634517;font-size:13px;font-weight:700}
#setupProgress>div{display:flex;gap:5px}
#setupProgress button{padding:2px 8px;font-size:12px}
.setup .setup-current{outline:3px solid #d6961e;outline-offset:1px;animation:setup-highlight 1.5s ease-in-out infinite}
@keyframes setup-highlight{50%{outline-color:#f8ca58;box-shadow:0 0 0 4px #ffda7890}}
@media(prefers-reduced-motion:reduce){.setup .setup-current{animation:none}}
@media(max-width:650px){.annotation-label{margin-left:0}.facebar{gap:6px}.face-options{max-width:100%}}

.previewbar{flex-wrap:wrap}.previewActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto}#previewError{margin:0}#previewError:empty{display:none}
.previewfoot #usePreviewBottom{margin-inline:auto;min-width:min(100%,210px)}
.previewfoot{flex-wrap:wrap}
.previewfoot #previewError:not(:empty){flex-basis:100%}
.nameTarget{outline:2px dashed #cf1523}
.nameTarget:hover,.nameTarget:focus-visible{outline:3px solid #b40919;background:#ff344218}
#nameFields textarea{display:block;width:100%;resize:vertical;padding:9px;border:1px solid var(--line);border-radius:6px;font:inherit}
#nameFields textarea.verticalName{writing-mode:vertical-rl;text-orientation:upright;direction:ltr;width:6rem;height:clamp(9rem,34vh,16rem);font-size:1.15rem;line-height:1.65;resize:none}
#noteText{display:block;width:100%;resize:vertical;padding:9px;font:inherit;border:1px solid var(--line);border-radius:6px}
#noteTargets{position:absolute;inset:0;pointer-events:none}
#noteTargets button{position:absolute;pointer-events:auto;padding:0;min-width:0;min-height:0;background:transparent;border:0;outline:2px dashed #cf1523;touch-action:none;user-select:none;cursor:grab}
#noteTargets button.is-dragging{cursor:grabbing;z-index:2}
#noteTargets .note-drag-base{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#noteTargets .note-drag-text{display:block;width:100%;height:100%;pointer-events:none}
#notePosition{position:absolute;inset:0;z-index:4;cursor:crosshair}#noteError{color:#a42025}
#erasePosition{position:absolute;inset:0;z-index:5;cursor:crosshair;touch-action:none;user-select:none}
#erasePosition .eraseSelection{position:absolute;pointer-events:none;border:1px dashed #145eac;background:#6aa8e934;box-shadow:0 0 0 1px #fff9}
.download-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.download-types button{display:flex;align-content:center;align-items:center;justify-content:center;flex-wrap:wrap;gap:1px 5px;min-height:43px;padding:4px;border:1px solid #1c528c;border-radius:6px;background:#215b9e;color:white;font-size:13px;font-weight:700;word-break:keep-all}
.download-types button:hover{background:#164678;color:white}.download-types button span{font-weight:700}.download-types small{font-size:11px;color:#e4f1ff;white-space:nowrap}
.download-types button:disabled{opacity:.65;cursor:wait}
#downloadOptions>.wide{margin-top:9px;min-height:40px}
#status:empty{margin:0}
#cardFaces,#activeFace{display:contents}
#cardFaces.paired{display:flex;flex:none;align-items:flex-start;gap:12px;margin:0 auto}
#cardFaces.stacked{flex-direction:column}
#cardFaces.paired #activeFace{display:block}
#cardFaces.paired [data-side="back"]{order:1}
.card-face-label{display:block;height:26px;text-align:left;color:#26476a;font-size:13px;font-weight:700}
#otherFace{width:var(--face-width);min-height:0;padding:0;border:0;border-radius:0;background:transparent}
#otherFace canvas{display:block;width:100%;height:auto;background:white;box-shadow:0 3px 16px #273f5426}
#otherFace:hover canvas,#otherFace:focus-visible canvas{outline:2px solid #4581ba}
#activeFaceLabel{color:#194f8c}
#envelopePicker{height:var(--gallery-height);overscroll-behavior:contain}
#envelopePicker .modalhead{position:sticky;top:0;z-index:1;flex-wrap:wrap;gap:8px 16px;margin:0;padding:0 0 10px;background:white;border-bottom:1px solid var(--line)}
#envelopePicker .modalhead h2{margin:0 auto 0 0}
.envelope-picker-actions{display:flex;align-items:center;gap:6px}
#allEnvelopeForms{color:#164e88;border-color:#90b2d4;background:#edf5ff}
#envelopeChoices h3{font-size:17px;margin:16px 0 8px}
.envelope-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.envelope-form-grid button{display:grid;gap:6px;width:100%;min-width:0;padding:8px;white-space:normal}
.form-choice{display:grid;gap:4px;min-width:0}
.envelope-form-grid .form-apply{min-height:40px;padding:8px 10px;text-align:center}
.envelope-form-grid canvas{display:block;width:100%;height:auto}
@media(max-width:650px){.envelope-form-grid{grid-template-columns:minmax(0,1fr)}}
.envelope-form-grid button:focus-visible{outline:3px solid #2769ae;outline-offset:1px}
.envelope-gallery-links a+a{margin-top:5px}
#returnSizeFilters{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
#returnSizeFilters button{min-height:38px;padding:6px 12px;background:#f2f6fb;border-color:#b6c9df;color:#254e7d;font-weight:650}
#returnSizeFilters button:hover{border-color:#235da4}
#returnSizeFilters button[aria-pressed="true"]{background:#205ba7;border-color:#205ba7;color:white}
#returnSizeFilters button:focus-visible{outline:2px solid #174e91;outline-offset:2px}
#projectName.form-selected{color:#b51d2d;white-space:normal;word-break:keep-all;animation:form-selection-pulse 1.25s ease-in-out infinite}
@keyframes form-selection-pulse{0%,100%{opacity:1}50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){#projectName.form-selected{animation:none}}
@media(max-width:380px){.heading h1{font-size:20px}}
@media(max-width:650px){.download-types button{min-height:44px}}

.workspace{display:block}
.editor-controls,.editor-page{min-width:0}
@media(min-width:751px){
  .desk{display:grid;grid-template-columns:clamp(190px,15vw,236px) minmax(0,1fr)}
  .editor-controls{border-right:1px solid var(--line);background:#fafbfd}
  .editor-controls .deskbar,.editor-controls .facebar{display:grid;justify-content:stretch;gap:10px;padding:12px}
  .editor-controls .deskbar strong{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
  .editor-controls .deskbar button{flex:1;min-height:32px}
  .editor-controls .face-options{flex-wrap:nowrap}
  .editor-controls .face-options button{flex:1;justify-content:center;gap:4px;padding:5px 2px;white-space:nowrap}
  .editor-controls .face-options canvas{width:32px;height:23px}
  .editor-controls .annotation-label{margin:0;padding:0}
  .editor-controls #annotationTools{display:grid;gap:6px}
  .editor-controls #annotationTools button{justify-content:center;min-height:35px}
  .editor-controls #annotationHint{padding:10px 12px;line-height:1.55;word-break:keep-all}
}
.start-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.start-paths button{display:flex;align-items:center;gap:14px;padding:12px 20px;border-radius:10px;text-align:left;background:white;border:1px solid #adc4df;min-height:72px}
.start-paths #commonStart{background:#205ab0;color:white;border-color:#205ab0}
.start-paths button:hover{box-shadow:0 2px 9px #17385b28}
.start-paths b,.start-paths small{display:block}.start-paths b{font-size:19px}.start-paths small{margin-top:3px;font-size:13px;font-weight:400}
.path-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#eaf1fb;font-size:24px}
#commonStart .path-icon{background:#ffffff26}.path-arrow{margin-left:auto;font-size:22px}
@media(prefers-reduced-motion:no-preference){
  .face-options.pulse-faces button{animation:face-choice-glow 2.4s ease-in-out 3}
  .face-options.pulse-faces #back{animation-delay:1.2s}
  .start-paths button{animation:start-path-highlight 3.6s steps(1,end) 3;--alternate-bg:#205ab0;--alternate-ink:white;--alternate-border:#205ab0}
  .start-paths #commonStart{--alternate-bg:white;--alternate-ink:#172e49;--alternate-border:#adc4df}
  .start-paths :is(#commonStart,#browse) .path-icon{background:color-mix(in srgb,currentColor 10%,transparent)}
}
@keyframes face-choice-glow{
  0%,50%,100%{box-shadow:inset 0 0 0 24px transparent,0 0 0 2px transparent}
  25%{box-shadow:inset 0 0 0 24px #4083d326,0 0 0 2px #588ace55}
}
.paper .example-text-mask{position:absolute;inset:0;pointer-events:none;opacity:0}
@media(prefers-reduced-motion:no-preference){
  .example-text-mask{animation:example-text-pulse 1.4s ease-in-out 5}
}
@keyframes example-text-pulse{0%,100%{opacity:0}50%{opacity:.85}}
@keyframes start-path-highlight{
  50%{background-color:var(--alternate-bg);border-color:var(--alternate-border);color:var(--alternate-ink)}
}
#guideOpen{padding:6px 10px}
#setupDialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 26px);padding:0;border-radius:15px}
#setupDialog[open]{display:flex;flex-direction:column;overflow:hidden}
.setup-head,.setup-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;flex:none}
.setup-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-bottom:1px solid var(--line)}
.setup-head p{grid-column:1/-1;font-size:14px;color:var(--muted);margin:0}
.setup-head [data-close]{border:0;border-radius:50%;width:34px;height:34px;padding:0;background:#edf2f7;font-size:20px}
#setupPaths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#setupPaths button{min-height:44px;padding:6px;border:1px solid #abc2dd;color:#254e7d;font-weight:700;word-break:keep-all}
#setupPaths button[aria-pressed=true]{border-color:#205ab0;background:#205ab0;color:white}
#setupChoices{overflow-y:auto;min-height:0;padding:3px 24px 12px}
#setupChoices section{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:13px 0}
#setupChoices section+section{border-top:1px solid #e5ebf2}
#setupChoices h3{font-size:14px;margin:8px 0 0}
#setupChoices [role=group]{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#setupChoices button{min-height:37px;padding:6px 12px;background:white;font-weight:600}
#setupChoices button[aria-pressed=true]{border-color:#4177be;background:#e8f1ff;color:#144e9c}
#setupChoices button[aria-pressed=true]::before{content:'✓ ';font-weight:bold}
.setup-foot{border-top:1px solid var(--line)}.setup-foot span,#librarySummary{font-size:13px;color:var(--muted)}
.setup-foot button{flex:none;padding:10px 16px}
#caseSearch input{flex:1}
#envelopeChoices>.envelope-form-grid{grid-template-columns:minmax(0,780px);justify-content:center}
#envelopeChoices>.envelope-form-grid canvas{max-height:58dvh;object-fit:contain}
@media(max-width:650px){
  .start-paths{gap:7px}.start-paths button{padding:10px;min-height:64px}.start-paths b{font-size:15px}.start-paths small{font-size:11px}
  .start-paths .path-icon,.path-arrow{display:none}.heading .history{flex-direction:row;flex-wrap:wrap}
  .heading{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "consultation" "history";gap:5px}
  .setup-head,.setup-foot{padding:12px 14px}.setup-foot{flex-wrap:wrap}.setup-foot button{margin-left:auto}
  #setupChoices{padding:0 14px 10px}#setupChoices section{grid-template-columns:1fr;gap:6px;padding:10px 0}
  #setupChoices h3{margin:0}#setupChoices button{min-height:38px}
  #library .modalhead,#envelopePicker .modalhead{align-items:flex-start;flex-wrap:wrap}.envelope-picker-actions{flex-wrap:wrap}
}
#gallerySketchWelcome {
  width:min(490px,calc(100% - 24px));
  word-break:keep-all;
}
#gallerySketchProgress[open] {
  position:fixed; inset:auto 0 max(12px,env(safe-area-inset-bottom)); margin:0 auto;
  display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:6px 16px;
  width:min(420px,calc(100% - 24px)); padding:12px 18px;
  color:var(--navy); background:white; box-shadow:0 4px 24px #162b4933;
}
#gallerySketchProgress::backdrop {background:transparent;}
#galleryPercent {font-weight:700; color:var(--blue); font-variant-numeric:tabular-nums;}
#galleryProgressBar {grid-column:1/-1; width:100%; height:8px; accent-color:var(--blue);}
#gallerySketchWelcome h2 { margin:0 0 14px; }
#gallerySketchWelcome p { margin:0 0 12px; line-height:1.65; }
#gallerySketchWelcome form { margin-top:18px; }
#annotationActionBox .annotation-dialog-actions { flex-wrap:wrap; }

.visitor-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 13px;
}
.visitor-summary strong, .visitor-summary dd { color: var(--navy); }
.visitor-summary dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; }
.visitor-summary dl > div { display: flex; align-items: baseline; gap: 5px; }
.visitor-summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
