:root {
  --navy: #193041;
  --navy-2: #20394b;
  --accent: #1bd3cb;
  --bg: #ece9ec;
  --line: #ccd2d7;
  --text: #14212b;
  --muted: #8f969d;
  --good: #25a965;
  --bad: #c94444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; color: var(--text); background: #f5f5f6; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #b9c5cf; padding: 18px 0; transition: .2s; }
.sidebar.collapsed { width: 74px; }
.sidebar.collapsed .nav-item b, .sidebar.collapsed .collapse span { display: none; }
.collapse { border: 0; background: transparent; color: #b9c5cf; padding: 14px 20px 28px; cursor: pointer; font-size: 18px; }
nav { display: flex; flex-direction: column; }
.nav-item { color: #b9c5cf; text-decoration: none; padding: 13px 20px; display: flex; gap: 14px; align-items: center; font-size: 17px; border-left: 4px solid transparent; }
.nav-item.active { color: white; background: rgba(0,0,0,.12); border-left-color: var(--accent); }
.nav-item:hover { background: rgba(255,255,255,.05); }
.main { min-width: 0; }
.demo-banner { background: #f4f1f2; color: #e64a43; text-align: center; padding: 24px 16px; font-size: 18px; }
.controls-panel { background: var(--bg); padding: 20px 28px 28px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; }
.toolbar label, .service-grid label, .bottom-controls label { font-size: 18px; }
select, input { border: 1px solid #d4d1d3; border-radius: 4px; background: linear-gradient(#f4f1f2,#ddd9db); padding: 10px 12px; }
.refresh { font-size: 42px; background: transparent; border: 0; cursor: pointer; line-height: 1; color: #142b3c; }
.primary, .icon-btn, .ghost { border: 0; border-radius: 5px; cursor: pointer; }
.primary, .icon-btn { background: #263f52; color: #fff; padding: 12px 24px; font-weight: 700; }
.ghost { padding: 10px 18px; background: #d8dde1; color: #1d2e3a; }
.service-grid { display: grid; grid-template-columns: 1.2fr .95fr 1.2fr .95fr; gap: 16px; margin-top: 28px; align-items: start; }
.service-grid > label, .service-block > label { display: grid; gap: 7px; }
.service-block select { width: 100%; }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.check-row label { font-size: 16px; }
.bottom-controls { margin-top: 110px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.inline-controls { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.icon-btn { font-size: 24px; min-width: 92px; }
.extra-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; background: #fff; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.extra-filters label { display: grid; gap: 6px; }
.hidden { display: none; }
.table-section { background: white; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1050px; }
thead { background: var(--navy); color: white; }
th { padding: 15px 12px; border-right: 1px solid #8ea0ac; vertical-align: middle; font-size: 17px; }
th:last-child { border-right: 0; }
.name-col { min-width: 310px; }
.name-col input { width: 100%; margin-top: 10px; background: white; padding: 7px 9px; }
.sortable { cursor: pointer; min-width: 180px; }
.range { margin-top: 10px; display: flex; gap: 8px; }
.range input { width: 78px; background: white; padding: 7px; }
tbody tr:nth-child(odd) { background: #d6d4d7; }
tbody tr:nth-child(even) { background: #eceaed; }
td { padding: 13px 14px; border-bottom: 1px solid #d2d2d4; text-align: center; }
td:first-child { text-align: left; font-size: 17px; }
.market-icons { display: flex; gap: 6px; justify-content: center; }
.market-chip { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: white; background: #35576b; }
.price-main { font-size: 17px; }
.price-sub { color: #36444d; font-size: 13px; margin-top: 4px; }
.positive { color: var(--good); font-weight: 700; }
.negative { color: var(--bad); font-weight: 700; }
.star { font-size: 31px; border: 0; background: transparent; cursor: pointer; color: #173043; }
.star.active { color: #d99b16; }
.statusbar { padding: 12px 18px; color: #5a6570; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
dialog { border: 0; border-radius: 10px; max-width: 460px; padding: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
@media (max-width: 1150px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .bottom-controls { margin-top: 46px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 74px 1fr; }
  .sidebar .nav-item b, .sidebar .collapse span { display: none; }
  .controls-panel { padding: 18px 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .bottom-controls { align-items: stretch; flex-direction: column; }
  .toolbar { gap: 12px; }
}
