:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --panel: #fff;
  --ink: #172922;
  --muted: #5c6a63;
  --line: #e2e8e2;
  --green: #176e59;
  --green-dark: #0e5343;
  --green-soft: #e7f4ed;
  --amber: #815116;
  --red: #a52940;
  --radius: 16px;
  --shadow: 0 3px 16px #1634260a;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #5dac93;
  outline-offset: 2px;
}
svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
h1, h2, h3 { font-family: 'Manrope', 'DM Sans', sans-serif; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }
p { margin: 0; line-height: 1.5; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 10px; z-index: 12; background: #fff; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.boot { grid-column: 1 / -1; align-content: center; justify-items: center; min-height: 100vh; display: grid; gap: 10px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  padding: 25px 14px 18px;
  height: 100vh;
  background: #172821;
  color: #edf5ef;
}
.brand { display: flex; align-items: center; gap: 10px; margin: 0 6px 35px; }
.brand-name { display: grid; gap: 2px; }
.brand strong { font: 800 18px 'Manrope', sans-serif; letter-spacing: -.04em; }
.brand small { font-size: 11px; color: #afc1b5; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #173a2f;
  background: #9ee1c2;
  font: 800 13px 'Manrope', sans-serif;
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.rail-nav { display: grid; gap: 5px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  color: #bfcec5;
}
.rail-nav a:hover { background: #22392e; color: #fff; }
.rail-nav a[aria-current="page"] { background: #294135; border-color: #395345; color: #f6fff9; }
.rail-nav a[aria-current="page"] svg { color: #a8e6c8; }
.rail-bottom { margin-top: auto; border-top: 1px solid #3f5248; padding: 13px 3px 0; }
.user-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.user-row .avatar { background: #40594b; color: #eaf6ee; }
.user-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.rail-bottom button { border: 0; background: none; color: #becdc4; font-size: 12px; padding: 7px 3px; }
.rail-bottom button:hover { color: #fff; }
.avatar {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
}

.workspace { min-width: 0; }
.topbar {
  min-height: 67px;
  padding: 10px clamp(17px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.top-actions, .toolbar, .inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
main { max-width: 1560px; margin: 0 auto; padding: 30px clamp(15px, 3.2vw, 44px) 42px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 19px; flex-wrap: wrap; }
.page-heading p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.btn:not(:disabled):hover { background: #eef6ef; border-color: #cbded1; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:not(:disabled):hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.inverse { color: var(--green-dark); background: #e4f7e9; border-color: #e4f7e9; }
.btn.danger { color: var(--red); }
.btn.square { width: 37px; padding: 0; }
.text-btn { color: var(--green-dark); background: none; border: 0; font-weight: 800; padding: 0; text-align: left; }
.text-btn:hover { text-decoration: underline; }
.btn svg, .text-btn svg { width: 16px; height: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-pad { padding: 18px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 12px; }
.card-header p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.empty {
  min-height: 154px;
  border: 1px dashed #d7e1d8;
  border-radius: 12px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 7px;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  background: #fcfdfb;
}
.empty > svg { width: 23px; height: 23px; color: var(--green); margin-bottom: 2px; }
.empty strong { color: var(--ink); font-size: 14px; }
.empty.tight { min-height: 90px; padding: 12px; }
.notice, .error-note {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 13px;
  background: #edf4f0;
  color: #3c614e;
  line-height: 1.45;
  white-space: normal;
}
.error-note { background: #fff0f2; color: var(--red); }
.inline-error { display: block; color: var(--red); font-size: 12px; line-height: 1.4; margin: 4px 0; }
.inline-error:empty { display: none; }

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 190px;
  gap: 11px;
  padding: clamp(21px, 4vw, 35px);
  border-radius: 22px;
  background: radial-gradient(ellipse at right top, #397d62 0%, transparent 55%), #153c2e;
  color: #fff;
  overflow: hidden;
}
.hero > * { z-index: 1; position: relative; }
.hero p { max-width: 47ch; color: #dae9dd; font-size: 14px; }
.hero .toolbar { margin-top: 6px; }
.hero .btn-outline { color: #e1efe5; border-color: #65937d; background: #25533f; }
.hero .btn-outline:hover { color: #143828; }
.hero-lines { position: absolute; right: -42px; top: -95px; width: 390px; height: 390px; opacity: .38; z-index: 0; pointer-events: none; }
.hero-lines svg { width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 17px 0; }
.stat { padding: 13px 14px; display: grid; gap: 7px; min-width: 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.stat .inline { justify-content: space-between; gap: 4px; }
.stat strong { color: var(--ink); font: 800 26px 'Manrope', sans-serif; letter-spacing: -.055em; }
.stat .avatar { width: 29px; height: 29px; }
.stat .avatar svg { width: 16px; height: 16px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 15px; align-items: start; }
.stack { display: grid; gap: 12px; min-width: 0; }

.network {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--network, #61746a);
  color: #fff;
}
.network svg { width: 13px; height: 13px; }
.network.big { width: 34px; height: 34px; border-radius: 10px; }
.network.big svg { width: 19px; height: 19px; }
.network.instagram { --network: #b63773; }
.network.facebook { --network: #2263ca; }
.network.youtube { --network: #dc293c; }
.network.tiktok { --network: #26272b; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 7px;
  color: #4f5b55;
  background: #edf0eb;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.ok { color: #175b46; background: #e2f4e9; }
.status.pending { color: var(--amber); background: #fff2d9; }
.status.error { color: var(--red); background: #ffeef1; }
.status.info { color: #31518f; background: #edf2ff; }

.entry-list { display: grid; gap: 7px; }
.entry, .account-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
button.entry:hover { border-color: #aacbbb; background: #f6fbf6; }
.entry-start { display: flex; align-items: center; gap: 8px; min-width: 0; }
.entry-text { min-width: 0; display: grid; gap: 3px; }
.entry-text strong, .entry-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-text strong { font-size: 13px; }
.entry-text small { color: var(--muted); font-size: 11px; }
.entry-time { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800; color: var(--green-dark); flex: none; }
.entry-extra { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.calendar-frame { overflow: clip; }
.calendar-tools { padding: 12px 14px; border-bottom: 1px solid var(--line); justify-content: space-between; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); }
.calendar-pane { min-width: 0; border-right: 1px solid var(--line); }
.agenda { padding: 13px; overflow: hidden; }
.agenda .card-header { align-items: start; }
.agenda .card-header p { font-size: 11px; }
.agenda .entry .status { display: none; }
.agenda .entry:hover .status { display: inline-flex; }
.chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--muted);
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 800;
}
.chip[aria-pressed="true"], .chip:hover { background: var(--green-soft); border-color: #cbded1; color: var(--green-dark); }
.chip .network { width: 15px; height: 15px; border-radius: 4px; }
.chip .network svg { width: 11px; height: 11px; }
.cal-header { padding: 11px 13px; justify-content: space-between; min-height: 56px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.week-day { text-align: center; background: #f7f9f5; font-size: 11px; font-weight: 800; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.cal-day {
  min-height: 77px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 7px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  min-width: 0;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.cal-day.outside { background: #f8faf7; color: #849088; }
.cal-day.selected { background: #edf7ef; box-shadow: inset 0 0 0 1px #7bad93; }
.cal-day:hover { background: #f0f7f1; }
.cal-day time { display: grid; place-items: center; width: 22px; min-height: 22px; border-radius: 7px; font-size: 12px; font-weight: 800; }
.cal-day.today time { background: var(--green-dark); color: #fff; }
.day-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.day-icon { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.day-icon .network { width: 15px; height: 15px; border-radius: 4px; }
.day-icon .network svg { width: 11px; height: 11px; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.field input:not([type="checkbox"]), .field select, .field textarea, .select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8e2d9;
  font-size: 13px;
  font-weight: 500;
}
.field input[type="file"] { padding: 9px; border-style: dashed; background: #f7faf6; }
.field textarea { min-height: 74px; resize: vertical; }
.toolbar .select { width: auto; max-width: 100%; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.choice-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.choice {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.choice:has(:checked) { border-color: #c1d9ca; background: var(--green-soft); }
.choice input, .check input { accent-color: var(--green); }
.check { display: flex; gap: 6px; align-items: start; font-size: 12px; line-height: 1.4; }
.check input { margin: 2px 0 0; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .38fr); gap: 14px; align-items: start; }
.composer-main, .editor-stack { display: grid; gap: 11px; min-width: 0; }
.target-editor { padding: 12px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 9px; }
.target-editor strong { font-size: 13px; }
.composer-aside { position: sticky; top: 12px; }
.summary-actions { display: grid; gap: 8px; margin-top: 11px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 10px; }
.asset { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.asset-preview {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #edf3ec;
  color: #567065;
}
.asset figcaption { display: grid; gap: 3px; padding: 8px 9px; min-width: 0; }
.asset figcaption strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset figcaption small { color: var(--muted); }
.asset { margin: 0; }
.media-choices { max-height: 156px; overflow: auto; padding: 1px 2px 4px; }

.provider-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.provider-row:last-child { border-bottom: 0; }
.provider-row .inline { min-width: 0; gap: 7px; }
.account-provider { flex-wrap: wrap; }
.provider-name, .provider-states { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.connection-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 1px solid #bddccb;
  border-radius: 12px;
  color: #175b46;
  background: #edf7f0;
}
.connection-notice p { font-size: 13px; line-height: 1.45; margin-top: 3px; }
.connection-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #d5eee0;
}
.connection-mark svg { width: 18px; height: 18px; }
.connection-notice.has-error { border-color: #eac6ce; color: var(--red); background: #fff1f3; }
.connection-notice.has-error .connection-mark { background: #f9dfe4; }

#detail-dialog { color: var(--ink); border: 1px solid var(--line); padding: 0; border-radius: 17px; box-shadow: 0 18px 75px #0932214d; width: min(550px, calc(100vw - 25px)); max-height: calc(100dvh - 24px); }
#detail-dialog::backdrop { background: #102d256a; }
.dialog-body { padding: 17px; display: grid; gap: 13px; }
.dialog-body .card-header { margin: 0; }
.dialog-target { padding: 9px; border-radius: 9px; border: 1px solid var(--line); display: grid; gap: 5px; overflow-wrap: anywhere; }
.dialog-target p { font-size: 13px; }
.toast { position: fixed; bottom: 16px; right: 16px; max-width: min(420px,calc(100vw - 32px)); z-index: 20; border-radius: 10px; color: #fff; background: #173b2e; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; padding: 10px 14px; }
.toast:empty { display: none; }

.login-page {
  grid-column: 1 / -1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(280px,1fr) minmax(340px,1fr);
}
.login-art {
  display: grid;
  align-content: center;
  gap: 15px;
  padding: clamp(30px, 7vw, 95px);
  background: radial-gradient(ellipse at top right,#397d62,transparent 60%), #173c2d;
  color: #fff;
}
.login-art p { max-width: 40ch; color: #d8e9dc; font-size: 15px; }
.login-content { display: grid; place-items: center; padding: 22px; }
.login-content .card { width: min(385px, 100%); padding: 23px; }
.login-content form { display: grid; gap: 12px; margin-top: 15px; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 186px minmax(0,1fr); }
  .cal-day { min-height: 67px; padding: 4px; }
  .day-icons { gap: 2px; }
}

@media (max-width: 900px) {
  .calendar-layout, .columns, .composer-grid { grid-template-columns: 1fr; }
  .calendar-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .composer-aside { position: static; }
  .agenda .entry-list { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
}

@media (max-width: 680px) {
  .shell, .login-page { display: block; }
  .rail { position: static; height: auto; padding: 10px; }
  .brand { margin: 0 3px 10px; }
  .brand-mark { width: 30px; height: 30px; font-size: 11px; }
  .brand strong { font-size: 16px; }
  .brand small, .rail-bottom .user-row, .top-time { display: none; }
  .rail-nav { display: flex; gap: 3px; flex-wrap: wrap; }
  .rail-nav a { gap: 5px; min-height: 26px; padding: 4px 6px; font-size: 11px; }
  .rail-nav a svg { width: 13px; height: 13px; }
  .rail-bottom { margin-top: 7px; padding-top: 3px; }
  .topbar { min-height: 50px; padding: 7px 12px; }
  main { padding: 16px 9px 30px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cal-day { min-height: 55px; gap: 3px; }
  .day-icon { font-size: 8px; }
  .day-icon .network { width: 13px; height: 13px; border-radius: 3px; }
  .day-icon .network svg { width: 9px; height: 9px; }
  .login-art { padding: 27px 18px; }
  .login-content { min-height: 55vh; }
}
@media (max-width: 390px) {
  .field-grid { grid-template-columns: 1fr; }
  .hero { border-radius: 15px; }
  .entry .status { white-space: normal; }
  .card-pad { padding: 12px; }
}

.target-stack { margin-top: 11px; }
.login-art { position: relative; overflow: hidden; }
.login-art > :not(.hero-lines) { position: relative; z-index: 1; }

.overview-hero { grid-template-columns: minmax(0, 1fr) minmax(195px, .52fr); align-items: center; gap: 22px; }
.hero-main { display: grid; gap: 9px; min-width: 0; }
.hero-next {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: left;
  padding: 15px;
  border: 1px solid #a8d8bf62;
  border-radius: 13px;
  background: #10352ab8;
  color: #f8fffa;
}
button.hero-next:hover { background: #0c3026; border-color: #aedcbe; }
.hero-next-label { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: #c8e9d4; }
.hero-next-label svg { width: 15px; height: 15px; }
.hero-next strong { overflow-wrap: anywhere; }
.hero-next small { color: #dcece1; }
.stat-link:hover, .report-shortcut:hover { border-color: #97bea9; background: #f8fcf9; }
.report-shortcut { display: flex; gap: 11px; align-items: center; }
.report-shortcut > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.report-shortcut small, .field-note { color: var(--muted); font-weight: 500; }
.report-shortcut > svg { color: var(--green); }

.account-actions { display: flex; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; flex-shrink: 0; }
.asset-foot { display: flex; gap: 3px; align-items: center; justify-content: space-between; min-height: 26px; }
.icon-action { display: grid; place-items: center; width: 27px; height: 27px; border: 0; background: transparent; border-radius: 5px; }
.icon-action svg { width: 15px; height: 15px; }
.icon-action.danger { color: var(--red); }
.icon-action.danger:hover { background: #feeef2; }

.report-range { margin-top: -8px; }
.report-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #eef3ed; }
.segmented .chip { border-color: transparent; background: transparent; }
.segmented .chip[aria-pressed="true"] { background: #fff; border-color: #d9e7dc; color: var(--green-dark); }
.report-chart {
  display: grid;
  grid-template-columns: repeat(var(--chart-days), minmax(0, 1fr));
  gap: clamp(1px, .4vw, 4px);
  height: 128px;
  padding: 0 4px;
  background: repeating-linear-gradient(to top, #e0e9e3 0 1px, transparent 1px 25%);
  border-bottom: 1px solid #becfc4;
}
.chart-bar { display: flex; flex-direction: column-reverse; align-items: stretch; }
.chart-bar i { height: var(--bar-height); border-radius: 2px 2px 0 0; }
.bar-published { background: #237c61; }
.bar-failed { background: #af4660; }
.bar-cancelled { background: #b88148; }
.bar-other { background: #a6bab0; }
.chart-axis, .chart-legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.chart-axis { justify-content: space-between; margin: 6px 0 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; }
.chart-details { margin-top: 12px; font-size: 13px; }
.chart-details summary { cursor: pointer; color: var(--green-dark); font-weight: 750; }
.table-clip { overflow-x: auto; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child { text-align: left; }
.data-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.failure-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.failure-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.failure-text { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.failure-text small { color: var(--muted); }
.failure-row .error-note { width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.team-row .entry-start { flex: 1; }
.field[hidden] { display: none; }

.delivery-tabs { margin-bottom: 12px; }
.delivery-entry { display: flex; gap: 8px; align-items: center; }
.delivery-entry > .entry { flex: 1; }
.delivery-entry > .btn { flex: none; }

/* A small number of visible choices, with optional controls kept nearby. */
.rail { overflow-y: auto; }
.brand { margin-bottom: 25px; }
.nav-group { display: grid; gap: 4px; }
.nav-group + .nav-group { margin-top: 17px; }
.nav-label { padding: 0 11px 5px; color: #a6bdae; font-size: 10px; font-weight: 750; letter-spacing: .055em; }
.rail-bottom { flex-shrink: 0; }
.btn { min-height: 40px; }
.entry-text { flex: 1; }
.start-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.start-step { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.start-step > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.start-step strong { font-size: 13px; }
.start-step small { font-size: 11px; color: var(--muted); line-height: 1.45; }
.start-step > svg { color: var(--green); width: 16px; height: 16px; }
.start-step.is-current { border-color: #9ec7af; background: #f3faf5; box-shadow: 0 2px 10px #16342607; }
.start-step:hover { border-color: #8db69e; }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #5b6e61; background: #eef3ed; font-size: 12px; font-weight: 800; }
.step-number svg { width: 16px; height: 16px; }
.is-current .step-number, .step-heading .step-number { color: #fff; background: var(--green); }
.is-done .step-number { background: var(--green-soft); color: var(--green-dark); }
.step-heading { display: flex; align-items: center; gap: 10px; }
.step-heading > div { min-width: 0; }
.step-heading h2 { font-size: 17px; }
.step-heading p { font-size: 12px; }
.account-count { border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; color: var(--muted); background: #fafcf9; font-size: 11px; font-weight: 650; white-space: nowrap; }
.account-provider { padding: 14px 0; }
.provider-name { flex: 1; }
.connection-controls { display: grid; justify-items: end; gap: 5px; flex: none; }
.connection-controls > .btn { min-width: 126px; }
.connection-options { position: relative; }
.connection-options > summary { list-style: none; padding: 5px 2px; color: var(--muted); font-size: 11px; cursor: pointer; text-align: right; }
.connection-options > summary::after { content: ' ▾'; }
.connection-options > summary::-webkit-details-marker { display: none; }
.connection-options > div { display: grid; gap: 0; position: absolute; right: 0; top: 100%; width: min(235px, 75vw); border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: #fff; box-shadow: 0 8px 26px #173b2e21; z-index: 4; }
.connection-options .text-btn { padding: 11px 9px; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.connection-options .text-btn:hover { background: var(--green-soft); text-decoration: none; }
.connection-options > summary:focus-visible, .target-advanced > summary:focus-visible { outline: 3px solid #5dac93; outline-offset: 2px; border-radius: 6px; }
.connection-next { margin-top: 10px; }
.connection-next .btn { font-size: 12px; min-height: 35px; }
.account-help { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.account-group + .account-group { border-top: 1px solid var(--line); padding-top: 15px; }
.account-picker { padding: 0; margin: 0; border: 0; min-width: 0; }
.account-picker legend { margin-bottom: 8px; padding: 0; font-size: 12px; font-weight: 750; }
.account-picker .choice { min-height: 48px; padding: 8px 10px; gap: 8px; cursor: pointer; }
.account-picker .choice input { width: 16px; height: 16px; flex: none; margin: 0; }
.account-picker .choice > span:not(.network) { display: grid; gap: 3px; }
.account-picker .choice small { color: var(--muted); font-size: 10px; font-weight: 500; }
.composer-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .4fr); }
.composer-main { gap: 15px; }
.composer-main .card-pad, .composer-aside { padding: 20px; }
.composer-main .card-header { margin-bottom: 17px; }
.editor-stack { gap: 14px; }
.composer-main textarea[data-editor="caption"] { min-height: 110px; }
.upload-field { display: grid; justify-items: start; gap: 7px; padding: 15px; border: 1px dashed #aecaba; border-radius: 11px; background: #f7fbf7; cursor: pointer; }
.upload-field > span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--green-dark); font-weight: 750; }
.upload-field > small { font-size: 11px; color: var(--muted); }
.upload-field input { max-width: 100%; width: 100%; min-height: 40px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.upload-field input::file-selector-button { min-height: 36px; margin-right: 10px; padding: 7px 12px; border: 1px solid #c6dcd0; border-radius: 8px; color: var(--green-dark); background: #eaf4ed; font: inherit; font-weight: 750; cursor: pointer; }
.upload-field input:hover::file-selector-button { border-color: #a5cbb5; background: #dfeee4; }
.upload-field input:disabled::file-selector-button { cursor: default; opacity: .6; }
.upload-field:focus-within { outline: 3px solid #5dac93; outline-offset: 2px; }
.target-editor { padding: 15px; gap: 12px; border-radius: 12px; background: #fff; }
.target-editor .card-header { margin-bottom: 0; }
.shared-settings-note { display: flex; align-items: start; gap: 6px; color: var(--muted); font-size: 12px; }
.shared-settings-note svg { width: 15px; height: 15px; color: var(--green); margin-top: 1px; }
.target-advanced { min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
.target-advanced > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; font-size: 12px; font-weight: 750; color: var(--green-dark); cursor: pointer; }
.target-advanced > summary::-webkit-details-marker { display: none; }
.target-advanced > summary > span { display: grid; gap: 4px; }
.target-advanced > summary small { font-size: 11px; color: var(--muted); font-weight: 400; }
.target-advanced > summary > svg { width: 15px; height: 15px; }
.target-advanced[open] > summary > svg { transform: rotate(90deg); }
.target-advanced > .editor-stack { padding: 12px; border-top: 1px solid var(--line); background: #fafcf9; }
.summary-actions { margin-top: 16px; gap: 10px; }
.summary-actions > .btn { width: 100%; }
.summary-actions > .text-btn { justify-self: center; padding: 6px; }
.summary-empty { padding: 12px; border-radius: 8px; color: var(--muted); background: #f3f6f1; font-size: 12px; line-height: 1.5; }
.summary-caption { font-size: 11px; color: var(--muted); }
.summary-date { display: block; font-size: 10px; margin-top: 4px; white-space: nowrap; }
.composer-aside .provider-row { align-items: start; }
.composer-aside .provider-row > .muted { text-align: right; }
.agenda .entry { flex-wrap: wrap; }
.agenda .entry .status { display: inline-flex; }
.agenda .entry .entry-extra { width: 100%; padding-left: 29px; justify-content: space-between; }
.preview-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin: 0 0 17px; background: #fff5df; color: #76521d; border: 1px solid #ebd7a7; }
.billing-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 15px; align-items: start; }
.membership-card { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.membership-card .entry-start > div { display: grid; gap: 5px; }
.membership-card p { color: var(--muted); font-size: 13px; }
.membership-card h2 { font-size: 17px; }
.payment-plan { display: grid; gap: 12px; }
.payment-plan > h2 { font-size: 21px; }
.plan-price { margin: 5px 0; font-size: clamp(28px, 3vw, 39px); font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.payment-plan .notice { margin: 4px 0 0; }
.payment-plan .notice p, .payment-test p { margin-top: 4px; font-size: 12px; }
.payment-test { margin: 0; border: 1px solid #ebd7a7; color: #76521d; background: #fff5df; }
.payment-history { display: grid; gap: 0; }
.payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.payment-row:last-child { border-bottom: 0; }
.payment-amount { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .composer-grid { grid-template-columns: minmax(0, 1fr); }
  .composer-aside { position: static; }
  .start-step { padding: 10px; gap: 7px; }
}
@media (max-width: 680px) {
  .brand { margin-bottom: 10px; }
  .rail { overflow-y: visible; }
  .rail-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .nav-group { display: contents; }
  .nav-label { display: none; }
  .rail-nav a { flex: none; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .rail-nav a svg { width: 15px; height: 15px; }
  .start-guide { grid-template-columns: 1fr; gap: 7px; }
  .start-step { padding: 11px 12px; }
  .start-step > span:nth-child(2) { gap: 3px; }
  .start-step small { font-size: 11px; }
  .composer-main .card-pad, .composer-aside { padding: 15px; }
  .target-editor { padding: 11px; }
  .connection-notice { align-items: start; padding: 12px; gap: 9px; }
  .account-provider { gap: 10px; }
  .connection-controls > .btn { min-width: 115px; }
  .account-actions { gap: 10px; }
  .account-actions .text-btn { padding: 7px 0; }
  .calendar-tools > .toolbar { width: 100%; }
  .calendar-tools .select { flex: 1; width: 0; min-width: 110px; }
  .billing-layout { grid-template-columns: 1fr; }
  .membership-card { align-items: start; flex-wrap: wrap; }
  .payment-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .payment-row .status { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media (max-width: 1050px) {
  .report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-row { flex-wrap: wrap; }
  .team-row .entry-start { min-width: min(220px, 100%); }
}
@media (max-width: 530px) {
  .overview-hero { grid-template-columns: 1fr; gap: 17px; }
  .overview-hero .hero-next { padding: 10px; }
  .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-row { flex-wrap: wrap; }
  .account-row .account-actions { justify-content: flex-start; }
  .failure-row .account-actions { justify-content: flex-start; }
  .report-chart { height: 100px; }
  .delivery-entry { flex-wrap: wrap; }
  .delivery-entry > .entry { flex-basis: 100%; }
}
