:root{
  --bg:#f7f1e3; --panel:#fffdf7; --ink:#2f2a22; --muted:#8c8272; --line:#e6dcc7;
  --accent:#d4a72c; --accent-ink:#3a2c07; --user:#eaf3ff; --err:#ffd9d6;
  --radius:18px; --shadow:0 10px 30px rgba(90,70,30,.08);
}
*{box-sizing:border-box}
html,body{height:100%; max-width:100%; overflow-x:hidden}
body{
  margin:0; background:radial-gradient(1200px 600px at 10% -10%, #fff9ec, transparent), var(--bg);
  color:var(--ink); font:15px/1.55 "Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.app{display:grid; grid-template-columns:300px 1fr; height:100dvh}
.sidebar{display:flex; flex-direction:column; gap:12px; padding:18px 14px; border-right:1px solid var(--line); background:linear-gradient(180deg,#fffdf7,#fdf8ec); min-height:0}
.brand{display:flex; gap:10px; align-items:center}
.brand-emoji{font-size:30px; filter:drop-shadow(0 4px 8px rgba(212,167,44,.35))}
.brand h1{margin:0; font-size:19px; letter-spacing:.5px}
.badge{margin:2px 0 0; font-size:12px; color:var(--muted)}
.badge.ok{color:#2e7d4f}.badge.bad{color:#b3392f}
button{font:inherit; cursor:pointer; border:none; border-radius:12px; transition:.15s}
.primary{background:var(--accent); color:var(--accent-ink); padding:11px 14px; font-weight:600; box-shadow:var(--shadow)}
.primary:hover{filter:brightness(1.05)}
.ghost{background:#fffdf7; color:var(--ink); padding:9px 10px; border:1px solid var(--line); font-weight:500}
.ghost:hover{background:#fff; border-color:var(--accent)}
.icon{background:transparent; font-size:18px; padding:8px 10px; border-radius:10px}
.icon:hover{background:#fff}
.chat-list{flex:1; overflow:auto; display:flex; flex-direction:column; gap:6px; padding-right:2px}
.chat-item{display:flex; flex-direction:column; gap:2px; text-align:left; padding:10px 12px; background:transparent; border-radius:14px; border:1px solid transparent; width:100%}
.chat-item:hover{background:#fff; border-color:var(--line)}
.chat-item.active{background:#fff; border-color:var(--accent); box-shadow:var(--shadow)}
.chat-item b{font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.chat-item small{color:var(--muted); font-size:12px}
.side-foot{display:flex; gap:6px; justify-content:space-between}
.chat{display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; width:100%}
.chat-head{display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line); background:rgba(255,253,247,.8); backdrop-filter:blur(6px)}
.chat-title h2{margin:0; font-size:16px}
.muted{color:var(--muted); font-size:12px}
.messages{flex:1; overflow:auto; padding:20px 18px; display:flex; flex-direction:column; gap:12px; min-width:0; width:100%}
.msg{max-width:min(720px,100%); padding:11px 14px; border-radius:var(--radius); white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; box-shadow:0 2px 8px rgba(90,70,30,.05)}
.msg.user{align-self:flex-end; margin-left:auto; background:var(--user); border-bottom-right-radius:6px}
.msg.assistant{align-self:flex-start; background:var(--panel); border:1px solid var(--line); border-bottom-left-radius:6px}
.msg.error{background:var(--err); border-color:#f2b6b1}
.msg .meta{display:block; margin-top:6px; font-size:11px; color:var(--muted)}
.msg .files{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.msg .files a{font-size:12px; color:#6b4f0e; background:#f6ecd2; padding:4px 8px; border-radius:9px; text-decoration:none}
.composer{padding:12px 18px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(255,253,247,.9)}
.composer-row{display:flex; align-items:flex-end; gap:8px}
#input{flex:1; resize:none; max-height:180px; padding:11px 14px; border-radius:16px; border:1px solid var(--line); background:#fff; font:inherit; outline:none}
#input:focus{border-color:var(--accent)}
.send{width:44px; height:44px; border-radius:50%; background:var(--accent); color:var(--accent-ink); font-size:17px}
.send:disabled{opacity:.5; cursor:default}
.attach-row{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px}
.chip{display:flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:4px 10px; font-size:12px}
.chip button{background:transparent; color:var(--muted); padding:0 2px}
.sheet{border:none; border-radius:22px; padding:0; width:min(560px,92vw); box-shadow:0 30px 80px rgba(60,40,10,.28)}
.sheet::backdrop{background:rgba(40,30,10,.35); backdrop-filter:blur(2px)}
.sheet-inner{padding:20px}
.sheet-inner h3{margin:0 0 12px}
.sheet-actions{display:flex; justify-content:flex-end; gap:8px; margin:16px 0 0; padding:0}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
.field label{font-size:13px; color:var(--muted)}
.field input,.field textarea,.field select{padding:10px 12px; border-radius:12px; border:1px solid var(--line); font:inherit; background:#fff}
.rows{display:flex; flex-direction:column; gap:8px; max-height:46vh; overflow:auto}
.row{display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:#fff}
.row .grow{flex:1; min-width:0}
.row b{display:block; font-size:14px}
.row small{color:var(--muted); font-size:12px}
.perm{font-size:11px; color:#6b4f0e; background:#f6ecd2; border-radius:8px; padding:2px 6px; margin-right:4px}
.toast{position:fixed; left:50%; bottom:26px; transform:translateX(-50%); background:#2f2a22; color:#fff; padding:10px 16px; border-radius:12px; font-size:13px; z-index:50; box-shadow:0 10px 30px rgba(0,0,0,.25)}
@media (max-width:760px){
  .app{grid-template-columns:1fr}
  .sidebar{position:fixed; inset:0 auto 0 0; width:84vw; max-width:320px; transform:translateX(-105%); transition:transform .22s ease; z-index:30; box-shadow:0 0 50px rgba(0,0,0,.18)}
  .sidebar.open{transform:translateX(0)}
  .messages{padding:14px}
  .msg{max-width:92%}
}

/* 瀹夊叏鍛婅鏉★紙2026-11-07锛夛細椤堕儴绾㈡潯锛岀偣寮€鐪嬫渶杩戝嚑鏉?*/
.sec-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  background: #b3261e; color: #fff; font-size: 13px; padding: 7px 12px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.sec-banner .sec-toggle { position: absolute; right: 12px; opacity: .85; text-decoration: underline; font-size: 12px; }
.sec-list {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 59;
  background: #2a1516; color: #f3d7d5; font-size: 12px;
  padding: 8px 12px; max-height: 42vh; overflow: auto;
  border-bottom: 1px solid #5a2a27;
}
.sec-item { padding: 5px 0; border-bottom: 1px dashed #4a2523; line-height: 1.5; word-break: break-all; }
.sec-item:last-child { border-bottom: 0; }

/* 鐧诲綍椤碉紙2026-11-07锛夛細娌℃湁鏈夋晥瀵嗛挜鏃剁洊浣忔暣涓晫闈?*/
.login-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 18, .96);
}
.login-box {
  width: min(340px, 86vw); display: flex; flex-direction: column; gap: 10px;
  background: #1d1d23; border: 1px solid #33333d; border-radius: 14px;
  padding: 26px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.login-brand { font-size: 20px; font-weight: 700; color: #f0efe9; text-align: center; }
.login-tip { margin: 0; color: #a9a9b4; font-size: 13px; text-align: center; }
.login-box input {
  padding: 11px 12px; border-radius: 9px; border: 1px solid #3a3a46;
  background: #26262e; color: #f0efe9; font-size: 15px; outline: none;
}
.login-box input:focus { border-color: #6b6bff; }
.login-box button { padding: 11px; border-radius: 9px; font-size: 15px; }
.login-error { margin: 0; min-height: 18px; color: #ff8a80; font-size: 12px; text-align: center; }

/* 2026-11-07 淇锛氬厓绱犲甫 hidden 灞炴€ф椂蹇呴』鐪熺殑闅愯棌銆?   .login-overlay / .sec-banner 閮藉啓浜?display:flex锛屼細鐩栨帀 hidden锛?   缁撴灉鐧诲綍閬僵姘歌繙鐩栧湪鏈€涓婇潰鈥斺€旀墜鏈轰笂鐪嬪埌鐨勫氨鏄竴鐗囬粦銆?*/
[hidden] { display: none !important; }

/* 鏇存柊璁板綍锛?026-11-07锛?*/
.changelog {
  white-space: pre-wrap; font-size: 12px; line-height: 1.55;
  max-height: 260px; overflow: auto; margin: 6px 0 0;
  color: #c9c9d4; background: #17171c; border: 1px solid #2e2e38;
  border-radius: 8px; padding: 10px 12px;
}
details summary { cursor: pointer; font-size: 13px; color: #9a9aa8; padding: 6px 0; }

/* 琛ㄦ儏鍖咃紙2026-11-07锛?*/
.sticker-panel {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% - 4px);
  max-height: 48vh; overflow: auto; padding: 10px 12px 12px;
  background: #1b1b22; border: 1px solid #31313d; border-radius: 14px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.45); z-index: 40;
}
.sticker-title { margin: 4px 0 6px; font-size: 12px; color: #8e8e9d; }
.sticker-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sticker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.sticker-item {
  display: flex; align-items: center; justify-content: center;
  height: 38px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; font-size: 22px; line-height: 1; cursor: pointer;
}
.sticker-item:hover, .sticker-item:active { background: #2a2a36; }
.sticker-thumb { width: 28px; height: 28px; object-fit: contain; }
.sticker-big { font-size: 34px; line-height: 1.15; vertical-align: middle; }
.sticker-img { max-width: 120px; max-height: 120px; vertical-align: middle; border-radius: 10px; }
.ghost.small { padding: 3px 10px; font-size: 12px; }
.muted.small { font-size: 12px; }

/* 琛ㄦ儏闈㈡澘闇€瑕佷互杈撳叆鍖轰负瀹氫綅鍙傜収锛?026-11-07 淇锛氫箣鍓嶆紡浜?position:relative锛?   闈㈡澘琚畾浣嶅埌 body 涓娿€乥ottom:100% 鐩存帴璺戝埌瑙嗗彛澶栭潰锛岀湅璧锋潵鍍?鐐逛簡娌″弽搴?锛?*/
.composer { position: relative; }

/* 琛ㄦ儏闈㈡澘鏀规垚鍜屽簲鐢ㄤ竴鑷寸殑娴呰壊涓婚锛?026-11-07锛氱涓€鐗堢収鎼簡璁剧疆闈㈡澘鐨勬繁鑹诧紝寰堢獊鍏€锛?*/
.sticker-panel {
  background: var(--card, #fffdf7);
  border: 1px solid var(--line, #e7e1d4);
  box-shadow: 0 -10px 30px rgba(0,0,0,.10);
}
.sticker-title { color: #8d8878; }
.sticker-item:hover, .sticker-item:active { background: rgba(0,0,0,.07); }

/* 澶ц偉楸艰〃鎯呭寘锛?026-11-07锛夛細浠庢瀹犲姩鐢绘娊甯х敓鎴?*/
.sticker-grid.pack { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sticker-item.pack { height: auto; padding: 2px; }
.sticker-item.pack .sticker-thumb { width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.sticker-pack { max-width: 140px; max-height: 160px; vertical-align: middle; }

/* 琛ㄦ儏鍒嗛〉鏍囩锛?026-11-07锛夛細284 寮犱笉鑳戒竴娆″叏閾?*/
.sticker-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.sticker-tabs::-webkit-scrollbar { display: none; }
.sticker-tab {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line, #e7e1d4); background: transparent; color: #6f6a5c; cursor: pointer;
}
.sticker-tab.active { background: var(--accent, #d9b44a); border-color: var(--accent, #d9b44a); color: #201a08; font-weight: 600; }
.sticker-grid.pack.lib { grid-template-columns: repeat(5, 1fr); }

/* 鏃ヨ姝ｆ枃锛?026-11-07锛夛細璺熺潃瀵硅瘽妗嗚蛋娴呰壊锛屽埆鐢?changelog 鐨勬繁鑹蹭唬鐮佸潡鏍峰紡 */
.diary-text {
  white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.9;
  margin: 8px 0 0; padding: 14px 16px; border-radius: 12px;
  background: #fffdf7; border: 1px solid #e7e1d4; color: #3b372c;
}

/* 绐勫睆锛堚墹380px锛夛細鍥涗釜鍥炬爣鎸夐挳 + 鍙戦€侀敭浼氭妸杈撳叆妗嗘尋娌°€?   2026-11-07 鍓嶇娴嬭瘯鍦?320px 涓嬫姄鍒帮細textarea 鍙墿 24px锛岀偣閮芥病娉曠偣銆?*/
@media (max-width: 380px) {
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .composer-row { gap: 4px; }
  .composer-row .icon { width: 32px; height: 32px; padding: 0; font-size: 15px; display: flex; align-items: center; justify-content: center; }
  .composer-row .send { width: 38px; height: 38px; font-size: 15px; }
  #input { padding: 9px 10px; min-width: 0; }
}

/* 娑堟伅閲岀殑鏈楄鎸夐挳锛?026-11-07锛?*/
.say-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 13px;
  padding: 0 4px; opacity: .55; vertical-align: middle;
}
.say-btn:hover { opacity: 1; }
.say-btn:disabled { opacity: .25; cursor: default; }

/* 2026-11-07 淇锛氳缃噷鐨?.rows 鏄祵濂楃殑锛堝灞?.rows 鏈?max-height + overflow锛夛紝
   鍐呭眰 .rows 浣滀负 flex 椤硅鍘嬫垚 0 楂樷€斺€斿唴瀹规槑鏄庡湪 DOM 閲岋紝灞忓箷涓婂嵈涓€鐗囩┖鐧姐€?   绂佹鏀剁缉锛岃澶栧眰婊氬姩銆?*/
.rows > * { flex: 0 0 auto; }

/* 閫氳瘽鐣岄潰锛?026-11-07锛?*/
.call-layer {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(1200px 700px at 50% 0%, #2a2438 0%, #14121a 60%, #0c0b10 100%);
  color: #f2eef6;
}
.call-layer[hidden] { display: none !important; }
.call-avatar-clip { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: #241f2f; box-shadow: 0 0 0 6px rgba(255,255,255,.06); transition: box-shadow .25s; }
.call-layer.listening .call-avatar-clip { box-shadow: 0 0 0 10px rgba(217,180,74,.35), 0 0 40px rgba(217,180,74,.25); }
.call-name { margin: 18px 0 4px; font-size: 18px; font-weight: 600; }
.call-status { margin: 0; font-size: 13px; color: #a9a2b8; text-align: center; min-height: 20px; }
.call-seen { margin: 10px 16px 0; font-size: 12px; color: #8d86a0; text-align: center; max-height: 60px; overflow: auto; }
.call-video { position: fixed; right: 18px; bottom: 120px; width: 120px; border-radius: 14px; border: 1px solid #3a3450; transform: scaleX(-1); }
.call-video[hidden] { display: none !important; }
.call-actions { display: flex; gap: 22px; align-items: center; }
.call-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 24px; cursor: pointer; background: #2b2638; color: #f2eef6; }
.call-btn.active { background: #d9b44a; color: #201a08; }
.call-btn.hangup { background: #c0392b; color: #fff; }
.call-btn:disabled { opacity: .45; cursor: default; }

/* 2026-11-07锛氬張鍔犱簡 馃敆 鍜?馃摓锛屼簲涓浘鏍囧湪 320px 涓嬫妸杈撳叆妗嗘尋鍒?74px銆?   鍐嶅帇涓€妗ｏ細鍥炬爣 28px銆侀棿璺?3px銆佸彂閫侀敭 36px銆?*/
@media (max-width: 380px) {
  .composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .composer-row { gap: 3px; }
  .composer-row .icon { width: 28px; height: 28px; padding: 0; font-size: 13px; }
  .composer-row .send { width: 36px; height: 36px; font-size: 14px; }
  #input { padding: 8px 9px; min-width: 0; }
}

/* ---------- 鎷熶汉鐢熺悊锛?026-11-08锛夛細澶撮《鐘舵€佹潯 + 銆岃剳銆嶉潰鏉?---------- */
.psyche-chip{
  margin-left:auto; flex:0 0 auto; border:1px solid var(--line); background:#fff; border-radius:999px;
  padding:6px 12px; font:inherit; font-size:12px; color:var(--muted); cursor:pointer; white-space:nowrap;
}
.psyche-chip[data-pressure="tight"]{border-color:#e0b25a; color:#a2741a; background:#fff8e6}
.psyche-chip[data-pressure="critical"]{border-color:#d98b8b; color:#a33; background:#ffeeee}

.brain-head{display:flex; align-items:baseline; gap:10px; margin:2px 0 10px}
.brain-mood{font-size:22px; font-weight:700}
.brain-sub{color:var(--muted); font-size:12px}
.brain-card{border:1px solid var(--line); border-radius:16px; padding:12px; margin:10px 0; background:#fff}
.brain-card h4{margin:0 0 8px; font-size:13px; color:var(--muted); font-weight:600}
.brain-avg{display:flex; align-items:baseline; gap:6px}
.brain-avg b{font-size:28px; line-height:1}
.brain-avg small{color:var(--muted)}
.brain-buckets{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:8px 0 4px}
.brain-bucket{background:var(--bg); border-radius:12px; padding:6px 4px; text-align:center; display:flex; flex-direction:column; gap:2px}
.brain-bucket b{font-size:16px}
.brain-bucket small{color:var(--muted); font-size:10px}
.brain-chart{width:100%; height:auto; margin-top:4px}
.brain-memories{display:flex; flex-direction:column; gap:6px; margin-top:8px}
.brain-memory{display:flex; align-items:center; gap:8px; font-size:12px; border-top:1px dashed var(--line); padding-top:6px}
.brain-memory small{color:var(--muted); white-space:nowrap}
.brain-temp{font-variant-numeric:tabular-nums; color:#b8923a; font-weight:700; min-width:38px}
.brain-bars{display:flex; flex-direction:column; gap:8px}
.brain-bar{display:grid; grid-template-columns:84px 1fr 30px; align-items:center; gap:8px; font-size:12px}
.brain-bar-label{color:var(--muted)}
.brain-bar-track{height:8px; border-radius:99px; background:var(--bg); overflow:hidden}
.brain-bar-track i{display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#e3c05e,#b8923a)}
.brain-bar b{text-align:right; font-variant-numeric:tabular-nums}
.brain-money{display:flex; flex-direction:column; gap:3px; margin-bottom:8px}
.brain-money b{font-size:26px; line-height:1.1}
.brain-money small{color:var(--muted)}
.brain-add{display:flex; gap:8px}
.brain-add input{flex:1; min-width:0; padding:9px 11px; border-radius:12px; border:1px solid var(--line); font:inherit; background:#fff}

/* ---------- 閫氳瘽锛氳绾胯窡闅?+ 瀛楀箷 ---------- */
.call-stage{perspective:640px; display:flex; justify-content:center; margin-top:6px}
.call-avatar{transform-style:preserve-3d; transition:transform .12s ease-out, box-shadow .25s}
.call-subtitle{margin:8px 18px 0; font-size:13px; color:#d8d2e6; text-align:center; min-height:18px; max-width:420px; line-height:1.5}
.call-hint{margin:6px 0 0; font-size:11px; color:#7f7894}
.call-mood{position:absolute; top:calc(18px + env(safe-area-inset-top)); right:18px; font-size:12px; color:#a9a2b8}

/* 鑴戦潰鏉挎瘮浜烘牸闈㈡澘楂橈紝寮圭獥鑷繁瑕佽兘婊氾紝涓嶇劧搴曢儴銆岃涓€绗斻€嶄細琚鎺?*/
.sheet-inner{max-height:88vh; overflow:auto}

/* 通话头像：贴纸带台词条，裁掉底部只留人物 */
.call-avatar{ display:block; width:120%; height:auto; margin-left:-10%; margin-top:-1%; transform-style:preserve-3d; transition:transform .12s ease-out; }

/* ---------- 实时视觉（2026-11-08）：摄像头画面 + 检测框 ---------- */
.call-video-wrap{position:fixed; right:18px; bottom:120px; width:190px; border-radius:16px; overflow:hidden; border:1px solid #3a3450; background:#0c0b10; transform:scaleX(-1)}
.call-video-wrap[hidden]{display:none !important}
.call-video{display:block; width:100%; height:auto; border:0; border-radius:0; transform:none; position:static}
.call-vision{position:absolute; inset:0; width:100%; height:100%; pointer-events:none}

/* ---------- 时钟 / 闹钟（2026-11-09） ---------- */
.clock-chip{margin-left:8px; flex:0 0 auto; border:1px solid var(--line); background:#fff; border-radius:999px; padding:6px 10px; font:inherit; font-size:12px; color:var(--muted); cursor:pointer; white-space:nowrap; font-variant-numeric:tabular-nums}
.clock-chip.offline{border-color:#e0b25a; color:#a2741a; background:#fff8e6}
.alarm-now{font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.2}
.alarm-source{color:var(--muted); font-size:12px; margin:4px 0 12px}
.alarm-form{display:flex; gap:8px; align-items:center; margin:10px 0 14px; flex-wrap:wrap}
.alarm-form input[type=time]{padding:9px 10px; border-radius:12px; border:1px solid var(--line); font:inherit; background:#fff}
.alarm-form input[type=text]{flex:1; min-width:120px; padding:9px 10px; border-radius:12px; border:1px solid var(--line); font:inherit; background:#fff}
.alarm-row{display:flex; align-items:center; gap:10px; padding:9px 10px; border:1px solid var(--line); border-radius:12px; margin-bottom:6px; background:#fff}
.alarm-row .alarm-clock{font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; min-width:58px}
.alarm-row .grow{flex:1; min-width:0}
.alarm-row small{color:var(--muted); font-size:12px}
.alarm-row.disabled{opacity:.55}
.alarm-actions{display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:8px}
.alarm-actions .muted{font-size:12px}
@media (max-width:420px){ .clock-chip{font-size:11px; padding:5px 8px} }

/* 手机窄屏：标题让位给右侧两个状态条，别把头部撑出横向滚动 */
.chat-title{flex:1; min-width:0; overflow:hidden}
.chat-title h2{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
@media (max-width:420px){
  .psyche-chip{font-size:11px; padding:5px 8px}
  .chat-head{gap:6px; padding:12px 10px}
}

/* ---------- 非 HTTPS 远程访问提示（2026-11-09） ---------- */
.http-banner{position:fixed; top:0; left:0; right:0; z-index:96; display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 12px; background:#fff3cd; color:#7a5b00; font-size:12px; border-bottom:1px solid #e0c36a}
.http-banner[hidden]{display:none !important}
.http-banner button{border:1px solid #d9b44a; background:#fff; color:#7a5b00; border-radius:999px; padding:4px 10px; font:inherit; font-size:12px; cursor:pointer}
.http-banner #httpBannerClose{border:0; background:transparent; font-size:16px; padding:0 4px; line-height:1}

/* 通话里也能打字（麦克风不可用时至少还能聊） */
.call-type{display:flex; gap:8px; width:min(420px, 86vw); margin:10px 0 4px}
.call-type input{flex:1; min-width:0; padding:10px 12px; border-radius:999px; border:1px solid #3a3450; background:#1b1824; color:#f2eef6; font:inherit; font-size:14px}
.call-type input::placeholder{color:#7f7894}
.call-type button{border:0; border-radius:999px; padding:0 16px; background:#d9b44a; color:#201a08; font:inherit; cursor:pointer}
