:root {
  --bg: #0c0d11;
  --bg2: #14161d;
  --card: #181b22;
  --card-hover: #1f232d;
  --line: #2a2e3a;
  --line-soft: #23262f;
  --text: #eaecef;
  --muted: #878d9c;
  --accent: #ff5c8a;
  --accent-2: #ff8a5c;
  --live: #2bd576;
  --live-dim: #1c7a47;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(255,92,138,.10), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(80,120,255,.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c303c; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3f4d; background-clip: padding-box; }

.hidden { display: none !important; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
  background: rgba(12,13,17,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(255,92,138,.45);
}
.brand h1 {
  font-size: 17px; margin: 0; letter-spacing: .3px; font-weight: 700;
  background: linear-gradient(90deg, #fff, #c9cdd8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.add-box { display: flex; gap: 0; }
.add-wrap { position: relative; }
.add-box input {
  width: 340px; max-width: 60vw;
  padding: 9px 13px; border: 1px solid var(--line); border-right: none;
  border-radius: 9px 0 0 9px; background: rgba(0,0,0,.28); color: var(--text);
  outline: none; font-size: 13px; transition: border-color .15s, background .15s;
}
.add-box input::placeholder { color: #6b7180; }
.add-box input:focus { border-color: var(--accent); background: rgba(0,0,0,.4); }
.add-box button, .controls .ghost {
  padding: 9px 15px; border: 1px solid transparent; border-radius: 0 9px 9px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: filter .15s, transform .1s;
}
.controls .ghost {
  border-radius: 9px; background: var(--card); color: var(--text); border: 1px solid var(--line);
  font-weight: 500;
}
.controls .ghost:hover { background: var(--card-hover); border-color: #3a3f4d; }
.controls .ghost.accent {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, rgba(255,92,138,.22), rgba(255,138,92,.22));
  border: 1px solid rgba(255,92,138,.5);
}
.controls .ghost.accent:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.add-box button:hover, .controls .ghost:active { filter: brightness(1.08); }
.add-box button:active { transform: scale(.98); }
.interval { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.interval select {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 6px 9px; font-size: 12px; outline: none;
}

/* ============ 发现面板 ============ */
.discover { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); background: rgba(20,22,29,.6); }
.discover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); cursor: pointer; font-size: 13px;
  transition: .15s;
}
.chip:hover { color: var(--text); border-color: #3a3f4d; }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.ghost.small, .modal-foot .ghost.small {
  padding: 6px 13px; border-radius: 7px; font-size: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: .15s;
}
.ghost.small:hover { background: var(--card-hover); }
.discover-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  max-height: 340px; overflow-y: auto; padding-right: 4px;
}
.disc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: .18s; cursor: default;
}
.disc-card:hover { transform: translateY(-3px); border-color: #3a3f4d; box-shadow: var(--shadow); }
.disc-card img { width: 100%; height: 100px; object-fit: cover; display: block; background: #000; }
.disc-card .dc-body { padding: 9px 11px 11px; }
.disc-card .dc-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-card .dc-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; justify-content: space-between; gap: 6px; }
.disc-card .dc-add {
  margin-top: 10px; width: 100%; padding: 7px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  cursor: pointer; font-size: 12px; font-weight: 600; transition: .15s;
}
.disc-card .dc-add:hover { filter: brightness(1.08); }
.disc-card .dc-add.added { background: var(--live-dim); }

/* ============ 统计条（仪表盘药丸） ============ */
.statbar { padding: 16px 22px 2px; }
.stat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-soft);
  font-size: 20px; color: var(--muted);
}
.stat-pill b { color: var(--text); font-size: 14px; font-weight: 700; }
.stat-pill .sp-ico { font-size: 13px; }
.stat-pill.live { border-color: rgba(43,213,118,.35); }
.stat-pill.live b { color: var(--live); }

/* ============ 房间网格 ============ */
.grid {
  padding: 16px 22px 48px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.card {
  position: relative; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  animation: cardIn .38s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); border-color: rgba(255,92,138,.55); box-shadow: var(--shadow); }
.card.offline { opacity: .82; }
.card.offline .thumb img { filter: grayscale(.55) brightness(.7); }

.card .thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .scrim {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none;
}
.card .live-flag {
  position: absolute; top: 9px; left: 9px; display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(8,9,12,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08);
}
.card .live-flag.on { color: var(--live); }
.card .live-flag.off { color: var(--muted); }
.card .live-flag .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card .live-flag.on .pulse { box-shadow: 0 0 0 0 rgba(43,213,118,.6); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,213,118,.55); } 70% { box-shadow: 0 0 0 6px rgba(43,213,118,0); } 100% { box-shadow: 0 0 0 0 rgba(43,213,118,0); } }
.card .viewers {
  position: absolute; top: 9px; right: 9px; display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(8,9,12,.6); color: #fff; border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px);
}
.card .play-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 7px; color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(8,9,12,.45); opacity: 0; transition: opacity .18s; pointer-events: none;
}
.card:hover .play-hint { opacity: 1; }
.card .remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border: none; border-radius: 50%; background: rgba(8,9,12,.62); color: #fff;
  cursor: pointer; font-size: 14px; line-height: 1; display: none; z-index: 3;
  transition: .15s;
}
.card:hover .remove { display: block; }
.card .remove:hover { background: var(--accent); }
.card .info { padding: 10px 12px 12px; }
.card .title {
  font-size: 13.5px; line-height: 1.4; margin: 0 0 7px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .name { font-size: 12px; color: #c3c8d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name::before { content: "👤 "; opacity: .6; }
.card .cat-chip {
  flex-shrink: 0; font-size: 11px; color: var(--muted);
  padding: 2px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.card .err { color: #ff8a8a; font-size: 12px; padding: 0 12px 12px; }

/* ============ 骨架屏 ============ */
.skeleton { pointer-events: none; }
.skeleton .sk {
  background: linear-gradient(100deg, #1a1d25 30%, #232733 50%, #1a1d25 70%);
  background-size: 220% 100%; animation: shimmer 1.3s infinite; border-radius: 6px;
}
.skeleton .sk-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 0; }
.skeleton .sk-line { height: 12px; margin: 10px 12px 0; }
.skeleton .sk-line.short { width: 50%; margin-bottom: 12px; }
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -120% 0; } }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .ico { font-size: 46px; opacity: .5; margin-bottom: 10px; }
.empty p { margin: 4px 0; font-size: 15px; color: #c3c8d4; }
.empty .sub { font-size: 13px; margin-top: 8px; color: var(--muted); }
.empty code { background: var(--bg2); padding: 2px 8px; border-radius: 6px; color: var(--accent); }

/* ============ 播放器弹窗 ============ */
.modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(6,7,10,.82);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  width: min(980px, 96vw); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); animation: popIn .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.modal-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-width: 0; }
.modal-title #pTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(43,213,118,.15); color: var(--live); border: 1px solid rgba(43,213,118,.4); }
.live-badge.off { background: rgba(135,141,156,.15); color: var(--muted); border-color: rgba(135,141,156,.4); }
.close { background: none; border: none; color: var(--muted); font-size: 19px; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; transition: .15s; }
.close:hover { color: var(--text); background: var(--card-hover); }
.video-wrap { position: relative; background: #000; aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.spinner {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; z-index: 4;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; text-align: center; padding: 20px;
  background: rgba(0,0,0,.6); cursor: pointer; z-index: 5;
}
.modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; font-size: 13px; color: var(--muted); }
.modal-foot .modal-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-foot .ghost.small.recording { background: var(--accent); color: #fff; border-color: var(--accent); animation: recPulse 1s infinite; }
@keyframes recPulse { 0% { opacity: 1; } 50% { opacity: .7; } 100% { opacity: 1; } }

/* 房间选择面板 */
.wall-select {
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  background: rgba(14,15,19,.9); max-height: 240px; overflow-y: auto;
}
.ws-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 13px; font-weight: 600;
}
.ws-head div { display: flex; gap: 6px; }
.ws-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-item {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px; background: var(--card);
  border: 1px solid var(--line-soft); font-size: 12px; cursor: pointer;
  user-select: none;
}
.ws-item input { accent-color: var(--accent); cursor: pointer; }
.ws-item.live { border-color: rgba(43,213,118,.35); }
.ws-item.off { opacity: .5; }
.ws-foot { margin-top: 8px; text-align: right; }

/* ============ 多画面监控墙 ============ */
.wall { position: fixed; inset: 0; z-index: 60; background: #06070a; display: flex; flex-direction: column; overflow: hidden; }
.wall-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: rgba(20,22,29,.88);
  backdrop-filter: blur(12px); gap: 12px; flex-wrap: wrap; flex-shrink: 0;
}
.wall-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.wall-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.wall-count { color: var(--muted); font-size: 12px; font-weight: 400; }
.wall-tools { display: flex; align-items: center; gap: 10px; }
.wall-tools .interval { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.wall-tools select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 12px; outline: none; }
.wall-grid {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  padding: 2px;
  display: grid; gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.wall-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.wall-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.wall-grid.c5 { grid-template-columns: repeat(5, 1fr); }
.wall-grid.c6 { grid-template-columns: repeat(6, 1fr); }

/* tile 填满单元格，video 用 cover 裁剪，保持紧凑 */
.tile {
  position: relative; background: #000; width: 100%; height: 100%; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--line-soft); cursor: pointer;
  transition: border-color .15s;
}
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; transform: translateZ(0); will-change: transform; }
.tile .tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 4px;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.75));
  font-size: 20px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
  font-weight: 600; letter-spacing: .3px;
}
.tile .tile-badge {
  position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: rgba(43,213,118,.18); color: var(--live); border: 1px solid rgba(43,213,118,.4);
}
.tile .tile-loading {
  position: absolute; top: 8px; right: 8px; font-size: 11px; color: var(--muted);
  background: rgba(8,9,12,.6); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
}
.tile .tile-err {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #ff8a8a; font-size: 12px; text-align: center; padding: 10px; background: rgba(0,0,0,.65);
}
.tile:hover { border-color: var(--accent); }

/* 单路弹幕开关 */
.tile-dm-toggle {
  position: absolute; top: 7px; right: 7px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.5);
  color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; padding: 0; line-height: 1;
}
.tile-dm-toggle:hover { background: var(--accent); border-color: var(--accent); }
.tile-dm-toggle.off { background: rgba(255,0,0,.35); border-color: rgba(255,0,0,.5); }

/* 单路声音开关 */
.tile-audio-toggle {
  position: absolute; top: 33px; right: 7px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.5);
  color: #fff; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; padding: 0; line-height: 1;
}
.tile-audio-toggle:hover { background: var(--accent); border-color: var(--accent); }
.tile-audio-toggle.off { opacity: .5; }

/* 弹幕层 */
.tile-danmu {
  position: absolute; top: 28px; left: 0; right: 0; bottom: 30px;
  overflow: hidden; pointer-events: none; z-index: 2;
}
.dm-item {
  display: block; font-size: 15px; color: #fff; line-height: 1.7;
  text-shadow: 0 1px 3px #000, 0 0 5px #000;
  white-space: nowrap; overflow: hidden;
  animation: dmSlide 6s linear forwards;
  padding: 2px 0;
  position: absolute;
  right: 0;
}
@keyframes dmSlide {
  0%   { transform: translateX(0); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(-100vw); opacity: 0; }
}

/* ============ 搜索下拉 ============ */
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  margin-top: 4px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.6);
  max-height: 400px; overflow-y: auto;
}
.search-dropdown .sd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.search-dropdown .sd-loading {
  padding: 24px; text-align: center; color: var(--muted); font-size: 13px;
}
.search-dropdown .sd-empty {
  padding: 24px; text-align: center; color: var(--muted); font-size: 13px;
}
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; transition: background .12s;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.sd-item:hover { background: var(--card-hover); }
.sd-item:last-child { border-bottom: none; }
.sd-item .sd-thumb {
  width: 56px; height: 36px; border-radius: 6px; object-fit: cover;
  background: #000; flex-shrink: 0;
}
.sd-item .sd-info { flex: 1; min-width: 0; }
.sd-item .sd-name {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sd-item .sd-meta {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  display: flex; align-items: center; gap: 8px;
}
.sd-item .sd-live-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(43,213,118,.15); color: var(--live);
  border: 1px solid rgba(43,213,118,.4); flex-shrink: 0;
}
.sd-item .sd-live-badge.off {
  background: rgba(135,141,156,.15); color: var(--muted);
  border-color: rgba(135,141,156,.4);
}
.sd-item .sd-add-btn {
  flex-shrink: 0; padding: 5px 12px; border: none; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; cursor: pointer; font-size: 12px; font-weight: 600;
  transition: .15s; white-space: nowrap;
}
.sd-item .sd-add-btn:hover { filter: brightness(1.1); }
.sd-item .sd-add-btn.added { background: var(--live-dim); pointer-events: none; }

/* ============ toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: #23262f; color: #fff; padding: 11px 19px; border-radius: 10px;
  font-size: 20px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  border: 1px solid var(--line); animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.err { background: #5a2330; border-color: var(--accent); }

@media (max-width: 600px) {
  .add-box input { width: 48vw; }
  .brand h1 { font-size: 15px; }
  .brand .sub { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 14px 14px 40px; }
}
