.sz{--sz-a:var(--primary,#B4552D);--sz-b:var(--accent,#2F4A47);--sz-ink:var(--ink,#23201C);--sz-muted:var(--muted,#6B665E);--sz-bg:var(--bg,#F4F1EA);--sz-line:var(--line,rgba(35,32,28,.14));background:var(--card,#fff);border:1px solid var(--sz-line);border-radius:8px;padding:16px;max-width:100%;box-sizing:border-box}
.sz-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}
.sz-units{display:inline-flex;border:1px solid var(--sz-line);border-radius:8px;overflow:hidden;background:#fff}
.sz-units button{font:inherit;font-size:14px;font-weight:500;padding:0 16px;min-height:40px;border:0;border-left:1px solid var(--sz-line);background:#fff;color:var(--sz-muted);cursor:pointer}
.sz-units button:first-child{border-left:0}
.sz-units button[aria-pressed="true"]{background:var(--sz-bg);color:var(--sz-ink);font-weight:700}
.sz button:focus-visible,.sz select:focus-visible,.sz input:focus-visible{outline:2px solid var(--sz-a);outline-offset:2px}
.sz-sum{margin:0;flex:1 1 240px;font-size:16px;line-height:1.4}
.sz-stage{position:relative;height:clamp(320px,52vh,460px);border-bottom:2px solid var(--sz-ink);overflow:hidden;margin-bottom:16px}
.sz-ruler{position:absolute;left:0;top:0;bottom:0;width:68px;border-right:1px solid var(--sz-ink)}
.sz-tick{position:absolute;right:0;width:12px;height:1px;background:var(--sz-ink)}
.sz-tick span{position:absolute;right:16px;top:-7px;font-size:12px;line-height:14px;color:var(--sz-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.sz-tick.sz-zero span{top:-14px}
.sz-row{position:absolute;left:80px;right:8px;top:0;bottom:0;display:flex;align-items:flex-end;justify-content:center;gap:10px}
.sz-item{position:relative;flex:none}
.sz-item svg{display:block;width:100%;height:100%;overflow:visible}
.sz-tag{position:absolute;left:0;box-sizing:border-box;width:max-content;max-width:90px;font-size:11px;line-height:1.15;white-space:normal;overflow-wrap:break-word;text-align:center;color:var(--sz-ink);background:rgba(255,255,255,.94);padding:2px 4px;border-radius:4px;z-index:1}
.sz-tag b{display:block;font-weight:600}
.sz-tag span{display:block;font-variant-numeric:tabular-nums}
.sz-tag.sz-badge{width:22px;height:22px;max-width:none;padding:0;border:2px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:inherit;background:currentColor}
.sz-badge i{font-style:normal;font-size:11px;font-weight:700;line-height:1;color:#fff}
.sz-lead{position:absolute;width:1px;background:currentColor;opacity:.4}
.sz-c0{color:var(--sz-a)}.sz-c1{color:var(--sz-b)}.sz-c2{color:#8C857A}.sz-c3{color:#93441F}
.sz-dot{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:12px;font-weight:700;line-height:1;color:#fff;background:#8C857A}
.sz-c0 .sz-dot{background:var(--sz-a)}.sz-c1 .sz-dot{background:var(--sz-b)}.sz-c3 .sz-dot{background:#93441F}
.sz-legend{display:none;list-style:none;margin:-4px 0 12px;padding:0}
.sz-legend li{display:flex;align-items:center;gap:8px;color:var(--sz-ink);font-size:13px;line-height:1.5;padding:2px 0}
.sz-legend .sz-dot{width:18px;height:18px;font-size:11px}
.sz-lg-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sz-lg-size{margin-left:auto;color:var(--sz-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.sz-list{list-style:none;margin:0 0 16px;padding:0;border-top:1px solid var(--sz-line)}
.sz-li{display:grid;grid-template-columns:auto 1fr auto auto;gap:16px;align-items:center;padding:8px 0;border-bottom:1px solid var(--sz-line)}
.sz-li-name{font-weight:600;margin:0;color:var(--sz-ink)}
.sz-li-size{margin:0;font-size:14px;color:var(--sz-muted);font-variant-numeric:tabular-nums}
.sz-li-ratio{margin:0;font-size:14px;color:var(--sz-ink)}
.sz-base{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;color:var(--sz-muted);white-space:nowrap;cursor:pointer}
.sz-base input{width:18px;height:18px;accent-color:var(--sz-a)}
.sz-x{width:44px;height:44px;border-radius:8px;border:1px solid var(--sz-line);background:#fff;color:var(--sz-ink);font-size:20px;line-height:1;cursor:pointer}
.sz-x:hover{border-color:var(--sz-ink)}
.sz-add{border:1px solid var(--sz-line);border-radius:8px;overflow:hidden;margin-bottom:16px}
.sz-tabs{display:flex;border-bottom:1px solid var(--sz-line);background:var(--sz-bg)}
.sz-tabs button{flex:1 1 0;font:inherit;font-size:14px;font-weight:500;min-height:44px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--sz-muted);cursor:pointer}
.sz-tabs button[aria-selected="true"]{background:#fff;color:var(--sz-ink);font-weight:700;border-bottom-color:var(--sz-a)}
.sz-form{padding:16px;display:flex;flex-direction:column;gap:12px}
.sz-form label{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600;color:var(--sz-ink)}
.sz-form label span{font-weight:400;color:var(--sz-muted)}
.sz-form input,.sz-form select{font:inherit;font-size:16px;min-height:44px;padding:0 12px;border:1px solid var(--sz-line);border-radius:8px;background:#fff;color:var(--sz-ink);width:100%;min-width:0;box-sizing:border-box}
.sz-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px 8px;align-items:end}
.sz-submit{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.sz-btn{font:inherit;font-size:15px;font-weight:600;min-height:44px;padding:0 20px;border-radius:8px;border:0;background:var(--sz-a);color:#fff;cursor:pointer}
.sz-btn:hover{background:#93441F}
.sz-ghost{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--sz-line);background:#fff;color:var(--sz-ink);cursor:pointer}
.sz-ghost:hover{border-color:var(--sz-ink)}
.sz-actions{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sz-msg{font-size:14px;color:var(--sz-muted)}
@media (min-width:641px){.sz-tag{font-size:12px;max-width:140px}}
@media (max-width:760px){.sz-grid{grid-template-columns:1fr 1fr}.sz-g-name{grid-column:1/-1}}
@media (max-width:640px){.sz{padding:12px}.sz-bar{margin-bottom:8px}.sz-stage{height:clamp(240px,40vh,340px);margin-bottom:12px}.sz-ruler{width:58px}.sz-tick span{right:14px;font-size:11px}.sz-row{left:64px;gap:6px}.sz-legend{display:block}.sz-form{padding:12px}.sz-li{grid-template-columns:auto 1fr auto;row-gap:4px}.sz-base{grid-column:2;justify-self:start}.sz-x{grid-column:3;grid-row:1}.sz-btn{width:100%}.sz-actions .sz-ghost{flex:1 1 100%}}