/* JARVIS 8.0.9: современный вид сайта (как в приложении 8.0.48): плоские скруглённые панели, объёмные кнопки, пузыри как в Telegram.
   Подключается после black-metal.css и отменяет металлическую кромку. */
:root { --surface-2: color-mix(in srgb, var(--surface) 82%, var(--text)); --edge: color-mix(in srgb, var(--accent) 55%, #000); --radius: 18px; }
:root[data-theme="light"] { --surface-2: #e6ebf0; --bg: #eef1f4; --text: #13181d; }
body { background: var(--bg) !important; }

/* панели без металла: ровная заливка и крупное скругление */
.card, .composer, .pair-card, .msg.assistant, .msg-row, .owner-banner, .sheet, .modal-card, .msg-pinned {
  border: 0 !important; background: var(--surface) !important; box-shadow: none !important; border-radius: var(--radius) !important; }
.card::after, .composer::after, .sheet::after, .pair-card::after, .owner-banner::after { display: none !important; }
.composer { border-radius: 24px !important; margin: 8px 10px calc(8px + var(--safe-b)); padding: 8px !important; }
.topbar { background: transparent !important; border-bottom: 0 !important; backdrop-filter: none !important; }
.drawer { border-left: 0 !important; background: var(--bg2) !important; border-radius: 22px 0 0 22px; }
.drawer-head { border-bottom: 0; }
.sheet .item, .drawer .item, .item { border: 0 !important; background: var(--surface-2) !important; border-radius: 14px !important; }
.card h3 { color: var(--text); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

/* шапка: щит с флагом и «.ru», название обычным шрифтом Oswald */
.topbar .logo { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--text) !important; filter: none !important;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 20px; }
.topbar::before { content: ""; width: 34px; height: 40px; flex: none; background: url("/icons/shield.svg") center/contain no-repeat; }
.hud .shield { display: none !important; }
body.chatting .hud .shield { display: none !important; }

/* пузыри: свои цветом акцента, острый угол у автора */
.msg { border: 0 !important; border-radius: 18px 18px 18px 5px !important; padding: 9px 14px; }
.msg.user { background: var(--accent) !important; color: #06222a; border-radius: 18px 18px 5px 18px !important; }
.msg.user a, .msg.user .meta, .msg.user .quote { color: inherit !important; opacity: .8; }
.msg.assistant { background: var(--surface) !important; }
.msg.system, .msg.event { background: transparent !important; border: 1px dashed var(--line) !important; border-radius: 14px !important; }
.msg pre { background: var(--surface-2); border: 0; border-radius: 12px; }

/* кнопки: объёмная нижняя грань, утапливаются при нажатии */
button, .button, input, select, textarea { border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); }
button, .button { box-shadow: 0 3px 0 color-mix(in srgb, var(--surface-2) 40%, #000); transition: transform .08s, box-shadow .08s; font-weight: 600; }
button:hover, .button:hover { border-color: transparent; filter: brightness(1.08); }
button:active, .button:active { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
button.primary { clip-path: none !important; color: #06222a !important; border-radius: 16px; min-height: 48px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)) !important;
  box-shadow: 0 4px 0 var(--edge), 0 12px 18px -10px var(--accent) !important; }
button.primary:active { transform: translateY(4px); box-shadow: 0 0 0 transparent !important; }
button.danger { background: linear-gradient(180deg, #ff7a6a, #f0584a); color: #fff; box-shadow: 0 3px 0 #a3332a; }
.icon-btn { background: transparent; box-shadow: none; }
.icon-btn:active { transform: none; }
.mic { border-radius: 50% !important; width: 48px !important; height: 48px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)) !important; color: #06222a;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent) !important; }
.mic.rec { background: linear-gradient(180deg, #ff7a6a, #f0584a) !important; color: #fff; }
.send { border-radius: 50% !important; width: 48px; height: 48px; background: var(--accent); color: #06222a; }
input, select, textarea { box-shadow: inset 0 0 0 1px var(--line); padding: 11px 14px; }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.dot.ok { box-shadow: none; } .dot.warn { box-shadow: none; } .dot.bad { box-shadow: none; }

/* фон: пользователь может отключить карту */
#holo-map { opacity: .55; }

/* предложение приложения (offer.js) */
#app-offer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -18px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; animation: rise .25s ease-out; }
#app-offer .offer-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; margin-bottom: 4px; }
#app-offer .offer-title { font-size: 17px; }
#app-offer .offer-text { margin: 0; color: var(--muted); font-size: 14px; }
#app-offer .offer-row { display: flex; flex-direction: column; gap: 10px; }
#app-offer .offer-row > * { width: 100%; }
#app-offer .offer-later { background: transparent; box-shadow: none; color: var(--muted); min-height: 36px; font-weight: 500; }
