:root {
  color-scheme: dark;
  --ink: #f5efe3;
  --accent: #e8ca6c;
  --muted: #adbbcb;
  --paper: #0b1c33;
  --line: #354a60;
  --surface: #142940;
  --lime: #e8ca6c;
  --rail: #071529;
  font-family: "Avenir Next","Segoe UI",-apple-system,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .55;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e8ca6c;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--accent);
}
.skip {
  position: fixed;
  top: -60px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 0;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0,1fr);
  min-height: 100vh;
}
aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--rail);
  color: #f5efe3;
  padding: 27px 16px;
  height: 100dvh;
  position: sticky;
  top: 0;
  overflow: auto;
}
aside .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 4px 34px;
}
.brand img {
  width: 41px;
}
.brand small {
  display: block;
  font-weight: 450;
  color: #d7bd6e;
  font-size: .88rem;
}
.side-label,
.side-list h2 {
  color: #adbbcb;
  font-size: .8rem;
  font-weight: 600;
  margin: 0 5px 9px;
}
.proj-select {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}
.proj-select select {
  min-width: 0;
  flex: 1;
  color: #f5efe3;
  background: #192f47;
  border: 1px solid #3e5370;
  border-radius: 7px;
  padding: 9px 7px;
}
.proj-select button {
  background: #203b55;
  border: 1px solid #3e5370;
  border-radius: 6px;
  color: white;
  font-size: 1.35rem;
  width: 34px;
  height: 37px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 10px 11px;
  margin: 2px 0;
  color: #e0e6eb;
  font-size: .94rem;
}
.nav:hover,
.room-link:hover {
  background: #203851;
}
.nav.active {
  background: #e6c966;
  color: #0b1c33;
  font-weight: 650;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.side-list {
  border-top: 1px solid #30435b;
  margin-top: 23px;
  padding-top: 19px;
}
.room-link {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 5px;
  color: #d6e0e9;
  font-size: .92rem;
}
.room-link .dot {
  width: 7px;
  height: 7px;
  border: 1px solid #91a4b9;
  border-radius: 50%;
}
.room-link.active {
  color: #f5d77e;
}
.room-link.active .dot {
  background: #dfbd59;
}
.room-link span:last-child {
  overflow-wrap: anywhere;
}
.side-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.local-indicator {
  border-top: 1px solid #30435b;
  margin: 12px 4px 0;
  padding: 16px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: #b8c6d2;
}
.local-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dcc26c;
}
.main {
  min-width: 0;
}
.top {
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: #0c1e33;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px,3vw,45px);
  gap: 14px;
}
.top > div,
.top-actions,
.actions,
.tabbar,
.card-header,
.canvas-toolbar,
.titleline,
.rowsplit,
.readout,
.dialog-heading,
dialog footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top > div:first-child {
  min-width: 0;
}
.top #crumb {
  font-size: .9rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #41566d;
  background: #fff;
  border-radius: 6px;
  font-size: .89rem;
  font-weight: 600;
  padding: 9px 13px;
  min-height: 37px;
  text-decoration: none;
}
.button:hover {
  background: #203952;
}
.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.button.primary:hover {
  background: #eacf84;
}
.button.mini {
  font-size: .8rem;
  padding: 5px 8px;
  min-height: 30px;
}
.text-btn {
  padding: 4px 0;
  color: #e8ca6c;
  font-weight: 620;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iconbtn,
#menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
}
.iconbtn {
  font-size: 1.5rem;
}
#menu {
  display: none;
}
main {
  max-width: 1760px;
  margin: auto;
  padding: clamp(16px,3vw,43px);
  padding-top: 30px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.7rem,3vw,2.8rem);
  letter-spacing: -.05em;
  line-height: 1.12;
  margin: 2px 0 8px;
}
h2 {
  font-size: 1.1rem;
  letter-spacing: -.02em;
  margin: 0;
}
h3 {
  font-size: .98rem;
  margin: 12px 0;
}
.muted,
.subline {
  color: var(--muted);
  font-size: .91rem;
}
.subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.titleline,
.rowsplit,
.card-header,
.canvas-toolbar,
.dialog-heading {
  justify-content: space-between;
}
.titleline {
  align-items: flex-start;
  margin-bottom: 21px;
}
.tag {
  display: inline-block;
  border: 1px solid #496070;
  border-radius: 5px;
  background: #1d3448;
  color: #f2d480;
  padding: 3px 7px;
  font-size: .78rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 15px 0 18px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 8px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}
.stat strong {
  display: block;
  font-size: 1.42rem;
  letter-spacing: -.045em;
  margin-top: 2px;
}
.work {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,29%);
  gap: 14px;
  align-items: start;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  overflow: hidden;
}
.card-header,
.canvas-toolbar {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabbar {
  gap: 2px;
  background: #102237;
  border-radius: 6px;
  padding: 3px;
}
.tabbar button {
  padding: 5px 9px;
  font-size: .83rem;
  color: var(--muted);
  border-radius: 4px;
}
.tabbar button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #061324;
}
.canvas {
  display: grid;
  place-items: center;
  min-height: 300px;
  aspect-ratio: 1.85;
  background-color: #f9f5ea;
  background-image: radial-gradient(#ccc9ba .85px,transparent .85px);
  background-size: 13px 13px;
  overflow: hidden;
}
.floor-svg {
  display: block;
  width: 100%;
  height: auto;
}
.canvas-empty {
  text-align: center;
  padding: 22px;
  max-width: 470px;
}
.canvas-empty p {
  margin: 7px 0;
  color: var(--muted);
}
.caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 15px;
  color: var(--muted);
  font-size: .8rem;
  border-top: 1px solid var(--line);
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  background: #19334b;
  vertical-align: middle;
  margin-right: 4px;
}
.legend .orange {
  background: #99571b;
}
.legend .blue {
  background: #357799;
}
.register {
  max-height: 460px;
  overflow: auto;
}
.edge {
  display: grid;
  gap: 5px;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #304359;
  text-align: left;
  padding: 10px 12px;
  font-size: .85rem;
}
.edge:last-child {
  border: 0;
}
.edge.active,
.edge:hover {
  background: #254059;
}
.edge code {
  color: #ebd28a;
}
.edge small {
  display: block;
  color: #b5c4d1;
  font-size: .75rem;
}
.edge strong {
  font-variant-numeric: tabular-nums;
}
.card-pad {
  padding: 15px;
}
.section-row {
  margin-top: 16px;
}
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-row > label {
  flex: 1;
  min-width: 110px;
}
.group {
  display: grid;
  gap: 12px;
}
.group label,
label.field,
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .88rem;
  color: var(--ink);
}
input:not([type=file]),
select,
textarea {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #556b80;
  border-radius: 5px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink);
  font-size: .93rem;
}
textarea {
  width: 100%;
  resize: vertical;
}
h2 + .muted,
.card-pad > p {
  margin: 6px 0 12px;
}
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 15px;
}
.tool {
  padding: 15px;
}
.tool h2 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tool p,
.message {
  font-size: .88rem;
  line-height: 1.48;
  color: var(--muted);
  margin: 7px 0 11px;
}
.response {
  white-space: pre-wrap;
  font-size: .92rem;
  line-height: 1.55;
  margin-top: 12px;
}
.source-frame {
  width: 100%;
  height: min(62vh,660px);
  border: 0;
  background: #f9f5ea;
}
.source-img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  margin: auto;
  object-fit: contain;
}
.filelist article,
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.filelist strong {
  overflow-wrap: anywhere;
}
.empty {
  padding: 35px 25px;
  max-width: 760px;
}
.empty h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.small {
  font-size: .82rem;
  color: var(--muted);
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(620px,calc(100vw - 26px));
  max-height: 90dvh;
  box-shadow: 0 20px 80px #020911aa;
  color: var(--ink);
}
dialog::backdrop {
  background: #020c19b8;
}
.dialog-heading,
dialog footer {
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
}
dialog footer {
  border: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
#dialog-body {
  padding: 16px 20px;
}
#dialog-error {
  color: #ffba9d;
  font-size: .9rem;
  margin: 0 20px 8px;
}
body.dialog-open {
  overflow: hidden;
}
.measure-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr .7fr auto;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}
.measure-row input,
.measure-row select {
  width: 100%;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: max-content;
  padding: 10px 16px;
  background: #243f57;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  z-index: 50;
  font-size: .9rem;
}
#notice:empty {
  display: none;
}
.loading {
  color: var(--muted);
}
.error-text {
  color: #ffbb99;
}
.printonly {
  display: none;
}
.room-source {
  margin-block: 8px;
  line-height: 1.45;
}
.unit {
  color: var(--muted);
  font-weight: 400;
}
.page-desc {
  margin: 5px 0 18px;
  color: var(--muted);
  max-width: 68ch;
}
.hintbox {
  border-left: 3px solid #c9a227;
  padding: 9px 11px;
  background: #152c42;
  font-size: .86rem;
  color: #e7ddc9;
  line-height: 1.45;
}
.inset {
  padding: 14px 16px;
}
.wrap {
  flex-wrap: wrap;
}
.device-list {
  margin-top: 14px;
}
.plan-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.plan-controls select {
  font-size: .83rem;
  padding: 5px;
}
.metric-result {
  font-weight: 650;
  margin-top: 9px;
}
.room-list-empty {
  font-size: .84rem;
  color: #adbbcb;
}
.actionbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.subtitle {
  color: #cbdae5;
  margin-bottom: 15px;
}
@media (min-width:1600px) {
  .shell {
    grid-template-columns: 260px minmax(0,1fr);
  }
}
@media (max-width:1080px) {
  .shell {
    grid-template-columns: 200px minmax(0,1fr);
  }
  aside {
    padding-inline: 10px;
  }
  .work {
    grid-template-columns: minmax(0,1fr) 230px;
  }
  main {
    padding: 19px;
  }
  .top {
    padding-inline: 19px;
  }
  .stats {
    gap: 8px;
  }
}
@media (max-width:860px) {
  .work {
    grid-template-columns: 1fr;
  }
  .register {
    max-height: 290px;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .canvas {
    min-height: 230px;
  }
}
@media (max-width:680px) {
  .shell {
    display: block;
  }
  aside {
    position: fixed;
    z-index: 9;
    width: 244px;
    transform: translateX(-101%);
    box-shadow: 6px 0 25px #02091288;
    transition: transform .18s;
  }
  body.menu-open aside {
    transform: none;
  }
  #menu {
    display: inline-flex;
  }
  .top {
    padding: 9px 11px;
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 55px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .button {
    padding: 7px 8px;
    font-size: .79rem;
  }
  .top-actions .icon {
    width: 15px;
  }
  main {
    padding: 15px 11px;
  }
  .stats {
    gap: 5px;
  }
  .stat {
    padding: 9px;
  }
  .stat span {
    font-size: .73rem;
  }
  .stat strong {
    font-size: 1.12rem;
  }
  .canvas {
    min-height: 190px;
  }
  .titleline {
    gap: 5px;
  }
  .measure-row {
    grid-template-columns: 1fr 1fr .7fr 24px;
  }
  .brand {
    margin-bottom: 18px;
  }
  .caption {
    padding: 8px 10px;
  }
  .top #crumb {
    max-width: 90px;
  }
  .tools {
    gap: 9px;
  }
}
@media print {
  aside,
  .top,
  dialog,
  #notice,
  .tools,
  .actions,
  .actionbar,
  .tabbar,
  .plan-controls,
  .text-btn,
  .print-hide,
  .room-source {
    display: none!important;
  }
  .shell,
  .work {
    display: block;
  }
  .shell {
    min-height: 0;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .card,
  .stat {
    break-inside: avoid;
  }
  .register {
    max-height: none;
  }
  .canvas {
    min-height: 0;
    max-height: 380px;
  }
  .work > .card + .card {
    margin-top: 12px;
  }
  .printonly {
    display: block;
  }
  body {
    background: #fff;
  }
  .stats {
    margin-bottom: 10px;
  }
  .caption {
    font-size: 10px;
  }
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}
[hidden] {
  display: none!important;
}


.login-links { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.recovery-card { margin-inline:auto; }
.recovery-card [role=alert] { color:#f6d78b; }
.top-brand { display: none; }
#workspaces { display: inline-flex; flex: none; padding: 3px; border: 1px solid #435367; border-radius: 10px; background: #071529; }
#workspaces:empty { display: none; }
#workspaces a, .sample-controls button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 4px 12px; border-radius: 7px; color: #b7c5d5; text-decoration: none;
  font-size: .85rem; font-weight: 650; white-space: nowrap;
}
#workspaces a[aria-current], .sample-controls button[aria-pressed=true] {
  background: linear-gradient(165deg,#30475e,#1b334d); color: #f8df91;
  box-shadow: inset 0 1px #ffffff22,0 2px 3px #0005;
}
#search-wrap { margin: 6px 0 9px; }
#room-search { width: 100%; }
@media screen {
  body { background: radial-gradient(90% 65% at 85% 0%,#182f47 0,transparent 73%),var(--paper); }
  aside { border-right: 1px solid #293c51; }
  h1,h2,.brand { font-weight: 780; }
  .top { background: #09182b; border-bottom-color: #324358; }
  .nav, .room-link, .proj-select select, .proj-select button, .tabbar button,
  .button, .button.mini, .text-btn, .iconbtn, #menu, .edge { min-height: 44px; }
  .proj-select button { width: 44px; }
  .nav.active { background: linear-gradient(155deg,#f0d88a,#c9a227); box-shadow: inset 0 1px #ffefb1,0 3px 0 #806318; }
  .room-link.active { background: #182f46; }
  .button,.proj-select button {
    background: linear-gradient(160deg,#223e57,#10243b); color: #f5efe3;
    border-color: #41586f; box-shadow: inset 0 1px #ffffff14,0 3px 0 #061320;
    transition: transform .12s, filter .12s, box-shadow .12s;
  }
  .button:hover { background: linear-gradient(160deg,#2d4a66,#1a314b); }
  .button.primary { background: linear-gradient(150deg,#f1d78a,#c9a227); border-color: #d0b45f; color: #0b1c33; box-shadow: inset 0 1px #fff0bc,0 3px 0 #806318; }
  .button.primary:hover { background: linear-gradient(150deg,#f8e09a,#d5af39); }
  .button:active,.proj-select button:active { transform: translateY(2px); box-shadow: inset 0 1px #ffffff19,0 1px 0 #081626; }
  .card,.stat,dialog {
    background: linear-gradient(156deg,#1b334d,#10243b 83%); border-color: #344d64;
    box-shadow: inset 0 1px #ffffff10,0 3px 0 #081728,0 10px 25px #030b141f; border-radius: 14px;
  }
  .stat { padding: 15px 17px; }
  .stat strong { color: #f8e8bd; font-weight: 770; font-variant-numeric: tabular-nums; }
  .tabbar button.on { background: #304961; color: #f7d875; }
  .canvas-empty,.canvas-empty p { color: #203952; }
  .caption .legend i { outline: 1px solid #8295a3; }
  .edge.active { background: #30455a; box-shadow: inset 3px 0 #c9a227; }
  input:not([type=file]),select,textarea { background: #0d2035; color: #f5efe3; min-height: 44px; color-scheme: dark; }
  input::placeholder,textarea::placeholder { color: #99aabd; }
  .source-frame { color-scheme:light; }
  .hintbox { border-radius: 6px; }
  #dialog-body > .button { margin-top: 10px; margin-right: 8px; }
  .skip { background: #f5efe3; color: #112944; }
  .signed-out aside, .signed-out #menu, .signed-out #crumb { display: none; }
  .signed-out .shell { display: block; }
  .signed-out .top { min-height: 84px; padding-inline: max(5vw,calc((100vw - 1312px)/2)); }
  .signed-out .top-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #f5efe3; font-weight: 750; letter-spacing: -.025em; font-size: 1.13rem; }
  .top-brand img { width: 43px; height: 43px; }
  .top-brand small { font-size: .86em; color: #e8ca6c; font-weight: 550; margin-left: 2px; }
  .signed-out main { display: grid; align-content: center; min-height: calc(100svh - 84px); max-width: 1440px; padding: clamp(30px,5vw,72px); }
  .entrance { display: grid; grid-template-columns: minmax(290px,.78fr) minmax(0,1.22fr); gap: clamp(28px,5vw,80px); align-items: center; }
  .login-card { max-width: 430px; width: 100%; }
  .login-card h1 { font-size: clamp(2.25rem,4.2vw,4rem); letter-spacing: -.064em; line-height: 1.03; margin: 0 0 16px; }
  .login-intro { color: #bac8d6; font-size: 1rem; max-width: 40ch; line-height: 1.55; margin-bottom: 26px; }
  .login-form { display: grid; gap: 15px; }
  .login-form label { display: grid; gap: 7px; font-size: .91rem; font-weight: 650; }
  .login-form input { background: #10243b; border: 1px solid #53687b; border-radius: 8px; height: 47px; padding: 8px 13px; }
  .login-form .primary { margin-top: 4px; min-height: 48px; font-size: .97rem; justify-content: space-between; padding-inline: 18px; }
  .login-switch { justify-self: start; }
  #login-message { margin: 0; color: #f6d78b; line-height: 1.45; font-size: .92rem; }
  .sample-sheet { min-width: 0; margin: 0; background: linear-gradient(155deg,#1b334d,#10243b); border: 1px solid #3d5369; border-radius: 18px; box-shadow: inset 0 1px #ffffff14,0 5px 0 #061426,0 17px 36px #020b1638; overflow: hidden; }
  .sample-sheet figcaption,.sheet-footer,.sample-sheet figcaption>div,.sheet-footer>span { display: flex; align-items: center; gap: 10px; }
  .sample-sheet figcaption,.sheet-footer { padding: 14px 19px; justify-content: space-between; }
  .sheet-icon { display: grid; place-items: center; width: 33px; height: 33px; background: #273d50; border: 1px solid #586166; color: #e8ca6c; border-radius: 8px; }
  .sample-sheet h2 { font-size: 1rem; }
  .sample-sheet figcaption .sample-controls { display: flex; gap: 1px; border-radius: 9px; padding: 2px; background: #0c1c30; border: 1px solid #3a4e61; }
  .sample-controls button { min-width: 44px; }
  .sample-stage { background-color: #152c43; background-image: linear-gradient(#90adbd12 1px,transparent 1px),linear-gradient(90deg,#90adbd12 1px,transparent 1px); background-size: 21px 21px; border-block: 1px solid #344c60; }
  .sample-stage svg { display: block; width: 100%; height: auto; }
  .sheet-footer { color: #b7c5d2; font-size: .81rem; }
  .sheet-footer strong { color: #f2df9e; font-variant-numeric: tabular-nums; }
  .sheet-footer .icon { color: #dfc275; }
}
@media screen and (max-width: 760px) {
  .signed-out .top { min-height: 68px; padding: 8px 16px; }
  .signed-out main { min-height: auto; padding: 32px 16px; }
  .entrance { grid-template-columns: minmax(0,1fr); gap: 25px; max-width: 540px; width: 100%; margin: auto; }
  .login-card { max-width: none; }
  .login-intro { margin-bottom: 17px; }
  .login-form { gap: 11px; }
  .sample-sheet figcaption,.sheet-footer { padding: 10px 12px; }
}
@media screen and (max-width: 680px) {
  .top:not(.signed-out .top) { flex-wrap: wrap; gap: 5px; }
  .top:not(.signed-out .top) .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .top-actions #workspaces a { padding-inline: 7px; }
  .stat { padding: 9px; }
  .signed-out .top-brand { font-size: .96rem; gap: 7px; }
  .top-brand img { width: 33px; height: 33px; }
  .signed-out .top-brand small { display:block; line-height: 1; margin:0; }
}
@media screen and (max-width: 380px) {
  .signed-out .top { padding-inline: 10px; }
  .sheet-footer { flex-wrap: wrap; gap: 3px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; animation-duration: 0s!important; transition-duration: 0s!important; }
}
@media print {
  :root { color-scheme: light; --ink:#182c40; --paper:white; --muted:#455569; --line:#c1c7cc; }
  .edge code,.edge small,.subtitle { color:#394955; }
  .tag { color:#1b334d; background:#f5f1e5; border-color:#c1c7cc; }
  .edge { background: white; }
}
