:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #231c30;
  background: #f6f4f8;
  --ink: #231c30;
  --muted: #625970;
  --line: #ded8e6;
  --accent: #5b357e;
  --accent-dark: #43235f;
  --accent-soft: #eee6f6;
  --surface: #fff;
  --good: #146044;
  --error: #a22e43;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { opacity: .65; cursor: wait; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #9062b7; outline-offset: 3px; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.masthead { background: #22152f; color: #fff; }
.header-row { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 14px; }
.brand, .header-actions, .button-row { display: flex; gap: 10px; align-items: center; }
.brand { font-weight: 650; font-size: 15px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: #eadcf6; color: #332045; border-radius: 7px; font-weight: 800; }
.brand-divider { color: #c3a9d5; padding-inline: 4px; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font-weight: 650; line-height: 1.25; min-height: 40px; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: white; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: var(--accent-soft); }
.masthead .primary { background: #e8d7f7; color: #2d1841; }
.masthead .primary:hover { background: #f0e4fb; }
.masthead .secondary { background: transparent; color: white; border-color: #786884; }
.masthead .secondary:hover { background: #3d2a4c; }
.hero { padding: 35px 0 19px; }
.kicker { text-transform: uppercase; font-size: 12px; letter-spacing: .09em; font-weight: 720; color: var(--accent); margin: 0 0 9px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(31px, 5vw, 50px); letter-spacing: -.045em; }
h2 { font-size: 25px; letter-spacing: -.025em; }
h3 { font-size: 16px; }
p { line-height: 1.55; margin: 8px 0; }
#intro, .muted { color: var(--muted); }
#status { font-size: 13px; font-weight: 650; min-height: 21px; margin: 12px 0 0; color: var(--muted); }
#status[data-tone="error"] { color: var(--error); }
#status[data-tone="success"] { color: var(--good); }
.navigation { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.nav-button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); min-height: 44px; padding: 8px 15px; font-weight: 650; }
.nav-button:hover { color: var(--accent-dark); background: #eee8f3; }
.nav-button[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav-button:last-child { margin-left: auto; }
.panel { padding-bottom: 48px; }
.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr); gap: 18px; align-items: start; }
.card { padding: 21px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stack { display: grid; gap: 16px; }
.guide { background: #f0e9f6; border-color: #e1d5ed; }
.guide p, .guide li { font-size: 14px; }
.guide ol { margin: 11px 0 0; padding-left: 19px; }
.guide li + li { margin-top: 7px; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field > span { font-weight: 660; font-size: 14px; }
.field small, .small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.field input, .field select, .field textarea, td select {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid #cfc6da;
  border-radius: 7px; padding: 9px 10px; min-height: 39px;
}
textarea { resize: vertical; line-height: 1.5; min-height: 84px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span-two { grid-column: 1 / -1; }
.heading-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.heading-row > * { min-width: 0; }
.end { justify-content: flex-end; }
.plain { padding: 0; background: none; border: none; color: var(--accent-dark); font-size: 13px; font-weight: 650; text-decoration: underline; }
.plain.danger { color: var(--error); }
.empty { background: #f8f6fa; border: 1px dashed var(--line); border-radius: 8px; padding: 15px; color: var(--muted); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
td, th { padding: 10px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f3f8; color: #50445c; font-size: 12px; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td:last-child { min-width: 85px; }
tbody tr:last-child td { border-bottom: 0; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.metric { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #faf8fc; }
.metric dl { margin: 12px 0 0; display: grid; gap: 6px; }
.metric dl div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.metric dt { color: var(--muted); font-size: 12px; }
.metric dd { font-weight: 650; margin: 0; text-align: right; overflow-wrap: anywhere; }
.metric dd[data-fail="true"] { color: var(--error); }
.check-field { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.result-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.read-only p { white-space: pre-wrap; overflow-wrap: anywhere; }
.log { border-left: 3px solid #cab6dc; padding-left: 13px; }
.log p { white-space: pre-wrap; overflow-wrap: anywhere; }
.log time { color: var(--muted); font-size: 13px; }
.idea-card { background: #faf8fc; border: 1px solid var(--line); border-radius: 9px; padding: 15px; }
.idea-card h3, .idea-card dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-card dl { margin: 12px 0; }
.idea-card dt { color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 3px; }
.idea-card dd { margin: 0; font-size: 14px; line-height: 1.45; }
.idea-card .plain { margin-top: 10px; }
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; color: var(--ink); max-width: min(92vw, 485px); }
dialog::backdrop { background: #24183090; }
.publish-form { padding: 23px; }
.publish-form .button-row { margin-top: 17px; }
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1120px); }
  .header-row { padding-block: 10px; flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 27px; }
  .navigation { overflow-x: auto; white-space: nowrap; }
  .nav-button { padding-inline: 12px; }
  .grid, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
}

/* Multi-team additions */
a.brand { color: #fff; text-decoration: none; }
.site-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 14px; }
.site-nav a { color: #d9cbe6; text-decoration: none; font-size: 14px; font-weight: 650; padding: 8px 11px; border-radius: 7px; }
.site-nav a:hover { background: #3d2a4c; color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; background: #3d2a4c; }
.account { display: flex; gap: 12px; align-items: center; font-size: 13px; min-width: 0; }
.who { color: #c9bbd6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.masthead .plain { color: #fff; }
a.button { display: inline-flex; align-items: center; text-decoration: none; }
.narrow { max-width: 520px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.team-card h3 { font-size: 21px; letter-spacing: -.02em; }
.tag { display: inline-block; margin: 0 0 8px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer { color: var(--muted); font-size: 12px; padding: 0 0 28px; }
input[readonly] { background: #f3f0f6; color: var(--muted); }
@media (max-width: 680px) {
  .site-nav { margin-left: 0; }
  .who { max-width: 150px; }
}
