/* ==========================================================================
   DLA Flow — design system
   Dental Leaders Academy · Lead. Redesign. Belong.
   Navy #0A2647 · Gold #BF8E4F · Forest #1A483E · Parchment #FFFEF9
   Display: Marcellus · Text: DM Sans
   Director experience: Academy Executive Navigation
   Manager experience: Academy / Parchment
   ========================================================================== */

:root {
  --navy: #0A2647;
  --navy-2: #16233a;
  --turq: #1A483E;
  --turq-2: #2F5D4D;
  --turq-soft: #E7EFEA;
  --gold: #BF8E4F;
  --gold-2: #A07F30;
  --gold-soft: #F7F3E9;
  --ivory: #FFFEF9;
  --white: #FFFFFF;
  --charcoal: #16233a;
  --ink: #233041;
  --ink-2: #5E5E5E;
  --ink-3: #8A8578;
  --line: #E6E0D2;
  --line-2: #F0EBDF;
  --coral: #A8462F;
  --coral-soft: #F7E8E3;
  --amber: #BF8E4F;
  --amber-soft: #F7F3E9;
  --green: #2F5D4D;
  --green-soft: #E7EFEA;
  --plum: #5B4B6E;
  --plum-soft: #EFEAF2;
  --sky: #2D5A8C;
  --sky-soft: #E8EEF5;

  --bg: var(--ivory);
  --surface: var(--white);
  --surface-2: #FBF8F0;
  --accent: var(--turq);
  --accent-ink: #fff;
  --accent-soft: var(--turq-soft);
  --sidebar-bg: var(--navy);
  --sidebar-ink: #D7DEE8;
  --sidebar-active-bg: var(--gold);
  --sidebar-active-ink: var(--navy);

  --radius: 4px;
  --radius-sm: 3px;
  --radius-xs: 2px;
  --shadow: 0 4px 18px rgba(10, 38, 71, .07), 0 1px 2px rgba(10, 38, 71, .05);
  --shadow-lg: 0 18px 50px rgba(10, 38, 71, .18);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --sidebar-w: 264px;
  --topbar-h: 68px;
  --bottomnav-h: 66px;
}

body[data-exp="director"] {
  --bg: #FFFEF9;
  --sidebar-bg: var(--navy);
  --sidebar-ink: #D7DEE8;
  --sidebar-active-bg: var(--gold);
  --sidebar-active-ink: var(--navy);
  --accent: var(--turq);
}
body[data-exp="manager"][data-theme="mediterranean"] {
  --bg: #FFFEF9;
  --sidebar-bg: var(--navy);
  --sidebar-ink: #D7DEE8;
  --accent: var(--turq);
}
body[data-exp="manager"][data-theme="cats"] {
  --bg: #FAF3E0;
  --surface-2: #FDFAF2;
  --sidebar-bg: #16233a;
  --sidebar-ink: #E8E0CE;
  --sidebar-active-bg: var(--gold);
  --accent: #8A6A24;
  --accent-soft: #F7F3E9;
  --turq-soft: #F7F3E9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 23px; line-height: 1.2; }
h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.display { font-family: var(--display); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(26, 72, 62, .55); outline-offset: 2px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; background: var(--navy); color: #fff; }
.boot-logo { font-size: 28px; letter-spacing: .14em; font-weight: 800; }
.boot-logo em, .brand em { font-family: var(--display); font-style: italic; font-weight: 500; letter-spacing: 0; color: var(--gold); font-size: 1.25em; }
.boot-sub { margin-top: 10px; color: #C3CCD9; font-size: 15px; letter-spacing: .06em; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); color: var(--sidebar-ink); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.brand { font-size: 19px; letter-spacing: .12em; font-weight: 800; color: #fff; padding: 6px 10px 2px; }
.brand em { font-size: 1.4em; }
.brand-sub { font-size: 13px; color: rgba(255,255,255,.62); padding: 0 10px 16px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); color: var(--sidebar-ink); font-weight: 600; font-size: 16px;
  transition: background .18s, color .18s;
}
.nav a i { width: 22px; text-align: center; font-size: 17px; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.nav a .pill { margin-left: auto; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; min-width: 22px; text-align: center; }
.nav a.active .pill { background: var(--navy); color: #fff; }
.sidebar-cta { margin: 12px 0 6px; display: grid; gap: 8px; }
.sidebar-art {
  margin-top: auto; border-radius: var(--radius); min-height: 170px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(160deg, #1A483E 0%, #0A2647 100%);
}
.sidebar-art .quote { font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.35; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); position: relative; }
.sidebar-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--navy); box-shadow: var(--shadow); cursor: pointer;
  display: inline-grid; place-items: center; font-size: 17px; position: relative; transition: transform .15s;
}
.iconbtn:hover { transform: translateY(-1px); }
.iconbtn .dot { position: absolute; top: -3px; right: -3px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: var(--radius); display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.userchip { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--shadow); cursor: pointer; border: 0; font: inherit; color: inherit; }
.userchip .name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.userchip .role { font-size: 12.5px; color: var(--ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--turq-soft); color: var(--turq-2); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; overflow: hidden; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.content { padding: 8px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; font-size: 16px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); }
.stack { display: grid; gap: 20px; align-content: start; }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; color: #fff; display: flex; align-items: flex-end; padding: 28px 32px;
  box-shadow: var(--shadow-lg); margin: 14px 0 22px; isolation: isolate;
}
.hero .art { position: absolute; inset: 0; z-index: -2; }
.hero .art svg, .hero .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .art img { position: absolute; inset: 0; }
.hero .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 38, 71,.72) 0%, rgba(10, 38, 71,.35) 55%, rgba(10, 38, 71,.15) 100%); }
.hero h1 { color: #fff; font-size: 36px; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero .line { font-size: 19px; color: rgba(255,255,255,.92); margin-top: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.3); max-width: 640px; }
.hero .tagline { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--gold); margin-top: 10px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .date { font-size: 14.5px; color: rgba(255,255,255,.8); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.hero .hero-side { margin-left: auto; align-self: flex-end; display: flex; gap: 10px; }
body[data-exp="manager"] .hero .shade { background: linear-gradient(90deg, rgba(10, 38, 71,.55) 0%, rgba(10, 38, 71,.2) 55%, rgba(10, 38, 71,.05) 100%); }
body[data-theme="cats"] .hero .shade { background: linear-gradient(90deg, rgba(60, 46, 20,.55) 0%, rgba(60, 46, 20,.22) 60%, rgba(60, 46, 20,.05) 100%); }
.hero.compact { min-height: 150px; padding: 20px 24px; }
.hero.compact h1 { font-size: 28px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card.tight { padding: 16px 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card-head h2 i { color: var(--accent); font-size: 18px; }
.card-head .more { margin-left: auto; font-weight: 700; font-size: 14.5px; color: var(--coral); white-space: nowrap; }
.card-head .more i { font-size: 12px; margin-left: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: transform .15s; border: 0; text-align: left; font: inherit; color: inherit; }
.kpi:hover { transform: translateY(-2px); }
.kpi .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; }
.kpi .num { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.kpi .lbl { font-size: 15px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.kpi .arr { margin-left: auto; color: var(--ink-3); }
.kpi.red .num, .kpi.red .lbl { color: var(--coral); }
.ico.blue { background: var(--sky-soft); color: var(--turq); } .ico.green { background: var(--green-soft); color: var(--green); }
.ico.amber { background: var(--amber-soft); color: var(--amber); } .ico.red { background: var(--coral-soft); color: var(--coral); }
.ico.gold { background: var(--gold-soft); color: var(--gold-2); } .ico.plum { background: var(--plum-soft); color: var(--plum); }
.ico.navy { background: #EFEBE0; color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius); border: 0; font-weight: 700; font-size: 15.5px;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s; background: var(--accent); color: var(--accent-ink); line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 72, 62,.25); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.red { background: var(--coral); color: #fff; }
.btn.amber { background: var(--amber-soft); color: #8A6A24; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--turq-2); }
body[data-theme="cats"] .btn.soft { color: #8A6A24; }
.btn.sm { padding: 8px 13px; font-size: 14px; border-radius: var(--radius); }
.btn.lg { padding: 15px 24px; font-size: 17px; border-radius: var(--radius); }
.btn.block { width: 100%; }
.btn.icon { padding: 10px; width: 42px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.link { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 15px; padding: 0; }

/* ---------- badges / stars / progress ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.badge i { font-size: 11px; }
.badge.todo { background: #EFEBE0; color: #5E5E5E; }
.badge.in_progress { background: var(--amber-soft); color: #8A6A24; }
.badge.done, .badge.good, .badge.active { background: var(--green-soft); color: #2F5D4D; }
.badge.done_late { background: var(--green-soft); color: #8A6A24; }
.badge.late, .badge.overdue, .badge.critical, .badge.blocked-proj { background: var(--coral-soft); color: #A8462F; }
.badge.blocked { background: var(--plum-soft); color: var(--plum); }
.badge.unconfirmed, .badge.attention { background: #F9F1DE; color: #8A6A24; border: 1px dashed #D9B46A; }
.badge.not_done { background: #F4EBE7; color: #A8462F; }
.badge.missed, .badge.archived { background: #EFEBE0; color: #666; }
.badge.planned { background: var(--sky-soft); color: #2D5A8C; }
.badge.override { background: var(--navy); color: #fff; }
.badge.override.critical_now, .badge.override.escalated { background: var(--coral); }
.badge.override.priority_today { background: var(--gold); color: var(--navy); }
.badge.override.needs_attention { background: var(--amber); color: #fff; }
.badge.override.can_wait { background: #EFEBE0; color: #5E5E5E; }
.badge.carried { background: #F9F1DE; color: #8A6A24; }
.badge.freq { background: var(--sky-soft); color: #2D5A8C; }
.badge.demo { background: #F0EBDF; color: var(--ink-3); font-weight: 600; }

.stars { display: inline-flex; gap: 2px; font-size: 13px; }
.stars i { color: #DCD5C6; }
.stars.urg i.on { color: var(--coral); }
.stars.imp i.on { color: var(--amber); }
.stars.lg { font-size: 20px; gap: 4px; }
.stars.pick i { cursor: pointer; transition: transform .1s; }
.stars.pick i:hover { transform: scale(1.2); }
.ratings { display: flex; gap: 16px; }
.ratings .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 700; display: block; margin-bottom: 2px; letter-spacing: .02em; }

.ring { position: relative; width: 48px; height: 48px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring .track { stroke: #EDE7DA; }
.ring .val { stroke: var(--accent); transition: stroke-dashoffset .6s ease; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--navy); }
.ring.lg { width: 96px; height: 96px; } .ring.lg .num { font-size: 22px; } .ring.lg circle { stroke-width: 7; }
.ring.green .val { stroke: var(--green); } .ring.amber .val { stroke: var(--amber); } .ring.red .val { stroke: var(--coral); } .ring.gold .val { stroke: var(--gold); }
.bar { height: 9px; background: #EDE7DA; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.bar.green > span { background: var(--green); } .bar.amber > span { background: var(--amber); } .bar.red > span { background: var(--coral); } .bar.gold > span { background: var(--gold); }

/* ---------- occurrence / action rows ---------- */
.occ-list { display: flex; flex-direction: column; gap: 10px; }
.occ {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(200px, 34%); gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-2); border-left-width: 5px; transition: box-shadow .15s, transform .15s; cursor: pointer;
}
.occ:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.occ.s-todo { border-left-color: #C3BCA9; } .occ.s-in_progress { border-left-color: var(--amber); } .occ.s-done, .occ.s-done_late { border-left-color: var(--green); }
.occ.s-late, .occ.s-overdue { border-left-color: var(--coral); } .occ.s-blocked { border-left-color: var(--plum); } .occ.s-unconfirmed { border-left-color: #D9B46A; }
.occ.s-not_done { border-left-color: #A8462F; } .occ.s-missed { border-left-color: #CFC9BC; opacity: .8; }
.occ.critical { background: #FDF6F3; border-color: #EFD9D2; }
.occ .check { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 2px solid #D3CCBC; display: grid; place-items: center; color: #fff; font-size: 14px; background: #fff; flex: none; cursor: pointer; }
.occ.s-done .check, .occ.s-done_late .check { background: var(--green); border-color: var(--green); }
.occ .title { font-weight: 700; font-size: 16.5px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.occ .title .rank { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; }
.occ .purpose { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.occ .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.occ .meta .time { font-size: 13.5px; font-weight: 700; color: var(--navy); background: #F3EFE4; border-radius: var(--radius-sm); padding: 3px 9px; }
.occ .meta .time.today { background: var(--coral-soft); color: #A8462F; } .occ .meta .time.tomorrow { background: var(--sky-soft); color: #2D5A8C; }
.occ .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.occ .ratings { flex-direction: column; gap: 3px; }
.occ .ratings .lbl { display: inline-block; width: 76px; margin: 0; font-size: 12px; }
.occ .ratings > div { display: flex; align-items: center; gap: 4px; }
.occ .quick { display: flex; gap: 6px; }
.occ .project { font-size: 13px; color: var(--ink-3); }
.rank.r1 { background: var(--coral); } .rank.r2 { background: var(--amber); } .rank.r3 { background: var(--turq); }

.row-list { display: flex; flex-direction: column; }
.row-list > .row { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.row-list > .row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.row .s { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.row .time { font-size: 13.5px; font-weight: 700; color: var(--ink-2); width: 50px; flex: none; }
.row .dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- journey map ---------- */
.journey { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; background: linear-gradient(180deg, #16233a 0%, #0A2647 55%, #06182F 100%); }
.journey svg { width: 100%; height: auto; display: block; }
.journey .dest { cursor: pointer; }
.journey .dest:hover .island { filter: brightness(1.06); }
.journey .dest text { font-family: var(--font); font-weight: 700; font-size: 13px; fill: #F7F3E9; pointer-events: none; }
.journey .dest .pct { font-size: 11px; fill: #BF8E4F; font-weight: 700; }
.journey .warn { fill: var(--coral); }
.journey-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.journey-legend span { display: inline-flex; align-items: center; gap: 6px; }
.journey-legend b { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, select, textarea, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
.input:focus, select:focus, textarea:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: inline-flex; background: #F0EBDF; border-radius: var(--radius); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(10, 38, 71,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #F0EBDF; font-size: 14px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--turq-2); }
.chip .avatar { width: 22px; height: 22px; font-size: 9px; }
details.adv { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 16px; }
details.adv summary { cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv[open] summary { margin-bottom: 12px; }
.checkrow { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 6px 0; }
.checkrow input { width: 20px; height: 20px; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.toggle:last-child { border-bottom: 0; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #DCD5C6; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.error-box { background: var(--coral-soft); color: #A8462F; border-radius: var(--radius); padding: 12px 14px; font-weight: 600; margin-bottom: 12px; }
.info-box { background: var(--sky-soft); color: #2D5A8C; border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.ok-box { background: var(--green-soft); color: #2F5D4D; border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 38, 71,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal.wide { max-width: 860px; }
.modal.narrow { max-width: 460px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h2 { font-size: 22px; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 6px 24px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 22px; position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.drawer-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10, 38, 71,.4); animation: fade .18s ease; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); overflow: auto; animation: slide .22s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { background: var(--navy); color: #fff; padding: 13px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; animation: pop .2s ease; cursor: pointer; }
.toast i { margin-top: 3px; color: var(--gold); }
.toast.ok i { color: #7FAE9B; } .toast.err { background: #A8462F; } .toast.err i { color: #fff; }
.toast .t { font-weight: 800; } .toast .b { font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- tables / misc ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-3); }
.empty i { font-size: 30px; color: var(--accent); opacity: .7; margin-bottom: 8px; display: block; }
.empty b { color: var(--navy); display: block; font-size: 16px; margin-bottom: 2px; }
.skeleton { background: linear-gradient(90deg, #F0EBDF 25%, #FBF8F0 50%, #F0EBDF 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 60px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 15px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 150px; padding: 9px 12px; font-size: 14.5px; }
.filters .search { flex: 1; min-width: 200px; }
.legend-note { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .ev { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.timeline .ev:last-child { border-bottom: 0; }
.timeline .ev .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; }
.timeline .ev .t { font-size: 15px; } .timeline .ev .t b { color: var(--navy); }
.timeline .ev .when { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.member { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; }
.member .nm { font-weight: 800; color: var(--navy); font-size: 15.5px; }
.member .st { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.member.support { border-color: #E8D3AE; background: #FDF9F1; }
.sparkline { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.sparkline b { flex: 1; background: var(--line); border-radius: var(--radius-xs) 4px 0 0; position: relative; min-height: 3px; }
.sparkline b > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--green); border-radius: var(--radius-xs) 4px 0 0; }
.spark-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.breakdown { display: grid; gap: 8px; margin-top: 12px; }
.breakdown .b { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.breakdown .b .bar { height: 8px; }
.big-num { font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1; }
.trend { font-size: 13.5px; font-weight: 700; } .trend.up { color: var(--green); } .trend.down { color: var(--coral); }
.proj-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.proj-card .top { display: flex; gap: 10px; align-items: flex-start; }
.proj-card h3 { font-size: 17px; line-height: 1.3; }
.proj-card .pur { font-size: 14px; color: var(--ink-2); }
.proj-card .foot { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.health { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.health.good { background: var(--green); } .health.attention { background: var(--amber); } .health.critical { background: var(--coral); }

/* ---------- calendar ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: center; font-weight: 700; padding: 4px 0; }
.cal-day { min-height: 104px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); padding: 6px; cursor: pointer; }
.cal-day.other { opacity: .5; } .cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day .d { font-weight: 800; font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.cal-day .ev { font-size: 12px; padding: 2px 6px; border-radius: var(--radius-sm); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #EFEBE0; color: var(--navy); border-left: 3px solid #C3BCA9; }
.cal-day .ev.done { border-left-color: var(--green); color: #2F5D4D; background: var(--green-soft); }
.cal-day .ev.late, .cal-day .ev.unconfirmed { border-left-color: var(--coral); background: var(--coral-soft); color: #A8462F; }
.cal-day .ev.in_progress { border-left-color: var(--amber); background: var(--amber-soft); }
.cal-day .ev.blocked { border-left-color: var(--plum); background: var(--plum-soft); }
.cal-day .more { font-size: 11px; color: var(--ink-3); }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mini-cal .dow { font-size: 11px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.mini-cal .d { font-size: 14px; font-weight: 700; padding: 7px 0; border-radius: var(--radius); cursor: pointer; position: relative; }
.mini-cal .d.today { background: var(--navy); color: #fff; }
.mini-cal .d.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.mini-cal .d .dots { display: flex; justify-content: center; gap: 2px; position: absolute; bottom: 2px; left: 0; right: 0; }
.mini-cal .d .dots i { width: 4px; height: 4px; border-radius: 50%; display: block; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-col { background: var(--surface-2); border-radius: var(--radius); padding: 8px; min-height: 180px; border: 1px solid var(--line-2); }
.week-col.today { border-color: var(--accent); }
.week-col .h { font-weight: 800; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
.week-col .ev { font-size: 12.5px; padding: 5px 7px; border-radius: var(--radius-sm); margin-bottom: 5px; background: #EFEBE0; cursor: pointer; border-left: 3px solid #C3BCA9; }
.week-col .ev.done { border-left-color: var(--green); background: var(--green-soft); } .week-col .ev.late, .week-col .ev.unconfirmed { border-left-color: var(--coral); background: var(--coral-soft); }
.week-col .ev.in_progress { border-left-color: var(--amber); background: var(--amber-soft); } .week-col .ev.blocked { border-left-color: var(--plum); background: var(--plum-soft); }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-radius: var(--radius); }
.notif:hover { background: var(--surface-2); }
.notif:last-child { border-bottom: 0; }
.notif .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif .t { font-weight: 700; color: var(--navy); font-size: 15px; } .notif .b { font-size: 14px; color: var(--ink-2); } .notif .w { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.notif.unread .t::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-left: 8px; vertical-align: middle; }

/* ---------- FAB & mobile nav ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--navy); border: 0; font-size: 22px; box-shadow: 0 10px 26px rgba(191, 142, 79,.5); cursor: pointer; z-index: 60; display: grid; place-items: center; transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab-menu { position: fixed; right: 22px; bottom: 92px; z-index: 61; display: grid; gap: 8px; animation: pop .18s ease; }
.fab-menu button { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 0; padding: 11px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--navy); }
.fab-menu button i { color: var(--accent); width: 20px; text-align: center; }
.bottomnav { display: none; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.auth .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth .art .txt { position: relative; max-width: 480px; }
.auth .art .txt h1 { color: #fff; font-size: 40px; margin-bottom: 10px; }
.auth .art .txt p { font-size: 18px; color: rgba(255,255,255,.85); }
.auth .form { display: grid; place-content: center; padding: 40px; background: var(--ivory); }
.auth .form .box { width: min(420px, 90vw); }
.auth .brand { color: var(--navy); font-size: 24px; padding: 0 0 4px; }
.auth .brand em { color: var(--gold-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 60px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10, 38, 71,.45); z-index: 79; }
  .topbar { padding: 0 16px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); background: var(--bg); }
  .sidebar { padding-top: calc(22px + env(safe-area-inset-top)); }
  .toasts { top: calc(14px + env(safe-area-inset-top)); }
  .overlay { padding-top: calc(10px + env(safe-area-inset-top)); }
  .modal-head { padding-top: calc(16px + env(safe-area-inset-top)); }
  .drawer { padding-top: env(safe-area-inset-top); }
  .topbar .menu-btn { display: inline-grid; }
  .userchip .name, .userchip .role { display: none; }
  .userchip { padding: 4px; }
  .content { padding: 4px 14px calc(var(--bottomnav-h) + 28px); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 190px; padding: 18px 18px; border-radius: var(--radius); margin: 10px 0 16px; }
  .hero h1 { font-size: 28px; } .hero .line { font-size: 16px; } .hero .hero-side { display: none; }
  .hero .shade { background: linear-gradient(180deg, rgba(10, 38, 71,.1) 0%, rgba(10, 38, 71,.7) 100%) !important; }
  h1 { font-size: 27px; } h2 { font-size: 21px; }
  .card { padding: 16px 16px; border-radius: var(--radius); }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 12px 12px; gap: 10px; flex-direction: column; align-items: flex-start; } .kpi .arr { display: none; } .kpi .num { font-size: 28px; } .kpi .ico { width: 42px; height: 42px; font-size: 17px; }
  .occ { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .occ .right { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; max-width: none; }
  .occ .ratings { flex-direction: row; gap: 12px; } .occ .ratings > div { display: block; } .occ .ratings .lbl { display: block; width: auto; }
  .occ .quick { width: 100%; }
  .occ .quick .btn { flex: 1; padding: 12px; font-size: 15px; }
  .occ .quick .btn i { font-size: 16px; }
  .ratings { gap: 10px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); box-shadow: 0 -6px 24px rgba(10, 38, 71,.1); z-index: 70; justify-content: space-around; align-items: center; }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); width: 20%; position: relative; }
  .bottomnav a i { font-size: 19px; } .bottomnav a.active { color: var(--accent); }
  .bottomnav a .pill { position: absolute; top: -4px; right: 18%; background: var(--coral); color: #fff; font-size: 10px; border-radius: 99px; padding: 1px 5px; }
  .bottomnav .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 22px; margin-top: -26px; box-shadow: 0 8px 20px rgba(191, 142, 79,.5); border: 0; }
  .fab { display: none; }
  .fab-menu { left: 14px; right: 14px; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 14px); background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg); gap: 4px; }
  .fab-menu button { box-shadow: none; padding: 14px 16px; font-size: 16px; border-radius: var(--radius); }
  .fab-menu button:active { background: var(--surface-2); }
  .fab-backdrop { position: fixed; inset: 0; background: rgba(10, 38, 71,.35); z-index: 60; }
  .bottomnav .plus { margin-top: -22px; }
  .bottomnav a { padding-top: 4px; }
  .modal { border-radius: var(--radius); max-height: calc(100vh - 20px); } .overlay { padding: 10px; align-items: flex-end; }
  .modal-body { padding: 4px 16px 16px; } .modal-head { padding: 16px 16px 8px; } .modal-foot { padding: 12px 16px 16px; }
  .drawer { width: 100%; }
  .auth { grid-template-columns: 1fr; } .auth .art { min-height: 220px; padding: 24px; } .auth .art .txt h1 { font-size: 28px; } .auth .art .txt p { font-size: 15px; }
  .cal-grid .cal-day { min-height: 64px; padding: 4px; } .cal-day .ev { display: none; } .cal-day .dots { display: flex; gap: 3px; flex-wrap: wrap; } .cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; }
  .week-grid { grid-template-columns: 1fr; }
  .table { font-size: 13.5px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .page-head { margin: 10px 0 14px; }
  .toasts { left: 14px; right: 14px; max-width: none; }
}
@media (min-width: 861px) { .cal-day .dots { display: none; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media print { .sidebar, .topbar, .fab, .bottomnav { display: none !important; } .layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   DLA signature layer — Dental Leaders Academy
   Gold hairline eyebrows, Marcellus display headings, square chrome.
   ========================================================================== */

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
h4 { font-family: var(--font); font-weight: 700; }

/* two-tone headline: navy + gold italic, as on dla.dental */
.h-accent { color: var(--gold); font-style: italic; }

/* gold hairline eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--gold); display: block; }
body[data-exp="director"] .eyebrow, .hero .eyebrow { color: var(--gold-soft); }

/* gold diamond separator */
.rule-diamond { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; }
.rule-diamond::before, .rule-diamond::after { content: ""; height: 1px; width: 110px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule-diamond::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule-diamond i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); display: block; }

/* brand lockup */
.brand, .boot-logo { font-family: var(--font); font-weight: 500; letter-spacing: .22em; }
.brand em, .boot-logo em { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: .02em; color: var(--gold); }
.boot { background: radial-gradient(ellipse at 50% 35%, #0D2E52 0%, #00040a 78%); }
.boot-sub { letter-spacing: .16em; text-transform: uppercase; font-size: 12.5px; color: var(--gold); }

/* buttons: squared, letterspaced, notched primary like the site CTA */
.btn { letter-spacing: .04em; font-weight: 500; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); color: #fff; }

/* sidebar: gold hairline under the lockup */
.sidebar .brand { border-bottom: 1px solid rgba(191, 142, 79, .35); padding-bottom: 10px; margin-bottom: 4px; }
.brand-sub { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; color: var(--gold); }

/* hero: navy veil so the gold type always reads */
.hero h1 { font-family: var(--display); font-weight: 400; }
.hero .tagline { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--gold); }

/* cards: hairline, no heavy rounding */
.card { border: 1px solid var(--line); }

/* official DLA crest in the brand slots */
.brand-logo { display: block; height: 74px; width: auto; max-width: 100%; margin: 0 auto 2px; }
.sidebar .brand { text-align: center; }
.auth .box .brand-logo { height: 92px; margin-bottom: 8px; }
.auth .art .brand-logo { height: 86px; margin: 0 0 12px; }

/* the academy crest, laid over the hero / sidebar grounds.
   Selectors are scoped tightly because ".hero .art img" sets cover by default. */
.hero .art img.crest-mark {
  position: absolute; inset: auto; top: 50%; right: 5%; left: auto;
  transform: translateY(-50%);
  width: auto; height: 158%; max-width: none;
  object-fit: contain; opacity: .20; z-index: 1; pointer-events: none;
}
.hero.compact .art img.crest-mark { height: 150%; right: 4%; }
body[data-theme="cats"] .hero .art img.crest-mark { opacity: .16; }

.sidebar-art img.crest-mark {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  height: 62%; width: auto; object-fit: contain; opacity: .95; z-index: 1;
}

/* login panel: full lockup, no stray hairline across the headline */
.auth-art .dla-rule { display: none; }
.auth .art img.crest-mark { position: absolute; top: 40%; left: 50%; right: auto; transform: translate(-50%, -50%); width: auto; height: 62%; max-width: 74%; object-fit: contain; opacity: 1; z-index: 1; }
.auth .art .txt { position: relative; z-index: 2; }

@media (max-width: 760px) {
  /* lighter watermark and tighter display sizes on phones */
  .hero .art img.crest-mark { opacity: .12; height: 132%; right: -2%; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .card-head h2 { font-size: 19px; }
  .hero .tagline { font-size: 11px; letter-spacing: .14em; }
}
