:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f3f2ef;
  --text: #171717;
  --text-2: #5f615f;
  --text-muted: #929591;
  --border: #e5e3de;
  --border-2: #eceae6;

  --primary: #3159d9;
  --primary-hover: #2649bb;
  --primary-soft: #edf1ff;

  --green: #12b76a;
  --green-soft: #e7f7ef;
  --red: #f04438;
  --red-soft: #fdeceb;
  --amber: #f79009;
  --amber-soft: #fef3e6;
  --purple: #7c3aed;
  --purple-soft: #f2ebfe;
  --gray-soft: #f2f4f7;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, .025);
  --shadow: 0 4px 18px rgba(23, 23, 23, .045);
  --shadow-lg: 0 24px 70px rgba(23, 23, 23, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 244px;
}

:root[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #171a22;
  --surface-2: #1e222c;
  --text: #f0f2f6;
  --text-2: #b4bccb;
  --text-muted: #7d8698;
  --border: #262b36;
  --border-2: #222630;
  --primary: #5b8bff;
  --primary-hover: #6f99ff;
  --primary-soft: #1b2437;
  --green: #34d399; --green-soft: #12271e;
  --red: #f87171; --red-soft: #2b1717;
  --amber: #fbbf24; --amber-soft: #2a2113;
  --purple: #a78bfa; --purple-soft: #211a33;
  --gray-soft: #232833;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 14px;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }

/* ============ Layout ============ */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 28px 32px; flex: 1; }
.app__overlay { display: none; }

/* ============ Sidebar ============ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand__logo { height: 36px; display: grid; place-items: center; }
.brand__mark { height: 36px; width: auto; display: block; }
.brand__name { font-size: 20px; font-weight: 750; color: var(--text); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 550; cursor: pointer;
  transition: background .14s, color .14s;
  border: none; background: none; font: inherit; text-align: left; width: 100%;
}
.nav__item:hover { background: var(--surface-2); color: var(--text); }
.nav__item.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav__item.is-active .icon { color: var(--primary); }
.nav__badge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--red); color:#fff; border-radius: 999px; padding: 1px 7px; }
.sidebar__spacer { flex: 1; }
.premium {
  display: flex; align-items: center; gap: 12px;
  padding: 13px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 60%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.premium__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color:#fff; display:grid; place-items:center; }
.premium__title { font-weight: 700; font-size: 13.5px; color: var(--text); }
.premium__sub { font-size: 12px; color: var(--text-2); }
.premium .icon { margin-left: auto; color: var(--text-muted); }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hamburger { display: none; background:none; border:none; color: var(--text-2); cursor:pointer; padding:4px; }
.search { position: relative; flex: 1; max-width: 620px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 11px; font-size: 14px; color: var(--text);
}
.search input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bell { position: relative; background:none; border:none; color: var(--text-2); cursor:pointer; padding:6px; border-radius:9px; }
.bell:hover { background: var(--surface-2); }
.bell__dot { position:absolute; top:5px; right:6px; width:8px; height:8px; border-radius:50%; background: var(--primary); border:2px solid var(--surface); }
.user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display:grid; place-items:center; color:#fff; font-weight:700; font-size:14px; background: linear-gradient(135deg,#6a8dff,#3b6ff6); }
.user__name { font-weight: 650; font-size: 13.5px; line-height: 1.2; }
.user__email { font-size: 12px; color: var(--text-muted); }
.user .icon { color: var(--text-muted); }

/* ============ Buttons ============ */
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer; transition: background .14s, border-color .14s, transform .05s; display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color:#fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--red); color:#fff; }
.btn--danger:hover { filter: brightness(.94); }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.linkbtn { background:none; border:none; color: var(--primary); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding:0; }
.linkbtn:hover { text-decoration: underline; }

/* ============ Page header ============ */
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom: 22px; flex-wrap:wrap; }
.page-head h1 { font-size: 24px; font-weight: 750; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }

/* ============ Cards ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 18px 20px 0; }
.card__title { font-size: 15.5px; font-weight: 700; display:flex; align-items:center; gap:9px; }
.card__body { padding: 18px 20px 20px; }

/* ============ Dashboard grid ============ */
.dashboard { display: grid; grid-template-columns: minmax(0,1fr) 336px; gap: 20px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-row { display: grid; gap: 16px; min-width: 0; }
.dash-row--a { grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); }
.dash-row--b { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }

/* Stat cards */
.stat { padding: 18px; display:flex; gap: 14px; align-items:flex-start; }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center; flex-shrink:0; }
.stat__icon .icon { width: 22px; height: 22px; }
.stat--blue .stat__icon { background: var(--primary-soft); color: var(--primary); }
.stat--green .stat__icon { background: var(--green-soft); color: var(--green); }
.stat--amber .stat__icon { background: var(--amber-soft); color: var(--amber); }
.stat--purple .stat__icon { background: var(--purple-soft); color: var(--purple); }
.stat__label { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.stat__value { font-size: 26px; font-weight: 780; line-height: 1.15; margin: 2px 0; }
.stat__hint { font-size: 12px; color: var(--text-muted); }

/* Upcoming tasks list */
.task { display:flex; align-items:center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-2); }
.task:first-child { border-top: none; padding-top: 4px; }
.task__thumb { width: 42px; height: 42px; border-radius: 11px; display:grid; place-items:center; font-size: 20px; flex-shrink:0; }
.task__info { min-width:0; flex:1; }
.task__name { font-weight: 650; font-size: 13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task__sub { font-size: 12px; color: var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space:nowrap; }
.pill--red { background: var(--red-soft); color: var(--red); }
.pill--amber { background: var(--amber-soft); color: var(--amber); }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--gray { background: var(--gray-soft); color: var(--text-2); }

/* Asset mini tiles (dashboard preview) */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini {
  border: 1.5px solid var(--border); border-radius: 13px; padding: 10px; cursor: pointer;
  transition: border-color .14s, box-shadow .14s, transform .1s; background: var(--surface);
}
.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.thumb { height: 84px; border-radius: 9px; display:grid; place-items:center; font-size: 34px; margin-bottom: 9px; }
.mini__name { font-weight: 650; font-size: 13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini__price { font-size: 13px; font-weight: 750; margin: 1px 0 8px; }

/* ============ Selected asset panel ============ */
.selected .thumb-lg { height: 152px; border-radius: 12px; display:grid; place-items:center; font-size: 56px; margin-bottom: 14px; }
.selected h3 { font-size: 17px; font-weight: 720; }
.dl-list { list-style:none; margin: 14px 0; padding: 0; display:flex; flex-direction:column; gap: 11px; }
.dl-list li { display:flex; align-items:center; justify-content:space-between; gap: 10px; font-size: 13px; }
.dl-list .dl-key { display:flex; align-items:center; gap:9px; color: var(--text-2); }
.dl-list .dl-key .icon { color: var(--text-muted); }
.dl-list .dl-val { font-weight: 650; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.progress { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow:hidden; margin: 8px 0 6px; }
.progress__bar { height: 100%; border-radius: 999px; background: var(--green); }
.section-label { font-size: 13px; font-weight: 700; margin-bottom: 10px; display:flex; justify-content:space-between; align-items:center; }
.doc { display:flex; align-items:center; gap: 11px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; margin-bottom: 9px; }
.doc__icon { width: 34px; height: 40px; border-radius: 6px; background: var(--red-soft); color: var(--red); display:grid; place-items:center; font-size: 10px; font-weight: 800; flex-shrink:0; }
.doc__info { flex:1; min-width:0; }
.doc__name { font-weight: 650; font-size: 13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.doc__meta { font-size: 11.5px; color: var(--text-muted); }
.doc__dl { background:none; border:none; color: var(--text-2); cursor:pointer; padding:5px; border-radius:7px; }
.doc__dl:hover { background: var(--surface-2); color: var(--primary); }

/* ============ Charts ============ */
.chart-wrap { position: relative; }
.bars { width: 100%; height: 210px; }
.bar { fill: var(--primary); transition: fill .14s; cursor: pointer; }
.bar:hover, .bar.is-hot { fill: var(--primary-hover); }
.bar-x { fill: var(--text-muted); font-size: 11px; }
.bar-y { fill: var(--text-muted); font-size: 10.5px; }
.grid-line { stroke: var(--border-2); stroke-width: 1; }
.chart-tip {
  position: absolute; transform: translate(-50%, -100%);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 9px; padding: 7px 11px; font-size: 12px; pointer-events: none;
  white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 5;
}
.chart-tip b { display:block; font-size: 13px; }
.chart-tip .tip-label { color: var(--text-muted); font-size: 11px; }

/* Donut */
.donut-wrap { display:flex; align-items:center; gap: 22px; flex-wrap: wrap; }
.donut { --p:0; width: 150px; height: 150px; border-radius: 50%; flex-shrink:0; position: relative;
  background: conic-gradient(var(--donut-gradient)); }
.donut::after { content:""; position:absolute; inset: 22px; border-radius:50%; background: var(--surface); }
.donut__center { position:absolute; inset:0; display:grid; place-items:center; text-align:center; z-index:1; }
.donut__center small { font-size: 11.5px; color: var(--text-muted); display:block; }
.donut__center b { font-size: 26px; font-weight: 780; }
.legend { list-style:none; margin:0; padding:0; flex:1; min-width: 180px; display:flex; flex-direction:column; gap: 12px; }
.legend li { display:flex; align-items:center; gap: 9px; font-size: 13px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink:0; }
.legend .lg-name { color: var(--text-2); }
.legend .lg-val { margin-left:auto; font-weight: 650; }
.legend .lg-pct { color: var(--text-muted); font-size: 12px; width: 44px; text-align:right; }

/* ============ Asset grid (Varlıklarım page) ============ */
.toolbar { display:flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .search { max-width: none; }
.toolbar select { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; font: inherit; font-size:14px; color: var(--text); cursor:pointer; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.acard { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; display:flex; flex-direction:column; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.acard__thumb { height: 130px; display:grid; place-items:center; font-size: 46px; }
.acard__body { padding: 14px; display:flex; flex-direction:column; gap: 8px; flex:1; }
.acard__cat { font-size: 11.5px; font-weight: 650; color: var(--primary); }
.acard__name { font-size: 15px; font-weight: 700; }
.acard__sub { font-size: 12.5px; color: var(--text-muted); }
.acard__price { font-size: 18px; font-weight: 780; }
.acard__foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top: 10px; border-top:1px solid var(--border-2); }
.acard__actions { display:flex; gap:6px; }
.icon-btn { border:1px solid var(--border); background:transparent; border-radius:8px; width:32px; height:32px; display:grid; place-items:center; cursor:pointer; color: var(--text-muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* Badges */
.badge { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:650; padding:4px 10px; border-radius:999px; }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge--active { color: var(--green); background: var(--green-soft); }
.badge--expiring { color: var(--amber); background: var(--amber-soft); }
.badge--expired { color: var(--red); background: var(--red-soft); }
.badge--none { color: var(--text-2); background: var(--gray-soft); }

/* Simple table */
.table { width:100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align:left; color: var(--text-2); font-weight: 600; font-size: 12px; padding: 10px 12px; border-bottom:1px solid var(--border); text-transform: uppercase; letter-spacing:.03em; }
.table td { padding: 12px; border-bottom:1px solid var(--border-2); }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align:right; font-weight:650; font-variant-numeric: tabular-nums; }

/* Empty state */
.empty { text-align:center; padding: 60px 24px; color: var(--text-2); }
.empty__icon { font-size: 48px; margin-bottom: 6px; }
.empty h2 { color: var(--text); font-size: 19px; margin: 8px 0 4px; }
.empty p { margin: 0 0 18px; }

/* Settings */
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 16px 0; border-top:1px solid var(--border-2); }
.setting-row:first-child { border-top:none; }
.setting-row h4 { font-size: 14px; }
.setting-row p { margin:2px 0 0; color: var(--text-muted); font-size: 12.5px; }
.seg { display:inline-flex; background: var(--surface-2); border:1px solid var(--border); border-radius: 9px; padding: 3px; gap: 3px; }
.seg button { border:none; background:none; padding: 7px 14px; border-radius: 7px; font: inherit; font-size:13px; font-weight:600; cursor:pointer; color: var(--text-2); }
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ============ Modal / Form ============ */
.modal { position: fixed; inset: 0; z-index: 60; display:grid; place-items:center; padding: 20px; }
.modal[hidden] { display: none; } /* hidden özniteliği display:grid'i ezebilsin diye */
.modal__backdrop { position:absolute; inset:0; background: rgba(16,24,40,.5); backdrop-filter: blur(2px); }
.modal__panel { position:relative; width:100%; max-width: 640px; max-height: 92vh; overflow-y:auto; background: var(--surface); border:1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .16s ease; }
.modal__panel--sm { max-width: 440px; }
@keyframes pop { from { opacity:0; transform: scale(.97) translateY(6px);} to { opacity:1; transform:none; } }
.modal__header { display:flex; align-items:center; justify-content:space-between; padding: 20px 22px 0; }
.modal__header h2 { font-size: 18px; }
.modal__close { border:none; background:none; cursor:pointer; font-size:16px; color: var(--text-muted); width:32px; height:32px; border-radius:8px; }
.modal__close:hover { background: var(--surface-2); color: var(--text); }
.form { padding: 18px 22px 22px; display:flex; flex-direction:column; gap: 14px; }
.form__row { display:flex; gap: 12px; flex-wrap: wrap; }
.field { display:flex; flex-direction:column; gap:6px; flex:1; min-width: 110px; }
.field--grow { flex: 2; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field b { color: var(--red); }
.field input, .field select, .field textarea { background: var(--surface); border:1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size:14px; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; }
.field-hint { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .14s, border-color .14s, color .14s; }
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.form__actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.confirm__text { padding: 4px 22px 0; color: var(--text-2); }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--surface); padding: 12px 20px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-row--a, .dash-row--b { grid-template-columns: 1fr; }
  .content { padding: 22px 20px; }
}
@media (max-width: 820px) {
  .sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .app.is-open .app__overlay { display:block; position:fixed; inset:0; background: rgba(16,24,40,.4); z-index: 35; }
  .hamburger { display: block; }
  .topbar { padding: 12px 18px; }
  .user__name, .user__email { display: none; }
}
@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .form__row { flex-direction: column; }
}

/* ============================================================
 *  Premium product refresh
 * ============================================================ */
button { font-family: inherit; }
body { letter-spacing: -.005em; }
.content { padding: 42px 48px 72px; }
#view { width: 100%; max-width: 1420px; margin: 0 auto; animation: viewIn .24s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sidebar { padding: 24px 16px 18px; border-right-color: var(--border); }
.brand { padding: 0 10px 31px; gap: 10px; }
.brand__logo, .brand__mark { height: 30px; }
.brand__name { font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.nav { gap: 0; }
.nav__group { margin-bottom: 25px; }
.nav__label { padding: 0 11px 8px; color: var(--text-muted); font-size: 10px; line-height: 1; font-weight: 720; letter-spacing: .115em; text-transform: uppercase; }
.nav__item { min-height: 39px; padding: 9px 11px; border-radius: 8px; gap: 11px; font-size: 13.5px; color: var(--text-2); }
.nav__item .icon { width: 17px; height: 17px; stroke-width: 1.8; }
.nav__item:hover { background: transparent; color: var(--text); }
.nav__item.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav__badge { min-width: 20px; text-align: center; padding: 1px 5px; background: var(--text); }
.sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin: 10px 7px 0; padding: 14px 10px 4px; border-top: 1px solid var(--border); }
.sidebar-note__dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.sidebar-note b, .sidebar-note small { display: block; }
.sidebar-note b { font-size: 12px; font-weight: 650; }
.sidebar-note small { margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }

.topbar { min-height: 66px; padding: 12px 34px; border-bottom-color: var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); }
.topbar .search { max-width: 480px; }
.search input { height: 39px; border-color: transparent; background: var(--surface-2); border-radius: 9px; font-size: 13px; }
.search input:focus { background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.topbar__right { gap: 13px; }
.user { gap: 8px; }
.avatar { width: 32px; height: 32px; font-size: 11px; background: #202124; }
.user__email { display: none; }
.user__name { font-size: 12.5px; }

.btn { border-radius: 8px; padding: 9px 14px; font-size: 13px; box-shadow: none; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); border-color: #d6d3cc; }
.btn--primary { box-shadow: 0 1px 2px rgba(27, 54, 145, .18); }
.card { box-shadow: none; }
.page-head { margin-bottom: 28px; align-items: flex-end; }
.page-head h1 { font-size: clamp(29px, 3vw, 38px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; }
.page-head p { max-width: 620px; margin-top: 9px; color: var(--text-2); font-size: 14px; }
.page-head--dashboard { margin-bottom: 35px; }
.page-head--dashboard h1 { font-size: clamp(34px, 4vw, 46px); }
.page-head--airy { margin-bottom: 30px; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.text-action { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 620; cursor: pointer; }
.text-action:hover { color: var(--primary); }

.summary-line { display: flex; align-items: center; gap: 0; padding: 18px 0 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.summary-line > div { display: flex; align-items: baseline; gap: 8px; padding: 0 30px; border-left: 1px solid var(--border); }
.summary-line > div:first-child { padding-left: 0; border-left: 0; }
.summary-line b { font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.summary-line span { color: var(--text-muted); font-size: 12.5px; }
.summary-line--page { margin-bottom: 28px; padding: 15px 0; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; }
.home-main { min-width: 0; }
.editorial-section { padding: 34px 0; border-top: 1px solid var(--border); }
.home-main .editorial-section:first-child { padding-top: 0; border-top: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.section-heading h2 { font-size: 21px; font-weight: 690; letter-spacing: -.035em; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading--compact { margin-bottom: 27px; }
.quiet-list, .recent-assets, .activity-list { display: flex; flex-direction: column; }
.quiet-empty { padding: 24px 0; color: var(--text-muted); font-size: 13px; }
.priority-row { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 16px 0; border: 0; border-top: 1px solid var(--border-2); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.priority-row:first-child { border-top: 0; }
.priority-row:hover .priority-row__copy b { color: var(--primary); }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #9b9d99; }
.priority-dot--red { background: var(--red); }
.priority-dot--amber { background: var(--amber); }
.priority-dot--neutral { background: #a9aaa6; }
.priority-row__copy b, .priority-row__copy small { display: block; }
.priority-row__copy b { font-size: 13.5px; font-weight: 650; transition: color .16s; }
.priority-row__copy small { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.priority-row__remaining { color: var(--text-2); font-size: 12px; font-weight: 650; }
.priority-row > .icon { color: var(--text-muted); }

.recent-asset { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border: 0; border-top: 1px solid var(--border-2); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.recent-asset:first-child { border-top: 0; }
.recent-asset__visual { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; }
.recent-asset b, .recent-asset small { display: block; }
.recent-asset b { font-size: 13.5px; }
.recent-asset small { margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }
.recent-asset__meta { font-size: 12.5px; font-weight: 650; }
.activity-row { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border-2); }
.activity-row:first-child { border-top: 0; }
.activity-row__date { color: var(--text-muted); font-size: 11.5px; }
.activity-row b, .activity-row small { display: block; }
.activity-row b { font-size: 13px; }
.activity-row small { margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }
.activity-row strong { font-size: 12.5px; }

.home-aside { position: sticky; top: 92px; }
.vehicle-focus { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .18s, transform .18s; }
.vehicle-focus:hover { border-color: #d0cec7; transform: translateY(-2px); }
.vehicle-focus__image { height: 205px; overflow: hidden; background: #e9e6df; }
.vehicle-focus__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vehicle-focus__body { padding: 23px; }
.vehicle-focus__body h2 { font-size: 21px; }
.vehicle-focus__body > p { margin: 6px 0 21px; color: var(--text-muted); font-size: 12.5px; }
.vehicle-focus__service { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 15px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 17px; }
.vehicle-focus__service span, .vehicle-focus__service small { color: var(--text-muted); font-size: 11.5px; }
.vehicle-focus__service b { font-size: 13.5px; }
.vehicle-focus__service small { grid-column: 1 / -1; }
.vehicle-focus--empty { padding: 28px; cursor: default; }
.vehicle-focus--empty:hover { transform: none; }
.vehicle-focus--empty p { color: var(--text-2); }
.sponsor-slot { margin-top: 22px; padding: 15px 18px; border: 1px solid var(--border); border-radius: 11px; color: var(--text-muted); background: var(--surface-2); }
.sponsor-slot > span { display: block; margin-bottom: 10px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sponsor-slot div { font-size: 12px; font-weight: 620; }
.sponsor-slot small { font-size: 10px; }

/* Vehicles list */
.vehicle-list { display: flex; flex-direction: column; gap: 18px; }
.vehicle-row { min-height: 300px; display: grid; grid-template-columns: minmax(320px, 42%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .18s, background .18s; }
.vehicle-row:hover { border-color: #cfcdc6; }
.vehicle-row__image { min-height: 300px; overflow: hidden; background: #ece9e2; }
.vehicle-row__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.vehicle-row:hover .vehicle-row__image img { transform: scale(1.018); }
.vehicle-row__main { min-width: 0; display: flex; flex-direction: column; padding: 30px 34px 24px; }
.vehicle-row__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.vehicle-row__title h2 { font-size: 24px; font-weight: 690; letter-spacing: -.04em; }
.vehicle-row__title p { margin: 6px 0 0; color: var(--text-muted); font-size: 12.5px; }
.icon-btn--quiet { border-color: transparent; }
.vehicle-row__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: auto 0 24px; padding: 28px 0; }
.vehicle-row__metrics > div { min-width: 0; }
.vehicle-row__metrics span, .vehicle-row__metrics b, .vehicle-row__metrics small { display: block; }
.vehicle-row__metrics span { color: var(--text-muted); font-size: 10.5px; }
.vehicle-row__metrics b { margin-top: 6px; font-size: 14px; font-weight: 670; white-space: nowrap; }
.vehicle-row__metrics small { margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
.vehicle-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 11.5px; }
.vehicle-empty { padding: 90px 24px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }
.vehicle-empty h2 { font-size: 24px; }
.vehicle-empty p { margin: 8px auto 20px; color: var(--text-2); }

/* Vehicle detail */
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; padding: 0; border: 0; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; }
.back-link .icon { transform: rotate(180deg); }
.back-link:hover { color: var(--text); }
.vehicle-hero { min-height: 410px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); overflow: hidden; margin-bottom: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.vehicle-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 52px; }
.vehicle-hero__copy h1 { max-width: 540px; font-size: clamp(40px, 5vw, 62px); line-height: .98; font-weight: 710; letter-spacing: -.055em; }
.vehicle-hero__copy > p { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.vehicle-hero__meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 33px 0 28px; color: var(--text-2); font-size: 12px; }
.vehicle-hero__meta span { position: relative; }
.vehicle-hero__meta span + span::before { content: ""; position: absolute; width: 3px; height: 3px; top: 7px; left: -11px; border-radius: 50%; background: var(--text-muted); }
.vehicle-hero__image { min-height: 410px; overflow: hidden; }
.vehicle-hero__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.overview-panel { margin-bottom: 25px; padding: 31px 34px 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-metric { min-width: 0; padding: 1px 26px; border-left: 1px solid var(--border); }
.overview-metric:first-child { padding-left: 0; border-left: 0; }
.overview-metric span, .overview-metric b, .overview-metric small { display: block; }
.overview-metric span { color: var(--text-muted); font-size: 10.5px; }
.overview-metric b { min-height: 24px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 670; white-space: nowrap; }
.overview-metric small { margin-top: 3px; color: var(--text-muted); font-size: 10.5px; }
.mileage-progress { margin-top: 31px; padding-top: 23px; border-top: 1px solid var(--border); }
.mileage-progress > div { display: flex; align-items: center; justify-content: space-between; }
.mileage-progress span, .mileage-progress small { color: var(--text-muted); font-size: 10.5px; }
.mileage-progress b { font-size: 11.5px; }
.progress--mileage { height: 5px; margin: 11px 0 8px; }
.progress--mileage .progress__bar { background: var(--primary); }
.vehicle-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: 50px; align-items: start; }
.maintenance-section, .upcoming-panel, .vehicle-lower-grid .editorial-section, .documents-section { padding-top: 38px; }
.maintenance-timeline { position: relative; }
.timeline-item { display: grid; grid-template-columns: 18px 118px minmax(0, 1fr); gap: 17px; min-height: 156px; }
.timeline-item__rail { position: relative; }
.timeline-item__rail::after { content: ""; position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: var(--border); }
.timeline-item:last-child .timeline-item__rail::after { display: none; }
.timeline-item__rail span { position: absolute; top: 6px; left: 2px; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item--future .timeline-item__rail span { background: var(--primary); }
.timeline-item__date { padding-top: 1px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.timeline-item__content { padding-bottom: 30px; }
.timeline-item__content h3 { font-size: 16px; font-weight: 670; }
.timeline-item__content p { max-width: 620px; margin: 11px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.65; }
.timeline-item__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--text-muted); font-size: 11.5px; }
.timeline-item__meta b { margin-left: auto; color: var(--text); font-size: 12px; }
.upcoming-list { display: flex; flex-direction: column; }
.upcoming-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 12px; padding: 15px 0; border-top: 1px solid var(--border-2); }
.upcoming-row:first-child { border-top: 0; }
.upcoming-row .priority-dot { margin-top: 6px; }
.upcoming-row b, .upcoming-row small { display: block; }
.upcoming-row b { font-size: 12.5px; }
.upcoming-row small { margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.vehicle-lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 50px; }
.expense-total { display: flex; align-items: baseline; gap: 9px; margin-bottom: 15px; }
.expense-total b { font-size: 29px; letter-spacing: -.04em; }
.expense-total span { color: var(--text-muted); font-size: 11px; }
.chart-wrap--quiet .bars { height: 170px; }
.chart-wrap--quiet .grid-line { stroke: var(--border-2); }
.chart-wrap--quiet .bar { fill: color-mix(in srgb, var(--primary) 76%, #7f8da7); }
.expense-categories { margin-top: 15px; }
.expense-categories > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border-2); font-size: 11.5px; }
.expense-categories span { position: relative; flex: 1; padding-left: 3px; }
.expense-categories i { position: absolute; left: 0; bottom: -4px; width: var(--cat-w); max-width: 92%; height: 2px; background: var(--primary); opacity: .4; }
.expense-categories b { font-size: 11.5px; }
.date-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--border-2); }
.date-list > div:first-child { border-top: 0; }
.date-list b, .date-list small { display: block; }
.date-list b { font-size: 12.5px; }
.date-list small { margin-top: 3px; color: var(--text-muted); font-size: 10.5px; }
.date-tone { font-style: normal; color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }
.date-tone--soon { color: var(--amber); }
.date-tone--critical { color: var(--red); }
.documents-section { padding-bottom: 12px; }
.document-list { border-top: 1px solid var(--border); }
.document-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border-2); }
.document-row__type { width: 38px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--surface); font-size: 9px; font-weight: 760; }
.document-row b, .document-row small { display: block; }
.document-row b { font-size: 12.5px; }
.document-row small { margin-top: 3px; overflow: hidden; color: var(--text-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.document-row__actions { display: flex; gap: 5px; }
.task__thumb--vehicle { overflow: hidden; }
.task__thumb--vehicle img { width: 100%; height: 100%; object-fit: cover; }

.form__section-label { margin: 5px 0 -2px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
#vehicleModal .modal__panel { max-width: 840px; }
#vehicleModal .modal__header { padding: 25px 28px 0; }
#vehicleModal .form { padding: 22px 28px 28px; }
#vehicleModal .field { min-width: 150px; }

/* Make existing utility screens quieter */
.acard { box-shadow: none; transition: border-color .16s, transform .16s; }
.acard:hover { transform: translateY(-1px); border-color: #cfcdc6; box-shadow: none; }
.stat { box-shadow: none; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

@media (max-width: 1220px) {
  .home-grid { gap: 42px; }
  .vehicle-row__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-hero { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); }
  .vehicle-hero__copy { padding: 38px; }
}
@media (max-width: 1020px) {
  .content { padding: 34px 28px 64px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-aside { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr); gap: 18px; }
  .sponsor-slot { margin-top: 0; }
  .vehicle-row { grid-template-columns: 38% minmax(0, 1fr); }
  .vehicle-row__main { padding: 26px; }
  .vehicle-hero { grid-template-columns: 1fr; }
  .vehicle-hero__image { min-height: 360px; grid-row: 1; }
  .vehicle-hero__copy { grid-row: 2; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .overview-metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .vehicle-detail-grid, .vehicle-lower-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 820px) {
  .sidebar { box-shadow: var(--shadow-lg); }
  .topbar { padding: 12px 18px; }
  .content { padding: 28px 20px 58px; }
  .summary-line { overflow-x: auto; }
  .summary-line > div { min-width: max-content; padding: 0 22px; }
  .vehicle-row { grid-template-columns: 1fr; }
  .vehicle-row__image { min-height: 300px; max-height: 380px; }
  .vehicle-row__metrics { margin: 24px 0; }
}
@media (max-width: 620px) {
  .page-head { align-items: flex-start; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; justify-content: center; }
  .page-head--dashboard h1 { font-size: 36px; }
  .summary-line { grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; margin-bottom: 32px; overflow: visible; }
  .summary-line > div { min-width: 0; display: block; padding: 0 10px; }
  .summary-line > div:first-child { padding-left: 0; }
  .summary-line b, .summary-line span { display: block; }
  .summary-line b { font-size: 15px; white-space: nowrap; }
  .summary-line span { margin-top: 3px; font-size: 10px; line-height: 1.25; }
  .home-aside { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 76px minmax(0, 1fr); }
  .activity-row strong { grid-column: 2; }
  .vehicle-row__main { padding: 23px 20px; }
  .vehicle-row__title h2 { font-size: 21px; }
  .vehicle-row__metrics { gap: 20px 12px; }
  .vehicle-row__foot { align-items: flex-start; flex-direction: column; }
  .vehicle-hero__image { min-height: 270px; }
  .vehicle-hero__copy { padding: 28px 22px; }
  .vehicle-hero__copy h1 { font-size: 39px; }
  .vehicle-hero__meta { margin: 24px 0; }
  .overview-panel { padding: 26px 20px; }
  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .overview-metric, .overview-metric:nth-child(3) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--border-2); }
  .overview-metric:first-child { padding-top: 0; border-top: 0; }
  .timeline-item { grid-template-columns: 16px minmax(0, 1fr); gap: 12px; }
  .timeline-item__date { grid-column: 2; margin-bottom: 6px; }
  .timeline-item__content { grid-column: 2; }
  .timeline-item__rail { grid-row: 1 / span 2; }
  .timeline-item__meta b { margin-left: 0; }
  .document-row { grid-template-columns: 38px minmax(0, 1fr); }
  .document-row__actions { grid-column: 2; }
  #vehicleModal .modal__header { padding: 20px 20px 0; }
  #vehicleModal .form { padding: 18px 20px 22px; }
}

/* ============================================================
 *  Premium asset detail
 * ============================================================ */
.acard { cursor: pointer; }
.asset-hero { min-height: 390px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); overflow: hidden; margin-bottom: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.asset-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 52px; }
.asset-hero__copy h1 { max-width: 560px; font-size: clamp(40px, 5vw, 62px); line-height: .98; font-weight: 710; letter-spacing: -.055em; }
.asset-hero__copy > p { margin: 13px 0 0; color: var(--text-muted); font-size: 14px; }
.asset-hero__visual { position: relative; isolation: isolate; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: var(--asset-visual); }
.asset-hero__visual::before, .asset-hero__visual::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.asset-hero__visual::before { width: 330px; height: 330px; }
.asset-hero__visual::after { width: 230px; height: 230px; background: rgba(255,255,255,.19); box-shadow: 0 30px 80px rgba(40,52,71,.12); }
.asset-hero__visual > span { filter: drop-shadow(0 24px 34px rgba(35,45,63,.15)); font-size: clamp(100px, 13vw, 170px); transform: translateY(-5px); }
.asset-hero__visual > small { position: absolute; right: 24px; bottom: 21px; color: rgba(28,39,52,.56); font-size: 9px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
:root[data-theme="dark"] .asset-hero__visual { filter: saturate(.78) brightness(.78); }
:root[data-theme="dark"] .asset-hero__visual > span { filter: drop-shadow(0 24px 34px rgba(0,0,0,.28)); }
.asset-overview .section-heading { align-items: center; }
.asset-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10.5px; font-weight: 680; }
.asset-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.asset-status--active { color: var(--green); }
.asset-status--expiring { color: var(--amber); }
.asset-status--expired { color: var(--red); }
.warranty-progress-detail .progress__bar { transition: width .35s ease; }
.asset-detail-grid .timeline-item { min-height: 144px; }
.asset-timeline .timeline-item__meta { color: var(--text-2); }
.care-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.care-note__mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.care-note__mark .icon { width: 16px; height: 16px; }
.care-note b { display: block; font-size: 11.5px; }
.care-note p { margin: 4px 0 0; color: var(--text-muted); font-size: 10.5px; line-height: 1.55; }
.asset-info-list { border-top: 1px solid var(--border); }
.asset-info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border-2); }
.asset-info-list span { color: var(--text-muted); font-size: 10.5px; }
.asset-info-list b { max-width: 60%; overflow: hidden; font-size: 11.5px; font-weight: 640; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.asset-notes { margin-top: 23px; padding: 18px; border-radius: 11px; background: var(--surface-2); }
.asset-notes span { color: var(--text-muted); font-size: 9.5px; font-weight: 730; letter-spacing: .08em; text-transform: uppercase; }
.asset-notes p { margin: 7px 0 0; color: var(--text-2); font-size: 11.5px; line-height: 1.6; }
.asset-documents-section { margin-top: 5px; }

@media (max-width: 1220px) {
  .asset-hero { grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); }
  .asset-hero__copy { padding: 38px; }
}
@media (max-width: 1020px) {
  .asset-hero { grid-template-columns: 1fr; }
  .asset-hero__visual { min-height: 340px; grid-row: 1; }
  .asset-hero__copy { grid-row: 2; }
}
@media (max-width: 620px) {
  .asset-hero__visual { min-height: 270px; }
  .asset-hero__visual::before { width: 250px; height: 250px; }
  .asset-hero__visual::after { width: 175px; height: 175px; }
  .asset-hero__visual > span { font-size: 112px; }
  .asset-hero__copy { padding: 28px 22px; }
  .asset-hero__copy h1 { font-size: 39px; }
  .asset-hero__copy .page-actions { width: 100%; }
  .asset-hero__copy .page-actions .btn { flex: 1; justify-content: center; }
  .asset-overview .section-heading { align-items: flex-start; }
  .asset-status { margin-top: 3px; }
}

/* ============================================================
 *  Premium motorcycle module
 * ============================================================ */
.motorcycle-row { min-height: 320px; }
.motorcycle-row__image { background: #e7e2d8; }
.motorcycle-row__image img { object-position: center center; }
.motorcycle-row__metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.motorcycle-hero { grid-template-columns: minmax(0, .78fr) minmax(540px, 1.22fr); }
.motorcycle-hero__image { background: #e8e3d8; }
.motorcycle-hero__image img { object-position: center center; }
.motorcycle-overview { padding-bottom: 30px; }
.motorcycle-care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 31px; padding-top: 23px; border-top: 1px solid var(--border); }
.motorcycle-care-grid .mileage-progress { margin: 0; padding: 0 28px 0 0; border-top: 0; }
.motorcycle-care-grid .mileage-progress + .mileage-progress { padding-right: 0; padding-left: 28px; border-left: 1px solid var(--border); }
.progress--drive { height: 5px; margin: 11px 0 8px; }
.progress--drive .progress__bar { background: #5f766f; }
.motorcycle-care-note .care-note__mark { color: #49675e; background: color-mix(in srgb, #5f766f 13%, transparent); }
.motorcycle-specs { margin-top: 24px; border-top: 1px solid var(--border); }
.motorcycle-specs > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.motorcycle-specs span { color: var(--text-muted); font-size: 10.5px; }
.motorcycle-specs b { max-width: 62%; overflow: hidden; font-size: 11.5px; font-weight: 640; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
#motorcycleModal .modal__panel { max-width: 840px; }
#motorcycleModal .modal__header { padding: 25px 28px 0; }
#motorcycleModal .form { padding: 22px 28px 28px; }
#motorcycleModal .field { min-width: 150px; }

@media (max-width: 1220px) {
  .motorcycle-row__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .motorcycle-hero { grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr); }
}
@media (max-width: 1020px) {
  .motorcycle-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .motorcycle-care-grid { grid-template-columns: 1fr; gap: 23px; }
  .motorcycle-care-grid .mileage-progress,
  .motorcycle-care-grid .mileage-progress + .mileage-progress { padding: 0; border-left: 0; }
  .motorcycle-care-grid .mileage-progress + .mileage-progress { padding-top: 22px; border-top: 1px solid var(--border-2); }
}
@media (max-width: 620px) {
  .page-head--dashboard .page-actions { flex-wrap: wrap; }
  .page-head--dashboard .page-actions .btn { min-width: calc(50% - 5px); }
  .motorcycle-row__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #motorcycleModal .modal__header { padding: 20px 20px 0; }
  #motorcycleModal .form { padding: 18px 20px 22px; }
}

/* ============================================================
 *  Authentication
 * ============================================================ */
.app[hidden], .auth-shell[hidden], .auth-pane[hidden], .auth-form[hidden], .auth-heading[hidden] { display: none !important; }
body.auth-active { overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.04fr) minmax(480px, .96fr); background: var(--surface); }
.auth-story { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 42px clamp(42px, 5vw, 78px); color: #f8fafc; background: #10182a; }
.auth-story::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 82% 13%, rgba(70,116,235,.26), transparent 35%), radial-gradient(circle at 9% 92%, rgba(40,105,116,.22), transparent 34%), linear-gradient(145deg, #111b31 0%, #0d1322 63%, #111a26 100%); }
.auth-story::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -250px; bottom: -250px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 92px rgba(255,255,255,.018), 0 0 0 184px rgba(255,255,255,.012); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
.auth-brand__mark { width: 30px; height: 34px; }
.auth-story__copy { max-width: 650px; margin: auto 0 34px; padding-top: 80px; }
.auth-kicker { display: block; margin-bottom: 19px; color: #90acf9; font-size: 10px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.auth-story__copy h1 { font-size: clamp(46px, 5vw, 74px); line-height: .97; font-weight: 690; letter-spacing: -.06em; }
.auth-story__copy p { max-width: 585px; margin: 27px 0 0; color: rgba(232,237,247,.7); font-size: 15px; line-height: 1.75; }
.auth-preview { width: min(560px, 92%); margin-bottom: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.065); box-shadow: 0 28px 80px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.auth-preview__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(232,237,247,.58); font-size: 10px; }
.auth-preview__top b { color: #dce5ff; font-size: 10px; font-weight: 620; }
.auth-preview__item { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.auth-preview__item:last-child { border-bottom: 0; }
.auth-preview__dot { width: 7px; height: 7px; border-radius: 50%; background: #5f85f0; box-shadow: 0 0 0 4px rgba(95,133,240,.13); }
.auth-preview__dot--sage { background: #5fb7a5; box-shadow: 0 0 0 4px rgba(95,183,165,.12); }
.auth-preview__dot--stone { background: #a1a7b2; box-shadow: 0 0 0 4px rgba(161,167,178,.11); }
.auth-preview__item b, .auth-preview__item small { display: block; }
.auth-preview__item b { font-size: 11.5px; font-weight: 610; }
.auth-preview__item small { margin-top: 2px; color: rgba(232,237,247,.45); font-size: 9.5px; }
.auth-preview__item em { color: rgba(232,237,247,.6); font-size: 9.5px; font-style: normal; white-space: nowrap; }
.auth-story__foot { display: flex; align-items: center; gap: 8px; margin-top: 36px; color: rgba(232,237,247,.47); font-size: 10px; }
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 54px 30px; background: var(--surface); }
.auth-card { width: min(420px, 100%); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 55px; font-size: 19px; font-weight: 760; }
.auth-mobile-brand svg { width: 27px; height: 31px; }
.auth-heading { margin-bottom: 31px; }
.auth-heading h2 { margin-top: 10px; font-size: clamp(31px, 3.2vw, 39px); line-height: 1.06; font-weight: 690; letter-spacing: -.045em; }
.auth-heading p { margin: 13px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field > span:first-child { color: var(--text-2); font-size: 10.5px; font-weight: 640; }
.auth-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--text); background: var(--surface); font: inherit; font-size: 13px; transition: border-color .16s, box-shadow .16s; }
.auth-field input::placeholder { color: color-mix(in srgb, var(--text-muted) 73%, transparent); }
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); padding: 4px; border: 0; color: var(--text-muted); background: none; font: inherit; font-size: 10px; font-weight: 650; cursor: pointer; }
.password-toggle:hover { color: var(--text); }
.auth-field small { color: var(--text-muted); font-size: 9.5px; }
.password-meter { height: 3px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.password-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .2s, background .2s; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 10.5px; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.auth-check--terms { align-items: flex-start; line-height: 1.5; }
.auth-check--terms input { margin-top: 1px; flex: 0 0 auto; }
.auth-check--terms a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-check--terms a:hover { text-decoration: underline; }
.auth-link, .auth-switch button, .auth-back { padding: 0; border: 0; color: var(--primary); background: none; font: inherit; font-size: 10.5px; font-weight: 650; cursor: pointer; }
.auth-link:hover, .auth-switch button:hover, .auth-back:hover { text-decoration: underline; }
.auth-submit { height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; border: 0; border-radius: 10px; color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(49,89,217,.17); font: inherit; font-size: 12.5px; font-weight: 680; cursor: pointer; transition: background .16s, transform .16s; }
.auth-submit:hover { background: var(--primary-hover); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .58; cursor: wait; transform: none; }
.auth-submit span { font-size: 17px; font-weight: 400; }
.auth-demo { width: 100%; height: 45px; margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); background: var(--surface); font: inherit; font-size: 11px; font-weight: 620; cursor: pointer; }
.auth-demo:hover { color: var(--text); background: var(--surface-2); }
.auth-switch { margin: 27px 0 0; color: var(--text-muted); font-size: 10.5px; text-align: center; }
.auth-back { margin-bottom: 30px; color: var(--text-muted); }
.auth-message { padding: 10px 12px; border-radius: 8px; font-size: 10.5px; line-height: 1.45; }
.auth-message--error { color: var(--red); background: var(--red-soft); }
.auth-message--success { color: var(--green); background: var(--green-soft); }
.auth-local-note { margin: 42px 0 0; color: var(--text-muted); font-size: 9.5px; text-align: center; }
:root[data-theme="dark"] .auth-main { background: #12151c; }
:root[data-theme="dark"] .auth-demo { background: #171a22; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: minmax(360px, .78fr) minmax(450px, 1.22fr); }
  .auth-story { padding: 35px; }
  .auth-story__copy h1 { font-size: 49px; }
  .auth-preview { width: 100%; }
  .auth-main { padding: 38px; }
}
@media (max-width: 760px) {
  .auth-shell { display: block; background: var(--surface); }
  .auth-story { display: none; }
  .auth-main { min-height: 100svh; justify-content: flex-start; padding: 30px 24px 24px; }
  .auth-mobile-brand { display: flex; }
  .auth-card { margin: auto 0; }
  .auth-heading h2 { font-size: 34px; }
  .auth-local-note { margin-top: 45px; }
}
@media (max-width: 420px) {
  .auth-main { padding: 25px 20px 22px; }
  .auth-mobile-brand { margin-bottom: 42px; }
  .auth-heading { margin-bottom: 25px; }
  .auth-heading h2 { font-size: 31px; }
}

/* ============================================================
 *  Editorial assets and dashboard analytics
 * ============================================================ */
.asset-summary-line { margin-bottom: 24px; }
.asset-grid--editorial { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.asset-photo-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .18s; }
.asset-photo-card:hover { transform: translateY(-3px); border-color: #cbc9c2; }
.asset-photo-card__media { position: relative; aspect-ratio: 1.48 / 1; overflow: hidden; background: #eae6dd; }
.asset-photo-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; pointer-events: none; background: linear-gradient(transparent, rgba(18,19,20,.11)); }
.asset-photo-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.asset-photo-card:hover .asset-photo-card__media img { transform: scale(1.025); }
.asset-photo-card__status { position: absolute; z-index: 2; top: 15px; left: 15px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; color: #292b2c; background: rgba(255,255,255,.84); box-shadow: 0 4px 18px rgba(22,24,28,.07); backdrop-filter: blur(10px); font-size: 9.5px; font-weight: 670; }
.asset-photo-card__status i { width: 6px; height: 6px; border-radius: 50%; background: #7d827f; }
.asset-photo-card__status--active i { background: #1e9c68; }
.asset-photo-card__status--expiring i { background: #d98c13; }
.asset-photo-card__status--expired i { background: #a5a6a2; }
.asset-photo-card__actions { position: absolute; z-index: 3; top: 13px; right: 13px; display: flex; gap: 6px; opacity: 0; transform: translateY(-3px); transition: opacity .16s, transform .16s; }
.asset-photo-card:hover .asset-photo-card__actions, .asset-photo-card:focus-within .asset-photo-card__actions { opacity: 1; transform: none; }
.asset-photo-card__actions .icon-btn { border-color: rgba(255,255,255,.64); color: #323536; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.asset-photo-card__body { padding: 20px 20px 18px; }
.asset-photo-card__overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--text-muted); font-size: 9.5px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.asset-photo-card__body h2 { overflow: hidden; font-size: 20px; line-height: 1.15; font-weight: 690; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.asset-photo-card__body > p { min-height: 20px; margin: 6px 0 0; overflow: hidden; color: var(--text-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.asset-photo-card__value { margin-top: 19px; font-size: 18px; font-weight: 710; letter-spacing: -.025em; }
.asset-photo-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border-2); }
.asset-photo-card__foot small, .asset-photo-card__foot b { display: block; }
.asset-photo-card__foot small { color: var(--text-muted); font-size: 9.5px; }
.asset-photo-card__foot b { margin-top: 3px; font-size: 11px; font-weight: 640; }
.asset-photo-card__open { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.asset-photo-card:hover .asset-photo-card__open { color: var(--primary); }
.asset-photo-card__open .icon { width: 14px; height: 14px; }
:root[data-theme="dark"] .asset-photo-card__media { filter: brightness(.78) saturate(.78); }

.asset-hero__photo { display: block; background: #eae6dd; }
.asset-hero__photo::before, .asset-hero__photo::after { display: none; }
.asset-hero__photo > img { width: 100%; height: 100%; min-height: 390px; display: block; object-fit: cover; }
.asset-hero__photo > small { z-index: 2; padding: 6px 9px; border-radius: 999px; color: #313436; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); }
:root[data-theme="dark"] .asset-hero__photo { filter: brightness(.8) saturate(.82); }

.chart-period { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); font-size: 10px; font-weight: 660; }
.dashboard-chart-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; }
.insight-chart { min-width: 0; padding: 22px 22px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.insight-chart__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.insight-chart__head span, .insight-chart__head b { display: block; }
.insight-chart__head span { color: var(--text-muted); font-size: 10px; }
.insight-chart__head b { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.insight-chart__head > small { max-width: 150px; color: var(--text-muted); font-size: 9.5px; line-height: 1.4; text-align: right; }
.dashboard-line-chart { height: 225px; margin-top: 13px; }
.dashboard-line-chart svg { width: 100%; height: 100%; overflow: visible; }
.dashboard-chart-gridline { stroke: var(--border-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dashboard-chart-area { fill: url(#expenseArea); }
.dashboard-chart-line { fill: none; stroke: var(--primary); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-chart-point { fill: var(--surface); stroke: var(--primary); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.dashboard-chart-point.is-current { fill: var(--primary); stroke: var(--surface); stroke-width: 2.5; }
.dashboard-chart-label { fill: var(--text-muted); font-size: 9px; }
.dashboard-category-chart { display: flex; flex-direction: column; gap: 18px; margin-top: 27px; }
.category-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
.category-bar-row > div:first-child { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.category-bar-row span { overflow: hidden; color: var(--text-2); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.category-bar-row b { font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.category-bar-track { height: 4px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.category-bar-track i { display: block; height: 100%; border-radius: inherit; background: #6e7f9a; }
.category-bar-row small { color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.recent-asset__visual { overflow: hidden; background: #eae6dd; }
.recent-asset__visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

.warranty-health { margin-top: 22px; padding: 22px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.warranty-health__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.warranty-health__head .eyebrow { margin-bottom: 5px; }
.warranty-health__head h3 { font-size: 17px; font-weight: 680; }
.warranty-health__body { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 21px; margin-top: 22px; }
.warranty-health__ring { width: 104px; height: 104px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--health-ring)); }
.warranty-health__ring::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }
.warranty-health__ring span { position: relative; z-index: 1; text-align: center; }
.warranty-health__ring b, .warranty-health__ring small { display: block; }
.warranty-health__ring b { font-size: 23px; line-height: 1; }
.warranty-health__ring small { margin-top: 4px; color: var(--text-muted); font-size: 8.5px; }
.warranty-health__legend { display: flex; flex-direction: column; gap: 10px; }
.warranty-health__legend span { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: var(--text-muted); font-size: 9.5px; }
.warranty-health__legend i { width: 6px; height: 6px; border-radius: 50%; background: #9fa19d; }
.warranty-health__legend i.is-active { background: var(--green); }
.warranty-health__legend i.is-expiring { background: var(--amber); }
.warranty-health__legend b { color: var(--text); font-size: 10px; }

@media (max-width: 1220px) {
  .dashboard-chart-grid { grid-template-columns: 1fr; }
  .insight-chart--categories { min-height: auto; }
}
@media (max-width: 1020px) {
  .dashboard-chart-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); }
  .home-aside .warranty-health { margin-top: 0; }
}
@media (max-width: 760px) {
  .dashboard-chart-grid { grid-template-columns: 1fr; }
  .asset-grid--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .asset-grid--editorial { grid-template-columns: 1fr; }
  .asset-photo-card__actions { opacity: 1; transform: none; }
  .dashboard-line-chart { height: 190px; }
  .insight-chart { padding: 18px 16px 15px; }
  .insight-chart__head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .insight-chart__head > small { text-align: left; }
  .warranty-health__body { grid-template-columns: 92px minmax(0, 1fr); }
  .warranty-health__ring { width: 92px; height: 92px; }
  .asset-hero__photo > img { min-height: 270px; }
}

/* Legal pages */
.legal-page { min-height: 100vh; background: #f6f5f2; color: #171717; padding: 48px 20px 80px; }
.legal-shell { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid #e7e5df; border-radius: 20px; padding: clamp(28px,5vw,64px); box-shadow: 0 20px 60px rgba(26,24,20,.05); }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: #171717; text-decoration: none; font-size: 18px; font-weight: 800; margin-bottom: 48px; }
.legal-brand svg { width: 25px; height: 29px; }
.legal-shell h1 { font-size: clamp(36px,6vw,58px); line-height: 1; letter-spacing: -.045em; margin: 0 0 16px; }
.legal-updated { color: #77736b; font-size: 13px; margin-bottom: 44px; }
.legal-shell h2 { font-size: 20px; letter-spacing: -.02em; margin: 34px 0 10px; }
.legal-shell p,.legal-shell li { color: #514e48; font-size: 15px; line-height: 1.75; }
.legal-shell ul { padding-left: 20px; }
.legal-callout { padding: 18px 20px; border-radius: 12px; background: #f3f6ff; border: 1px solid #dfe7ff; margin: 24px 0; }
.legal-callout p { margin: 0; color: #2d4278; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #eceae5; }
.legal-footer a { color: #2f6bf6; font-weight: 700; text-decoration: none; }
