/* ==========================================================
   Chat-express-free2026 — dark LINE-like UI (vanilla CSS)
   ========================================================== */
:root {
  --bg: #0b0b0d;
  --panel: #131316;
  --panel-2: #1a1a1f;
  --panel-3: #202027;
  --line: #2b2b33;
  --text: #ececed;
  --muted: #9a9aa2;
  --muted-2: #6f6f78;
  --green: #06c755;
  --green-dark: #05a847;
  --green-soft: rgba(6, 199, 85, 0.14);
  --blue: #4c9aff;
  --red: #ff5a5f;
  --amber: #f5a524;
  --bubble-in: #1e1e24;
  --bubble-out: #06c755;
  --radius: 14px;
  --header-h: 56px;
  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --chat-bg: #0b0b0d;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
html { background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--blue); text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #34343c; border-radius: 3px; }
.hidden { display: none !important; }

/* ---------- boot ---------- */
.app-root, .admin-root { min-height: 100dvh; }
.boot-splash {
  min-height: 100dvh; display: flex; flex-direction: column; gap: 18px;
  align-items: center; justify-content: center;
}
.boot-logo {
  font-weight: 800; letter-spacing: 0.06em; font-size: 20px;
  background: linear-gradient(100deg, var(--green), #59f0a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #2c2c34; border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- auth ---------- */
.auth-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 34px) 22px calc(var(--safe-b) + 22px);
  max-width: 460px; margin: 0 auto;
}
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .logo {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(140deg, var(--green), #14e07a);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: 0 12px 34px rgba(6, 199, 85, 0.28);
}
.auth-brand h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: 0.01em; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 12.5px; }
.tabs {
  display: flex; background: var(--panel-2); border-radius: 12px; padding: 4px;
  margin-bottom: 18px;
}
.tabs button {
  flex: 1; padding: 10px 0; border-radius: 9px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: background 0.18s, color 0.18s;
}
.tabs button.active { background: var(--panel-3); color: var(--text); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 13px; outline: none; font-size: 15px;
}
.field input:focus, .field textarea:focus { border-color: var(--green); background: #17171c; }
.field .hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; }
.checkline input { margin-top: 2px; accent-color: var(--green); width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  background: var(--panel-3); color: var(--text); transition: opacity 0.15s, transform 0.12s;
  width: 100%;
}
.btn:active { transform: scale(0.985); }
.btn.primary { background: var(--green); color: #04220f; }
.btn.primary:hover { background: #09d95e; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: rgba(255, 90, 95, 0.14); color: #ff8b8e; border: 1px solid rgba(255, 90, 95, 0.3); }
.btn:disabled { opacity: 0.5; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 9px; width: auto; }
.form-error { color: #ff8b8e; font-size: 12.5px; min-height: 17px; margin-bottom: 8px; }
.auth-foot { margin-top: auto; text-align: center; color: var(--muted-2); font-size: 11px; padding-top: 20px; }

/* ---------- app shell ---------- */
.shell { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }
.app-header {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--header-h) + var(--safe-t)); padding: var(--safe-t) 12px 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(19, 19, 22, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-header h2 { font-size: 17px; margin: 0; font-weight: 700; flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px; color: var(--text);
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--panel-3); }
.icon-btn .dot {
  position: absolute; transform: translate(12px, -12px); width: 8px; height: 8px;
  border-radius: 50%; background: var(--red); border: 2px solid var(--bg);
}
.page { flex: 1; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px); }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(19, 19, 22, 0.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--muted-2); font-weight: 600; position: relative;
}
.bottom-nav button .ic { font-size: 19px; line-height: 1; }
.bottom-nav button.active { color: var(--green); }
.bottom-nav .nav-badge {
  position: absolute; top: 8px; left: 50%; margin-left: 6px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- list rows ---------- */
.list { background: var(--panel); }
.row {
  display: flex; gap: 12px; align-items: center; padding: 11px 14px;
  border-bottom: 1px solid rgba(43, 43, 51, 0.6); position: relative;
  transition: background 0.12s; width: 100%; text-align: left;
}
.row:active { background: var(--panel-2); }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, #2c2c36, #1c1c22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #d7d7dd; font-size: 18px; overflow: hidden;
  object-fit: cover; user-select: none;
}
.avatar.sm { width: 38px; height: 38px; font-size: 14px; }
.avatar.xs { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 92px; height: 92px; font-size: 34px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.row .main { flex: 1; min-width: 0; }
.row .top { display: flex; align-items: baseline; gap: 8px; }
.row .name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .time { font-size: 11px; color: var(--muted-2); margin-left: auto; flex: 0 0 auto; }
.row .preview {
  font-size: 12.8px; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 0 auto; }
.badge {
  background: var(--green); color: #03230fd9; font-size: 10.5px; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 9.5px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge.gray { background: #3a3a44; color: #cfcfd6; }
.badge.red { background: var(--red); color: #fff; }
.section-label {
  font-size: 11.5px; color: var(--muted-2); font-weight: 700; letter-spacing: 0.06em;
  padding: 15px 16px 7px; text-transform: uppercase;
}
.empty-state {
  padding: 54px 26px; text-align: center; color: var(--muted-2); font-size: 13px;
}
.empty-state .big { font-size: 34px; margin-bottom: 10px; }
.empty-state p { margin: 5px 0; }

/* ---------- search ---------- */
.search-bar { padding: 10px 12px; background: var(--panel); }
.search-bar input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; outline: none; font-size: 14px;
}
.search-bar input:focus { border-color: #3a3a44; }
.search-results { background: var(--panel); }

/* ---------- chat ---------- */
.chat-screen {
  display: flex; flex-direction: column; height: 100dvh; background: var(--chat-bg);
  background-size: cover; background-position: center;
}
.chat-header {
  position: sticky; top: 0; z-index: 30; flex: 0 0 auto;
  height: calc(var(--header-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 6px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(19, 19, 22, 0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chat-header .titles { flex: 1; min-width: 0; }
.chat-header .titles b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .titles span { font-size: 11px; color: var(--muted); }
.chat-tabs { display: flex; gap: 6px; padding: 8px 12px 9px; background: var(--panel); border-bottom: 1px solid var(--line); }
.chat-tabs button {
  flex: 1; padding: 8px; font-size: 13px; font-weight: 700; border-radius: 9px;
  color: var(--muted); background: var(--panel-2);
}
.chat-tabs button.active { color: var(--text); background: var(--panel-3); }

.msg-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 14px 10px 8px; display: flex; flex-direction: column; gap: 3px;
  -webkit-overflow-scrolling: touch;
}
.msg-scroll.notes-mode { display: block; padding: 12px; }

.day-sep { text-align: center; margin: 14px 0 8px; }
.day-sep span {
  background: rgba(40, 40, 48, 0.9); color: #b9b9c2; font-size: 11px;
  padding: 4px 12px; border-radius: 10px;
}
.msg { display: flex; gap: 7px; align-items: flex-end; max-width: 100%; }
.msg.out { flex-direction: row-reverse; }
.msg .avatar { width: 33px; height: 33px; font-size: 12.5px; align-self: flex-start; margin-top: 3px; }
.msg .bubble-col { max-width: min(75%, 560px); display: flex; flex-direction: column; gap: 2px; }
.msg.out .bubble-col { align-items: flex-end; }
.msg .sender {
  font-size: 10.5px; color: var(--muted-2); margin: 0 4px 1px;
}
.bubble {
  position: relative; background: var(--bubble-in); color: var(--text);
  padding: 8px 12px; border-radius: 16px; font-size: 14.6px; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap; transition: background 0.15s;
  border-bottom-left-radius: 5px;
}
.msg.out .bubble { background: var(--bubble-out); color: #05230f; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.bubble a { color: #8fd0ff; text-decoration: underline; }
.msg.out .bubble a { color: #053a1a; }
.bubble.media { padding: 3px; background: transparent !important; }
.bubble .img-msg {
  max-width: 100%; max-height: 330px; border-radius: 14px; display: block; object-fit: cover;
}
.msg-meta {
  display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted-2);
  padding: 0 4px;
}
.msg.out .msg-meta { flex-direction: row-reverse; }
.read-mark { color: var(--green); font-size: 10px; font-weight: 700; }

.reply-quote {
  border-left: 3px solid rgba(255, 255, 255, 0.35); padding: 3px 8px; margin-bottom: 5px;
  font-size: 11.5px; opacity: 0.82; border-radius: 5px; background: rgba(255, 255, 255, 0.07);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg.out .reply-quote { border-left-color: rgba(3, 40, 17, 0.45); background: rgba(0, 0, 0, 0.1); }

.ogp-card {
  margin-top: 6px; border-radius: 11px; overflow: hidden; background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.09); text-decoration: none; display: block; color: inherit;
}
.ogp-card img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.ogp-card .ogp-body { padding: 7px 9px; }
.ogp-card .ogp-site { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ogp-card .ogp-title { font-size: 12.5px; font-weight: 700; margin: 2px 0; line-height: 1.35; }
.ogp-card .ogp-desc { font-size: 11px; color: var(--muted); line-height: 1.4; max-height: 2.8em; overflow: hidden; }

.reactions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.reaction-chip {
  background: var(--panel-3); border: 1px solid var(--line); border-radius: 11px;
  padding: 1px 7px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px;
  color: var(--muted); line-height: 1.7;
}
.reaction-chip.mine { border-color: var(--green); color: var(--green); background: var(--green-soft); }

.typing-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px 8px; }
.typing-dots { display: inline-flex; gap: 3px; background: var(--bubble-in); padding: 8px 11px; border-radius: 14px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8b8b96; animation: blink 1.25s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.typing-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.typing-label { font-size: 11px; color: var(--muted-2); }

.composer {
  flex: 0 0 auto; display: flex; gap: 7px; align-items: flex-end;
  padding: 8px 9px calc(8px + var(--safe-b)); background: rgba(19, 19, 22, 0.97);
  border-top: 1px solid var(--line);
}
.composer textarea {
  flex: 1; resize: none; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 9px 13px; font-size: 14.5px; max-height: 120px;
  outline: none; line-height: 1.4;
}
.composer textarea:focus { border-color: #3d3d47; }
.send-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #04220f;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto;
}
.send-btn:disabled { background: #2b2b33; color: var(--muted-2); }

.reply-bar {
  flex: 0 0 auto; display: flex; gap: 8px; align-items: center;
  padding: 7px 12px; background: var(--panel-2); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.reply-bar .rb-body { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.friend-warning {
  display: flex; gap: 8px; align-items: center; padding: 8px 12px;
  background: rgba(245, 165, 36, 0.12); border-bottom: 1px solid rgba(245, 165, 36, 0.25);
  font-size: 11.5px; color: #f6c877; flex: 0 0 auto;
}
.friend-warning span { flex: 1; }
.friend-warning button {
  padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: var(--amber); color: #2a1a00;
}
.friend-warning button.sec { background: rgba(255, 90, 95, 0.16); color: #ff9b9e; }

/* notes */
.note-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 13px; margin-bottom: 10px;
}
.note-head { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.note-head .nm { font-weight: 700; font-size: 13px; }
.note-head .tm { font-size: 10.5px; color: var(--muted-2); margin-left: auto; }
.note-body { font-size: 13.6px; white-space: pre-wrap; word-break: break-word; }
.note-body img { max-width: 100%; border-radius: 10px; margin-top: 7px; }
.note-actions { display: flex; gap: 6px; margin-top: 9px; }
.note-actions button { font-size: 11.5px; color: var(--muted); background: var(--panel-2); padding: 4px 9px; border-radius: 7px; }

/* ---------- profile / settings ---------- */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 20px 22px; background: linear-gradient(180deg, #142018 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--line);
}
.profile-hero .avatar { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); border: 2px solid rgba(6, 199, 85, 0.5); }
.profile-hero h3 { margin: 2px 0 0; font-size: 19px; }
.profile-hero .uid { color: var(--muted); font-size: 12px; }
.profile-hero .st { color: var(--muted); font-size: 13px; text-align: center; max-width: 340px; }
.list-group { background: var(--panel); margin: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setting-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-bottom: 1px solid rgba(43, 43, 51, 0.55); width: 100%; text-align: left;
}
.setting-row:last-child { border-bottom: none; }
.setting-row .ic {
  width: 32px; height: 32px; border-radius: 9px; background: var(--panel-3);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto;
}
.setting-row .lbl { flex: 1; font-size: 14px; }
.setting-row .lbl small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.setting-row .val { color: var(--muted); font-size: 12.5px; }
.setting-row .chev { color: var(--muted-2); font-size: 13px; }

.switch { position: relative; width: 46px; height: 27px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track {
  position: absolute; inset: 0; background: #39393f; border-radius: 14px;
  transition: background 0.2s;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* ---------- modal / toast / banner ---------- */
.modal-host {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  backdrop-filter: blur(3px);
}
.modal-host.center { align-items: center; padding: 20px; }
.modal {
  width: 100%; max-width: 480px; background: var(--panel); border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b)); max-height: 88dvh; overflow-y: auto;
  animation: slideUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-host.center .modal { border-radius: 18px; padding: 20px; }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 14px; font-size: 16.5px; }
.modal .modal-actions { display: flex; gap: 9px; margin-top: 16px; }
.modal .modal-actions .btn { flex: 1; }
.sheet-list { display: flex; flex-direction: column; gap: 6px; }
.sheet-list button {
  padding: 13px; border-radius: 11px; background: var(--panel-2); text-align: left;
  font-size: 14px; display: flex; gap: 10px; align-items: center;
}
.sheet-list button:hover { background: var(--panel-3); }
.reaction-picker { display: flex; gap: 8px; justify-content: center; padding: 6px 0 2px; }
.reaction-picker button {
  font-size: 23px; width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; transition: transform 0.12s;
}
.reaction-picker button:active { transform: scale(1.18); }

.toast-host {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 18px);
  transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column;
  gap: 7px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  background: rgba(38, 38, 45, 0.97); color: #f0f0f2; padding: 9px 16px; border-radius: 11px;
  font-size: 12.8px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); animation: toastIn 0.2s ease;
  border: 1px solid var(--line);
}
.toast.err { background: rgba(120, 26, 30, 0.96); border-color: #a8393d; }
.toast.ok { background: rgba(6, 90, 42, 0.96); border-color: #12a355; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.notify-banner {
  position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%);
  z-index: 300; width: min(94vw, 430px);
  background: rgba(28, 28, 34, 0.98); border: 1px solid var(--line);
  border-radius: 15px; padding: 10px 12px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); animation: bannerIn 0.24s ease;
  cursor: pointer;
}
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.notify-banner .nb-body { flex: 1; min-width: 0; }
.notify-banner .nb-title { font-size: 12.5px; font-weight: 700; }
.notify-banner .nb-text { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notify-banner .nb-close { color: var(--muted); font-size: 15px; padding: 4px; }

/* ---------- QR ---------- */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.qr-box canvas, .qr-box img { background: #fff; padding: 10px; border-radius: 14px; width: 210px; height: 210px; }
.qr-id { font-size: 13px; color: var(--muted); }

.noscript { padding: 30px; text-align: center; color: var(--muted); }

@media (min-width: 760px) {
  .shell, .chat-screen { max-width: 780px; margin: 0 auto; }
  .bottom-nav { max-width: 780px; left: 50%; transform: translateX(-50%); }
}
