/* MLF — styles from the approved design (MLF App.dc.html). Light design only.
   English only, left-to-right. */
:root {
  --y: #FFFC00; --k: #000000; --w: #FFFFFF;
  --g700: #5C5C5C; --g300: #CCCCCC; --g150: #EBEBEB; --g100: #F2F2F2; --err: #FFFDE0;
  --line: #E0E0E0; --g230: #E6E6E6; --g999: #999999; --g333: #333333;
  --stripe: repeating-linear-gradient(135deg, #F2F2F2 0 6px, #E6E6E6 6px 12px);
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --nav-h: calc(84px + env(safe-area-inset-bottom, 0px) * .4);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--w); color: var(--k); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
h1 { margin: 0; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- helpers */
.muted { color: var(--g700); } .blk { color: var(--k); } .b4 { font-weight: 400; } .b5 { font-weight: 500; } .b6 { font-weight: 600; } .b7 { font-weight: 700; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs15 { font-size: 15px; } .fs17 { font-size: 17px; } .fs20 { font-size: 20px; }
.lh145 { line-height: 1.45; } .lh15 { line-height: 1.5; } .lh155 { line-height: 1.55; }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; } .mono12 { font: 400 12px var(--mono); } .mono-s { font: 400 11px var(--mono); display: block; } .mono-c { font: 500 12px var(--mono); }
.mono-s, .mono12 { unicode-bidi: plaintext; }
.meta11 { font-size: 11px; color: var(--g700); } .meta12 { font-size: 12px; color: var(--g700); } .tiny { font-size: 11px; } .center { text-align: center; } .ul { text-decoration: underline; }
.minw0 { min-width: 0; } .grow { flex: 1; } .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.h15 { font-size: 15px; font-weight: 600; } .h16 { font-size: 16px; font-weight: 600; } .h17 { font-size: 17px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.h19 { font-size: 19px; font-weight: 600; line-height: 1.3; } .h20 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.px20 { padding-inline: 20px; } .pad20 { padding: 0 20px; } .pad { padding: 14px 0; } .pad0 { padding: 6px 0; }
.mx20 { margin-inline: 20px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; } .mb20 { margin-bottom: 20px; } .mt-4 { margin-top: -4px; }
.pt4 { padding-top: 4px; } .pt6 { padding-top: 6px; } .pt8 { padding-top: 8px; } .pt10 { padding-top: 10px; } .pt12 { padding-top: 12px; } .pt14 { padding-top: 14px; } .pt16 { padding-top: 16px; } .pt18 { padding-top: 18px; } .pt20 { padding-top: 20px; } .pt22 { padding-top: 22px; } .pb2 { padding-bottom: 2px; } .pb8 { padding-bottom: 8px; } .pb12 { padding-bottom: 12px; }
.col0 { display: flex; flex-direction: column; } .col6 { display: flex; flex-direction: column; gap: 6px; } .col8 { display: flex; flex-direction: column; gap: 8px; } .col10 { display: flex; flex-direction: column; gap: 10px; } .col12 { display: flex; flex-direction: column; gap: 12px; } .col14 { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .row8 { display: flex; gap: 8px; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b7 { font-weight: 700; }
.sub14 { padding: 24px 20px 10px; font-size: 14px; font-weight: 600; }
.mlabel { padding: 18px 20px 8px; font: 600 11px var(--mono); letter-spacing: .5px; color: var(--g700); }

/* ---------- shell: fills the whole window, no frame */
#app { min-height: 100dvh; }
.shell { min-height: 100dvh; }
.main { min-height: 100dvh; display: flex; flex-direction: column; }
.with-nav .main { padding-bottom: var(--nav-h); }
.page { flex: 1; display: flex; flex-direction: column; width: 100%; padding-bottom: 20px; }
.bare { min-height: 100dvh; display: flex; flex-direction: column; background: var(--w); }
.bare.dark { background: var(--k); color: var(--w); }
.side { display: none; }
.bnav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; height: var(--nav-h); padding: 9px 4px calc(26px + var(--safe-b) * .4); background: var(--w); border-top: 1px solid var(--g150); display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--g700); font-size: 10px; font-weight: 500; }
.tab.on { color: var(--k); font-weight: 700; }
.nic { height: 22px; display: flex; align-items: center; justify-content: center; }
.nic i { display: block; }
.nic-home { flex-direction: column; justify-content: flex-end; align-items: flex-start; width: 20px; }
.nic-home i:nth-child(1) { width: 9px; height: 4px; background: currentColor; border-radius: 2px 2px 0 0; }
.nic-home i:nth-child(2) { width: 20px; height: 14px; background: currentColor; border-radius: 0 3px 3px 3px; }
.nic-home i:nth-child(3), .nic-ads i:nth-child(3) { display: none; }
.nic-stats { align-items: flex-end; gap: 3px; padding-bottom: 2px; }
.nic-stats i { width: 4px; background: currentColor; border-radius: 1px; }
.nic-stats i:nth-child(1) { height: 8px; } .nic-stats i:nth-child(2) { height: 16px; } .nic-stats i:nth-child(3) { height: 11px; }
.nic-ads { flex-direction: column; justify-content: flex-end; }
.nic-ads i:nth-child(1) { width: 20px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }
.nic-ads i:nth-child(2) { width: 2px; height: 6px; background: currentColor; }
.nic-trend i:nth-child(1) { width: 0; height: 0; border-inline: 9px solid transparent; border-bottom: 15px solid currentColor; }
.nic-trend i:nth-child(n+2) { display: none; }
.nic-follow i { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; }
.nic-follow i:nth-child(2) { margin-inline-start: -4px; } .nic-follow i:nth-child(3) { display: none; }

.offline { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 9px 20px; background: var(--k); color: var(--w); font-size: 12px; font-weight: 600; line-height: 1.4; }
.offline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); flex-shrink: 0; }

/* laptop: the same five tabs become a side bar; content fills the rest of the window */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .with-nav .main { padding-bottom: 0; }
  .bnav { display: none; }
  .side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100dvh; padding: 24px 16px; border-inline-end: 1px solid var(--g150); background: var(--w); }
  .side-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 8px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav .tab { flex-direction: row; gap: 14px; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
  .side-nav .tab .nic { width: 24px; }
  .side-nav .tab:hover { background: var(--g100); }
  .side-nav .tab.on { background: var(--g100); }
  .side-extra { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--g150); padding-top: 12px; }
  .side-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
  .side-link:hover { background: var(--g100); }
  .side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 13px; }
  .side-me:hover { background: var(--g100); }
  .side-me b { display: block; font-weight: 600; }
  .page { padding-bottom: 32px; }
  .narrow { max-width: 680px; margin-inline: auto; }
  .page.narrow { width: 100%; }
}
@media (min-width: 1200px) { .shell { grid-template-columns: 272px minmax(0, 1fr); } }

/* ---------- headers */
.subhead { padding: 14px 16px 0; display: flex; align-items: center; gap: 12px; }
.subhead-b { border-bottom: 1px solid var(--g150); }
.subhead-t { flex: 1; min-width: 0; }
.subhead-t .h20, .subhead-t .h15 { overflow-wrap: anywhere; }
.crumb { font-size: 12px; color: var(--g700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--g300); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--w); }
.sq:hover, .hbtn:hover { background: var(--g100); }
.hbtn { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--g300); display: flex; align-items: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.ptitle { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ptitle h1 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.lnk { font-size: 13px; font-weight: 600; color: var(--k); cursor: pointer; flex-shrink: 0; }
.lnk:hover { text-decoration: underline; }
.lnk:disabled { color: var(--g999); text-decoration: none; }
.lnk.end { align-self: flex-end; }
.lnk-muted { font-size: 12px; color: var(--g700); }
.lnk-muted:hover { color: var(--k); }
.shead { padding: 18px 20px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shead.wrap { flex-wrap: wrap; }
.shead-l { font-size: 14px; font-weight: 600; }

/* ---------- buttons */
.btn { height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; padding: 0 20px; width: 100%; transition: transform .08s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--k); color: var(--w); }
.btn-secondary { border: 1.5px solid var(--k); background: var(--w); }
.btn-accent { background: var(--y); color: var(--k); }
.btn:disabled:not(.is-busy) { background: var(--g230); color: var(--g999); border-color: transparent; }
.btn.is-busy { opacity: .85; }
.btn-sm { height: 36px; border-radius: 10px; font-size: 13px; padding: 0 16px; width: auto; }
.btn-xs { height: 34px; border-radius: 10px; font-size: 13px; padding: 0 16px; width: auto; }
.btn-md { height: 44px; border-radius: 12px; font-size: 14px; }
.btn-pay { width: auto; padding: 0 28px; flex-shrink: 0; }
.grid2 .btn-sm { width: 100%; }
.btn-text { height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; width: 100%; }
.btn-text:hover { text-decoration: underline; }
.btn38 { height: 38px; padding: 0 14px; border-radius: 11px; background: var(--k); color: var(--w); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.btn44 { flex: 1; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.btn44.solid { background: var(--k); color: var(--w); } .btn44.outline { border: 1.5px solid var(--k); }
.btn44:disabled { opacity: .5; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--w); animation: spin .7s linear infinite; flex-shrink: 0; }
.spin-d { border-color: rgba(0,0,0,.2); border-top-color: var(--k); }
@keyframes spin { to { transform: rotate(360deg); } }
.bang { width: 16px; height: 16px; border-radius: 50%; background: var(--k); color: var(--y); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-inline-end: 6px; vertical-align: -3px; }

/* ---------- fields */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-l { font-size: 12px; font-weight: 600; }
.fld-box { height: 52px; border-radius: 12px; border: 1px solid var(--g300); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 15px; background: var(--w); }
.fld-box.h48 { height: 48px; } .fld-box.h46 { height: 46px; }
.fld-box:focus-within { border: 2px solid var(--k); padding: 0 13px; }
.fld-box.err { border: 2px solid var(--k); background: var(--err); padding: 0 13px; }
.fld-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15px; }
.fld-box input::placeholder, .ta::placeholder { color: var(--g700); }
.fld-act { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.fld-err { font-size: 12px; font-weight: 600; display: flex; gap: 0; align-items: center; color: var(--k); }
.fld-ok, .fld-h { font-size: 12px; color: var(--g700); display: flex; gap: 6px; align-items: center; }
.okdot { width: 16px; height: 16px; border-radius: 50%; background: var(--y); border: 1px solid var(--k); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--k); }
.ta { width: 100%; border-radius: 12px; border: 1px solid var(--g300); padding: 12px 14px; font-size: 15px; resize: vertical; outline: 0; line-height: 1.5; background: var(--w); }
.ta:focus { border: 2px solid var(--k); padding: 11px 13px; }
.ta.err { border: 2px solid var(--k); background: var(--err); }
.infobox { padding: 12px 14px; border-radius: 12px; background: var(--g100); font-size: 13px; line-height: 1.55; }
.infobox.sm { padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.pnote { padding: 10px 12px; border-radius: 12px; background: var(--g100); display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.note-err { font-size: 12px; font-weight: 600; display: flex; align-items: center; }

/* segmented control */
.seg { display: grid; border: 1.5px solid var(--k); border-radius: 12px; overflow: hidden; font-size: 14px; font-weight: 600; text-align: center; }
.seg button { padding: 11px 4px; text-align: center; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--k); color: var(--w); border-color: var(--k); }
.seg button.on + button { border-inline-start-color: var(--k); }
.seg-s { font-size: 13px; } .seg-s button { padding: 10px 4px; }
.seg button:disabled { color: var(--g999); }

/* radio, toggle, check */
.rdot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--k); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rdot.on span { width: 10px; height: 10px; border-radius: 50%; background: var(--k); }
.tgl { width: 42px; height: 24px; border-radius: 12px; border: 1.5px solid var(--g999); background: var(--g150); position: relative; flex-shrink: 0; transition: background .15s; }
.tgl span { position: absolute; top: 2.5px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--g700); transition: inset-inline-start .15s; }
.tgl.on { background: var(--y); border-color: var(--k); }
.tgl.on span { inset-inline-start: 20px; background: var(--k); }
.cbox { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--g300); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cbox.on { background: var(--k); color: var(--y); border-color: var(--k); }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--k); color: var(--y); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* ---------- logo & avatars */
.logo-mark { display: block; flex-shrink: 0; }
.wordmark { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.wordmark span:first-child { font-weight: 700; letter-spacing: -1px; font-family: 'IBM Plex Sans', sans-serif; }
.wordmark span:last-child { font-weight: 500; letter-spacing: 1px; opacity: .7; margin-top: 3px; font-family: 'IBM Plex Sans', sans-serif; }
.av { display: inline-block; border-radius: 50%; background: var(--stripe); flex-shrink: 0; position: relative; overflow: hidden; }
.av-ali { background: var(--y); }
.av-ali i { position: absolute; background: var(--k); display: block; }
.av-mlf { background: var(--y); border: 1.5px solid var(--k); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- home */
.home-top { padding: 20px 20px 0; display: flex; align-items: center; gap: 12px; }
.gear { width: 40px; height: 40px; border: 1px solid var(--g300); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gear:hover { background: var(--g100); }
.gear-o { width: 22px; height: 22px; border-radius: 50%; border: 4px dotted var(--k); display: flex; align-items: center; justify-content: center; }
.gear-i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--k); }
.home-stats { padding: 12px 20px 14px; display: flex; gap: 18px; font-size: 13px; color: var(--g700); flex-wrap: wrap; }
.home-stats b { color: var(--k); font-weight: 600; }
.msgs { color: var(--k); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.msgs:hover { text-decoration: underline; }
.ybadge { font: 600 11px var(--mono); background: var(--y); border: 1px solid var(--k); border-radius: 6px; padding: 0 5px; color: var(--k); }
.balbox { margin: 0 20px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--w); }
.bal-p { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-start-start-radius: 12px; border-end-start-radius: 12px; }
.bal-p b { font-size: 22px; font-weight: 700; line-height: 1.2; }
.bal-s { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--line); border-start-end-radius: 12px; border-end-end-radius: 12px; justify-content: center; }
.bal-p:hover, .bal-s:hover { background: var(--g100); }
.bal-sh { display: flex; justify-content: space-between; gap: 6px; }
.bal-sh b { color: var(--k); font-weight: 600; white-space: nowrap; }
.bar6 { height: 6px; background: var(--g150); border-radius: 3px; overflow: hidden; display: block; }
.bar6 i, .bar8 i, .bar4 i { display: block; height: 100%; background: var(--k); transition: width .3s; }
.bar8 { height: 8px; border-radius: 4px; background: var(--g150); overflow: hidden; }
.bar4 { height: 4px; border-radius: 2px; background: var(--g150); overflow: hidden; }
.bar4 i { border-radius: 2px; }
.trashrow { margin: 14px 20px 0; padding-top: 10px; border-top: 1px solid var(--g150); display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--g700); }
.trashrow:hover { color: var(--k); }

/* add row */
.addrow { padding: 0 20px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.addrow.dim { opacity: .35; }
.add { height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; justify-self: stretch; }
.add .plus { font-size: 20px; font-weight: 400; line-height: 1; }
.add-file { background: var(--k); color: var(--w); }
.add-cam { border: 1.5px solid var(--k); gap: 6px; }
.add-note { background: var(--y); gap: 5px; } .add-note .plus { font-size: 17px; }
.add:hover:not(:disabled) { filter: brightness(.94); }
.ic-folder { display: flex; flex-direction: column; }
.ic-folder i:first-child { width: 8px; height: 3px; background: var(--w); border-radius: 1.5px 1.5px 0 0; }
.ic-folder i:last-child { width: 20px; height: 13px; background: var(--w); border-radius: 0 3px 3px 3px; }
.ic-cam { position: relative; width: 21px; height: 16px; border: 2px solid var(--k); border-radius: 4px; display: inline-block; flex-shrink: 0; }
.ic-cam i { position: absolute; top: 2px; left: 4.5px; width: 8px; height: 8px; border: 2px solid var(--k); border-radius: 50%; }
.ic-cam.big { width: 24px; height: 18px; border-radius: 5px; } .ic-cam.big i { top: 3px; left: 6px; }
.ic-cam.w, .ic-cam.w i { border-color: var(--w); }

/* ---------- file tiles */
.fgrid { padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.fgrid.g12 { gap: 12px 10px; }
.ftile { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: start; }
.ftile-sq { aspect-ratio: 1; border-radius: 12px; background: var(--y); border: 1px solid var(--y); position: relative; overflow: hidden; transition: transform .12s; }
.ftile-sq.mark { border: 2px solid var(--k); }
.ftile:hover .ftile-sq { transform: translateY(-2px); }
.ftile-in { position: absolute; inset: 0; }
.fsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ftile-n { position: absolute; right: 23%; bottom: 22%; font: 500 11px var(--mono); }
.ftile-lock { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); display: flex; }
.tlock { position: relative; display: inline-block; width: 14px; height: 17px; }
.tlock-s { position: absolute; top: 0; left: 2px; width: 10px; height: 9px; border: 2px solid var(--k); border-bottom: 0; border-radius: 5px 5px 0 0; }
.tlock-b { position: absolute; bottom: 0; left: 0; width: 14px; height: 9px; background: var(--k); border-radius: 2px; }
.tlock.big { width: 16px; height: 20px; } .tlock.big .tlock-s { width: 12px; height: 11px; border-width: 2.5px; border-radius: 6px 6px 0 0; } .tlock.big .tlock-b { width: 16px; height: 11px; }
.ftile-pend { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ftile-pend svg { position: static; width: 54%; height: auto; }
.ftile-pend span { font-size: 10px; font-weight: 700; }
.ftile-name { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ftile-sub { font-size: 11px; color: var(--g700); margin-top: -4px; }
.ilock { position: relative; display: inline-block; flex-shrink: 0; vertical-align: -1px; }
.ilock span { position: absolute; display: block; }
.ilock span:first-child { top: 0; border: 1.5px solid var(--k); border-bottom: 0; box-sizing: border-box; }
.ilock span:last-child { bottom: 0; left: 0; background: var(--k); border-radius: 1.5px; }
.mini-file { display: inline-block; position: relative; background: var(--y); flex-shrink: 0; }
.fmeta { padding: 6px 20px 0; padding-inline-start: 68px; font-size: 12px; color: var(--g700); }

/* media tiles */
.mgrid { padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mtile { aspect-ratio: 1; border-radius: 8px; position: relative; overflow: hidden; display: block; -webkit-user-drag: none; user-select: none; }
.mtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mtile:hover { filter: brightness(.95); }
.mtile.sel { outline: 3px solid var(--k); outline-offset: -3px; }
.selmark { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--y); border: 2px solid var(--k); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.dbadge { position: absolute; inset-inline-start: 6px; bottom: 6px; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--k); color: var(--w); display: flex; align-items: center; gap: 4px; font: 500 10px var(--mono); z-index: 1; }
.dbadge i { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--y); }
.dbadge.big { inset-inline-start: 8px; bottom: 8px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11px; gap: 5px; }
.trash-h { padding: 14px 20px 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.trash-h b { font-weight: 600; }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--g150); }
.mtile:has(.daysb) .dbadge { display: none; }
.daysb { position: absolute; inset-inline-start: 5px; bottom: 5px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--w); display: flex; align-items: center; font: 600 10px var(--mono); z-index: 2; }
.likeb { position: absolute; inset-inline-start: 5px; bottom: 5px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--y); display: flex; align-items: center; font: 600 10px var(--mono); }
.ngrid { padding: 0 20px 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ntile { position: relative; min-height: 84px; border-radius: 12px; background: var(--g100); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.ntile:hover { background: var(--g150); }
.ntile.sel { outline: 3px solid var(--k); outline-offset: -3px; }
.ntile-l { font: 600 10px var(--mono); color: var(--g700); }
.ntile-t { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.mempty { padding: 18px 20px; color: var(--g700); font-size: 13px; }
.selbar { position: sticky; bottom: 0; margin-top: 16px; padding: 12px 20px calc(12px + var(--safe-b)); background: var(--w); border-top: 1px solid var(--g150); display: flex; align-items: center; gap: 10px; z-index: 5; }
.with-nav .selbar { bottom: var(--nav-h); }
@media (min-width: 900px) { .with-nav .selbar { bottom: 0; } }
.selbar-n { flex: 1; font-size: 13px; font-weight: 600; }

/* skeletons (S2) */
.sk { background: var(--g100); }
.sk-file { display: flex; flex-direction: column; gap: 6px; }
.sk.sq12 { aspect-ratio: 1; border-radius: 12px; }
.sk.l1 { height: 10px; width: 80%; border-radius: 5px; background: var(--g150); }
.sk.l2 { height: 8px; width: 45%; border-radius: 4px; }
.sk.sq8 { aspect-ratio: 1; border-radius: 8px; }
.sk-head { padding: 22px 20px 10px; } .sk.l120 { height: 12px; width: 120px; border-radius: 6px; background: var(--g150); }
.sk { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* empty state (S1) */
.empty { margin: 6px 20px 0; padding: 28px 20px; border-radius: 18px; border: 1.5px dashed var(--g300); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty-ic { width: 96px; height: 96px; border-radius: 20px; background: var(--y); position: relative; }
.empty-t { font-size: 18px; font-weight: 700; }
.empty-x { font-size: 13px; line-height: 1.55; color: var(--g700); max-width: 280px; }

/* ---------- forms: file / radio cards / chips */
.rcard { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); display: flex; gap: 12px; text-align: start; width: 100%; }
.rcard .rdot { margin-top: 1px; }
.rcard.on { background: var(--y); border: 2px solid var(--k); padding: 11px 13px; }
.rcard-t { font-size: 15px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.rcard-x { display: block; font-size: 12px; line-height: 1.5; margin-top: 2px; color: var(--g700); }
.rcard.on .rcard-x { color: var(--k); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { height: 34px; padding-block: 0; padding-inline: 4px 10px; border-radius: 17px; border: 1px solid var(--g300); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pchip-x { font-size: 16px; color: var(--g700); padding: 0 2px; }
.pchip-x:hover { color: var(--k); }
.pchip.add { padding: 0 12px; border: 1.5px dashed var(--g999); font-weight: 600; }
.pchip.add:hover { border-color: var(--k); }
.setrow { margin: 0 20px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--g150); font-size: 14px; width: calc(100% - 40px); text-align: start; }
.col0 .setrow { margin: 0; width: 100%; }
.setrow.last { border-bottom: 0; }
.setrow-v { display: flex; gap: 8px; align-items: center; color: var(--g700); }
.chev { color: var(--k); font-size: 16px; }
.setrow:hover { background: linear-gradient(var(--g100), var(--g100)) no-repeat center / calc(100% + 24px) 100%; }
.stickybar { position: sticky; bottom: 0; z-index: 6; padding: 12px 20px calc(30px + var(--safe-b)); background: var(--w); border-top: 1px solid var(--g150); }
.stickybar.nob { border-top: 0; }
.stickybar.row2 { display: grid; }
.paybar { position: sticky; bottom: 0; z-index: 6; padding: 12px 20px calc(30px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--w); display: flex; align-items: center; gap: 14px; }

/* ---------- locked (S5) */
.locked { padding: 70px 32px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.locked-ic { width: 140px; height: 140px; border-radius: 28px; background: var(--y); position: relative; display: flex; align-items: center; justify-content: center; }
.locked-lock { position: relative; margin-top: 14px; }
.locked-t { font-size: 22px; font-weight: 700; line-height: 1.3; }
.locked-x { font-size: 14px; line-height: 1.6; color: var(--g333); max-width: 320px; }
.chip { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--g100); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }

/* ---------- manage access / requests / lists */
.acc-file { padding: 16px 20px 0; display: flex; align-items: center; gap: 12px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--g150); }
.arow-n { flex: 1; font-size: 14px; font-weight: 600; display: block; }
.arow-n:hover { text-decoration: underline; }
.addp { padding: 10px 0; font-size: 14px; }
.pendlink { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pendlink:hover { background: var(--g100); }
.rq { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--g150); }
.rq-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rq-note { padding: 8px 10px; border-radius: 10px; background: var(--g100); font-size: 13px; line-height: 1.5; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--g150); }
.stag { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--k); flex-shrink: 0; }
.stag.approved { background: var(--y); } .stag.declined, .stag.revoked, .stag.cancelled { color: var(--g700); border-color: var(--g300); }
.nrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--g150); align-items: center; }
.nrow:hover { background: linear-gradient(var(--g100), var(--g100)) no-repeat center / calc(100% + 24px) 100%; }
.nrow.unread b:first-child::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--y); border: 1px solid var(--k); margin-inline-start: 6px; vertical-align: 1px; }
.conv { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--g150); align-items: center; }
.conv:hover { background: linear-gradient(var(--g100), var(--g100)) no-repeat center / calc(100% + 24px) 100%; }
.conv-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-h { display: flex; justify-content: space-between; gap: 8px; }
.conv-l { display: flex; gap: 8px; align-items: center; }
.conv-l .ell { flex: 1; }
.udot { width: 10px; height: 10px; border-radius: 50%; background: var(--y); border: 1.5px solid var(--k); flex-shrink: 0; }

/* ---------- viewer */
.viewer .vmedia { padding: 0 12px; position: relative; }
.vimg { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; display: block; user-select: none; -webkit-user-drag: none; }
.vimg.ph { background: var(--stripe); }
.vplayer { height: 300px; border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-play { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--y); border: 2px solid var(--k); display: flex; align-items: center; justify-content: center; }
.vp-play span { width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--k); margin-left: 5px; }
.vp-play.playing span { width: 18px; height: 22px; border: 0; margin: 0; border-left: 6px solid var(--k); border-right: 6px solid var(--k); }
.vp-play.playing { opacity: .85; }
.vp-bar { padding: 12px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.vp-track { height: 4px; border-radius: 2px; background: var(--g230); position: relative; cursor: pointer; }
.vp-track::before { content: ''; position: absolute; inset: -10px 0; }
.vp-fill { display: block; height: 100%; background: var(--k); border-radius: 2px; }
.vp-knob { position: absolute; top: -5px; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--y); border: 2px solid var(--k); }
.vp-times { display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--g700); }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--g300); font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 3; }
.vnav.prev { inset-inline-start: 20px; } .vnav.next { inset-inline-end: 20px; }
.vnav:hover { background: var(--w); border-color: var(--k); }
.counter { font: 500 15px var(--mono); flex-shrink: 0; }
.vtext { padding: 12px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.vdesc { font-size: 13px; line-height: 1.55; color: var(--g333); white-space: pre-line; }
.abar { margin-top: 12px; display: grid; border-top: 1px solid var(--k); border-bottom: 1px solid var(--k); font-size: 13px; text-align: center; }
.abar-b { padding: 12px 2px; text-align: center; }
.abar-b + .abar-b { border-inline-start: 1px solid var(--line); }
.abar-b.on { background: var(--k); color: var(--y); font-weight: 600; }
.abar-b:hover:not(.on):not(:disabled) { background: var(--g100); }
.abar-b:disabled { color: var(--g999); }
.vinfo { padding: 8px 20px; display: grid; grid-template-columns: 80px 1fr; row-gap: 5px; column-gap: 8px; font-size: 12px; border-bottom: 1px solid var(--line); }
.cmt { display: grid; grid-template-columns: 28px 1fr 40px; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--g150); font-size: 13px; line-height: 1.55; }
.cmt-t { color: var(--g700); font: 400 11px var(--mono); text-align: end; }
.cmt-del { font-size: 11px; color: var(--g700); margin-inline-start: 6px; text-decoration: underline; }
.composer { position: sticky; bottom: 0; z-index: 6; margin-top: 12px; padding: 10px 16px calc(30px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--w); }
.composer input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; background: var(--g100); border: 0; padding: 0 14px; font-size: 14px; outline: 0; }
.composer input:focus { box-shadow: inset 0 0 0 2px var(--k); }
.sendbtn { height: 46px; padding: 0 16px; border-radius: 12px; background: var(--y); font-size: 14px; font-weight: 600; flex-shrink: 0; }
.sendbtn:disabled { background: var(--g230); color: var(--g999); }
.blk:hover { text-decoration: underline; }
@media (min-width: 700px) {
  .vimg { height: clamp(280px, 58vh, 640px); object-fit: contain; background: var(--g100); }
  .vplayer { height: clamp(300px, 56vh, 620px); }
}

/* more sheet rows */
.mrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--g150); text-align: start; width: 100%; }
.mrow.last { border-bottom: 0; }
.mrow-t { display: block; font-size: 15px; font-weight: 600; }
.mrow .meta12 { display: block; }
.mrow:disabled { opacity: .4; }
.ibox { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--k); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex-shrink: 0; }

/* ---------- camera */
.cam { flex: 1; display: flex; flex-direction: column; background: var(--k); color: var(--w); min-height: 100dvh; }
.cam-top { padding: 14px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cam-x, .cam-flash { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--w); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cam-flash { font: 600 11px var(--mono); }
.cam-dest { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--y); color: var(--k); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; max-width: 70%; }
.cam-vf { margin-top: 14px; flex: 1; min-height: 360px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #111; }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-msg { position: relative; z-index: 2; max-width: 300px; padding: 0 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 13px; color: #DDDDDD; line-height: 1.5; }
.cam-msg b { font-size: 16px; color: var(--w); }
.cam-sub { font: 400 11px var(--mono); color: var(--g999); }
.cam-rec { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(0,0,0,.6); font: 600 13px var(--mono); }
.cam-rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--y); animation: pulse 1s infinite; }
.cam-flashfx { position: absolute; inset: 0; background: var(--w); z-index: 4; animation: fade .18s ease-out forwards; }
@keyframes fade { to { opacity: 0; } }
.cam-modes { padding: 16px 0 0; display: flex; justify-content: center; gap: 26px; font: 600 13px var(--mono); letter-spacing: 1px; }
.cam-modes button { color: var(--w); opacity: .7; }
.cam-modes button.on { color: var(--y); opacity: 1; }
.cam-ctl { padding: 18px 36px calc(30px + var(--safe-b)); display: flex; align-items: center; justify-content: space-between; max-width: 520px; width: 100%; margin: 0 auto; }
.cam-thumb { width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--w); display: block; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--w); display: flex; align-items: center; justify-content: center; }
.shutter span { width: 62px; height: 62px; border-radius: 50%; background: var(--w); transition: all .15s; }
.shutter.vid span { background: var(--y); }
.shutter.rec span { width: 30px; height: 30px; border-radius: 6px; background: var(--y); }
.shutter:disabled { opacity: .5; }
.cam-flip { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.cam-flip span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--w); border-top-color: transparent; }
.cam-flip:disabled { opacity: .4; }

/* ---------- storage / plans / payments */
.st-big { display: flex; align-items: baseline; gap: 8px; }
.st-n { font-size: 36px; font-weight: 700; line-height: 1; }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-align: start; width: 100%; }
.plan.on { background: var(--y); border: 2px solid var(--k); padding: 13px 15px; }
.plan-l { display: flex; align-items: center; gap: 12px; }
.plan-r { text-align: end; display: flex; flex-direction: column; }
.cardrow { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cardrow-l { display: flex; align-items: center; gap: 10px; }
.cardchip { width: 30px; height: 20px; border-radius: 4px; background: var(--k); flex-shrink: 0; display: inline-block; }

/* ---------- other user */
.uhead { padding: 20px 20px 0; display: flex; align-items: center; gap: 12px; }
.bare-back { font-size: 18px; width: 32px; height: 40px; flex-shrink: 0; }
.ubtns { padding: 14px 20px 0; display: flex; gap: 10px; }
.vtick { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--y); border: 1.5px solid var(--k); align-items: center; justify-content: center; font-size: 10px; font-weight: 700; vertical-align: 2px; }

/* request sheet */
.req-head { display: flex; gap: 14px; align-items: center; }
.req-ic { width: 56px; height: 56px; border-radius: 12px; background: var(--y); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.req-t { font-size: 17px; font-weight: 700; line-height: 1.35; }
.meta { font-size: 12px; color: var(--g700); }
.body14 { font-size: 14px; line-height: 1.6; }

/* ---------- chat */
.chat .chat-who { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.daysep { align-self: center; font: 500 11px var(--mono); color: var(--g700); padding: 6px 0; }
.bub { max-width: 78%; padding: 10px 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.bub.me { align-self: flex-end; background: var(--k); color: var(--w); border-radius: 18px; border-end-end-radius: 4px; }
.bub.them { align-self: flex-start; background: var(--g100); border-radius: 18px; border-end-start-radius: 4px; }
.bub.withcard { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.fcard { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--w); color: var(--k); }
.fcard > span:last-child { display: flex; flex-direction: column; }
.seen { align-self: flex-end; font: 400 10px var(--mono); color: var(--g700); }
.chat-comp { position: sticky; bottom: 0; padding: 10px 16px calc(30px + var(--safe-b)); border-top: 1px solid var(--g150); display: flex; gap: 8px; align-items: center; background: var(--w); }
.chat-comp input { flex: 1; min-width: 0; height: 46px; border-radius: 23px; background: var(--g100); border: 0; padding: 0 16px; font-size: 14px; outline: 0; }
.chat-comp input:focus { box-shadow: inset 0 0 0 2px var(--k); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; background: var(--y); border: 1.5px solid var(--k); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.chat-send:disabled { background: var(--g230); border-color: var(--g300); color: var(--g999); }
.chat-closed { position: sticky; bottom: 0; padding: 14px 20px calc(30px + var(--safe-b)); border-top: 1px solid var(--g150); font-size: 13px; color: var(--g700); text-align: center; background: var(--w); }

/* ---------- following */
.pgrid { padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.pring { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.ring { width: 70px; height: 70px; border-radius: 50%; padding: 4px; position: relative; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ring .av { width: 100% !important; height: 100% !important; border: 2px solid var(--w); }
.ring.new { background: var(--y); border-color: var(--k); }
.ring.pop { border: 2px solid var(--k); }
.ring-ok { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--y); border: 1.5px solid var(--k); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.ring-n { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78px; }
.ring-n.muted { font-weight: 400; }
.pring:hover .ring { transform: scale(1.04); }
.ring { transition: transform .12s; }

/* ---------- trending */
.search { height: 46px; border-radius: 12px; background: var(--g100); display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--k); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; height: 100%; }
.search input::placeholder { color: var(--g700); }
.search input::-webkit-search-cancel-button { display: none; }
.search.sm { height: 42px; }
.search-x { font-size: 20px; color: var(--g700); width: 28px; }
.ic-search { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.ic-search::before { content: ''; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border: 2px solid var(--k); border-radius: 50%; box-sizing: border-box; }
.ic-search::after { content: ''; position: absolute; top: 13px; left: 11px; width: 7px; height: 2.5px; background: var(--k); transform: rotate(45deg); border-radius: 1px; }
.vstrip { padding: 0 20px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.vstrip::-webkit-scrollbar { display: none; }
.vstrip.all { flex-wrap: wrap; overflow: visible; }
.vcard { flex-shrink: 0; width: 132px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.vcard-m { height: 210px; border-radius: 12px; position: relative; display: block; }
.vcard:hover .vcard-m { filter: brightness(.95); }

/* ---------- stats */
.kpis { padding: 16px 20px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.kpi.y { background: var(--y); border-color: var(--y); }
.kpi-n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.kpi-l { font-size: 12px; margin-top: 4px; }
.chart { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.chart-h { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.bars { height: 104px; display: flex; align-items: flex-end; gap: 10px; }
.barc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; border-radius: 4px; background: var(--k); }
.bar.peak { background: var(--y); border: 1.5px solid var(--k); }
.barc span { font: 400 10px var(--mono); color: var(--g700); }
.rank { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--g150); }
a.rank:hover { background: linear-gradient(var(--g100), var(--g100)) no-repeat center / calc(100% + 24px) 100%; }
.rank-n { width: 16px; font: 600 13px var(--mono); flex-shrink: 0; }
.rank-th { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; position: relative; }
.rank-th.tall { width: 44px; height: 56px; }
.rank-th .tri { position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--k); }
.fbtn { height: 32px; padding: 0 14px; border-radius: 9px; background: var(--k); color: var(--w); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.fbtn.on { background: var(--w); color: var(--k); border: 1.5px solid var(--k); }
.fbtn:disabled { opacity: .5; }

/* ---------- ads */
.adlist { display: flex; flex-direction: column; }
.adcard { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--g150); }
.adcard-h { display: flex; align-items: center; gap: 10px; }
.mlfsq { width: 34px; height: 34px; border-radius: 9px; background: var(--y); border: 1.5px solid var(--k); display: flex; align-items: center; justify-content: center; font: 700 10px 'IBM Plex Sans'; flex-shrink: 0; }
.ptsbadge { height: 26px; padding: 0 9px; border-radius: 7px; background: var(--y); border: 1px solid var(--k); display: inline-flex; white-space: nowrap; flex-shrink: 0; align-items: center; font: 600 11px var(--mono); }
.ptsbadge.plain { background: var(--w); border-color: var(--g300); color: var(--g700); }
.ptsbadge.big { height: 36px; font-size: 16px; padding: 0 14px; border-radius: 10px; }
.admedia { width: 100%; border-radius: 12px; position: relative; overflow: hidden; display: block; }
.admedia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admedia:hover { filter: brightness(.96); }
.adplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1.5px solid var(--k); }
.adplay::after { content: ''; position: absolute; left: 15px; top: 11px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--k); }
.watch { min-height: 100dvh; background: var(--k); color: var(--w); display: flex; flex-direction: column; }
.watch-top { padding: 14px 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.watch-m { flex: 1; min-height: 300px; position: relative; display: flex; align-items: center; justify-content: center; }
.watch-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.watch-cap { font: 500 13px var(--mono); color: var(--g999); padding: 20px; text-align: center; }
.watch-text { padding: 14px 20px 0; font-size: 14px; line-height: 1.5; }
.watch-bar { margin: 16px 20px 0; height: 4px; border-radius: 2px; background: #333; overflow: hidden; }
.watch-fill { display: block; height: 100%; background: var(--y); transition: width .25s linear; }
.watch-foot { padding: 14px 20px calc(30px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.watch-left { font: 600 15px var(--mono); }
.meta-w { font-size: 13px; color: #CCCCCC; }
.watch-done { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.drop { height: 96px; border-radius: 12px; border: 1.5px dashed var(--g999); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.drop:hover { border-color: var(--k); background: var(--g100); }
.drop.err { border: 2px solid var(--k); background: var(--err); }
.adprev { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.adprev-m { width: 72px; height: 72px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; position: relative; overflow: hidden; }
.adprev-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adprev .grow { display: flex; flex-direction: column; }
.tier { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); width: 100%; text-align: start; }
.tier .rdot { width: 18px; height: 18px; } .tier .rdot.on span { width: 8px; height: 8px; }
.tier.on { background: var(--y); border: 2px solid var(--k); padding: 10px 13px; }
.repeat { padding: 10px 14px; border-radius: 12px; background: var(--g100); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; line-height: 1.45; }
.repeat b { white-space: nowrap; }
.repeat:hover { background: var(--g150); }

/* ---------- points */
.ptscard { padding: 18px; border-radius: 18px; background: var(--y); display: flex; flex-direction: column; gap: 4px; }
.ptscard-n { font-size: 44px; font-weight: 700; line-height: 1.05; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--g150); }
.hrow2 { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--g150); }
.hrow2-n { width: 64px; font: 600 13px var(--mono); flex-shrink: 0; }

/* ---------- settings */
.accts { border: 1.5px solid var(--k); border-radius: 14px; overflow: hidden; }
.acct { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--line); width: 100%; text-align: start; }
.acct:first-child { border-top: 0; }
.acct.me { background: var(--y); padding: 10px 12px; }
.acct .grow { display: flex; flex-direction: column; }
.acct.add { padding: 8px 12px; font-size: 13px; font-weight: 600; gap: 8px; }
.acct.add:hover { background: var(--g100); }
.prof-av { display: flex; align-items: center; gap: 14px; }

/* ---------- auth */
.auth { width: 100%; padding: 0 24px 34px; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-logo { padding-top: 56px; display: flex; align-items: center; gap: 12px; }
.auth-t { padding-top: 40px; font-size: 30px; font-weight: 700; line-height: 1.2; }
.auth-x { margin: 6px 0 24px; font-size: 14px; line-height: 1.5; color: var(--g700); }
.saved-h { padding: 26px 0 8px; font-size: 12px; font-weight: 600; color: var(--g700); }
.saved { display: flex; flex-direction: column; }
.saved-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--g150); width: 100%; text-align: start; }
.saved-row:last-child { border-bottom: 0; }
.saved-row:hover .lnk { text-decoration: underline; }
.saved-n { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.saved-n b { font-weight: 600; }
.auth-foot { margin-top: auto; padding-top: 34px; text-align: center; font-size: 14px; }
.auth-foot a { font-weight: 700; } .auth-foot a:hover { text-decoration: underline; }
.b7 { font-weight: 700; }
.grow + .stickybar { margin-top: 18px; }
.page > .stickybar, .page > .paybar, .page > .composer, .page > .chat-comp { margin-top: auto; }
.page > .grow { flex: 1; }

/* ---------- overlays */
.ov { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.ov-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; background: var(--w); border-radius: 26px 26px 0 0; padding: 10px 20px calc(34px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; animation: up .2s ease-out; overscroll-behavior: contain; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--g300); align-self: center; margin-bottom: 4px; flex-shrink: 0; }
.ov-dialog { align-items: center; padding: 24px; }
.dialog { position: relative; width: 100%; max-width: 400px; background: var(--w); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; animation: pop .15s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.dlg-t { font-size: 18px; font-weight: 700; line-height: 1.35; }
.dlg-x { font-size: 14px; line-height: 1.55; color: var(--g333); }
.dialog .btn-text { height: 40px; }
.ov-full { z-index: 70; display: block; overflow-y: auto; background: var(--k); }
@media (min-width: 700px) {
  .ov { align-items: center; padding: 24px; }
  .sheet { max-width: 480px; border-radius: 26px; padding-bottom: 24px; max-height: 86dvh; }
  .ov-full .watch { max-width: 900px; margin: 0 auto; }
}
.sh-t { font-size: 17px; font-weight: 700; line-height: 1.35; }
.sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-align: start; width: 100%; }
.opt.on { background: var(--y); border: 2px solid var(--k); padding: 11px 13px; }
.opt:disabled { opacity: .45; }
.opt-b { display: flex; flex-direction: column; }
.opt-l { font-size: 15px; font-weight: 600; } .opt-s { font-size: 12px; color: var(--g700); }
.opt.on .opt-s { color: var(--k); }
.flist { display: flex; flex-direction: column; gap: 6px; max-height: 46dvh; overflow-y: auto; }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: start; width: auto; }
.frow.card { border: 1px solid var(--g150); }
.frow:hover { background: var(--g100); }
.frow.on { background: var(--y); border: 2px solid var(--k); padding: 9px 11px; }
.frow-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.frow-n b { font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.frow-n span { font-size: 11px; color: var(--g700); }
.plist { display: flex; flex-direction: column; max-height: 42dvh; overflow-y: auto; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--g150); text-align: start; width: 100%; }
.prow-n { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.prow-n b { font-weight: 600; }
.inline-new { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.dest { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--g100); font-size: 13px; font-weight: 600; text-align: start; }
.dest .caret { margin-inline-start: auto; }
.bigopt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-align: start; width: 100%; cursor: pointer; }
.bigopt.yel { background: var(--y); }
.bigopt.outline { border: 1.5px solid var(--k); }
.bigopt:disabled, .bigopt.dim { opacity: .4; cursor: default; }
.bigopt:hover:not(:disabled):not(.dim) { filter: brightness(.96); }
.bigopt-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bigopt-ic.blk { background: var(--k); }
.bigopt-ic.grid4 { border: 1.5px solid var(--k); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 9px; align-items: stretch; justify-items: stretch; }
.bigopt-ic.grid4 i { display: block; }
.bigopt-ic.grid4 i { background: var(--k); border-radius: 2px; }
.bigopt-ic.grid4 i.y { background: var(--y); border: 1.5px solid var(--k); }
.bigopt-b { flex: 1; display: flex; flex-direction: column; }
.bigopt-b b { font-size: 16px; font-weight: 700; }
.bigopt-b span { font-size: 12px; }
.bigopt .chev { font-size: 18px; }
.uplist { display: flex; flex-direction: column; gap: 12px; max-height: 50dvh; overflow-y: auto; }
.uprow { display: flex; align-items: center; gap: 12px; }
.upthumb { width: 40px; height: 40px; border-radius: 8px; background: var(--stripe); flex-shrink: 0; }
.upbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.uprow-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.uprow-h b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uprow-h .mono-s { display: inline; font-weight: 500; }
.note-read { font-size: 15px; line-height: 1.6; white-space: pre-line; }

/* ---------- toasts */
#toasts { position: fixed; z-index: 90; inset-inline: 0; bottom: calc(var(--nav-h) + 12px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--k); color: var(--w); font-size: 14px; line-height: 1.4; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); transform: translateY(12px); opacity: 0; transition: all .2s; }
.toast.in { transform: none; opacity: 1; }
.toast-t { flex: 1; }
.toast .bang { background: var(--y); color: var(--k); }
.toast-a { color: var(--y); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.toast-error { background: var(--k); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }

/* ---------- dev switcher (only on this computer) */
#devsw { position: fixed; z-index: 95; left: 0; top: 45%; font: 12px/1.4 'IBM Plex Mono', monospace; }

.dev-pill { background: var(--g333); color: var(--w); border-radius: 0 8px 8px 0; padding: 4px 8px; font: 600 10px 'IBM Plex Mono', monospace; opacity: .55; }
.dev-pill:hover { opacity: 1; }
.dev-panel { position: absolute; top: 28px; left: 4px; width: 270px; background: var(--w); border: 1.5px solid var(--k); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }

.dev-panel button, .dev-panel select { text-align: left; padding: 6px 8px; border-radius: 8px; background: var(--g100); font: inherit; border: 0; }
.dev-panel button:hover { background: var(--g150); }
.dev-panel label { display: flex; gap: 6px; align-items: center; }
.dev-h { font-weight: 600; } .dev-h span { color: var(--g700); font-weight: 400; }

/* ---------- wider screens: grids add columns instead of stretching */
@media (min-width: 600px) {
  .fgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .ngrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .addrow { grid-template-columns: repeat(3, minmax(0, 160px)); }
  .balbox { max-width: 640px; }
  .bal-s, .bal-p { padding: 12px 16px; }
}
@media (min-width: 900px) {
  .home-top, .uhead { padding-top: 28px; }
  .subhead { padding-top: 22px; }
  .ptitle { padding-top: 26px; }
  .fgrid, .mgrid, .pgrid, .px20, .shead, .addrow, .ngrid, .vstrip, .kpis { padding-inline: 32px; }
  .mx20, .balbox, .trashrow { margin-inline: 32px; }
  .home-stats, .fmeta, .vtext, .vp-bar, .vinfo, .mlabel, .sub14, .pad20, .sk-head { padding-inline: 32px; }
  .fmeta { padding-inline-start: 84px; }
  .viewer .vmedia { padding: 0 32px; }
  .narrow .px20, .narrow .shead, .narrow .mlabel, .narrow .sub14, .narrow .pad20 { padding-inline: 20px; }
  .narrow .mx20 { margin-inline: 20px; }
  .narrow .setrow { margin-inline: 20px; }
  .chart { max-width: 760px; }
}

/* ---------- 2026-10-14 additions */
/* app-logo icon: "+ file" button and the Home tab */
.logo-ic { display: block; flex-shrink: 0; }
.logo-ic-bg { fill: var(--y); }
.add-file .logo-ic { width: 24px; height: 24px; }
.nic-logo { width: 24px; }
.tab .logo-ic-bg { fill: var(--g700); }
.tab.on .logo-ic-bg { fill: var(--y); stroke: var(--k); stroke-width: 6px; }
/* Status tab icon: a ring of segments with a dot, like a story ring */
.nic-status i:nth-child(1) { width: 20px; height: 20px; border-radius: 50%; border: 2px dashed currentColor; display: flex; }
.nic-status { position: relative; }
.nic-status i:nth-child(2) { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nic-status i:nth-child(3) { display: none; }

/* notes: square tiles the same size as files */
.ftile-sq.nsq { background: var(--g100); border: 1px solid var(--g150); padding: 10px; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.nsq-l { font: 600 10px var(--mono); color: var(--g700); }
.nsq-t { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.ftile:hover .nsq { background: var(--g150); }
.ftile-sq.nsel { outline: 3px solid var(--k); outline-offset: -3px; }

/* long-press */
[data-lp] { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.lp-hold { transform: scale(.96); transition: transform .4s ease-out; }
.opt-head { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.opt-th { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: flex-start; padding: 5px; }

/* live storage */
.bal-s { position: relative; }
.bal-s.pulse { animation: stpulse 2.4s ease-out both; }
@keyframes stpulse { 0% { background: var(--y); } 100% { background: transparent; } }
.stdelta { position: absolute; inset-inline-end: 10px; bottom: -11px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--k); color: var(--y); font: 600 11px var(--mono); display: flex; align-items: center; animation: stfade 8s ease-out both; }
.stdelta.neg { background: var(--w); color: var(--k); border: 1px solid var(--k); }
@keyframes stfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.msgs.has .ybadge { animation: pop .3s ease-out; }

/* activity rows in Notifications */
.act-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--g100); border: 1.5px solid var(--g150); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 16px; }
.act-ic::after { content: '•'; }
.act-like::after { content: '♥'; } .act-comment::after { content: '…'; } .act-add::after, .act-createFile::after, .act-follow::after, .act-storage::after { content: '+'; }
.act-note::after, .act-editNote::after, .act-edit::after { content: '✎'; } .act-move::after, .act-moveFile::after { content: '→'; }
.act-trash::after, .act-trashFile::after { content: '⌫'; font-size: 14px; } .act-restore::after, .act-restoreFile::after { content: '↺'; }
.act-deleted::after, .act-decline::after, .act-revoke::after { content: '×'; } .act-approve::after { content: '✓'; } .act-request::after { content: '?'; }
.act-unfollow::after { content: '−'; } .act-profile::after { content: '@'; } .act-editFile::after { content: '⚙'; } .act-ad::after { content: '▶'; font-size: 12px; }
.act-like, .act-add, .act-approve { background: var(--y); border-color: var(--k); }

/* sign-up: gender, terms, verification */
.seg.seg-err { background: var(--err); }
.termsrow { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; padding: 2px 0; }
.termsrow.err { background: var(--err); border: 2px solid var(--k); border-radius: 12px; padding: 10px; }
.chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--k); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; background: var(--w); }
.chk.on { background: var(--y); color: var(--k); }
.lnk.inl { display: inline; font-size: inherit; text-decoration: underline; }
.lnk.start { align-self: flex-start; }
#otp { font: 600 22px var(--mono); letter-spacing: 8px; }
.terms { max-height: 52dvh; overflow-y: auto; font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 10px; }
.terms p { margin: 0; }
/* ---------- 2026-10-14 (2) */
/* "+ file" = white file shape; Home tab = black (idle grey) file shape */
.fic { display: block; flex-shrink: 0; }
.add-file .fic { color: var(--w); }
.nic-file { width: 24px; }
/* storage box on Home */
.bal-used { font-size: 12px; line-height: 1.2; }
.bal-used b { font-size: 15px; font-weight: 700; }
/* rearrange + select */
[data-ro] { touch-action: none; cursor: grab; animation: wiggle .35s ease-in-out infinite alternate; }
[data-ro]:nth-child(2n) { animation-delay: -.17s; }
@keyframes wiggle { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.ftile.picked .ftile-sq, .mtile.picked { outline: 3px solid var(--k); outline-offset: 2px; box-shadow: 0 0 0 6px var(--y); }
.dragging { animation: none !important; z-index: 20; position: relative; opacity: .92; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); cursor: grabbing; }
.drop .ftile-sq, .mtile.drop { outline: 3px dashed var(--k); outline-offset: 2px; }
.arrbar .selbar-n { font-weight: 600; }
.selbar { flex-wrap: wrap; }
.ftile .selmark { z-index: 2; }
/* phone country code inside the phone field */
.ccode { display: flex; align-items: center; gap: 4px; padding-inline-end: 10px; margin-inline-end: 2px; border-inline-end: 1px solid var(--g300); height: 30px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ccode .caret { font-size: 10px; }
.ccode-b { width: 30px; font-size: 12px; font-weight: 600; color: var(--g700); flex-shrink: 0; }
.prow.on { background: var(--y); border-radius: 10px; }
/* storage page */
.strow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--g150); font-size: 14px; }
a.strow:hover { background: linear-gradient(var(--g100), var(--g100)) no-repeat center / calc(100% + 24px) 100%; }
.stdot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; border: 1.5px solid var(--k); }
.st-photos { background: var(--k); } .st-videos { background: var(--y); } .st-notes { background: var(--g700); border-color: var(--g700); }
.st-files { background: var(--w); } .st-trash { background: var(--g150); border-style: dashed; }
.stlast { align-self: flex-start; margin-top: 4px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--k); color: var(--y); display: flex; align-items: center; font: 600 12px var(--mono); }
.stlast.neg { background: var(--w); color: var(--k); border: 1px solid var(--k); }
/* video views above the description */
.vviews { font: 500 12px var(--mono); color: var(--g700); }
/* ---------- 2026-10-15 */
/* add row now has 4 buttons: + file · + camera · + TV · + Note */
.addrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 600px) { .addrow { grid-template-columns: repeat(4, minmax(0, 140px)); } }
.add-tv { border: 1.5px solid var(--k); gap: 6px; }
.ic-tv { position: relative; width: 20px; height: 14px; border: 2px solid currentColor; border-radius: 3px; display: inline-block; flex-shrink: 0; margin-top: 4px; }
.ic-tv i { position: absolute; top: -7px; width: 2px; height: 7px; background: currentColor; border-radius: 1px; }
.ic-tv i:first-child { left: 4px; transform: rotate(-35deg); } .ic-tv i:last-child { right: 4px; transform: rotate(35deg); }
.ic-tv.big { width: 26px; height: 18px; } .ic-tv.big i { height: 8px; top: -8px; }
.ic-tv.w { color: var(--w); }
.bigopt-ic.livedot { background: var(--k); color: var(--y); font: 700 11px var(--mono); }
/* status rings */
.sring { border-radius: 50%; padding: 3px; border: 2px solid var(--g300); display: inline-flex; flex-shrink: 0; }
.sring.new { background: var(--y); border-color: var(--k); }
.sring .av { border: 2px solid var(--w); }
a.cnt { color: inherit; } a.cnt:hover { text-decoration: underline; }
.home-stats a.cnt b { color: var(--k); font-weight: 600; }
.srow-list { display: flex; gap: 14px; padding: 4px 20px 2px; overflow-x: auto; scrollbar-width: none; }
.srow-list::-webkit-scrollbar { display: none; }
.srow-list .pring { flex-shrink: 0; width: 74px; }
.ring-add { position: absolute; inset-inline-end: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--k); color: var(--y); border: 2px solid var(--w); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.shead.srow { -webkit-touch-callout: none; user-select: none; }
.hl { background: var(--y); padding: 0 4px; border-radius: 4px; }
/* live & TV cards */
.livebadge { background: var(--y); color: var(--k); font: 700 11px var(--mono); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--k); flex-shrink: 0; }
.eye { background: rgba(0,0,0,.65); color: var(--w); font: 500 11px var(--mono); padding: 2px 7px; border-radius: 5px; flex-shrink: 0; }
.livecard { flex-shrink: 0; width: 150px; display: flex; flex-direction: column; gap: 6px; text-align: start; }
.livecard-m { height: 200px; border-radius: 12px; background: repeating-linear-gradient(135deg,#1A1A1A 0 8px,#222222 8px 16px); position: relative; display: block; border: 2px solid var(--y); }
.livecard-m .livebadge { position: absolute; top: 8px; inset-inline-start: 8px; } .livecard-m .eye { position: absolute; bottom: 8px; inset-inline-start: 8px; }
.livecard-u { display: flex; gap: 8px; align-items: center; } .livecard-u .minw0 { display: flex; flex-direction: column; font-size: 13px; }
.livecard:hover .livecard-m { filter: brightness(1.2); }
.tvlist { padding: 0 20px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .tvlist { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
@media (min-width: 900px) { .tvlist { padding-inline: 32px; } }
.tvcard { display: flex; flex-direction: column; gap: 8px; }
.tvcard-m { aspect-ratio: 16 / 9; border-radius: 12px; position: relative; display: block; }
.tvtag { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--k); color: var(--y); font: 700 11px var(--mono); padding: 2px 7px; border-radius: 5px; }
.tvcard-b { display: flex; gap: 10px; align-items: flex-start; } .tvcard-b .minw0 { display: flex; flex-direction: column; }
.tvcard:hover .tvcard-m { filter: brightness(.95); }
/* status viewer + live viewer (full screen) */
.story { min-height: 100dvh; background: #000; color: var(--w); display: flex; flex-direction: column; position: relative; }
.st-bars { display: flex; gap: 4px; padding: 12px 16px 0; }
.st-seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-seg i { display: block; height: 100%; background: var(--w); }
.st-top { display: flex; gap: 10px; align-items: center; padding: 10px 16px; }
.st-top .minw0 { display: flex; flex-direction: column; font-size: 14px; }
.story-body { flex: 1; position: relative; min-height: 300px; }
.story-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-m.ph { display: flex; align-items: center; justify-content: center; font: 500 13px var(--mono); color: #AAAAAA; padding: 20px; text-align: center; }
.st-zone { position: absolute; top: 0; bottom: 0; z-index: 2; }
.st-zone.prev { left: 0; width: 30%; } .st-zone.next { right: 0; width: 70%; }
.st-foot { display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(30px + var(--safe-b)); font-size: 14px; }
.live-feed { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 6px; }
.live-feed.over { position: absolute; left: 12px; right: 30%; bottom: 12px; padding: 0; z-index: 3; }
.live-c { align-self: flex-start; background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: var(--w); }
.live-comp { display: flex; gap: 8px; align-items: center; padding: 8px 16px calc(30px + var(--safe-b)); }
.live-comp input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); color: var(--w); border: 0; padding: 0 16px; outline: 0; font-size: 14px; }
.live-comp input::placeholder { color: #BBBBBB; }
.heartbtn { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; background: var(--y); color: var(--k); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.heartbtn span { font: 600 12px var(--mono); }
.live-end { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.live-ctl { padding: 16px 20px calc(30px + var(--safe-b)); max-width: 520px; width: 100%; margin: 0 auto; }
.live-title { width: 100%; height: 46px; border-radius: 12px; border: 0; padding: 0 14px; background: rgba(255,255,255,.14); color: var(--w); font-size: 14px; outline: 0; }
.live-title::placeholder { color: #BBBBBB; }
.meta-w.center { text-align: center; }
/* viewer: hidden play/pause — tap the video; a sign flashes briefly */
.viewer .vmedia { position: relative; }
.vp-tap { position: absolute; top: 0; bottom: 0; left: 12px; right: 12px; z-index: 1; background: transparent; border-radius: 12px; cursor: pointer; }
@media (min-width: 900px) { .viewer .vp-tap { left: 32px; right: 32px; } }
.vp-flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--y); border: 2px solid var(--k); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; z-index: 2; }
.vp-flash.show { animation: flashsign .8s ease-out; }
@keyframes flashsign { 0% { opacity: 0; transform: scale(.8); } 20% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
.vp-flash span { width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--k); margin-left: 5px; }
.vp-flash.playing span { width: 18px; height: 22px; border: 0; margin: 0; border-left: 6px solid var(--k); border-right: 6px solid var(--k); }
.vnav { z-index: 3; }
/* full screen view (double-tap) */
.fullv { position: fixed; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.fullv-m { width: 100%; height: 100%; object-fit: contain; }
.fullv-m.ph { display: flex; align-items: center; justify-content: center; }
.fullv-cap { font: 600 16px var(--mono); color: var(--k); background: var(--y); padding: 6px 12px; border-radius: 8px; }
.fullv .vp-tap { left: 0; right: 0; border-radius: 0; z-index: 2; }
.fullv-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; z-index: 4; }
.fullv-t { position: absolute; bottom: calc(20px + var(--safe-b)); left: 0; right: 0; text-align: center; color: var(--w); font-size: 14px; z-index: 3; pointer-events: none; text-shadow: 0 1px 4px #000; }
/* "Only followers" chip */
.pchip.opt-f { padding: 0 12px; font-weight: 600; border-style: solid; }
.pchip.opt-f.on { background: var(--y); border-color: var(--k); }
.row8.addp { align-items: center; padding: 10px 0; }
/* ---------- 2026-10-18 */
/* video controls: play / pause / replay next to the progress bar */
.vp-row { display: flex; align-items: center; gap: 12px; }
.vp-row .vp-track { flex: 1; }
.vp-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--k); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vp-btn span { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--y); margin-left: 3px; }
.vp-btn[data-state="pause"] span { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid var(--y); border-right: 4px solid var(--y); }
.vp-btn[data-state="replay"] span { width: auto; height: auto; border: 0; margin: 0; }
.vp-btn[data-state="replay"] span::before { content: '↻'; color: var(--y); font-size: 18px; font-weight: 700; line-height: 1; }
.vp-replay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--y); border: 2px solid var(--k); font-weight: 700; font-size: 15px; display: none; align-items: center; gap: 6px; }
.vp-replay.show { display: flex; }
.vp-replay span { font-size: 14px; }
.fullv-ctl { position: absolute; bottom: calc(52px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; color: var(--w); font-size: 13px; background: rgba(0,0,0,.5); padding: 6px 12px 6px 6px; border-radius: 24px; }
.fullv-ctl .vp-btn { background: var(--y); } .fullv-ctl .vp-btn span { border-left-color: var(--k); }
.fullv-ctl .vp-btn[data-state="pause"] span { border-left-color: var(--k); border-right-color: var(--k); }
.fullv-ctl .vp-btn[data-state="replay"] span::before { color: var(--k); }
.savedfrom { font-size: 12px; color: var(--g700); }
.savedfrom a { color: var(--k); font-weight: 600; text-decoration: underline; }
/* Favorites file */
.ftile-sq.fav { border: 2px solid var(--k); }
.ftile-heart { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); font-size: 20px; line-height: 1; color: var(--k); }
/* save from chat, pick from account */
.savebtn { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--y); color: var(--k); border: 1px solid var(--k); }
.savebtn.off { background: transparent; border-color: var(--g300); color: var(--g700); font-weight: 500; }
.fromacct { height: 40px; border-radius: 10px; border: 1.5px solid var(--k); font-size: 13px; font-weight: 600; padding: 0 12px; display: flex; align-items: center; justify-content: center; width: calc(100% - 40px); }
.overlay .fromacct, .sheet .fromacct { width: 100%; }
.adowner { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.adowner .grow { display: flex; flex-direction: column; }
.adowner:hover .blk { text-decoration: underline; }
.pickgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-height: 50dvh; overflow-y: auto; }
.pickgrid .mtile { position: relative; }
.pick-n { position: absolute; inset-inline: 4px; bottom: 4px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.88); border-radius: 5px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickgrid .dbadge { top: 4px; bottom: auto; }
/* 2026-10-21 — saved lives, full-screen seek, publisher link */
.livecard.saved .livecard-m { border-color: var(--k); }
.livebadge.saved { background: var(--k); color: var(--y); }
.livecard-m .dbadge { top: auto; bottom: 8px; }
.fullv-ctl { left: 16px; right: 16px; transform: none; max-width: 720px; margin: 0 auto; padding: 8px 14px; gap: 12px; border-radius: 26px; }
.fullv-ctl .vp-track { flex: 1; min-width: 60px; background: rgba(255,255,255,.35); }
.fullv-skip { min-width: 44px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--y); color: var(--k); border: 1px solid var(--k); display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); flex-shrink: 0; }
.fullv .fullv-t { top: calc(24px + env(safe-area-inset-top, 0px)); bottom: auto; left: 64px; right: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fullv-time { white-space: nowrap; font-size: 12px; flex-shrink: 0; }
.crumb-lnk { display: block; color: inherit; }
.crumb-lnk:hover { text-decoration: underline; color: var(--k); }
.st-who { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; display: block; }
.st-who.b7 { font-weight: 700; }
.st-who:hover { text-decoration: underline; }
@media (max-width: 420px) { .fullv-time { font-size: 11px; } .fullv-ctl { gap: 8px; padding: 6px 10px; } }
/* 2026-10-22 — Favorites as its own page (files, notes, placing liked photos) */
.frow-fav { width: 36px; height: 36px; border-radius: 8px; background: var(--y); border: 1px solid var(--k); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--k); flex-shrink: 0; }