:root {
  color-scheme: dark;
  --canvas: #0e0e16;
  --sidebar: #11111b;
  --panel: #151521;
  --panel-deep: #11111c;
  --border: #29293a;
  --muted: #a7a5bb;
  --muted-soft: #9290a9;
  --text: #f3f1fb;
  --lavender: #c0a1ff;
  --lavender-bright: #d5c0ff;
  --green: #81ddad;
  --danger: #fda8b9;
  --radius: 16px;
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .49; cursor: not-allowed; }
a { color: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lavender-bright); outline-offset: 3px; }
button, a { touch-action: manipulation; }
::selection { background: #b096ed; color: #1b1028; }
h1, h2, h3, p { margin: 0; }
svg { display: block; width: 1.25rem; height: 1.25rem; flex: none; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
.sr-only { position: absolute; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  position: sticky; top: 0; height: 100dvh; background: var(--sidebar);
  border-right: 1px solid #252535;
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin: 0 9px; text-decoration: none; align-self: flex-start; font-size: 1.2rem; font-weight: 715; letter-spacing: -.04em; }
.brand img { display: block; border-radius: 10px; box-shadow: 0 4px 15px #8c51ef2e; }
.nav-primary { display: grid; gap: 5px; margin-top: 46px; }
.sidebar-label { padding: 0 11px; margin-bottom: 6px; color: var(--muted-soft); font-size: .75rem; font-weight: 650; letter-spacing: .095em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; width: 100%; gap: 10px; padding: 10px 11px;
  border: 1px solid transparent; border-radius: 9px; min-height: 43px;
  text-align: left; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 560;
  transition: background .16s, border-color .16s, color .16s;
}
.nav-item svg { width: 1.125rem; height: 1.125rem; }
.nav-item:hover { color: var(--text); background: #1a1a29; }
.nav-item.current { color: #dbc8ff; background: #251d36; border-color: #392d4e; }
.nav-item.current svg { color: #c9aaff; }
.nav-count { min-width: 1.25rem; margin-left: auto; text-align: center; border-radius: 5px; background: #302641; color: var(--lavender-bright); font-size: .75rem; font-weight: 650; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 4px; }
.device-card {
  display: flex; align-items: center; gap: 10px; min-height: 60px; margin-top: 14px;
  padding: 10px; background: #171725; border: 1px solid #2a2a3b; border-radius: 11px;
}
.device-icon { width: 34px; height: 34px; border-radius: 8px; background: #252139; color: #ba9af5; }
.device-icon svg { width: 17px; height: 17px; }
.device-card div { display: grid; row-gap: 2px; min-width: 0; }
.device-card strong { font-size: .83rem; font-weight: 650; line-height: 1.25; }
.device-card div span { color: var(--muted-soft); font-size: .75rem; line-height: 1.2; }

.main { min-width: 0; }
.topbar {
  max-width: 100%; min-height: 70px; padding: 0 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid #222232;
}
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--muted-soft); font-size: .875rem; }
.breadcrumbs strong { color: #e0deee; font-weight: 580; }
.slash { color: #6f6b88; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.connection-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 31px; padding: 3px 11px;
  border: 1px solid #343347; border-radius: 100px; background: #181824; color: #c5c3d6;
  white-space: nowrap; font-size: .8125rem; font-weight: 590;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #8c88a2; }
.connection-pill.connected { color: #a9ecc8; border-color: #2c4a42; background: #172923; }
.connection-pill.connected .dot { background: var(--green); box-shadow: 0 0 8px #80dda950; }
.connection-pill.pending { color: #dfcdfa; border-color: #443558; background: #251d33; }
.connection-pill.pending .dot { background: var(--lavender); }
.content { width: 100%; max-width: 1340px; margin: 0 auto; padding: 35px 36px 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { font-size: clamp(1.65rem, 3vw, 2.13rem); font-weight: 690; line-height: 1.16; letter-spacing: -.045em; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); margin-top: 6px; font-size: .94rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; padding: 8px 13px;
  border: 1px solid transparent; border-radius: 8px; font-size: .875rem; font-weight: 660; line-height: 1.25;
  white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.button svg { width: 17px; height: 17px; }
.button.primary { color: #211437; background: #be9bff; border-color: #c7a7ff; }
.button.primary:hover:not(:disabled) { background: #d3b8ff; border-color: #dcc7ff; box-shadow: 0 4px 18px #8f53eb33; }
.button.secondary { color: #e3deef; background: #1c1b2a; border-color: #39364c; }
.button.secondary:hover:not(:disabled) { background: #262237; border-color: #6b5687; }
.button.subtle { color: var(--muted); background: transparent; }
.button.subtle:hover:not(:disabled) { color: var(--text); background: #252437; }
.button.danger { color: #2c1119; background: #fca2b5; border-color: #fca2b5; }
.button.danger:hover:not(:disabled) { background: #ffc3cf; }
.button.compact { min-height: 34px; padding: 6px 10px; }
.button.compact svg { width: 16px; height: 16px; }
.icon-button {
  display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent;
  border-radius: 7px; min-width: 34px; height: 34px; padding: 0; color: #aaa7bf;
  transition: background .15s, color .15s;
}
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover:not(:disabled) { color: #f3efff; background: #29263c; }
.icon-button.remove:hover:not(:disabled) { color: var(--danger); background: #3b2332; }
.text-button {
  padding: 0; background: transparent; color: #ceb3ff; border: 0; font-weight: 625;
  text-underline-offset: 3px; border-radius: 3px;
}
.text-button:hover:not(:disabled) { color: #e3ceff; text-decoration: underline; }

.hero {
  position: relative; overflow: hidden; min-height: 280px; margin-bottom: 22px;
  display: flex; align-items: center; isolation: isolate;
  border: 1px solid #3a2d51; border-radius: var(--radius);
  background: radial-gradient(ellipse at 75% 106%, #23163c 0%, transparent 57%), linear-gradient(110deg, #1b142d, #100d1f 77%);
}
.hero-content { position: relative; z-index: 1; width: min(54%, 550px); padding: 27px 34px 30px; }
.hero h2 { font-size: clamp(2.2rem, 4.5vw, 3.38rem); font-weight: 720; letter-spacing: -.057em; line-height: 1.035; overflow-wrap: anywhere; }
.hero h2 span { color: #c5a6ff; }
.hero p { max-width: 385px; color: #c8bfd9; margin-top: 13px; font-size: .99rem; line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.hero .secondary { background: #241b35; border-color: #4b3a63; }
.hero .secondary:hover:not(:disabled) { background: #312243; border-color: #7b61a0; }
.hero-art {
  z-index: 0; position: absolute; inset: 0 0 0 43%;
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 93%, transparent);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.hero.compact-hero { min-height: 208px; }
.hero.compact-hero h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
.hero.compact-hero .hero-art img { object-fit: contain; object-position: center right 10%; }
.hero.compact-hero .hero-art { mask-image: linear-gradient(to right, transparent, #000 25%, #000 91%, transparent); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(245px, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.files-panel { min-height: 287px; transition: border-color .15s; }
.files-panel.dragging { border-color: var(--lavender); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 61px; padding: 10px 17px; border-bottom: 1px solid var(--border); }
.panel-heading h2, .detail-panel h2 { font-size: 1rem; font-weight: 670; letter-spacing: -.015em; }
.heading-with-count, .file-actions { display: flex; align-items: center; gap: 8px; }
.count { padding: 0 7px; min-width: 23px; line-height: 21px; border-radius: 6px; background: #262537; color: #c5c1d9; font-size: .75rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; margin: 16px; padding: 17px 12px;
  background: #11111c; border: 1px dashed #3d374f; border-radius: 11px;
  text-align: center; transition: background .15s, border-color .15s;
}
.dragging .drop-zone { background: #211934; border-color: #c1a1ff; }
.drop-icon {
  display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 11px;
  background: #251e3b; color: #c3a5fc; border: 1px solid #42345d; border-radius: 12px;
}
.drop-icon svg { width: 21px; height: 21px; }
.drop-zone strong, .peer-empty strong { font-size: .99rem; font-weight: 650; }
.drop-zone p, .peer-empty p { margin-top: 5px; color: var(--muted); font-size: .875rem; }

.details { display: grid; gap: 13px; }
.detail-panel { padding: 15px 16px; }
.detail-panel header { display: flex; align-items: center; gap: 9px; }
.detail-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: #29203c; color: #c7a8fc; border: 1px solid #3c2e54;
}
.detail-icon svg { width: 17px; height: 17px; }
.network-icon { background: #202238; border-color: #333754; color: #b4b9ff; }
.detail-panel p { color: var(--muted); font-size: .875rem; margin: 8px 0 5px; text-wrap: pretty; overflow-wrap: anywhere; }
.detail-link { margin-top: 5px; font-size: .875rem; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#unlock-detail { margin-top: 6px; }
.workspace-footer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 21px; color: var(--muted-soft); font-size: .8125rem; text-align: center;
}
.workspace-footer svg { width: 15px; height: 15px; color: #ab91d6; }

.search-field { display: flex; align-items: center; gap: 7px; max-width: 280px; margin: 12px 16px 8px; color: var(--muted-soft); }
.search-field input { width: 100%; border: 0; background: transparent; color: var(--text); font-size: .89rem; padding: 5px; border-radius: 4px; }
.search-field svg { width: 17px; height: 17px; }
.search-field input::placeholder { color: var(--muted-soft); }
.table-wrap { min-width: 0; padding: 0 10px 8px; }
.files-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.files-table th { color: var(--muted-soft); font-size: .75rem; line-height: 1.3; font-weight: 620; }
.files-table th:nth-child(2) { width: 82px; }
.files-table th:nth-child(3) { width: 96px; }
.files-table th:last-child { width: 81px; }
.files-table td, .files-table th { padding: 8px 7px; border-bottom: 1px solid #28283a; }
.files-table tr:last-child td { border-bottom: 0; }
.files-table td { color: var(--muted); font-size: .8125rem; }
.files-table tbody tr:hover { background: #191925; }
.filename-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.filename-cell > div { min-width: 0; }
.filename-cell strong { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.filename-cell small { display: block; color: var(--muted-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.file-glyph { width: 31px; height: 31px; border: 1px solid #39314d; border-radius: 8px; background: #252035; color: #c7aef6; }
.file-glyph svg { width: 17px; height: 17px; }
.cell-actions { display: flex; gap: 1px; justify-content: flex-end; }
.cell-actions .icon-button { min-width: 31px; height: 31px; }
.no-matches { color: var(--muted); font-size: .875rem; padding: 18px 8px; }
.job-row { padding: 10px 16px 0; }
.job-line { display: flex; justify-content: space-between; gap: 10px; color: #d1c1ed; font-size: .8125rem; }
.job-line > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
progress {
  width: 100%; height: 6px; border: 0; border-radius: 12px; appearance: none;
  background: #2d293f; color: var(--lavender); overflow: hidden;
}
progress::-webkit-progress-bar { background: #2d293f; }
progress::-webkit-progress-value { background: var(--lavender); }
progress::-moz-progress-bar { background: var(--lavender); }

.peer-panel { max-width: 910px; }
.peer-empty { display: grid; text-align: center; justify-items: center; padding: 48px 15px; }
.peer-row { display: flex; align-items: center; gap: 11px; padding: 16px; border-bottom: 1px solid var(--border); }
.peer-row:last-child { border-bottom: 0; }
.peer-main { min-width: 0; flex: 1; }
.peer-main strong { display: flex; align-items: center; gap: 8px; font-size: .94rem; }
.peer-main p { color: var(--muted); margin-top: 3px; font-size: .8375rem; overflow-wrap: anywhere; }
.peer-tag { color: #c5b8e2; background: #261f37; border-radius: 5px; padding: 2px 6px; font-size: .75rem; font-weight: 620; }
.peer-tag.online { color: var(--green); background: #1d302c; }
.peer-tag.error { color: var(--danger); background: #342332; }
.peer-transfer { margin-top: 7px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; font-size: .7875rem; }
.peer-controls { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.notice { display: flex; align-items: start; gap: 8px; padding: 12px; margin-bottom: 16px; border-radius: 9px; background: #382332; border: 1px solid #684153; color: #ffd3de; font-size: .875rem; }

dialog {
  width: min(490px, calc(100vw - 28px)); max-height: calc(100dvh - 26px); padding: 21px 23px 23px;
  color: var(--text); background: #191826; border: 1px solid #423756; border-radius: 17px;
  box-shadow: 0 24px 88px #0009; overscroll-behavior: contain;
}
dialog::backdrop { background: #06060dc4; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 12px; }
.dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #302343; border: 1px solid #493261; color: #d1b4ff; }
.dialog-close { margin: -3px -5px 0 0; }
dialog h2 { font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.2; }
dialog p { margin: 9px 0 0; color: var(--muted); font-size: .93rem; }
dialog label, dialog legend { color: #e6dff2; font-size: .875rem; font-weight: 630; }
dialog form { margin-top: 15px; }
.field { display: grid; gap: 5px; margin-top: 13px; }
.field:first-child { margin-top: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; border: 1px solid #40394f; border-radius: 8px; padding: 8px 10px;
  background: #11111b; color: var(--text); line-height: 1.45; font: inherit;
}
.field textarea { min-height: 66px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #918aa5; }
.field .code { font: .875rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.field-with-icon { position: relative; }
.field-with-icon input { padding-right: 42px; }
.field-with-icon .icon-button { position: absolute; top: 3px; right: 4px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dialog-actions.start { justify-content: flex-start; }
.dialog-actions .full { flex: auto; }
.form-error { color: var(--danger); font-size: .875rem; white-space: pre-line; }
.helper { color: var(--muted-soft); font-size: .8125rem; line-height: 1.5; }
.invite-hint { background: #241e33; border-radius: 9px; padding: 10px 12px; color: #d5c7e8; font-size: .875rem; margin: 12px 0 0; }
.invite-hint .text-button { margin-top: 3px; }
.separator { margin: 17px 0 13px; border: 0; border-top: 1px solid #352e45; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid #493a60; border-top-color: #d4baff; border-radius: 50%; animation: spin .75s linear infinite; }
.wait-line { display: flex; align-items: center; gap: 10px; }
@keyframes spin { to { transform: rotate(1turn); } }
.help-list { padding-left: 1.25rem; margin: 12px 0; color: var(--muted); font-size: .9375rem; }
.help-list li { padding-left: 2px; margin: 7px 0; }
.help-list strong { color: var(--text); }
.network-options { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.network-options label { display: flex; align-items: flex-start; gap: 8px; border: 1px solid #39334a; background: #151420; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.network-options label:has(:checked) { border-color: #6a5291; background: #231c34; }
.network-options input { accent-color: var(--lavender); margin-top: 4px; }
.network-options small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.relay-fields { margin-top: 13px; }
.pair-network {
  display: flex; align-items: center; gap: 9px; padding: 10px; margin-top: 14px;
  border: 1px solid #39334a; border-radius: 9px; background: #151420;
}
.pair-network div { flex: 1; min-width: 0; }
.pair-network strong { display: block; font-size: .875rem; }
.pair-network small { display: block; color: var(--muted); font-size: .8125rem; }
.pair-network button { font-size: .875rem; }

.invite-methods { margin-top: 16px; }
.invite-methods legend { margin-bottom: 7px; }
.invite-hint .text-button { display: block; }
.key-share-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.read-key-sharing { margin-top: 12px; }
.key-qr-panel {
  display: grid; justify-items: center; gap: 8px; padding: 14px; margin-top: 10px;
  text-align: center; background: #151420; border: 1px solid #423650; border-radius: 12px;
}
.key-qr-panel .invite-qr { width: min(100%, 220px); }
.key-qr-panel .helper { margin: 0; max-width: 32ch; }
.qr-key-choice {
  display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; cursor: pointer; text-align: left;
}
.qr-key-choice input { width: 1rem; height: 1rem; margin: .14rem 0 0; accent-color: var(--lavender); flex: none; }
.qr-key-choice small { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.short-invite {
  display: grid; grid-template-columns: minmax(112px, 150px) minmax(0, 1fr); align-items: center;
  gap: 18px; margin-top: 16px; padding: 14px; background: #151420;
  border: 1px solid #423650; border-radius: 12px;
}
.invite-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; background: white; image-rendering: pixelated; }
.short-invite-details { min-width: 0; }
.short-invite-details label { color: var(--muted); font-weight: 500; }
.short-code {
  display: block; width: 100%; padding: 0; margin: 3px 0 0; color: #e4d2ff; background: transparent;
  border: 0; font: 650 clamp(1.25rem, 3.7vw, 1.55rem)/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .025em;
}
.short-invite-details p { margin: 6px 0 12px; }
.short-invite-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.short-invite-footer p { font-size: .875rem; margin: 0; }
.short-invite-footer .spinner { width: 14px; height: 14px; }
.manual-qr { margin: 14px 0 0; text-align: center; }
.manual-qr canvas { width: min(100%, 400px); margin-inline: auto; }
.manual-qr .button { margin-top: 10px; }
@media (max-width: 390px) {
  .short-invite { grid-template-columns: minmax(96px, .82fr) minmax(0, 1fr); gap: 10px; padding: 10px; }
}

.toasts { position: fixed; z-index: 10; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: start; gap: 8px; min-height: 42px; padding: 10px 12px; border-radius: 9px; border: 1px solid #534469; background: #272036; color: #eee4ff; box-shadow: 0 4px 28px #0006; font-size: .8875rem; }
.toast svg { width: 17px; height: 17px; margin-top: 2px; color: #d7bfff; }
.toast.error { border-color: #694458; background: #352331; color: #ffd4df; }
.noscript { padding: 12px; background: #382332; }

@media (max-width: 1070px) {
  .layout { grid-template-columns: 193px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .topbar { padding-inline: 24px; }
  .content { padding-inline: 24px; }
  .hero-content { padding-inline: 25px; width: 56%; }
  .workspace-grid { grid-template-columns: minmax(0, 1.8fr) minmax(210px, 1fr); gap: 13px; }
}
@media (max-width: 860px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { width: 64%; }
  .hero-art { inset-inline-start: 34%; }
  .hero-art img { object-position: 66% center; }
}
@media (max-width: 680px) {
  .layout { display: block; }
  .sidebar {
    padding: 9px 14px; display: grid; grid-template-columns: 1fr auto; gap: 9px;
    height: auto; z-index: 4; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .brand { order: 0; margin: 0; align-self: center; font-size: 1.1rem; gap: 8px; }
  .brand img { width: 31px; height: 31px; }
  .nav-primary { order: 2; grid-column: 1 / -1; display: flex; margin: 0; gap: 6px; }
  .sidebar-label, .device-card { display: none; }
  .sidebar-bottom { order: 1; display: flex; gap: 4px; margin: 0; align-items: center; }
  .nav-item { width: auto; min-height: 36px; padding: 7px 9px; }
  .sidebar-bottom .nav-item span:nth-child(2) { display: none; }
  .nav-count { margin-left: 0; }
  .topbar { min-height: 45px; padding-inline: 15px; }
  .breadcrumbs { font-size: .8125rem; gap: 7px; }
  .connection-pill { min-height: 27px; font-size: .75rem; }
  .content { padding: 22px 14px 20px; }
  .page-heading { margin-bottom: 16px; flex-wrap: wrap; gap: 9px; }
  .hero { min-height: 246px; margin-bottom: 15px; }
  .hero.compact-hero { min-height: 188px; }
  .hero-content { padding: 19px 16px 20px; width: 95%; }
  .hero-content p { max-width: 260px; color: #e0d5f2; font-size: .9rem; }
  .hero.compact-hero .hero-art img { object-fit: cover; }
  .hero-art { inset-inline-start: 28%; opacity: .72; mask-image: linear-gradient(90deg, transparent 7%, #000 59%); }
  .hero.compact-hero .hero-art { mask-image: linear-gradient(90deg, transparent 7%, #000 59%); }
  .hero-actions { margin-top: 15px; gap: 6px; }
  .hero .button { padding: 7px 10px; min-height: 36px; }
  .panel-heading { padding: 10px 12px; min-height: 52px; }
  .drop-zone { margin: 12px; min-height: 159px; }
  .files-panel { min-height: 236px; }
  .detail-panel { padding: 12px; }
  .detail-panel header { gap: 7px; }
  .detail-icon { width: 28px; height: 28px; }
  .workspace-footer { margin-top: 16px; }
  .peer-row { flex-wrap: wrap; }
  .peer-controls { margin-left: auto; }
}
@media (max-width: 448px) {
  .details { grid-template-columns: 1fr; gap: 10px; }
  .folder-upload { padding: 6px; }
  .folder-upload .upload-text { display: none; }
  .files-table .date-cell { display: none; }
  .files-table th:nth-child(2) { width: 60px; }
  .files-table th:last-child { width: 69px; }
  .files-table td, .files-table th { padding-inline: 4px; }
  .cell-actions .icon-button { min-width: 29px; }
  dialog { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
