.case-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;margin:18px 0 28px;border:1px solid var(--border);border-radius:11px;background:var(--surface-soft)}
.case-stage{display:flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:7px 12px;font:inherit;font-size:13px;line-height:1.4;white-space:nowrap;text-decoration:none;border:1px solid transparent;border-radius:7px;background:none;color:var(--text);min-width:0;cursor:pointer}
.case-stage[aria-current=step]{background:var(--text);color:var(--on-accent)}.case-stage:disabled{cursor:default;color:var(--muted)}.case-stage-number{display:grid;place-items:center;flex:none;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;font-size:10px;opacity:.7}.case-stage:focus-visible{outline:2px solid var(--text);outline-offset:2px}
@media(max-width:700px){.case-stages{grid-template-columns:1.5fr 1.1fr .65fr 1fr;gap:2px;padding:3px;margin:14px 0 24px;border-radius:10px}.case-stage{min-height:44px;padding:8px 4px;font-size:12px;border-radius:6px}.case-stage-number{display:none}}
.calculation-completed-notice{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 14px;margin:-12px 0 24px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);font-size:12px;color:var(--muted)}.calculation-completed-notice button{background:none;border:0;font:inherit;color:var(--text);cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:5px 0}

.calculation-completed-notice>div{flex:1;min-width:210px}.calculation-completed-notice strong{font-weight:500;color:var(--text)}.calculation-completed-notice p{margin:6px 0 0;line-height:1.6}.calculation-completed-notice button{min-height:44px}
.case-reopen-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text)}.case-reopen-dialog::backdrop{background:#0008}.case-reopen-dialog h2{font-size:21px}.case-reopen-dialog p{font-size:13px;line-height:1.65}.case-reopen-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.case-reopen-actions .button{flex:1;min-height:44px;white-space:normal;text-align:center}

.case-fields-lock{padding:0;margin:0;border:0;min-width:0}
