:root{font-family:Inter,'Segoe UI','Microsoft JhengHei',system-ui,sans-serif;color:#172c30;background:#edf2f3;font-synthesis:none;--ink:#172c30;--muted:#546970;--teal:#086759;--line:#dce6e7;--paper:#fff;--soft:#f6f9f8}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.36}button:focus-visible,textarea:focus-visible,.mode:focus-within{outline:2px solid #168b78;outline-offset:3px}[hidden]{display:none!important}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,p{margin:0}
.top{height:66px;display:flex;align-items:center;gap:16px;padding:0 32px;background:#fff;border-bottom:1px solid #d9e4e5}.brand{display:flex;gap:11px;align-items:center;font-size:23px;letter-spacing:-.7px;font-weight:760}.brand b{font-size:19px;margin-left:2px}.brand-icon{display:grid;place-items:center;background:#095a50;color:#fff;border-radius:10px;width:36px;height:36px}.brand-icon svg{width:21px;height:21px}.header-divider,.bar-divider{height:22px;width:1px;background:var(--line)}.subbrand,.help{font-size:13px;color:var(--muted)}.help{margin-left:auto;display:flex;align-items:center;gap:7px;background:none;border:none;padding:8px 0 8px 8px}.help:hover,.link:hover{color:var(--teal);text-decoration:underline}
.layout{display:grid;grid-template-columns:316px minmax(0,1fr);min-height:calc(100vh - 66px)}.sidebar{display:flex;flex-direction:column;gap:24px;background:#fbfcfb;border-right:1px solid #d9e4e5;padding:33px 25px 20px 31px}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--teal);font-size:10px;font-weight:750;letter-spacing:.15em}.eyebrow i,.viewer-foot i{width:7px;height:7px;display:inline-block;background:#2b9a85;border-radius:50%;flex:none}.intro h1{font-size:36px;line-height:1.2;letter-spacing:-1.4px;margin:10px 0 9px}.intro p{font-size:13px;color:var(--muted);line-height:1.75}.settings h2{font-size:14px;display:flex;align-items:center;gap:8px;margin-bottom:10px}.settings h2 span{font:700 10px ui-monospace,monospace;color:var(--teal);background:#e7f2ee;padding:4px 6px;border-radius:4px}.drop{display:flex;align-items:center;flex-direction:column;gap:5px;justify-content:center;width:100%;height:104px;background:#f2f8f6;border:1px dashed #91b7ad;border-radius:10px;color:var(--teal)}.drop:hover,.drop.drag{background:#def2ec;border-color:#228673}.drop-icon{display:grid;place-items:center;width:32px;height:32px;background:#e1f0eb;border-radius:8px}.drop strong,.current strong,.mode strong{font-size:13px}.drop small,.current small,.mode small{color:var(--muted);font-size:11px}.current{display:flex;align-items:center;gap:9px;padding:9px 10px;background:#fff;border:1px solid var(--line);border-radius:8px;margin-top:9px;min-width:0}.current svg{color:var(--teal)}.current div{min-width:0}.current strong,.current small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.current small{margin-top:3px}.link{border:0;background:none;color:var(--teal);padding:7px 0;font-size:12px}.modes{display:grid;gap:7px}.mode{cursor:pointer;position:relative;display:flex;align-items:flex-start;gap:9px;padding:9px 10px;background:#fff;border:1px solid var(--line);border-radius:8px}.mode:hover,.mode:has(input:checked){border-color:#7db2a6;background:#f0f8f5}.mode input{position:absolute;opacity:0;width:1px;height:1px}.radio-dot{width:15px;height:15px;border:1.5px solid #a1b3b4;border-radius:50%;margin-top:1px;display:grid;place-items:center;flex:none}.mode input:checked+.radio-dot{border-color:#208370}.mode input:checked+.radio-dot::before{content:'';background:#208370;width:7px;height:7px;border-radius:50%}.mode strong,.mode small{display:block}.mode small{margin-top:3px}.actions{margin-top:-7px}.primary,.outline{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:7px;font-size:13px;font-weight:700;padding:8px 12px;min-height:37px}.primary{background:#096c5b;border:1px solid #096c5b;color:white}.primary:hover:not(:disabled){background:#07574a}.actions .primary{width:100%;height:41px}.status{font-size:12px;line-height:1.55;color:var(--teal);white-space:pre-wrap}.status:not(:empty){margin-top:8px}.status.error{color:#96392e}.side-foot{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:8px;color:var(--muted);font-size:11px}.side-foot svg{width:14px;height:14px}
.viewer{display:flex;flex-direction:column;min-width:0;padding:24px clamp(16px,3vw,44px) 15px;height:calc(100dvh - 66px)}.viewer-head,.toolbar,.viewer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.viewer-head{margin-bottom:12px}.viewer-title{display:flex;align-items:center;gap:10px}.viewer-title h2{font-size:19px;white-space:nowrap}.viewer-title>span{color:#416268;background:#e1ebeb;border:1px solid #d7e5e5;border-radius:99px;padding:3px 8px;font-size:10px;white-space:nowrap}.outline{background:#fff;border:1px solid #cfdddf;color:#31494e}.outline:hover:not(:disabled){background:#edf7f4;border-color:#95baae}.outline svg,.primary svg{width:16px;height:16px}.toolbar{background:white;border:1px solid #d8e3e5;border-radius:10px 10px 0 0;padding:8px 11px;min-height:51px}.seg{display:flex;gap:3px;background:#edf2f3;padding:3px;border-radius:7px;white-space:nowrap}.seg button,.tool-group button,.icon-button{border:0;background:transparent;border-radius:5px;color:#456067;padding:5px 9px;font-size:12px}.seg button[aria-pressed=true]{color:#086759;background:#fff;font-weight:750;box-shadow:0 1px 3px #223d4820}.tools,.tool-group{display:flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.tools{gap:8px}.tool-group button,.icon-button{display:grid;place-items:center;padding:4px;min-width:25px;min-height:26px}.tool-group button:not(:disabled):hover,.icon-button:hover{background:#e7f1ef;color:var(--teal)}.tool-group svg{width:16px;height:16px}.tool-group span{font-size:12px;min-width:35px;text-align:center}.stage{flex:1;min-height:160px;overflow:auto;background-color:#e1eaed;background-image:radial-gradient(#a5b8bf63 .75px,transparent .75px);background-size:12px 12px;padding:23px 20px 30px;border:1px solid #d8e3e5;border-top:0;border-radius:0 0 10px 10px}.paper{position:relative;margin:0 auto;background:white;box-shadow:0 9px 26px #2b48512b;border-radius:2px;overflow:hidden;isolation:isolate}.paper canvas,.sample-page{display:block;position:absolute;inset:0;width:100%;height:100%}.overlay{position:absolute;inset:0;pointer-events:none}.tag{position:absolute;background:#e0f5ee;color:#07574d;border:1px solid #a2d6ca;border-radius:4px;padding:.13em .42em;line-height:1.22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;pointer-events:auto}.tag:hover,.tag:focus{z-index:1;width:max-content;max-width:90%!important;white-space:normal}.viewer-foot{padding-top:10px;color:#536a72;font-size:11px}.viewer-foot>span:first-child{display:flex;align-items:center;gap:6px}
dialog{width:min(610px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 75px #173c4960;padding:23px;color:var(--ink)}dialog::backdrop{background:#1b394a66}dialog p,dialog li{font-size:14px;line-height:1.65;color:var(--muted)}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.dialog-head{margin-bottom:10px}.dialog-head h2{font-size:19px}.dialog-actions{justify-content:flex-end;flex-wrap:wrap;margin-top:12px}dialog label{font-size:12px;font-weight:700;display:block;margin:12px 0 5px}textarea{min-height:190px;width:100%;resize:vertical;padding:11px;background:#f4f8f8;border:1px solid #cddcde;border-radius:7px;font:12px/1.5 ui-monospace,monospace;color:var(--ink)}
@media(max-width:800px){.layout{grid-template-columns:257px minmax(0,1fr)}.sidebar{padding:26px 15px;gap:18px}.viewer{padding:18px 13px 12px}.stage{padding:15px 12px}.top{padding:0 17px}.intro h1{font-size:31px}.tools,.tool-group{gap:2px}}@media(max-width:620px){.top{height:55px;gap:9px}.brand{font-size:19px}.brand b{font-size:16px}.brand-icon{width:30px;height:30px}.subbrand{font-size:11px}.help{font-size:11px}.help svg{width:15px;height:15px}.layout{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:13px}.intro,.actions,.side-foot{grid-column:1/-1}.intro h1{margin:5px 0;font-size:28px}.desktop{display:none}.side-foot{padding-top:0}.drop{height:75px}.mode{padding:6px}.viewer{height:75dvh;min-height:400px}.toolbar{padding:6px}.seg button{padding:5px 6px}.stage{padding:13px 7px}.viewer-foot{font-size:10px}}
