[hidden] { display: none !important; }
.sub-main { min-height: calc(100vh - 170px); }
.sub-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 64px; }
.sub-section h1 { font: 400 clamp(32px, 4vw, 48px)/1.2 var(--display); margin: 10px 0 0; letter-spacing: -.035em; }
.sub-intro { margin: 20px 0 36px; }
.sub-hero { position: relative; margin-bottom: 24px; }
.sub-dollar { position: relative; width: 300px; height: 280px; margin-inline: auto; pointer-events: none; user-select: none; }
.sub-dollar-layer { position: absolute; inset: 0; margin: 0; font-family: var(--mono); font-size: var(--dollar-cell, 10px); line-height: 1; letter-spacing: 0; white-space: pre; text-align: center; }
.sub-dollar-blue { color: var(--signal); text-shadow: var(--glow); opacity: .85; }
.sub-dollar-white { color: var(--text); text-shadow: 0 0 6px rgba(242, 241, 236, .2); }
.sub-console { border: 1px solid var(--line); background: rgba(6, 6, 7, .68); }
.sub-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font: 400 13px/1.5 var(--mono); }
.sub-bar h2 { margin: 0; color: var(--text); font: 400 16px/1.4 var(--mono); }
.sub-bar-mark { color: var(--signal); }
.sub-auth { max-width: 500px; }
.sub-auth-body, .sub-dialog-body { padding: 26px; }
.sub-help { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.sub-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; font: 400 14px/1.5 var(--mono); color: var(--muted); }
.sub-section input, .sub-section select, .sub-dialog input, .sub-dialog select, .sub-dialog textarea { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 0; background: #0b0d11; color: var(--text); padding: 11px 12px; font: 400 14px/1.5 var(--mono); }
.sub-section input::placeholder, .sub-dialog input::placeholder, .sub-dialog textarea::placeholder { color: var(--soft); }
.sub-section input:focus, .sub-dialog input:focus, .sub-dialog textarea:focus, .sub-section select:focus, .sub-dialog select:focus { border-color: var(--signal); outline: 1px solid var(--signal); outline-offset: 0; }
.sub-section select, .sub-dialog select { appearance: none; padding-right: 36px; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"%3E%3Cpath d="m1 1 5 5 5-5" fill="none" stroke="%239ccaff" stroke-width="1.5"/%3E%3C/svg%3E'); background-position: right 12px center; background-repeat: no-repeat; }
.sub-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0; padding: 10px 16px; background: transparent; color: var(--text); font: 400 14px/1.5 var(--mono); cursor: pointer; transition: border-color .15s, background .15s; }
.sub-button:hover { background: var(--panel-strong); border-color: var(--text); }
.sub-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.sub-primary:hover { background: var(--phosphor); border-color: var(--phosphor); }
.sub-text-button { padding: 3px 0; border: 0; background: none; color: var(--muted); font: 400 13px/1.5 var(--mono); text-decoration: none; cursor: pointer; }
.sub-text-button:hover { color: var(--phosphor); }
button:disabled { opacity: .5; cursor: wait; }
.sub-form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sub-fine { color: var(--soft); font: 400 12px/1.7 var(--mono); }
.sub-auth .sub-fine { margin: 24px 0 0; }
.sub-notice { margin: 0 0 18px; color: var(--phosphor); font: 400 14px/1.6 var(--mono); }
.sub-error { color: var(--alert); font: 400 14px/1.6 var(--mono); overflow-wrap: anywhere; }
.sub-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.sub-terminal { margin: 0; color: var(--phosphor); font: 400 14px/1.7 var(--mono); overflow-wrap: anywhere; }
.sub-muted { color: var(--soft); margin-right: 9px; }
.sub-account-actions { display: flex; gap: 24px; }
.sub-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.sub-summary > div { padding: 0 28px; border-left: 1px solid var(--line); }
.sub-summary > div:first-child { border: 0; padding-left: 0; }
.sub-summary h2 { margin: 0 0 14px; color: var(--muted); font: 400 14px/1.5 var(--mono); }
.sub-total { font: 400 clamp(22px, 2.8vw, 32px)/1.45 var(--display); overflow-wrap: anywhere; }
.sub-total span { display: block; }
.sub-total small { display: block; font: 400 13px/1.6 var(--mono); color: var(--muted); }
.sub-estimate-note { margin: 12px 0 28px; }
.sub-toolbar { display: flex; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.sub-search { flex: 1; min-width: 140px; }
.sub-toolbar > label:nth-child(2) { width: 175px; }
.sub-toolbar > button { flex-shrink: 0; }
.sub-empty { padding: 54px 24px 58px; text-align: center; }
.sub-empty-symbol { color: var(--signal); font: 400 32px/1 var(--display); }
.sub-empty h2 { font: 400 24px/1.5 var(--display); margin: 18px 0 8px; }
.sub-empty p { margin: 0 auto 24px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 470px; }
.sub-table { width: 100%; border-collapse: collapse; text-align: left; }
.sub-table th { padding: 14px 22px; color: var(--soft); font: 400 12px/1.5 var(--mono); white-space: nowrap; }
.sub-table td { padding: 20px 22px; border-top: 1px solid var(--line); font: 400 14px/1.7 var(--mono); vertical-align: middle; }
.sub-table td:first-child { width: 32%; }
.sub-table .sub-name { display: block; color: var(--text); font: 400 16px/1.6 var(--mono); overflow-wrap: anywhere; }
.sub-name[href]:hover { color: var(--phosphor); }
.sub-row-note { display: block; color: var(--soft); font: 400 12px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 330px; margin-top: 5px; }
.sub-row-detail { display: block; color: var(--muted); font: 400 12px/1.6 var(--mono); }
.sub-renewal-soon { color: var(--phosphor); }
.sub-status { color: var(--phosphor); font-size: 12px; }
.sub-status-paused { color: var(--soft); }
.sub-row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; }
.sub-row-actions button { font-size: 12px; }
.sub-row-paused .sub-name { color: var(--muted); }
.sub-tracker-note { margin-top: 20px; max-width: 760px; }
.sub-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); box-shadow: 0 20px 100px #000; }
.sub-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(3px); }
.sub-dialog .sub-bar { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.sub-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-field .sub-fine { margin-top: -3px; }
.sub-optional { color: var(--soft); font-size: 12px; }
.sub-dialog textarea { resize: vertical; }
.sub-delete-dialog { max-width: 480px; }
.sub-delete-dialog p { line-height: 1.65; overflow-wrap: anywhere; }
.sub-danger { color: var(--alert); border-color: var(--alert); }
@media (max-width: 900px) {
  .sub-dollar { width: 230px; height: 210px; }
  .sub-table th, .sub-table td { padding-left: 14px; padding-right: 14px; }
  .sub-row-actions { gap: 10px; }
}
@media (max-width: 700px) {
  .sub-section { padding-top: 56px; }
  .sub-dollar { width: 140px; height: 145px; }
  .sub-summary { grid-template-columns: 1fr 1fr; row-gap: 24px; padding: 22px 0; }
  .sub-summary > div { padding-left: 20px; padding-right: 0; }
  .sub-summary > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .sub-summary > div:last-child .sub-total { font-size: 24px; }
  .sub-toolbar { flex-wrap: wrap; padding: 16px; }
  .sub-search { flex-basis: calc(100% - 150px); }
  .sub-toolbar > label:nth-child(2) { width: 135px; }
  .sub-toolbar > button { width: 100%; }
  .sub-table thead { display: none; }
  .sub-table, .sub-table tbody { display: block; }
  .sub-table tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 20px 16px; gap: 16px 12px; }
  .sub-table tr:first-child { border-top: 0; }
  .sub-table td { display: block; padding: 0; border: 0; }
  .sub-table td:first-child { grid-column: 1 / -1; width: auto; }
  .sub-table td[data-label]::before { content: attr(data-label); display: block; color: var(--soft); font: 400 12px/1.6 var(--mono); margin-bottom: 5px; }
  .sub-table td:last-child { grid-column: 1 / -1; }
  .sub-row-actions { justify-content: flex-start; gap: 24px; }
  .sub-row-actions button { font-size: 13px; padding: 5px 0; }
  .sub-table .sub-row-note { max-width: none; }
  .sub-bar { padding: 14px 16px; }
  .sub-auth-body, .sub-dialog-body { padding: 22px 18px; }
  .sub-total { font-size: 24px; }
  .sub-field-pair { gap: 12px; }
  .sub-dialog input, .sub-dialog select, .sub-dialog textarea, .sub-auth input, #search { font-size: 16px; }
}
@media (max-width: 450px) {
  .sub-field-pair { grid-template-columns: 1fr; gap: 0; }
}
