:root {
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: #152b33;
  background: #f5f7f6;
  font-synthesis: none;
  --dark: #102a32;
  --accent: #006b58;
  --line: #dae3df;
  --muted: #50656a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #128f79; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: 1.28rem; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; }
p { line-height: 1.55; }
a { color: var(--accent); }
.sign-in { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.intro {
  display: flex; flex-direction: column; justify-content: space-between; gap: 4rem;
  padding: clamp(2rem, 7vw, 6.5rem);
  color: white;
  background: radial-gradient(ellipse at 75% 80%, #186b58 0%, transparent 60%), #102a32;
}
.intro h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); max-width: 640px; }
.intro p { color: #c6dfd7; margin-top: 1.4rem; max-width: 34ch; font-size: 1.15rem; }
.intro-note { color: #c1ddd3; font-size: .86rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: -.025em; font-size: 1.18rem; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #c5f468; color: #142e27; font-size: 1.35rem; }
.login-panel { display: grid; place-items: center; padding: 3rem clamp(1.3rem, 6vw, 5rem); }
.login-content { width: min(100%, 410px); }
.login-content h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin: .6rem 0; }
.muted { color: var(--muted); }
.context-label { color: var(--accent); font-size: .74rem; font-weight: 750; letter-spacing: .12em; }
form { display: grid; gap: 1rem; margin-top: 1.3rem; }
label { display: grid; gap: .4rem; font-weight: 650; font-size: .9rem; }
input, textarea { width: 100%; border: 1px solid #b9c9c2; border-radius: 7px; background: white; color: #182e34; padding: .7rem .8rem; }
textarea { min-height: 75px; resize: vertical; }
.primary, .secondary, .chips button {
  border-radius: 7px; padding: .65rem .9rem; font-weight: 650; border: 1px solid transparent;
}
.primary { color: white; background: var(--accent); }
.primary:hover { background: #005244; }
.secondary, .chips button { color: #234239; background: #fff; border-color: #c9d7d0; }
.secondary:hover, .chips button:hover { background: #eaf2ed; }
.samples { margin-top: 1.7rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.samples p { color: var(--muted); font-size: .84rem; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button { font-size: .76rem; padding: .35rem .52rem; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
aside { display: flex; flex-direction: column; padding: 1.5rem 1rem; background: var(--dark); color: #e9f2f0; }
aside .brand { margin: 0 .4rem 2rem; }
.tenant { display: grid; gap: .3rem; padding: .8rem; background: #1c3a42; border-radius: 8px; }
.tenant small { color: #c1d5d0; }
nav { display: grid; gap: .35rem; margin-top: 1.3rem; }
nav button, .sign-out { display: flex; gap: .65rem; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #d5e4e0; text-align: left; padding: .65rem .8rem; }
nav button[aria-current] { color: #efffda; background: #2b4e49; font-weight: 700; }
nav button:hover, .sign-out:hover { background: #25444a; }
.sign-out { margin-top: auto; padding-top: .85rem; justify-content: space-between; }
.content { min-width: 0; }
.topbar { background: #fff; min-height: 65px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem clamp(1rem, 4vw, 3rem); color: var(--muted); font-size: .85rem; }
.no-send { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.no-send i { height: 7px; width: 7px; border-radius: 50%; background: #58856f; }
.body { max-width: 1450px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; }
.hero { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.hero p, .card-heading p { margin-top: .4rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.1rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 1.1rem; min-width: 0; }
.metric span { font-size: .88rem; color: var(--muted); }
.metric strong { display: block; font-size: 2.1rem; margin-top: .35rem; letter-spacing: -.055em; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
.stack { display: grid; gap: 1rem; align-content: start; }
.card-heading { margin-bottom: 1rem; }
.item { padding: .8rem 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item p { font-size: .88rem; color: var(--muted); margin-top: .25rem; overflow-wrap: anywhere; }
.item-head { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.badge { display: inline-block; color: #325449; background: #e8f1eb; border-radius: 999px; padding: .22rem .55rem; font-size: .77rem; font-weight: 650; }
.badge.warn { background: #fcece7; color: #894128; }
.badge.verified { background: #dff4e6; color: #1b5e3d; }
.empty { color: var(--muted); padding: .65rem 0; }
.notice, #notice { color: #24443b; background: #e8f3ea; border: 1px solid #cce3d6; border-radius: 8px; padding: .75rem; margin: .7rem 0 1rem; }
.notice, #notice.error { color: #7d301e; background: #fff0ea; border-color: #efc9b9; }
.form-card { max-width: 760px; }
.compact-form { margin-top: .8rem; }
.form-card button, .compact-form button { justify-self: start; }
.limit-form { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: end; gap: .5rem; }
details { padding: .5rem 0; color: #334d4f; font-size: .9rem; }
details summary { cursor: pointer; color: var(--accent); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; padding: .6rem; background: #f5f8f6; }
.campaign-brief { margin: 0; }
.campaign-brief dt { font-size: .9rem; font-weight: 700; margin-top: .8rem; }
.campaign-brief dd { color: var(--muted); margin: .15rem 0 0; overflow-wrap: anywhere; }
.generate-form { grid-template-columns: minmax(110px, 1fr) auto; align-items: end; gap: .6rem; }
form select {
  appearance: none; background: #fff linear-gradient(45deg, transparent 50%, #45665c 50%) right 14px center / 5px 5px no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, #45665c 50%), linear-gradient(135deg, #45665c 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px; background-repeat: no-repeat;
  width: 100%; border: 1px solid #b9c9c2; border-radius: 7px; padding: .65rem 1.7rem .65rem .7rem;
  color: var(--dark); font: inherit;
}
.open-campaign { margin-top: .65rem; }
.draft-card { padding: 1.05rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.draft-card:first-child { border-top: 0; padding-top: 0; }
.draft-meta { color: var(--muted); font-size: .9rem; margin: .35rem 0; }
.draft-preview { background: #f5f8f6; border-radius: 7px; padding: .8rem; margin-top: .7rem; }
.draft-copy { white-space: pre-wrap; margin-top: .4rem; }
.edit-draft, .exported-copy, .revision-history { margin-top: .7rem; }
.revision-history { padding: .7rem; border: 1px solid var(--line); border-radius: 7px; }
.directive { margin-top: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.roundtable-rooms { padding: 0; list-style: none; }
.roundtable-rooms li { padding: .6rem 0; border-top: 1px solid var(--line); }
.roundtable-rooms span { display: block; color: var(--muted); font-size: .9rem; }
.history-table { max-height: 24rem; overflow: auto; }
.history-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.history-table th, .history-table td { padding: .45rem .55rem; border-bottom: 1px solid var(--line); text-align: left; }
.history-table td:first-child { min-width: 8rem; overflow-wrap: anywhere; }
.private-deployment .samples { display: none; }
.seo-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.seo-tabs [aria-current] { background: #dfeee6; color: #164d40; border-color: #8bb8a4; }
.seo-overview .metric strong { font-size: clamp(1.2rem, 2.1vw, 1.8rem); letter-spacing: -.025em; }
.seo-setup { margin-bottom: 1rem; }
.seo-setup summary { font-size: 1.06rem; font-weight: 700; }
.seo-setup > p, .growth-next { margin: .6rem 0 .8rem; color: var(--muted); }
.growth-stages { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1rem; margin: 1rem 0; }
.growth-measures { margin: 0; }
.growth-measures > div { padding: .55rem 0; border-top: 1px solid var(--line); }
.growth-measures dt, .growth-measures small { color: var(--muted); font-size: .85rem; }
.growth-measures dd { margin: .25rem 0 0; font-size: 1.15rem; font-weight: 700; }
.growth-measures small { display: block; font-weight: 400; margin-top: .2rem; }
.seo-main { align-items: start; }
.seo-lower { margin-top: 1rem; }
.seo-observation { padding: .7rem 0; border-top: 1px solid var(--line); }
.seo-observation p, .seo-work-item p { margin: .35rem 0; overflow-wrap: anywhere; }
.seo-ranks { padding-inline-start: 1.1rem; }
.seo-ranks li { margin: .6rem 0; overflow-wrap: anywhere; }
.seo-table td { min-width: 6rem; }
.seo-table td:first-child { min-width: 9rem; }
.seo-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap: .8rem; }
.seo-checks { display: flex; flex-wrap: wrap; gap: .7rem; }
.seo-checks label { display: flex; align-items: center; }
.seo-checks input { width: auto; }
.seo-result-input { display: grid; gap: .8rem; border: 1px solid var(--line); border-radius: .5rem; min-width: 0; }
.seo-result-input button { justify-self: start; }
.research-notes { margin-top: .7rem; }
@media (max-width: 900px) {
  .overview-columns { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 185px minmax(0, 1fr); }
}
@media (max-width: 660px) {
  .sign-in, .workspace { grid-template-columns: 1fr; }
  .intro { gap: 1.3rem; padding: 1.4rem; }
  .intro p { font-size: .95rem; margin-top: .65rem; }
  .login-panel { padding: 1.5rem; }
  aside { padding: .9rem; }
  aside .brand { margin: 0 0 .8rem; }
  .tenant { padding: .55rem; }
  nav { display: flex; flex-wrap: wrap; margin-top: .45rem; }
  nav button { padding: .45rem .5rem; font-size: .84rem; }
  .sign-out { align-self: flex-end; padding: .35rem .5rem; }
  .hero { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .topbar { min-height: 48px; }
  .generate-form { grid-template-columns: 1fr; }
}
