/* PolarMail workspace palette */
:root {
  color-scheme: light;
  --brunswick: #0c4137;
  --emerald: #06d6a0;
  --polar: #e6fbf6;
  --bg: #f1faf7;
  --ink: #103b32;
  --muted: #48675f;
  --line: #c7ddd5;
  --purple: #07664f;
  --glass: white;
  --glass-line: var(--line);
}
html body {background: var(--bg); color: var(--ink)}
body aside, body .mobile-nav {background: var(--brunswick); color: var(--polar); backdrop-filter: none}
body main header {background: rgba(12,65,55,.97); backdrop-filter: blur(12px); padding-inline: 1rem; color: var(--polar)}
body aside :is(a,strong,span,small,.profile,.workspace,.nav-icon), body main header :is(span,.breadcrumb), body .mobile-nav :is(a,span,button) {color: var(--polar)}
body aside .workspace, body aside .workspace-symbol {background: #174f44; border-color: #568174}
body aside nav a:is(:hover,.active), body .mobile-nav :is(a,button).active {background: #235d50; color: white}
body aside nav a.active {border-inline-start: 3px solid var(--emerald)}
body :is(header,aside) .avatar, body header button.icon {background: var(--polar); color: var(--brunswick)}
body :is(.eyebrow,.side-note,.demo-dot) {display:none}
body main :is(h1,h2,h3,h4,strong,label,.company,.stat-value,.work-row,.work-row span), body dialog :is(h2,h3,label) {color: var(--ink)}
body main :is(.subtitle,p,small,.stat-top,.stat-bottom,.work-row small,.work-sync span,footer), body #assistant :is(small,summary) {color: var(--muted)}
body main .page-top h1 {font-size: clamp(2rem,4vw,3.25rem); letter-spacing: -.045em; line-height: 1.12}
body :is(.panel,.card,.stat,.research-card,.lead-card,.task-message,.contact-message,.campaign-card,.integration,.journey-welcome,.composer-inner,.composer-response,.composer-suggestions,.composer-foot,dialog), body #work-view .panel, body #assistant #command-form {
  background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; backdrop-filter: none
}
body main :is(.health-note,.notice,.empty,.work-tabs [aria-current=page]), body #work-sync-status {background: var(--polar); color: var(--ink)}
body :is(.work-links a,.work-tabs a,.text-button,.campaign-card-action,.service-source a), body main a {color: #07664f}
body :is(input,textarea,select), body #assistant textarea {background: white; border-color: #78978d; color: var(--ink)}
body :is(input,textarea)::placeholder {color: #506e65}
body button:not(.secondary,.icon,.text-button,.campaign-card,.overview-contact,.overview-metric), body main .top-actions>a {background: var(--emerald); color: #092f27; border-color: transparent; box-shadow: none}
body button.secondary, body .offer-variants button {background: var(--polar); color: var(--brunswick); border: 1px solid #8db1a6}
body main .panel th, body main .panel td, body main .table-wrap {color: var(--ink); border-color: var(--line)}
body main :is(.work-row:hover,.panel th,.task-message.user), body #modal .modal-top {background: var(--polar)}
body :focus-visible {outline: 3px solid #087158; outline-offset: 3px}
body :is(header,aside,.mobile-nav) :focus-visible {outline-color: var(--emerald)}
body .badge {background: var(--polar); color: #185642}
body .badge.orange {background: #fff1d8; color: #76480d}
body #daily-sales textarea {margin-top:.45rem; line-height:1.6}
body #daily-sales .incoming-message {white-space:pre-wrap; color:var(--ink); line-height:1.6}
.sales-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.sales-overview>div{background:white;padding:1rem;display:grid;gap:.25rem}.sales-overview strong{font-size:2rem}.sales-overview span{font-size:.88rem}#daily-sales details{border-top:1px solid var(--line);padding:1rem 0}#daily-sales details details{padding-left:.8rem}#daily-sales summary{cursor:pointer}#daily-sales form{margin:1rem 0}#daily-sales .panel{margin:1rem 0}
.today-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:1rem 0;background:white}.today-metrics a{display:grid;align-content:start;gap:.35rem;padding:1rem;text-decoration:none;color:var(--ink);border-inline-end:1px solid var(--line)}.today-metrics a:hover,.today-metrics a:focus-visible{filter:brightness(1.04)}.today-metrics strong{font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.1;font-weight:500}.today-metrics span{font-size:.93rem}@media(max-width:680px){.today-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.today-metrics a:nth-child(-n+2){border-bottom:1px solid var(--line)}}

.finder-active .service-source{grid-column:1/-1;padding:0 0 .8rem;border-bottom:1px solid var(--line)}.service-source p{margin:.2rem 0 .6rem}.service-source a,.service-source button{font-size:.9rem}

/* Reuse the reference colours on solid surfaces so controls stay distinct on small screens. */
body {--bg: var(--polar)}
body button:not(.campaign-card,.overview-contact,.overview-metric),
body main .top-actions > a,
body .work-tabs a {border-radius: 999px}
body button:not(.secondary,.icon,.text-button,.campaign-card,.overview-contact,.overview-metric),
body main .top-actions > a {
  color: var(--brunswick);
  box-shadow: 0 2px 0 rgb(12 65 55 / 24%);
}
body button:active:not(:disabled) {transform: translateY(1px)}
@media (max-width: 760px) {
  body main header {background: var(--brunswick)}
  body main .page-top {display: grid; gap: .75rem; margin-bottom: 1rem}
  body main .page-top h1 {font-size: clamp(1.7rem, 7vw, 2.25rem)}
  body main .top-actions {flex-wrap: wrap}
  body :is(button, .top-actions > a, .work-tabs a) {min-height: 44px}
  body :is(input:not([type=checkbox],[type=radio]), select, textarea) {font-size: 1rem}
  body main :is(.panel,.work-detail,.today-metrics a,.sales-overview > div) {min-width: 0; overflow-wrap: anywhere}
  body .sales-overview {grid-template-columns: repeat(2,minmax(0,1fr))}
  body .mobile-nav {
    display: grid; gap: 4px; background: var(--brunswick);
    padding: 6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  }
  body .mobile-nav a {width:auto; min-height:48px; gap:2px; font-size:.75rem; border-radius:16px}
  body .mobile-nav a.active, body .mobile-nav a.active span {background:var(--emerald); color:var(--brunswick)}
  body.keyboard-open .mobile-nav {display:none}
  body #daily-sales form button {width:100%}
  body #daily-sales summary {min-height:44px; align-content:center}
}

/* A continuous pool of light under the workspace, with deep ink in the gutters. */
html body {
  --ink-canvas: #031513;
  --lit-paper: radial-gradient(ellipse at 100% 0%, #bce8da 0%, transparent 55%), linear-gradient(150deg, #f7fff9, #e6fbf6 68%, #cee7df);
  --edge-light: inset 0 1px 0 #f1fff589, inset 0 -1px 0 #07352a26;
  background: radial-gradient(ellipse 58% 48% at 91% 3%, #1d554b 0%, transparent 85%),
              radial-gradient(ellipse 56% 45% at 24% 82%, #0c4137, transparent 83%), var(--ink-canvas);
  min-height: 100vh;
}
body aside, body main header, body .mobile-nav {
  background: radial-gradient(ellipse at 8% 0%, #245f54, transparent 65%), linear-gradient(112deg,#0c4137,#031b17 86%);
  border-color: #47756865;
}
body main header {border-radius:0 0 18px 18px}
body #content {
  background: var(--lit-paper); padding: clamp(12px,2vw,26px);
  margin-top: 1rem; border-radius: 22px; box-shadow: var(--edge-light),0 8px 24px #0003;
}
body #content:has(#work-view), body #content:has(#daily-sales) {background:none; box-shadow:none; padding:0}
body :is(#work-view,#daily-sales) > .page-top {
  background: radial-gradient(ellipse 68% 145% at 110% 108%, #75ae9e 0%, #215a50 38%, transparent 74%),
              radial-gradient(ellipse 75% 140% at -10% -45%, #58958a, transparent 77%),
              linear-gradient(140deg,#0c4137,#051e19 56%,#0a352e);
  border-radius:22px; padding:clamp(22px,4vw,54px);
  box-shadow:inset 0 0 0 1px #b3f3d62c,0 8px 24px #0003;
  align-items:center; margin-bottom:14px;
}
body :is(#work-view,#daily-sales) > .page-top h1 {
  font-family:Georgia,serif; font-weight:400; color:var(--polar); font-size:clamp(2.3rem,5vw,4rem);
}
body .page-top p:empty {display:none}
body main :is(.panel,.stat,.card,.campaign-card), body #work-view .panel {
  background:var(--lit-paper); box-shadow:var(--edge-light),0 6px 20px #001c161c; border-radius:18px;
}
body .today-metrics, body .sales-overview {
  gap:8px; background:transparent; border:0; border-radius:0; overflow:visible;
}
body .today-metrics a,body .sales-overview > div {
  background:linear-gradient(145deg,#235f53,#0c4137 58%,#082d26);
  border:0; border-radius:16px; color:var(--polar); box-shadow:inset 0 1px 0 #c4ffdf40;
}
body .today-metrics a:first-child, body .sales-overview > div:first-child {
  background:linear-gradient(150deg,#73e9c1,#06d6a0 55%,#19b990); color:#062e25;
}
body .today-metrics a:hover, body .today-metrics a:focus-visible {box-shadow:inset 0 0 0 2px #a8f2d7}
body main :is(.today-metrics,.sales-overview) strong {color:inherit}
body :is(#daily-sales,#work-view) > :is(.subtitle,p,.work-sync),body #work-view .work-sync span,body main footer {color:#d4ece2}
body .work-sync .secondary {background:var(--polar)}
body button:not(.secondary,.icon,.text-button,.campaign-card,.overview-contact,.overview-metric),body main .top-actions>a:not(.secondary) {
  background-color:var(--emerald);
  background-image:linear-gradient(155deg,#7aeac5 0%,#06d6a0 57%,#22bf95);
  box-shadow:inset 0 1px 0 #d8fff399,0 2px 6px #01261d29;
}
body main .top-actions>a.secondary {background:var(--polar); color:var(--brunswick)}
@media(max-width:760px){
  body :is(#work-view,#daily-sales) > .page-top {padding:22px 18px}
  body .today-metrics a:nth-child(-n+2) {border:0}
  body main #content {margin-top:12px}
}
body #assistant #command-run {background:linear-gradient(145deg,#79ecc6,#06d6a0 65%,#1abd90); color:#062e25}
body #assistant #listen {background:linear-gradient(145deg,#effdf7,#c2e8dc); color:#0c4137}

/* Keep both overview actions accessible in the narrow header. */
body #work-view .page-top .top-actions>a {display:inline-flex; align-items:center; justify-content:center; padding:.6rem 1rem}
body #work-view .work-sync {margin-block:1rem}
body #work-view .dashboard-actions summary {cursor:pointer;padding:.8rem 0}

body #daily-sales > .page-top {padding:clamp(18px,2vw,30px); margin-bottom:12px}
body #daily-sales > .page-top h1 {font-size:clamp(1.85rem,3vw,2.65rem);line-height:1.12}
body #daily-sales .sales-overview {background:transparent;gap:clamp(8px,1vw,14px)}
body #daily-sales > .subtitle {margin:.85rem 0 1.25rem;line-height:1.5}
body #daily-sales .incoming-message {max-width:75ch}
body #sales-assistant:not([hidden]) {margin:10px 0 0;color:var(--polar)}
body #sales-assistant > summary {width:fit-content;margin-left:auto;padding:10px 14px;cursor:pointer;font-size:.9rem}
body #sales-assistant > summary:focus-visible {outline-color:var(--emerald)}
body #sales-assistant #assistant {position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:4px 0 0;transform:none;color:var(--ink)}
body #sales-assistant .composer-inner {padding:12px;background:var(--lit-paper)}
body #sales-assistant :is(.composer-response,.composer-foot) {background:transparent;border:none;box-shadow:none}
body #sales-assistant .composer-foot>span {display:none}
body main:has(#daily-sales) {padding-bottom:calc(85px + env(safe-area-inset-bottom))!important}
body main header #crumb,body main header .breadcrumb {color:var(--polar)}
body main header #help,body main header .avatar {background:var(--polar);color:var(--brunswick)}
body main header #help {width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #add3c6}

body #daily-sales details.panel:has(#suppress-declines) {padding:1rem 1.25rem}
#daily-sales label:has(#suppress-declines) {display:flex;align-items:center;gap:.65rem;line-height:1.45;font-size:.95rem}
body #daily-sales #suppress-declines {width:20px;height:20px;min-height:0;flex:none;margin:0;accent-color:#07664f}
