:root {
  color-scheme: light;
  --ink: #1e2938;
  --muted: #667486;
  --line: #e1e7ee;
  --paper: #ffffff;
  --canvas: #f4f7fa;
  --blue: #176b87;
  --blue-dark: #105267;
  --blue-pale: #e9f4f7;
  --green: #28735d;
  --red: #a53d42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(24px, calc((100vw - 1120px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.08rem; font-weight: 760; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: white; background: var(--blue); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
nav a, .nav-button { color: #405065; font-size: .94rem; font-weight: 560; }
.inline-form { display: inline; }
.nav-button { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.nav-login { padding: 9px 15px; border-radius: 8px; background: var(--blue-pale); color: var(--blue-dark); }
.container { width: min(100% - 40px, 1040px); min-height: calc(100vh - 142px); margin: 40px auto 72px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px max(24px, calc((100vw - 1040px) / 2)); color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: var(--paper); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; line-height: 1.16; }
h2 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -.02em; }
h3 { margin-bottom: 7px; font-size: 1.1rem; }
.eyebrow { margin-bottom: 9px; color: var(--blue); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 690px; color: var(--muted); font-size: 1.12rem; }
.muted { color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .85fr); gap: 30px; align-items: center; padding: 55px 0 48px; }
.hero-copy { max-width: 660px; }
.hero-copy .lead { margin: 16px 0 26px; }
.hero-card, .feature-card, .narrow-panel, .build-card, .message-card, .reply-panel, .admin-section { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px rgb(30 41 56 / 4%); }
.hero-card { padding: 25px; }
.hero-card p, .feature-card p { margin-bottom: 0; color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; color: var(--blue); background: var(--blue-pale); font-size: 1.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: block; min-height: 164px; padding: 22px; color: inherit; }
.feature-card:hover { text-decoration: none; border-color: #b3d4dd; transform: translateY(-1px); }
.feature-card > span { color: var(--blue); font-size: .77rem; font-weight: 750; }
.feature-card h2 { margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 0; border-radius: 8px; color: white; background: var(--blue); font: inherit; font-weight: 680; cursor: pointer; }
.button:hover { color: white; background: var(--blue-dark); text-decoration: none; }
.button-secondary { color: var(--blue-dark); background: var(--blue-pale); white-space: nowrap; }
.button-secondary:hover { color: white; }
.narrow-panel { width: min(100%, 500px); margin: 42px auto; padding: 32px; }
.form-stack { display: grid; gap: 11px; margin-top: 22px; }
label { color: #334155; font-size: .92rem; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cbd5df; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgb(23 107 135 / 14%); border-color: var(--blue); }
.form-stack .button { margin-top: 9px; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading { margin-bottom: 35px; }
.section-block { margin: 36px 0; }
.section-heading { margin-bottom: 16px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.card-list { display: grid; gap: 12px; }
.build-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 21px 24px; }
.build-card p { margin: 6px 0 0; color: var(--muted); }
.version { padding: 3px 8px; border-radius: 20px; color: var(--blue-dark); background: var(--blue-pale); font-size: .75rem; vertical-align: middle; }
.release-notes { white-space: pre-wrap; }
.checksum { overflow-wrap: anywhere; }
.build-card > div { min-width: 0; }
.asset-choice { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.asset-choice input { width: auto; min-height: auto; flex: none; }
.empty-state { padding: 24px; border: 1px dashed #cbd5df; border-radius: 10px; color: var(--muted); background: rgb(255 255 255 / 65%); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); background: #f9fbfc; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 9px; border-radius: 18px; color: #4c6075; background: #eef2f6; font-size: .84rem; }
.status-large { font-size: .92rem; }
.message-thread { display: grid; gap: 13px; max-width: 790px; }
.message-card { padding: 19px 22px; }
.message-admin { border-left: 4px solid var(--blue); }
.message-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .85rem; }
.message-meta strong { color: var(--ink); }
.message-body { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-panel { display: grid; gap: 11px; max-width: 790px; margin-top: 23px; padding: 22px; }
.reply-panel .button { justify-self: start; }
.faq-list { display: grid; gap: 10px; margin: 24px 0; }
.faq-item { padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.faq-item summary { cursor: pointer; font-weight: 680; }
.faq-item p { margin: 14px 0 0; white-space: pre-wrap; color: var(--muted); }
.help-callout { padding: 18px; border-radius: 10px; background: var(--blue-pale); }
.flash-stack { display: grid; gap: 9px; margin-bottom: 20px; }
.flash { padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.flash-success { color: #215d4c; border-color: #bbdfd1; background: #edf8f2; }
.flash-error { color: #87373d; border-color: #efd0d2; background: #fff3f3; }
.flash-info { color: #315f75; border-color: #c5dfe8; background: #f0f8fa; }
.admin-section { margin: 20px 0; padding: 24px; scroll-margin-top: 18px; }
.admin-section > h2 { margin-bottom: 7px; }
.admin-form { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; margin: 20px 0; }
.admin-form label { flex: 1 1 210px; display: grid; gap: 7px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.full-width { grid-column: 1 / -1; }
.admin-form .button { justify-self: start; }
.compact-list { margin-top: 18px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.list-row form { margin: 0; }
.text-button { padding: 3px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font: inherit; }
.danger-text { color: var(--red); }
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 34px; align-items: start; }
.docs-content { display: grid; gap: 14px; }
.docs-section { padding: 22px 24px; border: 1px solid var(--line); border-radius: 11px; background: white; scroll-margin-top: 16px; }
.docs-section p:last-child, .docs-section ul:last-child { margin-bottom: 0; }
.docs-section li { margin: 7px 0; }
.docs-nav { position: sticky; top: 18px; display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .9rem; }
.docs-nav strong { margin-bottom: 4px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
  nav { gap: 12px 16px; }
  .container { width: min(100% - 28px, 620px); margin-top: 25px; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding-top: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .page-heading, .section-heading { align-items: flex-start; flex-direction: column; }
  .build-card { align-items: flex-start; flex-direction: column; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .site-footer { flex-direction: column; padding: 20px; }
}
