:root {
  color-scheme: light;
  --ink: #1c302c;
  --muted: #6d7d78;
  --line: #e2e9e5;
  --paper: #f4f7f4;
  --white: #fff;
  --green: #176957;
  --green-dark: #104c40;
  --mint: #e4f2eb;
  --coral: #c65e48;
  --blue: #466f89;
  --shadow: 0 16px 42px rgb(22 53 44 / 7%);
}

* { box-sizing: border-box; }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.brand > span:last-child { color: var(--green); }
.brand:hover { color: var(--ink); }
.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 10px 10px 10px 3px;
  font-size: 16px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.btn { min-height: 43px; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark); }
.btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-border-color: #cbd6d1; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff; }
.form-control, .form-select {
  min-height: 45px;
  padding: 10px 12px;
  color: var(--ink);
  border-color: #d7e0db;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
}
.form-control:focus, .form-select:focus { border-color: #6aa28e; box-shadow: 0 0 0 3px rgb(23 105 87 / 12%); }
.form-label { margin-bottom: 7px; color: #394a45; font-size: 12px; font-weight: 700; }
.form-stack { display: grid; gap: 18px; }
.form-stack > [hidden] { display: none !important; }
.form-stack fieldset { margin: 0; padding: 0; border: 0; }
.form-stack legend { float: none; width: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.alert { border: 0; border-radius: 5px; font-size: 13px; }

.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); }
.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  color: white;
  background-color: #123d36;
  background-image: repeating-linear-gradient(133deg, transparent 0 55px, rgb(255 255 255 / 3%) 56px 57px, transparent 58px 112px), radial-gradient(ellipse at 82% 86%, #246954 0, transparent 45%);
}
.auth-visual::after { position: absolute; right: 8%; bottom: 16%; width: 190px; height: 250px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 48% 48% 7px 7px; content: ""; transform: rotate(24deg); }
.brand-light, .brand-light:hover { position: relative; z-index: 1; color: white; }
.brand-light > span:last-child { color: #a4d7b8; }
.brand-light .brand-icon { color: var(--green-dark); background: #c9ead4; }
.auth-story { position: relative; z-index: 1; max-width: 560px; margin: auto 0; padding: 70px 0; }
.auth-story .eyebrow { color: #9bd2ae; }
.auth-story h1 { margin: 0 0 20px; font-family: Manrope, sans-serif; font-size: clamp(44px, 5.3vw, 74px); font-weight: 800; line-height: 1.04; }
.auth-story > p:last-child { max-width: 430px; margin: 0; color: rgb(255 255 255 / 75%); font-size: 16px; line-height: 1.8; }
.visual-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; color: #d4e6dc; font-size: 12px; }
.visual-foot span::before { margin-right: 8px; color: #a4d7b8; content: "•"; }
.auth-panel { display: flex; width: min(100%, 520px); flex-direction: column; justify-content: center; justify-self: center; padding: 54px clamp(28px, 6vw, 78px); }
.auth-mobile-brand { display: none; margin-bottom: 55px; }
.auth-heading { margin-bottom: 32px; }
.auth-heading h2 { margin: 0 0 10px; font-family: Manrope, sans-serif; font-size: 32px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.auth-switch { margin: 23px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { margin-left: 4px; font-weight: 700; }
.auth-legal { margin: 38px 0 0; color: #85938e; text-align: center; font-size: 11px; line-height: 1.6; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 27px 17px 18px; background: #fff; border-right: 1px solid var(--line); }
.sidebar .brand { margin: 0 0 40px 9px; }
.workspace-label { margin: 0 10px 12px; color: #96a39d; font-size: 9px; font-weight: 700; letter-spacing: 0; }
.workspace-name { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 4px 27px; padding: 10px 8px; color: var(--ink); border-radius: 6px; font-size: 12px; font-weight: 700; }
.workspace-name:hover { color: var(--ink); background: #f4f8f5; }
.workspace-name > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.workspace-avatar, .user-avatar { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; color: var(--green); background: var(--mint); border-radius: 50%; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
.side-nav { display: grid; gap: 5px; }
.side-link { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; color: #5c6e67; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 13px; font-weight: 600; }
.side-link > i { width: 18px; color: #82938c; text-align: center; font-size: 15px; }
.side-link-short { display: none; }
.side-link:hover, .side-link.active { color: var(--green-dark); background: #eaf4ee; }
.side-link.active > i { color: var(--green); }
.sidebar-bottom { display: grid; gap: 11px; margin-top: auto; }
.sidebar-bottom form { margin: 0; }
.trial-note { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 5px; color: #52635c; font-size: 10px; }
.trial-note a { width: 100%; padding-left: 15px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #63a880; }
.signout { color: #697872; font-size: 12px; }
.main-content { min-width: 0; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 14px clamp(24px, 4vw, 58px); background: rgb(255 255 255 / 86%); border-bottom: 1px solid var(--line); }
.topbar-date { display: block; color: #83918b; font-size: 10px; text-transform: capitalize; }
.topbar-page { display: block; margin-top: 3px; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; }
.topbar-user { display: flex; align-items: center; gap: 9px; color: #52625c; font-size: 12px; font-weight: 600; }
.topbar-user .user-avatar { width: 32px; height: 32px; font-size: 12px; }
.page-content { width: min(100%, 1350px); margin: 0 auto; padding: 37px clamp(24px, 4vw, 58px) 65px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 29px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-heading h1 { margin: 0 0 7px; font-family: Manrope, sans-serif; font-size: 29px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 40px; }
.metric { display: grid; min-width: 0; grid-template-columns: 42px minmax(0, 1fr); align-content: start; column-gap: 12px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.metric-icon { display: grid; width: 39px; height: 39px; grid-row: span 2; place-items: center; border-radius: 5px; }
.metric-icon.green { color: var(--green); background: #e7f2eb; }
.metric-icon.coral { color: var(--coral); background: #fbebe6; }
.metric-icon.blue { color: var(--blue); background: #eaf0f4; }
.metric-label { align-self: center; color: var(--muted); font-size: 11px; }
.metric strong { overflow-wrap: anywhere; margin-top: 4px; font-family: Manrope, sans-serif; font-size: clamp(18px, 2vw, 25px); font-weight: 800; }
.metric > a { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; color: #667770; border-top: 1px solid #edf1ee; font-size: 10px; }
.metric > a i { color: var(--green); }
.section-block { margin-top: 37px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.text-link { font-size: 11px; font-weight: 700; }
.data-table { margin-bottom: 0; border-color: #edf1ee; font-size: 12px; }
.data-table thead th { padding: 11px 14px; color: #88968f; border-bottom-width: 1px; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.data-table tbody td { padding: 13px 14px; color: #465850; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--ink); font-weight: 700; }
.data-table td small { display: block; margin-top: 3px; color: #82918a; font-size: 10px; }
.table-frame { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.type-pill { display: inline-flex; padding: 5px 8px; color: #53675e; border-radius: 3px; background: #edf3ef; font-size: 10px; text-transform: capitalize; }
.status-form, .payment-form { display: flex; align-items: center; gap: 5px; }
.status-form .form-select { width: auto; min-width: 90px; }
.payment-details > summary { cursor: pointer; }
.payment-form { min-width: 325px; margin-top: 9px; }
.payment-form .form-control { width: 110px; }
.payment-form .form-select { width: 125px; }
.admin-approve, .admin-reject { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-approve { margin-top: 13px; }
.admin-approve input, .admin-approve select, .admin-reject input { min-width: 0; min-height: 36px; padding: 6px 8px; color: var(--ink); border: 1px solid #d7e0db; border-radius: 4px; background: #fff; font-size: 11px; }
.admin-approve input[type="number"] { width: 105px; }
.admin-approve input[name="reference"] { width: 135px; }
.admin-approve select { max-width: 135px; }
.admin-reject { margin-top: 8px; }
.admin-reject input { flex: 1 1 180px; }
.pending-grid { display: grid; gap: 11px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.pending-payment { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pending-payment > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.pending-payment > div strong { font-family: Manrope, sans-serif; font-size: 13px; }
.pending-payment > div span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.section-title { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.65; }
.empty-state { display: grid; justify-items: center; padding: 52px 18px; background: #fff; border: 1px dashed #d5e0d9; border-radius: 6px; text-align: center; }
.empty-icon { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; color: var(--green); background: var(--mint); border-radius: 50%; }
.empty-state h3 { margin: 0 0 6px; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; }
.empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.empty-inline { padding: 19px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.delete-client-form { margin: -13px 0 25px; }
.form-surface { width: min(100%, 760px); padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.client-name { color: var(--ink); }
.client-name:hover { color: var(--green); }
.measurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.measurement-input { position: relative; }
.measurement-input .form-control { padding-right: 35px; }
.measurement-input > span { position: absolute; top: 50%; right: 12px; color: #8a9791; font-size: 11px; transform: translateY(-50%); }
.model-photo { display: block; width: min(100%, 520px); max-height: 430px; margin: 0 0 20px; object-fit: contain; object-position: left center; background: #f7f9f7; border: 1px solid var(--line); border-radius: 5px; }
.subsection-title { padding-top: 5px; color: var(--ink); border-top: 1px solid var(--line); font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-option { position: relative; cursor: pointer; }
.choice-option input { position: absolute; opacity: 0; }
.choice-option span { display: flex; min-width: 145px; align-items: center; gap: 9px; padding: 11px 14px; color: #586860; border: 1px solid #d7e0db; border-radius: 5px; font-size: 12px; }
.choice-option input:checked + span { color: var(--green-dark); background: #edf6f0; border-color: #5d9b7e; }
.choice-option input:focus-visible + span { outline: 3px solid rgb(23 105 87 / 24%); }
.balance-total { display: grid; gap: 5px; text-align: right; }
.balance-total span { color: var(--muted); font-size: 11px; }
.balance-total strong { color: var(--green-dark); font-family: Manrope, sans-serif; font-size: 21px; }
.account-list { max-width: 760px; margin: 0; padding: 4px 23px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.account-list > div { display: grid; grid-template-columns: minmax(150px, .65fr) 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid #edf1ee; }
.account-list > div:last-child { border-bottom: 0; }
.account-list dt { color: var(--muted); font-size: 12px; font-weight: 500; }
.account-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.access-notice { display: flex; gap: 13px; margin-bottom: 24px; padding: 15px 17px; color: #774232; background: #fff1ea; border: 1px solid #f2d5c9; border-radius: 5px; }
.access-notice > i { margin-top: 2px; color: var(--coral); }
.access-notice strong { font-size: 12px; }
.access-notice p { margin: 4px 0 0; color: #82695f; font-size: 11px; }
.setup-screen { display: grid; min-height: 100vh; align-content: center; justify-items: start; max-width: 620px; margin: auto; padding: 32px; }
.setup-mark { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; color: white; background: var(--green); border-radius: 12px 12px 12px 3px; }
.setup-screen h1 { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; }
.setup-screen > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }
.setup-screen code { padding: 2px 5px; color: var(--green-dark); background: #e7f0e9; border-radius: 3px; }
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.search-bar .form-control { flex: 1 1 220px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #52635c; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }
.filter-tabs a[aria-current="page"] { color: var(--green-dark); border-color: #5d9b7e; background: #edf6f0; }
.filter-tabs span { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #edf1ee; font-size: 10px; text-align: center; }
.filter-tabs span.hot { color: #fff; background: var(--coral); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; }
.week-day { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; color: #52635c; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.week-day span { font-size: 10px; text-transform: capitalize; }
.week-day strong { font-family: Manrope, sans-serif; font-size: 16px; }
.week-day em { color: #8a9791; font-size: 11px; font-style: normal; }
.week-day.is-today { color: var(--green-dark); border-color: #5d9b7e; background: #edf6f0; }
.wa-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding: 15px 17px; background: #eef7f1; border: 1px solid #cfe3d6; border-radius: 6px; }
.wa-prompt strong { display: block; font-size: 13px; }
.wa-prompt p { margin: 4px 0 0; color: #52635c; font-size: 12px; }
.money-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money-tiles.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.money-tiles article { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.money-tiles span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.money-tiles strong { font-family: Manrope, sans-serif; font-size: 20px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.account-grid .form-surface { width: 100%; }
.mail-body { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: #394a45; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.pwa-topbar-btn { display: grid; width: 36px; height: 36px; place-items: center; color: var(--green-dark); border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.pwa-topbar-btn[hidden],
[data-pwa-install][hidden] { display: none !important; }
.pwa-topbar-btn:hover { color: #fff; background: var(--green); border-color: var(--green); }
.pwa-banner { position: fixed; z-index: 20; right: 18px; bottom: 18px; display: flex; max-width: min(420px, calc(100vw - 24px)); align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.pwa-banner[hidden] { display: none !important; }
.pwa-banner-mark { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--green); border-radius: 10px; }
.pwa-banner strong { display: block; font-size: 13px; }
.pwa-banner p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.pwa-banner-close { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #6d7d78; border: 0; border-radius: 50%; background: transparent; }
.pwa-banner-close:hover { background: #edf1ee; }
.pwa-dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pwa-dialog::backdrop { background: rgb(22 53 44 / 35%); }
.pwa-dialog h2, .pwa-sheet-card h2 { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 18px; }
.pwa-dialog p, .pwa-dialog li, .pwa-sheet-card p, .pwa-sheet-card li { color: #52635c; font-size: 13px; line-height: 1.55; }
.pwa-dialog ol, .pwa-sheet-card ol { margin: 0 0 18px; padding-left: 18px; }
.pwa-dialog form { display: flex; justify-content: flex-end; }
.pwa-dialog.is-open { display: block; position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; width: auto; max-width: 420px; margin: 0 auto; }
.pwa-sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgb(22 53 44 / 45%); }
.pwa-sheet[hidden] { display: none !important; }
.pwa-sheet-card { width: min(420px, 100%); padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.pwa-sheet-card .btn { width: 100%; }
.pwa-sheet-note { margin: 0 0 16px; font-size: 12px; color: #6d7d78; }
html.is-pwa { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (display-mode: standalone) {
  .pwa-banner, [data-pwa-install] { display: none !important; }
}

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
  .auth-visual { padding: 38px; }
  .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .page-content { padding-right: 25px; padding-left: 25px; }
}
@media (max-width: 680px) {
  .auth-layout { display: block; background: #fff; }
  .auth-visual { display: none; }
  .auth-panel { width: 100%; min-height: 100vh; justify-content: flex-start; padding: 28px 24px 35px; }
  .auth-mobile-brand { display: block; margin-bottom: 54px; }
  .auth-heading h2 { font-size: 28px; }
  .app-shell { display: block; padding-bottom: 67px; }
  .sidebar { position: fixed; z-index: 5; top: auto; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: auto; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; box-shadow: 0 -7px 24px rgb(22 53 44 / 5%); }
  .sidebar > .brand, .workspace-label, .workspace-name, .sidebar-bottom { display: none; }
  .side-nav { display: flex; justify-content: space-around; gap: 2px; }
  .side-link { min-width: 0; min-height: 55px; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 1px; text-align: center; font-size: 9px; }
  .side-link-label { display: none; }
  .side-link-short { display: block; max-width: 100%; overflow: hidden; font-size: 9px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .side-link > i { width: auto; font-size: 17px; }
  .topbar { min-height: 65px; padding: 10px 18px; }
  .topbar-date { font-size: 9px; }
  .topbar-user > span:last-child { display: none; }
  .page-content { padding: 25px 17px 38px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading > .btn { align-self: stretch; }
  .page-heading > .btn-row { width: 100%; }
  .page-heading > .btn-row .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; gap: 9px; margin-bottom: 31px; }
  .metric { grid-template-columns: 38px 1fr; padding: 13px 14px; }
  .metric-icon { width: 35px; height: 35px; }
  .metric strong { font-size: 20px; }
  .metric > a { margin-top: 11px; padding-top: 9px; }
  .section-block { margin-top: 29px; }
  .section-heading h2 { font-size: 16px; }
  .data-table { min-width: 640px; }
  .form-surface { padding: 19px 16px; }
  .measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .status-form .form-select { min-width: 76px; }
  .admin-approve > * { flex: 1 1 120px; }
  .admin-approve input[type="number"], .admin-approve input[name="reference"], .admin-approve select { width: auto; max-width: none; }
  .admin-approve .btn { flex: 0 0 auto; }
  .balance-total { align-self: stretch; text-align: left; }
  .account-list { padding: 3px 15px; }
  .account-list > div { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .setup-screen h1 { font-size: 25px; }
  .week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .money-tiles, .account-grid { grid-template-columns: 1fr; }
  .search-bar .btn { flex: 1 1 auto; }
  .pwa-banner { right: 10px; left: 10px; bottom: 12px; max-width: none; }
  body:has(.app-shell) .pwa-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.app-shell):has(#pwa-banner:not([hidden])) .app-shell { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}