/* Glimt Hub: the desktop viewer's look (Theme.axaml) – dark ground, raised surfaces, amber accent. */
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-display: swap; }

:root {
    --accent: #F5A524; --accent-hover: #FFB940; --on-accent: #1A1200;
    --ground: #0F1113; --surface: #1E2125; --surface-border: #2C3036; --raised: #2A2E34; --hover: #33383F; --separator: #33373E;
    --text: #E8EAED; --text-soft: #C9CED6; --text-muted: #9AA1AB;
    --good: #3DD68C; --warn: #F5C04A; --alert: #FF8A5B; --on-alert: #1A0F00;
    --mono: "JetBrains Mono", Consolas, monospace;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ground); color: var(--text); font: 15px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 13px; color: var(--text-soft); background: var(--raised); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
h2 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 12px; }
.icon { display: block; flex: none; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.hint { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------------------- buttons and fields */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 14px; cursor: pointer; border-radius: 8px;
                  border: 1px solid var(--surface-border); padding: 8px 14px; background: var(--raised); color: var(--text); text-decoration: none; white-space: nowrap; }
button:hover:not(:disabled), .button:hover { background: var(--hover); text-decoration: none; }
.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.danger { color: var(--alert); background: transparent; border-color: #5a3326; }
.button.danger:hover { background: #3a2018; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input, select, textarea { font: inherit; font-size: 15px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--surface-border); background: var(--ground); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input::placeholder { color: #6B727C; }
input.code { font-family: var(--mono); font-size: 24px; letter-spacing: .3em; text-align: center; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--text-soft); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }

.error { color: var(--alert); background: #2a1913; border: 1px solid #5a3326; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.notice { color: var(--text); background: #16261d; border: 1px solid #23573b; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.link-box { display: grid; gap: 8px; }
.link-box input { font-family: var(--mono); font-size: 13px; }

.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--raised); color: var(--text-soft); white-space: nowrap; }
.pill.good { background: #17301f; color: var(--good); }
.pill.warn { background: #33290f; color: var(--warn); }
.pill.off { background: #2f1c16; color: var(--alert); }

/* ---------------------------------------------------------------- card pages: signing in and setting up */
.card-page { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 100vh; padding: 24px 16px; }
.card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--surface-border); border-top: 3px solid var(--accent); border-radius: 12px;
        padding: 26px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.card form { display: grid; gap: 14px; }
.card .primary { padding: 11px; }
.card .lead { margin: 0; color: var(--text-soft); }
.card .hint { margin: -4px 0 0; }
.card .links { font-size: 14px; }
.card-page footer { font-size: 12px; color: var(--text-muted); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 9px; flex: none; }
.brand h1 { margin: 0; font-size: 24px; line-height: 1.1; }
.brand h1 span { color: var(--accent); font-weight: 600; }

.app-setup { display: grid; gap: 12px; justify-items: center; }
.app-setup ol { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 14px; justify-self: stretch; }
.app-setup .qr { border-radius: 10px; background: #fff; image-rendering: pixelated; }
.app-setup details { font-size: 13px; color: var(--text-muted); text-align: center; }
.app-setup summary { cursor: pointer; }
.app-setup .key { display: block; margin-top: 8px; font-size: 15px; letter-spacing: .05em; }

/* ---------------------------------------------------------------- the bar on top, like the viewer's */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--surface-border); }
.bar .logo { display: flex; align-items: center; gap: 8px; margin-left: 8px; white-space: nowrap; color: var(--text); text-decoration: none; }
.bar .logo .mark { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.bar .logo-text { font-weight: 700; font-size: 15px; }
.bar .logo-text span { font-weight: 400; color: var(--text-muted); }
.bar .sep { flex: none; width: 1px; height: 22px; background: var(--separator); margin: 0 12px; }
.bar .sections { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bar .me { display: flex; align-items: center; gap: 2px; }
.bar .me form { display: contents; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
        background: transparent; color: var(--text-soft); cursor: pointer; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tool:hover { background: var(--hover); color: #fff; text-decoration: none; }
.tool.active { background: var(--raised); color: var(--accent); }
.bar .who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
    .bar .sections .tool span, .bar .who { display: none; }
    .bar .sep { margin: 0 4px; }
}

/* ---------------------------------------------------------------- pages */
.page { max-width: 780px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 18px; align-content: start; }
.page.wide { max-width: 1100px; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head h2 { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); justify-self: start; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--text-muted); font-size: 14px; margin-top: -8px; }
.empty { color: var(--text-muted); text-align: center; padding: 40px 0; }

.search { position: relative; display: block; width: 260px; max-width: 100%; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search input { padding-left: 34px; background: var(--surface); }

.panel { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 20px; }
.panel.form { display: grid; gap: 22px; }
.panel.form section { display: grid; gap: 12px; }
.panel.form section + section { border-top: 1px solid var(--surface-border); padding-top: 20px; }
.panel .row { display: flex; gap: 12px; flex-wrap: wrap; }
.panel .row .grow { flex: 1 1 220px; }
.panel .row .narrow { flex: 0 0 110px; }
.buttons { display: flex; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* Choice between two: the viewer's segmented button. */
.choice { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--surface-border); border-radius: 9px; padding: 3px; gap: 3px; background: var(--ground); }
.choice label { display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 6px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--raised); color: var(--text); font-weight: 600; }
.choice label:has(input:focus-visible) { outline: 2px solid var(--accent); }
form:has(.choice input[value=password]:checked) .windows-only { display: none; }

/* Lists of actions: text on the left, the button on the right. */
.actions-list { display: grid; gap: 0; padding: 8px 20px; }
.actions-list h3 { margin: 12px 0 4px; }
.actions-list > form, .actions-list > .row-action, form.actions-list { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.actions-list > form + form, .actions-list > .row-action + form { border-top: 1px solid var(--surface-border); }
.actions-list .what, .downloads .what { flex: 1; display: grid; gap: 2px; }
.actions-list .what span, .downloads .what span { font-size: 13px; color: var(--text-muted); }
.danger-zone { display: flex; justify-content: flex-end; }

/* Tables */
.panel.table { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--surface-border); }
td { padding: 11px 16px; border-bottom: 1px solid var(--surface-border); vertical-align: middle; color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #23272c; }
tr.bad td:nth-child(3) { color: var(--alert); }
.who { display: grid; color: var(--text); }
.who .title { font-weight: 600; }
.who .sub { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------------------- machines: Fleet's group bars and big names */
.group { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; overflow: hidden; }
.group > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; user-select: none; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary:hover { background: #23272c; }
.group > summary .icon { color: var(--text-muted); transition: transform .15s; transform: rotate(-90deg); }
.group[open] > summary .icon { transform: none; }
.group > summary .name { flex: 1; }
.group > summary .count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-muted); background: var(--raised); border-radius: 99px; padding: 1px 9px; }
.group[open] > summary { border-bottom: 1px solid var(--surface-border); }
.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0 -1px -1px 0; }
.machine { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); min-width: 0;
           border-right: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.machine:hover { background: #23272c; }
.machine .what { flex: 1; min-width: 0; }
.machine .title { font-size: 20px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine .address { font-family: var(--mono); font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine .actions { display: flex; align-items: center; gap: 4px; }
.machine .actions .button { padding: 7px 12px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--separator); }
.dot.online { background: var(--good); box-shadow: 0 0 0 3px rgba(61,214,140,.15); }
.dot.offline { background: #5a6069; }
.dot.notvnc { background: var(--warn); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- downloads */
.panel.downloads { padding: 6px; display: grid; }
.download { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 9px; color: var(--text); text-decoration: none; }
.download:hover { background: var(--raised); text-decoration: none; }
.download > .icon { color: var(--accent); }
.download .meta { text-align: right; }
.about p { margin: 0 0 6px; }

/* Who is connected to a machine through Hub right now */
.machine .watching { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--good); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.machine .actions .connect:hover { border-color: var(--accent); color: var(--accent); }

/* A machine's certificate (MachineEdit) */
.panel.cert { margin-top: 16px; display: grid; gap: 10px; }
.panel.cert h3 { margin: 0; font-size: 15px; }
.panel.cert .hint { margin: 0; font-size: 13px; color: var(--text-muted); }
.fingerprint { font-family: var(--mono); font-size: 12px; color: var(--text-soft); word-break: break-all; }

/* The access level on a machine, when it is less than full */
.machine .level { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--surface-border); border-radius: 999px;
    font-size: 11px; font-weight: 500; color: var(--text-muted); vertical-align: middle; }

/* Groups page */
.section-title { margin: 28px 0 4px; font-size: 16px; }
.page > .hint { margin: 0 0 4px; }
.actions-list > .row-action + .row-action { border-top: 1px solid var(--surface-border); }
.machine-group form { display: flex; align-items: center; gap: 12px; margin: 0; }
.machine-group form.grow { flex: 1; }
.machine-group input[type=text] { flex: 1; min-width: 0; max-width: 320px; }
.member-list .what b a, .actions-list .what b a { color: var(--text); }
.member-list .what b a:hover, .actions-list .what b a:hover { color: var(--accent); }
.grant-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.grant-form label { display: grid; gap: 6px; flex: 1 1 150px; }
.level-pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--raised); color: var(--text-soft); }
.level-pill.full { background: #33290f; color: var(--accent); }
.level-pill.control { background: #17301f; color: var(--good); }
.machine .until { font-size: 12px; color: var(--warn); margin-top: 3px; }

/* Access with a period */
.period { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.period.notyet { color: var(--warn); }
.period.expired { color: var(--alert); }
.actions-list .expired .what, .actions-list .expired .level-pill { opacity: .55; }
.grant-form label.wide { flex: 1 1 100%; }
.grant-form input[type=datetime-local] { min-width: 0; }
.access-panel > .error, .access-panel > .notice { margin: 8px 0; }
.reach-list .row-action .what span { white-space: normal; }
.check-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.panel.form section h3 { margin: 0; }

/* ---------------------------------------------------------------- dialogs (Dialog.razor; opened modal by hub.js) */
dialog.dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; overflow: visible; }
dialog.dialog.side { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(680px, 100vw); height: 100vh; height: 100dvh; }
dialog.dialog.side.narrow { width: min(480px, 100vw); }
dialog.dialog.side.wide { width: min(940px, 100vw); }
dialog.dialog.center { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px); }
dialog.dialog.center.narrow { width: min(440px, calc(100vw - 32px)); }
dialog.dialog.center.wide { width: min(860px, calc(100vw - 32px)); }
dialog.dialog::backdrop { background: rgba(5, 6, 8, .58); backdrop-filter: blur(4px) saturate(.75); }
html:has(dialog.dialog[open]) { overflow: hidden; }

.dialog-frame { position: relative; display: flex; flex-direction: column; height: 100%; max-height: inherit;
                background: linear-gradient(180deg, #1C1F23 0%, #16191C 100%); }
.side .dialog-frame { border-left: 1px solid var(--surface-border); box-shadow: -24px 0 80px rgba(0,0,0,.55), -1px 0 0 rgba(255,255,255,.03); }
.side .dialog-frame::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; pointer-events: none;
                              background: linear-gradient(180deg, var(--accent) 0%, rgba(245,165,36,.35) 18%, transparent 55%); }
.center .dialog-frame { border: 1px solid var(--surface-border); border-radius: 16px; overflow: hidden; max-height: calc(100dvh - 48px);
                        box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset; }
.center .dialog-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; pointer-events: none;
                                background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }

.dialog-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--separator); }
.dialog-titles { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dialog-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.dialog-head h2 { font-size: 22px; overflow-wrap: anywhere; }
.dialog-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -4px -8px 0 0; border-radius: 10px; color: var(--text-muted);
                transition: background .15s, color .15s, transform .25s cubic-bezier(.22,1,.36,1); }
.dialog-close:hover { background: var(--hover); color: var(--text); text-decoration: none; transform: rotate(90deg); }
.dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
               padding: 20px 24px 36px; display: grid; gap: 18px; align-content: start; }
.dialog-body .facts { margin-top: 0; }
.dialog-body .panel { background: rgba(255,255,255,.025); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--separator); background: rgba(0,0,0,.18); }
.dialog-body::-webkit-scrollbar { width: 10px; }
.dialog-body::-webkit-scrollbar-thumb { background: #2E3238; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* In: the side one glides in from the right and settles; the middle one rises; the contents follow a moment after. */
@keyframes dialog-side-in { from { transform: translateX(calc(100% + 48px)); } to { transform: none; } }
@keyframes dialog-side-out { to { transform: translateX(calc(100% + 48px)); } }
@keyframes dialog-center-in { from { opacity: 0; transform: translateY(18px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes dialog-center-out { to { opacity: 0; transform: translateY(10px) scale(.975); } }
@keyframes dialog-fade-in { from { opacity: 0; } }
@keyframes dialog-fade-out { to { opacity: 0; } }
@keyframes dialog-rise { from { opacity: 0; transform: translateY(10px); } }

dialog.dialog.side.enter { animation: dialog-side-in .5s cubic-bezier(.16,1,.3,1); }
dialog.dialog.center.enter { animation: dialog-center-in .36s cubic-bezier(.16,1,.3,1); }
dialog.dialog.enter::backdrop { animation: dialog-fade-in .4s ease-out; }
dialog.dialog.enter .dialog-head, dialog.dialog.enter .dialog-body > * { animation: dialog-rise .55s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(90ms + var(--i, 0) * 45ms); }
dialog.dialog.side.leave { animation: dialog-side-out .28s cubic-bezier(.5,0,.75,0) forwards; }
dialog.dialog.center.leave { animation: dialog-center-out .2s ease-in forwards; }
dialog.dialog.leave::backdrop { animation: dialog-fade-out .28s ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
    dialog.dialog.enter, dialog.dialog.leave, dialog.dialog.enter::backdrop, dialog.dialog.leave::backdrop,
    dialog.dialog.enter .dialog-head, dialog.dialog.enter .dialog-body > * { animation-duration: 1ms; animation-delay: 0s; }
}
@media (max-width: 700px) {
    .side .dialog-frame { border-left: 0; }
    .dialog-head { padding: 18px 16px 14px; }
    .dialog-body { padding: 16px 16px 28px; }
}

/* "Are you sure?" (forms with data-confirm) */
.confirm .dialog-body { padding: 26px 26px 22px; gap: 10px; justify-items: start; }
.confirm .dialog-body h2 { font-size: 19px; }
.confirm .dialog-body p { margin: 0; color: var(--text-soft); }
.confirm-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px;
                background: #3a2018; color: var(--alert); border: 1px solid #5a3326; font-weight: 700; font-size: 20px; }
.confirm .dialog-foot { background: rgba(0,0,0,.25); }
.button.danger.solid { background: var(--alert); color: var(--on-alert); border-color: var(--alert); font-weight: 600; }
.button.danger.solid:hover { background: #FFA27D; }
.dialog-frame:focus { outline: none; }

/* ---------------------------------------------------------------- organization in the bar */
.org-switch, .org-single { position: relative; margin-left: 14px; }
.org-switch > summary, .org-single { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px;
                                     color: var(--text-soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.org-switch > summary { list-style: none; cursor: pointer; border: 1px solid var(--surface-border); background: var(--raised); transition: background .15s, border-color .15s; }
.org-switch > summary::-webkit-details-marker { display: none; }
.org-switch > summary:hover, .org-switch[open] > summary { background: var(--hover); border-color: #3a4048; color: var(--text); }
.org-switch > summary .icon:last-child { color: var(--text-muted); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.org-switch[open] > summary .icon:last-child { transform: rotate(180deg); }
.org-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.org-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 260px; padding: 6px; display: grid; gap: 2px;
            background: #1C1F23; border: 1px solid var(--surface-border); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
            animation: dialog-rise .22s cubic-bezier(.16,1,.3,1); }
.org-menu form { display: contents; }
.org-menu-title { padding: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.org-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; text-align: left; }
.org-item:hover:not(:disabled) { background: var(--hover); }
.org-item.current { color: var(--accent); }
.org-item.current::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.org-role { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.org-manage { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--separator); font-size: 13px; color: var(--text-soft); }
.org-manage:hover { color: var(--text); text-decoration: none; background: var(--hover); border-radius: 8px; }
@media (max-width: 700px) { .org-name { max-width: 110px; } .org-switch, .org-single { margin-left: 6px; } }
.org-menu .org-hub { display: block; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--separator); }
.org-menu .org-hub .org-item > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.org-switch.hub > summary { border-color: #5a4520; background: #2a2214; color: var(--accent); }

/* Binding a Glimt server */
.bind-offer h3 { margin-top: 0; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--separator); }
.bind-code { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; text-align: center; }
.bind-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.bind-value { font-family: var(--mono); font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: .12em; color: var(--accent); user-select: all; }
.bind-left { font-size: 14px; color: var(--text-soft); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.steps code { font-family: var(--mono); font-size: 13px; color: var(--text); }
.hint.warn { color: #f0b860; }

/* Allow Glimt (a viewer signing in) */
.app-allow h1 { font-size: 20px; margin: 0 0 10px; }
.app-allow .steps { margin: 12px 0 18px; }
.app-allow .buttons { display: flex; gap: 10px; }
.app-allow .buttons form { margin: 0; }
