:root {
  color-scheme: light;
  --ink: #202a3b;
  --secondary: #526176;
  --line: #dce1e9;
  --bg: #f7f8fb;
  --accent: #ffcf35;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { max-width: 620px; margin: clamp(24px, 9vh, 100px) auto; padding: 0 16px; }
header, .brand { display: flex; align-items: center; gap: 12px; }
header { justify-content: space-between; margin: 0 0 20px; }
a { color: inherit; text-underline-offset: .2em; }
.brand { text-decoration: none; font-size: 20px; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 10px; background: var(--accent); }
section { padding: clamp(20px, 5vw, 38px); border: 1px solid var(--line); border-radius: 14px; background: white; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
p { color: var(--secondary); margin: 10px 0 0; }
.primary, .client-register, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; }
.primary { margin-top: 24px; text-decoration: none; background: var(--ink); color: white; }
.primary:hover { background: #33445e; }
.client-access-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.client-access-actions .primary { margin-top: 0; }
.client-register { border: 1px solid var(--line); text-decoration: none; text-align: center; }
.client-register:hover { background: #f1f4f8; }
button { background: white; border: 1px solid var(--line); color: var(--ink); }
button:hover, .project-list a:hover { background: #f1f4f8; }
:focus-visible { outline: 3px solid #2a5db1; outline-offset: 4px; }
::selection { background: #ffe787; color: var(--ink); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 6px; color: var(--secondary); font-size: 14px; }
ul, dl { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.project-list a, dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 12px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.project-list a span, dd, footer { color: var(--secondary); font-size: 14px; }
dd { margin: 0; }
footer { padding: 14px 2px; }
.project-setup { margin-top: 26px; }
.project-setup h2, .channels-title { margin: 0; font-size: 20px; line-height: 1.3; }
.setup-steps { margin: 8px 0 0; padding-inline-start: 23px; }
.setup-steps li { padding: 14px 0 8px 4px; border-bottom: 1px solid var(--line); }
.setup-steps li::marker { color: var(--secondary); font-weight: 650; }
.setup-row { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; }
.setup-row > div { flex: 1 1 260px; }
.setup-row p { margin: 3px 0 0; font-size: 14px; }
.setup-state { color: var(--secondary); font-size: 13px; font-weight: 650; }
.setup-state[data-complete="true"] { color: #245e42; }
.setup-action { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.setup-action:hover { color: #224b8e; }
.setup-action[hidden] { display: none; }
.channels-title { margin-top: 24px; }
.channels-title + dl { margin-top: 8px; }
#campaign-title { scroll-margin-top: 20px; }
main.client-board-shell { max-width: 1450px; margin: auto; padding: 20px clamp(12px, 3vw, 38px); }
.client-board-nav .brand { min-width: 0; overflow-wrap: anywhere; }
.client-board-nav .brand span { flex: 0 0 38px; }
.client-board-shell #notice[hidden] { display: none; }
.client-draft-image { display: block; width: 100%; max-height: 380px; object-fit: contain; margin-bottom: 22px; }
.client-draft-description { white-space: pre-line; overflow-wrap: anywhere; }
.client-draft-description + button, .client-draft-image ~ button { margin-top: 20px; }
.test-campaign { margin-top: 16px; }
.test-campaign h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.test-campaign form, #campaign-connect { margin-top: 18px; }
.test-campaign label { display: block; margin-bottom: 5px; font-weight: 650; }
.test-campaign textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid #8c99ad;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
#campaign-text-help { margin-top: 6px; font-size: 14px; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.campaign-actions .primary { margin: 0; }
.test-campaign button:disabled { background: #edf0f4; border-color: var(--line); color: var(--secondary); cursor: default; }
#campaign-status:empty, #campaign-error:empty { margin: 0; }
#campaign-error { color: #a12724; }
.campaign-total { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; }
