:root {
  --bg: #f2f4f7; --panel: #ffffff; --ink: #1c2733; --muted: #7a8794;
  --brand: #5c3ae6; --brand-ink: #ffffff; --line: #e6eaee;
  --bubble-in: #ffffff; --bubble-out: #ece7ff; --danger: #d64545;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 -apple-system, "SF Pro Text", "PingFang SC", Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
}
.hidden { display: none !important; }
button { cursor: pointer; font: inherit; }
input { font: inherit; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 360px; max-width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(20,40,60,.08);
  display: flex; flex-direction: column; gap: 14px;
}
.brand { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.brand em { color: var(--muted); font-weight: 500; font-style: normal; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.subtitle { margin: -4px 0 6px; color: var(--muted); font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  background: #fbfcfd; outline: none;
}
.login-card input:focus { border-color: var(--brand); background: #fff; }
.advanced { font-size: 13px; color: var(--muted); }
.advanced summary { cursor: pointer; padding: 4px 0; }
.advanced label { margin-top: 8px; }
#login-btn {
  margin-top: 6px; padding: 12px; border: 0; border-radius: 10px; background: var(--brand);
  color: var(--brand-ink); font-weight: 700; font-size: 15px;
}
#login-btn:disabled { opacity: .6; cursor: default; }

/* tabs + panels */
.tabs { display: flex; gap: 6px; background: #eef1f4; border-radius: 10px; padding: 4px; }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,40,60,.12); }
.panel { display: flex; flex-direction: column; gap: 14px; }
.sms-row { display: flex; gap: 10px; align-items: flex-end; }
.sms-row .grow { flex: 1; }
.secondary { padding: 11px 14px; border: 1px solid var(--brand); border-radius: 10px; background: #fff; color: var(--brand); font-weight: 600; white-space: nowrap; }
.secondary:disabled { opacity: .55; cursor: default; }
#sms-login-btn { margin-top: 2px; padding: 12px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15px; }
#sms-login-btn:disabled { opacity: .6; cursor: default; }
.hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.4; }

.msg { min-height: 18px; font-size: 13px; }
.msg.err { color: var(--danger); white-space: pre-wrap; }
.msg.ok { color: var(--brand); }

/* ---------- Chat ---------- */
.chat-wrap { position: relative; height: 100vh; overflow: hidden; display: grid; grid-template-columns: 320px 1fr; grid-template-rows: minmax(0, 1fr); }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.me { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex: 0 0 auto;
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.me-info { flex: 1; min-width: 0; }
.me-name { font-weight: 700; }
.me-id { color: var(--muted); font-size: 12px; }
.icon-btn { background: none; border: 0; font-size: 18px; color: var(--muted); }
.search { padding: 10px 12px; }
.search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfd; outline: none; }
.conv-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.conv-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv-item:hover, .conv-item.active { background: #f6f9fa; }
.conv-item .avatar { width: 44px; height: 44px; }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: center; gap: 6px; }
.conv-name { font-weight: 600; display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.conv-name .nm-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-name .flag { font-size: 15px; line-height: 1; flex: none; }
.conv-name .vip { font-size: 12px; flex: none; }
.conv-name .vip.expired { filter: grayscale(1); opacity: .45; }
.conv-time { margin-left: auto; flex: none; color: var(--muted); font-size: 11px; }
.conv-preview { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-empty { padding: 24px 16px; color: var(--muted); font-size: 13px; text-align: center; }

.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #eef1f4; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.thread-name { font-weight: 700; }
.thread-sub { color: var(--muted); font-size: 12px; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 62%; padding: 9px 13px; border-radius: 14px; box-shadow: 0 1px 1px rgba(20,40,60,.05); white-space: pre-wrap; word-break: break-word; }
.bubble.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.bubble .t { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.sys-note { align-self: center; max-width: 80%; text-align: center; color: var(--muted); font-size: 12px; background: #e4e9ee; padding: 8px 12px; border-radius: 10px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); position: relative; }
.composer input[type="text"] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 22px; background: #fbfcfd; outline: none; }
.composer input[type="text"]:focus { border-color: var(--brand); background: #fff; }
.composer-icon { flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.composer-icon:hover { background: #eef3f5; }
.composer-send { flex: none; padding: 0 20px; height: 38px; border: 0; border-radius: 22px; background: var(--brand); color: #fff; font-weight: 700; }
.emoji-panel { position: absolute; bottom: 60px; left: 12px; z-index: 20; width: 300px; max-height: 220px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(20,40,60,.18);
  padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-panel[hidden] { display: none; } /* display:grid above outranks the [hidden] UA rule */
.emoji-cell { border: 0; background: none; font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 6px; }
.emoji-cell:hover { background: #eef3f5; }

@media (max-width: 720px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* NetEase Yidun captcha */
.captcha-row { margin: 4px 0 2px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#captcha { min-height: 40px; width: 100%; }
.captcha-status { font-size: 12px; color: var(--muted, #8a94a6); }
.captcha-status.ok { color: #1a9d5a; }
.captcha-status.err { color: #d64545; }
.hint { font-size: 12px; color: var(--muted, #8a94a6); line-height: 1.5; margin: 8px 0 0; }
img.avatar { object-fit: cover; }

/* IM: message status, image messages, unread conversations */
.bubble .t .st { margin-left: 6px; color: var(--muted); }
.bubble .t .st.read { color: #2f9be0; }
.bubble.out .t { text-align: right; }
.msg-img { display: block; max-width: 240px; max-height: 320px; border-radius: 10px; }
.conv-item.unread .conv-name { font-weight: 700; }
.conv-item.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9be0; align-self: center; margin-left: auto; }

/* IM: offline-sync banner (verify how many history messages 0x4045 returns) */
.sync-banner { position: fixed; top: 14px; right: 16px; z-index: 50; background: #1f2a37; color: #fff;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; box-shadow: 0 4px 16px rgba(20,40,60,.25);
  opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.sync-banner.show { opacity: 1; transform: translateY(0); }

/* IM: failed (server-rejected / not delivered) send */
.bubble .t .st.failed { color: #e5484d; font-weight: 700; }

/* IM: sticker rendering */
.sticker-img { display: block; max-width: 130px; max-height: 130px; }
.bubble.sticker { background: transparent !important; box-shadow: none; padding: 2px 0; }
.bubble.sticker .t { color: var(--muted); }

/* ============ Per-conversation settings drawer ============ */
.thread-head { display: flex; align-items: center; gap: 10px; }
.thread-head-main { flex: 1; min-width: 0; }
#settings-btn { font-size: 18px; }
.sd-scrim { position: fixed; inset: 0; background: rgba(20,30,40,.28); z-index: 40; }
.settings-drawer { position: fixed; top: 0; right: 0; width: 340px; max-width: 92vw; height: 100%;
  background: #f6f8fa; z-index: 41; box-shadow: -4px 0 24px rgba(20,40,60,.18); display: flex; flex-direction: column; }
/* the display:flex above outranks the [hidden] UA rule, so re-hide explicitly */
.settings-drawer[hidden], .sd-scrim[hidden] { display: none; }
.sd-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; background: #fff; }
.sd-head .icon-btn { font-size: 16px; }
.sd-body { flex: 1; overflow-y: auto; padding: 16px; }
.sd-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 18px; }
.sd-av-wrap { position: relative; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }
.sd-flag { position: absolute; bottom: -2px; right: -2px; font-size: 20px; filter: drop-shadow(0 0 2px #fff); }
.sd-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sd-edit { cursor: pointer; color: var(--muted); font-size: 14px; }
.sd-sig { color: var(--muted); font-size: 13px; text-align: center; max-width: 260px; }
.sd-uid { color: var(--muted); font-size: 11px; }
.sd-card { background: #fff; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.sd-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sd-row:last-child { border-bottom: none; }
.sd-row:hover { background: #f2f6f8; }
.sd-ic { width: 22px; text-align: center; }
.sd-label { flex: 1; }
.sd-note { color: var(--muted); font-size: 11px; margin-left: 4px; }
.sd-arrow { color: var(--muted); }
.sd-badge { font-size: 11px; background: #ffb020; color: #fff; padding: 2px 7px; border-radius: 8px; font-weight: 700; }
.sd-switch { width: 40px; height: 23px; border-radius: 999px; background: #ccd4da; position: relative; transition: background .15s; flex: none; }
.sd-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sd-switch.on { background: #7b5cff; }
.sd-switch.on::after { transform: translateX(17px); }
.sd-extra:not(:empty) { background: #fff; border-radius: 12px; padding: 12px; }
.sd-placeholder { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.sd-search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
.sd-q-res { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.sd-hit { font-size: 13px; padding: 8px 10px; background: #f2f6f8; border-radius: 8px; }
.sd-hit b { color: #7b5cff; margin-right: 6px; }
.sd-hit span { color: var(--muted); font-size: 11px; margin-left: 6px; }
.sd-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.sd-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sd-files img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.conv-item.pinned { background: #fbfcf5; }
.conv-name .pin-mark { font-size: 11px; flex: none; }

/* ============ Reply / quote ============ */
.bubble { position: relative; }
.bubble-body { display: inline; }
.bubble-reply { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; line-height: 1; opacity: 0;
  transition: opacity .12s; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(20,40,60,.12); }
.bubble.in .bubble-reply { right: -34px; }
.bubble.out .bubble-reply { left: -34px; }
.bubble:hover .bubble-reply { opacity: 1; }
.reply-quote { border-left: 3px solid var(--brand); background: rgba(0,0,0,.05); border-radius: 6px; padding: 4px 8px;
  margin-bottom: 5px; font-size: 12px; display: flex; flex-direction: column; gap: 1px; max-width: 100%; }
.reply-quote .rq-name { color: var(--brand); font-weight: 600; }
.reply-quote .rq-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #eef3f5; border-top: 1px solid var(--line); }
.reply-bar .rb-line { flex: 1; min-width: 0; border-left: 3px solid var(--brand); padding-left: 8px; font-size: 13px; overflow: hidden; }
.reply-bar .rb-name { color: var(--brand); font-weight: 600; margin-right: 6px; }
.reply-bar .rb-text { color: var(--muted); }

/* ============ Avatar lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 80vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 10px 50px rgba(0,0,0,.55);
  background: #fff; transform-origin: center center; cursor: grab; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox img:active { cursor: grabbing; }
.lightbox .lb-hint { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 12px; pointer-events: none; }
.avatar.clickable, img.avatar.clickable { cursor: zoom-in; }
#peer-avatar.clickable { cursor: zoom-in; padding: 0; overflow: hidden; }
#peer-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* chat images/stickers: click to enlarge in the lightbox */
.msg-img.clickable, .sticker-img.clickable { cursor: zoom-in; }

/* ============ left nav (消息 / 打招呼) ============ */
.chat-wrap { grid-template-columns: 56px 320px 1fr; }
#app-nav { grid-row: 1; background: #1f2a37; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.nav-item { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #9fb0c0; padding: 8px 0; border-radius: 10px; cursor: pointer; }
.nav-item .nav-ic { font-size: 21px; line-height: 1; }
.nav-item .nav-tx { font-size: 10px; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item:hover { color: #fff; }

/* ============ 打招呼 view ============ */
/* overlay the content area (everything right of the 56px nav rail); absolute keeps it out of
   grid auto-placement, which otherwise collapsed the cells (greet h=0 / nav h=24). */
#greet-view { position: absolute; top: 0; left: 56px; right: 0; bottom: 0; background: var(--bg); display: flex; flex-direction: column; min-height: 0; z-index: 5; }
#greet-view[hidden] { display: none; }
.gv-head { padding: 15px 20px; font-size: 18px; font-weight: 700; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.gv-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.gv-phrases { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 6px; }
.gv-chip { display: inline-flex; align-items: center; gap: 4px; background: #efeaff; color: #5b3ec8; border-radius: 16px; padding: 6px 8px 6px 12px; font-size: 13px; cursor: pointer; max-width: 260px; }
.gv-chip > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-chip-x { background: none; border: 0; color: #5b3ec8; opacity: .5; font-size: 15px; cursor: pointer; line-height: 1; flex: none; }
.gv-chip-x:hover { opacity: 1; }
.gv-compose { display: flex; gap: 8px; padding: 0 20px 12px; }
.gv-compose input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfd; outline: none; }
#gv-add-phrase { padding: 0 14px; border: 1px solid var(--brand); border-radius: 20px; background: #fff; color: var(--brand); font-weight: 600; white-space: nowrap; }
.gv-bar { display: flex; align-items: center; gap: 12px; padding: 6px 20px; border-bottom: 1px solid var(--line); }
.gv-all { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.gv-count { color: var(--brand); font-size: 13px; font-weight: 600; }
.gv-contacts { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.gv-ct { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.gv-ct:hover { background: #f6f9fa; }
.gv-ct.sel { background: #f0edff; }
.gv-ct .avatar { width: 38px; height: 38px; }
.gv-ct-name { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.gv-ct-name .flag { font-size: 15px; flex: none; }
.gv-empty { padding: 30px; text-align: center; color: var(--muted); }
.gv-foot { padding: 12px 20px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
#gv-send { padding: 10px 24px; border: 0; border-radius: 20px; background: var(--brand); color: #fff; font-weight: 700; }
#gv-send:disabled { opacity: .6; }
.gv-status { font-size: 13px; }
.gv-status.err { color: var(--danger); }
.gv-status.ok { color: var(--brand); }

/* ---------- 找语伴 (discover) ---------- */
#discover-view { position: absolute; top: 0; left: 56px; right: 0; bottom: 0; background: var(--bg); display: flex; flex-direction: column; min-height: 0; z-index: 5; }
#discover-view[hidden] { display: none; }
.dv-head { padding: 14px 20px 10px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dv-head { font-size: 18px; font-weight: 700; }
.dv-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.dv-lang { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 400; color: var(--muted); }
.dv-lang label { display: inline-flex; align-items: center; gap: 4px; }
.dv-lang select { font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); max-width: 180px; }
.dv-refresh { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 15px; color: var(--brand); }
.dv-refresh:hover { background: #f2efff; }
.dv-tabs { display: flex; gap: 6px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; flex-wrap: nowrap; }
.dv-tab { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.dv-tab:hover { border-color: var(--brand); }
.dv-tab.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.dv-cards { flex: 1 1 auto; overflow-y: auto; padding: 8px 16px; min-height: 0; }
.dv-card { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.dv-ava { position: relative; flex: 0 0 auto; }
.dv-ava img, .dv-ava-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dv-ava-ph { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.dv-online { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #3ecf6a; border: 2px solid var(--panel); }
.dv-main { flex: 1 1 auto; min-width: 0; }
.dv-row1 { display: flex; align-items: center; gap: 6px; }
.dv-name { font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.dv-flag { font-size: 14px; }
.dv-sexic { font-size: 12px; padding: 1px 5px; border-radius: 8px; color: #fff; }
.dv-sexic.s1 { background: #4a9eff; }
.dv-sexic.s2 { background: #ff77a9; }
.dv-age { font-size: 12px; color: var(--muted); }
.dv-langpair { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.dv-intro { font-size: 13px; color: var(--ink); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; align-items: center; }
.dv-tag { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 2px 8px; }
.dv-badge { font-size: 11px; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.dv-badge.new { background: #e8f5ff; color: #2b8fe0; }
.dv-badge.pay { background: #fff3e0; color: #e08a2b; }
.dv-badge.vip { background: #fdf0d5; color: #b8860b; }
.dv-voice { font-size: 11px; border: 1px solid var(--brand); color: var(--brand); background: none; border-radius: 12px; padding: 2px 8px; cursor: pointer; }
.dv-voice.playing { background: var(--brand); color: #fff; }
.dv-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.dv-open { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 15px; }
.dv-open:hover { background: #f2efff; }
.dv-wave { border: none; background: var(--brand); color: #fff; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dv-wave:hover { filter: brightness(1.05); }
.dv-wave.done, .dv-wave:disabled { background: #cfd8de; color: #fff; cursor: default; }
.dv-chat { border: 1px solid var(--brand); background: var(--panel); color: var(--brand); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.dv-chat:hover { background: #f2efff; }
.dv-foot { padding: 10px 20px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.dv-foot button { border: 1px solid var(--brand); color: var(--brand); background: var(--panel); border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; }
.dv-status { font-size: 12px; color: var(--muted); }

/* ============================================================
   SVG icons (sprite) + visual polish
   ============================================================ */
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -0.18em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* nav rail */
#app-nav { background: linear-gradient(180deg, #243449, #161e29); gap: 4px; }
.nav-item { position: relative; border-radius: 12px; gap: 4px; padding: 9px 0; transition: background .15s, color .15s; }
.nav-item .nav-ic { width: 22px; height: 22px; }
.nav-item .nav-tx { font-size: 10px; letter-spacing: .02em; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.14); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--brand); }

/* generic round icon buttons */
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted);
  transition: background .15s, color .15s; }
.icon-btn:hover { background: #eef3f5; color: var(--ink); }
.icon-btn .ic { width: 19px; height: 19px; }

/* composer */
.composer { gap: 6px; padding: 10px 14px 12px; }
.composer-icon { transition: background .15s, color .15s; }
.composer-icon:hover { color: var(--brand); background: #f0edff; }
.composer-icon .ic { width: 21px; height: 21px; }
.composer input[type="text"] { border-radius: 12px; }
.composer-send { width: 40px; height: 40px; border-radius: 12px; padding: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #7b5cff, #5c3ae6); box-shadow: 0 3px 10px rgba(92,58,230,.35);
  transition: filter .15s, transform .05s; }
.composer-send:hover { filter: brightness(1.06); }
.composer-send:active { transform: scale(.94); }
.composer-send .ic { width: 19px; height: 19px; color: #fff; transform: translate(1px, -1px); }

/* VIP crown (filled gold) + pin mark */
.conv-name .vip, .sd-name .vip { display: inline-flex; align-items: center; }
.ic-vip { width: 15px; height: 15px; fill: #f5b93f; stroke: #e0951a; stroke-width: 1; vertical-align: -0.15em; }
.vip.expired .ic-vip { fill: #c7ced4; stroke: #aab3bb; }
.pin-mark { display: inline-flex; }
.pin-mark .ic { width: 13px; height: 13px; color: var(--brand); }

/* settings drawer rows: tinted rounded icon tiles */
.sd-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eef2f5; text-align: initial; }
.sd-ic .ic { width: 18px; height: 18px; color: #4a5763; }
.sd-arrow { display: inline-flex; }
.sd-arrow .ic { width: 18px; height: 18px; color: #c4cdd5; }
.sd-edit { display: inline-flex; }
.sd-edit .ic { width: 15px; height: 15px; }

/* section headers with a leading brand icon */
.hd-ic { width: 20px; height: 20px; color: var(--brand); vertical-align: -0.22em; margin-right: 4px; }

/* discover / greet buttons */
.dv-refresh { display: grid; place-items: center; }
.dv-refresh .ic { width: 16px; height: 16px; }
.dv-open { display: inline-grid; place-items: center; }
.dv-open .ic { width: 18px; height: 18px; color: var(--brand); }
.dv-wave { display: inline-flex; align-items: center; }
.dv-wave .ic { width: 15px; height: 15px; margin-right: 3px; }
#gv-add-phrase { display: inline-flex; align-items: center; gap: 3px; }
#gv-add-phrase .ic { width: 15px; height: 15px; }

/* offline-sync banner: icon + text row */
.sync-banner { display: inline-flex; align-items: center; gap: 6px; }
.sync-banner .sync-ic { width: 16px; height: 16px; }

/* ---- overall beautification ---- */
.login-card { border-radius: 18px; box-shadow: 0 20px 60px rgba(20,40,60,.12); }
.brand-mark { background: linear-gradient(135deg, #7b5cff, #5c3ae6); box-shadow: 0 3px 8px rgba(92,58,230,.3); }
#login-btn, #sms-login-btn, #gv-send { background: linear-gradient(135deg, #7b5cff, #5c3ae6);
  box-shadow: 0 4px 14px rgba(92,58,230,.28); transition: filter .15s, transform .05s; }
#login-btn:hover, #sms-login-btn:hover, #gv-send:hover { filter: brightness(1.05); }
#login-btn:active, #sms-login-btn:active, #gv-send:active { transform: translateY(1px); }

.thread-head, .me { box-shadow: 0 1px 0 rgba(20,40,60,.04); position: relative; z-index: 1; }
.conv-item { position: relative; transition: background .12s; border-bottom-color: #eef2f5; }
.conv-item.active { background: #f0edff; }
.conv-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.bubble { box-shadow: 0 1px 2px rgba(20,40,60,.06); }
.bubble.out { background: linear-gradient(135deg, #efeaff, #e3daff); }

/* thin, quiet scrollbars */
.conv-list::-webkit-scrollbar, .messages::-webkit-scrollbar, .sd-body::-webkit-scrollbar,
.dv-cards::-webkit-scrollbar, .gv-contacts::-webkit-scrollbar, .emoji-panel::-webkit-scrollbar { width: 8px; height: 8px; }
.conv-list::-webkit-scrollbar-thumb, .messages::-webkit-scrollbar-thumb, .sd-body::-webkit-scrollbar-thumb,
.dv-cards::-webkit-scrollbar-thumb, .gv-contacts::-webkit-scrollbar-thumb, .emoji-panel::-webkit-scrollbar-thumb {
  background: #cfd8de; border-radius: 8px; }
.conv-list::-webkit-scrollbar-thumb:hover, .messages::-webkit-scrollbar-thumb:hover { background: #b6c2ca; }

/* ============================================================
   Discover tab-row fix + skeleton loaders
   ============================================================ */
/* the discover header + tab row must NOT shrink — a shrinkable flex row squeezed the active
   pill to 14px tall and clipped its text (scrollHeight 25 vs offsetHeight 14). */
#discover-view > .dv-head, .dv-tabs, #greet-view > .gv-head { flex: 0 0 auto; }
.dv-tabs { align-items: center; overflow-y: hidden; scrollbar-width: none; }
.dv-tabs::-webkit-scrollbar { display: none; }
.dv-tab { line-height: 1.5; }
/* keep the offline-sync toast clear of the discover header controls */
.sync-banner { top: 58px; }

/* skeleton shimmer */
@keyframes skel-shimmer { 0% { background-position: -180px 0; } 100% { background-position: calc(180px + 100%) 0; } }
.skel { background: #e9edf1 linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%) no-repeat;
  background-size: 180px 100%; border-radius: 6px; animation: skel-shimmer 1.25s ease-in-out infinite; }
.skel-row { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; list-style: none; }
.skel-av { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skel-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.skel-l1 { height: 12px; width: 45%; }
.skel-l2 { height: 10px; width: 78%; }
.skel-l3 { height: 10px; width: 60%; }
.skel-card { display: flex; gap: 12px; padding: 12px; margin: 0 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.skel-card .skel-av { width: 56px; height: 56px; }

/* ============================================================
   我 / personal center
   ============================================================ */
#me-view { position: absolute; top: 0; left: 56px; right: 0; bottom: 0; background: var(--bg); display: flex; flex-direction: column; min-height: 0; z-index: 5; }
#me-view[hidden] { display: none; }
.me-hd { flex: 0 0 auto; padding: 15px 20px; font-size: 18px; font-weight: 700; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.me-hd .me-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.me-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; max-width: 640px; width: 100%; margin: 0 auto; }
.me-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.me-profile { display: flex; align-items: center; gap: 16px; }
.me-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.me-av-ph { display: grid; place-items: center; background: linear-gradient(135deg, #7b5cff, #5c3ae6); color: #fff; font-weight: 700; font-size: 26px; }
.me-id { min-width: 0; flex: 1; }
.me-name { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.me-vip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #b8860b; background: #fdf0d5; border-radius: 8px; padding: 2px 8px; }
.me-handle { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.me-handle .flag { font-size: 15px; }
.me-rel { margin-top: 8px; font-size: 13px; color: var(--muted); }
.me-rel b { color: var(--ink); font-size: 15px; }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.me-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.me-stat-top { display: flex; align-items: center; gap: 6px; }
.me-stat-n { font-size: 24px; font-weight: 800; color: var(--ink); }
.me-stat-l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.me-flame { width: 22px; height: 22px; color: #ff7a29; fill: #ffe6d5; }
.me-row { display: flex; align-items: center; gap: 12px; }
.me-row-ic { display: inline-flex; color: #7b5cff; }
.me-row-ic .ic { width: 22px; height: 22px; }
.me-row-l { flex: 1; font-weight: 600; }
.me-row-v { color: var(--muted); font-weight: 700; }
.me-vipcard { background: linear-gradient(160deg, #f3f0ff, #eef4ff); border-color: #e6e2fb; }
.me-vip-hd { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #6b4bd8; margin-bottom: 12px; }
.me-vip-hd .ic-vip { fill: #f5b93f; stroke: #e0951a; }
.me-vip-cols { margin-left: auto; display: flex; gap: 34px; font-size: 12px; font-weight: 600; color: var(--muted); }
.me-vip-row { display: grid; grid-template-columns: 1fr 60px 60px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(123,92,255,.12); font-size: 14px; }
.me-vip-row > span:not(.me-vip-name) { text-align: center; }
.me-vip-name { color: var(--ink); }
.me-muted { color: var(--muted); }
.me-yes { color: #6b4bd8; font-weight: 700; }
.me-chk { width: 18px; height: 18px; color: #6b4bd8; stroke-width: 3; }
.me-share { font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.me-share a { color: var(--brand); }
.me-err { color: var(--danger); padding: 30px; text-align: center; }
.me-body .skel-lines { padding: 4px 0; }

/* edit-profile button + modal */
.me-profile { position: relative; }
.me-edit-btn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.me-edit-btn:hover { background: #f2efff; }
.me-edit-btn .ic { width: 15px; height: 15px; }
.modal-scrim { position: fixed; inset: 0; background: rgba(20,30,40,.4); z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal { width: 380px; max-width: 100%; background: var(--panel); border-radius: 16px; box-shadow: 0 20px 60px rgba(20,40,60,.28); overflow: hidden; }
.modal-hd { display: flex; align-items: center; padding: 15px 18px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.modal-x { margin-left: auto; border: 0; background: none; color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.modal-x:hover { background: #eef3f5; color: var(--ink); }
.modal-x .ic { width: 18px; height: 18px; }
.modal-bd { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.modal-field input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; outline: none; color: var(--ink); font: inherit; }
.modal-field input:focus { border-color: var(--brand); background: #fff; }
.modal-msg { min-height: 16px; font-size: 13px; }
.modal-msg.err { color: var(--danger); }
.modal-msg.ok { color: var(--brand); }
.modal-ft { display: flex; gap: 10px; padding: 0 18px 18px; }
.modal-ft button { flex: 1; padding: 11px; border-radius: 10px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.modal-cancel:hover { background: #f2f6f8; }
.modal-save { border: 0 !important; background: linear-gradient(135deg, #7b5cff, #5c3ae6) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(92,58,230,.28); }
.modal-save:hover { filter: brightness(1.05); }
.modal-save:disabled { opacity: .6; }

/* ============================================================
   group chat (thread rendering)
   ============================================================ */
.avatar.group-av { background: linear-gradient(135deg, #7b8ff5, #5a6fd8); display: grid; place-items: center; }
.avatar.group-av .ic { width: 24px; height: 24px; color: #fff; }
.grp-tag { flex: none; font-size: 10px; font-weight: 700; color: #5a6fd8; background: #eef1ff; border-radius: 6px; padding: 1px 5px; }
.bubble-sender { font-size: 12px; color: #5a6fd8; font-weight: 600; margin-bottom: 3px; }
.bubble-reply .ic { width: 13px; height: 13px; }
.composer.disabled { opacity: .55; }
.composer.disabled input, .composer.disabled .composer-icon, .composer.disabled .composer-send { pointer-events: none; }

/* ============================================================
   语聊 / voice rooms (LiveHub browse)
   ============================================================ */
#voice-view { position: absolute; top: 0; left: 56px; right: 0; bottom: 0; background: var(--bg); display: flex; flex-direction: column; min-height: 0; z-index: 5; }
#voice-view[hidden] { display: none; }
.vr-head { flex: 0 0 auto; padding: 14px 20px; font-size: 18px; font-weight: 700; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.vr-head .vr-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.vr-head .dv-refresh { margin-left: auto; }
.vr-cards { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-content: start; }
.vr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.vr-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,40,60,.12); }
.vr-cover { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, #7b5cff, #7b5cff); overflow: hidden; }
.vr-cover img { width: 100%; height: 100%; object-fit: cover; }
.vr-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.vr-users { position: absolute; bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.vr-users .ic { width: 13px; height: 13px; }
.vr-body { padding: 10px 12px 12px; }
.vr-name { font-weight: 700; font-size: 14px; line-height: 1.35; max-height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vr-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.vr-host-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.vr-host-ph { display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; }
.vr-host-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.vr-heat { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #ff7a29; font-weight: 700; flex: none; }
.vr-fire { width: 14px; height: 14px; color: #ff7a29; fill: #ffe0cc; }
.vr-foot { flex: 0 0 auto; padding: 10px 20px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.vr-foot button { border: 1px solid var(--brand); color: var(--brand); background: var(--panel); border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; }
.vr-foot .dv-status { font-size: 12px; color: var(--muted); }

/* ============================================================
   HelloTalk-style login — split hero + form, brand #5c3ae6
   (scoped to .login-wrap so the teal app theme is untouched)
   ============================================================ */
:root { --ht-purple: #5c3ae6; --ht-purple-2: #7b5cff; --ht-purple-3: #3f22c4; }
.login-wrap { min-height: 100%; display: flex; place-items: stretch; padding: 0; }

/* left brand hero */
.login-hero { flex: 1 1 55%; position: relative; overflow: hidden; color: #fff;
  /* stack (top→bottom): scrim for text legibility · HelloTalk bg image · purple gradient fallback
     (if assets/img_web_bg_normal.jpg is missing, that layer is transparent and the gradient shows) */
  background:
    linear-gradient(160deg, rgba(38,20,96,.28), rgba(38,20,96,.58)),
    url("assets/img_web_bg_normal.jpg") center / cover no-repeat,
    radial-gradient(130% 130% at 15% 5%, var(--ht-purple-2) 0%, var(--ht-purple) 46%, var(--ht-purple-3) 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px clamp(40px, 6vw, 96px); }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; }
.login-hero .brand-mark { background: #fff; color: var(--ht-purple); box-shadow: none; }
.login-title { font-size: clamp(38px, 5.5vw, 66px); line-height: 1.06; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 0; }
.login-tag { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 420px; margin: 0; }
.login-bubbles { position: absolute; inset: 0; pointer-events: none; }
.lb { position: absolute; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28); color: #fff;
  border-radius: 16px 16px 16px 4px; padding: 10px 16px; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 34px rgba(20,10,60,.22); animation: lb-float 6s ease-in-out infinite; white-space: nowrap; }
.lb-a { top: 15%; right: 11%; animation-delay: 0s; }
.lb-b { top: 33%; right: 31%; animation-delay: .9s; }
.lb-c { top: 52%; right: 9%; animation-delay: 1.7s; }
.lb-d { top: 70%; right: 30%; animation-delay: 2.5s; }
.lb-e { top: 86%; right: 15%; animation-delay: 3.3s; }
@keyframes lb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* right form panel */
.login-panel { flex: 0 0 468px; max-width: 100%; display: grid; place-items: center; background: var(--panel); padding: 28px; }
.login-wrap .login-card { width: 356px; max-width: 100%; background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.login-wrap .brand.sm { font-size: 18px; font-weight: 800; }
.login-wrap .brand.sm .brand-mark { width: 30px; height: 30px; font-size: 13px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ht-purple-2), var(--ht-purple)); color: #fff; }
.login-h2 { font-size: 27px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -.01em; }
.login-wrap .subtitle { margin: 0 0 10px; }
.login-wrap .login-card input { border-radius: 12px; padding: 12px 13px; }
.login-wrap .login-card input:focus { border-color: var(--ht-purple); box-shadow: 0 0 0 3px rgba(92,58,230,.12); }
.login-wrap #login-btn, .login-wrap #sms-login-btn { border-radius: 12px; background: var(--ht-purple);
  box-shadow: 0 6px 18px rgba(92,58,230,.30); transition: filter .15s, transform .05s; }
.login-wrap #login-btn:hover, .login-wrap #sms-login-btn:hover { filter: brightness(1.07); }
.login-wrap #login-btn:active, .login-wrap #sms-login-btn:active { transform: translateY(1px); }
.login-wrap .secondary { border-radius: 12px; color: var(--ht-purple); border-color: var(--ht-purple); }
.login-wrap .tabs { border-radius: 12px; }
.login-wrap .tab.active { color: var(--ht-purple); }
.login-wrap .msg.ok, .login-wrap .captcha-status.ok { color: var(--ht-purple); }

@media (max-width: 860px) {
  .login-hero { display: none; }
  .login-panel { flex: 1 1 auto; }
}
