:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f0f4fb;
  --text: #172033;
  --muted: #6b768c;
  --line: #e3e8f2;
  --primary: #3b6df6;
  --primary-dark: #2f57cc;
  --accent: #7b5cf0;
  --success: #168a63;
  --warning: #b26a00;
  --shadow: 0 14px 40px rgba(31, 55, 110, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #11151f;
  --surface: #1a2030;
  --surface-2: #222a3d;
  --text: #eef2fb;
  --muted: #9aa6bf;
  --line: #2d364c;
  --primary: #6f95ff;
  --primary-dark: #89a8ff;
  --accent: #a48cff;
  --success: #4ed0a0;
  --warning: #e3ac5a;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
/* 作者样式里的 display 会覆盖 hidden 属性的 UA 样式，这里统一兜底 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* 手机端禁止横向橡皮筋：正文宽度严格等于视口，不产生横向滚动容器 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body, .app-shell { overflow-x: hidden; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { min-height: 100vh; width: 100%; max-width: 100%; overflow-x: clip; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 28px 20px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.25s ease;
}
.sidebar-close { display: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 18px rgba(59, 109, 246, 0.28);
}
.brand-text { display: flex; flex-direction: column; font-size: 18px; font-weight: 750; letter-spacing: 0.2px; }
.brand-text small { color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 2px; letter-spacing: 1.2px; }

.side-nav { margin-top: 38px; display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: rgba(59, 109, 246, 0.1); color: var(--primary); }

.side-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.side-card-kicker { display: block; font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.side-card strong { display: block; font-size: 14px; }
.side-card p { margin: 8px 0 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.side-card small { display: block; margin-top: 9px; font-size: 11px; color: var(--muted); }
.side-foot { margin-top: 18px; text-align: center; font-size: 11px; color: var(--muted); }

.main { margin-left: 248px; padding: 0 44px 64px; width: auto; max-width: 1500px; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  height: 78px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.search-box {
  flex: 1; max-width: 620px;
  height: 46px; padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow);
}
.search-box svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd {
  font-size: 11px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22, 138, 99, 0.12); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; line-height: 1;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
/* 主题切换：浅色显示月亮（点击进入深色），深色显示太阳（点击回到浅色）；只显示一个图标 */
.icon-btn .icon-moon { display: block; }
.icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: block; }
html[data-theme="dark"] .icon-btn .icon-moon { display: none; }

.hero {
  margin-top: 26px;
  min-height: 360px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
  padding: 48px 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef3ff 0%, #f6f1ff 100%);
  border: 1px solid rgba(123, 92, 240, 0.12);
  overflow: hidden;
}
html[data-theme="dark"] .hero { background: linear-gradient(135deg, #1d2740 0%, #251f3b 100%); border-color: #343d58; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--primary); text-transform: uppercase; }
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { margin: 18px 0 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -1px; }
.hero-copy > p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 99px; font-size: 14px; font-weight: 700; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(59, 109, 246, 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-art { position: relative; height: 280px; }
.art-glow { position: absolute; inset: 20px 10px 0 30px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,240,.22), transparent 65%); filter: blur(6px); }
.art-card { position: absolute; width: 270px; height: 190px; border-radius: 24px; overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.art-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card-back { right: 10px; top: 8px; transform: rotate(7deg); opacity: 0.8; }
.art-card-front { left: 42px; top: 62px; transform: rotate(-5deg); }
.art-chip { position: absolute; right: 26px; bottom: 16px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--primary); box-shadow: var(--shadow); }

.section { margin-top: 52px; scroll-margin-top: 96px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.3px; }
.section-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.text-link { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.text-link span { margin-left: 4px; }
.section-head-stack { align-items: center; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feature-card {
  position: relative; min-height: 210px; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; text-align: left; padding: 0; color: var(--text);
}
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,21,38,.9), rgba(12,21,38,.25)); }
.feature-content { position: relative; z-index: 1; padding: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.feature-content .kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; opacity: 0.8; }
.feature-content h3 { margin: 8px 0 6px; font-size: 22px; }
.feature-content p { margin: 0; font-size: 13px; opacity: 0.82; line-height: 1.6; }
.feature-content .btn { align-self: flex-start; margin-top: 16px; background: #fff; color: #172033; min-height: 38px; padding: 0 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
.game-card {
  position: relative; padding: 18px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.game-card-top { display: flex; gap: 14px; align-items: center; }
.game-icon { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.game-icon.fallback { display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.game-name { font-size: 16px; font-weight: 750; }
.game-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.game-desc { margin: 14px 0 16px; font-size: 13px; line-height: 1.65; color: var(--muted); min-height: 42px; }
.game-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 99px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.playable { color: var(--success); background: rgba(22,138,99,.1); }
.status.migrating { color: var(--warning); background: rgba(178,106,0,.1); }
.status.research { color: var(--primary); background: rgba(59,109,246,.1); }
.game-open { font-size: 12px; font-weight: 700; color: var(--primary); }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.game-tags span { font-size: 10px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.empty-state { padding: 48px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius-md); border: 1px dashed var(--line); }

.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-card { padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.note-index { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.note-card h3 { margin: 12px 0 10px; font-size: 17px; }
.note-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.note-tags span { font-size: 10px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

.footer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; }
.footer-main { max-width: 560px; }
.footer-brand { margin-bottom: 14px; }
.footer p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 11px; color: var(--muted); }

.scrim { position: fixed; inset: 0; background: rgba(13,20,35,.48); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 60; }
.scrim.show { opacity: 1; pointer-events: auto; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 70; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(10,18,40,.3); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #172033; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; cursor: pointer; z-index: 2; }
.modal-hero { height: 180px; background: linear-gradient(135deg, var(--primary), var(--accent)); position: relative; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.modal-body { padding: 0 26px 26px; }
.modal-title-row { display: flex; align-items: flex-start; gap: 16px; margin-top: -46px; position: relative; }
.modal-title-text { height: 76px; padding: 5px 0 2px; display: flex; flex-direction: column; justify-content: space-between; }
.modal-icon { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; border: 5px solid var(--surface); background: var(--surface-2); display: grid; place-items: center; color: #fff; font-weight: 800; }
.modal-title-row h2 { margin: 0; font-size: 32px; line-height: 29px; }
.modal-title-row p { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.modal-tags, .modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.modal-tags span { padding: 6px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.modal-desc { margin: 18px 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.modal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fact span { display: block; font-size: 11px; color: var(--muted); }
.fact strong { display: block; margin-top: 4px; font-size: 13px; }
.modal-actions .btn { min-height: 40px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(-100%); box-shadow: var(--shadow);
    visibility: hidden; pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .sidebar.open {
    transform: translateX(0); z-index: 80;
    visibility: visible; pointer-events: auto;
    transition: transform 0.25s ease;
  }
  .sidebar-close {
    display: grid; place-items: center;
    position: absolute; top: 18px; right: 16px;
    width: 34px; height: 34px; padding: 0;
    border-radius: 11px; border: 1px solid var(--line);
    background: var(--surface-2); color: var(--text);
    font-size: 22px; line-height: 1; cursor: pointer;
  }
  .main { margin-left: 0; padding: 0 26px 56px; }
  .menu-btn { display: grid; }
  .hero { padding: 38px; }
  .hero-art { display: none; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* 顶栏：登录按钮加入后保持单行，不允许子元素被挤压出屏幕 */
  .topbar { height: 68px; gap: 8px; min-width: 0; }
  .menu-btn, .top-actions, .top-actions > * { flex-shrink: 0; }
  .status-pill { display: none; }
  .search-box { flex: 1 1 0; min-width: 0; padding: 0 12px; gap: 8px; }
  .search-box input { min-width: 0; width: 100%; }
  .search-box kbd { display: none; }
  .top-actions { margin-left: 0; gap: 8px; }
  .hero { margin-top: 18px; padding: 28px 22px; min-height: auto; border-radius: 22px; }
  .hero h1 { font-size: 30px; }
  /* iOS Safari 输入框小于 16px 会自动放大页面，放大后可横向拖动 */
  .search-box input, .auth-field input { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .section { margin-top: 38px; }
  .feature-grid, .note-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
  .footer-meta { text-align: left; }
  .modal { padding: 12px; }
  .modal-facts { grid-template-columns: 1fr; }
}

/* ================= 会员登录（v6） ================= */
.login-btn {
  height: 38px; padding: 0 18px; border-radius: 19px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.login-btn:hover { border-color: var(--accent); color: var(--accent); }
.member-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px;
  border-radius: 19px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .2s;
}
.member-chip:hover { border-color: var(--accent); }
.member-avatar, .member-avatar-inner { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: inline-block; }
.member-avatar img { width: 100%; height: 100%; display: block; }
.member-name { font-size: 13px; font-weight: 500; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-card { width: min(420px, 100%); padding: 34px 30px 28px; }
.auth-card h2 { margin: 0 0 6px; font-size: 20px; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.auth-field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.auth-field input {
  display: block; width: 100%; margin-top: 6px; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 15px; outline: none; transition: border-color .2s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-err { color: #c0392b; font-size: 13px; margin: 4px 0 10px; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-foot a { color: var(--accent); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.member-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.member-hero h2 { margin: 0; font-size: 20px; }
.member-hero .auth-sub { margin: 2px 0 0; }
.member-avatar-lg { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: inline-block; }
.member-avatar-lg img { width: 100%; height: 100%; display: block; }
.member-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.member-facts .fact { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.member-facts .fact span { display: block; font-size: 12px; color: var(--muted); }
.member-facts .fact strong { font-size: 14px; color: var(--text); }
.auth-note { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.auth-logout { width: 100%; }
@media (max-width: 760px) {
  .login-btn { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .member-chip { height: 36px; padding: 0 10px 0 5px; gap: 6px; }
  .member-name { max-width: 64px; }
  .top-actions .icon-btn { width: 38px; height: 38px; }
  .auth-card { padding: 26px 20px 22px; }
}

/* ===== 桌面窄屏自适应（2026-11-27）===== */
/* 1101–1500px 区间主区自然收窄，笔记三列过挤改两列 */
@media (min-width: 1101px) and (max-width: 1500px) {
  .note-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 手机顶栏等高 + 单一放大镜（2026-12-02）===== */
/* WebKit 原生 searchfield 自带放大镜/清除按钮，与自绘 SVG 重复，全部关掉 */
.search-box input[type="search"] { appearance: none; -webkit-appearance: none; }
.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-results-button,
.search-box input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none; appearance: none; display: none;
}
@media (max-width: 760px) {
  .topbar { height: 60px; gap: 8px; }
  /* 菜单 / 搜索 / 登录(或会员) / 设置 统一 40px 高、统一胶囊圆角 */
  .topbar > .icon-btn,
  .topbar .top-actions .icon-btn {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px;
  }
  .topbar .search-box {
    flex: 1 1 0; min-width: 0; height: 40px;
    padding: 0 12px; gap: 7px; border-radius: 999px;
  }
  .topbar .search-box svg { width: 17px; height: 17px; flex: 0 0 17px; }
  .topbar .login-btn {
    height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  }
  .topbar .member-chip {
    height: 40px; padding: 0 12px 0 4px; border-radius: 999px; gap: 6px;
  }
  .topbar .member-avatar, .topbar .member-avatar-inner { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .topbar { gap: 6px; }
  .topbar .login-btn { padding: 0 10px; }
  .topbar .member-name { max-width: 44px; }
}
