/* YFCHAT — Telegram Android inspired theme */
:root {
  --fs: 16px;
  --hdr: #517da2; --hdr2: #4a7297; --hdr-t: #fff; --hdr-s: #d7e5f1;
  --bg: #fff; --bg2: #f0f0f0; --bg3: #f7f7f7; --t1: #222; --t2: #8a8a8a; --t3: #a8adb3;
  --div: #e8e8e8; --accent: #3a8ad0; --accent2: #4c9ce2; --link: #2678b6; --blue-t: #3e88c7;
  --badge: #4ecc5e; --badge-m: #c4c9ce; --check: #4fbe4f; --fab: #5ea5e0; --red: #e53935; --green: #4caf50;
  --archive: #9daab6; --ripple: rgba(0,0,0,.08); --shadow: 0 1px 3px rgba(0,0,0,.12);
  --in: #fff; --out: #effedd; --in-t: #000; --out-t: #000; --in-time: #a1aab3; --out-time: #62ac55;
  --out-check: #4fae4e; --reply-in: #3a8ccf; --reply-out: #4ea340; --svc: rgba(40, 66, 38, .38); --svc-t: #fff;
  --input: #fff; --input-ic: #8e959b; --sel: rgba(81,125,162,.14); --menu: #fff; --overlay: rgba(0,0,0,.5);
  --wall: linear-gradient(135deg, #dbddbb 0%, #b7cf9a 30%, #a4c795 55%, #d2d89c 80%, #c6d7a4 100%);
  --pattern-op: .13; --pattern-filter: none;
}
html.dark {
  --hdr: #212d3b; --hdr2: #1a2531; --hdr-t: #fff; --hdr-s: #7d8b99;
  --bg: #1d2733; --bg2: #151e27; --bg3: #18222d; --t1: #fff; --t2: #7d8b99; --t3: #6b7985;
  --div: #121a23; --accent: #5ea6e4; --accent2: #62b1f0; --link: #62b1f0; --blue-t: #62b1f0;
  --badge: #4a95d6; --badge-m: #3b4855; --check: #62b1f0; --fab: #4a95d6; --red: #ef5b5b;
  --archive: #45566a; --ripple: rgba(255,255,255,.07); --shadow: 0 1px 3px rgba(0,0,0,.4);
  --in: #182533; --out: #2b5278; --in-t: #fff; --out-t: #fff; --in-time: #6d7f8f; --out-time: #7da8d3;
  --out-check: #72bcfd; --reply-in: #62b1f0; --reply-out: #8ecbff; --svc: rgba(0,0,0,.42); --svc-t: #fff;
  --input: #17212b; --input-ic: #6f7d8a; --sel: rgba(98,177,240,.12); --menu: #202b36; --overlay: rgba(0,0,0,.6);
  --wall: linear-gradient(135deg, #0f1823 0%, #13202e 40%, #0e1621 70%, #122030 100%);
  --pattern-op: .07; --pattern-filter: invert(1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--t1);
  font-family: Roboto, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
input, textarea, button { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; outline: none; }
a { color: var(--link); text-decoration: none; cursor: pointer; }
#app { position: fixed; inset: 0; overflow: hidden; }
.ic { flex: none; display: block; }
::-webkit-scrollbar { width: 0; height: 0; }

/* boot */
.boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.boot-logo { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg,#6fc3ff,#2a8ae0); display: flex; align-items: center; justify-content: center; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .8; } }

/* ripple */
.rp { position: relative; overflow: hidden; cursor: pointer; }
.ripple { position: absolute; border-radius: 50%; background: var(--ripple); transform: scale(0); animation: rip .45s ease-out forwards; pointer-events: none; }
.ripple.out { opacity: 0; transition: opacity .35s; }
.hdr .ripple, .fab .ripple, .btn .ripple { background: rgba(255,255,255,.22); }
@keyframes rip { to { transform: scale(1); } }

/* pages */
.pages { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; will-change: transform; }
.page.in { animation: pgIn .26s cubic-bezier(.2,.8,.3,1); box-shadow: -6px 0 18px rgba(0,0,0,.18); }
.page.noanim { animation: none; }
.page.out { animation: pgOut .24s cubic-bezier(.4,0,.6,1) forwards; box-shadow: -6px 0 18px rgba(0,0,0,.18); pointer-events: none; }
.page.under { transform: translateX(-22%); transition: transform .26s cubic-bezier(.2,.8,.3,1); }
.page.under::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.12); pointer-events: none; }
.page.hidden { visibility: hidden; }
.page.base { transition: transform .26s cubic-bezier(.2,.8,.3,1); }
@keyframes pgIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pgOut { from { transform: none; } to { transform: translateX(100%); } }
.pg { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--bg); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; min-height: 0; }
.gray { background: var(--bg2); }

/* header */
.hdr { flex: none; height: 56px; background: var(--hdr); color: var(--hdr-t); display: flex; align-items: center; padding: 0 4px; position: relative; z-index: 3; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.hdr.flat { box-shadow: none; }
.hbtn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--hdr-t); flex: none; }
.htitle { flex: 1; min-width: 0; padding: 0 12px 0 16px; cursor: default; }
.hbtn + .htitle { padding-left: 18px; }
.ht1 { font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.ht2 { font-size: 14px; color: var(--hdr-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ht2.blue { color: #fff; }
.hsearch { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--hdr-t); font-size: 18px; padding: 0 8px 0 18px; }
.hsearch::placeholder { color: rgba(255,255,255,.6); }
.hdr-sel { background: var(--bg); color: var(--t1); }
.hdr-sel .hbtn { color: var(--t2); }
.hdr-sel .ht1 { color: var(--t1); font-size: 20px; }

/* avatar */
.av { position: relative; flex: none; border-radius: 50%; }
.av img, .av .av-fill { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; }
.av-on { position: absolute; right: 1px; bottom: 1px; width: 28%; height: 28%; min-width: 12px; min-height: 12px; max-width: 16px; max-height: 16px; border-radius: 50%; background: #4bd057; border: 2.5px solid var(--bg); box-sizing: border-box; }

/* fab */
.fab { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--fab); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); z-index: 4; transition: transform .22s cubic-bezier(.3,.7,.4,1.2), opacity .2s; }
.fab-hide { transform: scale(0); opacity: 0; pointer-events: none; }

/* spinner */
.spin { animation: rot 1s linear infinite; }
.spin circle { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 90 150; animation: dash 1.4s ease-in-out infinite; }
.spin-w circle { stroke: #fff; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90 150; stroke-dashoffset: -124; } }
.center { display: flex; align-items: center; justify-content: center; padding: 40px; }

/* empty */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 32px; color: var(--t2); }
.empty-ic { width: 100px; height: 100px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--t3); margin-bottom: 18px; }
.empty-t { font-size: 18px; font-weight: 500; color: var(--t1); margin-bottom: 8px; }
.empty-s { font-size: 15px; line-height: 1.45; }

/* ------------------------------------------------------------ dialog list */
.tabs { flex: none; display: flex; background: var(--hdr); overflow-x: auto; position: relative; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 0 6px; }
.tab { flex: none; padding: 0 12px; height: 44px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; }
.tab.on { color: #fff; }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.tab-b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.3); font-size: 12px; display: flex; align-items: center; justify-content: center; color: var(--hdr); background: #fff; }
.tab:not(.on) .tab-b { background: rgba(255,255,255,.6); }
html.dark .tab-b { color: #fff; background: var(--badge); }
.dl { padding-bottom: 88px; }
.drow { display: flex; height: 72px; align-items: center; padding-left: 9px; position: relative; background: var(--bg); transition: background .15s; }
.drow.sel { background: var(--sel); }
.drow.pinned { background: var(--bg3); }
html.dark .drow.pinned { background: var(--bg3); }
.drow .av { margin-right: 13px; }
.drow-main { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-right: 14px; position: relative; }
.drow-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--div); transform: scaleY(.6); }
.drow:last-child .drow-main::after { display: none; }
.drow-l1 { display: flex; align-items: center; gap: 4px; height: 22px; }
.drow-name { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.drow-name > span { overflow: hidden; text-overflow: ellipsis; }
.drow-name .ic { color: var(--t3); }
.drow-name .vf { color: var(--accent2); }
.drow-time { flex: none; font-size: 13px; color: var(--t2); display: flex; align-items: center; gap: 2px; }
.drow-time .ic { color: var(--check); }
.drow-l2 { display: flex; align-items: center; gap: 6px; margin-top: 4px; height: 22px; }
.drow-msg { flex: 1; min-width: 0; font-size: 15.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow-msg .who { color: var(--blue-t); }
.drow-msg .draft { color: var(--red); }
.drow-msg .typing { color: var(--blue-t); }
.drow-msg .media { color: var(--blue-t); }
.badge { flex: none; min-width: 23px; height: 23px; border-radius: 12px; background: var(--badge); color: #fff; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; padding: 0 7px; }
.badge.m { background: var(--badge-m); }
html.dark .badge.m { color: #b4bfc9; }
.drow-pin { color: var(--t3); transform: rotate(45deg); }
.drow-selc { position: absolute; left: 46px; top: 44px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .18s; }
.drow.sel .drow-selc { transform: scale(1); }
.drow-swipe { position: absolute; inset: 0; background: #4d9de0; display: flex; align-items: center; justify-content: flex-end; padding-right: 24px; color: #fff; font-size: 13px; }
.drow-swipe div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.drow-inner { display: flex; width: 100%; height: 100%; align-items: center; background: inherit; position: relative; }
.conn { display: flex; align-items: center; gap: 8px; }
.dots::after { content: '...'; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }

/* drawer */
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-bg.on { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(82vw, 320px); background: var(--bg); z-index: 51; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.3,1); display: flex; flex-direction: column; box-shadow: 2px 0 12px rgba(0,0,0,.2); }
.drawer.on { transform: none; }
.dr-head { background: var(--hdr); color: #fff; padding: 20px 16px 12px; position: relative; flex: none; }
.dr-head .av { margin-bottom: 14px; }
.dr-name { font-size: 16px; font-weight: 500; }
.dr-sub { font-size: 14px; color: var(--hdr-s); margin-top: 3px; }
.dr-theme { position: absolute; right: 8px; top: 12px; color: #fff; }
.dr-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.dr-item { display: flex; align-items: center; height: 48px; padding: 0 20px; gap: 28px; font-size: 15.5px; font-weight: 500; }
.dr-item .ic { color: var(--t2); }
.dr-div { height: 1px; background: var(--div); margin: 6px 0; }
.dr-ver { padding: 12px 20px; font-size: 13px; color: var(--t3); }

/* search results */
.srch-sec { padding: 10px 16px 6px; font-size: 14.5px; font-weight: 500; color: var(--accent); background: var(--bg); }
.srch-sec.gray { background: var(--bg2); color: var(--t2); }
.people { display: flex; overflow-x: auto; padding: 8px 6px 10px; gap: 2px; }
.person { width: 78px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 8px; }
.person-n { font-size: 13px; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl { color: var(--accent); }

/* ------------------------------------------------------------ rows / settings */
.row { display: flex; align-items: center; min-height: 50px; padding: 8px 18px; gap: 0; background: var(--bg); }
.row-ic { width: 24px; margin-right: 30px; color: var(--t2); flex: none; display: flex; }
.row-main { flex: 1; min-width: 0; }
.row-t { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-s { font-size: 13.5px; color: var(--t2); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.row-v { font-size: 15px; color: var(--accent); margin-left: 12px; white-space: nowrap; }
.row-danger .row-t, .row-danger .row-ic { color: var(--red); }
.row.blue .row-t, .row.blue .row-ic { color: var(--accent); }
.row.two { min-height: 64px; }
.sec { background: var(--bg); }
.sec + .sec { margin-top: 10px; }
.sec-t { padding: 14px 18px 4px; font-size: 15px; font-weight: 500; color: var(--accent); }
.sec-hint { padding: 10px 18px 16px; font-size: 13.5px; color: var(--t2); line-height: 1.4; background: var(--bg2); }
.sec-shadow { height: 10px; background: var(--bg2); box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.sw { width: 36px; height: 14px; border-radius: 7px; background: #b9bec3; position: relative; flex: none; transition: background .2s; margin-left: 12px; }
.sw i { position: absolute; left: -2px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.sw.on { background: #a5cdf0; }
.sw.on i { transform: translateX(20px); background: var(--accent); }
html.dark .sw { background: #3a4754; } html.dark .sw i { background: #8a98a6; }
html.dark .sw.on { background: #2f5d85; } html.dark .sw.on i { background: var(--accent); }
.chk { width: 20px; height: 20px; border-radius: 3px; border: 2px solid var(--t3); display: flex; align-items: center; justify-content: center; flex: none; transition: all .15s; }
.chk .ic { opacity: 0; transform: scale(.4); transition: all .15s; }
.chk.round { border-radius: 50%; }
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk.on .ic { opacity: 1; transform: none; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--t3); flex: none; display: flex; align-items: center; justify-content: center; margin-right: 26px; }
.radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .15s; }
.radio.on { border-color: var(--accent); } .radio.on i { transform: scale(1); }

.urow { display: flex; align-items: center; height: 64px; padding: 0 14px; gap: 14px; background: var(--bg); }
.urow-av { position: relative; }
.urow-sel { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .18s; }
.urow-sel.on { transform: scale(1); }
.urow-main { flex: 1; min-width: 0; border-bottom: 1px solid transparent; }
.urow-t { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow-s { font-size: 14px; color: var(--t2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow-s.blue { color: var(--accent); }
.role { font-size: 13.5px; color: var(--t2); margin-left: 8px; }

/* field */
.fld { position: relative; padding: 18px 0 4px; margin: 0 0 12px; }
.fld label { position: absolute; left: 0; top: 26px; font-size: 16px; color: var(--t3); transition: all .18s; pointer-events: none; }
.fld.up label { top: 2px; font-size: 13px; color: var(--t2); }
.fld.focus label { color: var(--accent); }
.fld-in { display: flex; align-items: flex-end; border-bottom: 1px solid var(--div); transition: border-color .18s; }
.fld.focus .fld-in { border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.fld.err .fld-in { border-color: var(--red); } .fld.err label { color: var(--red); }
.fld input, .fld textarea { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; padding: 6px 0; resize: none; user-select: text; -webkit-user-select: text; line-height: 1.35; }
.fld-pre { font-size: 17px; padding: 6px 0; color: var(--t2); }
.fld-cnt { position: absolute; right: 0; top: 30px; font-size: 13px; color: var(--t3); }
.fld-hint { font-size: 13.5px; color: var(--t2); margin-top: 8px; line-height: 1.4; }
.fld-hint.err { color: var(--red); } .fld-hint.ok { color: var(--green); }
.form { padding: 12px 22px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; width: 100%; gap: 8px; }
.btn:disabled { opacity: .6; }
.tbtn { padding: 0 14px; height: 38px; border-radius: 4px; color: var(--accent); font-weight: 500; font-size: 15px; text-transform: uppercase; }
.tbtn.red { color: var(--red); }

/* overlays */
.ovhost { position: absolute; inset: 0; pointer-events: none; z-index: 1000; }
.ov { position: absolute; inset: 0; pointer-events: auto; }
.dlg-wrap { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .18s; }
.ov.closing .dlg-wrap { animation: fadeOut .18s forwards; }
.dlg { background: var(--menu); border-radius: 10px; width: 100%; max-width: 340px; padding: 22px 24px 10px; box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: dlgIn .2s cubic-bezier(.2,.8,.3,1.1); }
.ov.closing .dlg { animation: dlgOut .16s forwards; }
.dlg-t { font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.dlg-x { font-size: 16px; line-height: 1.45; color: var(--t1); white-space: pre-wrap; margin-bottom: 8px; }
.dlg-chk { display: flex; align-items: center; gap: 16px; padding: 12px 4px; margin: 4px -6px; border-radius: 6px; font-size: 15.5px; }
.dlg-b { display: flex; justify-content: flex-end; gap: 4px; margin: 10px -12px 0 0; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes dlgIn { from { transform: scale(.9); opacity: 0; } } @keyframes dlgOut { to { transform: scale(.94); opacity: 0; } }
.menu-wrap { position: absolute; inset: 0; }
.menu { position: absolute; background: var(--menu); border-radius: 8px; min-width: 200px; max-width: 280px; padding: 6px 0; box-shadow: 0 4px 20px rgba(0,0,0,.25); animation: menuIn .18s cubic-bezier(.2,.8,.3,1); }
.ov.closing .menu { animation: fadeOut .14s forwards; }
@keyframes menuIn { from { transform: scale(.7); opacity: 0; } }
.mi { display: flex; align-items: center; gap: 18px; height: 48px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
.mi .ic { color: var(--t2); }
.mi.red, .mi.red .ic { color: var(--red); }
.sheet-wrap { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: flex-end; animation: fadeIn .2s; }
.ov.closing .sheet-wrap { animation: fadeOut .24s forwards; }
.sheet { width: 100%; background: var(--menu); border-radius: 14px 14px 0 0; max-height: 88vh; display: flex; flex-direction: column; animation: sheetIn .26s cubic-bezier(.2,.8,.3,1); padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
.sheet.full { height: 88vh; }
.ov.closing .sheet { animation: sheetOut .24s forwards; }
@keyframes sheetIn { from { transform: translateY(100%); } } @keyframes sheetOut { to { transform: translateY(100%); } }
.asheet { padding: 8px 0; }
.asheet-t { padding: 12px 18px 8px; font-size: 15px; color: var(--t2); }
.toast { position: absolute; left: 10px; right: 10px; bottom: 16px; background: rgba(40,48,56,.94); color: #fff; border-radius: 10px; padding: 13px 16px; font-size: 15px; display: flex; align-items: center; gap: 14px; animation: toastIn .25s cubic-bezier(.2,.8,.3,1.2); pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@keyframes toastIn { from { transform: translateY(120%); opacity: 0; } }

/* ------------------------------------------------------------ auth */
.intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: var(--bg); }
.intro-logo { width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(135deg, #71c9ff, #2b8ae2); display: flex; align-items: center; justify-content: center; margin-bottom: 36px; box-shadow: 0 10px 30px rgba(42,138,226,.35); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.intro h1 { margin: 0 0 14px; font-size: 26px; font-weight: 500; }
.intro p { margin: 0 0 8px; color: var(--t2); font-size: 16px; line-height: 1.55; max-width: 300px; }
.intro .dotsnav { display: flex; gap: 8px; margin: 28px 0 40px; }
.intro .dotsnav i { width: 7px; height: 7px; border-radius: 50%; background: var(--div); }
.intro .dotsnav i.on { background: var(--accent); }
.intro-btn { width: 100%; max-width: 320px; }
.auth-form { padding: 28px 24px; flex: 1; overflow-y: auto; }
.auth-h { font-size: 22px; font-weight: 500; margin: 6px 0 10px; }
.auth-s { color: var(--t2); font-size: 15px; line-height: 1.5; margin-bottom: 26px; }
.auth-link { display: block; text-align: center; color: var(--accent); font-size: 15px; margin-top: 24px; padding: 10px; font-weight: 500; }
.err-box { background: rgba(229,57,53,.08); color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: 14.5px; margin-bottom: 14px; }

/* ------------------------------------------------------------ chat */
.chat { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wall { position: absolute; inset: 0; background: var(--wall); z-index: 0; }
.wall::before { content: ''; position: absolute; inset: 0; background-image: url("../img/pattern.svg"); background-size: 360px; opacity: var(--pattern-op); filter: var(--pattern-filter); }
.chat-hdr .htitle { display: flex; align-items: center; gap: 12px; padding-left: 4px; cursor: pointer; }
.chat-hdr .htitle > div:last-child { min-width: 0; flex: 1; }
.chat-hdr .ht1 { font-size: 18px; }
.chat-hdr .ht1 .ic { color: var(--hdr-s); }
.pinbar { flex: none; position: relative; z-index: 2; background: var(--bg); display: flex; align-items: center; height: 50px; padding: 0 4px 0 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); gap: 10px; animation: slideDown .2s; }
@keyframes slideDown { from { transform: translateY(-100%); } }
.pinbar-line { width: 2px; height: 34px; background: var(--accent); border-radius: 2px; flex: none; }
.pinbar-main { flex: 1; min-width: 0; }
.pinbar-t { font-size: 14.5px; font-weight: 500; color: var(--accent); }
.pinbar-s { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t1); margin-top: 1px; }
.pinbar .hbtn { color: var(--t3); width: 40px; height: 40px; }
.msgs { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 0 8px; overflow-anchor: none; }
.msgs-in { display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }
.loadmore { display: flex; justify-content: center; padding: 10px; }
.day { align-self: center; margin: 8px 0 6px; background: var(--svc); color: var(--svc-t); font-size: 14px; font-weight: 500; padding: 3px 10px; border-radius: 12px; position: sticky; top: 6px; z-index: 3; backdrop-filter: blur(6px); }
.svc { align-self: center; max-width: 82%; text-align: center; margin: 5px 0; background: var(--svc); color: var(--svc-t); font-size: 14px; font-weight: 500; padding: 4px 11px; border-radius: 13px; line-height: 1.35; }
.unread-sep { margin: 8px 0; background: var(--bg); color: var(--accent2); text-align: center; font-size: 14px; font-weight: 500; padding: 5px; opacity: .92; }
.mrow { display: flex; align-items: flex-end; padding: 1px 8px; position: relative; transition: background .2s; }
.mrow.out { justify-content: flex-end; }
.mrow.last { padding-bottom: 6px; }
.mrow.sel { background: var(--sel); }
.mrow.flash { animation: flash 1.4s; }
@keyframes flash { 0%, 60% { background: var(--sel); } }
.mrow.selmode { padding-left: 48px; }
.mrow-chk { position: absolute; left: 12px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.mrow.sel .mrow-chk { background: var(--green); border-color: #fff; }
.mrow-chk .ic { opacity: 0; } .mrow.sel .mrow-chk .ic { opacity: 1; }
.mrow-av { width: 38px; margin-right: 6px; flex: none; align-self: flex-end; }
.mrow.anim { animation: msgIn .25s cubic-bezier(.2,.8,.3,1.1); }
@keyframes msgIn { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.swipe-reply { position: absolute; right: -40px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--svc); color: #fff; display: flex; align-items: center; justify-content: center; }
.bub { position: relative; max-width: min(78vw, 440px); background: var(--in); color: var(--in-t); border-radius: 12px; padding: 6px 9px 7px; box-shadow: 0 1px 1px rgba(0,0,0,.13); font-size: var(--fs); line-height: 1.34; word-wrap: break-word; overflow-wrap: anywhere; min-width: 60px; user-select: none; }
html.dark .bub { box-shadow: none; }
.out .bub { background: var(--out); color: var(--out-t); }
.bub.tail-in { border-bottom-left-radius: 4px; }
.bub.tail-out { border-bottom-right-radius: 4px; }
.bub.tail-in::before, .bub.tail-out::before { content: ''; position: absolute; bottom: 0; width: 11px; height: 17px; background: inherit; }
.bub.tail-in::before { left: -6px; clip-path: path('M11 0 L11 17 L0 17 C4 16 8 13 9 8 Z'); }
.bub.tail-out::before { right: -6px; clip-path: path('M0 0 L0 17 L11 17 C7 16 3 13 2 8 Z'); }
.bub.grp-top-in { border-top-left-radius: 5px; } .bub.grp-top-out { border-top-right-radius: 5px; }
.bub.grp-mid-in { border-top-left-radius: 5px; border-bottom-left-radius: 5px; } .bub.grp-mid-out { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.bub.media-only { padding: 0; overflow: visible; }
.bub.media-only .bub-media { border-radius: inherit; overflow: hidden; }
.bub.big-emoji { background: none !important; box-shadow: none; padding: 0 4px; }
.bub.big-emoji::before { display: none; }
.bub.big-emoji .txt { font-size: 52px; line-height: 1.15; }
.bub.big-emoji.e2 .txt { font-size: 44px; } .bub.big-emoji.e3 .txt { font-size: 38px; }
.bub.big-emoji .meta { background: var(--svc); color: #fff; padding: 1px 6px; border-radius: 10px; }
.bub.big-emoji .meta .ic { color: #fff; }
.sender { font-size: 14.5px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwd { font-size: 14.5px; color: var(--reply-in); margin-bottom: 3px; }
.out .fwd { color: var(--reply-out); }
.fwd b { font-weight: 500; }
.rply { display: flex; gap: 0; margin: 2px 0 5px; padding: 3px 8px 3px 9px; border-radius: 5px; position: relative; overflow: hidden; background: rgba(58,140,207,.1); max-width: 100%; }
.out .rply { background: rgba(78,163,64,.13); }
html.dark .out .rply { background: rgba(142,203,255,.12); }
.rply::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--reply-in); }
.out .rply::before { background: var(--reply-out); }
.rply-img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; margin-right: 8px; flex: none; }
.rply-main { min-width: 0; flex: 1; }
.rply-n { font-size: 14px; font-weight: 500; color: var(--reply-in); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out .rply-n { color: var(--reply-out); }
.rply-t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.txt { white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.txt .lnk { color: var(--link); }
.out .txt .lnk { color: var(--link); }
html.dark .out .txt .lnk { color: #9fd3ff; }
.meta { float: right; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--in-time); margin: 8px -2px -5px 10px; position: relative; top: 1px; white-space: nowrap; }
.out .meta { color: var(--out-time); }
.meta .ic { color: var(--out-check); }
.meta .ic.err { color: var(--red); }
.meta.over { position: absolute; right: 7px; bottom: 6px; top: auto; float: none; margin: 0; background: rgba(0,0,0,.4); color: #fff; padding: 1px 6px; border-radius: 10px; }
.meta.over .ic { color: #fff; }
.bub-media { position: relative; margin: -6px -9px 6px; overflow: hidden; border-radius: 12px 12px 4px 4px; background: rgba(0,0,0,.08); cursor: pointer; }
.bub.media-only .bub-media { margin: 0; }
.bub-media.has-top { border-radius: 4px; margin-top: 4px; }
.bub-media img, .bub-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bub-media .blur { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(12px); transform: scale(1.1); }
.bub-media .real { position: relative; opacity: 0; transition: opacity .25s; }
.bub-media .real.ok { opacity: 1; }
.play-ov { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; }
.vdur { position: absolute; left: 7px; top: 7px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 10px; }
.prog { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.prog circle { transition: stroke-dashoffset .2s; }
.fileb { display: flex; align-items: center; gap: 12px; padding: 3px 0 2px; min-width: 200px; cursor: pointer; }
.file-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent2); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; position: relative; }
.out .file-ic { background: #5fb85a; }
html.dark .out .file-ic { background: #4f8ecf; }
.file-main { min-width: 0; flex: 1; }
.file-n { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-s { font-size: 13.5px; color: var(--in-time); margin-top: 2px; }
.out .file-s { color: var(--out-time); }
.voice { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 2px 0; }
.voice .file-ic { width: 44px; height: 44px; }
.wave { display: flex; align-items: center; gap: 2px; height: 24px; flex: 1; cursor: pointer; }
.wave i { flex: 1; max-width: 3px; min-height: 3px; border-radius: 2px; background: var(--in-time); opacity: .55; }
.wave i.on { background: var(--accent2); opacity: 1; }
.out .wave i { background: var(--out-time); } .out .wave i.on { background: #4fae4e; }
html.dark .out .wave i.on { background: #fff; }
.voice-t { font-size: 13px; color: var(--in-time); margin-top: 3px; }
.out .voice-t { color: var(--out-time); }
.reacts { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; clear: both; }
.rchip { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 7px; border-radius: 14px; background: rgba(58,140,207,.12); color: var(--reply-in); font-size: 14px; font-weight: 500; transition: transform .15s; }
.rchip .e { font-size: 17px; }
.rchip.me { background: var(--reply-in); color: #fff; }
.out .rchip { background: rgba(78,163,64,.16); color: #3d8f32; }
.out .rchip.me { background: #5bb04f; color: #fff; }
html.dark .out .rchip { background: rgba(142,203,255,.15); color: #cfe7ff; }
html.dark .out .rchip.me { background: #5aa2e0; color: #fff; }
.rchip:active { transform: scale(.92); }
.big-emoji .reacts .rchip, .media-only .reacts { }
.media-only .reacts { padding: 0 6px 6px; }
.media-only .txt-wrap { padding: 0 9px 7px; }
.edited { font-style: normal; margin-right: 2px; }
.fab-down { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); color: var(--t2); box-shadow: 0 2px 6px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; z-index: 3; transition: transform .2s, opacity .2s; }
.fab-down.hide { transform: scale(.4) translateY(40px); opacity: 0; pointer-events: none; }
.fab-down .badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); min-width: 22px; height: 22px; font-size: 12px; background: var(--accent2); }
.typing-dots { display: inline-flex; gap: 2px; margin-right: 4px; vertical-align: middle; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: tdot 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* composer */
.composer { position: relative; z-index: 2; flex: none; background: var(--input); box-shadow: 0 -1px 2px rgba(0,0,0,.06); }
.cmp-bar { display: flex; align-items: flex-end; min-height: 50px; padding: 0 2px; }
.cmp-bar .hbtn { color: var(--input-ic); width: 48px; height: 50px; border-radius: 0; }
.cmp-bar .hbtn.blue { color: var(--accent2); }
.cmp-in { flex: 1; min-width: 0; border: 0; outline: none; background: none; resize: none; font-size: 17px; line-height: 1.32; padding: 13px 4px; max-height: 150px; color: var(--t1); user-select: text; -webkit-user-select: text; }
.cmp-in::placeholder { color: var(--t3); }
.cmp-ctx { display: flex; align-items: center; height: 48px; padding: 0 4px 0 14px; gap: 12px; border-bottom: 1px solid var(--div); animation: slideUp .18s; }
@keyframes slideUp { from { transform: translateY(30%); opacity: 0; } }
.cmp-ctx > .ic { color: var(--accent2); }
.cmp-ctx-main { flex: 1; min-width: 0; border-left: 2px solid var(--accent2); padding-left: 9px; }
.cmp-ctx-t { font-size: 14.5px; font-weight: 500; color: var(--accent2); }
.cmp-ctx-s { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t1); }
.cmp-ctx .hbtn { color: var(--t3); width: 40px; height: 40px; }
.cmp-big { display: flex; align-items: center; justify-content: center; height: 50px; color: var(--accent2); font-size: 15.5px; font-weight: 500; text-transform: uppercase; width: 100%; }
.rec { display: flex; align-items: center; height: 50px; padding: 0 12px; gap: 12px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec-t { font-size: 16px; min-width: 56px; }
.rec-hint { flex: 1; text-align: center; color: var(--t2); font-size: 14.5px; }
.rec-btn { position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border-radius: 50%; background: var(--accent2); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; padding: 0 22px 22px 0; transition: transform .1s; }
.rec-btn .ic { margin-left: -6px; margin-top: -6px; }
.emoji-panel { height: 290px; display: flex; flex-direction: column; border-top: 1px solid var(--div); background: var(--input); }
.emoji-tabs { flex: none; display: flex; height: 44px; border-bottom: 1px solid var(--div); overflow-x: auto; }
.emoji-tab { flex: 1; min-width: 42px; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: .5; filter: grayscale(.6); }
.emoji-tab.on { opacity: 1; filter: none; box-shadow: inset 0 -2px 0 var(--accent2); }
.emoji-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); padding: 6px; align-content: start; }
.emoji-grid .em { height: 44px; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 8px; }
.emoji-grid .em:active { background: var(--ripple); }
.emoji-cat { grid-column: 1 / -1; font-size: 13.5px; color: var(--t2); padding: 8px 6px 4px; font-weight: 500; }

/* context menu for messages */
.cm-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.25); animation: fadeIn .15s; }
.ov.closing .cm-wrap { animation: fadeOut .15s forwards; }
.cm { position: absolute; left: 50%; width: min(300px, 88vw); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; animation: menuIn .2s cubic-bezier(.2,.8,.3,1.1); }
.cm-react { background: var(--menu); border-radius: 26px; height: 52px; display: flex; align-items: center; padding: 0 6px; box-shadow: 0 4px 16px rgba(0,0,0,.2); overflow: hidden; }
.cm-react-scroll { display: flex; overflow-x: auto; gap: 2px; flex: 1; }
.cm-react .e { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 27px; border-radius: 50%; transition: transform .15s; }
.cm-react .e:active { transform: scale(1.3); }
.cm-react .e.me { background: var(--sel); }
.cm-react .more { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--t2); margin-left: 4px; }
.cm-menu { background: var(--menu); border-radius: 12px; padding: 6px 0; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.cm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--menu); border-radius: 14px; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.2); max-height: 260px; overflow-y: auto; }
.cm-grid .e { height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; border-radius: 50%; }
.cm-info { font-size: 13.5px; color: var(--t2); padding: 8px 18px 4px; }

/* attach sheet */
.att-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; max-height: 50vh; overflow-y: auto; }
.att-btns { display: flex; justify-content: space-around; padding: 18px 10px 20px; }
.att-b { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; color: var(--t2); width: 72px; }
.att-b > div { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.send-prev { padding: 12px 16px 16px; }
.send-prev-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.send-prev-item { position: relative; flex: none; height: 160px; border-radius: 10px; overflow: hidden; background: #000; }
.send-prev-item img, .send-prev-item video { height: 100%; display: block; }
.send-prev-item .vdur { top: auto; bottom: 7px; }
.send-prev-item .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; color: #fff; }
.send-prev-file { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.send-cap { display: flex; align-items: flex-end; gap: 6px; border-top: 1px solid var(--div); padding-top: 6px; }
.send-cap textarea { flex: 1; border: 0; outline: none; background: none; resize: none; font-size: 16.5px; padding: 10px 2px; max-height: 120px; user-select: text; }
.send-cap .fab { position: static; width: 48px; height: 48px; flex: none; }
.chk-row { display: flex; align-items: center; gap: 14px; padding: 6px 2px; font-size: 15px; color: var(--t2); }

/* media viewer */
.mv { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; animation: fadeIn .2s; color: #fff; touch-action: none; }
.ov.closing .mv { animation: fadeOut .2s forwards; }
.mv-top { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; padding: 0 4px; background: linear-gradient(rgba(0,0,0,.55), transparent); z-index: 2; transition: opacity .2s; }
.mv-top .hbtn { color: #fff; }
.mv-title { flex: 1; min-width: 0; padding-left: 16px; }
.mv-t1 { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-t2 { font-size: 13.5px; color: rgba(255,255,255,.7); }
.mv-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mv-body img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.mv-body video { max-width: 100%; max-height: 100%; }
.mv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 22px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; }
.mv.hideui .mv-top, .mv.hideui .mv-cap { opacity: 0; pointer-events: none; }

/* profile */
.prof-head { background: var(--hdr); color: #fff; padding: 0 0 18px; position: relative; flex: none; }
.prof-head .hdr { box-shadow: none; background: transparent; }
.prof-info { display: flex; align-items: center; gap: 18px; padding: 4px 20px 0 18px; }
.prof-name { font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 6px; word-break: break-word; }
.prof-st { font-size: 14.5px; color: var(--hdr-s); margin-top: 4px; }
.prof-st.on { color: #fff; }
.prof-fab { position: absolute; right: 18px; bottom: -28px; }
.prof-fab .fab { position: static; }
.ptabs { display: flex; background: var(--bg); border-bottom: 1px solid var(--div); position: sticky; top: 0; z-index: 2; overflow-x: auto; }
.ptab { flex: 1; min-width: 72px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; color: var(--t2); position: relative; white-space: nowrap; padding: 0 10px; }
.ptab.on { color: var(--accent); }
.ptab.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mgrid > div { position: relative; aspect-ratio: 1; background: var(--bg2); overflow: hidden; cursor: pointer; }
.mgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mgrid .vdur { top: auto; bottom: 5px; left: auto; right: 5px; }
.av-edit { position: relative; }
.av-edit-btn { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--div); max-height: 120px; overflow-y: auto; align-items: center; }
.chip { display: flex; align-items: center; gap: 6px; height: 32px; border-radius: 16px; background: var(--bg2); padding: 0 12px 0 0; font-size: 14.5px; animation: dlgIn .15s; }
.chip .av { width: 32px !important; height: 32px !important; }
.chips input { flex: 1; min-width: 100px; border: 0; outline: none; background: none; font-size: 16px; height: 32px; }
.newitem { display: flex; align-items: center; height: 52px; padding: 0 18px; gap: 30px; color: var(--accent); font-size: 16px; font-weight: 500; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.stat { background: var(--bg); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat-v { font-size: 26px; font-weight: 500; color: var(--accent); }
.stat-l { font-size: 13.5px; color: var(--t2); margin-top: 4px; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 500; vertical-align: middle; }
.tag.red { background: rgba(229,57,53,.14); color: var(--red); }
.tag.blue { background: rgba(58,138,208,.14); color: var(--accent); }
.tag.gray { background: var(--bg2); color: var(--t2); }
.admin-tabs { display: flex; background: var(--hdr); }
.admin-tabs .tab { flex: 1; justify-content: center; }
textarea.area { width: 100%; min-height: 140px; border: 1px solid var(--div); border-radius: 8px; padding: 12px; background: var(--bg); outline: none; font-size: 16px; resize: vertical; user-select: text; }

.slider { width: 100%; accent-color: var(--accent); }
.preview-chat { position: relative; height: 170px; overflow: hidden; padding: 16px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.preview-chat > .mrow, .preview-chat > .svc { position: relative; z-index: 1; }
.about { text-align: center; padding: 30px 24px; }
.about .intro-logo { width: 96px; height: 96px; margin: 10px auto 18px; }

/* ---------------------------------------------------------------- app shell */
.app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); height: var(--vh, 100%); }
.splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); }
.splash-t { font-size: 26px; font-weight: 600; letter-spacing: 1px; margin-top: 16px; color: var(--t1); }
.offline-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; background: #e53935; color: #fff; text-align: center; font-size: 13.5px; padding: 6px; animation: sheetIn .25s; }
.hdr-dark { background: #000 !important; }

/* ---------------------------------------------------------------- pickers / create */
.newitems { background: var(--bg); padding: 4px 0; }
.av-ph { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.picker-top { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--div); background: var(--bg); max-height: 136px; overflow-y: auto; }
.picker-in { flex: 1; min-width: 120px; border: 0; outline: none; background: none; color: var(--t1); font-size: 16px; height: 34px; }
.pchip { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 2px; border-radius: 16px; background: var(--bg2); font-size: 14.5px; color: var(--t1); max-width: 160px; position: relative; overflow: hidden; animation: dlgIn .15s; cursor: pointer; }
.pchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip-x { position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.pchip:hover .pchip-x, .pchip:active .pchip-x { opacity: 1; }
.urow.sel { background: var(--sel); }
.btn-sm { height: 30px; padding: 0 14px; border-radius: 15px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; flex: none; }
.fwd-count { position: absolute; left: 16px; bottom: 30px; background: var(--menu); color: var(--t1); padding: 8px 14px; border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; animation: dlgIn .15s; }

/* ---------------------------------------------------------------- appearance */
.range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--div); outline: none; accent-color: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.theme-prev { position: relative; margin: 0 16px 16px; border-radius: 10px; overflow: hidden; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.theme-prev .wall { position: absolute; inset: 0; }
.theme-prev .mrow { position: relative; padding: 0 8px; }
.themes { display: flex; gap: 14px; padding: 8px 16px 16px; }
.theme-card { width: 96px; text-align: center; font-size: 14px; color: var(--t1); border-radius: 12px; padding: 6px; }
.theme-card.on { color: var(--accent); font-weight: 500; }
.theme-sw { position: relative; height: 110px; border-radius: 10px; overflow: hidden; margin-bottom: 6px; border: 2px solid var(--div); }
.theme-card.on .theme-sw { border-color: var(--accent); }
.theme-sw i { position: absolute; left: 8px; top: 44%; width: 52%; height: 16px; border-radius: 8px; }
.theme-sw i.o { left: auto; right: 8px; top: 68%; }

/* ---------------------------------------------------------------- admin */
.stat { position: relative; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.stat-s { font-size: 12px; color: var(--t3); margin-top: 2px; }
.admin-tabs { flex: none; position: relative; background: var(--hdr); border-bottom: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.admin-tabs .ptab { color: rgba(255,255,255,.65); }
.admin-tabs .ptab.on { color: #fff; }
.admin-tabs .ptab.on::after { background: #fff; }

/* ================================================================ 1.0.2: join / QR / requests / admin / desktop */
.btn-flat { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 8px; color: var(--accent); font-size: 15px; font-weight: 500; background: transparent; }
.btn-flat:disabled, .btn.ghost:disabled { opacity: .6; }
.btn.ghost { background: var(--bg2); color: var(--t2); }
.row-qr { color: var(--accent); width: 42px; height: 42px; margin-right: -6px; }
.intro-legal { margin-top: 22px; max-width: 320px; font-size: 12.5px; line-height: 1.6; color: var(--t3); }
.about-legal { padding: 14px 18px 16px; line-height: 1.7; color: var(--t1); font-size: 15px; }
.about-by { font-size: 16px; margin-bottom: 4px; }
.admin-ro { color: var(--t2) !important; gap: 8px; text-transform: none !important; }
.cmp-big .ic { margin-right: 6px; }

/* QR sheet */
.qr-sheet { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.qr-top { display: flex; align-items: center; height: 52px; flex: none; padding: 0 4px; }
.qr-title { flex: 1; text-align: center; font-size: 18px; font-weight: 500; }
.qr-canvas-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 16px; }
.qr-canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 720 / 1040; border-radius: 18px; opacity: 0; transition: opacity .2s; box-shadow: 0 4px 22px rgba(0,0,0,.15); }
.qr-canvas.on { opacity: 1; }
.qr-spin { position: absolute; inset: 0; }
.qr-themes { display: flex; justify-content: center; gap: 14px; padding: 14px 0 6px; flex: none; }
.qr-theme { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 2px var(--menu) inset; cursor: pointer; }
.qr-theme.on { border-color: var(--accent); }
.qr-actions { display: flex; gap: 8px; padding: 8px 14px 14px; flex: none; }
.qr-actions > * { flex: 1; min-width: 0; font-size: 14px; padding: 0 6px; }
.qr-actions .btn { height: 44px; }

/* scanner */
.scan-pg { background: #000; color: #fff; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.scan-box { position: relative; width: min(68vw, 290px); aspect-ratio: 1; box-shadow: 0 0 0 200vmax rgba(0,0,0,.55); border-radius: 14px; overflow: hidden; }
.scan-box i { position: absolute; width: 30px; height: 30px; border: 4px solid #4fc3f7; }
.scan-box .c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scan-box .c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scan-box .c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scan-box .c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #4fc3f7, transparent); box-shadow: 0 0 12px #4fc3f7; animation: scanMove 2.2s ease-in-out infinite; }
@keyframes scanMove { 0% { top: 6%; } 50% { top: 92%; } 100% { top: 6%; } }
.scan-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; height: 56px; padding: 0 4px; background: linear-gradient(rgba(0,0,0,.5), transparent); color: #fff; z-index: 2; }
.scan-top .hbtn, .scan-top .ht1 { color: #fff; }
.scan-tip { position: absolute; left: 24px; right: 24px; top: calc(50% + min(34vw, 145px) + 22px); text-align: center; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.scan-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 60px; padding: 18px 0 calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.scan-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; background: none; border-radius: 12px; padding: 6px 10px; }
.scan-btn span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }

/* join by code */
.join-code { padding: 22px 16px 10px; text-align: center; }
.join-code-t { color: var(--t2); font-size: 15px; margin-bottom: 16px; }
.code-boxes { position: relative; display: flex; justify-content: center; gap: 7px; cursor: text; }
.code-box { width: 36px; height: 48px; border-radius: 8px; border: 1.5px solid var(--div); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500; color: var(--t1); background: var(--bg); transition: border-color .15s; }
.code-box.gap { margin-right: 10px; }
.code-box.fill { border-color: var(--accent2); }
.code-box.cur { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,138,208,.18); }
.code-input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; border: 0; background: transparent; color: transparent; caret-color: transparent; }
.join-alt { display: flex; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.join-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 22px; }
.join-title { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 500; margin-top: 14px; }
.join-title .vf { color: var(--accent); }
.join-sub { color: var(--t2); margin-top: 4px; font-size: 14.5px; }
.join-desc { margin-top: 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; max-width: 420px; }
.join-mode { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; color: var(--t2); background: var(--bg2); border-radius: 14px; padding: 5px 12px; }
.join-btn { margin-top: 20px; max-width: 340px; }
.join-hint { color: var(--t2); font-size: 13px; margin-top: 10px; }

/* join requests */
.jr { padding: 12px 16px 12px; border-bottom: 1px solid var(--div); }
.jr:last-child { border-bottom: 0; }
.jr-top { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.jr-msg { margin: 10px 0 0 58px; background: var(--bg2); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.jr-btns { display: flex; gap: 8px; margin: 10px 0 0 58px; }
.jr-btns .btn { height: 38px; width: auto; padding: 0 20px; font-size: 14.5px; }
.jr-btns .btn-flat { height: 38px; color: var(--t2); }
.jr-bar { cursor: pointer; }
.jr-bar-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.jr-bar-go { color: var(--t3); margin-right: 8px; }
.admin-bar { height: 40px; background: #fff4e0; color: #9a6400; }
.admin-bar .pinbar-s { color: #9a6400; font-size: 13.5px; }
html.dark .admin-bar { background: #3a3020; color: #f1c270; }
html.dark .admin-bar .pinbar-s { color: #f1c270; }

/* admin filters */
.fchips { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--div); overflow-x: auto; }
.fchip { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--bg2); color: var(--t1); display: flex; align-items: center; font-size: 14px; flex: none; cursor: pointer; }
.fchip.on { background: var(--accent); color: #fff; }
.av-pair { position: relative; width: 46px; height: 46px; }
.av-pair > :first-child { position: absolute; left: 0; top: 0; }
.av-pair > :nth-child(2) { position: absolute; right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--bg); border-radius: 50%; }
.urow .hbtn { color: var(--t3); flex: none; }

/* ---------------------------------------------------------------- desktop / wide screens (web) */
.wide-empty { display: none; }
@media (min-width: 900px) {
  .app.wide .page.base { width: 380px; right: auto; border-right: 1px solid var(--div); z-index: 3; transform: none !important; visibility: visible !important; }
  .app.wide .page:not(.base) { left: 380px; }
  .app.wide .page.under { transform: none; }
  .app.wide .page.under::after { display: none; }
  .app.wide .page.in, .app.wide .page.out { box-shadow: none; }
  .app.wide .page.in { animation: pgFade .18s ease-out; }
  .app.wide .page.out { animation: pgFadeOut .16s ease-in forwards; }
  .app.wide .wide-empty { display: flex; position: absolute; left: 380px; right: 0; top: 0; bottom: 0; align-items: center; justify-content: center; background: var(--bg2); }
  .wide-empty-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .wide-empty-in .intro-logo { margin-bottom: 18px; }
  .wide-empty-t { font-size: 20px; font-weight: 500; }
  .wide-empty-s { margin-top: 6px; color: var(--t2); background: rgba(0,0,0,.08); border-radius: 14px; padding: 4px 14px; font-size: 14px; }
  .app.wide .drow.active { background: var(--accent); }
  .app.wide .drow.active .drow-name, .app.wide .drow.active .drow-time, .app.wide .drow.active .drow-msg, .app.wide .drow.active .drow-msg * { color: #fff !important; }
  .app.wide .drow.active .badge { background: #fff; color: var(--accent); }
  .app.wide .sheet { max-width: 520px; margin: 0 auto; border-radius: 14px 14px 0 0; }
  .app.wide .sheet.full { height: min(88vh, 860px); }
  .msgs-in { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; }
}
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgFadeOut { from { opacity: 1; } to { opacity: 0; } }
.admin-tabs + .scroll .urow { height: auto; min-height: 64px; padding: 9px 14px; align-items: center; }
.sec > .intro-logo { margin-left: auto; margin-right: auto; }
.urow-t .ic { display: inline-block; vertical-align: -3px; }

/* ---------------------------------------------------------------- 1.0.4: email auth, maintenance, reports, admin */
.code-btn { flex: none; align-self: center; height: 32px; padding: 0 12px; margin: 0 0 4px 8px; border-radius: 16px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: opacity .15s; }
.code-btn.off { background: var(--bg2); color: var(--t2); }
.auth-tabs { display: flex; gap: 8px; margin: 4px 0 20px; background: var(--bg2); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 500; color: var(--t2); cursor: pointer; transition: background .15s, color .15s; }
.auth-tab.on { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.auth-links { display: flex; justify-content: flex-end; margin-top: -4px; }
.auth-links .auth-link { margin-top: 0; padding: 6px 0; font-size: 14px; }

.maint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(160deg, #5aa8e6 0%, #3a8ad0 50%, #2c6fb4 100%); color: #fff; text-align: center; overflow-y: auto; }
.maint-in { max-width: 420px; width: 100%; display: flex; flex-direction: column; align-items: center; margin: auto 0; }
.maint-ic { width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.2); animation: maintSpin 6s ease-in-out infinite; }
@keyframes maintSpin { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
.maint-t { font-size: 28px; font-weight: 600; letter-spacing: 1px; }
.maint-s { font-size: 16px; line-height: 1.7; margin-top: 14px; opacity: .95; white-space: pre-wrap; word-break: break-word; }
.maint-until { display: flex; align-items: center; gap: 6px; margin-top: 16px; background: rgba(255,255,255,.16); padding: 8px 14px; border-radius: 18px; font-size: 14.5px; }
.maint-note { font-size: 13.5px; opacity: .8; margin-top: 18px; line-height: 1.6; }
.maint-btn { margin-top: 26px; max-width: 240px; background: #fff !important; color: var(--accent) !important; }
.maint-btn .ic { fill: var(--accent) !important; color: var(--accent) !important; }
.maint-link { margin-top: 16px; color: #fff; opacity: .85; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
.maint-legal { font-size: 12px; opacity: .7; margin-top: 18px; line-height: 1.6; }
.maint-bar { background: #ff9800 !important; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }

.maint-card { display: flex; align-items: center; gap: 14px; margin: 12px 12px 0; padding: 14px 16px; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; }
.maint-card-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--t3); display: flex; align-items: center; justify-content: center; flex: none; }
.maint-card.on .maint-card-ic { background: #ff9800; }
.maint-card.on { box-shadow: inset 0 0 0 2px #ff9800, var(--shadow); }
.maint-card-m { flex: 1; min-width: 0; }
.maint-card-t { font-size: 16px; font-weight: 500; }
.maint-card-s { font-size: 13.5px; color: var(--t2); margin-top: 3px; line-height: 1.4; }
.rep-alert { display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 12px 16px; background: rgba(229,57,53,.1); color: var(--red); border-radius: 12px; font-size: 14.5px; cursor: pointer; }
.rep-alert span { flex: 1; }
.dt-row { display: flex; align-items: center; gap: 18px; padding: 8px 18px 14px; color: var(--t2); }
.dt-m { flex: 1; font-size: 14px; }
.dt-in { display: block; margin-top: 6px; width: 100%; max-width: 280px; height: 40px; border: 1px solid var(--div); border-radius: 8px; padding: 0 10px; background: var(--bg); color: var(--t1); font-size: 15px; outline: none; }

.usage { padding: 6px 18px 14px; }
.usage-warn { display: flex; align-items: center; gap: 8px; background: rgba(229,57,53,.08); color: var(--red); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 10px; }
.ubar { margin: 10px 0 14px; }
.ubar-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.ubar-v { color: var(--t2); font-size: 13.5px; white-space: nowrap; }
.ubar-t { height: 8px; border-radius: 4px; background: var(--bg2); margin-top: 7px; overflow: hidden; }
.ubar-t i { display: block; height: 100%; border-radius: 4px; transition: width .6s; }
.ubar-n { font-size: 12.5px; color: var(--t2); margin-top: 5px; line-height: 1.5; }

.tag.orange { background: rgba(255,152,0,.16); color: #f57c00; }
.dr-badge { margin-left: auto; }
.tab-badge { position: absolute; top: 6px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; background: var(--red); }
.urow.sel { background: rgba(58,138,208,.08); }
.urow-chk { flex: none; display: flex; }
.with-selbar { padding-bottom: 64px; }
.selbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--div); box-shadow: 0 -2px 8px rgba(0,0,0,.06); z-index: 5; }
.selbar-n { flex: 1; color: var(--t2); font-size: 14px; }
.selbar .btn { width: auto; height: 40px; padding: 0 18px; }
.btn.danger { background: var(--red); }
.rep-row { height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; align-items: flex-start; }
.rep-row .urow-s { white-space: normal; }
.rep-av { width: 46px; height: 46px; border-radius: 50%; background: #e53935; display: flex; align-items: center; justify-content: center; }
.rep-quote { margin-top: 5px; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--bg2); border-radius: 0 6px 6px 0; font-size: 13.5px; color: var(--t1); max-height: 60px; overflow: hidden; }
.rep-detail-t { color: var(--t1) !important; }

.rep { padding: 18px 0 8px; }
.rep-h { display: flex; align-items: center; gap: 14px; padding: 0 20px 12px; }
.rep-t { font-size: 18px; font-weight: 500; }
.rep-s { font-size: 13.5px; color: var(--t2); margin-top: 2px; max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-list { display: grid; grid-template-columns: 1fr 1fr; padding: 0 8px; }
.rep-item { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 8px; font-size: 15.5px; cursor: pointer; }
.rep-item.on { color: var(--accent); }
.rep-detail { display: block; width: calc(100% - 40px); margin: 10px 20px 0; min-height: 70px; border: 1px solid var(--div); border-radius: 10px; padding: 10px 12px; background: var(--bg); color: var(--t1); font-size: 15px; outline: none; resize: none; font-family: inherit; user-select: text; -webkit-user-select: text; }
.rep-detail:focus { border-color: var(--accent); }
.rep-note { font-size: 12.5px; color: var(--t2); padding: 8px 20px 0; line-height: 1.5; }
.rep-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 4px; }
.rep-go { width: auto; padding: 0 22px; height: 42px; background: var(--red); }
.rep-go.off { opacity: .55; }
