:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #627d98;
  --blue: #137bbd;
  --blue-dark: #0f4c75;
  --ice: #eef7fb;
  --line: #d8e6ef;
  --danger: #9b2c2c;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(150deg, #eef7fb 0%, #f8fbfd 45%, #e7f3f9 100%); color: var(--ink); min-height: 100vh; }
.topbar { min-height: 150px; padding: 32px max(28px, calc((100vw - 1200px) / 2)); color: var(--white); background: radial-gradient(circle at 80% 0%, #1f9bd1, transparent 35%), var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: .95; }
h2 { margin-bottom: 8px; }
.eyebrow { margin-bottom: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); }
.topbar .eyebrow { color: #9bd7f2; }
.mode, .pill { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 14px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
main { width: min(1200px, calc(100% - 32px)); margin: 28px auto 64px; }
.card { background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 45px rgba(16,42,67,.08); padding: 24px; margin-bottom: 20px; }
.login { max-width: 680px; margin: 40px auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
form { display: flex; gap: 8px; }
input { min-width: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; }
button { border: 0; border-radius: 10px; padding: 11px 16px; background: var(--blue); color: white; font-weight: 750; cursor: pointer; }
button:hover { background: var(--blue-dark); }
button.secondary { background: var(--ice); color: var(--blue-dark); }
button.danger { background: var(--danger); }
.compact { display: block; margin-top: 8px; padding: 8px 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.status-card { min-height: 170px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-heading .pill { border-color: var(--line); color: var(--muted); }
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.account { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.account strong { display: block; text-transform: capitalize; margin-bottom: 8px; }
.account span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.table-action { padding: 7px 10px; white-space: nowrap; }
.blockers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.blocker { background: #fff8f0; border-left: 4px solid #d69e2e; padding: 14px; border-radius: 8px; }
.notice { min-height: 24px; color: var(--blue-dark); font-weight: 700; }
dialog { width: min(720px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: var(--ink); box-shadow: 0 25px 80px rgba(16,42,67,.25); }
dialog::backdrop { background: rgba(15,39,66,.58); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.preview-card { margin: 18px 0; padding: 22px; border-radius: 16px; background: var(--ice); border: 1px solid var(--line); }
.hook { font-size: 1.25rem; font-weight: 800; }
.hashtags { color: var(--blue); font-weight: 700; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; }
@media (max-width: 820px) {
  .status-grid, .account-grid, .blockers { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
