:root {
  color-scheme: dark;
  --background: #101216;
  --panel: #181c23;
  --line: #2b3039;
  --text: #f2f2f0;
  --muted: #9299a6;
  --accent: #efc78c;
  --green: #78cda6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.topbar { height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 650; letter-spacing: -.7px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #756447; border-radius: 9px; color: var(--accent); font-size: 23px; font-family: Georgia, serif; }
.brand-light { font-weight: 400; color: #afb4bc; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.page-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.page-nav a { padding: 17px 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; }
.page-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.page-nav a:hover { color: var(--text); }
.page-nav { flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 0; }
.account-picker { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 7px 0; font-size: 13px; color: var(--muted); }
.account-picker select, .account-setup input { background: var(--background); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 8px; min-height: 38px; font: inherit; }
.account-picker select { max-width: min(265px, 58vw); }
.account-picker .add-account-option { color: var(--muted); }
.account-setup { padding-top: 34px; }
.account-setup form { display: grid; gap: 13px; max-width: 460px; margin-top: 20px; }
.account-setup label { display: grid; gap: 5px; }
.logout-button { min-width: 48px; min-height: 32px; padding: 7px 10px; font-size: 11px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 430px; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.login-card .brand { margin-bottom: 40px; }
.login-card h1 { font-size: 30px; letter-spacing: -.8px; }
.login-card .eyebrow { margin-bottom: 12px; }
.login-form { display: grid; gap: 22px; margin-top: 30px; }
.login-form button { margin-top: 4px; background: #e9c48d; color: #201b15; font-weight: 650; }
.login-form button:hover { background: #f5d7a9; }
.login-form input[type="password"] { width: 100%; height: 43px; border: 1px solid #373f4c; border-radius: 6px; background: #101419; color: var(--text); padding: 0 11px; font: inherit; font-size: 13px; }
.login-note { margin: 25px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-error { margin: 22px 0 0; }
.environment { display: flex; gap: 9px; align-items: center; color: var(--accent); border: 1px solid #554936; border-radius: 6px; padding: 7px 11px; font-size: 12px; font-weight: 550; }
.environment > span { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
main { padding: 65px 0 82px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 16px; font-size: 10px; color: var(--accent); font-weight: 650; letter-spacing: 2.2px; }
h1 { margin: 0; font-size: clamp(29px, 3.3vw, 43px); letter-spacing: -1.7px; font-weight: 550; line-height: 1.2; }
.intro { color: var(--muted); margin: 14px 0 0; font-size: 14px; }
button { display: flex; gap: 9px; align-items: center; justify-content: center; min-width: 120px; min-height: 42px; padding: 10px 16px; border: 1px solid #3b414c; border-radius: 7px; background: #20252d; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s; }
button:hover { background: #2b313b; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { cursor: not-allowed; color: var(--muted); }
button[aria-busy="true"] { cursor: wait; }
.connection-row { margin: 43px 0 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #a5a9b0; }
.connection[data-state="connected"] { color: var(--green); }
.connection[data-state="connected"] .status-dot { background: var(--green); box-shadow: 0 0 0 4px #78cda60b; }
.connection[data-state="error"] { color: #f0a9a0; }
.connection[data-state="error"] .status-dot { background: #f0a9a0; }
.read-only { color: #747d8b; font-size: 11px; }
.error { padding: 15px 17px; margin: 0 0 17px; border: 1px solid #704b46; border-radius: 8px; background: #342422; color: #f3c7c1; font-size: 13px; line-height: 1.6; }
.setup-note { margin: 0 0 22px; padding: 22px; border: 1px solid #65563e; background: #211f1c; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.setup-note h2 { margin: 0 0 10px; font-size: 17px; font-weight: 550; color: var(--accent); }
.setup-note ol { margin: 0; padding-left: 20px; }
.setup-note li { margin: 8px 0; }
.setup-note a { color: var(--accent); }
.setup-note p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.setup-note code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.balances { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.balance-card { padding: 24px 23px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.balance-card.primary { border-color: #65563e; background: #211f1c; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 21px; }
.card-top h2 { margin: 0; font-size: 13px; font-weight: 500; color: #bdc3cd; }
.primary .card-top h2 { color: var(--accent); }
.card-tag { font-size: 8px; letter-spacing: .9px; color: #b6a17e; white-space: nowrap; }
.currency { font-size: 10px; color: #79828f; }
.amount { margin: 24px 0 24px; font-family: "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -1.5px; line-height: 1.25; overflow-wrap: anywhere; }
.primary .amount { color: #f6dfbc; }
.card-description { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.update-row { margin-top: 19px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; color: #818a97; font-size: 11px; line-height: 1.7; }
.auto-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #626d7b; margin: 0 7px 1px 1px; }
.account-note { display: flex; gap: 15px; align-items: center; padding: 22px 0; margin-top: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #464a52; border-radius: 7px; font-family: Georgia, serif; color: #bac0c9; font-size: 18px; }
.account-note h2 { margin: 0 0 4px; font-size: 12px; font-weight: 550; }
.account-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.account-status { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
footer { padding: 21px 0 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #737d8c; font-size: 10px; border-top: 1px solid var(--line); }
.footer-separator { color: #555e6c; margin: 0 7px; }
.monitor { margin-top: 44px; border: 1px solid var(--line); border-radius: 10px; background: #15191f; padding: 26px; }
.monitor-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.monitor-heading .eyebrow { margin-bottom: 8px; }
.monitor-heading h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.trade-intro { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.line-swatch.long { background: #78cda6; }
.line-swatch.short { background: #f0a9a0; }
.custom-multiplier { margin-top: 9px; }
.trade-formulas { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: #a8b2c0; font-size: 11px; line-height: 1.8; }
.trade-formulas p { margin: 4px 0; }
.long-text { color: var(--green); font-weight: 650; margin-right: 7px; }
.short-text { color: #f0a9a0; font-weight: 650; margin-right: 7px; }
.indicator-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.indicator-pair .ma-value-card { padding: 16px; }
.indicator-pair .card-top { flex-wrap: wrap; gap: 4px; }
.indicator-pair .ma-number { font-size: 22px; margin-top: 12px; }
.price-value-card, .entry-level { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #181d25; }
.price-value-card h3, .entry-level h3 { margin: 0; font-size: 12px; font-weight: 500; }
.price-value-card .card-top > span, .entry-level .card-top > span { font-size: 10px; color: var(--muted); }
.price-value-card .ma-number { color: #e6eaf0; font-size: 27px; margin-top: 10px; }
.entry-level.long { border-color: #355949; background: #15251e; }
.entry-level.short { border-color: #674a45; background: #291d1d; }
.entry-level.long h3, .entry-level.long .ma-number { color: #9ddfbb; }
.entry-level.short h3, .entry-level.short .ma-number { color: #f3b6a9; }
.entry-level .ma-number { margin-top: 10px; font-size: 26px; }
.level-detail { font-size: 10px; line-height: 1.6; color: #a1abba; margin: 8px 0 0; }
.trade-signal { display: grid; gap: 5px; padding: 15px 17px; background: #1d232d; border: 1px solid #394353; border-radius: 7px; }
.trade-signal strong { font-size: 13px; font-weight: 550; }
.trade-signal span { font-size: 10px; color: #a8b2c0; line-height: 1.6; }
.trade-signal[data-signal="long"] { border-color: #4e9870; background: #1b3326; }
.trade-signal[data-signal="long"] strong { color: #9ddfbb; }
.trade-signal[data-signal="short"] { border-color: #ae7466; background: #382521; }
.trade-signal[data-signal="short"] strong { color: #f3b6a9; }
.monitor-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; }
.field { min-width: 0; }
.field > label { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #bdc3cd; font-size: 12px; }
.field input[type="text"], .field input[type="number"], .field input[type="time"], .field select { width: 100%; height: 43px; border: 1px solid #373f4c; border-radius: 6px; background: #101419; color: var(--text); padding: 0 11px; font: inherit; font-size: 13px; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input::placeholder { color: #7f8998; }
.field select { padding-right: 6px; }
.field select option, .field select optgroup { background: #171c24; color: var(--text); }
.field-hint { min-height: 18px; margin: 8px 0 0; color: #9ba5b4; font-size: 11px; line-height: 1.6; }
.asset-field { margin-bottom: 21px; }
.asset-combobox { position: relative; }
.asset-menu { position: absolute; z-index: 10; top: calc(100% + 7px); left: 0; right: 0; background: #1b212a; border: 1px solid #505a69; border-radius: 7px; box-shadow: 0 15px 30px #0005; overflow: hidden; }
#asset-options { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
button.asset-option { display: flex; justify-content: space-between; align-items: flex-start; min-width: 0; min-height: 0; width: 100%; border: 0; border-radius: 0; border-bottom: 1px solid #2c3440; background: transparent; padding: 11px 12px; text-align: left; font-size: 12px; }
button.asset-option:hover, button.asset-option[aria-selected="true"] { background: #303b4a; }
.asset-option strong { display: block; font-weight: 600; color: #eef0f3; margin-bottom: 3px; }
.asset-option small { display: block; color: #acb5c2; font-size: 10px; line-height: 1.5; }
.asset-kind { flex: 0 0 auto; color: var(--accent); font-size: 9px; padding-top: 3px; }
.asset-results-info { margin: 0; padding: 11px 12px; background: #151a22; color: #a8b2c1; font-size: 10px; line-height: 1.5; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 17px; }
.line-swatch { display: inline-block; width: 13px; height: 2px; background: #69b6ff; }
.line-swatch.slow { background: #efb977; }
.field > .checkbox-label { margin: 0; gap: 9px; cursor: pointer; line-height: 1.5; }
.current-candle-field { align-self: center; }
.checkbox-label input { margin: 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.current-candle-field .field-hint { margin-left: 25px; font-size: 10px; }
.settings-note { margin: 21px 0 0; color: #818d9d; font-size: 10px; line-height: 1.7; }
.monitor-values { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ma-value-card { border: 1px solid #314258; border-radius: 8px; background: #17212b; padding: 21px 20px; }
.ma-value-card.slow { border-color: #544633; background: #231f19; }
.ma-value-card h3 { font-size: 12px; font-weight: 500; margin: 0; color: #b5c7dc; }
.ma-value-card .card-top > span { font-size: 10px; color: #69b6ff; }
.ma-value-card.slow h3 { color: #d5c3aa; }
.ma-value-card.slow .card-top > span { color: #efb977; }
.ma-number { margin: 18px 0 0; font: 30px/1.3 "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: #b9ddff; overflow-wrap: anywhere; }
.ma-value-card.slow .ma-number { color: #f2d4ae; }
.sl-preview { margin-top: 12px; }
.ma-value-card.stop { border-color: #68483f; background: #291e1c; }
.ma-value-card.stop h3, .ma-value-card.stop .card-top > span, .ma-value-card.stop .ma-number { color: #efb6a7; }
.monitor-state { margin: 1px 0 0; font-size: 11px; line-height: 1.6; color: #a4afbe; }
.monitor-state[data-state="success"] { color: var(--green); }
.monitor-state[data-state="error"] { color: #f0a9a0; }
.monitor-error { margin: 22px 0 0; }
.monitor-meta { margin-top: 23px; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); color: #8995a5; font-size: 10px; line-height: 1.7; }
.bot-panel { margin-top: 28px; }
.bot-settings { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.bot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.bot-actions button { min-width: 0; }
.bot-actions .start-button { border-color: #438366; color: #a4e5c4; background: #182c23; }
.bot-actions .start-button:disabled { border-color: #3b414c; color: var(--muted); background: #20252d; }
.bot-state { flex-shrink: 0; padding: 8px 12px; border: 1px solid #4b5564; border-radius: 5px; font-size: 12px; font-weight: 500; }
.bot-state[data-state="running"] { color: #a4e5c4; border-color: #438366; }
.bot-state[data-state="error"] { color: #f0a9a0; border-color: #995f55; }
.bot-configuration { padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: #c2cedd; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.bot-subtitle { margin: 26px 0 14px; font-size: 14px; font-weight: 500; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.bot-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.bot-table td, .bot-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bot-table th { color: #a6b4c6; font-size: 11px; font-weight: 500; }
.bot-table tr:last-child td { border-bottom: 0; }
.bot-table td small { display: block; margin-top: 5px; font-size: 10px; color: #9ba5b4; }
.bot-table button { min-width: 0; padding: 7px 10px; font-size: 11px; }
.bot-log { margin-top: 25px; font-size: 12px; }
.bot-log summary { cursor: pointer; color: #c2cedd; }
.bot-log ul { max-height: 250px; overflow-y: auto; list-style: none; padding: 0; }
.bot-log li { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.7; color: #a9b5c5; }
.bot-log time { color: #7f8da0; margin-right: 12px; }
.bot-log li[data-level="error"] { color: #f0a9a0; }
@media (max-width: 580px) { .bot-settings { grid-template-columns: 1fr; } .bot-actions button { flex: 1 1 45%; } .bot-state { padding: 7px; font-size: 11px; } }
@media (max-width: 950px) {
  .shell { padding: 0 28px; }
  .balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary { grid-column: 1 / -1; }
  .primary .amount { font-size: 37px; }
  .amount { font-size: 30px; }
  .monitor-layout { gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .ma-number { font-size: 25px; }
}
@media (max-width: 580px) {
  .shell { padding: 0 20px; }
  .topbar { height: 82px; }
  .brand { font-size: 20px; gap: 9px; }
  .environment { font-size: 10px; padding: 6px 8px; }
  main { padding: 37px 0 48px; }
  .heading { align-items: flex-start; flex-direction: column; gap: 23px; }
  h1 { letter-spacing: -1px; }
  .intro { font-size: 13px; line-height: 1.6; }
  .connection-row { margin-top: 28px; }
  .balances { grid-template-columns: 1fr; gap: 12px; }
  .balance-card { padding: 21px; }
  .amount { margin: 20px 0; font-size: 32px; }
  .account-note { flex-wrap: wrap; margin-top: 30px; }
  .account-note > div:nth-child(2) { flex: 1; }
  .account-status { width: 100%; margin-left: 47px; }
  .monitor { padding: 20px; margin-top: 30px; }
  .monitor-layout { grid-template-columns: 1fr; }
  .monitor-values { margin-top: 5px; }
  .monitor-heading h2 { font-size: 22px; }
  .monitor-heading button { min-width: 92px; padding: 9px 12px; }
  .ma-number { font-size: 30px; }
  .indicator-pair .ma-number { font-size: 16px; letter-spacing: -.5px; }
  .settings-grid { gap: 17px 12px; }
  .field select { font-size: 12px; }
  .checkbox-label span { font-size: 11px; }
}

.bot-state[data-state="reconnecting"] { color: #efc17f; border-color: #9b7948; }
.bot-state[data-state="blocked"] { color: #efc17f; border-color: #9b7948; }
.schedule-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.schedule-master { margin-bottom: 16px; }
.schedule-panel .checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.schedule-row { margin: 14px 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #14191f); }
.schedule-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.schedule-row-heading > strong { margin-right: auto; font-size: 14px; }
.schedule-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr); gap: 16px; }
.schedule-time-grid .field { min-width: 0; }
.schedule-time-grid > label { color: #c2cedd; font-size: 12px; font-weight: 500; }
.schedule-time-grid input, .schedule-time-grid select { width: 100%; min-width: 0; margin-top: 8px; }
.schedule-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.schedule-days legend { padding: 0; margin-bottom: 10px; color: #bac6d4; font-size: 12px; }
.schedule-day { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; cursor: pointer; }
.schedule-day input { width: 16px; height: 16px; margin: 0; accent-color: #efc17f; }
.schedule-panel .field-hint { margin-top: 12px; }
@media (max-width: 640px) { .schedule-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .schedule-timezone { grid-column: 1 / -1; } .schedule-row { padding: 14px; } .schedule-row-heading > strong { width: 100%; } }

/* Densità condivisa fra Trading, Rendimento, Storico e Backtest. */
.shell { max-width:1880px; padding:0 28px; }
.shell .topbar { height:64px; }
.shell .brand { font-size:21px;gap:9px; }
.shell .brand-mark { width:30px;height:30px;font-size:22px; }
.shell .page-nav { column-gap:18px;row-gap:0; }
.shell .page-nav a { padding:10px 0; }
.shell .account-picker { margin:4px 0; }
.shell .account-picker select { min-height:34px;padding:6px 8px; }
.shell > main, main.shell { padding-top:16px;padding-bottom:30px;min-width:0; }
.shell main > .heading { padding-top:0;margin-bottom:12px;gap:12px; }
.shell .heading h1 { font-size:clamp(24px,2.5vw,30px);letter-spacing:-.8px; }
.shell .eyebrow { margin-bottom:5px; }
.shell .intro { margin-top:6px;font-size:12px;line-height:1.5; }
.shell .connection-row { margin-top:14px; }
.shell .balances { gap:12px; }
.shell .balance-card { padding:12px 16px; }
.shell .balance-card .amount { margin:8px 0 4px; }
.shell .update-row { margin:10px 0 14px; }
.shell .workspace { margin:12px 0;padding:14px; }
.shell .workspace-heading h2 { margin:0;font-size:18px; }
.shell .workspace-toolbar { margin:10px 0 8px;gap:9px; }
.shell .asset-tabs { padding:8px 0 10px;gap:6px; }
.shell .monitor { margin-top:18px;padding:16px; }
.shell .monitor-heading { margin-bottom:14px; }
.shell .account-note { margin-top:20px;padding:14px 0; }
.shell footer { padding:12px 0 18px; }
.shell .performance-filters { margin-top:14px;padding:14px;gap:12px; }
.shell .performance-update { margin:10px 0; }
.shell .performance-context { margin:14px 0;padding-top:10px; }
.shell .performance-kpis { gap:10px; }
.shell .performance-card { padding:14px; }
.shell .performance-card h2 { min-height:18px; }
.shell .kpi-value { margin:8px 0;font-size:26px; }
.shell .performance-panel { margin-top:14px;padding:16px; }
.shell .performance-section-heading { margin-bottom:12px;gap:12px; }
.shell .performance-section-heading p { margin-top:4px; }
.shell .detail-metrics > div { padding:10px 0; }
.shell .performance-comparison { gap:14px; }
.login-card { padding:26px; }
.login-card .brand { margin-bottom:22px; }
@media(max-width:700px) {
 .shell { padding:0 14px; }
 .shell .topbar { height:56px; }
 .shell .brand { font-size:20px;gap:8px; }
 .shell .environment { font-size:10px;padding:5px 7px; }
 .shell > main, main.shell { padding-top:12px;padding-bottom:22px; }
 .shell main > .heading { flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px; }
 .shell .heading h1 { font-size:25px; }
 .shell .workspace { padding:10px; }
 .shell .performance-filters { gap:10px;padding:10px; }
 .shell .performance-card { padding:12px; }
 .shell .performance-panel { padding:12px; }
 .shell .performance-comparison { gap:0; }
}

.shell main > .heading > div { flex:1;min-width:0; }
@media(max-width:700px) { .shell main > .heading { flex-wrap:nowrap; } .shell main > .heading > button { flex:0 0 auto;min-width:0;padding:9px; } }

.account-setup h1 { font-size:28px; }
.account-setup form { margin-top:12px;gap:10px; }
