:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #17233a;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.header-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: #172b4d;
  font-size: 21px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-actions form { margin: 0; }
.user-name { color: #64748b; font-size: 14px; }
.admin-link, .text-button {
  color: #315bb3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.text-button { border: 0; background: none; cursor: pointer; padding: 0; }
.admin-link:hover, .text-button:hover { text-decoration: underline; }
.page-shell { width: min(1440px, calc(100% - 48px)); margin: 26px auto 60px; }

.login-card, .welcome-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 51, 87, .06);
}
.login-card { width: min(420px, 100%); margin: 10vh auto 0; padding: 36px; }
.welcome-card { max-width: 690px; padding: 44px; }
.eyebrow { color: #3564bc; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { font-size: clamp(27px, 4vw, 35px); line-height: 1.15; letter-spacing: -.035em; margin: 14px 0 18px; }
p { font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.muted { color: #63728a; }
.login-form { display: grid; gap: 10px; margin-top: 28px; }
.login-form label { font-size: 14px; font-weight: 650; }
.login-form input:not([type="hidden"]) {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 10px;
  outline: none;
}
.login-form input:focus { border-color: #3564bc; box-shadow: 0 0 0 3px rgba(53, 100, 188, .13); }
.primary-button, .secondary-button {
  border-radius: 9px;
  border: 1px solid #315bb3;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { background: #315bb3; color: #fff; padding: 13px 20px; margin-top: 8px; }
.primary-button:hover { background: #254b9b; }
.secondary-button { display: inline-block; color: #315bb3; padding: 11px 17px; margin-top: 10px; }
.secondary-button:hover { background: #edf3ff; }
.form-error { color: #a42c39; background: #fff0f1; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.api-example { overflow-x: auto; padding: 18px; border-radius: 10px; background: #eef3fa; color: #172b4d; line-height: 1.5; font-size: 13px; }
.welcome-card code { overflow-wrap: anywhere; }

/* Calls workspace */
.page-heading, .section-topline, .list-toolbar, .call-card, .call-card-top,
.call-meta, .detail-topbar, .detail-neighbors, .hero-meta, .conversation-hero,
.panel-heading, .speaker-line, .comment-header, .audio-panel, .audio-label,
.pagination { display: flex; align-items: center; }
.page-heading, .section-topline, .list-toolbar, .detail-topbar, .panel-heading { justify-content: space-between; }
.page-heading { align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { font-size: clamp(32px, 3.5vw, 44px); margin: 6px 0; }
.heading-note { color: #6b7890; font-size: 15px; margin: 0; }
.subtle-link, .clear-link, .back-link, .history-link { color: #315bb3; font-size: 14px; font-weight: 700; text-decoration: none; }
.subtle-link:hover, .clear-link:hover, .back-link:hover, .history-link:hover { text-decoration: underline; }
.subtle-link { padding-bottom: 7px; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.stat-card { min-height: 116px; display: flex; flex-direction: column; padding: 17px 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(24, 45, 80, .035); }
.stat-card span { color: #63728a; font-size: 14px; font-weight: 650; }
.stat-card strong { margin-top: 6px; font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.stat-card small { color: #8994a8; font-size: 12px; margin-top: auto; }
.stat-card-accent { background: #eef3ff; border-color: #d9e5ff; }
.stat-card-accent strong { color: #315bb3; }
.filter-panel { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; padding: 19px 22px; box-shadow: 0 14px 40px rgba(24, 45, 80, .035); }
.section-topline { margin-bottom: 14px; }
.section-topline h2 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-search { grid-column: span 2; }
.field label { color: #52627d; font-size: 12px; font-weight: 750; }
.field input, .field select { width: 100%; height: 42px; border: 1px solid #d7e0eb; background: #fff; border-radius: 9px; padding: 0 12px; color: #1c2c47; outline: none; }
.field input:focus, .field select:focus { border-color: #4b73c3; box-shadow: 0 0 0 3px rgba(53, 100, 188, .12); }
.filter-submit { height: 42px; margin: 0; padding: 0 18px; }
.client-filter { color: #66758d; font-size: 13px; margin: 18px 0 0; }
.client-filter a { color: #315bb3; }
.calls-section { margin-top: 28px; }
.list-toolbar { gap: 20px; margin-bottom: 14px; }
.list-tabs { display: flex; gap: 4px; padding: 4px; background: #e9eef5; border-radius: 11px; }
.list-tabs a { padding: 9px 15px; color: #687791; font-size: 13px; font-weight: 750; text-decoration: none; border-radius: 8px; }
.list-tabs a.active { color: #214b98; background: #fff; box-shadow: 0 2px 8px rgba(30, 49, 78, .08); }
.list-count { color: #8a96a7; font-size: 13px; }
.call-list { display: grid; gap: 11px; }
.call-card { align-items: stretch; gap: 20px; justify-content: space-between; border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; padding: 18px 21px; transition: border-color .15s, box-shadow .15s; }
.call-card:hover { border-color: #cad9f2; box-shadow: 0 8px 28px rgba(30, 59, 105, .06); }
.call-card-main { min-width: 0; }
.call-card-top { gap: 10px; flex-wrap: wrap; }
.call-date { color: #79869b; font-size: 12px; font-weight: 750; letter-spacing: .015em; }
.direction-pill, .report-pill { color: #49688e; background: #eef3f9; font-size: 11px; font-weight: 750; border-radius: 99px; padding: 4px 8px; }
.report-pill { color: #9a661b; background: #fff4d8; }
.call-card h3 { font-size: 20px; letter-spacing: -.025em; margin: 10px 0 6px; }
.call-card h3 a { text-decoration: none; }
.call-card h3 a:hover { color: #315bb3; }
.call-meta { flex-wrap: wrap; gap: 7px; color: #6a7890; font-size: 13px; }
.call-excerpt { max-width: 960px; color: #6e7d93; font-size: 14px; line-height: 1.45; margin: 12px 0 0; overflow-wrap: anywhere; }
.error-text { color: #b14449; }
.call-card-side { min-width: 180px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 25px; }
.grade-badge, .status-badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 7px 11px; border-radius: 99px; color: #60718b; background: #eef2f7; font-size: 11px; font-weight: 800; }
.grade-green { color: #16704e; background: #def4e9; }
.grade-yellow { color: #9a6a16; background: #fff1d3; }
.grade-red, .status-error { color: #aa414c; background: #fde8eb; }
.status-waiting { color: #3f67ad; background: #e9f0ff; }
.card-open { color: #315bb3; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.card-open:hover { text-decoration: underline; }
.pagination { justify-content: space-between; gap: 16px; padding: 21px 4px; color: #77859a; font-size: 13px; }
.pagination a { color: #315bb3; font-weight: 750; text-decoration: none; }
.empty-state { text-align: center; border: 1px dashed #cbd8e9; border-radius: 18px; background: #fff; padding: 60px 25px; }
.empty-icon { display: block; color: #87a4d9; font-size: 44px; line-height: 1; }
.empty-state h3, .empty-state h2 { font-size: 23px; margin: 15px 0 8px; }
.empty-state p { color: #8290a5; font-size: 14px; margin: 0; }

/* Conversation */
.detail-topbar { margin-bottom: 19px; }
.detail-neighbors { gap: 17px; }
.detail-neighbors a { color: #63738c; font-size: 13px; font-weight: 750; text-decoration: none; }
.detail-neighbors a:hover { color: #315bb3; }
.conversation-hero { justify-content: space-between; align-items: flex-start; gap: 25px; padding: 28px 32px; border-radius: 18px; background: #203a65; color: #fff; }
.conversation-hero .eyebrow { color: #8ab6ff; }
.conversation-hero h1 { font-size: clamp(28px, 3vw, 39px); margin: 8px 0 14px; overflow-wrap: anywhere; }
.hero-meta { flex-wrap: wrap; gap: 10px 19px; color: #ccdaed; font-size: 13px; }
.history-link { display: inline-block; margin-top: 18px; color: #c3d8ff; }
.jump-insight { margin-left: 19px; }
.hero-status { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; text-align: right; }
.hero-status small { color: #aec2df; font-size: 11px; }
.audio-panel { justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px solid #dfe8f3; background: #fff; border-radius: 14px; padding: 15px 24px; margin-top: 15px; }
.audio-label { gap: 12px; }
.audio-label strong, .audio-label small { display: block; }
.audio-label strong { font-size: 13px; }
.audio-label small { color: #8a98ac; font-size: 11px; margin-top: 2px; }
.audio-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #315bb3; background: #e9f0ff; border-radius: 50%; font-size: 20px; }
.audio-panel audio { width: min(100%, 420px); height: 36px; }
.audio-error, .audio-unavailable { width: 100%; color: #a94751; font-size: 12px; margin: 0; }
.audio-error[hidden] { display: none; }
.analysis-layout { margin-top: 16px; }
.transcript-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.transcript-panel { min-width: 0; overflow: hidden; }
.panel-heading { padding: 24px 27px 20px; }
.panel-heading h2 { font-size: 21px; letter-spacing: -.025em; margin: 6px 0 0; }
.panel-count { color: #8794a7; font-size: 12px; }
.conversation-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px 27px; color: #94a0b1; font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; background: #f8fafc; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.transcript-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 17px 27px; border-bottom: 1px solid #edf1f5; scroll-margin-top: 20px; }
.transcript-row:last-child { border-bottom: 0; }
.message-cell, .comment-cell { min-width: 0; }
.speaker-line { gap: 7px; color: #57677f; font-size: 11px; margin-bottom: 8px; }
.speaker-dot { width: 7px; height: 7px; border-radius: 50%; background: #6c91d0; }
.speaker-dot.client, .speaker-dot.voice-1 { background: #9276bb; }
.speaker-dot.voice-2 { background: #49a7a0; }
.speaker-dot.voice-3 { background: #d39561; }
.time-link, .time-label { margin-left: auto; padding: 0; border: 0; background: transparent; color: #8c9ab0; font-size: 11px; font-variant-numeric: tabular-nums; }
.time-link { cursor: pointer; }
.time-link:hover { color: #315bb3; text-decoration: underline; }
.message-bubble { border-radius: 4px 12px 12px 12px; background: #eef4fd; padding: 14px 16px; font-size: 13px; line-height: 1.57; overflow-wrap: anywhere; }
.message-bubble.client, .message-bubble.voice-1 { background: #f3eef9; }
.message-bubble.voice-2 { background: #e8f6f3; }
.message-bubble.voice-3 { background: #fff3e9; }
.comment-cell { border-left: 2px solid #e9eef6; padding: 4px 0 4px 16px; align-self: stretch; }
.comment-cell.has-comment { border-color: #b8c9e8; }
.comment-header { gap: 8px; margin-bottom: 9px; }
.comment-index { color: #9ba8b8; font-size: 11px; font-weight: 800; }
.comment-header .grade-badge { padding: 4px 8px; font-size: 10px; }
.comment-cell p { font-size: 13px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.comment-pending { color: #a0aab9; font-size: 12px; line-height: 1.5; }
.suggested-wording { margin-top: 11px; border-radius: 9px; background: #f5f8fd; padding: 11px 13px; }
.suggested-wording span { color: #4f6da1; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.suggested-wording blockquote { color: #40516e; font-size: 12px; line-height: 1.5; margin: 5px 0 0; overflow-wrap: anywhere; }
.plain-transcript { padding: 5px 27px 28px; }
.plain-transcript p { color: #8b98a8; font-size: 12px; }
.plain-transcript div { line-height: 1.65; overflow-wrap: anywhere; }
.detail-empty { margin-top: 20px; }

/* A single review before the transcript: context, conclusion, then practical advice. */
.call-review { margin:16px 0; padding:20px 24px 12px; border:1px solid #dce5f1; border-radius:16px; background:#fff; overflow-wrap:anywhere; }
.review-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.review-heading h2,.review-waiting h2 { margin:4px 0 0; font-size:23px; letter-spacing:-.025em; }
.review-stages { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; max-width:58%; }
.review-stages span { background:#f0f4fa; color:#50617a; padding:5px 9px; border-radius:7px; font-size:12px; font-weight:650; }
.review-stages .review-stage-positive { background:#eaf6ef; color:#287448; }
.review-context { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin-bottom:18px; }
.review-context>section:only-child { grid-column:1 / -1; }
.review-context h3 { font-size:16px; line-height:1.35; margin:0 0 7px; font-weight:800; color:#223b60; }
.review-context p,.review-advice-grid p { font-size:16px; line-height:1.55; margin:0 0 8px; color:#44536a; }
.review-context p:last-child,.review-advice-grid p:last-child { margin-bottom:0; }
.review-situation { padding-left:13px; border-left:3px solid #e5b088; }
.review-exchange { display:grid; gap:14px; padding-left:18px; border-left:1px solid #e4eaf3; }
.review-exchange>div:last-child:not(:first-child) h3 { color:#655384; }
.review-result { background:#f5f8fd; border-left:4px solid #9aacbf; border-radius:0 10px 10px 0; padding:15px 18px; }
.review-grade-green { border-left-color:#55a578; background:#f2f9f4; }
.review-grade-yellow { border-left-color:#ddb457; background:#fffaf0; }
.review-grade-red { border-left-color:#d37980; background:#fff5f5; }
.review-result-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.review-result h3 { font-size:18px; margin:0; color:#233753; }
.review-result>p { font-size:17px; line-height:1.55; color:#263950; margin:9px 0 0; }
.review-result .grade-badge { font-size:12px; padding:4px 9px; }
.review-explanations { margin-top:11px; border-top:1px solid #dde3e9; padding-top:10px; }
.review-explanations summary { cursor:pointer; color:#637187; font-size:13px; font-weight:650; }
.review-explanations dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 22px; margin:13px 0 0; }
.review-explanations dt { font-size:14px; font-weight:750; color:#344a69; margin:0 0 5px; }
.review-explanations dd { margin:0; font-size:15px; line-height:1.55; color:#506079; }
.review-recommendations { margin-top:19px; }
.review-recommendations>h3 { font-size:14px; color:#5f7394; margin:0 0 10px; font-weight:750; }
.review-advice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.review-advice-grid>section { padding:14px 17px; background:#f0f5ff; border-radius:10px; }
.review-advice-grid>section:only-child { grid-column:1 / -1; }
.review-advice-grid>section:nth-child(2) { background:#f5f3fc; }
.review-advice-grid h4 { font-size:16px; color:#294b81; margin:0 0 7px; }
.review-advice-grid>section:nth-child(2) h4 { color:#625184; }
.review-due { font-size:13px; line-height:1.5; color:#5b7090; margin-top:8px; }
.review-footer { margin-top:13px; font-size:11px; color:#8693a5; }
.review-waiting { padding-bottom:20px; }
.review-waiting p { font-size:16px; line-height:1.55; color:#637187; margin:10px 0 0; }
@media(max-width:750px) {
  .call-review { padding:17px 16px 12px; }
  .review-heading { flex-direction:column; gap:10px; }
  .review-stages { max-width:100%; justify-content:flex-start; }
  .review-context,.review-advice-grid,.review-explanations dl { grid-template-columns:minmax(0,1fr); gap:15px; }
  .review-exchange { border-left:0; padding:0; }
  .review-situation { padding-left:10px; }
  .review-result { padding:14px; }
  .review-result>p { font-size:16px; }
}

@media (max-width: 800px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-search { grid-column: span 2; }
  .page-heading { align-items: flex-start; }
}
@media (max-width: 600px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 64px; }
  .page-shell { width: min(100% - 28px, 1180px); margin: 25px auto 60px; }
  .header-actions { gap: 12px; }
  .user-name { display: none; }
  .brand { font-size: 17px; }
  .login-card, .welcome-card { padding: 28px 22px; }
  .page-heading { display: block; }
  .page-heading h1 { font-size: 36px; }
  .subtle-link { display: inline-block; margin-top: 13px; }
  .stat-grid { gap: 9px; margin-bottom: 16px; }
  .stat-card { min-height: 108px; padding: 15px; }
  .stat-card strong { font-size: 28px; }
  .stat-card small { font-size: 10px; }
  .filter-panel { padding: 19px 17px; }
  .filter-form { gap: 12px; }
  .field label { font-size: 11px; }
  .call-card { display: block; padding: 19px; }
  .call-card-side { flex-direction: row; align-items: center; margin-top: 17px; gap: 12px; }
  .list-tabs a { font-size: 11px; padding: 8px 10px; }
  .list-count { font-size: 11px; }
  .conversation-hero { display: block; padding: 23px; }
  .hero-status { align-items: flex-start; text-align: left; margin-top: 18px; }
  .jump-insight { display: block; margin-left: 0; margin-top: 10px; }
  .conversation-columns { display: none; }
  .transcript-row { grid-template-columns: 1fr; gap: 13px; padding: 17px 19px; }
  .comment-cell { margin-left: 12px; }
  .panel-heading { padding: 21px 19px; }
  .audio-panel { padding: 15px 18px; }
  .audio-panel audio { width: 100%; }
}

.admin-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid #e2e8f0; overflow-wrap:anywhere; }
.admin-form { display:flex; flex-wrap:wrap; align-items:end; gap:16px; margin-top:20px; }
.admin-form .field { min-width:200px; }
.notice { padding:16px; border-radius:10px; background:#e8f7ee; }
.filter-panel + .filter-panel { margin-top:24px; }

/* Shared settings, client history and weekly report */
.main-nav { display:flex; align-items:center; gap:5px; }
.main-nav a { padding:10px 13px; border-radius:9px; text-decoration:none; color:#63728a; font-size:14px; font-weight:650; }
.main-nav a[aria-current], .main-nav a:hover { background:#edf3ff; color:#315bb3; }
.small { font-size:14px; }
.settings-row { display:flex; align-items:center; gap:20px; padding:18px 0; border-bottom:1px solid #edf1f5; overflow-wrap:anywhere; }
.settings-row:last-child { border-bottom:0; }
.settings-row > div:first-child { flex:1; min-width:0; }
.settings-row p { margin:3px 0; }
.workspace-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:24px 0; }
.workspace-grid > .filter-panel { margin:0; min-width:0; }
.queue-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.notice.warning { background:#fff3dc; color:#815d1c; font-size:14px; }
.editor-card { max-width:680px; padding:30px; background:white; border:1px solid #e2e8f0; border-radius:18px; margin:24px auto; }
.edit-form, .selection-form { display:grid; gap:16px; }
.edit-form { margin-top:24px; }
.check-label { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:650; cursor:pointer; }
.check-label input { width:19px; height:19px; flex-shrink:0; accent-color:#315bb3; }
textarea { font:inherit; }
.field textarea { width:100%; min-height:85px; resize:vertical; padding:12px; border:1px solid #d7e0eb; border-radius:9px; color:#1c2c47; background:white; }
.field textarea:focus { outline:2px solid #4b73c3; outline-offset:2px; }
.form-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.form-actions > * { margin:0; }
#report-selection { margin-top:16px; }
#report-selection summary { cursor:pointer; font-size:16px; font-weight:700; line-height:1.6; }
#report-selection[open] .section-topline { margin:12px 0 16px; }
#report-selection .report-pill { margin-left:10px; }
.selection-form .primary-button { justify-self:start; margin:0; }
.selection-form .small { margin:0; }
.history-card { padding:26px; margin:18px 0; border:1px solid #e2e8f0; border-radius:16px; background:#fff; overflow-wrap:anywhere; }
.history-card .section-topline { gap:16px; flex-wrap:wrap; }
.history-card h2, .history-card h3 { margin:12px 0; }
.summary-text { font-size:15px; line-height:1.65; margin:18px 0; }
.advice-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.advice-grid > div { background:#f5f8fd; padding:16px; border-radius:10px; min-width:0; }
.advice-grid h3 { font-size:13px; margin:0 0 8px; color:#315bb3; }
.advice-grid p { font-size:14px; margin:0; }
.report-note { padding:15px 18px; border-left:3px solid #dab45a; background:#fffbf1; margin:20px 0; }
.report-note p { font-size:14px; margin:6px 0 0; }
.note-editor { margin-top:18px; border-top:1px solid #edf1f5; padding-top:16px; }
.note-editor summary { cursor:pointer; color:#315bb3; font-size:14px; font-weight:650; }
.note-editor[open] summary { margin-bottom:18px; }
.period-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:24px; }
.period-controls a { color:#315bb3; font-size:14px; }
.period-controls .admin-form { margin:0; }
.stat-card strong.date-stat { font-size:19px; margin-top:16px; }
@media(max-width:950px) {
  .header-inner { flex-wrap:wrap; padding:14px 0; gap:12px; }
  .main-nav { order:3; width:100%; }
  .workspace-grid { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .header-actions { gap:10px; }
  .main-nav { flex-wrap:wrap; }
  .main-nav a { flex:1; text-align:center; }
  .settings-row { flex-wrap:wrap; gap:12px; }
  .settings-row > div:first-child { flex-basis:100%; }
  .settings-row .subtle-link { margin:0 0 0 auto; padding:0; }
  .section-topline { flex-wrap:wrap; gap:12px; }
  .editor-card, .history-card { padding:20px; }
  .advice-grid { grid-template-columns:1fr; }
  .period-controls .admin-form, .period-controls .field { width:100%; }
  .call-card-side { flex-wrap:wrap; }
  .stat-card strong.date-stat { font-size:16px; }
  .subtle-link { white-space:normal; }
}
.issued-key { padding:18px; margin:18px 0; border:1px solid #b8d8c8; border-radius:12px; background:#f2fbf6; }
.issued-key label { display:block; font-weight:650; margin-bottom:10px; }
.issued-key textarea { display:block; width:100%; box-sizing:border-box; resize:vertical; margin-bottom:12px; font-family:monospace; }

.period-heading p { margin:0; }
.manager-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr)); gap:18px; margin-bottom:28px; }
.manager-stat-card { background:white; border:1px solid #dbe4ef; border-radius:16px; padding:24px; min-width:0; }
.manager-stat-card h3 { margin:0; font-size:18px; overflow-wrap:anywhere; }
.manager-call-number { display:flex; align-items:baseline; gap:12px; margin:18px 0; color:#203a65; }
.manager-call-number strong { font-size:46px; line-height:1; }
.manager-call-number span { font-size:14px; }
.short-call-stat { display:block; margin:10px 0; font-size:13px; line-height:1.5; color:#765b27; text-decoration:underline; text-underline-offset:3px; }
.short-call-stat:hover { color:#453312; }
.short-call-stat:focus-visible { outline:2px solid #4b73c3; outline-offset:3px; border-radius:3px; }
.manager-stat-card .short-call-stat { margin:-6px 0 20px; }
.manager-metrics { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 0 22px; }
.manager-metrics dt { color:#64748b; font-size:13px; }
.manager-metrics dd { margin:4px 0 0; font-size:22px; font-weight:650; }
.report-totals h2 { font-size:18px; color:#64748b; }
.error-history { margin-top:20px; border-top:1px solid #e2e8f0; padding-top:18px; }
.error-history summary { cursor:pointer; font-weight:650; color:#526581; }
.error-history .error-text { color:#526581; }
.connect-steps { font-size:17px; line-height:1.8; padding-left:24px; }
.connect-panel p { max-width:850px; line-height:1.6; }
#connection-preview { margin-top:20px; }
#connection-preview summary { cursor:pointer; color:#315bb3; margin-bottom:12px; }
#connection-text { width:100%; box-sizing:border-box; padding:14px; border:1px solid #d7e0eb; border-radius:9px; resize:vertical; font:13px/1.5 monospace; }
[hidden] { display:none !important; }

/* Report funnel */
.report-heading { margin-bottom: 15px; }
.report-filter { padding: 15px 18px; }
.report-filter-foot { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:10px; color:#718098; font-size:12px; }
.report-filter-foot a { color:#315bb3; }
.report-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin:12px 0 17px; }
.report-metric { display:flex; gap:8px; align-items:baseline; padding:9px 10px; background:#f1f5fa; border-radius:8px; min-width:0; text-decoration:none; }
a.report-metric:hover { background:#e6eef9; }
.report-metric strong { font-size:17px; color:#223b64; font-variant-numeric:tabular-nums; }
.report-metric span { font-size:11px; line-height:1.25; color:#64748b; }
.funnel-panel,.call-outcome,.offer-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:17px 19px; margin:13px 0; box-shadow:0 6px 22px rgba(28,51,87,.025); }
.funnel-overview { border-color:#cddbf1; }
.funnel-panel .section-topline { margin-bottom:10px; }
.funnel-panel .section-topline h2 { font-size:18px; }
.funnel-panel .section-topline p { margin:3px 0 0; font-size:12px; }
.funnel-chart { display:grid; gap:0; }
.funnel-axis,.funnel-stage { display:grid; grid-template-columns:minmax(175px,.8fr) minmax(0,2.4fr) 55px 76px; gap:12px; align-items:center; }
.funnel-axis { color:#65758d; font-size:11px; font-weight:700; padding:0 0 7px; border-bottom:1px solid #e8eef5; }
.funnel-axis span { line-height:1.4; }
.funnel-stage { position:relative; min-height:39px; border-bottom:1px solid #f0f3f8; }
.funnel-stage:last-child { border-bottom:0; }
.funnel-stage-label { font-size:13px; line-height:1.25; }
.funnel-lane { display:block; position:relative; padding:8px 0; min-width:0; text-decoration:none; border-radius:5px; }
.funnel-lane:hover .funnel-track { background:#e3ebf6; }
.funnel-lane:focus-visible { outline:2px solid #315bb3; outline-offset:2px; }
.funnel-track { display:block; height:13px; background:#eef2f7; border-radius:4px; overflow:hidden; }
.funnel-fill { display:flex; height:100%; border-radius:4px; overflow:hidden; }
.funnel-fill:not(.is-empty) { min-width:4px; }
.funnel-part { display:block; height:100%; min-width:0; flex-basis:0; }
.funnel-part-outgoing { background:#668bdb; }
.funnel-part-incoming { background:#63b4ad; }
.funnel-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:3px; }
.funnel-dot + .funnel-dot { margin-left:8px; }
.funnel-tooltip { position:absolute; z-index:2; right:0; bottom:calc(100% - 4px); padding:4px 8px; max-width:100%; border-radius:5px; background:#1d345a; color:#fff; font-size:11px; line-height:1.3; font-variant-numeric:tabular-nums; opacity:0; pointer-events:none; }
.funnel-stage:hover .funnel-tooltip,.funnel-stage:focus-within .funnel-tooltip { opacity:1; }
.funnel-count,.funnel-conversion,.funnel-column-heading { text-align:right; font-variant-numeric:tabular-nums; }
.funnel-count { font-size:14px; color:#1d345a; }
.funnel-conversion { font-size:12px; color:#62728a; }
.funnel-toggles { display:flex; flex-wrap:wrap; gap:5px; }
.funnel-toggles button { display:inline-flex; align-items:center; gap:3px; border:1px solid #d8e3f1; padding:4px 7px; border-radius:6px; background:#edf3fc; font-size:11px; color:#284775; cursor:pointer; }
.funnel-toggles button[data-direction-toggle="incoming"][aria-pressed="true"] { background:#e7f5f0; border-color:#b9dcd4; }
.funnel-toggles button[aria-pressed="false"] { background:#fafbfc; color:#8390a3; border-color:#e5e9ef; text-decoration:line-through; }
.funnel-toggles button[aria-pressed="false"] .funnel-dot { opacity:.3; }
.funnel-toggles button:focus-visible { outline:2px solid #315bb3; outline-offset:2px; }
[data-direction-link][aria-disabled="true"] { opacity:.45; cursor:default; }
.funnel-source-line { padding-top:9px; border-top:1px solid #e9eef5; color:#62728a; font-size:12px; line-height:1.45; }
.funnel-source-line strong { color:#243b60; }
.funnel-explain { margin-top:5px; color:#64748b; font-size:12px; }
.funnel-explain summary { cursor:pointer; color:#315bb3; }
.funnel-explain p { margin:7px 0 0; font-size:12px; line-height:1.5; }
.report-section-title { margin:18px 0 8px; }
.report-manager-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.funnel-manager { margin:0; min-width:0; padding:15px 16px; }
.funnel-manager .section-topline h3 { font-size:16px; margin:0; }
.funnel-manager .section-topline .subtle-link { font-size:12px; padding:0; }
.funnel-manager .funnel-axis,.funnel-manager .funnel-stage { grid-template-columns:minmax(128px,.8fr) minmax(0,1.6fr) 36px 62px; gap:7px; }
.funnel-manager .funnel-stage { min-height:35px; }
.funnel-manager .funnel-stage-label { font-size:11px; }
.funnel-manager .funnel-track { height:9px; }
.funnel-foot { color:#748299; font-size:11px; line-height:1.45; margin:9px 0 0; }
.report-empty { padding:25px; }
.report-empty h2 { font-size:17px; }
.source-pill { background:#eef2f9; color:#536c97; border-radius:99px; padding:4px 8px; font-size:11px; font-weight:650; }

/* Call outcome and proposals */
.showcase-card { padding:20px 22px; margin:14px 0; border:1px solid #dce5f1; border-radius:12px; background:#fff; overflow-wrap:anywhere; }
.showcase-header { display:flex; align-items:center; justify-content:space-between; gap:10px 18px; flex-wrap:wrap; }
.showcase-identity { display:flex; align-items:baseline; gap:8px 20px; flex-wrap:wrap; min-width:0; }
.showcase-identity h3 { margin:0; font-size:22px; font-weight:750; line-height:1.3; }
.showcase-identity a { text-decoration:none; }
.showcase-identity a:hover { text-decoration:underline; }
.showcase-manager { font-size:17px; color:#263b5a; }
.showcase-grade { display:inline-block; padding:6px 12px; border-radius:10px; font-size:16px; font-weight:750; line-height:1.4; }
.showcase-grade.grade-none { color:#5a6b82; background:#f0f3f7; }
.showcase-meta { display:flex; flex-wrap:wrap; gap:4px 16px; margin:8px 0 14px; font-size:14px; color:#62728a; }
.showcase-card h4 { margin:0 0 7px; font-size:16px; font-weight:750; line-height:1.4; text-transform:uppercase; letter-spacing:.015em; }
.showcase-card p { margin:0; font-size:18px; line-height:1.5; }
.showcase-technique { padding:13px 16px; margin:0 0 14px; border-left:4px solid #9561e5; border-radius:6px; background:#f3efff; }
.showcase-technique h4 { color:#6933b8; }
.showcase-technique p { font-size:19px; color:#233452; }
.showcase-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:14px 0; padding-top:13px; border-top:1px solid #e5ebf3; }
.showcase-columns section { min-width:0; }
.showcase-result { padding-right:20px; }
.showcase-result h4 { color:#233452; }
.showcase-next { padding-left:20px; border-left:1px solid #e5ebf3; }
.showcase-next h4 { color:#2460cb; }
.showcase-columns-single { grid-template-columns:1fr; }
.showcase-columns-single .showcase-result { padding-right:0; }
.showcase-note { display:flex; gap:6px 10px; padding:11px 14px; margin-top:13px; border-radius:8px; background:#fff5e2; color:#5f401e; font-size:16px; line-height:1.5; }
.showcase-note strong { flex-shrink:0; font-weight:750; }
.showcase-note div { min-width:0; }
.showcase-footer { display:flex; align-items:flex-start; gap:10px 20px; margin-top:13px; padding-top:12px; border-top:1px solid #e5ebf3; }
.showcase-editor { flex:1; min-width:0; font-size:15px; }
.showcase-editor summary { color:#315bb3; cursor:pointer; }
.showcase-editor summary:hover { text-decoration:underline; }
.showcase-editor summary:focus-visible { outline:2px solid #315bb3; outline-offset:3px; border-radius:3px; }
.showcase-editor .selection-form { margin-top:14px; }
.showcase-card .showcase-pending { font-size:16px; color:#62728a; margin-bottom:10px; }
.showcase-open { padding:0; font-size:15px; flex-shrink:0; }
@media(max-width:800px) {
  .showcase-card { padding:17px; }
  .showcase-columns { grid-template-columns:1fr; gap:14px; }
  .showcase-result { padding-right:0; }
  .showcase-next { padding-left:0; padding-top:12px; border-left:0; border-top:1px solid #e5ebf3; }
  .showcase-note { flex-direction:column; gap:3px; }
  .showcase-footer { flex-wrap:wrap; }
  .showcase-editor { flex-basis:100%; }
  .showcase-open { margin-left:auto; }
}
.outcome-badges { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.offer-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; margin:15px 0; }
.offer-details div { min-width:0; }
.offer-details dt { font-size:11px; color:#68788e; margin-bottom:3px; }
.offer-details dd { margin:0; line-height:1.5; overflow-wrap:anywhere; }
.offer-card { padding:21px 22px; }
.offer-card h2 { margin:0; font-size:22px; line-height:1.3; font-weight:750; }
.offer-card h2 a { text-decoration:none; }
.offer-card h2 a:hover { text-decoration:underline; }
.offer-header { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.offer-statuses { display:flex; flex-wrap:wrap; gap:5px; }
.offer-status { display:inline-block; padding:6px 12px; border-radius:99px; font-size:16px; font-weight:750; line-height:1.4; }
.offer-status-positive { background:#e8f5ed; color:#236745; }
.offer-status-neutral { background:#f0f3f7; color:#5a6b82; }
.offer-meta { display:flex; flex-wrap:wrap; gap:4px 15px; font-size:14px; color:#62728a; margin:7px 0 0; }
.offer-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:17px 0; padding-top:17px; border-top:1px solid #e2e8f0; }
.offer-column { min-width:0; padding:0 20px; border-left:1px solid #e2e8f0; }
.offer-column:first-child { padding-left:0; border-left:0; }
.offer-column:last-child { padding-right:0; }
.offer-column dt { margin:0 0 8px; font-size:16px; line-height:1.4; font-weight:750; text-transform:uppercase; letter-spacing:.02em; }
.offer-pain dt { color:#b44813; }
.offer-proposal dt { color:#2460cb; }
.offer-response dt { color:#6933b8; }
.offer-column dd { margin:0; color:#203453; font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.offer-column dd.muted { color:#63728a; }
.offer-next { display:flex; gap:14px; padding:12px 15px; background:#eef5fd; border-radius:8px; font-size:16px; line-height:1.5; color:#29476f; }
.offer-next strong { flex-shrink:0; font-weight:750; color:#203c68; }
.offer-next div { min-width:0; overflow-wrap:anywhere; }
.offer-due { display:block; margin-top:4px; font-size:14px; color:#617695; }
.offer-footer { display:flex; align-items:flex-start; gap:12px; margin-top:14px; padding-top:12px; border-top:1px solid #e9eef5; }
.offer-evidence { flex:1; min-width:0; font-size:15px; }
.offer-evidence summary { cursor:pointer; color:#62728a; }
.offer-evidence summary:hover { color:#315bb3; }
.offer-evidence summary:focus-visible { outline:2px solid #315bb3; outline-offset:3px; border-radius:3px; }
.offer-evidence dl { display:grid; gap:9px; margin:10px 0 0; }
.offer-evidence dt { color:#344964; font-size:14px; font-weight:750; margin-bottom:4px; }
.offer-evidence dd { margin:0; line-height:1.55; color:#344964; overflow-wrap:anywhere; }
.offer-open { margin-left:auto; flex-shrink:0; padding:0; font-size:15px; }

@media(max-width:800px) {
  .offer-columns { grid-template-columns:1fr; gap:12px; }
  .offer-column,.offer-column:first-child,.offer-column:last-child { border-left:0; padding:0 0 0 10px; border-left:2px solid #e1e8f1; }
  .offer-pain,.offer-pain:first-child { border-left-color:#e7b597; }
  .offer-proposal { border-left-color:#b3c7eb; }
  .offer-response,.offer-response:last-child { border-left-color:#d0bee7; }
  .offer-next { flex-direction:column; gap:3px; }
  .offer-footer { flex-wrap:wrap; }
  .offer-open { flex-shrink:1; }
}

@media(max-width:1100px) {
  .report-manager-grid { grid-template-columns:1fr; }
}
@media(max-width:650px) {
  .report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .funnel-panel,.call-outcome,.offer-card { padding:14px; }
  .funnel-axis,.funnel-stage,.funnel-manager .funnel-axis,.funnel-manager .funnel-stage { grid-template-columns:minmax(0,1fr) 40px 66px; gap:5px; }
  .funnel-axis span:first-child { display:none; }
  .funnel-stage-label { grid-column:1 / -1; font-size:12px; padding-top:6px; }
  .funnel-stage { padding-bottom:6px; }
  .funnel-manager .funnel-stage-label { font-size:12px; }
  .offer-details { grid-template-columns:1fr; }
}
/* Follow-up agenda: readable purpose, explicit deadline and compact actions. */
.contact-heading{margin:8px 0 22px}.contact-heading h1{margin:14px 0 8px}.contact-heading p{margin:0;color:#64748b}
.contact-editor{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:24px;align-items:start;max-width:1240px;margin:0 auto 30px}.contact-main{min-width:0}
.contact-context{background:#eef5ff;border:1px solid #dce7f8;border-radius:14px;padding:22px 24px;margin-bottom:20px;color:#263d5d}.contact-context h2,.contact-sidebar h2,.contact-completed h2{font-size:23px;line-height:1.3;margin:0 0 12px;color:#1b2e4a}.contact-context p{font-size:17px;line-height:1.55;margin:10px 0;overflow-wrap:anywhere}.contact-context .context-need{font-size:16px}.context-agreement{padding-top:12px;border-top:1px solid #d5e1f3}.context-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:14px;color:#586d8b}.contact-context details{font-size:15px}.contact-context summary{cursor:pointer}
.contact-editor .agenda-form{max-width:none;padding:24px;margin:0}.contact-editor label,.contact-task-actions label,.reminder-toast label{display:block;font-size:16px;font-weight:650;color:#293e5c}.contact-editor textarea,.contact-task-actions textarea,.reminder-toast textarea{display:block;box-sizing:border-box;width:100%;border:1px solid #ccd8e8;border-radius:9px;padding:12px;font:inherit;font-size:17px;font-weight:400;line-height:1.5;margin-top:8px;resize:vertical}.contact-editor input,.contact-editor select{font-size:16px}.contact-editor .contact-help{font-size:14px;line-height:1.5;margin:6px 0 0}.contact-current{background:#f3f6fb;border-radius:8px;padding:12px;margin:0;font-size:16px;color:#425571}.contact-reason textarea{border-color:#b9c9e1}.required-marker{color:#bd3838}.contact-sidebar{padding:24px}.contact-sidebar>p{font-size:15px;line-height:1.5;margin:0 0 20px}.contact-comment-form .button{margin-top:12px}.contact-timeline{list-style:none;margin:24px 0 0;padding:0;border-top:1px solid #e2e8f0}.contact-event{border-left:3px solid #b6c9e6;margin-top:18px;padding:0 0 0 14px;overflow-wrap:anywhere}.contact-event.rescheduled{border-left-color:#e9b968}.contact-event.completed{border-left-color:#7dbda0}.contact-event.cancelled{border-left-color:#dba3a3}.contact-event-top{display:flex;gap:6px;align-items:center;justify-content:space-between;flex-wrap:wrap}.contact-event-top strong{font-size:14px;background:#edf3fd;color:#335991;padding:4px 8px;border-radius:6px}.contact-event.rescheduled .contact-event-top strong{background:#fff2dc;color:#9b661b}.contact-event.completed .contact-event-top strong{background:#e9f6ed;color:#286d4b}.contact-event-top time,.contact-event-author{font-size:13px;color:#708097}.contact-event-author{margin-top:7px}.contact-event-body{font-size:16px;line-height:1.55;margin:10px 0 0;white-space:normal}.contact-event-dates{font-size:15px;line-height:1.7;margin:10px 0;color:#4d607b}.contact-history-empty{font-size:16px;color:#708097;padding:20px 0}.contact-task-actions{margin-top:20px;padding:20px 24px;border:1px solid #e2e8f0;border-radius:12px;background:white}.contact-task-actions .button{margin-top:12px}.contact-task-actions .text-button{margin-left:12px}.contact-completed{padding:24px}.reminder-toast form{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0}.reminder-toast [data-reminder-error]{color:#bd3838}
@media(max-width:900px){.contact-editor{grid-template-columns:minmax(0,1fr);gap:20px}.contact-sidebar{order:2}.contact-context,.contact-editor .agenda-form,.contact-sidebar,.contact-task-actions{padding:18px}.contact-heading h1{font-size:27px}.contact-event-top{align-items:flex-start}}
.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #315bb3;border-radius:9px;background:#315bb3;color:#fff;padding:11px 16px;font-size:15px;font-weight:650;line-height:1.3;cursor:pointer;text-decoration:none}.button:hover{background:#254b9b;color:#fff}.button.secondary{background:#fff;border-color:#cdd8e9;color:#315bb3}.button.secondary:hover{background:#edf3ff}.button:disabled{opacity:.6;cursor:wait}.agenda-filters select{padding:10px;border:1px solid #cdd8e9;border-radius:8px;background:#fff}.main-nav{flex-wrap:wrap}
.agenda-heading,.agenda-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.agenda-heading h1{margin:0 0 8px}.agenda-heading p{margin:0}.agenda-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.agenda-filters label{display:grid;gap:6px;font-size:15px}.agenda-filters select{min-width:170px}.push-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:430px}.push-controls .muted{font-size:14px;flex-basis:100%}
.agenda-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.agenda-tabs a{background:#fff;border:1px solid #dce4ef;border-radius:10px;padding:10px 15px;text-decoration:none;color:#46516b;font-size:16px}.agenda-tabs strong{margin-left:8px}.agenda-tabs a[aria-current]{background:#eaf1ff;border-color:#acc7ff;color:#2152b9}.agenda-list{display:grid;gap:12px}.agenda-card{display:grid;grid-template-columns:125px minmax(0,1fr) 180px;gap:22px;padding:22px;background:#fff;border:1px solid #dce4ef;border-radius:16px;align-items:start;border-left:4px solid #90b6fa}.agenda-card.is-overdue{border-left-color:#df6870;background:#fffafa}.agenda-time{display:grid;gap:6px;font-size:15px;color:#56627a}.agenda-time strong{font-size:27px;color:#24304a}.agenda-time b{font-size:14px;color:#bb3e4e}.agenda-body h2{font-size:21px;margin:12px 0 8px}.agenda-body p{font-size:18px;line-height:1.55;margin:8px 0;overflow-wrap:anywhere}.agenda-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px;color:#617089}.agenda-basis{padding:5px 9px;border-radius:7px;background:#edf2fd;color:#345d9c}.agenda-basis.agreed{background:#e4f5ec;color:#267447}.agenda-body details summary{font-size:15px;cursor:pointer;color:#566582}.agenda-body details p{font-size:16px}.agenda-body .muted{font-size:15px;margin-top:10px}.agenda-actions{display:grid;gap:12px;text-align:center}.agenda-actions .button{display:block;width:100%;box-sizing:border-box}.agenda-actions a:not(.button){font-size:15px}.agenda-actions form{margin:0}.agenda-form{max-width:800px;padding:24px;background:#fff;border-radius:16px}.agenda-form label{display:grid;gap:7px;font-size:16px;font-weight:650;margin-bottom:18px}.agenda-form input,.agenda-form select,.agenda-form textarea{font:inherit;box-sizing:border-box;width:100%;padding:11px;border:1px solid #cdd6e5;border-radius:8px;color:#26334c}.agenda-form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.agenda-form fieldset{margin:16px 0 24px;border:1px solid #dce4ef;border-radius:12px;padding:20px}.agenda-form legend{padding:0 8px;font-weight:700}.agenda-form .muted{font-size:15px;margin:0 0 20px}.agenda-cancel{margin:20px 0}.reminder-badge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;padding:1px 5px;border-radius:12px;background:#cf4656;color:#fff;font-size:12px}.reminder-toast{position:fixed;right:24px;bottom:24px;max-width:440px;background:#fff;box-shadow:0 12px 45px #1a305833;border:1px solid #cbd8f1;border-left:5px solid #467be7;padding:22px;border-radius:14px;z-index:30;font-size:16px}.reminder-toast strong{font-size:19px}.reminder-toast p{overflow-wrap:anywhere;line-height:1.5}.reminder-toast .button{margin:4px 5px 4px 0}.agenda-client-tasks{background:#fff;border:1px solid #dce4ef;border-radius:12px;padding:18px;margin:18px 0}.agenda-client-tasks p{font-size:17px}[hidden]{display:none!important}
@media(max-width:850px){.agenda-card{grid-template-columns:95px minmax(0,1fr);gap:16px;padding:18px}.agenda-actions{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;text-align:left}.agenda-actions .button{width:auto}.agenda-time strong{font-size:23px}.agenda-form-row{grid-template-columns:1fr;gap:0}.reminder-toast{left:12px;right:12px;bottom:12px;max-width:none}.agenda-toolbar{gap:14px}}
@media(max-width:480px){.agenda-card{grid-template-columns:1fr}.agenda-time{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.agenda-actions{grid-column:1}.agenda-body h2{font-size:19px}.agenda-tabs a{font-size:14px;padding:9px 11px}}
/* Keep contact editor controls readable over the shared agenda form defaults. */
.contact-editor .contact-plan textarea{font-size:17px;font-weight:400;margin-top:0;line-height:1.5}
.contact-editor .contact-plan .contact-help{font-size:14px;margin:6px 0 18px}
.contact-editor .contact-plan .contact-current{margin-bottom:18px}
.contact-editor .contact-plan .contact-reason{margin-bottom:0}
.contact-sidebar,.contact-completed{background:#fff;border:1px solid #dce4ef;border-radius:16px}
.context-source{color:#687d99;font-size:13px;margin:0 0 10px}
.contact-heading{max-width:1240px;margin:8px auto 22px}
@media(min-width:901px){.contact-sidebar{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}}
