@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263443;
  background: #f5f7f9;
  font-size: 14px;
  --bg: #f5f7f9;
  --surface: #fff;
  --line: #e6eaee;
  --text: #263443;
  --muted: #7b8797;
  --green: #0a9879;
  --green-soft: #e9f7f1;
  --red: #d26161;
  --red-soft: #fcf0ef;
  --sidebar: #fff;
  --shadow: 0 3px 14px #22344704;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
svg {
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85ccb8;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", "DM Sans", sans-serif;
}
h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 750;
}
h3 {
  font-size: 14px;
  font-weight: 750;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.nowrap {
  white-space: nowrap;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 31px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: white;
}
.brand em {
  font-style: normal;
  color: var(--green);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 7px 0 38px 54px;
  font-weight: 600;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #9aa4b0;
  margin: 0 14px 11px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #748092;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  position: relative;
}
.nav a:hover {
  background: var(--bg);
  color: var(--text);
}
.nav a.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}
.nav a.active:before {
  content: "";
  position: absolute;
  left: -18px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--green);
  border-radius: 3px;
}
.nav .count {
  margin-left: auto;
  border-radius: 5px;
  background: var(--green);
  color: white;
  font-size: 9px;
  padding: 2px 5px;
}
.sidebar-footer {
  margin-top: auto;
}
.paper-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.paper-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.paper-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 550;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.top-date {
  font-size: 11px;
  color: var(--muted);
}
.icon-button {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--bg);
}
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 29px 35px 25px;
  max-width: 1700px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}
.button:hover {
  filter: brightness(0.97);
}
.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.button.small {
  padding: 7px 10px;
  font-size: 10px;
}
.delay-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce9e7;
  background: #eef6f5;
  border-radius: 7px;
  padding: 10px 13px;
  color: #647d7b;
  font-size: 10px;
  margin-bottom: 23px;
}
.delay-banner strong {
  color: #3e6760;
  font-weight: 600;
}
.delay-banner .right {
  margin-left: auto;
  color: #7b9290;
  font-size: 9px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 650;
  padding: 4px 7px;
  white-space: nowrap;
  background: var(--bg);
  color: var(--muted);
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.red {
  background: var(--red-soft);
  color: var(--red);
}
.badge.amber {
  background: #fff5df;
  color: #b88a36;
}
.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 13px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 21px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.kpi {
  padding: 19px 19px 17px;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.kpi-icon {
  width: 27px;
  height: 27px;
  background: var(--bg);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #96a1ae;
}
.kpi-number {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-top: 12px;
}
.kpi-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 21px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 21px 16px;
}
.card-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.card-head .text-link {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}
.rule-list {
  padding: 0 21px 4px;
}
.rule-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rule-row:last-child {
  border: 0;
}
.rule-icon {
  height: 29px;
  width: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
}
.rule-title {
  font-size: 11px;
  font-weight: 650;
}
.rule-copy {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.rule-row .rule-value {
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}
.rule-row .rule-value small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.card-foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  padding: 12px 21px;
  color: var(--muted);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.gate-card {
  padding: 21px;
  display: flex;
  flex-direction: column;
}
.gate-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gate-number {
  font-family: "Manrope", sans-serif;
  font-size: 45px;
  letter-spacing: -2px;
  font-weight: 750;
  margin-top: 22px;
  line-height: 1.2;
}
.gate-number span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 8px;
}
.gate-track {
  height: 7px;
  border-radius: 7px;
  background: var(--bg);
  position: relative;
  margin-top: 21px;
}
.gate-track:before {
  content: "";
  position: absolute;
  left: 0;
  width: var(--gate-threshold, 20%);
  top: 0;
  bottom: 0;
  background: #addfcd;
  border-radius: 7px 0 0 7px;
}
.gate-track:after {
  content: "";
  position: absolute;
  left: var(--gate-threshold, 20%);
  top: -4px;
  bottom: -4px;
  border-left: 1px dashed #91b9ac;
}
.gate-marker {
  position: absolute;
  top: -3px;
  height: 13px;
  width: 4px;
  background: var(--text);
  border-radius: 2px;
}
.gate-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 9px;
}
.gate-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 22px;
}
.gate-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.empty {
  padding: 37px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty .empty-icon {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: #a3aebb;
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 12px;
}
.empty p {
  max-width: 330px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 9px 0 15px;
}
.capital-body {
  display: flex;
  gap: 21px;
  padding: 12px 21px 25px;
  align-items: center;
}
.donut {
  width: 112px;
  height: 112px;
  position: relative;
  flex-shrink: 0;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-middle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.donut-middle small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.capital-legend {
  flex: 1;
  min-width: 0;
}
.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0;
  font-size: 10px;
}
.legend-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.legend-label .square {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--green);
}
.legend-row strong {
  font-size: 10px;
  font-weight: 600;
}
.warning {
  background: #fffbf1;
  border: 1px solid #f1e8cf;
  padding: 12px 14px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 7px;
  font-size: 10px;
  color: #9b8856;
  line-height: 1.7;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9aa4af;
  font-size: 9px;
  margin-top: 22px;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg);
  border-radius: 6px;
}
.tab {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 8px 13px;
  border-radius: 4px;
  font-weight: 600;
}
.tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 4px #0000000a;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 10px;
  color: var(--muted);
}
.search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px 9px 31px;
  font-size: 10px;
  color: var(--text);
  width: 205px;
}
.search input:focus {
  outline: 1px solid var(--green);
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
thead {
  background: var(--bg);
}
th {
  text-align: left;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  padding: 13px 12px;
  line-height: 1.5;
}
th button {
  padding: 0;
  color: inherit;
  font: inherit;
  background: none;
  text-align: left;
}
td {
  padding: 15px 12px;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  word-break: break-word;
  line-height: 1.6;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td:last-child,
th:last-child {
  padding-right: 20px;
}
.stock-link {
  font-weight: 750;
  font-size: 11px;
  color: var(--text);
  background: none;
  padding: 0;
  text-align: left;
}
.stock-link:hover {
  color: var(--green);
}
.cell-sub {
  color: var(--muted);
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.table-info {
  padding: 12px 20px;
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.notice {
  padding: 14px 17px;
  background: var(--green-soft);
  border: 1px solid #d5eadf;
  color: var(--green);
  font-size: 11px;
  border-radius: 7px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.notice.neutral {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.notice.error {
  background: var(--red-soft);
  border-color: #efd9d9;
  color: var(--red);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  margin-bottom: 20px;
  padding: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  padding: 9px 10px;
  font-size: 12px;
  color: var(--text);
  min-width: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--green);
}
.field textarea {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  resize: vertical;
  line-height: 1.7;
  min-height: 180px;
}
.helper {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 13px;
}
.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.log-list {
  max-height: 520px;
  overflow: auto;
}
.log-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 15px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.log-time {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
}
.log-title {
  font-size: 11px;
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: center;
}
.log-reason {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.chart-card {
  margin-bottom: 20px;
}
.chart-body {
  padding: 0 18px 16px;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-legend {
  font-size: 9px;
  display: flex;
  gap: 18px;
  color: var(--muted);
  padding: 0 21px 15px;
}
.chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.replay-form {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  margin: 21px 0;
}
.replay-form .field {
  flex: 1;
  min-width: 140px;
}
.replay-result {
  margin-top: 20px;
}
.replay-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.replay-sessions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.session-card {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
}
.session-card strong {
  display: block;
  margin: 8px 0;
}
.session-card small {
  color: var(--muted);
  font-size: 9px;
}
.upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.upload input {
  max-width: 100%;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 44px;
  font-weight: 800;
}
.boot span {
  color: var(--green);
}
.boot small {
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  font-size: 12px;
  margin-top: 20px;
}
.job-chip {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #c8e5d9;
  font-size: 10px;
  position: fixed;
  bottom: 20px;
  left: 236px;
  padding: 10px 15px;
  border-radius: 7px;
  z-index: 40;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 15px #0001;
}
.spinner {
  height: 10px;
  width: 10px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: calc(100vw - 40px);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  box-shadow: 0 5px 25px #0001;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 11px;
  max-width: 400px;
  line-height: 1.7;
}
.toast.error {
  border-left-color: var(--red);
}
.nav-scrim {
  display: none;
}
.chart-no-data {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.inline-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.account-status {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  padding: 15px 21px;
}
.stat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 21px 20px;
}
.stat-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}
.stat-row strong {
  font-size: 14px;
}
.replay-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 20px;
}
.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
}
.screen-note {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.screen-note p {
  font-size: 10px;
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
[data-theme="dark"] {
  --bg: #111a20;
  --surface: #19252d;
  --sidebar: #16222a;
  --text: #d7e2e6;
  --muted: #8b9ba7;
  --line: #293740;
  --green: #45c4a4;
  --green-soft: #203b34;
  --red: #e3948e;
  --red-soft: #3d2a2c;
  --shadow: none;
  color: var(--text);
  background: var(--bg);
}
[data-theme="dark"] .delay-banner {
  background: #1b302f;
  border-color: #2b4741;
  color: #8dafab;
}
[data-theme="dark"] .delay-banner strong {
  color: #adcec4;
}
[data-theme="dark"] .warning {
  background: #302d20;
  border-color: #494230;
  color: #bbaa79;
}
[data-theme="dark"] .button.primary {
  color: #102920;
}
[data-theme="dark"] .notice {
  border-color: #31554b;
}
[data-theme="dark"] .job-chip {
  border-color: #31554b;
}
@media (min-width: 1500px) {
  .content {
    padding: 35px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .kpi-number {
    font-size: 29px;
  }
  .rule-row {
    padding: 20px 0;
  }
  .card-head {
    padding-top: 23px;
  }
  .kpi {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 182px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .brand-sub {
    margin-left: 49px;
    font-size: 8px;
  }
  .nav a {
    font-size: 11px;
    padding: 11px;
  }
  .nav a.active:before {
    left: -12px;
  }
  .content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi-number {
    font-size: 22px;
  }
  .overview-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
    gap: 15px;
  }
  .capital-body {
    gap: 12px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .donut {
    width: 90px;
    height: 90px;
  }
  .legend-row {
    font-size: 9px;
  }
  .legend-row strong {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-date {
    display: none;
  }
  .job-chip {
    left: 202px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .sidebar {
    padding-top: 24px;
  }
  .brand {
    font-size: 19px;
    padding: 0 3px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
  }
  .brand-sub {
    margin-left: 40px;
    font-size: 7px;
  }
  .nav a {
    font-size: 10px;
    gap: 8px;
    padding: 11px 8px;
  }
  .nav a svg {
    width: 16px;
  }
  .nav-label {
    font-size: 8px;
    margin-left: 8px;
  }
  .paper-card {
    padding: 11px;
    font-size: 9px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gate-card {
    min-height: 250px;
  }
  .gate-number {
    margin-top: 12px;
  }
  .capital-body {
    justify-content: center;
  }
  .capital-legend {
    max-width: 300px;
  }
  .gate-footer {
    margin-top: 12px;
  }
  .content {
    padding: 22px 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    max-width: 270px;
    font-size: 11px;
  }
  .head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .delay-banner .right {
    display: none;
  }
  .delay-banner {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .job-chip {
    left: 178px;
  }
  .replay-sessions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  th,
  td {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 9px;
  }
  td:first-child,
  th:first-child {
    padding-left: 13px;
  }
  td:last-child,
  th:last-child {
    padding-right: 13px;
  }
  .stock-link {
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 215px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0006;
    z-index: 19;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
  }
  .breadcrumb {
    gap: 7px;
  }
  .top-actions {
    gap: 7px;
  }
  .content {
    padding: 21px 15px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
  }
  .page-head p {
    max-width: none;
  }
  .head-actions {
    justify-content: flex-start;
  }
  .delay-banner {
    margin-bottom: 20px;
    padding: 10px;
  }
  .kpi-grid {
    gap: 9px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi-number {
    font-size: 23px;
  }
  .kpi-top {
    font-size: 9px;
  }
  .kpi-bottom {
    font-size: 8px;
  }
  .card-head {
    padding: 17px;
  }
  .rule-list {
    padding-left: 17px;
    padding-right: 17px;
  }
  .rule-title {
    font-size: 10px;
  }
  .rule-copy {
    font-size: 9px;
  }
  .rule-row {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .rule-row .rule-value {
    font-size: 10px;
  }
  .page-footer {
    font-size: 8px;
    flex-direction: column;
    gap: 6px;
  }
  .gate-card {
    padding: 19px;
  }
  .table-responsive table,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
  }
  .table-responsive thead {
    display: none;
  }
  .table-responsive tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    padding: 12px 15px;
    gap: 11px 15px;
  }
  .table-responsive td {
    border: 0;
    padding: 0 !important;
    font-size: 11px;
  }
  .table-responsive td:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 3px;
  }
  .table-responsive td:first-child {
    grid-column: 1/-1;
  }
  .table-responsive td:first-child:before {
    display: none;
  }
  .stock-link {
    font-size: 12px;
  }
  .table-responsive tbody tr:last-child {
    border: 0;
  }
  .filter-bar {
    padding: 13px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .settings-card {
    padding: 17px;
  }
  .field label {
    font-size: 9px;
  }
  .job-chip {
    left: 15px;
    bottom: 15px;
    max-width: calc(100vw - 30px);
  }
  .replay-sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .log-item {
    padding: 14px;
    grid-template-columns: 53px minmax(0, 1fr);
    gap: 10px;
  }
  .settings-head {
    align-items: flex-start;
  }
  .settings-head h2 {
    font-size: 14px;
  }
  .card-head h2 {
    font-size: 14px;
  }
  .topbar .avatar {
    width: 27px;
    height: 27px;
  }
  .chart-body {
    padding-left: 4px;
    padding-right: 4px;
  }
  .replay-form {
    gap: 10px;
  }
  .capital-body {
    padding: 8px 20px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
