:root {
  --ink: #13201f;
  --muted: #6d7977;
  --soft: #eef1ef;
  --line: #dfe5e2;
  --paper: #ffffff;
  --canvas: #f4f6f4;
  --teal: #0c9d8d;
  --teal-dark: #08786d;
  --teal-pale: #e4f5f1;
  --lime: #c8ef67;
  --coral: #ef6a64;
  --amber: #e9993a;
  --blue: #4288e8;
  --sidebar: #0c1716;
  --shadow: 0 18px 45px rgba(18, 40, 36, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 246px; display: flex; flex-direction: column; padding: 22px 16px; color: #d7e2df; background: var(--sidebar); border-right: 1px solid rgba(255,255,255,.05); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; color: #fff; font-weight: 760; font-size: 20px; letter-spacing: -.5px; }
.brand > span:last-child > span { color: #65d4c6; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; background: var(--teal); transform: rotate(-3deg); }
.brand-mark i { display: block; width: 4px; border-radius: 3px; background: #fff; transform: skew(-12deg); }
.brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 15px; }.brand-mark i:nth-child(3) { height: 20px; }
.nav { display: grid; gap: 5px; }
.nav-label { margin: 20px 12px 7px; color: #687b77; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.nav a { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 11px; color: #9eb0ac; font-weight: 570; transition: .18s ease; }
.nav a:hover { color: white; background: rgba(255,255,255,.05); }
.nav a.active { color: white; background: rgba(27, 181, 162, .14); box-shadow: inset 3px 0 0 #25baa8; }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #6b817c; font-size: 19px; }
.nav a.active .nav-icon { color: #69d9cb; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 99px; text-align: center; font-size: 11px; color: #6edccd; background: rgba(27,181,162,.13); }
.sidebar-foot { margin-top: auto; }
.sidebar-foot > p { margin: 16px 8px 0; color: #536662; font-size: 11px; }
.safety-card { display: flex; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.035); }
.safety-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #7ae1d3; background: rgba(27,181,162,.15); }
.safety-card strong, .safety-card span { display: block; }.safety-card strong { color: #dce7e4; font-size: 12px; }.safety-card span { margin-top: 3px; color: #718580; font-size: 10px; }

.main-shell { min-width: 0; width: calc(100% - 246px); margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 74px; display: flex; align-items: center; gap: 24px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.market-strip { display: flex; align-items: center; gap: 32px; }
.market-strip > div { display: grid; grid-template-columns: auto auto; column-gap: 9px; }
.market-strip span { grid-column: 1/-1; color: #89928f; font-size: 9px; font-weight: 650; letter-spacing: .5px; }
.market-strip strong { font-size: 13px; }.market-strip small { color: var(--teal); font-size: 10px; font-weight: 700; }
.topbar-spacer { flex: 1; }
.account-pill { display: grid; grid-template-columns: 8px auto; column-gap: 9px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.account-pill i { grid-row: 1/3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-pale); }
.account-pill span { font-size: 12px; font-weight: 690; }.account-pill b { color: var(--muted); font-size: 9px; font-weight: 520; }
.avatar { width: 37px; height: 37px; border: 0; border-radius: 50%; color: white; background: #16322f; font-size: 11px; font-weight: 750; }
.menu-button { display: none !important; }
.page { max-width: 1500px; margin: 0 auto; padding: 34px 38px 60px; }
.mobile-scrim { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--teal-dark); font-size: 11px; font-weight: 760; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 17px; height: 2px; background: var(--teal); }
h1 { margin: 0; font-size: clamp(29px, 3vw, 40px); line-height: 1.08; letter-spacing: -1.4px; }
.page-head .subhead { max-width: 620px; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: var(--ink); background: var(--paper); font-weight: 680; transition: .15s ease; }
.button:hover { transform: translateY(-1px); border-color: #c5cfcb; box-shadow: 0 8px 20px rgba(20,40,36,.07); }
.button.primary { color: white; border-color: var(--teal); background: var(--teal); }.button.primary:hover { background: var(--teal-dark); }
.button.danger { color: #bf4f4b; border-color: #f2cfcd; background: #fff7f7; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }

.mode-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; padding: 13px 16px; border: 1px solid #f0ddab; border-radius: 13px; color: #745417; background: #fff7dc; }
.mode-banner strong { font-size: 12px; }.mode-banner span { color: #8f7337; font-size: 12px; }.mode-banner i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--amber); font-style: normal; font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { position: relative; min-height: 133px; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 rgba(10,30,26,.02); }
.stat-card:after { content: ""; position: absolute; right: -30px; bottom: -38px; width: 105px; height: 105px; border-radius: 50%; background: var(--teal-pale); opacity: .7; }
.stat-card.coral:after { background: #fde9e8; }.stat-card.blue:after { background: #e8f0fd; }.stat-card.lime:after { background: #f0f9da; }
.stat-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.stat-value { display: block; margin-top: 16px; font-size: 27px; letter-spacing: -1px; }.stat-value.positive { color: var(--teal); }.stat-value.negative { color: var(--coral); }
.stat-foot { display: block; margin-top: 6px; color: #89938f; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 5px rgba(20,40,36,.015); }
.card-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 21px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.balance-panel { min-height: 273px; display: grid; grid-template-columns: 230px 1fr; align-items: center; padding: 26px; }
.balance-ring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 72%, var(--lime) 72% 91%, #dbe3e0 91%); }
.balance-ring:before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: white; }
.balance-ring div { position: relative; text-align: center; }.balance-ring span { display: block; color: var(--muted); font-size: 10px; }.balance-ring strong { display: block; margin-top: 5px; font-size: 19px; }
.balance-copy > span { color: var(--muted); font-size: 12px; }.balance-copy h3 { margin: 10px 0 3px; font-size: 36px; letter-spacing: -1.5px; }.balance-copy small { color: var(--teal); font-weight: 650; }
.chart { height: 86px; margin-top: 23px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }.chart .gridline { stroke: #e7ece9; stroke-width: 1; }.chart .area { fill: url(#chartFill); }.chart .line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.activity-list { padding: 7px 20px 12px; }
.activity-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf0ee; }.activity-row:last-child { border: 0; }
.activity-badge { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: var(--teal-pale); font-weight: 800; }.activity-badge.rejected { color: #b64e49; background: #fde9e8; }
.activity-row strong, .activity-row span { display: block; }.activity-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.activity-row span { margin-top: 3px; color: var(--muted); font-size: 10px; }.activity-row time { color: #98a29f; font-size: 10px; }
.empty { padding: 46px 22px; text-align: center; color: var(--muted); }.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 16px; color: var(--teal); background: var(--teal-pale); font-size: 23px; }.empty strong { display: block; color: var(--ink); }.empty p { margin: 7px auto 0; max-width: 330px; font-size: 12px; line-height: 1.5; }

.bots-card { overflow: hidden; }.bots-toolbar { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }.search { position: relative; flex: 1; max-width: 360px; }.search input { width: 100%; height: 41px; padding: 0 14px 0 39px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fafbfa; }.search:before { content: "⌕"; position: absolute; left: 14px; top: 8px; color: #85908d; font-size: 20px; }.search input:focus { border-color: #83cfc5; box-shadow: 0 0 0 3px var(--teal-pale); }
.filter-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--soft); }.filter-tabs button { min-width: 69px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); background: transparent; font-size: 11px; font-weight: 650; }.filter-tabs button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(20,40,36,.06); }
.bot-table { width: 100%; border-collapse: collapse; }.bot-table th { height: 46px; padding: 0 18px; color: #89938f; background: #fafbfa; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }.bot-table td { height: 79px; padding: 0 18px; border-top: 1px solid var(--line); }.bot-name { display: flex; align-items: center; gap: 12px; }.coin { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, #183f3a, #0ca08e); font-size: 11px; font-weight: 800; }.bot-name strong, .bot-name span { display: block; }.bot-name strong { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.bot-name span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: 10px; font-weight: 720; }.status:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }.status.paused { color: #7d8583; background: #eef0ef; }.status.paused:before { background: #9da5a2; }
.muted { color: var(--muted); }.positive { color: var(--teal); }.negative { color: var(--coral); }.row-actions { display: flex; justify-content: flex-end; gap: 7px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }.editor-main { display: grid; gap: 14px; }.section-card { overflow: hidden; }.section-title { display: flex; align-items: center; gap: 13px; padding: 18px 21px; border-bottom: 1px solid var(--line); }.section-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-dark); background: var(--teal-pale); font-size: 11px; font-weight: 800; }.section-title h2 { margin: 0; font-size: 15px; }.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.section-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }.field.full { grid-column: 1/-1; }.field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 680; }.field .hint { margin-top: 6px; color: #8b9692; font-size: 10px; line-height: 1.45; }.input, .select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fff; }.input:focus, .select:focus { border-color: #72c4ba; box-shadow: 0 0 0 3px var(--teal-pale); }.input-group { display: grid; grid-template-columns: 1fr 100px; }.input-group .input { border-radius: 10px 0 0 10px; }.input-group .select { border-left: 0; border-radius: 0 10px 10px 0; background: #f7f8f7; }
.segmented { display: flex; padding: 4px; border-radius: 10px; background: var(--soft); }.segmented label { flex: 1; margin: 0; }.segmented input { position: absolute; opacity: 0; pointer-events: none; }.segmented span { height: 35px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 670; }.segmented input:checked + span { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(20,40,36,.07); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf0ee; }.switch-row:first-child { padding-top: 0; }.switch-row:last-child { padding-bottom: 0; border-bottom: 0; }.switch-copy strong, .switch-copy span { display: block; }.switch-copy strong { font-size: 12px; }.switch-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }.switch { position: relative; flex: 0 0 38px; height: 22px; }.switch input { position: absolute; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 99px; cursor: pointer; background: #c6cecb; transition: .2s; }.switch span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }.switch input:checked + span { background: var(--teal); }.switch input:checked + span:after { transform: translateX(16px); }
.conditional-field { width: 180px; }.conditional-field[hidden] { display: none; }
.summary-card { position: sticky; top: 94px; overflow: hidden; }.summary-top { padding: 21px; color: white; background: #132c29; }.summary-top p { margin: 0 0 8px; color: #8fb3ad; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }.summary-top h2 { margin: 0; font-size: 19px; }.summary-body { padding: 19px; }.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px dashed #dfe5e2; font-size: 11px; }.summary-line span { color: var(--muted); }.summary-line strong { text-align: right; }.summary-body .button { width: 100%; margin-top: 17px; }
.webhook-box { padding: 14px; border: 1px solid #cce6e1; border-radius: 12px; background: #f3fbf9; }.webhook-box label { display: block; margin-bottom: 7px; color: var(--teal-dark); font-size: 10px; font-weight: 750; text-transform: uppercase; }.code-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }.code { min-width: 0; overflow: hidden; padding: 10px 11px; border: 1px solid #d6e4e0; border-radius: 8px; color: #35514c; background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.json-code { margin: 12px 0 0; padding: 13px; overflow-x: auto; border-radius: 10px; color: #cbe5df; background: #102522; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.connection-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }.connection-form { padding: 23px; }.environment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }.environment-card { position: relative; }.environment-card input { position: absolute; opacity: 0; }.environment-card span { min-height: 93px; display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fafbfa; }.environment-card strong { font-size: 12px; }.environment-card small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }.environment-card input:checked + span { border-color: var(--teal); background: var(--teal-pale); box-shadow: 0 0 0 2px rgba(12,157,141,.1); }.credentials { display: grid; gap: 16px; }.credentials[hidden] { display: none; }
.security-list { padding: 20px; }.security-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }.security-item:last-child { border: 0; }.security-item i { flex: 0 0 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-dark); background: var(--teal-pale); font-style: normal; }.security-item strong, .security-item span { display: block; }.security-item strong { font-size: 11px; }.security-item span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.guide-step { padding: 22px; }.guide-step .step-no { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 11px; color: white; background: #173732; font-size: 12px; font-weight: 800; }.guide-step h2 { margin: 0; font-size: 16px; }.guide-step p { margin: 9px 0 0; color: var(--muted); line-height: 1.6; font-size: 12px; }.guide-step code { color: var(--teal-dark); font-size: 11px; }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.health-tile { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfa; }.health-tile span, .health-tile strong, .health-tile small { display: block; }.health-tile span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }.health-tile strong { margin-top: 10px; font-size: 17px; }.health-tile small { margin-top: 5px; color: #87918e; font-size: 10px; }.risk-lock { border-color: #f1bebb; background: #fff2f1; }.risk-lock strong { color: #ac4843; }.risk-safe { border-color: #b9dfd8; background: #effaf7; }.risk-safe strong { color: var(--teal-dark); }.metric-table { width: 100%; border-collapse: collapse; }.metric-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); }.metric-table td:last-child { text-align: right; font-weight: 700; }.metric-table tr:last-child td { border-bottom: 0; }.danger-zone { margin-top: 20px; border: 1px solid #f0c2bf; border-radius: var(--radius); background: #fff7f6; }.danger-zone .card-head { border-color: #f0d5d3; }.danger-zone h2 { color: #a9423d; }.danger-zone-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }.danger-zone-body p { margin: 0; max-width: 700px; color: #805e5b; font-size: 11px; line-height: 1.6; }.queue-status { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: 9px; font-weight: 750; }.queue-status.dead { color: #a9423d; background: #fde9e8; }.queue-status.retry { color: #8b611e; background: #fff3d6; }.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.target-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }.target-row small { grid-column: 1/-1; color: var(--muted); font-weight: 700; }

.tax-filter { margin-bottom: 18px; padding: 20px; }.tax-filter .form-grid { margin-bottom: 15px; }.tax-actions { justify-content: flex-end; }.tax-warning { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #efd9a3; border-radius: 12px; color: #745316; background: #fff8e7; }.tax-warning strong, .tax-warning span { display: block; }.tax-warning strong { font-size: 11px; }.tax-warning span { color: #856b37; font-size: 10px; }.tax-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; margin-top: 18px; }.tax-downloads { display: flex; gap: 9px; padding: 18px 20px 20px; }.disclosure-list { padding: 8px 20px 15px; }.disclosure-list > div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }.disclosure-list > div:last-child { border: 0; }.disclosure-list i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--teal-dark); background: var(--teal-pale); font-size: 9px; font-style: normal; font-weight: 800; }.disclosure-list p { margin: 1px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.tax-ledger { margin-top: 18px; }.tax-table-wrap { overflow-x: auto; }.tax-table { width: 100%; min-width: 960px; border-collapse: collapse; }.tax-table th { padding: 11px 13px; color: #71807c; background: #f6f8f7; font-size: 9px; letter-spacing: .4px; text-align: left; text-transform: uppercase; white-space: nowrap; }.tax-table td { padding: 12px 13px; border-top: 1px solid var(--line); color: #42514e; font-size: 10px; white-space: nowrap; }.tax-table td strong { color: var(--ink); }.ledger-source { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: 8px; font-weight: 750; text-transform: uppercase; }

body.login-mode { overflow: hidden; background: #0b1715; }.login-mode .sidebar, .login-mode .topbar, .login-mode .mobile-scrim { display: none; }.login-mode .main-shell { width: 100%; margin: 0; }.login-mode .page { max-width: none; margin: 0; padding: 0; }.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.08fr) minmax(430px, .92fr); background: white; }.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 48px clamp(45px, 6vw, 92px); color: white; background: radial-gradient(circle at 82% 18%, rgba(37,186,168,.22), transparent 34%), linear-gradient(145deg, #091513, #102b27 72%, #0b4e46); }.login-story:after { content: ""; position: absolute; right: -190px; bottom: -250px; width: 620px; height: 620px; border: 1px solid rgba(105,217,203,.18); border-radius: 50%; box-shadow: 0 0 0 85px rgba(105,217,203,.035), 0 0 0 170px rgba(105,217,203,.025); }.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; font-size: 24px; font-weight: 780; letter-spacing: -.7px; }.login-brand > span:last-child > span { color: #6addcf; }.login-story-copy { position: relative; z-index: 1; max-width: 620px; margin: auto 0; }.login-story-copy .eyebrow { color: #6addcf; }.login-story-copy h1 { margin-top: 18px; font-size: clamp(48px, 5.6vw, 78px); line-height: .98; letter-spacing: -3.2px; }.login-story-copy > p:last-child { max-width: 540px; margin: 28px 0 0; color: #a8c2bd; font-size: 16px; line-height: 1.75; }.login-assurance { position: relative; z-index: 1; display: flex; gap: 34px; }.login-assurance > div { display: flex; align-items: center; gap: 11px; }.login-assurance i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(105,217,203,.18); border-radius: 10px; color: #6addcf; background: rgba(105,217,203,.08); font-style: normal; }.login-assurance strong, .login-assurance small { display: block; }.login-assurance strong { font-size: 11px; }.login-assurance small { margin-top: 3px; color: #78938e; font-size: 9px; }.login-panel { display: grid; place-items: center; overflow-y: auto; padding: 45px; background: linear-gradient(180deg, #fff, #f5f8f6); }.login-card { width: min(100%, 430px); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 28px 80px rgba(14,42,36,.12); }.login-lock { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; color: white; background: linear-gradient(145deg, #18b7a5, #08786d); box-shadow: 0 12px 28px rgba(12,157,141,.24); font-size: 22px; }.login-card .eyebrow { margin-bottom: 10px; }.login-card h2 { margin: 0; font-size: 29px; letter-spacing: -.8px; }.login-intro { margin: 9px 0 27px; color: var(--muted); font-size: 12px; }.login-card .field { margin-top: 18px; }.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.login-text-button, .login-back { padding: 0; border: 0; cursor: pointer; color: var(--teal-dark); background: none; font: inherit; font-size: 10px; font-weight: 750; }.password-field { position: relative; }.password-field .input { padding-right: 64px; }.password-field button { position: absolute; top: 5px; right: 5px; height: 33px; padding: 0 10px; border: 0; border-radius: 7px; cursor: pointer; color: var(--teal-dark); background: var(--teal-pale); font-size: 9px; font-weight: 750; }.login-submit { width: 100%; margin-top: 24px; }.login-back { display: block; margin: 18px auto 0; }.login-error { margin: -8px 0 5px; padding: 11px 13px; border: 1px solid #efc3c0; border-radius: 10px; color: #8b3c38; background: #fff2f1; font-size: 10px; line-height: 1.45; }.login-error.success { border-color: #b9dfd8; color: var(--teal-dark); background: #effaf7; }.login-info { display: grid; gap: 10px; padding: 15px; border: 1px solid #cce6e1; border-radius: 11px; color: #35514c; background: #f3fbf9; font-size: 10px; line-height: 1.55; }.login-info code { overflow-wrap: anywhere; color: var(--teal-dark); font-weight: 750; }.login-info span { color: var(--muted); }.login-footnote { margin: 18px 0 0; color: #8c9693; font-size: 9px; line-height: 1.5; text-align: center; }.reset-card { margin: 28px 0; }

.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 9px; }.toast { min-width: 280px; max-width: 420px; padding: 14px 17px; border: 1px solid #bfe0da; border-radius: 12px; color: #17443d; background: #effaf7; box-shadow: var(--shadow); animation: toast-in .22s ease; }.toast.error { color: #7d3330; border-color: #f0c5c2; background: #fff2f1; }.toast strong, .toast span { display: block; }.toast strong { font-size: 12px; }.toast span { margin-top: 3px; font-size: 10px; line-height: 1.45; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { overflow: hidden; position: relative; color: transparent !important; background: #e9eeeb !important; border-radius: 7px; }.skeleton:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.4s infinite; }@keyframes shimmer { 100% { transform: translateX(100%); } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .editor-layout, .connection-grid, .tax-layout { grid-template-columns: 1fr; }.summary-card { position: static; }.summary-card .summary-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }.summary-card .button { grid-column: 1/-1; }.bot-table th:nth-child(4), .bot-table td:nth-child(4) { display: none; }
}
@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }.sidebar.open { transform: translateX(0); }.main-shell { width: 100%; margin: 0; }.mobile-scrim.open { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(3,15,13,.45); }.menu-button { display: inline-grid !important; }.topbar { height: 64px; padding: 0 16px; gap: 12px; }.market-strip { display: none; }.account-pill b { display: none; }.page { padding: 25px 17px 50px; }.page-head { align-items: flex-start; flex-direction: column; }.page-head .actions { width: 100%; }.page-head .actions .button { flex: 1; }.balance-panel { grid-template-columns: 1fr; text-align: center; }.balance-ring { margin: 0 auto 24px; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.bot-table th:nth-child(2), .bot-table td:nth-child(2), .bot-table th:nth-child(3), .bot-table td:nth-child(3), .bot-table th:nth-child(5), .bot-table td:nth-child(5) { display: none; }.bots-toolbar { flex-direction: column; align-items: stretch; }.search { max-width: none; }.guide-grid { grid-template-columns: 1fr; }.environment-cards { grid-template-columns: 1fr; }.summary-card .summary-body { display: block; }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }.topbar .avatar { display: none; }.account-pill { margin-left: auto; }.page-head .actions { flex-direction: column; }.page-head .actions .button { width: 100%; }.filter-tabs button { flex: 1; min-width: 0; }.bot-table td, .bot-table th { padding: 0 11px; }.coin { display: none; }.row-actions .button:first-child { display: none; }.balance-copy h3 { font-size: 30px; }
}
@media (max-width: 700px) { .health-grid { grid-template-columns: 1fr; }.danger-zone-body { align-items: stretch; flex-direction: column; }.target-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .tax-actions, .tax-downloads { align-items: stretch; flex-direction: column; }.tax-actions .button, .tax-downloads .button { width: 100%; }.tax-warning { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { body.login-mode { overflow: auto; }.login-shell { grid-template-columns: 1fr; }.login-story { min-height: 300px; padding: 30px; }.login-story-copy { margin: 55px 0 35px; }.login-story-copy h1 { font-size: clamp(40px, 10vw, 62px); }.login-story-copy > p:last-child { margin-top: 18px; }.login-assurance { display: none; }.login-panel { padding: 28px 18px 45px; }.login-card { padding: 31px 25px; }.login-lock { margin-bottom: 21px; } }
