/* CLAMEVET · Memoria regulatoria viva — prototipo. UI estilo Reddit: limpia, plana, tipografía Inter. */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #181c1f;
  --muted: #5c6670;
  --faint: #9aa2ad;
  --green: #8a0b87;        /* violeta institucional (nombre legado) */
  --green-deep: #2c0230;
  --green-mid: #5c135f;
  --gold: #c9a45c;
  --gold-soft: #e6d5b0;
  --line: #e6e8ec;
  --tint: #f7eaf7;
  --hover: #f2f4f6;
  --pill: #eef1f4;
  --danger: #a4442e;
  --radius: 14px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--green); }

/* ---------- LOGIN ---------- */
.login-screen {
  position: fixed; inset: 0; z-index: 50; display: flex;
  background: linear-gradient(155deg, #23022a 0%, #3f0040 55%, #6a1d6e 100%);
  color: #f3eef4; overflow: hidden;
}
.login-screen::after {
  content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px;
  border: 1px solid rgba(201,164,92,0.25); border-radius: 50%;
}
.login-screen::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border: 1px solid rgba(201,164,92,0.18); border-radius: 50%;
}
.login-left {
  flex: 1.2; padding: 7vh 6vw; display: flex; flex-direction: column; justify-content: space-between;
}
.login-kicker { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.login-kicker::after { content: ""; display: block; width: 34px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }
.login-title { font-family: var(--serif); font-size: clamp(42px, 6vw, 74px); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; }
.login-title em { font-style: italic; color: var(--gold-soft); }
.login-sub { max-width: 46ch; color: rgba(243,238,244,0.75); margin-top: 18px; font-size: 16px; }
.login-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.login-chips span { border: 1px solid rgba(243,238,244,0.28); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: rgba(243,238,244,0.85); }
.login-foot { font-size: 12px; color: rgba(243,238,244,0.5); }
.login-right { flex: 0.9; display: flex; align-items: center; justify-content: center; padding: 4vh 5vw; position: relative; z-index: 2; }
.login-card {
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 38px 36px;
  width: min(400px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.login-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.login-card .lc-sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.login-card label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 14px 0 6px; }
.login-card input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #f8f9fb; font-family: inherit; font-size: 14px; color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-mid);
  color: #fff; border: none; border-radius: 999px; padding: 11px 22px;
  font-weight: 600; font-size: 13.5px; transition: background 0.15s ease;
}
.btn:hover { background: var(--green); }
.btn.block { width: 100%; margin-top: 24px; }
.btn.ghost { background: transparent; color: var(--green-mid); border: 1px solid #d9c2d9; }
.btn.ghost:hover { background: var(--tint); }
.btn.gold { background: var(--gold); color: #241d10; }
.demo-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- APP SHELL ---------- */
.app { display: none; min-height: 100vh; }
.app.visible { display: block; }
.app-header {
  position: sticky; top: 0; z-index: 40; height: 58px;
  background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
}
.h-logo { display: flex; align-items: center; flex-shrink: 0; }
.h-logo img { height: 32px; display: block; }
.h-search { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.h-search .hs-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; color: var(--faint); pointer-events: none;
}
.h-search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid transparent;
  background: var(--pill); padding: 0 18px 0 38px; font-family: inherit; font-size: 13.5px; color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.h-search input::placeholder { color: var(--faint); }
.h-search input:hover { background: #e8ebef; }
.h-search input:focus { outline: none; background: var(--card); border-color: var(--green-mid); box-shadow: 0 2px 12px rgba(44,2,48,0.10); }
.h-search .search-sugg {
  position: absolute; left: 0; right: 0; top: 48px; z-index: 45;
  box-shadow: 0 14px 40px rgba(24,28,31,0.14); border-radius: 14px;
}
.h-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-body { display: flex; }
.sidebar {
  width: 268px; flex-shrink: 0;
  padding: 18px 14px; display: flex; flex-direction: column;
  position: sticky; top: 58px; height: calc(100vh - 58px);
  border-right: 1px solid var(--line);
}
.side-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 4px 14px 8px; }
.content { flex: 1; display: flex; justify-content: center; gap: 26px; padding: 0 28px; min-width: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  color: #3f4650; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background 0.12s ease;
}
.nav a:hover { background: var(--hover); }
.nav a.active { background: var(--tint); color: var(--green-mid); font-weight: 700; }
.nav a.active .ico { color: var(--green); }
.nav .ico { width: 20px; text-align: center; font-size: 15px; color: var(--faint); }
.nav .count {
  margin-left: auto; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px;
}
.side-user {
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 10px 12px; display: flex; gap: 10px; align-items: center;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-mid);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px;
  flex-shrink: 0;
}
.side-user .u-name { font-size: 13px; font-weight: 600; }
.side-user .u-org { font-size: 11px; color: var(--muted); }

.main { width: 100%; max-width: 780px; min-width: 0; padding: 0 0 60px; }

/* columna derecha estilo Reddit */
.rail {
  width: 316px; flex-shrink: 0;
  position: sticky; top: 58px; height: fit-content;
  padding: 34px 0 40px; display: flex; flex-direction: column; gap: 16px;
}
.rail-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px;
}
.rail-head { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); font-weight: 700; margin-bottom: 4px; }
.rail-item { padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rail-item:last-child { border-bottom: none; }
.rail-item .ri-t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.rail-item:hover .ri-t { color: var(--green-mid); }
.rail-item .ri-m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rail-more { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 10px; text-decoration: none; color: var(--green-mid); }
.rail-more:hover { text-decoration: underline; }
.proto-banner {
  background: var(--tint); color: var(--green-mid); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; border: 1px solid #e8d3e8; border-top: none;
  padding: 6px 14px; border-radius: 0 0 10px 10px; display: inline-block; margin-bottom: 4px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 14px; }
.topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.topbar .t-sub { color: var(--muted); font-size: 13px; margin-top: 3px; max-width: 62ch; }
.bell { position: relative; background: transparent; border: none; border-radius: 999px; width: 40px; height: 40px; font-size: 17px; }
.bell:hover { background: var(--hover); }
.bell .dot {
  position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(138,11,135,0.45);} 50% { box-shadow: 0 0 0 6px rgba(138,11,135,0);} }

/* ---------- GENERIC ---------- */
.view { display: none; animation: fadein 0.3s ease; }
.view.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.grid { display: grid; gap: 12px; }
.grid.c4 { grid-template-columns: repeat(2, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); font-weight: 700; }
.card.stat { padding: 16px 18px; }
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.stat .lbl { color: var(--muted); font-size: 12.5px; }
.stat .delta { font-size: 11.5px; color: var(--green-mid); font-weight: 600; margin-top: 4px; }
h3.sec { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 12px; }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 3px 10px; text-transform: uppercase;
}
.badge.green { background: var(--tint); color: var(--green-mid); }
.badge.gold { background: #f6ecd8; color: #8a6a2a; }
.badge.dark { background: var(--green-deep); color: var(--gold-soft); }
.badge.red { background: #f7e5e0; color: var(--danger); }
.badge.grey { background: #edeff2; color: var(--muted); }

/* ---------- FORO (feed estilo Reddit) ---------- */
.foro-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab {
  border: none; background: transparent; border-radius: 999px; padding: 7px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.tab:hover { background: var(--hover); }
.tab.active { background: var(--green-mid); color: #fff; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.on { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pill); color: #38404a; border-radius: 999px;
  padding: 6px 13px; font-size: 12px; font-weight: 600; user-select: none;
  transition: background 0.12s;
}
.pill:hover { background: #e3e7ec; }
.pill.vote-pill { cursor: pointer; }
.pill.on { background: var(--tint); color: var(--green); box-shadow: inset 0 0 0 1px #e0bfe0; }
.topic-row {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.12s;
}
.topic-row:hover { background: #fafbfc; }
.topic-row:last-child { border-bottom: none; }
.topic-row .t-title { font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.35; margin: 4px 0 10px; }
.topic-row .t-meta { color: var(--muted); font-size: 12px; }
.t-pills { display: flex; gap: 8px; align-items: center; }
.cat-tag { color: var(--green-mid); font-weight: 700; }
.conclusion {
  border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold);
  background: #fdf9ef; border-radius: 12px; padding: 14px 18px; margin: 14px 0;
}
.conclusion .c-k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6a2a; font-weight: 700; margin-bottom: 6px; }
.memory-alert {
  border: 1px solid var(--gold); background: #fdf9ef; border-radius: 12px; padding: 16px 18px;
  margin-top: 12px; display: none; animation: fadein 0.3s ease;
}
.memory-alert.visible { display: block; }
.memory-alert b { color: #7a5c20; }
.post { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post .avatar { width: 30px; height: 30px; font-size: 11.5px; background: var(--tint) !important; color: var(--green-mid) !important; }
.post .p-body { flex: 1; min-width: 0; font-size: 14px; }
.post .p-head { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post .p-head b { color: var(--ink); }
.doc-link {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tint);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; color: var(--green-mid);
  font-weight: 600; margin-top: 10px; text-decoration: none;
}
.doc-link:hover { background: #efdcef; }
input.field, textarea.field, select.field {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #f8f9fb; font-family: inherit; font-size: 14px; color: var(--ink); resize: vertical;
}
input.field:focus, textarea.field:focus, select.field:focus { outline: none; border-color: var(--green-mid); background: var(--card); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 10px; }

/* búsqueda con sugerencias */
.search-sugg {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card); display: none; animation: fadein 0.2s ease;
}
.search-sugg.visible { display: block; }
.sg-head { padding: 10px 16px 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); font-weight: 700; }
.sg-row { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.sg-row:hover { background: var(--hover); }
.sg-main { flex: 1; min-width: 0; }
.sg-t { font-weight: 600; font-size: 13.5px; }
.sg-c { font-size: 12px; color: #8a6a2a; margin-top: 2px; }
.sg-c.open { color: var(--green-mid); }
.sg-none { padding: 12px 16px; font-size: 13px; color: var(--muted); }

/* citar normas en posts */
.cite-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cite-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--tint); color: var(--green-mid);
  border: 1px solid #e0bfe0; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600;
}
.cc-chip .x { cursor: pointer; color: var(--faint); font-weight: 700; }
.cc-chip .x:hover { color: var(--danger); }
.cite-picker {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  max-height: 240px; overflow-y: auto; animation: fadein 0.2s ease;
}
.cp-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cp-row:last-child { border-bottom: none; }
.cp-row:hover { background: var(--hover); }
.cp-t { font-size: 13px; font-weight: 600; }
.cp-s { font-size: 11.5px; color: var(--muted); }
.p-cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.pc-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--green-mid);
  border: 1px solid #e0bfe0; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pc-chip:hover { background: var(--green-mid); color: #fff; }
.frag-inline {
  margin-top: 8px; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; animation: fadein 0.25s ease;
}

/* votos y hilos */
.p-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.p-vote {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: #38404a; cursor: pointer; border-radius: 999px;
  padding: 5px 12px; background: var(--pill); user-select: none; transition: background 0.12s;
}
.p-vote:hover { background: #e3e7ec; }
.p-vote.on { background: var(--tint); color: var(--green); box-shadow: inset 0 0 0 1px #e0bfe0; }
.p-vote.big { font-size: 13.5px; padding: 6px 15px; }
.tema-votebar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.r-act {
  font-size: 12px; font-weight: 600; color: #38404a; cursor: pointer; text-decoration: none;
  background: var(--pill); border-radius: 999px; padding: 5px 12px; transition: background 0.12s;
}
.r-act:hover { background: #e3e7ec; }
.post.child { margin-left: 42px; border-left: 2px solid #e0bfe0; padding-left: 14px; }
.mini-composer { margin-top: 10px; }

/* ---------- ASISTENTE ---------- */
.chat-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 240px); min-height: 480px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 6px 4px 14px; }
.msg { max-width: 76%; margin-bottom: 14px; animation: fadein 0.25s ease; }
.msg.user { margin-left: auto; }
.msg .bubble { border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.msg.user .bubble { background: var(--green-mid); color: #fdf6fd; border-bottom-right-radius: 4px; }
.msg.bot .bubble { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot .bubble.nores { border-left: 4px solid var(--gold); }
.msg .who { font-size: 11px; color: var(--faint); margin: 0 6px 4px; }
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--green); font-weight: 700; font-size: 11px;
  border-radius: 6px; min-width: 20px; height: 18px; padding: 0 4px; cursor: pointer;
  vertical-align: 2px; margin: 0 1px; border: 1px solid #e0bfe0;
}
.cite:hover { background: var(--green); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.25;} 40% { opacity: 1;} }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; color: var(--green-mid); font-weight: 500;
}
.chip:hover { border-color: var(--green); }
.chat-input { display: flex; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; }
.sources-panel { position: sticky; top: 78px; }
.sources-panel .sp-empty { color: var(--muted); font-size: 13px; }
.source-doc { border-bottom: 1px solid var(--line); padding: 12px 0; }
.source-doc:last-child { border-bottom: none; }
.source-doc .sd-title { font-weight: 600; font-size: 13.5px; }
.source-doc .sd-frag { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-style: italic; border-left: 3px solid var(--gold-soft); padding-left: 10px; }

/* ---------- NOVEDADES ---------- */
.nov-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nov-item:last-child { border-bottom: none; }
.nov-date { width: 68px; flex-shrink: 0; text-align: center; }
.nov-date .d-day { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.nov-date .d-mon { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nov-body .n-title { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.nov-body .n-sum { color: var(--muted); font-size: 13px; margin-top: 5px; }
.nov-body .n-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- PRODUCTOS ---------- */
.prod-card { position: relative; }
.prod-card.alerted { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,0.14); }
.prod-card .pr-name { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.prod-card .pr-detail { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.prod-card .pr-detail b { color: var(--ink); font-weight: 600; }
.alert-box {
  margin-top: 14px; background: #fdf9ef; border: 1px solid var(--gold);
  border-radius: 12px; padding: 14px 16px;
}
.alert-box .ab-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #7a5c20; }
.alert-box .ab-body { font-size: 13px; margin-top: 8px; }
.alert-box .ab-diff { margin-top: 8px; font-size: 12.5px; }
.alert-box .ab-diff li { margin-left: 18px; margin-bottom: 3px; }

/* ---------- REVISIÓN ---------- */
.rev-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rev-row:last-child { border-bottom: none; }
.score {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.score.hi { background: var(--tint); color: var(--green); border: 2px solid var(--green); }
.score.mid { background: #f6ecd8; color: #8a6a2a; border: 2px solid var(--gold); }
.rev-row .r-body { flex: 1; }
.rev-row .r-title { font-weight: 600; font-size: 14px; }
.rev-row .r-why { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rev-actions { display: flex; gap: 8px; }
.btn.sm { padding: 8px 16px; font-size: 12.5px; }
.btn.reject { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn.reject:hover { background: var(--hover); }
.rev-done { color: var(--green-mid); font-weight: 700; font-size: 13px; }

@media (max-width: 1420px) {
  .rail { width: 290px; }
}
@media (max-width: 1280px) {
  .rail { display: none; }
}
@media (max-width: 980px) {
  .app-body { flex-direction: column; }
  .sidebar { width: 100%; position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .content { padding: 0 16px; }
  .h-search { max-width: none; }
  .app-header { gap: 10px; }
  .h-right .btn { display: none; }
  .grid.c2 { grid-template-columns: 1fr; }
  .chat-wrap { grid-template-columns: 1fr; }
  .login-screen { flex-direction: column; overflow-y: auto; }
  .login-right { padding-bottom: 8vh; }
}
