/* =====================================================================
   MOON Water — app.css
   Calm, professional billing tool. One accent, hairline borders,
   restrained depth, line icons. Mobile first. Tabular money figures.
   ===================================================================== */

:root {
  /* cool-biased neutrals — picked, not defaulted */
  --ink:      #0f1a24;
  --ink-soft: #35424d;
  --muted:    #667683;
  --faint:    #93a1ac;
  --line:     #e4e9ed;
  --line-2:   #eef2f5;
  --wash:     #f4f7f9;
  --surface:  #ffffff;

  /* single accent: deep water-blue */
  --brand:    #0e6d92;
  --brand-d:  #0b566f;
  --brand-t:  #eaf3f7;   /* tint */

  /* semantic (separate from accent) */
  --due:      #c02626;   --due-t:  #fbecec;
  --ok:       #1a7f4b;   --ok-t:   #e9f6ef;
  --amber:    #b06a06;   --amber-t:#fbf1e2;

  --radius:   14px;
  --radius-sm:10px;
  --tap:      48px;
  --page-max: 640px;
  --bar-h:    62px;
  --shadow:   0 1px 2px rgba(15,26,36,.05);
  --shadow-2: 0 2px 10px rgba(15,26,36,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Nastaliq Urdu", sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 14px);
}
.num, .table td, .table th, input.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
h1,h2,h3 { line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ta-r { text-align: right; }
svg { display: block; }

/* --------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark { width: 28px; height: 28px; flex: none; }
.logo__text { font-size: 16.5px; color: var(--ink); letter-spacing: -.02em; font-weight: 600; }
.logo__text b { font-weight: 800; color: var(--brand); }
.logo--lg .logo__mark { width: 50px; height: 50px; }
.logo--lg .logo__text { font-size: 25px; }

/* ------------------------------------------------------------- layout */
.page { max-width: var(--page-max); margin: 0 auto; padding: 14px 16px 28px; }
.page--bare { max-width: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 16px; }
.page--bare > * { width: 100%; max-width: 380px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 4px;
  min-height: 54px; padding: 8px 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 18px; font-weight: 700; }
.topbar__back {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap); margin-left: -10px;
  font-size: 22px; color: var(--ink-soft);
}
.sidebar { display: none; }

/* ----------------------------------------------------------- tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__item {
  flex: 1; min-height: var(--bar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 11px; font-weight: 600;
}
.tabbar__item.is-active { color: var(--brand); }
.tabbar__ic { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* Dashboard stat cards — 2x2 mobile, 1x4 desktop */
.statcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 620px) { .statcards { grid-template-columns: repeat(4, 1fr); } }
.statcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.statcard__body { flex: 1; min-width: 0; }
.statcard__label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.statcard__value { font-size: 24px; font-weight: 700; margin-top: 4px; line-height: 1.1; color: var(--ink); }
.statcard__ic { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.statcard__ic svg { width: 22px; height: 22px; }
.statcard--customers .statcard__ic { background: #fee2e6; color: #e11d48; }
.statcard--bills     .statcard__ic { background: #dbeafe; color: #2563eb; }
.statcard--sales     .statcard__ic { background: #dcfce7; color: #16a34a; }
.statcard--purchase  .statcard__ic { background: #fef3c7; color: #d97706; }

/* Trend row: chart + quick stats. Stacks on mobile, side-by-side on desktop. */
.trendrow { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 900px) { .trendrow { grid-template-columns: 2fr 1fr; } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.chart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.chart__title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.chart__total { font-size: 12.5px; color: var(--muted); }
.chart__svg { width: 100%; height: 200px; display: block; }
.chart__grid line { stroke: #edf1f4; stroke-width: 1; stroke-dasharray: 2 3; }
.chart__area { fill: rgba(14, 109, 146, .10); }
.chart__line { fill: none; stroke: #0e6d92; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot  { fill: #0e6d92; stroke: #fff; stroke-width: 1.5; }
.chart__label { font-size: 10.5px; fill: #7d8890; font-family: system-ui, sans-serif; }

.quickstats { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.quickstats__title { font-size: 12px; font-weight: 700; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.quickstat { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; }
.quickstat + .quickstat { border-top: 1px solid #eef2f4; }
.quickstat__label { color: var(--ink-soft); font-weight: 600; font-size: 13.5px; }
.quickstat__val { font-weight: 700; color: var(--ink); font-size: 17px; }

/* Sub-nav — tabs across the three inventory pages */
.subnav { display: flex; gap: 6px; margin: 0 0 14px; padding: 4px; background: var(--wash); border-radius: 11px; overflow-x: auto; }
.subnav__item { flex: 1; text-align: center; padding: 10px 12px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.subnav__item.is-on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

/* "Aur" — collapsible section for the less-used fields */
.more { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px; }
.more > summary { list-style: none; cursor: pointer; min-height: var(--tap); padding: 14px 16px; font-weight: 650; font-size: 15px; color: var(--brand); display: flex; align-items: center; justify-content: space-between; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "▾"; color: var(--muted); font-size: 13px; }
.more[open] > summary::after { content: "▴"; }
.more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.more > *:not(summary) { margin-left: 16px; margin-right: 16px; }
.more > *:last-child { margin-bottom: 16px; }
.card__hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.section { margin-top: 22px; }
.section__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.countpill { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.countpill--due { background: var(--due); }

/* ---------------------------------------------- the 3 create tiles */
.makegrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin: 0 auto 12px; max-width: 560px;
}
.make {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 16px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); color: var(--ink);
}
.make:active { background: var(--wash); }
.make:hover  { border-color: var(--brand); }
.make__ic { width: 22px; height: 22px; stroke: var(--brand); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.make__icbox { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-t); display: flex; align-items: center; justify-content: center; flex: none; }
.make__label { font-size: 15px; font-weight: 650; line-height: 1.2; color: var(--ink-soft); }
.make__label br { display: none; }

/* -------------------------------------------------------- summary bar */
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 auto 14px; max-width: 560px; }
.summary__cell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.summary__label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.summary__val { font-size: 22px; font-weight: 700; margin-top: 4px; line-height: 1.1; color: var(--ink); }

.quickrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.quickrow__item { text-align: center; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 650; color: var(--ink); box-shadow: var(--shadow); }

/* --------------------------------------------------- standing figures */
.standing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; overflow: hidden; }
.standing__row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.standing__row:last-child { border-bottom: 0; }
.standing__row span { color: var(--ink-soft); }
.standing__row strong { font-size: 16.5px; }

/* --------------------------------------------------------------- rows */
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap);
  padding: 13px 15px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 8px; color: inherit; box-shadow: var(--shadow);
}
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 650; }
.row__sub { display: block; font-size: 12.5px; color: var(--muted); }
.row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 700; background: var(--wash); color: var(--ink-soft); white-space: nowrap; }
.badge.is-due   { background: var(--due-t); color: var(--due); }
.badge.is-clear { background: var(--ok-t);  color: var(--ok); }
.badge.is-ok    { background: var(--wash);  color: var(--muted); }
.badge.is-water { background: var(--brand-t); color: var(--brand); }

.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; vertical-align: middle; text-transform: uppercase; letter-spacing: .02em; }
.pill--off { background: var(--wash); color: var(--muted); }
.pill--home { background: var(--brand-t); color: var(--brand); }
.pill--shop { background: #eef1f6; color: #3f5670; }
.pill--daily{ background: var(--ok-t); color: var(--ok); }

/* -------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label, .label { display: block; font-size: 14.5px; font-weight: 650; margin-bottom: 6px; color: var(--ink-soft); }
.field__hint { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.field__error { font-size: 12px; color: var(--due); font-weight: 600; margin: 5px 0 0; }

input[type=text],input[type=tel],input[type=password],input[type=search],input[type=number],input[type=date],input[type=file],select,textarea {
  width: 100%; min-height: var(--tap); padding: 11px 13px; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
select { 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 fill='none' stroke='%23667683' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field--inline { display: flex; align-items: center; gap: 12px; }
.field--inline label { flex: 1; margin-bottom: 0; }
.field--inline input { width: 130px; text-align: right; }

.radios { display: grid; gap: 8px; }
.radio, .check { display: flex; align-items: flex-start; gap: 11px; min-height: var(--tap); padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio input, .check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.check__hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------- stepper */
.stepper { display: flex; gap: 8px; }
.stepper__btn { width: var(--tap); min-height: var(--tap); font-size: 24px; line-height: 1; font-weight: 500; color: var(--brand); background: var(--brand-t); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stepper__btn:active { background: #dbeaf1; }
.stepper__input { flex: 1; text-align: center; font-size: 19px; font-weight: 700; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button,.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 11px 20px; font: inherit; font-weight: 650; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; box-shadow: var(--shadow); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(11,86,111,.2); }
.btn--primary:active { background: var(--brand-d); }
.btn--block { display: flex; width: 100%; }
.btn--tall { min-height: 58px; font-size: 17.5px; }
.btn--small { min-height: 42px; padding: 8px 14px; font-size: 13.5px; box-shadow: none; }
.bigactions { display: grid; gap: 10px; margin: 18px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------ notices */
.flash { border-radius: var(--radius-sm); padding: 12px 15px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.flash--success { background: var(--ok-t); color: var(--ok); border: 1px solid #bfe6cf; }
.flash--error { background: var(--due-t); color: var(--due); border: 1px solid #f2c9c9; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.notice p { margin: 6px 0; }
.notice--warn { background: var(--amber-t); border-color: #f0dcb8; }
.notice--good { background: var(--ok-t); border-color: #bfe6cf; }
.empty { text-align: center; padding: 30px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h2 { color: var(--ink); }

/* ------------------------------------------------------------ chips */
.filters { margin-bottom: 12px; }
.filters__search { margin-bottom: 8px; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 7px 15px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: 0; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.table .is-cancelled td { color: var(--muted); text-decoration: line-through; }

/* -------------------------------------------------------------- login */
.login { text-align: center; max-width: 380px; margin: 0 auto; }
.login__logo { margin-bottom: 18px; }
.login__sub { color: var(--muted); margin: 6px 0 22px; }
.login .card { text-align: left; }

/* ----------------------------------------------------- invoice lines */
.iline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 8px; box-shadow: var(--shadow); }
.iline.is-open { border-color: var(--brand); }
.iline__head { display: flex; align-items: center; gap: 10px; }
.iline__name { flex: 1; min-width: 0; font-weight: 650; }
.iline__price { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-weight: 400; }
.iline__price input { width: 84px; min-height: 36px; padding: 5px 8px; font-size: 14px; text-align: right; border: 1px solid var(--line); background: var(--wash); border-radius: 8px; }
.iline__price small { color: var(--muted); font-size: 12px; }
.iline__stepper { flex: none; width: 172px; }
.iline__body { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.iline.is-open .iline__body { display: block; }

.moneyrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.moneyrow:last-of-type { border-bottom: 0; }
.moneyrow span { color: var(--ink-soft); }
.moneyrow--big { font-size: 18px; padding-top: 11px; }
.moneyrow--big strong { font-size: 24px; font-weight: 800; }
.quickfill { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.quickfill .btn { flex: 1; min-width: 84px; }

/* ------------------------------------------------------- success */
.done { text-align: center; padding: 22px 12px 8px; }
.done__tick { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); position: relative; }
.done__tick::after { content:""; position: absolute; left: 21px; top: 15px; width: 15px; height: 26px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.done__title { font-size: 23px; }
.done__no { font-size: 15.5px; font-weight: 700; color: var(--brand); }
.bottleblock { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; padding: 4px 0; }
.bottleblock strong { font-size: 16px; }

/* ============================ desktop ============================ */
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 220px; font-size: 16.5px; }
  /* Login/bare pages and print pages have no sidebar — don't offset them. */
  body.body--bare, body.body--print { padding-left: 0; }
  .tabbar { display: none; }

  /* Dark navy sidebar (Best-Estate reference look) */
  .sidebar {
    display: flex; flex-direction: column;
    position: fixed; inset: 0 auto 0 0;
    width: 220px; padding: 16px 10px 12px;
    background: #0b1524; color: #cbd5e1;
    border-right: 0; overflow-y: auto;
  }
  .sidebar__brand { padding: 4px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
  .sidebar__brand .logo__text { color: #f1f5f9; font-size: 16.5px; }
  .sidebar__brand .logo__text b { color: #38bdf8; }
  .sidebar__brand .logo__mark rect { fill: #0ea5e9; }

  .sidebar__nav { flex: 1; }

  .sidebar__grouptitle {
    position: relative;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: #64748b; padding: 14px 8px 6px 16px; margin-top: 4px;
  }
  .sidebar__grouptitle::before {
    content: ''; position: absolute; left: 4px; top: 16px; height: 12px; width: 3px;
    background: #38bdf8; border-radius: 3px;
  }

  .sidebar__link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; min-height: 42px; margin: 2px 0;
    border-radius: 10px;
    color: #cbd5e1; font-weight: 500; font-size: 14.5px;
  }
  .sidebar__link:hover { background: rgba(255,255,255,.05); color: #f1f5f9; }
  .sidebar__link.is-active { background: #0ea5e9; color: #fff; font-weight: 600; }
  .sidebar__link.is-active .sidebar__ic { stroke: #fff; }
  .sidebar__ic { width: 18px; height: 18px; stroke: #94a3b8; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

  .sidebar__foot { padding: 12px 6px 4px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #94a3b8; }
  .sidebar__user { color: #f1f5f9; font-weight: 700; margin-bottom: 8px; padding: 0 6px; }
  .sidebar__foot .btn { background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,.18); box-shadow: none; }
  .sidebar__foot .btn:hover { background: rgba(255,255,255,.06); }

  /* Dashboards / lists breathe fully. Forms stay a comfortable reading column. */
  .page { max-width: none; padding: 22px 40px 40px; margin: 0; }
  .form, .strip { max-width: 640px; }
  .topbar { position: static; background: transparent; backdrop-filter: none; border-bottom: 0; padding-left: 28px; }
  .topbar__title { font-size: 22px; }
  .make { padding: 22px 14px; }
  .make__label { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media (max-width: 340px) { .makegrid { grid-template-columns: 1fr; } .summary { flex-direction: column; } .page { padding-left: 11px; padding-right: 11px; } }
