:root {
  --ink: #1b2530; --muted: #5b6b78; --line: #dbe3e8; --bg: #f5f8f9; --card: #fff;
  --brand: #0f766e; --brand-dark: #0b5953; --urgent: #b42318; --urgent-bg: #fdecea;
  --red: #c4320a; --amber: #a15c07; --amber-bg: #fff4e0; --info: #315b85; --info-bg: #eaf2fb; --ok: #18794e;
  --radius: 10px; font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
a { color: var(--brand-dark); }
.demo-banner { background: #fff7d6; border-bottom: 1px solid #ecd98b; padding: 8px 16px; font-size: .9rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; outline: none; }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; } h2 { font-size: 1.15rem; margin: 0 0 .6em; } h3 { font-size: 1rem; margin: 1em 0 .4em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 30px auto; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0 4px; }
label.inline { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
input, select, textarea { width: 100%; padding: 9px 10px; font: inherit; border: 1px solid #b9c6cf; border-radius: 8px; background: #fff; }
input[type=checkbox] { width: auto; margin-top: 4px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid #9ad7d0; outline-offset: 1px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
button, .btn { display: inline-block; font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--brand-dark); }
button.secondary, .btn.secondary { background: #fff; color: var(--brand-dark); }
button.secondary:hover { background: #eef7f6; }
button.danger { background: #fff; color: var(--urgent); border-color: var(--urgent); }
button.link { background: none; border: none; color: var(--brand-dark); padding: 0; text-decoration: underline; font-weight: 500; }
button.small, .btn.small { padding: 5px 9px; font-size: .85rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.error { background: var(--urgent-bg); color: var(--urgent); border-radius: 8px; padding: 8px 10px; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.urgent { background: var(--urgent-bg); color: var(--urgent); } .pill.red { background: #fde4dc; color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.ok { background: #e3f4ea; color: var(--ok); } .pill.hold { background: #eceff1; color: #546e7a; }
.alerts { list-style: none; padding: 0; margin: 0; }
.alerts li { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; }
.alerts li.urgent { background: var(--urgent-bg); } .alerts li.red { background: #fde4dc; }
.alerts li.amber { background: var(--amber-bg); } .alerts li.info { background: var(--info-bg); }
.status-line { font-weight: 600; background: #e6f3f1; border-radius: 8px; padding: 10px 12px; }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.profile-card { display: block; text-decoration: none; color: inherit; }
.profile-card:hover { border-color: var(--brand); }
.verbatim { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.held td { color: var(--muted); }
details summary { cursor: pointer; font-weight: 600; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 30, 40, .45); display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; z-index: 10; }
.modal { background: #fff; border-radius: var(--radius); padding: 20px; width: 100%; max-width: 620px; }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; display: none; z-index: 20; }
@media (max-width: 640px) { .hide-sm { display: none; } main { padding: 14px 10px 50px; } }
.u-mt { margin-top: 14px; } .u-m0 { margin: 0; } .u-asof { margin: 10px 0 16px; }
.u-brand { border-color: var(--brand); } .u-w200 { max-width: 200px; } .u-w300 { max-width: 300px; } .u-w90 { width: 90px; } .u-wauto { width: auto; }
.site-footer { max-width: 1100px; margin: 0 auto; padding: 0 16px 30px; }
