/* On Triton account. Navy #0F2A43 is the brand color; orange #FF7A18 is accent only (never text on white). */
:root {
  --navy: #0F2A43; --navy-2: #173a5a; --accent: #FF7A18;
  --bg: #f5f7fa; --card: #fff; --line: #dfe4ea; --text: #1b2733; --muted: #5b6875;
  --ok: #1f7a4d; --ok-bg: #e6f4ec; --warn: #8a5300; --warn-bg: #fff3e0; --off: #6b7280; --off-bg: #eef0f3; --bad: #b42318; --bad-bg: #fdecea;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--navy); }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--accent); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.mark { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; }
.mark i { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--navy); }
.org-slot { flex: 1; min-width: 0; }
.org-slot select { max-width: 100%; background: var(--navy-2); color: #fff; border: 1px solid #ffffff40; border-radius: 8px; padding: 6px 8px; font: inherit; }
.user-slot { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-slot .email { opacity: .85; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-slot button { background: transparent; color: #fff; border: 1px solid #ffffff60; }
.nav { display: flex; gap: 4px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.nav a { padding: 12px 12px 10px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.nav a.on { color: var(--navy); border-bottom-color: var(--accent); }
.main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 17px; margin: 28px 0 10px; color: var(--navy); }
h3 { font-size: 15px; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.off { opacity: .6; background: #fafbfc; }
.card.accent { border-top: 3px solid var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.stack > * + * { margin-top: 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--off-bg); color: var(--off); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
button, .btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.ghost, .btn.ghost { background: #fff; color: var(--navy); }
button.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
button.sm { padding: 4px 10px; font-size: 13px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
.form { max-width: 420px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: #fff; font-size: 14px; }
.tabs a.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #f3d3a6; padding: 10px 16px; font-size: 14px; }
.banner button { margin-left: 8px; }
.hero { text-align: center; padding: 48px 16px; }
.hero .card { max-width: 440px; margin: 20px auto 0; text-align: left; }
.err { color: var(--bad); font-size: 14px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; border-left: 4px solid var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
.toast.show { opacity: 1; }
.key { font-family: ui-monospace, Menlo, monospace; word-break: break-all; background: var(--off-bg); padding: 8px; border-radius: 6px; }
@media (max-width: 560px) {
  .user-slot .email { display: none; }
  .main { padding: 16px 12px 60px; }
}
.mt0 { margin-top: 0; } .mt12 { margin-top: 12px; } .flex1 { flex: 1; } a.plain { text-decoration: none; color: inherit; }
