/* OmniOne — styles for the inner pages (accounts, profile, forum, downloads).
   Builds on styles.css: same tokens, same world. */

/* --- header additions --------------------------------------------------- */
.account { display: flex; align-items: center; gap: 14px; margin-left: 24px; font-size: 14px; }
.account a { color: var(--dim); text-decoration: none; }
.account a.btn--primary, .account a.btn--primary:hover { color: #021015; }
.account a:hover, .account a[aria-current] { color: var(--fg); }
.account__me { display: inline-flex; align-items: center; gap: 8px; color: var(--fg) !important; }
.account__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.account__dot.is-pending { background: #ffb347; box-shadow: 0 0 8px #ffb347; }
.account__out { margin: 0; }
.account__out button { background: none; border: 0; color: var(--dim); font: inherit; cursor: pointer; padding: 0; }
.account__out button:hover { color: var(--fg); }
.nav a[aria-current] { color: var(--fg); }

.btn--small { padding: 8px 16px; font-size: 14px; }

/* The intro movie, as the logo in the top right of every inner page. */
.logo-mini {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 16px;
  box-shadow: 0 0 0 1px rgba(47, 245, 230, 0.5), 0 0 18px rgba(47, 245, 230, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
.logo-mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-mini:hover { transform: scale(1.06); box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(224, 77, 255, 0.5); }

/* --- page frame ------------------------------------------------------------- */
.page { max-width: 1080px; margin: 0 auto; padding: 48px var(--gutter) 96px; min-height: 70vh; }
.page--narrow { max-width: 480px; }
.page h1 { font: 600 clamp(28px, 4vw, 42px)/1.15 var(--body); margin: 0 0 12px; letter-spacing: -0.01em; }
.page .sub { color: var(--dim); margin: 0 0 28px; }

.flash {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(47, 245, 230, 0.07);
  font-size: 15px;
}
.page .flash { margin: 0 0 20px; }
.flash--error { border-color: rgba(255, 107, 139, 0.55); background: rgba(255, 107, 139, 0.08); color: #ffc2cf; }
.flash--ok { border-color: rgba(47, 245, 230, 0.55); }

/* --- forms -------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { color: #cfe2e7; font-weight: 500; }
.field small { color: var(--dim); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(2, 10, 16, 0.85);
  border: 1px solid rgba(47, 245, 230, 0.22);
  border-radius: 10px;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 11px 13px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 245, 230, 0.15); }
.form .btn { justify-self: start; }
.form__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form__links { font-size: 14px; color: var(--dim); }
.form__links a { color: var(--cyan); }
.legal-note { font-size: 13px; color: var(--dim); margin: 4px 0 14px; line-height: 1.5; }
.legal-note a { color: var(--cyan); }
.code-input { font-size: 28px !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }

button.btn { cursor: pointer; font: inherit; }
.btn--danger { border-color: rgba(255, 107, 139, 0.5); color: #ffb3c3; background: none; }
.btn--danger:hover { border-color: #ff6b8b; background: rgba(255, 107, 139, 0.08); }
.btn--ghost { background: none; }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; }
.link-btn--danger { color: #ff9db2; }

/* --- profile ------------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }
.panel h2 { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; font-weight: 500; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.muted { color: var(--dim); font-size: 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(47, 245, 230, 0.1); white-space: nowrap; }
.table th { color: var(--dim); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.table td.wrap { white-space: normal; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: #cfe2e7; }
.tag--ok { border-color: rgba(47, 245, 230, 0.5); color: var(--cyan); }
.tag--warn { border-color: rgba(255, 179, 71, 0.5); color: #ffcf8a; }
.tag--cloud { border-color: rgba(224, 77, 255, 0.5); color: #f0c8ff; }

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(10, 44, 56, 0.9), rgba(30, 14, 50, 0.8));
  border-color: rgba(47, 245, 230, 0.35);
}
.download h2 { margin-bottom: 6px; }
.download p { margin: 0; color: #c6dbe0; font-size: 15px; max-width: 560px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 8px; }
.bars span { flex: 1; min-width: 6px; background: linear-gradient(0deg, var(--cyan), var(--magenta)); border-radius: 3px 3px 0 0; opacity: 0.8; }

/* --- downloads / Omni series ---------------------------------------------------------- */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.series .card { display: flex; flex-direction: column; gap: 10px; }
.series .card h3 { font-size: 22px; margin: 0; }
.series .card .host { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--dim); }
.series .card p { flex: 1; }
.series .card .btn { align-self: flex-start; margin-top: 8px; }
.series .card--current { border-color: rgba(47, 245, 230, 0.5); box-shadow: 0 0 40px -16px rgba(47, 245, 230, 0.6); }

/* --- forum -------------------------------------------------------------------------- */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.cats a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); text-decoration: none; font-size: 14px; }
.cats a[aria-current] { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.posts li a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; transition: border-color 0.2s; }
.posts li a:hover { border-color: rgba(47, 245, 230, 0.45); }
.posts h3 { margin: 0 0 6px; font-size: 18px; }
.meta { color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: #d9ecef; }
.comments { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.comments li { border-left: 2px solid var(--line); padding: 6px 0 6px 16px; }
.comments p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; gap: 10px; margin-top: 20px; }

/* --- versions ---------------------------------------------------------------- */
.ver {
  display: inline-block;
  font: 500 12px/1 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--cyan);
  padding: 4px 8px;
  border: 1px solid rgba(47, 245, 230, 0.35);
  border-radius: 999px;
  vertical-align: middle;
}
.ver:empty { display: none; }
.foot .ver { font-size: 11px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 245, 230, 0.16), rgba(224, 77, 255, 0.16));
  border: 1px solid rgba(47, 245, 230, 0.4);
  color: var(--fg);
  text-decoration: none;
  font: 500 14px/1 ui-monospace, 'Cascadia Code', Consolas, monospace;
}
.live-badge b { color: var(--cyan); }
.live-badge:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(47, 245, 230, 0.3); }
.live-badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.live-badge__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  animation: live-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes live-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-badge__dot::after { animation: none; } }

/* --- downloads in the profile ------------------------------------------------------ */
.download-hub { border-color: rgba(47, 245, 230, 0.35); background: linear-gradient(160deg, rgba(10, 40, 52, 0.85), rgba(20, 12, 40, 0.75)); }
.dl { padding: 18px 0; border-top: 1px solid rgba(47, 245, 230, 0.12); }
.dl:first-of-type { border-top: 0; padding-top: 4px; }
.dl__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.dl__head h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.dl p { margin: 0 0 10px; color: #c6dbe0; font-size: 14.5px; }
.dl__site { font-size: 13px; color: var(--dim); }
.dl__alt { font-size: 13px !important; color: var(--dim) !important; margin: 8px 0 0 !important; }
.cmd {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(47, 245, 230, 0.28);
  border-radius: 10px;
  background: #020a10;
  overflow: hidden;
}
.cmd code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  overflow-x: auto;
  white-space: nowrap;
  color: #d9fffb;
}
.cmd__copy {
  flex: none;
  border: 0;
  border-left: 1px solid rgba(47, 245, 230, 0.28);
  background: rgba(47, 245, 230, 0.1);
  color: var(--cyan);
  font: 500 13px var(--body);
  padding: 0 16px;
  cursor: pointer;
  min-width: 96px;
}
.cmd__copy:hover { background: rgba(47, 245, 230, 0.2); }

/* --- forum: posts written through the app --------------------------------- */
.tag--via { border-color: rgba(224, 77, 255, 0.45); color: #f0c8ff; }

/* --- connect page ----------------------------------------------------------- */
.connect-code {
  font: 600 34px/1 ui-monospace, 'Cascadia Code', Consolas, monospace;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(47, 245, 230, 0.5);
  border-radius: 12px;
  background: rgba(47, 245, 230, 0.06);
}

/* --- responsive ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* styles.css hides the nav on small screens; keep it, on its own row, so
     Forum and the Omni series stay reachable on a phone. */
  .top { flex-wrap: wrap; row-gap: 10px; }
  .nav { display: flex; order: 5; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .account { margin-left: auto; }
}
@media (max-width: 900px) {
  .grid-2, .series { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { column-gap: 12px; }
  .nav { gap: 14px; font-size: 14px; }
  .account { gap: 10px; font-size: 13px; }
  .account .btn--small { padding: 7px 12px; font-size: 13px; }
  /* No room beside the buttons on a phone: the logo ends the nav row. */
  .nav { width: auto; flex: 1 0 calc(100% - 52px); }
  .logo-mini { order: 6; width: 34px; height: 34px; margin-left: 0; }
  .panel { padding: 20px; }
}

/* OmniOne: the two ways to install */
.install-ways { display: grid; gap: 14px; margin-top: 12px; }
.install-way { display: grid; gap: 6px; justify-items: start; }
.install-way > b { font-size: 13px; letter-spacing: .02em; }
.install-way .cmd { width: 100%; }
.install-way .muted { font-size: 13px; }

/* ---- OmniOne vs Grok vs Muse (home card and /compare.php) ---- */
.vs--ahead { --vs: #7cff9e; }
.vs--par   { --vs: var(--cyan); }
.vs--part  { --vs: #ffc061; }
.vs--miss  { --vs: #ff6b81; }
.vs--skip  { --vs: var(--dim); }

.vs-card {
  margin-top: 28px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(10, 40, 52, 0.78), rgba(6, 18, 28, 0.72));
  display: grid;
  gap: 14px;
}
.vs-card__title { margin: 0; font: 600 clamp(26px, 3.8vw, 40px)/1.1 var(--body); letter-spacing: -0.015em; text-wrap: balance; }
.vs-card__title span { font-family: var(--display); font-weight: 400; font-size: 0.6em; color: var(--cyan); padding: 0 0.15em; vertical-align: 0.15em; }
.vs-card__lede { margin: 0; max-width: 68ch; color: #b9ccd4; font-size: 16px; }
.vs-card__meta { margin: 0; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.vs-card__go { justify-self: start; margin-top: 6px; }

.vs-tally {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.vs-tally__item {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 16px 14px;
  background: rgba(2, 10, 16, 0.86);
  color: var(--fg);
  transition: background 0.15s ease;
}
.vs-tally__item:hover { background: rgba(10, 34, 46, 0.95); }
.vs-tally__item:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.vs-tally__item[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--vs); background: rgba(10, 34, 46, 0.95); }
.vs-tally__n { font: 600 clamp(30px, 3.6vw, 40px)/1 var(--body); color: var(--vs); font-variant-numeric: tabular-nums; }
.vs-tally__l { font-size: 13px; line-height: 1.35; color: var(--dim); }
.vs-tally__l b { color: var(--fg); font-weight: 600; }
/* Five counts: on narrower screens the last one widens to close the row. */
@media (max-width: 820px) {
  .vs-tally { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-tally__item:last-child { grid-column: span 2; }
}
@media (max-width: 480px) {
  .vs-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-tally__item:last-child { grid-column: span 2; }
}

.vs-section { margin-top: 56px; }
.vs-section h2 { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--body); margin: 0 0 12px; }
.vs-filter-note { margin: 0 0 10px; font-size: 14px; color: var(--cyan); }
.vs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 13px; color: var(--dim); }
.vs-legend span { display: inline-flex; align-items: center; gap: 6px; }

.vs-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(2, 10, 16, 0.72); }
.vs-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.vs-table th, .vs-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(47, 245, 230, 0.08); }
.vs-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.vs-table .c { text-align: center; width: 84px; }
.vs-table__cat th { padding-top: 22px; font: 400 13px var(--display); letter-spacing: 0.08em; color: var(--cyan); border-bottom-color: var(--line); }
.vs-us { background: rgba(47, 245, 230, 0.05); }
.vs-feat b { font-weight: 600; }
.vs-feat small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }
.vs-new { display: inline-block; margin-left: 8px; padding: 2px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7cff9e; border: 1px solid rgba(124, 255, 158, 0.6); border-radius: 4px; vertical-align: 1px; }
.vs-plan { display: block; margin-top: 4px; font-size: 12px; color: #8fb3c2; }
.vs-pill { display: inline-block; padding: 4px 9px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--vs); background: color-mix(in srgb, var(--vs) 14%, transparent); border-radius: 4px; }

.vs-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dim); vertical-align: middle; }
.vs-dot--y { background: var(--fg); border-color: var(--fg); }
.vs-dot--p { background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); border-color: var(--fg); }
.vs-dot--n { border-style: dashed; opacity: 0.45; }
.vs-us .vs-dot--y { background: var(--cyan); border-color: var(--cyan); }
.vs-us .vs-dot--p { background: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); border-color: var(--cyan); }

.vs-next { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vs-next li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.vs-next__when { font: 400 15px var(--display); color: var(--cyan); padding-top: 2px; }
.vs-next h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.vs-next h3 span { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.vs-next p { margin: 0; color: #b9ccd4; font-size: 15px; max-width: 70ch; }
.vs-sources { margin-top: 40px; font-size: 13px; color: var(--dim); max-width: 75ch; }

/* ---- Chat with Omi-One (chat.php, profile card) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chat-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.chat-card h2 { margin-bottom: 6px; }
.chat-card p { margin: 0; max-width: 60ch; }
.chat-card__side { display: grid; gap: 8px; justify-items: start; }
.chat-card__how { font-size: 13px; }
.chat-card__state, .chatroom__state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.chat-card__state i, .chatroom__state i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.chat-card__state.is-on, .chatroom__state.is-on { color: var(--fg); }
.chat-card__state.is-on i, .chatroom__state.is-on i { background: #7cff9e; box-shadow: 0 0 10px #7cff9e; }
.chat-card__state.is-away i, .chatroom__state.is-away i { background: #ffc061; }

/* The room fills the screen under the header, like a messaging app. */
.chatroom {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: calc(100dvh - 150px);
  min-height: 420px;
  max-width: 820px;
  margin: -24px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 10, 16, 0.78);
  overflow: hidden;
}
.chatroom__head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chatroom__head h1 { margin: 0 0 2px; font: 600 20px/1.2 var(--body); }
.chatroom__state { margin: 0; font-size: 13px; }

.chatroom__log { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.chatroom__empty { margin: auto; max-width: 42ch; text-align: center; color: var(--dim); }

.chatmsg { max-width: min(78%, 560px); display: grid; gap: 6px; }
.chatmsg--you { align-self: flex-end; }
.chatmsg--omi, .chatmsg--system { align-self: flex-start; }
.chatmsg__body { padding: 10px 14px; border-radius: 14px; line-height: 1.5; font-size: 15.5px; overflow-wrap: anywhere; }
.chatmsg__body:empty { display: none; }
.chatmsg--you .chatmsg__body { background: linear-gradient(135deg, rgba(47, 245, 230, 0.22), rgba(77, 123, 255, 0.22)); border: 1px solid rgba(47, 245, 230, 0.35); border-bottom-right-radius: 4px; }
.chatmsg--omi .chatmsg__body { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatmsg.is-writing .chatmsg__body { border-color: rgba(47, 245, 230, 0.5); }
.chatmsg.is-error .chatmsg__body { border-color: rgba(255, 107, 129, 0.6); }
.chatmsg__text { white-space: pre-wrap; }
.chatmsg__text + .chatmsg__text, .chatmsg__body pre + .chatmsg__text { margin-top: 8px; }
.chatmsg__body a { color: var(--cyan); }
.chatmsg__body pre { margin: 8px 0; padding: 10px 12px; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font: 13px/1.45 ui-monospace, Consolas, monospace; white-space: pre; }
.chatmsg__files { display: flex; flex-wrap: wrap; gap: 6px; }
.chatmsg--you .chatmsg__files { justify-content: flex-end; }
.chatmsg__files img, .chatmsg__files video { max-width: min(280px, 100%); max-height: 320px; border-radius: 10px; border: 1px solid var(--line); display: block; background: #000; }
.chatmsg__files audio { width: min(280px, 100%); }
.chatmsg__doc { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan); font-size: 14px; text-decoration: none; }
.chatmsg__meta { font-size: 11.5px; color: var(--dim); }
.chatmsg--you .chatmsg__meta { text-align: right; }

.chatroom__approvals:empty { display: none; }
.chatroom__approvals { padding: 10px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-height: 45dvh; overflow-y: auto; }
.chatappr { border: 1px solid rgba(255, 192, 97, 0.55); border-radius: 12px; padding: 12px 14px; background: rgba(255, 192, 97, 0.06); }
.chatappr h2 { margin: 0 0 8px; font: 600 15px/1.3 var(--body); }
.chatappr pre { margin: 0 0 10px; max-height: 160px; overflow: auto; padding: 8px 10px; background: #000; border-radius: 8px; font: 12.5px/1.4 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatappr__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chatappr__row input { width: 7.5em; padding: 8px 10px; font: inherit; color: var(--fg); background: #000; border: 1px solid var(--line); border-radius: 8px; letter-spacing: 0.2em; }
.chatappr__note { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.chatappr__note.is-bad { color: #ff6b81; }

.chatroom__compose { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chatroom__row { display: flex; align-items: flex-end; gap: 8px; }
.chatroom__row textarea {
  flex: 1; min-width: 0; resize: none; max-height: 160px;
  padding: 10px 12px; font: 16px/1.4 var(--body); color: var(--fg);
  background: #000; border: 1px solid var(--line); border-radius: 12px;
}
.chatroom__row textarea:focus { outline: none; border-color: var(--cyan); }
.chatroom__icon, .chatroom__send {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--cyan);
}
.chatroom__icon svg, .chatroom__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.chatroom__icon:focus-within, .chatroom__send:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chatroom__send { background: linear-gradient(90deg, var(--cyan), var(--blue)); color: #02070c; border: none; }
.chatroom__send svg { fill: currentColor; stroke: none; }
.chatroom__send:disabled { opacity: 0.5; cursor: progress; }
.chatroom__files { display: flex; flex-wrap: wrap; gap: 6px; }
.chatroom__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 4px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; }
.chatroom__chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.chatroom__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatroom__chip button { border: none; background: none; color: var(--dim); font-size: 16px; cursor: pointer; }
.chatroom__error { margin: 0; font-size: 13px; color: #ff6b81; }

@media (max-width: 640px) {
  .chatroom { margin: -36px calc(-1 * var(--gutter)) 0; border-left: none; border-right: none; border-radius: 0; height: calc(100dvh - 120px); }
  .chatmsg { max-width: 88%; }
}
.account .nav-lang { color: var(--cyan); }
