:root {
  /* Bulbtek brand: đỏ #AF2024 · đen than chì · trắng / xám (theo bulbtek.vn) */
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e4e4e7;
  --text: #18181b;
  --muted: #6b6b73;
  --brand: #af2024;
  --brand-2: #8e1a1d;
  --brand-ink: #ffffff;
  --brand-soft: rgba(175, 32, 36, .08);
  --navy: #141414;
  --navy-2: #262626;
  --side-text: #d4d4d8;
  --side-muted: #8a8a92;
  --accent: #175d9b;
  --good: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --chip: #f1f1f2;
  --map-empty: #e2e2e5;
  --shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 1px 3px rgba(16, 16, 20, .06);
  --radius: 12px;
  --font-display: "Afacad", "Be Vietnam Pro", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10; --surface: #18181b; --surface-2: #131316; --border: #2c2c31; --text: #ececee; --muted: #a1a1aa;
    --brand: #c8282d; --brand-2: #e0484c; --brand-soft: rgba(200, 40, 45, .14); --accent: #4d8fd1;
    --navy: #0a0a0b; --navy-2: #222226; --chip: #26262b; --map-empty: #2a2a30; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #18181b; --surface-2: #131316; --border: #2c2c31; --text: #ececee; --muted: #a1a1aa;
  --brand: #c8282d; --brand-2: #e0484c; --brand-soft: rgba(200, 40, 45, .14); --accent: #4d8fd1;
  --navy: #0a0a0b; --navy-2: #222226; --chip: #26262b; --map-empty: #2a2a30; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
::selection { background: rgba(175, 32, 36, .2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-family: var(--font-display); letter-spacing: .01em; }
.card-head h3 { font-size: 17px; }
button, input, select, textarea { font: inherit; color: inherit; }

.app { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: var(--navy); color: var(--side-text); border-top: 3px solid var(--brand); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border-bottom: 1px solid var(--navy-2); }
.brand-logo { display: block; max-width: 100%; max-height: 44px; object-fit: contain; object-position: left center; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; font-family: var(--font-display); }
.brand-name { font-weight: 700; letter-spacing: .12em; color: #fff; font-family: var(--font-display); font-size: 20px; }
.brand-sub { font-size: 11px; color: var(--side-muted); text-transform: uppercase; letter-spacing: .14em; }
.nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; border-left: 3px solid transparent; }
.nav a:hover { background: var(--navy-2); }
.nav a.active { background: var(--brand); color: var(--brand-ink); font-weight: 600; border-left-color: #fff; }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.sidebar-foot { margin-top: auto; padding: 14px 18px; font-size: 12px; color: var(--side-muted); border-top: 1px solid var(--navy-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-title { font-size: 22px; font-weight: 600; font-family: var(--font-display); }
.topbar-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.year-pick { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.btn-icon.menu-btn { display: none; }
.content { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }

.btn, .btn-icon { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; cursor: pointer; }
.btn { padding: 8px 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.btn:hover, .btn-icon:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; }
select, input[type=text], input[type=number], input[type=date], input[type=search], input[type=url], textarea {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 7px 10px; min-width: 0;
}
textarea { width: 100%; min-height: 80px; resize: vertical; }

.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-family: var(--font-display); line-height: 1.1; }
.kpi .meta { font-size: 12.5px; color: var(--muted); }
.kpi .bar { height: 6px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.kpi .bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.up { color: var(--good); font-weight: 600; }
.down { color: var(--bad); font-weight: 600; }

.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 380px; }
.chart-box.short { height: 220px; }

.map { height: 600px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map-legend { background: var(--surface); color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-legend .scale { display: flex; height: 10px; width: 170px; border-radius: 3px; overflow: hidden; margin: 4px 0; }
.map-legend .scale i { flex: 1; }
.map-legend .ends { display: flex; justify-content: space-between; color: var(--muted); }
.leaflet-container { font-family: inherit; }
.leaflet-tooltip.prov-tip { font-size: 12px; }
.map-legend .ends span:nth-child(2) { flex: 1; text-align: center; }

/* Map motion: province fade-in, pulsing good (green) / weak (red) provinces */
.map-motion path.prov { animation: provIn .6s ease-out both; }
.map-motion path.prov-good { animation: provIn .6s ease-out both, pulseGood 2.8s ease-in-out infinite; }
.map-motion path.prov-bad { animation: provIn .6s ease-out both, pulseBad 2.8s ease-in-out infinite; }
@keyframes provIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseGood { 0%, 100% { fill-opacity: .92; filter: none; } 50% { fill-opacity: .62; filter: drop-shadow(0 0 5px rgba(34, 197, 94, .95)); } }
@keyframes pulseBad { 0%, 100% { fill-opacity: .92; filter: none; } 50% { fill-opacity: .62; filter: drop-shadow(0 0 5px rgba(239, 68, 68, .95)); } }
.pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.pulse-dot.good { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: dotPulse 2s infinite; }
.pulse-dot.bad { background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: dotPulse 2s infinite .5s; }
@keyframes dotPulse { 70% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* Month strip (dealer activation) */
.month-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.ms { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .15s, border-color .15s; }
.ms:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); }
.ms:disabled { opacity: .45; cursor: default; }
.ms.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ms-bar { width: 60%; height: 34px; display: flex; align-items: flex-end; background: var(--chip); border-radius: 4px; overflow: hidden; }
.ms-bar i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; transition: height .4s; }
.ms-n { font-weight: 700; font-size: 15px; }
.ms-l { font-size: 11px; color: var(--muted); }
.ms.on .ms-l { color: #cbd5e1; }
@media (max-width: 760px) {
  .month-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .map-legend { font-size: 11px; padding: 6px 8px; }
  .map-legend .muted, .map-legend > div:not(.scale):not(.ends) { display: none; }
  .map-legend .scale { width: 110px; }
}
path.prov-sel { stroke: var(--text); stroke-width: 3; }
.hb.hb-sel { outline: 3px solid var(--text); outline-offset: 2px; }

/* Heat bubbles */
.hb-wrap { background: none; border: 0; }
.hb { position: relative; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), var(--c) 62%); box-shadow: 0 0 calc(var(--s) / 2.2) var(--c); opacity: .9; }
.hb b { position: relative; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.hb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.hb:hover { opacity: 1; }
.map-motion .hb { animation: breathe 3.4s ease-in-out infinite, bubbleIn .7s ease-out both; }
.map-motion .hb i { animation: ripple 2.6s ease-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes bubbleIn { from { opacity: 0; } to { opacity: .9; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-motion path.prov, .map-motion .hb, .map-motion .hb i, .pulse-dot { animation: none !important; } }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--navy); color: #fff; }

.tbl-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--border); border-radius: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12px; z-index: 1; cursor: default; }
.tbl th.sortable { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl td.wrap { white-space: normal; min-width: 240px; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); position: sticky; bottom: 0; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 12px; white-space: nowrap; }
.chip.good { background: rgba(22, 163, 74, .14); color: var(--good); }
.chip.bad { background: rgba(220, 38, 38, .12); color: var(--bad); }
.chip.warn { background: rgba(217, 119, 6, .14); color: var(--warn); }
.chip.info { background: rgba(37, 99, 235, .12); color: var(--accent); }
.chip.care-good { background: rgba(22, 163, 74, .14); color: var(--good); font-weight: 600; }
.chip.care-warn { background: rgba(217, 119, 6, .15); color: var(--warn); font-weight: 600; }
.chip.care-bad { background: rgba(220, 38, 38, .12); color: var(--bad); font-weight: 600; }
.chip.care-info { background: rgba(23, 93, 155, .13); color: var(--accent); font-weight: 600; }
.chip.care-muted { background: var(--chip); color: var(--muted); font-weight: 600; text-decoration: line-through; }
.care-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.care-btn { border: 1.5px solid var(--c); color: var(--c); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.care-btn:hover { transform: translateY(-1px); }
.care-btn.on { background: var(--c); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--c) 40%, transparent); }
.care-sel { font-size: 12px; padding: 4px 6px; border-radius: 999px; font-weight: 600; max-width: 160px; }
.care-sel.care-good { background: rgba(22, 163, 74, .14); color: var(--good); border-color: var(--good); }
.care-sel.care-warn { background: rgba(217, 119, 6, .15); color: var(--warn); border-color: var(--warn); }
.care-sel.care-bad { background: rgba(220, 38, 38, .12); color: var(--bad); border-color: var(--bad); }
.care-sel.care-info { background: rgba(23, 93, 155, .13); color: var(--accent); border-color: var(--accent); }
.care-sel.care-muted { background: var(--chip); color: var(--muted); }
.care-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 14px; background: var(--surface-2); }
.care-hist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--muted); max-height: 110px; overflow: auto; }
.care-hist li { padding: 3px 0; border-top: 1px dashed var(--border); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); border: 1px solid rgba(175, 32, 36, .35); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.form label.full, .form .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.note-col h4 { font-size: 13px; margin-bottom: 6px; }
.note-col .txt { white-space: pre-wrap; font-size: 13px; line-height: 1.55; max-height: 260px; overflow: auto; color: var(--text); background: var(--surface-2); border-radius: 8px; padding: 10px; border: 1px solid var(--border); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-height: 120px; }
.kcol h4 { font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.kcard .meta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.steps li:last-child { border-bottom: 0; }

.drop { border: 2px dashed var(--border); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }

.modal { position: fixed; inset: 0; background: rgba(5, 10, 20, .55); display: grid; place-items: center; z-index: 2000; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 14px; width: min(760px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--border); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-body { padding: 18px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 3000; max-width: 360px; }

@media (max-width: 1100px) {
  .g-21, .g-12, .g-32, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .notes-grid, .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: -260px; z-index: 1500; transition: left .2s; }
  .sidebar.open { left: 0; }
  .btn-icon.menu-btn { display: inline-grid; }
  .content { padding: 14px 16px 30px; }
  .topbar { padding: 10px 16px; }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
  .notes-grid, .kanban { grid-template-columns: minmax(0, 1fr); }
  .map { height: 420px; }
  .kpi .value { font-size: 20px; }
}

/* Media & brand */
.logo-stage { display: grid; place-items: center; border-radius: 10px; padding: 22px; min-height: 96px; border: 1px solid var(--border); }
.logo-stage.dark { background: #141414; }
.logo-stage.light { background: #ffffff; }
.logo-stage img { max-width: 100%; max-height: 60px; object-fit: contain; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.media-item.is-logo { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.media-thumb { height: 130px; display: grid; place-items: center; padding: 8px;
  background: repeating-conic-gradient(var(--chip) 0 25%, var(--surface) 0 50%) 50% / 16px 16px; }
.media-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.media-meta { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; gap: 6px; padding: 6px 10px 10px; flex-wrap: wrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 4px; }
.swatch i { display: block; height: 64px; border-radius: 10px; border: 1px solid var(--border); }
.swatch code { font-size: 12px; color: var(--muted); }

/* Sign-in gate & user */
#authGate { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(175, 32, 36, .35), transparent 60%), #0e0e10; }
.auth-card { width: min(420px, 100%); background: #18181b; color: #ececee; border: 1px solid #2c2c31; border-top: 3px solid #af2024;
  border-radius: 16px; padding: 30px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-card h1 { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.auth-card .muted { color: #a1a1aa; }
.auth-logo img { max-width: 260px; max-height: 50px; }
.auth-btn { min-height: 44px; margin-top: 6px; }
.auth-error { background: rgba(220, 38, 38, .14); border: 1px solid rgba(220, 38, 38, .45); color: #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: left; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border: 1px solid var(--border); border-radius: 999px; }
.user-chip img, .user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-chip .avatar { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; font-size: 12px; max-width: 160px; }
.user-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--muted); font-size: 11px; }
.user-meta .role-admin { color: var(--brand); font-weight: 600; }
.user-chip .btn-icon { width: 28px; height: 28px; border: 0; }
@media (max-width: 760px) { .user-meta { display: none; } }
/* Read-only accounts: hide editing controls (saving is also blocked in Store.save) */
.role-viewer #dAdd, .role-viewer #dAuto, .role-viewer #hrSync, .role-viewer [data-edit], .role-viewer #editNotes, .role-viewer #ddEdit, .role-viewer .care-btns,
.role-viewer #careSave, .role-viewer #careNote, .role-viewer #dbAdd, .role-viewer #mkAdd, .role-viewer #hrAdd, .role-viewer #recAdd,
.role-viewer #tAdd, .role-viewer #pAdd, .role-viewer #vAdd, .role-viewer [data-pe], .role-viewer [data-v], .role-viewer #mkClear,
.role-viewer .steps input, .role-viewer [data-del] { display: none !important; }
.nav a[hidden] { display: none; }

.form-section { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--brand); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-top: 6px; }
.role-viewer [data-empedit], .role-viewer [data-empdel] { display: none !important; }

/* email + password sign-in */
.auth-divider { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 2px; color: #8a8a92; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #2c2c31; }
.auth-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.auth-card .auth-form input { width: 100%; background: #0e0e10; color: #ececee; border: 1px solid #34343a; border-radius: 10px; padding: 11px 12px; font-size: 14px; }
.auth-card .auth-form input:focus { outline: none; border-color: #af2024; box-shadow: 0 0 0 3px rgba(175, 32, 36, .25); }
.modal .auth-form input { width: 100%; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; opacity: .7; font-size: 15px; }
.auth-submit { justify-content: center; padding: 11px; font-size: 15px; }
.auth-link { background: none; border: 0; color: #a1a1aa; font-size: 12px; cursor: pointer; text-decoration: underline; }
.auth-card .auth-link:hover { color: #ececee; }

.temp-pw { display: grid; gap: 10px; background: var(--surface-2); border: 1px dashed var(--brand); border-radius: 10px; padding: 14px; }
.temp-pw > div { display: flex; flex-direction: column; gap: 2px; }
.temp-pw code { font-size: 22px; letter-spacing: .08em; font-weight: 700; color: var(--brand); user-select: all; }

.pw-options { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.form label.pw-opt { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; cursor: pointer; }
.pw-set { padding: 4px 0 6px 24px; }
.pw-set .pw-wrap input { width: 100%; }
