@font-face {
  font-family: Onest;
  src: url('/assets/onest-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ground: #f4f6f7; --sheet: #fcfdfd; --ink: #302f2a; --muted: #68665e;
  --line: #d1d6d8; --accent: #ac4029; --on: #fffefa; --control: #e8ebed;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #191c1e; --sheet: #222628; --ink: #f1efe5; --muted: #bcbab0;
    --line: #42484b; --accent: #fa9a7c; --on: #262620; --control: #303538;
  }
}
* { box-sizing: border-box; }
[hidden], [role=alert]:empty { display: none !important; }
body { background: var(--ground); color: var(--ink); margin: 0; font: 15px/1.48 Onest, system-ui, sans-serif; }
h1, h2 { margin: 0; font: normal 30px/1.25 Georgia, serif; letter-spacing: -.028em; overflow-wrap: anywhere; }
button, input, select { font: inherit; color: inherit; }
button, input:not([type=radio],[type=checkbox]), select {
  min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--sheet);
}
button { cursor: pointer; }
button:hover, nav [aria-current=page], nav [aria-pressed=true] { background: var(--control); }
button:disabled { opacity: .65; cursor: wait; }
button.primary { color: var(--on); background: var(--accent); border-color: var(--accent); }
a { color: inherit; text-underline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.logo { width: 36px; height: 36px; background: var(--accent); mask: url('/assets/logo-fall.png') center / contain no-repeat; }
.muted, small, .owner { color: var(--muted); font: 14px/1.5 Onest, sans-serif; }
[role=alert] { color: var(--accent); }
header, .heading, .actions, .access, .device { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header { padding: 23px 5%; border-bottom: 1px solid var(--line); }
nav { display: flex; gap: 8px; }
nav button, nav a { padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; text-decoration: none; }
.auth { max-width: 520px; margin: clamp(28px, 7vh, 84px) auto; padding: 0 24px; }
.auth h1 { font-family: Onest, sans-serif; font-size: 26px; }
.full { width: 100%; margin: 8px 0 18px; }
.login-link { display: block; width: fit-content; margin-inline: auto; }
.cabinet { padding: 34px 5%; }
.access { justify-content: flex-start; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.zones { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: clamp(24px,4vw,72px); }
.device { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 20px; }
.admin { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 100dvh; }
aside { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 28px 14px; gap: 30px; }
aside nav, #people { flex-direction: column; }
.owner { margin-top: auto; padding: 10px; }
.workspace { padding: clamp(30px,3vw,54px) clamp(32px,4vw,72px); }
.heading { margin-bottom: 34px; }
.columns { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px,270px) 1fr; min-height: 480px; }
.people { border-right: 1px solid var(--line); padding: 26px 24px 0 0; }
.details { padding: 26px clamp(24px,3vw,54px); min-width: 0; }
#people { margin-top: 18px; }
#people button { text-align: left; overflow-wrap: anywhere; }
#people [aria-pressed=true] { color: var(--accent); }
dialog { color: inherit; width: min(460px, calc(100% - 32px)); padding: 26px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
dialog::backdrop { background: #1115; }
dialog h2 { margin-bottom: 20px; font-size: 26px; }
label, legend { display: block; margin-bottom: 6px; }
input:not([type=checkbox],[type=radio]), select { width: 100%; }
fieldset { border: 0; margin: 18px 0; padding: 0; }
fieldset label { padding-block: 4px; }
.actions { justify-content: flex-end; margin-top: 22px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .zones, .columns, .admin { display: block; }
  .zones section + section { margin-top: 28px; }
  aside { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; border: 0; border-bottom: 1px solid var(--line); padding: 12px 5%; }
  aside nav { display: none; }
  .owner { margin: 0 0 0 auto; padding: 0; }
  .workspace, .cabinet { padding: 24px 5%; }
  .people { border: 0; padding: 16px 0; }
  .details { border-top: 1px solid var(--line); padding: 20px 0; }
  .columns { min-height: auto; }
}
