@charset "UTF-8";
:root {
  --bg: #f5f6f8;
  --paper: #fff;
  --ink: #172b36;
  --muted: #71818b;
  --line: #e5eaee;
  --teal: #0b6e62;
  --tint: #eaf4f1;
  --red: #bd4a4a;
  --amber: #a87719;
  --radius: 10px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--teal);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #59b5a9;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 6px;
  min-height: 38px;
  font-weight: 500;
}
button:hover {
  border-color: #b9cbc7;
  background: #f9fbfa;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #095a50;
}
button.danger {
  color: var(--red);
}
button.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  font-size: 12px;
  padding: 5px 9px;
  min-height: 30px;
}
.muted {
  color: var(--muted);
}
.up {
  color: var(--teal);
}
.down {
  color: var(--red);
}
.mono,
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.num {
  text-align: right;
}
.boot,
.loading {
  padding: 60px;
  color: var(--muted);
  text-align: center;
}
.layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 17px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 31px;
  font-weight: 650;
  font-size: 23px;
  letter-spacing: 2px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: white;
  display: grid;
  place-content: center;
  border-radius: 9px;
  letter-spacing: -3px;
  font-family: serif;
  font-size: 25px;
  padding-right: 3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label {
  padding: 20px 14px 9px;
  color: #97a3aa;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  margin-bottom: 4px;
  border-radius: 7px;
  color: #62727d;
  font-size: 13px;
  font-weight: 500;
}
.nav-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.nav-link.active {
  background: var(--tint);
  color: var(--teal);
}
.nav-link:hover {
  background: #f5f8f7;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 12px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  background: #e7eeed;
  width: 32px;
  height: 32px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: var(--teal);
  font-weight: 600;
}
.sidebar-foot small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.sidebar-foot button {
  margin-left: auto;
  padding: 5px;
  min-width: 30px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  padding: 0 38px;
  background: #ffffffb8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .trail {
  font-size: 12px;
  color: var(--muted);
}
.topbar .trail b {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 31px 38px 60px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--teal);
  margin-bottom: 11px;
}
.page-head h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.page-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.stat {
  padding: 21px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
}
.stat-value {
  font-size: 29px;
  line-height: 1.2;
  margin-top: 11px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
  margin-left: 7px;
  color: var(--muted);
  letter-spacing: 0;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 20px 23px 17px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.panel-head small {
  color: var(--muted);
  font-size: 11px;
}
.panel-body {
  padding: 23px;
}
.text-link {
  font-size: 11px;
  color: var(--teal);
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
  min-height: 33px;
}
.chip.active {
  background: white;
  border-color: var(--line);
  box-shadow: 0 1px 2px #172b3605;
  color: var(--teal);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f3f5;
  padding: 4px 7px;
  border-radius: 4px;
  color: #687982;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}
.badge.good {
  background: var(--tint);
  color: var(--teal);
}
.badge.warn {
  background: #fbf3e3;
  color: var(--amber);
}
.badge.bad {
  background: #fbebeb;
  color: var(--red);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #89969e;
  font-weight: 500;
  background: #fcfdfd;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 22px;
  border-bottom: 1px solid #edf0f2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfdfc;
}
.asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fafcfc;
  display: grid;
  place-content: center;
  font-weight: 600;
  font-size: 11px;
  color: #405b69;
}
.asset-cell b {
  font-size: 12px;
}
.asset-cell small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spark {
  width: 76px;
  height: 27px;
}
.feed-item {
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.feed-item:last-child {
  border: 0;
}
.feed-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.feed-title {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 500;
}
.feed-summary {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 7px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.source-row:last-child {
  border: 0;
}
.source-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.source-row .source-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.empty {
  padding: 36px 24px;
  text-align: center;
}
.empty svg {
  height: 30px;
  width: 30px;
  color: #9aabae;
  margin-bottom: 10px;
}
.empty h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 9px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 430px;
  margin: 0 auto 17px;
}
.notice {
  background: #eef4f4;
  border: 1px solid #deebea;
  padding: 13px 16px;
  border-radius: 6px;
  color: #5a7479;
  font-size: 11px;
  line-height: 1.8;
  margin: 18px 0;
}
.notice.warn {
  background: #fbf7ee;
  border-color: #f0e7d2;
  color: #8b744a;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 17px;
}
.section-title h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.asset-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.asset-heading .asset-icon {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.price-big {
  font-size: 32px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.price-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.asset-overview {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 22px;
}
.chart-shell {
  position: relative;
  padding: 14px 18px 5px;
  min-height: 330px;
}
.chart-shell canvas {
  width: 100%;
  height: 310px;
  display: block;
}
.chart-tooltip {
  position: absolute;
  top: 15px;
  left: 25px;
  pointer-events: none;
  background: #fffffff2;
  color: #4e646b;
  font-size: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 80%;
}
.chart-caption {
  font-size: 10px;
  color: var(--muted);
  padding: 11px 23px 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.market {
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.market h3 {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0 20px;
}
.market-prob {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
}
.market-prob strong {
  font-size: 29px;
  letter-spacing: -1px;
  color: var(--teal);
  font-weight: 500;
}
.prob-track {
  height: 4px;
  border-radius: 2px;
  background: #eaf0f0;
  overflow: hidden;
  margin: 12px 0;
}
.prob-track i {
  display: block;
  height: 100%;
  background: var(--teal);
}
.market-foot {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.strategy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.strategy-index {
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 1.2px;
}
.strategy h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 10px;
}
.strategy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  min-height: 45px;
}
.strategy-visual {
  height: 70px;
  margin: 15px 0;
  display: block;
  width: 100%;
}
.strategy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
[hidden] { display: none !important; }
.model-discovery { padding: 4px 0; }
.model-discovery p { margin: 8px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.web-research { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.web-research li { margin: 8px 0; overflow-wrap: anywhere; }
.search-suggestions { width: 100%; min-height: 120px; border: 0; background: white; }
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
label.field small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4e7;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  padding: 10px 11px;
  min-height: 40px;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}
input[type="file"] {
  font-size: 12px;
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.7;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #546b74;
}
.check-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 13px 0;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 23px;
}
.prose {
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 23px 0 10px;
}
.evidence {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.evidence:last-child {
  border: 0;
}
.evidence h3 {
  margin: 9px 0;
  font-size: 14px;
  font-weight: 500;
}
.evidence p {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: #5e747e;
  overflow-wrap: anywhere;
}
.analysis {
  border-left: 3px solid var(--teal);
  padding-left: 18px;
  margin: 18px 0;
}
.analysis h3 {
  font-size: 13px;
}
.analysis ul {
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.9;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.admin-tabs a {
  padding: 13px 18px;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.admin-tabs a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.config-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.config-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 9px;
}
.config-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.config-card .actions {
  margin-top: 17px;
}
.error-text {
  color: var(--red);
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin-top: 9px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #122b3b66;
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 25px;
  backdrop-filter: blur(2px);
}
.modal {
  background: white;
  width: min(640px, 100%);
  border-radius: 12px;
  box-shadow: 0 20px 90px #152e3926;
  max-height: 90vh;
  overflow: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.modal-body {
  padding: 25px;
}
.modal .close {
  font-size: 23px;
  padding: 0 9px;
}
.modal-error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.7;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 70px);
  transform: translateX(-50%);
  background: #183c35;
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
  box-shadow: 0 5px 25px #142d3420;
  z-index: 100;
  display: none;
  font-size: 12px;
  max-width: 90vw;
  line-height: 1.7;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #8f3939;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  background: #123c39;
  color: #f1f8f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  position: relative;
  overflow: hidden;
}
.auth-story .eyebrow {
  color: #8fc4b9;
  margin-bottom: 30px;
}
.auth-story h1 {
  font-size: clamp(32px, 3.7vw, 57px);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 0;
  max-width: 420px;
}
.auth-story p {
  color: #91b1aa;
  line-height: 2;
  font-size: 13px;
  margin: 25px 0;
  max-width: 350px;
}
.auth-lines {
  margin-top: 35px;
  opacity: 0.45;
  width: 100%;
  height: 90px;
}
.auth-form {
  align-self: center;
  justify-self: center;
  width: min(370px, 85%);
  padding: 45px 0;
}
.auth-form .brand {
  padding: 0 0 43px;
}
.auth-form h2 {
  font-size: 23px;
  font-weight: 550;
  margin-bottom: 10px;
}
.auth-form p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.auth-form label {
  margin: 18px 0;
}
.auth-form .primary {
  width: 100%;
  margin-top: 9px;
}
.auth-toggle {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-toggle button {
  color: var(--teal);
}
.login-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
}
.mobile-menu {
  display: none;
}
.brief-date {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.kv b {
  color: var(--ink);
  font-weight: 500;
}
.report-name {
  font-size: 13px;
  font-weight: 500;
}
.report-type {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 11px;
}
.error-page {
  padding: 50px 10px;
  text-align: center;
}
.error-page p {
  color: var(--muted);
  line-height: 1.8;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.footer-note {
  font-size: 10px;
  color: #8b9ba2;
  line-height: 1.9;
  margin-top: 24px;
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form .field {
  flex: 1;
  min-width: 150px;
}
.external {
  color: var(--teal);
  font-size: 11px;
}
.task-row {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.task-row h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.task-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.task-row:last-child {
  border: 0;
}
.metric-bars {
  display: flex;
  height: 150px;
  gap: 3px;
  align-items: center;
  position: relative;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}
.metric-bars div {
  flex: 1;
  background: #73a99c;
  min-width: 2px;
}
.metric-bars div.negative {
  background: #ce8e88;
}
.metric-bars:before {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
iframe.chart-frame {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}
.saved-state {
  padding: 14px;
  background: var(--tint);
  color: var(--teal);
  font-size: 12px;
  border-radius: 5px;
  line-height: 1.8;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .content {
    padding: 38px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr);
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid-main,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats .stat {
    padding: 19px;
  }
  .sidebar {
    width: 190px;
    padding: 25px 12px;
  }
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .brand {
    font-size: 21px;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .grid-main > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .grid-main > aside .panel {
    margin: 0;
  }
  .topbar-right .date {
    display: none;
  }
}
@media (max-width: 740px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 50px #172b3626;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .mobile-menu {
    display: inline-block;
    font-size: 19px;
    padding: 2px 9px;
  }
  .topbar .trail {
    margin-right: auto;
  }
  .topbar-right {
    gap: 8px;
  }
  .content {
    padding: 25px 17px 45px;
  }
  .page-head {
    align-items: start;
    gap: 12px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    max-width: 230px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats .stat {
    padding: 18px;
  }
  .stats .stat:nth-child(2) {
    border-right: 0;
  }
  .stats .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat-value {
    font-size: 26px;
  }
  .grid-main > aside {
    display: block;
  }
  .grid-main > aside .panel {
    margin-bottom: 20px;
  }
  .market-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .check-group {
    grid-template-columns: 1fr 1fr;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .auth-form form {
    margin: 0;
  }
  .auth-form .brand {
    padding-bottom: 20px;
  }
  .page-head .actions .small-hide {
    display: none;
  }
  th,
  td {
    padding: 12px 16px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .feed-item {
    padding: 17px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .asset-overview {
    flex-wrap: wrap;
    gap: 12px;
  }
  .asset-heading {
    gap: 10px;
  }
  .price-big {
    font-size: 28px;
  }
  .admin-tabs a {
    padding: 12px;
  }
  .task-row {
    padding: 18px;
  }
  .chart-shell {
    padding: 10px;
    min-height: 280px;
  }
  .chart-shell canvas {
    height: 270px;
  }
  #toast {
    left: 50%;
  }
  .topbar-right button {
    font-size: 11px;
  }
  .chart-caption {
    padding: 10px 17px;
  }
  .page-head > button {
    white-space: nowrap;
  }
  .section-title {
    margin-top: 23px;
  }
  .panel {
    margin-bottom: 20px;
  }
  .detail-grid {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.grid-main > div,
.grid-main > aside,
.detail-grid > *,
.config-grid > * {
  min-width: 0;
}

.access-preview { padding: 8px 0; }
.access-preview .notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.auth-context { margin: 0 0 24px; }
.content-title { white-space: normal; min-width: 200px; max-width: 600px; overflow-wrap: anywhere; }
.download-link { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 6px; color: white; background: var(--accent, #287d69); font-size: 13px; }

.original-text { margin: 14px 0; color: var(--muted); font-size: 12px; }
.original-text summary { cursor: pointer; color: var(--teal); }
.original-text p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 20px 0; }
.admin-filters .field { flex: 1 1 180px; margin: 0; }
.admin-filters button { margin-bottom: 0; }
.translation-cell { min-width: 220px; width: 35%; vertical-align: top; }
