.tax-notice-dialog { width:min(780px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--ns-border-strong); border-radius:2px; background:var(--ns-bg-soft); color:var(--ns-text); }
.tax-notice-dialog::backdrop { background:rgba(0,0,0,.72); }
.tax-notice-dialog[open] { display:flex; flex-direction:column; }
.tax-notice-header { padding:24px 28px 20px; border-bottom:1px solid var(--ns-border); flex-shrink:0; }
.tax-notice-meta { margin:0 0 8px; color:var(--ns-brand); font-size:12px; font-weight:700; }
.tax-notice-header h2 { margin:0; color:var(--ns-text); font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif; font-size:23px; line-height:1.45; font-weight:750; text-wrap:balance; }
.tax-notice-intro { color:var(--ns-text-dim); font-size:13px; line-height:1.7; margin:10px 0 0; }
.tax-notice-body { padding:4px 28px 24px; overflow-y:auto; overscroll-behavior:contain; font-size:14px; line-height:1.85; color:var(--ns-text-dim); }
.tax-notice-body:focus-visible { outline:2px solid var(--ns-brand); outline-offset:-3px; }
.tax-notice-body h3 { margin:26px 0 8px; font-size:16px; color:var(--ns-text); font-weight:700; }
.tax-notice-body p { margin:10px 0; }
.tax-notice-body ul,.tax-notice-body ol { padding-left:22px; margin:10px 0; list-style:revert; }
.tax-notice-body li { margin:5px 0; }
.tax-notice-body strong { color:var(--ns-text); font-weight:700; }
.tax-notice-example { overflow-x:auto; margin:14px 0; border:1px solid var(--ns-border); }
.tax-notice-example table { width:100%; min-width:480px; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.tax-notice-example th,.tax-notice-example td { padding:10px 12px; text-align:left; white-space:nowrap; border-bottom:1px solid var(--ns-border); }
.tax-notice-example th { background:var(--ns-surface-solid); color:var(--ns-text); }
.tax-notice-example tr:last-child td { border-bottom:0; }
.tax-notice-footer { flex-shrink:0; padding:16px 28px 20px; border-top:1px solid var(--ns-border); }
.tax-notice-footer p { margin:0 0 12px; font-size:12px; line-height:1.6; color:var(--ns-text-dim); }
.tax-notice-actions { display:flex; gap:12px; align-items:center; justify-content:flex-end; }
.tax-notice-actions button { min-height:44px; padding:10px 18px; font-family:inherit; font-size:14px; font-weight:700; border-radius:2px; cursor:pointer; }
.tax-notice-confirm { background:var(--ns-brand); color:#080d19; border:1px solid var(--ns-brand); }
.tax-notice-confirm:hover { filter:brightness(1.08); }
.tax-notice-confirm:disabled { opacity:.65; cursor:wait; }
.tax-notice-secondary { background:transparent; color:var(--ns-text-dim); border:1px solid var(--ns-border-strong); }
.tax-notice-secondary:hover { background:var(--ns-surface-solid); }
.tax-notice-actions button:focus-visible { outline:2px solid var(--ns-brand); outline-offset:3px; }
.tax-notice-error { color:var(--ns-danger,#fca5a5) !important; }
.tax-threshold-summary { margin:20px 0; display:grid; grid-template-columns:1fr auto; gap:12px 20px; font-variant-numeric:tabular-nums; }
.tax-threshold-summary dt { color:var(--ns-text-dim); }
.tax-threshold-summary dd { margin:0; font-weight:700; color:var(--ns-text); text-align:right; }
@media(max-width:600px) {
  .tax-notice-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); }
  .tax-notice-header { padding:18px 18px 16px; }
  .tax-notice-header h2 { font-size:20px; }
  .tax-notice-body { padding:0 18px 18px; }
  .tax-notice-footer { padding:14px 18px 16px; }
  .tax-notice-actions { flex-wrap:wrap; }
  .tax-notice-actions button { flex:1; }
}
