:root { color-scheme: dark; --bg: #09090b; --card: #18181b; --line: #27272a; --txt: #fafafa; --mut: #a1a1aa; --blue: #3b82f6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.4 system-ui, sans-serif; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { height: 32px; }
h1 { font-size: 18px; margin: 0; } h1 span { color: var(--blue); }
.badge { background: #422006; color: #fbbf24; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.who { margin-left: auto; color: var(--mut); font-size: 13px; }
.btn { background: var(--card); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; text-decoration: none; font: inherit; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.tabs { display: flex; gap: 4px; padding: 8px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { color: var(--mut); text-decoration: none; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.tabs a.on { background: var(--card); color: var(--txt); box-shadow: inset 0 -2px var(--blue); }
main { padding: 16px; overflow-x: auto; }
h2 { margin: 0 0 4px; font-size: 18px; }
.muted { color: var(--mut); } .err { color: #f87171; }
table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mut); font-weight: 600; position: sticky; top: 0; background: var(--bg); }
td:last-child { color: var(--mut); font-size: 12px; word-break: break-all; }
.pwrow { display: flex; gap: 8px; margin-top: 12px; } .pwrow input { flex: 1; max-width: 320px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--txt); padding: 0 12px; font: inherit; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; max-width: 1100px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-width: 420px; }
.card label.check { flex-direction: row; align-items: center; gap: 8px; }
.card input[type=email], .card select, .link { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--txt); padding: 0 10px; font: inherit; }
.lbl { margin: 10px 0 4px; color: var(--mut); font-size: 13px; }
.grant { display: flex; gap: 8px; margin: 6px 0; flex-wrap: wrap; } .grant select { flex: 1; min-width: 140px; max-width: 320px; }
.btn.small { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.btn.primary { background: #047857; border-color: #059669; /* data-changing actions are green (Micha 26 Oct 11:40) */ margin-top: 10px; } .btn.danger { color: #fca5a5; }
.btn[disabled] { opacity: .6; }
.acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.linkbox { margin-top: 12px; padding: 10px; border: 1px solid #1e40af; border-radius: 10px; background: #0b1530; }
.link { flex: 1; min-width: 0; }
.ok { color: #34d399; }
.st.disabled { color: #f87171; } .st.invited { color: #fbbf24; } .st.active { color: #34d399; }
.card td:last-child { color: inherit; font-size: inherit; word-break: normal; }
tr.editrow td { background: #111114; }
[hidden] { display: none !important; }

/* V.XY deploy version badge (shared/version.js): same look as Manager/Host; tap shows release, commit and deploy time */
.ver-badge { background: none; border: 0; padding: 2px 4px; color: #71717a; font: 500 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; cursor: pointer; white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.ver-badge:hover, .ver-badge:focus-visible { color: #d4d4d8; }
.ver-badge[hidden] { display: none; }

/* Admin › Organizations: add / edit / hide (Micha 26 Oct 02:48) */
.org-acts { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.org-acts input, .pwrow input[type=text] { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--txt); padding: 0 10px; font: inherit; }
.pwrow input[type=text] { min-height: 44px; flex: 1; max-width: 320px; }
tr.is-hidden td { opacity: .55; }

label.showpw { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.9rem; cursor: pointer; }
/* Problems tab (26 Oct) */
.pr-filter { margin-right: 12px; }
.pr-blocking td:first-child { border-left: 4px solid #c62828; }
.pr-st { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.pr-st-new { background: #e3f0fd; color: #0d47a1; } .pr-st-in_progress { background: #fff3cd; color: #7a5300; } .pr-st-fixed { background: #e3f4e5; color: #1b5e20; }
.pr-kv th { text-align: left; width: 140px; vertical-align: top; }
.pr-kv td { word-break: break-word; }
.pr-pre { white-space: pre-wrap; word-break: break-word; background: rgba(127,127,127,.12); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
.pr-shot img { max-width: 100%; max-height: 70vh; border: 1px solid rgba(127,127,127,.4); border-radius: 8px; }
