@font-face {
  font-family: 'NVS Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'NVS Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #102a37;
  --muted: #2A2A2A;
  --faint: #2A2A2A;
  --navy: #0b2938;
  --navy-2: #133b4e;
  --teal: #00a19a;
  --teal-dark: #007c78;
  --teal-pale: #e5f7f5;
  --orange: #ee7b45;
  --orange-pale: #fff0e8;
  --green: #2d9b68;
  --green-pale: #e8f6ef;
  --red: #d15353;
  --red-pale: #fbeaea;
  --amber: #c68a18;
  --amber-pale: #fff7dd;
  --blue: #4278be;
  --blue-pale: #eaf1fb;
  --canvas: #f3f6f7;
  --panel: #ffffff;
  --line: #dfe7ea;
  --line-dark: #ccd8dc;
  --shadow: 0 18px 44px rgba(18, 50, 64, .09);
  --shadow-small: 0 6px 20px rgba(18, 50, 64, .07);
  --radius: 14px;
  --sidebar: 238px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  background: linear-gradient(180deg, #0b2938 0%, #092330 100%); color: #dbe9ed;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 24px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; position: relative; display: grid; place-items: center; }
.brand-mark::before { content: ""; width: 32px; height: 32px; border: 2px solid #78d7d0; transform: rotate(45deg); border-radius: 5px; }
.brand-mark i { position: absolute; width: 4px; border-radius: 4px; background: var(--orange); bottom: 9px; }
.brand-mark i:nth-child(1) { height: 9px; left: 12px; }
.brand-mark i:nth-child(2) { height: 16px; left: 18px; }
.brand-mark i:nth-child(3) { height: 22px; left: 24px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .12em; color: white; }
.brand small { display: block; margin-top: 2px; color: #9db2ba; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #b9cbd1; text-decoration: none; font-weight: 600; transition: .18s ease; }
.main-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.main-nav a.active { color: white; background: #164354; box-shadow: inset 3px 0 0 var(--teal); }
.nav-icon { width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.main-nav a.active .nav-icon { background: var(--teal); border-color: var(--teal); color: white; }
.nav-separator { height: 1px; margin: 11px 10px; background: rgba(255,255,255,.1); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { color: #dce8ec; font-size: 12px; }
.sidebar-foot small { margin-top: 3px; color: #7f9aa4; font-size: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #56d39b; box-shadow: 0 0 0 4px rgba(86,211,155,.12); }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 13px; }
.breadcrumbs b { font-weight: 400; color: #c2cdd1; }
.breadcrumbs strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.profile { display: flex; align-items: center; gap: 9px; border: 0; padding: 4px; background: transparent; color: var(--ink); text-align: left; }
.profile > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }
.profile strong, .profile small { display: block; }
.profile small { color: var(--muted); margin-top: 2px; font-size: 10px; }
.profile { cursor: pointer; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #d9eeee, #f4f7f8 44%, #e7eef0); }
.login-card { width: min(100%, 430px); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(11, 41, 56, .15); }
.login-brand { color: var(--navy); font-size: 22px; font-weight: 900; letter-spacing: 1.8px; }
.login-kicker { margin: 3px 0 28px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.login-card h1 { margin: 0 0 8px; }
.login-card .form-grid { margin-top: 24px; }
.login-network { margin: 22px 0 0; color: var(--faint); font-size: 10px; text-align: center; }
.menu-button { display: none !important; }
.page { padding: 30px 32px 48px; max-width: 1680px; margin: 0 auto; }

.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; color: var(--ink); }
.page-head p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.015em; }
h3 { font-size: 15px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 13px; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 7px 18px rgba(0,161,154,.2); }
.button-primary:hover { background: var(--teal-dark); }
.button-dark { background: var(--navy); color: white; }
.button-danger { background: var(--red); color: white; }
.button-ghost { background: white; border-color: var(--line-dark); color: var(--ink); }
.button-ghost:hover { border-color: #a9bbc2; background: #fafcfc; }
.button-soft { background: var(--teal-pale); color: var(--teal-dark); }
.button-small { min-height: 31px; padding: 0 10px; font-size: 11px; border-radius: 7px; }
.icon-button { border: 1px solid var(--line); background: white; border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 132px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -38px; top: -42px; background: var(--metric-soft, var(--teal-pale)); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { display: block; margin: 12px 0 4px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.metric-note { color: var(--faint); font-size: 11px; }
.metric-icon { position: absolute; right: 17px; bottom: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--metric-soft, var(--teal-pale)); color: var(--metric, var(--teal)); font-weight: 900; }
.metric-card.orange { --metric: var(--orange); --metric-soft: var(--orange-pale); }
.metric-card.blue { --metric: var(--blue); --metric-soft: var(--blue-pale); }
.metric-card.green { --metric: var(--green); --metric-soft: var(--green-pale); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.panel + .panel { margin-top: 18px; }
.panel-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 20px; }
.panel-empty { padding: 46px 24px; text-align: center; color: var(--muted); }
.panel-empty strong { display: block; color: var(--ink); margin-bottom: 6px; }

.funnel { display: flex; align-items: stretch; min-height: 180px; padding: 22px 20px 20px; }
.funnel-step { position: relative; flex: 1; padding: 14px 10px; text-align: center; }
.funnel-step:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 48px; color: #a7b6bc; }
.funnel-bar { width: var(--bar-width, 70%); min-width: 12px; height: 60px; margin: 0 auto 13px; display: flex; align-items: flex-end; justify-content: center; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #2bb8b2, #008b86); color: white; font-weight: 800; padding-bottom: 12px; }
.funnel-step:nth-child(2) .funnel-bar { background: linear-gradient(180deg, #51a4cb, #357aa5); }
.funnel-step:nth-child(3) .funnel-bar { background: linear-gradient(180deg, #e6a74d, #c68323); }
.funnel-step:nth-child(4) .funnel-bar { background: linear-gradient(180deg, #ed8959, #d66735); }
.funnel-label { color: var(--muted); font-size: 11px; font-weight: 700; }

.task-list, .activity-list, .privacy-list { list-style: none; margin: 0; padding: 0; }
.task-row, .activity-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid #edf1f2; }
.task-row:last-child, .activity-row:last-child { border: 0; }
.task-check { width: 20px; height: 20px; border: 2px solid var(--line-dark); border-radius: 6px; background: white; cursor: pointer; }
.task-check.completed { display: grid; place-items: center; color: white; background: var(--teal); border-color: var(--teal); cursor: default; }
.task-row strong, .activity-row strong { display: block; font-size: 12px; }
.task-row small, .activity-row small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.task-date { color: var(--muted); font-size: 10px; white-space: nowrap; }
.task-organization { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 2px; cursor: pointer; }
.activity-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-pale); color: var(--teal-dark); font-weight: 800; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; flex: 1 1 270px; }
.search-field span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; color: var(--ink); outline: none; transition: border .16s, box-shadow .16s; }
.search-field input { padding-left: 34px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,161,154,.12); }
textarea { resize: vertical; min-height: 95px; line-height: 1.5; }
.compact-select { width: auto; min-width: 145px; }
.sort-select { min-width: 205px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { color: var(--muted); font-size: 11px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.license-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.license-check input[type="checkbox"] { flex: 0 0 auto; width: 17px; min-height: 17px; height: 17px; margin-top: 1px; padding: 0; accent-color: var(--teal); }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 6px; border-radius: 10px; background: var(--teal); color: white; font-size: 10px; }
.filter-panel { padding: 18px; border-bottom: 1px solid var(--line); background: #f7fafb; }
.filter-panel[hidden] { display: none; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 13px; }
.filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.filter-actions > div { display: flex; gap: 9px; flex: 0 0 auto; }
.sync-progress { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfb; }
.sync-progress.failed { border-color: #edc8c8; background: #fffafa; }
.sync-progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sync-progress-head div strong, .sync-progress-head div span { display: block; }
.sync-progress-head div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sync-progress-head > strong { color: var(--teal-dark); font-size: 18px; }
.sync-progress-track { height: 9px; margin: 12px 0 15px; overflow: hidden; border-radius: 5px; background: #dfe9eb; }
.sync-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #42c9bc); transition: width .35s ease; }
.sync-progress.failed .sync-progress-track span { background: var(--red); }
.sync-steps { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 8px; }
.sync-step { min-width: 0; color: var(--faint); text-align: center; }
.sync-step span { width: 25px; height: 25px; margin: 0 auto 6px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; background: white; font-weight: 850; }
.sync-step small { display: block; font-size: 9px; line-height: 1.25; }
.sync-step.completed, .sync-step.active { color: var(--teal-dark); }
.sync-step.completed span { border-color: #9edbd3; background: var(--teal-pale); }
.sync-step.active span { border-color: var(--teal); color: white; background: var(--teal); }
.sync-step.failed { color: var(--red); }
.sync-step.failed span { border-color: var(--red); color: white; background: var(--red); }
.sync-step.skipped { opacity: .55; }
.sync-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 10px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 43px; padding: 0 14px; background: #f8fafb; color: #2A2A2A; text-align: left; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #edf1f2; vertical-align: middle; color: #344d59; font-size: 12px; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:hover { background: #f8fbfb; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.audit-form-action .button { width: 100%; }
.audit-table .audit-description { min-width: 360px; max-width: 620px; }
.audit-description > strong, .audit-description > small, .audit-evidence-line, .audit-review-note { display: block; }
.audit-description > small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.audit-evidence-line { margin-top: 5px; color: var(--faint); font-size: 10px; line-height: 1.4; }
.audit-review-note { margin-top: 7px; padding: 7px 9px; border-radius: 7px; background: var(--teal-pale); color: var(--teal-dark); font-size: 10px; }
.audit-modal-evidence { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; }
.audit-modal-evidence .audit-evidence-line { margin: 0; color: var(--ink-soft); font-size: 11px; }
.audit-comment-inline { display: block; max-width: 420px; margin-top: 7px; padding: 6px 8px; border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; background: var(--teal-pale); color: var(--teal-dark); font-size: 10px; line-height: 1.4; }
.audit-comment-cell { min-width: 270px; max-width: 440px; white-space: normal; line-height: 1.45; }
.audit-pdf-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.audit-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.audit-compare-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.audit-compare-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.audit-compare-head strong, .audit-compare-head small { display: block; }
.audit-compare-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.audit-compare-head .audit-pdf-links { justify-content: flex-end; margin-top: 0; }
.audit-compare-card > .notice { margin: 12px; }
.audit-comment-notice { background: var(--teal-pale); color: var(--teal-dark); }
.compact-audit-table th, .compact-audit-table td { padding: 9px 10px; }
.compact-audit-table td:nth-child(2) { min-width: 240px; }
.audit-breakdown { padding: 14px; }
.audit-breakdown .row-between { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.audit-breakdown .row-between:last-child { padding-bottom: 0; border-bottom: 0; }
.entity-cell strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 4px; }
.entity-cell small { color: var(--faint); font-size: 10px; }
.contact-line { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-line + .contact-line { margin-top: 4px; }
.contact-line.email { color: var(--teal-dark); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; background: #edf2f3; color: #2A2A2A; }
.badge.teal { background: var(--teal-pale); color: var(--teal-dark); }
.badge.orange { background: var(--orange-pale); color: #b6572a; }
.badge.green { background: var(--green-pale); color: #237a51; }
.badge.red { background: var(--red-pale); color: #ae3f3f; }
.badge.blue { background: var(--blue-pale); color: #35669f; }
.badge.amber { background: var(--amber-pale); color: #9d6a0b; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination-actions { display: flex; gap: 7px; }
.page-jump { display: flex; align-items: center; gap: 7px; }
.page-jump label { white-space: nowrap; }
.page-jump input { width: 76px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.table-entity-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.table-entity-button strong, .table-entity-button small { display: block; }
.table-entity-button:hover strong { color: var(--teal-dark); text-decoration: underline; }
.progress-ring { width: 140px; height: 140px; margin: 12px auto 18px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--progress, 0%), #e9eff1 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 13px; background: white; border-radius: 50%; }
.progress-ring div { position: relative; text-align: center; }
.progress-ring strong { display: block; font-size: 28px; }
.progress-ring small { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-stat { padding: 12px; border-radius: 9px; background: #f6f9fa; }
.mini-stat strong, .mini-stat small { display: block; }
.mini-stat strong { font-size: 18px; }
.mini-stat small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.campaign-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.campaign-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.campaign-card h3 { margin: 0 0 5px; }
.campaign-card p { color: var(--muted); font-size: 11px; }
.campaign-numbers { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 0; border-block: 1px solid var(--line); }
.campaign-numbers div { text-align: center; border-right: 1px solid var(--line); }
.campaign-numbers div:last-child { border: 0; }
.campaign-numbers strong, .campaign-numbers small { display: block; }
.campaign-numbers strong { font-size: 18px; }
.campaign-numbers small { margin-top: 3px; color: var(--faint); font-size: 9px; text-transform: uppercase; }
.campaign-actions { display: flex; gap: 8px; margin-top: 15px; }
.engagement-link { display: block; max-width: 340px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recipient-builder-section { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; }
.recipient-builder-list { max-height: 390px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.recipient-builder-list .data-table thead { position: sticky; top: 0; z-index: 1; }
.recipient-builder-list .data-table td small { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.recipient-checkbox { width: 17px; min-width: 17px; height: 17px; min-height: 17px; padding: 0; border-radius: 4px; accent-color: var(--teal); cursor: pointer; }

.email-composer { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 11px; background: #f6f9fa; }
.email-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border-bottom: 1px solid var(--line); background: white; }
.email-editor-toolbar button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); cursor: pointer; font-size: 11px; }
.email-editor-toolbar button:hover, .email-editor-toolbar button.active { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); }
.email-composer-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 12px; padding: 12px; }
.email-visual-editor, .email-source-editor { width: 100%; min-height: 460px; padding: 22px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: white; color: #17313d; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.65; outline: none; }
.email-visual-editor:focus, .email-source-editor:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,161,154,.1); }
.email-source-editor { resize: none; font-family: Consolas, monospace; font-size: 12px; line-height: 1.5; }
.email-preview-wrap { min-width: 0; }
.email-preview-wrap > span { display: block; margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.email-preview { display: block; width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.email-preview.saved-preview { height: 520px; }
.editor-test-action { justify-content: flex-end; }
.smtp-form-note { padding: 12px; border-radius: 8px; background: #f6f9fa; color: var(--muted); font-size: 11px; line-height: 1.5; }

.notice { display: flex; gap: 13px; padding: 15px 17px; border-radius: 10px; background: var(--blue-pale); color: #315c8a; line-height: 1.5; }
.notice.warning { background: var(--amber-pale); color: #785712; }
.notice.danger { background: var(--red-pale); color: #913d3d; }
.notice strong { display: block; color: inherit; margin-bottom: 2px; }
.notice-icon { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.6); font-weight: 900; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.stat-strip > div { padding: 18px; background: white; }
.stat-strip strong, .stat-strip small { display: block; }
.stat-strip strong { font-size: 22px; }
.stat-strip small { color: var(--muted); margin-top: 5px; font-size: 10px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(5,24,33,.42); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(610px, 96vw); overflow-y: auto; background: white; box-shadow: -20px 0 50px rgba(5,24,33,.17); transform: translateX(102%); transition: transform .22s ease; }
.drawer.open { transform: none; }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.drawer-header h2 { margin-bottom: 5px; font-size: 21px; }
.drawer-header p { color: var(--muted); margin: 0; font-size: 11px; }
.drawer-content { padding: 22px 24px 44px; }
.drawer-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.drawer-section:first-child { padding-top: 0; }
.drawer-section:last-child { border: 0; }
.drawer-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.drawer-section-head h3 { margin: 0; }
.contact-chip { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; margin-top: 8px; }
.contact-chip-main { min-width: 0; flex: 1; }
.contact-chip strong { display: block; font-size: 12px; }
.contact-chip small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.shared-contact-organizations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.shared-contact-organizations > span { color: var(--muted); font-size: 10px; }
.shared-contact-organizations button { border: 1px solid #c9dcdf; border-radius: 7px; padding: 5px 8px; background: var(--teal-pale); color: var(--teal-dark); text-align: left; cursor: pointer; }
.shared-contact-organizations button:hover { border-color: var(--teal); background: #dceff0; }
.shared-contact-organizations button strong { font-size: 10px; }
.shared-contact-organizations button small { margin-top: 1px; font-size: 8px; }
.timeline { border-left: 2px solid #deeaed; margin-left: 7px; padding-left: 18px; }
.timeline-item { position: relative; padding: 0 0 17px; }
.timeline-item::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; left: -24px; top: 3px; background: var(--teal); box-shadow: 0 0 0 4px white; }
.timeline-item strong { font-size: 11px; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.timeline-item time { color: var(--faint); font-size: 9px; }

.modal { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 44px); overflow-y: auto; padding: 24px; background: white; border-radius: 15px; box-shadow: 0 30px 80px rgba(5,24,33,.22); transform: translate(-50%, -48%) scale(.97); opacity: 0; pointer-events: none; transition: .18s ease; }
.modal.modal-wide { width: min(1180px, calc(100vw - 32px)); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-head h2 { margin: 0 0 5px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.toast { min-width: 280px; max-width: 420px; padding: 14px 16px; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { background: #a94040; }
.toast strong { display: block; margin-bottom: 3px; }
.toast span { color: rgba(255,255,255,.75); font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.skeleton { position: relative; overflow: hidden; min-height: 100px; background: #e9eef0; border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.muted { color: var(--muted); }
.subtle { color: var(--faint); font-size: 11px; }
.text-right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

@media (max-width: 1150px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .split-layout { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .email-composer-grid { grid-template-columns: 1fr; }
  .audit-comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .workspace { width: 100%; }
  .topbar { height: 62px; padding: 0 16px; }
  .menu-button { display: grid !important; }
  .breadcrumbs span, .breadcrumbs b { display: none; }
  .page { padding: 22px 16px 40px; }
  .page-head { flex-direction: column; }
  .head-actions { width: 100%; }
  .head-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 115px; padding: 16px; }
  .metric-value { font-size: 25px; }
  .funnel { overflow-x: auto; }
  .funnel-step { min-width: 120px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .filter-actions > div { flex-wrap: wrap; }
  .filter-actions .button { flex: 1; }
  .pagination { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pagination-actions { flex-wrap: wrap; }
  .recipient-builder-section { padding: 13px; }
  .sync-steps { grid-template-columns: 1fr; text-align: left; }
  .sync-step { display: flex; align-items: center; gap: 8px; text-align: left; }
  .sync-step span { flex: 0 0 auto; margin: 0; }
  .sync-progress-meta { flex-direction: column; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hide-mobile, .profile div { display: none; }
}

@media (max-width: 470px) {
  .metric-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .campaign-actions { flex-direction: column; }
  .campaign-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.sales-next-action strong, .sales-next-action small { display: block; }
.sales-next-action small { margin-top: 4px; color: var(--muted); }

.desk-picker { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.desk-picker[hidden] { display: none; }
.desk-picker select { min-width: 140px; max-width: 190px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.desk-view-notice { margin-bottom: 18px; }
@media (max-width: 700px) { .topbar:has(.desk-picker:not([hidden])) .breadcrumbs { display: none; } .desk-picker select { min-width: 115px; max-width: 145px; } }

/* Secondary text remains readable on the light workspace. */
input::placeholder, textarea::placeholder { color: #2A2A2A; opacity: 1; }
.sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.brand { gap: 10px; }
.brand-mark { flex: 0 0 36px; }
.brand strong { font-size: 14px; letter-spacing: .08em; }
.workspace-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.workspace-filters .field { min-width: 160px; }

/* Irene's company card: fluid columns, reference typography and colors. */
body.company-card-open { overflow: hidden; }
.drawer-backdrop { left: var(--sidebar); background: #f5f5f5; backdrop-filter: none; }
.drawer {
  --teal: #2a8c7a; --teal-dark: #236e60; --teal-pale: #e8f5f3;
  --ink: #1f2937; --muted: #647084; --faint: #8490a3; --line: #e5e7eb;
  left: calc(var(--sidebar) + 16px); right: 16px; top: 16px; bottom: 16px;
  width: auto; height: auto; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 1px 3px #0000001a;
  font-family: 'NVS Inter', Inter, system-ui, sans-serif; font-size: 14px; color: #2a2a2a;
}
.drawer-header { position: static; flex: 0 0 auto; padding: 20px 24px 16px; background: #fff; backdrop-filter: none; }
.drawer-header h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; margin: 8px 0 4px; font-weight: 700; }
.drawer-header p { font-size: 14px; color: var(--muted); }
.drawer-header > div > .badge { border: 1px solid #cbd5e1; background: #fff; color: var(--muted); border-radius: 3px; min-height: 20px; font-size: 12px; font-weight: 400; padding: 1px 8px; }
.drawer-header .icon-button { width: 28px; height: 28px; border-radius: 3px; color: #94a3b8; font-size: 22px; }
.drawer-content { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.company-tabs { display: flex; gap: 2px; flex: 0 0 auto; padding: 0 24px; border-bottom: 1px solid var(--line); }
.company-tabs button { border: 0; border-radius: 3px 3px 0 0; padding: 13px 16px; background: transparent; color: #475569; cursor: pointer; font-size: 14px; font-weight: 500; }
.company-tabs button[aria-selected="true"] { background: var(--teal); color: #fff; }
.company-pane { min-height: 0; flex: 1; overflow: auto; padding: 20px 24px; }
#company-pane-call { padding: 0; }
.company-call-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100%; }
#companyCallSummary, #companyCallResult { min-width: 0; padding: 24px; }
#companyCallSummary { display: flex; flex-direction: column; align-items: stretch; border-right: 1px solid var(--line); }
.drawer h3 { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink); }
#companyCallSummary h3 { margin: 0 0 8px; }
.company-contact-summary p { margin: 5px 0; }
.company-phone { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; color: var(--teal); margin: 10px 0 8px; }
.company-contact-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; vertical-align: middle; }
.company-phone .company-contact-icon { width: 20px; height: 20px; }
.company-email { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.company-email .company-contact-icon { color: var(--teal); }
.company-address { font-size: 14px; font-weight: 400; line-height: 1.65; color: #2a2a2a; }
.company-context { margin-top: 20px; min-height: 0; }
.company-context p { white-space: pre-wrap; line-height: 1.65; margin: 4px 0; }
.company-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.company-source-note { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 4px 0 8px; }
.company-latest { margin-top: 24px; color: #475569; }
#companyCallSummary .company-latest h3 { margin: 0 0 22px; }
.company-latest strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.company-latest p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.company-full-note { white-space: pre-wrap; }
#companyCallSummary .head-actions { padding: 24px 0 0; margin: 0; border: 0; gap: 12px; }
.drawer .button { border-radius: 3px; min-height: 38px; font-size: 14px; font-weight: 500; padding: 0 16px; box-shadow: none; }
.drawer .button:hover { transform: none; }
.drawer .button-soft { background: #fff; color: var(--teal); border-color: var(--teal); }
.drawer .button-soft:hover { background: var(--teal-pale); }
.drawer .button-primary { background: var(--teal); }
.drawer .button-primary:hover { background: var(--teal-dark); }
.company-owners { margin-top: 30px; }
.company-compact-list { display: grid; gap: 8px; }
.company-compact-list > div { overflow-wrap: anywhere; }
.company-owners .company-compact-list { font-size: 14px; }
.company-owners .company-compact-list span { color: var(--muted); margin-left: 5px; }
.company-owners .company-compact-list strong { color: var(--ink); font-weight: 600; }
.company-text-button { border: 0; background: transparent; color: var(--teal); cursor: pointer; padding: 2px 0; text-align: left; font-size: 12px; font-weight: 500; }
.company-text-button:hover { color: var(--teal-dark); text-decoration: underline; }
.company-list-pages { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.company-list-pages button { border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; min-width: 26px; min-height: 24px; color: var(--muted); }
.company-list-pages button:disabled { opacity: .45; cursor: default; }
#companyCallResult .drawer-section { padding: 0; border: 0; }
#companyCallResult .drawer-section-head { margin-bottom: 20px; }
#companyCallResult .drawer-section-head h3 { font-size: 16px; }
#interactionForm { gap: 18px 16px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.drawer .field { min-width: 0; gap: 6px; }
.drawer .field label { color: #647084; font-size: 12px; font-weight: 500; }
.drawer input, .drawer select, .drawer textarea { min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 3px; background-color: #fff; color: #475569; font-size: 14px; box-shadow: 0 0 0 1px #e5e7eb33; }
.drawer select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.drawer textarea:focus, .drawer select:focus, .drawer input:focus { outline: 2px solid #2a8c7a; outline-offset: -1px; border-color: #2a8c7a; }
.drawer input::placeholder, .drawer textarea::placeholder { color: #94a3b8; opacity: 1; }
#interactionForm textarea { min-height: 104px; height: clamp(104px,13vh,150px); resize: vertical; line-height: 1.5; }
#interactionForm .subtle { margin: 0; font-size: 12px; line-height: 1.65; color: var(--faint); }
#interactionForm select[name="outcome"]:has(option:first-child:checked) { color: #94a3b8; }
.company-duplicates { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 20px; }
.company-duplicate-card { padding: 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; color: var(--faint); }
.company-duplicate-heading { display: flex; gap: 8px; align-items: center; color: #475569; }
.company-duplicate-heading strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.company-duplicate-heading .company-contact-icon { width: 14px; height: 14px; }
.company-duplicate-status { margin-left: auto; border: 1px solid var(--line); padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: 400; color: #94a3b8; }
.company-duplicate-status.is-blocked { color: #913d3d; border-color: #e9bbbb; }
.company-duplicate-card p { margin: 4px 0 5px 22px; font-size: 11px; line-height: 1.4; }
.company-related { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 22px; font-size: 12px; line-height: 1.4; }
.company-related button { border: 0; border-radius: 2px; padding: 2px 5px; color: var(--teal); background: var(--teal-pale); font-size: inherit; cursor: pointer; }
.company-related button:hover { color: var(--teal-dark); }
.company-related-code { color: #94a3b8; font-size: 11px; }
.company-client { vertical-align: middle; margin-left: 8px; font-size: 12px; }
.company-optional-sales > summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.company-add-contact { padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); background: #f5f5f5; border-radius: 3px; }
.company-contact-submit { justify-content: end; }
#contactSaveStatus { font-size: 12px; color: var(--muted); }
.callback-note { max-width: 380px; }
.callback-note > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.drawer ::-webkit-scrollbar { width: 4px; height: 4px; }
.drawer ::-webkit-scrollbar-track { background: transparent; }
.drawer ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
@media (max-height: 800px) and (min-width: 761px) {
  .drawer { top: 8px; bottom: 8px; }
  .drawer-header { padding: 12px 20px; }
  .drawer-header h2 { font-size: 22px; margin-top: 6px; }
  .company-tabs { padding-inline: 20px; }
  .company-tabs button { padding: 11px 14px; font-size: 13px; }
  #companyCallSummary, #companyCallResult { padding: 14px 20px; }
  .company-context, .company-latest { margin-top: 14px; }
  #companyCallSummary .company-latest h3 { margin-bottom: 12px; }
  .company-context p { line-height: 1.5; }
  .company-owners { margin-top: 14px; }
  .company-list-pages { margin-top: 6px; }
  #companyCallSummary .head-actions { padding-top: 14px; }
  #companyCallResult .drawer-section-head { margin-bottom: 14px; }
  .company-phone { display: inline-flex; margin: 6px 16px 6px 0; font-size: 18px; }
  .drawer .field { gap: 4px; }
  .drawer .field label { font-size: 11px; }
  .drawer input, .drawer select { min-height: 34px; height: 34px; padding-block: 6px; font-size: 13px; }
  .drawer .button { min-height: 34px; font-size: 13px; }
  #interactionForm { gap: 10px 12px; }
  #interactionForm .subtle { font-size: 11px; line-height: 1.5; }
  #interactionForm textarea { min-height: 84px; height: 84px; }
  .company-duplicates { margin-top: 14px; }
  .company-duplicate-card { padding: 8px 10px; }
  .company-duplicate-heading strong { font-size: 13px; }
  .company-duplicate-status { padding: 2px 5px; }
  .company-related { font-size: 11px; }
  .company-duplicate-card p { margin-block: 3px; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .drawer { left: calc(var(--sidebar) + 8px); right: 8px; font-size: 13px; }
  #companyCallSummary, #companyCallResult { padding: 16px; }
  .company-phone { font-size: 18px; }
  .company-tabs { padding-inline: 16px; }
  .company-tabs button { font-size: 12px; padding-inline: 10px; }
  .drawer input, .drawer select, .drawer textarea, .drawer .button, .company-address, .company-duplicate-heading strong { font-size: 13px; }
}
@media (max-width: 760px) {
  .drawer-backdrop { left: 0; }
  .drawer { inset: 8px; }
  .drawer-header { padding: 12px 16px; }
  .drawer-header h2 { font-size: 21px; }
  .company-call-grid { grid-template-columns: minmax(0,1fr); }
  #companyCallSummary { border-right: 0; border-bottom: 1px solid var(--line); }
  #companyCallSummary, #companyCallResult { padding: 18px 16px; }
  .company-tabs { padding-inline: 8px; gap: 0; }
  .company-tabs button { padding: 12px 8px; font-size: 11px; flex: 1; }
  .company-pane { padding: 16px; }
  .company-add-contact { grid-template-columns: minmax(0,1fr); }
}

/* Irene: the callback date determines the year and month in this overview. */
.irene-period-panel { color:#2a2a2a; }
.irene-period-head { padding:20px 22px 12px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.irene-years { display:flex; gap:6px; flex-wrap:wrap; padding:4px; background:var(--canvas); border-radius:9px; }
.irene-years .button { display:flex; align-items:center; justify-content:center; gap:12px; min-width:100px; border:0; }
.irene-years .button-primary { background:#2a8c7a; }
.irene-period-count { padding:2px 6px; border-radius:5px; background:rgba(42,140,122,.10); font-size:12px; font-variant-numeric:tabular-nums; }
.irene-years .button-primary .irene-period-count { background:rgba(255,255,255,.18); }
.irene-year-total { color:#2a2a2a; font-size:13px; }
.irene-month-tools { display:flex; flex-wrap:wrap; gap:8px; padding:0 22px 10px; }
.irene-month-tools .button { background:var(--canvas); justify-content:flex-start; gap:8px; }
.irene-month-tools .is-selected { background:#e8f5f3; border-color:#2a8c7a; color:#236e60; }
.irene-month-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; padding:0 22px 22px; border-bottom:1px solid var(--line); }
.irene-month { display:flex; flex-direction:column; align-items:flex-start; gap:7px; border:1px solid var(--line); border-radius:8px; padding:13px 12px; background:white; color:#2a2a2a; text-align:left; font:inherit; cursor:pointer; min-width:0; }
.irene-month span { font-size:13px; }
.irene-month strong { font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; }
.irene-month:hover { background:#f5faf9; border-color:#8bbdb3; }
.irene-month.is-selected { background:#e8f5f3; border-color:#2a8c7a; color:#236e60; }
.irene-overdue { display:flex; justify-content:space-between; align-items:center; gap:16px; color:#784216; }
.irene-overdue span { display:block; margin-top:3px; font-size:12px; }
.irene-list-head { padding-block:16px; }
.irene-list-filters { padding-block:0 16px; }
.irene-callback-table .entity-cell a { display:block; margin-top:5px; color:#236e60; }
.irene-callback-table td:last-child { width:82px; }
.irene-callback-table .button { white-space:nowrap; }
@media(max-width:1000px) { .irene-month-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:620px) {
  .irene-period-head { padding:16px 14px 12px; }
  .irene-month-grid { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 14px 16px; gap:7px; }
  .irene-month-tools { padding-inline:14px; }
  .irene-month { padding:11px 9px; }
  .irene-month span { font-size:12px; }
  .irene-month strong { font-size:18px; }
  .irene-overdue { align-items:flex-start; }
}
