* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --bg:#14151a; --card:#1f2129; --line:#2e313c; --text:#f2f3f7; --mute:#9a9eb0; --accent:#ff6b35; --accent2:#ffb347; }
html, body { margin:0; background:#0a0a0d; color:var(--text); font-family:-apple-system, "Segoe UI", Roboto, sans-serif; }
/* Phone frame on desktop; full screen on a real phone */
.phone { width:390px; height:844px; margin:16px auto; background:var(--bg); border-radius:36px; border:8px solid #000; overflow:hidden; display:flex; flex-direction:column; position:relative; }
@media (max-width:430px) { .phone { width:100%; height:100vh; height:100dvh; margin:0; border:0; border-radius:0; } }
.top { display:flex; align-items:center; gap:8px; padding:18px 16px 8px; min-height:60px; }
.top h1 { font-size:20px; margin:0; flex:1; }
.top { gap:12px; }
/* Icon buttons: the icon is drawn with a mask so a screen only needs <a class="home"> or <a class="gear"> */
.home, .gear { width:46px; height:46px; flex:none; border-radius:14px; background:var(--card); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.home { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2.5 11.2h2.7V20a1 1 0 0 0 1 1h4.3v-6h3v6h4.3a1 1 0 0 0 1-1v-8.8h2.7z'/%3E%3C/svg%3E"); }
.gear { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E"); }
.home::before, .gear::before { content:""; width:24px; height:24px; background:var(--accent); -webkit-mask:var(--icon) center/contain no-repeat; mask:var(--icon) center/contain no-repeat; }
.home:active, .gear:active { background:var(--accent); }
.home:active::before, .gear:active::before { background:#fff; }
.content { flex:1; overflow-y:auto; padding:8px 16px 24px; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:16px; margin-bottom:14px; }
.btn { display:block; width:100%; min-height:52px; border:0; border-radius:14px; background:var(--accent); color:#fff; font-family:inherit; font-size:17px; font-weight:700; text-align:center; text-decoration:none; padding:14px; cursor:pointer; }
.btn.alt { background:var(--card); border:1px solid var(--line); }
.btn:disabled { opacity:.45; cursor:default; }
.label { color:var(--mute); font-size:13px; text-transform:uppercase; letter-spacing:.06em; margin:0 0 8px; }
.row { display:flex; gap:8px; align-items:center; }
.chip { min-height:44px; padding:0 14px; display:inline-flex; align-items:center; border-radius:22px; background:var(--bg); border:1px solid var(--line); color:var(--text); font-size:15px; cursor:pointer; }
.chip.on { background:var(--accent); border-color:var(--accent); font-weight:700; }
.wrap { display:flex; flex-wrap:wrap; gap:8px; }
.note { color:var(--mute); font-size:13px; line-height:1.4; }
.lnk { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); font-weight:700; font-size:15px; text-decoration:none; }
[hidden] { display:none !important; }
