/* Lake Anna Connections back-office portal — "Lakeside Concierge" design system (DESIGN.md).
   Brand crimson for actions, nautical navy for structure, lake teal for water/info accents. */
/* Fonts are served from this server (no Google Fonts request from the admin panel). */
@font-face { font-family: "Material Symbols Outlined"; font-style: normal; font-weight: 400; font-display: block; src: url("fonts/material-symbols.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root {
  --crimson: #D71921;
  --crimson-hover: #B9141B;
  --crimson-subtle: #FEE2E2;
  --navy: #0F2942;
  --navy-muted: #1E3A5F;
  --teal: #0284C7;
  --teal-light: #E0F2FE;
  --tertiary: #005a89;
  --canvas: #F8FAFC;
  --card: #FFFFFF;
  --subtle: #F1F5F9;
  --container: #e5eeff;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --text: #0F172A;
  --text-2: #475569;
  --muted: #94A3B8;
  --dim: #cbdbf5;
  --green: #059669;
  --green-bg: #DCFCE7;
  --amber: #b45309;
  --amber-bg: #FEF3C7;
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, .04), 0 4px 12px -2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, .08);
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --label: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --side-w: 288px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/20px var(--body); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
h1 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 18px; line-height: 24px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 16px; line-height: 22px; font-weight: 700; }
p { margin: 0 0 12px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; border-radius: 6px; }
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; width: 1em; height: 1em; overflow: hidden;
  -webkit-font-smoothing: antialiased; vertical-align: middle; user-select: none; font-variation-settings: "FILL" 0; }
.ms.fill { font-variation-settings: "FILL" 1; }
.ms.s16 { font-size: 16px; } .ms.s18 { font-size: 18px; } .ms.s24 { font-size: 24px; } .ms.s14 { font-size: 14px; }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--navy); color: #fff; z-index: 50;
  display: flex; flex-direction: column; box-shadow: 0 12px 32px -8px rgba(15, 41, 66, .18); }
.brand { height: 64px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: #fff;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand b { display: block; font: 600 16px/20px var(--body); color: var(--navy); letter-spacing: -.01em; }
.brand small { display: block; font: 700 10px/14px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.side nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.navlabel { margin: 18px 12px 6px; font: 700 10px/14px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; margin: 2px 0; border-radius: 12px;
  color: var(--muted); font: 600 14px/20px var(--label); letter-spacing: .01em; transition: background .15s, color .15s; }
.side nav a > span:first-child { display: flex; align-items: center; gap: 10px; }
.side nav a:hover { background: var(--navy-muted); color: #fff; }
.side nav a.on { background: var(--crimson); color: #fff; box-shadow: 0 4px 12px -2px rgba(215, 25, 33, .3); }
.count { font: 700 10px/14px var(--label); padding: 2px 7px; border-radius: 99px; background: var(--navy-muted); color: var(--dim); font-variant-numeric: tabular-nums; }
.side nav a.on .count { background: rgba(0, 0, 0, .22); color: #fff; }
.who { margin: 12px; padding: 10px; border-radius: 12px; background: rgba(30, 58, 95, .6); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who .me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #ae0012; color: #fff; display: grid; place-items: center; flex: none;
  font: 700 12px/1 var(--label); }
.who b { font: 600 12px/16px var(--label); color: #fff; display: flex; align-items: center; gap: 6px; }
.who b em { font-style: normal; font: 700 9px/12px var(--label); text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: var(--crimson); }
.who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who button { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; }
.who button:hover { background: var(--navy); color: #fff; }

.top { position: fixed; top: 0; left: var(--side-w); right: 0; height: 64px; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
.topsearch { position: relative; flex: 1; max-width: 560px; }
.topsearch .ms { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topsearch input[type=search] { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 0; border-radius: 12px; background: var(--subtle); font: 14px var(--body); color: var(--text); }
.topsearch input[type=search]:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--crimson); }
.topright { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 10px/14px var(--label); letter-spacing: .04em;
  background: var(--subtle); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pill.teal { background: var(--teal-light); color: var(--teal); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.crimson { background: var(--crimson-subtle); color: var(--crimson); }
.iconbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.iconbtn:hover { background: var(--subtle); color: var(--text); }
.iconbtn .badge { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: 14px; padding: 6px; z-index: 60;
  box-shadow: 0 12px 32px -8px rgba(15, 41, 66, .22); border: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font: 600 13px/18px var(--label); }
.menu-panel a:hover { background: var(--subtle); color: var(--crimson); }
.menu-panel a .ms { color: var(--muted); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.main { margin-left: var(--side-w); padding-top: 64px; min-height: 100vh; }
.content { padding: 24px 24px 48px; max-width: 1440px; }
.burger { display: none; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }

/* page heading */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 10px/14px var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }
.eyebrow::before { content: ""; width: 6px; height: 22px; border-radius: 99px; background: var(--crimson); }
.eyebrow.dot::before { width: 10px; height: 10px; box-shadow: 0 0 10px var(--crimson); }
.pagehead p.lead { margin: 6px 0 0; color: var(--text-2); max-width: 70ch; }
.pagehead .titleline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 12px;
  background: var(--crimson); color: #fff; font: 600 14px/20px var(--label); letter-spacing: .01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px -2px rgba(215, 25, 33, .25); transition: background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--crimson-hover); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-dark { background: var(--navy); box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--navy-muted); }
.btn-ghost { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--crimson); border-color: var(--crimson-subtle); }
.btn-soft { background: var(--subtle); color: var(--text); box-shadow: none; }
.btn-soft:hover { background: var(--container); color: var(--text); }
.btn-danger { background: #fff; color: var(--crimson); box-shadow: none; border: 1px solid var(--crimson-subtle); }
.btn-danger:hover { background: var(--crimson); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 12px; line-height: 16px; border-radius: 9px; }
.btn .ms { font-size: 18px; }
.btn-sm .ms { font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--crimson); font: 600 12px/16px var(--label); cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.ibox { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--crimson-subtle); color: var(--crimson); }
.ibox.teal { background: var(--teal-light); color: var(--teal); }
.ibox.navy { background: var(--subtle); color: var(--navy); }
.ibox.amber { background: var(--amber-bg); color: var(--amber); }
.ibox.green { background: var(--green-bg); color: var(--green); }
.ibox.sm { width: 36px; height: 36px; border-radius: 10px; }
.grid { display: grid; gap: 16px; }
.cols { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 18px; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); color: inherit; display: block; transition: box-shadow .15s, transform .15s; }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--crimson); }
.kpi.teal::before { background: var(--teal); } .kpi.navy::before { background: var(--navy-muted); } .kpi.tertiary::before { background: var(--tertiary); }
.kpi .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.kpi b { display: block; font: 700 40px/48px var(--body); letter-spacing: -.02em; }
.kpi .t { font: 600 16px/22px var(--body); }
.kpi .s { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 10px/14px var(--label); letter-spacing: .04em; color: var(--muted); }
.kpi svg { width: 64px; height: 18px; flex: none; }

/* mini stat ribbon */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); color: inherit; }
a.stat:hover { box-shadow: var(--shadow-md); color: inherit; }
.stat > div > span { display: block; font: 700 10px/14px var(--label); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 600 22px/28px var(--body); letter-spacing: -.01em; }
.stat b.crimson { color: var(--crimson); }

/* health bar */
.healthbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 24px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--text-2); }
.healthbar .items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.healthbar .it { display: inline-flex; align-items: center; gap: 6px; }
.healthbar strong { color: var(--text); font-weight: 600; }
.live { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.live.off { background: var(--amber); box-shadow: 0 0 0 4px rgba(180, 83, 9, .15); }

/* event + activity rows */
.rowcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 8px; transition: box-shadow .15s; }
.rowcard:hover { box-shadow: var(--shadow-md); }
.rowcard .l { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.datebadge { width: 56px; height: 56px; border-radius: 12px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.datebadge.crimson { background: var(--crimson); } .datebadge.teal { background: var(--teal); }
.datebadge small { font: 700 10px/12px var(--label); letter-spacing: .06em; text-transform: uppercase; }
.datebadge b { font: 700 18px/20px var(--body); }
.datebadge i { font-style: normal; font-size: 10px; opacity: .8; }
.rowcard h3 { font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.meta .ms { font-size: 16px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.activity { padding: 8px; }
.activity a.act { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 12px; color: inherit; }
.activity a.act:hover { background: var(--subtle); }
.activity a.act:hover h4 { color: var(--crimson); }
.activity h4 { font: 700 14px/20px var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navycard { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-md); }
.navycard::after { content: ""; position: absolute; right: -32px; bottom: -32px; width: 144px; height: 144px; border-radius: 50%; background: rgba(2, 132, 199, .12); }
.navycard h3 { color: #fff; margin-bottom: 4px; }
.navycard p { color: var(--muted); font-size: 12.5px; }
.navycard .lbl { font: 700 10px/14px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.navycard .bar { height: 8px; border-radius: 99px; background: var(--navy-muted); overflow: hidden; margin-top: 6px; }
.navycard .bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.navycard a { color: #7dd3fc; }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font: 600 10.5px/14px var(--label); letter-spacing: .02em;
  background: var(--subtle); color: var(--text-2); white-space: nowrap; }
.tag-teal { background: var(--teal-light); color: var(--teal); }
.tag-crimson, .tag-warn { background: var(--crimson-subtle); color: var(--crimson); }
.tag-featured { background: var(--crimson); color: #fff; text-transform: uppercase; font-size: 9.5px; padding: 2px 7px; border-radius: 6px; }
.tag-off { background: var(--navy); color: #fff; }
.tag-err { background: #fdecea; color: #93000a; }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-green { background: var(--green-bg); color: var(--green); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 10.5px/14px var(--label); background: var(--teal-light); color: var(--teal); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.off { background: var(--subtle); color: var(--text-2); }
.published { display: inline-flex; align-items: center; gap: 4px; font: 600 10.5px/14px var(--label); color: var(--green); }
.published::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }

/* ---------- flash ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; box-shadow: var(--shadow-sm); }
.flash-ok { background: #ecfdf5; color: #065f46; }
.flash-err { background: #fff1f1; color: #93000a; }
.flash-warn { background: var(--amber-bg); color: #78350f; }
.flash a { color: inherit; text-decoration: underline; }

/* ---------- tables ---------- */
.tablecard { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
.toolbar { padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .grow { flex: 1 1 260px; position: relative; }
.toolbar .grow .ms { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .grow input { padding-left: 40px; }
.toolbar input, .toolbar select { height: 44px; background: var(--subtle); border: 0; }
.tablewrap { overflow-x: auto; background: #fff; border-radius: 16px; }
.tablecard .tablewrap { border-radius: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 14px; font: 700 10px/14px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  background: rgba(241, 245, 249, .7); white-space: nowrap; }
td { padding: 12px 14px; vertical-align: middle; border-top: 1px solid #f1f5f9; }
tbody tr:hover td { background: rgba(241, 245, 249, .5); }
tr.featured td { background: rgba(254, 226, 226, .14); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; background: var(--subtle); box-shadow: var(--shadow-sm); }
.thumb.empty, .initials { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--subtle); color: var(--navy);
  font: 700 14px/1 var(--label); box-shadow: var(--shadow-sm); flex: none; }
.initials.crimson { background: var(--crimson); color: #fff; } .initials.teal { background: var(--teal); color: #fff; }
.thumb.lg { width: 96px; height: 96px; }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title { font: 600 15px/22px var(--body); color: var(--text); }
a.title:hover { color: var(--crimson); }
.sub { font-size: 12px; color: var(--muted); max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowactions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.rowactions form { margin: 0; }
.iconlink { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.iconlink:hover { color: var(--crimson); background: var(--crimson-subtle); }
.phone { display: inline-flex; align-items: center; gap: 4px; color: var(--text); white-space: nowrap; }
.phone .ms { font-size: 16px; color: var(--muted); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--crimson); cursor: pointer; }
.bulkbar { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 14px 14px; padding: 10px 14px; border-radius: 12px; background: var(--navy); color: #fff; }
.bulkbar.show { display: flex; }
.bulkbar .group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bulkbar button, .bulkbar select { height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--navy-muted); color: #fff; font: 600 11px/1 var(--label); cursor: pointer; }
.bulkbar select { width: auto; }
.bulkbar .danger { background: var(--crimson); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px; }
.pages { display: flex; gap: 4px; align-items: center; }
.pages a, .pages span { min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: var(--subtle); color: var(--text); font: 600 12px/1 var(--label); }
.pages a.on { background: var(--crimson); color: #fff; }
.pages span.gap { background: none; color: var(--muted); }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- forms ---------- */
label { display: block; font: 700 10px/14px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 14px/20px var(--body); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-subtle); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
textarea { resize: vertical; }
input[type=file] { font: 13px var(--body); max-width: 100%; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .wide { grid-column: 1 / -1; }
.field .req { color: var(--crimson); }
.check { display: flex; align-items: center; gap: 10px; font: 500 14px/20px var(--body); letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; }
.check input { width: 18px; height: 18px; }
.preview { display: block; max-width: 100%; max-height: 240px; border-radius: 12px; background: var(--subtle); margin-bottom: 12px; object-fit: contain; }
.formbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 20px; }
.errors { margin: 0; padding-left: 18px; }
.keybox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.keybox code { flex: 1 1 260px; padding: 11px 13px; background: var(--navy); color: #7dd3fc; border-radius: 12px; overflow-wrap: anywhere; }
pre { background: var(--navy); color: #e2e8f0; border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 12.5px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters .grow { flex: 1 1 220px; }
.progress { height: 10px; background: var(--subtle); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: var(--crimson); width: 0; transition: width .3s; border-radius: 99px; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--text); font: 600 13px/18px var(--label); box-shadow: var(--shadow-sm); }
.tabs a.on { background: var(--navy); color: #fff; }
.tabs a .count { background: var(--subtle); color: var(--text-2); }
.tabs a.on .count { background: var(--crimson); color: #fff; }

/* media grid */
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mediagrid a { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; }
.mediagrid a:hover { box-shadow: var(--shadow-md); }
.mediagrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--subtle); }
.mediagrid span { display: block; padding: 8px 10px; font: 600 12px/16px var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mediagrid small { display: block; padding: 0 10px 8px; color: var(--muted); font-size: 11px; }

/* sync diff */
.diff { font-size: 12px; line-height: 18px; color: var(--text-2); }
.diff b { color: var(--text); font-weight: 600; }
.diff del { color: #93000a; background: #fff1f1; text-decoration: line-through; padding: 0 3px; border-radius: 4px; }
.diff ins { color: var(--green); background: #ecfdf5; text-decoration: none; padding: 0 3px; border-radius: 4px; }

/* push preview */
.pushpreview { background: rgba(245, 245, 247, .96); border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pp-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6e6e73; letter-spacing: .02em; margin-bottom: 6px; }
.pp-head img { width: 20px; height: 20px; border-radius: 5px; }
.pp-time { margin-left: auto; }
.pushpreview b { display: block; font-size: 15px; color: #111; }
.pushpreview p { margin: 2px 0 0; font-size: 15px; color: #111; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented label { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--subtle); cursor: pointer;
  font: 600 13px/18px var(--label); letter-spacing: 0; text-transform: none; color: var(--text); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--navy); color: #fff; }
.devicelist { max-height: 340px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); }
.devicelist label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-top: 1px solid var(--subtle); cursor: pointer;
  font: 500 13px/18px var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.devicelist label:first-child { border-top: 0; }
.devicelist label:hover { background: var(--subtle); }

/* ---------- sign in / setup ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #1E3A5F 0%, #0F2942 55%) var(--navy); }
.authcard { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .35); }
.authcard img { display: block; width: 70%; margin: 0 auto 18px; }
.authcard h1 { font-size: 22px; line-height: 28px; margin-bottom: 16px; text-align: center; }
.authcard .field { margin-bottom: 14px; }
.authcard .btn { width: 100%; padding: 12px; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .hide-lg { display: none; }
}
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .side { transform: translateX(-100%); transition: transform .2s; }
  .navtoggle:checked ~ .side { transform: none; }
  .top { left: 0; padding-left: 64px; }
  .main { margin-left: 0; }
  .burger { display: grid; place-items: center; position: fixed; top: 12px; left: 12px; z-index: 55; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; cursor: pointer; }
  .navtoggle:checked ~ .burger { left: calc(var(--side-w) + 8px); }
  .form { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .content { padding: 16px 16px 40px; }
  h1 { font-size: 26px; line-height: 32px; }
  .hide-sm { display: none; }
  .topsearch { display: none; }
  .top { justify-content: flex-end; }
}

/* ---------- push: pipeline, history ---------- */
.minihead { font: 700 11px/16px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pipeline { list-style: none; margin: 0 0 12px; padding: 0; position: relative; }
.pipeline li { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 14px; position: relative; }
.pipeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.pipeline li > .ms { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: var(--crimson-subtle); color: var(--crimson);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.pipeline li:nth-child(3) > .ms, .pipeline li:nth-child(4) > .ms { background: var(--teal-light); color: var(--teal); }
.pipeline li:last-child > .ms { background: var(--navy); color: #fff; }
.pipeline b { display: block; font: 600 13.5px/18px var(--head); }
.pipeline span { display: block; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.kpirow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.kpirow > div { background: var(--subtle); border-radius: 12px; padding: 10px 12px; }
.kpirow span { display: block; font: 700 10px/14px var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpirow b { display: block; font: 600 22px/28px var(--head); }
.kpirow b.green { color: var(--green); } .kpirow b.crimson { color: var(--crimson); }
.errlist { list-style: none; margin: 0; padding: 0; }
.errlist li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.errlist b { min-width: 34px; text-align: right; color: var(--crimson); }
.clickrow { cursor: pointer; }
.clickrow:hover td { background: var(--subtle); }
.progress.sm { height: 6px; margin: 0; }
.hint .ms { vertical-align: -3px; }
@media (max-width: 720px) { .kpirow { grid-template-columns: 1fr 1fr; } }

/* sidebar: the full logo on white, no extra wording */
.brand { justify-content: center; height: 88px; padding: 10px 24px; }
.brand img { height: auto; width: 100%; max-width: 210px; max-height: 68px; object-fit: contain; }

.kpirow small { display: block; font-size: 12px; margin-top: 2px; }
