:root {
  color-scheme: dark;
  --ink: #070707;
  --panel: #0e0e0f;
  --panel-2: #151516;
  --panel-3: #1c1c1e;
  --line: #2a2a2d;
  --muted: #8b8b91;
  --paper: #f5f3eb;
  --yellow: #ffd400;
  --yellow-soft: #ffe96a;
  --cyan: #4ed7e8;
  --pink: #ff6cae;
  --danger: #ff685f;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(420px, 1fr) minmax(300px, 350px);
  width: 100vw;
  height: 100dvh;
  min-height: 600px;
  background: var(--ink);
}

.sidebar, .conversation, .details-panel { min-width: 0; min-height: 0; }

.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0b0b0c;
  padding: 18px 14px 12px;
}

.brand-row, .conversation-header, .section-title, .profile-strip, .group-identity, .header-actions, .search-wrap, .filter-row, .composer, .details-actions, .switch-row, .profile-editor, .copy-field {
  display: flex;
  align-items: center;
}

.brand-row { justify-content: space-between; padding: 0 3px 18px; }

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px 8px 8px 1px;
  background: var(--yellow);
  color: #050505;
  font-weight: 950;
  font-size: 23px;
  font-style: italic;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .09);
}

.brand strong { display: block; font-size: 20px; letter-spacing: .09em; line-height: 1; }
.brand small, .profile-copy small, .group-identity small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: .09em; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: pointer;
  font-weight: 800;
}
.icon-btn:hover { border-color: #47474b; background: var(--panel-3); }

.search-wrap {
  gap: 9px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.search-wrap:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 212, 0, .11); }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 13px; }
.search-wrap kbd { color: #66666b; border: 1px solid #29292c; padding: 2px 5px; border-radius: 4px; font-size: 9px; }

.filter-row { gap: 6px; padding: 14px 0 12px; overflow-x: auto; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; color: var(--muted); padding: 7px 11px; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 700; }
.filter b { margin-left: 4px; color: inherit; }
.filter.active { background: var(--yellow); color: #080808; border-color: var(--yellow); }

.section-title { justify-content: space-between; padding: 6px 4px 9px; color: #74747a; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.text-btn { padding: 0; border: 0; color: var(--yellow); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.text-btn.centered { display: block; margin: 16px auto 0; }

.chat-list { flex: 1; overflow: auto; padding-right: 2px; }
.chat-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-item:hover { background: #111112; }
.chat-item.active { background: #1a1a1b; border-color: #29292c; }
.chat-item.active::before { content: ""; position: absolute; left: -1px; top: 13px; bottom: 13px; width: 3px; border-radius: 0 2px 2px 0; background: var(--yellow); }
.chat-main { min-width: 0; }
.chat-name-line { display: flex; gap: 6px; align-items: center; }
.chat-name-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.verified { color: var(--yellow); font-size: 8px; }
.chat-preview { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-side { display: flex; flex-direction: column; align-items: end; gap: 7px; }
.chat-time { color: #69696f; font-size: 9px; }
.unread-badge { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 99px; background: var(--yellow); color: #090909; padding: 0 5px; font-size: 9px; font-weight: 900; }

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px 12px 12px 3px;
  color: #070707;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.avatar-yellow { background: var(--yellow); }
.avatar-cyan { background: var(--cyan); }
.avatar-pink { background: var(--pink); }
.avatar-gray { background: #b8b6ad; }
.avatar-large { width: 56px; height: 56px; font-size: 15px; }

.install-card { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid #3a3518; border-radius: 10px; background: #17150c; }
.install-card strong { display: block; margin-top: 4px; font-size: 12px; }
.install-card small { display: block; margin-top: 4px; color: #8e8971; font-size: 9px; line-height: 1.4; }
.eyebrow { color: var(--yellow); font-size: 9px; font-weight: 950; letter-spacing: .18em; }
.mini-button { border: 0; border-radius: 7px; background: var(--yellow); color: #070707; padding: 8px 10px; font-size: 10px; font-weight: 900; cursor: pointer; }

.profile-strip { width: 100%; gap: 10px; padding: 12px 8px 2px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.profile-copy { flex: 1; }
.profile-copy strong { font-size: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #49dc81; box-shadow: 0 0 0 3px rgba(73, 220, 129, .11); }

.conversation { display: flex; flex-direction: column; background: #0b0b0c; }
.conversation-header { min-height: 74px; padding: 11px 20px; border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, .94); }
.group-identity { gap: 11px; flex: 1; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.group-identity strong { font-size: 14px; }
.group-identity small { letter-spacing: 0; }
.header-actions { gap: 7px; }
.mobile-back { display: none; margin-right: 7px; font-size: 27px; }

.message-stream {
  flex: 1;
  overflow-y: auto;
  padding: 22px clamp(18px, 5vw, 64px) 12px;
  background-color: #09090a;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
}
.day-divider { display: flex; align-items: center; gap: 12px; margin: 5px 0 24px; color: #67676d; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.day-divider::before, .day-divider::after { content: ""; height: 1px; flex: 1; background: #232326; }
.system-message { max-width: 520px; margin: 0 auto 25px; padding: 12px 16px; border: 1px solid #353017; border-radius: 8px; background: #17150d; color: #aaa58e; text-align: center; font-size: 10px; line-height: 1.55; }
.system-message b { color: var(--yellow); }
.message-row { display: flex; gap: 10px; margin: 0 0 18px; align-items: flex-end; }
.message-row.mine { justify-content: flex-end; }
.message-body { max-width: min(72%, 620px); }
.message-author { display: flex; align-items: center; gap: 7px; margin: 0 0 5px 4px; color: var(--muted); font-size: 9px; }
.message-author strong { color: var(--yellow-soft); font-size: 10px; }
.bubble { position: relative; padding: 10px 12px 8px; border: 1px solid #2e2e31; border-radius: 5px 13px 13px 13px; background: #19191b; font-size: 13px; line-height: 1.55; box-shadow: 0 7px 20px rgba(0,0,0,.16); }
.mine .bubble { border-color: #453e11; border-radius: 13px 5px 13px 13px; background: #24210d; }
.bubble-time { display: inline-block; margin-left: 9px; color: #6f6f74; font-size: 8px; white-space: nowrap; }
.mine .bubble-time { color: #9e9257; }
.reaction { display: inline-flex; gap: 3px; align-items: center; margin: 5px 0 0 7px; border: 1px solid #383329; border-radius: 99px; background: #1d1a13; padding: 3px 7px; color: #c6b865; font-size: 9px; }

.composer { gap: 8px; padding: 12px clamp(14px, 3vw, 28px) calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: #0d0d0e; }
.composer textarea { flex: 1; min-width: 0; max-height: 120px; resize: none; border: 1px solid #2d2d30; border-radius: 13px; outline: 0; background: #171719; color: var(--paper); padding: 12px 13px; font-size: 13px; line-height: 1.4; }
.composer textarea:focus { border-color: #5d5420; }
.attach-button, .emoji-button, .send-button { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; cursor: pointer; }
.attach-button, .emoji-button { border: 1px solid var(--line); background: var(--panel-2); color: #aaaab0; }
.send-button { border: 0; background: var(--yellow); color: #070707; font-weight: 950; }

.details-panel { overflow-y: auto; border-left: 1px solid var(--line); background: #0e0e0f; }
.details-cover { position: relative; display: grid; place-items: center; min-height: 190px; overflow: hidden; background: var(--yellow); color: #080808; }
.details-cover::before { content: ""; position: absolute; width: 250px; height: 250px; border: 38px solid rgba(0,0,0,.09); border-radius: 50%; transform: translate(80px, -65px); }
.details-cover::after { content: "PAN"; position: absolute; left: -8px; bottom: -36px; color: rgba(0,0,0,.1); font-size: 96px; font-weight: 950; letter-spacing: -.09em; }
.corner-label { position: absolute; left: 14px; top: 13px; font-size: 8px; font-weight: 950; letter-spacing: .17em; }
.hero-avatar { z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; border: 3px solid #0a0a0a; border-radius: 22px 22px 22px 5px; background: #0a0a0a; color: var(--yellow); font-size: 24px; font-weight: 950; box-shadow: 8px 8px 0 rgba(0,0,0,.16); }
.details-body { padding: 20px 20px 28px; }
.verified-line { color: var(--yellow); font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.details-body h1 { margin: 7px 0 5px; font-size: 23px; letter-spacing: -.035em; }
.details-body > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.detail-actions button { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: #151516; color: #a5a5aa; padding: 10px 5px; font-size: 9px; cursor: pointer; }
.detail-actions button span { color: var(--yellow); font-size: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border-block: 1px solid var(--line); }
.stats-grid div { padding: 14px 8px; border-right: 1px solid var(--line); text-align: center; }
.stats-grid div:last-child { border: 0; }
.stats-grid dt { font-size: 15px; font-weight: 900; }
.stats-grid dd { margin: 4px 0 0; color: #76767b; font-size: 8px; letter-spacing: .08em; }
.info-list { border-top: 1px solid var(--line); }
.info-list button { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.info-list button > span:first-child { color: var(--yellow); font-size: 16px; text-align: center; }
.info-list strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.info-list small { display: block; margin-top: 4px; color: #6f6f74; font-size: 8px; }
.info-list b { color: #636368; }
.details-body .safety-note { display: flex; gap: 9px; margin-top: 18px; padding: 12px; border: 1px solid #343019; border-radius: 8px; background: #17150e; color: #9b967e; font-size: 9px; }
.safety-note span { color: var(--yellow); }

.mobile-nav { display: none; }

.modal { max-width: none; max-height: none; width: 100%; height: 100%; padding: 20px; border: 0; background: rgba(0,0,0,.72); color: var(--paper); }
.modal[open] { display: grid; place-items: center; }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal-card { width: min(100%, 500px); max-height: min(88dvh, 760px); overflow-y: auto; margin: auto; padding: 24px; border: 1px solid #363638; border-radius: 16px; background: #111112; box-shadow: var(--shadow); }
.compact-card { width: min(100%, 430px); }
.modal-card header { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 23px; }
.modal-card h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.04em; }
.close-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #19191a; color: #aaa; font-size: 21px; cursor: pointer; }
.modal-card > label, .modal-card fieldset { display: block; margin: 0 0 17px; border: 0; color: #a1a1a6; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.modal-card input:not([type="checkbox"]):not([type="radio"]), .modal-card textarea, .modal-card select { display: block; width: 100%; margin-top: 8px; border: 1px solid #333336; border-radius: 10px; outline: 0; background: #1a1a1c; color: var(--paper); padding: 12px; font-size: 13px; font-weight: 500; }
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus { border-color: var(--yellow); }
.modal-card legend { margin-bottom: 8px; }
.choice { display: flex; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; margin: 6px 0; cursor: pointer; }
.choice:has(input:checked) { border-color: #5a501a; background: #19170e; }
.choice input { accent-color: var(--yellow); }
.choice strong, .choice small { display: block; }
.choice strong { color: var(--paper); font-size: 11px; }
.choice small { margin-top: 3px; color: #79797e; font-weight: 500; }
.terms-check { display: flex !important; gap: 9px; align-items: start; font-weight: 500 !important; line-height: 1.5; }
.terms-check input { accent-color: var(--yellow); }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-radius: 10px; background: var(--yellow); color: #070707; padding: 13px 15px; font-size: 12px; font-weight: 950; cursor: pointer; }
.primary-button:hover { background: var(--yellow-soft); }
.primary-button:disabled { cursor: wait; opacity: .62; }
.outline-button { border: 1px solid #4a431d; border-radius: 9px; background: transparent; color: var(--yellow); padding: 9px 12px; font-size: 10px; font-weight: 900; cursor: pointer; }
.full-width { width: 100%; }
.profile-editor { gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-editor > div { flex: 1; }
.profile-editor strong, .profile-editor small { display: block; }
.profile-editor small { margin-top: 4px; color: var(--muted); }
.field-note { margin: -8px 0 18px; color: #747479; font-size: 9px; line-height: 1.6; }
.switch-row { justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.switch-row span { flex: 1; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { color: var(--paper); font-size: 11px; }
.switch-row small { margin-top: 4px; color: #747479; font-size: 9px; font-weight: 500; line-height: 1.4; }
.switch-row input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: #333336; position: relative; cursor: pointer; }
.switch-row input::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #aaa; transition: .18s; }
.switch-row input:checked { background: var(--yellow); }
.switch-row input:checked::after { transform: translateX(16px); background: #090909; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #0c0c0d; }
.auth-methods button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 9px; font-size: 11px; font-weight: 900; cursor: pointer; }
.auth-methods button.active { background: var(--yellow); color: #090909; }
.auth-card #authLoginStep { display: grid; gap: 15px; }
.unified-account-card { margin-bottom: 15px; border: 1px solid #514817; border-radius: 11px; background: #17150d; padding: 17px; }
.unified-account-card > span { display: block; color: var(--yellow); font-size: 8px; font-weight: 950; letter-spacing: .16em; }
.unified-account-card > strong { display: block; margin-top: 9px; font-size: 18px; letter-spacing: -.025em; }
.unified-account-card p { margin: 9px 0 0; color: #989587; font-size: 10px; line-height: 1.65; }
.auth-error { margin: 0; border: 1px solid #5d2825; border-radius: 8px; background: #21100f; color: #ff9d96; padding: 10px 11px; font-size: 10px; line-height: 1.5; }
.auth-note { margin: 12px 2px 0; text-align: center; }
.auth-disclaimer { margin: 18px 0 0; color: #626267; text-align: center; font-size: 8px; line-height: 1.6; }
.install-steps { margin: 0; padding: 0; list-style: none; counter-reset: install; }
.install-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; counter-increment: install; margin: 0 0 14px; }
.install-steps li::before { content: counter(install); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--yellow); color: #090909; font-size: 12px; font-weight: 950; }
.install-steps b { font-size: 11px; }
.install-steps span { grid-column: 2; color: var(--muted); font-size: 10px; line-height: 1.5; }
.action-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; padding: 13px 4px; text-align: left; cursor: pointer; }
.action-row > span:first-child { color: var(--yellow); text-align: center; font-size: 16px; }
.action-row strong, .action-row small { display: block; }
.action-row strong { font-size: 11px; }
.action-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.action-row.danger strong, .action-row.danger > span:first-child { color: var(--danger); }
.copy-field { gap: 6px; }
.copy-field input { margin: 0 !important; }
.copy-field button { align-self: stretch; border: 0; border-radius: 8px; background: var(--yellow); color: #080808; padding: 0 12px; font-size: 10px; font-weight: 900; cursor: pointer; }
.privacy-highlight { display: flex; gap: 13px; margin-bottom: 20px; padding: 15px; border: 1px solid #3e391c; border-radius: 11px; background: #17150d; }
.privacy-highlight > span { color: var(--yellow); font-size: 20px; }
.privacy-highlight strong { font-size: 12px; }
.privacy-highlight p { margin: 6px 0 0; color: #9c977d; font-size: 10px; line-height: 1.55; }
.member-list > div { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.member-list .avatar { width: 40px; height: 40px; }
.member-list strong, .member-list small { display: block; }
.member-list strong { font-size: 11px; }
.member-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.member-list b { color: #716c48; font-size: 8px; letter-spacing: .1em; }
.about-copy { color: #a1a1a5; font-size: 13px; line-height: 1.6; }
.brand-poster { display: flex; gap: 18px; align-items: center; margin: 20px 0; padding: 20px; background: var(--yellow); color: #090909; }
.brand-poster > span { display: grid; place-items: center; width: 65px; height: 65px; border: 4px solid #090909; border-radius: 16px 16px 16px 4px; font-size: 38px; font-style: italic; font-weight: 950; }
.brand-poster strong { font-size: 22px; line-height: .9; letter-spacing: -.04em; }
.prototype-label { color: #6b6b70; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: min(90vw, 460px); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; border: 1px solid #5a501c; border-radius: 10px; background: #1a180f; color: #ddd7b6; padding: 11px 15px; box-shadow: var(--shadow); font-size: 11px; transition: .22s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: minmax(280px, 330px) minmax(420px, 1fr); }
  .details-panel { display: none; }
}

@media (max-width: 720px) {
  body { overflow: hidden; }
  .app-shell { display: block; min-height: 0; }
  .sidebar, .conversation { position: absolute; inset: 0 0 calc(60px + var(--safe-bottom)); border: 0; }
  .sidebar { padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 9px; }
  .conversation { transform: translateX(100%); transition: transform .24s ease; }
  .app-shell[data-mobile-view="conversation"] .conversation, .app-shell[data-mobile-view="details"] .conversation { transform: translateX(0); }
  .app-shell[data-mobile-view="conversation"] .sidebar, .app-shell[data-mobile-view="details"] .sidebar { visibility: hidden; }
  .mobile-back { display: block; }
  .conversation-header { min-height: 64px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; }
  .group-identity .avatar { width: 38px; height: 38px; }
  .message-stream { padding: 17px 12px 8px; }
  .message-body { max-width: 82%; }
  .composer { padding: 8px 9px calc(8px + var(--safe-bottom)); }
  .emoji-button { display: none; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; right: 0; bottom: 0; z-index: 8; height: calc(60px + var(--safe-bottom)); padding: 6px 16px var(--safe-bottom); border-top: 1px solid var(--line); background: rgba(12,12,13,.97); }
  .mobile-nav button { display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: #717177; font-size: 8px; font-weight: 800; cursor: pointer; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: var(--yellow); }
  .install-card { margin-bottom: 2px; }
  .profile-strip { display: none; }
  .modal { padding: 10px; align-items: end; }
  .modal[open] { place-items: end center; }
  .modal-card { width: 100%; max-height: 90dvh; border-radius: 18px 18px 10px 10px; padding: 20px; }
  .toast { bottom: calc(73px + var(--safe-bottom)); }
}

@media (max-height: 690px) and (min-width: 721px) {
  .install-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
