:root { color-scheme: light dark; font-family: Inter, system-ui, sans-serif; --ink: light-dark(#19333c,#e4eeee); --muted: light-dark(#586c72,#b2c6cc); --paper: light-dark(#fff,#1c2a32); --canvas: light-dark(#f5f7f9,#111b22); --line: light-dark(#d9e4e4,#34464e); --accent: light-dark(#087f78,#75d6c8); --button: light-dark(#e3f2ee,#26433f); color: var(--ink); background: var(--canvas); }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; }
#account-view { max-width: 72rem; padding: clamp(1rem, 5vw, 4rem); margin: auto; }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 650; }
#login { max-width: 24rem; margin: 8vh auto 0; }
form, form label { display: grid; gap: .55rem; }
form { margin-top: 1.75rem; gap: 1rem; }
input, button, select { box-sizing: border-box; padding: .65rem .85rem; border-radius: .45rem; font: inherit; }
input, select { background: var(--paper); color: inherit; border: 1px solid var(--line); }
input { width: 100%; }
button { background: var(--button); color: var(--accent); border: 0; cursor: pointer; font-weight: 650; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.overview, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.overview { justify-content: space-between; margin-bottom: 1rem; }
#member, #status { color: var(--muted); }
#viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: #181c24; }
#notebook-toolbar { flex: 0 0 auto; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 .9rem; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 3; }
#notebook-toolbar button, #notebook-toolbar select { padding: .32rem .48rem; }
#notebook-toolbar .plain { background: transparent; }
.notebook-title, .theme { display: inline-flex; align-items: center; gap: .55rem; }
#notebook-member { border-left: 1px solid var(--line); padding-left: .55rem; }
#clock, #connection, #notebook-member, .theme { color: var(--muted); font-size: .79rem; }
#clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
#connection[data-online] { color: var(--accent); }
#desktop { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#desktop canvas { outline-offset: -2px; }
#connection-overlay { position: absolute; display: grid; place-items: center; inset: 52px 0 0; color: #d6e3e5; background: #181c24dd; z-index: 2; pointer-events: none; text-align: center; }
#viewer:fullscreen #notebook-toolbar { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-101%); transition: transform 140ms ease; }
#viewer:fullscreen #notebook-toolbar.reveal, #viewer:fullscreen #notebook-toolbar:focus-within { transform: none; }
#viewer:fullscreen #connection-overlay { inset: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
    #notebook-toolbar { padding: .25rem .4rem; flex-wrap: wrap; }
    #clock, #notebook-member { display: none; }
    #notebook-toolbar .actions { margin-left: auto; }
}
