:root {
  --slate: #212b30; --slate-2: #2d3a40; --slate-3: #3b4a51;
  --orange: #e39a28; --orange-d: #c7811a; --orange-soft: #fdf3e3;
  --bg: #f3f4f5; --card: #fff; --text: #1b2327; --muted: #67757b; --line: #e4e7e9;
  --safety: #c8423b; --company: #35668f; --production: #1f7f69; --voice: #c7811a; --social: #7356c4;
  --good: #1f7f69;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }

/* ---- Login ---------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--slate); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #fff; position: relative; overflow: hidden; }
.login-art img { width: 260px; }
.login-art .big { font-size: 44px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.login-art .big b { color: var(--orange); font-weight: 700; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(227,154,40,.08); }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login-card h1 { margin: 0 0 6px; font-size: 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ms-logo { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.ms-logo i { width: 8px; height: 8px; display: block; }
.ms-logo i:nth-child(1) { background: #f25022; } .ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; } .ms-logo i:nth-child(4) { background: #ffb900; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }
.btn-ms, .btn-lg.btn-ms { background: #dc7706; color: #fff; gap: 14px; font-size: 16px; height: 54px; border-radius: 12px; }
.btn-ms:hover { background: #c46a05; }
.btn-ms.busy { opacity: .85; cursor: progress; }
.ms-tile { width: 30px; height: 30px; border-radius: 7px; background: #fff; display: grid; place-items: center; flex: none; }
.ms-tile .ms-logo { grid-template-columns: 7px 7px; }
.ms-tile .ms-logo i { width: 7px; height: 7px; }
.login-switch { justify-self: center; background: none; border: 0; padding: 6px 10px; color: #64748b; font: inherit; font-size: 14px; cursor: pointer; border-radius: 8px; }
.login-switch:hover { color: var(--ink, #1b2327); text-decoration: underline; }
.pw { position: relative; }
.pw .input { padding-right: 46px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: #8a969b; cursor: pointer; }
.pw-eye:hover, .pw-eye.on { color: var(--orange); }
.login-err { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: -6px; }

/* ---- Shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--slate); color: #c9d1d4; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.side-logo { padding: 0 8px 4px; }
.side-logo img { width: 150px; display: block; }
.side-logo span { display: block; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin: 10px 0 0 2px; }
.nav { display: grid; gap: 2px; margin-top: 18px; align-content: start; }
.side { overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side-foot { padding-top: 12px; }
.nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #7f8d93; padding: 12px 12px 3px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--slate-2); color: #fff; }
.nav a.on { background: var(--slate-3); color: #fff; }
.nav a.on .ic { color: var(--orange); }
.nav a.cta { background: var(--orange); color: #fff; margin-bottom: 10px; }
.nav a.cta:hover { background: var(--orange-d); }
.side-foot { margin-top: auto; display: grid; gap: 2px; }
.who { display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--slate-3); margin-top: 8px; }
.who b { display: block; color: #fff; font-size: 13px; }
.who small { font-size: 12px; }
.main { min-width: 0; padding: 26px 32px 40px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; min-height: 40px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 700; }
.head-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.head-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; overflow-x: auto; }
  .side-logo span, .side-foot, .nav a span, .nav-group { display: none; }
  .side { overflow-y: visible; }
  .side-logo img { width: 110px; }
  .nav { display: flex; margin: 0 0 0 16px; }
  .main { padding: 18px; }
}

/* ---- Common --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-dark { background: var(--slate); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--line); }
.btn-light:hover { border-color: #cdd3d6; }
.btn-lg { height: 48px; font-size: 15px; width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: #e9ecee; color: var(--text); }
.card { background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 700; }
.card-b { padding: 16px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .g2, .g3 { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-size: 28px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.accent { background: var(--slate); border-color: var(--slate); color: #fff; }
.kpi.accent small { color: #aab5ba; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 12px; outline: 0; font-size: 14px; }
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(227,154,40,.16); }
.help { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-sent { background: #e3f3ee; color: var(--good); }
.p-scheduled { background: #e7eef6; color: var(--company); }
.p-live { background: var(--orange); color: #fff; }
.p-muted { background: #eef0f1; color: var(--muted); }
.p-warn { background: #fbe9e7; color: var(--safety); }
.cat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.cat-Safety { color: var(--safety); } .cat-Company { color: var(--company); } .cat-Production { color: var(--production); }
.cat-Voice { color: var(--voice); } .cat-Social { color: var(--social); }
.ticon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.bg-Safety { background: var(--safety); } .bg-Company { background: var(--company); } .bg-Production { background: var(--production); }
.bg-Voice { background: var(--voice); } .bg-Social { background: var(--social); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; background-size: cover; background-position: center; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfb; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: #fafbfb; }
tr.live td { background: var(--orange-soft); }
.cell-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-title b { display: block; font-weight: 600; }
.cell-title small { display: block; color: var(--muted); font-size: 12px; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.minibar .track { flex: 1; height: 6px; background: #edf0f1; border-radius: 3px; overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.minibar span { width: 38px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search .ic { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.search .input { padding-left: 36px; }
.toolbar .select { width: auto; min-width: 150px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); }
.pager div { display: flex; gap: 6px; }

/* ---- Bars ------------------------------------------------------------------- */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; }
.bar-row > span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 10px; background: #edf0f1; border-radius: 5px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--orange); border-radius: 5px; }
.bar-row .track.slate i { background: var(--slate-3); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 16px; }

/* ---- Compose ---------------------------------------------------------------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1150px) { .compose { grid-template-columns: 1fr; } }
.compose .card-b { display: grid; gap: 16px; }
.seg { display: inline-flex; background: #eceff0; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: #44535a; }
.chip:hover { border-color: #c9d0d3; }
.chip.on { background: var(--slate); border-color: var(--slate); color: #fff; }
.chip.all.on { background: var(--orange); border-color: var(--orange); }
.chip.group { border-style: dashed; }
.chip.group.on { border-style: solid; }
.aud-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.aud-row:first-of-type { border-top: 0; }
.aud-row > label { font-weight: 700; font-size: 13px; padding-top: 7px; }
.aud-co { display: grid; gap: 8px; }
.aud-co-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aud-co-row .co { min-width: 150px; justify-content: flex-start; }
.aud-co-row .chip:not(.co) { height: 28px; font-size: 12px; }
@media (max-width: 700px) { .aud-row { grid-template-columns: 1fr; } }
.drop { border: 1.5px dashed #cdd3d6; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; background: #fafbfb; }
.drop:hover { border-color: var(--orange); }
.drop .ticon { background: var(--orange-soft); color: var(--orange-d); width: 44px; height: 44px; }
.drop b { display: block; }
.drop img { max-height: 120px; border-radius: 8px; }
.opt-row { display: flex; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row b { display: block; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: #cfd5d8; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(18px); }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.channel:hover { border-color: #cfd6d9; box-shadow: 0 2px 8px rgba(27,35,39,.06); }
.channel.locked { cursor: default; }
.channel.locked:hover { box-shadow: none; }
.ch-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #eef1f2; color: #67757b; transition: background .15s, color .15s; }
.ch-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-main b { font-size: 15px; color: var(--ink, #1b2327); }
.ch-main small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.channel.on { border-color: var(--orange); background: var(--orange-soft); }
.ch-app.on .ch-ic { background: var(--orange); color: #fff; }
.ch-whatsapp.on { border-color: #25d366; background: #eefbf3; }
.ch-whatsapp.on .ch-ic { background: #25d366; color: #fff; }
.ch-whatsapp .switch.on { background: #25d366; }
.channel .switch { pointer-events: none; flex: none; }
.ch-lock { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; font-weight: 700; color: var(--orange-d); background: #fff; border: 1px solid #f1d4a6; border-radius: 999px; padding: 4px 10px; }
@media (max-width: 1100px) { .channels { grid-template-columns: 1fr; } }
.side-panel { position: sticky; top: 20px; display: grid; gap: 16px; }
.reach { padding: 18px; background: var(--slate); color: #fff; border-color: var(--slate); }
.reach small { color: #aab5ba; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.reach b { display: block; font-size: 38px; font-weight: 700; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.reach p { margin: 0; color: #c9d1d4; font-size: 13px; line-height: 1.45; }
.reach .split { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--slate-3); font-size: 12px; color: #aab5ba; }
.reach .split b { font-size: 16px; margin: 0; color: #fff; }

/* Phone preview */
.preview { background: #1a2226; border-radius: 30px; padding: 10px; }
.preview-screen { background: #f2f3f4; border-radius: 22px; overflow: hidden; min-height: 300px; }
.pv-notif { margin: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.pv-notif img { width: 30px; height: 30px; border-radius: 7px; }
.pv-notif b { display: block; font-size: 12px; }
.pv-notif p { margin: 1px 0 0; font-size: 12px; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-card { margin: 4px 10px 12px; background: #fff; border-radius: 14px; overflow: hidden; }
.pv-card .art, .pv-card img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.pv-body { padding: 10px 12px 12px; }
.pv-body h4 { margin: 4px 0 4px; font-size: 14px; }
.pv-body p { margin: 0; font-size: 12px; color: #4a575d; line-height: 1.45; white-space: pre-wrap; }
.pv-opt { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 600; }
.pv-ack { margin-top: 10px; background: var(--orange); color: #fff; border-radius: 8px; text-align: center; padding: 8px; font-size: 12px; font-weight: 700; }
.pv-file { display: flex; gap: 8px; align-items: center; margin-top: 8px; background: var(--bg); border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 600; }

/* ---- Message detail -------------------------------------------------------- */
.msg-head { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.msg-head .ticon { width: 48px; height: 48px; border-radius: 12px; }
.msg-head h2 { margin: 4px 0 6px; font-size: 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.poll-res .bar-row { grid-template-columns: 170px 1fr 64px; }

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(20,28,32,.4); z-index: 50; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; z-index: 51; display: flex; flex-direction: column; animation: slidein .2s ease-out; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-size: 16px; }
.drawer-b { overflow-y: auto; padding: 18px; display: grid; gap: 18px; align-content: start; }
.profile-top { display: flex; gap: 14px; align-items: center; }
.profile-top h3 { margin: 0; font-size: 18px; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.hist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hist-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: 0; }
.hist-row b { display: block; font-size: 13px; }
.hist-row small { color: var(--muted); font-size: 12px; }
.hist-row .r { margin-left: auto; text-align: right; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--slate); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 99; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: fade .2s; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---- Approval flow, questions, recognition ----------------------------- */
.p-pending { background: #fdf0dc; color: var(--orange-d); }
a.kpi { display: block; transition: border-color .15s; }
a.kpi:hover { border-color: var(--orange); }
.nav a { position: relative; }
.nav .count { margin-left: auto; font-style: normal; min-width: 22px; height: 20px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; }
.seg.wide button { justify-content: center; }
.ap-card { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.ap-card .ticon { width: 44px; height: 44px; border-radius: 12px; }
.ap-main { flex: 1; min-width: 0; }
.ap-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ap-card h3 { margin: 6px 0 4px; font-size: 17px; }
.ap-body { margin: 0 0 10px; line-height: 1.5; max-width: 760px; }
.ap-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.duo { display: flex; flex: none; }
.duo .avatar { width: 40px; height: 40px; }
.duo .avatar + .avatar { margin-left: -12px; box-shadow: 0 0 0 2px #fff; background: var(--orange); }
.sub-h { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; background: #fbe9e7; color: #8a2f2a; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #b9c1c5; }
.timeline li.ok::before { background: var(--good); border-color: var(--good); }
.timeline li.warn::before { background: var(--safety); border-color: var(--safety); }
.timeline li span { color: var(--muted); font-size: 13px; }
.ap-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.waiting { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fdf0dc; color: var(--orange-d); font-weight: 600; }
.flow-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; }
.pv-rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.pv-rsvp span { text-align: center; padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.pv-rsvp span:first-child { background: var(--orange); color: #fff; border-color: var(--orange); }
.q-box { background: var(--bg); border-radius: 12px; padding: 14px; display: grid; gap: 8px; justify-items: start; }
.q-box p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.q-reply { border-left: 3px solid var(--good); background: #f1f8f6; border-radius: 10px; padding: 12px 14px; }
.q-reply b { display: flex; gap: 6px; align-items: center; color: var(--good); font-size: 13px; }
.q-reply p { margin: 6px 0 0; line-height: 1.5; }
.drawer-b .toggle-row .help { display: block; }

/* ---- Same colours as the app: pillars, topics, values ------------------- */
.tpill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.drop-media { width: 100%; margin-top: 10px; border-radius: 10px; }
video.drop-media { max-height: 260px; background: #000; }
.pv-card video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.pv-card audio { width: 100%; height: 36px; margin-top: 8px; }
.pv-file { min-width: 0; }
.pv-file .ellipsis { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-file .muted { flex: none; font-weight: 500; }

/* ---- Content blocks: one colour per kind -------------------------------- */
.k-image { --k: #7356c4; } .k-video { --k: #2f6fd0; } .k-audio { --k: #0f8b9c; }
.k-pdf { --k: #c8423b; } .k-poll { --k: #1f8a5a; } .k-event { --k: #c7811a; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.add-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px;
  color: var(--k); background: color-mix(in srgb, var(--k) 9%, #fff); border: 1.5px dashed color-mix(in srgb, var(--k) 45%, #fff); }
.add-btn:hover { border-style: solid; }
.add-btn[disabled] { opacity: .4; cursor: default; border-style: solid; }
.blocks { display: grid; gap: 12px; }
.blocks:empty { display: none; }
.block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; background: #fff; }
.block-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.block-h b { flex: 1; font-size: 14px; }
.block-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 13%, #fff); }
.block .drop { padding: 14px; }
.empty-drop { border-color: #cdd3d6; }
.drop img { max-height: 90px; border-radius: 8px; }

/* Preview with several pieces of content */
.pv-media { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.pv-media + .pv-media, .pv-media + .pv-pad, .pv-pad + .pv-media { margin-top: 4px; }
.pv-pad { padding: 8px 10px 0; }
.pv-pad audio { width: 100%; height: 36px; margin-top: 6px; }
.pv-body .pv-file + .pv-file { margin-top: 6px; }

/* Roles */
.seg.wide.three { grid-template-columns: 1fr 1fr 1fr; }
.seg.wide.three button { padding: 0 6px; font-size: 13px; }
.role-switch { display: grid; gap: 4px; margin: 10px 10px 0; }
.role-switch small { color: #8f9da3; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.role-switch select { height: 36px; border-radius: 9px; border: 1px solid var(--slate-3); background: var(--slate-2); color: #fff; padding: 0 10px; font-weight: 600; }
.who small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.perm th.c, table.perm td.c { text-align: center; width: 150px; }
table.perm .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e3f3ee; color: var(--good); }
table.perm .no { color: #b9c1c5; }
.role-select { height: 34px; min-width: 170px; }

/* ---- Standard list: search + pager -------------------------------------- */
.lv .toolbar { border-bottom: 1px solid var(--line); }
.search .input[type=search] { padding-right: 10px; }
.pager { flex-wrap: wrap; gap: 10px; font-size: 13px; }
.pg { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-per { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; color: var(--muted); font-size: 13px; }
.pg-per select { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0 6px; font-weight: 600; color: var(--text); }
.pg-btn { min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--text); display: inline-grid; place-items: center; }
.pg-btn:hover:not([disabled]):not(.on) { border-color: #c9d0d3; background: #fafbfb; }
.pg-btn.on { background: var(--slate); border-color: var(--slate); color: #fff; }
.pg-btn[disabled] { opacity: .4; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); }
.lv-cards .ap-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.lv-cards .ap-card:last-child { border-bottom: 0; }

/* ---- One upload area for every file kind -------------------------------- */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; padding: 24px; border: 2px dashed #d6dbde; border-radius: 14px; background: #fcfcfd; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--orange); background: var(--orange-soft); }
.dropzone b { font-size: 16px; margin-top: 10px; }
.dropzone span:not(.dz-ic) { color: var(--muted); }
.dz-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-d); display: grid; place-items: center; }
.dropzone.over .dz-ic { background: var(--orange); color: #fff; }
.files { display: grid; gap: 8px; }
.files:empty { display: none; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; border-left: 4px solid var(--k); }
.file-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #eee; }
.file-ic { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); }
.file-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.file-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-main small { color: var(--muted); font-size: 12px; }
.file-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--k); background: color-mix(in srgb, var(--k) 10%, #fff); padding: 3px 8px; border-radius: 6px; }

/* ---- Content type: chosen first, then only its section shows ----------- */
.k-text { --k: #3b4a51; } .k-media { --k: #c7811a; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr 1fr; } }
.format { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; font-size: 14px; text-align: left; transition: border-color .15s, background .15s; }
.format:hover { border-color: color-mix(in srgb, var(--k) 45%, #fff); }
.format-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); }
.format.on { border-color: var(--k); background: color-mix(in srgb, var(--k) 7%, #fff); color: var(--k); }
.format.on .format-ic { background: var(--k); color: #fff; }
.media-section { display: grid; gap: 12px; }

/* ---- Questions: reply as a conversation --------------------------------- */
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.convo { display: grid; gap: 10px; }
.bubble { border-radius: 14px; padding: 12px 14px; max-width: 92%; }
.bubble p { margin: 6px 0 0; line-height: 1.5; font-size: 14px; }
.bubble-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bubble-h small { color: var(--muted); font-size: 12px; }
.bubble.from { background: var(--bg); justify-self: start; border-top-left-radius: 4px; }
.bubble.from p { font-weight: 600; font-size: 15px; }
.bubble.to { background: #e9f5f1; justify-self: end; border-top-right-radius: 4px; }
.bubble.to b { display: flex; align-items: center; gap: 6px; color: var(--good); font-size: 13px; }
.delivered { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--good); justify-self: end; }
.no-access { display: grid; justify-items: center; gap: 6px; padding: 60px 30px; }
.no-access .ic { color: var(--muted); }
.no-access h2 { margin: 6px 0 0; font-size: 18px; color: var(--text); }
.no-access p { margin: 0; }

/* ---- Analytics drill-down --------------------------------------------- */
a.bar-row.link { color: inherit; border-radius: 8px; margin: -4px -8px; padding: 4px 8px; transition: background .12s; }
a.bar-row.link:hover { background: #f4f6f7; }
a.bar-row.link:hover > span:first-child { color: var(--orange-d); text-decoration: underline; }
.card-h .ic.muted { color: #b9c1c5; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.hours a { flex: 1; background: #c9d0d3; border-radius: 3px 3px 0 0; transition: background .12s; }
.hours a.peak { background: var(--orange); }
.hours a:hover { background: var(--slate-3); }
.crumbs { display: flex; align-items: center; gap: 6px; margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--orange-d); font-weight: 600; }
.crumbs b { color: var(--text); }

/* ---- User Management / Role Permissions / Import ------------------------ */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .icon-btn { display: inline-grid; }
tr.off td { opacity: .55; }
tr.off td.row-actions { opacity: 1; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .role-cards { grid-template-columns: 1fr; } }
.role-card { padding: 18px; display: grid; gap: 10px; }
.role-top { display: flex; align-items: center; gap: 12px; }
.role-top b { display: block; font-size: 16px; }
.role-top small { color: var(--muted); }
.role-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.role-count { font-size: 12px; font-weight: 700; color: var(--orange-d); }
.switch.locked { opacity: .45; cursor: default; display: inline-block; }
table.perm td.c .switch { display: inline-block; vertical-align: middle; }
.steps-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.steps-bar i { flex: 0 0 40px; height: 2px; background: var(--line); }
.step { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e6e9eb; font-size: 12px; font-weight: 700; color: var(--muted); }
.step.on { color: var(--text); }
.step.on span { background: var(--orange); color: #fff; }
.step.done span { background: var(--good); color: #fff; }
tr.bad td { background: #fffaf9; }
.row-err { margin-top: 4px; font-size: 12px; color: var(--safety); max-width: 360px; }
.imp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.imp-actions.center { justify-content: center; }
.done-card { padding: 50px 30px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: #e3f3ee; color: var(--good); display: grid; place-items: center; }
.done-card h2 { margin: 8px 0 0; font-size: 22px; }
.done-card p { margin: 0; max-width: 520px; color: var(--muted); line-height: 1.55; }
.card-b .note { margin-top: 14px; }

/* ---- Review screen (not yet published) ---------------------------------- */
.decision { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 16px; border-radius: 14px; border: 1px solid; box-shadow: 0 6px 18px rgba(16,24,28,.06); background: #fff; }
.decision.wait { border-color: #f1d3a3; background: #fffaf2; }
.decision.warn { border-color: #f2c4bf; background: #fff6f5; }
.decision.ok { border-color: #bfe3d6; background: #f3fbf8; }
.decision-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--orange); }
.decision.warn .decision-ic { background: var(--safety); }
.decision.ok .decision-ic { background: var(--good); }
.decision-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.decision-main b { font-size: 16px; }
.decision-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-btns { display: flex; gap: 8px; flex: none; }
.qnav { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; font-weight: 600; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); }
.qnav span { margin-right: 6px; white-space: nowrap; }
.qnav .off { opacity: .3; pointer-events: none; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1150px) { .review { grid-template-columns: 1fr; } }
.review-sheet { padding: 0; }
.rv { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.rv:last-child { border-bottom: 0; }
.rv h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rv-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.rv-body { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #2f3b40; white-space: pre-line; max-width: 760px; }
.rv-label { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rv-files { display: grid; gap: 8px; }
.rv-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; border-left: 4px solid var(--k); }
.rv-media { width: 100%; max-height: 300px; border-radius: 10px; background: #000; margin-top: -2px; }
.rv-audio { width: 100%; height: 40px; }
.rv-poll { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.rv-event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.rv-event span { display: inline-flex; align-items: center; gap: 6px; }
.rv-reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rv-reach div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.rv-reach b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.rv-reach div:first-child { background: var(--slate); color: #fff; }
.rv-reach small { color: var(--muted); font-size: 12px; font-weight: 600; }
.rv-reach div:first-child small { color: #aab5ba; }
.rv-row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f2f3; font-size: 14px; }
.rv-row:first-of-type { border-top: 0; }
.rv-row > span { color: var(--muted); }
.rv-row b { font-weight: 600; }
.rv-row b.yes { display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.rv-bars { margin-top: 14px; }
.rv .note { margin: 0 0 10px; }
.review-side { position: sticky; top: 90px; display: grid; gap: 10px; }
.side-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---- Company Information ------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--orange); }
.info-form { display: grid; gap: 16px; max-width: 760px; }
.site-list { display: grid; gap: 8px; }
.site-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.photo-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.dir-row { padding: 12px 0; border-top: 1px solid var(--line); }
.dir-row:first-child { border-top: 0; padding-top: 0; }
.dir-row .help { display: block; }

/* ---- Company Information: companies and sites ---------------------------- */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.co-card { display: grid; gap: 14px; padding: 18px; align-content: start; }
.co-top { display: flex; align-items: center; gap: 14px; color: inherit; }
.co-top > div { flex: 1; min-width: 0; }
.co-top b { display: block; font-size: 17px; }
.co-top small { color: var(--muted); }
.co-top .ic { color: #b9c1c5; }
.co-top:hover b { color: var(--orange-d); }
.co-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.co-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.co-stats > * { background: var(--bg); border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.co-stats b { display: block; font-size: 18px; color: var(--text); }
.co-stats a:hover { background: var(--orange-soft); }
.co-sites { display: flex; flex-wrap: wrap; gap: 6px; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; color: #44535a; }
.site-chip:hover { border-color: var(--orange); color: var(--orange-d); }
.site-chip.add { border-style: dashed; color: var(--orange-d); }
.co-todo { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--orange-d); background: var(--orange-soft); border-radius: 8px; padding: 8px 10px; }
.co-todo.done { color: var(--good); background: #e3f3ee; }
.tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #eceff0; color: var(--muted); font-size: 11px; }
.tabs a.on .tab-n { background: var(--orange-soft); color: var(--orange-d); }
.form-group { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-group:last-of-type { border-bottom: 0; }
.form-group-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side-stack { display: grid; gap: 8px; align-content: start; position: sticky; top: 20px; }
.app-preview { padding: 18px; display: grid; gap: 8px; }
.app-preview .ap-name { font-size: 17px; }
.app-preview p { margin: 0; color: #3d494e; line-height: 1.55; }
.ap-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #3d494e; padding-top: 6px; border-top: 1px solid #f0f2f3; }
.ap-row .ic { color: var(--muted); flex: none; margin-top: 1px; }
.ap-row.red, .ap-row.red .ic { color: var(--safety); font-weight: 700; }
.inherit { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #fafbfb; border-radius: 0 0 14px 14px; }

.field { align-content: start; }

/* ---- Organogram: group → companies → sites -------------------------------- */
.view-seg { margin-right: 4px; }
.og-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px 30px;
  background-image: radial-gradient(#e7eaec 1px, transparent 1px); background-size: 18px 18px; }
.og { display: flex; flex-direction: column; align-items: center; min-width: max-content; margin: 0 auto; }
.og-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.og-top .og-co { width: 300px; }
.og-root-sites { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.og-root-sites .og-site::before, .og-root-sites .og-add::before { display: none; }
.og-row { display: flex; margin: 0; padding: 26px 0 0; position: relative; list-style: none; }
.og-row::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid #c3cbcf; }
.og-row > li { position: relative; padding: 24px 7px 0; }
.og-row > li::before, .og-row > li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 24px; border-top: 2px solid #c3cbcf; }
.og-row > li::after { right: auto; left: 50%; border-left: 2px solid #c3cbcf; }
.og-row > li:first-child::before, .og-row > li:last-child::after { border: 0 none; }
.og-row > li:last-child::before { border-right: 2px solid #c3cbcf; border-radius: 0 8px 0 0; }
.og-row > li:first-child::after { border-radius: 8px 0 0 0; }
.og-row > li.og-li-add::before, .og-row > li.og-li-add::after { border-color: #e1a64a; border-style: dashed; }
.og-col { width: 204px; display: flex; flex-direction: column; gap: 10px; }
.og-co { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 12px rgba(16,24,28,.07); color: inherit; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.og-co:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,28,.1); }
.og-co .co-badge { width: 40px; height: 40px; font-size: 12px; border-radius: 10px; }
.og-co-main { min-width: 0; display: grid; gap: 1px; }
.og-co-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-co-main small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-meta { font-size: 11px; font-weight: 600; color: #8a969b; }
.og-root { background: var(--slate); border-color: var(--slate); color: #fff; }
.og-root .co-badge { background: var(--orange); }
.og-root .og-co-main small, .og-root .og-meta { color: #aab5ba; }
.og-todo, .og-ok, .og-sos { position: absolute; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; color: #fff; }
.og-todo { top: -8px; right: -8px; width: 22px; height: 22px; font-size: 11px; background: var(--orange); box-shadow: 0 0 0 3px #fff; }
.og-ok { top: -8px; right: -8px; width: 22px; height: 22px; background: var(--good); box-shadow: 0 0 0 3px #fff; }
.og-sos { top: 50%; right: 8px; transform: translateY(-50%); width: 20px; height: 20px; background: #fbe9e7; color: var(--safety); }
.og-sites { display: grid; gap: 6px; margin-left: 22px; padding-left: 16px; border-left: 2px solid #c3cbcf; }
.og-site { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 34px 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; transition: border-color .15s; }
.og-site:hover { border-color: var(--orange); }
.og-site::before, .og-add-site::before { content: ""; position: absolute; left: -18px; top: 50%; width: 16px; border-top: 2px solid #c3cbcf; }
.og-site-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); }
.og-site-main { min-width: 0; display: grid; }
.og-site-main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-site-main small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-add { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #e1a64a; border-radius: 10px; background: rgba(253,243,227,.6); color: var(--orange-d); font-weight: 700; font-size: 12px; }
.og-add:hover { background: var(--orange-soft); border-style: solid; }
.og-add-site { height: 34px; }
.og-add-site::before { border-top-style: dashed; border-color: #e1a64a; }
.og-root-sites .og-add-site { padding: 0 12px; }
.og-add-co { height: 66px; flex-direction: column; gap: 2px; font-size: 13px; }
.og-add-co small { font-weight: 600; color: #c9a36a; font-size: 11px; }
.og-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.og-legend span { display: inline-flex; align-items: center; gap: 6px; }
.og-legend i { position: static; transform: none; width: 18px; height: 18px; font-size: 10px; box-shadow: none; }
.login-card .input::placeholder { color: #a7b1b6; }

/* Microsoft sign-in pages (prototype of the Entra ID screens) */
.msx { min-height: 100vh; background: #f2f2f2 radial-gradient(circle at 80% 10%, #e6eef6, transparent 55%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; font-family: "Segoe UI", "Segoe UI Web", -apple-system, Roboto, sans-serif; color: #1b1b1b; }
.msx-card { width: 100%; max-width: 440px; min-height: 338px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding: 44px; display: flex; flex-direction: column; animation: msx-in .25s ease-out; }
@keyframes msx-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.msx-brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; color: #5e5e5e; margin-bottom: 16px; }
.msx-brand .ms-logo { grid-template-columns: 10px 10px; } .msx-brand .ms-logo i { width: 10px; height: 10px; }
.msx-card h1 { font-size: 24px; font-weight: 600; margin: 0 0 14px; line-height: 1.3; }
.msx-ident { display: flex; align-items: center; gap: 4px; font-size: 15px; margin: 0 0 6px -6px; }
.msx-back { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #1b1b1b; }
.msx-back:hover { background: #e6e6e6; }
.msx-accts { display: grid; margin: 0 -44px; }
.msx-acct { display: flex; align-items: center; gap: 14px; padding: 12px 44px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.msx-acct:hover { background: #e6e6e6; }
.msx-acct b { display: block; font-weight: 400; font-size: 15px; }
.msx-acct small { display: block; color: #5e5e5e; font-size: 13px; }
.msx-acct em { margin-left: auto; font-style: normal; font-size: 13px; color: #5e5e5e; }
.msx-av { width: 48px; height: 48px; border-radius: 50%; background: #2f3b40; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.msx-av.plus { background: #f2f2f2; color: #1b1b1b; border: 1px dashed #8a8a8a; }
.msx-input { width: 100%; border: 0; border-bottom: 1px solid #666; padding: 6px 0 7px; font: inherit; font-size: 15px; outline: 0; background: none; margin: 4px 0 14px; }
.msx-input:focus { border-bottom-color: #0067b8; }
.msx-err { color: #e81123; font-size: 15px; margin: -4px 0 8px; }
.msx-text { font-size: 15px; margin: 0 0 18px; }
.msx-small { font-size: 13px; margin: 0; }
.msx-link { border: 0; background: none; padding: 0; font: inherit; color: #0067b8; cursor: pointer; }
.msx-link:hover { text-decoration: underline; color: #666; }
.msx-check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.msx-actions { margin-top: auto; padding-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.msx-btn { min-width: 108px; height: 32px; padding: 0 12px; border: 0; background: #0067b8; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.msx-btn:hover { background: #005da6; }
.msx-btn.ghost { background: #ccc; color: #1b1b1b; }
.msx-btn.ghost:hover { background: #b3b3b3; }
.msx-wait { margin: auto 0; text-align: center; color: #5e5e5e; font-size: 15px; }
.msx-dots { display: flex; justify-content: center; gap: 6px; height: 6px; margin-bottom: 18px; }
.msx-dots i { width: 6px; height: 6px; border-radius: 50%; background: #0067b8; animation: msx-dot 1.2s infinite ease-in-out; }
.msx-dots i:nth-child(2) { animation-delay: .1s; } .msx-dots i:nth-child(3) { animation-delay: .2s; } .msx-dots i:nth-child(4) { animation-delay: .3s; } .msx-dots i:nth-child(5) { animation-delay: .4s; }
@keyframes msx-dot { 0%, 100% { opacity: .2; transform: translateX(-10px); } 50% { opacity: 1; transform: translateX(10px); } }
.msx-org { width: 100%; max-width: 440px; margin-top: 16px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding: 14px 44px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #5e5e5e; }
.msx-org img { height: 26px; }
.msx-foot { position: fixed; bottom: 0; right: 0; display: flex; gap: 18px; padding: 10px 16px; font-size: 12px; }
.msx-foot .msx-link { color: #1b1b1b; font-size: 12px; }
@media (max-width: 520px) { .msx-card, .msx-org { padding-left: 24px; padding-right: 24px; } .msx-accts { margin: 0 -24px; } .msx-acct { padding: 12px 24px; } }

/* Celebrations */
.p-bday { background: #fdf0dc; color: #b86f0f; }
.p-anniv { background: #ece8fa; color: #6a4fc4; }
td.nowrap { white-space: nowrap; }
td.r { text-align: right; }
.cell-title.click { cursor: pointer; }
