@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #111a2b;
  --panel: #26374b;
  --panel2: #2c3d53;
  --glass: rgba(38, 57, 76, 0.78);
  --card: rgba(255, 255, 255, 0.046);
  --line: rgba(184, 210, 231, 0.19);
  --text: #f2f6fd;
  --sub: #b1c2d4;
  --accent: #a9d8f6;
  --tint: rgba(152, 206, 231, 0.16);
  --danger: #ffb7bb;
  --shadow: 0 12px 40px #07111c22;
  font:
    15px/1.48 'Segoe UI Variable',
    'Segoe UI',
    system-ui,
    sans-serif;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #e7edf4;
  --panel: #f8fbff;
  --panel2: #edf4fa;
  --glass: rgba(247, 251, 255, 0.8);
  --card: rgba(255, 255, 255, 0.58);
  --line: rgba(49, 82, 113, 0.21);
  --text: #192c40;
  --sub: #455d74;
  --accent: #265d87;
  --tint: #d8e8f4;
  --danger: #982e3c;
  --shadow: 0 12px 40px #29496712;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #e7edf4;
    --panel: #f8fbff;
    --panel2: #edf4fa;
    --glass: rgba(247, 251, 255, 0.8);
    --card: rgba(255, 255, 255, 0.58);
    --line: rgba(49, 82, 113, 0.21);
    --text: #192c40;
    --sub: #455d74;
    --accent: #265d87;
    --tint: #d8e8f4;
    --danger: #982e3c;
    --shadow: 0 12px 40px #29496712;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 42% 25%, #78b4cb17, transparent 58%),
    radial-gradient(ellipse at 100% 90%, #8d7cbc23, transparent 56%);
  background-attachment: fixed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
  font-weight: 650;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.018em;
}
h3 {
  font-size: 1rem;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
.button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.85rem;
  color: var(--text);
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1.25;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--tint);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input:not([type='checkbox']),
select {
  min-width: 0;
}
select option {
  background: var(--panel);
  color: var(--text);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input {
  accent-color: #83b3db;
}
a {
  color: var(--accent);
}
.ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary {
  background: linear-gradient(112deg, #9ddbea, #aec0ff);
  color: #152a42;
  border-color: #c3d6ee;
  box-shadow: 0 4px 15px #101f3815;
  font-weight: 650;
}
.primary:hover {
  color: #0a1d32;
  background: linear-gradient(112deg, #bcecf7, #bdcaff);
}
.danger {
  color: var(--danger);
}
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 4px;
}
.wide {
  width: 100%;
}
.muted,
.intro,
small {
  color: var(--sub);
}
.loading {
  padding: 3rem;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 20;
  background: var(--panel);
  padding: 10px;
}
.skip:focus {
  top: 1rem;
}
.brand {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.74rem;
  line-height: 1.1;
}
.brand img {
  width: 32px;
  height: 38px;
}
.brand span {
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: 0.045em;
}
.brand small {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.45em;
  font-weight: 550;
  margin-top: 0.32rem;
  color: var(--sub);
}
.auth-layout {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: clamp(18px, 4vw, 60px);
  gap: clamp(24px, 6vw, 90px);
}
.auth-brand {
  isolation: isolate;
  position: relative;
  min-height: min(700px, 82svh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #b8d2e52d;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 85% 30%, #47738266, transparent 75%),
    linear-gradient(160deg, #203349, #263b4d 62%, #353b5c);
  color: #edf7ff;
  box-shadow: var(--shadow);
}
.auth-brand .brand small {
  color: #bacbd7;
}
.auth-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  transform: translate(8%, -2%);
}
.auth-art img {
  width: 110%;
  max-width: 610px;
}
.motto {
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  line-height: 1.07;
  font-weight: 570;
  letter-spacing: -0.045em;
}
.motto p:nth-child(2) {
  color: #cadbe8;
}
.motto p:nth-child(3) {
  color: #a7d6ef;
}
.auth-content {
  width: 100%;
  max-width: 432px;
  justify-self: center;
}
.auth-box {
  padding: 10px 0;
}
.auth-symbol,
.status-icon {
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tint);
  color: var(--accent);
}
.auth-box h1 {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
}
.intro {
  margin: 12px 0 26px;
}
.auth-form,
.field {
  display: grid;
  gap: 8px;
}
.auth-form {
  gap: 15px;
}
.field > span {
  font-size: 0.875rem;
  font-weight: 550;
}
.field > input:not([type='checkbox']),
.field > select,
.search input {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  width: 100%;
  background: var(--card);
}
input::placeholder {
  color: var(--sub);
  opacity: 0.85;
}
.form-status {
  font-size: 0.87rem;
  color: var(--danger);
  min-height: 0;
}
.form-status:empty {
  display: none;
}
.auth-form .primary {
  padding: 13px;
}
.auth-switch {
  margin: 20px 0;
  color: var(--sub);
  font-size: 0.9rem;
}
.auth-foot,
.foot-state {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--sub);
  font-size: 0.8rem;
}
.auth-foot {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.auth-foot .ico,
.foot-state .ico {
  width: 15px;
  height: 15px;
}
.shell {
  width: 100%;
  margin: auto;
  padding: clamp(14px, 2.15vw, 36px);
  display: grid;
  grid-template-columns: clamp(205px, 19.5vw, 280px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 54px);
  min-height: 100svh;
}
.sidebar {
  position: sticky;
  top: clamp(14px, 2.15vw, 36px);
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - clamp(28px, 4.3vw, 72px));
  padding: clamp(17px, 1.8vw, 29px) 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--card), transparent), var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.sidebar .brand {
  margin: 4px 11px 38px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-button {
  justify-content: flex-start;
  background: none;
  border: 1px solid transparent;
  color: var(--sub);
  min-height: 44px;
  padding: 0.67rem 0.8rem;
  gap: 0.72rem;
  text-align: left;
  width: 100%;
}
.nav-button.active {
  background: var(--tint);
  color: var(--text);
  border-color: var(--line);
  font-weight: 600;
}
.nav-button[aria-current='page'] .ico {
  color: var(--accent);
}
.storage-meter {
  margin: auto 10px 0;
  padding-top: 30px;
  font-size: 0.85rem;
}
.storage-meter strong {
  font-weight: 560;
}
.storage-meter progress,
.transfer progress {
  display: block;
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: var(--line);
  margin: 0.65rem 0;
}
.storage-meter progress::-webkit-progress-bar,
.transfer progress::-webkit-progress-bar {
  background: var(--line);
}
.storage-meter progress::-webkit-progress-value,
.transfer progress::-webkit-progress-value {
  background: linear-gradient(90deg, #94dbe6, #a8b8fc);
}
progress::-moz-progress-bar {
  background: #96c9ea;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.workspace header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin: 0 0 22px;
}
.page-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-title h1 {
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}
.subtitle {
  color: var(--sub);
  margin-top: 7px;
  font-size: 0.97rem;
}
.top-actions,
.tools,
.tool-right,
.crumbs,
.bulk,
.form-row,
.transfer-actions,
.actions,
.pager,
.modal-head,
.preview-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.top-actions {
  justify-content: flex-end;
}
.top-actions > .primary {
  min-height: 42px;
  padding: 10px 15px;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 0 12px;
  color: var(--sub);
  background: var(--card);
  max-width: 205px;
}
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 10px 0;
  color: var(--text);
}
.search:focus-within {
  outline: 2px solid var(--accent);
}
.tools {
  justify-content: space-between;
  margin-bottom: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tools button,
.tools select,
.tool-right select {
  font-size: 0.84rem;
}
.tool-right {
  margin-left: auto;
}
.view-toggle {
  display: flex;
  gap: 2px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 2px;
}
.view-toggle .icon-button {
  border: 0;
  width: 31px;
  height: 30px;
  background: transparent;
}
.view-toggle .icon-button[aria-pressed='true'] {
  background: var(--tint);
  color: var(--accent);
}
.crumbs {
  font-size: 0.86rem;
  color: var(--sub);
  margin-bottom: 14px;
}
.crumbs button {
  background: transparent;
  border: 0;
  padding: 2px;
  color: var(--accent);
  font-size: inherit;
}
.section-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 15px 0 11px;
}
.section-head span {
  font-size: 0.8rem;
  color: var(--sub);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(204px, 100%), 1fr));
  gap: 13px;
}
.card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--card), transparent), var(--glass);
  box-shadow: 0 4px 16px #0e162510;
  overflow: hidden;
}
.card.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.file-open {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: start;
  gap: 0;
  min-width: 0;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.file-open:hover {
  background: var(--card);
}
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2.4;
  border-radius: 9px;
  background: linear-gradient(135deg, #446579, #3e546c);
  color: #eaf1ff;
  overflow: hidden;
  width: 100%;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  font-weight: 650;
}
.thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}
.thumb .ico {
  width: 33px;
  height: 33px;
  stroke-width: 1.4;
}
.thumb.music {
  background: linear-gradient(120deg, #615780, #544e79);
}
.thumb.video {
  background: linear-gradient(120deg, #415e82, #4c6084);
}
.thumb.doc {
  background: linear-gradient(120deg, #48596d, #576278);
}
.card-meta {
  min-width: 0;
  display: block;
  padding: 9px 32px 0 2px;
}
.card-meta strong,
.card-meta small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta strong {
  font-weight: 570;
  font-size: 0.94rem;
}
.card-meta small {
  font-size: 0.8rem;
  margin-top: 3px;
}
.card-more {
  position: absolute;
  right: 9px;
  bottom: 15px;
}
.card-more .icon-button {
  width: 29px;
  height: 29px;
  background: transparent;
  border: 0;
}
.card-more .ico {
  stroke-width: 3;
}
.folder .file-open {
  align-items: center;
  flex-direction: row;
  padding: 19px 30px 19px 13px;
  gap: 11px;
}
.folder .card-meta {
  padding: 0;
}
.folder-glyph {
  display: inline-flex;
  color: #e3c47d;
}
.folder-glyph .ico {
  width: 38px;
  height: 33px;
  fill: currentColor;
  stroke-width: 1;
}
.folder .card-more {
  bottom: calc(50% - 15px);
  right: 3px;
}
.pick {
  position: absolute;
  z-index: 1;
  left: 11px;
  top: 11px;
  width: 22px;
  height: 22px;
  accent-color: #739bc6;
}
.selection-mode .file-open {
  padding-top: 35px;
}
.selection-mode .folder .file-open {
  padding-left: 40px;
  padding-top: 19px;
}
.list-view,
.compact-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-view .file-open,
.compact-view .file-open {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 45px 8px 10px;
}
.list-view .thumb,
.compact-view .thumb {
  width: 52px;
  height: 37px;
  aspect-ratio: auto;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.list-view .thumb .ico,
.compact-view .thumb .ico {
  width: 19px;
  height: 19px;
}
.list-view .card-meta,
.compact-view .card-meta {
  padding: 0;
}
.list-view .card-more,
.compact-view .card-more {
  bottom: calc(50% - 15px);
}
.compact-view .file-open {
  padding-block: 5px;
}
.compact-view .card-meta small {
  display: none;
}
.compact-view .thumb {
  height: 25px;
}
.selection-mode .list-view .file-open,
.selection-mode .compact-view .file-open {
  padding-left: 42px;
}
.bulk {
  padding: 10px 0;
}
.empty,
.settings-card,
.transfer-panel,
.error-box,
.overview-link {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
}
.empty {
  text-align: center;
  padding: clamp(28px, 6vw, 68px) 10px;
  color: var(--sub);
}
.empty h2,
.empty h3 {
  margin: 8px 0 5px;
  color: var(--text);
}
.empty > .ico {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.overview-link {
  justify-content: start;
  padding: 22px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  gap: 12px;
}
.overview-link .ico {
  color: var(--accent);
}
.settings-card {
  display: grid;
  gap: 15px;
  max-width: 650px;
}
.settings-card .field {
  max-width: 320px;
}
.pair {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.pair dt {
  color: var(--sub);
}
.pair dd {
  margin: 0;
  text-align: right;
}
.pager {
  justify-content: center;
  margin: 15px 0;
}
.workspace footer {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sub);
  font-size: 0.78rem;
}
.foot-state .dot {
  width: 8px;
  height: 8px;
  background: #95cbb1;
  border-radius: 50%;
}
.mobile-bar,
.nav-cover {
  display: none;
}
.drag-over {
  outline: 3px dashed var(--accent);
  outline-offset: -6px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(510px, calc(100% - 24px));
  max-height: 90svh;
  overflow: auto;
  box-shadow: 0 25px 100px #06101a78;
}
dialog:has(.preview) {
  width: min(830px, calc(100% - 24px));
}
dialog::backdrop {
  background: #07101b92;
  backdrop-filter: blur(5px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.modal-head {
  justify-content: space-between;
  flex-wrap: nowrap;
}
.modal-head h2 {
  overflow-wrap: anywhere;
}
.form-row {
  justify-content: flex-end;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pickers {
  display: grid;
  gap: 12px;
}
.pickers input {
  font-size: 0.85rem;
}
.actions button,
.actions a {
  flex-grow: 1;
}
.preview {
  display: grid;
  place-items: center;
  overflow: auto;
  background: #111b26;
  border-radius: 10px;
  min-height: 130px;
  max-height: 60svh;
}
.preview img,
.preview video {
  max-width: 100%;
  max-height: 60svh;
  object-fit: contain;
}
.preview img.zoom {
  max-width: none;
  max-height: none;
  justify-self: start;
}
.preview iframe {
  width: 100%;
  height: 52svh;
  border: 0;
  background: white;
}
.preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #f2f6fd;
  width: 100%;
  padding: 12px;
}
.preview audio {
  width: min(100%, 520px);
}
.preview-nav {
  justify-content: space-between;
}
.transfer-panel {
  margin-bottom: 18px;
}
.transfer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.transfer strong,
.transfer small {
  display: block;
  overflow-wrap: anywhere;
}
.transfer-actions button {
  font-size: 0.8rem;
}
.error-box {
  color: var(--danger);
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: min(550px, 92vw);
  width: max-content;
  opacity: 0;
  visibility: hidden;
  z-index: 30;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1750px) {
  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
@media (max-width: 1050px) {
  .workspace header {
    align-items: start;
    flex-wrap: wrap;
  }
  .top-actions {
    justify-content: start;
  }
  .shell {
    gap: 20px;
  }
  .tools {
    align-items: start;
  }
  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr));
  }
}
@media (max-width: 760px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 20px;
    gap: 20px;
  }
  .auth-brand {
    min-height: 150px;
    padding: 20px;
  }
  .auth-art {
    inset: -72% -6% -80% 47%;
    transform: none;
  }
  .auth-art img {
    width: 100%;
    height: 100%;
  }
  .motto {
    font-size: 1rem;
    display: flex;
    gap: 0.28em;
  }
  .auth-content {
    align-self: center;
    max-width: 480px;
  }
  .auth-box {
    padding: 0 3px 14px;
  }
  .auth-symbol {
    display: none;
  }
  .shell {
    display: block;
    padding: 12px 15px;
    min-height: 100svh;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .mobile-bar .brand {
    gap: 6px;
  }
  .mobile-bar .brand img {
    width: 21px;
    height: 27px;
  }
  .mobile-bar .brand span {
    font-size: 0.8rem;
  }
  .mobile-bar .brand small {
    font-size: 0.49rem;
  }
  .sidebar {
    display: none;
  }
  .shell.nav-open .sidebar {
    display: flex;
    position: fixed;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: min(280px, 82vw);
    min-height: 0;
    overflow: auto;
    z-index: 6;
    background: var(--panel);
  }
  .shell.nav-open .nav-cover {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: #07111d80;
    z-index: 5;
  }
  .workspace header {
    display: block;
    min-height: 0;
    margin-bottom: 15px;
  }
  .page-title h1 {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
  .top-actions {
    margin-top: 13px;
    justify-content: start;
    flex-wrap: nowrap;
  }
  .search {
    flex: 1;
    max-width: 100%;
  }
  .top-actions > .primary {
    min-height: 38px;
    padding: 8px 10px;
  }
  .tools,
  .tool-right {
    gap: 6px;
  }
  .tool-right {
    margin-left: 0;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .folder .file-open {
    padding: 12px 23px 12px 8px;
    gap: 6px;
  }
  .folder-glyph .ico {
    width: 28px;
  }
  .folder .card-meta strong {
    font-size: 0.86rem;
  }
  .card {
    border-radius: 12px;
  }
  .file-open {
    padding: 6px;
  }
  .card-meta {
    padding-right: 20px;
  }
  .card-more {
    right: 1px;
    bottom: 9px;
  }
  .card-meta strong {
    font-size: 0.88rem;
  }
  .thumb {
    aspect-ratio: 1.8;
  }
  .view-toggle .icon-button {
    width: 29px;
  }
  .overview-link {
    padding: 17px 10px;
    font-size: 0.9rem;
  }
  .workspace footer {
    padding-bottom: 8px;
  }
  .section-head {
    margin-top: 10px;
  }
}
@media (max-height: 650px) and (min-width: 761px) {
  .sidebar {
    position: static;
  }
  .sidebar .brand {
    margin-bottom: 18px;
  }
  .nav-button {
    min-height: 36px;
    padding: 7px;
  }
  .auth-layout {
    min-height: 100svh;
  }
  .auth-brand {
    min-height: 400px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button,
  .card {
    transition:
      background 0.14s,
      border-color 0.14s;
  }
  #toast {
    transition:
      opacity 0.15s,
      transform 0.15s;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .card,
  dialog {
    backdrop-filter: none;
    background: var(--panel);
  }
}
@media (min-width: 1051px) and (max-width: 1920px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.preview .muted {
  color: #c6d5e5;
  padding: 16px;
  text-align: center;
}
.preview video {
  width: 100%;
  height: auto;
}

/* Account appearance. Cards use native radio controls and stay operable in high contrast. */
.settings-card .appearance {
  display: grid;
  gap: 8px;
}
.appearance-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.appearance-option {
  display: grid;
  grid-template-columns: 19px 31px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.appearance-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.appearance-option:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.appearance-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.appearance-swatch {
  width: 31px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid #718398;
  box-shadow: inset 0 1px 1px #fff6;
}
.appearance-option[data-choice='dark'] .appearance-swatch { background: linear-gradient(135deg,#101a2b 45%,#425973); }
.appearance-option[data-choice='light'] .appearance-swatch { background: linear-gradient(135deg,#fff 45%,#bccbdc); }
.appearance-option[data-choice='auto'] .appearance-swatch { background: linear-gradient(115deg,#1d3043 50%,#ecf2f7 50%); }
.appearance-option[data-choice='fjord'] .appearance-swatch {
  background: linear-gradient(155deg,#effff523,#102d457d), url('/glass.svg#fjord-panorama') 60% center / cover, #193c48;
}
.appearance-option[data-choice='bridge'] .appearance-swatch {
  border-left: 5px solid #c39bda;
  border-top: 4px solid #efb791;
  border-radius: 10px 2px 3px 1px;
  background: repeating-radial-gradient(circle at 75% 55%,#281f30 0 4px,#ac8caa 5px,#281f30 6px 9px);
}
.appearance-option[data-choice='prism'] .appearance-swatch {
  background: linear-gradient(115deg,#a4e8e1,#eef6ff 46%,#c2addc 53%,#e0e5ff 75%,#9fb5f5);
}
.appearance-feedback { min-height: 1.4em; color: var(--sub); font-size: .9rem; }
.appearance-feedback:empty { display: none; }

/* Three palettes share file actions, dialogs and authenticated status components. */
:root[data-appearance='fjord'] {
  color-scheme: dark;
  --bg: #10232b; --panel: #203841; --panel2: #2a454d; --glass: #213940;
  --card: #ffffff0b; --line: #566d72; --text: #f2f8f6; --sub: #bfd0d0;
  --accent: #b7ecdb; --tint: #31534f; --danger: #ffc2c4; --shadow: 0 8px 25px #06151d2e;
  --button-face: #bde8d9; --button-ink: #14332d; --banner-text: #f5faf7;
  --banner-sub: #e3eeea; --field-surface: #233d44; --field-ink: #f2f8f5; --header-radius: 22px;
}
:root[data-appearance='bridge'] {
  color-scheme: dark;
  --bg: #100d15; --panel: #201926; --panel2: #291f32; --glass: #201a26;
  --card: #e7cdff0c; --line: #64536d; --text: #fff3e8; --sub: #d3c4d2;
  --accent: #efc399; --tint: #45344f; --danger: #ffb6b3; --shadow: none;
  --button-face: #f4bc98; --button-ink: #251724; --banner-text: #fff3e8;
  --banner-sub: #ecdae8; --field-surface: #30243c; --field-ink: #fff1e6; --header-radius: 38px 9px 9px 4px;
  --bridge-heading: 'Bahnschrift SemiCondensed', 'Aptos Narrow', 'Arial Narrow', system-ui, sans-serif;
}
:root[data-appearance='prism'] {
  color-scheme: light;
  --bg: #ecf0fa; --panel: #f8f7ff; --panel2: #f0eefb; --glass: #f7f7ff;
  --card: #ffffff95; --line: #a4afca; --text: #222945; --sub: #485675;
  --accent: #494a91; --tint: #e1e2fa; --danger: #8d293a; --shadow: 0 6px 20px #5e6f9d1c;
  --button-face: #525191; --button-ink: #fff; --banner-text: #222448;
  --banner-sub: #353c5a; --field-surface: #f6f7ff; --field-ink: #28314e; --header-radius: 29px;
}
:root:is([data-appearance='fjord'],[data-appearance='bridge'],[data-appearance='prism']) {
  & .workspace > header {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    gap: 18px;
    min-height: clamp(185px,17vw,265px);
    padding: clamp(22px,3vw,48px);
    border: 1px solid var(--line);
    border-radius: var(--header-radius);
    color: var(--banner-text);
  }
  & .workspace > header .subtitle { color: var(--banner-sub); }
  & .workspace > header .page-title,
  & .workspace > header .top-actions { position: relative; z-index: 1; }
  & .top-actions { justify-content: flex-start; margin: 0; }
  & .top-actions:empty { display: none; }
  & .page-title h1 { font-size: clamp(2.4rem,4.35vw,4.8rem); line-height: 1.03; }
  & .top-actions .search,
  & .top-actions .icon-button { background: var(--field-surface); color: var(--field-ink); }
  & .top-actions .search input { color: var(--field-ink); }
  & .top-actions .search input::placeholder { color: currentColor; opacity: .8; }
  & .primary {
    color: var(--button-ink);
    background: var(--button-face);
    border-color: var(--button-face);
  }
  & .primary:hover { color: var(--button-ink); background: var(--button-face); filter: brightness(1.05); }
  & .card :focus-visible { outline-offset: -3px; }
  & .transfer progress::-webkit-progress-value,
  & .storage-meter progress::-webkit-progress-value { background: var(--accent); }
  & progress::-moz-progress-bar { background: var(--accent); }
  & .preview .muted { color: #dce5ef; }
  & .modal-head h2, & .transfer-panel h2 { min-width: 0; }
  & .thumb.doc { background: linear-gradient(130deg,var(--panel2),var(--tint)); color: var(--text); }
}

/* Fjordglas: a photographic backdrop, clear navigation, and soft specular rims. */
:root[data-appearance='fjord'] {
  & body {
    background-image:
      linear-gradient(90deg, #112a35a8, #142c34 31%, #10242d 100%),
      url('/glass.svg#fjord-panorama');
    background-size: cover;
    background-position: 35% center;
  }
  & .sidebar, & .mobile-bar {
    background: linear-gradient(145deg,#dff9f11c,#183136a6),#18333b70;
    border-color: #bedcd34d;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
  }
  & .nav-button.active {
    background: linear-gradient(105deg,#ecfff02e,#bcebe519);
    border-color: #d5f3ed59;
    box-shadow: inset 0 1px #fff3;
  }
  & .workspace > header {
    background:
      linear-gradient(90deg,#0b202bbc 8%,#132e37a8 40%,#1e353710 80%),
      linear-gradient(0deg,#112b387c,transparent 65%),
      url('/glass.svg#fjord-panorama') 52% 54% / cover, #29444f;
    border-color: #aac7c668;
    box-shadow: inset 0 1px #ebfff44a, var(--shadow);
  }
  & .top-actions :is(.search,.primary,.icon-button) {
    border-radius: 99px;
    border: 1px solid #d5f2e89c;
    box-shadow: inset 0 1px #ffffffe0,inset 0 -1px #b3dbcd5e,0 4px 15px #071a2333;
    backdrop-filter: blur(7px) saturate(1.35);
    -webkit-backdrop-filter: blur(7px) saturate(1.35);
  }
  & .top-actions :is(.search,.icon-button) { background: linear-gradient(135deg,#29434cd9,#1e3749a8); }
  & .top-actions .primary { background: linear-gradient(135deg,#d5f6e8ed,#a8d7cde6); }
  & .card, & .overview-link { background: linear-gradient(135deg,#2c4750,#203740); }
  & .folder-glyph { color: #a6d9cd; }
  & .folder:nth-child(3n+2) .folder-glyph { color: #c1b4e4; }
  & .folder:nth-child(3n) .folder-glyph { color: #e9c09a; }
}

/* Orbital: rail-and-elbow navigation and a polar display echo the studio terminal. */
:root[data-appearance='bridge'] {
  & body { background: linear-gradient(110deg,#110d16,#0b0a10 70%,#18101f); }
  & .sidebar { background: #100c14; border: 0; border-radius: 0; box-shadow: none; }
  & .sidebar .brand { color: #ffe4cf; }
  & .sidebar nav { border-left: 8px solid #ac8ac5; padding-left: 4px; border-radius: 0 0 0 20px; }
  & .nav-button {
    --signal: #c6a9dc;
    border: 0;
    border-left: 6px solid var(--signal);
    border-radius: 0 24px 24px 0;
    background: #2c2234;
    color: #f0e2ee;
    font: 600 1rem/1.26 var(--bridge-heading);
    letter-spacing: .035em;
  }
  & .nav-button:nth-child(3n+1) { --signal: #f0ad90; }
  & .nav-button:nth-child(3n+2) { --signal: #edcc83; }
  & .nav-button:is(.active,:hover) { background: var(--signal); color: #231828; }
  & .nav-button.active .ico { color: currentColor; }
  & .workspace > header {
    border: 0;
    border-left: clamp(9px,1.3vw,22px) solid #d5b3e8;
    border-top: 7px solid #edb58f;
    background:
      linear-gradient(90deg,#17111e 9%,#17111ee8 38%,#20132b94 73%,#17102054),
      url('/glass.svg#orbital-panorama') center / cover, #17111e;
  }
  & .workspace > header::before {
    content: '';
    pointer-events: none;
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: min(41%,320px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #d9bce64d;
    background:
      linear-gradient(#d7b6e695,#d7b6e695) center / 100% 1px no-repeat,
      linear-gradient(#d7b6e66b,#d7b6e66b) center / 1px 100% no-repeat,
      radial-gradient(circle at 34% 39%,#ffcf96 0 2px,transparent 3px),
      radial-gradient(circle at 61% 65%,#efcfff 0 2px,transparent 4px),
      repeating-radial-gradient(circle,transparent 0 21px,#d8b8e77d 22px 23px,transparent 24px 39px);
  }
  & .page-title h1, & .section-head h2 {
    font-family: var(--bridge-heading); font-stretch: condensed; letter-spacing: .035em; text-transform: uppercase;
  }
  & .section-head { border-top: 3px solid #725f86; padding-top: 9px; }
  & .section-head h2 { color: #f1cfb1; font-size: 1.13rem; }
  & .top-actions .primary, & .top-actions .search { border-radius: 30px 6px 6px 30px; }
  & .tools { border-top: 0; padding-top: 0; }
  & .card, & .overview-link { border-radius: 3px 18px 5px 5px; background: #201925; box-shadow: none; }
  & .card.folder, & .overview-link { border-left: 7px solid #c6a8dc; }
  & .card.folder:nth-child(3n+2), & .overview-link:nth-child(even) { border-left-color: #edb38c; }
  & .card.folder:nth-child(3n) { border-left-color: #e3c67d; }
  & .folder-glyph { color: #e4c8ee; }
  & :is(.settings-card,.transfer-panel,.empty) { border-radius: 16px 3px 3px 3px; border-top: 3px solid #a48ab8; }
  & .storage-meter { margin-top: auto; border-bottom: 5px solid #c4a4dc; padding-bottom: 12px; }
  & .thumb { border-radius: 3px 11px 3px 3px; }
  & :focus-visible { outline-color: #ffe098; }
}

/* Prisma: an iridescent light shell, an optical ring, and a desktop navigation dock. */
:root[data-appearance='prism'] {
  & body {
    background-image:
      radial-gradient(ellipse at 9% 12%,#b1e6e482,transparent 56%),
      radial-gradient(ellipse at 92% 18%,#dec8f7ad,transparent 48%),
      linear-gradient(158deg,#eff5fe,#ece8f7 65%,#edf6ff);
  }
  & .sidebar, & .mobile-bar {
    border: 1px solid #fffffff0;
    background: linear-gradient(120deg,#ffffffbd,#ffffff66,#cfdeff80);
    box-shadow: inset 0 -1px 2px #8597ba4d,0 6px 18px #4656861f;
    backdrop-filter: blur(16px) saturate(1.45);
    -webkit-backdrop-filter: blur(16px) saturate(1.45);
  }
  & .nav-button.active { border-radius: 22px; background: #ffffffbc; color: #38346f; box-shadow: inset 0 1px white,0 2px 6px #34468522; }
  & .workspace > header {
    background:
      linear-gradient(118deg,#e7f4ffe8 4%,#e9edf8da 36%,#bfbce073 64%,#9fb5fb69),
      url('/glass.svg#prism-panorama') center / cover, #b5c6e8;
    border-color: #fff;
    box-shadow: inset 0 -3px 4px #a5a4ce35,0 10px 32px #6a6eaa27;
  }
  & .workspace > header::before {
    content: '';
    position: absolute;
    pointer-events: none;
    width: 53%; height: 220%;
    right: -16%; top: -60%;
    border: clamp(20px,3.8vw,60px) solid #dfeeff4d;
    border-radius: 47% 54% 46% 52%;
    transform: rotate(-31deg);
    box-shadow: inset 3px 0 4px white,-3px -1px 2px white,7px 1px 11px #7bbff3aa,-10px -2px 14px #f9c8ff;
    backdrop-filter: blur(2px) saturate(1.8);
    -webkit-backdrop-filter: blur(2px) saturate(1.8);
  }
  & .page-title h1 { font-weight: 560; }
  & .top-actions :is(.primary,.icon-button,.search) { border-radius: 99px; }
  & .top-actions :is(.search,.icon-button) { background: #fcfdffce; border-color: #fff; backdrop-filter: blur(8px); }
  & .top-actions .primary { box-shadow: inset 0 1px #ffffff80,0 4px 11px #413d8540; background: linear-gradient(120deg,#565398,#55519ceb); }
  & .card, & .overview-link, & .settings-card {
    background: linear-gradient(125deg,#ffffffe0,#f6f7ffcf);
    border-color: #fff;
    box-shadow: inset 0 0 2px white,0 5px 16px #5d79a91c;
  }
  & .folder-glyph { color: #76659c; }
}
@media (min-width: 1280px) {
  :root[data-appearance='prism'] {
    & .shell { display: flex; flex-direction: column; gap: 22px; }
    & .sidebar {
      position: static;
      align-self: stretch;
      display: grid;
      grid-template-columns: max-content minmax(0,1fr);
      align-items: center;
      gap: 7px 18px;
      min-height: 0;
      border-radius: 30px;
      padding: 14px 22px;
    }
    & .sidebar .brand { margin: 0; grid-row: span 2; }
    & .sidebar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
    & .sidebar .nav-button { width: auto; padding: 8px 9px; min-height: 40px; }
    & .storage-meter { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; margin: 0; padding: 0; }
    & .storage-meter progress { width: 76px; margin: 0; }
    & .workspace { flex: 1; }
  }
}
@media (max-width: 760px) {
  :root:is([data-appearance='fjord'],[data-appearance='bridge'],[data-appearance='prism']) {
    & .shell {
      padding: max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    }
    & .mobile-bar { min-height: 52px; border-radius: 16px; padding: 3px 8px; margin-bottom: 12px; }
    & .workspace > header { min-height: 171px; gap: 13px; padding: clamp(15px,4vw,27px); }
    & .page-title h1 { font-size: clamp(1.9rem,8vw,3rem); }
    & .page-title .subtitle { line-height: 1.35; }
    & .top-actions { flex-wrap: wrap; gap: 6px; }
    & .search { flex: 1 1 115px; min-width: 0; max-width: 24rem; align-self: stretch; }
    & .search input, & dialog input:not([type='checkbox']), & select { font-size: 16px; }
    & .tools select { max-width: 100%; font-size: 1rem; }
    & .tools button, & .tool-right select, & .crumbs button, & .bulk button,
    & .transfer-actions button, & dialog button, & dialog a.button, & .settings-card button,
    & .top-actions > .primary { min-height: 44px; }
    & .icon-button, & .view-toggle .icon-button, & .card-more .icon-button { width: 44px; height: 44px; }
    & .card-more { bottom: 1px; right: 1px; }
    & .card-meta { padding-right: 35px; }
    & .folder .file-open { padding: 13px 44px 13px 8px; }
    & .folder .card-meta { padding: 0; }
    & .card.folder .card-more, & .list-view .card-more, & .compact-view .card-more { bottom: calc(50% - 22px); }
    & .list-view .file-open, & .compact-view .file-open { min-height: 48px; padding-right: 49px; }
    & .pick { width: 25px; height: 25px; }
    & .list-view .card-meta, & .compact-view .card-meta { padding-right: 0; }
    & .selection-mode .folder .file-open { padding-left: 43px; }
    & .tools .actions { justify-content: flex-start; }
    & .tool-right { width: 100%; min-width: 0; }
    & .shell.nav-open .sidebar { top: max(8px,env(safe-area-inset-top)); bottom: max(8px,env(safe-area-inset-bottom)); }
    & .workspace footer { flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
    & dialog { padding: 15px; max-height: 88dvh; }
    & .settings-card { padding: 16px; }
    & .appearance-options { grid-template-columns: repeat(auto-fit,minmax(min(123px,100%),1fr)); }
    & .appearance-option { gap: 5px; padding: 7px; grid-template-columns: 16px 25px minmax(0,1fr); }
    & .appearance-option input { width: 16px; height: 16px; }
    & .appearance-swatch { width: 25px; height: 22px; }
  }
  :root[data-appearance='fjord'] .workspace > header {
    background:
      linear-gradient(90deg,#0b2433dc,#15323e9c 65%,#172f3866),
      url('/glass.svg#fjord-panorama') 52% 54% / cover no-repeat, #29444f;
  }
  :root[data-appearance='fjord'] body { background: linear-gradient(150deg,#18333c,#10232b 58%); }
  :root[data-appearance='bridge'] .mobile-bar { border-bottom: 4px solid #c8a9da; border-radius: 0 0 0 15px; background: #1c1521; }
  :root[data-appearance='bridge'] .workspace > header::before { opacity: .48; }
  :root[data-appearance='prism'] .workspace > header::before { right: -31%; opacity: .8; }
}
@media (min-width: 370px) and (max-width: 760px) {
  :root:is([data-appearance='fjord'],[data-appearance='bridge'],[data-appearance='prism']) .tool-right {
    display: grid;
    grid-template-columns: minmax(102px,1fr) minmax(0,1.04fr) auto;
    gap: 5px;
    & select { width: 100%; padding-inline: 5px; }
  }
}
@media (min-width: 761px) and (max-width: 950px) and (max-height: 520px) {
  :root[data-appearance='fjord'] body { background: linear-gradient(120deg,#1d3941,#10232b 65%); }
  :root:is([data-appearance='fjord'],[data-appearance='bridge'],[data-appearance='prism']) {
    & .workspace > header { min-height: 135px; padding: 14px 20px; gap: 10px; }
    & .nav-button, & .crumbs button, & .tools :is(button,select), & .top-actions .primary,
    & dialog :is(button,a.button), & .transfer-actions button { min-height: 44px; }
    & .icon-button, & .view-toggle .icon-button, & .card-more .icon-button { width: 44px; height: 44px; }
    & .card-more { right: 1px; bottom: 1px; }
    & .card-meta { padding-right: 36px; }
    & .folder .file-open { padding-right: 46px; }
    & .folder .card-meta, & .list-view .card-meta, & .compact-view .card-meta { padding-right: 0; }
    & .card.folder .card-more, & .list-view .card-more, & .compact-view .card-more { bottom: calc(50% - 22px); }
    & .list-view .file-open, & .compact-view .file-open { min-height: 48px; padding-right: 48px; }
  }
}
@media (max-width: 420px) {
  :root:is([data-appearance='fjord'],[data-appearance='bridge'],[data-appearance='prism']) {
    & .card.folder { grid-column: 1 / -1; }
    & .tools .tool-right { row-gap: 8px; }
  }
}
@media (prefers-reduced-transparency: no-preference) {
  @supports (backdrop-filter: url('#molesto-glass-rim')) {
    :root:is([data-appearance='fjord'],[data-appearance='prism']) .top-actions .primary.liquid-optic {
      backdrop-filter: url('#molesto-glass-rim') saturate(1.45) blur(1.1px);
    }
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root:is([data-appearance='fjord'],[data-appearance='prism']) {
    & .sidebar, & .mobile-bar, & .card, & dialog { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
    & .workspace > header { background: var(--panel); color: var(--text); }
    & .workspace > header .subtitle { color: var(--sub); }
    & .workspace > header::before { display: none; }
    & .top-actions :is(.search,.icon-button,.primary,.primary.liquid-optic) { backdrop-filter: none; -webkit-backdrop-filter: none; }
    & .top-actions :is(.search,.icon-button) { background: var(--field-surface); }
    & .top-actions .primary { background: var(--button-face); }
  }
}
@media (forced-colors: active) {
  .appearance-option:has(input:checked), .nav-button[aria-current='page'] { outline: 2px solid Highlight; }
  .appearance-swatch { border-color: ButtonText; }
}




.appearance-option[data-choice='watchvi-molesto'] .appearance-swatch {
  background: linear-gradient(145deg, #12131c 42%, #61bdac 43%, #538bf6 67%, #7662f5);
}

html[data-appearance='watchvi-molesto'] {
  color-scheme: dark;
  --bg: #0b0c12;
  --panel: #12131c;
  --panel2: #1b1c28;
  --glass: var(--panel);
  --card: #181923;
  --line: #262838;
  --text: #eceef3;
  --sub: #a4a8b7;
  --accent: #aa97ff;
  --tint: #252433;
  --danger: #fa7871;
  --shadow: 0 8px 24px #0002;
  --wvi-field: #0e0f16;
  --wvi-border: #383b4c;
  --wvi-lime: #a6d248;
  --wvi-heading: 'WatchVI Inter Tight', 'WatchVI Inter', 'Segoe UI', sans-serif;
  --wvi-cta: linear-gradient(100deg, #00a997, #267dd9 49%, #7559f5);
  font-family: 'WatchVI Inter', 'Segoe UI', sans-serif;
  font-size: 16px;

  & body { background: var(--bg); -webkit-font-smoothing: antialiased; }
  & :is(h1,h2,h3,.card-meta strong) { font-family: var(--wvi-heading); }
  & :is(h2,h3) { font-weight: 720; }
  & .shell {
    grid-template-columns: clamp(204px, 17.4vw, 274px) minmax(0,1fr);
    padding: clamp(14px,1.65vw,26px) clamp(14px,2.15vw,36px);
    gap: clamp(20px,2.45vw,44px);
  }
  & .sidebar {
    top: clamp(14px,1.65vw,26px);
    min-height: 0;
    height: calc(100dvh - 2 * clamp(14px,1.65vw,26px));
    padding: clamp(15px,1.45vw,24px) 13px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: var(--panel);
    border-radius: 21px;
    backdrop-filter: none;
    box-shadow: none;
  }
  & .sidebar .brand { margin: 0 7px 25px; padding-block: 7px; }
  & .brand { gap: 8px; white-space: nowrap; color: var(--text); text-transform: none; }
  & .brand img { width: 25px; height: 29px; }
  & .brand > span {
    display: block;
    font-size: 21px;
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1.1;
  }
  & .brand small {
    display: inline-block;
    margin: 0 0 0 .16em;
    font: inherit;
    font-weight: 460;
    letter-spacing: inherit;
    color: #d592f0;
    background: linear-gradient(90deg,#a26dff,#f0519c 62%,#fa8356);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  & .sidebar nav { gap: 4px; }
  & .nav-button {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 999px;
    color: #babccb;
    font-weight: 540;
    font-size: .91rem;
  }
  & .nav-button:is(.active,[aria-current='page']) {
    color: var(--text); background: #24222e; border-color: #393544;
  }
  & .nav-button[aria-current='page'] .ico { color: #c7baff; }
  & .storage-meter {
    margin: auto 0 0;
    padding: 16px 8px 2px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
  }
  & .storage-meter strong { font-weight: 650; }
  & .storage-meter small { font-size: .8rem; }
  & .storage-meter .wvi-storage-meter { height: 8px; margin-block: 9px 5px; }
  & .wvi-usage-card {
    display: grid;
    gap: 12px;
    padding: clamp(16px,2.4vw,27px);
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel);
  }
  & .wvi-usage-head, & .wvi-transfer-progress {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }
  & .wvi-value { font-family: var(--wvi-heading); font-weight: 780; font-variant-numeric: tabular-nums; }
  & .wvi-usage-head .wvi-value { font-size: clamp(1.7rem,3.8vw,3rem); line-height: 1; letter-spacing: -.05em; }
  & .wvi-usage-card .muted { font-size: .85rem; }
  & .overview + .wvi-usage-card { margin-top: 16px; }
  & .wvi-transfer-progress { margin: 8px 0; align-items: center; }
  & .wvi-transfer-progress .wvi-value { min-width: 4ch; }
  & .wvi-transfer-progress .wvi-transfer-meter { flex: 1; }
  & .workspace { min-width: 0; }
  & .workspace header { margin: 2px 0 clamp(16px,2vw,28px); }
  & .page-title h1 {
    font: 770 clamp(2.2rem,4.2vw,4.2rem)/1.07 var(--wvi-heading);
    letter-spacing: -.048em;
  }
  & .subtitle { color: #bdc0cf; font-size: clamp(.94rem,1.16vw,1.13rem); }
  & .top-actions { gap: 8px; }
  & .search, & .field :is(input:not([type='checkbox']),select), & select {
    background-color: var(--wvi-field); border-color: var(--wvi-border);
  }
  & select {
    appearance: none;
    padding-right: 28px;
    background-image:
      linear-gradient(45deg,transparent 50%,#a8adba 50%),
      linear-gradient(135deg,#a8adba 50%,transparent 50%);
    background-size: 4px 4px;
    background-position: calc(100% - 14px) 52%,calc(100% - 10px) 52%;
    background-repeat: no-repeat;
  }
  & .search { min-width: 0; max-width: 250px; min-height: 43px; }
  & .search input { min-width: 0; background: transparent; padding: 9px 0; }
  & input { accent-color: var(--accent); }
  & :is(button,.button,select) { border-radius: 999px; }
  & :is(button,.button):focus-visible { outline-offset: -2px; }
  & .primary, & .primary:hover {
    color: #fff;
    border: 1px solid #56a4c34d;
    background: var(--wvi-cta);
    box-shadow: inset 0 0 0 1px #ffffff18,0 3px 14px #2f8cff42;
    text-shadow: 0 1px 2px #12273b99;
  }
  & .top-actions > .primary { min-height: 43px; padding-inline: 16px; }
  & .tools > .actions > button:first-child:not([aria-pressed]) {
    --wvi-hover-glow: #ed487648;
    border: 2px solid transparent;
    background: linear-gradient(#101015,#101015) padding-box,
      linear-gradient(90deg,#7a5cff,#ff2e7e 55%,#ff8a3d) border-box;
  }
  & :is(.top-actions > .primary,.tools > .actions > button:first-child:not([aria-pressed])) .ico {
    width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #202136; background: #f1f1f6; stroke-width: 2;
  }
  & :is(.top-actions > .primary,.tools > .actions > button:first-child:not([aria-pressed])):focus-visible {
    box-shadow: 0 4px 17px var(--wvi-hover-glow,#629bfa70);
  }
  & .top-actions > .icon-button { color: #d6cbff; background: #262038; border-color: #443859; }
  & .tools { row-gap: 9px; padding-block: 10px 0; margin-bottom: 12px; }
  & .tools [aria-pressed='true'] { border-color: #4a415f; background: #282536; color: #e4dfff; }
  & .view-toggle { background: var(--wvi-field); border-radius: 999px; }
  & .section-head { margin: 19px 0 10px; }
  & .section-head h2 { font-size: clamp(1.13rem,1.5vw,1.38rem); }
  & .content { min-width: 0; }
  & :is(.empty,.settings-card,.transfer-panel,.error-box,.overview-link,.card,dialog) {
    background: var(--panel); border-color: var(--line); border-radius: 15px;
  }
  & .settings-card { max-width: 760px; }
  & .appearance-option { background: var(--wvi-field); }
  & .appearance-option:has(input:checked) { color: #e4dfff; border-color: var(--accent); background: var(--tint); }
  & .preview { background: var(--wvi-field); }
  & dialog { box-shadow: 0 18px 70px #000a; }
  & dialog::backdrop { background: #05050acf; backdrop-filter: none; }
  & .transfer-panel .transfer { padding: 14px 0 2px; }
  & .transfer-actions { gap: 6px; margin-top: 8px; }
  & .workspace footer { flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
  & .foot-state .ico { color: #90bda2; }

  & .wvm-folders {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(204px,100%),1fr));
    gap: 10px;
  }
  & .wvm-folder-card { border-radius: 13px; box-shadow: 0 4px 17px #0002; }
  & .wvm-folder-card .file-open {
    display: grid;
    grid-template-columns: 35px minmax(0,1fr);
    gap: 8px 10px;
    align-items: center;
    align-content: start;
    height: 100%;
    padding: 12px;
    border-radius: inherit;
  }
  & .wvm-folder-card .card-meta { padding: 0; margin-right: 26px; }
  & .wvm-folder-card .card-meta strong { font-weight: 720; font-size: 1rem; letter-spacing: -.024em; }
  & .wvm-folder-card .card-meta small { margin-top: 2px; font-size: .78rem; }
  & .folder-glyph {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(140deg,#8b5fe0,#7548ac 51%,#513775);
    color: white;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px #ffffff20;
  }
  & .wvm-folder-card:nth-child(3n + 2) .folder-glyph { background: linear-gradient(140deg,#cc516f,#9e355f 52%,#6e3763); }
  & .wvm-folder-card:nth-child(3n) .folder-glyph { background: linear-gradient(140deg,#57889a,#426c94 52%,#414879); }
  & .folder-glyph .ico { width: 21px; height: 21px; stroke-width: 1.8; fill: none; }
  & .wvm-folder-card .card-more { inset: 5px 3px auto auto; }
  & .wvi-folder-badges, & .wvm-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; }
  & .wvi-folder-badges { grid-column: 1 / -1; }
  & .wvi-badge {
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 25px;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: #e8e9ef;
    background: #ffffff05;
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
  }
  & .wvi-badge .ico { width: 16px; height: 16px; stroke-width: 1.9; }
  & .wvi-badge.green { color: var(--wvi-lime); background: #a6d24808; }
  & .wvi-badge.red { color: var(--danger); background: #fa787108; }
  & .selection-mode .wvm-folder-card .file-open { padding-left: 38px; }

  & .wvm-file-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
    font-size: .875rem;
    line-height: 1.25;
  }
  & .wvm-file-table :is(th,td) { padding: 0 12px; text-align: left; vertical-align: middle; }
  & .wvm-file-table th { height: 35px; background: var(--panel2); color: #c4c6d3; font-size: .8rem; font-weight: 650; }
  & .wvm-file-table td { height: 47px; border-top: 1px solid var(--line); }
  & .wvm-file-table tr:focus-within td { background: #1e202d; }
  & .wvm-file-table tr.selected td { background: #272432; }
  & .wvm-file-table .wvm-type { width: clamp(9.6rem,19.5%,14rem); }
  & .wvm-file-table .wvm-size { width: 8.3rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  & .wvm-file-table .wvm-date { width: 8.4rem; white-space: nowrap; }
  & .wvm-file-table td:is(.wvm-type,.wvm-date) { color: #b7bac9; }
  & .wvm-file-table .wvm-actions { width: 4.3rem; text-align: center; padding-inline: 3px; }
  & .wvm-file-table td.wvm-name { padding: 0 4px; position: relative; }
  & .wvm-file-table .file-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text);
  }
  & .wvm-file-table .file-open:hover { background: transparent; }
  & .wvm-file-table .wvm-actions .icon-button {
    width: 42px; height: 42px; color: #afb2c4; border: 0; background: transparent;
  }
  & .wvm-file-symbol { display: inline-flex; flex: none; color: #b7b9cd; }
  & .wvm-file-symbol .ico { width: 19px; height: 19px; }
  & .wvm-file-symbol[data-tint='image'] { color: #60d4b8; }
  & .wvm-file-symbol[data-tint='document'] { color: #84adff; }
  & .wvm-file-symbol[data-tint='pdf'] { color: #f2a0a9; }
  & .wvm-file-symbol[data-tint='audio'] { color: #bd9cf9; }
  & .wvm-file-symbol[data-tint='video'] { color: #ed9dcc; }
  & .wvm-file-symbol[data-tint='archive'] { color: #e8ba74; }
  & .wvm-name-block { display: block; min-width: 0; }
  & .wvm-file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 610; }
  & .file-open:focus-visible .wvm-file-name { white-space: normal; overflow-wrap: anywhere; }
  & .wvm-bytes { display: block; }
  & .wvm-file-table .wvi-file-meter { width: min(100%,7.25rem); height: 4px; margin: 4px 0 0 auto; }
  & :is(.wvm-mobile-meta,.wvm-mobile-date) { display: none; }
  & .wvm-file-table .pick { top: 50%; left: 7px; transform: translateY(-50%); margin: 0; }
  & .selection-mode .wvm-name .file-open { padding-left: 35px; }
}

@media (hover: hover) {
  html[data-appearance='watchvi-molesto'] {
    & .primary:not(:disabled):hover { filter: brightness(1.09); }
    & :is(.top-actions > .primary,.tools > .actions > button:first-child:not([aria-pressed])):hover {
      box-shadow: 0 4px 17px var(--wvi-hover-glow,#629bfa70);
    }
    & .wvm-folder-card:hover { border-color: #48445d; background: #181823; }
    & .wvm-file-table tr:not(.selected):hover td { background: #1b1d29; }
    & .wvm-actions .icon-button:hover { color: white; background: var(--tint); }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-appearance='watchvi-molesto'] :is(.top-actions > .primary,.tools > .actions > button:first-child:not([aria-pressed])) {
    transition: box-shadow .15s,transform .15s;
    &:hover:not(:active) { transform: translateY(-2px); }
  }
}

@media (max-width: 900px) {
  html[data-appearance='watchvi-molesto'] {
    & .shell {
      display: block;
      padding: max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    }
    & .sidebar { display: none; }
    & .shell.nav-open .sidebar {
      display: flex; position: fixed; z-index: 6;
      inset: max(8px,env(safe-area-inset-top)) auto max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
      width: min(290px,86vw); height: auto;
    }
    & .shell.nav-open .nav-cover {
      display: block; position: fixed; inset: 0; border: 0; border-radius: 0; background: #05050ab8; z-index: 5;
    }
    & .mobile-bar {
      display: flex; align-items: center; justify-content: space-between;
      min-height: 50px; margin: 0 0 16px; padding: 0 0 7px; border-bottom: 1px solid var(--line);
    }
    & .mobile-bar .brand > span { font-size: 19px; }
    & .mobile-bar .brand img { width: 22px; height: 26px; }
    & .workspace header { display: block; min-height: 0; margin: 0 0 16px; }
    & .page-title h1 { font-size: clamp(2.15rem,6.8vw,3.3rem); }
    & .top-actions { flex-wrap: nowrap; justify-content: start; margin-top: 12px; }
    & .search { flex: 1 1 0; max-width: 24rem; min-height: 44px; }
    & :is(.search input,dialog input:not([type='checkbox']),select) { font-size: 16px; }
    & .tools .actions, & .tool-right { min-width: 0; gap: 5px; }
    & :is(.tools,.transfer-actions,.settings-card,.crumbs,dialog) button,
    & .tool-right select, & dialog a.button, & .top-actions > .primary, & .nav-button { min-height: 44px; }
    & .icon-button, & .wvm-file-table .wvm-actions .icon-button, & .card-more .icon-button { width: 44px; height: 44px; }
    & .wvm-folder-card .card-more { top: 0; right: 0; }
    & .wvm-folder-card .card-meta { margin-right: 32px; }
    & .settings-card, & dialog, & .transfer-panel { padding: 15px; }
    & .appearance-options { grid-template-columns: repeat(auto-fit,minmax(min(125px,100%),1fr)); }
    & .appearance-option { padding: 6px; gap: 5px; grid-template-columns: 17px 23px minmax(0,1fr); }
    & .appearance-swatch { width: 23px; }
  }
}

/* Preserve the name, size and actions while moving the other metadata into those cells. */
@media (max-width: 780px), (min-width: 901px) and (max-width: 1060px) {
  html[data-appearance='watchvi-molesto'] .wvm-file-table {
    & :is(.wvm-type,.wvm-date) { display: none; }
    & :is(th,td) { padding-inline: 8px; }
    & .wvm-size { width: 8rem; font-size: .8125rem; }
    & .wvm-actions { width: 3.2rem; padding: 0; }
    & th.wvm-actions { font-size: 0; }
    & th.wvm-actions::after { content: '…' / ''; font-size: 1.1rem; }
    & .file-open {
      display: grid;
      grid-template-columns: 17px minmax(0,1fr);
      grid-template-areas: 'icon name' 'meta meta';
      gap: 3px 7px;
      padding: 5px 4px;
    }
    & .wvm-file-symbol { grid-area: icon; }
    & .wvm-file-symbol .ico { width: 17px; height: 17px; }
    & .wvm-name-block { display: contents; }
    & .wvm-file-name { grid-area: name; }
    & .wvm-mobile-meta { display: flex; grid-area: meta; }
    & .wvm-mobile-date { display: block; margin-top: 3px; font-size: .75rem; color: #b7bac9; }
  }
}

@media (max-width: 550px) {
  html[data-appearance='watchvi-molesto'] {
    & .tools { align-items: start; }
    & .tool-right { flex-wrap: wrap; width: 100%; margin: 0; }
    & .tool-right select { min-width: 0; max-width: 100%; padding-inline: 10px 26px; }
    & .view-toggle .icon-button { width: 40px; }
    & .wvm-folders {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: minmax(179px,55%);
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
      padding-bottom: 4px;
    }
    & .wvm-folder-card { scroll-snap-align: start; }
    & .wvm-folder-card .file-open { grid-template-columns: 30px minmax(0,1fr); gap: 7px; padding-left: 10px; }
    & .wvm-folder-card .card-meta strong { font-size: .94rem; }
    & .folder-glyph { width: 30px; height: 30px; }
    & .folder-glyph .ico { width: 17px; height: 17px; }
    & .selection-mode .wvm-folder-card .file-open { padding-left: 38px; }
  }
}
@media (max-width: 390px) {
  html[data-appearance='watchvi-molesto'] .wvm-file-table {
    & .wvm-size { width: 7.35rem; padding-inline: 1px 5px; }
    & .wvm-actions { width: 44px; }
    & td.wvm-name { padding-inline: 2px; }
    & .wvi-badge { gap: 2px; padding-inline: 4px; }
    & .wvm-badges { gap: 2px; }
  }
}
@media (forced-colors: active) {
  html[data-appearance='watchvi-molesto'] {
    & .brand small { -webkit-text-fill-color: currentColor; }
    & .folder-glyph, & .primary { border: 1px solid ButtonText; }
    & .wvm-file-table tr.selected { outline: 2px solid Highlight; outline-offset: -2px; }
  }
}

/* The public entrance uses the Molesto diamond and the same spectrum as the file rails. */
html[data-appearance='watchvi-molesto'] .auth-layout {
  display: grid;
  grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(24px,4vw,86px);
  width: 100%;
  max-width: none;
  padding: clamp(14px,2.4vw,48px);
  min-height: 100svh;
  background: radial-gradient(ellipse at 86% 36%,#211b352b,transparent 46%),var(--bg);

  & .auth-brand {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr) auto;
    align-self: stretch;
    min-width: 0;
    min-height: clamp(35rem,76svh,51rem);
    padding: clamp(24px,3.8vw,72px);
    color: #f0f3ff;
    border-color: #3a384b;
    border-radius: clamp(19px,2.35vw,38px);
    background:
      radial-gradient(ellipse at 3% 3%,#42b6a321,transparent 45%),
      radial-gradient(ellipse at 93% 67%,#7f60e338,transparent 55%),
      linear-gradient(150deg,#11161e,#111321 54%,#191527);
    box-shadow: inset 0 1px 0 #ffffff0d;
  }
  & .auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle,#bacaff39 1px,transparent 1.15px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at 68% 42%,black,transparent 77%);
  }
  & .auth-brand .brand { gap: 10px; }
  & .auth-brand .brand img { width: 32px; height: 36px; }
  & .auth-brand .brand > span { font-size: clamp(1.35rem,1.75vw,1.95rem); }
  & .auth-art {
    position: relative;
    z-index: 0;
    inset: auto;
    min-height: clamp(13rem,33svh,27rem);
    transform: none;
  }
  & .auth-constellation {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(96%,68svh,48rem);
    display: grid;
    place-items: center;
    isolation: isolate;
  }
  & .auth-constellation::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse closest-side,#8b93fe32 4%,#7b49b316 47%,transparent);
  }
  & .auth-orbit {
    position: absolute;
    width: 94%;
    aspect-ratio: 2.95;
    border: 1px solid #8387c45c;
    border-radius: 50%;
    transform: rotate(-18deg);
  }
  & .auth-orbit.inner { width: 78%; border-color: #61c2b64d; transform: rotate(20deg); }
  & .auth-orbit.front { clip-path: inset(50% 0 0); border-color: #a5a9ed9c; }
  & .auth-orbit i {
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d3cbff;
    box-shadow: 0 0 10px #afa6ff;
    offset-path: ellipse(50% 50% at 50% 50%);
    animation: wvi-orbit-travel 14s linear infinite;
  }
  & .auth-orbit.inner i { width: 4px; height: 4px; background: #9af4dd; animation-duration: 19s; animation-delay: -7s; }
  & .auth-orbit.front i { display: none; }
  & .auth-gem {
    position: relative;
    width: min(38%,29svh,17.5rem);
    aspect-ratio: 64/72;
    animation: wvi-gem-float 6s ease-in-out infinite;
  }
  & .auth-gem img { width: 100%; height: 100%; filter: drop-shadow(0 10px 24px #a0afff26); }
  & .auth-gem::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 2.78%,96.88% 50%,50% 97.22%,3.13% 50%);
    background: linear-gradient(112deg,transparent 37%,#fff7 48%,transparent 55%);
    background-size: 330% 100%;
    animation: wvi-gem-light 6s ease-in-out infinite;
  }
  & .motto {
    display: block;
    margin-top: 6px;
    font: 760 clamp(2.6rem,min(4.5vw,7.3svh),5.7rem)/.97 var(--wvi-heading);
    letter-spacing: -.055em;
  }
  & .motto p:nth-child(2) { color: #b4b6ca; }
  & .motto p:last-child {
    width: fit-content;
    color: #aab6ff;
    background: linear-gradient(102deg,#92e8ce,#8bbcff 47%,#bd9bfa);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  & .auth-content { width: min(100%,29rem); max-width: none; }
  & .auth-box { padding: clamp(16px,3vw,40px) 0; }
  & :is(.auth-symbol,.status-icon) {
    margin-bottom: 20px;
    color: #c9caff;
    border-color: #515268;
    background: linear-gradient(140deg,#18332f,#2b2643);
    box-shadow: inset 0 1px 0 #ffffff12;
  }
  & .auth-box h1 { font-size: clamp(2.45rem,4.2vw,4.1rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 760; }
  & .intro { margin: 12px 0 28px; color: #b7b9cd; }
  & .auth-form { gap: 16px; }
  & .auth-form input { min-height: 48px; font-size: 16px; background: #14151e; }
  & .auth-form input:focus-visible { border-color: #9394ed; outline: 2px solid #8a87d766; outline-offset: 2px; }
  & .auth-form .form-status { line-height: 1.45; }
  & .auth-form .primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 50px;
    margin-top: 4px;
    padding-inline: 20px;
    justify-content: space-between;
    border-radius: 14px;
    border: 1px solid #98aaf180;
    color: #fff;
    background: linear-gradient(105deg,#087e74,#345dbd 53%,#6746bf);
    box-shadow: inset 0 1px 0 #ffffff24,0 6px 24px #51439d44;
    transition: transform .18s ease, box-shadow .22s ease;
  }
  & .auth-form .primary::before {
    content: '';
    position: absolute;
    inset: -15% -40%;
    z-index: -1;
    background: linear-gradient(106deg,transparent 43%,#c9e6ff55 51%,transparent 59%);
    transform: translateX(-65%);
  }
  & .auth-form .primary .ico { width: 21px; height: 21px; transition: transform .2s ease; }
  & .auth-form .primary:focus-visible { outline: 2px solid #d5d6ff; outline-offset: 4px; }
  & .auth-form .primary:focus-visible::before { animation: wvi-signin-sweep .8s ease-out both; }
  & .auth-form .primary:active:not(:disabled) { transform: scale(.988); }
  & .auth-form .primary:disabled { opacity: .7; box-shadow: none; }
  & .auth-switch { margin: 16px 0; }
  & .auth-switch .text-button { min-height: 44px; color: #c3b4ff; }
  & .auth-foot { padding-top: 20px; }
  & .auth-foot .ico { color: #82d8c6; }
}
@keyframes wvi-orbit-travel { to { offset-distance: 100%; } }
@keyframes wvi-gem-float {
  0%,100% { transform: translateY(3%) rotate(-4deg); }
  50% { transform: translateY(-4%) rotate(2deg); }
}
@keyframes wvi-gem-light {
  0%,35% { background-position: 100% 0; }
  76%,100% { background-position: 0 0; }
}
@keyframes wvi-signin-sweep { to { transform: translateX(65%); } }
@media (hover: hover) {
  html[data-appearance='watchvi-molesto'] .auth-form .primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #ffffff36,0 8px 26px #6263dc5c;
    &::before { animation: wvi-signin-sweep .8s ease-out both; }
    & .ico { transform: translateX(3px); }
  }
}
@media (max-width: 760px) {
  html[data-appearance='watchvi-molesto'] .auth-layout {
    grid-template-columns: minmax(0,1fr);
    align-content: start;
    gap: 0;
    padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    & .auth-brand {
      grid-template: auto 1fr / minmax(0,1fr) 40%;
      gap: 18px 0;
      align-items: center;
      min-height: 0;
      padding: clamp(17px,4vw,26px);
    }
    & .auth-brand .brand { grid-area: 1 / 1 / 2 / 3; }
    & .auth-brand .brand img { width: 24px; height: 27px; }
    & .auth-brand .brand > span { font-size: 1.2rem; }
    & .auth-art { grid-area: 2 / 2; min-height: 0; align-self: stretch; }
    & .auth-constellation { width: 115%; left: -10%; right: auto; }
    & .auth-gem { width: 42%; max-width: 68px; }
    & .motto { grid-area: 2 / 1; margin: 0; font-size: clamp(1.55rem,5.6vw,2.2rem); }
    & .auth-content { padding-inline: clamp(5px,2vw,12px); }
    & .auth-box { padding: clamp(23px,4vw,32px) 0 12px; }
    & .auth-symbol { display: none; }
    & .intro { margin: 8px 0 20px; }
    & .auth-switch { margin-block: 8px; }
  }
}
@media (forced-colors: active) {
  html[data-appearance='watchvi-molesto'] .auth-layout {
    & .motto p:last-child { -webkit-text-fill-color: currentColor; }
    & .auth-form .primary { border-color: ButtonText; }
  }
}

/* The gradient uses the full scale. The glint only travels through its filled part. */
html[data-appearance='watchvi-molesto'] .wvi-meter {
  --wvi-spectrum: linear-gradient(90deg, #00c2a8, #2f8cff 52%, #7a5cff);
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-radius: 99px;
  background: #1d1f2c;
}
html[data-appearance='watchvi-molesto'] .wvi-meter > i {
  display: block;
  position: absolute;
  inset: 0;
  background: var(--wvi-spectrum);
  clip-path: inset(0 calc(100% - var(--wvi-share, 0%)) 0 0 round 99px);
}
html[data-appearance='watchvi-molesto'] .wvi-file-meter {
  height: 4px;
  margin-top: 4px;
}
html[data-appearance='watchvi-molesto'] .wvi-storage-meter {
  --wvi-spectrum: linear-gradient(90deg, #795cff, #e34ab4 55%, #ff9854);
}
html[data-appearance='watchvi-molesto'] :is(.wvi-overview-meter, .wvi-transfer-meter) { height: 19px; }
@media (min-width: 801px) {
  html[data-appearance='watchvi-molesto'] :is(.wvi-overview-meter, .wvi-transfer-meter) { height: 30px; }
}
@keyframes wvi-fill-entrance {
  from { clip-path: inset(0 100% 0 0 round 99px); }
  to { clip-path: inset(0 calc(100% - var(--wvi-share, 0%)) 0 0 round 99px); }
}
@keyframes wvi-light-sweep {
  0% { opacity: 0; transform: translateX(-82%); }
  5%, 37% { opacity: .98; }
  43%, 100% { opacity: 0; transform: translateX(82%); }
}
html[data-appearance='watchvi-molesto'] {
  & .wvi-meter:not(.wvi-transfer-meter):not([data-wvi-revealed='1']) > i {
    clip-path: inset(0 100% 0 0 round 99px);
  }
  & .wvi-meter:not(.wvi-transfer-meter)[data-wvi-revealed='1']:not([data-wvi-restored]) > i {
    animation: wvi-fill-entrance 1.8s cubic-bezier(.2,.85,.2,1) both;
  }
  & .wvi-meter[data-wvi-visible='1']:not([data-static]) > i::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--wvi-share, 0%);
    pointer-events: none;
    background: linear-gradient(102deg, transparent 12%, #ffffff38 36%, #ffffffe8 50%, #ffffff4a 62%, transparent 88%)
                center / min(100%, 220px) 100% no-repeat;
    animation: wvi-light-sweep 2.8s linear infinite;
  }
}
@media (forced-colors: active) {
  html[data-appearance='watchvi-molesto'] .wvi-meter { outline: 1px solid CanvasText; background: Canvas; }
  html[data-appearance='watchvi-molesto'] .wvi-meter > i { forced-color-adjust: none; background: Highlight; }
}
