.admin-shell {
  --ad-ink: var(--ink, #182d28);
  --ad-ink-soft: var(--ink-2, #34534b);
  --ad-cream: var(--cream, #f7f5ef);
  --ad-paper: var(--paper, #fffefa);
  --ad-line: var(--line, #e6e5dc);
  --ad-gold: var(--gold, #b9935b);
  --ad-muted: var(--muted, #67766f);
  min-height: 100vh;
  display: flex;
  background: var(--ad-cream);
  color: var(--ad-ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}

.admin-shell *, .admin-shell *::before, .admin-shell *::after { box-sizing: border-box; }
.admin-shell button, .admin-shell input, .admin-shell select, .admin-shell textarea { font: inherit; }
.admin-shell button { cursor: pointer; }
.admin-shell a { color: inherit; text-decoration: none; }
.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell p { margin: 0; }
.admin-shell [hidden] { display: none !important; }
.admin-shell :focus-visible { outline: 2px solid var(--ad-gold); outline-offset: 3px; }

.ad-sidebar {
  width: 256px;
  flex: 0 0 256px;
  min-height: 100vh;
  padding: 28px 18px 18px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  background: #17352d;
  color: #f4f2e9;
  z-index: 5;
}
.ad-brand { display: flex; align-items: center; gap: 11px; padding: 2px 12px 47px; }
.ad-brand-mark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; letter-spacing: -3px; line-height: .8; white-space: nowrap; }
.ad-brand-mark span { color: #d7b982; }
.ad-brand-word { font-size: 10px; font-weight: 700; line-height: 1.25; letter-spacing: .19em; white-space: nowrap; }
.ad-brand-word small { display: block; color: #afc4b8; font-size: 8px; letter-spacing: .18em; font-weight: 500; margin-top: 4px; }
.ad-nav-label { padding: 0 16px 12px; color: #8dad9f; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.ad-nav { display: flex; flex-direction: column; gap: 5px; }
.ad-nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 8px; color: #c4d0c9; font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.ad-nav a:hover { color: white; background: rgba(255,255,255,.08); }
.ad-nav a.is-active { color: #fff; background: #2b4d3f; font-weight: 700; }
.ad-nav a.is-active svg { color: #dec391; }
.ad-nav a i { width: 3px; height: 21px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: #d5b77f; border-radius: 4px 0 0 4px; }
.ad-sidebar-bottom { margin-top: auto; }
.ad-sidebar-note { position: relative; padding: 19px 17px 17px; margin: 24px 2px 18px; border: 1px solid rgba(225,220,193,.16); border-radius: 10px; background: rgba(255,255,255,.045); }
.ad-sidebar-note-icon { display: block; color: #d9bf8b; font-size: 22px; margin-bottom: 13px; }
.ad-sidebar-note strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; font-weight: 500; line-height: 1; }
.ad-sidebar-note p { color: #aebfb5; font-size: 11px; line-height: 1.5; margin-top: 8px; }
.ad-site-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; color: #d8c497 !important; font-size: 11px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.12); }
.ad-site-link:hover { color: white !important; }
.ad-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 16px 12px 2px; }
.ad-user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-family: "Cormorant Garamond", Georgia, serif; font-size: 14px; color: #e4c88d; }
.ad-sidebar-user strong, .ad-sidebar-user small { display: block; }
.ad-sidebar-user strong { font-size: 10px; font-weight: 700; }
.ad-sidebar-user small { color: #9eb8aa; font-size: 9px; margin-top: 3px; }
.ad-online { width: 6px; height: 6px; background: #9bc4a0; border-radius: 50%; margin-left: auto; }

.ad-main-wrap { flex: 1; min-width: 0; }
.ad-topbar { height: 72px; padding: 0 46px; border-bottom: 1px solid var(--ad-line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,254,250,.7); }
.ad-topbar-path { color: #7b8a81; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ad-topbar-path b { color: #b7beb6; font-weight: 400; margin: 0 8px; }
.ad-topbar-mobile-brand { display: none; }
.ad-topbar-right { display: flex; align-items: center; gap: 18px; }
.ad-today { color: var(--ad-muted); font-size: 11px; font-weight: 600; }
.ad-topbar-divider { height: 22px; width: 1px; background: var(--ad-line); }
.ad-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #d5dfd4; color: var(--ad-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; font-weight: 700; }
.ad-content { max-width: 1570px; padding: 39px 46px 70px; margin: 0 auto; }
.ad-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.ad-eyebrow, .ad-kicker { color: var(--ad-gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.ad-page-head h1 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ad-ink); font-size: clamp(36px, 3.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: .95; margin-top: 10px; }
.ad-page-head p { color: var(--ad-muted); font-size: 12px; margin-top: 13px; line-height: 1.5; }
.ad-head-actions { display: flex; gap: 8px; }
.ad-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent; font-size: 11px !important; font-weight: 700; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.ad-button:hover { transform: translateY(-1px); }
.ad-button:disabled { opacity: .45; cursor: default; transform: none; }
.ad-button-primary { background: var(--ad-ink); color: white; }
.ad-button-primary:hover { background: #315548; }
.ad-button-outline { color: var(--ad-ink); background: var(--ad-paper); border-color: #d8ded4; }
.ad-button-outline:hover { border-color: var(--ad-ink-soft); }
.ad-button-light { color: var(--ad-ink); background: #f9f5e9; }
.ad-button-soft { color: var(--ad-ink); background: #eef1ea; }
.ad-button-whatsapp { color: #fff; background: #387758; }
.ad-button-whatsapp:hover { background: #275f45; }
.ad-text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ad-ink-soft) !important; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ad-text-link:hover { color: var(--ad-gold) !important; }
.ad-refresh-banner { display: flex; align-items: center; gap: 11px; padding: 13px 16px; margin-bottom: 17px; border: 1px solid #e5d7b4; border-radius: 7px; background: #fbf5e6; color: #715b33; font-size: 11px; line-height: 1.45; }
.ad-refresh-banner > svg { flex: 0 0 auto; color: #ab8953; }
.ad-refresh-banner > span { flex: 1; }
.ad-refresh-banner strong { color: #4e402c; }
.ad-refresh-banner button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 4px; background: #e9dbb8; color: #574625; font-size: 10px; font-weight: 800; white-space: nowrap; }

.ad-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.ad-stat { min-height: 162px; padding: 21px 22px 18px; background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; box-shadow: 0 4px 22px rgba(30,47,37,.025); }
.ad-stat-highlight { background: #edf2e9; border-color: #e1e9da; }
.ad-stat-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--ad-ink-soft); background: #f0f2eb; border-radius: 7px; margin-bottom: 15px; }
.ad-stat-highlight .ad-stat-icon { background: #dae5d7; }
.ad-stat-label { color: var(--ad-muted); font-size: 11px; font-weight: 600; }
.ad-stat-value { font-family: "Cormorant Garamond", Georgia, serif; font-size: 38px; line-height: 1; margin-top: 4px; }
.ad-stat-foot { color: #87948b; font-size: 10px; margin-top: 8px; }
.ad-overview-grid, .ad-lower-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .9fr); gap: 18px; margin-top: 18px; }
.ad-panel { background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; box-shadow: 0 4px 22px rgba(30,47,37,.025); }
.ad-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 25px 17px; }
.ad-panel-head h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1.1; margin-top: 7px; letter-spacing: -.01em; }
.ad-ranked-list { padding: 0 11px 12px; }
.ad-ranked-row { display: flex; width: 100%; align-items: center; text-align: left; gap: 15px; padding: 14px 13px; color: var(--ad-ink); background: transparent; border: 0; border-top: 1px solid #eeeee7; border-radius: 4px; }
.ad-ranked-row:hover { background: #f6f7f1; }
.ad-rank { color: #9aa69a; font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 700; }
.ad-initials { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #e7ede3; color: #416050; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.ad-ranked-person { min-width: 0; flex: 1; }
.ad-ranked-person strong, .ad-ranked-person small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-ranked-person strong { font-size: 12px; }
.ad-ranked-person small { color: var(--ad-muted); font-size: 10px; margin-top: 4px; }
.ad-ranked-right { display: flex; align-items: center; gap: 16px; }
.ad-ranked-right > strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; white-space: nowrap; }
.ad-ranked-right > strong small { font-family: "DM Sans", Arial, sans-serif; color: #9eaaa0; font-size: 9px; font-weight: 400; }
.ad-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #6b7b6b; background: #edf1ea; border-radius: 4px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.ad-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ad-badge-hot { color: #9c5b38; background: #fbede3; }
.ad-badge-warm { color: #93733c; background: #f7f0db; }
.ad-badge-cold, .ad-badge-nurture { color: #687e82; background: #ecf1f0; }
.ad-match-card { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 329px; padding: 28px 30px 25px; border-radius: 9px; background: #1c4437; color: #f9f6ea; }
.ad-match-pattern { position: absolute; width: 350px; height: 350px; border: 1px solid rgba(233,226,197,.12); border-radius: 50%; right: -122px; top: -125px; pointer-events: none; }
.ad-match-pattern::before, .ad-match-pattern::after { content: ''; position: absolute; inset: 32px; border: 1px solid rgba(233,226,197,.11); border-radius: 50%; }
.ad-match-pattern::after { inset: 72px; }
.ad-match-icon { display: grid; place-items: center; width: 39px; height: 39px; color: #e5ce9d; border: 1px solid rgba(237,220,177,.22); border-radius: 50%; margin-bottom: 24px; }
.ad-kicker-light { color: #d3bb84; }
.ad-match-card h2 { position: relative; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 2.7vw, 41px); line-height: 1; font-weight: 500; margin-top: 11px; letter-spacing: -.02em; }
.ad-match-card h2 em { color: #d8bc84; font-weight: 500; }
.ad-match-card p { position: relative; max-width: 310px; color: #b8cec1; font-size: 11px; line-height: 1.6; margin-top: 12px; }
.ad-match-card-bottom { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-top: auto; padding-top: 18px; }
.ad-match-card-bottom span { color: #a6c0af; font-size: 10px; }
.ad-lower-grid { margin-top: 18px; }
.ad-count-pill { color: var(--ad-ink-soft); background: #edf1e9; padding: 6px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ad-goal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 5px 25px 15px; }
.ad-goal-row strong, .ad-goal-row span { display: block; }
.ad-goal-row strong { font-size: 11px; }
.ad-goal-row span { color: var(--ad-muted); font-size: 10px; margin-top: 4px; }
.ad-goal-control { display: flex; align-items: center; gap: 11px; }
.ad-goal-control button { width: 24px; height: 24px; border: 1px solid #d9dfd4; border-radius: 4px; background: white; color: var(--ad-ink); font-size: 16px; line-height: 1; }
.ad-goal-control strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; }
.ad-progress-track { height: 5px; margin: 0 25px 8px; border-radius: 5px; background: #edf1ea; overflow: hidden; }
.ad-progress-track span { display: block; height: 100%; background: #719a75; border-radius: inherit; transition: width .3s; }
.ad-outreach-list { padding: 4px 25px 20px; }
.ad-outreach-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #eeeeea; }
.ad-outreach-row:first-child { border-top: 0; }
.ad-outreach-row > div { flex: 1; min-width: 0; }
.ad-outreach-row strong, .ad-outreach-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-outreach-row strong { font-size: 11px; }
.ad-outreach-row small { color: var(--ad-muted); font-size: 10px; margin-top: 4px; }
.ad-initials-small { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }
.ad-icon-button { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid #e2e6de; border-radius: 5px; background: white; color: var(--ad-ink-soft); }
.ad-icon-button:hover { background: #edf2e9; }
.ad-assistant { display: flex; flex-direction: column; overflow: hidden; }
.ad-assistant-spark { color: #bd9d62; }
.ad-assistant-chat { height: 188px; overflow: auto; padding: 0 25px 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ad-assistant-bubble { max-width: 91%; padding: 10px 12px; border-radius: 2px 10px 10px 10px; background: #f0f3ec; color: #3d5345; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.ad-assistant-bubble.is-user { align-self: flex-end; border-radius: 10px 2px 10px 10px; background: #254b3a; color: white; }
.ad-suggested-prompts { display: flex; flex-wrap: wrap; gap: 5px; margin: auto 25px 11px; }
.ad-suggested-prompts button { padding: 6px 8px; border: 1px solid #dfe5dc; border-radius: 4px; background: white; color: #58705f; font-size: 9px; }
.ad-suggested-prompts button:hover { background: #f0f3eb; }
.ad-assistant-form { display: flex; margin: 0 25px; border: 1px solid #d9e0d6; border-radius: 6px; overflow: hidden; }
.ad-assistant-form input { min-width: 0; flex: 1; height: 34px; padding: 0 11px; border: 0; outline: none; background: #fff; color: var(--ad-ink); font-size: 10px; }
.ad-assistant-form button { width: 35px; border: 0; background: #254b3a; color: #fff; }
.ad-prototype-note { color: #98a499; font-size: 9px; padding: 9px 25px 16px; }
.ad-empty { display: grid; place-items: center; min-height: 110px; padding: 22px; color: #89998a; font-size: 11px; text-align: center; }
.ad-empty-compact { min-height: 58px; padding: 15px 0; }

.ad-client-layout { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 18px; align-items: start; }
.ad-client-directory { position: sticky; top: 18px; overflow: hidden; background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; }
.ad-directory-head { padding: 21px 17px 11px; border-bottom: 1px solid var(--ad-line); }
.ad-directory-head h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; }
.ad-directory-head h2 span { color: #8f9e90; font-family: "DM Sans", Arial, sans-serif; font-size: 11px; vertical-align: middle; }
.ad-search { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 0 10px; height: 34px; border: 1px solid #e0e5db; border-radius: 5px; color: #92a094; }
.ad-search input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ad-ink); font-size: 10px; }
.ad-filter-row { display: flex; gap: 5px; margin-top: 12px; }
.ad-filter-row button { padding: 5px 10px; border: 0; border-radius: 4px; background: transparent; color: #7b8d7e; font-size: 10px; font-weight: 700; }
.ad-filter-row button.is-active { background: #eaf0e6; color: var(--ad-ink); }
.ad-directory-list { max-height: min(690px, calc(100vh - 270px)); min-height: 220px; overflow: auto; }
.ad-client-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 15px 14px; text-align: left; color: var(--ad-ink); background: white; border: 0; border-bottom: 1px solid #f0f0e9; }
.ad-client-item:hover { background: #f7f8f3; }
.ad-client-item.is-selected { background: #eef3e9; box-shadow: inset 3px 0 0 #547961; }
.ad-client-item-main { flex: 1; min-width: 0; }
.ad-client-item-main strong, .ad-client-item-main small, .ad-client-item-main em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-client-item-main strong { font-size: 11px; }
.ad-client-item-main small { color: #7b8e80; font-size: 9px; margin-top: 3px; }
.ad-client-item-main em { color: #8d9a8d; font-size: 9px; font-style: normal; margin-top: 7px; }
.ad-client-score { color: #4b6a52; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; line-height: 1; }
.ad-client-detail { overflow: hidden; background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; }
.ad-detail-hero { padding: 29px 30px 0; background: linear-gradient(125deg, #f5f4eb, #ecf1e9); }
.ad-detail-hero-top { display: flex; align-items: center; gap: 15px; }
.ad-initials-large { width: 55px; height: 55px; flex-basis: 55px; font-size: 16px; border: 1px solid #d3ded0; background: #fffefa; }
.ad-detail-hero-title { min-width: 0; flex: 1; }
.ad-detail-hero-title h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 33px; font-weight: 600; line-height: 1; margin-top: 6px; }
.ad-detail-hero-title > span { display: block; margin-top: 5px; color: var(--ad-muted); font-size: 10px; }
.ad-detail-summary { display: flex; gap: 0; margin-top: 26px; border-top: 1px solid #dce4d9; }
.ad-detail-summary > div { flex: 1; padding: 14px 0 17px; }
.ad-detail-summary > div + div { padding-left: 22px; border-left: 1px solid #dce4d9; }
.ad-detail-summary strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1; }
.ad-detail-summary strong small { font-family: "DM Sans", Arial, sans-serif; font-size: 9px; font-weight: 400; color: #94a292; }
.ad-detail-summary span { display: block; color: #87968a; font-size: 9px; margin-top: 5px; }
.ad-detail-body { padding: 0 30px 22px; }
.ad-detail-section { padding: 22px 0 23px; border-bottom: 1px solid var(--ad-line); }
.ad-detail-section:last-child { border-bottom: 0; }
.ad-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.ad-section-head h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; }
.ad-section-head span { color: #96a497; font-size: 9px; }
.ad-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.ad-detail-pair { min-width: 0; }
.ad-detail-pair span, .ad-detail-pair strong { display: block; }
.ad-detail-pair span { color: #8c9c8e; font-size: 9px; margin-bottom: 5px; }
.ad-detail-pair strong { overflow-wrap: anywhere; font-size: 11px; font-weight: 700; line-height: 1.4; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.ad-chips span { padding: 6px 8px; border-radius: 3px; background: #edf2e9; color: #46664e; font-size: 9px; font-weight: 700; }
.ad-interest-line { margin-top: 16px; color: var(--ad-muted); font-size: 10px; line-height: 1.5; }
.ad-interest-line strong { color: var(--ad-ink); margin-right: 7px; }
.ad-match-list { display: flex; flex-direction: column; }
.ad-match-item { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #f0f0eb; }
.ad-match-item:first-child { border-top: 0; padding-top: 0; }
.ad-match-no { color: #c2ac7c; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 600; }
.ad-match-info { min-width: 0; flex: 1; }
.ad-match-info strong, .ad-match-info small { display: block; }
.ad-match-info strong { font-size: 11px; }
.ad-match-info small { color: #8b998c; font-size: 9px; margin-top: 3px; }
.ad-match-info p { color: #5e7563; font-size: 9px; margin-top: 6px; }
.ad-match-percent { color: #5d7d5d; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 700; }
.ad-textarea, .ad-field textarea { display: block; width: 100%; min-height: 93px; padding: 11px 12px; resize: vertical; border: 1px solid #dde4d9; border-radius: 5px; outline: none; background: #fff; color: var(--ad-ink); font-size: 11px; line-height: 1.6; }
.ad-textarea:focus, .ad-field textarea:focus, .ad-field input:focus, .ad-field select:focus { border-color: #719675; }
.ad-draft-textarea { min-height: 103px; background: #f8faf5; }
.ad-form-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ad-meta-line { color: #94a193; font-size: 9px; margin-top: 10px; }
.ad-transcript { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; max-height: 290px; overflow: auto; }
.ad-transcript-message { max-width: 88%; padding: 10px 12px; border-radius: 5px; background: #f0f3ec; }
.ad-transcript-message.is-buyer { align-self: flex-end; background: #e9efe6; }
.ad-transcript-message span { color: #879886; font-size: 9px; font-weight: 800; }
.ad-transcript-message p { white-space: pre-wrap; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.ad-transcript-message small { display: block; color: #a2aea2; font-size: 8px; margin-top: 5px; }
.ad-notes-list { display: flex; flex-direction: column; gap: 13px; }
.ad-note { display: flex; gap: 10px; }
.ad-note-marker { width: 7px; height: 7px; flex: 0 0 7px; border: 2px solid #b6a073; border-radius: 50%; margin-top: 5px; }
.ad-note p { color: #40574b; font-size: 10px; line-height: 1.5; }
.ad-note small { display: block; color: #9fa99d; font-size: 9px; margin-top: 4px; }
.ad-note-form { display: flex; margin-top: 14px; border: 1px solid #dfe5dc; border-radius: 5px; overflow: hidden; }
.ad-note-form input { min-width: 0; flex: 1; height: 36px; padding: 0 10px; border: 0; outline: none; color: var(--ad-ink); font-size: 10px; }
.ad-note-form button { width: 36px; border: 0; background: #2b503e; color: white; }

.ad-local-note { display: flex; align-items: baseline; gap: 12px; margin: -11px 0 18px; padding: 12px 16px; border: 1px solid #e7dac0; border-radius: 7px; background: #fcf7eb; color: #6a5a3b; font-size: 10px; line-height: 1.5; }
.ad-local-note strong { flex: 0 0 auto; color: #493e2b; font-size: 11px; }
.ad-listing-summary { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; margin-bottom: 18px; }
.ad-listing-summary > div { min-height: 107px; padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--ad-line); }
.ad-listing-summary > div:last-child { border-right: 0; }
.ad-listing-summary-icon { color: #708d75; margin-bottom: 7px; }
.ad-listing-summary strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1; }
.ad-listing-summary span:last-child { color: #829384; font-size: 10px; margin-top: 5px; }
.ad-listing-summary .ad-import-status { justify-content: center; background: #f2f5ed; }
.ad-import-status .ad-kicker { color: #8ca383; margin-bottom: 6px; }
.ad-import-status strong { font-size: 19px; }
.ad-import-status small { color: #8a9a8a; font-size: 9px; margin-top: 5px; }
.ad-listing-panel { overflow: hidden; }
.ad-listing-panel-head { align-items: center; border-bottom: 1px solid var(--ad-line); }
.ad-heading-count { color: #9dab9a; font-family: "DM Sans", Arial, sans-serif; font-size: 11px; vertical-align: middle; }
.ad-segmented { display: flex; gap: 2px; padding: 3px; border: 1px solid #e1e6db; border-radius: 5px; background: #f7f8f4; }
.ad-segmented button { padding: 7px 10px; border: 0; border-radius: 3px; background: transparent; color: #829083; font-size: 10px; font-weight: 700; }
.ad-segmented button.is-active { background: #fff; color: var(--ad-ink); box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; }
.ad-table th { padding: 13px 19px; text-align: left; color: #99a598; background: #fafbf7; font-size: 9px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.ad-table td { padding: 16px 19px; border-top: 1px solid #f0f0e9; vertical-align: middle; white-space: nowrap; }
.ad-table td > strong, .ad-table td > span:not(.ad-source-pill):not(.ad-status) { display: block; font-size: 10px; }
.ad-table td > span:not(.ad-source-pill):not(.ad-status) { color: #99a598; margin-top: 4px; }
.ad-property-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.ad-property-cell img, .ad-property-placeholder { width: 47px; height: 40px; flex: 0 0 47px; object-fit: cover; border-radius: 3px; background: #e9eee6; }
.ad-property-placeholder { display: grid; place-items: center; color: #6e8b70; font-size: 28px; }
.ad-property-cell > div { min-width: 0; }
.ad-property-cell strong, .ad-property-cell span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 220px; }
.ad-property-cell strong { font-size: 11px; }
.ad-property-cell span { color: #98a497; font-size: 9px; margin-top: 5px; }
.ad-table-price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 700; }
.ad-source-pill { display: inline-block; padding: 6px 8px; border-radius: 3px; color: #6b7b83; background: #eef2f2; font-size: 9px; font-weight: 800; }
.ad-source-pill.is-owned { color: #7f693d; background: #f5efe0; }
.ad-status { display: inline-flex; align-items: center; gap: 6px; color: #849285; font-size: 9px; font-weight: 800; }
.ad-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ad-status.is-live { color: #458458; }
.ad-property-page-actions, .ad-property-manage { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ad-property-page-actions a, .ad-property-page-actions button, .ad-property-manage button { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 8px; border: 1px solid #dfe6db; border-radius: 4px; background: #fff; color: var(--ad-ink-soft); font-size: 9px; font-weight: 700; }
.ad-property-page-actions a:hover, .ad-property-page-actions button:hover, .ad-property-manage button:hover { border-color: #9eb6a0; background: #f1f5ee; }
.ad-property-manage button.is-danger { color: #986155; }
.ad-property-manage button.is-danger:hover { border-color: #d7a89d; background: #fff4f0; }
.ad-draft-hint { color: #8b9989; font-size: 9px; }
.ad-property-modal-link { margin-top: 17px; }
.ad-property-modal-link label { display: block; margin-bottom: 6px; color: #526a57; font-size: 10px; font-weight: 800; }
.ad-property-modal-link > div { display: flex; gap: 8px; }
.ad-property-modal-link input { width: 100%; min-width: 0; padding: 0 10px; border: 1px solid #dce4d9; border-radius: 5px; background: #f7f9f5; color: var(--ad-ink); font-size: 11px; }
.ad-csv-hint { display: flex; gap: 10px; align-items: flex-start; max-width: 780px; color: #758a79; font-size: 10px; line-height: 1.5; margin-top: 17px; }
.ad-csv-hint svg { color: #a58755; flex: 0 0 auto; }
.ad-csv-hint strong { color: var(--ad-ink); }

.ad-campaign-intro { display: flex; align-items: center; gap: 16px; padding: 17px 21px; background: #eaf0e7; border: 1px solid #dae7d9; border-radius: 8px; margin-bottom: 18px; }
.ad-campaign-intro-icon { color: #63856b; }
.ad-campaign-intro > div { flex: 1; }
.ad-campaign-intro strong { font-size: 11px; }
.ad-campaign-intro p { color: #728474; font-size: 10px; line-height: 1.45; margin-top: 5px; }
.ad-campaign-intro code { font-family: inherit; color: #406f4a; font-weight: 700; }
.ad-flow-arrow { color: #65846d; font-size: 9px; font-weight: 800; white-space: nowrap; letter-spacing: .05em; }
.ad-campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-campaign-card { padding: 23px; background: var(--ad-paper); border: 1px solid var(--ad-line); border-radius: 9px; }
.ad-campaign-card-top { display: flex; gap: 11px; align-items: flex-start; }
.ad-channel-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 7px; background: #e8f1e9; color: #307243; font-size: 11px; font-weight: 900; }
.ad-channel-icon.is-instagram { color: #9d5d62; background: #f8e9e8; font-size: 21px; }
.ad-campaign-card-top > div { min-width: 0; flex: 1; }
.ad-campaign-card-top h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1; margin-top: 5px; }
.ad-campaign-preview { display: grid; grid-template-columns: 47% 53%; min-height: 187px; margin-top: 23px; overflow: hidden; border: 1px solid #e9e9e0; border-radius: 5px; }
.ad-campaign-image { position: relative; min-height: 187px; background: linear-gradient(130deg, #839980, #3f6152); background-position: center; background-size: cover; }
.ad-campaign-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,45,30,.53), transparent 65%); }
.ad-campaign-image span { position: absolute; bottom: 15px; left: 14px; color: #fff; z-index: 1; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ad-campaign-preview-body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 15px 14px; background: #fafbf7; }
.ad-campaign-preview-body small { color: #a78d5a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ad-campaign-preview-body strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; line-height: .95; margin-top: 7px; }
.ad-campaign-preview-body > span { color: #78917c; font-size: 9px; margin-top: 8px; }
.ad-campaign-preview-body p { color: #667d6b; font-size: 9px; line-height: 1.45; margin-top: 9px; }
.ad-campaign-preview-body div { display: flex; align-items: center; gap: 5px; color: #3c6746; font-size: 9px; font-weight: 800; margin-top: auto; padding-top: 8px; }
.ad-campaign-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 17px; }
.ad-campaign-foot > span { color: #7f917f; font-size: 10px; line-height: 1.4; }
.ad-campaign-foot > span strong { color: var(--ad-ink); }

.ad-modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17,41,31,.56); backdrop-filter: blur(3px); }
.ad-modal { width: min(660px, 100%); max-height: min(90vh, 900px); overflow: auto; border-radius: 9px; background: var(--ad-paper); box-shadow: 0 22px 80px rgba(15,35,25,.27); }
.ad-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 27px 30px 19px; border-bottom: 1px solid var(--ad-line); }
.ad-modal-head h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 600; line-height: 1; margin-top: 7px; }
.ad-modal-head p { color: var(--ad-muted); font-size: 11px; line-height: 1.5; margin-top: 7px; }
.ad-modal-form { padding: 21px 30px 27px; }
.ad-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.ad-field { display: flex; flex-direction: column; gap: 6px; color: #526a57; font-size: 10px; font-weight: 800; }
.ad-field-wide { grid-column: 1 / -1; }
.ad-field input, .ad-field select { width: 100%; height: 35px; padding: 0 10px; border: 1px solid #dce4d9; border-radius: 5px; outline: none; background: white; color: var(--ad-ink); font-size: 11px; font-weight: 400; }
.ad-field input:disabled, .ad-field textarea:disabled, .ad-field select:disabled { color: #6f806f; background: #f5f7f2; }
.ad-field textarea { min-height: 76px; font-weight: 400; }
.ad-checkbox-row { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 3px 0; }
.ad-checkbox-row label { display: inline-flex; align-items: center; gap: 6px; color: #526a57; font-size: 10px; font-weight: 700; }
.ad-checkbox-row input { accent-color: #3c6d4a; }
.ad-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

@media (max-width: 1240px) {
  .ad-sidebar { width: 217px; flex-basis: 217px; }
  .ad-content { padding-left: 28px; padding-right: 28px; }
  .ad-topbar { padding-left: 28px; padding-right: 28px; }
  .ad-stat-grid { gap: 9px; }
  .ad-stat { padding-left: 17px; padding-right: 13px; }
  .ad-overview-grid, .ad-lower-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 11px; }
  .ad-client-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 11px; }
  .ad-campaign-card { padding: 18px; }
}
@media (max-width: 1040px) {
  .ad-sidebar { width: 70px; flex-basis: 70px; padding: 26px 10px 15px; }
  .ad-brand { padding: 0 0 40px; justify-content: center; }
  .ad-brand-mark { font-size: 23px; letter-spacing: -2px; }
  .ad-brand-word, .ad-nav-label, .ad-nav a span, .ad-nav a i, .ad-sidebar-note, .ad-site-link, .ad-sidebar-user span:not(.ad-user-avatar) { display: none; }
  .ad-nav a { justify-content: center; padding: 13px 0; }
  .ad-sidebar-user { padding: 10px 0 0; justify-content: center; }
  .ad-topbar { height: 62px; }
  .ad-content { padding-top: 31px; }
}
@media (max-width: 800px) {
  .ad-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-overview-grid, .ad-lower-grid, .ad-campaign-grid { grid-template-columns: 1fr; }
  .ad-match-card { min-height: 290px; }
  .ad-client-layout { grid-template-columns: 1fr; }
  .ad-client-directory { position: static; }
  .ad-directory-list { max-height: 260px; }
  .ad-listing-summary { grid-template-columns: repeat(3, 1fr); }
  .ad-listing-summary .ad-import-status { grid-column: 1 / -1; min-height: 65px; border-right: 0; border-top: 1px solid var(--ad-line); }
}
@media (max-width: 600px) {
  .admin-shell { display: block; padding-bottom: 60px; }
  .ad-sidebar { position: fixed; top: auto; bottom: 0; width: 100%; height: 58px; min-height: 58px; padding: 6px 8px; flex-direction: row; align-items: center; justify-content: center; z-index: 20; }
  .ad-brand, .ad-sidebar-bottom { display: none; }
  .ad-nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .ad-nav a { flex: 1; padding: 10px 0; }
  .ad-topbar { height: 55px; padding: 0 18px; }
  .ad-topbar-mobile-brand { display: inline-block; color: var(--ad-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 700; margin-right: 9px; }
  .ad-topbar-path { font-size: 9px; }
  .ad-today, .ad-topbar-divider { display: none; }
  .ad-content { padding: 26px 16px 50px; }
  .ad-page-head { display: block; margin-bottom: 22px; }
  .ad-page-head h1 { font-size: 36px; }
  .ad-page-head p { max-width: 390px; }
  .ad-page-head > .ad-button, .ad-head-actions { margin-top: 17px; }
  .ad-local-note { display: block; margin-top: -4px; }
  .ad-local-note strong { display: block; margin-bottom: 3px; }
  .ad-refresh-banner { flex-wrap: wrap; }
  .ad-refresh-banner button { margin-left: 29px; }
  .ad-head-actions .ad-button { flex: 1; }
  .ad-stat { min-height: 136px; padding: 15px; }
  .ad-stat-icon { margin-bottom: 9px; }
  .ad-stat-value { font-size: 32px; }
  .ad-stat-foot { line-height: 1.3; }
  .ad-panel-head { padding: 20px 17px 15px; }
  .ad-ranked-right .ad-badge { display: none; }
  .ad-ranked-row { gap: 9px; }
  .ad-match-card { padding: 25px 22px; }
  .ad-goal-row { padding-left: 17px; padding-right: 17px; }
  .ad-progress-track { margin-left: 17px; margin-right: 17px; }
  .ad-outreach-list { padding-left: 17px; padding-right: 17px; }
  .ad-assistant-chat { padding-left: 17px; padding-right: 17px; }
  .ad-assistant-form { margin-left: 17px; margin-right: 17px; }
  .ad-suggested-prompts { margin-left: 17px; margin-right: 17px; }
  .ad-prototype-note { padding-left: 17px; }
  .ad-detail-hero { padding: 21px 19px 0; }
  .ad-detail-hero-top { flex-wrap: wrap; }
  .ad-detail-hero-top > .ad-badge { margin-left: 70px; }
  .ad-detail-summary > div + div { padding-left: 13px; }
  .ad-detail-body { padding-left: 19px; padding-right: 19px; }
  .ad-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ad-listing-summary > div { min-height: 95px; padding: 14px 10px; }
  .ad-listing-summary strong { font-size: 22px; }
  .ad-listing-panel-head { display: block; }
  .ad-segmented { margin-top: 14px; width: max-content; }
  .ad-campaign-intro { align-items: flex-start; }
  .ad-flow-arrow { display: none; }
  .ad-campaign-card { padding: 16px; }
  .ad-campaign-preview { grid-template-columns: 42% 58%; }
  .ad-campaign-foot { align-items: flex-start; flex-direction: column; }
  .ad-modal-backdrop { padding: 10px; align-items: flex-end; }
  .ad-modal { max-height: 93vh; }
  .ad-modal-head, .ad-modal-form { padding-left: 18px; padding-right: 18px; }
  .ad-form-grid { grid-template-columns: 1fr; }
  .ad-field-wide { grid-column: auto; }
}
