:root{--bg: #0b0b0f;--panel: #15151c;--panel-2: #1d1d27;--line: #2a2a36;--text: #ececf1;--muted: #9a9aab;--accent: #c9a7ff;--accent-ink: #1a1026;--danger: #ff7b86;--radius: 14px;color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button{font:inherit;color:inherit}h1{font-size:1.35rem;margin:0}h2{font-size:1.1rem;margin:0}.muted{color:var(--muted)}.small{font-size:.85rem}.spacer,.grow{flex:1}.row{display:flex;gap:8px;align-items:center}.row.end{justify-content:flex-end}.row.center{justify-content:center;padding:16px}.stack{display:flex;flex-direction:column;gap:14px}.btn{border:1px solid transparent;border-radius:10px;padding:10px 16px;cursor:pointer;min-height:44px;background:var(--panel-2)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--accent);color:var(--accent-ink);font-weight:600}.btn.ghost{background:transparent;border-color:var(--line)}.btn.wide{width:100%}.icon-btn{background:transparent;border:0;min-width:44px;min-height:44px;font-size:1.3rem;cursor:pointer;border-radius:10px}.icon-btn:hover,.btn.ghost:hover{background:var(--panel-2)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(380px,100%);background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:16px;text-align:center}.auth-logo{width:56px;height:56px;margin:0 auto}.field{display:flex;flex-direction:column;gap:6px;text-align:start;font-size:.9rem;color:var(--muted)}.field input,input.pin{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--text);font-size:1rem;min-height:44px}input.pin{letter-spacing:.5em;text-align:center;font-size:1.3rem}.check{display:flex;gap:10px;text-align:start;align-items:flex-start;font-size:.9rem}.check input{margin-top:3px;width:18px;height:18px}.check small{display:block;color:var(--muted);margin-top:2px}.error{color:var(--danger);margin:0}.shell{min-height:100dvh}.shell.veiled main{filter:blur(28px) brightness(.4);pointer-events:none}.topbar{position:sticky;top:0;z-index:5;display:flex;gap:8px;align-items:center;padding:10px 16px;background:color-mix(in srgb,var(--bg) 85%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;background:none;border:0;font-weight:700;font-size:1.05rem;cursor:pointer}.brand img{width:28px;height:28px}.page{max-width:1200px;margin:0 auto;padding:16px}.tabs{display:flex;gap:6px;align-items:center;margin-bottom:16px}.tabs [role=tab]{background:none;border:0;padding:10px 14px;border-radius:999px;cursor:pointer;color:var(--muted);min-height:44px}.tabs [role=tab][aria-selected=true]{background:var(--panel-2);color:var(--text)}.grid{display:grid;gap:12px}.grid.albums{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.grid.media{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}.album-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;text-align:start;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-height:140px}.album-card:hover:not([aria-disabled=true]){border-color:var(--accent)}.album-card[aria-disabled=true]{opacity:.55;cursor:default}.album-glyph{font-size:1.8rem;color:var(--accent)}.album-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile{position:relative;aspect-ratio:1;border:0;padding:0;border-radius:8px;overflow:hidden;background:var(--panel);cursor:pointer}.tile img{width:100%;height:100%;object-fit:cover;display:block}.badge{position:absolute;right:6px;bottom:6px;background:#000a;border-radius:6px;padding:2px 6px;font-size:.75rem}.media-ph{width:100%;height:100%;display:grid;place-items:center;background:var(--panel-2);color:var(--muted);font-size:1.4rem}.media-ph.big{width:min(80vw,900px);height:60vh}.shimmer{background:linear-gradient(90deg,var(--panel) 0%,var(--panel-2) 50%,var(--panel) 100%);background-size:200% 100%;animation:sh 1.2s infinite}@keyframes sh{0%{background-position:200% 0}to{background-position:-200% 0}}.empty{text-align:center;padding:64px 16px;display:flex;flex-direction:column;gap:8px}.album-header{display:flex;gap:10px;align-items:center;margin-bottom:16px}.banner{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:.9rem}.bar{height:4px;background:var(--line);border-radius:4px;margin-top:8px;overflow:hidden}.bar>div{height:100%;background:var(--accent);transition:width .2s}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:grid;place-items:center;z-index:20;padding:16px}.modal{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px;width:min(420px,100%)}.modal.wide{width:auto;max-width:96vw;background:transparent;border:0;padding:0}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.viewer{position:relative;display:grid;place-items:center}.viewer img.full,.viewer video{max-width:94vw;max-height:88vh;border-radius:10px;display:block}.viewer-close{position:fixed;top:12px;right:12px;background:#0008}.viewer .nav{position:fixed;top:50%;transform:translateY(-50%);background:#0008;font-size:2rem}.viewer .nav.prev{left:12px}.viewer .nav.next{right:12px}.spinner{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.shimmer,.spinner{animation:none}}.blurred{position:relative;width:100%;height:100%;overflow:hidden}.blurred-inner{width:100%;height:100%}.blurred-tint{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.blurred-badge{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;text-align:center;font-size:.85rem;font-weight:600;text-shadow:0 1px 3px #000}.blurred-badge .chili{font-size:2rem;display:block}.album-cover{position:relative;aspect-ratio:4 / 3;border-radius:10px;overflow:hidden;background:var(--panel-2);margin:-4px -4px 6px}.album-cover img{width:100%;height:100%;object-fit:cover;display:block}.cover-eye{position:absolute;top:0;right:0;min-width:44px;min-height:44px;border:0;background:transparent;color:#fffb;font-size:1rem;cursor:pointer}.settings-row{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border-bottom:0}.settings-row .head{display:flex;align-items:center;justify-content:space-between;gap:12px}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.segmented button{border:0;background:transparent;padding:8px 18px;min-height:40px;cursor:pointer;color:var(--text)}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);font-weight:600}.switch{width:44px;height:26px;accent-color:var(--accent)}.viewer .blurred{width:min(80vw,900px);height:70vh;border-radius:10px}.viewer .reveal{position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.chili-corner{position:absolute;top:4px;left:4px;font-size:16px;line-height:1;text-shadow:0 1px 4px rgba(0,0,0,.55);pointer-events:none}.tabbar{display:flex;gap:4px;padding:0 12px;border-bottom:1px solid var(--line);overflow-x:auto;background:var(--bg)}.tabbar button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 14px;min-height:44px;cursor:pointer;color:var(--muted);white-space:nowrap;position:relative}.tabbar button.on{color:var(--text);border-bottom-color:var(--accent)}.tabbar .count{margin-left:6px;background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:0 6px;font-size:.72rem;font-weight:700}.page.narrow{max-width:720px;margin-inline:auto}.list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:10px;text-align:left}.row.wrap{flex-wrap:wrap}.col{display:flex;flex-direction:column;gap:8px}.col.center{align-items:center;text-align:center}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.avatar{display:inline-grid;place-items:center;flex:none;border-radius:50%;overflow:hidden;background:var(--panel-2);color:var(--muted);font-weight:600}.avatar img{width:100%;height:100%;object-fit:cover}.btn.danger{background:var(--danger);color:#210008;font-weight:600}button.link{background:none;border:0;padding:0 0 0 6px;cursor:pointer;color:var(--muted);min-height:0}select,.composer input,.modal input:not([type=checkbox]){background:var(--panel-2);border:1px solid var(--line);border-radius:10px;color:var(--text);padding:10px 12px;min-height:44px;font:inherit;width:100%}.feed-media{position:relative;border:0;padding:0;border-radius:10px;overflow:hidden;cursor:pointer;background:var(--panel-2);aspect-ratio:4 / 3;width:100%}.feed-media img{width:100%;height:100%;object-fit:cover;display:block}.stars{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.stars .star{background:none;border:0;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer;min-width:44px;min-height:44px}.stars .star:hover,.stars .star:focus-visible{color:#ffcf5a}.stars.big{justify-content:center}.stars.big .star{font-size:2.4rem;min-width:56px}.spark-wrap{display:flex;flex-direction:column;gap:8px;margin-top:12px}.spark-card{width:100%;aspect-ratio:3 / 4;max-height:70vh;border-radius:var(--radius);overflow:hidden;background:var(--panel-2);display:block;object-fit:cover}.spark-card img{width:100%;height:100%;object-fit:cover;display:block}.mini-spark{display:flex;flex-direction:column;gap:2px;width:92px}.mini-spark img,.mini-spark .media-ph{width:92px;height:92px;object-fit:cover;border-radius:8px}.spark-pick{width:100%;aspect-ratio:1;border:1px dashed var(--line);border-radius:var(--radius);background:var(--panel-2);cursor:pointer;overflow:hidden;display:grid;place-items:center;margin-top:12px}.spark-pick img{width:100%;height:100%;object-fit:cover}.grid.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:12px}.person{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;min-height:150px}.chat-row{flex-direction:row;align-items:center;cursor:pointer}.chat-row .grow{min-width:0}.dot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}.chat-page{display:flex;flex-direction:column;height:calc(100dvh - 120px)}.messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:12px 0}.bubble-row{display:flex}.bubble-row.mine{justify-content:flex-end}.bubble{max-width:min(75%,480px);background:var(--panel-2);border-radius:16px;padding:8px 12px;display:flex;flex-direction:column;gap:6px}.bubble-row.mine .bubble{background:#3a2a55}.bubble-meta{align-self:flex-end;font-size:.72rem}.bubble-media{position:relative;border:0;padding:0;border-radius:12px;overflow:hidden;cursor:pointer;width:240px;max-width:100%;aspect-ratio:1;background:var(--panel)}.bubble-media img{width:100%;height:100%;object-fit:cover;display:block}.system-msg{text-align:center;margin:6px 0}.composer{display:flex;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.send-preview{width:100%;max-height:50vh;object-fit:contain;border-radius:10px;margin:12px 0}.avatar.group{background:color-mix(in srgb,var(--accent) 22%,var(--panel-2));border-radius:30%}.avatar-btn{background:none;border:0;padding:0;cursor:pointer;border-radius:50%;position:relative;min-width:44px;min-height:44px;display:inline-grid;place-items:center}.avatar-busy{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0009;border-radius:50%}.chat-head{display:flex;align-items:center;gap:10px;background:none;border:0;cursor:pointer;text-align:left;min-width:0;padding:4px;border-radius:10px;min-height:44px}.chat-head:hover{background:var(--panel)}.day-sep{display:flex;justify-content:center;margin:10px 0 4px}.day-sep span{background:var(--panel);color:var(--muted);font-size:.75rem;padding:3px 10px;border-radius:999px}.bubble-row{gap:6px;align-items:flex-end}.sender-avatar{min-width:36px;min-height:36px}button.link.sender{padding:0;font-size:.8rem;color:var(--accent);text-align:left}.nowrap{white-space:nowrap}.center{text-align:center}.modal textarea{background:var(--panel-2);border:1px solid var(--line);border-radius:10px;color:var(--text);padding:10px 12px;font:inherit;width:100%;resize:vertical}
