:root {
  --bg: #f3f7fb;
  --card: #ffffff;
  --ink: #1c2433;
  --muted: #667085;
  --line: #e4ebf3;
  --sky: #2f7cf6;
  --sky-deep: #1d64d8;
  --sky-soft: #e8f1ff;
  --mint: #d9f6ea;
  --sand: #fff4df;
  --rose: #ffe4e8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
body.page-inbox { overflow: hidden; height: 100dvh; }
button, a, label { touch-action: manipulation; }
textarea, input, button, select { font: inherit; font-size: 16px; }
video, img { max-width: 100%; }
.safe-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.wa-down {
  display: none; text-align: center; font-size: 14px; font-weight: 700;
  color: #9a3412; background: #fff7ed; padding: 8px 14px;
}
.wa-down.show { display: block; }
.imp-banner { display: flex; gap: 12px; align-items: center; justify-content: center; background: #fff4df; padding: 8px 12px; font-size: 14px; }
.lp { min-height: 100dvh; background: #fff; color: #0f172a; font-family: Manrope, "Segoe UI", sans-serif; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid #eef2f7; }
.lp-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.lp-nav .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.lp-nav .brand-name { font-weight: 800; font-size: 18px; }
.lp-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.lp-burger span { display: block; height: 2px; border-radius: 2px; background: #0f172a; transition: transform .2s ease, opacity .2s ease; }
.lp-nav.open .lp-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav.open .lp-burger span:nth-child(2) { opacity: 0; }
.lp-nav.open .lp-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lp-links { display: flex; gap: 22px; align-items: center; }
.lp-links > a { color: #475569; text-decoration: none; font-weight: 700; font-size: 14px; }
.lp-menu-actions { display: none; }
.lp-nav-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.lp .btn, .lp .btn-ghost { text-decoration: none; display: inline-flex; align-items: center; border-radius: 999px; padding: 10px 16px; }
.lp .btn { background: #4f46e5; }
.lp .btn-ghost { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.lp-hero { text-align: center; padding: 72px 0 28px; background: radial-gradient(520px 220px at 50% 0%, rgba(79,70,229,.16), transparent 70%); }
.lp-kicker { display: inline-flex; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 13px; font-weight: 800; }
.lp-hero h1 { margin: 0 auto; max-width: 20em; font-size: 52px; line-height: 1.12; letter-spacing: -0.04em; }
.lp-hero .lead { margin: 16px auto 0; max-width: 38rem; color: #475569; font-size: 18px; line-height: 1.6; }
.lp-cta { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.lp-shot { padding: 10px 0 48px; }
.deskwin { background: #fff; border: 1px solid #e7ecf4; border-radius: 18px; box-shadow: 0 40px 90px rgba(15,23,42,.12); overflow: hidden; }
.deskwin-bar { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.deskwin-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7dee8; display: block; }
.deskwin-bar span { margin-left: 8px; color: #94a3b8; font-size: 12px; font-weight: 700; }
.deskwin-body { display: grid; grid-template-columns: 240px minmax(0,1fr) 210px; min-height: 340px; background: #f8fafc; text-align: left; }
.dw-list, .dw-side { background: #fff; }
.dw-list { border-right: 1px solid #eef2f7; padding: 8px; }
.dw-side { border-left: 1px solid #eef2f7; padding: 12px; }
.dw-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; padding: 8px; border-radius: 12px; }
.dw-row.on { background: #eef2ff; }
.dw-av { width: 32px; height: 32px; border-radius: 50%; background: #4f46e5; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.dw-row b, .dw-row em { display: block; font-style: normal; }
.dw-row b { font-size: 13px; }
.dw-row em { color: #64748b; font-size: 12px; margin-top: 2px; }
.dw-time { color: #94a3b8; font-size: 11px; font-weight: 700; }
.dw-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dw-in, .dw-out { max-width: 78%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.dw-in { background: #fff; border: 1px solid #e7ecf4; }
.dw-out { margin-left: auto; background: #4f46e5; color: #fff; }
.dw-photo { height: 72px; border-radius: 10px; margin-bottom: 6px; background: linear-gradient(135deg, #c7d2fe, #818cf8); }
.dw-at { font-weight: 800; text-decoration: underline; }
.dw-card { background: #f8fafc; border: 1px solid #e7ecf4; border-radius: 12px; padding: 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.4; }
.dw-card b { display: block; margin-bottom: 2px; }
.lp-band { background: #f8fafc; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; padding: 28px 0; }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-stat {
  background: #fff; border: 1px solid #e7ecf4; border-radius: 18px;
  padding: 22px 12px 18px; text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.lp-stat b {
  display: flex; align-items: flex-start; justify-content: center; gap: 2px;
  font-size: 34px; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: #0f172a;
}
.lp-stat sup { font-size: 15px; font-weight: 800; line-height: 1; color: #4f46e5; margin-top: 3px; }
.lp-stat sup[hidden] { display: none; }
.lp-stat span, .lp-stat small { display: block; }
.lp-stat span { margin-top: 8px; font-weight: 800; font-size: 14px; }
.lp-stat small { margin-top: 3px; color: #64748b; font-size: 12px; }
.lp-sec { padding: 72px 0; scroll-margin-top: 84px; }
.lp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lp-sec-head h2 { margin: 0; font-size: 36px; letter-spacing: -0.03em; }
.lp-sec-head p { margin: 6px 0 0; color: #64748b; }
.lp-arrows { display: flex; gap: 8px; }
.lp-arrows button, .lp .lp-dot { border: 1px solid #e2e8f0; background: #fff; cursor: pointer; }
.lp-arrows button { width: 42px; height: 42px; border-radius: 50%; font-size: 20px; }
.lp-rail { overflow: hidden; }
.lp-track { display: flex; gap: 16px; transition: transform .45s ease; }
.lp-card { flex: 0 0 320px; background: #fff; border: 1px solid #e7ecf4; border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.lp-card-ui { height: 132px; border-radius: 14px; background: #f8fafc; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; padding: 12px; }
.lp-card h3 { margin: 0; font-size: 18px; }
.lp-card p { margin: 6px 0 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.lp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.lp .lp-dot { width: 8px; height: 8px; border-radius: 50%; padding: 0; background: #e2e8f0; }
.lp .lp-dot.on { background: #4f46e5; border-color: #4f46e5; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.chips .a { background: #ede9fe; color: #5b21b6; }
.chips .b { background: #fef3c7; color: #92400e; }
.chips .c { background: #d1fae5; color: #065f46; }
.who { font-weight: 800; }
.note { background: #fff7ed; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; color: #9a3412; }
.cal b { font-size: 22px; }
.cmd { font-size: 28px; font-weight: 800; color: #4f46e5; }
.pair { display: flex; gap: 8px; }
.pair div { width: 72px; height: 52px; border-radius: 10px; }
.pair .ph { background: linear-gradient(135deg, #c7d2fe, #6366f1); }
.pair .vd { background: #0f172a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.nodes { display: flex; gap: 8px; }
.nodes div { border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 13px; background: #e2e8f0; }
.nodes .up { background: #d1fae5; color: #065f46; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-steps article { background: #f8fafc; border-radius: 18px; padding: 20px; }
.lp-steps span { color: #4f46e5; font-weight: 800; }
.lp-steps h3 { margin: 8px 0 6px; }
.lp-steps p { margin: 0; color: #64748b; line-height: 1.5; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #f8fafc; border: 1px solid #e7ecf4; border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 28px 16px 0; line-height: 1.4; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: #4f46e5; font-size: 22px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 16px; color: #475569; line-height: 1.6; max-width: 68ch; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e7ecf4; border-radius: 18px; padding: 16px; }
.st-card b { display: block; font-size: 16px; }
.st-card p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; flex: none; }
.st-pill { margin-left: auto; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #64748b; }
.st-card.up .st-dot { background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.st-card.up .st-pill { background: #dcfce7; color: #166534; }
.st-card.down .st-dot { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
.st-card.down .st-pill { background: #fee2e2; color: #b42318; }
.st-card.off .st-dot { background: #94a3b8; }
.st-when { margin: 12px 0 0; color: #64748b; font-size: 13px; }
.sec-stage {
  position: relative; height: 168px; border-radius: 22px; background: #f8fafc;
  border: 1px solid #e7ecf4; overflow: hidden;
}
.sec-end { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; width: 92px; }
.sec-from { left: 22px; }
.sec-to { right: 22px; }
.sec-end b { font-size: 13px; }
.sec-end span { color: #64748b; font-size: 12px; font-weight: 700; }
.sec-db { display: flex; flex-direction: column; gap: 4px; width: 54px; }
.sec-db i { display: block; height: 8px; border-radius: 999px; background: #e2e8f0; animation: sec-row 5.6s ease-in-out infinite; }
.sec-db i:nth-child(2) { animation-delay: .12s; }
.sec-db i:nth-child(3) { animation-delay: .24s; }
.sec-lock {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  animation: sec-lock 5.6s ease-in-out infinite;
}
.sec-lock span {
  width: 16px; height: 12px; border: 2px solid #0f172a; border-radius: 3px; position: relative;
}
.sec-lock span:before {
  content: ""; position: absolute; left: 2px; top: -8px; width: 8px; height: 7px;
  border: 2px solid #0f172a; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.sec-packet {
  position: absolute; top: 50%; left: 12%; width: max-content; max-width: 58%; height: 46px; margin-top: -23px;
  padding: 0 14px; border-radius: 14px; background: #4f46e5; color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(79,70,229,.28); animation: sec-fly 5.6s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.sec-plain, .sec-cipher {
  display: flex; align-items: center; justify-content: center;
}
.sec-cipher { position: absolute; inset: 0; font-family: Consolas, "Courier New", monospace; font-size: 12px; letter-spacing: .04em; opacity: 0; animation: sec-cipher 5.6s ease-in-out infinite; }
.sec-plain { position: relative; animation: sec-plain 5.6s ease-in-out infinite; }
.sec-copy { margin-top: 22px; max-width: 40rem; }
.sec-copy h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.sec-copy p { margin: 0; color: #475569; line-height: 1.6; }
@keyframes sec-fly {
  0% { left: 12%; opacity: 0; }
  10% { opacity: 1; }
  42% { left: 38%; opacity: 1; }
  74% { left: 68%; opacity: 1; }
  86% { left: 74%; opacity: 0; }
  100% { left: 12%; opacity: 0; }
}
@keyframes sec-plain {
  0%, 34% { opacity: 1; }
  46%, 80% { opacity: 0; }
  92%, 100% { opacity: 1; }
}
@keyframes sec-cipher {
  0%, 34% { opacity: 0; }
  46%, 80% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@keyframes sec-lock {
  0%, 36% { transform: scale(1); background: #e2e8f0; }
  46%, 62% { transform: scale(1.14); background: #d1fae5; }
  78%, 100% { transform: scale(1); background: #e2e8f0; }
}
@keyframes sec-row {
  0%, 64% { background: #e2e8f0; }
  74%, 86% { background: #4f46e5; }
  100% { background: #e2e8f0; }
}
.lp-end { margin: 10px auto 64px; background: #0f172a; color: #fff; border-radius: 24px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lp-end h2 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.03em; }
.lp-end p { margin: 0; color: #cbd5e1; }
.lp-end .btn { background: #fff; color: #0f172a; }
.lp-foot { background: #0b1220; color: #cbd5e1; padding: 48px 0 20px; }
.lp-foot-grid { display: grid; grid-template-columns: 1.5fr .6fr .6fr .6fr; gap: 28px; }
.lp-foot-brand .brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.lp-foot-brand .brand-name { font-weight: 800; font-size: 18px; }
.lp-foot-brand p { margin: 14px 0 0; max-width: 36rem; color: #94a3b8; font-size: 14px; line-height: 1.6; }
.lp-foot h2 { margin: 0 0 12px; color: #fff; font-size: 14px; letter-spacing: 0; }
.lp-foot nav { display: flex; flex-direction: column; gap: 8px; }
.lp-foot nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-foot nav a:hover { color: #fff; }
.lp-foot-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: 13px; }
.lp-foot-bar a { color: #64748b; text-decoration: none; }
.seo-crumb { margin: 0 0 14px; color: #64748b; font-size: 13px; font-weight: 700; }
.seo-crumb a { color: #4f46e5; text-decoration: none; }
.seo-prose { margin: 0 0 22px; color: #475569; line-height: 1.6; max-width: 68ch; }
.lp-sec h2 { margin: 28px 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.seo-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.seo-links a { display: block; background: #f8fafc; border-radius: 14px; padding: 14px 16px; text-decoration: none; color: #0f172a; font-weight: 800; }
.seo-links span { display: block; margin-top: 4px; color: #64748b; font-weight: 600; font-size: 13px; }
@media (max-width: 1040px) {
  .lp-nav-inner { height: 64px; flex-wrap: nowrap; padding: 0; }
  .lp-burger { display: flex; }
  .lp-nav-actions { display: none; }
  .lp-links { display: none; position: absolute; left: 0; right: 0; top: 64px; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #eef2f7; padding: 6px 20px 16px; box-shadow: 0 18px 36px rgba(15,23,42,.08); }
  .lp-nav.open .lp-links { display: flex; }
  .lp-links > a { padding: 13px 0; border-bottom: 1px solid #f1f5f9; font-size: 16px; color: #0f172a; }
  .lp-menu-actions { display: flex; gap: 8px; margin-top: 14px; }
  .lp-menu-actions .btn { flex: 1; justify-content: center; }
  .lp-hero h1 { font-size: 34px; }
  .lp-hero .lead { font-size: 16px; }
  .deskwin-body { grid-template-columns: 1fr; }
  .dw-list, .dw-side { display: none; }
  .lp-steps, .st-grid { grid-template-columns: 1fr 1fr; }
  .lp-sec { padding: 48px 0; }
  .lp-sec-head h2 { font-size: 28px; }
  .lp-sec-head, .lp-end, .lp-foot-bar { flex-direction: column; align-items: flex-start; }
  .lp-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .sec-stage { display: none; }
}
@media (max-width: 640px) {
  .sec-stage { height: 148px; }
  .sec-from, .sec-to { width: 64px; }
  .sec-from { left: 10px; }
  .sec-to { right: 10px; }
  .sec-packet { max-width: 62%; font-size: 11px; padding: 0 10px; }
  .sec-copy h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-track { transition: none; }
  .sec-packet, .sec-plain, .sec-cipher, .sec-lock, .sec-db i { animation: none; }
  .sec-packet { left: 42%; opacity: 1; }
  .sec-plain { opacity: 0; }
  .sec-cipher { opacity: 1; }
  .sec-lock { background: #d1fae5; }
  .sec-db i { background: #4f46e5; }
}
.bridge-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.bridge-box h2 { margin: 0 0 4px; font-size: 18px; }
.bridge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bridge-card { background: #f3f6fb; border-radius: 14px; padding: 10px 12px; min-width: 180px; }
.bridge-card b { display: block; margin-bottom: 4px; }
.bridge-card p { margin: 6px 0 0; font-size: 12px; }
.co-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.co-stats .stat { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.admin-page { display: flex; flex-direction: column; gap: 16px; }
.admin-mail { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.admin-mail-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.admin-mail-top h2 { margin: 0 0 4px; font-size: 18px; }
.admin-mail-top p { margin: 0; font-size: 13px; max-width: 62ch; }
.admin-switch { display: flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.admin-switch input { width: 18px; height: 18px; accent-color: var(--sky); }
.admin-mail-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.admin-mail-save { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 120px; }
.admin-mail-save .btn { width: 100%; }
.admin-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-tools .input { flex: 1; min-width: 220px; max-width: 360px; }
.co-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.co-tools .input { flex: 1; min-width: 220px; max-width: 420px; }
.co-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.co-filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer; color: var(--ink); }
.co-filters button.on { background: #1c2433; color: #fff; border-color: #1c2433; }
.co-count { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: auto; }
.co-staff { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.co-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.co-actions { display: flex; gap: 8px; flex: none; align-items: center; }
.co-id { min-width: 0; }
.co-top h2 { margin: 0 0 4px; font-size: 18px; }
.co-top p { margin: 0 0 8px; font-size: 13px; }
.co-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.co-metric { background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.co-metric b { display: block; font-size: 18px; letter-spacing: -0.03em; }
.co-metric span { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) {
  .admin-mail-grid { grid-template-columns: 1fr 1fr; }
  .co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) { .co-metrics { grid-template-columns: 1fr 1fr; } .co-top { flex-direction: column; } .admin-mail-top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) {
  .co-tools .input { min-width: 0; max-width: none; flex-basis: 100%; }
  .lp-steps, .st-grid, .seo-links { grid-template-columns: 1fr; }
  .lp-stat { padding: 14px 6px 12px; }
  .lp-stat b { font-size: 22px; }
  .lp-stat sup { font-size: 12px; margin-top: 2px; }
  .lp-stat span { font-size: 12px; }
  .lp-stat small { font-size: 11px; }
  .lp-hero { padding-top: 28px; }
  .lp-hero h1 { font-size: 28px; }
  .lp-shot { padding-bottom: 28px; }
  .lp-cta { flex-direction: column; align-items: stretch; }
  .lp-cta .btn, .lp-cta .btn-ghost { justify-content: center; }
  .lp-end { padding: 24px; margin-bottom: 36px; }
  .lp-end h2 { font-size: 26px; }
}
.table-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inbox-grid { height: calc(100dvh - 52px); min-height: 0; overscroll-behavior: none; }
.vid-ph {
  width: 56px; height: 56px; border-radius: 12px; background: #1c2433; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.inbox-messages {
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: scroll;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  overflow-anchor: none;
}
.msg-stack {
  box-sizing: border-box; min-height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 16px; width: 100%;
  overflow-anchor: none;
}
.pane-chat { position: relative; }
.msg-text { white-space: pre-wrap; font-size: 14px; line-height: 1.5; word-break: break-word; }
.msg-link { color: var(--sky-deep); font-weight: 700; }
.msg-agent .msg-link { color: #fff; }
.pane-chat.drop-hot .drop-mask { display: flex; }
.drop-mask {
  display: none; position: absolute; inset: 12px; z-index: 7; border-radius: 16px;
  border: 2px dashed var(--sky); background: rgba(47, 124, 246, .14);
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-weight: 800; color: var(--sky-deep); pointer-events: none;
}
.photo-hit { border: 0; padding: 0; background: transparent; cursor: pointer; display: block; }
.photo-hit img { max-height: 240px; border-radius: 12px; margin: 6px 0; display: block; }
.msg-flash { box-shadow: 0 0 0 3px var(--sky); }
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(16, 22, 32, .92);
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; padding: 12px 14px; }
.lb-count { margin-right: auto; color: #fff; font-weight: 800; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 28px; line-height: 1; font-weight: 700;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 248px; max-width: 100%; }
.album-cell { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; background: #111; border-radius: 6px; cursor: pointer; }
.album-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-more { position: absolute; inset: 0; background: rgba(0,0,0,.48); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.reacts span, .reacts .react-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; font-size: 13px; line-height: 1.4; }
.reacts .react-chip { cursor: pointer; }
.reacts span.mine, .reacts .react-chip.mine { border-color: #86efac; background: #f0fdf4; }
.reacts b { font-size: 11px; margin-left: 3px; }
.react-menu {
  position: fixed; z-index: 80; display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px;
  box-shadow: 0 10px 30px rgba(16, 22, 32, .18);
}
.react-menu.has-pack { max-width: 340px; }
.react-faces { display: flex; gap: 4px; flex-wrap: wrap; }
.react-menu button { border: 0; background: transparent; font-size: 22px; line-height: 1; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; }
.react-menu .react-pack { width: 100%; height: auto; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 700; }
.react-menu .react-pack:hover { background: #1d4ed8; color: #fff; }
.react-menu .react-reply { display: flex; align-items: center; gap: 8px; width: 100%; height: auto; padding: 9px 12px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; text-align: left; }
.react-menu .react-reply::before { content: "↩"; font-size: 16px; opacity: .7; }
.react-menu button.on, .react-menu button:hover { background: #eef6ff; }
.msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-who { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-dir { font-size: 11px; font-weight: 600; opacity: .75; }
.msg-agent .msg-who { background: rgba(255, 255, 255, .22); color: #fff; }
.msg-cust .msg-who { background: #e7f0fb; color: #1e4f8f; }
.msg-agent .msg-who.is-auto { background: #fde68a; color: #713f12; }
.msg-who.is-auto { position: relative; overflow: visible; cursor: help; }
.msg-who.is-auto::after {
  content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: 290px; max-width: 70vw; padding: 10px 12px; border-radius: 12px;
  background: #111827; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.5;
  white-space: normal; text-align: left; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none;
}
.msg-who.is-auto:hover::after, .msg-who.is-auto:focus::after { opacity: 1; visibility: visible; }
html[data-theme="dark"] .app-shell .msg-who.is-auto::after { background: #e8eef6; color: #121820; }
html[data-theme="dark"] .app-shell .msg-cust .msg-who { background: #1c314f; color: #bcd6ff; }
html[data-theme="dark"] .app-shell .msg-agent .msg-who.is-auto { background: #f6d48a; color: #3d2a06; }
.msg-quote { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; padding: 6px 10px; border-left: 3px solid #128c4a; border-radius: 8px; background: rgba(15, 23, 42, .06); font-size: 12px; cursor: default; }
.msg-quote[data-jump] { cursor: pointer; }
.msg-quote b { font-size: 12px; color: #128c4a; }
.msg-agent .msg-quote { background: rgba(255, 255, 255, .2); border-left-color: #fff; color: #fff; }
.msg-agent .msg-quote b { color: #fff; }
.msg-agent .msg-quote span { opacity: .92; }
.msg-quote span, .reply-bar-text span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .85; word-break: break-word; }
.reply-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border-left: 3px solid #25d366; border-radius: 12px; background: var(--bg); }
.reply-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.reply-bar-text b { color: #128c4a; font-size: 12px; }
.msg-flash { outline: 3px solid #25d366; outline-offset: 2px; transition: outline-color .3s; }
.react-menu .react-plus { font-size: 20px; font-weight: 800; color: var(--ink); }
.react-menu .react-clear { width: auto; padding: 0 10px; font-size: 12px; font-weight: 800; color: #9a3412; }
.queue-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; border-radius: 16px; padding: 8px 12px; background: var(--bg); }
.queue-thumbs { display: flex; gap: 8px; align-items: center; overflow-x: auto; max-width: 320px; padding: 6px 6px 0 0; }
.queue-thumbs img, .q-file, .q-more { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.q-file, .q-more { display: flex; align-items: center; justify-content: center; background: #e8eef6; font-size: 11px; font-weight: 800; }
.q-thumb { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.q-thumb img, .q-thumb .q-file { display: block; }
.q-x { display: none; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: #111; color: #fff; font-size: 14px; line-height: 16px; padding: 0; cursor: pointer; }
.q-thumb:hover .q-x, .q-thumb:focus-within .q-x { display: block; }
@media (hover: none) { .q-x { display: block; } }
.lb-btn {
  background: #fff; color: var(--ink); border: 0; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.lb-down { padding: 6px 10px; font-size: 12px; }
.lb-img { max-width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 76px); object-fit: contain; margin: auto; }
.media-screen {
  position: absolute; inset: 0; z-index: 8; background: #f7fbff;
  display: flex; flex-direction: column;
}
.media-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.media-head b { flex: 1; }
.media-tabs { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.media-body { flex: 1; min-height: 0; overflow: auto; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 3px; padding: 8px; }
.media-day { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: #5c6b7e; padding: 10px 2px 2px; }
.media-cell { min-width: 0; }
.media-tile {
  position: relative; width: 100%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px;
  overflow: hidden; background: #e4ebf3; cursor: pointer; display: block;
}
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-kind {
  position: absolute; left: 6px; bottom: 6px; background: rgba(16,22,32,.72); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 7px;
}
.media-tile.picked img, .media-tile.picked video { opacity: .7; transform: scale(.9); border-radius: 6px; transition: transform .12s; }
.media-tile.picked { background: #cfe3ff; }
.media-check {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(16,22,32,.35); color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.media-tile.picked .media-check { background: #25d366; border-color: #25d366; }
.media-pickbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #eef6ff; border-bottom: 1px solid var(--line); }
.media-pickbar b { flex: 1; font-size: 14px; }
.tile-menu { min-width: 170px; padding: 6px; gap: 2px; }
.tile-menu .tile-act { width: 100%; height: auto; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: left; color: var(--ink); }
.media-jump {
  margin-top: 4px; width: 100%; border: 0; background: transparent; color: var(--sky-deep);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 0 6px;
}
.media-docs { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.media-doc {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px;
}
.media-doc .media-jump { width: auto; margin: 0; padding: 4px 0; white-space: nowrap; }
#file-bin { position: absolute; width: 0; height: 0; overflow: hidden; }
.media-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0; z-index: -1;
}
.inbox-grid { height: calc(100dvh - 52px); }
@media (min-width: 768px) { .inbox-grid { height: calc(100dvh - 4rem); } }
.composer-safe {
  flex: none; position: relative; z-index: 6;
  border-top: 1px solid var(--line); background: #fff; padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom), var(--kb-offset, 0px));
}
.app-shell {
  height: 100dvh; max-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg);
}
.app-shell > .page {
  flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0;
  overflow: auto; display: flex; flex-direction: column;
}
.app-shell.inbox-h > .page { overflow: hidden; }
.app-shell.inbox-h .inbox-grid { height: auto; flex: 1 1 auto; min-height: 0; }
.app-shell .header-inner { max-width: none; width: 100%; margin: 0; }
.app-shell .page { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }
.app-shell > .page > .page.pad {
  flex: 1 1 auto; min-height: 100%; width: 100%; max-width: none; margin: 0;
  display: flex; flex-direction: column; box-sizing: border-box;
}
.header {
  display: none; position: sticky; top: 0; z-index: 30; height: 64px;
  border-bottom: 1px solid rgba(228,235,243,.8); background: rgba(255,255,255,.9);
}
@media (min-width: 768px) { .header { display: block; } }
.header-inner {
  max-width: 1500px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
a.brand { text-decoration: none; color: inherit; cursor: pointer; }
.brand-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.brand-sub { font-size: 12px; }
.userbox { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mbar-side { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 999px; padding: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.theme-btn:hover { background: var(--sky-soft); color: var(--sky-deep); }
.theme-btn .theme-moon, .theme-btn .theme-sun { display: none; }
html:not([data-theme="dark"]) .theme-btn .theme-moon { display: block; }
html[data-theme="dark"] .theme-btn .theme-sun { display: block; }
.userbox-name { font-weight: 700; font-size: 14px; line-height: 1.2; text-align: right; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox-role { font-size: 12px; text-align: right; }
.logo {
  width: 40px; height: 40px; display: block; flex-shrink: 0; border-radius: 12px;
}
.nav-pills { display: flex; gap: 2px; background: #f3f7fb; border-radius: 999px; padding: 4px; min-width: 0; flex: 1; justify-content: center; overflow-x: auto; }
.nav-pills a {
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.nav-pills a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nav-short { display: none; }
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.bnav { display: none; }
.mbar {
  display: flex; align-items: center; justify-content: space-between; height: 52px;
  padding: 0 6px 0 12px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.mbar .logo { width: 34px; height: 34px; border-radius: 10px; }
.mbar .brand-sub { display: none; }
.menu-btn { position: relative; }
.menu-btn.has-new::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  border-radius: 99px; background: #e11d48; box-shadow: 0 0 0 2px #fff;
}
.mdrawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.mdrawer.open { visibility: visible; pointer-events: auto; }
.mdrawer-bg { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(28,36,51,.42); cursor: pointer; }
.mdrawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 86vw);
  background: #fff; padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  transform: translateX(104%); transition: transform .2s ease;
  display: flex; flex-direction: column; gap: 4px; box-shadow: -8px 0 30px rgba(28,36,51,.08);
}
.mdrawer.open .mdrawer-panel { transform: translateX(0); }
.mdrawer-title { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 12px 8px; }
.mdrawer a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
}
.mdrawer a.active { background: var(--sky-soft); color: var(--sky-deep); }
.mdrawer-user { padding: 2px 12px 10px; }
.mdrawer-user b { display: block; font-size: 16px; }
.mdrawer-user span { color: var(--muted); font-size: 12px; font-weight: 700; }
.mdrawer-panel { overflow: auto; }
.bnav {
  display: none; flex: none; gap: 2px; overflow-x: auto; background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line); padding: 4px 6px max(4px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.bnav a {
  flex: 1 0 auto; min-width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 8px 4px; border-radius: 12px; text-decoration: none;
  color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.15;
}
.bnav a.active { background: var(--sky-soft); color: var(--sky-deep); }
.bnav .bell { margin: 0; }
@media (max-width: 767px) { .bnav { display: none; } }
@media (min-width: 768px) { .mbar, .mdrawer, .bnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mdrawer-panel { transition: none; } }
.badge { margin-left: 4px; background: var(--sky); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 10px; font-weight: 800; line-height: 16px; min-width: 16px; text-align: center; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 2px; }
.bell.has-new { margin-right: 8px; color: var(--sky-deep); }
.bell-count {
  display: inline-block; position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 800;
  line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff;
  animation: bell-glow 1.6s ease-in-out infinite;
}
@keyframes bell-glow {
  0%, 100% { box-shadow: 0 0 0 2px #fff; }
  50% { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(225, 29, 72, .28); }
}
@media (prefers-reduced-motion: reduce) { .bell-count { animation: none; } }
.page { max-width: 1500px; margin: 0 auto; }
.page.pad { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .page.pad { padding: 24px 32px; } }
.btn { border: 0; border-radius: 12px; background: var(--sky); color: #fff; font-weight: 700; padding: 10px 14px; cursor: pointer; }
.btn:hover { background: var(--sky-deep); }
.btn:disabled { opacity: .5; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #111827; }
.btn-ghost { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.btn-danger { background: #b42318; }
.btn-danger:hover { background: #8f1d14; }
.btn-ghost:hover { background: #f7fbff; color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-text {
  border: 0; background: transparent; color: var(--muted); font-weight: 700;
  font-size: 13px; cursor: pointer; padding: 8px 10px; border-radius: 10px;
}
.btn-text:hover { background: var(--bg); color: var(--ink); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: #b9d4fb; box-shadow: 0 0 0 3px var(--sky-soft); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(28,36,51,.04); }
.avatar {
  border-radius: 999px; background: var(--sky-soft); color: var(--sky);
  display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex-shrink: 0; position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: #10b981; border: 2px solid #fff; border-radius: 999px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; max-width: 100%;
}
.chip-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }
.chip-line { background: #fff; border-color: var(--line); }
.chip-btn { border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; border-radius: 999px; }
.chip-btn.on .chip { box-shadow: inset 0 0 0 1.5px currentColor; }
.muted { color: var(--muted); }
.err { color: #dc2626; }
.ok { color: #047857; }
.login-mark { display: block; width: 72px; height: 72px; margin: 0 auto 14px; }
.login-wrap {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: radial-gradient(circle at top, #dcecff, transparent 42%), linear-gradient(#f7fbff, #eef4fb);
}
.login-box {
  width: 100%; max-width: 420px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px; padding: 24px; box-shadow: 0 20px 60px rgba(28,36,51,.08);
}
.remember {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
}
.remember input { width: 18px; height: 18px; accent-color: var(--sky); }
.field > span.pw-row { font-size: inherit; font-weight: 400; color: inherit; margin-bottom: 0; }
.pw-row { position: relative; display: block; }
.pw-row .input { padding-right: 78px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #4338ca; font-weight: 800; cursor: pointer; padding: 6px; }
.legal-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.legal-check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--sky); }
.legal-check a { font-weight: 800; }
.legal-wrap { min-height: 100dvh; background: #f8fafc; color: #0f172a; padding: 28px 16px 64px; font-family: Manrope, "Segoe UI", sans-serif; }
.legal-doc { width: min(760px, 100%); margin: 0 auto; background: #fff; border: 1px solid #e7ecf4; border-radius: 20px; padding: 28px 28px 36px; }
.legal-nav { display: flex; gap: 16px; margin-bottom: 18px; font-weight: 800; }
.legal-nav a { color: #4338ca; text-decoration: none; }
.legal-doc h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.03em; }
.legal-doc .muted { margin: 0 0 8px; }
.legal-doc h2 { margin: 22px 0 8px; font-size: 18px; }
.legal-doc p { margin: 0 0 10px; color: #334155; line-height: 1.65; }
.grid-inbox { display: grid; grid-template-columns: 1fr; min-height: 0; overflow: hidden; }
@media (min-width: 768px) { .grid-inbox { grid-template-columns: 320px 1fr; } }
@media (min-width: 1024px) { .grid-inbox { grid-template-columns: 320px minmax(0,1fr) 320px; } }
.pane { display: none; height: 100%; min-height: 0; flex-direction: column; overflow: hidden; }
.pane.show { display: flex; }
.pane-list { background: #fff; border-right: 1px solid var(--line); }
.pane-chat { background: #f7fbff; min-width: 0; }
.pane-profile { background: #fff; border-left: 1px solid var(--line); }
@media (min-width: 768px) { .pane-list, .pane-chat { display: flex !important; } }
@media (min-width: 1024px) { .pane-profile { display: flex !important; } }
.list-item {
  display: flex; width: 100%; gap: 12px; text-align: left; border: 0; background: transparent;
  padding: 12px; border-radius: 14px; cursor: pointer; margin-bottom: 2px; align-items: flex-start;
}
.list-item:hover { background: #f6f9fc; }
.list-item.active, .list-item.active:hover { background: var(--sky-soft); }
.list-item .list-title { font-weight: 650; }
.list-item.unread .list-title { font-weight: 800; color: var(--ink); }
.remind-line { color: #9a6700; font-size: 12px; font-weight: 800; margin: 4px 0 0; }
.peer { color: #9a6700; font-size: 12px; font-weight: 700; margin: 2px 0 0; }
.peer-bar { background: #fef3c7; color: #9a6700; font-size: 13px; font-weight: 800; padding: 8px 14px; border-bottom: 1px solid #f3e2b0; }
.send-warn {
  background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; border-radius: 12px;
  padding: 10px 12px; margin: 0 0 8px; font-size: 14px; font-weight: 800; line-height: 1.4;
}
.wait-chip {
  font-size: 11px; font-weight: 800; color: #9a6700; background: #fef3c7;
  border-radius: 999px; padding: 1px 6px; white-space: nowrap; flex-shrink: 0;
}
.wait-chip.late { color: #b91c1c; background: #fee2e2; }
.unread-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sky); color: #fff;
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msg-agent { background: var(--sky); color: #fff; border-radius: 22px; padding: 12px 16px; max-width: 85%; }
.msg-revoked { font-style: italic; font-size: 12px; font-weight: 700; opacity: .9; margin-bottom: 6px; }
.msg-kept { opacity: .72; }
.msg-revoke {
  display: block; margin-top: 6px; border: 0; background: transparent; color: inherit;
  opacity: .8; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline;
}
.msg-meta { font-size: 11px; margin-top: 4px; opacity: .75; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-tick { font-weight: 800; letter-spacing: -1px; }
.msg-tick.msg-wait { font-size: 11px; letter-spacing: 0; opacity: .85; }
.msg-pending { opacity: .72; }
.msg-pending .msg-meta { font-style: italic; }
.msg-fail {
  width: 18px; height: 18px; border: 0; border-radius: 99px; background: #e11d48; color: #fff;
  font-weight: 800; cursor: pointer; line-height: 18px; padding: 0;
}
.msg-fail-box { display: inline-flex; gap: 6px; }
.msg-fail-box button {
  border: 0; border-radius: 999px; background: rgba(0,0,0,.12); color: inherit;
  font-size: 11px; font-weight: 700; padding: 3px 8px; cursor: pointer;
}
.msg-cust { background: #fff; color: var(--ink); border-radius: 22px; padding: 12px 16px; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.msg-row.has-video { max-width: min(96%, 440px); }
.chat-video { display: block; width: 100%; max-height: 560px; border-radius: 12px; margin: 6px 0; background: #111; }
#media-park { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.file-card { display: flex; gap: 10px; align-items: flex-start; background: rgba(0,0,0,.06); border-radius: 14px; padding: 10px; margin: 6px 0; min-width: 200px; }
.msg-agent .file-card { background: rgba(255,255,255,.16); }
.file-ext { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--sky); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.msg-agent .file-ext { background: #fff; color: var(--sky-deep, #1d4ed8); }
.file-open { display: block; color: inherit; font-weight: 700; text-decoration: none; word-break: break-word; }
.file-open:hover { text-decoration: underline; }
.file-actions { display: flex; gap: 8px; margin-top: 6px; }
.file-btn { font-size: 12px; font-weight: 700; text-decoration: none; color: inherit; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.08); }
.msg-agent .file-btn { background: rgba(255,255,255,.2); }
.pdf-view { width: 100%; height: 280px; border: 0; border-radius: 12px; margin-top: 6px; background: #fff; }
.msg-int { background: var(--sand); color: var(--ink); border-radius: 16px; padding: 12px 16px; max-width: 90%; margin: 0 auto; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 16px; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-bg { position: fixed; inset: 0; background: rgba(28,36,51,.4); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .modal-bg { align-items: center; } }
.modal { background: #fff; width: 100%; max-width: 440px; border-radius: 24px 24px 0 0; padding: 20px; max-height: 90dvh; overflow: auto; }
@media (min-width: 768px) { .modal { border-radius: 24px; } }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 220px; overflow: auto; }
.emoji-grid button {
  border: 0; background: transparent; font-size: 22px; line-height: 1.2; padding: 6px; cursor: pointer;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}
.progress { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sky); }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.flex1 { flex: 1; min-width: 0; }
.spin { animation: spin 1s linear infinite; }
@media (min-width: 1024px) { .lg-hide { display: none !important; } }
@media (max-width: 1280px) {
  .brand-text, .userbox-name, .userbox-role { display: none; }
  .nav-label { display: none; }
  .nav-short { display: inline; }
  .nav-pills a { padding: 7px 9px; }
  .header-inner { gap: 8px; padding: 0 12px; }
}
.chat-top {
  border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; min-width: 0;
}
.chat-acts { display: flex; gap: 6px; flex: none; }
.pop, .pop-right { max-width: calc(100vw - 24px); }
@media (max-width: 767px) {
  .chat-top { flex-wrap: wrap; row-gap: 8px; }
  .chat-acts { width: 100%; }
  .chat-acts .btn { flex: 1; }
  .mbar .brand-sub { display: block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .imp-banner { flex-wrap: wrap; text-align: center; }
  .page.pad { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 22px; }
  .stat { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .member-side { margin-left: 0; width: 100%; align-items: flex-start; }
  .legal-doc { padding: 20px 16px 28px; }
  .legal-doc h1 { font-size: 26px; }
  .login-box { padding: 18px; border-radius: 20px; }
}

.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.page-head p { margin: 6px 0 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; min-width: 128px;
}
.stat b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; }
.report-tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.report-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.report { width: 100%; border-collapse: collapse; min-width: 640px; }
.report th, .report td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.report th { font-size: 12px; color: var(--muted); font-weight: 800; }
.report tr:last-child td { border-bottom: 0; }
.report-person { display: flex; align-items: center; gap: 10px; }
.report-name { font-weight: 700; }
.report-wrap + .hint { margin-top: 12px; }
.report-charts { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) {
  .report-charts { grid-template-columns: 1fr 1fr; }
}
.report-chart {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px;
}
.report-chart h3 { margin: 0 0 12px; font-size: 13px; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.report-bars { display: flex; flex-direction: column; gap: 8px; }
.report-bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.report-bar-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-track { display: block; height: 10px; background: #e8eef6; border-radius: 99px; overflow: hidden; }
.report-bar-track i { display: block; height: 100%; background: #2563eb; border-radius: 99px; }
.report-bar-val { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.split-team { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) {
  .split-team { grid-template-columns: minmax(0, 1fr) 320px; }
  .split-team .panel { position: sticky; top: 84px; }
}

.member {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.member-name { font-weight: 700; }
.member-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.member-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.team-chat {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; margin-bottom: 0; height: auto; min-height: 0; flex: 1 1 auto;
}
.team-chat-page { flex: 1 1 auto; height: auto; min-height: 0; margin-bottom: 0; }
.member-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.member.is-off { opacity: .72; }
.wa-warn { background: #fff1f2; border: 1px solid #fb7185; color: #9f1239; border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; line-height: 1.55; }
.wa-warn b { display: block; margin-bottom: 8px; color: #881337; font-size: 22px; line-height: 1.25; }
.wa-warn p { margin: 0 0 8px; }
.wa-warn ol { margin: 0; padding-left: 18px; }
.wa-warn li { margin: 0 0 6px; }
.wa-warn li:last-child { margin-bottom: 0; }
.wa-stay { background: #fff1f2; border: 1px solid #fb7185; color: #9f1239; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-weight: 700; line-height: 1.45; }
.wa-only { max-width: none; width: 100%; }
.team-rooms {
  border-right: 1px solid var(--line); background: #f8fbff;
  overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px;
}
.team-room {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 12px; padding: 8px;
  cursor: pointer; color: var(--ink);
}
.team-room.on { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.team-room-name { display: block; font-weight: 700; font-size: 14px; }
.team-room .muted { display: block; font-size: 11px; }
.team-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.team-thread-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.team-thread-head b { font-size: 15px; }
.team-thread-head .muted { font-size: 12px; }
.team-msgs {
  flex: 1; min-height: 0; overflow: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; background: #f7fafc;
}
.team-msg {
  align-self: flex-start; max-width: min(78%, 440px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 8px 10px;
}
.team-msg.mine {
  align-self: flex-end; background: var(--sky); color: #fff;
  border-color: transparent; border-radius: 14px 14px 4px 14px;
}
.team-msg b { display: block; font-size: 12px; margin-bottom: 2px; color: var(--sky-deep); }
.team-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.4; }
.team-msg time { display: block; margin-top: 4px; font-size: 11px; opacity: .72; }
.team-empty { margin: auto; color: var(--muted); font-size: 13px; }
.team-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.team-compose .textarea { min-height: 42px; max-height: 110px; resize: none; }
.team-compose .btn { flex: none; }
.team-thread .form-msg { margin: 0 10px 8px; }
@media (max-width: 720px) {
  .team-chat { grid-template-columns: 1fr; height: auto; min-height: 420px; }
  .team-rooms {
    flex-direction: row; overflow-x: auto; border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .team-room { width: auto; flex: none; }
  .team-msgs { min-height: 0; max-height: none; flex: 1; }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800;
  background: #f1f5f9; color: #64748b; white-space: nowrap;
}
.pill-on { background: var(--mint); color: #047857; }
.pill-role { background: var(--sky-soft); color: var(--sky-deep); }
.pill-admin { background: #ede9fe; color: #5b21b6; }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.wa-split { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) {
  .wa-split { grid-template-columns: minmax(0, 640px) 300px; }
  #qrPanel { position: sticky; top: 84px; }
}
.qr-img { width: 220px; height: 220px; display: block; background: #fff; border-radius: 12px; margin: 8px 0; }
.wa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bridge-list { margin: 8px 0 12px; }
.bridge-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bridge-row b { font-weight: 650; color: var(--ink); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.panel h3 { margin: 0; font-size: 16px; }
.hint { margin: 4px 0 14px; font-size: 13px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.form-narrow { max-width: none; width: 100%; }
.form-msg { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.form-msg:empty { display: none; }
.stack-forms { display: flex; flex-direction: column; gap: 12px; max-width: none; width: 100%; }

.section-title {
  margin: 18px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-soft); color: var(--sky-deep);
  border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 12px; font-weight: 700;
}
.empty {
  background: #fff; border: 1px dashed #d5e0ec; border-radius: 16px;
  padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px;
}
.empty-inline { margin: 0; font-size: 13px; }

.labels-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .labels-split { grid-template-columns: 1fr; } }
.labels-wrap { max-width: none; }
.qr-list { display: flex; flex-direction: column; }
.qr-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qr-item:last-child { border-bottom: 0; }
.qr-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 4px 0; color: inherit; font: inherit;
}
.qr-name { color: var(--sky-deep); font-size: 14px; font-weight: 800; flex-shrink: 0; }
.qr-preview { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-item.open .qr-preview { display: none; }
.qr-chev { color: var(--muted); font-size: 11px; width: 12px; flex-shrink: 0; }
.qr-body { display: none; padding: 4px 0 6px 20px; }
.qr-item.open .qr-body { display: block; }
.qr-body p { margin: 4px 0 0; font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.qr-actions { display: flex; gap: 8px; margin-top: 10px; }
.qr-body .qr-match { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--mint, #e8f8ef); font-size: 12px; }
.qr-match-field { margin-top: 10px; }
.qr-match-field > span { display: flex; align-items: center; gap: 6px; }
.qr-match-field em { font-style: normal; font-weight: 500; font-size: 12px; }
.help-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
  border-radius: 50%; background: var(--line); color: var(--ink); font-size: 11px; font-weight: 800; font-style: normal; cursor: help;
}
.help-tip::after {
  content: attr(data-tip); position: absolute; left: -120px; bottom: calc(100% + 8px);
  width: 260px; padding: 8px 10px; border-radius: 10px; background: #111827; color: #fff; font-size: 12px; font-weight: 500;
  line-height: 1.4; white-space: normal; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 30; pointer-events: none;
}
.help-tip:hover::after, .help-tip:focus::after { opacity: 1; visibility: visible; }
html[data-theme="dark"] .help-tip::after { background: #e8eef6; color: #121820; }
.qr-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr-photos img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.qr-edit-photo { position: relative; width: 52px; height: 52px; }
.qr-edit-photo .label-x { position: absolute; top: -6px; right: -6px; background: #fff; border: 1px solid var(--line); }
.qr-prefix { font-weight: 800; color: var(--muted); padding-right: 2px; }
.label-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.label-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 3px;
}
.label-count { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 1.2em; text-align: center; }
.label-x {
  width: 22px; height: 22px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
}
.label-x:hover { background: var(--rose); color: #9f1239; }
.label-create { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.label-create-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.label-create-row .input { flex: 1; min-width: 0; }
.label-create #colorPick { font-size: 12px; margin: 8px 0 0; }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  display: inline-flex; align-items: center; gap: 6px; width: auto;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink);
}
.swatch i { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.swatch.on { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.swatch.taken, .swatch:disabled { opacity: .38; cursor: not-allowed; }

.list-head { padding: 16px 16px 8px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.list-head h1 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.list-actions { display: flex; align-items: center; gap: 8px; }
.list-actions .btn:last-child { margin-left: auto; }
.pick-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pick-count { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); }
.pick-box {
  width: 18px; height: 18px; margin-top: 11px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid #c5d0de; background: #fff;
}
.list-item.picked .pick-box { background: var(--sky); border-color: var(--sky); box-shadow: inset 0 0 0 3px #fff; }
.list-item.picked { background: var(--sky-soft); }
.ctx {
  position: fixed; z-index: 70; min-width: 188px; max-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(28, 36, 51, .14); padding: 6px;
}
.ctx-item, .ctx-label {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px;
  text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.ctx-label { font-weight: 600; padding: 6px 8px; }
.ctx-item:hover, .ctx-label:hover, .ctx-label.on { background: #f3f7fb; }
.ctx-chev { color: var(--muted); font-size: 18px; line-height: 1; }
.ctx-labels { position: relative; }
.ctx-sub {
  display: none; position: absolute; left: calc(100% - 4px); top: 0; z-index: 2;
  min-width: 210px; max-width: 260px; max-height: min(360px, 70vh); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(28, 36, 51, .14); padding: 6px;
}
.ctx-sub.show { display: block; }
.ctx-sub.flip { left: auto; right: calc(100% - 4px); }
.ctx-sub.drop {
  position: static; left: auto; right: auto; max-width: none; margin-top: 4px;
  box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: 240px;
}
.ctx-tick { margin-left: auto; color: var(--sky-deep); font-weight: 800; }
.ctx-empty { margin: 8px 10px; font-size: 13px; }
.ctx-label .chip { min-width: 0; }
.list-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.list-tools .input, .search-note { grid-column: 1 / -1; }
.search-note { margin: 0; font-size: 12px; color: var(--muted); }
.person-chip .label-x { width: 18px; height: 18px; font-size: 14px; }
.list-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 8px; -webkit-overflow-scrolling: touch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.meta-row .chip { padding: 2px 7px; font-size: 10px; }
.meta-row .chip-dot { width: 6px; height: 6px; }
.mini-tag, .mini-more {
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 7px; line-height: 1.4;
}
.mini-tag { color: var(--sky-deep); background: var(--sky-soft); }
.mini-more { color: var(--muted); background: #f1f5f9; }

.side-scroll { overflow: auto; padding: 8px 16px 24px; flex: 1; }
.side-hero { text-align: center; padding: 16px 8px 4px; }
.side-hero .avatar { margin: 0 auto; }
.side-hero p { margin: 8px 0 0; }
.note-item {
  background: #fffaf2; border: 1px solid #f3e6c8; border-radius: 14px;
  padding: 10px 12px; margin-bottom: 8px; font-size: 14px;
}
.int-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #92400e; margin-bottom: 4px;
}

.composer-tools { display: flex; gap: 8px; overflow: auto; margin-bottom: 8px; padding-bottom: 2px; }
.tool {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.tool.on { background: var(--sand); border-color: #ead7a8; color: #92400e; }
.tool.active { background: var(--sky-soft); border-color: #c9defe; color: var(--sky-deep); }
.pop {
  position: absolute; bottom: 100%; left: 12px; margin-bottom: 8px; width: 280px; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28,36,51,.12); padding: 8px; max-height: 280px; overflow: auto;
}
.pop-right { left: auto; right: 12px; width: 280px; z-index: 30; }
.pop-title {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 6px 8px 2px;
}
.pop-note { font-size: 12px; color: var(--muted); padding: 0 8px 8px; }
.pop-item {
  display: flex; width: 100%; gap: 10px; align-items: center; text-align: left;
  border: 0; background: transparent; padding: 8px; border-radius: 12px; cursor: pointer; font-weight: 600;
}
.pop-item:hover { background: var(--bg); }
.attach-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.attach-cell {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-align: center; padding: 12px 8px; font-size: 12px; font-weight: 700; cursor: pointer;
}

.notice {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.notice.is-new { box-shadow: inset 3px 0 0 var(--sky); }
.notice.is-read { opacity: .7; }
.notice-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.notice-top b { font-size: 14px; }
.notice-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.notice p { margin: 6px 0 0; font-size: 14px; }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }

.profile-page { max-width: none; width: 100%; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.profile-top { display: grid; grid-template-columns: 1fr; gap: 14px; }
.profile-top.split { grid-template-columns: 1fr 1fr; }
.profile-top > .panel { margin: 0; min-width: 0; }
.profile-chat h3 { margin: 0 0 10px; font-size: 16px; }
.profile-chat .btn { margin-top: 8px; }
.profile-id { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; margin: 0; height: 100%; box-sizing: border-box; }
.profile-hero { display: flex; flex: none; }
.profile-who { min-width: 0; }
.profile-name { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.profile-role { margin: 0; }
.profile-mail { margin: 6px 0 0; font-size: 14px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.profile-grid > .panel { display: flex; flex-direction: column; min-width: 0; }
.profile-grid > .panel .btn { margin-top: auto; align-self: flex-start; }
.profile-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.profile-extra .btn { margin-top: 8px; }
.profile-grid h3, .profile-extra h3 { margin: 0; font-size: 16px; }
.archive-days { max-width: 140px; }
@media (max-width: 1000px) {
  .profile-grid, .profile-top.split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .member { align-items: flex-start; flex-wrap: wrap; }
  .member-side { flex-direction: row; flex-wrap: wrap; margin-left: 0; width: 100%; align-items: flex-start; }
}
.login-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 16px; }
.login-action {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: #f7fafc; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
}
.login-action b { font-size: 13px; }
.login-action span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.login-action:hover { border-color: #b9d2f7; background: #fff; }
@media (max-width: 520px) { .login-actions { grid-template-columns: 1fr; } }
.desk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: stretch; flex: 1 1 auto; min-height: 0; }
.desk-side, .desk-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; min-height: 0; }
.desk-side { display: flex; flex-direction: column; overflow: hidden; }
.desk-head { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.desk-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.desk-filters button { border: 0; background: #f3f6fb; color: #3d4b63; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.desk-filters button.on { background: #1d64d8; color: #fff; }
.desk-list { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.tk {
  display: block; width: 100%; text-align: left; border: 1px solid transparent; background: transparent;
  border-radius: 12px; padding: 10px; cursor: pointer; color: inherit;
}
.tk.on { background: #eef5ff; border-color: #d5e4fb; }
.tk b { display: block; font-size: 14px; }
.tk-meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.tk time { color: var(--muted); font-size: 11px; }
.desk-main { display: flex; flex-direction: column; min-width: 0; }
.desk-thread-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.desk-thread-head h2 { margin: 0 0 6px; font-size: 18px; }
.desk-posts { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7fafc; }
.tk-post { max-width: min(78%, 520px); background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.tk-post.staff { margin-left: auto; background: #e8f1ff; border-color: #d5e4fb; border-radius: 14px 14px 4px 14px; }
.tk-post b { display: block; font-size: 12px; }
.tk-post p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.45; }
.tk-post time { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.desk-compose { padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.desk-compose .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.desk-empty { margin: auto; text-align: center; padding: 28px 16px; max-width: 360px; }
.desk-empty h2 { margin: 0 0 6px; font-size: 20px; }
.kind-pick { display: flex; gap: 8px; }
.kind-pick label { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.kind-pick input { margin-right: 6px; }
.pill-bug { background: #ffe4e8; color: #be123c; }
.pill-req { background: #e8f1ff; color: #1d64d8; }
.pill-wait { background: #fff4df; color: #9a6700; }
.pill-done { background: #d9f6ea; color: #047857; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, 1fr); min-height: 0; }
  .desk-list { max-height: 220px; }
  .desk-main { min-height: 360px; }
}

html[data-theme="dark"] .app-shell {
  color-scheme: dark;
  --bg: #10161f;
  --card: #1b2431;
  --ink: #e8eef6;
  --muted: #a8b3c4;
  --line: #2d3a4d;
  --sky: #3d8bfd;
  --sky-deep: #9dc2ff;
  --sky-soft: #1c314f;
  --mint: #143528;
  --sand: #3d3218;
  --rose: #3f2229;
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] .app-shell .pane-list,
html[data-theme="dark"] .app-shell .pane-profile,
html[data-theme="dark"] .app-shell .composer-safe,
html[data-theme="dark"] .app-shell .chat-top { background: var(--card); }
html[data-theme="dark"] .app-shell .pane-chat { background: #121922; }
html[data-theme="dark"] .app-shell .header,
html[data-theme="dark"] .app-shell .mbar,
html[data-theme="dark"] .app-shell .bnav {
  background: rgba(16, 22, 31, .96);
  border-color: var(--line);
}
html[data-theme="dark"] .app-shell .nav-pills { background: #0d131c; }
html[data-theme="dark"] .app-shell .nav-pills a.active { background: #243246; color: var(--ink); box-shadow: none; }
html[data-theme="dark"] .app-shell .mdrawer-panel { background: #161d28; color: var(--ink); }
html[data-theme="dark"] .app-shell .mdrawer-bg { background: rgba(0, 0, 0, .55); }
html[data-theme="dark"] .app-shell .card,
html[data-theme="dark"] .app-shell .panel,
html[data-theme="dark"] .app-shell .modal,
html[data-theme="dark"] .app-shell .stat,
html[data-theme="dark"] .app-shell .member,
html[data-theme="dark"] .app-shell .team-chat,
html[data-theme="dark"] .app-shell .report-chart,
html[data-theme="dark"] .app-shell .report-wrap,
html[data-theme="dark"] .app-shell .chat-top,
html[data-theme="dark"] .app-shell .admin-mail,
html[data-theme="dark"] .app-shell .co-card,
html[data-theme="dark"] .app-shell .co-stats .stat,
html[data-theme="dark"] .app-shell .notice,
html[data-theme="dark"] .app-shell .empty,
html[data-theme="dark"] .app-shell .desk-side,
html[data-theme="dark"] .app-shell .desk-main,
html[data-theme="dark"] .app-shell .desk-compose,
html[data-theme="dark"] .app-shell .tk-post,
html[data-theme="dark"] .app-shell .media-head,
html[data-theme="dark"] .app-shell .media-tabs,
html[data-theme="dark"] .app-shell .media-doc,
html[data-theme="dark"] .app-shell .ctx,
html[data-theme="dark"] .app-shell .ctx-sub,
html[data-theme="dark"] .app-shell .pop,
html[data-theme="dark"] .app-shell .attach-cell,
html[data-theme="dark"] .app-shell .tool,
html[data-theme="dark"] .app-shell .swatch,
html[data-theme="dark"] .app-shell .chip-line,
html[data-theme="dark"] .app-shell .msg-cust,
html[data-theme="dark"] .app-shell .team-msg,
html[data-theme="dark"] .app-shell .input,
html[data-theme="dark"] .app-shell .select,
html[data-theme="dark"] .app-shell .textarea,
html[data-theme="dark"] .app-shell .btn-ghost {
  background: var(--card);
  color: var(--ink);
}
html[data-theme="dark"] .app-shell .btn-ghost { color: var(--muted); }
html[data-theme="dark"] .app-shell .btn { color: #fff; }
html[data-theme="dark"] .app-shell .btn:hover { background: #1f6fe0; }
html[data-theme="dark"] .app-shell .btn-ghost:hover { background: #243246; color: var(--ink); }
html[data-theme="dark"] .app-shell .btn-ink,
html[data-theme="dark"] .app-shell .btn-ink:hover { background: #e8eef6; color: #121820; }
html[data-theme="dark"] .app-shell .btn-text:hover { background: #1c2736; color: var(--ink); }
html[data-theme="dark"] .app-shell .msg-agent,
html[data-theme="dark"] .app-shell .team-msg.mine { background: #2f7cf6; color: #fff; }
html[data-theme="dark"] .app-shell .msg-agent .msg-link,
html[data-theme="dark"] .app-shell .team-msg.mine b { color: #fff; }
html[data-theme="dark"] .app-shell .msg-agent .file-ext { background: #fff; color: #1d4ed8; }
html[data-theme="dark"] .app-shell .msg-int { background: #3d3218; color: #f6e7c1; }
html[data-theme="dark"] .app-shell .int-kicker,
html[data-theme="dark"] .app-shell .remind-line,
html[data-theme="dark"] .app-shell .peer { color: #f5c56b; }
html[data-theme="dark"] .app-shell .note-item { background: #2c2618; border-color: #5c4b2a; color: #f4e6c4; }
html[data-theme="dark"] .app-shell .ok { color: #6ee7b7; }
html[data-theme="dark"] .app-shell .err { color: #fca5a5; }
html[data-theme="dark"] .app-shell .list-item:hover,
html[data-theme="dark"] .app-shell .ctx-item:hover,
html[data-theme="dark"] .app-shell .ctx-label:hover,
html[data-theme="dark"] .app-shell .ctx-label.on,
html[data-theme="dark"] .app-shell .pop-item:hover,
html[data-theme="dark"] .app-shell .team-room.on { background: #243044; }
html[data-theme="dark"] .app-shell .list-item.active,
html[data-theme="dark"] .app-shell .list-item.active:hover,
html[data-theme="dark"] .app-shell .list-item.picked,
html[data-theme="dark"] .app-shell .tk.on { background: var(--sky-soft); }
html[data-theme="dark"] .app-shell .input:focus,
html[data-theme="dark"] .app-shell .select:focus,
html[data-theme="dark"] .app-shell .textarea:focus { border-color: #3d6fb5; box-shadow: 0 0 0 3px rgba(61, 139, 253, .28); }
html[data-theme="dark"] .app-shell .input::placeholder,
html[data-theme="dark"] .app-shell .textarea::placeholder { color: #7d8ba0; }
html[data-theme="dark"] .app-shell .team-rooms,
html[data-theme="dark"] .app-shell .co-metric { background: #141b26; }
html[data-theme="dark"] .app-shell .bridge-box {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .app-shell .bridge-card { background: #141b26; color: var(--ink); }
html[data-theme="dark"] .app-shell .report-bar-track { background: #1c2736; }
html[data-theme="dark"] .app-shell .team-msgs,
html[data-theme="dark"] .app-shell .desk-posts,
html[data-theme="dark"] .app-shell .media-screen { background: #121922; }
html[data-theme="dark"] .app-shell .media-day { color: #9aabbe; }
html[data-theme="dark"] .app-shell .tk-post.staff { background: #1c314f; border-color: #2a466c; color: var(--ink); }
html[data-theme="dark"] .app-shell .desk-filters button { background: #1c2736; color: var(--muted); }
html[data-theme="dark"] .app-shell .desk-filters button.on { background: #2f7cf6; color: #fff; }
html[data-theme="dark"] .app-shell .co-filters button { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .app-shell .co-filters button.on { background: #e8eef6; color: #121820; }
html[data-theme="dark"] .app-shell .tool.on { background: #3d3218; border-color: #6b5424; color: #f6d48a; }
html[data-theme="dark"] .app-shell .tool.active { background: var(--sky-soft); border-color: #2a466c; color: var(--sky-deep); }
html[data-theme="dark"] .app-shell .reacts span,
html[data-theme="dark"] .app-shell .reacts .react-chip { background: #243044; color: var(--ink); }
html[data-theme="dark"] .app-shell .reacts span.mine,
html[data-theme="dark"] .app-shell .reacts .react-chip.mine { background: #143528; border-color: #1f6b45; color: #d1fae5; }
html[data-theme="dark"] .react-menu { background: #1b2431; border-color: #2d3a4d; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .react-menu button.on,
html[data-theme="dark"] .react-menu button:hover { background: #243044; }
html[data-theme="dark"] .react-menu .tile-act,
html[data-theme="dark"] .react-menu .react-plus,
html[data-theme="dark"] .react-menu .react-reply { color: #e8eef6; }
html[data-theme="dark"] .react-menu .react-reply { border-top-color: #2d3a4d; }
html[data-theme="dark"] .react-menu .react-clear { color: #fdba74; }
html[data-theme="dark"] .app-shell .msg-cust .msg-quote { background: rgba(255, 255, 255, .07); border-left-color: #4ade80; }
html[data-theme="dark"] .app-shell .msg-cust .msg-quote b,
html[data-theme="dark"] .app-shell .reply-bar-text b { color: #4ade80; }
html[data-theme="dark"] .app-shell .media-pickbar { background: #1c314f; }
html[data-theme="dark"] .app-shell .media-tile.picked { background: #1c314f; }
html[data-theme="dark"] .app-shell .reply-bar { background: #243044; border-left-color: #4ade80; }
html[data-theme="dark"] .app-shell .lb-nav,
html[data-theme="dark"] .app-shell .lb-btn { background: #fff; color: #121820; }
html[data-theme="dark"] .app-shell .q-file,
html[data-theme="dark"] .app-shell .q-more,
html[data-theme="dark"] .app-shell .media-tile,
html[data-theme="dark"] .app-shell .progress,
html[data-theme="dark"] .app-shell .mini-more { background: #2d3a4d; color: var(--ink); }
html[data-theme="dark"] .app-shell .pick-box { background: #1b2431; border-color: #4a5c74; }
html[data-theme="dark"] .app-shell .menu-btn.has-new::after,
html[data-theme="dark"] .app-shell .bell-count { box-shadow: 0 0 0 2px #10161f; }
html[data-theme="dark"] .app-shell .dot { border-color: #10161f; }
html[data-theme="dark"] .app-shell .qr-img { background: #fff; }
html[data-theme="dark"] body:has(.app-shell) { background: #10161f; }
html[data-theme="dark"] .app-shell .msg-cust { background: #243044; color: #e8eef6; }
html[data-theme="dark"] .app-shell .msg-agent { background: #2f7cf6; color: #fff; }
html[data-theme="dark"] .app-shell .msg-int { background: #3a3018; color: #f6e7c1; }
html[data-theme="dark"] .app-shell .peer-bar { background: #3a3018; color: #f6d48a; border-bottom-color: #6b5424; }
html[data-theme="dark"] .app-shell .imp-banner { background: #3a3018; color: #f6e7c1; }
html[data-theme="dark"] .app-shell .wa-down,
html[data-theme="dark"] .app-shell .send-warn { background: #3a2418; color: #fdba74; border-color: #9a3412; }
html[data-theme="dark"] .app-shell .wa-warn,
html[data-theme="dark"] .app-shell .wa-stay { background: #3a1d24; border-color: #9f1239; color: #fecdd3; }
html[data-theme="dark"] .app-shell .wa-warn b { color: #fda4af; }
html[data-theme="dark"] .app-shell .wait-chip { background: #3a3018; color: #f6d48a; }
html[data-theme="dark"] .app-shell .wait-chip.late { background: #3f1d24; color: #fda4af; }
html[data-theme="dark"] .app-shell .pill { background: #243044; color: #c5d0e0; }
html[data-theme="dark"] .app-shell .pill-on { background: #143528; color: #6ee7b7; }
html[data-theme="dark"] .app-shell .pill-role { background: #1c314f; color: #9dc2ff; }
html[data-theme="dark"] .app-shell .pill-admin { background: #2e2454; color: #ddd6fe; }
html[data-theme="dark"] .app-shell .pill-bug { background: #3f1d24; color: #fda4af; }
html[data-theme="dark"] .app-shell .pill-req { background: #1c314f; color: #9dc2ff; }
html[data-theme="dark"] .app-shell .pill-wait { background: #3a3018; color: #f6d48a; }
html[data-theme="dark"] .app-shell .pill-done { background: #143528; color: #6ee7b7; }
html[data-theme="dark"] .app-shell .label-pill,
html[data-theme="dark"] .app-shell .qr-edit-photo .label-x { background: #1b2431; color: var(--ink); }
html[data-theme="dark"] .app-shell .label-x:hover { background: #3f1d24; color: #fecdd3; }
