:root {
  --primary: var(--selo-primary);
  --action: var(--selo-primary);
  --line-subtle: #edf1f7;
  --soft-teal: #e7f8f4;
  --danger: #b42337;
  --danger-bg: #fff0f2;
  --shadow: 0 4px 20px #0f172a05;
  color-scheme: light;
  --dark: var(--selo-dark);
  --accent: var(--selo-accent);
  --light-gray: var(--selo-light-gray);
  --surface: var(--selo-white);
  --canvas: #f3f6fb;
  --muted: #64748b;
  --soft-blue: #eff6ff;
  --radius: 16px;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", sans-serif;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.6;
  background: var(--canvas);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  --primary: #8bb3ff;
  --dark: #e8eef8;
  --accent: #2dd4bf;
  --light-gray: #334155;
  --surface: #172235;
  --canvas: #0c1423;
  --muted: #a6b5ca;
  --soft-blue: #203452;
  --soft-teal: #143c3b;
  --line-subtle: #29364b;
  --danger: #ff9ca9;
  --danger-bg: #402331;
  --shadow: 0 8px 24px #00000018;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 3px solid #2563eb16; }
button:disabled { cursor: not-allowed; opacity: .6; }
.auth-shell { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1080px; min-height: 650px; margin: max(32px, calc((100vh - 780px) / 2)) auto 32px; background: var(--surface); border: 1px solid var(--light-gray); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px #0f172a08; }
.brand-panel { background: radial-gradient(ellipse at 0 100%, #14b8a625, transparent 60%), var(--selo-dark); color: white; display: flex; flex-direction: column; padding: 38px; }
.wordmark { display: block; flex-shrink: 0; width: 320px; max-width: 100%; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-copy { margin: 65px 0 34px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.brand-copy .eyebrow { color: var(--accent); letter-spacing: 1px; margin-bottom: 15px; }
.brand-copy h1 { font-size: 34px; line-height: 1.5; letter-spacing: -1.5px; }
.brand-description { margin-top: 18px; color: #aebbd0; font-size: 14px; line-height: 1.9; }
.brand-points { display: grid; gap: 18px; }
.brand-points > div { display: flex; gap: 13px; align-items: start; }
.point-number { color: var(--accent); font-size: 11px; font-weight: 700; padding-top: 4px; }
.brand-points strong { display: block; font-size: 13px; font-weight: 600; }
.brand-points p > span { color: #94a3b8; font-size: 11px; display: block; margin-top: 3px; }
.brand-bottom { margin-top: auto; padding-top: 40px; color: #94a3b8; font-size: 10px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.brand-bottom > span:last-child { letter-spacing: 0; }
.brand-rule { display: block; width: 22px; height: 2px; background: var(--accent); }
.auth-content { padding: 35px 44px 24px; display: flex; flex-direction: column; }
.auth-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.auth-topline .eyebrow { color: var(--primary); letter-spacing: 0; }
.version-tag { color: var(--muted); font-size: 9px; letter-spacing: 1.3px; border: 1px solid var(--light-gray); border-radius: 4px; padding: 2px 6px; }
.form-heading { margin-bottom: 22px; }
h2 { font-size: 23px; letter-spacing: -.7px; line-height: 1.5; }
.form-heading p { color: var(--muted); font-size: 13px; margin-top: 5px; }
label { display: block; margin: 13px 0 6px; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; height: 43px; border: 1px solid var(--light-gray); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--dark); transition: border-color .15s; }
input::placeholder { color: #94a3b8; font-size: 12px; }
.section-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.section-label span { font-size: 10px; color: var(--primary); }
.second-section { margin-top: 20px; border-top: 1px solid var(--light-gray); padding-top: 14px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-field button { display: grid; place-items: center; position: absolute; right: 6px; top: 5px; height: 33px; border: 0; background: transparent; color: var(--muted); padding: 0 8px; font-size: 11px; border-radius: 4px; }
.password-field button:hover { background: var(--canvas); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: box-shadow .15s; }
.button.primary { background: var(--action); color: white; box-shadow: 0 3px 8px #2563eb20; }
.button.primary:hover { filter: brightness(.95); }
.button.secondary { border-color: var(--light-gray); background: var(--surface); color: var(--dark); }
.button.secondary:hover { background: var(--soft-blue); }
.button.wide { width: 100%; margin-top: 21px; justify-content: space-between; }
.form-footnote { font-size: 10px; color: var(--muted); text-align: center; margin-top: 11px; }
.auth-footer { padding-top: 25px; margin-top: auto; text-align: center; font-size: 10px; color: #94a3b8; }
.company-banner { display: flex; gap: 12px; align-items: center; background: var(--soft-blue); padding: 15px; border-radius: 9px; margin: 25px 0; }
.company-icon { color: var(--primary); font-size: 22px; }
.company-banner div > span { display: block; font-size: 10px; color: var(--muted); }
.company-banner strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.company-banner .status-dot { margin-left: auto; }
#login-section { padding-top: 38px; }
#login-form > label { margin-top: 19px; }
#login-form .button { margin-top: 27px; }
.login-options { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 17px; }
.login-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: 12px; }
.login-options input { width: 17px; height: 17px; padding: 0; accent-color: var(--action); }
.login-help { font-size: 11px; color: var(--muted); margin-top: 27px; line-height: 1.9; text-align: center; }
.login-help strong { font-weight: 500; color: var(--dark); }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.form-message { margin-top: 13px; border-radius: 6px; padding: 10px 12px; font-size: 12px; color: var(--dark); background: var(--soft-blue); border-left: 3px solid var(--primary); overflow-wrap: anywhere; }
.form-message[data-kind="error"] { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.form-message[data-kind="success"] { border-color: var(--accent); }
#unavailable p { margin: 14px 0 24px; }
.app-header { background: var(--selo-dark); color: white; min-height: 76px; border-bottom: 1px solid #ffffff12; padding: 11px 28px; display: flex; align-items: center; gap: 22px; }
.app-header .wordmark { width: 168px; }
.header-divider { height: 23px; width: 1px; background: #ffffff26; }
.header-company { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.header-preview { color: #94a3b8; font-size: 10px; }
.account-menu { display: flex; align-items: center; gap: 15px; margin-left: auto; flex-shrink: 0; font-size: 12px; }
.account-menu > span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button.header-button { border-color: #ffffff26; color: #cbd5e1; background: transparent; font-size: 11px; min-height: 32px; padding: 7px 10px; }
.workspace-body { width: 100%; min-width: 0; max-width: 1540px; padding: 28px 30px 20px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading .eyebrow { color: var(--primary); font-size: 9px; letter-spacing: 1.5px; margin-bottom: 5px; }
.page-heading h1 { font-size: 27px; letter-spacing: -.8px; }
.page-heading p:not(.eyebrow) { font-size: 12px; color: var(--muted); margin-top: 6px; }
.connected { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--light-gray); background: var(--surface); padding: 6px 11px; font-size: 10px; border-radius: 20px; white-space: nowrap; }
.tabs { display: flex; flex-direction: column; gap: 5px; margin: 13px 0; }
.tabs button { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tabs button.active { color: var(--primary); background: var(--soft-blue); box-shadow: inset 3px 0 var(--action); }
.company-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border: 1px solid var(--light-gray); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 23px; min-width: 0; }
.panel-heading { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel h2 { font-size: 16px; letter-spacing: -.3px; }
.soft-badge { color: var(--primary); background: var(--soft-blue); padding: 3px 8px; font-size: 10px; border-radius: 4px; }
.company-identity { display: flex; align-items: center; gap: 15px; padding-bottom: 24px; }
.company-avatar { width: 55px; height: 55px; background: var(--soft-blue); color: var(--primary); display: grid; place-items: center; border-radius: 11px; font-size: 26px; flex-shrink: 0; }
.company-identity h3 { font-size: 21px; overflow-wrap: anywhere; line-height: 1.5; margin-top: 3px; }
.detail-list { margin: 0; }
.detail-list > div { border-top: 1px solid var(--line-subtle); padding: 12px 0; display: grid; grid-template-columns: 110px minmax(0,1fr); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.next-panel { display: flex; flex-direction: column; align-items: start; }
.panel-kicker { color: var(--primary); font-size: 10px; font-weight: 600; margin-bottom: 14px; }
.next-panel h2 { font-size: 22px; }
.next-panel > p { color: var(--muted); font-size: 12px; margin: 11px 0 23px; }
.scope-note { margin-top: auto; padding-top: 35px; display: flex; gap: 9px; align-items: start; width: 100%; }
.scope-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.scope-note p { font-size: 10px; color: var(--muted); line-height: 1.9; }
.staff-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.title-with-count { display: flex; align-items: center; gap: 9px; }
.count-badge { background: var(--soft-blue); color: var(--primary); min-width: 25px; text-align: center; font-size: 11px; border-radius: 6px; padding: 1px 7px; }
.text-button { background: transparent; border: 0; padding: 4px; color: var(--muted); font-size: 11px; }
.table-scroll { border-radius: 10px; width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th { color: var(--muted); background: var(--canvas); font-size: 10px; font-weight: 500; padding: 11px 12px; }
td { border-bottom: 1px solid var(--line-subtle); font-size: 12px; padding: 16px 12px; overflow-wrap: anywhere; }
.staff-list th:nth-child(1) { width: 35%; } .staff-list th:nth-child(2) { width: 35%; } .staff-list th:nth-child(3) { width: 30%; }
.role-badge { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--canvas); white-space: nowrap; }
.role-badge[data-role="ADMIN"] { background: var(--soft-blue); color: var(--primary); }
.me-tag { color: var(--muted); font-size: 9px; margin-left: 6px; }
.table-note { color: var(--muted); font-size: 10px; margin-top: 16px; }
.staff-add .panel-heading { margin-bottom: 8px; }
.staff-add label { margin-top: 13px; }
.workspace-footer { border-top: 1px solid var(--light-gray); margin-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #94a3b8; padding-top: 15px; }
.workspace-footer strong { letter-spacing: 1px; color: var(--muted); }
.backup-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
.backup-description { color: var(--muted); font-size: 12px; line-height: 1.9; }
.backup-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); font-size: 11px; }
.backup-scope > span:not(.status-dot) { color: var(--muted); }
.backup-scope strong { font-weight: 500; }
.backup-note { margin-top: 13px; }
.recovery-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--light-gray); }
.recovery-section h3 { font-size: 13px; margin-bottom: 8px; }
.recovery-section .button { margin-top: 13px; font-size: 12px; }
.file-picker { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 8px; border: 1px solid var(--light-gray); border-radius: 7px; }
.file-picker button { flex-shrink: 0; background: var(--soft-blue); color: var(--primary); border: 0; border-radius: 4px; padding: 7px 9px; font-size: 11px; }
.file-picker > span { min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.restore-preview { margin-top: 23px; }
.preview-heading { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 12px; margin-bottom: 13px; }
.restore-notice { padding: 12px; background: var(--canvas); border-left: 3px solid var(--dark); font-size: 11px; line-height: 1.8; margin: 13px 0 18px; }

.workspace-frame { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.workspace-sidebar { background: var(--surface); border-right: 1px solid var(--light-gray); padding: 30px 16px; display: flex; flex-direction: column; }
.nav-label { color: var(--muted); font-size: 10px; font-weight: 600; padding: 0 12px; }
.tabs button:hover { background: var(--canvas); color: var(--dark); }
.tabs button.active:hover { background: var(--soft-blue); color: var(--primary); }
.nav-icon { width: 19px; height: 19px; flex-shrink: 0; }
.sidebar-note { display: flex; gap: 6px; align-items: center; margin-top: auto; padding: 25px 4px 0; font-size: 9px; color: var(--muted); }
#workspace-message { margin-bottom: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.summary-grid article { position: relative; background: var(--surface); border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); overflow: hidden; }
.summary-grid article:first-child { background: linear-gradient(125deg, var(--action), #1948b5); border-color: transparent; color: white; }
.summary-grid article:first-child span, .summary-grid article:first-child small { color: #e4edff; }
.summary-grid article:first-child .metric-icon { color: white; background: #ffffff1c; }
.summary-grid article:last-child .metric-icon { background: var(--soft-teal); color: var(--accent); }
.metric-icon { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; padding: 7px; color: var(--primary); background: var(--soft-blue); border-radius: 10px; }
.summary-grid span { padding-right: 35px; display: block; font-size: 12px; color: var(--muted); }
.summary-grid strong { display: block; font-size: clamp(18px,1.9vw,26px); letter-spacing: -.7px; margin: 16px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary-grid small { font-size: 10px; color: var(--muted); }
.business-list { padding: 20px; }
.list-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding-bottom: 17px; border-bottom: 1px solid var(--light-gray); }
.list-toolbar label { margin: 0 0 5px; font-size: 11px; }
.list-toolbar input, .list-toolbar select { height: 39px; }
.list-toolbar .button { min-height: 39px; padding: 9px 15px; white-space: nowrap; }
.list-toolbar > div { min-width: 120px; }
.list-toolbar .search-control { flex: 1; min-width: 160px; max-width: 470px; }
#driver-create { margin-left: auto; }
.list-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 12px; }
.list-caption h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.business-table { min-width: 780px; table-layout: auto; }
.business-table th { font-size: 11px; font-weight: 600; padding: 11px 10px; white-space: nowrap; }
.business-table td { font-size: 13px; padding: 12px 10px; line-height: 1.6; }
.business-table tbody tr:hover { background: var(--soft-blue); }
.driver-table td { white-space: nowrap; }
.driver-table th:first-child { width: 17%; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vehicle-link { background: none; border: 0; padding: 2px 0; color: var(--primary); font: inherit; font-weight: 600; text-align: left; }
.vehicle-link:hover { text-decoration: underline; }
.retired-badge { background: var(--canvas); color: var(--muted); border: 1px solid var(--light-gray); border-radius: 4px; padding: 1px 4px; margin-left: 5px; font-size: 9px; }
.business-table .empty-state { text-align: center; color: var(--muted); padding: 45px 14px; white-space: normal; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; font-size: 11px; color: var(--muted); }
.pagination > div { display: flex; gap: 6px; }
.pagination .button { min-height: 31px; padding: 6px 11px; font-size: 11px; }
.finance-totals { border: 1px solid var(--light-gray); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 18px 0; background: var(--canvas); border-radius: 8px; }
.finance-totals > div { display: flex; flex-direction: column; gap: 3px; padding: 13px 18px; }
.finance-totals span { font-size: 11px; color: var(--muted); }
.finance-totals strong { font-size: 19px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.settings-form { max-width: 920px; }
.business-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 23px; row-gap: 12px; }
.business-form-grid > div { display: grid; grid-template-columns: 115px minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; }
.business-form-grid label { margin: 0; font-size: 12px; }
.business-form-grid input, .business-form-grid select { height: 38px; font-size: 12px; padding: 0 10px; }
.business-form-grid .field-wide { grid-column: 1 / -1; }
.business-form-grid textarea { min-height: 72px; height: auto; padding: 9px 10px; resize: vertical; font-size: 12px; }
.business-form-grid .checkbox-field { display: flex; padding-top: 6px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--primary); }
input:disabled, select:disabled, textarea:disabled { color: var(--dark); opacity: 1; background: var(--canvas); }
.form-actions { display: flex; align-items: center; justify-content: end; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--light-gray); }
.form-actions > span { margin-right: auto; }
.driver-dialog { width: min(860px,calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--light-gray); border-radius: 14px; padding: 25px; color: var(--dark); background: var(--surface); box-shadow: 0 24px 80px #0f172a30; }
.driver-dialog::backdrop { background: #0f172a70; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.dialog-heading h2 { font-size: 21px; overflow-wrap: anywhere; }
.dialog-heading .panel-kicker { display: block; margin-bottom: 3px; }
.dialog-heading .button { flex-shrink: 0; min-height: 34px; font-size: 11px; padding: 7px 11px; }
#driver-history { border-top: 1px solid var(--light-gray); margin-top: 24px; padding-top: 18px; }
#driver-history h3 { font-size: 13px; margin: 0 0 10px; }
#driver-history h3:not(:first-child) { margin-top: 20px; }
#driver-history .business-table { min-width: 470px; }
.history-line { display: flex; gap: 20px; padding: 7px 0; border-bottom: 1px solid var(--light-gray); font-size: 12px; }
.history-line span { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.theme-control { display: inline-flex; align-items: center; gap: 7px; }
.theme-control label { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.theme-control select { width: auto; min-width: 94px; height: 32px; padding: 0 7px; font-size: 11px; border-radius: 8px; }
.app-header .theme-control label { color: #cbd5e1; }
.app-header .theme-control select { background: #1c2a40; color: #e8eef8; border-color: #42516a; color-scheme: dark; }
.batch-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--action); }
.batch-table th:first-child { width: 40px; }
#batch-results .table-scroll { max-height: min(48vh, 400px); overflow: auto; }
.batch-table th { position: sticky; top: 0; z-index: 1; }
.period-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.period-toolbar > div { flex: 1; min-width: 150px; }
.period-toolbar label { margin-top: 0; }
.period-history { margin-top: 18px; }
.period-card { margin-bottom: 20px; }
.period-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; background: var(--soft-teal); color: var(--dark); padding: 4px 11px; font-size: 12px; }
.period-status[data-closed="true"] { background: var(--soft-blue); color: var(--primary); }
@media (max-width: 480px) {
  .app-header .theme-control label { display: none; }
  .account-menu { gap: 7px; }
  .app-header .wordmark { width: 112px; }
  .summary-grid strong { font-size: 20px; }
  .metric-icon { top: 12px; right: 12px; width: 28px; height: 28px; padding: 6px; }
}
@media (max-width: 1100px) {
  .auth-shell { margin: 25px; }
  .brand-panel { padding: 30px; }
  .auth-content { padding: 30px; }
  .brand-copy h1 { font-size: 29px; }
  .staff-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 16px; }
  .workspace-frame { grid-template-columns: 170px minmax(0,1fr); }
  .workspace-body { padding: 24px 20px; }
  .summary-grid { gap: 10px; }
  .summary-grid article { padding-left: 12px; padding-right: 12px; }
  .business-form-grid { column-gap: 15px; }
  .business-form-grid > div { grid-template-columns: 100px minmax(0,1fr); }
  .app-header { padding: 15px 24px; gap: 16px; }
}
@media (max-width: 720px) {
  .auth-shell { display: block; margin: 14px; min-height: auto; border-radius: 13px; }
  .brand-panel { padding: 20px 23px; }
  .brand-panel .wordmark { width: 240px; }
  .app-header .wordmark { width: 144px; }
  .brand-copy { margin: 20px 0 0; }
  .brand-copy .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .brand-copy h1 { font-size: 22px; line-height: 1.4; letter-spacing: -.7px; }
  .brand-copy h1 br { display: none; }
  .brand-description, .brand-points, .brand-bottom { display: none; }
  .auth-content { padding: 23px; }
  .auth-topline { margin-bottom: 20px; }
  .form-heading h2 { font-size: 21px; }
  .form-heading p { font-size: 12px; }
  #login-section { padding-top: 0; }
  .auth-footer { padding-top: 25px; }
  .app-header { flex-wrap: wrap; gap: 10px; padding: 10px 16px; min-height: 64px; }
  .header-preview, .header-divider, .account-menu > span { display: none; }
  .header-company { order: 3; width: 100%; font-size: 12px; }
  .account-menu { margin-left: auto; }
  .workspace-body { padding: 20px 14px; }
  .workspace-frame { display: block; }
  .workspace-sidebar { padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--light-gray); }
  .nav-label, .sidebar-note { display: none; }
  .page-heading { display: block; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p:not(.eyebrow) { font-size: 11px; }
  .connected { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0; }
  .tabs button { padding: 9px 11px; font-size: 12px; flex-shrink: 0; }
  .nav-icon { width: 16px; height: 16px; }
  .company-layout, .staff-layout, .backup-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .panel { padding: 18px; }
  .scope-note { padding-top: 25px; }
  .detail-list > div { grid-template-columns: 90px minmax(0,1fr); }
  .next-panel h2 { font-size: 19px; }
  td, th { padding-left: 7px; padding-right: 7px; }
  .form-pair { gap: 9px; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 15px; }
  .summary-grid strong { font-size: 21px; }
  .business-list { padding: 14px; }
  .list-toolbar { flex-wrap: wrap; gap: 8px; }
  .list-toolbar .search-control { flex-basis: 100%; max-width: none; }
  .list-toolbar > div { min-width: 105px; }
  .list-caption { align-items: start; flex-direction: column; gap: 4px; }
  .finance-totals > div { padding: 11px 9px; }
  .finance-totals strong { font-size: 15px; }
  .business-form-grid { grid-template-columns: minmax(0,1fr); }
  .business-form-grid > div { grid-template-columns: 107px minmax(0,1fr); }
  .driver-dialog { width: calc(100% - 20px); padding: 17px; max-height: calc(100dvh - 24px); }
  .dialog-heading h2 { font-size: 18px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > span { flex-basis: 100%; }
  .settings-form .panel-heading { align-items: start; }
  .panel-heading .soft-badge { flex-shrink: 0; }
  .history-line { flex-wrap: wrap; gap: 4px 14px; }

}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
