/* Copyright (C) 2026 Amira Labs, Inc. All rights reserved. */
html, body.webshell { user-select: auto; }
body.webshell { border: 0; border-radius: 0; background: linear-gradient(180deg, #9ec3ea 0, #cfe3f7 120px, #e9f2fb 100%); }
.web-top { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35);
  background: linear-gradient(180deg, #4f8fd6 0%, #2f6fc4 48%, #245fb3 52%, #3a7fd0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.web-title { font-size: 15px; font-weight: 700; } .web-title i { font-weight: 400; }
.web-sp { flex: 1; } .web-lock { font-size: 11.5px; opacity: .9; }
.web-main { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 10px; }
#list { width: 360px; flex: none; border: 1px solid #4f7fb8; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(20,50,90,.25); }
.web-chat { flex: 1; min-width: 0; position: relative; border: 1px solid #4f7fb8; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #eef5fd, #fff); box-shadow: 0 3px 12px rgba(20,50,90,.25); }
.web-chat iframe { width: 100%; height: 100%; border: 0; display: block; }
.web-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #3b5878; text-align: center; opacity: .9; }
.web-empty b { font-size: 18px; color: #12437f; }
.web-back { display: none; }
@media (max-width: 760px) {
  .web-main { padding: 0; gap: 0; }
  #list { width: 100%; border-radius: 0; border: 0; }
  .web-chat { display: none; border-radius: 0; border: 0; }
  body.in-chat #list { display: none; }
  body.in-chat .web-chat { display: block; }
  .web-back { display: block; position: absolute; top: 6px; left: 6px; z-index: 5; }
  .web-lock { display: none; }
}
/* inside the frames: no window title bar in a browser */
html.web .titlebar { display: none; }
html.web body { border: 0; border-radius: 0; }
html.web .menubar { display: none; }
/* the web page that holds the account */
body.webshell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; }
.web-home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.web-chat iframe.chatf { display: none; position: absolute; inset: 0; }
.web-chat iframe.chatf.on { display: block; }
.web-chat .web-empty[hidden] { display: none; }
.web-chat.shake { animation: webshake .5s; }
@keyframes webshake { 0%,100% { transform: none } 20% { transform: translate(-8px, 3px) } 40% { transform: translate(7px, -3px) } 60% { transform: translate(-6px, 2px) } 80% { transform: translate(4px, -1px) } }
.login { flex: 1; min-height: 0; overflow: auto; position: relative; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; }
.login[hidden] { display: none; }
.lg-water { position: absolute; right: -40px; bottom: -40px; opacity: .13; pointer-events: none; }
.lg-box { position: relative; width: 100%; max-width: 720px; background: linear-gradient(180deg, #fff, #f1f7fe); border: 1px solid #7fa6d4; border-radius: 8px;
  box-shadow: 0 4px 18px rgba(20,60,110,.25), inset 0 1px 0 #fff; padding: 22px 24px 18px; color: var(--ink, #1c2b3f); }
.lg-box h1 { margin: 0; font-size: 20px; color: #12437f; font-weight: 600; }
.lg-sub { margin: 4px 0 16px; color: #4a6584; font-size: 13px; }
.lg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lg-col { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #c4d8ee; border-radius: 6px; background: #fff; }
.lg-col h2 { margin: 0 0 4px; font-size: 14px; color: #1a4f97; }
.lg-l { font-size: 12px; color: #3b5878; margin-top: 6px; }
.lg-col textarea, .lg-col input { font: 13px/1.35 "Segoe UI", Tahoma, Helvetica, Arial, sans-serif; border: 1px solid #8fa9c8; border-radius: 3px; padding: 6px 7px; resize: none; text-transform: none; }
.lg-col textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.lg-col .btn { align-self: flex-start; height: 28px; }
.btn.big { height: 34px !important; font-size: 13.5px; padding: 0 16px; }
.lg-hint { margin: 2px 0 0; font-size: 12px; color: #5a7290; }
.lg-hint a { color: #1a5fc0; }
.lg-cam { position: relative; border-radius: 6px; overflow: hidden; background: #0d2340; aspect-ratio: 4 / 3; }
.lg-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-cam span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000; }
.lg-box .chk { display: flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 12.5px; color: #3b5878; }
.lg-err { min-height: 18px; margin-top: 6px; color: #c0202a; font-size: 12.5px; }
@media (max-width: 760px) {
  .lg-cols { grid-template-columns: 1fr; }
  .lg-box { padding: 16px; }
  .web-title i { display: none; }
}
