:root {
  color-scheme: light;
  --ink: #37271d;
  --muted: #765a47;
  --paper: #fffdf9;
  --border: #c7ddce;
  --border-soft: #d6e7db;
  --brand: #22633d;
  --cactus-accent: #57ae6b;
  --soft-cactus: #e8f5e9;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
  background: radial-gradient(ellipse 900px 550px at 70% 0%, #d6f3df, transparent 80%), #eff8f2;
}
main, .site-inner {
  width: min(1120px, 100%);
  margin: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
main { padding-block: 10px 24px; }
.site-header { border-bottom: 1px solid #c1dac94f; background: #fffaf3bc; }
.site-inner { display: flex; align-items: center; min-height: 70px; gap: 10px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 3.5vw, 1.32rem);
  font-weight: 780;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { object-fit: contain; }
.brand-dot { color: #297447; }
#account-control { min-width: 0; }
#account-toggle { max-width: 100%; }
#account-toggle > :is(.vault-account-avatar, svg) { flex-shrink: 0; }
.vault-account-copy { display: grid; gap: 3px; min-width: 0; text-align: left; }
.vault-account-preview {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 550;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}
.plus-badge {
  padding: 2px 8px;
  border: 1px solid #abd8b9;
  border-radius: 999px;
  color: #347448;
  background: linear-gradient(#ebf9ef, #cbf0d7);
  font-size: .72rem;
  font-weight: 750;
}
.intro {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(95px, .43fr);
  align-items: center;
  min-height: 84px;
  margin-bottom: 14px;
  padding: 9px clamp(12px, 2.5vw, 25px);
  overflow: hidden;
  border: 1px solid #bdddc7;
  border-radius: clamp(19px, 3vw, 32px);
  background: radial-gradient(ellipse at 82% 22%, #e4f7ea, transparent 62%), linear-gradient(115deg, #fffaf0 15%, #d6f3df 100%);
  box-shadow: inset 0 1px #fff, 0 13px 45px #458d5c11;
}
.intro-copy { z-index: 1; }
.eyebrow, .fixture-label { color: var(--brand); font-size: .72rem; font-weight: 780; letter-spacing: .13em; }
.eyebrow span { margin-right: 4px; }
h1 { margin: 4px 0 6px; font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: .99; letter-spacing: -.065em; }
h2 { margin: 0; font-size: clamp(1.25rem, 3.2vw, 1.55rem); line-height: 1.15; letter-spacing: -.035em; }
p { margin: 0 0 12px; overflow-wrap: anywhere; }
.intro p, .auth p { color: var(--muted); }
.intro p { margin-bottom: 0; font-size: clamp(.88rem, 2vw, 1.05rem); }
.cloud-art {
  position: relative;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(100%, 128px);
}
.cloud-art::before {
  position: absolute;
  inset: 0 -12%;
  z-index: -1;
  background: radial-gradient(ellipse, #80d99c6b, transparent 69%);
  content: "";
}
.cloud-art img {
  display: block;
  width: 100%;
  max-height: 65px;
  object-fit: contain;
  filter: hue-rotate(80deg) saturate(.82) drop-shadow(0 14px 14px #59b2753e);
  animation: cloud-float 6s ease-in-out infinite;
}
.cloud-spark { position: absolute; color: #4eaf6d; font-size: clamp(.8rem, 2.5vw, 1.25rem); }
.cloud-spark-one { left: 2%; top: 5%; }
.cloud-spark-two { right: 2%; bottom: 1%; opacity: .66; }
@keyframes cloud-float { 50% { transform: translateY(-4px) rotate(-1deg); } }
.plus-paywall {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: 'intro offer' 'details offer';
  column-gap: clamp(32px, 7vw, 86px);
  row-gap: clamp(25px, 4vw, 40px);
  align-items: start;
  margin-block: clamp(12px, 4vw, 42px);
  padding: clamp(24px, 5.7vw, 65px);
  border: 1px solid #bdddc7;
  border-radius: clamp(22px, 4vw, 38px);
  background: radial-gradient(ellipse at 98% 0%, #c1edcf 0%, transparent 54%), linear-gradient(124deg, #fffdf7 20%, #e7f8ec 100%);
  box-shadow: inset 0 1px #fff, 0 18px 54px #3f805414;
}
.plus-intro { grid-area: intro; align-self: end; }
.plus-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 11px 4px 7px;
  border: 1px solid #b2dbbf;
  border-radius: 999px;
  background: #e5f7eb;
  color: #316b43;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plus-label img { display: block; }
.plus-vault-word {
  position: relative;
  padding-inline: 3px 5px;
  color: #32844c;
  font-size: .85rem;
  font-weight: 950;
}
.plus-vault-word span {
  background: linear-gradient(108deg, #32844c 26%, #3ca75e 42%, #5dcf81 49%, #32844c 63%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vault-word-gloss 4s ease-in-out infinite;
}
.plus-vault-word svg {
  position: absolute;
  inset: -4px -4px auto;
  width: calc(100% + 8px);
  height: 27px;
  overflow: visible;
  stroke: #47b169;
  stroke-width: 1.25;
  stroke-linecap: round;
  pointer-events: none;
}
.vault-electricity { stroke-dasharray: 13 65; animation: vault-electricity 4s linear infinite; }
.vault-spark { transform-origin: center; animation: vault-spark 4s ease-out infinite; }
@keyframes vault-word-gloss { 0%, 20% { background-position: 100% 0; } 57%, 100% { background-position: 0 0; } }
@keyframes vault-electricity { 0%, 20% { stroke-dashoffset: 78; opacity: 0; } 30%, 42% { opacity: 1; } 58%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes vault-spark { 0%, 29%, 66%, 100% { opacity: .25; } 38%, 54% { opacity: 1; } }
#plus-heading { margin: 0 0 15px; font-size: clamp(2.45rem, 6vw, 4.2rem); line-height: .99; text-wrap: balance; }
.plus-description { max-width: 30ch; margin: 0; color: var(--muted); font-size: clamp(.99rem, 1.9vw, 1.18rem); }
.plus-offer {
  grid-area: offer;
  align-self: center;
  min-width: 0;
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid #b4d8bf;
  border-radius: clamp(19px, 3vw, 27px);
  background: linear-gradient(165deg, #fffaf0 0%, #fffdf9 53%);
  box-shadow: inset 0 1px #fff, 0 15px 35px #3a724c19;
}
.plus-offer-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(94px, 13vw, 144px);
  margin: -4px 0 8px;
  border-radius: 20px;
  background: radial-gradient(ellipse, #c5eed2, transparent 67%);
}
.plus-offer-art img {
  position: absolute;
  inset: 0;
  width: min(78%, 224px);
  height: 100%;
  margin: auto;
  object-fit: contain;
  filter: hue-rotate(80deg) saturate(.82) drop-shadow(0 12px 13px #53a36c36);
  animation: cloud-float 6s ease-in-out infinite;
}
.plus-star { position: absolute; color: #46965f; }
.plus-star-first { top: 17%; right: 16%; font-size: 1.25rem; }
.plus-star-second { bottom: 21%; left: 17%; font-size: .85rem; }
.plus-capacity { margin-bottom: 3px; font-size: .98rem; color: var(--muted); }
.plus-capacity strong { color: #316c44; }
.plus-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 5px; color: var(--muted); }
.plus-price strong { color: var(--ink); font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.06; letter-spacing: -.055em; }
.plus-renewal, .plus-message { color: var(--muted); font-size: .85rem; }
.plus-renewal { margin-bottom: 16px; }
#plus-auth .auth-icon, #plus-auth #login-heading, #plus-auth #start .auth-description,
#plus-auth .remember-device, #plus-auth #use-passkey, .plus-pay-icon { display: none; }
#plus-auth #verify h2 { font-size: 1.2rem; }
#plus-auth #verify .auth-description { margin-bottom: 12px; font-size: .88rem; }
#plus-auth .auth input:not([type=file],[type=checkbox]) { margin-bottom: 10px; }
#plus-auth .auth-alternatives { gap: 6px; }
#plus-auth .auth-alternatives button { padding-inline: 9px; }
.plus-offer button.plus-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding-block: 6px;
  border-color: #41945b;
  border-radius: 11px;
  background: linear-gradient(180deg, #c2edd0 0%, #a0e2b5 46%, #7ed99b 49%, #6dd18d 100%);
  box-shadow: inset 0 1px #e2f6e8, inset 0 -1px #61bb7e, 0 5px 12px #3f885630;
  color: #1a3a24;
  font-size: 1rem;
  font-weight: 800;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.plus-offer .plus-pay:not(:disabled):hover {
  background: linear-gradient(180deg, #d3f2dd 0%, #aee7c0 46%, #8adca4 49%, #77d796 100%);
  box-shadow: inset 0 1px #e2f6e8, inset 0 -1px #61bb7e, 0 7px 15px #3f885640;
}
.plus-offer .plus-pay:not(:disabled):active { transform: translateY(1px); }
.plus-pay svg { display: block; flex: 0 0 auto; }
.plus-pay-methods { display: block; max-width: 100%; height: auto; margin: 9px auto 0; }
#plus-back { width: 100%; margin-top: 10px; }
.plus-offer .plus-pay:disabled { opacity: .65; cursor: not-allowed; }
.plus-message { margin: 11px 0 0; }
.plus-message:empty { display: none; }
.plus-offer #status { margin-top: 9px; font-size: .85rem; }
.plus-details { grid-area: details; }
.plus-benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.plus-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.plus-benefit-icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  height: 38px;
  border: 1px solid #bddfc8;
  border-radius: 12px;
  background: linear-gradient(#fffbf0, #d4f2dd);
  color: #397a4e;
}
.plus-benefit-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.plus-benefits strong { color: var(--ink); font-size: .99rem; }
.plus-benefits p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.plus-devices { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.plus-devices li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #97d5ab;
  border-radius: 8px;
  background: linear-gradient(#ebf9ef, #cbefd6);
  color: #2d7443;
  font-size: .77rem;
  font-weight: 700;
}
.plus-devices svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plus-devices .platform-pc { fill: currentColor; stroke: none; }
.plus-fine-print { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 18px; color: var(--muted); font-size: .79rem; }
.plus-fine-print span { flex-basis: 100%; }
.plus-fine-print a { color: #316c44; text-underline-offset: .17em; }
@media (max-width: 700px) {
  .plus-paywall { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'offer' 'details'; }
  .plus-offer-art { height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .plus-offer-art img { animation: none; }
  .plus-vault-word span, .vault-electricity, .vault-spark { animation: none; }
  .plus-offer .plus-pay { transition: none; }
  .plus-offer .plus-pay:not(:disabled):active { transform: none; }
}
.card {
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: clamp(19px, 3vw, 27px);
  background: var(--paper);
  box-shadow: 0 12px 46px #36654513, inset 0 1px #fff;
}
.card:has(.auth:not([hidden])) {
  width: min(100%, 460px);
  margin: clamp(16px, 4vw, 38px) auto 0;
  padding: clamp(20px, 6vw, 38px);
  background: linear-gradient(145deg, #fffdf9 44%, #eefaf2);
  box-shadow: 0 18px 50px #36654517, inset 0 1px #fff;
}
.auth h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 5vw, 1.8rem); }
.auth-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid #a8d8b7;
  border-radius: 16px;
  color: #347448;
  background: linear-gradient(#ebf9ef, #b4e9c5);
  box-shadow: inset 0 1px #fff, 0 5px 12px #3f885626;
}
.auth .auth-description { margin-bottom: 22px; }
.fixture-label { margin-bottom: 8px; }
label { font-weight: 600; }
.auth label { display: block; margin-bottom: 6px; }
.auth .remember-device {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0 0 10px;
  font-size: .88rem;
}
.remember-device input { margin: 0; accent-color: #3d9358; }
input, button, .action { min-height: 44px; font: inherit; }
input:not([type=file],[type=checkbox]) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid #afccb8;
  border-radius: 10px;
  color: var(--ink);
  background: #fffdf8;
}
.auth input:not([type=file],[type=checkbox]) {
  min-height: 50px;
  margin-bottom: 16px;
  padding-inline: 14px;
  border-radius: 14px;
}
.auth #token { font-variant-numeric: tabular-nums; letter-spacing: .16em; }
.auth .auth-primary {
  min-height: 48px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(#c1edcf, #91dea9 54%, #83da9f);
  box-shadow: inset 0 1px #ebf9ef, 0 4px 10px #3f885626;
}
.auth .auth-primary:hover { background: linear-gradient(#ccf0d7, #8ddda6); }
#fixture-auth .auth-primary { width: auto; }
.auth-alternatives { margin-top: 10px; }
.auth-alternatives button {
  flex: 1 1 auto;
  border-radius: 12px;
  font-size: .88rem;
}
input[type=file] { max-width: 100%; min-width: 0; align-content: center; color: var(--muted); }
input::file-selector-button { margin-right: 9px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; font: inherit; color: var(--ink); background: #f2fbf5; cursor: pointer; }
button, .action {
  padding: 8px 14px;
  border: 1px solid #4ea068;
  border-radius: 10px;
  color: #173420;
  background: var(--cactus-accent);
  cursor: pointer;
  font-weight: 600;
}
.action { display: inline-flex; align-items: center; text-decoration: none; }
.secondary { border-color: var(--border); background: #f3fbf5; }
button:hover, .action:hover { background: #7fd99c; }
.secondary:hover { background: var(--soft-cactus); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #397b4e; outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.spread { justify-content: space-between; }
#account-control { position: relative; margin-left: auto; }
.vault-popover {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 4;
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid #b8d8c2;
  border-radius: 16px;
  background: #fffaf3;
  box-shadow: 0 12px 34px #2a4a3426, inset 0 1px #fff;
}
#account-menu, #add-menu { width: min(255px, calc(100vw - 100px)); }
#account-menu { right: 0; }
#add-menu { left: -55px; }
#account-menu { z-index: 6; }
.account-info { padding: 5px 7px 9px; margin-bottom: 3px; border-bottom: 1px solid var(--border-soft); }
#account { margin: 0 0 2px; font-weight: 650; }
.plan { margin: 0; color: var(--muted); font-size: .89rem; }
.subscription-notice {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft-cactus);
  color: var(--ink);
  font-size: .89rem;
}
.subscription-notice a { margin-inline-start: .35em; color: var(--brand); font-weight: 650; }
.files-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.folder-heading { min-height: 54px; }
#folder-nav { min-width: 0; flex: 1; }
.folder-heading { display: flex; align-items: center; gap: 8px; }
#folder-up {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand);
}
#folder-up:hover, #folder-up:focus-visible { background: var(--soft-cactus); }
.up-folder-icon { position: absolute; left: 3px; bottom: 3px; width: 29px; height: 29px; }
#folder-up .up-arrow {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 25px;
  height: 25px;
  min-width: 0;
  min-height: 0;
}
.up-arrow svg { width: 15px; height: 15px; }
#files-heading { overflow-wrap: anywhere; }
#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-block: 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  color: var(--muted);
  font-size: .82rem;
}
#breadcrumbs button {
  flex-shrink: 0;
  padding: 2px 7px;
  border-color: transparent;
  background: transparent;
  color: var(--brand);
}
#breadcrumbs button:hover, #breadcrumbs button:focus-visible { background: var(--soft-cactus); }
#breadcrumbs [aria-current] { font-weight: 650; }
.sort-control { flex: 0 0 auto; }
.sort-icon { display: none; }
#sort {
  min-height: 44px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
  font-size: .9rem;
}
#sort:hover { background: var(--soft-cactus); }
.file-tools { flex-wrap: nowrap; }
.view-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.file-tools .glossy-button { width: 42px; height: 42px; min-height: 42px; padding: 0; }
#search-control { position: relative; min-width: 0; }
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fffaf2;
  box-shadow: inset 0 2px 4px #4e8a6110;
}
.search-box #search { flex: 1; border: 0; padding: 4px; background: transparent; }
.search-box:focus-within { border-color: #63a979; }
.search-box #search:focus-visible { outline: none; }
.glossy-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #479d62;
  border-radius: 50%;
  color: #1f4f2e;
  background: linear-gradient(177deg, #c1edcf, #85dba0 49%, #60c680 52%, #6dce8c);
  box-shadow: inset 0 2px #ecf9f0b8, 0 3px 8px #4d976431;
  transition: transform .18s ease, box-shadow .18s ease;
}
.glossy-button:hover { background: linear-gradient(177deg, #d6f3df, #97e0ae 49%, #6fd18e 52%, #85daa0); }
.glossy-button:active { transform: scale(.94); }
#search-results {
  inset-inline: 0;
  max-height: min(300px, 45vh);
  overflow: auto;
  overscroll-behavior: contain;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px;
  border-color: transparent;
  text-align: left;
  background: transparent;
}
.search-result:hover, .search-result:focus-visible { border-color: var(--border); background: var(--soft-cactus); }
.search-result .file-preview { flex: 0 0 auto; width: 33px; height: 36px; }
.search-result strong, .search-result small { display: block; overflow-wrap: anywhere; }
.search-result small, .search-empty { color: var(--muted); }
.search-empty { margin: 0; padding: 8px; }
.view-toggle { display: inline-flex; gap: 3px; background: #e0f0e5; border-radius: 12px; padding: 3px; }
.view-toggle button { display: inline-flex; gap: 7px; align-items: center; background: transparent; border-color: transparent; }
.view-toggle button[aria-pressed=true] { background: #fffaf2; border-color: var(--border); color: var(--brand); }
.upload { position: relative; margin: 0; }
#add-toggle svg { transition: transform .2s ease; }
#add-toggle[aria-expanded=true] svg { transform: rotate(45deg); }
#add-toggle:not([aria-expanded=true]):hover svg { transform: rotate(12deg); }
.popover-title { margin: 0; padding: 4px 5px; font-weight: 750; }
#upload-name { margin: 4px 5px; color: var(--muted); font-size: .86rem; }
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.selection-bar button { font-size: .88rem; }
#selection-count { color: var(--muted); font-size: .88rem; }
.danger { color: #9a3023; }
#files { margin: 12px 0 0; padding: 0; list-style: none; }
#files[data-view=icons] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 12px;
}
#files .file-item {
  display: grid;
  position: relative;
  min-width: 0;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(165deg, #fffefa, #f0fbf4);
}
#files .file-item:hover, #files .file-item:focus-within { border-color: #a2c8ae; }
#files .file-item:has(.file-select:checked), #files .file-item[aria-selected=true], #files .file-item.is-selected {
  border-color: #7abe90;
  background: var(--soft-cactus);
}
#files[data-view=icons] .file-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto auto;
  gap: 5px;
  min-height: 152px;
}
#files[data-view=icons] .file-select { grid-area: 1 / 1; }
#files[data-view=icons] .file-actions { grid-area: 1 / 3; }
#files[data-view=icons] .file-preview { grid-area: 2 / 1 / 3 / 4; justify-self: center; }
#files[data-view=icons] .file-name { grid-area: 3 / 1 / 4 / 4; text-align: center; }
#files[data-view=icons] .file-meta { grid-area: 4 / 1 / 5 / 4; text-align: center; }
#files[data-view=list] { display: grid; gap: 5px; }
#files[data-view=list] .file-item { grid-template-columns: auto auto minmax(0, 1fr) minmax(4rem, auto) auto; gap: 8px; }
#files[data-view=list] .file-select { grid-column: 1; grid-row: 1; }
#files[data-view=list] .file-preview { grid-column: 2; grid-row: 1; width: 36px; height: 38px; }
#files[data-view=list] .file-name { grid-column: 3; grid-row: 1; }
#files[data-view=list] .file-meta { grid-column: 4; grid-row: 1; }
#files[data-view=list] .file-actions { grid-column: 5; grid-row: 1; }
.file-select { width: 16px; height: 16px; min-height: 0; margin: 5px; accent-color: #46965f; }
.file-preview {
  display: grid;
  place-items: center;
  width: 54px;
  height: 59px;
  overflow: hidden;
  border: 1px solid #b8dec4;
  border-radius: 10px 17px 10px 10px;
  color: #35784a;
  background: linear-gradient(150deg, #edfaf1, #c1edcf);
  box-shadow: inset 0 1px #f2fbf5, 0 4px 9px #428d5a24;
  font-weight: 750;
  font-size: .72rem;
}
#files .folder-item {
  border-color: #c1dfcb;
  background: linear-gradient(160deg, #fffdf7, #e5f7eb);
}
.folder-item .file-preview, .folder-preview {
  color: #397d4f;
  border-color: #a4d9b5;
  border-radius: 9px;
  background: linear-gradient(160deg, #dff5e6, #a4e4b8);
}
.folder-preview svg, .folder-item .file-preview svg { width: 60%; height: 60%; }
.folder-open {
  grid-area: 1 / 1 / -1 / -1;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 6px;
  border-color: transparent;
  color: var(--brand);
  background: transparent;
  text-align: inherit;
  overflow-wrap: anywhere;
}
#files[data-view=list] .folder-open { display: flex; align-items: center; }
#files[data-view=icons] .folder-open :is(.file-preview, .file-name) { grid-area: auto; }
#files .folder-controls { position: absolute; z-index: 1; top: 5px; right: 5px; display: flex; }
#files[data-view=list] .folder-controls { top: 50%; transform: translateY(-50%); }
#files[data-view=list] .folder-open { padding-right: 96px; }
.folder-toggle { display: grid; place-items: center; color: var(--brand); }
.folder-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
#files[data-view=list] > .nested-row {
  margin-inline-start: min(calc(var(--folder-depth) * clamp(12px, 3vw, 23px)), 24%);
  border-inline-start: 2px solid #a3d1b2;
}
.folder-open:hover, .folder-open:focus-visible { background: #d9f4e2; }
#files .folder-item.is-drop-target, #breadcrumbs .is-drop-target {
  border-color: #4e9f68;
  background: #cbf0d7;
  outline: 2px dashed #44935d;
  outline-offset: -3px;
}
.file-drag-preview { touch-action: none; user-select: none; cursor: grab; }
.file-preview img, .file-preview video { width: 100%; height: 100%; object-fit: cover; }
.file-name { min-width: 0; overflow-wrap: anywhere; font-size: .91rem; font-weight: 650; }
.file-meta { min-width: 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.file-actions { min-width: 34px; min-height: 34px; padding: 3px 6px; border-color: transparent; background: transparent; }
.file-actions:hover, .file-actions:focus-visible { border-color: var(--border); background: var(--soft-cactus); }
.file-row-controls { display: flex; align-items: center; justify-self: end; gap: 2px; }
#files :is(.file-row-controls) > .file-actions { display: inline-grid; place-items: center; }
#files[data-view=icons] .file-row-controls { grid-area: 1 / 2 / 2 / 4; }
#files[data-view=list] .file-row-controls { grid-area: 1 / 5; }
.file-play-music { color: #30844b; }
.file-play-music svg { pointer-events: none; }
.file-empty, #files > li:only-child:not(.file-item) {
  grid-column: 1 / -1;
  padding: 24px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.file-menu {
  position: fixed;
  z-index: 9;
  display: grid;
  min-width: 165px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #91cca4;
  border-radius: 12px;
  color: var(--ink);
  background: #bdebcb;
  box-shadow: 0 12px 30px #2b4e3628;
}
.file-menu button { border: 0; text-align: left; background: transparent; }
.file-menu button:hover, .file-menu button:focus-visible { background: #e8f8ed; }
.file-dialog {
  width: min(28rem, calc(100% - 24px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 15px 45px #2b4e363b;
}
.file-dialog::backdrop { background: #1e2e2356; }
.file-dialog h2 { margin-bottom: 8px; }
.file-dialog input:not([type=checkbox]), .file-dialog select { margin-bottom: 12px; }
.file-dialog select {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}
.settings-dialog { width: min(31rem, calc(100% - 24px)); max-height: calc(100dvh - 32px); }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.settings-header h2 { margin-bottom: 3px; }
.settings-header p, .settings-dialog section p { margin: 0; color: var(--muted); }
.settings-dialog section { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.settings-dialog h3 { margin: 0 0 4px; font-size: .98rem; }
.settings-dialog section .row:not(.settings-links), #add-passkey { margin-top: 8px; }
.settings-dialog section .settings-hint { margin-top: 8px; font-size: .86rem; }
.settings-links { column-gap: 18px; }
.settings-links a { color: var(--brand); font-size: .92rem; font-weight: 650; }
#settings-status { margin: 12px 0 0; }
#settings-status:empty { display: none; }
#settings-status[data-error] { color: #942515; }
#status { margin: 14px 0 0; }
#status:empty { display: none; }
#status[data-error] { color: #942515; }
.vault-file-activity {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #2f6540;
  font-size: .85rem;
}
.vault-file-activity p { margin: 0; }
.vault-progress {
  appearance: none;
  width: min(100%, 26rem);
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #d3e8da;
  accent-color: #4ab16b;
}
.vault-progress::-webkit-progress-bar { background: #d3e8da; }
.vault-progress::-webkit-progress-value { background: linear-gradient(#89dca3, #4ab16b); border-radius: 999px; }
.vault-progress::-moz-progress-bar { background: linear-gradient(#89dca3, #4ab16b); border-radius: 999px; }
.vault-progress:indeterminate {
  --progress-sweep: linear-gradient(100deg, #d3e8da 25%, #72cc8e 49%, #d3e8da 72%);
  background: var(--progress-sweep) 0 0 / 200% 100%;
}
.vault-progress:indeterminate::-webkit-progress-bar {
  background: var(--progress-sweep) 0 0 / 200% 100%;
  animation: vault-progress-sweep 1.15s linear infinite;
}
.vault-progress:indeterminate::-moz-progress-bar {
  background: var(--progress-sweep) 0 0 / 200% 100%;
  animation: vault-progress-sweep 1.15s linear infinite;
}
@keyframes vault-progress-sweep { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .vault-progress:indeterminate::-webkit-progress-bar { animation: none; }
  .vault-progress:indeterminate::-moz-progress-bar { animation: none; }
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 530px) {
  .files-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .toolbar { gap: 6px; }
  .file-tools, .view-tools { gap: 4px; }
  .file-tools .glossy-button { width: 40px; height: 40px; min-height: 40px; }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(76px, .4fr); }
  #sort { width: 104px; min-height: 40px; padding-inline: 4px; font-size: .9rem; }
  .site-inner { min-height: 62px; }
  .brand img { width: 27px; height: 25px; }
  .selection-bar, #selection-actions { gap: 5px; }
  .view-toggle { gap: 2px; padding: 2px; }
  .view-toggle button {
    justify-content: center;
    width: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
}
@media (max-width: 389px) {
  .toolbar:has(#vault-music:not([hidden])) .sort-control { position: relative; }
  .toolbar:has(#vault-music:not([hidden])) #sort { appearance: none; width: 32px; color: transparent; }
  #sort option { color: var(--ink); }
  .toolbar:has(#vault-music:not([hidden])) .sort-icon { display: block; position: absolute; inset: 0; margin: auto; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-art img { animation: none; }
  .glossy-button, #add-toggle svg { transition: none; }
}
@media (max-width: 480px) {
  #files[data-view=icons] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #files[data-view=list] .file-item { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 1px 7px; }
  #files[data-view=list] :is(.file-select, .file-preview, .file-actions) { grid-row: 1 / 3; }
  #files[data-view=list] .file-meta { grid-area: 2 / 3; }
  #files[data-view=list] .file-actions { grid-column: 4; }
  #files[data-view=list] .file-row-controls { grid-area: 1 / 4 / 3; }
}
@media (pointer: coarse) {
  .file-actions { min-width: 44px; min-height: 44px; }
  .file-select { width: 20px; height: 20px; }
}

button.file-preview {
  min-height: 0;
  padding: 0;
  cursor: pointer;
}
button.file-preview:hover { border-color: #50a36a; }
.file-preview.has-thumbnail { border-radius: 10px; background: #e2f0e6; }
#files[data-view=icons] .file-preview.has-thumbnail {
  width: min(100%, 108px);
  height: 76px;
}
.file-preview.has-thumbnail[data-kind=pdf] img { object-fit: contain; }

#media-reader {
  width: min(880px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid #b7dac2;
  border-radius: 22px;
  color: var(--ink);
  background: #fffbf4;
  box-shadow: 0 24px 90px #22332755;
}
#media-reader::backdrop { background: #1b2c2080; }
.media-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 26px);
}
.media-header, .media-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(12px, 3vw, 22px);
}
.media-header { justify-content: space-between; border-bottom: 1px solid var(--border-soft); }
.media-heading { min-width: 0; }
#media-detail {
  margin: 0 0 3px;
  color: #3a784e;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#media-title {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#media-close { flex: 0 0 44px; padding: 0; font-size: 1.5rem; border-radius: 50%; }
#media-stage {
  min-height: min(260px, 45dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(10px, 3vw, 24px);
  background: #e0eee4;
  text-align: center;
}
#media-stage :is(img, video, canvas) {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#media-stage :is(img, video) { max-height: 66dvh; object-fit: contain; }
#media-stage canvas { box-shadow: 0 3px 14px #2c463430; }
#media-stage audio { display: block; width: min(100%, 430px); margin: 65px auto; }
.vault-video { width: min(100%, 850px); margin: auto; border-radius: 14px; background: #1d2c22; overflow: hidden; }
#media-stage .vault-video video { width: 100%; border-radius: 0; }
.vault-video-controls { display: grid; gap: 7px; padding: 9px clamp(8px, 3vw, 17px); background: linear-gradient(#f1fbf4, #d4efdd); color: #22402c; }
.vault-video-position { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .76rem; font-variant-numeric: tabular-nums; }
.vault-video-buttons, .vault-video-volume { display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1vw, 8px); }
.vault-video-controls input[type=range] { margin: 0; padding: 0; min-height: 26px; min-width: 0; width: 100%; accent-color: #389455; }
.vault-video-volume input[type=range] { width: clamp(36px, 10vw, 83px); }
.vault-video-controls .video-control { display: inline-grid; place-items: center; position: relative; min-width: 39px; min-height: 39px; padding: 4px; border-radius: 12px; background: #eefaf2; color: #235131; border: 1px solid #b3dabf; }
.vault-video-controls .video-main-play { min-width: 46px; background: linear-gradient(#c0ecce, #8ddda6 49%, #69cf89 51%, #7cd899); border-color: #43965d; box-shadow: inset 0 1px #e4f7ea, 0 2px 6px #30694235; }
.vault-video-controls .video-control small { position: absolute; right: 3px; bottom: 0; font-weight: 750; font-size: .55rem; background: #eefaf2; }
.vault-video:fullscreen { width: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #0c140f; }
#media-stage .vault-video:fullscreen video { max-height: 100%; height: 100%; }
#media-stage pre {
  margin: 0;
  padding: clamp(12px, 3vw, 24px);
  text-align: left;
  font: .9rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fffcf7;
  border-radius: 10px;
}
.media-message { margin: 20px auto; color: #694d3a; }
.media-footer { border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
#media-pages:not([hidden]) { display: flex; align-items: center; gap: 8px; }
#media-pages button { min-width: 40px; padding-inline: 8px; }
#media-page-label { font-size: .82rem; font-variant-numeric: tabular-nums; }
#media-download { margin-left: auto; }

/* The two web plans share the existing cream-and-green payment styling. */
.plus-paywall { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'offer' 'details'; gap: 30px; }
.plus-paywall .plus-intro { max-width: 680px; }
.plus-paywall .plus-description { max-width: 54ch; }
.plus-paywall .plus-offer { padding: 0; border: 0; background: none; box-shadow: none; }
.plus-plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.plus-plan-card { min-width: 0; padding: clamp(19px,3vw,28px); border: 1px solid #b4d8bf; border-radius: 24px; background: linear-gradient(165deg,#fffaf0,#fffdf9 53%); box-shadow: inset 0 1px #fff,0 12px 28px #3a724c12; }
.plus-plan-card.is-selected { border-color: #5ea875; box-shadow: inset 0 0 0 1px #9bceab,0 12px 28px #3a724c1c; }
.plus-plan-name { color: #316c44; font-size: .82rem; font-weight: 800; margin-bottom: 5px; }
.plus-plan-card h2 { margin: 0; font-size: clamp(2rem,4.5vw,3rem); line-height: 1.1; letter-spacing: -.05em; }
.plus-plan-storage { color: var(--muted); font-size: .9rem; margin: 5px 0 19px; }
.plus-plan-features { padding-left: 18px; margin: 18px 0 22px; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.plus-plan-terms { display: block; margin-top: 11px; font-size: .78rem; text-align: center; color: var(--muted); }
.plus-plan-card .plus-offer-art { height: 110px; margin-bottom: 16px; }
#plus-plan-choice { display: none; }
#plus-auth, #plus-continue, #plus-message, #plus-back { max-width: 480px; }
@media (max-width: 580px) { .plus-plan-cards { grid-template-columns: minmax(0,1fr); gap: 16px; } .plus-plan-card { border-radius: 20px; } }
