/* AndroShare app redesign prototype (promo, 30 Oct 2026). Brick accent, Space Grotesk + IBM Plex Sans, Lucide icons. */
@font-face{font-family:'Space Grotesk';src:url(../fonts/SpaceGrotesk-latin.woff2) format('woff2');font-weight:300 700;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url(../fonts/IBMPlexSans-latin.woff2) format('woff2');font-weight:400 600;font-display:swap}
:root{--btn:#942021;--accent:#942021;--accent-ink:#942021;--on-accent:#fff;--tint:#F6EDED;--bg:#F6F6F8;--surface:#fff;--ink:#0F1A33;--muted:#5B6170;--rule:#E3E5EA;--hover:#EEEFF2;--shade:rgba(15,26,51,.5);--tile-a:#A63834;--tile-b:#840912}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--accent:#FFABA2;--accent-ink:#FFABA2;--on-accent:#3A0607;--tint:#2A1B1C;--bg:#0C0E12;--surface:#151821;--ink:#EEF0F5;--muted:#A3A9B8;--rule:#262B36;--hover:#1E222C;--shade:rgba(0,0,0,.65)}}
:root[data-theme=dark]{--accent:#FFABA2;--accent-ink:#FFABA2;--on-accent:#3A0607;--tint:#2A1B1C;--bg:#0C0E12;--surface:#151821;--ink:#EEF0F5;--muted:#A3A9B8;--rule:#262B36;--hover:#1E222C;--shade:rgba(0,0,0,.65)}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 'IBM Plex Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
h1,h2,h3{font-family:'Space Grotesk',sans-serif;letter-spacing:-.01em;margin:0}
.btn{color:var(--ink);display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--rule);background:var(--surface);font-weight:600;cursor:pointer;text-decoration:none}
.btn.primary{background:var(--btn);border-color:var(--btn);color:#fff}
.btn.ghost{border-color:transparent;background:none}
.btn:focus-visible,.nav a:focus-visible,.tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* shell */
.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.rail{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:18px 14px;border-right:1px solid var(--rule);background:var(--surface)}
.brand{display:flex;align-items:center;gap:10px;padding:2px 8px 22px}
.brand .mk{width:30px;height:30px}
.brand .wm{height:19px}
.wm-dark{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .wm-ink{display:none}:root:not([data-theme=light]) .wm-dark{display:block}}
:root[data-theme=dark] .wm-ink{display:none}:root[data-theme=dark] .wm-dark{display:block}
.nav{display:grid;gap:2px}
.nav a{display:flex;align-items:center;gap:12px;height:42px;padding:0 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:500}
.nav a:hover{background:var(--hover)}
.nav a[aria-current=page]{background:var(--tint);color:var(--accent-ink);font-weight:600}
.rail .grow{flex:1}
.store{padding:14px 12px;border-top:1px solid var(--rule);font-size:13px;color:var(--muted)}
.store b{color:var(--ink);font-weight:600}
.bar{height:6px;border-radius:3px;background:var(--rule);margin:8px 0 10px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--btn);border-radius:3px}
.store .where{display:flex;align-items:center;gap:6px}
.store .where .i{width:15px;height:15px}

.main{min-width:0;display:flex;flex-direction:column}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;height:68px;padding:0 28px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px)}
.search{flex:1;max-width:560px;display:flex;align-items:center;gap:10px;height:42px;padding:0 14px;border-radius:12px;background:var(--surface);border:1px solid var(--rule);color:var(--muted)}
.search input{border:0;background:none;outline:0;flex:1;min-width:0}
.top .sp{flex:1}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--tint);color:var(--accent-ink);display:grid;place-items:center;font-weight:600;font-size:13px}
.view{padding:6px 28px 80px}
.view[hidden]{display:none}
.head{display:flex;align-items:center;gap:12px;margin:8px 0 18px}
.head h1{font-size:26px}
.chips{display:flex;gap:8px;margin-left:auto}
.chip{height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--rule);background:var(--surface);font-weight:500;cursor:pointer}
.chip[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}

/* photos timeline */
.month{margin:22px 0 10px;display:flex;align-items:baseline;gap:10px}
.month h2{font-size:17px}
.month span{color:var(--muted);font-size:13px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px}
.tile{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--rule);cursor:pointer;border:0;padding:0}
.tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.tile:hover img{transform:scale(1.02)}
.tile .ck{position:absolute;top:8px;left:8px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.25);opacity:0;transition:opacity .15s}
.tile:hover .ck,.sel .tile .ck{opacity:1}
.tile[aria-selected=true]{outline:3px solid var(--accent);outline-offset:-3px}
.tile[aria-selected=true] .ck{background:var(--btn);border-color:#fff;opacity:1}
.tile[aria-selected=true] .ck::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.tile .dur{position:absolute;right:8px;bottom:8px;font-size:12px;font-weight:600;color:#fff;background:rgba(0,0,0,.55);padding:1px 6px;border-radius:6px}
.tile.new{animation:land .5s cubic-bezier(.34,1.5,.5,1)}
@keyframes land{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.selbar{position:sticky;top:68px;z-index:4;display:none;align-items:center;gap:8px;height:52px;padding:0 10px 0 16px;margin:0 0 8px;border-radius:12px;background:var(--surface);border:1px solid var(--rule);box-shadow:0 6px 20px rgba(15,26,51,.08)}
.selbar .btn{height:36px;background:transparent;border-color:transparent;color:inherit}
.selbar .btn.primary{background:var(--btn);color:#fff}
.sel .selbar{display:flex}
.selbar .n{font-weight:600;margin-right:auto}

/* files */
.list{background:var(--surface);border:1px solid var(--rule);border-radius:14px;overflow:hidden}
.row{display:grid;grid-template-columns:1fr 160px 100px 40px;align-items:center;gap:12px;min-height:56px;padding:0 16px;border-top:1px solid var(--rule)}
.row:first-child{border-top:0}
.row.hd{min-height:42px;color:var(--muted);font-size:13px;font-weight:500}
.row .nm{display:flex;align-items:center;gap:12px;font-weight:500;min-width:0}
.row .nm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .mu{color:var(--muted);font-size:14px}
.fic{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--tint);color:var(--accent-ink)}
.thumb{width:34px;height:34px;border-radius:8px;object-fit:cover}

/* shared */
.links{display:grid;gap:10px}
.link{display:grid;grid-template-columns:64px 1fr auto;gap:16px;align-items:center;padding:12px;background:var(--surface);border:1px solid var(--rule);border-radius:14px}
.link .cv{width:64px;height:64px;border-radius:10px;object-fit:cover}
.link h3{font-size:16px;font-family:'IBM Plex Sans',sans-serif;font-weight:600;letter-spacing:0}
.link p{margin:2px 0 0;color:var(--muted);font-size:14px}
.sub{font-size:13px;font-weight:600;color:var(--muted);text-transform:none;margin:28px 0 10px}

/* settings */
.cards{display:grid;gap:14px;max-width:820px}
.card{background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:22px}
.card h2{font-size:18px;margin-bottom:4px}
.card p{margin:4px 0;color:var(--muted)}
.card .big{font:600 28px/1.2 'Space Grotesk',sans-serif;color:var(--ink);margin:10px 0 2px}
.kv{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--rule)}
.kv:first-of-type{border-top:0}
.kv div{min-width:0}.kv b{display:block;font-weight:600}.kv span{color:var(--muted);font-size:14px}
.sw{position:relative;width:44px;height:26px;border-radius:13px;background:var(--rule);border:0;cursor:pointer;flex:none}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.sw[aria-checked=true]{background:var(--btn)}
.sw[aria-checked=true]::after{transform:translateX(18px)}
.place{display:flex;align-items:center;gap:14px;margin-top:12px;padding:14px;border-radius:12px;background:var(--tint)}
.place .i{color:var(--accent-ink);width:24px;height:24px}
.place b{display:block}

/* empty: bring your photos */
.empty{max-width:880px;margin:24px auto;text-align:center}
.empty .stash{width:96px;height:96px;margin:0 auto 18px}
.empty h1{font-size:30px;margin-bottom:8px}
.empty>p{color:var(--muted);margin:0 0 28px}
.ways{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;text-align:left}
.way{background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:6px}
.way .i{width:26px;height:26px;color:var(--accent-ink);margin-bottom:6px}
.way h3{font-size:17px}
.way p{margin:0;color:var(--muted);font-size:14px;flex:1}
.way .btn{margin-top:12px;align-self:flex-start}
.drop{margin-top:14px;border:2px dashed var(--rule);border-radius:16px;padding:22px;color:var(--muted)}

/* stash */
.stash{border-radius:22%;background:linear-gradient(180deg,var(--tile-a),var(--tile-b));display:grid;place-items:center}
.stash svg{width:72%;height:72%;overflow:visible}
.st-w{fill:#fff}.st-core{fill:#FFB74D}.st-pupil{fill:#0F1A33}
.st-part{transform-box:fill-box;transform-origin:50% 50%}
.build .st-tab{animation:pop .5s cubic-bezier(.34,1.7,.5,1) both}
.build .st-bd{animation:pop .5s cubic-bezier(.34,1.7,.5,1) .2s both}
.build .st-eye{animation:pop .5s cubic-bezier(.34,1.9,.5,1) .42s both}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.build .st-part,.tile.new{animation:none}}

/* lightbox */
.lb{position:fixed;inset:0;z-index:30;display:none;grid-template-columns:1fr 320px;background:#07080B;color:#EEF0F5}
.lb.on{display:grid}
.lb .stage{position:relative;display:grid;place-items:center;padding:56px 72px}
.lb .stage img{max-width:100%;max-height:calc(100vh - 112px);border-radius:4px}
.lb .x,.lb .nv{position:absolute;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer}
.lb .x{top:14px;left:14px}.lb .prev{left:14px;top:50%}.lb .next{right:14px;top:50%}
.lb .tools{position:absolute;top:14px;right:14px;display:flex;gap:8px}
.lb .tools .btn{background:rgba(255,255,255,.08);border:0;color:#fff}
.lb aside{background:#11131A;padding:24px;border-left:1px solid #1E222C}
.lb aside h2{font-size:18px;margin-bottom:16px}
.lb dl{margin:0;display:grid;gap:14px}
.lb dt{font-size:13px;color:#A3A9B8}.lb dd{margin:2px 0 0}

/* dialog */
.scrim{position:fixed;inset:0;z-index:40;background:var(--shade);display:none;place-items:center;padding:16px}
.scrim.on{display:grid}
.dlg{width:min(460px,100%);background:var(--surface);border-radius:18px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.dlg h2{font-size:20px;margin-bottom:4px}
.dlg .muted{color:var(--muted);margin:0 0 18px;font-size:14px}
.dlg .strip{display:flex;gap:6px;margin:0 0 18px}
.dlg .strip img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.fld{display:grid;gap:6px;margin-bottom:14px}
.fld label{font-weight:600;font-size:14px}
.fld input,.fld select{height:42px;padding:0 12px;border-radius:10px;border:1px solid var(--rule);background:var(--bg)}
.seg{display:flex;gap:6px}
.seg button{flex:1;height:40px;border-radius:10px;border:1px solid var(--rule);background:var(--bg);cursor:pointer;font-weight:500}
.seg button[aria-pressed=true]{border-color:var(--btn);background:var(--btn);color:#fff;font-weight:600}
.acts{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.ready{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-radius:12px;background:var(--bg);border:1px solid var(--rule);margin:6px 0 4px}
.ready code{flex:1;font:14px/1.3 'IBM Plex Sans',sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* upload tray */
.tray{position:fixed;right:24px;bottom:24px;z-index:20;width:320px;background:var(--surface);border:1px solid var(--rule);border-radius:14px;padding:14px 16px;box-shadow:0 10px 30px rgba(0,0,0,.12);display:none}
.tray.on{display:block}
.tray b{display:block}.tray span{color:var(--muted);font-size:13px}

/* mobile */
.bnav,.fab,.mtop{display:none}
@media (max-width:760px){
  .app{grid-template-columns:1fr}
  .rail,.top{display:none}
  .mtop{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:5;height:58px;padding:0 16px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px)}
  .mtop .brand{padding:0}.mtop .sp{flex:1}
  .mtop .ib{width:40px;height:40px;border-radius:50%;border:0;background:none;display:grid;place-items:center}
  .view{padding:0 16px 110px}
  .head h1{font-size:24px}
  .head{flex-wrap:wrap}
  .chips{margin-left:0;width:100%}
  .grid{grid-template-columns:repeat(3,1fr);gap:3px}
  .tile{border-radius:4px}
  .row{grid-template-columns:1fr 70px 32px}.row .md{display:none}
  .row.hd{display:none}
  .link{grid-template-columns:56px 1fr;}.link .cv{width:56px;height:56px}.link .btn{grid-column:1/-1}
  .ways{grid-template-columns:1fr}
  .empty h1{font-size:26px}
  .bnav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:10;height:68px;padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--rule)}
  .bnav a{display:grid;place-items:center;align-content:center;gap:2px;font-size:12px;font-weight:500;color:var(--muted);text-decoration:none}
  .bnav a[aria-current=page]{color:var(--accent-ink);font-weight:600}
  .fab{display:grid;place-items:center;position:fixed;right:16px;bottom:84px;z-index:11;width:56px;height:56px;border-radius:18px;border:0;background:var(--btn);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.2)}
  .selbar{top:58px;gap:2px}.selbar .lbl{display:none}.selbar .btn{padding:0 10px}.selbar .btn.primary{padding:0 14px}
  .scrim{place-items:end stretch;padding:0}.dlg{width:100%;border-radius:20px 20px 0 0;padding:22px 16px calc(22px + env(safe-area-inset-bottom))}
  .kv{flex-direction:column;align-items:flex-start}.kv .sw{align-self:flex-end;margin-top:-34px}
  .lb{grid-template-columns:1fr}.lb aside{display:none}.lb .stage{padding:56px 0}
  .lb .nv{display:none}
  .tray{left:16px;right:16px;width:auto;bottom:84px}
}

@media (max-width:760px){body:not([data-v=photos]):not([data-v=files]) .fab,.sel~.fab{display:none}}

/* R3: link detail, drive dialog */
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-weight:500;margin:10px 0 14px}
.lhead{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.lhead .cv{width:72px;height:72px;border-radius:12px;object-fit:cover}
.lhead h1{font-size:26px}.lhead p{margin:2px 0 0;color:var(--muted)}
#v-link .ready{max-width:640px;background:var(--surface)}
.lacts{display:flex;gap:8px;margin:12px 0 0}
.btn.danger{color:#B42318}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .btn.danger{color:#FDA29B}}
:root[data-theme=dark] .btn.danger{color:#FDA29B}
.act{max-width:640px}
.arow{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border-top:1px solid var(--rule)}
.arow:first-child{border-top:0}.arow .mu{color:var(--muted);font-size:14px}
.hint{color:var(--muted);font-size:14px;margin:12px 0 0}
.link{cursor:pointer}
.steps{margin:16px 0 14px;padding-left:20px;color:var(--ink)}.steps li{margin:6px 0}
@media (max-width:760px){.head .chips .btn{flex:1;justify-content:center}}
[hidden]{display:none!important}

/* storage-location claims render only when the landing page says they are confirmed (?claims=storage) */
html:not(.claims-storage) .claim-storage{display:none!important}
