@charset "UTF-8";
:root {
  color-scheme: light;
  --forest: #15372a;
  --forest-deep: #112e23;
  --lime: #6BDE5B;
  --mint: #DAF7D6;
  --pale: #F5F8F2;
  --slate: #697871;
  --white: #FFFFFF;
  --ink: #1c3026;
  --line: #dce5db;
  --green-text: #255938;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--pale); color: var(--ink); line-height: 1.5; }
a { color: var(--green-text); text-decoration-color: #578564; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #378049; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 720; overflow-wrap: anywhere; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; }
small { color: var(--slate); display: block; font-size: .875rem; font-weight: 400; }
.subtext { margin-top: .55rem; color: var(--slate); overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: var(--white); display: flex; flex-flow: column; gap: 1.2rem; padding: 1.55rem 1.12rem; min-height: 100vh; }
.brand { display: inline-flex; gap: .72rem; align-items: center; color: var(--white); text-decoration: none; font-size: 1.15rem; font-weight: 710; line-height: 1.18; letter-spacing: -.025em; }
.brand small { color: #b5d0be; margin-top: .19rem; font-size: .85rem; letter-spacing: 0; }
.logo { position: relative; display: inline-grid; width: 2.35rem; height: 2.35rem; flex: none; place-content: center; background: var(--lime); border-radius: .7rem; overflow: hidden; }
.logo i { width: .95rem; height: .13rem; margin: .1rem; border-radius: .25rem; background: var(--forest); transform: rotate(-34deg) translateX(.09rem); }
.logo i:nth-child(2) { width: 1.22rem; transform: rotate(-34deg); }
.logo i:nth-child(3) { width: .76rem; transform: rotate(-34deg) translateX(.17rem); }
.sidebar nav { display: grid; gap: .3rem; margin-top: 1.45rem; }
.sidebar nav a, .signout { text-decoration: none; display: flex; align-items: center; gap: .7rem; padding: .68rem .75rem; border-radius: .55rem; font-size: .93rem; color: #d8ece0; line-height: 1.2; min-height: 42px; }
.sidebar nav a[aria-current] { background: #2c513d; color: var(--white); box-shadow: inset 3px 0 var(--lime); }
.sidebar nav a:hover, .signout:hover { background: #305441; color: var(--white); }
.sidebar :focus-visible, .auth-brand :focus-visible { outline-color: var(--lime); }
.nav-icon { display: inline-block; width: .95rem; height: .82rem; border: 1.5px solid currentColor; border-radius: .22rem; position: relative; }
.nav-icon::before { content: ''; position: absolute; top: .23rem; left: .15rem; width: .51rem; height: .22rem; border: 1px solid currentColor; border-width: 1px 0; }
.nav-icon.members { border-radius: 50%; width: .63rem; height: .63rem; margin: 0 .16rem .35rem; }
.nav-icon.members::before { width: .91rem; height: .42rem; left: -.22rem; top: .61rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .5rem .5rem 0 0; }
.identity { border-top: 1px solid #40604f; display: flex; align-items: center; gap: .65rem; margin-top: auto; padding: 1rem .1rem 0; min-width: 0; }
.identity strong { overflow-wrap: anywhere; font-size: .91rem; }
.identity small { color: #bdcfc3; font-size: .82rem; }
.avatar { display: grid; place-items: center; flex: none; height: 2.2rem; width: 2.2rem; border-radius: 50%; color: var(--forest); background: var(--mint); font-weight: 700; }
.signout { border: 0; background: transparent; cursor: pointer; width: 100%; }
.main { width: min(100%, 90rem); margin: 0 auto; padding: 3.2rem clamp(1rem, 4vw, 4rem) 4rem; min-width: 0; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: 1.55rem; flex-wrap: wrap; }
.heading.detail { align-items: center; margin-top: .6rem; }
.breadcrumb { font-size: .9rem; font-weight: 650; }
.panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--white); min-width: 0; }
.button { min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 650; font-size: .92rem; line-height: 1.18; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.primary { color: var(--forest-deep); background: var(--lime); }
.primary:hover { background: #85e778; }
.secondary { background: var(--white); border-color: #cdd9ce; color: var(--forest); }
.secondary:hover { background: var(--pale); border-color: #9eb4a2; }
label { display: grid; align-content: start; gap: .32rem; color: #334b3f; font-size: .9rem; font-weight: 650; text-align: left; min-width: 0; }
input:not([type=hidden]), select, textarea { width: 100%; min-width: 0; min-height: 2.75rem; color: var(--ink); background: var(--white); border: 1px solid #cdd9ce; border-radius: .5rem; padding: .54rem .7rem; font-weight: 400; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #65776d; }
input:disabled, select:disabled, textarea:disabled { opacity: 1; background: var(--pale); }
textarea { resize: vertical; }
.filters { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(8rem,.35fr) minmax(8rem,.35fr) auto; align-items: end; gap: .8rem; padding: 1rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .94rem; }
thead { background: #eef4ec; color: #42584b; }
th, td { padding: .7rem .85rem; border-top: 1px solid #e7ede6; vertical-align: middle; }
th { font-size: .86rem; font-weight: 650; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 1rem; }
td:first-child { min-width: 12rem; }
td:last-child { white-space: nowrap; }
tbody tr:hover { background: #f8fbf7; }
.lead-name { color: var(--ink); font-weight: 680; text-decoration: none; overflow-wrap: anywhere; }
.lead-name:hover { text-decoration: underline; }
td small { overflow-wrap: anywhere; }
.stage { display: inline-block; white-space: nowrap; border-radius: .35rem; background: #edf2eb; color: #40564a; padding: .22rem .5rem; font-weight: 650; font-size: .82rem; }
.stage-qualified, .stage-meeting { background: var(--mint); color: #225834; }
.stage-contacted { background: #eaf1f2; color: #375867; }
.muted { color: var(--slate); }
.empty { text-align: center; border-top: 1px solid var(--line); padding: 4rem 1rem; background: #fbfdfa; border-radius: 0 0 .85rem .85rem; }
.empty p { color: var(--slate); margin: .42rem 0 1.1rem; }
.pager { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .6rem; padding: .9rem; }
.stack, .lead-form { display: grid; gap: 1rem; }
.lead-form { max-width: 58rem; }
.form-panel { margin: 0; padding: .65rem 1.2rem 1.25rem; }
.form-panel legend { padding: 0 .45rem; color: var(--forest); font-weight: 700; font-size: 1.04rem; }
.form-grid { display: grid; gap: .95rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.archive { margin-top: 1.1rem; }
.message { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: .6rem; font-size: .94rem; overflow-wrap: anywhere; }
.message p { margin: .25rem 0 .55rem; }
.error { color: #802c2b; background: #fff0ee; border: 1px solid #f2cac5; }
.notice { color: #234e31; background: #e9f8e7; border: 1px solid #c6e6c4; }
.team-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; }
.section-panel { padding: 1.1rem; }
.section-panel h2 { margin-bottom: .85rem; }
.team-list { margin-top: 0; padding-left: 1.25rem; }
.members-panel, .audit-panel { margin-top: 1rem; }
.member { border-top: 1px solid var(--line); }
.member summary { cursor: pointer; min-height: 3.2rem; padding: .7rem 0; display: grid; grid-template-columns: minmax(0, 1fr) 6rem 4.2rem; gap: .7rem; align-items: center; }
.member summary span:first-child { overflow-wrap: anywhere; }
.member summary .stage { justify-self: start; }
.member summary::after { content: 'Manage access'; grid-column: 1 / -1; color: var(--green-text); font-size: .82rem; text-decoration: underline; }
.member[open] summary::after { content: 'Hide details'; }
.member-form { display: grid; gap: .7rem; margin: .25rem 0 1rem; }
.guest { min-height: 100vh; display: grid; align-items: center; justify-items: center; padding: 1.5rem; }
.auth-frame { display: grid; grid-template-columns: .95fr 1fr; max-width: 55rem; width: 100%; border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 16px 60px #17352912; }
.auth-brand { min-height: 30rem; display: grid; align-content: start; gap: 5rem; position: relative; isolation: isolate; overflow: hidden; padding: 2rem; background: var(--forest); color: var(--white); }
.auth-brand-content { z-index: 1; }
.auth-brand-content span { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.07; display: block; }
.auth-brand-content p { max-width: 16rem; color: #daeee0; margin-top: .8rem; }
.motif { position: absolute; width: 18rem; height: 18rem; bottom: -9rem; right: -5rem; border: 1px solid #52835e; transform: rotate(42deg); border-radius: 3.1rem; }
.motif i { position: absolute; inset: 1.1rem; border: 1px solid #70a86e; border-radius: 2.6rem; }
.motif i:nth-child(2) { inset: 2.2rem; border-color: var(--lime); border-radius: 2.2rem; }
.motif i:nth-child(3) { inset: 3.3rem; border-color: #649e63; border-radius: 1.8rem; }
.auth-main { padding: clamp(1.4rem,4vw,3.1rem); display: grid; align-items: center; }
.auth-content > .stack { margin-top: 1.35rem; }
.auth-help { color: var(--slate); margin-top: 1.1rem; font-size: .9rem; }
@media (max-width: 900px) {
 .workspace { grid-template-columns: 12rem minmax(0, 1fr); }
 .filters { grid-template-columns: 1fr 1fr; }
 .search { grid-column: span 2; }
 .filters .button { justify-self: start; }
}
@media (max-width: 650px) {
 .workspace { display: block; }
 .sidebar { display: grid; grid-template-columns: auto 1fr auto; min-height: 0; gap: .45rem .65rem; align-items: center; padding: .85rem; }
 .sidebar .brand { grid-column: 1 / 3; }
 .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; margin: 0; }
 .sidebar .identity { grid-row: 3; grid-column: 1 / -1; margin: 0; padding-top: .45rem; }
 .sidebar form { grid-row: 1; grid-column: 3; }
 .main { padding-top: 1.5rem; }
 .guest { padding: .75rem; }
 .auth-frame { grid-template-columns: 1fr; }
 .auth-brand { min-height: 0; padding: 1rem 1.2rem; gap: 0; }
 .auth-brand-content { display: none; }
 .auth-main { min-height: 24rem; }
 .team-grid, .form-grid { grid-template-columns: 1fr; }
 .form-grid .span-2 { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.microsoft-signin { margin-top: .7rem; width: 100%; }
.gear { width: .84rem; height: .84rem; border-radius: .26rem; transform: rotate(45deg); margin: 0 .06rem; }
.gear::before { top: .18rem; left: .18rem; width: .31rem; height: .31rem; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark { color: var(--forest-deep); font-size: .77rem; line-height: 1; text-align: center; padding: .15rem; overflow-wrap: anywhere; }
.settings-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; padding-bottom: .9rem; font-weight: 650; font-size: .92rem; }
.settings-panel { margin-bottom: 1rem; max-width: 62rem; scroll-margin-top: 1rem; }
.settings-panel h2 { margin-bottom: .35rem; }
.section-note { margin: .2rem 0 1rem; color: var(--slate); font-size: .94rem; }
.setting-group { border-top: 1px solid var(--line); padding: .65rem 0; }
.setting-group summary, .recover summary { color: var(--forest-deep); font-weight: 650; cursor: pointer; padding: .25rem 0; }
.setting-group[open] { padding-bottom: 1rem; }
.checkline { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; font-weight: 400; }
.checkline input[type=checkbox] { width: 1.05rem; min-height: 1.05rem; margin: 0; }
input[type=color] { width: 7rem; padding: .22rem .3rem; }
.settings-heading, .backup-row { display: flex; align-items: start; gap: .8rem 1rem; justify-content: space-between; flex-wrap: wrap; }
.backup-row { border-top: 1px solid var(--line); padding: .65rem 0; overflow-wrap: anywhere; }
.backup-row > div { min-width: 0; }
.backup-row p { color: var(--slate); font-size: .9rem; }
.recover { min-width: 12rem; }
.stage-completed { background: var(--mint); }
.stage-failed { background: #fff0ee; color: #802c2b; }
.recipient-list { max-height: 23rem; overflow-y: auto; }
.recipient { display: grid; grid-template-columns: 1.1rem minmax(0,1fr) minmax(0,auto); gap: .75rem; align-items: center; padding: .45rem .2rem; border-bottom: 1px solid var(--line); }
.recipient input[type=checkbox] { width: 1.05rem; min-height: 1.05rem; margin: 0; }
.recipient span { overflow-wrap: anywhere; }
.campaign-metrics { display: grid; gap: .75rem; grid-template-columns: repeat(4,1fr); margin-bottom: 1rem; }
.campaign-metrics .panel { padding: .75rem .95rem; }
.campaign-metrics strong { font-size: 1.5rem; }
.campaign-actions,.campaign-content,.campaign-deliveries { margin-bottom: 1rem; }
.message-preview { white-space: pre-wrap; overflow-wrap: anywhere; margin: .55rem 0 1rem; }
.stage-active,.stage-accepted,.stage-delivered,.stage-replied { background: var(--mint); color: #225834; }
.stage-unknown,.stage-review,.stage-paused { background: #fff3d4; color: #61491b; }
.stage-bounced,.stage-complaint,.stage-blocked,.stage-rejected { background: #fff0ee; color: #802c2b; }
@media (max-width: 650px) { .campaign-metrics { grid-template-columns: repeat(2,1fr); } }
