/* ═══════════════════════════════════════
   LexAI — styles.css
   ═══════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg:  #eef3fb;
  --sf:  #fff;
  --sf2: #dde8f8;
  --bd:  #b8cef0;
  --bd2: #8aaee0;
  --ac:  #1a4fa0;
  --ac2: #2563c0;
  --ad:  rgba(26,79,160,.08);
  --am:  rgba(26,79,160,.16);
  --ag:  0 0 20px rgba(26,79,160,.14);
  --tx:  #0d1f3c;
  --mu:  #4a6490;
  --di:  #90a8c8;
  --ub:  #dceaf8;
  --ab:  #fff;
  --gn:  #1a6e4a;
  --rd:  #8c3030;
  --fs:  'Cormorant Garamond', Georgia, serif;
  --fm:  'DM Mono', monospace;
  --sw:  268px;
}

body.dark {
  --bg:  #0b0f1a;
  --sf:  #111827;
  --sf2: #161d2e;
  --bd:  #1e2d45;
  --bd2: #2a3f60;
  --ac:  #4a80c8;
  --ac2: #5a90d8;
  --ad:  rgba(74,128,200,.10);
  --am:  rgba(74,128,200,.20);
  --ag:  0 0 20px rgba(74,128,200,.15);
  --tx:  #d8e4f5;
  --mu:  #6888aa;
  --di:  #2e4060;
  --ub:  #0e1e38;
  --ab:  #111827;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--fs);
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 60%, rgba(100,130,200,.10) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── App Shell ── */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  max-width: 1380px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
#sb {
  width: var(--sw);
  min-width: var(--sw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sf);
  border-right: 1px solid var(--bd);
  transition: width .28s ease, min-width .28s ease;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 20;
}
#sb.off { width: 0; min-width: 0; border-right: none; }

.sbhd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}
.sblogo { display: flex; align-items: center; gap: 10px; }

.sbseal {
  width: 32px; height: 32px;
  border: 1px solid var(--ac);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ag);
  flex-shrink: 0;
}
.sbseal svg { width: 15px; height: 15px; stroke: var(--ac); fill: none; }

.sbnm {
  font-family: var(--fs);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .14em;
  color: var(--tx);
  text-transform: uppercase;
}
.sbnm em { color: var(--ac); font-style: normal; }

.sbcol {
  width: 28px; height: 28px;
  border: 1px solid var(--bd);
  background: transparent;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--mu);
  transition: all .2s;
  flex-shrink: 0;
}
.sbcol:hover { border-color: var(--ac); color: var(--ac); }
.sbcol svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

.ncbtn {
  margin: 14px 14px 8px;
  display: flex; align-items: center; gap: 9px;
  background: var(--ac);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,79,160,.2);
}
.ncbtn:hover { background: var(--ac2); transform: translateY(-1px); }
.ncbtn svg { width: 14px; height: 14px; stroke: #fff; fill: none; flex-shrink: 0; }

.sbsec {
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--di);
  padding: 10px 16px 5px;
  flex-shrink: 0;
}

.hlist { flex: 1; overflow-y: auto; padding: 4px 8px; }
.hlist::-webkit-scrollbar { width: 3px; }
.hlist::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

.hi {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.hi:hover { background: var(--ad); }
.hi.on   { background: var(--am); }

.hiic {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--sf2);
  border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hiic svg { width: 12px; height: 12px; stroke: var(--mu); fill: none; }
.hi.on .hiic { background: var(--ad); border-color: var(--ac); }
.hi.on .hiic svg { stroke: var(--ac); }

.hiinf { flex: 1; overflow: hidden; }
.hittl {
  font-family: var(--fs);
  font-size: 13px;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.hi.on .hittl { color: var(--ac); }
.hitm { font-family: var(--fm); font-size: 9px; color: var(--di); margin-top: 2px; }

.hidel {
  width: 20px; height: 20px;
  background: none; border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--di);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all .15s;
  flex-shrink: 0;
}
.hi:hover .hidel { opacity: 1; }
.hidel:hover { background: rgba(140,48,48,.12); color: var(--rd); }
.hidel svg { width: 11px; height: 11px; stroke: currentColor; fill: none; }

.hemp {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px; gap: 8px; text-align: center;
}
.hemp svg { width: 26px; height: 26px; stroke: var(--di); fill: none; }
.hemp p {
  font-family: var(--fm);
  font-size: 9.5px;
  color: var(--di);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.7;
}

.sbft { border-top: 1px solid var(--bd); padding: 14px; flex-shrink: 0; }
.sbftl {
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--di);
  margin-bottom: 8px;
}

.throw { display: flex; gap: 8px; }
.thbtn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: transparent;
  cursor: pointer;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--mu);
  transition: all .2s;
}
.thbtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; flex-shrink: 0; }
.thbtn:hover { border-color: var(--ac); color: var(--ac); background: var(--ad); }
.thbtn.on { border-color: var(--ac); color: var(--ac); background: var(--ad); font-weight: 600; }

/* Mobile sidebar toggle */
#xbtn {
  display: none;
  position: fixed;
  left: 12px; top: 14px;
  width: 32px; height: 32px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: var(--mu);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: all .2s;
}
#xbtn.show { display: flex; }
#xbtn:hover { border-color: var(--ac); color: var(--ac); }
#xbtn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* ═══════════════════════════════════════
   MAIN PANEL
   ═══════════════════════════════════════ */
#main { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; min-width: 0; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--bd);
  background: rgba(238,243,251,.97);
  backdrop-filter: blur(20px);
}
body.dark header { background: rgba(11,15,26,.97); }

.logo { display: flex; align-items: center; gap: 14px; }
.lseal {
  width: 46px; height: 46px;
  border: 1px solid var(--ac);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ag);
  flex-shrink: 0;
}
.lseal svg { width: 22px; height: 22px; stroke: var(--ac); fill: none; }
.lnm {
  font-family: var(--fs);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tx);
  line-height: 1;
}
.lnm em { color: var(--ac); font-style: normal; }
.ltg {
  font-family: var(--fm);
  font-size: 9.5px;
  color: var(--mu);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 3px;
}

.hdrright { display: flex; align-items: center; gap: 10px; }

/* Status pill */
.spill {
  display: flex; align-items: center; gap: 7px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 6px 14px;
}
.sdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gn);
  box-shadow: 0 0 6px var(--gn);
  animation: bth 3s ease-in-out infinite;
}
@keyframes bth { 0%,100%{opacity:1} 50%{opacity:.4} }
.slbl { font-family: var(--fm); font-size: 10px; color: var(--mu); letter-spacing: .14em; text-transform: uppercase; }

/* ── Edit Button ── */
.editbtn {
  display:flex; align-items:center; gap:7px;
  padding:7px 16px;
  background:transparent;
  border:1px solid var(--bd2);
  border-radius:20px;
  cursor:pointer;
  font-family:var(--fm);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--mu);
  transition:all .22s;
}
.editbtn:hover { border-color:var(--ac); color:var(--ac); background:var(--ad); transform:translateY(-1px); }
.editbtn:active { transform:translateY(0); }
.editbtn svg { width:13px; height:13px; stroke:currentColor; fill:none; flex-shrink:0; }
@media(max-width:680px){.editbtn span{display:none;}}

/* ── Export Button ── */
.expbtn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  background: var(--ac);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: all .22s;
  box-shadow: 0 2px 10px rgba(26,79,160,.25);
}
.expbtn:hover { background: var(--ac2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,79,160,.35); }
.expbtn:active { transform: translateY(0); }
.expbtn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.expbtn svg { width: 13px; height: 13px; stroke: #fff; fill: none; flex-shrink: 0; }
.expbtn.spin svg { animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════ */
#msgs {
  flex: 1;
  overflow-y: auto;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}
#msgs::-webkit-scrollbar { width: 3px; }
#msgs::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

/* Welcome screen */
.wlc {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: ri .6s ease both;
}
@keyframes ri { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

.wseal {
  width: 84px; height: 84px;
  border: 1px solid var(--ac);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--ag);
  animation: fl 5s ease-in-out infinite;
}
@keyframes fl { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.wseal svg { width: 38px; height: 38px; stroke: var(--ac); fill: none; }

.wttl {
  font-family: var(--fs);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx);
  margin-bottom: 4px;
}
.wttl em { color: var(--ac); font-style: normal; }
.wsub {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--mu);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.wdiv {
  width: 60px; height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
}

.sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 680px; width: 100%; }
.chip {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--fs);
  font-size: 14px;
  color: var(--mu);
  line-height: 1.5;
  font-style: italic;
  transition: all .22s;
}
.chip:hover { border-color: var(--ac); background: var(--ad); color: var(--tx); transform: translateY(-2px); box-shadow: var(--ag); }
.chipl {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--ac);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
  font-style: normal;
}

/* Message bubbles */
.msg { display: flex; gap: 12px; margin-bottom: 20px; animation: mi .28s ease both; }
@keyframes mi { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.msg.usr { flex-direction: row-reverse; }

.av {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .08em;
  flex-shrink: 0;
  margin-top: 2px;
  text-transform: uppercase;
}
.msg.usr .av { background: var(--am); border: 1px solid var(--ac); color: var(--ac); }
.msg.ai  .av { background: var(--sf2); border: 1px solid var(--bd2); color: var(--mu); }

.mb { max-width: 74%; display: flex; flex-direction: column; gap: 4px; }
.msg.usr .mb { align-items: flex-end; }

.bbl {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  font-family: var(--fs);
}
.msg.usr .bbl { background: var(--ub); border: 1px solid var(--bd2); border-top-right-radius: 3px; color: var(--tx); }
.msg.ai  .bbl { background: var(--ab); border: 1px solid var(--bd);  border-top-left-radius: 3px;  color: var(--tx); }

.bbl strong { color: var(--ac); font-weight: 600; }
.bbl em { color: var(--ac2); }
.bbl code {
  font-family: var(--fm);
  font-size: 12px;
  background: var(--ad);
  border: 1px solid var(--bd);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ac);
}
.bbl pre {
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 14px;
  margin: 8px 0;
  font-family: var(--fm);
  font-size: 12px;
  line-height: 1.6;
  color: var(--tx);
  overflow-x: auto;
}
.bbl pre code { background: none; border: none; padding: 0; }
.bbl ul, .bbl ol { margin: 6px 0 6px 20px; line-height: 1.9; }
.bbl p { margin: 4px 0; }
.mt { font-family: var(--fm); font-size: 9px; color: var(--di); padding: 0 4px; }

/* Typing indicator */
.dots { display: flex; align-items: center; gap: 5px; padding: 14px 16px; }
.dot {
  width: 5px; height: 5px;
  background: var(--ac);
  border-radius: 50%;
  animation: bn 1.4s ease-in-out infinite;
  opacity: .4;
}
.dot:nth-child(2) { animation-delay: .22s; }
.dot:nth-child(3) { animation-delay: .44s; }
@keyframes bn { 0%,60%,100%{transform:translateY(0);opacity:.3} 30%{transform:translateY(-5px);opacity:1} }

/* Streaming cursor */
.cur {
  display: inline-block;
  width: 2px; height: 15px;
  background: var(--ac);
  margin-left: 2px;
  vertical-align: middle;
  animation: blk .75s step-end infinite;
}
@keyframes blk { 0%,100%{opacity:1} 50%{opacity:0} }

/* File card inside bubble */
.fcard {
  display: flex; align-items: center; gap: 10px;
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
}
.fcico { width: 26px; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.fcico.pdf { background: rgba(160,60,60,.12); }
.fcico.doc { background: rgba(26,79,160,.12); }
.fcinf { flex: 1; overflow: hidden; }
.fcnm { font-family: var(--fm); font-size: 11px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcmt { font-family: var(--fm); font-size: 9px; color: var(--di); margin-top: 1px; }

/* ═══════════════════════════════════════
   INPUT AREA
   ═══════════════════════════════════════ */
.ia {
  padding: 16px 48px 22px;
  border-top: 1px solid var(--bd);
  background: rgba(238,243,251,.98);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}
body.dark .ia { background: rgba(11,15,26,.98); }

/* File chips strip */
.cstrip { display: none; flex-wrap: wrap; gap: 7px; padding: 0 0 10px; align-items: center; }
.cstrip.show { display: flex; }

.cbadge {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mu);
  padding: 3px 10px;
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cbadge.full { color: var(--ac); border-color: var(--bd2); background: var(--ad); }

.fchip {
  display: flex; align-items: center; gap: 6px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 7px;
  padding: 5px 9px;
  font-family: var(--fm);
  font-size: 10px;
  color: var(--mu);
  max-width: 210px;
  animation: ci .18s ease;
}
@keyframes ci { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.fchip.ld { opacity: .6; pointer-events: none; }

.fchi { width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.fchi.pdf { background: rgba(180,70,70,.14); color: #c06060; }
.fchi.doc { background: rgba(26,79,160,.12); color: var(--ac); }
.fchn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: var(--tx); }
.fchs { font-size: 9px; color: var(--di); flex-shrink: 0; }
.fchr { background: none; border: none; cursor: pointer; color: var(--di); padding: 0; line-height: 1; font-size: 16px; transition: color .15s; flex-shrink: 0; }
.fchr:hover { color: var(--rd); }

/* Input row */
.irow {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.irow:focus-within { border-color: var(--ac); box-shadow: 0 0 0 2px var(--ad); }

.attbtn {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--bd);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--mu);
  transition: all .2s;
  background: transparent;
}
.attbtn:hover { border-color: var(--ac); color: var(--ac); background: var(--ad); }
.attbtn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; pointer-events: none; }
.attbtn.off { opacity: .35; cursor: not-allowed; }

#mi {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--tx);
  font-family: var(--fs);
  font-size: 16px;
  resize: none;
  min-height: 26px;
  max-height: 150px;
  line-height: 1.6;
  padding: 5px 0;
  overflow-y: auto;
}
#mi::placeholder { color: var(--di); font-family: var(--fm); font-size: 11.5px; letter-spacing: .06em; }
#mi::-webkit-scrollbar { width: 3px; }
#mi::-webkit-scrollbar-thumb { background: var(--bd); }

.sndbtn {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--ac);
  border: none;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.sndbtn:hover  { background: var(--ac2); transform: scale(1.05); box-shadow: var(--ag); }
.sndbtn:active { transform: scale(.95); }
.sndbtn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.sndbtn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; }

.ifoot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 7px;
  padding: 0 2px;
}
.ihint { font-family: var(--fm); font-size: 9.5px; color: var(--di); letter-spacing: .1em; text-transform: uppercase; }

/* Action strip */
.astrip { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.abtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 22px;
  border: 1px solid var(--bd);
  background: var(--sf);
  color: var(--mu);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .06em;
  cursor: not-allowed;
  transition: all .22s;
  opacity: .4;
  white-space: nowrap;
  user-select: none;
}
.abtn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }
.abtn.on { opacity: 1; cursor: pointer; border-color: var(--ac); color: var(--ac); background: var(--ad); }
.abtn.on:hover  { background: var(--am); transform: translateY(-2px); box-shadow: var(--ag); }
.abtn.on:active { transform: translateY(0); }

/* ═══════════════════════════════════════
   DRAG-DROP OVERLAY
   ═══════════════════════════════════════ */
#drop {
  display: none;
  position: fixed;
  inset: 12px;
  background: rgba(238,243,251,.95);
  border: 2px dashed var(--ac);
  border-radius: 16px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  z-index: 5000;
  backdrop-filter: blur(8px);
}
body.dark #drop { background: rgba(11,15,26,.95); }
#drop.show { display: flex; }
#drop svg { width: 46px; height: 46px; stroke: var(--ac); fill: none; stroke-width: 1.2; }
#drop p   { font-family: var(--fs); font-size: 20px; color: var(--tx); letter-spacing: .06em; }
#drop span { font-family: var(--fm); font-size: 10px; color: var(--mu); letter-spacing: .14em; text-transform: uppercase; }

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
#tst {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: rgba(140,48,48,.12);
  border: 1px solid rgba(140,48,48,.3);
  color: var(--rd);
  font-family: var(--fm);
  font-size: 11px;
  padding: 9px 20px;
  border-radius: 8px;
  z-index: 9999;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
}
#tst.show { transform: translateX(-50%) translateY(0); }
#tst.ok   { background: rgba(26,110,74,.10); border-color: rgba(26,110,74,.35); color: var(--gn); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 680px) {
  #sb { position: fixed; left: 0; top: 0; bottom: 0; }
  #sb.off { transform: translateX(-100%); width: var(--sw); min-width: var(--sw); }
  header  { padding: 14px 18px; }
  #msgs   { padding: 20px 18px; }
  .ia     { padding: 12px 18px 18px; }
  .sugg   { grid-template-columns: 1fr; }
  .expbtn span { display: none; }
}
