/* Spotlight OS — "midnight private bank" theme.
   Dark luxe by default; light theme via [data-theme="light"] on <html>.
   Typography: Playfair Display (display) + Inter (UI), system fallbacks.
   48px+ touch targets, 16px+ body text, high contrast in both themes. */

:root {
  --bg: #0b0d12;
  --card: #141922;
  --card-2: #1a2230;
  --ink: #f4efe3;
  --muted: #b3a78d;
  --faint: #7e7461;
  --line: rgba(212, 169, 78, 0.16);
  --line-strong: rgba(212, 169, 78, 0.38);
  --gold-hi: #f0d998;
  --gold: #d4a94e;
  --gold-deep: #b98a2f;
  --gold-grad: linear-gradient(135deg, #b98a2f 0%, #e9c86f 55%, #f0d998 100%);
  --gold-soft: rgba(212, 169, 78, 0.14);
  --btn-ink: #241a06;
  --green: #6ee7a8;  --green-soft: rgba(110, 231, 168, 0.12);  --green-line: rgba(110, 231, 168, 0.45);
  --red: #fca5a5;    --red-soft: rgba(252, 165, 165, 0.10);    --red-line: rgba(252, 165, 165, 0.45);
  --blue: #8ecdf5;   --blue-soft: rgba(142, 205, 245, 0.12);   --blue-line: rgba(142, 205, 245, 0.45);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --top-hi: inset 0 1px 0 rgba(240, 217, 152, 0.09);
  --input-bg: #10151e;
  --radius: 16px;
}

[data-theme="light"] {
  --bg: #f7f2e6;
  --card: #fffdf6;
  --card-2: #ffffff;
  --ink: #1c2547;
  --muted: #6f6650;
  --faint: #9a917c;
  --line: rgba(150, 110, 40, 0.22);
  --line-strong: rgba(150, 110, 40, 0.45);
  --gold-hi: #8a6420;
  --gold-soft: rgba(185, 138, 47, 0.14);
  --green: #15803d;  --green-soft: #e2f4e8;  --green-line: #9ed7ae;
  --red: #b91c1c;    --red-soft: #fbe3e3;    --red-line: #f0b0b0;
  --blue: #1d4ed8;   --blue-soft: #e1ebfd;   --blue-line: #a9c2f2;
  --shadow: 0 14px 34px rgba(60, 45, 15, 0.14);
  --top-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --input-bg: #ffffff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 50% -160px, rgba(212, 169, 78, 0.10), transparent 60%),
    radial-gradient(800px 500px at 100% 110%, rgba(28, 37, 71, 0.35), transparent 60%);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 88px;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(1100px 480px at 50% -160px, rgba(212, 169, 78, 0.16), transparent 60%),
    radial-gradient(800px 500px at 100% 110%, rgba(150, 110, 40, 0.10), transparent 60%);
}

::selection { background: rgba(212, 169, 78, 0.4); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.serif, h1, h2, .brand, .brand-big, .hero-num, .stat .num, .ice-head span {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 23, 0.96);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
[data-theme="light"] .topbar { background: rgba(255, 253, 246, 0.96); }
.brand {
  font-weight: 700; font-size: 22px; letter-spacing: 1.5px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .dot { color: var(--gold); }
.userchip { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.userchip #username { font-weight: 600; }
.userchip .role {
  background: var(--gold-grad); color: var(--btn-ink);
  font-weight: 800; font-size: 12px; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.linkbtn {
  background: none; border: none; color: var(--muted); font-size: 15px;
  min-height: 44px; min-width: 44px; padding: 8px 6px; cursor: pointer;
  text-decoration: underline; font-family: inherit;
}
.themebtn {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--gold-hi); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Layout ---------- */
#view { max-width: 640px; margin: 0 auto; padding: 18px 16px 24px; }
h1 { font-size: 30px; font-weight: 700; margin: 8px 0 16px; letter-spacing: .3px; }
h2 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; }
h3 { font-size: 18px; margin: 16px 0 8px; }
p.muted, .muted { color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow), var(--top-hi);
}
.card.tappable { cursor: pointer; }
.card.tappable:active { filter: brightness(1.12); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat { text-align: center; padding: 14px 6px; }
.stat .num {
  font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: .4px; }
.hero-num {
  font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kv .v, table.grid td.num { font-variant-numeric: tabular-nums; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04); color: var(--muted);
  text-transform: capitalize;
}
.badge.gold { border-color: rgba(240, 217, 152, 0.55); color: var(--gold-hi); background: var(--gold-soft); }
.badge.green { border-color: var(--green-line); color: var(--green); background: var(--green-soft); }
.badge.red { border-color: var(--red-line); color: var(--red); background: var(--red-soft); }
.badge.blue { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.badge.dark { border-color: var(--line-strong); background: #05070c; color: var(--ink); }
[data-theme="light"] .badge.dark { background: #1c2547; color: #f4efe3; }

/* ---------- Buttons ---------- */
.btn {
  display: block; width: 100%;
  min-height: 54px; padding: 14px 18px;
  font-size: 18px; font-weight: 700; letter-spacing: .3px;
  border: none; border-radius: var(--radius);
  background: var(--gold-grad); color: var(--btn-ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(185, 138, 47, 0.35), var(--top-hi);
  font-family: inherit;
}
.btn:active { transform: scale(.99); filter: brightness(.94); }
.btn.secondary {
  background: transparent; color: var(--gold-hi);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn.danger { background: linear-gradient(135deg, #991b1b, #dc2626); color: #fff; }
.btn.green { background: linear-gradient(135deg, #166534, #22c55e); color: #fff; }
.btn.blue { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; }
.btn.small { min-height: 48px; font-size: 16px; padding: 10px 16px; width: auto; display: inline-block; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btnrow .btn { flex: 1; min-width: 140px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-size: 18px; padding: 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--input-bg); color: var(--ink); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 169, 78, 0.22);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

/* ---------- Lists ---------- */
.listrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
}
.listrow + .listrow { border-top: 1px solid var(--line); }
.listrow .title { font-weight: 700; font-size: 18px; }
.listrow .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.chev { color: var(--gold); font-size: 22px; }

/* ---------- Progress ---------- */
.progress { height: 14px; background: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress > div { height: 100%; background: var(--gold-grad); border-radius: 999px; }

/* ---------- Banner / toast ---------- */
.banner {
  background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
  font-weight: 600; font-size: 16px;
}
.banner.ok { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.empty {
  text-align: center; color: var(--muted); padding: 34px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 12px;
  background: rgba(212, 169, 78, 0.04);
}

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(13, 16, 23, 0.97); border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
[data-theme="light"] .bottomnav { background: rgba(255, 253, 246, 0.97); }
.bottomnav a {
  flex: 1; text-decoration: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 60px; justify-content: center; border-radius: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.bottomnav a .ico { font-size: 24px; line-height: 1; }
.bottomnav a.active { color: var(--gold-hi); }

/* ---------- Login: the front door ---------- */
.loginwrap { max-width: 440px; margin: 7vh auto 0; }
.loginwrap .brand-big {
  font-size: 44px; font-weight: 700; text-align: center; margin-bottom: 6px;
  letter-spacing: 2px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loginwrap .tag {
  text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 17px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-strong);
}
.loginwrap .card { padding: 24px; }
details.setup { margin-top: 18px; font-size: 15px; }
details.setup summary { cursor: pointer; min-height: 44px; color: var(--gold-hi); font-weight: 700; }

/* ---------- Misc ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 16px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 700; text-align: right; }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
table.grid th, table.grid td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.grid th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.right { text-align: right; }
.mt { margin-top: 14px; }
.center { text-align: center; }
.spinner { text-align: center; padding: 40px; color: var(--muted); font-size: 18px; }
.slot { border-left: 6px solid var(--line-strong); }
.slot.paid { border-left-color: var(--green); }
.slot.pitched { border-left-color: var(--gold); }
.opportunity { border-left: 6px solid var(--gold); }

/* ---------- Test mode banner ---------- */
.testmode {
  position: sticky; top: 0; z-index: 60;
  text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .5px;
  padding: 10px 12px;
  background: #2e2208; color: #ffd75e;
  border-bottom: 1px solid rgba(240, 217, 152, 0.45);
}
[data-theme="light"] .testmode { background: #fdf3d0; color: #7c5200; border-bottom-color: #d9b64f; }

/* ---------- Agent Ice: the concierge bell ---------- */
.ice-fab {
  position: fixed; right: 14px; bottom: 92px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-grad); font-size: 30px; line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer; min-height: 60px;
  box-shadow: 0 8px 24px rgba(185, 138, 47, 0.5), var(--top-hi);
  display: flex; align-items: center; justify-content: center;
}
.ice-fab:active { transform: scale(.96); }
.ice-panel {
  position: fixed; left: 12px; right: 12px; bottom: 164px; z-index: 60;
  max-width: 480px; margin: 0 auto; max-height: 58vh;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: var(--shadow), var(--top-hi); overflow: hidden;
}
.ice-panel[hidden] { display: none; }
.ice-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold-hi); font-weight: 700; font-size: 19px; letter-spacing: .5px;
  padding: 12px 14px;
}
.ice-x {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); font-size: 16px; cursor: pointer;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ice-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; min-height: 120px;
}
.ice-msg {
  max-width: 88%; padding: 11px 14px; border-radius: 14px;
  font-size: 16px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.ice-msg.user {
  align-self: flex-end; background: var(--gold-grad); color: var(--btn-ink); font-weight: 600;
}
.ice-msg.ice { align-self: flex-start; background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.ice-msg.typing { color: var(--muted); }
.ice-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.ice-chip {
  flex: 0 0 auto; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--gold-hi);
  font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; font-family: inherit;
}
.ice-inputrow {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.ice-inputrow input {
  flex: 1; font-size: 16px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line-strong); min-height: 48px;
  background: var(--input-bg); color: var(--ink); font-family: inherit;
}
.ice-inputrow input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 169, 78, 0.22); }
.ice-inputrow input::placeholder { color: var(--faint); }
.ice-inputrow .btn { min-height: 48px; width: auto; padding: 10px 20px; }

/* lead-card: grades, footprint, DM composer */
.bar { display:inline-block; width:90px; height:8px; border-radius:99px; background:var(--line); vertical-align:middle; margin-right:8px; overflow:hidden; }
.bar > span { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.fp-row { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid var(--line); font-size:16px; }
.fp-row:last-child { border-bottom:none; }
.fp-ico { flex:0 0 30px; text-align:center; }
.fp-body { flex:1; }
.fp-sub { color:var(--faint); font-size:14px; margin-top:2px; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:2000; display:flex; align-items:flex-end; justify-content:center; }
.modal { width:100%; max-width:560px; max-height:88vh; overflow-y:auto; background:var(--bg-card); border:1px solid var(--line-strong); border-radius:18px 18px 0 0; padding:18px; }
.modal textarea { width:100%; min-height:150px; font-size:16px; padding:12px; border-radius:12px; border:1px solid var(--line-strong); background:var(--input-bg); color:var(--ink); font-family:inherit; }
.modal .btnrow { display:flex; gap:10px; margin-top:12px; }
.modal .btnrow .btn { flex:1; }

/* recruiting command */
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:480px){ .grid2 { grid-template-columns:1fr; } }
.btn.sm { min-height:44px; padding:8px 14px; font-size:14px; width:auto; }
.stageSel { font-size:15px; padding:10px; border-radius:10px; border:1px solid var(--line-strong);
  background:var(--input-bg); color:var(--ink); font-family:inherit; min-height:44px; max-width:170px; }

/* ice voice mode */
#iceMic.listening { background: #7a1f1f; border-color: #c0392b; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.ice-inputrow #iceMic { width: auto; padding: 10px 14px; }

/* ---------- Agent Ice: walking chibi companion ---------- */
#iceChar {
  position: fixed; z-index: 60; cursor: pointer;
  right: 8px; bottom: 92px; height: 185px;
  transition: height 0.9s ease, right 0.9s ease, bottom 0.9s ease, transform 0.9s ease;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
  -webkit-tap-highlight-color: transparent;
}
#iceChar img {
  height: 100%; width: auto; display: block; pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, black 58%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, black 58%, transparent 82%);
}
#iceChar.enter {
  right: 4vw; bottom: 18vh; height: 46vh;
  transform: translateX(115vw);
  pointer-events: none;
}
#iceChar.walk {
  transform: translateX(0);
  transition: transform 1.25s cubic-bezier(0.4, 0, 0.35, 1);
}
#iceChar.walk img { animation: ice-waddle 0.3s ease-in-out 4; }
@keyframes ice-waddle {
  0%, 100% { margin-bottom: 0; transform: rotate(-3deg); }
  50% { margin-bottom: 16px; transform: rotate(3deg); }
}
#iceChar.idle img { animation: ice-breathe 3.2s ease-in-out infinite; }
@keyframes ice-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
/* talking: golden glow + sound waves from the headset mic */
#iceChar.talking { filter: drop-shadow(0 0 14px rgba(240,208,137,0.75)) drop-shadow(0 6px 18px rgba(0,0,0,0.6)); }
#iceChar.talking img { animation: ice-chatter 0.5s ease-in-out infinite; }
@keyframes ice-chatter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-1deg); }
  75% { transform: translateY(-3px) rotate(1deg); }
}
.ice-waves { position: absolute; top: 6%; left: 50%; width: 0; height: 0; pointer-events: none; }
.ice-waves span {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px;
  border: 2px solid var(--gold-hi); border-radius: 50%; opacity: 0;
}
#iceChar.talking .ice-waves span { animation: ice-wave 1.4s ease-out infinite; }
#iceChar.talking .ice-waves span:nth-child(2) { animation-delay: 0.45s; }
#iceChar.talking .ice-waves span:nth-child(3) { animation-delay: 0.9s; }
@keyframes ice-wave {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
#iceChar.fallback {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-grad); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: normal;
}
#iceChar.fallback img { display: none; }

/* ---------- Ice: compact side dock ---------- */
.ice-panel {
  left: auto; right: 12px; bottom: 292px; margin: 0;
  width: 302px; max-width: calc(100vw - 24px); max-height: 46vh;
  border-radius: 16px;
}
.ice-panel.min .ice-head,
.ice-panel.min .ice-msgs,
.ice-panel.min .ice-chips,
.ice-panel.min .ice-inputrow { display: none; }
.ice-minibar {
  display: none; align-items: center; gap: 8px;
  padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--gold-hi); font-weight: 700;
}
.ice-panel.min .ice-minibar { display: flex; }
.ice-minibar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.ice-panel.min.talking .ice-minibar .dot { animation: pulse 1s infinite; background: var(--gold-hi); }

/* Ice's speech bubble — her words, not a button */
#iceTag {
  position: fixed; z-index: 60; right: 14px; bottom: 290px;
  max-width: 250px;
  background: rgba(20, 14, 6, 0.94); border: 1px solid var(--gold-deep); color: var(--gold-hi);
  font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  animation: ice-tagfade 9s forwards;
}
#iceTag::after {
  content: ''; position: absolute; bottom: -7px; right: 42px; width: 14px; height: 14px;
  background: rgba(20, 14, 6, 0.94);
  border-right: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}
#iceTag.hide { display: none; }
@keyframes ice-tagfade { 0%, 82% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* slim edge tab to summon her back */
#iceTab {
  position: fixed; z-index: 60; right: 0; bottom: 130px;
  background: var(--gold-grad); border: 1px solid rgba(255, 255, 255, 0.35); border-right: none;
  border-radius: 12px 0 0 12px; font-size: 22px; padding: 12px 7px; cursor: pointer; min-height: 56px;
  box-shadow: -4px 0 16px rgba(185, 138, 47, 0.4);
}
#iceTab[hidden] { display: none; }

/* walk-out exit */
#iceChar.exit { transform: translateX(115vw); transition: transform 0.8s ease-in; pointer-events: none; }

/* ---------- ice panel: desktop/layout fixes ---------- */
.ice-panel, .ice-panel * { box-sizing: border-box; }
.ice-head { font-size: 16px; gap: 8px; }
.ice-head > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.ice-head > span:last-child { flex: 0 0 auto; display: inline-flex; gap: 6px; }
.ice-panel .ice-x { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 15px; }
.ice-msgs { overflow-x: hidden; }
.ice-msg { overflow-wrap: anywhere; }
.ice-inputrow { gap: 8px; }
.ice-inputrow input { min-width: 0; flex: 1 1 auto; }
.ice-inputrow .btn { flex: 0 0 auto; }
.ice-inputrow #iceSend { padding: 10px 14px; }
.ice-inputrow #iceMic { padding: 10px 12px; }
