/* ============================================================
   CareOS — UI Prototype Stylesheet
   Placeholder branding: teal + slate healthcare palette
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand: #087F78;
  --brand-dark: #076B65;
  --brand-light: #E8F6F3;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --bg: #F7F9FC;
  --card: #ffffff;
  --line: #D0D5DD;
  --good: #067647;
  --good-bg: #ECFDF3;
  --warn: #B54708;
  --warn-bg: #FFFAEB;
  --bad: #B42318;
  --bad-bg: #FEF3F2;
  --good-light: #D4F6EC;
  --bad-light: #FBE3E1;
  --info: #2F6FED;
  --info-bg: #EEF4FF;
  --purple: #6941C6;
  --purple-bg: #F4F3FF;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- Login ---------- */
.login-screen {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #12233F 0%, #1B3559 60%, #087F78 130%);
}
.login-left {
  flex: none; width: 100%; color: #fff; padding: 32px 24px; display: none;
  flex-direction: column; align-items: center;
}
.login-left > * { width: 100%; max-width: 480px; }
.login-left h2 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.login-left .tagline { opacity: .85; margin-top: 10px; line-height: 1.6; font-size: 13px; }
.login-features { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.login-features li { display: flex; gap: 10px; align-items: center; opacity: .92; font-size: 13px; }
.login-features .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.login-right {
  flex: 1; background: var(--bg); display: flex;
  flex-direction: column; align-items: center; padding: 28px 24px; overflow-y: auto;
}
.login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 24px; flex-shrink: 0; }
.login-card h1 { font-size: 20px; margin: 12px 0 4px; }
.login-card p.sub { color: var(--ink-3); margin-bottom: 18px; font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.btn { border: none; border-radius: 8px; padding: 10px 16px; font-weight: 600; font-size: 14px; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 7px; }
.biometric { margin-top: 14px; text-align: center; }
.biometric button { background: none; border: 1px dashed var(--line); border-radius: 10px; width: 100%; padding: 10px; color: var(--ink-2); }
.demo-note { margin-top: 18px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- Role selector ---------- */
.role-grid { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.role-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: .15s; text-decoration: none !important; }
.role-card:hover { border-color: var(--brand); background: var(--brand-light); }
.role-card .role-ico { font-size: 22px; }
.role-card .role-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.role-card .role-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.3px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 800;
}
.logo.light .mark { background: rgba(255,255,255,.18); }
.logo img.mark, .logo .logo-img { background: none !important; object-fit: cover; display: block; flex-shrink: 0; }
.logo .word { font-size: 17px; }
.logo .word span { color: var(--brand); }
.logo.light .word, .logo.light .word span { color: #fff; }

/* ---------- App shell ---------- */
.app { display: none; height: 100vh; }
.app.active { display: flex; }
.sidebar {
  width: 232px; background: #10222b; color: #b7c6d1; display: flex; flex-direction: column;
  flex-shrink: 0; overflow-y: auto;
}
.sidebar .logo { padding: 18px 18px 12px; }
.side-section { padding: 12px 12px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #5f7482; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin: 1px 8px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; border: none; background: none;
  color: #b7c6d1; width: calc(100% - 16px); text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav-item .ico { width: 20px; text-align: center; }
.nav-item .count { margin-left: auto; background: rgba(255,255,255,.14); border-radius: 20px; font-size: 11px; padding: 1px 7px; }
.sidebar .user {
  margin-top: auto; padding: 14px; display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar .user .name { color: #fff; font-size: 13px; font-weight: 600; }
.sidebar .user .role { font-size: 11.5px; color: #7d92a0; }
.sidebar .user button { margin-left: auto; background: none; border: none; color: #7d92a0; font-size: 15px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
}
.topbar h2 { font-size: 17px; }
.topbar .crumb { color: var(--ink-3); font-size: 12.5px; }
.search { margin-left: auto; position: relative; }
.search input { padding: 8px 12px 8px 32px; border: 1px solid var(--line); border-radius: 20px; width: 240px; background: var(--bg); }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 6px; color: var(--ink-3); font-size: 16px; }
.icon-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; position: relative; font-size: 15px; }
.icon-btn .badge { position: absolute; top: -3px; right: -3px; background: var(--bad); color: #fff; font-size: 9.5px; border-radius: 10px; padding: 1px 5px; font-weight: 700; }
.content { flex: 1; overflow-y: auto; padding: 24px; }

/* ---------- Generic components ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.page-head h3 { font-size: 19px; }
.page-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h4 { font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.card h4 .link { color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.kpi { display: flex; gap: 12px; align-items: center; }
.kpi .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.kpi .num { font-size: 22px; font-weight: 800; }
.kpi .lbl { font-size: 12px; color: var(--ink-3); }
.kpi .delta { font-size: 11px; font-weight: 600; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.purple { background: var(--purple-bg); color: var(--purple); }
.pill.neutral { background: #eef1f5; color: var(--ink-2); }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #f8fafc; }

.person { display: flex; gap: 10px; align-items: center; }
.person .nm { font-weight: 600; font-size: 13px; }
.person .meta { font-size: 11.5px; color: var(--ink-3); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 14px; border: none; background: none; font-size: 13.5px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brand); border-color: var(--brand); font-weight: 700; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--ink-2); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.empty { text-align: center; color: var(--ink-3); padding: 30px; font-size: 13px; }

.progress { height: 7px; border-radius: 6px; background: #edf1f5; overflow: hidden; }
.progress > div { height: 100%; border-radius: 6px; background: var(--brand); }

/* ---------- Dashboard ---------- */
.alert-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.alert-item:last-child { border-bottom: none; }
.alert-item .ico { font-size: 16px; margin-top: 1px; }
.alert-item .t { font-size: 13px; font-weight: 600; }
.alert-item .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.shift-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shift-row:last-child { border-bottom: none; }
.shift-time { font-weight: 700; font-size: 12.5px; width: 84px; color: var(--ink-2); }
.shift-row .who { flex: 1; }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.client-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; cursor: pointer; transition: .15s; border: 1px solid transparent; }
.client-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.client-card .top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.client-card .nm { font-weight: 700; font-size: 14.5px; }
.client-card .meta { font-size: 12px; color: var(--ink-3); }
.client-card .flags { display: flex; flex-wrap: wrap; gap: 6px; }

.profile-head { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-head .avatar { width: 62px; height: 62px; font-size: 21px; }
.profile-head h3 { font-size: 19px; }
.profile-head .meta { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.profile-head .stats { margin-left: auto; display: flex; gap: 26px; }
.profile-head .stats .num { font-weight: 800; font-size: 17px; }
.profile-head .stats .lbl { font-size: 11.5px; color: var(--ink-3); }

.cp-section { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.cp-section .head { padding: 12px 16px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cp-section .head .t { font-weight: 700; font-size: 13.5px; }
.cp-section .body { padding: 14px 16px; font-size: 13px; color: var(--ink-2); line-height: 1.65; display: none; }
.cp-section.open .body { display: block; }

.goal { padding: 12px 0; border-bottom: 1px solid var(--line); }
.goal:last-child { border-bottom: none; }
.goal .t { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; display: flex; justify-content: space-between; }

/* ---------- Rota ---------- */
.rota-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.rota { display: grid; grid-template-columns: 150px repeat(7, minmax(120px, 1fr)); min-width: 900px; }
.rota .cell { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; min-height: 64px; }
.rota .rhead { background: #f8fafc; font-weight: 700; font-size: 12px; text-align: center; padding: 10px 6px; min-height: 0; }
.rota .rhead .d { color: var(--ink-3); font-weight: 500; font-size: 11px; }
.rota .staff-cell { display: flex; gap: 8px; align-items: center; background: #f8fafc; }
.shift { border-radius: 7px; padding: 5px 8px; font-size: 11px; font-weight: 600; margin-bottom: 4px; cursor: pointer; }
.shift.am { background: var(--info-bg); color: var(--info); }
.shift.pm { background: var(--purple-bg); color: var(--purple); }
.shift.night { background: #e5e8f5; color: #4a56a3; }
.shift.off { background: #f0f2f5; color: var(--ink-3); font-weight: 500; }

/* ---------- eMAR ---------- */
.med-status { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1.5px dashed var(--line); background: #fff; color: var(--ink-3); }
.med-status.given { background: var(--good-bg); color: var(--good); border: none; }
.med-status.refused { background: var(--bad-bg); color: var(--bad); border: none; }
.med-status.prn { background: var(--info-bg); color: var(--info); border: none; }
.med-status.due { border-color: var(--warn); color: var(--warn); }

/* ---------- Compliance ---------- */
.cqc-card { border-left: 4px solid var(--brand); }
.cqc-score { font-size: 26px; font-weight: 800; }
.audit-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: none; }

/* ---------- Todos / handover ---------- */
.todo { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.todo:last-child { border-bottom: none; }
.todo input[type=checkbox] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); }
.todo.done .t { text-decoration: line-through; color: var(--ink-3); }
.todo .t { font-size: 13.5px; font-weight: 600; }
.todo .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Log feed ---------- */
.log-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: none; }
.log-item .body { flex: 1; }
.log-item .t { font-size: 13px; }
.log-item .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------- Phone preview ---------- */
.phone-wrap { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.phone {
  width: 300px; border: 10px solid #16232e; border-radius: 34px; overflow: hidden;
  background: var(--bg); flex-shrink: 0; box-shadow: var(--shadow);
}
.phone .p-status { background: #16232e; color: #fff; font-size: 10px; display: flex; justify-content: space-between; padding: 4px 14px; }
.phone .p-head { background: var(--brand); color: #fff; padding: 14px; }
.phone .p-head .hi { font-size: 15px; font-weight: 700; }
.phone .p-head .sub { font-size: 11px; opacity: .85; }
.phone .p-body { padding: 12px; max-height: 430px; overflow-y: auto; }
.p-shift { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.p-shift .tm { font-size: 11px; font-weight: 700; color: var(--brand); }
.p-shift .nm { font-weight: 700; font-size: 13.5px; margin: 3px 0; }
.p-shift .tasks { font-size: 11.5px; color: var(--ink-3); }
.p-shift .btn { margin-top: 8px; }
.p-nav { display: flex; background: #fff; border-top: 1px solid var(--line); }
.p-nav div { flex: 1; text-align: center; padding: 8px 4px 10px; font-size: 9.5px; color: var(--ink-3); }
.p-nav div.on { color: var(--brand); font-weight: 700; }
.p-nav .i { font-size: 16px; display: block; margin-bottom: 2px; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(16, 30, 40, .45); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 24px; }
.modal h3 { font-size: 17px; margin-bottom: 4px; }
.modal .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px;
  z-index: 300; transition: .25s; opacity: 0; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Charts (pure CSS) ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .bar > div { width: 100%; max-width: 38px; border-radius: 6px 6px 0 0; background: var(--brand); opacity: .85; }
.bars .bar span { font-size: 10.5px; color: var(--ink-3); }

.donut { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.donut .hole { width: 82px; height: 82px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 18px; }

.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 7px; }

/* ---------- Responsive ---------- */
@media (min-width: 980px) {
  .login-screen { flex-direction: row; }
  .login-left {
    display: flex; flex: 1; height: 100vh; overflow: hidden;
    padding: 60px 40px 60px 60px; justify-content: flex-end;
  }
  .login-left > * { max-width: 440px; }
  .login-left h2 { font-size: 30px; }
  .login-left .tagline { font-size: 14px; }
  .login-features { font-size: 14px; }
  .login-right {
    flex: 1; height: 100vh; overflow-y: auto;
    padding: 60px 60px 60px 40px; justify-content: flex-start;
  }
  .login-card { max-width: 400px; }
}
@media (min-width: 1200px) {
  .login-left { padding: 60px 60px 60px 80px; }
  .login-left > * { max-width: 460px; }
  .login-right { padding: 60px 80px 60px 60px; }
  .login-card { max-width: 420px; }
}
@media (max-width: 900px) {
  .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .sidebar .logo .word, .side-section, .nav-item span.lbl, .nav-item .count, .sidebar .user div, .sidebar .user button { display: none; }
  .search input { width: 140px; }
}
/* ============================================================
   MODULE ACCENT LAYER (Verio design system)
   Navigation stays navy; active is teal. Module accents aid
   recognition without a per-module rebrand or decorative rainbow.
   ============================================================ */
:root{
  --c-teal:#087F78;   --c-teal-bg:#E8F6F3;
  --c-coral:#B42318;  --c-coral-bg:#FEF3F2;
  --c-amber:#B54708;  --c-amber-bg:#FFFAEB;
  --c-purple:#6941C6; --c-purple-bg:#F4F3FF;
  --c-mint:#067647;   --c-mint-bg:#D4F6EC;
  --c-blue:#2F6FED;   --c-blue-bg:#EEF4FF;
}
/* Sidebar: navy rail */
.sidebar{ background:#12233F; }
.nav-item{ color:rgba(255,255,255,.82); }
.nav-item:hover{ background:rgba(255,255,255,.08); color:#fff; }
.nav-item.active{ background:#087F78; color:#fff; font-weight:600; }
.nav-item .ico{ color:rgba(255,255,255,.55); }
.nav-item.active .ico{ color:#fff; }
.side-section{ color:rgba(255,255,255,.45); }
.sidebar .user div, .sidebar .user button{ color:rgba(255,255,255,.6); }

/* Role picker cards — teal highlight, no rainbow */
.role-card{ border-left-width:4px; border-left-color:var(--c-teal); }
.role-card:hover{ border-color:var(--c-teal); background:var(--c-teal-bg); }
.role-card .role-ico{ color:var(--c-teal); }

/* KPI icon tiles — teal, restrained */
.kpi .ico{ background:var(--c-teal-bg); color:var(--c-teal); }
/* Chart bars — teal series (line + threshold bands per spec) */
.bars .bar > div{ background:var(--c-blue); }
.bars .bar:nth-child(1) > div{ background:var(--c-teal); }

@media (max-width: 560px) {
  .cols-4, .cols-3 { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .profile-head .stats { margin-left: 0; }
  .login-left { padding: 24px 20px; }
  .login-left h2 { font-size: 20px; }
  .login-card { padding: 22px 18px; }
  .login-card h1 { font-size: 18px; }
  .role-grid { gap: 8px; }
  .role-card { padding: 12px; }
  .role-card .role-ico { font-size: 18px; }
  .role-card .role-name { font-size: 14px; }
  .role-card .role-desc { font-size: 11.5px; }
}
