:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --sidebar: #202a36;
  --sidebar-soft: #2c3847;
  --text: #17202a;
  --muted: #667386;
  --line: #e3e8ef;
  --blue: #2563eb;
  --teal: #14b8a6;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: #07111f;
  color: #f8fafc;
}

.market-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(20, 184, 166, 0.16), transparent 36%),
    linear-gradient(245deg, rgba(37, 99, 235, 0.18), transparent 42%),
    #07111f;
}

.market-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: market-pan 18s linear infinite;
}

.market-line {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #14b8a6, #eab308, #22c55e, transparent);
  opacity: 0.72;
  transform: skewY(-8deg);
  animation: market-pulse 5.8s ease-in-out infinite;
}

.market-line.line-one {
  top: 34%;
}

.market-line.line-two {
  top: 62%;
  opacity: 0.42;
  animation-delay: -2.4s;
}

.market-bars {
  position: absolute;
  right: 12%;
  bottom: 12%;
  display: grid;
  grid-template-columns: repeat(8, 22px);
  align-items: end;
  height: 180px;
  gap: 10px;
  opacity: 0.52;
}

.market-bars span {
  display: block;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #14b8a6, #2563eb);
  animation: bar-flow 3.6s ease-in-out infinite;
}

.market-bars span:nth-child(2n) {
  animation-delay: -1.2s;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 48px));
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 8px;
  padding: 34px;
  background: rgba(7, 17, 31, 0.78);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand span:not(.brand-mark) {
  color: #94a3b8;
  font-size: 12px;
}

.login-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.login-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.login-mode-label {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  outline: 0;
}

.login-form input:focus {
  border-color: rgba(20, 184, 166, 0.82);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.form-error {
  min-height: 18px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.5;
}

.login-points {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.login-points span {
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.48);
  color: #e2e8f0;
  font-size: 13px;
}

.login-button {
  width: 100%;
  min-height: 44px;
}

.login-footer {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.login-language {
  justify-content: space-between;
}

.login-shell .login-language select {
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.22);
}

@keyframes market-pan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(72px, 72px, 0); }
}

@keyframes market-pulse {
  0%, 100% { transform: translateX(-6%) skewY(-8deg); }
  50% { transform: translateX(6%) skewY(-8deg); }
}

@keyframes bar-flow {
  0%, 100% { transform: scaleY(0.74); opacity: 0.42; }
  50% { transform: scaleY(1.05); opacity: 0.86; }
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(950px, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: var(--sidebar);
  color: #edf3f8;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--teal);
  color: #06201d;
  font-size: 18px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span:not(.brand-mark) {
  margin-top: 3px;
  color: #aab6c4;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: #d2dbe5;
  text-align: left;
}

.nav-item span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.nav-item.active,
.nav-item:hover {
  background: var(--sidebar-soft);
  color: #ffffff;
}

.nav-item.active span {
  background: var(--teal);
  color: #06201d;
}

.main {
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.topbar p,
.panel p,
.monitor-card p,
.reason-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.status-strip,
.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.button-row.left {
  justify-content: flex-start;
}

.topbar-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 9px;
  background: #eef2f7;
  color: #526173;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chip.ok {
  background: #dcfce7;
  color: #166534;
}

.chip.danger {
  background: #fee2e2;
  color: #991b1b;
}

.chip.warning {
  background: #fef3c7;
  color: #92400e;
}

.chip.muted {
  background: #eef2f7;
  color: #526173;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-select select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.page-shell {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.page-grid {
  display: grid;
  gap: 14px;
}

.page-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid.strategy-page {
  grid-template-columns: 360px minmax(0, 1fr);
}

.help-layout {
  display: grid;
  gap: 14px;
}

.help-hero .callout {
  margin-top: 12px;
}

.help-section {
  display: grid;
  gap: 12px;
}

.help-section h3 {
  margin: 0;
  font-size: 16px;
}

.help-list {
  margin: 0;
  padding-left: 20px;
  color: #314055;
  font-size: 13px;
  line-height: 1.8;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-grid div {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.help-grid strong,
.help-grid span {
  display: block;
}

.help-grid strong {
  margin-bottom: 6px;
  font-size: 13px;
}

.help-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.callout {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.flow-row,
.validation-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.validation-steps {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.summary-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card {
  min-height: 96px;
  padding: 14px;
}

.summary-card span,
.metric-grid span,
.score-grid span,
.platform-meta span,
.template-detail span,
.reason-box span,
.monitor-card span,
.form-grid label > span,
.api-form label > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.summary-card em {
  display: block;
  margin-top: 4px;
  color: #667386;
  font-size: 12px;
  font-style: normal;
}

.dashboard-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-head,
.dashboard-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 1.1fr 0.8fr 0.8fr 0.8fr 1fr 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
}

.dashboard-head {
  background: #f3f6f9;
  color: #526173;
  font-weight: 900;
}

.dashboard-row {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.dashboard-row strong,
.dashboard-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.user-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 360px;
  gap: 14px;
  align-items: start;
}

.account-toolbar,
.account-audit-panel {
  grid-column: 1 / -1;
}

.account-main-column,
.account-side-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.account-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
}

.account-filter-row label {
  display: grid;
  gap: 6px;
}

.account-filter-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-filter-row input,
.account-filter-row select,
.api-form select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

.user-head,
.user-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.9fr) 80px 110px 145px minmax(240px, 1.5fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
}

.user-head {
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.user-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.user-row.active {
  background: #f0fdfa;
}

.user-row strong,
.user-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-row strong {
  color: var(--text);
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

.danger-text {
  color: var(--red);
}

.account-modal .reset-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.audit-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.audit-head,
.audit-row {
  display: grid;
  grid-template-columns: 165px 110px 100px 160px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
}

.audit-head {
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.audit-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.audit-row strong,
.audit-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(480px, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.left-column,
.center-column,
.right-column {
  display: grid;
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h2,
.stability-box h3 {
  margin: 0;
  font-size: 16px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.platform-card div {
  flex: 1;
  min-width: 140px;
}

.platform-card strong,
.platform-card span:not(.chip) {
  display: block;
}

.platform-card span:not(.chip) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.platform-meta,
.template-detail,
.metric-grid,
.score-grid {
  display: grid;
  gap: 10px;
}

.platform-meta {
  grid-template-columns: 1fr;
  margin: 12px 0;
}

.platform-meta div,
.template-detail div,
.metric-grid div,
.score-grid div,
.reason-box,
.monitor-card {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 11px;
}

.platform-meta strong,
.template-detail strong,
.metric-grid strong,
.score-grid strong,
.monitor-card strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.api-form,
.form-grid {
  display: grid;
  gap: 12px;
}

.api-form {
  grid-template-columns: 1fr;
}

.form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.api-form label,
.form-grid label {
  display: grid;
  gap: 6px;
}

.api-form input,
.form-grid input,
.form-grid select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

.form-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #304156;
  font-size: 13px;
  font-weight: 900;
}

.switch-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.api-switch,
.form-grid .wide {
  grid-column: 1 / -1;
}

.api-actions,
.action-row {
  margin-top: 2px;
}

.api-user-scope {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.manual-live-panel {
  margin-top: 16px;
}

.live-confirmation-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.56);
}

.live-confirmation-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.live-confirmation-panel h2,
.live-confirmation-panel p {
  margin-top: 0;
}

.live-order-summary {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.live-order-summary div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f8fafc;
}

.live-order-summary dt {
  color: var(--muted);
}

.live-order-summary dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.live-risk-warning {
  padding: 11px;
  border-left: 4px solid #dc2626;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 800;
}

.settings-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-line > span {
  color: var(--text);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #1f2a37;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.danger-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #ffffff;
}

.strategy-list {
  display: grid;
  gap: 10px;
}

.strategy-card {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  text-align: left;
}

.strategy-card.selected {
  border-color: rgba(20, 184, 166, 0.75);
  background: #ecfeff;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.card-actions .primary-button,
.card-actions .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.card-title {
  color: var(--text);
  font-weight: 900;
}

.card-desc {
  color: #536173;
  font-size: 12px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row em {
  border-radius: 7px;
  background: #eef2f7;
  color: #526173;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
}

.template-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.strategy-detail-panel .panel-heading {
  align-items: center;
}

.strategy-detail-sections {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.strategy-detail-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.strategy-detail-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.strategy-detail-section p {
  max-width: 980px;
  margin: 0 0 8px;
  color: #344256;
  font-size: 13px;
  line-height: 1.75;
}

.score-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.score-grid strong {
  font-size: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.metric-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reason-box,
.stability-box {
  margin-top: 12px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pipeline-step {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 11px;
}

.pipeline-step span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef2f7;
  color: #536173;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-step strong {
  font-size: 13px;
}

.pipeline-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.pipeline-step.done {
  border-color: rgba(22, 163, 74, 0.45);
  background: #f0fdf4;
}

.pipeline-step.done span {
  background: var(--green);
  color: #ffffff;
}

.pipeline-step.blocked {
  border-color: rgba(220, 38, 38, 0.45);
  background: #fef2f2;
}

.pipeline-step.blocked span {
  background: var(--red);
  color: #ffffff;
}

.log-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.log-head,
.log-row {
  display: grid;
  grid-template-columns: 70px 70px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  font-size: 12px;
}

.log-head {
  background: #f3f6f9;
  color: #526173;
  font-weight: 900;
}

.log-row {
  border-top: 1px solid var(--line);
}

.log-row p {
  margin: 0;
  color: #526173;
  line-height: 1.45;
}

.log-rows {
  max-height: 360px;
  overflow: auto;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 380px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
  pointer-events: none;
  padding: 12px 14px;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fatal-error {
  margin: 28px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  padding: 16px;
  font-size: 14px;
}

@media (max-width: 1360px) {
  .workspace {
    grid-template-columns: 310px minmax(520px, 1fr);
  }

  .right-column {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-grid.two,
  .page-grid.strategy-page {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-head,
  .dashboard-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-filter-row {
    grid-template-columns: 1fr;
  }

  .user-table,
  .audit-table {
    overflow-x: auto;
  }

  .user-head,
  .user-row {
    min-width: 980px;
  }

  .audit-head,
  .audit-row {
    min-width: 780px;
  }
}
