:root {
  --antah-primary: #26366B;
  --antah-primary-dark: #17234a;
  --antah-accent: #FFD700;
  --antah-text: #222329;
  --antah-muted: #667085;
  --antah-bg: #FFF4EA;
  --antah-card: #FFFFFF;
  --antah-border: rgba(38, 54, 107, 0.16);
  --antah-soft: #F7F7F7;
  --danger: #B42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.22), transparent 28rem),
    linear-gradient(135deg, #fffaf4 0%, var(--antah-bg) 45%, #eef1ff 100%);
  color: var(--antah-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.coach-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
}

.coach-layout {
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 22px;
  align-items: stretch;
}

.report-panel,
.coach-card,
.coach-action-sidebar {
  border: 1px solid var(--antah-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(38, 54, 107, 0.16);
  overflow: hidden;
}

.report-panel {
  background: rgba(255, 255, 255, 0.88);
}

.report-panel-inner {
  position: sticky;
  top: 24px;
  min-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.panel-eyebrow {
  color: var(--antah-primary);
}

.report-panel h2 {
  margin: 0;
  color: var(--antah-primary);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.panel-lede {
  margin: -4px 0 4px;
  color: #475467;
  font-size: 1rem;
  line-height: 1.6;
}

.focus-card {
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 20px;
  background: #fff;
}

.highlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7cc 100%);
  border-color: rgba(255, 215, 0, 0.58);
}

.quiet-card {
  background: #f7f8fb;
}

.hub-status-card {
  background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
  border-color: rgba(38, 54, 107, 0.18);
}

.hub-status-card h3 {
  color: var(--antah-primary);
}

.focus-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--antah-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card h3 {
  margin: 0 0 8px;
  color: var(--antah-text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.focus-card p {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
  line-height: 1.55;
}

.report-library-card {
  display: grid;
  gap: 10px;
}

.report-library-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1.02rem;
  line-height: 1.25;
}

.report-library-note,
.report-library-detail,
.report-library-focus,
.report-library-meta,
.report-library-privacy {
  margin: 0;
  color: #475467;
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-library-list {
  display: grid;
  gap: 10px;
}

.report-library-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 16px;
  background: #fff;
}

.report-library-item.is-selected {
  border-color: rgba(255, 215, 0, 0.86);
  background: linear-gradient(135deg, #ffffff 0%, #fff9dc 100%);
}

.report-library-item-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.report-library-item h4 {
  margin: 0 0 3px;
  color: var(--antah-text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.report-library-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: var(--antah-primary);
  background: #eef2ff;
}

.report-library-pill.is-available {
  color: #067647;
  background: #ecfdf3;
}

.report-library-pill.is-preview,
.report-library-pill.is-activation {
  color: #7a4f00;
  background: #fff4d6;
}

.report-library-focus {
  color: var(--antah-text);
}

.report-library-privacy {
  color: var(--antah-muted);
  font-size: 0.8rem;
}

.report-library-button {
  min-height: 36px;
  justify-self: start;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--antah-primary);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.report-library-button:hover:not(:disabled),
.report-library-button:focus-visible:not(:disabled) {
  background: var(--antah-primary-dark);
  outline: none;
}

.report-library-button:disabled {
  cursor: default;
}

.report-library-button.is-current {
  color: var(--antah-primary);
  background: rgba(255, 215, 0, 0.34);
}

.report-library-button.is-muted {
  color: #667085;
  background: #f2f4f7;
}

.report-library-button.is-switch {
  background: var(--antah-primary);
}

.report-library-button.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.support-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.support-list li {
  position: relative;
  padding-left: 24px;
  color: #344054;
  font-size: 0.95rem;
  line-height: 1.45;
}

.support-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--antah-accent);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.22);
}

.report-actions {
  margin-top: auto;
  padding-top: 2px;
}

.report-link {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--antah-primary);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.report-link:hover,
.report-link:focus-visible {
  background: var(--antah-primary-dark);
  outline: none;
}

.report-link.is-disabled {
  background: #e4e7ec;
  color: #667085;
  cursor: not-allowed;
  pointer-events: none;
}

.report-hint {
  margin: 10px 0 0;
  color: var(--antah-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.coach-card {
  width: 100%;
  min-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
}

.coach-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--antah-primary), var(--antah-primary-dark));
  color: #fff;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--antah-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-pill.is-action {
  cursor: pointer;
}

.status-pill.is-action:hover,
.status-pill.is-action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.notice,
.setup-panel {
  margin: 18px 28px 0;
  padding: 15px 16px;
  border: 1px solid var(--antah-border);
  border-radius: 18px;
  background: #fffaf0;
  color: #344054;
  font-size: 0.95rem;
  line-height: 1.55;
}

.setup-panel {
  background: #f8faff;
  border-color: rgba(38, 54, 107, 0.18);
}

.setup-panel h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--antah-primary);
}

.setup-panel p {
  margin: 0;
}



.setup-connect-button {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--antah-primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.setup-connect-button:hover,
.setup-connect-button:focus-visible {
  background: var(--antah-primary-dark);
  outline: none;
}

.setup-connect-button.is-disabled {
  background: #e4e7ec;
  color: #667085;
  cursor: not-allowed;
  pointer-events: none;
}

.report-summary-panel {
  margin: 18px 28px 0;
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 14px 34px rgba(38, 54, 107, 0.08);
}

.report-summary-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-summary-eyebrow,
.report-summary-label {
  margin: 0 0 5px;
  color: var(--antah-primary);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-summary-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1.16rem;
  line-height: 1.2;
}

.report-summary-subtitle,
.report-summary-text,
.report-summary-list {
  margin: 0;
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.5;
}

.report-summary-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 0.74rem;
  font-weight: 900;
}

.report-summary-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-summary-group {
  padding: 12px;
  border: 1px solid rgba(38, 54, 107, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.report-summary-wide {
  grid-column: 1 / -1;
}

.report-summary-list {
  padding-left: 18px;
}

.report-summary-list li + li {
  margin-top: 4px;
}

.report-summary-loading {
  margin: 0;
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.5;
}


.notification-landing-message {
  width: 100%;
}

.notification-landing-card {
  width: min(100%, 640px);
  padding: 18px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 16px 36px rgba(38, 54, 107, 0.12);
}

.notification-landing-eyebrow {
  margin: 0 0 8px;
  color: var(--antah-primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notification-landing-title {
  margin: 0 0 8px;
  color: var(--antah-primary);
  font-size: 1.25rem;
  line-height: 1.2;
}

.notification-landing-body,
.notification-landing-note {
  margin: 0;
  color: #344054;
  line-height: 1.55;
}

.notification-landing-note {
  margin-top: 12px;
  color: #667085;
  font-size: 0.88rem;
}

.notification-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.notification-landing-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.notification-landing-button.primary {
  border: 1px solid var(--antah-primary);
  background: var(--antah-primary);
  color: #ffffff;
}

.notification-landing-button.secondary {
  border: 1px solid rgba(38, 54, 107, 0.18);
  background: #f7f8fb;
  color: var(--antah-primary);
}

.notification-landing-button:hover,
.notification-landing-button:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.38);
  outline-offset: 2px;
}


/* AI-M2P-C: Today’s Coach Plan front-screen card. */
.today-plan-panel {
  margin: 16px 28px 0;
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 14px 34px rgba(38, 54, 107, 0.08);
}

.today-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.today-plan-eyebrow {
  margin: 0 0 6px;
  color: var(--antah-primary);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.today-plan-header h2 {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1.16rem;
  line-height: 1.2;
}

.today-plan-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 0.74rem;
  font-weight: 900;
}

.today-plan-summary,
.today-plan-note {
  margin: 0;
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.5;
}

.today-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.today-plan-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(38, 54, 107, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.today-plan-label {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-plan-item strong {
  display: block;
  color: var(--antah-primary);
  font-size: 0.92rem;
  line-height: 1.35;
}

.today-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.today-plan-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--antah-primary);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.today-plan-button.primary {
  border-color: var(--antah-primary);
  background: var(--antah-primary);
  color: #ffffff;
}

.today-plan-button:hover:not(:disabled),
.today-plan-button:focus-visible:not(:disabled) {
  background: #fff7cc;
  border-color: rgba(255, 215, 0, 0.72);
  color: var(--antah-primary);
  outline: none;
}

.today-plan-button.primary:hover:not(:disabled),
.today-plan-button.primary:focus-visible:not(:disabled) {
  background: var(--antah-primary-dark);
  color: #ffffff;
}

.today-plan-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.today-plan-panel.is-compact {
  display: none;
}

.today-plan-compact-line {
  min-width: 0;
  margin: 0;
  color: var(--antah-primary);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.today-plan-panel.is-expanded .today-plan-compact-line,
.today-plan-panel.is-compact .today-plan-compact-line {
  display: none;
}

.today-plan-panel.is-compact .today-plan-header,
.today-plan-panel.is-compact .today-plan-summary,
.today-plan-panel.is-compact .today-plan-grid,
.today-plan-panel.is-compact .today-plan-note {
  display: none;
}

.today-plan-panel.is-compact .today-plan-actions {
  margin: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.today-plan-toggle-button {
  width: max-content;
}

.coach-header-actions .today-plan-toggle-button {
  min-height: 30px;
  padding: 6px 11px;
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 0.78rem;
  box-shadow: none;
}

.coach-header-actions .today-plan-toggle-button:hover:not(:disabled),
.coach-header-actions .today-plan-toggle-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.92);
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.today-plan-panel.is-expanded .today-plan-toggle-button {
  margin-bottom: 12px;
}

.today-plan-panel.is-compact #startTodayPlanButton,
.today-plan-panel.is-compact #makeTodayPlanSmallerButton,
.today-plan-panel.is-compact #chooseAnotherFocusButton {
  display: none;
}

.today-plan-panel.is-compact .today-plan-button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.coach-start-panel {
  margin: 16px 28px 0;
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(38, 54, 107, 0.07);
}

.coach-start-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.coach-start-copy h2 {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
  line-height: 1.25;
}

.coach-start-copy p {
  margin: 0;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.45;
}

.coach-start-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coach-start-button {
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--antah-primary);
  text-align: left;
  cursor: pointer;
}

.coach-start-button span,
.coach-start-button small {
  display: block;
}

.coach-start-button span {
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.coach-start-button small {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.32;
}

.coach-start-button:hover:not(:disabled),
.coach-start-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.72);
  background: #fffdf2;
  outline: none;
}

.coach-start-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quick-start-panel {
  margin: 16px 28px 0;
  padding: 14px 16px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 18px;
  background: #ffffff;
}

.quick-start-title {
  margin: 0 0 10px;
  color: var(--antah-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.quick-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-start-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--antah-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.quick-start-button:hover:not(:disabled),
.quick-start-button:focus-visible:not(:disabled) {
  background: #fff7cc;
  border-color: rgba(255, 215, 0, 0.72);
  outline: none;
}

.quick-start-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 28px;
  overflow-y: auto;
  min-height: 320px;
}

.message {
  display: flex;
  width: 100%;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.bubble {
  max-width: min(720px, 92%);
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.message.assistant .bubble {
  background: var(--antah-soft);
  border: 1px solid rgba(38, 54, 107, 0.09);
  color: var(--antah-text);
  border-top-left-radius: 6px;
}

.message.user .bubble {
  background: var(--antah-primary);
  color: #fff;
  border-top-right-radius: 6px;
}

.bubble.error {
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff4f2;
  color: var(--danger);
}

.bubble.system {
  background: #f2f4f7;
  color: var(--antah-muted);
  font-size: 0.9rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--antah-border);
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  width: 100%;
  resize: none;
  min-height: 54px;
  max-height: 180px;
  padding: 14px 15px;
  border: 1px solid rgba(38, 54, 107, 0.22);
  border-radius: 18px;
  outline: none;
  font: inherit;
  line-height: 1.45;
  background: #fff;
}

textarea:focus {
  border-color: var(--antah-primary);
  box-shadow: 0 0 0 4px rgba(38, 54, 107, 0.12);
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

button {
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.primary-button {
  background: var(--antah-primary);
  color: #fff;
}

.secondary-button {
  background: #f2f4f7;
  color: var(--antah-primary);
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled) {
  background: var(--antah-primary-dark);
}

.secondary-button:hover:not(:disabled),
.secondary-button:focus-visible:not(:disabled) {
  background: #e4e7ec;
}

.privacy-note {
  margin: 0;
  padding: 0 28px 22px;
  color: var(--antah-muted);
  font-size: 0.86rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.action-theme-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title button"
    "hint button";
  align-items: center;
  gap: 3px 12px;
  padding: 12px 13px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.action-theme-title {
  grid-area: title;
  color: #26366B;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-theme-hint {
  grid-area: hint;
  color: #5f6c8b;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.action-theme-setting .theme-toggle-button {
  grid-area: button;
  justify-self: end;
  min-height: 32px;
  border-color: rgba(38, 54, 107, 0.18);
  background: #f7f8fb;
  color: var(--antah-primary);
  box-shadow: none;
}

.action-theme-setting .theme-toggle-button:hover,
.action-theme-setting .theme-toggle-button:focus-visible {
  border-color: rgba(255, 215, 0, 0.72);
  background: #fff7cc;
  color: var(--antah-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}

@media (max-width: 980px) {
  .coach-layout {
    grid-template-columns: 1fr;
  }

  .report-panel-inner {
    position: static;
    min-height: auto;
  }

  .report-actions {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .coach-shell {
    padding: 0;
  }

  .coach-layout {
    gap: 0;
  }

  .report-panel,
  .coach-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .report-panel {
    border-top: 0;
  }

  .report-panel-inner {
    padding: 22px 18px;
  }

  .coach-card {
    min-height: 100vh;
    border-bottom: 0;
  }

  .coach-header {
    padding: 22px 18px 18px;
  }

  .notice,
  .setup-panel,
  .coach-start-panel,
  .quick-start-panel {
    margin: 14px 18px 0;
  }

  .quick-start-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-log {
    padding: 18px;
  }

  .chat-form {
    grid-template-columns: 1fr;
    padding: 14px 18px 18px;
  }

  .form-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .privacy-note {
    padding: 0 18px 18px;
  }
}

.end-session-button {
  border-color: rgba(38, 54, 107, 0.22);
  background: #fffaf0;
  color: var(--antah-primary);
}

.end-session-button:hover:not(:disabled),
.end-session-button:focus-visible:not(:disabled) {
  background: #fff7cc;
  border-color: rgba(255, 215, 0, 0.72);
  outline: none;
}

.bubble.has-task-card {
  width: min(720px, 94%);
  max-width: min(720px, 94%);
  background: #ffffff;
  border-color: rgba(38, 54, 107, 0.14);
}

.task-card-intro {
  margin-bottom: 14px;
  color: #344054;
  line-height: 1.55;
}

.task-ready-card {
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 10px 28px rgba(38, 54, 107, 0.08);
}

.task-card-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--antah-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-card-title {
  margin: 0 0 14px;
  color: var(--antah-primary);
  font-size: 1.15rem;
  line-height: 1.25;
}

.task-card-field {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(38, 54, 107, 0.09);
}

.task-card-label {
  color: var(--antah-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-card-value {
  margin: 0;
  color: var(--antah-text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.task-card-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f8fb;
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}

.task-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.task-card-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-size: 0.88rem;
  font-weight: 900;
}

.task-card-button:hover:not(:disabled),
.task-card-button:focus-visible:not(:disabled) {
  background: #fff7cc;
  border-color: rgba(255, 215, 0, 0.72);
  outline: none;
}

@media (max-width: 720px) {
  .bubble.has-task-card {
    width: 100%;
    max-width: 100%;
  }

  .task-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.task-card-button-save {
  background: var(--antah-primary);
  color: #ffffff;
  border-color: var(--antah-primary);
}

.task-card-button-save:hover:not(:disabled),
.task-card-button-save:focus-visible:not(:disabled) {
  background: var(--antah-primary-dark);
  border-color: var(--antah-primary-dark);
}

.task-card-status.is-saving {
  background: #fff7cc;
  color: var(--antah-primary);
}

.task-card-status.is-saved {
  background: #ecfdf3;
  color: var(--success);
}

.task-card-status.is-error {
  background: #fff4f2;
  color: var(--danger);
}

.task-ready-card.is-task-saved {
  border-color: rgba(6, 118, 71, 0.32);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.bubble.has-session-summary-draft {
  width: min(720px, 94%);
  max-width: min(720px, 94%);
  background: #ffffff;
  border-color: rgba(38, 54, 107, 0.14);
}

.session-summary-draft-card {
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
  box-shadow: 0 10px 24px rgba(38, 54, 107, 0.07);
}

.session-summary-draft-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--antah-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.session-summary-draft-text {
  margin: 0;
  color: var(--antah-text);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.session-summary-draft-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f8fb;
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}

.session-summary-draft-status.is-saving {
  background: #fff7cc;
  color: var(--antah-primary);
}

.session-summary-draft-status.is-saved {
  background: #ecfdf3;
  color: var(--success);
}

.session-summary-draft-status.is-error {
  background: #fff4f2;
  color: var(--danger);
}

.session-summary-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.session-summary-draft-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-size: 0.88rem;
  font-weight: 900;
}

.session-summary-draft-button:hover:not(:disabled),
.session-summary-draft-button:focus-visible:not(:disabled) {
  background: #fff7cc;
  border-color: rgba(255, 215, 0, 0.72);
  outline: none;
}

.session-summary-draft-button-save {
  background: var(--antah-primary);
  color: #ffffff;
  border-color: var(--antah-primary);
}

.session-summary-draft-button-save:hover:not(:disabled),
.session-summary-draft-button-save:focus-visible:not(:disabled) {
  background: var(--antah-primary-dark);
  border-color: var(--antah-primary-dark);
}

@media (max-width: 720px) {
  .bubble.has-session-summary-draft {
    width: 100%;
    max-width: 100%;
  }

  .session-summary-draft-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.task-card-status-helper {
  flex-basis: 100%;
  width: 100%;
  margin: 2px 0 -2px;
  color: var(--antah-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.task-card-status.task-done-state {
  background: #ecfdf3;
  color: var(--success);
}

.task-card-status.task-pause-state {
  background: #fff7cc;
  color: var(--antah-primary);
}

.task-ready-card.task-card-done-state {
  border-color: rgba(6, 118, 71, 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.task-ready-card.task-card-pause-state {
  border-color: rgba(255, 215, 0, 0.42);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}


.coach-action-sidebar {
  background: rgba(255, 255, 255, 0.88);
}

.coach-action-sidebar-inner {
  position: sticky;
  top: 24px;
  min-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.coach-action-sidebar-label {
  margin: 0;
  color: var(--antah-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saved-actions-panel {
  padding: 16px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 20px;
  background: #ffffff;
}

.saved-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.saved-actions-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
  font-weight: 900;
}

.saved-actions-state {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.saved-actions-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.saved-actions-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 14px;
  background: #f7f8fb;
}

.saved-actions-name {
  min-width: 0;
  color: var(--antah-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.saved-actions-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-size: 0.75rem;
  font-weight: 900;
}

.saved-actions-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.saved-actions-attention-note {
  padding: 8px 10px;
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 12px;
  background: rgba(255, 244, 234, 0.9);
  color: var(--antah-primary);
  font-weight: 800;
}

.saved-actions-filter-needs_attention .saved-actions-badge {
  background: #fff4ea;
  color: var(--antah-primary);
}

@media (max-width: 1180px) {
  .coach-layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  }

  .coach-action-sidebar {
    grid-column: 2;
  }

  .coach-action-sidebar-inner {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .coach-action-sidebar {
    grid-column: auto;
  }

  .coach-action-sidebar-inner {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .coach-action-sidebar {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .coach-action-sidebar-inner {
    padding: 18px;
  }

  .saved-actions-item {
    grid-template-columns: 1fr;
  }

  .saved-actions-badge {
    width: max-content;
  }
}

/* AI-M2K-UI-18A: restore natural center chat flow while keeping cleaner composer layout */
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.composer-main-row textarea {
  min-height: 64px;
}

.composer-main-row #sendButton {
  min-width: 104px;
  align-self: stretch;
}

.composer-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.composer-secondary-row button {
  min-height: 42px;
  padding: 0 16px;
}

.saved-actions-time {
  color: #475467;
}

@media (min-width: 981px) {
  .coach-shell {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .coach-layout,
  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    height: auto;
    max-height: none;
  }

  .coach-card {
    min-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
  }

  .chat-log {
    min-height: 320px;
    overflow-y: visible;
  }
}

@media (max-width: 980px) {
  .coach-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .coach-layout,
  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    height: auto;
    max-height: none;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .composer-main-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .composer-main-row #sendButton {
    min-width: 78px;
    padding: 0 14px;
  }

  .composer-secondary-row {
    justify-content: flex-start;
  }
}


/* AI-M2K-UI-19: independent column scrolling with normal chat intro flow */
@media (min-width: 981px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .coach-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px;
  }

  .coach-layout {
    height: calc(100vh - 40px);
    min-height: 0;
    align-items: stretch;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: static;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .coach-card {
    display: flex;
    flex-direction: column;
  }

  .coach-header {
    flex: 0 0 auto;
  }

  .chat-log {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 28px;
  }

  .chat-form,
  .privacy-note {
    flex: 0 0 auto;
  }

  .chat-log > .notice,
  .chat-log > .setup-panel,
  .chat-log > .coach-start-panel,
  .chat-log > .quick-start-panel,
  .chat-log > .chat-intro-block {
    margin: 0;
    flex: 0 0 auto;
  }

  .quick-start-panel {
    padding: 12px 14px;
  }

  .quick-start-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-start-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .composer-main-row textarea {
    min-height: 72px;
  }
}

/* AI-M2L: in-app reminder planning UI */
.saved-actions-reminder {
  color: #26366b;
  font-weight: 700;
}

.saved-actions-reminder.reminder-status-due,
.saved-actions-reminder.reminder-status-shown {
  color: #7a4b00;
}

.reminders-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.reminders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reminders-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
  font-weight: 900;
}

.reminders-state {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.reminders-list {
  display: grid;
  gap: 10px;
}

.reminder-group {
  display: grid;
  gap: 8px;
}

.reminder-group-title {
  margin: 0;
  color: var(--antah-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reminder-card {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 14px;
  background: #f7f8fb;
}

.reminder-card-due,
.reminder-card-missed {
  border-color: rgba(255, 215, 0, 0.65);
  background: #fffaf0;
}

.reminder-card-title {
  color: var(--antah-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.reminder-card-meta {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.reminder-card-actions,
.task-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reminder-button,
.task-reminder-choice {
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.reminder-button {
  border: 1px solid rgba(38, 54, 107, 0.18);
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.reminder-button:hover:not(:disabled),
.reminder-button:focus-visible:not(:disabled) {
  border-color: rgba(38, 54, 107, 0.35);
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.12);
}

.task-reminder-panel {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed rgba(38, 54, 107, 0.22);
  border-radius: 14px;
  background: #ffffff;
}

.task-reminder-title {
  margin: 0;
  color: var(--antah-text);
  font-size: 0.82rem;
  font-weight: 900;
}

.task-reminder-choice.is-selected {
  border-color: rgba(38, 54, 107, 0.4);
  background: #fff4ea;
}

@media (max-width: 720px) {
  .reminder-card-actions,
  .task-reminder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reminder-button,
  .task-reminder-choice {
    width: 100%;
  }
}

/* AI-M2L.1: exact reminder time + completion check-in UI */
.saved-actions-checkin {
  color: #26366b;
  font-weight: 700;
}

.saved-actions-checkin.checkin-status-due,
.saved-actions-checkin.checkin-status-shown {
  color: #7a4b00;
}

.checkins-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.checkins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkins-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
  font-weight: 900;
}

.checkins-state {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.checkins-list {
  display: grid;
  gap: 10px;
}

.checkin-group {
  display: grid;
  gap: 8px;
}

.checkin-group-title {
  margin: 0;
  color: var(--antah-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkin-card {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 14px;
  background: #f7f8fb;
}

.checkin-card-due,
.checkin-card-missed {
  border-color: rgba(255, 215, 0, 0.65);
  background: #fffaf0;
}

.checkin-card-title {
  color: var(--antah-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.checkin-card-meta {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.checkin-card-actions,
.task-checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkin-button,
.task-checkin-choice {
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.checkin-button {
  border: 1px solid rgba(38, 54, 107, 0.18);
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.checkin-button:hover:not(:disabled),
.checkin-button:focus-visible:not(:disabled) {
  border-color: rgba(38, 54, 107, 0.35);
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.12);
}

.task-reminder-time-row,
.task-checkin-panel {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed rgba(38, 54, 107, 0.22);
  border-radius: 14px;
  background: #ffffff;
}

.task-reminder-time-row[hidden] {
  display: none;
}

.task-reminder-time-label,
.task-checkin-title {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--antah-text);
  font-size: 0.82rem;
  font-weight: 900;
}

.task-reminder-time-field {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 12px;
  color: var(--antah-text);
  font: inherit;
}

.task-reminder-time-field:focus-visible {
  border-color: rgba(38, 54, 107, 0.42);
  outline: none;
  box-shadow: 0 0 0 4px rgba(38, 54, 107, 0.08);
}

.task-checkin-choice.is-selected {
  border-color: rgba(38, 54, 107, 0.4);
  background: #fff4ea;
}

@media (max-width: 720px) {
  .checkin-card-actions,
  .task-checkin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkin-button,
  .task-checkin-choice {
    width: 100%;
  }
}

/* AI-M2L.2: Action Hub workspace overlay */
.action-sidebar-summary {
  display: grid;
  gap: 10px;
}

.action-summary-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 18px;
  background: #ffffff;
  color: var(--antah-text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 54, 107, 0.08);
}

.action-summary-card:hover,
.action-summary-card:focus-visible {
  border-color: rgba(38, 54, 107, 0.32);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(38, 54, 107, 0.14);
}

.action-summary-title {
  color: var(--antah-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.action-summary-value {
  color: var(--antah-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.action-summary-hint {
  color: var(--antah-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.action-summary-note {
  padding: 12px 13px;
  border: 1px dashed rgba(38, 54, 107, 0.2);
  border-radius: 16px;
  background: rgba(255, 244, 234, 0.58);
  color: var(--antah-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.action-summary-cue {
  width: fit-content;
  margin-top: 3px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(38, 54, 107, 0.08);
  color: var(--antah-primary);
  font-size: 0.76rem;
  font-weight: 900;
}

.action-summary-card:hover .action-summary-cue,
.action-summary-card:focus-visible .action-summary-cue {
  background: var(--antah-primary);
  color: #ffffff;
}

.action-hub-open {
  overflow: hidden;
}

.action-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(34, 35, 41, 0.28);
  backdrop-filter: blur(10px);
}

.action-hub-overlay[hidden] {
  display: none !important;
}

.action-hub-panel {
  width: min(980px, 100%);
  height: min(860px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(23, 35, 74, 0.24);
}

.action-hub-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(38, 54, 107, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.action-hub-eyebrow {
  margin: 0 0 5px;
  color: var(--antah-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.action-hub-title {
  margin: 0;
  color: var(--antah-text);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.16;
}

.action-hub-close {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.action-hub-close:hover,
.action-hub-close:focus-visible {
  border-color: rgba(38, 54, 107, 0.34);
  outline: none;
}

.action-hub-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(38, 54, 107, 0.1);
  background: #f7f8fb;
}

.action-hub-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--antah-muted);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.action-hub-tab.is-active {
  border-color: rgba(38, 54, 107, 0.22);
  background: #ffffff;
  color: var(--antah-primary);
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.08);
}

.action-hub-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.action-hub-section[hidden] {
  display: none !important;
}

.action-hub-section .saved-actions-panel,
.action-hub-section .reminders-panel,
.action-hub-section .checkins-panel {
  margin: 0;
  border-radius: 22px;
  box-shadow: none;
}

.action-hub-section .saved-actions-list,
.action-hub-section .reminders-list,
.action-hub-section .checkins-list {
  gap: 12px;
}

.action-hub-settings-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 22px;
  background: #ffffff;
}

.action-hub-settings-card h3 {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
}

.action-hub-settings-status,
.action-hub-settings-note {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.action-hub-settings-status {
  color: var(--antah-text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .action-hub-overlay {
    justify-content: center;
    padding: 14px;
  }

  .action-hub-panel {
    width: 100%;
    height: calc(100vh - 28px);
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .action-hub-overlay {
    padding: 0;
  }

  .action-hub-panel {
    height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .action-hub-header {
    padding: 18px;
  }

  .action-hub-tabs {
    padding: 10px 14px;
  }

  .action-hub-body {
    padding: 14px;
  }
}

/* AI-M2L.3: saved action filter chips inside Action Hub */
.saved-actions-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}

.saved-actions-filter-row[hidden] {
  display: none;
}

.saved-actions-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.saved-actions-filter-chip:hover,
.saved-actions-filter-chip:focus-visible {
  border-color: rgba(38, 54, 107, 0.32);
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.saved-actions-filter-chip.is-active {
  background: var(--antah-primary);
  border-color: var(--antah-primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(38, 54, 107, 0.16);
}

.saved-actions-filter-label {
  white-space: nowrap;
}

.saved-actions-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(38, 54, 107, 0.08);
  color: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.saved-actions-filter-chip.is-active .saved-actions-filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* AI-M2L.4 — adjust / reschedule time */
.schedule-move-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed rgba(38, 54, 107, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.schedule-move-title {
  color: var(--antah-text);
  font-size: 0.86rem;
  line-height: 1.3;
}

.schedule-move-actions,
.schedule-move-time-row,
.saved-actions-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.schedule-move-button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.schedule-move-button:hover:not(:disabled),
.schedule-move-button:focus-visible:not(:disabled) {
  border-color: rgba(38, 54, 107, 0.35);
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.12);
  outline: none;
}

.schedule-move-button:disabled,
.schedule-move-time-field:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.schedule-move-time-field {
  min-height: 34px;
  min-width: min(230px, 100%);
  padding: 7px 10px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: var(--antah-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-move-state {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.schedule-move-state.is-saving {
  color: var(--antah-primary);
}

.schedule-move-state.is-saved {
  color: #057a46;
}

.schedule-move-state.is-error {
  color: #9b1c1c;
}

.saved-actions-schedule-actions {
  grid-column: 1 / -1;
  margin-top: 5px;
}

.saved-actions-schedule-actions .schedule-move-button {
  min-height: 30px;
  padding: 5px 10px;
  background: rgba(38, 54, 107, 0.06);
}



/* AI-M2M-D1: Simple notification toggle and preference controls */
.notification-readiness-card {
  gap: 12px;
}

.notification-simple-card h3 {
  margin-bottom: 2px;
}

.notification-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(38, 54, 107, 0.09);
  border-radius: 16px;
  background: rgba(38, 54, 107, 0.035);
}

.notification-main-toggle {
  background: #ffffff;
  border-color: rgba(38, 54, 107, 0.16);
}

.notification-toggle-label {
  color: var(--antah-primary);
  font-size: 0.93rem;
  font-weight: 900;
}

.notification-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.notification-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.notification-switch-visual {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(38, 54, 107, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.notification-switch-visual::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(34, 35, 41, 0.18);
  transition: transform 0.18s ease;
}

.notification-switch input:checked + .notification-switch-visual {
  background: rgba(46, 125, 50, 0.82);
}

.notification-switch input:checked + .notification-switch-visual::after {
  transform: translateX(22px);
}

.notification-switch input:focus-visible + .notification-switch-visual {
  outline: 3px solid rgba(255, 215, 0, 0.45);
  outline-offset: 2px;
}

.notification-switch input:disabled + .notification-switch-visual {
  opacity: 0.58;
}

.notification-readiness-status {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.notification-readiness-status.is-neutral {
  background: rgba(38, 54, 107, 0.08);
  color: var(--antah-primary);
}

.notification-readiness-status.is-pending {
  background: rgba(255, 215, 0, 0.22);
  color: #6f5800;
}

.notification-readiness-status.is-connected {
  background: rgba(46, 125, 50, 0.14);
  color: #17692d;
}

.notification-readiness-status.is-blocked {
  background: rgba(176, 55, 55, 0.1);
  color: #9b2e2e;
}

.notification-preferences {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.notification-preferences[hidden] {
  display: none;
}

.notification-preferences h4 {
  margin: 0;
  color: var(--antah-primary);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.notification-pref-toggle {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.notification-readiness-button {
  width: fit-content;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.notification-readiness-button:hover,
.notification-readiness-button:focus-visible {
  border-color: rgba(38, 54, 107, 0.34);
  outline: none;
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.1);
}

.notification-readiness-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.notification-test-button {
  margin-top: 2px;
}

.notification-test-note {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--antah-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.notification-test-note.is-pending {
  color: #6f5800;
}

.notification-test-note.is-success {
  color: #17692d;
}

.notification-test-note.is-error {
  color: #9b2e2e;
}

/* AI-M2M-D2G2: focused notification action popup */
.focused-notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 11050;
  display: grid;
  place-items: center;
  padding: 22px;
}

.focused-notification-overlay[hidden] {
  display: none;
}

.focused-notification-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(34, 35, 41, 0.42);
  cursor: pointer;
}

.focused-notification-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 28px 72px rgba(34, 35, 41, 0.28);
}

.focused-notification-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.focused-notification-eyebrow {
  margin: 0 82px 8px 0;
  color: var(--antah-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focused-notification-title {
  margin: 0 82px 18px 0;
  color: var(--antah-text);
  font-size: clamp(1.42rem, 3vw, 2rem);
  line-height: 1.12;
}

.focused-notification-item {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid rgba(255, 215, 0, 0.75);
  border-radius: 22px;
  background: rgba(255, 244, 234, 0.72);
}

.focused-notification-item-title {
  color: var(--antah-text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.focused-notification-item-meta,
.focused-notification-question,
.focused-notification-status,
.focused-notification-fallback {
  margin: 0;
  color: var(--antah-muted);
  line-height: 1.45;
}

.focused-notification-question {
  color: var(--antah-primary);
  font-weight: 900;
}

.focused-notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 3px;
}

.focused-notification-button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--antah-primary);
  font-weight: 900;
  cursor: pointer;
}

.focused-notification-button.primary {
  border-color: var(--antah-primary);
  background: var(--antah-primary);
  color: #ffffff;
}

.focused-notification-button.ghost {
  background: rgba(38, 54, 107, 0.06);
}

.focused-notification-button:hover,
.focused-notification-button:focus-visible,
.focused-notification-close:hover,
.focused-notification-close:focus-visible {
  outline: none;
  box-shadow: 0 8px 18px rgba(38, 54, 107, 0.14);
}

.focused-notification-status.is-saving {
  color: #6f5800;
}

.focused-notification-status.is-saved {
  color: #17692d;
}

.focused-notification-status.is-error {
  color: #9b2e2e;
}

.focused-notification-item .schedule-move-panel {
  margin-top: 6px;
}

.focused-snooze-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.focused-snooze-title {
  color: var(--antah-primary);
  font-size: 0.92rem;
  font-weight: 900;
}

.focused-snooze-actions,
.focused-snooze-custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.focused-snooze-custom-input {
  min-height: 40px;
  width: min(180px, 100%);
  padding: 9px 12px;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: var(--antah-text);
  font-weight: 800;
}

.focused-snooze-custom-input:focus {
  outline: none;
  border-color: rgba(38, 54, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(38, 54, 107, 0.08);
}

.focused-snooze-status {
  margin: 0;
  color: var(--antah-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.focused-snooze-status.is-saving {
  color: #6f5800;
}

.focused-snooze-status.is-saved {
  color: #17692d;
}

.focused-snooze-status.is-error {
  color: #9b2e2e;
}

@media (max-width: 620px) {
  .focused-notification-overlay {
    align-items: end;
    padding: 12px;
  }

  .focused-notification-card {
    max-height: 88vh;
    padding: 22px;
    border-radius: 24px;
  }

  .focused-notification-title,
  .focused-notification-eyebrow {
    margin-right: 72px;
  }
}

/* AI-M2M-D2I1A: make inactive reminder/check-in history less confusing */
.saved-actions-reminder.reminder-status-dismissed,
.saved-actions-reminder.reminder-status-cancelled,
.saved-actions-reminder.reminder-status-completed,
.saved-actions-checkin.checkin-status-dismissed,
.saved-actions-checkin.checkin-status-cancelled,
.saved-actions-checkin.checkin-status-completed {
  color: var(--antah-muted);
  font-weight: 700;
}

.saved-actions-checkin.checkin-status-cancelled,
.saved-actions-reminder.reminder-status-cancelled {
  font-style: italic;
}

.saved-actions-filter-needs_attention .saved-actions-schedule-actions .schedule-move-button {
  white-space: nowrap;
}

.saved-actions-filter-needs_attention .saved-actions-schedule-actions .schedule-move-button:last-child {
  border-style: dashed;
}


@media (max-width: 720px) {
  .report-summary-panel {
    margin: 14px 16px 0;
    padding: 14px;
  }

  .report-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-summary-body {
    grid-template-columns: 1fr;
  }
}

/* AI-M2N-D3: chat-first coach layout + report tools modals */
.report-tools-card {
  display: grid;
  gap: 10px;
}

.report-tools-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 1rem;
  line-height: 1.3;
}

.report-tools-note {
  margin: 0;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.5;
}

.report-tools-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.report-tool-button {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--antah-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(38, 54, 107, 0.14);
}

.report-tool-button.secondary {
  border: 1px solid rgba(38, 54, 107, 0.16);
  background: #f3f6ff;
  color: var(--antah-primary);
  box-shadow: none;
}

.report-tool-button:hover:not(:disabled),
.report-tool-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(38, 54, 107, 0.18);
}

.report-tool-button:disabled {
  background: #e4e7ec;
  color: #667085;
  cursor: not-allowed;
  box-shadow: none;
}

.coach-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 35, 74, 0.48);
  backdrop-filter: blur(6px);
}

.coach-modal-overlay[hidden] {
  display: none;
}

.coach-modal-panel {
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(38, 54, 107, 0.18);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(23, 35, 74, 0.3);
}

.coach-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(38, 54, 107, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.coach-modal-eyebrow {
  margin: 0 0 5px;
  color: var(--antah-primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.coach-modal-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

.coach-modal-close {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--antah-primary);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.coach-modal-close:hover,
.coach-modal-close:focus-visible {
  background: #f3f6ff;
}

.coach-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 26px 28px;
  scroll-padding: 22px 26px 28px;
  scrollbar-gutter: stable;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf4 100%);
}

.chat-history-intro {
  margin-bottom: 16px;
}

.chat-history-transcript {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-history-message {
  max-width: min(760px, 100%);
}

.chat-history-message.is-user {
  align-self: flex-end;
}

.chat-history-message.is-assistant {
  align-self: flex-start;
}

.chat-history-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 4px 5px;
  color: var(--antah-muted);
  font-size: 0.78rem;
}

.chat-history-label {
  color: var(--antah-primary);
  font-weight: 900;
}

.chat-history-time {
  font-weight: 700;
}

.chat-history-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  padding: 13px 15px;
  background: #ffffff;
  color: var(--antah-text);
  line-height: 1.55;
}

.chat-history-message.is-user .chat-history-bubble {
  background: #eef3ff;
  border-color: rgba(38, 54, 107, 0.18);
}

.chat-history-empty {
  margin-top: 6px;
}

.coach-modal-intro {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.coach-modal-intro-text,
.coach-modal-state,
.coach-modal-empty-text {
  margin: 0;
  color: #475467;
  font-size: 0.94rem;
  line-height: 1.55;
}

.coach-modal-empty {
  padding: 18px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 20px;
  background: #ffffff;
}

.coach-modal-empty-title {
  margin: 0 0 6px;
  color: var(--antah-primary);
  font-size: 1rem;
}

.report-library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.report-library-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--antah-primary);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.report-library-tab.is-active {
  background: var(--antah-primary);
  color: #fff;
}

.report-library-modal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-intelligence-section {
  margin-top: 18px;
}

.report-intelligence-section-title {
  margin: 0 0 10px;
  color: var(--antah-primary);
  font-size: 1.05rem;
  line-height: 1.3;
}

.priority-question-list,
.report-intelligence-unavailable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.priority-question-card,
.report-intelligence-unavailable {
  padding: 14px;
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: #fff;
}

.priority-question-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.priority-question-title,
.report-intelligence-unavailable-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 0.96rem;
  line-height: 1.3;
}

.priority-question-bin {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff4cc;
  color: #7a4b00;
  font-size: 0.72rem;
  font-weight: 900;
}

.priority-question-action,
.report-intelligence-unavailable-text {
  margin: 0 0 10px;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.5;
}

.report-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-discuss-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(38, 54, 107, 0.16);
  border-radius: 999px;
  background: #f3f6ff;
  color: var(--antah-primary);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.report-discuss-button:hover:not(:disabled),
.report-discuss-button:focus-visible:not(:disabled) {
  background: #fff4ea;
  border-color: rgba(255, 215, 0, 0.8);
}

.report-discuss-button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

@media (min-width: 981px) {
  .coach-card {
    min-width: 0;
  }

  .chat-form {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(38, 54, 107, 0.08);
  }
}

@media (max-width: 720px) {
  .coach-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .coach-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .coach-modal-header,
  .coach-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .report-library-modal-list,
  .priority-question-list,
  .report-intelligence-unavailable-grid,
  .report-summary-body {
    grid-template-columns: 1fr;
  }
}


/* AI-M2N-D3A: compact chat-first polish + prioritized report tools */
.report-panel-inner {
  gap: 14px;
  padding: 22px;
}

.report-panel h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.panel-lede {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.focus-card {
  padding: 14px;
}

.report-tools-card {
  order: -1;
  gap: 8px;
}

.report-tools-note {
  font-size: 0.84rem;
  line-height: 1.4;
}

.report-tool-button {
  min-height: 36px;
  font-size: 0.84rem;
}

.coach-header {
  align-items: center;
  padding: 14px 26px 12px;
  gap: 14px;
}

.coach-header .eyebrow {
  margin-bottom: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.coach-header h1 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.02;
}

.coach-header .subtitle {
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.status-pill {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.notice,
.setup-panel,
.coach-start-panel {
  margin: 10px 22px 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.quick-start-panel {
  margin: 10px 22px 0;
  padding: 9px 12px;
  border-radius: 14px;
}

.quick-start-title {
  margin-bottom: 7px;
  font-size: 0.82rem;
}

.quick-start-actions {
  gap: 7px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

.quick-start-button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.8rem;
}

.chat-log {
  gap: 10px;
  padding: 12px 22px;
  min-height: 0;
}

.bubble {
  padding: 11px 13px;
  font-size: 0.94rem;
  line-height: 1.46;
}

.chat-form {
  padding: 10px 22px 12px;
  border-top: 1px solid rgba(38, 54, 107, 0.12);
}

.composer-main-row,
.composer-compact-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.composer-main-row textarea,
.composer-compact-row textarea {
  min-height: 42px;
  max-height: 120px;
  padding: 10px 13px;
  border-radius: 18px;
  line-height: 1.35;
}

.composer-main-row #sendButton,
.composer-compact-row #sendButton {
  min-width: 82px;
  min-height: 42px;
  align-self: stretch;
  padding: 0 14px;
  border-radius: 16px;
}

.composer-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.composer-menu-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--antah-primary);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: none;
}

.composer-menu-button:hover,
.composer-menu-button:focus-visible {
  background: #e4e7ec;
  outline: 3px solid rgba(255, 215, 0, 0.32);
  outline-offset: 2px;
}

.composer-menu-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 35, 74, 0.18);
}

.composer-menu-panel[hidden] {
  display: none;
}

.composer-menu-panel button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 0.86rem;
}

.composer-menu-panel .end-session-button {
  background: #fff8e6;
}

.composer-secondary-row {
  display: none;
}

/* NBHWC-M2B2A: compact Quick Chat / Deep Session selector inside composer row */
.coach-mode-selector-wrap {
  position: relative;
  flex: 0 0 auto;
}

.coach-mode-selector-button {
  min-width: 108px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  background: #f7f8fb;
  color: var(--antah-primary);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: none;
}

.coach-mode-selector-button:hover:not(:disabled),
.coach-mode-selector-button:focus-visible:not(:disabled) {
  background: #ffffff;
  outline: 3px solid rgba(255, 215, 0, 0.32);
  outline-offset: 2px;
}

.coach-mode-selector-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.coach-mode-current-short {
  display: none;
}

.coach-mode-caret {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1;
}

.coach-mode-selector-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 35;
  width: 230px;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 35, 74, 0.18);
}

.coach-mode-selector-panel[hidden] {
  display: none;
}

.coach-mode-option-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 2px;
  justify-content: stretch;
  padding: 9px 11px;
  border-radius: 13px;
  background: #f7f8fb;
  color: var(--antah-primary);
  text-align: left;
  box-shadow: none;
}

.coach-mode-option-button.is-active {
  background: #eef4ff;
  border-color: rgba(38, 54, 107, 0.2);
}

.coach-mode-option-button:hover:not(:disabled),
.coach-mode-option-button:focus-visible:not(:disabled) {
  outline: 3px solid rgba(255, 215, 0, 0.26);
  outline-offset: 2px;
}

.coach-mode-option-title {
  font-size: 0.86rem;
  font-weight: 900;
}

.coach-mode-option-helper {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.privacy-note {
  display: none;
}

.report-library-button.is-muted {
  color: #667085;
  background: #f2f4f7;
}

@media (min-width: 981px) {
  .coach-header {
    padding: 14px 26px 12px;
  }

  .chat-log {
    padding: 12px 22px;
  }

  .chat-log > .notice,
  .chat-log > .setup-panel,
  .chat-log > .coach-start-panel,
  .chat-log > .quick-start-panel,
  .chat-log > .chat-intro-block {
    margin: 0;
  }

  .quick-start-actions {
    flex-wrap: wrap;
    overflow: visible;
  }

  .quick-start-button {
    flex: 0 1 auto;
    white-space: normal;
  }

  .composer-main-row textarea,
  .composer-compact-row textarea {
    min-height: 42px;
  }
}

@media (max-width: 980px) {
  .coach-header {
    padding: 14px 18px 12px;
  }

  .chat-form {
    padding: 10px 18px 12px;
  }
}

@media (max-width: 560px) {
  .composer-main-row,
  .composer-compact-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .composer-menu-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .coach-mode-selector-wrap {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
  }

  .composer-main-row textarea,
  .composer-compact-row textarea {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .composer-main-row #sendButton,
  .composer-compact-row #sendButton {
    grid-column: 3;
    grid-row: 2;
    min-height: 38px;
    min-width: 72px;
  }

  .composer-menu-panel {
    width: 176px;
  }

  .coach-mode-selector-button {
    width: 100%;
    min-width: 0;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .coach-mode-current-full {
    display: none;
  }

  .coach-mode-current-short {
    display: inline;
  }

  .coach-mode-selector-panel {
    width: min(230px, calc(100vw - 38px));
  }
}

/* D4 Patch 1B — AECI report intelligence modal */
.report-intel-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff7df 100%);
}

.report-intel-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-intel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid rgba(38, 54, 107, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.report-intel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(38, 54, 107, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--antah-primary);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.report-intel-tab:hover,
.report-intel-tab:focus-visible {
  border-color: rgba(255, 215, 0, 0.9);
  background: #fff9db;
  outline: none;
}

.report-intel-tab.is-active {
  background: var(--antah-primary);
  color: #fff;
  border-color: var(--antah-primary);
}

.report-intel-panels {
  min-height: 280px;
}

.report-intel-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-intel-panel[hidden] {
  display: none;
}

.report-intel-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-intel-metric-card,
.report-intel-info-card,
.report-intel-domain-card {
  border: 1px solid rgba(38, 54, 107, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(38, 54, 107, 0.06);
}

.report-intel-metric-card {
  padding: 13px;
}

.report-intel-metric-label,
.report-intel-info-title,
.report-intel-domain-status,
.priority-question-meta {
  margin: 0 0 5px;
  color: var(--antah-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-intel-metric-value {
  display: block;
  margin: 0;
  color: var(--antah-primary);
  font-size: 1.4rem;
  line-height: 1.15;
}

.report-intel-metric-detail,
.report-intel-info-text,
.report-intel-domain-text,
.report-intel-list,
.report-intel-privacy-note {
  margin: 6px 0 0;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.5;
}

.report-intel-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-intel-info-card {
  padding: 14px;
}

.report-intel-info-card.is-wide {
  grid-column: 1 / -1;
}

.report-intel-info-card.is-highlight {
  border-color: rgba(255, 215, 0, 0.55);
  background: linear-gradient(135deg, #ffffff 0%, #fff7df 100%);
}

.report-intel-mini-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6ff;
  color: var(--antah-primary);
  font-size: 0.95rem;
  font-weight: 900;
}

.report-intel-list {
  padding-left: 18px;
}

.report-intel-list li + li {
  margin-top: 4px;
}

.report-intel-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-intel-domain-card {
  padding: 14px;
}

.report-intel-domain-card.is-recommended {
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(135deg, #ffffff 0%, #fff8dc 100%);
}

.report-intel-domain-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.report-intel-domain-title {
  margin: 0;
  color: var(--antah-primary);
  font-size: 0.98rem;
  line-height: 1.3;
}

.report-intel-domain-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--antah-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.report-intel-domain-badge {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff4cc;
  color: #7a4b00;
  font-size: 0.72rem;
  font-weight: 900;
}

.report-intel-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.report-intel-soft-state {
  box-shadow: none;
}

.priority-question-list-detailed {
  grid-template-columns: 1fr;
}

.priority-question-action.strong {
  font-weight: 800;
  color: #344054;
}

@media (max-width: 980px) {
  .report-intel-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-intel-card-grid,
  .report-intel-domain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .report-intel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-padding-inline: 8px;
  }

  .report-intel-tab {
    flex: 0 0 auto;
    max-width: 220px;
  }

  .report-intel-metric-grid {
    grid-template-columns: 1fr;
  }
}


/* AI-M2N-D4A2: calmer Priority Questions cards inside AECI Summary */
.priority-question-note {
  margin-bottom: 0;
}

.priority-question-list-polished {
  gap: 14px;
}

.priority-question-card-polished {
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
}

.priority-question-title-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.priority-question-card-polished .priority-question-meta {
  margin: 0;
}

.priority-question-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.priority-question-detail {
  padding: 12px;
  border: 1px solid rgba(38, 54, 107, 0.1);
  border-radius: 14px;
  background: rgba(247, 247, 247, 0.72);
}

.priority-question-detail.is-highlight {
  border-color: rgba(255, 215, 0, 0.56);
  background: #fffaf0;
}

.priority-question-detail-label {
  margin: 0 0 5px;
  color: var(--antah-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.priority-question-detail-text {
  margin: 0;
  color: #475467;
  font-size: 0.9rem;
  line-height: 1.5;
}

.priority-question-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .priority-question-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-question-detail.is-highlight {
    grid-column: 1 / -1;
  }
}

/* Responsive Coach Hub staging for tablet and narrow mobile widths */
@media (min-width: 981px) and (max-width: 1100px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  body {
    overflow-x: hidden;
  }

  .coach-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 18px;
  }

  .coach-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .coach-action-sidebar {
    grid-column: auto;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .coach-card {
    min-height: min(720px, calc(100vh - 36px));
  }

  .chat-log {
    min-height: 360px;
    overflow-y: visible;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }

  .coach-shell,
  .coach-layout {
    width: 100%;
    max-width: 100%;
  }

  .coach-layout {
    min-width: 0;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    width: 100%;
    min-width: 0;
  }

  .coach-card {
    min-height: calc(100vh - 32px);
  }

  .chat-log {
    min-height: 360px;
  }

  .report-panel-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .report-panel-inner > .panel-eyebrow,
  .report-panel-inner > h2,
  .report-panel-inner > .panel-lede,
  .report-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .report-panel-inner {
    display: flex;
    gap: 12px;
  }

  .coach-card {
    min-height: 100vh;
  }

  .chat-log {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .coach-header {
    align-items: flex-start;
  }

  .status-pill {
    max-width: 42%;
    white-space: normal;
    text-align: center;
  }

  .action-hub-header {
    align-items: center;
    gap: 10px;
  }

  .action-hub-title {
    font-size: 1.25rem;
  }

  .action-hub-close {
    flex: 0 0 auto;
  }

  .action-hub-body {
    padding: 12px;
  }

  .action-hub-section .saved-actions-item {
    grid-template-columns: 1fr;
  }

  .action-hub-section .saved-actions-badge {
    justify-self: start;
  }
}

/* AI-M2N-D5: final mobile responsive reset
   Goal: true one-column mobile flow with chat reachable between report tools and Action Hub.
   This block intentionally sits at the end so it overrides earlier staged responsive rules. */

/* Mobile-first safety baseline. Desktop/tablet layouts are restored below. */
.coach-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* Full desktop: restore three-column Coach Hub. */
@media (min-width: 1181px) {
  .coach-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 22px;
    align-items: stretch;
  }

  .report-panel {
    order: initial;
  }

  .coach-card {
    order: initial;
  }

  .coach-action-sidebar {
    order: initial;
    grid-column: auto;
  }
}

/* Tablet / narrow desktop: keep report tools and chat side-by-side, place Action Hub below chat. */
@media (min-width: 981px) and (max-width: 1180px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .coach-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 18px;
  }

  .coach-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 18px;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .coach-action-sidebar {
    grid-column: 2;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .coach-card {
    min-height: min(720px, calc(100vh - 36px));
  }

  .chat-log {
    min-height: 360px;
  }
}

/* Phone and small tablet: force a real single-column app flow. */
@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(255, 215, 0, 0.16), transparent 22rem),
      linear-gradient(135deg, #fffaf4 0%, var(--antah-bg) 52%, #eef1ff 100%);
  }

  .coach-shell {
    width: 100%;
    min-height: 100dvh;
    height: auto !important;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible !important;
    padding: 12px;
  }

  .coach-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch;
  }

  .report-panel {
    order: 1 !important;
  }

  .coach-card {
    order: 2 !important;
  }

  .coach-action-sidebar {
    order: 3 !important;
    grid-column: auto !important;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(38, 54, 107, 0.11);
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: static !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .report-panel-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .report-panel-inner > .panel-eyebrow,
  .report-panel-inner > h2,
  .report-panel-inner > .panel-lede,
  .report-actions {
    grid-column: 1 / -1;
  }

  .focus-card {
    min-width: 0;
  }

  .coach-card {
    display: flex;
    flex-direction: column;
    min-height: auto !important;
  }

  .coach-header,
  .notice,
  .setup-panel,
  .coach-start-panel,
  .today-plan-panel,
  .quick-start-panel,
  .chat-log,
  .chat-form,
  .privacy-note {
    flex: 0 0 auto;
  }

  .chat-log {
    min-height: clamp(280px, 44dvh, 420px) !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .chat-form {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 28px rgba(38, 54, 107, 0.08);
  }

  .coach-modal-overlay,
  .action-hub-overlay,
  .focused-notification-overlay {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Phone portrait: make the report/tools area compact so chat appears quickly. */
@media (max-width: 720px) {
  .coach-shell {
    padding: 0 !important;
  }

  .coach-layout {
    gap: 10px !important;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    border-radius: 0 !important;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .report-panel-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .report-panel h2 {
    font-size: 1.28rem;
    line-height: 1.12;
  }

  .panel-lede,
  .report-tools-note,
  .focus-card p,
  .report-hint {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .focus-card {
    padding: 12px;
    border-radius: 16px;
  }

  .report-tools-card {
    order: -2;
  }

  .report-actions {
    margin-top: 0;
    padding-top: 0;
  }

  .report-link {
    min-height: 42px;
    border-radius: 14px;
  }

  /* Keep the first mobile screen focused on access + chat. */
  .report-panel-inner > section[aria-label="What the coach can help with"],
  .report-panel-inner > section[aria-label="Coaching frame"] {
    display: none !important;
  }

  .coach-header {
    padding: 14px 14px 12px;
  }

  .coach-header h1 {
    font-size: 1.42rem;
  }

  .coach-header .subtitle {
    font-size: 0.84rem;
  }

  .status-pill {
    max-width: none;
    min-height: 28px;
    font-size: 0.76rem;
  }

  .notice,
  .setup-panel,
  .coach-start-panel,
  .today-plan-panel,
  .quick-start-panel {
    margin: 10px 14px 0 !important;
    padding: 10px 12px;
  }

  .coach-start-actions {
    grid-template-columns: 1fr;
  }

  .coach-start-button {
    min-height: 0;
    padding: 9px;
  }

  .chat-log {
    min-height: clamp(260px, 42dvh, 380px) !important;
    padding: 14px !important;
  }

  .chat-form {
    padding: 10px 14px 12px !important;
  }

  .coach-action-sidebar-inner {
    padding: 14px !important;
  }

  .coach-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .coach-modal-panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
  }

  .coach-modal-header {
    padding: 16px 16px 12px;
  }

  .coach-modal-body {
    padding: 16px;
  }

  .action-hub-panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .coach-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .status-pill {
    align-self: flex-start;
    max-width: 100%;
  }

  .composer-main-row,
  .composer-compact-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .composer-main-row textarea,
  .composer-compact-row textarea {
    min-width: 0;
  }

  .composer-main-row #sendButton,
  .composer-compact-row #sendButton {
    min-width: 70px;
    padding: 0 12px;
  }

  .coach-mode-selector-panel,
  .composer-menu-panel {
    max-width: calc(100vw - 28px);
  }
}


@media (max-width: 900px) {
  .today-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .today-plan-header {
    flex-direction: column;
    gap: 8px;
  }

  .today-plan-header h2 {
    font-size: 1rem;
  }

  .today-plan-summary,
  .today-plan-note {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .today-plan-actions {
    gap: 8px;
  }

  .today-plan-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .today-plan-panel.is-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .today-plan-panel.is-compact .today-plan-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .today-plan-panel.is-compact .today-plan-button {
    flex: 0 0 auto;
    min-height: 34px;
  }
}

/* AI-M2Q-D1: targeted rail header and collapse controls only */
.report-panel,
.coach-action-sidebar {
  position: relative;
}

.rail-toggle-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(38, 54, 107, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--antah-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.rail-toggle-button:hover,
.rail-toggle-button:focus-visible {
  border-color: rgba(255, 215, 0, 0.88);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 12px 24px rgba(38, 54, 107, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.report-panel-inner,
.coach-action-sidebar-inner {
  padding-top: 68px;
}

.rail-section-heading,
.action-rail-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(38, 54, 107, 0.12);
}

.rail-section-heading .eyebrow,
.action-rail-heading .coach-action-sidebar-label {
  margin: 0 0 8px;
}

.rail-section-heading h2 {
  margin: 0;
}

.rail-section-heading .panel-lede {
  margin: 8px 0 0;
}

.report-tools-card .focus-label {
  display: none;
}

.report-tools-card .report-tools-title {
  margin-top: 0;
}

.coach-action-sidebar-label {
  margin: 0;
}

.coach-layout {
  transition: grid-template-columns 0.18s ease, gap 0.18s ease;
}

@media (min-width: 981px) {
  body.is-report-rail-collapsed .coach-layout {
    grid-template-columns: 76px minmax(0, 1fr) minmax(260px, 320px);
  }

  body.is-action-rail-collapsed .coach-layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) 76px;
  }

  body.is-report-rail-collapsed.is-action-rail-collapsed .coach-layout {
    grid-template-columns: 76px minmax(0, 1fr) 76px;
  }

  body.is-report-rail-collapsed .report-panel-inner,
  body.is-action-rail-collapsed .coach-action-sidebar-inner {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }

  body.is-report-rail-collapsed .report-panel,
  body.is-action-rail-collapsed .coach-action-sidebar {
    min-width: 0;
  }

  body.is-report-rail-collapsed .report-rail-toggle,
  body.is-action-rail-collapsed .action-rail-toggle {
    left: 50%;
    right: auto;
    width: 50px;
    min-width: 50px;
    padding: 7px 0;
    transform: translateX(-50%);
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }

  body.is-report-rail-collapsed .report-rail-toggle:hover,
  body.is-report-rail-collapsed .report-rail-toggle:focus-visible,
  body.is-action-rail-collapsed .action-rail-toggle:hover,
  body.is-action-rail-collapsed .action-rail-toggle:focus-visible {
    transform: translateX(-50%) translateY(-1px);
  }
}

@media (max-width: 980px) {
  .rail-toggle-button {
    position: static;
    display: flex;
    align-self: center;
    width: fit-content;
    margin: 12px auto 16px;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    padding-top: 22px;
  }

  body.is-report-rail-collapsed .report-panel-inner,
  body.is-action-rail-collapsed .coach-action-sidebar-inner {
    display: none !important;
  }

  body.is-report-rail-collapsed .report-panel,
  body.is-action-rail-collapsed .coach-action-sidebar {
    padding: 14px 18px;
  }
}

/* AI-M2Q-D2: targeted premium contrast + Antah gold hover polish only */
:root {
  --antah-gold-hover: rgba(255, 215, 0, 0.92);
  --antah-gold-soft: rgba(255, 215, 0, 0.20);
  --antah-gold-softer: rgba(255, 215, 0, 0.11);
  --antah-button-shadow: 0 14px 28px rgba(38, 54, 107, 0.16);
  --antah-button-shadow-soft: 0 10px 22px rgba(38, 54, 107, 0.12);
}

/* Restore premium Antah hover language across user-facing controls. */
.report-tool-button:not(:disabled),
.report-link:not(.is-disabled),
.setup-connect-button:not(.is-disabled),
.primary-button:not(:disabled),
.secondary-button:not(:disabled),
.today-plan-button:not(:disabled),
.quick-start-button:not(:disabled),
.task-card-button:not(:disabled),
.session-summary-draft-button:not(:disabled),
.reminder-button:not(:disabled),
.checkin-button:not(:disabled),
.schedule-move-button:not(:disabled),
.action-summary-card,
.action-summary-cue,
.saved-actions-filter-chip:not(:disabled),
.notification-readiness-button:not(:disabled),
.rail-toggle-button {
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.report-tool-button:hover:not(:disabled),
.report-tool-button:focus-visible:not(:disabled),
.report-link:hover:not(.is-disabled),
.report-link:focus-visible:not(.is-disabled),
.setup-connect-button:hover:not(.is-disabled),
.setup-connect-button:focus-visible:not(.is-disabled),
.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled),
.secondary-button:hover:not(:disabled),
.secondary-button:focus-visible:not(:disabled),
.today-plan-button:hover:not(:disabled),
.today-plan-button:focus-visible:not(:disabled),
.quick-start-button:hover:not(:disabled),
.quick-start-button:focus-visible:not(:disabled),
.task-card-button:hover:not(:disabled),
.task-card-button:focus-visible:not(:disabled),
.session-summary-draft-button:hover:not(:disabled),
.session-summary-draft-button:focus-visible:not(:disabled),
.reminder-button:hover:not(:disabled),
.reminder-button:focus-visible:not(:disabled),
.checkin-button:hover:not(:disabled),
.checkin-button:focus-visible:not(:disabled),
.schedule-move-button:hover:not(:disabled),
.schedule-move-button:focus-visible:not(:disabled),
.saved-actions-filter-chip:hover:not(:disabled),
.saved-actions-filter-chip:focus-visible:not(:disabled),
.notification-readiness-button:hover:not(:disabled),
.notification-readiness-button:focus-visible:not(:disabled),
.rail-toggle-button:hover,
.rail-toggle-button:focus-visible {
  border-color: var(--antah-gold-hover) !important;
  box-shadow: 0 0 0 3px var(--antah-gold-soft), var(--antah-button-shadow) !important;
  outline: none;
  transform: translateY(-1px);
}

/* Keep primary actions premium, not washed out, while still showing the gold accent on hover. */
.primary-button,
.report-tool-button,
.today-plan-button.primary,
.task-card-button-save,
.session-summary-draft-button-save,
.setup-connect-button:not(.is-disabled) {
  border: 1px solid rgba(38, 54, 107, 0.24);
  background: linear-gradient(135deg, var(--antah-primary) 0%, var(--antah-primary-dark) 100%);
  color: #ffffff;
  box-shadow: var(--antah-button-shadow-soft);
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled),
.report-tool-button:hover:not(:disabled),
.report-tool-button:focus-visible:not(:disabled),
.today-plan-button.primary:hover:not(:disabled),
.today-plan-button.primary:focus-visible:not(:disabled),
.task-card-button-save:hover:not(:disabled),
.task-card-button-save:focus-visible:not(:disabled),
.session-summary-draft-button-save:hover:not(:disabled),
.session-summary-draft-button-save:focus-visible:not(:disabled),
.setup-connect-button:hover:not(.is-disabled),
.setup-connect-button:focus-visible:not(.is-disabled) {
  background: linear-gradient(135deg, var(--antah-primary-dark) 0%, #101a3a 100%) !important;
  color: #ffffff !important;
}

/* Secondary/chip controls get a cleaner premium hover without looking like primary actions. */
.secondary-button,
.report-tool-button.secondary,
.today-plan-button:not(.primary),
.quick-start-button,
.task-card-button,
.session-summary-draft-button,
.reminder-button,
.checkin-button,
.schedule-move-button,
.saved-actions-filter-chip,
.notification-readiness-button,
.rail-toggle-button {
  border: 1px solid rgba(38, 54, 107, 0.20);
  background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
  color: var(--antah-primary);
}

.secondary-button:hover:not(:disabled),
.secondary-button:focus-visible:not(:disabled),
.report-tool-button.secondary:hover:not(:disabled),
.report-tool-button.secondary:focus-visible:not(:disabled),
.today-plan-button:not(.primary):hover:not(:disabled),
.today-plan-button:not(.primary):focus-visible:not(:disabled),
.quick-start-button:hover:not(:disabled),
.quick-start-button:focus-visible:not(:disabled),
.task-card-button:hover:not(:disabled),
.task-card-button:focus-visible:not(:disabled),
.reminder-button:hover:not(:disabled),
.reminder-button:focus-visible:not(:disabled),
.checkin-button:hover:not(:disabled),
.checkin-button:focus-visible:not(:disabled),
.schedule-move-button:hover:not(:disabled),
.schedule-move-button:focus-visible:not(:disabled),
.saved-actions-filter-chip:hover:not(:disabled),
.saved-actions-filter-chip:focus-visible:not(:disabled),
.notification-readiness-button:hover:not(:disabled),
.notification-readiness-button:focus-visible:not(:disabled),
.rail-toggle-button:hover,
.rail-toggle-button:focus-visible {
  background: linear-gradient(135deg, #ffffff 0%, #fff7cc 100%) !important;
  color: var(--antah-primary) !important;
}

/* Header action pill: keep Connect report clear and premium. */
.status-pill.is-action {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.status-pill.is-action:hover,
.status-pill.is-action:focus-visible {
  border-color: var(--antah-gold-hover) !important;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 12px 24px rgba(0, 0, 0, 0.16);
  outline: none;
  transform: translateY(-1px);
}

/* Disabled controls should look disabled but remain readable. */
button:disabled,
.report-tool-button:disabled,
.quick-start-button:disabled,
.today-plan-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.setup-connect-button.is-disabled,
.report-link.is-disabled,
.notification-readiness-button:disabled {
  opacity: 1 !important;
  border: 1px solid rgba(38, 54, 107, 0.16) !important;
  background: #eef1f6 !important;
  color: #697386 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Send button: stronger contrast even when enabled, clearer disabled state when no session/report. */
#sendButton.primary-button:not(:disabled) {
  background: linear-gradient(135deg, var(--antah-primary) 0%, #1b2857 100%);
  color: #ffffff;
}

#sendButton.primary-button:disabled {
  background: #8a94b3 !important;
  color: #ffffff !important;
  border-color: rgba(38, 54, 107, 0.12) !important;
}

/* Action Hub cards: subtle gold hover cue without changing the D1 layout. */
.action-summary-card:hover,
.action-summary-card:focus-visible {
  border-color: var(--antah-gold-hover) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 0 0 3px var(--antah-gold-softer), var(--antah-button-shadow) !important;
}

.action-summary-card:hover .action-summary-cue,
.action-summary-card:focus-visible .action-summary-cue {
  background: var(--antah-primary);
  color: #ffffff;
  box-shadow: 0 0 0 2px var(--antah-gold-soft);
}


/* AI-M2Q-D3: targeted left-rail content hierarchy cleanup */
.report-rail-heading .panel-eyebrow {
  letter-spacing: 0.12em;
}

.report-rail-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  letter-spacing: -0.025em;
}

.report-rail-heading .panel-lede {
  max-width: 28ch;
  line-height: 1.48;
}

.report-access-card {
  padding: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-color: rgba(38, 54, 107, 0.14);
  box-shadow: 0 10px 24px rgba(38, 54, 107, 0.05);
}

.report-access-card .report-tools-title {
  color: var(--antah-primary);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.report-access-card .report-tools-note {
  color: #5f6b7a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.rail-context-card,
.rail-coach-card {
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(38, 54, 107, 0.12);
  box-shadow: none;
}

.rail-context-card {
  border-left: 3px solid rgba(255, 215, 0, 0.88);
}

.rail-context-card .focus-label,
.rail-coach-card .focus-label {
  margin-bottom: 7px;
}

.rail-context-card h3,
.rail-coach-card h3 {
  font-size: 1.02rem;
  line-height: 1.25;
}

.rail-context-card p,
.rail-coach-card p {
  font-size: 0.9rem;
  line-height: 1.48;
}

.report-tool-button:disabled,
.report-tool-button[aria-disabled="true"] {
  color: #7b8494;
  border-color: rgba(38, 54, 107, 0.11);
  background: #eef1f6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.report-tool-button:disabled:hover,
.report-tool-button[aria-disabled="true"]:hover {
  color: #7b8494;
  border-color: rgba(38, 54, 107, 0.11);
  background: #eef1f6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: none;
}

@media (max-width: 720px) {
  .report-rail-heading h2 {
    font-size: 1.45rem;
  }

  .report-access-card,
  .rail-context-card,
  .rail-coach-card {
    padding: 14px;
  }
}

/* AI-M2Q-D4: targeted Action Hub right-rail hierarchy cleanup only */
.coach-action-sidebar-inner {
  gap: 12px;
}

.action-rail-heading {
  margin-bottom: 2px;
}

.action-sidebar-summary {
  gap: 9px;
}

.action-summary-note {
  padding: 13px 14px;
  border-radius: 16px;
  border-color: rgba(38, 54, 107, 0.18);
  background: linear-gradient(135deg, rgba(255, 244, 234, 0.78) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: #4f5b7c;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: none;
}

.action-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title value"
    "hint cue";
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  padding: 12px 13px;
  border-radius: 16px;
  border-color: rgba(38, 54, 107, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.action-summary-card + .action-summary-card {
  margin-top: 0;
}

.action-summary-title {
  grid-area: title;
  color: #26366B;
  font-size: 0.76rem;
  line-height: 1.18;
  letter-spacing: 0.08em;
}

.action-summary-value {
  grid-area: value;
  justify-self: end;
  max-width: 118px;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: right;
}

.action-summary-hint {
  grid-area: hint;
  color: #5f6c8b;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.action-summary-cue {
  grid-area: cue;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(38, 54, 107, 0.07);
  color: #26366B;
  font-size: 0;
  font-weight: 900;
}

.action-summary-cue::after {
  content: '›';
  font-size: 1.18rem;
  line-height: 1;
}

.action-summary-card:hover,
.action-summary-card:focus-visible {
  border-color: var(--antah-gold-hover) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 0 0 3px var(--antah-gold-softer), 0 12px 26px rgba(38, 54, 107, 0.12) !important;
}

.action-summary-card:hover .action-summary-cue,
.action-summary-card:focus-visible .action-summary-cue {
  background: var(--antah-primary);
  color: #ffffff;
  box-shadow: 0 0 0 2px var(--antah-gold-soft);
}

.action-summary-card:hover .action-summary-cue::after,
.action-summary-card:focus-visible .action-summary-cue::after {
  color: #ffffff;
}

@media (max-width: 980px) {
  .action-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .action-summary-value {
    max-width: 140px;
  }
}

@media (max-width: 420px) {
  .action-summary-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "value"
      "hint"
      "cue";
    align-items: start;
  }

  .action-summary-value,
  .action-summary-cue {
    justify-self: start;
    text-align: left;
  }
}


/* AI-M2Q-D6: approved left-rail content sequence cleanup only */
.report-rail-primary {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.report-rail-primary .panel-eyebrow {
  margin-bottom: 0;
}

.report-rail-primary h2 {
  margin: 0;
}

.report-rail-primary .panel-lede {
  margin: 0;
  max-width: 30ch;
}

.report-rail-primary-actions {
  gap: 8px;
  margin-top: 4px;
}

.report-rail-primary-actions .report-tool-button {
  min-height: 42px;
}

.report-hidden-bridge[hidden] {
  display: none !important;
}

.rail-help-card,
.rail-session-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(38, 54, 107, 0.11);
  box-shadow: none;
}

.rail-help-card .support-list {
  gap: 8px;
}

.rail-help-card .support-list li {
  font-size: 0.9rem;
  line-height: 1.4;
}

.rail-session-card p {
  font-size: 0.9rem;
  line-height: 1.48;
}

.report-panel-inner > .rail-context-card,
.report-panel-inner > .rail-coach-card,
.report-panel-inner > .rail-help-card,
.report-panel-inner > .rail-session-card {
  margin-top: 0;
}

@media (max-width: 720px) {
  .report-rail-primary {
    gap: 9px;
  }

  .report-rail-primary .panel-lede {
    max-width: none;
  }
}

/* AI-M2Q-D7: targeted center header + opening chat spacing cleanup only */
.coach-header {
  padding: 17px 26px 13px !important;
  gap: 14px;
}

.coach-header .eyebrow {
  margin-bottom: 3px !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.14em;
}

.coach-header h1 {
  font-size: clamp(1.48rem, 2.6vw, 2.02rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em;
}

.coach-header .subtitle {
  margin-top: 5px !important;
  font-size: 0.86rem !important;
  line-height: 1.32 !important;
}

.coach-header .status-pill,
.coach-header #connectReportButton,
.coach-header .report-connect-button {
  min-height: 30px;
}

.notice {
  margin: 9px 22px 0 !important;
  padding: 8px 12px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.76) 0%, rgba(255, 255, 255, 0.86) 100%);
  color: #344054;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
}

.chat-log {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  gap: 10px;
}

.chat-log .message.assistant:first-child .bubble {
  max-width: min(640px, 88%);
  padding: 12px 15px;
  border-radius: 16px;
  line-height: 1.45;
}

.chat-form {
  padding-top: 9px !important;
  padding-bottom: 11px !important;
}

body.is-coach-connected .coach-header {
  align-items: center;
  padding: 10px 26px !important;
}

body.is-coach-connected .coach-header .eyebrow,
body.is-coach-connected .coach-header .subtitle {
  display: none;
}

body.is-coach-connected .coach-header h1 {
  font-size: clamp(1.24rem, 2.1vw, 1.55rem) !important;
  line-height: 1 !important;
}

body.is-coach-connected [data-coach-intro-message="true"] {
  display: none !important;
}

@media (max-width: 720px) {
  .coach-header {
    padding: 14px 14px 12px !important;
  }

  body.is-coach-connected .coach-header {
    padding: 10px 14px !important;
  }

  .coach-header h1 {
    font-size: 1.38rem !important;
  }

  .coach-header .subtitle {
    font-size: 0.82rem !important;
  }

  .notice {
    margin: 9px 14px 0 !important;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  .chat-log .message.assistant:first-child .bubble {
    max-width: 96%;
  }
}


/* AI-M2Q-D8: targeted Dark + Focus Glow theme polish only */
.coach-header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus-visible {
  border-color: var(--antah-gold-hover, rgba(255, 215, 0, 0.92));
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 12px 24px rgba(0, 0, 0, 0.16);
  outline: none;
  transform: translateY(-1px);
}

body.theme-dark,
body.theme-focus {
  --antah-text: #edf4ff;
  --antah-muted: #9fb1c8;
  --antah-border: rgba(125, 165, 210, 0.22);
  --antah-soft: #0d1726;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.06), transparent 28rem),
    linear-gradient(135deg, #07111d 0%, #081522 48%, #0b1220 100%);
  color: #eaf2ff;
}

body.theme-focus {
  --antah-border: rgba(62, 211, 255, 0.28);
  background:
    radial-gradient(circle at 18% 10%, rgba(62, 211, 255, 0.11), transparent 26rem),
    radial-gradient(circle at 88% 16%, rgba(255, 215, 0, 0.07), transparent 24rem),
    linear-gradient(135deg, #06111d 0%, #061826 48%, #070d18 100%);
}

body.theme-dark .report-panel,
body.theme-dark .coach-card,
body.theme-dark .coach-action-sidebar,
body.theme-focus .report-panel,
body.theme-focus .coach-card,
body.theme-focus .coach-action-sidebar {
  background: rgba(7, 17, 29, 0.96);
  border-color: rgba(125, 165, 210, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

body.theme-focus .report-panel,
body.theme-focus .coach-card,
body.theme-focus .coach-action-sidebar {
  border-color: rgba(62, 211, 255, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(62, 211, 255, 0.08);
}

body.theme-dark .coach-header,
body.theme-focus .coach-header {
  background: linear-gradient(135deg, #0f1d34 0%, #17234a 100%);
  border-bottom: 1px solid rgba(125, 165, 210, 0.18);
}

body.theme-focus .coach-header {
  background: linear-gradient(135deg, #071827 0%, #112a44 58%, #17234a 100%);
  border-bottom-color: rgba(62, 211, 255, 0.24);
}

body.theme-dark .report-panel h2,
body.theme-dark .focus-card h3,
body.theme-dark .hub-status-card h3,
body.theme-dark .coach-start-copy h2,
body.theme-dark .action-summary-title,
body.theme-dark .action-summary-value,
body.theme-dark .action-theme-title,
body.theme-focus .report-panel h2,
body.theme-focus .focus-card h3,
body.theme-focus .hub-status-card h3,
body.theme-focus .coach-start-copy h2,
body.theme-focus .action-summary-title,
body.theme-focus .action-summary-value,
body.theme-focus .action-theme-title {
  color: #f8fbff;
}

body.theme-dark .panel-lede,
body.theme-dark .focus-card p,
body.theme-dark .report-tools-note,
body.theme-dark .action-summary-hint,
body.theme-dark .action-theme-hint,
body.theme-dark .action-summary-note,
body.theme-dark .notice,
body.theme-dark .coach-start-copy p,
body.theme-dark .coach-start-button small,
body.theme-focus .panel-lede,
body.theme-focus .focus-card p,
body.theme-focus .report-tools-note,
body.theme-focus .action-summary-hint,
body.theme-focus .action-theme-hint,
body.theme-focus .action-summary-note,
body.theme-focus .notice,
body.theme-focus .coach-start-copy p,
body.theme-focus .coach-start-button small {
  color: #b9c7dc;
}

body.theme-dark .focus-card,
body.theme-dark .report-access-card,
body.theme-dark .hub-status-card,
body.theme-dark .today-plan-panel,
body.theme-dark .coach-start-panel,
body.theme-dark .quick-start-panel,
body.theme-dark .setup-panel,
body.theme-dark .notice,
body.theme-dark .chat-log .bubble,
body.theme-dark .action-summary-card,
body.theme-dark .action-theme-setting,
body.theme-focus .focus-card,
body.theme-focus .report-access-card,
body.theme-focus .hub-status-card,
body.theme-focus .today-plan-panel,
body.theme-focus .coach-start-panel,
body.theme-focus .quick-start-panel,
body.theme-focus .setup-panel,
body.theme-focus .notice,
body.theme-focus .chat-log .bubble,
body.theme-focus .action-summary-card,
body.theme-focus .action-theme-setting {
  background: rgba(12, 25, 40, 0.90);
  border-color: rgba(125, 165, 210, 0.20);
  box-shadow: none;
}

body.theme-focus .focus-card,
body.theme-focus .report-access-card,
body.theme-focus .hub-status-card,
body.theme-focus .today-plan-panel,
body.theme-focus .coach-start-panel,
body.theme-focus .quick-start-panel,
body.theme-focus .setup-panel,
body.theme-focus .notice,
body.theme-focus .chat-log .bubble,
body.theme-focus .action-summary-card,
body.theme-focus .action-theme-setting {
  border-color: rgba(62, 211, 255, 0.24);
  background: rgba(7, 26, 40, 0.90);
}

body.theme-dark .rail-section-heading,
body.theme-dark .action-rail-heading,
body.theme-dark .report-panel-inner > .rail-context-card,
body.theme-dark .report-panel-inner > .rail-coach-card,
body.theme-dark .report-panel-inner > .rail-help-card,
body.theme-dark .report-panel-inner > .rail-session-card,
body.theme-focus .rail-section-heading,
body.theme-focus .action-rail-heading,
body.theme-focus .report-panel-inner > .rail-context-card,
body.theme-focus .report-panel-inner > .rail-coach-card,
body.theme-focus .report-panel-inner > .rail-help-card,
body.theme-focus .report-panel-inner > .rail-session-card {
  border-color: rgba(125, 165, 210, 0.18);
}

body.theme-focus .rail-section-heading,
body.theme-focus .action-rail-heading,
body.theme-focus .report-panel-inner > .rail-context-card,
body.theme-focus .report-panel-inner > .rail-coach-card,
body.theme-focus .report-panel-inner > .rail-help-card,
body.theme-focus .report-panel-inner > .rail-session-card {
  border-color: rgba(62, 211, 255, 0.22);
}

body.theme-dark .report-tool-button.secondary,
body.theme-dark .secondary-button,
body.theme-dark .coach-start-button,
body.theme-dark .quick-start-button,
body.theme-dark .today-plan-button:not(.primary),
body.theme-dark .rail-toggle-button,
body.theme-dark .theme-toggle-button,
body.theme-focus .report-tool-button.secondary,
body.theme-focus .secondary-button,
body.theme-focus .coach-start-button,
body.theme-focus .quick-start-button,
body.theme-focus .today-plan-button:not(.primary),
body.theme-focus .rail-toggle-button,
body.theme-focus .theme-toggle-button {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
}

body.theme-focus .report-tool-button.secondary,
body.theme-focus .secondary-button,
body.theme-focus .coach-start-button,
body.theme-focus .quick-start-button,
body.theme-focus .today-plan-button:not(.primary),
body.theme-focus .rail-toggle-button,
body.theme-focus .theme-toggle-button {
  border-color: rgba(62, 211, 255, 0.32) !important;
}

body.theme-dark .primary-button,
body.theme-dark .report-tool-button,
body.theme-dark .today-plan-button.primary,
body.theme-dark .task-card-button-save,
body.theme-dark .setup-connect-button:not(.is-disabled),
body.theme-focus .primary-button,
body.theme-focus .report-tool-button,
body.theme-focus .today-plan-button.primary,
body.theme-focus .task-card-button-save,
body.theme-focus .setup-connect-button:not(.is-disabled) {
  background: linear-gradient(135deg, #26366B 0%, #17234a 100%);
  border-color: rgba(255, 215, 0, 0.22);
  color: #ffffff;
}

body.theme-focus .primary-button,
body.theme-focus .report-tool-button,
body.theme-focus .today-plan-button.primary,
body.theme-focus .task-card-button-save,
body.theme-focus .setup-connect-button:not(.is-disabled) {
  background: linear-gradient(135deg, #17315a 0%, #0d3a55 100%);
  border-color: rgba(62, 211, 255, 0.28);
}

body.theme-dark textarea,
body.theme-focus textarea {
  background: rgba(7, 17, 29, 0.92);
  border-color: rgba(125, 165, 210, 0.26);
  color: #f4f8ff;
}

body.theme-focus textarea {
  border-color: rgba(62, 211, 255, 0.32);
}

body.theme-dark textarea::placeholder,
body.theme-focus textarea::placeholder {
  color: #8fa0b8;
}

body.theme-dark button:disabled,
body.theme-dark .report-tool-button:disabled,
body.theme-dark .coach-start-button:disabled,
body.theme-dark .quick-start-button:disabled,
body.theme-dark .today-plan-button:disabled,
body.theme-dark .primary-button:disabled,
body.theme-dark .secondary-button:disabled,
body.theme-dark .setup-connect-button.is-disabled,
body.theme-dark .report-link.is-disabled,
body.theme-focus button:disabled,
body.theme-focus .report-tool-button:disabled,
body.theme-focus .coach-start-button:disabled,
body.theme-focus .quick-start-button:disabled,
body.theme-focus .today-plan-button:disabled,
body.theme-focus .primary-button:disabled,
body.theme-focus .secondary-button:disabled,
body.theme-focus .setup-connect-button.is-disabled,
body.theme-focus .report-link.is-disabled {
  background: rgba(27, 41, 62, 0.82) !important;
  color: #7e8da5 !important;
  border-color: rgba(125, 165, 210, 0.16) !important;
}

body.theme-focus button:disabled,
body.theme-focus .report-tool-button:disabled,
body.theme-focus .coach-start-button:disabled,
body.theme-focus .quick-start-button:disabled,
body.theme-focus .today-plan-button:disabled,
body.theme-focus .primary-button:disabled,
body.theme-focus .secondary-button:disabled,
body.theme-focus .setup-connect-button.is-disabled,
body.theme-focus .report-link.is-disabled {
  border-color: rgba(62, 211, 255, 0.14) !important;
}

body.theme-dark .action-summary-cue,
body.theme-focus .action-summary-cue {
  background: rgba(125, 165, 210, 0.14);
  color: #dce8ff;
}

body.theme-focus .action-summary-cue {
  background: rgba(62, 211, 255, 0.12);
  color: #bcefff;
}

body.theme-dark .action-summary-card:hover,
body.theme-dark .action-summary-card:focus-visible,
body.theme-dark .report-tool-button:hover:not(:disabled),
body.theme-dark .report-tool-button:focus-visible:not(:disabled),
body.theme-dark .coach-start-button:hover:not(:disabled),
body.theme-dark .coach-start-button:focus-visible:not(:disabled),
body.theme-dark .secondary-button:hover:not(:disabled),
body.theme-dark .secondary-button:focus-visible:not(:disabled),
body.theme-dark .rail-toggle-button:hover,
body.theme-dark .rail-toggle-button:focus-visible,
body.theme-dark .theme-toggle-button:hover,
body.theme-dark .theme-toggle-button:focus-visible {
  border-color: var(--antah-gold-hover) !important;
  background: rgba(28, 42, 64, 0.98) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

body.theme-focus .action-summary-card:hover,
body.theme-focus .action-summary-card:focus-visible,
body.theme-focus .report-tool-button:hover:not(:disabled),
body.theme-focus .report-tool-button:focus-visible:not(:disabled),
body.theme-focus .coach-start-button:hover:not(:disabled),
body.theme-focus .coach-start-button:focus-visible:not(:disabled),
body.theme-focus .secondary-button:hover:not(:disabled),
body.theme-focus .secondary-button:focus-visible:not(:disabled),
body.theme-focus .rail-toggle-button:hover,
body.theme-focus .rail-toggle-button:focus-visible,
body.theme-focus .theme-toggle-button:hover,
body.theme-focus .theme-toggle-button:focus-visible {
  border-color: rgba(255, 215, 0, 0.92) !important;
  background: rgba(9, 35, 52, 0.98) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 0 26px rgba(62, 211, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

body.theme-focus .chat-log .message.assistant:first-child .bubble {
  box-shadow: 0 0 0 1px rgba(62, 211, 255, 0.10), 0 18px 44px rgba(0, 0, 0, 0.18);
}

@media (max-width: 720px) {
  .coach-header-actions {
    align-items: flex-end;
    gap: 6px;
  }

  .theme-toggle-button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.74rem;
  }
}

/* AI-M2Q-D8A: remove light composer/menu surfaces inside Dark + Focus themes only */
body.theme-dark .chat-form,
body.theme-focus .chat-form {
  background: rgba(7, 17, 29, 0.96) !important;
  border-top-color: rgba(125, 165, 210, 0.20) !important;
}

body.theme-focus .chat-form {
  background: rgba(5, 18, 30, 0.96) !important;
  border-top-color: rgba(62, 211, 255, 0.24) !important;
}

body.theme-dark .composer-menu-button,
body.theme-dark .coach-mode-selector-button,
body.theme-focus .composer-menu-button,
body.theme-focus .coach-mode-selector-button {
  background: rgba(18, 32, 52, 0.94) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
}

body.theme-focus .composer-menu-button,
body.theme-focus .coach-mode-selector-button {
  background: rgba(8, 32, 49, 0.94) !important;
  border-color: rgba(62, 211, 255, 0.32) !important;
}

body.theme-dark .composer-menu-button:hover,
body.theme-dark .composer-menu-button:focus-visible,
body.theme-dark .coach-mode-selector-button:hover:not(:disabled),
body.theme-dark .coach-mode-selector-button:focus-visible:not(:disabled),
body.theme-focus .composer-menu-button:hover,
body.theme-focus .composer-menu-button:focus-visible,
body.theme-focus .coach-mode-selector-button:hover:not(:disabled),
body.theme-focus .coach-mode-selector-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.92) !important;
  background: rgba(28, 42, 64, 0.98) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.26) !important;
  outline: none !important;
}

body.theme-focus .composer-menu-button:hover,
body.theme-focus .composer-menu-button:focus-visible,
body.theme-focus .coach-mode-selector-button:hover:not(:disabled),
body.theme-focus .coach-mode-selector-button:focus-visible:not(:disabled) {
  background: rgba(9, 35, 52, 0.98) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 24px rgba(62, 211, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.26) !important;
}

body.theme-dark .coach-mode-caret,
body.theme-focus .coach-mode-caret {
  color: #b9c7dc !important;
}

body.theme-dark .composer-menu-panel,
body.theme-dark .coach-mode-selector-panel,
body.theme-focus .composer-menu-panel,
body.theme-focus .coach-mode-selector-panel {
  background: rgba(9, 19, 32, 0.98) !important;
  border-color: rgba(125, 165, 210, 0.24) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.44) !important;
}

body.theme-focus .composer-menu-panel,
body.theme-focus .coach-mode-selector-panel {
  background: rgba(5, 21, 34, 0.98) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .composer-menu-panel button,
body.theme-dark .coach-mode-option-button,
body.theme-focus .composer-menu-panel button,
body.theme-focus .coach-mode-option-button {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.20) !important;
  color: #f4f8ff !important;
}

body.theme-focus .composer-menu-panel button,
body.theme-focus .coach-mode-option-button {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.24) !important;
}

body.theme-dark .coach-mode-option-button.is-active,
body.theme-focus .coach-mode-option-button.is-active {
  border-color: rgba(255, 215, 0, 0.42) !important;
}

body.theme-dark .coach-mode-option-helper,
body.theme-focus .coach-mode-option-helper {
  color: #9fb1c8 !important;
}

body.theme-dark .composer-menu-panel .end-session-button,
body.theme-focus .composer-menu-panel .end-session-button {
  background: rgba(255, 215, 0, 0.10) !important;
  color: #fff4b5 !important;
}

/* AI-M2Q-D8B: Dark/Focus surface polish for scrollbars, note cards, and section labels */
body.theme-dark,
body.theme-focus {
  scrollbar-width: thin;
}

body.theme-dark *,
body.theme-focus * {
  scrollbar-width: thin;
}

body.theme-dark *,
body.theme-dark {
  scrollbar-color: rgba(125, 165, 210, 0.42) rgba(7, 17, 29, 0.92);
}

body.theme-focus *,
body.theme-focus {
  scrollbar-color: rgba(62, 211, 255, 0.48) rgba(5, 18, 30, 0.94);
}

body.theme-dark *::-webkit-scrollbar,
body.theme-focus *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.theme-dark *::-webkit-scrollbar-track {
  background: rgba(7, 17, 29, 0.92);
  border-radius: 999px;
}

body.theme-focus *::-webkit-scrollbar-track {
  background: rgba(5, 18, 30, 0.94);
  border-radius: 999px;
}

body.theme-dark *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 165, 210, 0.48), rgba(125, 165, 210, 0.24));
  border: 2px solid rgba(7, 17, 29, 0.92);
  border-radius: 999px;
}

body.theme-focus *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(62, 211, 255, 0.54), rgba(62, 211, 255, 0.22));
  border: 2px solid rgba(5, 18, 30, 0.94);
  border-radius: 999px;
}

body.theme-dark .action-summary-note,
body.theme-focus .action-summary-note {
  background: rgba(10, 24, 39, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #c4d4ec !important;
  box-shadow: none !important;
}

body.theme-focus .action-summary-note {
  background: rgba(5, 26, 40, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
  color: #bcefff !important;
}

body.theme-dark .panel-eyebrow,
body.theme-dark .focus-label,
body.theme-dark .coach-action-sidebar-label,
body.theme-focus .panel-eyebrow,
body.theme-focus .focus-label,
body.theme-focus .coach-action-sidebar-label {
  color: #ffd700 !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.10);
}

body.theme-focus .panel-eyebrow,
body.theme-focus .focus-label,
body.theme-focus .coach-action-sidebar-label {
  color: #ffe36a !important;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.14), 0 0 18px rgba(62, 211, 255, 0.10);
}

body.theme-dark .status-pill.is-action,
body.theme-focus .status-pill.is-action {
  background: rgba(18, 32, 52, 0.86) !important;
  border-color: rgba(125, 165, 210, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

body.theme-focus .status-pill.is-action {
  background: rgba(9, 31, 49, 0.86) !important;
  border-color: rgba(62, 211, 255, 0.38) !important;
}

body.theme-dark .status-pill.is-action:hover,
body.theme-dark .status-pill.is-action:focus-visible,
body.theme-focus .status-pill.is-action:hover,
body.theme-focus .status-pill.is-action:focus-visible {
  border-color: rgba(255, 215, 0, 0.92) !important;
  background: rgba(28, 42, 64, 0.98) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.30) !important;
}

body.theme-focus .status-pill.is-action:hover,
body.theme-focus .status-pill.is-action:focus-visible {
  background: rgba(9, 35, 52, 0.98) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 24px rgba(62, 211, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.30) !important;
}


/* AI-M2Q-D8C: Dark/Focus modal + send-button surface polish */
body.theme-dark #sendButton.primary-button:disabled,
body.theme-focus #sendButton.primary-button:disabled {
  background: linear-gradient(135deg, rgba(44, 59, 88, 0.96), rgba(37, 50, 76, 0.96)) !important;
  border-color: rgba(162, 179, 213, 0.34) !important;
  color: rgba(244, 248, 255, 0.82) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.theme-focus #sendButton.primary-button:disabled {
  background: linear-gradient(135deg, rgba(52, 75, 96, 0.96), rgba(40, 61, 83, 0.96)) !important;
  border-color: rgba(92, 221, 255, 0.34) !important;
  color: rgba(244, 251, 255, 0.84) !important;
}

body.theme-dark #sendButton.primary-button:not(:disabled),
body.theme-focus #sendButton.primary-button:not(:disabled) {
  background: linear-gradient(135deg, #26366b 0%, #17234a 100%) !important;
  border-color: rgba(255, 215, 0, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

body.theme-focus #sendButton.primary-button:not(:disabled) {
  background: linear-gradient(135deg, #164567 0%, #0b3754 100%) !important;
  border-color: rgba(255, 215, 0, 0.42) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 22px rgba(62, 211, 255, 0.12) !important;
}

body.theme-dark #sendButton.primary-button:hover:not(:disabled),
body.theme-dark #sendButton.primary-button:focus-visible:not(:disabled),
body.theme-focus #sendButton.primary-button:hover:not(:disabled),
body.theme-focus #sendButton.primary-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

body.theme-focus #sendButton.primary-button:hover:not(:disabled),
body.theme-focus #sendButton.primary-button:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 28px rgba(62, 211, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark .action-hub-overlay,
body.theme-dark .coach-modal-overlay,
body.theme-focus .action-hub-overlay,
body.theme-focus .coach-modal-overlay {
  background: rgba(1, 7, 14, 0.66) !important;
  backdrop-filter: blur(12px) saturate(1.05) !important;
}

body.theme-focus .action-hub-overlay,
body.theme-focus .coach-modal-overlay {
  background: rgba(0, 10, 18, 0.68) !important;
}

body.theme-dark .action-hub-panel,
body.theme-dark .coach-modal-panel,
body.theme-focus .action-hub-panel,
body.theme-focus .coach-modal-panel {
  background: rgba(7, 17, 29, 0.98) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52) !important;
}

body.theme-focus .action-hub-panel,
body.theme-focus .coach-modal-panel {
  background: rgba(4, 18, 30, 0.98) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(62, 211, 255, 0.10) !important;
}

body.theme-dark .action-hub-header,
body.theme-dark .coach-modal-header,
body.theme-focus .action-hub-header,
body.theme-focus .coach-modal-header {
  background: linear-gradient(135deg, rgba(10, 24, 40, 0.98) 0%, rgba(17, 31, 55, 0.98) 100%) !important;
  border-bottom-color: rgba(125, 165, 210, 0.20) !important;
}

body.theme-focus .action-hub-header,
body.theme-focus .coach-modal-header {
  background: linear-gradient(135deg, rgba(5, 28, 44, 0.98) 0%, rgba(12, 39, 61, 0.98) 100%) !important;
  border-bottom-color: rgba(62, 211, 255, 0.28) !important;
}

body.theme-dark .action-hub-tabs,
body.theme-dark .action-hub-body,
body.theme-dark .coach-modal-body,
body.theme-focus .action-hub-tabs,
body.theme-focus .action-hub-body,
body.theme-focus .coach-modal-body {
  background: rgba(7, 17, 29, 0.96) !important;
  border-color: rgba(125, 165, 210, 0.18) !important;
}

body.theme-focus .action-hub-tabs,
body.theme-focus .action-hub-body,
body.theme-focus .coach-modal-body {
  background: rgba(4, 18, 30, 0.96) !important;
  border-color: rgba(62, 211, 255, 0.22) !important;
}

body.theme-dark .action-hub-eyebrow,
body.theme-dark .coach-modal-eyebrow,
body.theme-dark .report-intelligence-section-title,
body.theme-focus .action-hub-eyebrow,
body.theme-focus .coach-modal-eyebrow,
body.theme-focus .report-intelligence-section-title {
  color: #ffd700 !important;
  opacity: 1 !important;
}

body.theme-dark .action-hub-title,
body.theme-dark .coach-modal-title,
body.theme-dark .saved-actions-title,
body.theme-dark .reminders-title,
body.theme-dark .checkins-title,
body.theme-dark .priority-question-title,
body.theme-dark .report-intelligence-unavailable-title,
body.theme-dark .coach-modal-empty-title,
body.theme-focus .action-hub-title,
body.theme-focus .coach-modal-title,
body.theme-focus .saved-actions-title,
body.theme-focus .reminders-title,
body.theme-focus .checkins-title,
body.theme-focus .priority-question-title,
body.theme-focus .report-intelligence-unavailable-title,
body.theme-focus .coach-modal-empty-title {
  color: #f8fbff !important;
}

body.theme-dark .coach-modal-intro,
body.theme-dark .coach-modal-empty,
body.theme-dark .priority-question-card,
body.theme-dark .report-intelligence-unavailable,
body.theme-dark .action-hub-settings-card,
body.theme-dark .action-hub-section .saved-actions-panel,
body.theme-dark .action-hub-section .reminders-panel,
body.theme-dark .action-hub-section .checkins-panel,
body.theme-dark .saved-actions-panel,
body.theme-dark .reminders-panel,
body.theme-dark .checkins-panel,
body.theme-focus .coach-modal-intro,
body.theme-focus .coach-modal-empty,
body.theme-focus .priority-question-card,
body.theme-focus .report-intelligence-unavailable,
body.theme-focus .action-hub-settings-card,
body.theme-focus .action-hub-section .saved-actions-panel,
body.theme-focus .action-hub-section .reminders-panel,
body.theme-focus .action-hub-section .checkins-panel,
body.theme-focus .saved-actions-panel,
body.theme-focus .reminders-panel,
body.theme-focus .checkins-panel {
  background: rgba(11, 25, 41, 0.90) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

body.theme-focus .coach-modal-intro,
body.theme-focus .coach-modal-empty,
body.theme-focus .priority-question-card,
body.theme-focus .report-intelligence-unavailable,
body.theme-focus .action-hub-settings-card,
body.theme-focus .action-hub-section .saved-actions-panel,
body.theme-focus .action-hub-section .reminders-panel,
body.theme-focus .action-hub-section .checkins-panel,
body.theme-focus .saved-actions-panel,
body.theme-focus .reminders-panel,
body.theme-focus .checkins-panel {
  background: rgba(5, 26, 40, 0.90) !important;
  border-color: rgba(62, 211, 255, 0.26) !important;
}

body.theme-dark .chat-history-bubble,
body.theme-focus .chat-history-bubble {
  background: rgba(13, 29, 48, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
}

body.theme-focus .chat-history-bubble {
  background: rgba(5, 30, 47, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.24) !important;
}

body.theme-dark .chat-history-message.is-user .chat-history-bubble,
body.theme-focus .chat-history-message.is-user .chat-history-bubble {
  background: rgba(38, 54, 107, 0.88) !important;
}

body.theme-dark .chat-history-label,
body.theme-focus .chat-history-label {
  color: #ffd700 !important;
}

body.theme-dark .chat-history-meta,
body.theme-focus .chat-history-meta {
  color: rgba(244, 248, 255, 0.72) !important;
}

body.theme-dark .saved-actions-item,
body.theme-dark .reminder-card,
body.theme-dark .checkin-card,
body.theme-focus .saved-actions-item,
body.theme-focus .reminder-card,
body.theme-focus .checkin-card {
  background: rgba(13, 29, 48, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.20) !important;
}

body.theme-focus .saved-actions-item,
body.theme-focus .reminder-card,
body.theme-focus .checkin-card {
  background: rgba(5, 30, 47, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.24) !important;
}

body.theme-dark .coach-modal-intro-text,
body.theme-dark .coach-modal-state,
body.theme-dark .coach-modal-empty-text,
body.theme-dark .priority-question-action,
body.theme-dark .report-intelligence-unavailable-text,
body.theme-dark .saved-actions-state,
body.theme-dark .saved-actions-meta,
body.theme-dark .reminders-state,
body.theme-dark .checkins-state,
body.theme-dark .reminder-card-meta,
body.theme-dark .checkin-card-meta,
body.theme-dark .action-hub-settings-status,
body.theme-dark .action-hub-settings-note,
body.theme-focus .coach-modal-intro-text,
body.theme-focus .coach-modal-state,
body.theme-focus .coach-modal-empty-text,
body.theme-focus .priority-question-action,
body.theme-focus .report-intelligence-unavailable-text,
body.theme-focus .saved-actions-state,
body.theme-focus .saved-actions-meta,
body.theme-focus .reminders-state,
body.theme-focus .checkins-state,
body.theme-focus .reminder-card-meta,
body.theme-focus .checkin-card-meta,
body.theme-focus .action-hub-settings-status,
body.theme-focus .action-hub-settings-note {
  color: #b9c7dc !important;
}

body.theme-dark .action-hub-tab,
body.theme-dark .report-library-tab,
body.theme-dark .action-hub-close,
body.theme-dark .coach-modal-close,
body.theme-focus .action-hub-tab,
body.theme-focus .report-library-tab,
body.theme-focus .action-hub-close,
body.theme-focus .coach-modal-close {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
}

body.theme-focus .action-hub-tab,
body.theme-focus .report-library-tab,
body.theme-focus .action-hub-close,
body.theme-focus .coach-modal-close {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .action-hub-tab.is-active,
body.theme-dark .report-library-tab.is-active,
body.theme-focus .action-hub-tab.is-active,
body.theme-focus .report-library-tab.is-active {
  border-color: rgba(255, 215, 0, 0.44) !important;
  background: rgba(38, 54, 107, 0.88) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26) !important;
}

body.theme-focus .action-hub-tab.is-active,
body.theme-focus .report-library-tab.is-active {
  background: rgba(14, 57, 82, 0.88) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), 0 0 18px rgba(62, 211, 255, 0.10) !important;
}

body.theme-dark .action-hub-tab:hover,
body.theme-dark .action-hub-tab:focus-visible,
body.theme-dark .report-library-tab:hover,
body.theme-dark .report-library-tab:focus-visible,
body.theme-dark .action-hub-close:hover,
body.theme-dark .action-hub-close:focus-visible,
body.theme-dark .coach-modal-close:hover,
body.theme-dark .coach-modal-close:focus-visible,
body.theme-focus .action-hub-tab:hover,
body.theme-focus .action-hub-tab:focus-visible,
body.theme-focus .report-library-tab:hover,
body.theme-focus .report-library-tab:focus-visible,
body.theme-focus .action-hub-close:hover,
body.theme-focus .action-hub-close:focus-visible,
body.theme-focus .coach-modal-close:hover,
body.theme-focus .coach-modal-close:focus-visible {
  border-color: rgba(255, 215, 0, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
  outline: none !important;
}

body.theme-dark .priority-question-bin,
body.theme-focus .priority-question-bin {
  background: rgba(255, 215, 0, 0.14) !important;
  color: #ffe36a !important;
}

body.theme-dark .report-discuss-button,
body.theme-dark .reminder-button,
body.theme-dark .task-reminder-choice,
body.theme-focus .report-discuss-button,
body.theme-focus .reminder-button,
body.theme-focus .task-reminder-choice {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.24) !important;
  color: #f4f8ff !important;
}

body.theme-focus .report-discuss-button,
body.theme-focus .reminder-button,
body.theme-focus .task-reminder-choice {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
}

/* AI-M2Q-D9: clean workspace shell / plain-column polish
   Goal: reduce the three-rounded-card feel on desktop while preserving rails, themes, and mobile flow. */
@media (min-width: 981px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .coach-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding: 0 !important;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
  }

  .coach-layout {
    width: 100% !important;
    max-width: none !important;
    height: 100vh;
    min-height: 0;
    gap: 0 !important;
    align-items: stretch;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    height: 100vh;
    min-height: 0 !important;
    max-height: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  .report-panel {
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  .coach-card {
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  .coach-action-sidebar {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    position: relative !important;
    top: auto !important;
    height: 100%;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto;
    padding: 24px 24px 28px;
  }

  .coach-card {
    display: flex;
    flex-direction: column;
  }

  .coach-header {
    border-radius: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .chat-log {
    min-height: 0 !important;
    flex: 1 1 auto;
  }

  .chat-form {
    flex: 0 0 auto;
  }

  .notice,
  .setup-panel,
  .coach-start-panel,
  .quick-start-panel,
  .today-plan-panel,
  .chat-log .bubble,
  .focus-card,
  .action-summary-note,
  .action-summary-card {
    border-radius: 14px !important;
  }

  .rail-toggle-button {
    top: 20px;
    right: 20px;
  }

  body.is-report-rail-collapsed .report-panel-inner,
  body.is-action-rail-collapsed .coach-action-sidebar-inner {
    overflow: hidden !important;
  }

  body.is-report-rail-collapsed .report-panel,
  body.is-action-rail-collapsed .coach-action-sidebar {
    background: rgba(255, 255, 255, 0.72);
  }

  body.theme-dark.is-report-rail-collapsed .report-panel,
  body.theme-dark.is-action-rail-collapsed .coach-action-sidebar,
  body.theme-focus.is-report-rail-collapsed .report-panel,
  body.theme-focus.is-action-rail-collapsed .coach-action-sidebar {
    background: rgba(6, 17, 29, 0.96) !important;
  }

  body.theme-focus.is-report-rail-collapsed .report-panel,
  body.theme-focus.is-action-rail-collapsed .coach-action-sidebar {
    background: rgba(3, 18, 31, 0.96) !important;
  }
}

@media (min-width: 1181px) {
  .coach-layout {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) minmax(270px, 320px) !important;
  }

  body.is-report-rail-collapsed .coach-layout {
    grid-template-columns: 74px minmax(0, 1fr) minmax(270px, 320px) !important;
  }

  body.is-action-rail-collapsed .coach-layout {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) 74px !important;
  }

  body.is-report-rail-collapsed.is-action-rail-collapsed .coach-layout {
    grid-template-columns: 74px minmax(0, 1fr) 74px !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .coach-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 12px !important;
  }

  .coach-layout {
    height: auto;
    gap: 14px !important;
  }

  .report-panel,
  .coach-card,
  .coach-action-sidebar {
    height: auto;
    border-radius: 20px !important;
  }

  .report-panel-inner,
  .coach-action-sidebar-inner {
    height: auto;
    overflow: visible;
  }
}

/* AI-M2Q-D9A: improve How This Hub Helps contrast in Dark and Focus modes */
body.theme-dark .rail-help-card .support-list li,
body.theme-focus .rail-help-card .support-list li {
  color: #d9ecff !important;
  opacity: 1 !important;
  font-weight: 700;
}

body.theme-focus .rail-help-card .support-list li {
  color: #e5fbff !important;
}

body.theme-dark .rail-help-card .support-list li::before,
body.theme-focus .rail-help-card .support-list li::before {
  background: #ffd700 !important;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.22), 0 0 14px rgba(255, 215, 0, 0.16) !important;
}

body.theme-focus .rail-help-card .support-list li::before {
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.24), 0 0 16px rgba(255, 215, 0, 0.20), 0 0 18px rgba(62, 211, 255, 0.10) !important;
}

/* AI-M2Q-D10: complete Dark/Focus theme surfaces inside generated cards and modals
   Scope: CSS-only visual surface completion. Light mode remains unchanged. */
body.theme-dark .today-plan-panel,
body.theme-focus .today-plan-panel {
  background: rgba(10, 24, 39, 0.94) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  box-shadow: none !important;
  color: #f4f8ff !important;
}

body.theme-focus .today-plan-panel {
  background: rgba(5, 26, 40, 0.94) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
}

body.theme-dark .today-plan-header h2,
body.theme-dark .today-plan-item strong,
body.theme-dark .today-plan-summary,
body.theme-dark .today-plan-note,
body.theme-dark .today-plan-compact-line,
body.theme-focus .today-plan-header h2,
body.theme-focus .today-plan-item strong,
body.theme-focus .today-plan-summary,
body.theme-focus .today-plan-note,
body.theme-focus .today-plan-compact-line {
  color: #f4f8ff !important;
}

body.theme-dark .today-plan-eyebrow,
body.theme-dark .today-plan-label,
body.theme-focus .today-plan-eyebrow,
body.theme-focus .today-plan-label {
  color: #ffd700 !important;
  opacity: 1 !important;
}

body.theme-dark .today-plan-item,
body.theme-focus .today-plan-item {
  background: rgba(13, 29, 48, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  box-shadow: none !important;
}

body.theme-focus .today-plan-item {
  background: rgba(5, 30, 47, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
}

body.theme-dark .today-plan-badge,
body.theme-focus .today-plan-badge,
body.theme-dark .report-library-pill.is-available,
body.theme-focus .report-library-pill.is-available {
  background: rgba(30, 111, 75, 0.22) !important;
  color: #9ff0c8 !important;
  border: 1px solid rgba(159, 240, 200, 0.18) !important;
}

body.theme-dark .today-plan-button,
body.theme-focus .today-plan-button,
body.theme-dark .saved-actions-filter-chip,
body.theme-focus .saved-actions-filter-chip,
body.theme-dark .schedule-move-button,
body.theme-focus .schedule-move-button,
body.theme-dark .notification-readiness-button,
body.theme-focus .notification-readiness-button {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

body.theme-focus .today-plan-button,
body.theme-focus .saved-actions-filter-chip,
body.theme-focus .schedule-move-button,
body.theme-focus .notification-readiness-button {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .today-plan-button.primary,
body.theme-focus .today-plan-button.primary,
body.theme-dark .saved-actions-filter-chip.is-active,
body.theme-focus .saved-actions-filter-chip.is-active {
  background: rgba(38, 54, 107, 0.88) !important;
  border-color: rgba(255, 215, 0, 0.46) !important;
  color: #ffffff !important;
}

body.theme-focus .today-plan-button.primary,
body.theme-focus .saved-actions-filter-chip.is-active {
  background: rgba(14, 57, 82, 0.88) !important;
  border-color: rgba(255, 215, 0, 0.50) !important;
}

body.theme-dark .today-plan-button:hover:not(:disabled),
body.theme-dark .today-plan-button:focus-visible:not(:disabled),
body.theme-focus .today-plan-button:hover:not(:disabled),
body.theme-focus .today-plan-button:focus-visible:not(:disabled),
body.theme-dark .saved-actions-filter-chip:hover,
body.theme-dark .saved-actions-filter-chip:focus-visible,
body.theme-focus .saved-actions-filter-chip:hover,
body.theme-focus .saved-actions-filter-chip:focus-visible,
body.theme-dark .schedule-move-button:hover:not(:disabled),
body.theme-dark .schedule-move-button:focus-visible:not(:disabled),
body.theme-focus .schedule-move-button:hover:not(:disabled),
body.theme-focus .schedule-move-button:focus-visible:not(:disabled),
body.theme-dark .notification-readiness-button:hover,
body.theme-dark .notification-readiness-button:focus-visible,
body.theme-focus .notification-readiness-button:hover,
body.theme-focus .notification-readiness-button:focus-visible {
  border-color: rgba(255, 215, 0, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
  outline: none !important;
}

body.theme-focus .today-plan-button:hover:not(:disabled),
body.theme-focus .today-plan-button:focus-visible:not(:disabled),
body.theme-focus .saved-actions-filter-chip:hover,
body.theme-focus .saved-actions-filter-chip:focus-visible,
body.theme-focus .schedule-move-button:hover:not(:disabled),
body.theme-focus .schedule-move-button:focus-visible:not(:disabled),
body.theme-focus .notification-readiness-button:hover,
body.theme-focus .notification-readiness-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.12) !important;
}

body.theme-dark .report-intel-tabs,
body.theme-focus .report-intel-tabs {
  background: rgba(11, 25, 41, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  box-shadow: none !important;
}

body.theme-focus .report-intel-tabs {
  background: rgba(5, 26, 40, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.26) !important;
}

body.theme-dark .report-intel-tab,
body.theme-focus .report-intel-tab {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
}

body.theme-focus .report-intel-tab {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .report-intel-tab.is-active,
body.theme-focus .report-intel-tab.is-active {
  background: rgba(38, 54, 107, 0.88) !important;
  border-color: rgba(255, 215, 0, 0.46) !important;
  color: #ffffff !important;
}

body.theme-focus .report-intel-tab.is-active {
  background: rgba(14, 57, 82, 0.88) !important;
}

body.theme-dark .report-intel-tab:hover,
body.theme-dark .report-intel-tab:focus-visible,
body.theme-focus .report-intel-tab:hover,
body.theme-focus .report-intel-tab:focus-visible {
  border-color: rgba(255, 215, 0, 0.92) !important;
  background: rgba(24, 42, 65, 0.96) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
  outline: none !important;
}

body.theme-focus .report-intel-tab:hover,
body.theme-focus .report-intel-tab:focus-visible {
  background: rgba(10, 41, 61, 0.96) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.12) !important;
}

body.theme-dark .report-intel-metric-card,
body.theme-dark .report-intel-info-card,
body.theme-dark .report-intel-domain-card,
body.theme-dark .priority-question-card,
body.theme-dark .priority-question-card-polished,
body.theme-dark .priority-question-detail,
body.theme-dark .report-library-item,
body.theme-focus .report-intel-metric-card,
body.theme-focus .report-intel-info-card,
body.theme-focus .report-intel-domain-card,
body.theme-focus .priority-question-card,
body.theme-focus .priority-question-card-polished,
body.theme-focus .priority-question-detail,
body.theme-focus .report-library-item {
  background: rgba(13, 29, 48, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

body.theme-focus .report-intel-metric-card,
body.theme-focus .report-intel-info-card,
body.theme-focus .report-intel-domain-card,
body.theme-focus .priority-question-card,
body.theme-focus .priority-question-card-polished,
body.theme-focus .priority-question-detail,
body.theme-focus .report-library-item {
  background: rgba(5, 30, 47, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.26) !important;
}

body.theme-dark .report-intel-info-card.is-highlight,
body.theme-dark .report-intel-domain-card.is-recommended,
body.theme-dark .priority-question-detail.is-highlight,
body.theme-dark .report-library-item.is-selected,
body.theme-focus .report-intel-info-card.is-highlight,
body.theme-focus .report-intel-domain-card.is-recommended,
body.theme-focus .priority-question-detail.is-highlight,
body.theme-focus .report-library-item.is-selected {
  background: linear-gradient(135deg, rgba(20, 34, 52, 0.96) 0%, rgba(36, 43, 39, 0.92) 100%) !important;
  border-color: rgba(255, 215, 0, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10) !important;
}

body.theme-focus .report-intel-info-card.is-highlight,
body.theme-focus .report-intel-domain-card.is-recommended,
body.theme-focus .priority-question-detail.is-highlight,
body.theme-focus .report-library-item.is-selected {
  background: linear-gradient(135deg, rgba(7, 33, 49, 0.96) 0%, rgba(29, 43, 39, 0.92) 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10), 0 0 22px rgba(62, 211, 255, 0.08) !important;
}

body.theme-dark .report-intel-metric-label,
body.theme-dark .report-intel-info-title,
body.theme-dark .report-intel-domain-status,
body.theme-dark .priority-question-meta,
body.theme-dark .priority-question-detail-label,
body.theme-focus .report-intel-metric-label,
body.theme-focus .report-intel-info-title,
body.theme-focus .report-intel-domain-status,
body.theme-focus .priority-question-meta,
body.theme-focus .priority-question-detail-label {
  color: #ffd700 !important;
  opacity: 1 !important;
}

body.theme-dark .report-intel-metric-value,
body.theme-dark .report-intel-domain-title,
body.theme-dark .report-library-title,
body.theme-dark .report-library-focus,
body.theme-dark .priority-question-title,
body.theme-focus .report-intel-metric-value,
body.theme-focus .report-intel-domain-title,
body.theme-focus .report-library-title,
body.theme-focus .report-library-focus,
body.theme-focus .priority-question-title {
  color: #f8fbff !important;
}

body.theme-dark .report-intel-metric-detail,
body.theme-dark .report-intel-info-text,
body.theme-dark .report-intel-domain-text,
body.theme-dark .report-intel-list,
body.theme-dark .report-intel-privacy-note,
body.theme-dark .priority-question-detail-text,
body.theme-dark .report-library-note,
body.theme-dark .report-library-detail,
body.theme-dark .report-library-meta,
body.theme-dark .report-library-privacy,
body.theme-focus .report-intel-metric-detail,
body.theme-focus .report-intel-info-text,
body.theme-focus .report-intel-domain-text,
body.theme-focus .report-intel-list,
body.theme-focus .report-intel-privacy-note,
body.theme-focus .priority-question-detail-text,
body.theme-focus .report-library-note,
body.theme-focus .report-library-detail,
body.theme-focus .report-library-meta,
body.theme-focus .report-library-privacy {
  color: #c8d6ea !important;
  opacity: 1 !important;
}

body.theme-dark .report-intel-mini-score,
body.theme-dark .report-intel-domain-score,
body.theme-focus .report-intel-mini-score,
body.theme-focus .report-intel-domain-score {
  background: rgba(38, 54, 107, 0.88) !important;
  border: 1px solid rgba(125, 165, 210, 0.24) !important;
  color: #ffffff !important;
}

body.theme-focus .report-intel-mini-score,
body.theme-focus .report-intel-domain-score {
  background: rgba(14, 57, 82, 0.88) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
}

body.theme-dark .report-intel-domain-badge,
body.theme-dark .report-library-pill.is-preview,
body.theme-dark .report-library-pill.is-activation,
body.theme-dark .saved-actions-badge,
body.theme-dark .saved-actions-filter-count,
body.theme-dark .priority-question-bin,
body.theme-focus .report-intel-domain-badge,
body.theme-focus .report-library-pill.is-preview,
body.theme-focus .report-library-pill.is-activation,
body.theme-focus .saved-actions-badge,
body.theme-focus .saved-actions-filter-count,
body.theme-focus .priority-question-bin {
  background: rgba(255, 215, 0, 0.14) !important;
  border: 1px solid rgba(255, 215, 0, 0.18) !important;
  color: #ffe36a !important;
}

body.theme-dark .saved-actions-filter-chip.is-active .saved-actions-filter-count,
body.theme-focus .saved-actions-filter-chip.is-active .saved-actions-filter-count {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body.theme-dark .saved-actions-name,
body.theme-dark .reminder-card-title,
body.theme-dark .checkin-card-title,
body.theme-dark .reminder-group-title,
body.theme-dark .checkin-group-title,
body.theme-focus .saved-actions-name,
body.theme-focus .reminder-card-title,
body.theme-focus .checkin-card-title,
body.theme-focus .reminder-group-title,
body.theme-focus .checkin-group-title {
  color: #f8fbff !important;
}

body.theme-dark .saved-actions-reminder,
body.theme-dark .saved-actions-checkin,
body.theme-focus .saved-actions-reminder,
body.theme-focus .saved-actions-checkin {
  color: #d7e8ff !important;
}

body.theme-dark .saved-actions-reminder.reminder-status-due,
body.theme-dark .saved-actions-reminder.reminder-status-shown,
body.theme-dark .saved-actions-checkin.checkin-status-due,
body.theme-dark .saved-actions-checkin.checkin-status-shown,
body.theme-focus .saved-actions-reminder.reminder-status-due,
body.theme-focus .saved-actions-reminder.reminder-status-shown,
body.theme-focus .saved-actions-checkin.checkin-status-due,
body.theme-focus .saved-actions-checkin.checkin-status-shown {
  color: #ffe36a !important;
}

body.theme-dark .saved-actions-attention-note,
body.theme-focus .saved-actions-attention-note,
body.theme-dark .reminder-card-due,
body.theme-dark .reminder-card-missed,
body.theme-focus .reminder-card-due,
body.theme-focus .reminder-card-missed,
body.theme-dark .checkin-card-due,
body.theme-dark .checkin-card-missed,
body.theme-focus .checkin-card-due,
body.theme-focus .checkin-card-missed {
  background: rgba(255, 215, 0, 0.11) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffeaa2 !important;
}

body.theme-dark .schedule-move-panel,
body.theme-dark .task-reminder-panel,
body.theme-focus .schedule-move-panel,
body.theme-focus .task-reminder-panel {
  background: rgba(8, 20, 34, 0.88) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
}

body.theme-focus .schedule-move-panel,
body.theme-focus .task-reminder-panel {
  background: rgba(4, 24, 38, 0.88) !important;
  border-color: rgba(62, 211, 255, 0.26) !important;
}

body.theme-dark .schedule-move-title,
body.theme-dark .task-reminder-title,
body.theme-dark .schedule-move-state,
body.theme-focus .schedule-move-title,
body.theme-focus .task-reminder-title,
body.theme-focus .schedule-move-state {
  color: #c8d6ea !important;
}

body.theme-dark .schedule-move-time-field,
body.theme-focus .schedule-move-time-field {
  background: rgba(6, 16, 28, 0.96) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
}

body.theme-focus .schedule-move-time-field {
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .notification-toggle-row,
body.theme-dark .notification-main-toggle,
body.theme-dark .notification-pref-toggle,
body.theme-focus .notification-toggle-row,
body.theme-focus .notification-main-toggle,
body.theme-focus .notification-pref-toggle {
  background: rgba(13, 29, 48, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
}

body.theme-focus .notification-toggle-row,
body.theme-focus .notification-main-toggle,
body.theme-focus .notification-pref-toggle {
  background: rgba(5, 30, 47, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.26) !important;
}

body.theme-dark .notification-toggle-label,
body.theme-dark .notification-preferences h4,
body.theme-focus .notification-toggle-label,
body.theme-focus .notification-preferences h4 {
  color: #f4f8ff !important;
}

body.theme-dark .notification-readiness-status.is-neutral,
body.theme-focus .notification-readiness-status.is-neutral {
  background: rgba(125, 165, 210, 0.12) !important;
  color: #c8d6ea !important;
}

body.theme-dark .notification-readiness-status.is-connected,
body.theme-focus .notification-readiness-status.is-connected {
  background: rgba(30, 111, 75, 0.22) !important;
  color: #9ff0c8 !important;
}

body.theme-dark .notification-readiness-status.is-pending,
body.theme-focus .notification-readiness-status.is-pending {
  background: rgba(255, 215, 0, 0.14) !important;
  color: #ffe36a !important;
}

body.theme-dark .notification-readiness-status.is-blocked,
body.theme-focus .notification-readiness-status.is-blocked {
  background: rgba(176, 55, 55, 0.18) !important;
  color: #ffb4b4 !important;
}

body.theme-dark .notification-test-note,
body.theme-focus .notification-test-note {
  color: #b9c7dc !important;
}

body.theme-dark .notification-test-note.is-pending,
body.theme-focus .notification-test-note.is-pending {
  color: #ffe36a !important;
}

body.theme-dark .report-library-button.is-muted,
body.theme-focus .report-library-button.is-muted {
  background: rgba(125, 165, 210, 0.12) !important;
  color: #c8d6ea !important;
}

body.theme-dark .report-library-button.is-current,
body.theme-focus .report-library-button.is-current {
  background: rgba(255, 215, 0, 0.16) !important;
  color: #ffe36a !important;
}

body.theme-dark .report-library-button.is-switch,
body.theme-focus .report-library-button.is-switch,
body.theme-dark .report-library-button:not(.is-muted):not(.is-current),
body.theme-focus .report-library-button:not(.is-muted):not(.is-current) {
  background: rgba(38, 54, 107, 0.88) !important;
  border: 1px solid rgba(255, 215, 0, 0.22) !important;
  color: #ffffff !important;
}

body.theme-focus .report-library-button.is-switch,
body.theme-focus .report-library-button:not(.is-muted):not(.is-current) {
  background: rgba(14, 57, 82, 0.88) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

/* AI-M2Q-D10A: Check-ins + accent alignment for Dark/Focus themes
   Scope: CSS-only. Light mode remains unchanged.
   Dark uses Antah primary blue (#26366B); Focus uses cyan/teal surfaces. */

html body.theme-dark .action-hub-panel .checkins-panel,
html body.theme-dark .action-hub-panel .checkin-group,
html body.theme-dark .coach-modal-panel .checkins-panel {
  background: rgba(7, 17, 29, 0.96) !important;
  border-color: rgba(38, 54, 107, 0.48) !important;
  box-shadow: none !important;
}

html body.theme-focus .action-hub-panel .checkins-panel,
html body.theme-focus .action-hub-panel .checkin-group,
html body.theme-focus .coach-modal-panel .checkins-panel {
  background: rgba(4, 22, 34, 0.96) !important;
  border-color: rgba(62, 211, 255, 0.34) !important;
  box-shadow: none !important;
}

html body.theme-dark .action-hub-panel .checkin-card,
html body.theme-dark .coach-modal-panel .checkin-card {
  background: linear-gradient(135deg, rgba(11, 24, 39, 0.98) 0%, rgba(13, 27, 45, 0.96) 100%) !important;
  border-color: rgba(38, 54, 107, 0.58) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

html body.theme-focus .action-hub-panel .checkin-card,
html body.theme-focus .coach-modal-panel .checkin-card {
  background: linear-gradient(135deg, rgba(4, 25, 38, 0.98) 0%, rgba(5, 32, 48, 0.96) 100%) !important;
  border-color: rgba(62, 211, 255, 0.36) !important;
  color: #f4fbff !important;
  box-shadow: none !important;
}

html body.theme-dark .action-hub-panel .checkin-card-due,
html body.theme-dark .action-hub-panel .checkin-card-missed,
html body.theme-dark .coach-modal-panel .checkin-card-due,
html body.theme-dark .coach-modal-panel .checkin-card-missed {
  background: linear-gradient(135deg, rgba(14, 28, 45, 0.98) 0%, rgba(20, 31, 52, 0.96) 100%) !important;
  border-color: rgba(38, 54, 107, 0.76) !important;
  box-shadow: inset 3px 0 0 #26366B !important;
}

html body.theme-focus .action-hub-panel .checkin-card-due,
html body.theme-focus .action-hub-panel .checkin-card-missed,
html body.theme-focus .coach-modal-panel .checkin-card-due,
html body.theme-focus .coach-modal-panel .checkin-card-missed {
  background: linear-gradient(135deg, rgba(5, 30, 45, 0.98) 0%, rgba(6, 39, 56, 0.96) 100%) !important;
  border-color: rgba(62, 211, 255, 0.54) !important;
  box-shadow: inset 3px 0 0 rgba(62, 211, 255, 0.78) !important;
}

html body.theme-dark .action-hub-panel .checkin-card-title,
html body.theme-dark .coach-modal-panel .checkin-card-title,
html body.theme-dark .action-hub-panel .checkin-group-title,
html body.theme-dark .coach-modal-panel .checkin-group-title,
html body.theme-focus .action-hub-panel .checkin-card-title,
html body.theme-focus .coach-modal-panel .checkin-card-title,
html body.theme-focus .action-hub-panel .checkin-group-title,
html body.theme-focus .coach-modal-panel .checkin-group-title {
  color: #ffffff !important;
}

html body.theme-dark .action-hub-panel .checkin-card-meta,
html body.theme-dark .coach-modal-panel .checkin-card-meta {
  color: #c8d6ea !important;
}

html body.theme-focus .action-hub-panel .checkin-card-meta,
html body.theme-focus .coach-modal-panel .checkin-card-meta {
  color: #c5eaff !important;
}

html body.theme-dark .action-hub-panel .checkin-button,
html body.theme-dark .coach-modal-panel .checkin-button,
html body.theme-dark .task-checkin-choice {
  background: rgba(18, 32, 52, 0.96) !important;
  border-color: rgba(38, 54, 107, 0.74) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

html body.theme-focus .action-hub-panel .checkin-button,
html body.theme-focus .coach-modal-panel .checkin-button,
html body.theme-focus .task-checkin-choice {
  background: rgba(6, 32, 48, 0.96) !important;
  border-color: rgba(62, 211, 255, 0.42) !important;
  color: #f4fbff !important;
  box-shadow: none !important;
}

html body.theme-dark .action-hub-panel .checkin-button:hover:not(:disabled),
html body.theme-dark .action-hub-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-dark .coach-modal-panel .checkin-button:hover:not(:disabled),
html body.theme-dark .coach-modal-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-dark .task-checkin-choice:hover:not(:disabled),
html body.theme-dark .task-checkin-choice:focus-visible:not(:disabled),
html body.theme-focus .action-hub-panel .checkin-button:hover:not(:disabled),
html body.theme-focus .action-hub-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-focus .coach-modal-panel .checkin-button:hover:not(:disabled),
html body.theme-focus .coach-modal-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-focus .task-checkin-choice:hover:not(:disabled),
html body.theme-focus .task-checkin-choice:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
  outline: none !important;
}

html body.theme-focus .action-hub-panel .checkin-button:hover:not(:disabled),
html body.theme-focus .action-hub-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-focus .coach-modal-panel .checkin-button:hover:not(:disabled),
html body.theme-focus .coach-modal-panel .checkin-button:focus-visible:not(:disabled),
html body.theme-focus .task-checkin-choice:hover:not(:disabled),
html body.theme-focus .task-checkin-choice:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.14) !important;
}

html body.theme-dark .task-checkin-choice.is-selected,
html body.theme-dark .checkin-button.is-selected {
  background: #26366B !important;
  border-color: rgba(255, 215, 0, 0.48) !important;
  color: #ffffff !important;
}

html body.theme-focus .task-checkin-choice.is-selected,
html body.theme-focus .checkin-button.is-selected {
  background: rgba(8, 67, 94, 0.98) !important;
  border-color: rgba(62, 211, 255, 0.62) !important;
  color: #ffffff !important;
}

html body.theme-dark .action-hub-panel .saved-actions-checkin.checkin-status-due,
html body.theme-dark .action-hub-panel .saved-actions-checkin.checkin-status-shown,
html body.theme-dark .coach-modal-panel .saved-actions-checkin.checkin-status-due,
html body.theme-dark .coach-modal-panel .saved-actions-checkin.checkin-status-shown {
  color: #dce8ff !important;
}

html body.theme-focus .action-hub-panel .saved-actions-checkin.checkin-status-due,
html body.theme-focus .action-hub-panel .saved-actions-checkin.checkin-status-shown,
html body.theme-focus .coach-modal-panel .saved-actions-checkin.checkin-status-due,
html body.theme-focus .coach-modal-panel .saved-actions-checkin.checkin-status-shown {
  color: #bcefff !important;
}

/* Accent alignment: keep Dark anchored in Antah brand blue; reserve cyan for Focus. */
html body.theme-dark .action-hub-panel .action-hub-tab.is-active,
html body.theme-dark .coach-modal-panel .action-hub-tab.is-active,
html body.theme-dark .coach-modal-panel .report-intel-tab.is-active,
html body.theme-dark .coach-modal-panel .report-library-tab.is-active,
html body.theme-dark .saved-actions-filter-chip.is-active {
  background: #26366B !important;
  border-color: rgba(255, 215, 0, 0.38) !important;
  color: #ffffff !important;
}

html body.theme-focus .action-hub-panel .action-hub-tab.is-active,
html body.theme-focus .coach-modal-panel .action-hub-tab.is-active,
html body.theme-focus .coach-modal-panel .report-intel-tab.is-active,
html body.theme-focus .coach-modal-panel .report-library-tab.is-active,
html body.theme-focus .saved-actions-filter-chip.is-active {
  background: rgba(9, 63, 89, 0.96) !important;
  border-color: rgba(62, 211, 255, 0.58) !important;
  color: #ffffff !important;
}

/* AI-M2R-D2A: keep generated task-ready cards readable inside Dark/Focus chat. */
body.theme-dark .bubble.has-task-card,
body.theme-focus .bubble.has-task-card,
body.theme-dark .bubble.has-session-summary-draft,
body.theme-focus .bubble.has-session-summary-draft {
  background: rgba(12, 25, 40, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.22) !important;
  color: #f4f8ff !important;
}

body.theme-focus .bubble.has-task-card,
body.theme-focus .bubble.has-session-summary-draft {
  background: rgba(5, 26, 40, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
}

body.theme-dark .task-ready-card,
body.theme-focus .task-ready-card,
body.theme-dark .session-summary-draft-card,
body.theme-focus .session-summary-draft-card {
  background: linear-gradient(135deg, rgba(10, 24, 39, 0.98) 0%, rgba(13, 29, 48, 0.96) 100%) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

body.theme-focus .task-ready-card,
body.theme-focus .session-summary-draft-card {
  background: linear-gradient(135deg, rgba(4, 24, 38, 0.98) 0%, rgba(5, 32, 48, 0.96) 100%) !important;
  border-color: rgba(62, 211, 255, 0.34) !important;
  box-shadow: 0 0 0 1px rgba(62, 211, 255, 0.08) !important;
}

body.theme-dark .task-card-intro,
body.theme-dark .task-card-value,
body.theme-dark .task-card-status-helper,
body.theme-dark .session-summary-draft-text,
body.theme-focus .task-card-intro,
body.theme-focus .task-card-value,
body.theme-focus .task-card-status-helper,
body.theme-focus .session-summary-draft-text {
  color: #c8d6ea !important;
}

body.theme-focus .task-card-intro,
body.theme-focus .task-card-value,
body.theme-focus .task-card-status-helper,
body.theme-focus .session-summary-draft-text {
  color: #c5eaff !important;
}

body.theme-dark .task-card-title,
body.theme-focus .task-card-title {
  color: #f8fbff !important;
}

body.theme-dark .task-card-eyebrow,
body.theme-dark .task-card-label,
body.theme-dark .session-summary-draft-eyebrow,
body.theme-focus .task-card-eyebrow,
body.theme-focus .task-card-label,
body.theme-focus .session-summary-draft-eyebrow {
  color: #ffd700 !important;
  opacity: 1 !important;
}

body.theme-focus .task-card-eyebrow,
body.theme-focus .task-card-label,
body.theme-focus .session-summary-draft-eyebrow {
  color: #ffe36a !important;
}

body.theme-dark .task-card-field,
body.theme-focus .task-card-field {
  border-top-color: rgba(125, 165, 210, 0.20) !important;
}

body.theme-focus .task-card-field {
  border-top-color: rgba(62, 211, 255, 0.24) !important;
}

body.theme-dark .task-card-status,
body.theme-focus .task-card-status,
body.theme-dark .session-summary-draft-status,
body.theme-focus .session-summary-draft-status {
  background: rgba(18, 32, 52, 0.92) !important;
  border: 1px solid rgba(125, 165, 210, 0.22) !important;
  color: #dce8ff !important;
}

body.theme-focus .task-card-status,
body.theme-focus .session-summary-draft-status {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.28) !important;
  color: #c5eaff !important;
}

body.theme-dark .task-card-status.is-saving,
body.theme-dark .task-card-status.task-pause-state,
body.theme-dark .session-summary-draft-status.is-saving,
body.theme-focus .task-card-status.is-saving,
body.theme-focus .task-card-status.task-pause-state,
body.theme-focus .session-summary-draft-status.is-saving {
  background: rgba(255, 215, 0, 0.13) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffe36a !important;
}

body.theme-dark .task-card-status.is-saved,
body.theme-dark .task-card-status.task-done-state,
body.theme-dark .session-summary-draft-status.is-saved,
body.theme-focus .task-card-status.is-saved,
body.theme-focus .task-card-status.task-done-state,
body.theme-focus .session-summary-draft-status.is-saved {
  background: rgba(30, 111, 75, 0.22) !important;
  border-color: rgba(159, 240, 200, 0.20) !important;
  color: #9ff0c8 !important;
}

body.theme-dark .task-card-status.is-error,
body.theme-focus .task-card-status.is-error,
body.theme-dark .session-summary-draft-status.is-error,
body.theme-focus .session-summary-draft-status.is-error {
  background: rgba(180, 35, 24, 0.18) !important;
  border-color: rgba(255, 180, 171, 0.24) !important;
  color: #ffb4ab !important;
}

body.theme-dark .task-ready-card.is-task-saved,
body.theme-dark .task-ready-card.task-card-done-state,
body.theme-focus .task-ready-card.is-task-saved,
body.theme-focus .task-ready-card.task-card-done-state {
  border-color: rgba(159, 240, 200, 0.30) !important;
}

body.theme-dark .task-ready-card.task-card-pause-state,
body.theme-focus .task-ready-card.task-card-pause-state {
  border-color: rgba(255, 215, 0, 0.42) !important;
}

body.theme-dark .task-card-button,
body.theme-focus .task-card-button {
  background: rgba(18, 32, 52, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.26) !important;
  color: #f4f8ff !important;
  box-shadow: none !important;
}

body.theme-focus .task-card-button {
  background: rgba(8, 32, 49, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
  color: #f4fbff !important;
}

body.theme-dark .task-card-button-save,
body.theme-focus .task-card-button-save {
  background: linear-gradient(135deg, rgba(29, 54, 86, 0.98) 0%, rgba(22, 39, 65, 0.98) 100%) !important;
  border-color: rgba(255, 215, 0, 0.44) !important;
  color: #ffffff !important;
}

body.theme-focus .task-card-button-save {
  background: linear-gradient(135deg, rgba(9, 63, 89, 0.98) 0%, rgba(8, 48, 72, 0.98) 100%) !important;
  border-color: rgba(62, 211, 255, 0.56) !important;
}

body.theme-dark .task-card-button:hover:not(:disabled),
body.theme-dark .task-card-button:focus-visible:not(:disabled),
body.theme-focus .task-card-button:hover:not(:disabled),
body.theme-focus .task-card-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
  outline: none !important;
}

body.theme-focus .task-card-button:hover:not(:disabled),
body.theme-focus .task-card-button:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.14) !important;
}

/* AI-M2R-D2B: prevent task-card button hover/focus states from washing out in Dark/Focus. */
body.theme-dark .task-card-button:hover:not(:disabled),
body.theme-dark .task-card-button:focus-visible:not(:disabled) {
  background: rgba(24, 39, 61, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 12px 26px rgba(0, 0, 0, 0.28) !important;
}

body.theme-focus .task-card-button:hover:not(:disabled),
body.theme-focus .task-card-button:focus-visible:not(:disabled) {
  background: rgba(8, 42, 62, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.16), 0 12px 26px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark .task-card-button-save:hover:not(:disabled),
body.theme-dark .task-card-button-save:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, rgba(33, 59, 91, 0.98) 0%, rgba(26, 45, 72, 0.98) 100%) !important;
  border-color: rgba(255, 215, 0, 0.96) !important;
  color: #ffffff !important;
}

body.theme-focus .task-card-button-save:hover:not(:disabled),
body.theme-focus .task-card-button-save:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, rgba(10, 73, 102, 0.98) 0%, rgba(8, 56, 84, 0.98) 100%) !important;
  border-color: rgba(255, 215, 0, 0.96) !important;
  color: #ffffff !important;
}

body.theme-dark .task-card-button:active:not(:disabled),
body.theme-focus .task-card-button:active:not(:disabled) {
  transform: translateY(0);
}

body.theme-dark .task-card-button:active:not(:disabled) {
  background: rgba(16, 28, 46, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.72) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.14) !important;
}

body.theme-focus .task-card-button:active:not(:disabled) {
  background: rgba(5, 32, 48, 0.98) !important;
  border-color: rgba(62, 211, 255, 0.66) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(62, 211, 255, 0.16) !important;
}

body.theme-dark .task-card-button:disabled,
body.theme-focus .task-card-button:disabled {
  background: rgba(18, 32, 52, 0.62) !important;
  border-color: rgba(125, 165, 210, 0.14) !important;
  color: rgba(244, 248, 255, 0.56) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.theme-focus .task-card-button:disabled {
  background: rgba(8, 32, 49, 0.62) !important;
  border-color: rgba(62, 211, 255, 0.16) !important;
  color: rgba(244, 251, 255, 0.58) !important;
}

/* AI-M2R-D2C-A: normalize low-risk Dark-mode fills away from Light brand blue. */
body.theme-dark .primary-button:not(:disabled),
body.theme-dark .report-tool-button:not(:disabled),
body.theme-dark .today-plan-button.primary:not(:disabled),
body.theme-dark .setup-connect-button:not(.is-disabled) {
  background: linear-gradient(135deg, #0f1d34 0%, #081522 100%) !important;
  border-color: rgba(255, 215, 0, 0.42) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

body.theme-dark .primary-button:hover:not(:disabled),
body.theme-dark .primary-button:focus-visible:not(:disabled),
body.theme-dark .report-tool-button:hover:not(:disabled),
body.theme-dark .report-tool-button:focus-visible:not(:disabled),
body.theme-dark .today-plan-button.primary:hover:not(:disabled),
body.theme-dark .today-plan-button.primary:focus-visible:not(:disabled),
body.theme-dark .setup-connect-button:hover:not(.is-disabled),
body.theme-dark .setup-connect-button:focus-visible:not(.is-disabled) {
  background: linear-gradient(135deg, #14243b 0%, #0b1220 100%) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark #sendButton.primary-button:not(:disabled) {
  background: linear-gradient(135deg, #132844 0%, #081522 100%) !important;
  border-color: rgba(255, 215, 0, 0.54) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

body.theme-dark #sendButton.primary-button:hover:not(:disabled),
body.theme-dark #sendButton.primary-button:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #18314f 0%, #0b1220 100%) !important;
  border-color: rgba(255, 215, 0, 0.96) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.30) !important;
}

body.theme-dark .action-hub-tab.is-active,
body.theme-dark .report-library-tab.is-active,
body.theme-dark .saved-actions-filter-chip.is-active,
body.theme-dark .report-intel-tab.is-active {
  background: rgba(15, 29, 52, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.54) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26) !important;
}

body.theme-dark .report-intel-mini-score,
body.theme-dark .report-intel-domain-score {
  background: rgba(8, 21, 34, 0.96) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffffff !important;
}

body.theme-dark .report-library-button.is-switch,
body.theme-dark .report-library-button:not(.is-muted):not(.is-current) {
  background: rgba(15, 29, 52, 0.96) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffffff !important;
}

body.theme-dark .report-library-button.is-switch:hover,
body.theme-dark .report-library-button.is-switch:focus-visible,
body.theme-dark .report-library-button:not(.is-muted):not(.is-current):hover,
body.theme-dark .report-library-button:not(.is-muted):not(.is-current):focus-visible {
  background: rgba(20, 36, 59, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
}

/* AI-M2R-D2D-A: header/status/reminder-picker surfaces for Dark and Focus. */
body.theme-dark .coach-header {
  background: linear-gradient(135deg, rgba(7, 17, 29, 0.98) 0%, rgba(8, 21, 34, 0.98) 100%) !important;
  border-bottom-color: rgba(125, 165, 210, 0.22) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 215, 0, 0.08);
}

body.theme-focus .coach-header {
  background: linear-gradient(135deg, rgba(4, 18, 30, 0.98) 0%, rgba(5, 30, 47, 0.98) 100%) !important;
  border-bottom-color: rgba(62, 211, 255, 0.32) !important;
  box-shadow: inset 0 -1px 0 rgba(62, 211, 255, 0.12);
}

body.theme-dark .status-pill,
body.theme-dark #connectionStatus.status-pill {
  background: rgba(12, 25, 40, 0.92) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #f8fbff !important;
  box-shadow: none !important;
}

body.theme-focus .status-pill,
body.theme-focus #connectionStatus.status-pill {
  background: rgba(6, 32, 48, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.44) !important;
  color: #f4fbff !important;
  box-shadow: 0 0 0 1px rgba(62, 211, 255, 0.08) !important;
}

body.theme-dark .coach-header-actions .today-plan-toggle-button {
  background: rgba(12, 25, 40, 0.92) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.theme-focus .coach-header-actions .today-plan-toggle-button {
  background: rgba(6, 32, 48, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.44) !important;
  color: #f4fbff !important;
  box-shadow: 0 0 0 1px rgba(62, 211, 255, 0.08) !important;
}

body.theme-dark .coach-header-actions .today-plan-toggle-button:hover:not(:disabled),
body.theme-dark .coach-header-actions .today-plan-toggle-button:focus-visible:not(:disabled) {
  background: rgba(20, 36, 59, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16) !important;
  outline: none !important;
}

body.theme-focus .coach-header-actions .today-plan-toggle-button:hover:not(:disabled),
body.theme-focus .coach-header-actions .today-plan-toggle-button:focus-visible:not(:disabled) {
  background: rgba(8, 42, 62, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 0 22px rgba(62, 211, 255, 0.14) !important;
  outline: none !important;
}

body.theme-dark .task-reminder-time-row,
body.theme-focus .task-reminder-time-row {
  background: rgba(8, 20, 34, 0.92) !important;
  border-color: rgba(125, 165, 210, 0.24) !important;
  color: #f4f8ff !important;
}

body.theme-focus .task-reminder-time-row {
  background: rgba(4, 24, 38, 0.92) !important;
  border-color: rgba(62, 211, 255, 0.30) !important;
}

body.theme-dark .task-reminder-time-label,
body.theme-focus .task-reminder-time-label {
  color: #c8d6ea !important;
}

body.theme-focus .task-reminder-time-label {
  color: #c5eaff !important;
}

body.theme-dark .task-reminder-time-field,
body.theme-focus .task-reminder-time-field {
  background: rgba(6, 16, 28, 0.96) !important;
  border-color: rgba(125, 165, 210, 0.28) !important;
  color: #f4f8ff !important;
  color-scheme: dark;
  box-shadow: none !important;
}

body.theme-focus .task-reminder-time-field {
  background: rgba(4, 24, 38, 0.96) !important;
  border-color: rgba(62, 211, 255, 0.34) !important;
  color: #f4fbff !important;
}

body.theme-dark .task-reminder-time-field:focus-visible,
body.theme-focus .task-reminder-time-field:focus-visible {
  border-color: rgba(255, 215, 0, 0.88) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14) !important;
}

body.theme-focus .task-reminder-time-field:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12), 0 0 18px rgba(62, 211, 255, 0.14) !important;
}

body.theme-dark .task-reminder-time-field::-webkit-calendar-picker-indicator,
body.theme-focus .task-reminder-time-field::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  opacity: 0.82;
}

body.theme-dark .task-reminder-choice.is-selected,
body.theme-dark .task-checkin-choice.is-selected {
  background: rgba(20, 36, 59, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.58) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10) !important;
}

body.theme-focus .task-reminder-choice.is-selected,
body.theme-focus .task-checkin-choice.is-selected {
  background: rgba(8, 58, 84, 0.98) !important;
  border-color: rgba(62, 211, 255, 0.62) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(62, 211, 255, 0.14) !important;
}

/* AI-M2R-D2D-B: override high-specificity Dark selected states that still used brand blue. */
html body.theme-dark .action-hub-panel .action-hub-tab.is-active,
html body.theme-dark .coach-modal-panel .action-hub-tab.is-active,
html body.theme-dark .coach-modal-panel .report-intel-tab.is-active,
html body.theme-dark .coach-modal-panel .report-library-tab.is-active,
html body.theme-dark .saved-actions-filter-chip.is-active {
  background: rgba(15, 29, 52, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.56) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

html body.theme-dark .action-hub-panel .action-hub-tab.is-active:hover,
html body.theme-dark .action-hub-panel .action-hub-tab.is-active:focus-visible,
html body.theme-dark .coach-modal-panel .action-hub-tab.is-active:hover,
html body.theme-dark .coach-modal-panel .action-hub-tab.is-active:focus-visible,
html body.theme-dark .coach-modal-panel .report-intel-tab.is-active:hover,
html body.theme-dark .coach-modal-panel .report-intel-tab.is-active:focus-visible,
html body.theme-dark .coach-modal-panel .report-library-tab.is-active:hover,
html body.theme-dark .coach-modal-panel .report-library-tab.is-active:focus-visible,
html body.theme-dark .saved-actions-filter-chip.is-active:hover,
html body.theme-dark .saved-actions-filter-chip.is-active:focus-visible {
  background: rgba(20, 36, 59, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

html body.theme-dark .coach-modal-panel .report-intel-mini-score,
html body.theme-dark .coach-modal-panel .report-intel-domain-score {
  background: rgba(8, 21, 34, 0.96) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffffff !important;
}

html body.theme-dark .coach-modal-panel .report-library-button.is-switch,
html body.theme-dark .coach-modal-panel .report-library-button:not(.is-muted):not(.is-current) {
  background: rgba(15, 29, 52, 0.96) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffffff !important;
}

html body.theme-dark .coach-modal-panel .report-library-button.is-current {
  background: rgba(255, 215, 0, 0.16) !important;
  border-color: rgba(255, 215, 0, 0.34) !important;
  color: #ffe36a !important;
}

html body.theme-dark .coach-modal-panel .report-library-item.is-selected {
  background: linear-gradient(135deg, rgba(20, 34, 52, 0.96) 0%, rgba(36, 43, 39, 0.92) 100%) !important;
  border-color: rgba(255, 215, 0, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10) !important;
}

html body.theme-dark .task-checkin-choice.is-selected,
html body.theme-dark .checkin-button.is-selected {
  background: rgba(20, 36, 59, 0.98) !important;
  border-color: rgba(255, 215, 0, 0.58) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10) !important;
}

html body.theme-dark .action-hub-panel .checkin-card-due,
html body.theme-dark .action-hub-panel .checkin-card-missed,
html body.theme-dark .coach-modal-panel .checkin-card-due,
html body.theme-dark .coach-modal-panel .checkin-card-missed {
  background: linear-gradient(135deg, rgba(14, 28, 45, 0.98) 0%, rgba(25, 35, 45, 0.96) 100%) !important;
  border-color: rgba(255, 215, 0, 0.42) !important;
  box-shadow: inset 3px 0 0 rgba(255, 215, 0, 0.72) !important;
}
