/* Alert queue view */
body[data-theme="dark"] {
  background: #191a1c;
}
body[data-theme="dark"] .sidebar {
  background: #1b3159;
}
body[data-theme="dark"] .main-panel {
  background: #191a1c;
}
body[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, #34383e 0%, rgba(40, 43, 48, .88) 48%, rgba(25, 26, 28, 0) 100%);
}
body[data-theme="dark"] .section-title { color: #f2f2f2; }
body[data-theme="dark"] .section-subtitle { color: #a4a4a4; }

.sidebar {
  width: 184px;
  padding: 14px 11px 18px;
  flex: none;
}
.brand { gap: 8px; }
.brand-icon { width: 27px; height: 30px; }
.brand-name { font-size: 19px; }
.sidebar-controls { margin-top: 22px; }
.profile-button { height: 38px; gap: 9px; padding: 0 7px; }
.profile-avatar { width: 27px; height: 27px; }
.profile-avatar::before { top: 5px; left: 9px; width: 9px; height: 9px; }
.profile-avatar::after { bottom: -3px; left: 5px; width: 17px; height: 13px; }
.profile-username { font-size: 11px; }
.balance-card { margin-top: 13px; padding: 12px 11px 10px; border-radius: 9px; }
.balance-label { font-size: 10px; }
.balance-value-row { margin-top: 5px; }
.balance-value { font-size: 17px; }
.balance-visibility { width: 25px; height: 25px; }
.side-navigation { margin-top: 12px; }
.nav-button { min-height: 34px; gap: 9px; padding: 0 9px; border-radius: 7px; font-size: 11px; }
.nav-button[aria-disabled="true"], .nav-subitem[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.nav-button.is-complete, .nav-subitem.is-complete { background: rgba(64, 185, 105, .2); color: #8ce0a5; }
.nav-button.is-complete > i:first-child { color: #79d995; }
.nav-button.is-complete[aria-current="page"] { border-color: rgba(105, 218, 135, .35); background: rgba(64, 185, 105, .25); color: #a7edb6; }
.nav-button > i:first-child { width: 15px; font-size: 12px; }
.nav-chevron { width: 6px !important; height: 6px; }
.nav-badge { font-size: 9px; padding: 3px 5px; }
.nav-divider { margin: 10px 5px 8px; }
.nav-submenu { margin-left: 25px; }
.nav-subitem { min-height: 33px; padding: 8px; font-size: 11px; }

.topbar {
  min-height: 76px;
  padding: 9px 26px 11px 28px;
  gap: 16px;
}
.topbar-copy { gap: 5px; }
.section-title { font-size: 22px; letter-spacing: -.35px; }
.section-subtitle { margin: 0; font-size: 10px; }
.header-actions { gap: 8px; flex-wrap: nowrap; flex: none; }
.header-action { width: 29px; height: 32px; font-size: 14px; }
.skip-alert { gap: 5px; height: 28px; padding: 0 2px; font-size: 8px; flex: none; width: auto; white-space: nowrap; }
.skip-alert i { font-size: 9px; }
.theme-toggle { font-size: 15px; }
.alerts-content { padding: 0 28px 22px 30px; }
.alerts-content[hidden] { display: none; }
.withdraw-content {
  position: fixed;
  z-index: 1;
  inset: 104px 28px 24px calc(var(--sp-sidebar-width, 184px) + 28px);
  transition: left .24s cubic-bezier(.2,.75,.25,1), right .2s ease;
}
.withdraw-content[hidden] { display: none; }
.statement-content {
  position: fixed;
  z-index: 1;
  inset: 104px 28px 24px 212px;
}
.statement-content[hidden] { display: none; }
.statement-container {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #34383e;
  border-radius: 14px;
  background: linear-gradient(155deg, #25282d, #202226 70%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.statement-container-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 13px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.statement-heading-icon,
.statement-empty-icon { display: grid; flex: none; place-items: center; border-radius: 11px; }
.statement-heading-icon { width: 38px; height: 38px; background: rgba(88, 206, 229, .1); color: #8ed9e9; font-size: 15px; }
.statement-container-header h2 { margin: 0; color: #edf2f4; font: 650 13px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.statement-container-header p { margin: 3px 0 0; color: #929da7; font: 450 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.statement-list { display: grid; flex: 1; min-height: 0; overflow: auto; place-items: center; }
.statement-entry { display: grid; width: min(100%, 760px); grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.statement-entry-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(88, 206, 229, .15); border-radius: 10px; background: rgba(88, 206, 229, .08); color: #8ed9e9; font-size: 14px; }
.statement-entry-amount { color: #edf2f4; font: 650 14px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.statement-entry-date { color: #929da7; font: 500 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statement-empty-state { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; color: #a6afb8; text-align: center; }
.statement-empty-icon { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); color: #808b95; font-size: 16px; }
.statement-empty-state p { margin: 0; font: 500 11px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-empty-container {
  box-sizing: border-box;
  width: min(100%, 1480px);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 22px;
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 30px);
  overflow: auto;
  container: withdraw-panel / inline-size;
  border: 1px solid #34383e;
  border-radius: 18px;
  background: linear-gradient(155deg, #25282d, #202226 70%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.withdraw-summary {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  min-height: 168px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: clamp(20px, 3.6cqi, 34px);
  border: 1px solid rgba(115, 206, 225, .18);
  border-radius: 16px;
  background: linear-gradient(118deg, rgba(25, 87, 105, .44), rgba(34, 43, 53, .8) 58%, rgba(38, 42, 47, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 9px 24px rgba(0,0,0,.12);
}
.withdraw-summary::before { position: absolute; z-index: -1; top: -130px; right: 6%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(59,190,211,.2), rgba(59,190,211,0) 68%); content: ""; pointer-events: none; }
.withdraw-summary::after { position: absolute; z-index: -1; right: 20%; bottom: -58px; width: 240px; height: 110px; border: 1px solid rgba(145,222,231,.08); border-radius: 50%; box-shadow: 0 0 0 18px rgba(145,222,231,.025), 0 0 0 38px rgba(145,222,231,.018); content: ""; transform: rotate(-12deg); pointer-events: none; }
.withdraw-balance-label { color: #b4c6ce; font: 650 10px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.withdraw-balance-row { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.withdraw-balance.metric-value { margin: 0; color: #f3fbfd; font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(34px, 6cqi, 58px); font-weight: 650; font-variant-numeric: tabular-nums lining-nums; line-height: 1; letter-spacing: -1.8px; text-shadow: 0 3px 22px rgba(31,170,192,.15); }
.withdraw-summary > .withdraw-balance-label,.withdraw-summary > .withdraw-balance-row { position: relative; z-index: 1; }
.withdraw-history {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(125, 207, 226, .22);
  border-radius: 8px;
  background: rgba(73, 175, 198, .08);
  color: #8ed9e9;
  font: 600 10px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.withdraw-history:hover { border-color: rgba(125, 207, 226, .4); background: rgba(73, 175, 198, .14); transform: translateY(-1px); }
.withdraw-history:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
body[data-theme="light"] .withdraw-empty-container {
  border-color: #e1e7eb;
  background: linear-gradient(155deg, #fff, #f7f9fa 70%);
  box-shadow: 0 12px 32px rgba(20, 42, 54, .06), inset 0 1px 0 #fff;
}
body[data-theme="light"] .statement-container { border-color: #e1e7eb; background: linear-gradient(155deg, #fff, #f7f9fa 70%); box-shadow: 0 12px 32px rgba(20, 42, 54, .06), inset 0 1px 0 #fff; }
body[data-theme="light"] .statement-container-header { border-color: #e7ecef; }
body[data-theme="light"] .statement-container-header h2 { color: #253744; }
body[data-theme="light"] .statement-container-header p { color: #758390; }
body[data-theme="light"] .statement-heading-icon { background: rgba(42, 156, 179, .08); color: #247f91; }
body[data-theme="light"] .statement-empty-state { color: #758390; }
body[data-theme="light"] .statement-empty-icon { border-color: #e4eaed; background: #f5f8f9; color: #91a0a9; }
body[data-theme="light"] .statement-entry { border-color: #e4eaed; background: rgba(240, 245, 247, .65); }
body[data-theme="light"] .statement-entry-icon { border-color: rgba(42, 156, 179, .15); background: rgba(42, 156, 179, .08); color: #247f91; }
body[data-theme="light"] .statement-entry-amount { color: #253744; }
body[data-theme="light"] .statement-entry-date { color: #758390; }
.limits-content { position: fixed; z-index: 1; inset: 104px 28px 24px 212px; }
.limits-content[hidden] { display: none; }
.limits-container { box-sizing: border-box; display: flex; width: 100%; height: 100%; flex-direction: column; overflow: auto; border: 1px solid #34383e; border-radius: 14px; background: linear-gradient(155deg, #25282d, #202226 70%); box-shadow: 0 12px 32px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .025); }
.limits-container-header { display: flex; min-height: 74px; align-items: center; gap: 13px; padding: 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.limits-heading-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 11px; background: rgba(88, 206, 229, .1); color: #8ed9e9; font-size: 15px; }
.limits-container-header h2 { margin: 0; color: #edf2f4; font: 650 13px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-container-header p { margin: 3px 0 0; color: #929da7; font: 450 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-form { display: grid; width: min(900px, calc(100% - 56px)); gap: 27px; align-self: center; padding: 35px 0; }
.limits-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.limits-fields { align-items: stretch; gap: 14px; }
.limits-field { display: grid; min-width: 0; gap: 9px; color: #aeb8c0; font: 550 11px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-field[data-limit-card] { box-sizing: border-box; gap: 0; padding: 17px; border: 1px solid #383e45; border-radius: 13px; background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.limits-period-heading { display: flex; align-items: center; justify-content: space-between; color: #e9eff2; font: 650 13px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-period-heading i { color: #80d4e3; font-size: 13px; }
.limits-used { display: flex; align-items: baseline; gap: 5px; margin-top: 17px; color: #929da7; font: 450 10px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-used strong { display: inline; margin: 0; color: #f0f4f5; font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.limits-progress-track { display: block; height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #383e44; }
.limits-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #31a9bd, #72d7e5); transition: width .22s ease; }
.limits-progress-caption { display: flex; justify-content: space-between; margin-top: 8px; color: #87939e; font: 450 9px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-progress-caption strong { color: #9de0eb; font-weight: 650; }
.limits-limit-caption { margin-top: 4px; color: #85919c; font: 450 9px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-limit-caption strong { display: inline; margin: 0; color: #cbd4da; font-size: inherit; font-weight: 600; letter-spacing: 0; }
.limits-field-label { margin-top: 17px; color: #aeb8c0; font: 550 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-field[data-limit-card] .limits-input-wrap { min-height: 42px; margin-top: 7px; }
.limits-field[data-limit-card] .limits-input-wrap input { min-height: 38px; }
.limits-field[data-limit-card] .limits-currency { flex: none; color: #8ed9e9; }
.limits-stepper { display: grid; width: 27px; height: 27px; flex: none; padding: 0; border: 1px solid #414950; border-radius: 7px; background: #292e33; color: #aebbc3; cursor: pointer; font-size: 9px; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; place-items: center; }
.limits-stepper:hover { transform: translateY(-1px); border-color: #58cee5; background: #303b40; color: #a5eaf3; }
.limits-stepper:active { transform: translateY(0); }
.limits-stepper:focus-visible { outline: 2px solid #58cee5; outline-offset: 2px; }
.limits-stepper-increase { border-color: rgba(88, 206, 229, .28); background: rgba(88, 206, 229, .1); color: #8ed9e9; }
.limits-input-wrap { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #3b4147; border-radius: 10px; background: #1d2024; color: #aeb8c0; transition: border-color .16s ease, box-shadow .16s ease; }
.limits-input-wrap:focus-within { border-color: #58cee5; box-shadow: 0 0 0 3px rgba(88, 206, 229, .12); }
.limits-input-wrap > span { font: 650 12px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-input-wrap input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #edf2f4; font: 600 14px/1 Inter, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.limits-input-wrap input:focus { box-shadow: none; }
.limits-input-wrap input::-webkit-inner-spin-button,
.limits-input-wrap input::-webkit-outer-spin-button { display: none; margin: 0; -webkit-appearance: none; appearance: none; }
.limits-input-wrap input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.limits-form-footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.limits-status { margin: 0; color: #8ed9e9; font: 500 11px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-apply { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid rgba(88, 206, 229, .34); border-radius: 9px; background: linear-gradient(135deg, #237f91, #1f6777); color: #f4fcfd; font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.limits-apply:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 5px 16px rgba(15, 126, 147, .2); }
.limits-apply:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
body[data-theme="light"] .limits-container { border-color: #e1e7eb; background: linear-gradient(155deg, #fff, #f7f9fa 70%); box-shadow: 0 12px 32px rgba(20, 42, 54, .06), inset 0 1px 0 #fff; }
body[data-theme="light"] .limits-container-header { border-color: #e7ecef; }
body[data-theme="light"] .limits-container-header h2 { color: #253744; }
body[data-theme="light"] .limits-container-header p { color: #758390; }
body[data-theme="light"] .limits-heading-icon { background: rgba(42, 156, 179, .08); color: #247f91; }
body[data-theme="light"] .limits-field { color: #657581; }
body[data-theme="light"] .limits-field[data-limit-card] { border-color: #e2e9ec; background: linear-gradient(155deg, #fff, #f7fafb); box-shadow: 0 4px 14px rgba(27, 61, 73, .035); }
body[data-theme="light"] .limits-period-heading { color: #263946; }
body[data-theme="light"] .limits-period-heading i { color: #25879a; }
body[data-theme="light"] .limits-used { color: #758390; }
body[data-theme="light"] .limits-used strong { color: #213946; }
body[data-theme="light"] .limits-progress-track { background: #e7eef0; }
body[data-theme="light"] .limits-progress-caption { color: #7c8993; }
body[data-theme="light"] .limits-progress-caption strong { color: #247f91; }
body[data-theme="light"] .limits-limit-caption { color: #778590; }
body[data-theme="light"] .limits-limit-caption strong { color: #3b515d; }
body[data-theme="light"] .limits-field-label { color: #657581; }
body[data-theme="light"] .limits-field[data-limit-card] .limits-currency { color: #247f91; }
body[data-theme="light"] .limits-stepper { border-color: #dce5e8; background: #f4f8f9; color: #647783; }
body[data-theme="light"] .limits-stepper:hover { border-color: #42aec2; background: #e9f7f9; color: #207c8e; }
body[data-theme="light"] .limits-stepper-increase { border-color: rgba(42, 156, 179, .23); background: rgba(42, 156, 179, .08); color: #247f91; }
body[data-theme="light"] .limits-input-wrap { border-color: #d8e1e5; background: #fff; color: #657581; }
body[data-theme="light"] .limits-input-wrap input { color: #263946; }
body[data-theme="light"] .limits-form-footer { border-color: #e4eaed; }
body[data-theme="light"] .limits-status { color: #247f91; }
.limits-content .limits-container [hidden] { display: none !important; }
.limits-form { box-sizing: border-box; width: min(560px, calc(100% - 40px)); gap: 22px; padding: 28px 0 32px; }
.limits-step-progress { display: flex; width: 100%; align-items: center; gap: 8px; }
.limits-step-dot { width: 9px; height: 9px; flex: none; border: 1px solid #58636c; border-radius: 50%; background: #30353a; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.limits-step-dot.is-active { transform: scale(1.2); border-color: #65d2e3; background: #65d2e3; box-shadow: 0 0 0 4px rgba(88,206,229,.12); }
.limits-step-dot.is-complete { border-color: #55bdce; background: #55bdce; }
.limits-step-line { height: 1px; flex: 1; background: #3b4248; }
.limits-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.limits-field[data-limit-card] { padding: 22px; gap: 0; }
.limits-period-heading { font-size: 16px; }
.limits-field-label { margin-top: 22px; font-size: 12px; }
.limits-field[data-limit-card] .limits-input-wrap { box-sizing: border-box; width: 100%; min-height: 54px; margin-top: 9px; padding: 0 15px; }
.limits-field[data-limit-card] .limits-input-wrap input { min-height: 50px; font-size: 18px; }
.limits-adjusters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.limits-stepper { display: inline-flex; width: 100%; height: 42px; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; font-size: 11px; }
.limits-stepper i { font-size: 10px; }
.limits-stepper span { font: 600 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-form-footer { min-height: 0; justify-content: flex-end; padding-top: 0; border: 0; }
.limits-apply { min-width: 150px; min-height: 46px; border-radius: 10px; font-size: 12px; }
.limits-summary { box-sizing: border-box; width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0; }
.limits-summary-status { margin-bottom: 15px; }
.limits-summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.limits-summary-card { min-width: 0; padding: 17px; border: 1px solid #383e45; border-radius: 12px; background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.limits-summary-top { display: flex; align-items: center; justify-content: space-between; color: #e9eff2; font: 650 12px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-summary-percent { color: #9de0eb; font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-summary-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 17px; color: #87939e; font: 450 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-summary-amount strong { color: #f0f4f5; font-size: 17px; font-weight: 650; }
.limits-summary-amount .metric-value { display: inline-block; margin: 0; line-height: 1.25; }
.limits-summary-amount b { color: #cbd4da; font-weight: 600; }
.limits-summary-card .limits-progress-track { margin-top: 12px; }
.limits-summary.is-paused .limits-progress-fill { background: #77818a; }
.limits-paused-notice { display: flex; align-items: center; gap: 8px; margin: 17px 0 0; color: #e1b36a; font: 550 11px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.limits-summary-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.limits-edit, .limits-pause { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid #414950; border-radius: 9px; background: #292e33; color: #c2cbd1; cursor: pointer; font: 600 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.limits-edit:hover, .limits-pause:hover { transform: translateY(-1px); border-color: #58cee5; color: #a5eaf3; }
.limits-pause { border-color: rgba(224,179,106,.25); background: rgba(224,179,106,.08); color: #e1b36a; }
.limits-pause:hover { border-color: rgba(224,179,106,.5); background: rgba(224,179,106,.13); color: #f2ca88; }
.limits-edit:focus-visible, .limits-pause:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
body[data-theme="light"] .limits-step-dot { border-color: #c7d2d8; background: #edf2f4; }
body[data-theme="light"] .limits-step-dot.is-active, body[data-theme="light"] .limits-step-dot.is-complete { border-color: #45aebf; background: #45aebf; }
body[data-theme="light"] .limits-step-line { background: #dce5e8; }
body[data-theme="light"] .limits-summary-card { border-color: #e2e9ec; background: linear-gradient(155deg, #fff, #f7fafb); }
body[data-theme="light"] .limits-summary-top { color: #263946; }
body[data-theme="light"] .limits-summary-percent { color: #247f91; }
body[data-theme="light"] .limits-summary-amount { color: #778590; }
body[data-theme="light"] .limits-summary-amount strong { color: #213946; }
body[data-theme="light"] .limits-summary-amount b { color: #3b515d; }
body[data-theme="light"] .limits-summary-actions { border-color: #e4eaed; }
body[data-theme="light"] .limits-edit { border-color: #dce5e8; background: #f4f8f9; color: #526874; }
body[data-theme="light"] .limits-edit:hover { border-color: #42aec2; background: #e9f7f9; color: #207c8e; }
body[data-theme="light"] .limits-pause { border-color: rgba(179,123,38,.22); background: rgba(217,162,72,.1); color: #92611a; }
body[data-theme="light"] .withdraw-balance-label { color: #758390; }
body[data-theme="light"] .withdraw-history { border-color: rgba(36, 144, 165, .2); background: rgba(42, 156, 179, .06); color: #247f91; }
body[data-theme="light"] .withdraw-history:hover { border-color: rgba(36, 144, 165, .38); background: rgba(42, 156, 179, .12); }
.withdraw-methods { margin-top: 0; padding: clamp(16px, 2.5cqi, 25px); border: 1px solid rgba(255,255,255,.065); border-radius: 15px; background: rgba(255,255,255,.018); }
.withdraw-methods h2 { margin: 0; color: #e9edf0; font: 650 14px/1.35 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.15px; }
.withdraw-method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.withdraw-method { 
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: #edf2f4;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.withdraw-method:hover { transform: translateY(-2px); border-color: rgba(103, 202, 222, .3); background: rgba(79, 180, 201, .07); }
.withdraw-method:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
.withdraw-method[aria-pressed="true"] { border-color: rgba(88, 206, 229, .62); background: rgba(64, 178, 202, .12); box-shadow: inset 0 0 0 1px rgba(88, 206, 229, .16), 0 5px 18px rgba(0, 0, 0, .12); }
.withdraw-method-icon { display: grid; width: 42px; height: 42px; flex: none; border-radius: 11px; place-items: center; }
.withdraw-method-icon-paypal,
.withdraw-method-icon-open { background: transparent; }
.withdraw-method-icon-paypal img { width: 34px; height: 34px; object-fit: contain; }
.withdraw-method-icon-open img { width: 34px; height: 34px; object-fit: contain; }
.withdraw-method-icon-pix { background: rgba(88, 206, 229, .1); }
.withdraw-method-icon-pix img { width: 29px; height: 29px; object-fit: contain; }
.withdraw-method-copy { display: grid; min-width: 0; gap: 5px; }
.withdraw-method-copy strong { overflow: hidden; color: inherit; font: 650 12px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.withdraw-method-copy small { color: #a6afb8; font: 500 10px/1.25 Inter, "Helvetica Neue", Arial, sans-serif; white-space: nowrap; }
.withdraw-method-check { position: absolute; top: 9px; right: 9px; color: #80e1f0; font-size: 10px; opacity: 0; transform: scale(.7); transition: opacity .16s ease, transform .16s ease; }
.withdraw-method[aria-pressed="true"] .withdraw-method-check { opacity: 1; transform: scale(1); }
.withdraw-method:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.withdraw-method:disabled:hover { border-color: rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .025); }
.withdraw-method:disabled .withdraw-method-copy small { color: #a6afb8; }
.withdraw-form { display: grid; gap: 16px; margin-top: 20px; animation: withdraw-form-in .22s ease both; }
.withdraw-form[hidden],
.withdraw-detail-panel[hidden] { display: none; }
.withdraw-detail-panel { padding: 20px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 13px; background: rgba(255, 255, 255, .018); }
.withdraw-detail-panel h3 { margin: 0 0 16px; color: #e9edf0; font: 650 13px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.withdraw-field { display: grid; min-width: 0; gap: 7px; color: #aeb8c0; font: 550 11px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-field-wide { grid-column: 1 / -1; }
.withdraw-field input,
.withdraw-field select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #3b4147; border-radius: 9px; outline: none; background: #1d2024; color: #edf2f4; font: 500 12px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.withdraw-field input::placeholder { color: #707b84; }
.withdraw-field input:focus,
.withdraw-field select:focus { border-color: #58cee5; box-shadow: 0 0 0 3px rgba(88, 206, 229, .12); }
.withdraw-field input:disabled,
.withdraw-field select:disabled { opacity: .6; }
.withdraw-pix-grid { grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); }
.withdraw-submit-row { display: flex; min-height: 42px; align-items: center; justify-content: flex-end; gap: 14px; }
.withdraw-submit-row[hidden] { display: none; }
.withdraw-form-status { flex: 1; margin: 0; color: #8ed9e9; font: 500 11px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-form-status:not([hidden]) { padding: 11px 12px; border: 1px solid rgba(88, 206, 229, .16); border-radius: 9px; background: rgba(88, 206, 229, .055); }
.withdraw-submit { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 1px solid rgba(88, 206, 229, .34); border-radius: 9px; background: linear-gradient(135deg, #237f91, #1f6777); color: #f4fcfd; font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.withdraw-submit:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 5px 16px rgba(15, 126, 147, .2); }
.withdraw-submit:disabled { border-color: #3a4146; background: #32373c; color: #818a91; box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.withdraw-submit:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
.withdraw-amount-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.withdraw-amount-step { display: grid; gap: 18px; }
.withdraw-amount-heading h3 { margin-bottom: 7px; }
.withdraw-method-summary { margin: 0 0 5px; color: #aeb8c0; font: 500 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-method-summary strong { color: #e9edf0; font-weight: 650; }
.withdraw-available-copy { margin: 0; color: #aeb8c0; font: 500 11px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-available-copy strong { margin-left: 3px; color: #e9edf0; font-weight: 650; }
.withdraw-edit-details { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: transparent; color: #aeb8c0; font: 550 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.withdraw-edit-details:hover { border-color: rgba(88, 206, 229, .35); color: #8ed9e9; }
.withdraw-edit-details:focus-visible { outline: 2px solid #58cee5; outline-offset: 2px; }
.withdraw-amount-field { max-width: 420px; gap: 10px; }
.withdraw-amount-control { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #3b4147; border-radius: 10px; background: #1d2024; color: #aeb8c0; }
.withdraw-amount-control:focus-within { border-color: #58cee5; box-shadow: 0 0 0 3px rgba(88, 206, 229, .12); }
.withdraw-amount-control > span { font: 650 13px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-amount-control input { min-height: 42px; padding: 0; border: 0; background: transparent; box-shadow: none; color: #edf2f4; font: 650 18px/1 Inter, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.withdraw-amount-control input:focus { border: 0; box-shadow: none; }
.withdraw-amount-control input::-webkit-inner-spin-button,
.withdraw-amount-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.withdraw-amount-note { margin: 0; color: #a6afb8; font: 500 10px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.withdraw-final-actions { margin-top: 2px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .07); }
html.values-hidden .withdraw-amount-input { filter: blur(6px); }
html.values-hidden .limits-input-wrap input { filter: blur(6px); }
@keyframes withdraw-form-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
body[data-theme="light"] .withdraw-methods h2 { color: #253744; }
body[data-theme="light"] .withdraw-method { border-color: #e0e7eb; background: rgba(240, 245, 247, .75); color: #263946; }
body[data-theme="light"] .withdraw-method:hover { border-color: rgba(36, 144, 165, .35); background: rgba(42, 156, 179, .07); }
body[data-theme="light"] .withdraw-method[aria-pressed="true"] { border-color: #53b7ca; background: rgba(42, 156, 179, .1); box-shadow: inset 0 0 0 1px rgba(42, 156, 179, .12); }
body[data-theme="light"] .withdraw-method-copy small { color: #758390; }
body[data-theme="light"] .withdraw-method-check { color: #21899b; }
body[data-theme="light"] .withdraw-method:disabled:hover { border-color: #e0e7eb; background: rgba(240, 245, 247, .75); }
body[data-theme="light"] .withdraw-detail-panel { border-color: #e4eaed; background: rgba(240, 245, 247, .55); }
body[data-theme="light"] .withdraw-detail-panel h3 { color: #253744; }
body[data-theme="light"] .withdraw-field { color: #657581; }
body[data-theme="light"] .withdraw-field input,
body[data-theme="light"] .withdraw-field select { border-color: #d8e1e5; background: #fff; color: #263946; }
body[data-theme="light"] .withdraw-field input::placeholder { color: #9aa6af; }
body[data-theme="light"] .withdraw-form-status { color: #247f91; }
body[data-theme="light"] .withdraw-form-status:not([hidden]) { border-color: rgba(42, 156, 179, .17); background: rgba(42, 156, 179, .06); }
body[data-theme="light"] .withdraw-submit:disabled { border-color: #d8e0e4; background: #e7ecef; color: #8b979f; }
body[data-theme="light"] .withdraw-available-copy { color: #657581; }
body[data-theme="light"] .withdraw-method-summary { color: #758390; }
body[data-theme="light"] .withdraw-method-summary strong { color: #253744; }
body[data-theme="light"] .withdraw-available-copy strong { color: #253744; }
body[data-theme="light"] .withdraw-edit-details { border-color: #dce4e8; color: #60727e; }
body[data-theme="light"] .withdraw-edit-details:hover { border-color: #77c9d6; color: #247f91; }
body[data-theme="light"] .withdraw-amount-control { border-color: #d8e1e5; background: #fff; color: #657581; }
body[data-theme="light"] .withdraw-amount-control input { color: #263946; }
body[data-theme="light"] .withdraw-amount-note { color: #758390; }
body[data-theme="light"] .withdraw-final-actions { border-color: #e4eaed; }
.alerts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .82fr);
  gap: 14px;
  align-items: stretch;
}
.alerts-panel {
  display: flex;
  min-width: 0;
  min-height: min(620px, calc(100vh - 184px));
  flex-direction: column;
  padding: 20px;
  border: 1px solid #34383e;
  border-radius: 14px;
  background: linear-gradient(155deg, #25282d, #202226 65%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.alerts-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.alerts-panel-header h2 {
  margin: 0;
  color: #f0f3f6;
  font: 650 14px/1.3 Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.15px;
}
.playback-toggle {
  display: inline-flex;
  min-height: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(101, 194, 221, .24);
  border-radius: 9px;
  background: rgba(58, 160, 180, .09);
  color: #78cde0;
  font: 600 10px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.playback-toggle i { font-size: 9px; }
.playback-toggle:hover { transform: translateY(-1px); border-color: rgba(101, 194, 221, .5); background: rgba(58, 160, 180, .16); color: #a4e8f2; }
.playback-toggle:focus-visible { outline: 2px solid #58cee5; outline-offset: 3px; }
.playback-toggle[aria-pressed="true"] { border-color: rgba(244, 190, 103, .25); background: rgba(198, 141, 50, .1); color: #e8c47f; }
.playback-toggle[aria-pressed="true"]:hover { border-color: rgba(244, 190, 103, .48); background: rgba(198, 141, 50, .17); color: #f4dba6; }
.alerts-list { display: grid; gap: 10px; padding-top: 16px; }
.alert-sample {
  min-width: 0;
  padding: 8px;
  border: 1px solid #373c43;
  border-radius: 12px;
  background: linear-gradient(145deg, #2b2f35, #272a2f);
}
.alert-sample-main {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 25px;
  align-items: center;
  gap: 6px;
}
.alert-audio-icon {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(109, 199, 217, .15);
  border-radius: 8px;
  background: rgba(58, 160, 180, .12);
  color: #7bd1e1;
  font-size: 9px;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.alert-audio-icon:hover { border-color: rgba(109, 199, 217, .35); background: rgba(58, 160, 180, .2); color: #a4e8f2; }
.alert-audio-icon.is-playing { border-color: rgba(109, 199, 217, .4); background: rgba(58, 160, 180, .24); color: #b4edf5; }
.alert-audio-icon:focus-visible, .alert-download-icon:focus-visible { outline: 2px solid #58cee5; outline-offset: 2px; }
.alert-sample-message {
  min-width: 0;
  margin: 0;
  color: #e9edf1;
  font: 550 10px/1.3 Inter, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.alert-sample-amount {
  color: #8dd8b0;
  font: 700 10px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}
.alert-download-icon {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: #aab4bf;
  font-size: 10px;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.alert-download-icon:hover { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #f1f4f6; }
.alert-download-icon:disabled, .alert-audio-icon:disabled { opacity: .5; cursor: progress; }
.alert-sample-playback { display: grid; gap: 5px; margin: 7px 31px 0 32px; }
.alert-progress-track {
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 999px;
  background: #454a51;
  cursor: default;
}
.alert-progress-track span { display: block; height: 100%; border-radius: inherit; background: #f5f7f9; transition: width .12s linear; }
.alert-sample-time {
  justify-self: end;
  color: #98a2ad;
  font: 500 8px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.alert-sample-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.alert-sample-status.is-visible { position: static; display: block; width: auto; height: auto; margin: 6px 0 0 32px; overflow: visible; clip: auto; color: #e6a58d; font: 500 9px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; white-space: normal; }
body[data-theme="light"] .alerts-panel {
  border-color: #e0e6eb;
  background: linear-gradient(155deg, #fff, #f8fafb 72%);
  box-shadow: 0 10px 28px rgba(31, 55, 74, .06), inset 0 1px 0 #fff;
}
body[data-theme="light"] .alerts-panel-header { border-bottom-color: #e9edf0; }
body[data-theme="light"] .alerts-panel-header h2 { color: #26394a; }
body[data-theme="light"] .alert-sample { border-color: #e3e8ec; background: linear-gradient(145deg, #fff, #f5f8f9); }
body[data-theme="light"] .alert-sample-message { color: #2a3a49; }
body[data-theme="light"] .alert-sample-amount { color: #26845b; }
body[data-theme="light"] .alert-download-icon { border-color: #e5eaee; background: #f3f6f8; color: #697887; }
body[data-theme="light"] .alert-download-icon:hover { border-color: #cbd6dd; background: #e9eff2; color: #344958; }
body[data-theme="light"] .alert-sample-time { color: #74818e; }
body[data-theme="light"] .alert-sample-status.is-visible { color: #9a4c34; }
body[data-theme="light"] .playback-toggle { border-color: rgba(36, 144, 165, .18); background: rgba(42, 156, 179, .07); color: #247f91; }
body[data-theme="light"] .playback-toggle:hover { border-color: rgba(36, 144, 165, .38); background: rgba(42, 156, 179, .13); color: #16677a; }
body[data-theme="light"] .playback-toggle[aria-pressed="true"] { border-color: rgba(179, 123, 38, .22); background: rgba(217, 162, 72, .12); color: #92611a; }

@media (max-width: 700px) {
  .sidebar { width: 62px; padding: 12px 5px; }
  .brand { justify-content: center; width: 100%; }
  .brand-name, .profile-username, .profile-chevron, .balance-label, .balance-value, .side-navigation .nav-button > span, .nav-chevron, .nav-badge, .nav-submenu, .balance-visibility { display: none; }
  .sidebar-controls { margin-top: 15px; }
  .profile-button { justify-content: center; padding: 0; }
  .balance-card { display: none; }
  .nav-button { justify-content: center; min-height: 35px; padding: 0; }
  .nav-button > i:first-child { margin: 0; }
  .topbar { min-height: 72px; padding: 10px 14px; align-items: center; flex-direction: row; gap: 8px; }
  .topbar-copy { flex: 1; }
  .section-subtitle { display: none; }
  .section-title { font-size: 18px; }
  .section-subtitle { max-width: 230px; line-height: 1.35; }
  .header-actions { gap: 2px; }
  .header-action { width: 23px; }
  .skip-alert {
    box-sizing: border-box;
    width: auto;
    min-width: 40px;
    min-height: 36px;
    flex: none;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid rgba(80, 197, 223, .24);
    border-radius: 8px;
    background: rgba(80, 197, 223, .1);
    font-size: 9px;
    white-space: nowrap;
  }
  .skip-alert span { display: inline; }
  .skip-alert i { font-size: 10px; }
  .skip-alert:hover { background: rgba(80, 197, 223, .17); }
  .alerts-content { padding: 0 13px 16px; }
  .withdraw-content { inset: 84px 13px calc(78px + env(safe-area-inset-bottom)); }
  .limits-content { inset: 84px 13px calc(78px + env(safe-area-inset-bottom)); }
  .statement-content { inset: 84px 13px calc(78px + env(safe-area-inset-bottom)); }
  .withdraw-empty-container { padding: 21px 18px; }
  .withdraw-balance-row { gap: 12px; }
  .withdraw-balance.metric-value { font-size: clamp(34px, 10vw, 48px); }
  .withdraw-methods { margin-top: 0; }
  .withdraw-method-list { grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); grid-template-columns: none; gap: 9px; margin-top: 11px; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x proximity; }
  .withdraw-method { min-height: 72px; padding: 10px 12px; scroll-snap-align: start; }
  .withdraw-method-icon { width: 38px; height: 38px; }
  .limits-container-header { min-height: 68px; padding: 0 15px; }
  .limits-form { box-sizing: border-box; width: 100%; gap: 20px; padding: 24px 16px; }
  .limits-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .limits-form-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .limits-apply { width: 100%; }
  .limits-summary { width: calc(100% - 30px); padding: 22px 0; }
  .limits-summary-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .limits-summary-card { padding: 15px; }
  .limits-summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .limits-edit, .limits-pause { min-width: 0; padding: 0 10px; }
  .limits-stepper { min-height: 44px; }
  .withdraw-form { gap: 11px; margin-top: 14px; }
  .withdraw-detail-panel { padding: 15px; }
  .withdraw-amount-step { gap: 15px; }
  .withdraw-field-grid,
  .withdraw-pix-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .withdraw-field-wide { grid-column: auto; }
  .withdraw-submit-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .withdraw-submit { width: 100%; }
  .alerts-layout { grid-template-columns: minmax(0, 1fr); }
  .alerts-panel { min-height: 300px; padding: 17px; }
}


/* Independent right-side scrolling; the sidebar stays anchored in the viewport. */
html, body {
  height: 100%;
  overflow: hidden;
}
main {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 211, 239, .28) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(190, 211, 239, .28); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(190, 211, 239, .45); }
.main-panel {
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(137, 151, 169, .52) transparent;
}
.main-panel::-webkit-scrollbar { width: 7px; }
.main-panel::-webkit-scrollbar-track { background: transparent; }
.main-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(137, 151, 169, .52); background-clip: padding-box; }
.main-panel::-webkit-scrollbar-thumb:hover { background: rgba(111, 130, 153, .72); background-clip: padding-box; }
body[data-theme="dark"] .main-panel { scrollbar-color: rgba(191, 202, 214, .35) transparent; }
body[data-theme="dark"] .main-panel::-webkit-scrollbar-thumb { background: rgba(191, 202, 214, .35); background-clip: padding-box; }
body[data-theme="dark"] .main-panel::-webkit-scrollbar-thumb:hover { background: rgba(207, 219, 231, .56); background-clip: padding-box; }


/* Phone navigation dock, including compact landscape handsets. */
.mobile-dock { display: none; }
.compact-balance-chip { display: none; }
.mobile-spark-button { display: none; }
.mobile-qr-screen { display: none; }
.search-assistant {
  position: fixed;
  z-index: 18;
  bottom: 16px;
  left: calc(50% + 92px);
  display: flex;
  width: min(320px, calc(100vw - 32px));
  justify-content: center;
  transform: translateX(-50%);
}
.desktop-search {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: min(240px, 100%);
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: #41464e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: width .22s ease, box-shadow .18s ease, background .18s ease;
}
.desktop-search textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  max-height: 96px;
  padding: 3px 0;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 500 11px/1.35 Inter, "Helvetica Neue", Arial, sans-serif;
}
.desktop-search textarea::-webkit-scrollbar { display: none; }
.desktop-search textarea::placeholder { color: rgba(255, 255, 255, .82); opacity: 1; }
.desktop-search:focus-within {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgba(64, 195, 224, .3), 0 10px 30px rgba(0, 0, 0, .2);
}
.desktop-search button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #777c84;
  color: #363b42;
  opacity: .8;
  cursor: pointer;
  place-items: center;
  transition: background .18s ease, color .18s ease, opacity .18s ease, transform .16s ease;
}
.desktop-search.has-text button { background: #fff; color: #131820; opacity: 1; }
.desktop-search.has-text button:hover { background: #f3f9fc; transform: translateY(-1px); }
.desktop-search button:disabled { cursor: default; }
.desktop-search button:focus-visible { outline: 2px solid #198ba5; outline-offset: 2px; }
.desktop-search button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* Desktop assistant overlay */
.mobile-chat[hidden] { display: none !important; }
@media (min-width: 701px) {
  body.mobile-chat-open { overflow: hidden; }
  .mobile-chat:not([hidden]) { position: fixed; z-index: 1000; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #202123; color: #ececf1; animation: desktop-chat-enter .2s ease-out both; }
  @keyframes desktop-chat-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .mobile-chat-header { display: flex; min-height: 66px; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(32,33,35,.96); }
  .mobile-chat-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
  .mobile-chat-avatar { display: grid; width: 36px; height: 36px; flex: none; border: 1px solid rgba(102,214,226,.25); border-radius: 12px; background: linear-gradient(145deg,#174e56,#243d4c); color: #9ae9ed; place-items: center; }
  .mobile-chat-avatar svg { width: 21px; height: 21px; fill: #a3f2fa; filter: drop-shadow(0 0 6px rgba(88,225,241,.62)); animation: streampix-star-glow 3s ease-in-out infinite; }
  .mobile-chat-identity > span:last-child { display: grid; gap: 4px; }
  .mobile-chat-identity strong { color: #f4f4f5; font: 650 13px/1.2 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-identity small { display: flex; align-items: center; gap: 6px; color: #9b9ca3; font: 450 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-identity small i { width: 6px; height: 6px; border-radius: 50%; background: #56c99a; box-shadow: 0 0 7px rgba(86,201,154,.48); }
  .mobile-chat-header-actions { display: flex; flex: none; gap: 6px; }
  .mobile-chat-icon-button { display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #c5c5cc; cursor: pointer; font-size: 15px; place-items: center; }
  .mobile-chat-icon-button:hover { border-color: #424349; background: #2b2c30; color: white; }
  .mobile-chat-scroll { display: flex; width: 100%; min-width: 0; flex: 1; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
  .mobile-chat-welcome { box-sizing: border-box; width: min(100%,760px); min-width: 0; margin: auto; padding: 42px 24px 54px; text-align: center; }
  .mobile-chat-welcome-mark { display: grid; width: 56px; height: 56px; margin: 0 auto 19px; border: 1px solid rgba(113,225,236,.24); border-radius: 18px; background: radial-gradient(circle at 30% 20%,#255d67,#242f39 72%); color: #9beaf0; box-shadow: 0 8px 30px rgba(25,154,171,.1); place-items: center; }
  .mobile-chat-welcome-mark svg { width: 30px; height: 30px; fill: #a9f4fa; filter: drop-shadow(0 0 8px rgba(88,225,241,.65)); }
  .mobile-chat-welcome h2 { margin: 0; color: #f2f2f4; font: 650 28px/1.2 Inter,"Helvetica Neue",Arial,sans-serif; letter-spacing: -.6px; }
  .mobile-chat-welcome > p { margin: 10px auto 24px; color: #a0a1a9; font: 400 13px/1.55 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-prompts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; text-align: left; }
  .mobile-chat-prompts button { display: grid; min-height: 56px; grid-template-columns: 25px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #3a3b41; border-radius: 12px; background: #26272b; color: #d2d2d7; cursor: pointer; font: 500 12px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-prompts button:hover { border-color: #4d737b; background: #2b3034; }
  .mobile-chat-prompts button > i:first-child { display: grid; width: 25px; height: 25px; border-radius: 8px; background: rgba(98,205,218,.1); color: #8cdae4; font-size: 11px; place-items: center; }
  .mobile-chat-prompts button > i:last-child { color: #72747c; font-size: 10px; }
  .mobile-chat-messages { box-sizing: border-box; width: min(100%,860px); min-width: 0; margin: 0 auto; padding: 5px 24px 30px; }
  .mobile-chat-message { display: flex; box-sizing: border-box; width: 100%; min-width: 0; align-items: flex-start; gap: 12px; padding: 19px 0; }
  .mobile-chat-message + .mobile-chat-message { border-top: 1px solid rgba(255,255,255,.04); }
  .mobile-chat-message-avatar { display: grid; width: 29px; height: 29px; flex: none; border: 1px solid #3c3e43; border-radius: 9px; background: #2e3035; color: #c7c8ce; font-size: 11px; place-items: center; }
  .mobile-chat-message-avatar svg { width: 18px; height: 18px; fill: #a0eef5; }
  .mobile-chat-message.is-assistant .mobile-chat-message-avatar { border-color: rgba(97,200,212,.22); background: #24383d; color: #8be0e8; }
  .mobile-chat-message-body { box-sizing: border-box; min-width: 0; max-width: 100%; flex: 1; padding-top: 2px; overflow-wrap: anywhere; }
  .mobile-chat-message-body > strong { color: #f0f0f2; font: 600 12px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-message-text { box-sizing: border-box; max-width: 100%; margin: 7px 0 0; color: #d2d2d7; font: 400 14px/1.65 Inter,"Helvetica Neue",Arial,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .mobile-chat-message-text > :first-child { margin-top: 0; }
  .mobile-chat-message-text > :last-child { margin-bottom: 0; }
  .mobile-chat-message-text h1,.mobile-chat-message-text h2,.mobile-chat-message-text h3 { color: #f0f0f2; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
  .mobile-chat-message-text h1 { margin: 17px 0 8px; font-size: 21px; }
  .mobile-chat-message-text h2 { margin: 15px 0 7px; font-size: 18px; }
  .mobile-chat-message-text h3 { margin: 13px 0 6px; font-size: 15px; }
  .mobile-chat-message-text p { margin: 0 0 10px; }
  .mobile-chat-message-text ul,.mobile-chat-message-text ol { margin: 5px 0 12px; padding-left: 22px; }
  .mobile-chat-message.is-user .mobile-chat-message-body { padding: 12px 14px; border: 1px solid #3b3c42; border-radius: 15px 15px 4px 15px; background: #2a2b30; }
  .mobile-chat-message.is-user .mobile-chat-message-text { margin-top: 4px; }
  .mobile-chat-message-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
  .mobile-chat-message-attachments img { display: block; max-width: min(100%,300px); max-height: 260px; border: 1px solid #484a52; border-radius: 10px; object-fit: contain; }
  .mobile-chat-message-file { display: inline-flex; max-width: 220px; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #484a52; border-radius: 8px; color: #c9dadd; font-size: 10px; }
  .mobile-chat-message.is-loading .mobile-chat-message-text { margin-top: 12px; }
  .mobile-chat-typing { display: inline-flex; gap: 4px; }
  .mobile-chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a4a6ad; animation: chat-typing 1s ease-in-out infinite; }
  .mobile-chat-typing i:nth-child(2) { animation-delay: .12s; }
  .mobile-chat-typing i:nth-child(3) { animation-delay: .24s; }
  .mobile-chat-composer { box-sizing: border-box; width: 100%; flex: none; padding: 13px 24px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg,rgba(32,33,35,.94),#202123 38%); }
  .mobile-chat-composer-row { display: flex; width: min(100%,860px); min-width: 0; align-items: center; gap: 9px; margin: 0 auto; }
  .mobile-chat-tools { position: relative; flex: none; }
  .mobile-chat-plus { display: grid; width: 36px; height: 36px; padding: 0; border: 1px solid #484a51; border-radius: 50%; background: #303137; color: #d9dbe1; cursor: pointer; font-size: 14px; place-items: center; }
  .mobile-chat-plus:hover,.mobile-chat-plus[aria-expanded="true"] { border-color: #6babb5; background: #374247; color: #a9eff4; }
  .mobile-chat-tools-menu { position: absolute; z-index: 5; bottom: calc(100% + 10px); left: 0; display: grid; width: 238px; gap: 3px; padding: 7px; border: 1px solid #45474f; border-radius: 15px; background: rgba(37,38,42,.98); box-shadow: 0 16px 44px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
  .mobile-chat-tools-menu[hidden] { display: none; }
  .mobile-chat-tools-menu button { display: grid; min-height: 42px; grid-template-columns: 22px minmax(0,1fr) 15px; align-items: center; gap: 10px; padding: 5px 9px; border: 0; border-radius: 9px; background: transparent; color: #e3e4e8; cursor: pointer; text-align: left; font: 500 12px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-tools-menu button:hover,.mobile-chat-tools-menu button[aria-checked="true"] { background: #35383e; }
  .mobile-chat-tools-menu button > i:first-child { color: #9bdae2; font-size: 13px; text-align: center; }
  .mobile-chat-tools-menu button small { display: block; margin-top: 2px; color: #9699a2; font-size: 9px; }
  .mobile-chat-tool-check { color: #85e1be; font-size: 11px; opacity: 0; }
  .mobile-chat-tools-menu button[aria-checked="true"] .mobile-chat-tool-check { opacity: 1; }
  .mobile-chat-input-shell { position: relative; display: flex; min-width: 0; min-height: 42px; flex: 1; align-items: center; gap: 8px; padding: 5px 7px 5px 15px; border: 1px solid #4a4b52; border-radius: 17px; background: #2b2c30; box-shadow: 0 4px 18px rgba(0,0,0,.16); }
  .mobile-chat-input-shell textarea { box-sizing: border-box; flex: 1; min-width: 0; min-height: 28px; max-height: 120px; padding: 4px 0; resize: none; overflow-x: hidden; overflow-y: auto; border: 0; outline: 0; background: transparent; color: #f1f1f3; font: 400 14px/1.4 Inter,"Helvetica Neue",Arial,sans-serif; overflow-wrap: anywhere; }
  .mobile-chat-input-shell textarea::placeholder { color: #92939b; }
  .mobile-chat-input-shell button { display: grid; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 11px; background: #e9e9ed; color: #1b1c20; cursor: pointer; font-size: 13px; place-items: center; }
  .mobile-chat-input-shell button:disabled { background: #47484f; color: #a1a2a9; cursor: default; }
  .mobile-chat-composer > p { margin: 8px auto 0; color: #777982; font: 400 10px/1.35 Inter,"Helvetica Neue",Arial,sans-serif; text-align: center; }
  .mobile-chat-pending-attachments { display: flex; width: min(100%,810px); flex-wrap: wrap; gap: 6px; margin: 8px auto 0; }
  .mobile-chat-pending-attachments[hidden] { display: none; }
  .mobile-chat-attachment-chip { display: inline-flex; max-width: min(100%,220px); min-height: 27px; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid #464950; border-radius: 9px; background: #303137; color: #cfd2d9; font: 450 10px/1.2 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-attachment-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-chat-attachment-chip > i { flex: none; color: #8bd8e2; }
  .mobile-chat-attachment-chip button { display: grid; width: 20px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aeb1b8; cursor: pointer; place-items: center; }
  .mobile-chat-consent { box-sizing: border-box; width: calc(100% - 48px); max-width: 680px; margin: 8px auto 15px; padding: 14px; border: 1px solid #3c4145; border-radius: 14px; background: linear-gradient(145deg,#292d31,#242629); }
  .mobile-chat-consent-heading { display: flex; align-items: center; gap: 10px; }
  .mobile-chat-consent-icon { display: grid; width: 30px; height: 30px; border-radius: 10px; background: rgba(86,190,205,.1); color: #9be5ed; place-items: center; }
  .mobile-chat-consent-heading strong { color: #e8eef0; font: 550 12px/1.4 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-consent-details { margin-top: 10px; }
  .mobile-chat-consent-details[aria-hidden="true"] { display: none; }
  .mobile-chat-consent-details p { color: #aaafb5; font: 400 11px/1.5 Inter,"Helvetica Neue",Arial,sans-serif; }
  .mobile-chat-consent-actions { display: flex; gap: 8px; margin-top: 12px; }
  .mobile-chat-consent-actions button { min-height: 37px; padding: 0 12px; border: 1px solid #454b50; border-radius: 9px; cursor: pointer; }
  .mobile-chat-consent-cancel { background: #303338; color: #c5cbd0; }
  .mobile-chat-consent-authorize { flex: 1; background: linear-gradient(135deg,#276b75,#215761); color: #effcfd; }
  body[data-theme="light"] .mobile-chat:not([hidden]) { background: #fff; color: #25262a; }
  body[data-theme="light"] .mobile-chat-header { border-color: #ececf0; background: rgba(255,255,255,.97); }
  body[data-theme="light"] .mobile-chat-identity strong,body[data-theme="light"] .mobile-chat-welcome h2,body[data-theme="light"] .mobile-chat-message-body > strong { color: #202126; }
  body[data-theme="light"] .mobile-chat-identity small,body[data-theme="light"] .mobile-chat-welcome > p { color: #747680; }
  body[data-theme="light"] .mobile-chat-icon-button { color: #5b5d66; }
  body[data-theme="light"] .mobile-chat-prompts button { border-color: #e1e3e8; background: #fff; color: #363840; }
  body[data-theme="light"] .mobile-chat-message + .mobile-chat-message { border-color: rgba(30,35,45,.06); }
  body[data-theme="light"] .mobile-chat-message-avatar { border-color: #e2e3e8; background: #f3f4f6; color: #5b5d66; }
  body[data-theme="light"] .mobile-chat-message.is-assistant .mobile-chat-message-avatar { border-color: #d5ebed; background: #eef9fa; color: #327e88; }
  body[data-theme="light"] .mobile-chat-message-text { color: #33353b; }
  body[data-theme="light"] .mobile-chat-message-text h1,body[data-theme="light"] .mobile-chat-message-text h2,body[data-theme="light"] .mobile-chat-message-text h3 { color: #202126; }
  body[data-theme="light"] .mobile-chat-message.is-user .mobile-chat-message-body { border-color: #e1e3e8; background: #f2f3f5; }
  body[data-theme="light"] .mobile-chat-composer { border-color: #ececf0; background: linear-gradient(180deg,rgba(255,255,255,.96),#fff 38%); }
  body[data-theme="light"] .mobile-chat-plus { border-color: #d8dae0; background: #f0f1f4; color: #4d5058; }
  body[data-theme="light"] .mobile-chat-tools-menu { border-color: #e1e3e8; background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(30,35,45,.18); }
  body[data-theme="light"] .mobile-chat-tools-menu button { color: #343740; }
  body[data-theme="light"] .mobile-chat-tools-menu button:hover,body[data-theme="light"] .mobile-chat-tools-menu button[aria-checked="true"] { background: #f1f5f6; }
  body[data-theme="light"] .mobile-chat-input-shell { border-color: #d8dae0; background: #f8f8fa; box-shadow: 0 3px 14px rgba(20,25,35,.07); }
  body[data-theme="light"] .mobile-chat-input-shell textarea { color: #23242a; }
  body[data-theme="light"] .mobile-chat-input-shell textarea::placeholder { color: #81838c; }
  body[data-theme="light"] .mobile-chat-input-shell button { background: #24252a; color: white; }
  body[data-theme="light"] .mobile-chat-input-shell button:disabled { background: #dedfe4; color: #888a92; }
  body[data-theme="light"] .mobile-chat-composer > p { color: #858791; }
}

.mobile-chat-composer.is-thinking .mobile-chat-input-shell {
  animation: thinking-glow 4.6s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes thinking-glow {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,.16); }
  24% { box-shadow: 0 4px 18px rgba(0,0,0,.16), 0 0 12px rgba(231,160,174,.12), 0 0 26px rgba(157,212,217,.09); }
  55% { box-shadow: 0 4px 18px rgba(0,0,0,.16), 0 0 17px rgba(231,160,174,.18), 0 0 34px rgba(157,212,217,.13); }
  78% { box-shadow: 0 4px 18px rgba(0,0,0,.16), 0 0 13px rgba(215,167,206,.13), 0 0 28px rgba(170,167,216,.1); }
}
body[data-theme="light"] .mobile-chat-composer.is-thinking .mobile-chat-input-shell { animation-name: thinking-glow-light; }
body[data-theme="dark"] .mobile-chat-composer.is-thinking .mobile-chat-input-shell:focus-within { border-color: #4a4b52; }
body[data-theme="light"] .mobile-chat-composer.is-thinking .mobile-chat-input-shell:focus-within { border-color: #d8dae0; }
@keyframes thinking-glow-light {
  0%,100% { box-shadow: 0 3px 14px rgba(20,25,35,.07); }
  24% { box-shadow: 0 3px 14px rgba(20,25,35,.07), 0 0 12px rgba(210,132,147,.13), 0 0 26px rgba(109,183,194,.1); }
  55% { box-shadow: 0 3px 14px rgba(20,25,35,.07), 0 0 17px rgba(210,132,147,.18), 0 0 34px rgba(109,183,194,.14); }
  78% { box-shadow: 0 3px 14px rgba(20,25,35,.07), 0 0 13px rgba(173,142,193,.14), 0 0 28px rgba(112,157,199,.11); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-chat-composer.is-thinking .mobile-chat-input-shell { animation: none; box-shadow: 0 4px 18px rgba(0,0,0,.16), 0 0 15px rgba(231,160,174,.15), 0 0 28px rgba(157,212,217,.1); }
  body[data-theme="light"] .mobile-chat-composer.is-thinking .mobile-chat-input-shell { box-shadow: 0 3px 14px rgba(20,25,35,.07), 0 0 15px rgba(210,132,147,.16), 0 0 28px rgba(109,183,194,.11); }
}
@media (max-width: 700px), (max-width: 900px) and (max-height: 500px) {
  .alerts-layout { grid-template-columns: minmax(0, 1fr); }
  .search-assistant { display: none; }
  .mobile-chat[hidden] { display: none !important; }
  .mobile-chat:not([hidden]) {
    position: fixed;
    z-index: 40;
    inset: 0 0 calc(42px + env(safe-area-inset-bottom));
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #202123;
    color: #ececf1;
    box-shadow: 0 -12px 42px rgba(0,0,0,.32);
    animation: mobile-chat-enter .22s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes mobile-chat-enter { from { opacity: .7; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  body.mobile-chat-open { overflow: hidden; }
  body.mobile-chat-open .mobile-spark-button { visibility: hidden; }
  .mobile-chat-header {
    display: flex;
    min-height: 62px;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(9px, env(safe-area-inset-top)) 14px 9px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(32,33,35,.96);
  }
  .mobile-chat-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
  .mobile-chat-avatar { display: grid; width: 34px; height: 34px; flex: none; border: 1px solid rgba(102,214,226,.25); border-radius: 12px; background: linear-gradient(145deg, #174e56, #243d4c); color: #9ae9ed; font-size: 14px; place-items: center; }
  .mobile-chat-avatar svg { width: 21px; height: 21px; fill: #a3f2fa; filter: drop-shadow(0 0 6px rgba(88,225,241,.62)); animation: streampix-star-glow 3s ease-in-out infinite; }
  .mobile-chat-identity > span:last-child { display: grid; gap: 3px; }
  .mobile-chat-identity strong { color: #f4f4f5; font: 650 13px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-identity small { display: flex; align-items: center; gap: 5px; color: #9b9ca3; font: 450 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-identity small i { width: 6px; height: 6px; border-radius: 50%; background: #56c99a; box-shadow: 0 0 7px rgba(86,201,154,.48); }
  .mobile-chat-header-actions { display: flex; flex: none; gap: 5px; }
  .mobile-chat-icon-button { display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #c5c5cc; cursor: pointer; font-size: 15px; place-items: center; }
  .mobile-chat-icon-button:hover { border-color: #424349; background: #2b2c30; color: white; }
  .mobile-chat-icon-button:focus-visible, .mobile-chat-prompts button:focus-visible { outline: 2px solid #67d4e2; outline-offset: 2px; }
  .mobile-chat-scroll { display: flex; width: 100%; min-width: 0; flex: 1; flex-direction: column; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
  .mobile-chat-welcome { box-sizing: border-box; width: min(100%, 620px); min-width: 0; margin: auto; padding: 28px 20px 36px; text-align: center; }
  .mobile-chat-welcome[hidden] { display: none; }
  .mobile-chat-welcome-mark { display: grid; width: 48px; height: 48px; margin: 0 auto 17px; border: 1px solid rgba(113,225,236,.24); border-radius: 17px; background: radial-gradient(circle at 30% 20%, #255d67, #242f39 72%); color: #9beaf0; font-size: 20px; box-shadow: 0 8px 30px rgba(25,154,171,.1); place-items: center; }
  .mobile-chat-welcome-mark svg { width: 27px; height: 27px; fill: #a9f4fa; filter: drop-shadow(0 0 8px rgba(88,225,241,.65)); }
  .mobile-chat-welcome h2 { margin: 0; color: #f2f2f4; font: 650 clamp(22px, 6vw, 29px)/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.6px; }
  .mobile-chat-welcome > p { max-width: 340px; margin: 10px auto 22px; color: #a0a1a9; font: 400 13px/1.55 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-prompts { display: grid; gap: 8px; text-align: left; }
  .mobile-chat-prompts button { display: grid; min-height: 48px; grid-template-columns: 25px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #3a3b41; border-radius: 12px; background: #26272b; color: #d2d2d7; cursor: pointer; font: 500 12px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
  .mobile-chat-prompts button:hover { transform: translateY(-1px); border-color: #4d737b; background: #2b3034; }
  .mobile-chat-prompts button > i:first-child { display: grid; width: 25px; height: 25px; border-radius: 8px; background: rgba(98,205,218,.1); color: #8cdae4; font-size: 11px; place-items: center; }
  .mobile-chat-prompts button > i:last-child { color: #72747c; font-size: 10px; }
  .mobile-chat-messages { box-sizing: border-box; width: min(100%, 760px); min-width: 0; margin: 0 auto; padding: 5px 15px 28px; }
  .mobile-chat-message { display: flex; box-sizing: border-box; width: 100%; min-width: 0; align-items: flex-start; gap: 11px; padding: 18px 0; }
  .mobile-chat-message + .mobile-chat-message { border-top: 1px solid rgba(255,255,255,.035); }
  .mobile-chat-message-avatar { display: grid; width: 27px; height: 27px; flex: none; border: 1px solid #3c3e43; border-radius: 9px; background: #2e3035; color: #c7c8ce; font-size: 11px; place-items: center; }
  .mobile-chat-message-avatar svg { width: 17px; height: 17px; fill: #a0eef5; filter: drop-shadow(0 0 4px rgba(88,225,241,.48)); }
  .mobile-chat-message.is-latest .mobile-chat-message-avatar svg { animation: streampix-star-spin 4.8s linear infinite, streampix-star-glow 2.8s ease-in-out infinite; transform-origin: center; }
  .mobile-chat-message.is-assistant .mobile-chat-message-avatar { border-color: rgba(97,200,212,.22); background: #24383d; color: #8be0e8; }
  .mobile-chat-message-body { box-sizing: border-box; min-width: 0; max-width: 100%; flex: 1; padding-top: 2px; overflow-wrap: anywhere; }
  .mobile-chat-message-body > strong { color: #f0f0f2; font: 600 12px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-message-text { box-sizing: border-box; max-width: 100%; margin: 7px 0 0; color: #d2d2d7; font: 400 14px/1.6 Inter, "Helvetica Neue", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .mobile-chat-message-text > :first-child { margin-top: 0; }
  .mobile-chat-message-text > :last-child { margin-bottom: 0; }
  .mobile-chat-message-text h1, .mobile-chat-message-text h2, .mobile-chat-message-text h3 { color: #f0f0f2; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
  .mobile-chat-message-text h1 { margin: 17px 0 8px; font-size: 21px; }
  .mobile-chat-message-text h2 { margin: 15px 0 7px; font-size: 18px; }
  .mobile-chat-message-text h3 { margin: 13px 0 6px; font-size: 15px; }
  .mobile-chat-message-text p { margin: 0 0 10px; }
  .mobile-chat-message-text ul, .mobile-chat-message-text ol { margin: 5px 0 12px; padding-left: 22px; }
  .mobile-chat-message-text li { padding-left: 2px; margin: 4px 0; }
  .mobile-chat-message.is-user .mobile-chat-message-body { box-sizing: border-box; padding: 12px 14px; border: 1px solid #3b3c42; border-radius: 15px 15px 4px 15px; background: #2a2b30; }
  .mobile-chat-message.is-user .mobile-chat-message-text { margin-top: 4px; }
  .mobile-chat-message-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
  .mobile-chat-message-attachments img { display: block; max-width: min(100%, 240px); max-height: 220px; border: 1px solid #484a52; border-radius: 10px; object-fit: contain; }
  .mobile-chat-message-file { display: inline-flex; max-width: 220px; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #484a52; border-radius: 8px; color: #c9dadd; font-size: 10px; }
  .mobile-chat-message-file > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-chat-message.is-loading .mobile-chat-message-text { margin-top: 12px; }
  .mobile-chat-typing { display: inline-flex; gap: 4px; }
  .mobile-chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a4a6ad; animation: chat-typing 1s ease-in-out infinite; }
  .mobile-chat-typing i:nth-child(2) { animation-delay: .12s; }
  .mobile-chat-typing i:nth-child(3) { animation-delay: .24s; }
  @keyframes chat-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
  @keyframes streampix-star-spin { to { transform: rotate(360deg); } }
  @keyframes streampix-star-glow { 0%, 100% { opacity: .82; filter: drop-shadow(0 0 3px rgba(88,225,241,.34)); } 50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(88,225,241,.78)); } }
  .mobile-chat-consent { box-sizing: border-box; width: calc(100% - 30px); max-width: 600px; margin: 6px auto 14px; padding: 13px; border: 1px solid #3c4145; border-radius: 14px; background: linear-gradient(145deg, #292d31, #242629); box-shadow: 0 7px 20px rgba(0,0,0,.12); }
  .mobile-chat-consent-heading { display: flex; align-items: center; gap: 10px; min-height: 30px; }
  .mobile-chat-consent-icon { display: grid; width: 29px; height: 29px; flex: none; border: 1px solid rgba(126,220,232,.23); border-radius: 10px; background: rgba(86,190,205,.1); color: #9be5ed; font-size: 12px; place-items: center; }
  .mobile-chat-consent-heading strong { color: #e8eef0; font: 550 12px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-consent.is-loading .mobile-chat-consent-icon i { animation: consent-star-turn 2.2s ease-in-out infinite; }
  @keyframes consent-star-turn { 0%, 100% { transform: rotate(-12deg) scale(.94); } 50% { transform: rotate(348deg) scale(1.07); } }
  .mobile-chat-consent-details { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .42s cubic-bezier(.2,.75,.25,1), opacity .3s ease, visibility .3s ease; }
  .mobile-chat-consent.is-expanded .mobile-chat-consent-details { max-height: 240px; padding-top: 10px; opacity: 1; visibility: visible; }
  .mobile-chat-consent-details p { margin: 0; color: #aaafb5; font: 400 11px/1.5 Inter, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
  .mobile-chat-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .mobile-chat-consent-actions button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #454b50; border-radius: 9px; cursor: pointer; font: 600 10px/1.25 Inter, "Helvetica Neue", Arial, sans-serif; transition: border-color .15s ease, background .15s ease, color .15s ease; }
  .mobile-chat-consent-cancel { background: #303338; color: #c5cbd0; }
  .mobile-chat-consent-cancel:hover { border-color: #68727a; background: #363b40; }
  .mobile-chat-consent-authorize { flex: 1; border-color: rgba(89,196,210,.45) !important; background: linear-gradient(135deg, #276b75, #215761); color: #effcfd; }
  .mobile-chat-consent-authorize:hover { border-color: #79d9e4 !important; background: linear-gradient(135deg, #317f89, #286671); }
  .mobile-chat-consent-actions button:focus-visible { outline: 2px solid #67d4e2; outline-offset: 2px; }
  .mobile-chat-consent.is-authorized { border-color: rgba(82,198,152,.3); }
  .mobile-chat-consent.is-authorized .mobile-chat-consent-icon { border-color: rgba(82,198,152,.3); background: rgba(82,198,152,.1); color: #77d9ac; }
  .mobile-chat-consent.is-denied { border-color: rgba(180,185,190,.15); opacity: .82; }
  .mobile-chat-composer { flex: none; padding: 7px 13px 7px; border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(32,33,35,.94), #202123 38%); }
  .mobile-chat-composer-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
  .mobile-chat-tools { position: relative; flex: none; }
  .mobile-chat-plus { display: grid; width: 32px; height: 32px; padding: 0; border: 1px solid #484a51; border-radius: 50%; background: #303137; color: #d9dbe1; cursor: pointer; font-size: 14px; transition: transform .18s ease, border-color .18s ease, background .18s ease; place-items: center; }
  .mobile-chat-plus:hover, .mobile-chat-plus[aria-expanded="true"] { transform: rotate(45deg); border-color: #6babb5; background: #374247; color: #a9eff4; }
  .mobile-chat-plus:focus-visible, .mobile-chat-tools-menu button:focus-visible { outline: 2px solid #67d4e2; outline-offset: 2px; }
  .mobile-chat-tools-menu { position: absolute; z-index: 5; bottom: calc(100% + 10px); left: 0; display: grid; width: min(238px, calc(100vw - 38px)); gap: 3px; padding: 7px; border: 1px solid #45474f; border-radius: 15px; background: rgba(37,38,42,.98); box-shadow: 0 16px 44px rgba(0,0,0,.38); backdrop-filter: blur(18px); animation: chat-tools-pop .16s ease-out both; }
  .mobile-chat-tools-menu[hidden] { display: none; }
  @keyframes chat-tools-pop { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .mobile-chat-tools-menu button { display: grid; min-height: 42px; grid-template-columns: 22px minmax(0,1fr) 15px; align-items: center; gap: 10px; padding: 5px 9px; border: 0; border-radius: 9px; background: transparent; color: #e3e4e8; cursor: pointer; text-align: left; font: 500 12px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-tools-menu button:hover, .mobile-chat-tools-menu button[aria-checked="true"] { background: #35383e; }
  .mobile-chat-tools-menu button > i:first-child { color: #9bdae2; font-size: 13px; text-align: center; }
  .mobile-chat-tools-menu button > span { min-width: 0; }
  .mobile-chat-tools-menu button small { display: block; margin-top: 2px; color: #9699a2; font-size: 9px; }
  .mobile-chat-tool-check { color: #85e1be; font-size: 11px; opacity: 0; }
  .mobile-chat-tools-menu button[aria-checked="true"] .mobile-chat-tool-check { opacity: 1; }
  .mobile-chat-voice-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px 40px; color: #a8e8d2; font: 550 10px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-voice-status[hidden] { display: none; }
  .mobile-chat-voice-status > span { display: inline-flex; align-items: center; gap: 7px; }
  .mobile-chat-voice-status > span i { animation: voice-wave 1s ease-in-out infinite alternate; }
  .mobile-chat-voice-status button { padding: 4px 8px; border: 1px solid rgba(124,219,190,.25); border-radius: 7px; background: rgba(86,190,155,.09); color: #b7e9d7; cursor: pointer; font: 550 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
  @keyframes voice-wave { from { opacity: .45; transform: scale(.88); } to { opacity: 1; transform: scale(1.12); } }
  .mobile-chat-input-shell { display: flex; min-width: 0; min-height: 32px; flex: 1; align-items: center; gap: 7px; padding: 3px 6px 3px 12px; border: 1px solid #4a4b52; border-radius: 15px; background: #2b2c30; box-shadow: 0 4px 18px rgba(0,0,0,.16); transition: border-color .15s ease, box-shadow .15s ease; }
  .mobile-chat-input-shell:focus-within { border-color: #6babb5; box-shadow: 0 0 0 2px rgba(103,212,226,.1), 0 4px 18px rgba(0,0,0,.16); }
  .mobile-chat-input-shell textarea { box-sizing: border-box; flex: 1; min-width: 0; min-height: 28px; max-height: 108px; padding: 4px 0; resize: none; overflow-x: hidden; overflow-y: auto; border: 0; outline: 0; background: transparent; color: #f1f1f3; font: 400 14px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
  .mobile-chat-input-shell textarea::placeholder { color: #92939b; }
  .mobile-chat-input-shell button { display: grid; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 10px; background: #e9e9ed; color: #1b1c20; cursor: pointer; font-size: 13px; transition: opacity .15s ease, transform .15s ease, background .15s ease; place-items: center; }
  .mobile-chat-input-shell button:not(:disabled):hover { transform: translateY(-1px); background: white; }
  .mobile-chat-input-shell button:disabled { background: #47484f; color: #a1a2a9; cursor: default; }
  .mobile-chat-pending-attachments { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 40px; }
  .mobile-chat-pending-attachments[hidden] { display: none; }
  .mobile-chat-attachment-chip { display: inline-flex; max-width: min(100%, 220px); min-height: 27px; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid #464950; border-radius: 9px; background: #303137; color: #cfd2d9; font: 450 10px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
  .mobile-chat-attachment-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-chat-attachment-chip > i { flex: none; color: #8bd8e2; }
  .mobile-chat-attachment-chip button { display: grid; width: 20px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aeb1b8; cursor: pointer; place-items: center; }
  .mobile-chat-composer > p { margin: 7px 5px 0; color: #777982; font: 400 9px/1.35 Inter, "Helvetica Neue", Arial, sans-serif; text-align: center; }
  body[data-theme="light"] .mobile-chat:not([hidden]) { border-color: #e4e6eb; background: #fff; color: #25262a; }
  body[data-theme="light"] .mobile-chat-header { border-color: #ececf0; background: rgba(255,255,255,.96); }
  body[data-theme="light"] .mobile-chat-identity strong, body[data-theme="light"] .mobile-chat-welcome h2, body[data-theme="light"] .mobile-chat-message-body > strong { color: #202126; }
  body[data-theme="light"] .mobile-chat-identity small, body[data-theme="light"] .mobile-chat-welcome > p { color: #747680; }
  body[data-theme="light"] .mobile-chat-icon-button { color: #5b5d66; }
  body[data-theme="light"] .mobile-chat-icon-button:hover { border-color: #e2e3e8; background: #f4f5f7; color: #17181c; }
  body[data-theme="light"] .mobile-chat-prompts button { border-color: #e1e3e8; background: #fff; color: #363840; box-shadow: 0 2px 5px rgba(20,25,35,.035); }
  body[data-theme="light"] .mobile-chat-prompts button:hover { border-color: #a9d8df; background: #f7fcfd; }
  body[data-theme="light"] .mobile-chat-message + .mobile-chat-message { border-color: rgba(30,35,45,.05); }
  body[data-theme="light"] .mobile-chat-message-avatar { border-color: #e2e3e8; background: #f3f4f6; color: #5b5d66; }
  body[data-theme="light"] .mobile-chat-message.is-assistant .mobile-chat-message-avatar { border-color: #d5ebed; background: #eef9fa; color: #327e88; }
  body[data-theme="light"] .mobile-chat-message-text { color: #33353b; }
  body[data-theme="light"] .mobile-chat-message-text h1, body[data-theme="light"] .mobile-chat-message-text h2, body[data-theme="light"] .mobile-chat-message-text h3 { color: #202126; }
  body[data-theme="light"] .mobile-chat-consent { border-color: #dfe4e7; background: linear-gradient(145deg, #fff, #f7fafb); box-shadow: 0 6px 18px rgba(20,40,48,.07); }
  body[data-theme="light"] .mobile-chat-consent-icon { border-color: rgba(42,156,179,.22); background: rgba(42,156,179,.08); color: #247f91; }
  body[data-theme="light"] .mobile-chat-consent-heading strong { color: #263946; }
  body[data-theme="light"] .mobile-chat-consent-details p { color: #667681; }
  body[data-theme="light"] .mobile-chat-consent-cancel { border-color: #dce3e6; background: #f4f7f8; color: #526874; }
  body[data-theme="light"] .mobile-chat-consent-cancel:hover { background: #edf3f5; }
  body[data-theme="light"] .mobile-chat-message.is-user .mobile-chat-message-body { border-color: #e1e3e8; background: #f2f3f5; }
  body[data-theme="light"] .mobile-chat-message-attachments img, body[data-theme="light"] .mobile-chat-message-file { border-color: #d9dce2; }
  body[data-theme="light"] .mobile-chat-composer { border-color: #ececf0; background: linear-gradient(180deg, rgba(255,255,255,.95), #fff 38%); }
  body[data-theme="light"] .mobile-chat-plus { border-color: #d8dae0; background: #f0f1f4; color: #4d5058; }
  body[data-theme="light"] .mobile-chat-plus:hover, body[data-theme="light"] .mobile-chat-plus[aria-expanded="true"] { border-color: #a6d5da; background: #edf9fa; color: #267d87; }
  body[data-theme="light"] .mobile-chat-tools-menu { border-color: #e1e3e8; background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(30,35,45,.18); }
  body[data-theme="light"] .mobile-chat-tools-menu button { color: #343740; }
  body[data-theme="light"] .mobile-chat-tools-menu button:hover, body[data-theme="light"] .mobile-chat-tools-menu button[aria-checked="true"] { background: #f1f5f6; }
  body[data-theme="light"] .mobile-chat-tools-menu button small { color: #797d86; }
  body[data-theme="light"] .mobile-chat-attachment-chip { border-color: #e0e2e7; background: #f5f6f8; color: #4c5059; }
  body[data-theme="light"] .mobile-chat-input-shell { border-color: #d8dae0; background: #f8f8fa; box-shadow: 0 3px 14px rgba(20,25,35,.07); }
  body[data-theme="light"] .mobile-chat-input-shell textarea { color: #23242a; }
  body[data-theme="light"] .mobile-chat-input-shell textarea::placeholder { color: #81838c; }
  body[data-theme="light"] .mobile-chat-input-shell button { background: #24252a; color: white; }
  body[data-theme="light"] .mobile-chat-input-shell button:disabled { background: #dedfe4; color: #888a92; }
  body[data-theme="light"] .mobile-chat-composer > p { color: #858791; }
  .sidebar {
    position: fixed;
    z-index: 60;
    inset: auto 0 0;
    display: flex;
    width: 100%;
    height: calc(42px + env(safe-area-inset-bottom));
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 3px 8px calc(3px + env(safe-area-inset-bottom));
    overflow: visible;
    box-shadow: 0 -7px 24px rgba(0, 0, 0, .24);
  }
  .sidebar .brand,
  .sidebar .balance-card { display: none; }
  .sidebar .side-navigation { display: none; }
  .sidebar .sidebar-controls {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 8px);
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
  }
  .sidebar .profile-button { display: none; }
  .sidebar .profile-menu {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(250px, calc(100vw - 16px));
    pointer-events: auto;
  }
  .mobile-dock {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 60px repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
  }
  .compact-balance-chip {
    position: relative;
    z-index: 1;
    order: 2;
    display: none;
    max-width: 105px;
    min-height: 34px;
    align-items: center;
    gap: 4px;
    padding: 2px 4px 2px 8px;
    border: 1px solid rgba(151, 220, 232, .2);
    border-radius: 10px;
    background: rgba(12, 48, 61, .96);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
    color: #f3fcff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(.97);
    transform-origin: center;
    visibility: hidden;
    backdrop-filter: blur(12px);
    transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.7,.2,1), visibility 200ms ease, background 180ms ease, border-color 180ms ease;
  }
  .compact-balance-chip.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
  .compact-balance-copy { display: grid; min-width: 0; gap: 1px; }
  .compact-balance-label { color: #a6c5ce; font: 600 8px/1.1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  .compact-balance-value { overflow: hidden; color: #fff; font: 700 11px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.15px; text-overflow: ellipsis; white-space: nowrap; }
  .compact-balance-toggle {
    display: grid;
    width: 25px;
    height: 25px;
    flex: none;
    padding: 0;
    border: 1px solid rgba(170, 229, 238, .17);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: #c9f4f7;
    cursor: pointer;
    font-size: 13px;
    place-items: center;
    transition: background 140ms ease, color 140ms ease;
  }
  .compact-balance-toggle:hover { background: rgba(255, 255, 255, .16); color: #fff; }
  .topbar .header-actions { order: 2; flex: none; }
  body.has-compact-mobile-balance .topbar { flex-wrap: wrap; }
  body.has-compact-mobile-balance .compact-balance-chip { order: 3; margin: -4px 0 0 auto; }
  .compact-balance-toggle:focus-visible { outline: 2px solid #8ce4f1; outline-offset: 2px; }
  .compact-eye-closed,
  .compact-balance-toggle.is-hidden .compact-eye-open { display: none; }
  .compact-balance-toggle.is-hidden .compact-eye-closed { display: inline-block; }
  body.has-compact-mobile-balance .mobile-home-button { transform: scale(.88); }
  body[data-theme="light"] .compact-balance-chip {
    border-color: rgba(25, 118, 133, .17);
    background: rgba(250, 255, 255, .97);
    box-shadow: 0 6px 18px rgba(11, 59, 71, .2);
    color: #123d4c;
  }
  body[data-theme="light"] .compact-balance-label { color: #64818a; }
  body[data-theme="light"] .compact-balance-value { color: #123d4c; }
  body[data-theme="light"] .compact-balance-toggle { border-color: rgba(21, 104, 120, .18); background: #eaf8fa; color: #176274; }
  body[data-theme="light"] .compact-balance-toggle:hover { background: #d8f1f4; color: #0b4c5d; }
  .mobile-spark-button {
    position: fixed;
    z-index: 25;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(54px + env(safe-area-inset-bottom));
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(111, 223, 255, .65);
    border-radius: 18px;
    background: linear-gradient(145deg, #177be9, #0750b7);
    box-shadow: 0 7px 20px rgba(0, 93, 208, .38), inset 0 1px 0 rgba(255, 255, 255, .2);
    cursor: pointer;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-spark-button svg {
    width: 29px;
    height: 29px;
    overflow: visible;
    fill: #71f5ff;
    filter: drop-shadow(0 0 4px rgba(96, 246, 255, .95)) drop-shadow(0 0 10px rgba(58, 223, 255, .7));
    transform-origin: center;
    animation: spark-spin 3s ease-in-out infinite;
  }
  .mobile-spark-button:hover { background: linear-gradient(145deg, #2589f3, #0a5dc8); }
  .mobile-spark-button:focus-visible { outline: 2px solid #8cfaff; outline-offset: 3px; }
  @keyframes spark-spin { to { transform: rotate(-360deg); } }
  .mobile-dock-button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 1px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #a9b9d2;
    font: 500 10px/1 Inter, "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-dock-button i { display: grid; width: 20px; height: 20px; place-items: center; font-size: 17px; transform: translateY(-3px); }
  #mobile-more-toggle i { transform: translateY(-2px); }
  .mobile-dock-button span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dock-button:not(.mobile-home-button) {
    box-sizing: border-box;
    align-self: center;
    height: 34px;
    min-height: 0;
    justify-content: center;
    transform: translateY(-4px);
  }
  .mobile-home-button,
  .mobile-dock-button.mobile-home-button[aria-current="page"] {
    position: relative;
    top: -12px;
    z-index: 1;
    align-self: center;
    justify-self: center;
    width: clamp(56px, 14vw, 60px);
    height: clamp(56px, 14vw, 60px);
    flex: none;
    gap: 0;
    padding: 0;
    border: 4px solid #1b3159;
    border-radius: 50%;
    background: linear-gradient(145deg, #12677a, #073b51);
    color: #fff;
    box-shadow: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }
  .mobile-home-button img { object-fit: contain; transition: opacity .16s ease, transform .2s ease; }
  .mobile-home-button .mobile-home-mark { width: 36px; height: 42px; }
  .mobile-home-button span { display: none; }
  .mobile-dock-button[aria-current="page"] { background: rgba(79, 190, 217, .14); color: #75d5ed; }
  .mobile-dock-button[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
  .mobile-dock-button:focus-visible { outline: 2px solid #58cee5; outline-offset: -2px; }
  body.mobile-qr-active .main-panel { position: relative; z-index: 120; }
  body.mobile-qr-active .sidebar { z-index: 130; }
  body.mobile-qr-active .mobile-spark-button { visibility: hidden; }
  .mobile-qr-screen:not([hidden]) {
    position: fixed;
    z-index: 120;
    inset: 0 0 calc(42px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #292d33;
    box-shadow: 0 -14px 38px rgba(0, 0, 0, .2);
    animation: mobile-qr-rise .32s cubic-bezier(.2, .75, .25, 1) both;
  }
  .qr-reader-header {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    min-height: 74px;
    flex: none;
    align-items: center;
    gap: clamp(14px, 4vw, 22px);
    padding: max(18px, calc(env(safe-area-inset-top) + 12px)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(28, 31, 36, .76);
    scrollbar-width: none;
  }
  .mobile-qr-back {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e7edf0;
    font-size: 17px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-qr-back:hover { border: 0; border-radius: 0; background: transparent; color: #79e2f2; transform: scale(1.08); }
  .mobile-qr-back:active { border: 0; border-radius: 0; background: transparent; color: #fff; transform: scale(1.08); }
  .mobile-qr-back:focus-visible { outline: 2px solid #58cee5; outline-offset: -3px; }
  .qr-header-control {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e3e7eb;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
  }
  .qr-header-control { cursor: pointer; }
  .qr-header-control:hover:not(:disabled),
  .qr-header-control:active:not(:disabled) { border: 0; border-radius: 0; background: transparent; color: #79e2f2; transform: scale(1.08); }
  .qr-header-control:disabled { opacity: .48; cursor: not-allowed; }
  .qr-header-control:focus-visible { outline: 2px solid #58cee5; outline-offset: 2px; }
  .qr-header-control i { color: currentColor; font-size: 16px; }
  .qr-flash-toggle[aria-pressed="true"] { color: #ffd56a; }
  .qr-detect-toggle[aria-pressed="true"] { color: #79e2f2; }
  .qr-settings-menu option { background: #252a30; color: #f4f6f7; }
  .qr-toggle-indicator { width: 7px; height: 7px; border-radius: 50%; background: #737b82; }
  .qr-detect-toggle { position: relative; }
  .qr-detect-toggle .qr-toggle-indicator { position: absolute; top: 4px; right: 3px; }
  .qr-detect-toggle[aria-pressed="true"] .qr-toggle-indicator { background: #56e0a2; box-shadow: 0 0 9px rgba(86, 224, 162, .7); }
  .qr-settings-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    display: grid;
    min-width: 190px;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #22262b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    color: #dce3e7;
    font: 550 11px/1.4 Inter, "Helvetica Neue", Arial, sans-serif;
    transform: translateX(-50%);
  }
  .qr-settings-menu label { display: grid; gap: 7px; }
  .qr-settings-menu select { box-sizing: border-box; width: 100%; max-width: none; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: #191d21; }
  .qr-focus-menu { min-width: min(240px, calc(100vw - 36px)); }
  .qr-manual-focus input { width: 100%; accent-color: #55cde2; }
  .qr-settings-menu[hidden],
  .qr-manual-focus[hidden],
  .qr-scan-success[hidden] { display: none; }
  .qr-reader-content {
    box-sizing: border-box;
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  }
  .qr-camera-frame {
    position: relative;
    width: min(82vw, 540px, calc(100dvh - 190px));
    aspect-ratio: 1;
    flex: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: #15181c;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .025);
  }
  .qr-camera-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
  .qr-camera-placeholder {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #9da6ae;
    font: 500 12px/1.4 Inter, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
  }
  .qr-camera-placeholder[hidden] { display: none; }
  .qr-camera-placeholder i { color: #5d6872; font-size: 24px; }
  .qr-camera-mark { position: absolute; top: 50%; left: 50%; color: rgba(0, 0, 0, .55); font-size: clamp(86px, 26vw, 156px); transform: translate(-50%, -50%); pointer-events: none; }
  .qr-camera-corners { position: absolute; inset: 18%; border: 2px solid rgba(89, 215, 233, .38); border-radius: 18px; pointer-events: none; }
  .qr-camera-corners::before,
  .qr-camera-corners::after { position: absolute; inset: -2px; border: 3px solid transparent; border-radius: inherit; content: ""; }
  .qr-camera-corners::before { border-top-color: #65d6e8; border-left-color: #65d6e8; clip-path: polygon(0 0, 30% 0, 30% 3px, 3px 3px, 3px 30%, 0 30%); }
  .qr-camera-corners::after { border-right-color: #65d6e8; border-bottom-color: #65d6e8; clip-path: polygon(70% 100%, 100% 100%, 100% 70%, calc(100% - 3px) 70%, calc(100% - 3px) calc(100% - 3px), 70% calc(100% - 3px)); }
  .qr-reader-status { min-height: 16px; margin: 0; color: #a8afb6; font: 500 11px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; text-align: center; }
  .qr-reader-status:empty { display: none; }
  .qr-scan-success {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(89, 217, 157, .2);
    border-radius: 12px;
    background: rgba(42, 170, 108, .11);
    color: #95f0bf;
    font: 600 12px/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
    animation: qr-success-in .22s ease-out both;
  }
  .qr-scan-success i { font-size: 15px; }
  @keyframes qr-success-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mobile-qr-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .sidebar.is-more-open { z-index: 30; }
  .sidebar.is-more-open .side-navigation {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: calc(100% + 8px);
    left: 8px;
    display: block;
    max-height: min(62vh, 460px);
    margin: 0;
    padding: 9px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(220, 231, 248, .14);
    border-radius: 13px;
    background: #1b3159;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  }
  .sidebar.is-more-open .side-navigation .nav-button {
    min-height: 38px;
    justify-content: flex-start;
    padding: 0 10px;
    font-size: 12px;
  }
  .sidebar.is-more-open .side-navigation .nav-button > span { display: inline; }
  .sidebar.is-more-open .side-navigation .nav-chevron { display: block; }
  .sidebar.is-more-open .side-navigation .nav-submenu { display: grid; }
  .sidebar.is-more-open .side-navigation .nav-subitem { display: block; }
  .sidebar.is-more-open .side-navigation .nav-divider { display: block; }
  .sidebar.is-more-open .side-navigation .nav-list { gap: 3px; }
  .main-panel { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 72px; padding: 10px 14px; }
  .section-title { font-size: 18px; }
  .header-actions { gap: 2px; }
  .header-action { width: 23px; }
  .skip-alert {
    box-sizing: border-box;
    width: auto;
    min-width: 40px;
    min-height: 36px;
    flex: none;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid rgba(80, 197, 223, .24);
    border-radius: 8px;
    background: rgba(80, 197, 223, .1);
    font-size: 9px;
    white-space: nowrap;
  }
  .skip-alert span { display: inline; }
  .skip-alert i { font-size: 10px; }
  .skip-alert:hover { background: rgba(80, 197, 223, .17); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-spark-button svg { animation: none; }
  .mobile-chat-avatar svg, .mobile-chat-message.is-latest .mobile-chat-message-avatar svg { animation: none; }
  .mobile-chat-consent.is-loading .mobile-chat-consent-icon i { animation: none; }
  .mobile-chat-voice-status > span i { animation: none; }
  .mobile-chat-tools-menu { animation: none; }
  .mobile-qr-screen:not([hidden]) { animation: none; }
  .qr-scan-success { animation: none; }
}
@media (max-width: 900px) and (max-height: 500px) {
  .sidebar { height: calc(38px + env(safe-area-inset-bottom)); }
  .mobile-dock-button { gap: 2px; padding: 2px 1px; font-size: 9px; }
  .mobile-dock-button:not(.mobile-home-button) { height: 30px; }
  .mobile-dock-button i { font-size: 15px; }
  .mobile-home-button,
  .mobile-dock-button.mobile-home-button[aria-current="page"] { top: -10px; width: clamp(48px, 12vw, 52px); height: clamp(48px, 12vw, 52px); }
  .mobile-dock { grid-template-columns: repeat(2, minmax(0, 1fr)) 50px repeat(2, minmax(0, 1fr)); }
  .mobile-home-button .mobile-home-mark { width: 27px; height: 31px; }
  .mobile-qr-screen:not([hidden]) { inset: 0 0 calc(38px + env(safe-area-inset-bottom)); }
  .main-panel { padding-bottom: calc(46px + env(safe-area-inset-bottom)); }
  .withdraw-content { inset: 78px 13px calc(68px + env(safe-area-inset-bottom)); }
  .limits-content { inset: 78px 13px calc(68px + env(safe-area-inset-bottom)); }
  .statement-content { inset: 78px 13px calc(68px + env(safe-area-inset-bottom)); }
  .withdraw-empty-container { padding: 14px; }
  .withdraw-methods { margin-top: 0; }
  .withdraw-method-list { margin-top: 8px; }
  .withdraw-method { min-height: 62px; }
  .withdraw-form { margin-top: 10px; }
  .withdraw-detail-panel { padding: 12px; }
  .withdraw-amount-step { gap: 12px; }
}

body[data-theme="light"] .withdraw-summary {
  border-color: rgba(38, 150, 172, .2);
  background: linear-gradient(118deg, #e9f9fb, #f6fbfc 58%, #f1f5f7);
  box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(28, 83, 97, .07);
}
body[data-theme="light"] .withdraw-summary::before { background: radial-gradient(circle, rgba(59,190,211,.17), rgba(59,190,211,0) 68%); }
body[data-theme="light"] .withdraw-summary::after { border-color: rgba(49,149,164,.1); box-shadow: 0 0 0 18px rgba(49,149,164,.035), 0 0 0 38px rgba(49,149,164,.02); }
body[data-theme="light"] .withdraw-balance-label { color: #5f7880; }
body[data-theme="light"] .withdraw-balance.metric-value { color: #173d4a; text-shadow: 0 3px 20px rgba(31,170,192,.1); }
body[data-theme="light"] .withdraw-methods { border-color: #e1e9ec; background: rgba(240,245,247,.66); }

@container withdraw-panel (max-width: 720px) {
  .withdraw-method-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .withdraw-field-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .withdraw-pix-grid { grid-template-columns: minmax(130px,.8fr) minmax(0,1.2fr); }
}
@container withdraw-panel (max-width: 500px) {
  .withdraw-empty-container { gap: 12px; border-radius: 14px; }
  .withdraw-summary { min-height: 0; align-items: stretch; flex-direction: column; gap: 15px; padding: 18px; border-radius: 13px; }
  .withdraw-balance-row { justify-content: space-between; gap: 10px; margin-top: 0; }
  .withdraw-balance.metric-value { font-size: clamp(30px, 11cqi, 42px); letter-spacing: -1.2px; }
  .withdraw-history { min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .withdraw-methods { padding: 13px; border-radius: 13px; }
  .withdraw-methods h2 { font-size: 12px; }
  .withdraw-method-list { grid-template-columns: minmax(0,1fr); gap: 7px; margin-top: 11px; overflow: visible; }
  .withdraw-method { min-height: 58px; padding: 8px 10px; }
  .withdraw-field-grid,.withdraw-pix-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .withdraw-field-wide { grid-column: auto; }
  .withdraw-amount-heading { align-items: flex-start; flex-direction: column; }
  .withdraw-amount-field { max-width: none; }
}

@media (max-width: 700px), (max-width: 900px) and (max-height: 500px) {
  .topbar { min-height: 72px; padding: 10px 14px; align-items: center; flex-direction: row; gap: 8px; }
  .topbar-copy { flex: 1; }
  .section-subtitle { display: none; }
  .header-actions { align-self: auto; }
  body[data-theme="light"] .mobile-dock-button { color: #174e5c; }
  body[data-theme="light"] .mobile-dock-button[aria-current="page"] { background: rgba(255, 255, 255, .38); color: #103d4b; }
  body[data-theme="dark"] .mobile-home-button { background: #064b5b; border-color: #064b5b; box-shadow: 0 5px 14px rgba(0, 0, 0, .28); }
  body[data-theme="dark"] .mobile-home-button:hover { background: #064b5b; }
  body[data-theme="light"] .mobile-home-button { background: #38a9ba; color: #075364; border-color: #38a9ba; box-shadow: 0 4px 12px rgba(7, 68, 82, .22); }
  body[data-theme="light"] .mobile-home-button:hover { background: #38a9ba; }
  body[data-theme="light"] .mobile-home-button .mobile-home-mark { filter: brightness(.68) saturate(1.25); }
  body[data-theme="light"] .sidebar.is-more-open .side-navigation { background: #f7fdff; border-color: rgba(16, 61, 76, .16); }
}

/* Notification popover and detail window */
.topbar { position: sticky; }
.notifications-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% - 5px);
  right: 30px;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #dce2e9;
  border-radius: 12px;
  background: #fff;
  color: #1a2e59;
  box-shadow: 0 16px 42px rgba(13, 26, 45, .22);
}
.notifications-popover[hidden],
.notification-detail-backdrop[hidden] { display: none; }
.notifications-popover h2 { margin: 0 0 12px; font: 650 15px/1.25 Inter, "Helvetica Neue", Arial, sans-serif; }
.queue-popover { width: min(320px, calc(100vw - 24px)); padding: 15px; }
.queue-popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.queue-popover-heading h2 { margin: 3px 0 0; }
.queue-popover-kicker { color: #26a4bc; font: 700 8px/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .11em; }
.queue-total { padding: 6px 8px; border: 1px solid #d9e8eb; border-radius: 999px; background: #f0fafb; color: #18798b; font: 650 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; white-space: nowrap; }
.queue-popover-list { display: grid; gap: 3px; }
.queue-popover-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 53px; padding: 5px 7px; border-radius: 9px; }
.queue-popover-row:hover { background: #f4f7f8; }
.queue-popover-icon { display: grid; width: 30px; height: 30px; border-radius: 9px; background: #eaf7f9; color: #1597ad; font-size: 12px; place-items: center; }
.queue-popover-copy { display: grid; gap: 4px; min-width: 0; }
.queue-popover-copy strong { color: inherit; font: 600 11px/1.1 Inter, "Helvetica Neue", Arial, sans-serif; }
.queue-popover-copy small { overflow: hidden; color: #89929e; font: 450 9px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.queue-popover-count { min-width: 20px; color: #697482; font: 650 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; text-align: right; }
.queue-popover-row.is-paused .queue-popover-icon { background: #fff5e6; color: #bf8129; }
.queue-popover-row.is-paused .queue-popover-copy small { color: #b47b2c; }
.queue-manage { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 11px; border: 1px solid #bfe5eb; border-radius: 8px; background: #effafb; color: #157b8c; font: 600 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.queue-manage i { font-size: 10px; transition: transform .16s ease; }
.queue-manage:hover { background: #e2f6f8; }
.queue-manage:hover i { transform: translateX(3px); }
.queue-manage:focus-visible { outline: 2px solid #37adc0; outline-offset: 2px; }
.notification-list { display: grid; gap: 7px; }
.popover-empty-state { display: flex; min-height: 205px; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px 4px; text-align: center; }
.popover-empty-state[hidden] { display: none; }
.popover-empty-state img { width: 82px; height: 66px; margin-bottom: 10px; object-fit: contain; filter: grayscale(1); opacity: .62; }
.popover-empty-state p { max-width: 245px; margin: 0; color: #7d8794; font: 500 12px/1.5 Inter, "Helvetica Neue", Arial, sans-serif; }
.popover-empty-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.popover-empty-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #d9dfe6; border-radius: 7px; background: #f7f8fa; color: #465466; font: 550 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.popover-empty-actions button:hover { background: #edf1f4; }
.popover-empty-actions .popover-refresh { display: inline-flex; align-items: center; gap: 6px; border-color: #b9e5ed; background: #e9f8fa; color: #16798a; }
.popover-empty-actions .popover-refresh:hover { background: #d8f2f5; }
.notification-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-card:hover { background: #f1f3f5; }
.notification-card.is-read { background: #e8eaed; color: #737b86; }
.notification-icon { display: grid; width: 34px; height: 34px; border-radius: 50%; background: rgba(22, 200, 223, .13); color: #159bb1; place-items: center; }
.notification-copy { min-width: 0; font: 500 12px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.notification-arrow { color: #8994a1; text-align: center; font-size: 11px; }
.notification-thumbnail { grid-column: 2 / 4; width: min(160px, 100%); height: 82px; margin-top: 1px; border-radius: 8px; object-fit: cover; }
.notification-detail-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; padding: 5vh 5vw; background: rgba(10, 16, 25, .58); place-items: center; }
.notification-detail-dialog { position: relative; box-sizing: border-box; width: 90vw; height: 90vh; border: 1px solid #dce2e9; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.notification-detail-dialog .popover-empty-state { position: absolute; inset: 0; box-sizing: border-box; min-height: 0; padding: 32px; }
.notification-detail-close { position: absolute; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f2f4; color: #475365; cursor: pointer; place-items: center; }
body[data-theme="dark"] .notifications-popover,
body[data-theme="dark"] .notification-detail-dialog { border-color: #3c424a; background: #25282d; color: #eef2f5; }
body[data-theme="dark"] .queue-total { border-color: #344b50; background: #27373a; color: #8bd7e4; }
body[data-theme="dark"] .queue-popover-row:hover { background: #30353b; }
body[data-theme="dark"] .queue-popover-icon { background: #263b3f; color: #71c9d8; }
body[data-theme="dark"] .queue-popover-copy small { color: #9ca5af; }
body[data-theme="dark"] .queue-popover-count { color: #c6cdd5; }
body[data-theme="dark"] .queue-popover-row.is-paused .queue-popover-icon { background: #40372a; color: #e0b46c; }
body[data-theme="dark"] .queue-popover-row.is-paused .queue-popover-copy small { color: #d3a458; }
body[data-theme="dark"] .queue-manage { border-color: #31535a; background: #263e43; color: #8bd7e4; }
body[data-theme="dark"] .queue-manage:hover { background: #2e4b51; }
body[data-theme="dark"] .popover-empty-state p { color: #a8b1bc; }
body[data-theme="dark"] .popover-empty-actions button { border-color: #454b53; background: #30343a; color: #d4dbe2; }
body[data-theme="dark"] .popover-empty-actions button:hover { background: #3a4047; }
body[data-theme="dark"] .popover-empty-actions .popover-refresh { border-color: #31535a; background: #263e43; color: #8bd7e4; }
body[data-theme="dark"] .popover-empty-actions .popover-refresh:hover { background: #2e4b51; }
body[data-theme="dark"] .notification-card:hover { background: #343940; }
body[data-theme="dark"] .notification-card.is-read { background: #3a3d42; color: #a5abb3; }
body[data-theme="dark"] .notification-detail-close { background: #383d44; color: #e1e6eb; }
@media (max-width: 700px) {
  .notifications-popover { top: calc(100% - 2px); right: 12px; }
  .notification-detail-dialog { width: 90vw; height: 90vh; border-radius: 13px; }
}
.mobile-chat-message-text a { color: #85dceb; text-decoration: underline; text-decoration-color: rgba(133,220,235,.45); text-underline-offset: 2px; }
body[data-theme="light"] .mobile-chat-message-text a { color: #08798f; text-decoration-color: rgba(8,121,143,.35); }

/* Poll builder */
.polls-content { padding: 0 28px 28px 30px; }
.polls-content[hidden] { display: none; }
.polls-layout { display: grid; max-width: 1180px; grid-template-columns: minmax(0,1.55fr) minmax(270px,.85fr); align-items: start; gap: 18px; margin: 0 auto; }
.poll-builder, .poll-created { box-sizing: border-box; min-width: 0; border: 1px solid #34383e; border-radius: 14px; background: linear-gradient(155deg,#25282d,#202226 70%); box-shadow: 0 12px 32px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.025); }
.poll-builder { padding: 22px; }
.poll-builder-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.poll-heading-icon { display: grid; width: 40px; height: 40px; flex: none; border: 1px solid rgba(86,201,218,.17); border-radius: 12px; background: rgba(52,174,193,.1); color: #83dce6; font-size: 16px; place-items: center; }
.poll-builder-header h2, .poll-created h2 { margin: 0; color: #edf2f4; font: 650 14px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-builder-header p { margin: 4px 0 0; color: #929da7; font: 450 11px/1.4 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-field { display: grid; gap: 8px; color: #dce2e7; font: 600 11px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-field textarea, .poll-answer-row input, .poll-max-choice select { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #40454c; border-radius: 9px; outline: 0; background: #1f2125; color: #f1f3f5; font: 450 12px/1.45 Inter,"Helvetica Neue",Arial,sans-serif; transition: border-color .15s ease,box-shadow .15s ease; }
.poll-field textarea { min-height: 76px; resize: vertical; padding: 11px 12px; }
.poll-field textarea::placeholder, .poll-answer-row input::placeholder { color: #7e8790; }
.poll-field textarea:focus, .poll-answer-row input:focus, .poll-max-choice select:focus { border-color: #61c4d2; box-shadow: 0 0 0 3px rgba(82,196,211,.1); }
.poll-image-field { margin-top: 12px; }
.poll-image-trigger { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 11px; border: 1px dashed #4a555d; border-radius: 9px; color: #b7c6cd; cursor: pointer; font: 550 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-image-trigger:hover { border-color: #66c8d5; color: #a5edf3; }
.poll-image-trigger i { color: #83dce6; font-size: 13px; }
.poll-image-trigger small { margin-left: 2px; color: #7f8a92; font: 450 9px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-image-preview { display: flex; max-width: 100%; align-items: center; gap: 9px; margin-top: 9px; padding: 7px; border: 1px solid #3a4148; border-radius: 9px; background: rgba(255,255,255,.025); color: #c5cdd3; font: 450 10px/1.2 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-image-preview[hidden], .poll-max-choice[hidden] { display: none; }
.poll-image-preview img { width: 46px; height: 38px; flex: none; border-radius: 6px; object-fit: cover; }
.poll-image-preview span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-image-preview button, .poll-remove-answer { display: grid; width: 30px; height: 30px; flex: none; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: #aab5bc; cursor: pointer; place-items: center; }
.poll-image-preview button:hover, .poll-remove-answer:not(:disabled):hover { background: rgba(255,255,255,.08); color: #fff; }
.poll-answers-fieldset, .poll-mode-fieldset { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.poll-answers-fieldset legend, .poll-mode-fieldset legend { width: 100%; margin-bottom: 10px; color: #dce2e7; font: 600 11px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-answers-fieldset legend span { margin-left: 7px; color: #828d96; font: 450 9px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-answer-list { display: grid; gap: 7px; }
.poll-answer-row { display: flex; min-width: 0; align-items: center; gap: 7px; }
.poll-answer-row input { height: 38px; padding: 0 11px; }
.poll-remove-answer:disabled { opacity: .3; cursor: default; }
.poll-add-answer { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; margin-top: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #7ed6e2; cursor: pointer; font: 550 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-add-answer:hover:not(:disabled) { background: rgba(83,192,208,.1); }
.poll-add-answer:disabled { color: #83969a; cursor: default; }
.poll-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.poll-mode-option { position: relative; display: flex; min-height: 66px; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid #3b4047; border-radius: 10px; background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .15s ease,background .15s ease; }
.poll-mode-option:has(input:checked) { border-color: rgba(98,204,217,.65); background: rgba(64,175,190,.09); }
.poll-mode-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.poll-mode-option:focus-within { outline: 2px solid #65cbd8; outline-offset: 2px; }
.poll-mode-copy { display: grid; gap: 4px; }
.poll-mode-copy strong { color: #e4e9ed; font: 600 10px/1.2 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-mode-copy small { color: #929da7; font: 400 9px/1.35 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-mode-option > i { display: none; margin-left: auto; color: #8ce0e9; font-size: 10px; }
.poll-mode-option:has(input:checked) > i { display: block; }
.poll-max-choice { display: flex; max-width: 300px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: #c6d0d6; font: 500 10px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-max-choice select { width: auto; min-width: 110px; height: 34px; padding: 0 9px; }
.poll-form-status { margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(88,206,229,.18); border-radius: 8px; background: rgba(88,206,229,.06); color: #a7e3eb; font: 450 10px/1.45 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-form-status[hidden] { display: none; }
.poll-form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.poll-submit { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid #42adbf; border-radius: 9px; background: linear-gradient(135deg,#258b9b,#176b7a); color: #f1fcfd; cursor: pointer; font: 600 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; box-shadow: 0 5px 14px rgba(10,102,118,.18); }
.poll-submit:hover:not(:disabled) { background: linear-gradient(135deg,#2a9aaa,#1b7888); }
.poll-submit:disabled { opacity: .55; cursor: wait; }
.poll-created { overflow: hidden; }
.poll-created > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.poll-created > header > span { display: grid; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 7px; background: rgba(255,255,255,.07); color: #bfc8ce; font: 600 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; place-items: center; }
.poll-created-heading > span { display: grid; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 7px; background: rgba(255,255,255,.07); color: #bfc8ce; font: 600 10px/1 Inter,"Helvetica Neue",Arial,sans-serif; place-items: center; }
.poll-created-list { display: grid; gap: 10px; max-height: calc(100vh - 190px); overflow: auto; padding: 12px; }
.polls-empty { display: grid; min-height: 150px; align-content: center; justify-items: center; gap: 10px; color: #7f8b94; text-align: center; }
.polls-empty i { color: #54636c; font-size: 22px; }
.polls-empty p { max-width: 190px; margin: 0; font: 450 10px/1.5 Inter,"Helvetica Neue",Arial,sans-serif; }
.poll-created-card { padding: 12px; border: 1px solid #3b4047; border-radius: 10px; background: rgba(255,255,255,.02); }
.poll-created-card h3 { margin: 0; color: #edf2f4; font: 600 12px/1.4 Inter,"Helvetica Neue",Arial,sans-serif; overflow-wrap: anywhere; }
.poll-created-card img { display: block; width: 100%; max-height: 180px; margin-top: 10px; border-radius: 8px; object-fit: cover; }
.poll-created-card ul { display: grid; gap: 5px; margin: 10px 0; padding: 0; list-style: none; }
.poll-created-card li { padding: 7px 9px; border: 1px solid #3c4249; border-radius: 7px; color: #c0c8ce; font: 450 10px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; overflow-wrap: anywhere; }
.poll-created-card > p { margin: 9px 0 0; color: #89959e; font: 450 9px/1.3 Inter,"Helvetica Neue",Arial,sans-serif; }
body[data-theme="light"] .poll-builder, body[data-theme="light"] .poll-created { border-color: #e1e7eb; background: linear-gradient(155deg,#fff,#f7f9fa 70%); box-shadow: 0 12px 32px rgba(20,42,54,.06),inset 0 1px 0 #fff; }
body[data-theme="light"] .poll-builder-header h2, body[data-theme="light"] .poll-created h2 { color: #253744; }
body[data-theme="light"] .poll-builder-header p { color: #758390; }
body[data-theme="light"] .poll-field, body[data-theme="light"] .poll-answers-fieldset legend, body[data-theme="light"] .poll-mode-fieldset legend { color: #435762; }
body[data-theme="light"] .poll-field textarea, body[data-theme="light"] .poll-answer-row input, body[data-theme="light"] .poll-max-choice select { border-color: #dce4e8; background: #fff; color: #253744; }
body[data-theme="light"] .poll-field textarea::placeholder, body[data-theme="light"] .poll-answer-row input::placeholder { color: #99a3aa; }
body[data-theme="light"] .poll-image-trigger { border-color: #cbd9de; color: #526874; }
body[data-theme="light"] .poll-image-trigger small, body[data-theme="light"] .poll-mode-copy small { color: #7e8c94; }
body[data-theme="light"] .poll-image-preview { border-color: #e0e7ea; background: #f7fafb; color: #4c626d; }
body[data-theme="light"] .poll-mode-option { border-color: #e1e7eb; background: #fff; }
body[data-theme="light"] .poll-mode-option:has(input:checked) { border-color: #7ac5d0; background: #f1fbfc; }
body[data-theme="light"] .poll-mode-copy strong { color: #334b57; }
body[data-theme="light"] .poll-max-choice { color: #526874; }
body[data-theme="light"] .poll-created > header { border-color: #e7ecef; }
body[data-theme="light"] .poll-created > header > span { background: #edf1f3; color: #526874; }
body[data-theme="light"] .poll-created-heading > span { background: #edf1f3; color: #526874; }
body[data-theme="light"] .poll-created-card { border-color: #e1e7eb; background: #fff; }
body[data-theme="light"] .poll-created-card h3 { color: #253744; }
body[data-theme="light"] .poll-created-card li { border-color: #e1e7eb; color: #526874; }
body[data-theme="light"] .poll-created-card > p { color: #788892; }
body[data-theme="light"] .polls-empty { color: #74848d; }
body[data-theme="light"] .polls-empty i { color: #9aabb3; }
@media (max-width: 900px) { .polls-layout { grid-template-columns: minmax(0,1fr); } .poll-created-list { max-height: none; } }
@media (max-width: 700px) { .polls-content { padding: 0 13px 20px; } .poll-builder { padding: 16px; } .poll-mode-grid { grid-template-columns: minmax(0,1fr); } .poll-mode-option { min-height: 54px; } .poll-created > header { min-height: 51px; } }

/* Compact full-width poll workspace */
@media (min-width: 900px) {
  .polls-content { box-sizing: border-box; height: calc(100vh - 112px); min-height: 0; overflow: hidden; padding: 0 24px 16px; }
  .polls-layout { display: flex; height: 100%; max-width: none; flex-direction: column; align-items: stretch; gap: 11px; margin: 0; }
  .poll-created { order: -1; flex: none; border-radius: 12px; }
  .poll-created > header { min-height: 38px; padding: 0 13px; }
  .poll-created-heading { display: flex; align-items: center; gap: 9px; }
  .poll-created-heading h2 { font-size: 11px; }
  .poll-created > header > .poll-created-heading > span { min-width: 19px; height: 19px; font-size: 9px; }
  .poll-created-collapse { display: inline-flex; min-height: 27px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #3c424a; border-radius: 7px; background: rgba(255,255,255,.025); color: #aeb9c1; cursor: pointer; font: 500 9px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
  .poll-created-collapse:hover { border-color: #5b8e97; color: #9ce3eb; }
  .poll-created-collapse i { font-size: 8px; }
  .poll-created-list { display: flex; height: 78px; max-height: 78px; align-items: stretch; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 7px 9px; scrollbar-width: thin; }
  .poll-created-list[hidden] { display: none; }
  .poll-created.is-collapsed { border-radius: 10px; }
  .poll-created-list .polls-empty { display: flex; min-width: 0; min-height: 0; flex: 1; align-items: center; justify-content: center; gap: 8px; }
  .poll-created-list .polls-empty i { font-size: 15px; }
  .poll-created-list .polls-empty p { max-width: none; font-size: 9px; }
  .poll-created-card { display: grid; width: min(360px, 33vw); min-width: 240px; flex: none; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; gap: 4px 8px; overflow: hidden; padding: 7px 9px; }
  .poll-created-card h3 { grid-column: 1; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .poll-created-card img { width: 32px; height: 32px; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .poll-created-card ul { display: flex; min-width: 0; overflow: hidden; grid-column: 1; gap: 4px; margin: 0; white-space: nowrap; }
  .poll-created-card li { overflow: hidden; flex: none; max-width: 105px; padding: 3px 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
  .poll-created-card > p { grid-column: 1 / -1; margin: 1px 0 0; font-size: 8px; }
  .poll-builder { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(145px,.8fr) minmax(220px,1.1fr) minmax(220px,1.15fr); grid-template-rows: auto auto minmax(0,1fr) auto; gap: 8px 10px; overflow: hidden; padding: 11px 12px; border-radius: 12px; }
  .poll-builder-header { grid-column: 1 / -1; gap: 9px; margin: 0; }
  .poll-heading-icon { width: 31px; height: 31px; border-radius: 9px; font-size: 13px; }
  .poll-builder-header h2 { font-size: 11px; }
  .poll-builder-header p { margin-top: 2px; font-size: 9px; }
  .poll-field { grid-column: 1; grid-row: 2; align-self: start; gap: 5px; font-size: 10px; }
  .poll-field textarea { min-height: 63px; max-height: 90px; padding: 8px 9px; font-size: 10px; }
  .poll-image-field { grid-column: 1; grid-row: 3; align-self: start; margin: 0; }
  .poll-image-trigger { min-height: 30px; gap: 6px; padding: 0 8px; font-size: 9px; }
  .poll-image-trigger small { font-size: 8px; }
  .poll-image-preview { max-width: 100%; margin-top: 5px; padding: 4px; }
  .poll-image-preview img { width: 30px; height: 26px; }
  .poll-image-preview button { width: 24px; height: 24px; }
  .poll-answers-fieldset { grid-column: 2; grid-row: 2 / 4; min-height: 0; margin: 0; overflow: auto; scrollbar-width: thin; }
  .poll-answers-fieldset legend, .poll-mode-fieldset legend { margin-bottom: 6px; font-size: 10px; }
  .poll-answers-fieldset legend span { font-size: 8px; }
  .poll-answer-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 7px; }
  .poll-answer-row { gap: 3px; }
  .poll-answer-row input { height: 29px; padding: 0 7px; font-size: 9px; }
  .poll-remove-answer { width: 22px; height: 26px; font-size: 9px; }
  .poll-add-answer { min-height: 24px; margin-top: 3px; padding: 0 5px; font-size: 8px; }
  .poll-mode-fieldset { grid-column: 3; grid-row: 2 / 4; min-height: 0; margin: 0; overflow: auto; scrollbar-width: thin; }
  .poll-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .poll-mode-option { min-height: 49px; gap: 6px; padding: 7px; border-radius: 8px; }
  .poll-mode-copy { gap: 3px; }
  .poll-mode-copy strong { font-size: 9px; }
  .poll-mode-copy small { font-size: 8px; line-height: 1.25; }
  .poll-mode-option > i { font-size: 8px; }
  .poll-max-choice { max-width: 100%; margin-top: 6px; font-size: 9px; }
  .poll-max-choice select { min-width: 95px; height: 27px; font-size: 9px; }
  .poll-form-status { grid-column: 1 / 3; grid-row: 4; align-self: center; margin: 0; padding: 7px 9px; font-size: 9px; }
  .poll-form-status[hidden] { display: none; }
  .poll-form-actions { grid-column: 3; grid-row: 4; align-self: center; margin: 0; }
  .poll-submit { min-height: 32px; padding: 0 11px; font-size: 9px; }
  .poll-created-collapse:focus-visible, .poll-submit:focus-visible, .poll-add-answer:focus-visible { outline: 2px solid #65cbd8; outline-offset: 2px; }
}
body[data-theme="light"] .poll-created-collapse { border-color: #dfe6e9; background: #fff; color: #657781; }
body[data-theme="light"] .poll-created-collapse:hover { border-color: #83c9d3; color: #287f8d; }
@media (max-width: 899px) {
  .polls-layout { display: flex; flex-direction: column; }
  .poll-created { order: -1; width: 100%; }
  .poll-created-collapse { display: inline-flex; min-height: 29px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #41474e; border-radius: 7px; background: transparent; color: #aeb9c1; cursor: pointer; font: 500 9px/1 Inter,"Helvetica Neue",Arial,sans-serif; }
  .poll-created-list[hidden] { display: none; }
}
@media (min-width: 900px) {
  .poll-builder { grid-template-columns: minmax(190px,.72fr) minmax(300px,1.28fr); grid-template-rows: auto minmax(0,1fr) auto auto; }
  .poll-question-stack { grid-column: 1; grid-row: 2; display: flex; min-height: 0; flex-direction: column; gap: 7px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .poll-question-stack .poll-field { display: flex; min-height: 0; flex-direction: column; gap: 5px; }
  .poll-question-stack .poll-field textarea { min-height: 74px; max-height: 120px; resize: vertical; overflow: auto; }
  .poll-question-stack .poll-image-field { margin-top: auto; padding-top: 5px; }
  .poll-question-stack .poll-image-preview { flex: none; }
  .poll-answers-fieldset { grid-column: 2; grid-row: 2; max-height: 100%; }
  .poll-answer-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 9px; }
  .poll-answer-row input { height: 31px; font-size: 9px; }
  .poll-mode-fieldset { display: grid; grid-column: 1 / -1; grid-row: 3; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; overflow: visible; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.07); }
  .poll-mode-fieldset legend { width: auto; margin: 0; white-space: nowrap; }
  .poll-mode-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .poll-mode-option { min-height: 44px; align-items: center; gap: 6px; padding: 6px 8px; }
  .poll-mode-copy { gap: 2px; }
  .poll-mode-copy strong { font-size: 8px; white-space: nowrap; }
  .poll-mode-copy small { font-size: 7px; line-height: 1.2; }
  .poll-mode-option > i { font-size: 7px; }
  .poll-max-choice { grid-column: 3; grid-row: 1; gap: 6px; margin: 0; white-space: nowrap; font-size: 8px; }
  .poll-max-choice select { min-width: 82px; height: 26px; font-size: 8px; }
  .poll-form-status { grid-column: 1; grid-row: 4; }
  .poll-form-actions { grid-column: 2; grid-row: 4; }
  body[data-theme="light"] .poll-mode-fieldset { border-color: #e5eaed; }
}

/* Poll composer: question first, answer options in a single vertical stack. */
.polls-content { height: auto; min-height: 0; overflow: visible; }
.polls-layout { display: flex; height: auto; flex-direction: column; align-items: stretch; gap: 14px; }
.poll-builder { order: 0; display: flex; min-height: 0; flex: none; flex-direction: column; gap: 18px; overflow: visible; padding: clamp(16px, 2.2vw, 26px); }
.poll-builder-header { margin: 0; }
.poll-question-stack { display: grid; min-height: 0; grid-template-columns: minmax(0,1fr); gap: 8px; overflow: visible; }
.poll-question-stack .poll-field { display: block; min-height: 0; font-size: 11px; }
.poll-question-entry { display: flex; min-width: 0; align-items: stretch; gap: 9px; }
.poll-question-entry textarea { box-sizing: border-box; min-width: 0; min-height: 52px; max-height: 150px; flex: 1; resize: vertical; padding: 12px 13px; border: 1px solid #40454c; border-radius: 10px; outline: 0; background: #1f2125; color: #f1f3f5; font: 450 12px/1.45 Inter,"Helvetica Neue",Arial,sans-serif; transition: border-color .15s ease,box-shadow .15s ease; }
.poll-question-entry textarea::placeholder { color: #7e8790; }
.poll-question-entry textarea:focus { border-color: #61c4d2; box-shadow: 0 0 0 3px rgba(82,196,211,.1); }
.poll-image-trigger { display: grid; width: 48px; min-height: 48px; box-sizing: border-box; flex: none; padding: 0; border: 1px solid #404b53; border-radius: 10px; background: rgba(255,255,255,.025); color: #83dce6; font-size: 16px; place-items: center; }
.poll-image-trigger:hover { border-color: #66c8d5; background: rgba(83,192,208,.09); color: #a5edf3; }
.poll-image-trigger:focus-visible { outline: 2px solid #65cbd8; outline-offset: 2px; }
.poll-image-preview { width: fit-content; max-width: min(100%, 360px); margin: 0; }
.poll-answers-fieldset { min-height: 0; max-height: none; margin: 0; overflow: visible; }
.poll-answers-fieldset legend, .poll-mode-fieldset legend { margin-bottom: 9px; font-size: 11px; }
.poll-answers-fieldset legend span { font-size: 9px; }
.poll-answer-list { grid-template-columns: minmax(0,1fr); gap: 8px; }
.poll-answer-row { gap: 8px; }
.poll-answer-row input { height: 42px; padding: 0 12px; font-size: 12px; }
.poll-remove-answer { width: 36px; height: 36px; }
.poll-add-answer { min-height: 34px; margin-top: 9px; padding: 0 10px; font-size: 10px; }
.poll-mode-fieldset { display: block; min-height: 0; margin: 0; overflow: visible; padding: 0; border: 0; }
.poll-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.poll-mode-option { min-height: 54px; align-items: flex-start; gap: 9px; padding: 10px; }
.poll-mode-copy strong { font-size: 10px; }
.poll-mode-copy small { font-size: 9px; }
.poll-max-choice { max-width: 360px; margin-top: 10px; font-size: 10px; }
.poll-max-choice select { height: 34px; font-size: 10px; }
.poll-form-status { margin: 0; }
.poll-form-actions { margin: 0; }
.poll-created { order: 1; flex: none; }
.poll-created-list { display: grid; height: auto; max-height: none; grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); overflow: visible; padding: 12px; }
.poll-created-list .polls-empty { min-height: 96px; }
.poll-created-card { display: block; width: auto; min-width: 0; padding: 12px; }
.poll-created-card h3 { display: block; overflow: visible; font-size: 12px; text-overflow: clip; white-space: normal; }
.poll-created-card img { width: 100%; height: auto; max-height: 180px; margin-top: 10px; }
.poll-created-card ul { display: grid; overflow: visible; gap: 5px; margin: 10px 0; white-space: normal; }
.poll-created-card li { max-width: none; padding: 7px 9px; font-size: 10px; white-space: normal; }
.poll-created-card > p { margin: 9px 0 0; font-size: 9px; }
body[data-theme="light"] .poll-question-entry textarea { border-color: #dce4e8; background: #fff; color: #253744; }
body[data-theme="light"] .poll-question-entry textarea::placeholder { color: #99a3aa; }
body[data-theme="light"] .poll-image-trigger { border-color: #dce4e8; background: #fff; }
body[data-theme="light"] .poll-image-trigger:hover { background: #f1fbfc; }
@media (max-width: 700px) {
  .poll-builder { gap: 16px; }
  .poll-question-entry { gap: 7px; }
  .poll-question-entry textarea { min-height: 48px; }
  .poll-image-trigger { width: 44px; min-height: 44px; }
  .poll-answer-row input { height: 40px; }
  .poll-mode-grid { grid-template-columns: minmax(0,1fr); }
}

/* Compact question field and one horizontal row of voting modes. */
.poll-question-entry textarea { min-height: 40px; max-height: 88px; padding: 8px 11px; }
.poll-image-trigger { width: 40px; min-height: 40px; }
.poll-mode-fieldset { min-width: 0; }
.poll-mode-grid { display: flex; width: 100%; flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; }
.poll-mode-option { box-sizing: border-box; min-width: 0; min-height: 42px; flex: 1 0 0; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; }
.poll-mode-copy { min-width: 0; gap: 2px; }
.poll-mode-copy strong { font-size: 9px; line-height: 1.15; }
.poll-mode-copy small { font-size: 7px; line-height: 1.15; }
.poll-mode-option > i { font-size: 8px; }
@media (max-width: 700px) {
  .poll-question-entry textarea { min-height: 38px; }
  .poll-image-trigger { width: 38px; min-height: 38px; }
  .poll-mode-grid { gap: 6px; }
  .poll-mode-option { min-width: 126px; min-height: 40px; flex: 0 0 126px; }
}

.poll-question-entry textarea { height: 42px; min-height: 42px; padding: 8px 12px; font-size: 12px; line-height: 1.45; }
.poll-image-trigger { width: 42px; min-height: 42px; border-radius: 9px; font-size: 14px; }
@media (max-width: 700px) {
  .poll-question-entry textarea { height: 40px; min-height: 40px; }
  .poll-image-trigger { width: 40px; min-height: 40px; }
}

.mobile-chat-composer { position: relative; overflow: visible; }
.mobile-chat-composer-row { position: relative; z-index: 2; }
.mobile-chat-thinking-notice {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(100% - 7px);
  display: flex;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  min-height: 38px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 8px 6px 13px;
  border: 1px solid rgba(239, 151, 162, .32);
  border-radius: 13px;
  background: rgba(74, 43, 49, .96);
  box-shadow: 0 8px 25px rgba(13, 8, 10, .24), inset 0 1px rgba(255,255,255,.04);
  color: #f3c4c9;
  font: 550 11px/1.25 Inter, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  transform: translate(-50%, 34px) scale(.97);
  transform-origin: center;
  animation: thinking-notice-rise .42s cubic-bezier(.2,.75,.25,1) both;
}
.mobile-chat-thinking-notice[hidden] { display: none !important; }
.mobile-chat-thinking-notice > span { display: inline-flex; align-items: center; gap: 8px; }
.mobile-chat-thinking-notice > span i { color: #efa0aa; font-size: 11px; }
.mobile-chat-thinking-notice button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(239, 151, 162, .34);
  border-radius: 8px;
  background: rgba(222, 126, 139, .17);
  color: #ffd9dd;
  cursor: pointer;
  font: 650 10px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  transition: background .16s ease, border-color .16s ease;
}
.mobile-chat-thinking-notice button:hover { border-color: rgba(255,190,197,.6); background: rgba(222,126,139,.3); }
.mobile-chat-thinking-notice button:focus-visible { outline: 2px solid #f0a8b1; outline-offset: 2px; }
@keyframes thinking-notice-rise {
  0% { opacity: 0; transform: translate(-50%, 34px) scale(.97); }
  48% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
body[data-theme="light"] .mobile-chat-thinking-notice {
  border-color: #f0c1c7;
  background: rgba(255, 239, 241, .98);
  box-shadow: 0 8px 25px rgba(91, 45, 55, .14), inset 0 1px rgba(255,255,255,.8);
  color: #8b4d58;
}
body[data-theme="light"] .mobile-chat-thinking-notice > span i { color: #d8818e; }
body[data-theme="light"] .mobile-chat-thinking-notice button { border-color: #edc0c6; background: #f9dfe2; color: #8e4c58; }
body[data-theme="light"] .mobile-chat-thinking-notice button:hover { border-color: #df9ba5; background: #f5d0d5; }
@media (prefers-reduced-motion: reduce) {
  .mobile-chat-thinking-notice { animation: none; transform: translate(-50%, 0); }
}

.mobile-chat-history-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 1px solid #484a51;
  border-radius: 11px;
  background: #303137;
  color: #d9dbe1;
  cursor: pointer;
  font-size: 14px;
  place-items: center;
}
.mobile-chat-history-button[hidden] { display: none !important; }
.mobile-chat-history-button:hover { border-color: #6babb5; background: #374247; color: #a9eff4; }
.mobile-chat-history-button:focus-visible { outline: 2px solid #67d4e2; outline-offset: 2px; }
.mobile-chat-history-button:disabled { opacity: .5; cursor: default; }
.mobile-chat-composer.is-history-list .mobile-chat-composer-row,
.mobile-chat-composer.is-history-list .mobile-chat-pending-attachments,
.mobile-chat-composer.is-history-list > p,
.mobile-chat-composer.is-history-list .mobile-chat-voice-status,
.mobile-chat-composer.is-history-list .mobile-chat-thinking-notice { display: none !important; }
.mobile-chat-history-view { box-sizing: border-box; width: min(100%, 860px); min-width: 0; margin: 0 auto; padding: 26px 24px 36px; }
.mobile-chat-history-view[hidden] { display: none !important; }
.mobile-chat-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.mobile-chat-history-heading > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.mobile-chat-history-heading h2 { margin: 0; color: #f2f2f4; font: 650 20px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.3px; }
.mobile-chat-history-heading span { color: #9699a2; font: 450 11px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }
.mobile-chat-history-heading > button { min-height: 32px; padding: 0 11px; border: 1px solid #45474f; border-radius: 9px; background: #2b2c30; color: #cfd2d9; cursor: pointer; font: 550 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.mobile-chat-history-heading > button:hover { border-color: #6babb5; color: #a9eff4; }
.mobile-chat-history-list { display: grid; gap: 8px; }
.mobile-chat-history-card { display: flex; min-width: 0; align-items: stretch; gap: 5px; padding: 5px; border: 1px solid #3c3e44; border-radius: 13px; background: #26272b; transition: border-color .16s ease, background .16s ease; }
.mobile-chat-history-card:hover,.mobile-chat-history-card.is-current { border-color: #555a63; background: #2c2d32; }
.mobile-chat-history-card.is-pinned { border-color: rgba(228,187,132,.28); }
.mobile-chat-history-open { display: grid; min-width: 0; flex: 1; grid-template-columns: 32px minmax(0,1fr); align-content: center; align-items: center; gap: 3px 10px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: #e2e3e8; cursor: pointer; text-align: left; }
.mobile-chat-history-number { display: grid; width: 29px; height: 29px; grid-row: span 2; border: 1px solid #41434a; border-radius: 9px; background: #303137; color: #aeb1b9; font: 550 10px/1 Inter, "Helvetica Neue", Arial, sans-serif; place-items: center; }
.mobile-chat-history-open strong { min-width: 0; overflow: hidden; color: #e7e8eb; font: 600 12px/1.35 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.mobile-chat-history-open small { min-width: 0; overflow: hidden; color: #9497a0; font: 400 9px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.mobile-chat-history-pin { display: grid; width: 34px; flex: none; border: 0; border-radius: 9px; background: transparent; color: #9699a2; cursor: pointer; place-items: center; }
.mobile-chat-history-pin:hover,.mobile-chat-history-pin[aria-pressed="true"] { background: rgba(218,177,119,.1); color: #e2bc86; }
.mobile-chat-history-pin[aria-pressed="true"] i { transform: rotate(-35deg); }
.mobile-chat-history-empty { margin: 0; padding: 28px 15px; border: 1px dashed #45474f; border-radius: 12px; color: #a0a2aa; font: 400 12px/1.5 Inter, "Helvetica Neue", Arial, sans-serif; text-align: center; }
.mobile-chat-progress { width: min(100%, 860px); margin: 0 auto 7px; }
.mobile-chat-progress[hidden] { display: none !important; }
.mobile-chat-progress-toggle { display: flex; width: 100%; min-height: 24px; align-items: center; gap: 8px; padding: 1px 2px; border: 0; background: transparent; color: #b9bdc5; cursor: pointer; text-align: left; font: 450 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.mobile-chat-progress-spinner { flex: none; color: #8fcbd2; font-size: 10px; animation: mobile-chat-spin 1.25s linear infinite; }
.mobile-chat-progress-chevron { margin-left: auto; color: #777c85; font-size: 9px; transition: transform .2s ease, color .2s ease; }
.mobile-chat-progress-toggle:hover { color: #e0e2e7; }
.mobile-chat-progress-toggle[aria-expanded="true"] .mobile-chat-progress-chevron { transform: rotate(90deg); color: #a9dce1; }
.mobile-chat-progress-detail { margin: 1px 0 5px 19px; padding: 6px 10px; border-left: 1px solid rgba(143,203,210,.28); color: #9298a2; font: 400 9px/1.5 Inter, "Helvetica Neue", Arial, sans-serif; }
.mobile-chat-progress-detail[hidden] { display: none !important; }
@keyframes mobile-chat-spin { to { transform: rotate(360deg); } }
body[data-theme="light"] .mobile-chat-history-button { border-color: #d8dae0; background: #f0f1f4; color: #4d5058; }
body[data-theme="light"] .mobile-chat-history-button:hover { border-color: #a6d5da; background: #edf9fa; color: #267d87; }
body[data-theme="light"] .mobile-chat-history-heading h2 { color: #202126; }
body[data-theme="light"] .mobile-chat-history-heading span { color: #747680; }
body[data-theme="light"] .mobile-chat-history-heading > button { border-color: #e1e3e8; background: #f7f8fa; color: #454851; }
body[data-theme="light"] .mobile-chat-history-card { border-color: #e1e3e8; background: #fff; }
body[data-theme="light"] .mobile-chat-history-card:hover,body[data-theme="light"] .mobile-chat-history-card.is-current { border-color: #cbd0d8; background: #f8f9fb; }
body[data-theme="light"] .mobile-chat-history-card.is-pinned { border-color: #ead8bd; }
body[data-theme="light"] .mobile-chat-history-open { color: #343740; }
body[data-theme="light"] .mobile-chat-history-number { border-color: #e1e3e8; background: #f1f2f5; color: #6a6d76; }
body[data-theme="light"] .mobile-chat-history-open strong { color: #292b31; }
body[data-theme="light"] .mobile-chat-history-open small { color: #797d86; }
body[data-theme="light"] .mobile-chat-history-pin { color: #797d86; }
body[data-theme="light"] .mobile-chat-history-empty { border-color: #d8dbe1; color: #737782; }
body[data-theme="light"] .mobile-chat-progress-toggle { color: #606772; }
body[data-theme="light"] .mobile-chat-progress-spinner { color: #489eaa; }
body[data-theme="light"] .mobile-chat-progress-chevron { color: #8b9098; }
body[data-theme="light"] .mobile-chat-progress-toggle:hover { color: #292c32; }
body[data-theme="light"] .mobile-chat-progress-detail { border-color: rgba(72,158,170,.3); color: #737984; }
@media (max-width: 700px) {
  .mobile-chat-history-view { padding: 20px 14px 28px; }
  .mobile-chat-history-open small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-chat-progress-spinner { animation: none; }
  .mobile-chat-progress-chevron { transition: none; }
}

/* The withdrawal workspace follows its live available width as the sidebar changes. */
@container withdraw-panel (max-width: 720px) {
  .withdraw-method-list { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-flow: row; overflow: visible; }
}
@container withdraw-panel (max-width: 500px) {
  .withdraw-method-list { grid-template-columns: minmax(0,1fr); grid-auto-flow: row; overflow: visible; }
  .withdraw-field-grid,.withdraw-pix-grid { grid-template-columns: minmax(0,1fr); }
  .withdraw-field-wide { grid-column: auto; }
}
