/* MiGateway Shire, styled from Matt Englehart's "Launcher Wireframe v0.2" (Rich, 2026-10-12: "i like it").
   Brand tokens: MiHIN letterhead, MarComm FINAL 01.01.26 (BSASD-14949), as recorded in the wireframe; not re-checked
   with MarComm. Section tints, icon colours and text greys are the wireframe's derived values, "not brand-approved".
   Every colour is a theme token, so a per-HIN theme is one override of the block below.
   Open Sans is used when installed; no web font is fetched (no third-party request from a health-data product). */
:root {
  --mihin-navy: #223C89; --mihin-navy-2: #26358E; --mihin-gray: #949599; --mihin-gray-2: #8A8B8D;
  --brand: var(--mihin-navy); --brand-deep: var(--mihin-navy-2); --brand-rule: var(--mihin-gray); --brand-ink: #ffffff;
  --bg: #f2f5fa; --surface: #ffffff; --card: var(--surface); --line: #dde0e7; --line-2: #c3c8d3;
  --ink: #1d2433; --ink-2: #404040; --ink-3: #66676b; --muted: var(--ink-3);
  --accent: var(--brand); --accent-soft: #e9edf7;
  --sec0: #223C89; --sec1: #3A5DB8; --sec2: #56688F; --sec3: #16275C; --sec4: #6E6F74; --sec5: #2F4A9E; --sec6: #4B5D7E; --sec7: #6B6C70;
  --warn: #a35f00; --warn-soft: #fff4e0; --warn-bg: var(--warn-soft); --warn-ink: var(--warn);
  --ok: #1f7a4d; --ok-soft: #e5f5ec; --error: #a4262c;
  --radius: 10px; --radius-lg: 14px;
  /* The launch pad's cards, page tint and favorite star (Rich, 2026-10-14, mockup from MiHIN's website); derived values,
     not brand-approved. */
  --shadow: 0 1px 2px rgba(22, 39, 92, 0.06), 0 4px 14px rgba(22, 39, 92, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 39, 92, 0.08), 0 10px 24px rgba(22, 39, 92, 0.13);
  --fav: #f5b82e; --fav-on-white: #c79a00;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.page-title { margin: 0; padding-bottom: 0.4rem; border-bottom: 4px solid var(--brand); display: inline-block; }
.page-sub { color: var(--ink-3); margin: 0.4rem 0 1rem; }

/* The navy band with MiHIN's white logo, as on MiHIN's website (Rich, 2026-10-14, mockup from MiHIN's website). The
   logo is no taller than the avatar, so the slim bar over an open app keeps its height. */
.top { position: relative; display: flex; align-items: center; gap: 1.25rem 2rem; padding: 0.6rem 1.5rem; background: var(--brand-deep); color: var(--brand-ink); }
.top a { color: var(--brand-ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand .logo { display: block; height: 2.1rem; width: auto; }
/* The server's own small pages (an error, the patient picker) allow no images, so they keep the text mark. */
.brand .mark { font-weight: 800; letter-spacing: 0.04em; }
.brand .divider { width: 1px; height: 1.3rem; background: rgba(255, 255, 255, 0.5); }
.brand .product { font-weight: 600; }
#nav { display: flex; gap: 1.5rem; flex: 1; flex-wrap: wrap; }
/* The page you are on: a light underline, drawn as text decoration so the bar's height does not change. */
#nav a { opacity: 0.85; font-size: 0.95rem; font-weight: 600; text-decoration-line: underline; text-decoration-thickness: 3px; text-decoration-color: transparent; text-underline-offset: 0.55em; }
#nav a:hover { opacity: 1; text-decoration-color: rgba(255, 255, 255, 0.4); }
#nav a.active { opacity: 1; text-decoration-color: rgba(255, 255, 255, 0.85); }
.top a:focus-visible, .top button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.avatar:focus-visible { border-radius: 50%; }

/* The launch pad only (body.on-pad): a taller band, the Michigan banner on the right faded into the navy, and the
   tagline over a darker scrim so white text keeps its contrast. Admin pages and an app open within Shire keep the slim
   bar. The banner is decorative, so it is a CSS background. Rich, 2026-10-14, mockup from MiHIN's website. */
.top .hero-art, .top .tagline { display: none; }
#who { display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; position: relative; }
#who .link { color: var(--brand-ink); }
.avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.user-menu { position: absolute; right: 0; top: 2.6rem; z-index: 20; width: 300px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); padding: 0.9rem 1rem; }
.user-menu .who-name { font-weight: 700; }
/* #who makes header links white; inside the white menu they must be brand blue again (Add, Verify, Sign out). */
#who .user-menu a, #who .user-menu .link { color: var(--brand); }
.user-menu hr { border: none; border-top: 1px solid var(--line); margin: 0.7rem 0; }

#banner { background: var(--warn-bg); color: var(--warn-ink); padding: 0.6rem 1.5rem; border-bottom: 1px solid #e8d38f; }
#banner button { margin-left: 0.5rem; }

main { flex: 1; padding: 1.5rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.foot { padding: 0.75rem 1.5rem; color: var(--ink-3); font-size: 0.8rem; text-align: center; border-top: 3px solid var(--brand-rule); background: var(--surface); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.narrow { max-width: 460px; margin: 3rem auto; }
.muted { color: var(--ink-3); }
.error { color: var(--error); }
.okay { color: var(--ok); }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.row h1 { margin: 0; flex: 1; }
.spacer { flex: 1; }

button, .button { font: inherit; padding: 0.45rem 0.9rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { border-color: var(--brand); }
button.primary, .button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
button.danger { color: var(--error); border-color: var(--error); }
pre.json { white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem; font-size: 0.85rem; }
button.link { background: none; border: none; padding: 0; text-decoration: underline; color: var(--brand); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.seg { border-radius: 0; margin-left: -1px; }
button.seg:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
button.seg:last-child { border-radius: 0 6px 6px 0; }
button.seg.on { background: var(--accent-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
input, select, textarea { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); }
input[type="search"] { min-width: 280px; }
textarea { width: 100%; max-width: 480px; }
label.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; font-size: 0.9rem; }
label.field input, label.field select, label.field textarea { width: 100%; max-width: 480px; }
label.check { display: flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0; }

/* ---- the launch pad (wireframe v0.2; restyled to the mockup from MiHIN's website, Rich, 2026-10-14: "i like it") ---- */
/* Line icons (app.js draws them): they take the text colour. */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-head { display: flex; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 0.25rem 0 1.5rem; }
.lp-titles { flex: 1; min-width: 260px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.lp-title { margin: 0.2rem 0 0.2rem; font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem); font-weight: 800; line-height: 1.1; color: var(--brand); }
.lp-head .page-sub { margin: 0; font-size: 1.05rem; }
.lp-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.lp-summary { color: var(--ink-3); font-size: 0.85rem; }
/* The layout switch: one segmented control. */
.segs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.segs button.seg { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.35rem 0.8rem; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--ink-2); font-size: 0.9rem; }
.segs button.seg:hover { background: var(--accent-soft); color: var(--brand); }
.segs button.seg.on { background: var(--accent-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.lp :focus-visible, .lp-head :focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 75%, transparent); outline-offset: 2px; }

/* The rail: a card with the search box, the sections, and a faint Michigan under them. */
.lp { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.rail-card { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem 0.85rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lp-search { position: relative; display: flex; align-items: center; }
.lp-search > .ico { position: absolute; left: 0.75rem; color: var(--ink-3); pointer-events: none; }
.lp-search input.search { width: 100%; min-width: 0; padding: 0.6rem 2.4rem; border-color: var(--line); border-radius: 10px; }
.lp-search kbd { position: absolute; right: 0.65rem; font: inherit; font-size: 0.75rem; line-height: 1.35; padding: 0 0.4rem; border: 1px solid var(--line-2); border-radius: 5px; background: var(--bg); color: var(--ink-3); pointer-events: none; }
.rail { display: flex; flex-direction: column; gap: 0.2rem; }
.rail a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.rail a .ico { width: 1.25rem; height: 1.25rem; color: var(--ink-3); }
.rail a .label { flex: 1; min-width: 0; }
.rail a:hover { background: var(--accent-soft); color: var(--brand); }
.rail a.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.rail a:hover .ico, .rail a.active .ico { color: var(--brand); }
.rail .count, .section-head .count { display: inline-block; min-width: 1.6rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-align: center; }
.rail .count { background: #eef0f4; color: var(--ink-3); }
.rail a.active .count { background: var(--brand); color: var(--brand-ink); }
.rail-mark { position: relative; display: flex; align-items: flex-end; min-height: 10rem; margin-top: 1rem; padding: 0 5.5rem 0 0.6rem; color: var(--ink-3); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; line-height: 1.9; text-transform: uppercase; }
.rail-mark::before { content: ""; position: absolute; inset: 0; background: url(banner.jpg) 83% 30% / 205% auto no-repeat; opacity: 0.22; filter: saturate(0.7); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); pointer-events: none; }

/* Section heads: icon, name, count, description, and "View all" when the section is cut short. */
.lp-main { min-width: 0; }
.section { margin-bottom: 2rem; scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: center; gap: 0.5rem 0.65rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0.55rem; margin-bottom: 1rem; }
.section-head > .ico { width: 1.5rem; height: 1.5rem; color: var(--brand); }
.section-head h2 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.section-head .count { background: var(--accent-soft); color: var(--brand); }
.section-head .desc { flex: 1; min-width: 12rem; color: var(--ink-3); font-size: 0.92rem; }
.section-head .view-all { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: auto; padding: 0.2rem 0.3rem; border: none; background: none; color: var(--brand); font-size: 0.9rem; font-weight: 600; }
.section-head .view-all .ico { width: 1rem; height: 1rem; }
.section-head .view-all:hover { text-decoration: underline; }

/* App cards: white, rounded, a soft shadow; the coloured icon carries the star on its corner. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: left; min-height: 150px; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; }
.tile:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.icon-wrap { position: relative; align-self: flex-start; }
.tile .icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; overflow: hidden; background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%); box-shadow: 0 2px 6px rgba(22, 39, 92, 0.18); }
.tile .icon img { width: 100%; height: 100%; object-fit: cover; }
.tile .fav { position: absolute; top: -0.3rem; right: -0.35rem; display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border: none; border-radius: 50%; background: none; color: rgba(255, 255, 255, 0.92); font-size: 0.9rem; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.tile .fav:hover, .tile .fav.on { color: var(--fav); }
.tile .name { font-weight: 700; color: var(--ink); line-height: 1.25; }
.tile .desc { color: var(--ink-3); font-size: 0.85rem; line-height: 1.35; flex: 1; }
.tile .meta { display: flex; gap: 0.4rem; align-items: center; font-size: 0.78rem; color: var(--ink-3); flex-wrap: wrap; }
.tile .corner { position: absolute; top: 0.45rem; right: 0.45rem; display: flex; }
.tile .corner button { border: none; border-radius: 6px; background: none; padding: 0.15rem 0.4rem; color: var(--ink-3); font-size: 1.05rem; line-height: 1; }
.tile .corner button:hover { background: var(--accent-soft); color: var(--brand); }
.badge { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge.ial { background: var(--warn-soft); color: var(--warn); border: 1px solid #f0d199; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.mode { background: var(--accent-soft); color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
}

/* Icons layout (the mockup's main view): centred cards, a larger icon, two lines of description. */
.layout-icons .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.layout-icons .tile { align-items: center; text-align: center; gap: 0.3rem; min-height: 0; padding: 1.15rem 0.75rem 1rem; }
.layout-icons .icon-wrap { align-self: center; margin-bottom: 0.4rem; }
.layout-icons .tile .icon { width: 60px; height: 60px; border-radius: 14px; font-size: 1.3rem; }
.layout-icons .tile .name { font-size: 0.95rem; }
.layout-icons .tile .desc { flex: none; font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.layout-icons .tile .meta { display: none; }
/* List layout: power users and accessibility. Clean rows; the star moves beside the menu. */
.layout-list .tiles { grid-template-columns: 1fr; gap: 0.5rem; }
.layout-list .tile { flex-direction: row; align-items: center; gap: 0.9rem; min-height: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius); }
.layout-list .tile:hover { transform: none; }
.layout-list .icon-wrap { display: contents; }
.layout-list .tile .icon { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 9px; }
.layout-list .tile .name { min-width: 200px; }
.layout-list .tile .fav { position: static; order: 8; color: var(--ink-3); font-size: 1rem; text-shadow: none; }
.layout-list .tile .fav:hover { color: var(--brand); }
.layout-list .tile .fav.on { color: var(--fav-on-white); }
.layout-list .tile .corner { position: static; order: 9; }

/* Menus and dialogs. */
.menu { position: absolute; z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); padding: 0.3rem; min-width: 190px; }
.menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 0.45rem 0.6rem; border-radius: 6px; }
.menu button:hover { background: var(--accent-soft); color: var(--brand); }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: 520px; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(20, 30, 60, 0.45); }
dialog h3 { margin-top: 0; }

/* An app opened within Shire, with the app switcher. It takes the whole window under Shire's bar: no page margin, no
   bordered box, no footer, one slim strip (Rich, 2026-10-14: "it looks liek we just shoved the app inside of shire").
   The body is a column of exactly the window's height, so the frame fills what the bar leaves, whatever its height. */
.within { display: flex; flex-direction: column; height: calc(100vh - 150px); }
.within-bar { display: flex; gap: 1rem; align-items: center; padding: 0 0 0.5rem; flex-wrap: wrap; }
.within-bar .spacer { flex: 1; }
.within iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
body.app-open { height: 100vh; min-height: 0; overflow: hidden; }
body.app-open .foot { display: none; }
body.app-open main { padding: 0; max-width: none; display: flex; flex-direction: column; min-height: 0; }
body.app-open .within { flex: 1; height: auto; min-height: 0; }
body.app-open .within-bar { gap: 0.5rem; padding: 0.3rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.92rem; flex-wrap: nowrap; }
body.app-open .within-bar select, body.app-open .within-bar button { padding: 0.2rem 0.55rem; font-size: 0.88rem; }
body.app-open .within iframe { border: none; border-radius: 0; }
.within-bar .crumb { color: var(--brand); text-decoration: none; }
.within-bar .crumb:hover { text-decoration: underline; }
.within-bar .crumb-sep { color: var(--ink-3); }
.within-bar button.quiet { background: none; border: none; color: var(--brand); text-decoration: underline; }

/* Locked to one app (spec LP-5): the app fills the window. */
body.locked .top, body.locked .foot, body.locked #banner { display: none; }
body.locked main { padding: 0; max-width: none; }
body.locked .within { height: 100vh; }
body.locked .within iframe { border: none; border-radius: 0; }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.88rem; }
.chip button { border: none; padding: 0 0.2rem; background: none; color: var(--error); }
.steps { display: flex; gap: 0.5rem; margin-bottom: 1rem; color: var(--ink-3); font-size: 0.9rem; }
.steps .now { color: var(--ink); font-weight: 600; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; }
.tile-wrap { display: flex; flex-direction: column; gap: 0.35rem; }

/* Phones and tablets (spec NF-11). */
@media (max-width: 900px) {
  .lp { grid-template-columns: 1fr; }
  .rail-card { position: static; }
  .rail { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .rail a { padding: 0.4rem 0.65rem; border: 1px solid var(--line); background: var(--surface); }
  .rail a.active { box-shadow: none; border-color: var(--brand); background: var(--accent-soft); }
  .rail-mark { display: none; }
}
/* A short window: the watermark would push the sticky rail past the bottom. */
@media (max-height: 640px) {
  .rail-mark { display: none; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.6rem 1rem; }
  #nav { order: 3; flex-basis: 100%; gap: 0.4rem 0.9rem; }
  #who { margin-left: auto; }
  main { padding: 1rem; }
  .card { padding: 1rem; }
  .narrow { margin: 1.5rem auto; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  input[type="search"] { min-width: 0; width: 100%; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
  .layout-list .tile .name { min-width: 0; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
  .within { height: calc(100vh - 180px); }
  .user-menu { width: min(300px, calc(100vw - 2rem)); }
}

/* Section colours for app icons (wireframe v0.2 tints; "not brand-approved"). Colour only, so the icon's sheen stays. */
.tile .icon[data-sec="0"] { background-color: var(--sec0); } .tile .icon[data-sec="1"] { background-color: var(--sec1); }
.tile .icon[data-sec="2"] { background-color: var(--sec2); } .tile .icon[data-sec="3"] { background-color: var(--sec3); }
.tile .icon[data-sec="4"] { background-color: var(--sec4); } .tile .icon[data-sec="5"] { background-color: var(--sec5); }
.tile .icon[data-sec="6"] { background-color: var(--sec6); } .tile .icon[data-sec="7"] { background-color: var(--sec7); }

/* ---- the admin console (Matt Englehart's Admin Consoles Wireframe v0.1) ---- */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.admin-nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; }
.admin-scope { font-weight: 700; color: var(--brand); padding: 0.2rem 0.5rem 0.6rem; border-bottom: 3px solid var(--brand); margin-bottom: 0.4rem; font-size: 0.92rem; }
.admin-nav-head { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: var(--ink-3); padding: 0.8rem 0.5rem 0.25rem; }
.admin-nav a { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; }
.admin-nav a:hover { background: var(--accent-soft); color: var(--brand); }
.admin-nav a.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; border-left: 3px solid var(--brand); }
.admin-main { min-width: 0; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-color: #f0d199; }
.badge.bad { background: #fdecec; color: var(--error); border: 1px solid #f3c2c4; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f0d199; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 0.9rem 1rem; color: var(--ink); text-decoration: none; }
a.stat:hover { border-color: var(--brand); }
.stat-value { font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--ink-3); font-size: 0.88rem; }
.row.bulk { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.75rem; }
.matrix-wrap { overflow-x: auto; }
.matrix-wrap table td, .matrix-wrap table th { white-space: nowrap; }
details.card summary { cursor: pointer; font-weight: 600; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
  .admin-nav-head { display: none; }
  .admin-scope { flex-basis: 100%; }
}
/* Phones (spec NF-11): table rows become cards, each cell labelled with its column. */
@media (max-width: 640px) {
  table.cards-on-phone { display: block; white-space: normal; overflow: visible; background: none; }
  table.cards-on-phone thead { display: none; }
  table.cards-on-phone tbody, table.cards-on-phone tr, table.cards-on-phone td { display: block; width: 100%; }
  table.cards-on-phone tr { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.75rem; margin-bottom: 0.6rem; }
  table.cards-on-phone td { border: none; padding: 0.2rem 0; }
  table.cards-on-phone td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: 0.78rem; }
  .matrix-wrap table.cards-on-phone td { white-space: normal; }
}

/* Concealed after 15 minutes without activity (MiHIN System Access Policy #2.28 §3.25.2). */
.conceal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: var(--bg, #f4f6fa); }

/* ==== The launch pad as Rich's mockup (2026-10-14: "this is the bar, minus the notification bar, its this or i dont
   want it"), made from MiHIN's own new website. Measured from the mockup at 1672 px wide; these rules come last and
   win over the ones above. Derived colours, not brand-approved. ==== */
:root { --pad-x: 2.75rem; --ink-navy: #13235a; --royal: #2a56c6; --royal-soft: #e8effc; }

/* Every page: the navy bar, the white logo, the nav with a light underline under the page you are on. */
.top { min-height: 4.5rem; padding: 0 var(--pad-x); gap: 0 2rem; background: linear-gradient(90deg, #1b3a8e, #2348a8); }
.brand .logo { height: 2.6rem; }
#nav { gap: 2.25rem; margin-left: 4rem; }
#nav a { position: relative; opacity: 0.92; font-size: 1.05rem; font-weight: 600; text-decoration: none; padding: 0.55rem 0; }
#nav a.active { opacity: 1; }
#nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: #9cc0ff; }
#nav a:hover { opacity: 1; }
#who { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
#who::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); opacity: 0.9; }
.avatar { width: 2.75rem; height: 2.75rem; border: 2px solid rgba(255, 255, 255, 0.85); background: #2448a8; font-size: 1rem; }

/* The launch pad: the band runs into the Michigan banner on the right, a light wave below it on the left, the tagline
   over the photo, and the title block sitting where the band gives way to the page. */
body.on-pad { background: var(--bg); }
body.on-pad .top { --band: 5.6rem; --hero: 12.25rem; height: var(--hero); min-height: 0; align-items: flex-start; flex-wrap: nowrap; padding: 0 var(--pad-x); background: var(--bg); overflow: hidden; }
body.on-pad .top > .brand, body.on-pad .top > #nav, body.on-pad .top > #who { position: relative; z-index: 2; height: var(--band); display: flex; align-items: center; }
body.on-pad .brand .logo { height: 5.1rem; margin-left: -0.6rem; }
body.on-pad #nav a { padding: 0.5rem 0; }
body.on-pad .top .hero-art {
  display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* the light page curving up into the band, left of the photo */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 110' preserveAspectRatio='none'%3E%3Cpath d='M0 0H340C470 0 560 30 640 70S800 110 1000 110V110H0Z' fill='%23f2f5fa'/%3E%3Cpath d='M0 18C220 6 420 14 560 52S820 104 1000 98' fill='none' stroke='%23ffffff' stroke-width='3' opacity='.9'/%3E%3Cpath d='M0 46C240 32 450 44 600 76S840 112 1000 108' fill='none' stroke='%23dfe8f6' stroke-width='2'/%3E%3C/svg%3E") left 0 top var(--band) / 100% calc(var(--hero) - var(--band) + 1px) no-repeat,
    /* the navy band, fading out over the photo */
    linear-gradient(90deg, #1b3a8e 0%, #2146a6 34%, rgba(33, 70, 166, 0.8) 46%, rgba(33, 70, 166, 0.32) 62%, rgba(33, 70, 166, 0.12) 100%) left top / 100% var(--band) no-repeat;
}
/* The photo, in two layers from the website's banner, as the mockup composes it: the shoreline, trees and lake across
   the right, and Michigan's glowing network drawn smaller above them. Both sit under the band and the wave. */
body.on-pad .top::before, body.on-pad .top::after { content: ""; position: absolute; top: 0; z-index: -1; pointer-events: none; background-image: url(banner.jpg); background-repeat: no-repeat; }
body.on-pad .top { isolation: isolate; }
body.on-pad .top .hero-art { z-index: 0; }
body.on-pad .top::before { right: 0; width: 64%; height: 100%; background-size: 100% auto; background-position: 0 71%; }
body.on-pad .top::after { display: block; right: 12.5%; width: 17rem; height: 100%; background-size: 27.3rem auto; background-position: -8.1rem 0; -webkit-mask-image: radial-gradient(50% 52% at 40% 46%, #000 58%, transparent 100%); mask-image: radial-gradient(50% 52% at 40% 46%, #000 58%, transparent 100%); }
body.on-pad .top .tagline { display: block; position: absolute; right: var(--pad-x); top: calc(var(--band) + 1.1rem); bottom: auto; z-index: 2; max-width: 10rem; margin: 0; color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.55; letter-spacing: 0.26em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(10, 25, 70, 0.75); }

body.on-pad main { position: relative; z-index: 3; max-width: none; margin-top: calc(-1 * (12.25rem - 5.6rem)); padding: 0 var(--pad-x) 2.5rem; }

/* The title block: the eyebrow, the big title, one grey line. */
body.on-pad .lp-head { margin: 2.2rem 0 0; }
body.on-pad .eyebrow { color: var(--royal); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; }
body.on-pad .lp-title { margin: 0.35rem 0 0.15rem; font-size: 3.5rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; color: var(--ink-navy); }
body.on-pad .lp-head .page-sub { color: #6b7280; font-size: 1.12rem; }

/* The layout switch, on its own line at the right. */
.lp-tools { display: flex; justify-content: flex-end; margin: -0.6rem 0 0.15rem; }
.segs { display: inline-flex; gap: 0; padding: 0.2rem; background: #fff; border: 1px solid #dfe5ef; border-radius: 10px; box-shadow: 0 1px 2px rgba(19, 35, 90, 0.05); }
.segs button.seg { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 1.05rem; border: 1px solid transparent; border-radius: 8px; background: none; color: #374151; font-size: 0.95rem; font-weight: 500; }
.segs button.seg .ico { width: 1.15rem; height: 1.15rem; }
.segs button.seg.on { background: var(--royal-soft); border-color: #4a73d9; color: var(--royal); font-weight: 600; }

/* The grid: the rail card on the left, the sections on the right. */
body.on-pad .lp { grid-template-columns: 18.75rem minmax(0, 1fr); gap: 1.85rem; }
body.on-pad .rail-card { top: 1rem; padding: 1rem 1rem 1.5rem; gap: 1rem; border: none; border-radius: 16px; box-shadow: 0 1px 3px rgba(19, 35, 90, 0.06), 0 8px 28px rgba(19, 35, 90, 0.06); min-height: 40rem; }
body.on-pad .lp-search input.search { padding: 0.72rem 2.6rem; font-size: 1rem; border: 1px solid #d6dde8; border-radius: 9px; }
body.on-pad .lp-search > .ico { left: 0.85rem; width: 1.2rem; height: 1.2rem; color: #6b7280; }
body.on-pad .lp-search kbd { right: 0.75rem; padding: 0 0.45rem; border-color: #d6dde8; background: #fff; color: #6b7280; }
body.on-pad .rail { gap: 0.35rem; }
body.on-pad .rail a { gap: 0.95rem; padding: 0.72rem 0.85rem; border-radius: 8px; color: #1f2937; font-size: 1.02rem; }
body.on-pad .rail a .ico { width: 1.45rem; height: 1.45rem; color: #3653a8; stroke-width: 1.6; }
body.on-pad .rail a.active { background: #eaf0fb; color: var(--royal); font-weight: 600; box-shadow: inset 3px 0 0 var(--royal); }
body.on-pad .rail a.active .ico { color: var(--royal); }
body.on-pad .rail .count { min-width: 1.75rem; padding: 0.1rem 0.5rem; background: #eef1f6; color: #4b5563; font-weight: 600; }
body.on-pad .rail a.active .count { background: var(--royal); color: #fff; }
/* The faint Michigan and its four spaced lines at the foot of the rail. */
body.on-pad .rail-mark { isolation: isolate; flex: 1; min-height: 14rem; margin-top: 2rem; padding: 0 6rem 0.25rem 0.75rem; color: #6c7a96; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em; line-height: 1.95; }
/* Michigan from the banner's own map (its outline and network dots), pale, behind the words. */
body.on-pad .rail-mark::before { content: ""; position: absolute; inset: -1.5rem -0.9rem 1.25rem -0.9rem; z-index: -1; background: url(michigan-mark.png) center / contain no-repeat; opacity: 0.85; filter: none; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; pointer-events: none; }

/* Section heads: icon, bold name, count pill, grey description, "View all ›" at the right, a thin rule. */
body.on-pad .section { margin-bottom: 2rem; }
body.on-pad .section-head { gap: 0.6rem 0.85rem; padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 1px solid #dde3ec; }
body.on-pad .section-head > .ico { width: 1.75rem; height: 1.75rem; color: var(--royal); stroke-width: 1.6; }
body.on-pad .section-head h2 { font-size: 1.4rem; font-weight: 700; color: var(--ink-navy); }
body.on-pad .section-head .count { min-width: 1.9rem; padding: 0.12rem 0.55rem; background: var(--royal-soft); color: var(--royal); font-size: 0.85rem; font-weight: 700; border-radius: 7px; }
body.on-pad .section-head .desc { color: #6b7280; font-size: 1.05rem; }
body.on-pad .section-head .view-all { color: var(--royal); font-size: 0.95rem; font-weight: 600; }

/* App icons: six colours, as in the mockup (blue, purple, teal, royal, deep blue, violet), a light sheen on top. */
.tile .icon[data-c="0"] { background-color: #1d3f9a; background-image: linear-gradient(160deg, #3462cf, #1b3a8e); }
.tile .icon[data-c="1"] { background-color: #5a3db3; background-image: linear-gradient(160deg, #7d5ad9, #4f33a6); }
.tile .icon[data-c="2"] { background-color: #0d7f84; background-image: linear-gradient(160deg, #19a3a1, #0b6f78); }
.tile .icon[data-c="3"] { background-color: #2563eb; background-image: linear-gradient(160deg, #4b8bf5, #1f55d6); }
.tile .icon[data-c="4"] { background-color: #1f4fc0; background-image: linear-gradient(160deg, #2f6be0, #1a3f9e); }
.tile .icon[data-c="5"] { background-color: #6b2fd0; background-image: linear-gradient(160deg, #9361f2, #5b25bf); }
.tile .cat { display: none; }

/* The icons view: small white cards, the coloured square centred, the gold star on its corner, the menu top right. */
body.on-pad .layout-icons .tiles { grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); gap: 0.9rem; }
body.on-pad .layout-icons .tile { gap: 0.25rem; padding: 0.85rem 0.6rem 0.95rem; border: 1px solid #e4e9f1; border-radius: 10px; box-shadow: 0 1px 2px rgba(19, 35, 90, 0.05); min-height: 10.2rem; }
body.on-pad .layout-icons .tile:hover { box-shadow: 0 4px 16px rgba(19, 35, 90, 0.1); }
body.on-pad .layout-icons .icon-wrap { margin-bottom: 0.55rem; }
body.on-pad .layout-icons .tile .icon { width: 4.4rem; height: 4.4rem; border-radius: 14px; font-size: 1.55rem; font-weight: 700; box-shadow: 0 3px 8px rgba(19, 35, 90, 0.22); }
body.on-pad .tile .fav { top: -0.55rem; right: -0.65rem; width: 1.75rem; height: 1.75rem; color: #f2b544; font-size: 1.35rem; text-shadow: 0 1px 2px rgba(19, 35, 90, 0.3); }
body.on-pad .tile .fav:not(.on) { color: #f2b544; }
body.on-pad .tile .fav:hover { color: #f2b544; }
body.on-pad .layout-icons .tile .name { font-size: 1rem; font-weight: 700; color: var(--ink-navy); line-height: 1.22; }
body.on-pad .layout-icons .tile .desc { display: none; }
body.on-pad .layout-icons .tile .cat { display: block; color: #6b7280; font-size: 0.88rem; line-height: 1.3; }
body.on-pad .tile .corner { top: 0.5rem; right: 0.45rem; }
body.on-pad .tile .corner button { color: #6b7280; font-size: 1.15rem; letter-spacing: 0.05em; }

/* The tiles and list views in the same card language. */
body.on-pad .layout-tiles .tile { border: 1px solid #e4e9f1; border-radius: 12px; box-shadow: 0 1px 2px rgba(19, 35, 90, 0.05); }
body.on-pad .layout-tiles .tile .name, body.on-pad .layout-list .tile .name { color: var(--ink-navy); }
body.on-pad .layout-list .tile { border: 1px solid #e4e9f1; box-shadow: none; }

@media (max-width: 900px) {
  :root { --pad-x: 1rem; }
  body.on-pad .top { --band: 4.5rem; --hero: 9rem; }
  body.on-pad main { margin-top: calc(-1 * (9rem - 4.5rem)); }
  body.on-pad .top .tagline { display: none; }
  body.on-pad .brand .logo { height: 2.75rem; }
  #nav { margin-left: 1rem; gap: 1.25rem; }
  body.on-pad .lp-title { font-size: 2.5rem; }
  body.on-pad .lp { grid-template-columns: minmax(0, 1fr); }
  body.on-pad .rail-card { position: static; min-height: 0; min-width: 0; }
  body.on-pad .rail-mark { display: none; }
  body.on-pad .lp-head .lp-titles { min-width: 0; }
}
/* A phone: one row in the bar (logo, the nav, the avatar), the photo narrower, two cards across. */
@media (max-width: 760px) {
  body.on-pad .top { flex-wrap: nowrap; gap: 0 0.75rem; }
  body.on-pad .top #nav { order: 0; flex-basis: auto; flex: 0 1 auto; margin-left: auto; gap: 0.9rem; }
  body.on-pad .top #nav a { font-size: 0.92rem; }
  body.on-pad .top #who { order: 0; margin-left: 0.25rem; }
  body.on-pad .top #who::after { display: none; }
  body.on-pad .avatar { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; }
  body.on-pad .brand .logo { height: 2.4rem; margin-left: -0.3rem; }
  body.on-pad .top::before { width: 100%; background-position: 0 72%; }
  body.on-pad .top::after { right: 2%; width: 12rem; background-size: 19.3rem auto; background-position: -5.9rem 0; }
  body.on-pad .lp-tools { margin: 0.5rem 0 0.25rem; justify-content: flex-start; }
  body.on-pad .layout-icons .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.on-pad .section-head .desc { display: none; }
}

/* ==== The admin console in the launch pad's look (Rich, 2026-10-14: "you didnt change, the admin panel?"): the same
   banner and title block, the menu as a rail card with icons, white cards and tables, royal buttons. ==== */
body.on-admin .admin { grid-template-columns: 18.75rem minmax(0, 1fr); gap: 1.85rem; margin-top: 1.4rem; }
body.on-admin .admin-nav { top: 1rem; gap: 0.2rem; padding: 1rem; border: none; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(19, 35, 90, 0.06), 0 8px 28px rgba(19, 35, 90, 0.06); }
body.on-admin .admin-nav-head { padding: 0.95rem 0.85rem 0.35rem; color: #6c7a96; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; }
body.on-admin .admin-nav-head:first-child { padding-top: 0.25rem; }
body.on-admin .admin-nav a { display: flex; align-items: center; gap: 0.85rem; padding: 0.62rem 0.85rem; border: none; border-radius: 8px; color: #1f2937; font-size: 0.98rem; }
body.on-admin .admin-nav a .ico { width: 1.35rem; height: 1.35rem; color: #3653a8; stroke-width: 1.6; }
body.on-admin .admin-nav a:hover { background: #f1f5fc; color: var(--royal); }
body.on-admin .admin-nav a.active { background: #eaf0fb; color: var(--royal); font-weight: 600; box-shadow: inset 3px 0 0 var(--royal); border-left: none; }
body.on-admin .admin-nav a.active .ico { color: var(--royal); }

/* A page's own title inside the console: bold navy, no underline; its line under it in grey. */
body.on-admin .admin-main > .row:first-child { margin-bottom: 0.2rem; align-items: center; }
body.on-admin .page-title { padding: 0; border: none; font-size: 1.6rem; font-weight: 700; color: var(--ink-navy); }
body.on-admin .admin-main > .page-sub { margin: 0 0 1.2rem; color: #6b7280; font-size: 1.02rem; }

/* Cards, stats and tables: white, rounded, a soft shadow, as the launch pad's cards. */
body.on-admin .card { border: none; border-radius: 14px; padding: 1.35rem 1.5rem; box-shadow: 0 1px 3px rgba(19, 35, 90, 0.06), 0 6px 22px rgba(19, 35, 90, 0.05); }
body.on-admin .card h2 { margin-top: 0; font-size: 1.2rem; color: var(--ink-navy); }
body.on-admin .stats { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.9rem; }
body.on-admin .stat { border: none; border-radius: 12px; padding: 1.05rem 1.15rem; background: #fff; box-shadow: 0 1px 3px rgba(19, 35, 90, 0.06), 0 6px 22px rgba(19, 35, 90, 0.05); }
body.on-admin a.stat:hover { box-shadow: 0 4px 16px rgba(19, 35, 90, 0.12); }
body.on-admin .stat-value { font-size: 2rem; font-weight: 800; color: var(--royal); line-height: 1.1; }
body.on-admin .stat-label { margin-top: 0.2rem; color: #4b5563; font-size: 0.92rem; }
body.on-admin table { border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(19, 35, 90, 0.06), 0 6px 22px rgba(19, 35, 90, 0.05); }
body.on-admin .card table { box-shadow: none; border: 1px solid #e6ebf2; }
body.on-admin th { padding: 0.75rem 0.9rem; background: #f6f8fc; color: #4b5563; font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid #e3e8f0; }
body.on-admin td { padding: 0.8rem 0.9rem; border-bottom: 1px solid #edf1f6; font-size: 0.95rem; }
body.on-admin tbody tr:last-child td, body.on-admin tr:last-child td { border-bottom: none; }
body.on-admin tbody tr:hover td { background: #fafbfe; }
body.on-admin td a { color: var(--royal); font-weight: 600; }

/* Buttons and fields in the same royal blue. */
body.on-admin button, body.on-admin .button { border-radius: 8px; border-color: #d6dde8; padding: 0.5rem 1rem; }
body.on-admin button:hover, body.on-admin .button:hover { border-color: var(--royal); color: var(--royal); }
body.on-admin button.primary, body.on-admin .button.primary { background: var(--royal); border-color: var(--royal); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(19, 35, 90, 0.15); }
body.on-admin button.primary:hover, body.on-admin .button.primary:hover { background: #2349ad; color: #fff; }
body.on-admin button.link { color: var(--royal); padding: 0; }
body.on-admin input, body.on-admin select, body.on-admin textarea { border-color: #d6dde8; border-radius: 8px; padding: 0.55rem 0.7rem; }
body.on-admin input:focus-visible, body.on-admin select:focus-visible, body.on-admin textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--royal) 30%, transparent); border-color: var(--royal); }
body.on-admin .badge { padding: 0.15rem 0.55rem; font-size: 0.75rem; }

@media (max-width: 900px) {
  body.on-admin .admin { grid-template-columns: minmax(0, 1fr); }
  body.on-admin .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  body.on-admin .admin-nav a { padding: 0.45rem 0.7rem; border: 1px solid #e3e8f0; }
}
body.on-admin td a, body.on-admin td button.link { text-decoration: none; }
body.on-admin td a:hover, body.on-admin td button.link:hover { text-decoration: underline; }
body.on-admin .avatar { border-radius: 50%; padding: 0; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
body.on-admin .avatar:hover { color: #fff; border-color: #fff; }

/* The app icon pack: the art carries its own colour and shape, so no coloured square or shadow behind it. */
.tile .icon.art, body.on-pad .layout-icons .tile .icon.art { background: none; box-shadow: none; border-radius: 0; }
.tile .icon.art img { object-fit: contain; }
.icon-preview { width: 3.5rem; height: 3.5rem; object-fit: contain; display: block; margin: 0.35rem 0; }

/* The patient portal (ID-16): the same page in its own colour, so nobody mistakes which door they are at. */
body[data-door="patient"] .top { background-color: #0b5f5a; background-image: linear-gradient(100deg, #0b5f5a 0%, #12807a 55%, #1a9a8f 100%); }
body[data-door="patient"] .lp-title { color: #0b5f5a; }

/* The demo pages (dev only): the same cards, with a plain flag so nobody mistakes them for real portals. */
main.demo { max-width: 52rem; margin: 2rem auto; padding: 0 1rem; }
.demo-flag { display: inline-block; background: #fdf2d6; color: #6b4a06; border-radius: 6px; padding: 0.2rem 0.6rem; font-size: 0.85rem; }
