/* SavDrive — look of the app. The same arrangement of the other apps of SavOffice (header, side menu, cards); colours come
   from the SavComponents tokens (Soft style) with its own primary: the blue of a clear sky, coral for what needs an eye. */
@font-face { font-family: "Stack Sans Notch"; src: url(../../assets/fonts/stack-sans-notch.ttf); font-display: swap; }

:root, .sav-theme-light { --sav-color-primary: #0a6fb0; --sav-color-on-primary: #fff; --sav-color-bg: #f2f6fa; --sav-color-surface: #fff; --sav-color-surface-2: #e7eef5; --sav-color-text: #14202b; --sav-color-text-muted: #55646f; --sav-color-border: #d9e2ec; --sav-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --coral: #d85a30; --card: #fff; --thumb: #eaf0f6; }
.sav-theme-dark { --sav-color-primary: #5bb6f0; --sav-color-on-primary: #03243a; --sav-color-bg: #0f1419; --sav-color-surface: #171e25; --sav-color-surface-2: #212a33; --sav-color-text: #e5edf4; --sav-color-text-muted: #9aabb9; --sav-color-border: #2b3640; --sav-color-input-bg: #12181e; --coral: #f0875f; --card: #171e25; --thumb: #1d252e; }
@media (prefers-color-scheme: dark) { .sav-theme-auto { --sav-color-primary: #5bb6f0; --sav-color-on-primary: #03243a; --sav-color-bg: #0f1419; --sav-color-surface: #171e25; --sav-color-surface-2: #212a33; --sav-color-text: #e5edf4; --sav-color-text-muted: #9aabb9; --sav-color-border: #2b3640; --sav-color-input-bg: #12181e; --coral: #f0875f; --card: #171e25; --thumb: #1d252e; } }

*, ::before, ::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--sav-color-bg); color: var(--sav-color-text); font: 400 15px/1.5 var(--sav-font); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: color-mix(in oklab, var(--sav-color-primary) 85%, var(--sav-color-text)); }
:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; }
/* these SavComponents draw their own focus ring inside: a second outline around them made two loose lines across menus */
sav-menu-item:focus-visible, sav-tree-item:focus-visible, sav-radio:focus-visible { outline: none; }
.muted { color: var(--sav-color-text-muted); } .small { font-size: .82rem; } .center { text-align: center; } .grow { flex: 1; min-width: 0; } .spacer { flex: 1; }
.stack { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); } .form { display: grid; gap: .95rem; grid-template-columns: minmax(0, 1fr); }
.prow { display: flex; align-items: center; gap: .5rem; min-width: 0; } .prow.wrap { flex-wrap: wrap; } .prow.cen { justify-content: center; }
.wait { min-height: 60dvh; display: grid; place-items: center; padding: 1rem; }
sav-dialog h3 { font-size: .98rem; } .dlg-err { margin-top: .8rem; } .segm.wide { display: block; } .ctxm { position: fixed; z-index: 70; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; }
.mimg { border-radius: 5px; }

/* first page */
.landing, .authp { min-height: 100dvh; display: flex; flex-direction: column; }
.ltop { display: flex; align-items: center; gap: .6rem; padding: 1rem clamp(1rem, 4vw, 3rem); padding-top: max(1rem, env(safe-area-inset-top)); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.18rem; letter-spacing: -.015em; color: inherit; text-decoration: none; flex: none; } .brand b { font-weight: 700; } .brand img { border-radius: 9px; }
.lmain { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 6vh, 5rem) 0 4.5rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero-t > p { margin: 1.2rem 0 1.6rem; font-size: 1.12rem; color: var(--sav-color-text-muted); max-width: 34rem; text-wrap: pretty; } .hero-t small { display: block; margin-top: 1rem; color: var(--sav-color-text-muted); }
/* the picture of a drive: a window with folders, files of SavOffice and the space */
.hart { position: relative; padding: 1rem 0 1rem 1rem; }
.hart::before { content: ""; position: absolute; inset: 8% 0 -2% 10%; border-radius: 28px; background: linear-gradient(135deg, #4cc3f5, #0a6fb0); opacity: .16; transform: rotate(3deg); }
.hwin { position: relative; background: var(--card); border: 1px solid var(--sav-color-border); border-radius: 20px; box-shadow: 0 24px 60px rgb(10 50 90 / .18); padding: 0 1.2rem 1.2rem; display: grid; gap: 1rem; }
.hwbar { display: flex; align-items: center; gap: .4rem; padding: .85rem 0 .2rem; font-size: .85rem; font-weight: 650; } .hwbar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--sav-color-border); } .hwbar span { margin-left: .5rem; }
.hfolders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.hf { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border-radius: 12px; background: var(--sav-color-surface-2); min-width: 0; } .hfi { color: var(--fc); font-size: 1.3rem; display: grid; } .hfn { display: grid; min-width: 0; line-height: 1.25; } .hfn b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hfn small { font-size: .72rem; color: var(--sav-color-text-muted); }
.hfiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.hfile { display: grid; gap: .35rem; font-size: .74rem; min-width: 0; } .hfile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hthumb { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--thumb); display: grid; place-items: center; }
.hquota { display: grid; gap: .3rem; } .hquota small { color: var(--sav-color-text-muted); font-size: .76rem; } .hqbar { height: 7px; border-radius: 9px; background: var(--sav-color-surface-2); overflow: hidden; } .hqbar i { display: block; height: 100%; background: var(--sav-color-primary); border-radius: inherit; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 2.5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--sav-color-border); }
.feat sav-icon { font-size: 1.5rem; color: var(--coral); } .feat h3 { margin: .5rem 0 .2rem; font-size: 1.05rem; } .feat p { color: var(--sav-color-text-muted); }
.amain { flex: 1; display: grid; place-items: center; padding: 1rem; } .aw { width: min(26rem, 100%); } .auth { --sav-card-padding: 1.8rem; display: block; width: min(30rem, 100%); }
.landing > .credit, .authp > .credit { width: 100%; max-width: 1680px; margin: auto auto 0; padding: 1rem clamp(1rem, 4vw, 3rem); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; } .hart { max-width: 34rem; width: 100%; justify-self: center; } }
@media (max-width: 520px) { .hfiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hfolders { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hfolders .hf:nth-child(3) { display: none; } .ltop .langb .lbl { display: none; } }
.credit { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; padding: 1.1rem 0; color: var(--sav-color-text-muted); font-size: .85rem; margin-top: auto; } .credit a { color: inherit; } .sig { font-family: "Stack Sans Notch", sans-serif; }

/* home: header, side menu (New, places, space), the folder */
.home { min-height: 100dvh; display: flex; flex-direction: column; }
.htop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(.8rem, 2vw, 1.6rem); padding-top: max(.7rem, env(safe-area-inset-top)); background: color-mix(in oklab, var(--sav-color-bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hsearch { flex: 0 1 34rem; min-width: 0; } .htop .hsearch + .spacer { flex: 1; }
.umenu { display: inline-flex; align-items: center; gap: .3rem; flex: none; }
.hbody { flex: 1; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.6rem; width: 100%; max-width: 1680px; margin: 0 auto; padding: .6rem clamp(.8rem, 2vw, 1.6rem) 2rem; align-content: start; }
.hside { display: flex; flex-direction: column; gap: .15rem; align-self: start; position: sticky; top: 4.6rem; }
.newd { display: block; width: 100%; margin-bottom: .8rem; } .newb { width: 100%; } /* as in SavDocuments and SavPresentations: the whole width of the column */
.quota { display: grid; gap: .45rem; padding: 1.2rem .8rem; margin-top: .4rem; border-top: 1px solid var(--sav-color-border); } .quota small { color: var(--sav-color-text-muted); } .qhead { display: flex; align-items: center; gap: .45rem; font-size: .9rem; } .qhead sav-icon { color: var(--sav-color-text-muted); } .qwarn { color: var(--coral) !important; }
sav-menu-item.over, sav-breadcrumb-item.over { outline: 2px dashed var(--sav-color-primary); border-radius: 10px; }
.hmain { min-width: 0; }
.home > .credit { width: 100%; max-width: 1680px; margin: auto auto 0; padding: 1rem clamp(.8rem, 2vw, 1.6rem); }

/* the folder */
.dmain { position: relative; border-radius: 20px; min-height: 60vh; }
/* nothing of the drive is selected as text by a drag; the rectangle that chooses files and folders */
.drive .hbody, .drive .htop .brand { user-select: none; -webkit-user-select: none; }
.band { position: fixed; z-index: 40; pointer-events: none; border: 1px solid var(--sav-color-primary); background: color-mix(in oklab, var(--sav-color-primary) 14%, transparent); border-radius: 4px; }
.dmain.dropping { outline: 2px dashed var(--sav-color-primary); outline-offset: 6px; background: color-mix(in oklab, var(--sav-color-primary) 5%, transparent); }
.dhead { display: flex; align-items: center; gap: .5rem; min-height: 3rem; margin-bottom: .8rem; flex-wrap: wrap; } .dhead h1 { font-size: 1.45rem; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* the selection bar sticks below the top bar, so it stays in view when files are chosen far down the page (as in SavPhotos) */
.dhead:has(.selbar) { position: sticky; top: 4.4rem; z-index: 15; }
.crumbwrap { min-width: 0; flex: 1 1 auto; } .crumbs { font-size: 1.05rem; }
.selbar { display: flex; align-items: center; gap: .4rem; width: 100%; padding: .25rem .5rem; border-radius: 14px; background: color-mix(in oklab, var(--sav-color-primary) 11%, var(--sav-color-surface)); }
.dwait { display: grid; place-items: center; min-height: 40vh; }
.dempty { padding: 2rem 0; }
.dsec { font-size: .9rem; font-weight: 650; color: var(--sav-color-text-muted); margin: 1.3rem 0 .6rem; } .dsec:first-child { margin-top: .2rem; }
.tnote { display: block; margin-bottom: 1rem; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1rem; } .fgrid { gap: 1rem; } /* folders are cards as big as the files */
.dcard { position: relative; background: var(--card); border: 1px solid var(--sav-color-border); border-radius: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; outline: none; user-select: none; -webkit-user-select: none; }
.dcard:hover { border-color: color-mix(in oklab, var(--sav-color-primary) 40%, var(--sav-color-border)); box-shadow: 0 6px 20px rgb(10 50 90 / .09); }
.dcard:focus-visible { box-shadow: 0 0 0 2px var(--sav-color-focus); } .dcard.on { border-color: var(--sav-color-primary); box-shadow: 0 0 0 1px var(--sav-color-primary); background: color-mix(in oklab, var(--sav-color-primary) 7%, var(--card)); }
.dcard.over { outline: 2px dashed var(--sav-color-primary); outline-offset: 2px; }
.dcard.isf { display: flex; align-items: center; gap: .65rem; padding: .55rem .3rem .55rem .7rem; }
.dcard .pick { position: absolute; left: .55rem; top: .55rem; z-index: 2; opacity: 0; transition: opacity .15s; }
.dcard.isf .pick { position: static; opacity: 1; display: none; }
.dcard:hover .pick, .dcard.on .pick, .drive:has(.dcard.on) .dcard .pick { opacity: 1; } .drive:has(.dcard.on) .dcard.isf .pick, .dcard.isf:hover .pick { display: block; } .dcard.isf:hover .fic, .dcard.isf.on .fic, .drive:has(.dcard.on) .dcard.isf .fic { display: none; }
.fic { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; color: var(--fc); background: color-mix(in oklab, var(--fc) 14%, transparent); font-size: 1.3rem; flex: none; }
/* the tile of a folder (rows, details); on the cards a pile of sheets of its colour, leaning, that opens up on hover (Tilt, as the albums of SavPhotos) */
.fstack { position: relative; background: none; isolation: isolate; }
.fstack .ftile { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit; color: var(--fc); background: color-mix(in oklab, var(--fc) 14%, var(--card)); }
.fstack .fs { display: none; }
.dthumb.fthumb { background: radial-gradient(120% 100% at 30% 15%, color-mix(in oklab, var(--fc) 16%, var(--card)), color-mix(in oklab, var(--fc) 6%, var(--thumb))); }
.fthumb .fstack { width: 46%; height: auto; aspect-ratio: 1; border-radius: 20%; font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.fthumb .fstack .ftile sav-icon { font-size: inherit; }
.fthumb .fstack .ftile { transform: rotate(-4deg); background: linear-gradient(150deg, color-mix(in oklab, var(--fc) 30%, var(--card)), color-mix(in oklab, var(--fc) 14%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fc) 30%, transparent), 0 10px 22px -10px color-mix(in oklab, var(--fc) 60%, transparent); transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.fthumb .fstack .fs { display: block; position: absolute; inset: 0; z-index: 1; border-radius: inherit; border: 1px solid color-mix(in oklab, var(--fc) 32%, transparent); transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.fthumb .fstack .fs1 { background: color-mix(in oklab, var(--fc) 10%, var(--card)); transform: rotate(7deg) translate(6%, -2%); }
.fthumb .fstack .fs2 { background: color-mix(in oklab, var(--fc) 20%, var(--card)); transform: rotate(-13deg) translate(-6%, 3%); }
.dcard.isfo:hover .fstack .fs1, .dcard.isfo:focus-visible .fstack .fs1, .dcard.isfo.on .fstack .fs1 { transform: rotate(15deg) translate(16%, -5%); }
.dcard.isfo:hover .fstack .fs2, .dcard.isfo:focus-visible .fstack .fs2, .dcard.isfo.on .fstack .fs2 { transform: rotate(-21deg) translate(-16%, 5%); }
.dcard.isfo:hover .fstack .ftile, .dcard.isfo:focus-visible .fstack .ftile { transform: rotate(-1deg) translateY(-4%); }
/* the first files of the folder peek out of it from above: photos as they are, other files as a sheet with their icon */
.fthumb .fstack.haspeek .fs { inset: 4% 10% auto; height: 84%; border-radius: 14%; overflow: hidden; background: var(--card); border-color: color-mix(in oklab, var(--sav-color-text) 12%, transparent); box-shadow: 0 2px 10px rgb(0 0 0 / .14); }
.fthumb .fstack.haspeek .ftile { transform: rotate(-3deg) translateY(16%); }
.fthumb .fstack.haspeek .fs1 { transform: rotate(-11deg) translate(-24%, -24%); }
.fthumb .fstack.haspeek .fs2 { transform: rotate(10deg) translate(24%, -19%); }
.dcard.isfo:hover .fstack.haspeek .ftile, .dcard.isfo:focus-visible .fstack.haspeek .ftile { transform: rotate(-1deg) translateY(20%); }
.dcard.isfo:hover .fstack.haspeek .fs1, .dcard.isfo:focus-visible .fstack.haspeek .fs1, .dcard.isfo.on .fstack.haspeek .fs1 { transform: rotate(-16deg) translate(-38%, -30%); }
.dcard.isfo:hover .fstack.haspeek .fs2, .dcard.isfo:focus-visible .fstack.haspeek .fs2, .dcard.isfo.on .fstack.haspeek .fs2 { transform: rotate(15deg) translate(38%, -25%); }
.fstack .fs.fpimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fstack .fs.fpk { display: flex; align-items: flex-start; justify-content: center; gap: .18em; padding-top: 9%; color: var(--pc); font-size: .5em; background: linear-gradient(180deg, color-mix(in oklab, var(--pc) 14%, var(--card)), var(--card) 60%); }
.fstack .fs.fpk sav-icon { font-size: 1em; } .fstack .fs.fpk .appic { width: 1em; height: 1em; }
.fstack .fs.fpk em { font-style: normal; font-weight: 750; font-size: .4em; line-height: 2.5; letter-spacing: .03em; text-transform: uppercase; }
/* the left sheet lies over the right one: each shows its icon on its outer side, so neither covers the other's */
.fthumb .fstack.haspeek .fs2 { z-index: 0; }
.fstack .fs1.fpk { justify-content: flex-start; padding-left: 13%; } .fstack .fs2.fpk { justify-content: flex-end; padding-right: 13%; }
.fthumb .fstack.haspeek .fs:not(.fpk, .fpimg) { background: color-mix(in oklab, var(--fc) 14%, var(--card)); box-shadow: none; }
.pvlist { display: grid; gap: .7rem; margin-top: .5rem; }
/* the folder of an app of SavOffice: the icon of the app on its tile */
.fstack .ftile.apptile { background: linear-gradient(150deg, var(--card), color-mix(in oklab, var(--fc) 10%, var(--card))); }
.fstack .ftile.apptile .appic { width: 54%; height: auto; border-radius: 22%; }
.lvl .appic { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .fthumb .fstack .fs, .fthumb .fstack .ftile { transition: none; } }
.dname { display: grid; min-width: 0; flex: 1; line-height: 1.3; } .dname b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dname small { color: var(--sav-color-text-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inf { display: inline-flex !important; align-items: center; gap: .25rem; } .inf sav-icon { font-size: .8rem; }
.dthumb { position: relative; aspect-ratio: 4 / 3; margin: .45rem .45rem 0; border-radius: 11px; background: var(--thumb); display: grid; place-items: center; overflow: hidden; }
.dinfo { display: flex; align-items: center; gap: .2rem; padding: .55rem .3rem .6rem .8rem; }
.tic { display: grid; place-items: center; color: var(--fc); font-size: 1.35rem; position: relative; } .tic.big, .dthumb .tic { font-size: 2.6rem; } .tic em { position: absolute; bottom: -.15rem; right: -1.1rem; font: 700 .58rem/1 var(--sav-font); text-transform: uppercase; color: #fff; background: var(--fc); padding: .18rem .32rem; border-radius: 5px; letter-spacing: .02em; }
.tic.img { position: absolute; inset: 0; } .tic.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a skeleton while a picture is on its way (a card, the preview), as in SavPhotos */
.tload { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .tload::part(base) { border-radius: 0; }
.pvstage:has(.pvload) { position: relative; min-height: 50vh; } .pvload { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .pvload::part(base) { border-radius: 10px; }
.tic.app img { border-radius: 11px; filter: drop-shadow(0 4px 10px rgb(10 40 70 / .18)); }
.cglobe { position: absolute; right: .45rem; bottom: .45rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .94); color: #14202b; box-shadow: var(--sav-shadow-sm); font-size: .9rem; }
.starb { opacity: 0; transition: opacity .15s; } .dcard:hover .starb, .drow:hover .starb, .starb.on, .starb:focus-within { opacity: 1; } .starb:focus-visible { opacity: 1; }
/* rows */
.dlist { display: grid; background: var(--card); border: 1px solid var(--sav-color-border); border-radius: 16px; overflow: hidden; }
.lhead, .drow { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 9.5rem 6.5rem 5.2rem; align-items: center; gap: .6rem; padding: 0 .5rem 0 .8rem; }
.lhead { font-size: .76rem; font-weight: 650; color: var(--sav-color-text-muted); padding-top: .55rem; padding-bottom: .55rem; border-bottom: 1px solid var(--sav-color-border); }
.drow { min-height: 3.3rem; border-bottom: 1px solid var(--sav-color-border); cursor: pointer; outline: none; user-select: none; -webkit-user-select: none; } .drow:last-child { border-bottom: 0; }
.drow:hover { background: var(--sav-color-surface-2); } .drow:focus-visible { box-shadow: inset 0 0 0 2px var(--sav-color-focus); } .drow.on { background: color-mix(in oklab, var(--sav-color-primary) 10%, var(--card)); } .drow.over { outline: 2px dashed var(--sav-color-primary); outline-offset: -3px; }
.rname { display: flex; align-items: center; gap: .7rem; min-width: 0; } .rname > div { display: grid; min-width: 0; line-height: 1.3; } .rname b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rname small { color: var(--sav-color-text-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rname .fic { width: 2rem; height: 2rem; font-size: 1.05rem; border-radius: 8px; } .rname .tic { width: 2rem; font-size: 1.25rem; flex: none; } .rname .tic em { display: none; } .rname .tic.app img { width: 28px; height: 28px; border-radius: 7px; filter: none; }
.rmeta { display: none !important; } .lnk { color: var(--sav-color-text-muted); font-size: .85rem; display: grid; }
.lc-m, .lc-s { color: var(--sav-color-text-muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ract { display: flex; justify-content: flex-end; align-items: center; }
/* create with SavOffice */
.offrow { margin-bottom: 1.4rem; } .offhead { display: flex; align-items: center; } .offhead h2 { font-size: .9rem; font-weight: 650; color: var(--sav-color-text-muted); }
.offlist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr); gap: .7rem; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: .3rem -3px 0; } .offlist::-webkit-scrollbar { display: none; }
.offb { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--sav-color-border); border-radius: 14px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.offb:hover { border-color: var(--sav-color-primary); transform: translateY(-1px); } .offb:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; }
.offb img { border-radius: 9px; flex: none; } .offb span { display: grid; line-height: 1.25; min-width: 0; } .offb b { font-weight: 600; font-size: .9rem; } .offb small { color: var(--sav-color-text-muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kindhead { display: flex; align-items: center; gap: .8rem; } .kindhead img { border-radius: 11px; } .kindhead > div { display: grid; }
/* uploads */
.upanel { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; width: min(24rem, calc(100vw - 2rem)); --sav-card-padding: .8rem .9rem; }
.uhead { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; } .ulist { display: grid; gap: .5rem; max-height: 40vh; overflow: auto; }
.upanel.collapsed > :not(.uhead) { display: none; } .upanel.collapsed .uhead { margin-bottom: 0; }
.urow { display: flex; align-items: center; gap: .6rem; } .uic { display: grid; color: var(--sav-color-text-muted); font-size: 1.1rem; } .urow[data-state=done] .uic { color: var(--sav-color-success); } .urow[data-state=error] .uic, .uerr { color: var(--sav-color-danger); }
.uinfo { flex: 1; min-width: 0; display: grid; gap: .2rem; } .uname { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .uinfo small { font-size: .76rem; color: var(--sav-color-text-muted); }
/* moving, colours, sharing */
.mbox { max-height: 50vh; overflow: auto; border: 1px solid var(--sav-color-border); border-radius: 12px; padding: .3rem; } .mtree { display: block; } .mfi { color: var(--fc); display: inline-grid; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; } .swatch { display: grid; place-items: center; height: 3.4rem; border-radius: 12px; border: 2px solid transparent; background: color-mix(in oklab, var(--fc) 14%, transparent); color: var(--fc); font-size: 1.5rem; cursor: pointer; } .swatch[aria-pressed=true] { border-color: var(--fc); } .swatch:focus-visible { outline: 2px solid var(--sav-color-focus); }
.linkrow { display: flex; gap: .6rem; align-items: center; } .linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--sav-color-surface-2); padding: .5rem .7rem; border-radius: 8px; font-size: .85rem; }
.undo { margin-left: .6rem; }
/* previews */
.pv { --sav-dialog-padding: .8rem; }
.pvwrap { position: relative; display: grid; place-items: center; min-height: 50vh; background: var(--sav-color-surface-2); border-radius: 14px; overflow: hidden; }
/* a video keeps its custom controls at the very bottom: inset it so they are not clipped by the rounded preview (SavComponents is fine, this is only the preview frame) */
.pvwrap:has(.pvvid) { padding: .5rem .5rem .7rem; }
.pvstage { width: 100%; display: grid; place-items: center; }
.pvimg { max-width: 100%; max-height: 72vh; display: block; object-fit: contain; }
.pvpdf { width: 100%; height: 72vh; border: 0; background: #fff; display: block; }
.pvvid { width: 100%; max-height: 72vh; }
.pvaud { display: grid; gap: 1.2rem; justify-items: center; width: min(32rem, 100%); padding: 2rem 1rem; } .pvaud > sav-icon { font-size: 4rem; color: #86329e; } .pvaud sav-audio { width: 100%; }
.pvtext { width: 100%; max-height: 72vh; overflow: auto; margin: 0; padding: 1rem 1.2rem; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sav-color-surface); text-align: left; align-self: stretch; }
.pvnone { display: grid; gap: .6rem; justify-items: center; text-align: center; padding: 3rem 1rem; max-width: 28rem; } .pvnone img { border-radius: 16px; } .pvnone b { overflow-wrap: anywhere; }
.pvnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; } .pvnav.l { left: .5rem; } .pvnav.r { right: .5rem; } .pvnav sav-button { background: color-mix(in oklab, var(--sav-color-surface) 85%, transparent); border-radius: 50%; }
.pvinfo { display: flex; align-items: center; gap: .5rem; padding-top: .8rem; flex-wrap: wrap; }
/* a shared file */
.pubm { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem clamp(.8rem, 3vw, 2rem) 2rem; display: grid; gap: 1rem; }
.pubhead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } .pubhead h1 { font-size: 1.5rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pubview { display: grid; place-items: center; min-height: 50vh; background: var(--sav-color-surface-2); border-radius: 16px; overflow: hidden; }
.pubdesc { margin: -.3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pubuntil { display: inline-flex; align-items: center; gap: .45rem; align-self: start; padding: .4rem .75rem; border-radius: 999px; font-size: .86rem; color: var(--sav-color-text-muted); background: var(--sav-color-surface-2); } .pubuntil svg { width: 1rem; height: 1rem; } .pubuntil-left { font-variant-numeric: tabular-nums; color: var(--sav-color-text); font-weight: 600; }
/* scheduled release ("embargo") */
.embm { min-height: 60vh; place-items: center; }
.embcard { display: grid; justify-items: center; gap: .7rem; text-align: center; max-width: 34rem; padding: 2rem 1.4rem; background: var(--sav-color-surface-2); border-radius: 18px; }
.embcard h1 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.embicon { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: color-mix(in srgb, var(--fc, #0a6fb0) 15%, transparent); color: var(--fc, #0a6fb0); animation: emb-float 3s ease-in-out infinite; } .embicon svg { width: 2rem; height: 2rem; }
/* "in attesa": anelli che si espandono (sonar) dietro l'icona, e un leggero galleggiamento */
.embicon::before, .embicon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fc, #0a6fb0); opacity: 0; animation: emb-pulse 2.6s ease-out infinite; pointer-events: none; }
.embicon::after { animation-delay: 1.3s; }
@keyframes emb-pulse { 0% { transform: scale(1); opacity: .5; } 70% { opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes emb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .embicon, .embicon::before, .embicon::after { animation: none; } }
.embdesc { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.embtime { display: grid; gap: .5rem; justify-items: center; } .embtime p { margin: 0; } .embat { font-size: 1.1rem; font-weight: 600; }
/* dynamic countdown, SavComponents "soft": one rounded card per unit */
.countdown { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .2rem; }
.cu { display: grid; justify-items: center; gap: .2rem; min-width: 3.6rem; padding: .6rem .55rem .5rem; border-radius: 16px; background: var(--sav-color-surface); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 6px 16px rgb(0 0 0 / .05), inset 0 0 0 1px color-mix(in oklab, var(--sav-color-primary) 12%, transparent); }
.cu-v { font-size: 1.85rem; font-weight: 650; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--sav-color-text); display: inline-block; }
.cu-v.tick { animation: cu-pop .45s cubic-bezier(.2, .9, .3, 1); }
.cu-l { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sav-color-text-muted); }
.embopen { display: inline-flex; align-items: center; gap: .5rem; margin: .2rem 0 0; color: var(--sav-color-primary, #0a6fb0); font-weight: 600; }
.shlock { display: block; color: var(--coral, #c45a0c); }
/* availability ended: a static (non-pulsing) icon in the coral tone */
.embgone, .embgone::before, .embgone::after { animation: none; } .embgone { background: color-mix(in srgb, var(--coral, #c45a0c) 15%, transparent); color: var(--coral, #c45a0c); }
@keyframes cu-pop { 0% { transform: scale(1); } 32% { transform: scale(1.16); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cu-v.tick { animation: none; } }
.embauto { margin: .2rem 0 0; }
.shsep { border: none; border-top: 1px solid var(--sav-color-border); margin: .4rem 0 0; width: 100%; }
.embargo { display: grid; gap: .7rem; } .embargo .segm.shavail { width: 100%; }
.shbody { display: grid; gap: .7rem; } .shshow { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; border: 1px solid var(--sav-color-border); border-radius: 10px; padding: .6rem .8rem; margin: 0; } .shshow legend { font-size: .8rem; color: var(--sav-color-text-muted); padding: 0 .3rem; }
.shactions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; } .shstatus { display: block; }
@media (max-width: 480px) { .shshow { grid-template-columns: 1fr; } }
/* administration */
.ah { font-size: 1.5rem; letter-spacing: -.025em; margin: .3rem 0 1rem; } .amain2 .acard { display: block; margin: 1rem 0; max-width: 46rem; } .acard h2 { font-size: 1.05rem; }
.atools { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; } .atools > sav-input { flex: 1 1 16rem; max-width: 26rem; }
.ulist2 { display: grid; gap: .6rem; } .wbar { display: block; }
.ucard { --sav-card-padding: .85rem 1rem; display: block; }
.urow2 { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto minmax(9rem, 1fr) auto; align-items: center; gap: .6rem 1rem; }
.uwho { display: grid; min-width: 0; line-height: 1.35; } .uwho b { display: flex; align-items: center; gap: .4rem; } .uwho small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ustate { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; } .uspace { display: grid; gap: .3rem; min-width: 0; } .uspace small { color: var(--sav-color-text-muted); font-size: .78rem; }
.uact { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 1100px) { .urow2 { grid-template-columns: auto minmax(0, 1fr) auto; } .uspace { grid-column: 2 / -1; } .uact { grid-column: 1 / -1; justify-content: flex-start; } }
/* settings and what's new */
.smain { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1rem clamp(.8rem, 3vw, 2rem) 2rem; } .shd { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; } .shd h1 { font-size: 1.5rem; letter-spacing: -.025em; }
.otabs { margin-top: 1rem; --sav-tab-vertical-rail: transparent; } .otabs[placement="start"] { min-height: 60vh; }
.osec { display: grid; gap: .5rem; max-width: 46rem; } .osec h2 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0; } .osec > .muted { margin: 0 0 .4rem; }
.ocard { --sav-card-padding: 0; margin: 0; } .orows { display: grid; }
.orow { display: flex; align-items: center; gap: 1rem 1.6rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--sav-color-border); } .orow:last-child { border-bottom: 0; }
.orow-t { flex: 1; min-width: 0; display: grid; gap: .3rem; } .orow-t small { color: var(--sav-color-text-muted); font-size: .84rem; } .orow-c { flex: none; max-width: 55%; display: flex; justify-content: flex-end; } .orow-c > sav-select, .orow-c > sav-input { width: 15rem; max-width: 100%; }
.chlog .vlist { display: grid; gap: 1rem; margin-top: 1.2rem; max-width: 46rem; }
.vcard { background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); border-radius: 16px; padding: 1rem 1.2rem 1.1rem; }
.vhead { display: flex; align-items: center; gap: .6rem; } .vhead time { color: var(--sav-color-text-muted); font-size: .85rem; }
.vcard ul { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; } .vcard li { line-height: 1.45; }
@media (max-width: 700px) { .orow { flex-wrap: wrap; } .orow-c { max-width: 100%; width: 100%; justify-content: flex-start; } .orow-c > sav-select, .orow-c > sav-input { width: 100%; } }

/* phones and small tablets: the side menu becomes a row, the space a line under it */
@media (max-width: 900px) {
  .hbody { grid-template-columns: minmax(0, 1fr); gap: .8rem; } .htop { flex-wrap: wrap; gap: .6rem; } .hsearch { order: 3; flex: 1 0 100%; margin: 0; }
  .hside { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4rem; }
  .hside .newd { margin: 0; flex: none; width: auto; } .hside .newb { width: auto; }
  .hside > sav-menu { flex: 1 1 100%; min-width: 0; order: 3; overflow-x: auto; scrollbar-width: none; } .hside > sav-menu::-webkit-scrollbar { display: none; } .hside > sav-menu::part(base) { display: flex; flex-direction: row; width: max-content; } .hside sav-menu-item { white-space: nowrap; } .hside sav-divider { display: none; }
  .quota { flex: 1 1 10rem; order: 2; border: 0; margin: 0; padding: 0 .2rem; gap: .25rem; } .quota .qhead { display: none; } .quota small { font-size: .76rem; }
  .dhead:has(.selbar) { top: 0; }
  .lhead, .drow { grid-template-columns: 2.2rem minmax(0, 1fr) 2.6rem; gap: .5rem; } .lc-m, .lc-s { display: none; } .rmeta { display: block !important; } .starb { display: none; }
  .dcard .pick { opacity: 1; } .dcard.isf .pick { display: none; }
}
@media (max-width: 640px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .dhead h1 { font-size: 1.2rem; } .dhead sav-button .lbl { display: none; }
  .offlist { grid-auto-columns: minmax(9.5rem, 1fr); } .pvpdf { height: 65vh; }
  .urow2 { grid-template-columns: auto minmax(0, 1fr); } .ustate { grid-column: 2; flex-direction: row; }
  .credit .langs { margin-left: 0; }
}
/* the space, app by app (one space for the whole of SavOffice) */
.qparts { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .78rem; color: var(--sav-color-text-muted); }
.qparts li { display: flex; align-items: center; gap: .4rem; min-width: 0; } .qparts img { border-radius: 4px; flex: none; } .qparts span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qparts b { font-weight: 600; color: var(--sav-color-text); }
.qparts.row { display: flex; flex-wrap: wrap; gap: .2rem .8rem; } .qparts.row span { flex: none; }
@media (max-width: 900px) { .quota .qparts { display: none; } }
/* sharing: levels, people, comments */
.rtag, .ptag { display: inline-flex; align-items: center; gap: .25rem; flex: none; font-size: .72rem; font-weight: 600; color: var(--sav-color-text-muted); padding: .1rem .45rem; border-radius: 99px; background: var(--sav-color-surface-2); white-space: nowrap; }
.ptag { padding: .25rem; color: var(--sav-color-primary); }
.rtag sav-icon, .ptag sav-icon { font-size: .8rem; }
.dcard.viewonly, .drow.viewonly { opacity: .62; } .dcard.viewonly .dthumb { filter: grayscale(.6); }
.crumbwrap { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .lvl { flex: none; }
.pbox { display: grid; gap: .8rem; } .padd { display: flex; gap: .5rem; align-items: center; } .padd .lvsel, .prow2 .lvsel { width: 10.5rem; flex: none; }
.ph { font-size: .9rem; margin: .4rem 0 0; } .plist2 { display: grid; gap: .1rem; max-height: 46vh; overflow: auto; }
.prow2 { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--sav-color-border); } .prow2:last-child { border-bottom: 0; }
.pwho { flex: 1; min-width: 0; display: grid; line-height: 1.3; } .pwho b, .pwho small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pwho b { font-weight: 600; }
.clist { display: grid; gap: .7rem; max-height: 46vh; overflow: auto; } .cm { display: flex; gap: .6rem; align-items: flex-start; } .cmb { flex: 1; min-width: 0; } .cmh { display: flex; align-items: center; gap: .5rem; } .cmb p { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .padd { flex-wrap: wrap; } .padd .lvsel, .prow2 .lvsel { width: 100%; } .prow2 { flex-wrap: wrap; } .rtag span { display: none; } }
.dname .rtag, .dname .ptag { justify-self: start; margin-top: .2rem; }
/* the drop area reaches the bottom of the page */
.drive .hbody { align-content: stretch; } .drive .dmain { min-height: 0; }
/* phones and tablets: the menu is a row on top, and only the content below it takes the height left (stretched, the two rows
   shared it, and every section began halfway down the page) */
@media (max-width: 900px) { .drive .hbody { grid-template-rows: auto minmax(0, 1fr); } }
/* previews in the cards: text and JSON, documents, spreadsheets, slides */
.tic.cprev { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.tic.cprev.filled { place-items: stretch; }
/* files of SavOffice drawn by their apps (preview.js): a slide in the middle, a page peeking from the top, a sheet filling the card */
.cprev .oview { width: 100%; min-width: 0; overflow: hidden; }
.cprev .oview.oslides { align-self: center; justify-self: center; width: 84%; border-radius: 5px; box-shadow: 0 2px 10px rgb(0 0 0 / .14), 0 0 0 1px rgb(0 0 0 / .05); }
.cprev .oview.opage { align-self: start; justify-self: center; width: 76%; margin-top: 7%; border-radius: 3px; box-shadow: 0 2px 10px rgb(0 0 0 / .14), 0 0 0 1px rgb(0 0 0 / .05); }
.cprev .oview.oboard { align-self: stretch; height: 100%; display: grid; place-items: center; } .cprev .oview.oboard img { width: 100%; height: 100%; object-fit: cover; }
.cprev:has(.opage), .cprev:has(.oslides) { background: color-mix(in oklab, var(--sav-color-text) 5%, var(--thumb)); }
.pvstage > .oview.big { width: min(960px, 100%); max-height: 72vh; overflow: auto; align-self: stretch; padding: 18px; border-radius: 10px; background: color-mix(in oklab, var(--sav-color-text) 6%, var(--sav-color-surface)); }
.pvstage > .oview.big.osheet { background: #fff; padding: 0; }
.tprev { margin: 0; padding: .55rem .65rem; font: 9px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--sav-color-text-muted); white-space: pre; overflow: hidden; text-align: left; background: var(--sav-color-surface); }
.dprev { margin: .5rem .9rem 0; padding: .7rem .8rem; background: #fff; color: #222; border-radius: 4px 4px 0 0; box-shadow: 0 2px 8px rgb(0 0 0 / .15); overflow: hidden; font: 7px/1.4 Georgia, serif; text-align: left; }
.dprev b { display: block; font: 700 9px/1.25 var(--sav-font); margin: .1rem 0 .3rem; } .dprev p { margin: 0 0 .3rem; } .dprev .li::before { content: "• "; }
.dprev.big { margin: 0 auto; width: min(46rem, 100%); padding: 2.4rem 2.6rem; font-size: 15px; line-height: 1.6; border-radius: 6px; max-height: 72vh; overflow: auto; }
.dprev.big h2 { font: 700 1.5rem/1.2 var(--sav-font); margin: 0 0 1rem; } .dprev.big b { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.sprev { overflow: hidden; background: #fff; color: #222; } .sprev table { border-collapse: collapse; font: 8px/1.2 var(--sav-font); width: 100%; table-layout: fixed; }
.sprev th, .sprev td { border: 1px solid #dde2e6; padding: .15rem .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sprev th { background: #eef2f5; color: #66727c; font-weight: 600; }
.sprev.big { max-height: 72vh; overflow: auto; width: 100%; } .sprev.big table { font-size: 13px; table-layout: auto; } .sprev.big th, .sprev.big td { padding: .3rem .5rem; min-width: 5rem; }
.pslide { position: relative; width: 86%; margin: auto; background: #fff; color: #222; border-radius: 4px; box-shadow: 0 2px 8px rgb(0 0 0 / .18); overflow: hidden; container-type: inline-size; align-self: center; justify-self: center; }
.pslide span { position: absolute; overflow: hidden; line-height: 1.15; font-family: var(--sav-font); } .pslide span.ttl { font-weight: 700; }
.pslide.big { width: min(60rem, 100%); }
.pvnote { text-align: center; margin: .6rem 0 0; font-size: .85rem; }
/* what is inside an archive: the window (a tree) and the cards (the first names) */
.arcv { align-self: stretch; width: 100%; display: grid; gap: .6rem; padding: 1rem; text-align: left; }
.ahead { display: flex; align-items: center; gap: .7rem; } .ahead .tic { font-size: 2rem; } .ahead > div { display: grid; gap: .1rem; min-width: 0; }
.anote { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .55rem .8rem; border-radius: 10px; background: var(--sav-color-surface); font-size: .88rem; } .anote sav-icon { flex: none; margin-top: .15rem; color: var(--sav-color-text-muted); }
.anote.warn { background: color-mix(in oklab, #b7791f 14%, var(--sav-color-surface)); } .anote.warn sav-icon { color: #b7791f; }
.atree { max-height: 58vh; overflow: auto; padding: .3rem 0; border: 1px solid var(--sav-color-border); border-radius: 12px; background: var(--sav-color-surface); }
.ar { display: grid; grid-template-columns: 1rem 1.15rem minmax(0, 1fr) auto 7.5rem; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem calc(.8rem + var(--d, 0) * 1.2rem); font-size: .9rem; line-height: 1.3; }
.ar > sav-icon { color: var(--sav-color-text-muted); } .adet > summary > sav-icon:first-of-type { color: #5f7d95; }
summary.ar { list-style: none; cursor: pointer; border-radius: 0; } summary.ar::-webkit-details-marker { display: none; } summary.ar:hover { background: var(--sav-color-surface-2); }
.ach { display: grid; place-items: center; color: var(--sav-color-text-muted); font-size: .8rem; } .ach sav-icon { transition: transform .15s; } .adet[open] > summary .ach sav-icon { transform: rotate(90deg); }
.an { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .as, .ad { color: var(--sav-color-text-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pvwrap:has(.pvnav) .arcv { padding-inline: 3.4rem; } /* the arrows to the files next to it stay outside the tree */
@media (max-width: 600px) { .ar { grid-template-columns: 1rem 1.15rem minmax(0, 1fr) auto; } .ar .ad { display: none; } .arcv { padding: .6rem; } .pvwrap:has(.pvnav) .arcv { padding-inline: 2.8rem; } }
.aprev { display: grid; align-content: start; gap: .2rem; padding: .6rem .7rem; overflow: hidden; background: var(--sav-color-surface); text-align: left; }
.aprev .ar { grid-template-columns: auto minmax(0, 1fr); gap: .35rem; padding: 0; font-size: 10px; color: var(--sav-color-text-muted); } .aprev .ar sav-icon { font-size: 11px; }
.aprev .ar.top { color: var(--sav-color-text); font-weight: 600; } .aprev .ar.more { display: block; padding-left: 1.05rem; font-style: italic; }
.pvstage { flex-direction: column; }
/* the panel of details */
.ipanel { display: none; }
.hbody.withinfo { grid-template-columns: 15rem minmax(0, 1fr) 19rem; }
.hbody.withinfo .ipanel { display: block; align-self: start; position: sticky; top: 4.6rem; max-height: calc(100dvh - 6rem); overflow: auto; background: var(--card); border: 1px solid var(--sav-color-border); border-radius: 18px; padding: 1rem; }
.ipanel.indialog { display: block; }
.ihead { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; } .ihead h3 { flex: 1; min-width: 0; font-size: 1rem; overflow-wrap: anywhere; } .iic { display: grid; font-size: 1.3rem; color: var(--sav-color-text-muted); } .iic .fic { width: 2.2rem; height: 2.2rem; }
.ithumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--thumb); display: grid; place-items: center; overflow: hidden; margin-bottom: .8rem; } .ithumb .tic { font-size: 2.6rem; }
.irows { margin: 0; display: grid; gap: .55rem; } .irow { display: grid; gap: .1rem; } .irow dt { font-size: .74rem; color: var(--sav-color-text-muted); font-weight: 600; } .irow dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.irow dd a { color: inherit; } .iact { margin-top: 1rem; } .ihint { margin-top: 1rem; }
@media (max-width: 1200px) { .hbody.withinfo { grid-template-columns: 13rem minmax(0, 1fr) 16rem; } }
@media (max-width: 900px) { .hbody.withinfo { grid-template-columns: minmax(0, 1fr); } .hbody.withinfo .ipanel { display: none; } }
.tic.cwrap { position: absolute; inset: 0; } .appbadge { position: absolute; left: .45rem; bottom: .45rem; display: grid; padding: 3px; border-radius: 8px; background: var(--card); box-shadow: var(--sav-shadow-sm); } .appbadge img { border-radius: 5px; }
/* a space: a number and its unit, side by side and of the same height */
.sizef { display: flex; align-items: flex-end; gap: .5rem; } .sizef .unitsel { width: 6.5rem; flex: none; } .fhelp { margin: .35rem 0 0; }
/* the upload panel: how long it has taken and how long it still needs */
.upanel .utitle { display: grid; gap: .1rem; min-width: 0; } .upanel .utime { font-size: .78rem; font-variant-numeric: tabular-nums; }
/* the Vault (vault.js): encrypted in the browser */
.vwrap { display: grid; justify-items: center; padding: .4rem 0 2rem; }
.vlcard { width: min(40rem, 100%); } .vlcard.vsmall { width: min(31rem, 100%); }
.vlcard::part(body) { padding: clamp(1rem, 3vw, 1.6rem); }
.vhero { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; } .vhero h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: .1rem 0 .3rem; } .vhero p { margin: 0; line-height: 1.5; }
.vbig { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 16px; font-size: 1.6rem; color: var(--sav-color-primary); background: color-mix(in oklab, var(--sav-color-primary) 13%, var(--sav-color-surface)); transform: rotate(-3deg); }
.vfacts { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.vfacts li { display: flex; gap: .7rem; align-items: flex-start; } .vfacts li > div { display: grid; gap: .1rem; min-width: 0; } .vfacts small { color: var(--sav-color-text-muted); line-height: 1.45; }
.vfi { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; color: var(--sav-color-primary); background: var(--sav-color-surface-2); }
.vform { display: grid; gap: .9rem; } .verr[hidden] { display: none; }
.vabout { margin-top: 1rem; border-top: 1px solid var(--sav-color-border); padding-top: .6rem; } .vabout .vfacts { margin: .6rem 0 0; }
.vcode { display: block; padding: .9rem 1rem; border-radius: 12px; background: var(--sav-color-surface-2); border: 1px dashed var(--sav-color-border); font: 600 1.05rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-align: center; word-break: break-all; user-select: all; -webkit-user-select: all; }
.vnote { margin-bottom: 1rem; }
.venc sav-icon, .lvl sav-icon { margin-right: .25rem; }
.vtprog { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; } .vtprog sav-progress-bar { flex: 1; min-width: 8rem; }
.vtext { margin: 0; width: 100%; max-height: 70vh; overflow: auto; padding: 1rem; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; background: var(--sav-color-surface-2); border-radius: 12px; text-align: left; }
@media (max-width: 640px) { .vhero { flex-direction: column; gap: .7rem; } .vlcard::part(body) { padding: 1rem; } .venc .vbt { display: none; } }
.vpin { justify-self: start; max-width: 100%; } .vlen { justify-self: start; } .vuntil sav-icon { margin-right: .25rem; }
@media (max-width: 640px) { .vuntil { display: none; } }
.vsteps { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.45; }
.vreset p { margin: 0 0 .6rem; }
/* temporary files (assets/temp.js): the dialog, the place "Temporary", the page of who receives a link */
.tdlg .texp::part(base), .texp { flex-wrap: wrap; } .texp sav-radio { flex: 1 1 auto; }
.tfiles { display: grid; gap: .1rem; max-height: 14rem; overflow: auto; } .tfiles:empty { display: none; }
.tfile { display: flex; align-items: center; gap: .6rem; min-height: 2.4rem; padding: .15rem .3rem; border-radius: 8px; } .tfile:hover { background: var(--sav-color-surface-2); }
.tfile .tic { font-size: 1.15rem; flex: none; } .tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tfile small { flex: none; }
.tdone { display: flex; align-items: center; gap: .8rem; } .tdone > div { display: grid; gap: .1rem; min-width: 0; } .tdone b { overflow-wrap: anywhere; }
.tdoneic { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklab, #13a079 16%, transparent); color: #13a079; font-size: 1.3rem; }
.tdoneic.run { background: color-mix(in oklab, var(--sav-color-primary) 14%, transparent); color: var(--sav-color-primary); }
.tfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; } .tfacts li { display: flex; align-items: center; gap: .5rem; } .tfacts sav-icon { color: var(--sav-color-text-muted); flex: none; }
.tlist { display: grid; background: var(--card); border: 1px solid var(--sav-color-border); border-radius: 16px; overflow: hidden; }
.tcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--sav-color-border); } .tcard:last-child { border-bottom: 0; }
.tcic { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: color-mix(in oklab, var(--fc) 12%, transparent); font-size: 1.3rem; }
.tmain { display: grid; gap: .2rem; min-width: 0; } .tmain .tname { font-size: .98rem; }
.tstate { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .15rem; } .tstate sav-badge sav-icon { margin-right: .25rem; font-size: .85em; vertical-align: -.1em; }
.tflag { color: var(--sav-color-text-muted); display: inline-grid; place-items: center; padding: 0 .15rem; }
.tact { display: flex; align-items: center; gap: .15rem; }
@media (max-width: 640px) {
  .tcard { grid-template-columns: auto minmax(0, 1fr); padding: .8rem; } .tact { grid-column: 1 / -1; justify-content: flex-end; } .tact .tcopy { margin-right: auto; }
}
.tpub .tpm { width: 100%; max-width: 40rem; margin: 0 auto; padding: clamp(1rem, 5vh, 3.5rem) clamp(.8rem, 3vw, 1.5rem) 2rem; }
.tbox { display: block; } .tbox::part(body) { display: grid; gap: 1.1rem; padding: clamp(1.1rem, 4vw, 1.8rem); }
.tbox > * + * { margin-top: 1.1rem; }
.thead { display: flex; align-items: center; gap: 1rem; min-width: 0; } .tht { min-width: 0; display: grid; gap: .15rem; }
.tht h1 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; margin: 0; } .tht p { margin: 0; }
.tbig { --fc: var(--sav-color-primary); width: 3.6rem; height: 3.6rem; flex: none; display: grid; place-items: center; border-radius: 16px; background: color-mix(in oklab, var(--fc) 13%, transparent); color: var(--fc); font-size: 1.8rem; }
.tmsg { margin: 0; padding: .8rem 1rem; border-left: 3px solid var(--sav-color-primary); background: var(--sav-color-surface-2); border-radius: 0 10px 10px 0; display: grid; gap: .25rem; } .tmsg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tplist { display: grid; border: 1px solid var(--sav-color-border); border-radius: 12px; overflow: hidden; }
.tprow { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-bottom: 1px solid var(--sav-color-border); } .tprow:last-child { border-bottom: 0; } .tprow .tic { font-size: 1.2rem; flex: none; }
.tpn { flex: 1; min-width: 0; display: grid; } .tpn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tfoot { text-align: center; margin-bottom: 0; }
.tlock { justify-items: center; text-align: center; } .tlock h1 { font-size: 1.35rem; margin: 0; } .tlock p { margin: 0; } .tlock sav-password, .tlock sav-button { width: 100%; }
/* phones and tablets: the places in the bar at the bottom (SavOffice.bottomNav); the row of places at the top is left out */
@media (max-width: 900px) {
  .hside > sav-menu.dnav { display: none; } .upanel { bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
}
/* the link as a QR code (share dialog) */
.qrwrap { display: grid; gap: .7rem; justify-items: start; } .qrbox { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; align-items: center; width: 100%; } .qrbox[hidden] { display: none; } .qrbox .stack { justify-items: start; }
.qr svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--sav-color-border); }
@media (max-width: 480px) { .qrbox { grid-template-columns: 1fr; } .qr { max-width: 12rem; } }
