:root {
  --brand: #0b2545;
  --accent: #2e86de;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #667085;
  --line: #e4e7ec;
  --ok: #12b76a;
  --warn: #f79009;
  --err: #d92d20;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }

/* ---------- Splash ---------- */
.splash {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 16px;
  background:
    radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--brand) 0%, #000 100%);
}
.splash-brand { width: 100%; max-width: 340px; height: auto; display: block; }
.splash-card {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 40px 34px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center;
}
.splash-logo { width: 100%; max-width: 260px; height: auto; margin: 0 auto 22px; display: block; }
.splash-mark {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.3rem; letter-spacing: .5px;
}
.splash-card h1 { font-size: 1.45rem; margin-bottom: 4px; }
.splash-card .tagline { color: var(--muted); margin-bottom: 26px; }
.splash-card form { text-align: left; }
.splash-foot { margin-top: 22px; font-size: .82rem; color: var(--muted); }
.lock { display: inline-block; vertical-align: -2px; margin-right: 4px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=color] { width: 54px; height: 38px; padding: 2px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
input[type=file] { font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { flex: 1 1 200px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 8px;
  border: 1px solid transparent; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { filter: brightness(.95); }
.btn.block { width: 100%; padding: 12px; }
.btn.brand { background: var(--brand); }
.btn.ghost { background: #fff; color: var(--text); border-color: #d0d5dd; }
.btn.danger { background: var(--err); }
.btn.sm { padding: 6px 10px; font-size: .85rem; }
.btn.link { background: none; color: var(--accent); padding: 0; border: 0; font-weight: 500; }
.btn.link.danger { color: var(--err); background: none; }
form.inline { display: inline; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert.ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert.err { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.topbar .brandline { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.topbar .brandline img { max-height: 38px; max-width: 160px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.topbar .brandline img.brand-logo { background: none; padding: 0; border-radius: 0; height: 34px; max-height: 34px; width: auto; max-width: 180px; }
.topbar .brandline .sub { font-weight: 400; opacity: .75; font-size: .85rem; display: block; }
.topbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.topbar.light { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.topbar.light .brandline, .topbar.light .brandline .sub { color: var(--text); }
.topbar.light .btn.ghost { color: var(--text); border-color: #d0d5dd; }
.topbar.light .small { color: var(--muted); }
.tabs { background: #fff; border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs a {
  padding: 14px 14px 12px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--brand); border-bottom-color: var(--accent); }
.badge {
  display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--err); color: #fff;
  font-size: .75rem; font-weight: 700; text-align: center; margin-left: 4px; line-height: 1.5;
}
.badge.soft { background: #eef2f6; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.hero { background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); color: #fff; border: 0; }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { opacity: .9; margin: 0; white-space: pre-line; }
.empty { color: var(--muted); text-align: center; padding: 22px 10px; font-size: .92rem; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .meta { color: var(--muted); font-size: .84rem; }
.list .name { font-weight: 600; word-break: break-word; }
.file-ico {
  flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: .66rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); text-transform: uppercase;
}
.li-main { display: flex; align-items: center; gap: 12px; min-width: 0; }

.linkcard { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.linkcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.linkcard strong { color: var(--accent); }
.linkcard span { display: block; color: var(--muted); font-size: .86rem; }

/* ---------- Status updates ---------- */
.update { border-left: 4px solid var(--line); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.update:last-child { margin-bottom: 0; }
.update h3 { margin-bottom: 2px; }
.update .body { white-space: pre-line; margin-top: 8px; }
.update.on-track { border-color: var(--ok); }
.update.at-risk { border-color: var(--warn); }
.update.blocked { border-color: var(--err); }
.update.complete { border-color: var(--brand); }
.update.info { border-color: var(--accent); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; background: #eef2f6; color: var(--muted); }
.pill.on-track { background: #ecfdf3; color: #067647; }
.pill.at-risk { background: #fffaeb; color: #b54708; }
.pill.blocked { background: #fef3f2; color: #b42318; }
.pill.complete { background: #eef4ff; color: #3538cd; }
.pill.info { background: #eff8ff; color: #175cd3; }
.pill.open { background: #ecfdf3; color: #067647; }
.pill.closed { background: #f2f4f7; color: #475467; }

/* ---------- Messages ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 12px; background: #f2f4f7; }
.msg .who { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 12%, #fff); }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
.table-wrap { overflow-x: auto; }

.secret-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: .5px;
  background: #0b1220; color: #7ee2b8; padding: 18px; border-radius: 10px; text-align: center; margin: 12px 0; user-select: all; word-break: break-all;
}
.danger-zone { border-color: #fecdca; }
.logo-preview { max-height: 60px; max-width: 200px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }

footer.site { padding: 18px 0; color: var(--muted); font-size: .82rem; text-align: center; }
.foot-mark { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ---------- Announcement banners ---------- */
.banners { display: flex; flex-direction: column; }
.banner { border-bottom: 1px solid; }
.banner .wrap { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.banner-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: #fff; margin-top: 1px;
}
.banner-body { font-size: .92rem; margin-top: 2px; }
.banner-body p { margin: 0 0 .4em; } .banner-body p:last-child { margin: 0; }
.banner.info { background: #eff8ff; border-color: #b2ddff; color: #194185; } .banner.info .banner-ico { background: #2e90fa; }
.banner.success { background: #ecfdf3; border-color: #abefc6; color: #05603a; } .banner.success .banner-ico { background: #12b76a; }
.banner.warning { background: #fffaeb; border-color: #fedf89; color: #7a2e0e; } .banner.warning .banner-ico { background: #f79009; }
.banner.critical { background: #fef3f2; border-color: #fecdca; color: #7a271a; } .banner.critical .banner-ico { background: #d92d20; }
.banner-preview { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid; border-radius: 10px; margin-bottom: 12px; }
.banner-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 11px; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 12px 16px 14px; }

/* ---------- Guides ---------- */
.guide-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-card { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.guide { max-width: 860px; }
.prose { line-height: 1.65; }
.prose h3 { font-size: 1.15rem; margin: 1.3em 0 .5em; } .prose h4 { font-size: 1.02rem; margin: 1.2em 0 .4em; } .prose h5 { font-size: .95rem; margin: 1em 0 .3em; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1em; } .prose li { margin: .3em 0; }
.prose code { background: #f2f4f7; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.prose > :first-child { margin-top: 0; }
.attach { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; background: #f9fafb; }
.attach > div { flex: 1; }
.section-head { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.card > h1 + .section-head { border-top: 0; padding-top: 0; margin-top: 14px; }
.faq-cat { margin: 16px 0 8px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Attachments ---------- */
.attach-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.attach-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
a.attach { margin-top: 0; text-decoration: none !important; color: inherit; transition: border-color .15s; }
a.attach:hover { border-color: var(--accent); }
.attach-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.attach-name .name { word-break: break-word; }
.attach-edit li { padding: 8px 0; }
.update-log { background: #0b1220; color: #cfe3ff; padding: 12px; border-radius: 8px; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; margin-top: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Home intro, notice band, Get Help ---------- */
body { overflow-x: hidden; }
.full-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.intro { margin: 6px 0 26px; }
.intro h1 { font-size: 1.9rem; margin-bottom: 12px; }
.intro .prose { font-size: 1.05rem; max-width: 900px; }
.page-title { font-size: 2rem; margin: 0 0 22px; }
.notice-band { color: #fff; padding: 26px 0 22px; }
.notice-band h2 { color: #fff; font-size: 1.35rem; margin: 0 0 10px; }
.notice-band .prose { font-size: 1.02rem; } .notice-band .prose p:last-child { margin-bottom: 0; }
.notice-band a { color: #fff; text-decoration: underline; }
.notice-band.green { background: #4f7623; } .notice-band.blue { background: #1f6fbf; } .notice-band.navy { background: #0b2545; }
.notice-band.amber { background: #b45309; } .notice-band.red { background: #b42318; }
.notice-band.preview { border-radius: 10px; padding: 16px 18px; margin-top: 10px; }
.help-band { padding: 30px 0 22px; background: #fff; border-top: 1px solid var(--line); }
.help-band.tint { background: #e3f7f8; border-color: #c4ebee; }
.help-band h2 { font-size: 1.45rem; margin-bottom: 14px; }
.help-intro { font-size: 1.04rem; max-width: 920px; margin-bottom: 26px; }
.help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.help-cols .prose { font-size: 1.02rem; }
@media (max-width: 760px) { .help-cols { grid-template-columns: 1fr; gap: 10px; } }
main.wrap > .help-band:last-child { margin-bottom: -48px; }

/* ---------- Known issues ---------- */
.ki-table { display: flex; flex-direction: column; }
.ki-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 170px 2fr; gap: 18px; padding: 16px 12px; border-top: 1px solid var(--line); border-left: 4px solid transparent; }
.ki-row.ki-head { border-top: 0; border-bottom: 2px solid var(--line); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding-top: 4px; padding-bottom: 10px; }
.ki-row.ki-head + .ki-row { border-top: 0; }
.ki-row.investigating { border-left-color: #f04438; } .ki-row.in_progress { border-left-color: #f79009; }
.ki-row.workaround { border-left-color: #7a5af8; } .ki-row.monitoring { border-left-color: #2e90fa; } .ki-row.resolved { border-left-color: #12b76a; }
.ki-issue strong { font-size: 1.02rem; }
.ki-pill { display: inline-block; padding: 5px 12px; border-radius: 10px; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.ki-pill.investigating { background: #fee4e2; color: #b42318; } .ki-pill.in_progress { background: #fef0c7; color: #93370d; }
.ki-pill.workaround { background: #ebe9fe; color: #5925dc; } .ki-pill.monitoring { background: #d1e9ff; color: #175cd3; } .ki-pill.resolved { background: #dcfae6; color: #067647; }
.ki-notes { font-size: .95rem; min-width: 0; }
.ki-notes .prose p:last-child { margin-bottom: 0; }
.ki-notes summary { cursor: pointer; list-style: none; } .ki-notes summary::-webkit-details-marker { display: none; }
.ki-more, .ki-less { color: var(--accent); font-weight: 600; white-space: nowrap; }
.ki-less, details[open] .ki-preview, details[open] .ki-more { display: none; }
details[open] .ki-less { display: inline; } details[open] summary { margin-bottom: 8px; }
@media (max-width: 760px) {
  .ki-row { grid-template-columns: 1fr; gap: 8px; } .ki-row.ki-head { display: none; }
}
.ki-admin { padding: 12px 0; border-top: 1px solid var(--line); } .ki-admin:first-of-type { border-top: 0; }
.ki-admin.is-hidden { opacity: .6; }
.ki-admin-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
