:root {
color-scheme: dark;
--bg: #0b0c0a;
--bg-raise: #141510;
--bg-sunken: #080907;
--paper: #f3efe6;
--paper-dim: #d8d2c4;
--ink: #16150f;
--text: #ece8df;
--muted: #a39c90;
--faint: #746e64;
--brass: #d6b98c;
--brass-deep: #b8925a;
--danger: #e08b86;
--line: rgba(243, 239, 230, 0.08);
--line-strong: rgba(243, 239, 230, 0.16);
--shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
--sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
--display: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
--serif: "Palatino Linotype", Palatino, "Songti SC", Georgia, serif;
}
html, body { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--sans);
font-size: 15px;
line-height: 1.5;
word-break: keep-all;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
textarea { resize: none; }
::selection { background: rgba(214, 185, 140, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
background: rgba(243, 239, 230, 0.16);
border-radius: 99px;
border: 2px solid transparent;
background-clip: padding-box;
}
.mark {
width: 9px;
height: 9px;
border: 1.5px solid var(--brass);
transform: rotate(45deg);
display: inline-block;
flex: none;
}
.boot {
min-height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
letter-spacing: 0.28em;
font-size: 13px;
color: var(--paper);
}
.auth {
min-height: 100dvh;
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}
.brand {
position: relative;
padding: 40px 56px 48px;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
background:
 radial-gradient(820px 420px at 0% 0%, rgba(214, 185, 140, 0.09), transparent 58%),
 var(--bg);
}
.brand::before {
content: "";
position: absolute;
inset: 22px;
border: 1px solid var(--line);
pointer-events: none;
}
.brand-top, .brand-bottom { position: relative; z-index: 1; }
.lockup {
display: flex;
align-items: center;
gap: 12px;
letter-spacing: 0.32em;
font-size: 12px;
color: var(--paper);
}
.headline {
margin: 18vh 0 0;
max-width: 12em;
font-family: var(--display);
font-weight: 500;
font-size: clamp(40px, 4.6vw, 68px);
line-height: 1.18;
letter-spacing: -0.03em;
color: var(--paper);
}
.lede {
margin: 22px 0 0;
max-width: 28em;
color: var(--muted);
font-size: 16px;
}
.index {
display: grid;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
max-width: 420px;
}
.index li {
display: grid;
grid-template-columns: 42px 1fr;
gap: 8px;
padding: 14px 0;
border-top: 1px solid var(--line);
color: var(--paper-dim);
font-size: 14px;
}
.index li:last-child { border-bottom: 1px solid var(--line); }
.index span { color: var(--brass); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-size: 12px; padding-top: 2px; }
.panel {
border-left: 1px solid var(--line);
display: flex;
align-items: center;
justify-content: center;
padding: 48px 36px;
background: var(--bg-sunken);
}
.form {
width: min(100%, 380px);
}
.switch {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 4px;
border: 1px solid var(--line);
border-radius: 14px;
background: rgba(243, 239, 230, 0.03);
margin-bottom: 28px;
}
.switch button {
height: 38px;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--muted);
}
.switch button.is-on {
background: var(--paper);
color: var(--ink);
}
.form h2 {
margin: 0 0 6px;
font-family: var(--display);
font-weight: 500;
font-size: 28px;
letter-spacing: -0.03em;
color: var(--paper);
}
.form .sub {
margin: 0 0 26px;
color: var(--faint);
font-size: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field span { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.field input {
height: 52px;
border-radius: 12px;
border: 1px solid var(--line-strong);
background: rgba(243, 239, 230, 0.03);
padding: 0 16px;
outline: none;
}
.field input:focus { border-color: var(--brass); }
.passline { position: relative; }
.passline input { width: 100%; padding-right: 64px; }
.ghost {
border: 0;
background: transparent;
color: var(--brass);
padding: 0;
}
.passline .ghost {
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
font-size: 13px;
}
.primary, .secondary {
height: 48px;
border-radius: 12px;
padding: 0 18px;
border: 1px solid transparent;
}
.primary {
width: auto;
background: var(--paper);
color: var(--ink);
border-color: var(--paper);
}
.primary:hover { background: #fffaf1; }
.primary:disabled, .secondary:disabled { opacity: 0.45; cursor: default; }
.secondary {
background: transparent;
color: var(--paper);
border-color: var(--line-strong);
}
.secondary:hover { border-color: var(--brass); }
.form > .primary { width: 100%; }
.form-error {
min-height: 22px;
margin: 12px 0 0;
color: var(--danger);
font-size: 13px;
}
.fine {
margin: 22px 0 0;
color: var(--faint);
font-size: 12px;
}
.reveal {
min-height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
padding: 32px;
background:
 radial-gradient(700px 380px at 50% 30%, rgba(214, 185, 140, 0.1), transparent 60%),
 var(--bg);
}
.reveal-card { width: min(100%, 560px); text-align: center; }
.reveal .kicker {
color: var(--brass);
letter-spacing: 0.22em;
font-size: 12px;
}
.reveal h1 {
margin: 18px 0 0;
font-family: var(--display);
font-weight: 500;
font-size: clamp(28px, 4vw, 40px);
letter-spacing: -0.03em;
color: var(--paper);
}
.big-id {
margin: 18px 0 8px;
font-family: var(--display);
font-weight: 520;
font-size: clamp(64px, 9vw, 108px);
letter-spacing: -0.04em;
line-height: 1;
color: var(--paper);
font-variant-numeric: tabular-nums;
}
.reveal p { color: var(--muted); margin: 0 0 28px; }
.reveal-actions { display: flex; gap: 12px; justify-content: center; }
.reveal-actions .primary, .reveal-actions .secondary { width: auto; min-width: 140px; }
.shell {
height: 100dvh;
display: grid;
grid-template-columns: 92px 332px minmax(0, 1fr);
grid-template-areas: "rail pane stage";
background: var(--bg);
}
.rail, .pane, .stage { min-height: 0; min-width: 0; }
.rail {
grid-area: rail;
border-right: 1px solid var(--line);
background: var(--bg-sunken);
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 0 14px;
gap: 6px;
position: relative;
}
.rail-brand { margin-bottom: 16px; color: var(--brass); }
.rail button.nav {
width: 72px;
height: 58px;
border: 0;
border-radius: 14px;
background: transparent;
color: var(--faint);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
position: relative;
}
.rail button.nav span { font-size: 12px; letter-spacing: 0.02em; white-space: nowrap; line-height: 1; }
.rail button.nav svg { width: 20px; height: 20px; }
.rail button.nav.is-on { background: rgba(243, 239, 230, 0.06); color: var(--paper); }
.rail button.nav:hover { color: var(--paper); }
.badge {
position: absolute;
top: 4px;
right: 2px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 99px;
background: var(--brass);
color: var(--ink);
font-size: 10px;
font-weight: 650;
display: grid;
place-items: center;
}
.me {
margin-top: auto;
width: 44px;
height: 44px;
border: 0;
border-radius: 14px;
padding: 0;
background: transparent;
}
.me-card {
position: absolute;
left: 68px;
bottom: 16px;
width: 230px;
padding: 16px;
background: #171811;
border: 1px solid var(--line-strong);
border-radius: 16px;
box-shadow: var(--shadow);
z-index: 8;
}
.me-card strong { display: block; font-weight: 560; color: var(--paper); }
.me-card .me-id {
margin: 6px 0 14px;
color: var(--brass);
font-variant-numeric: tabular-nums;
letter-spacing: 0.06em;
font-size: 13px;
}
.me-card .row { display: flex; gap: 8px; }
.me-card .secondary, .me-card .primary { height: 36px; font-size: 13px; }
.pane {
grid-area: pane;
border-right: 1px solid var(--line);
background: var(--bg-sunken);
display: flex;
flex-direction: column;
}
.pane-top { padding: 22px 22px 8px; }
.pane-top h1 {
margin: 0;
font-family: var(--display);
font-size: 26px;
font-weight: 520;
letter-spacing: -0.03em;
color: var(--paper);
}
.search { padding: 8px 16px 10px; }
.search-row { display: flex; gap: 8px; }
.search-row input {
flex: 1;
height: 42px;
border-radius: 12px;
border: 1px solid var(--line);
background: rgba(243, 239, 230, 0.03);
padding: 0 12px;
outline: none;
min-width: 0;
}
.search-row input:focus { border-color: var(--brass); }
.search-row button {
height: 42px;
padding: 0 14px;
border-radius: 12px;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--paper);
}
.result { padding: 0 12px 8px; }
.card {
border: 1px solid var(--line-strong);
border-radius: 16px;
padding: 14px;
background: rgba(243, 239, 230, 0.03);
}
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top .who { min-width: 0; }
.card-top strong { display: block; color: var(--paper); font-weight: 560; }
.card-top em { font-style: normal; color: var(--brass); font-size: 12px; letter-spacing: 0.06em; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-actions button { height: 34px; border-radius: 10px; padding: 0 12px; font-size: 13px; width: auto; }
.hint { color: var(--faint); font-size: 13px; margin: 8px 4px 0; }
.list { flex: 1; overflow: auto; padding-bottom: 12px; }
.item {
width: calc(100% - 16px);
margin: 2px 8px;
display: grid;
grid-template-columns: 44px minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
padding: 11px 10px;
border: 0;
border-radius: 14px;
background: transparent;
text-align: left;
color: inherit;
}
.item:hover { background: rgba(243, 239, 230, 0.04); }
.item.is-on { background: rgba(214, 185, 140, 0.1); }
.item-name {
display: flex;
align-items: center;
gap: 8px;
color: var(--paper);
font-weight: 560;
font-size: 14.5px;
}
.item-preview {
color: var(--faint);
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.item > span:not(.mini) { min-width: 0; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.request {
margin: 8px 12px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 16px;
background: rgba(243, 239, 230, 0.03);
}
.request-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.request-main > div { min-width: 0; }
.request-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-top: 12px;
}
.request-actions .primary,
.request-actions .secondary { width: 100%; height: 40px; }
.item-time { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.unread {
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 99px;
background: var(--brass);
color: var(--ink);
font-size: 11px;
font-weight: 650;
display: grid;
place-items: center;
}
.mini {
display: flex;
gap: 6px;
}
.mini button {
height: 28px;
padding: 0 8px;
border-radius: 8px;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--paper-dim);
font-size: 12px;
}
.mini button.yes { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.empty-list {
margin: 28px 22px;
color: var(--faint);
font-size: 14px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 13px;
display: grid;
place-items: center;
color: var(--paper);
font-size: 16px;
flex: none;
}
.avatar.lg { width: 44px; height: 44px; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #4a463e;
display: inline-block;
}
.dot.on { background: var(--brass); box-shadow: 0 0 0 3px rgba(214, 185, 140, 0.15); }
.stage {
grid-area: stage;
display: flex;
flex-direction: column;
background:
 radial-gradient(900px 380px at 50% -10%, rgba(214, 185, 140, 0.08), transparent 62%),
 var(--bg);
}
.stage-head {
min-height: 74px;
display: flex;
align-items: center;
gap: 12px;
padding: 14px 22px;
border-bottom: 1px solid var(--line);
}
.stage-head .who { min-width: 0; }
.stage-head strong { display: block; color: var(--paper); font-weight: 560; }
.stage-head .meta {
display: flex;
align-items: center;
gap: 8px;
color: var(--faint);
font-size: 12px;
}
.stage-head .meta .id { color: var(--brass); letter-spacing: 0.05em; }
.stage-head { position: relative; }
.stage-head .meta .visit { flex-basis: 100%; }
.lang-menu {
  position: absolute;
  top: calc(100% - 8px);
  right: 12px;
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #141510;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  text-align: left;
  padding: 0 10px;
}
.lang-menu button.is-on { color: var(--brass); }
.stage-head .typing { color: var(--brass); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back {
display: none;
width: 36px;
height: 36px;
border-radius: 10px;
border: 1px solid var(--line);
background: transparent;
color: var(--paper);
}
.head-actions { margin-left: auto; }
.head-actions button {
height: 34px;
padding: 0 12px;
border-radius: 10px;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--paper-dim);
font-size: 13px;
}
.thread {
flex: 1;
overflow: auto;
overflow-anchor: none;
overscroll-behavior: contain;
padding: 22px 6% 8px;
}
.thread.is-holding { visibility: hidden; }
.stream { width: min(720px, 100%); margin: 0 auto; }
.chunk { display: block; contain: layout style; }
.day {
display: flex;
justify-content: center;
margin: 8px 0 16px;
}
.day span {
font-size: 11px;
letter-spacing: 0.08em;
color: var(--faint);
border: 1px solid var(--line);
border-radius: 99px;
padding: 4px 10px;
}
.msg { display: flex; width: 100%; align-items: flex-end; gap: 8px; margin: 0 0 8px; }
.msg.mine { justify-content: flex-end; }
.msg-col {
display: flex;
flex-direction: column;
align-items: flex-start;
width: auto;
min-width: 0;
max-width: min(78%, 520px);
}
.msg.mine .msg-col { align-items: flex-end; }
.bubble {
width: fit-content;
max-width: 100%;
box-sizing: border-box;
overflow-wrap: anywhere;
padding: 10px 14px;
border-radius: 16px 16px 16px 5px;
background: linear-gradient(180deg, #6a6e5c 0%, #525644 100%);
border: 1px solid rgba(243, 239, 230, 0.46);
box-shadow: inset 0 1px 0 rgba(243, 239, 230, 0.14), 0 12px 26px rgba(0, 0, 0, 0.34);
color: #f7f4ee;
}
.msg.mine .bubble {
background: linear-gradient(180deg, #fbf8f2 0%, #efe7d8 100%);
color: #16150f;
border: 1px solid rgba(255, 252, 246, 0.72);
border-radius: 16px 16px 5px 16px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble .at-user {
 display: inline;
 margin: 0 1px;
 padding: 0 4px;
 border: 0;
 border-radius: 5px;
 background: rgba(110, 168, 255, 0.22);
 color: #d7e7ff;
 font: inherit;
 font-weight: 700;
 line-height: inherit;
 cursor: pointer;
 text-decoration: none;
 box-decoration-break: clone;
 -webkit-box-decoration-break: clone;
}
.msg.mine .bubble .at-user { background: rgba(37, 99, 235, 0.16); color: #1d4ed8; }
.bubble .at-user:hover { filter: brightness(1.08); }
.bubble .at-all {
 display: inline;
 margin: 0 1px;
 padding: 0 4px;
 border-radius: 5px;
 background: rgba(228, 177, 90, 0.2);
 color: #f0c36a;
 font-weight: 700;
 box-decoration-break: clone;
 -webkit-box-decoration-break: clone;
}
.msg.mine .bubble .at-all { background: rgba(180, 110, 20, 0.16); color: #9a5410; }
.bubble time {
display: block;
margin-top: 6px;
font-size: 11px;
color: var(--faint);
font-variant-numeric: tabular-nums;
}
.msg.mine .bubble time { color: rgba(22, 21, 15, 0.5); }
.more {
display: block;
margin: 0 auto 16px;
height: 32px;
padding: 0 14px;
border-radius: 99px;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--muted);
font-size: 12px;
}
.blank {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
}
.blank-ring {
width: 54px;
height: 54px;
border-radius: 50%;
border: 1px solid var(--line-strong);
margin-bottom: 18px;
position: relative;
}
.blank-ring::after {
content: "";
position: absolute;
inset: 16px;
border-radius: 50%;
background: var(--brass);
}
.blank h2 {
margin: 0;
font-family: var(--display);
font-weight: 520;
font-size: 28px;
letter-spacing: -0.03em;
color: var(--paper);
}
.blank p { margin: 10px 0 0; max-width: 22em; color: var(--faint); }
.composer-wrap { padding: 8px 6% 22px; }
.ban {
width: min(720px, 100%);
margin: 0 auto 8px;
padding: 10px 14px;
border-radius: 12px;
border: 1px solid rgba(224, 139, 134, 0.35);
color: var(--danger);
font-size: 13px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.ban button {
height: 30px;
padding: 0 10px;
border-radius: 8px;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--paper);
font-size: 12px;
flex: none;
}
.composer {
width: min(720px, 100%);
margin: 0 auto;
display: flex;
gap: 10px;
align-items: flex-end;
padding: 8px 8px 8px 16px;
border-radius: 18px;
border: 1px solid var(--line-strong);
background: rgba(243, 239, 230, 0.03);
}
.composer textarea {
flex: 1;
border: 0;
outline: none;
background: transparent;
min-height: 28px;
max-height: 140px;
padding: 8px 0;
line-height: 1.45;
}
.send {
width: 40px;
height: 40px;
border: 0;
border-radius: 12px;
background: var(--paper);
color: var(--ink);
display: grid;
place-items: center;
flex: none;
}
.send:disabled { opacity: 0.35; }
.send svg { width: 18px; height: 18px; }
#toasts {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%);
display: flex;
flex-direction: column;
gap: 8px;
z-index: 20;
pointer-events: none;
}
.toast {
background: var(--paper);
color: var(--ink);
border-radius: 999px;
padding: 10px 16px;
font-size: 13px;
box-shadow: var(--shadow);
}
@media (max-width: 980px) {
.auth { grid-template-columns: 1fr; }
.brand { min-height: auto; padding: 28px 24px 8px; }
.brand::before { inset: 12px; }
.headline { margin-top: 36px; font-size: 36px; }
.index { display: none; }
.panel { border-left: 0; padding: 12px 20px 40px; }
}
@media (max-width: 860px) {
.shell {
 grid-template-columns: 1fr;
 grid-template-rows: minmax(0, 1fr) 64px;
 grid-template-areas:
 "main"
 "rail";
}
.rail {
 flex-direction: row;
 justify-content: space-around;
 padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
 border-right: 0;
 border-top: 1px solid var(--line);
}
.rail-brand, .me { display: none; }
.shell:not(.is-chat) .pane { grid-area: main; }
.shell:not(.is-chat) .stage { display: none; }
.shell.is-chat .stage { grid-area: main; }
.shell.is-chat .pane { display: none; }
.shell { height: 100svh; grid-template-rows: minmax(0, 1fr) auto; }
html, body { overflow: hidden; }
input, textarea, select { font-size: 16px; }
.back { display: grid; place-items: center; width: 44px; height: 44px; }
.stage-head { padding-top: calc(10px + env(safe-area-inset-top)); }
.composer-wrap { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.me-card { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; }
.thread, .composer-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
}
.pane-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pane-tools { display: flex; gap: 6px; }
.pane-tools button {
height: 32px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid var(--line);
background: transparent;
color: var(--paper-dim);
font-size: 13px;
}
.pane-tools button.is-on,
.pane-tools button:hover { color: var(--paper); border-color: var(--brass); }
.pane-tools button[hidden] { display: none; }
.chat-filters {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
margin: 2px 16px 12px;
padding: 4px;
border-radius: 14px;
background: rgba(243, 239, 230, 0.045);
}
.chat-filters[hidden] { display: none; }
.chat-filters button {
height: 30px;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--faint);
font: inherit;
font-size: 13px;
}
.chat-filters button.is-on { color: var(--paper); background: rgba(214, 185, 140, 0.16); }
.conv { position: relative; margin: 1px 10px; border-radius: 16px; }
.conv:hover { background: rgba(243, 239, 230, 0.04); }
.conv.is-on { background: rgba(214, 185, 140, 0.1); }
.conv.is-on::before {
content: "";
position: absolute;
left: 0;
top: 14px;
bottom: 14px;
width: 2px;
border-radius: 2px;
background: var(--brass);
}
.conv-open {
width: 100%;
display: grid;
grid-template-columns: 46px minmax(0, 1fr);
gap: 12px;
align-items: center;
padding: 10px 34px 10px 10px;
border: 0;
border-radius: 16px;
background: transparent;
text-align: left;
color: inherit;
}
.conv-copy { min-width: 0; }
.conv-top, .conv-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conv-top time { margin-left: auto; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; flex: none; }
.conv .item-name { min-width: 0; }
.conv .item-name b { min-width: 0; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .item-name em {
flex: none;
max-width: 42%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--faint);
font-style: normal;
font-size: 12px;
font-weight: 450;
}
.conv-sub .item-preview { flex: 1; margin-top: 0; }
.conv-sub .unread { margin-left: auto; flex: none; }
.avatar-wrap { position: relative; width: 44px; height: 44px; }
.avatar-wrap .avatar { width: 44px; height: 44px; border-radius: 15px; }
.presence, .kind-mark {
position: absolute;
right: -2px;
bottom: -2px;
box-shadow: 0 0 0 2px #10110e;
}
.presence { width: 9px; height: 9px; border-radius: 50%; background: #3c3832; }
.presence.on { background: var(--brass); }
.kind-name { flex: none; color: var(--brass); font-style: normal; font-size: 11px; letter-spacing: 0.12em; }
.guest-tag {
 flex: none;
 margin-left: 6px;
 padding: 0 6px;
 border-radius: 999px;
 background: rgba(110, 168, 255, 0.2);
 color: #d7e7ff;
 font-style: normal;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0;
}
.kind-mark {
min-width: 16px;
height: 16px;
padding: 0 3px;
border-radius: 6px;
display: grid;
place-items: center;
background: #16150f;
color: var(--brass);
border: 1px solid rgba(214, 185, 140, 0.5);
font-size: 9px;
font-style: normal;
line-height: 1;
}
.pin-mark, .mute-mark, .alert-mark { display: inline-flex; color: var(--brass); flex: none; }
.pin-mark svg, .mute-mark svg, .alert-mark svg, .conv-more svg { width: 15px; height: 15px; display: block; }
.conv-more {
position: absolute;
right: 6px;
top: 50%;
width: 28px;
height: 28px;
margin-top: -14px;
padding: 0;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--faint);
display: grid;
place-items: center;
opacity: 0.55;
}
.conv:hover .conv-more, .conv.is-menu .conv-more { opacity: 1; color: var(--paper); }
.conv-more:hover { background: rgba(243, 239, 230, 0.08); }
.conv-label {
margin: 12px 22px 4px;
color: var(--brass);
font-size: 11px;
letter-spacing: 0.18em;
}
@media (hover: none) {
.conv-more { opacity: 0.8; }
}
.friend-folder { display: flex; align-items: center; gap: 8px; margin: 14px 18px 2px; }
.friend-folder .conv-label { margin: 0; flex: 1; }
.friend-folder .conv-more { position: static; width: 28px; height: 28px; margin: 0; opacity: 0.7; }
.desk-note {
margin: 7px 0 0;
max-width: 36em;
color: var(--brass);
font-size: 12px;
line-height: 1.45;
}
.guest-tag.agent {
background: rgba(214, 185, 140, 0.22);
color: #f4e7d0;
}
.stage.service-chat {
background:
 radial-gradient(720px 280px at 50% -8%, rgba(214, 185, 140, 0.16), transparent 62%),
 linear-gradient(180deg, #14160f 0%, var(--bg) 220px);
}
.stage.service-chat .stage-head {
background: rgba(11, 12, 10, 0.72);
backdrop-filter: blur(16px);
}
.stage.service-chat .msg:not(.mine) .bubble {
background: linear-gradient(180deg, #7a7160 0%, #5c5344 100%);
border: 1px solid rgba(228, 201, 154, 0.9);
border-left: 3px solid #e4c99a;
color: #fbf7ef;
box-shadow: 0 0 0 1px rgba(214, 185, 140, 0.2), 0 14px 28px rgba(0, 0, 0, 0.38);
}
.stage.service-chat .system-line {
width: fit-content;
margin: 12px auto 18px;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid rgba(214, 185, 140, 0.34);
background: rgba(214, 185, 140, 0.12);
color: var(--brass);
}
.stage.service-chat .composer {
border-color: rgba(214, 185, 140, 0.4);
background: rgba(214, 185, 140, 0.07);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.shell.is-guest .chat-filters { display: none; }
.shell.is-guest .pane-top h1 { letter-spacing: 0.08em; }
.conv-delete { display: none; }
.conv-more-page {
 display: block;
 width: calc(100% - 20px);
 margin: 8px 10px 16px;
 height: 40px;
 border-radius: 12px;
 border: 1px solid var(--line);
 background: transparent;
 color: var(--brass);
}
@media (max-width: 860px) {
  .conv-more-page { display: block; }
 .conv { overflow: hidden; }
 .conv-delete {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84px;
  border: 0;
  background: #8f3d38;
  color: #fff8f2;
  font-size: 14px;
  transform: translateX(100%);
}
 .conv-open, .conv-more, .conv-delete { transition: transform .16s ease; }
 .conv.is-swiped .conv-open,
 .conv.is-swiped .conv-more { transform: translateX(-84px); }
 .conv.is-swiped .conv-delete { transform: translateX(0); }
}

.peer-miss { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 861px) {
  .shell.is-guest.is-chat {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "rail stage";
  }
  .shell.is-guest.is-chat .pane { display: none; }
  .shell.is-guest.is-chat .back { display: grid; place-items: center; }
}

@media (max-width: 860px) {
  .shell.is-guest {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    box-sizing: border-box;
    height: 100dvh;
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "main";
    padding-top: constant(safe-area-inset-top);
    padding-right: constant(safe-area-inset-right);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-left: constant(safe-area-inset-left);
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }
  .shell.is-guest .rail { display: none; }

  .shell.is-guest.is-keyboard {
    padding-bottom: 0;
  }
  .shell.is-guest.is-keyboard .composer-wrap {
    padding-bottom: 0;
  }
  .shell.is-guest .stage-head { padding-top: 10px; }
  .shell.is-guest .composer-wrap { padding-bottom: 14px; }
  .shell.is-guest .pane-top {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 860px) {
  .composer {
    align-items: flex-end;
    box-sizing: border-box;
    min-height: 42px;
    padding: 5px 5px 5px 14px;
    border-radius: 21px;
  }
  .composer textarea {
    min-height: 22px;
    padding: 5px 0;
    line-height: 22px;
    max-height: 110px;
  }
  .send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
}

.auto-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.46);
}
.auto-panel[hidden] { display: none; }
.auto-card {
  width: min(520px, 100%);
  box-sizing: border-box;
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #16150f;
  color: var(--paper);
}
.auto-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.auto-card header button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--paper); font-size: 22px; }
.auto-card > p { margin: 0 0 12px; color: var(--faint); font-size: 13px; }
.auto-card section { margin: 0 0 14px; }
.auto-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.auto-line button.is-on { color: var(--paper); border-color: var(--brass); }
.auto-card textarea, .auto-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  padding: 10px 12px;
}
.auto-card textarea { min-height: 74px; }
.auto-card form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.auto-words { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.auto-words li { display: flex; align-items: center; gap: 8px; }
.auto-words li div { min-width: 0; flex: 1; }
.auto-words b, .auto-words span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-words span { color: var(--faint); font-size: 13px; }
.auto-words button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); }
.auto-words .empty { color: var(--faint); }
.auto-card .error { min-height: 1.2em; color: var(--danger); }
.auto-card .primary { width: 100%; }
@media (max-width: 860px) {
  .auto-card form { grid-template-columns: 1fr; }
}

.boot.is-arrive {
  position: relative;
  flex-direction: column;
  gap: 18px;
  letter-spacing: 0;
  background:
    radial-gradient(460px 240px at 50% 42%, rgba(214, 185, 140, 0.18), transparent 70%),
    var(--bg);
}
.boot.is-arrive .arrive-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.boot.is-arrive .arrive-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(214, 185, 140, 0.35);
  border-top-color: #f6ead4;
  animation: arrive-spin 1.15s linear infinite;
}
.boot.is-arrive .mark {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 22px rgba(214, 185, 140, 0.85);
}
.boot.is-arrive strong {
  font-family: var(--display);
  font-weight: 520;
  font-size: clamp(26px, 6vw, 36px);
  letter-spacing: -0.04em;
  text-align: center;
}
@keyframes arrive-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .boot.is-arrive .arrive-ring { animation: none; }
}

.shell.is-guest .back,
.shell.is-guest.is-chat .back { display: none !important; }
.guest-hold { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); }
.guest-hold-note { margin: -28px 28px 0; max-width: 28em; text-align: center; color: rgba(243, 239, 230, 0.62); }
.guest-gate {
  min-height: 100%;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
}
.guest-gate::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 185, 140, 0.22), transparent 68%);
  animation: guest-glow 3.2s ease-in-out infinite;
}
.guest-orbit { position: relative; z-index: 1; width: min(220px, 64vw); aspect-ratio: 1; margin-bottom: 10px; }
.guest-orbit i, .guest-orbit b { position: absolute; border-radius: 50%; }
.guest-orbit i:first-child {
  inset: 0;
  border: 1.5px solid transparent;
  border-top-color: #f6ead4;
  border-right-color: rgba(214, 185, 140, 0.5);
  box-shadow: 0 0 36px rgba(214, 185, 140, 0.16);
  animation: guest-spin 2.6s linear infinite;
}
.guest-orbit i:nth-child(2) {
  inset: 22px;
  border: 1.5px solid transparent;
  border-bottom-color: #d6b98c;
  border-left-color: rgba(214, 185, 140, 0.4);
  animation: guest-spin 4.4s linear infinite reverse;
}
.guest-orbit b {
  inset: 46%;
  background: #d6b98c;
  box-shadow: 0 0 22px rgba(214, 185, 140, 0.9);
  animation: guest-gem 1.5s ease-in-out infinite;
}
.guest-gate h2 { position: relative; z-index: 1; margin: 8px 0 0; font-size: clamp(26px, 6vw, 36px); font-weight: 560; letter-spacing: -0.04em; }
.guest-gate p { position: relative; z-index: 1; margin: 8px 0 0; color: rgba(243, 239, 230, 0.7); letter-spacing: 0.08em; }
.guest-gate p::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: #d6b98c;
  box-shadow: 0 0 8px #d6b98c;
  animation: guest-blink 1.1s ease-in-out infinite;
}
@keyframes guest-spin { to { transform: rotate(360deg); } }
@keyframes guest-glow { 50% { transform: scale(1.08); opacity: 0.72; } }
@keyframes guest-gem { 50% { transform: rotate(45deg) scale(1.12); } }
@keyframes guest-blink { 50% { opacity: 0.25; } }
.enter-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.enter-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.enter-list b { color: var(--brass); font-size: 12px; }
.enter-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enter-list img, .enter-list video { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #0b0c0a; }
.enter-list button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); }
.enter-list .empty { color: var(--faint); }
.auto-card .hint { margin: 0 0 8px; color: var(--faint); font-size: 13px; }
.auto-card form.enter-add, .enter-files { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .guest-gate::before, .guest-orbit i, .guest-orbit b, .guest-gate p::before { animation: none; }
}

.enter-list .link-url, .enter-list .link-short {
  flex-basis: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-all;
}
.enter-list .link-short { color: var(--brass); }
