.dashboard-board {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.07);
}

.dashboard-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-board-head .note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: #f5f9fc;
  color: #4f6478;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-board-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-board-subtitle {
  margin-top: 8px;
  color: #62778b;
  font-size: 14px;
}

.dashboard-divider {
  margin: 18px 0 16px;
  border-top: 1px dashed #d6e2ec;
  opacity: 1;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(180px, 0.85fr)) auto;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-toolbar .field {
  gap: 0;
}

.dashboard-toolbar input,
.dashboard-toolbar select {
  min-height: 40px;
  border: 1px solid #cfdae5;
  border-radius: 10px;
  background: #fcfdff;
  font-size: 14px;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-toolbar input:focus,
.dashboard-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.dashboard-reset-btn {
  min-height: 40px;
  align-self: stretch;
  justify-self: end;
  padding: 0 16px;
}

.dashboard-surface {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.dashboard-list-panel,
.dashboard-detail-panel {
  min-width: 0;
  border: 1px solid #d8e3ed;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 18px;
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.04);
}

.dashboard-list-panel {
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  border-color: #d9e5ee;
}

.dashboard-detail-panel {
  background:
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.08) 0%, rgba(31, 111, 235, 0) 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #bfd3e5;
  box-shadow:
    0 24px 46px rgba(16, 32, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.dashboard-detail-panel::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f6feb 0%, #46a6ff 100%);
  opacity: 0.95;
}

.dashboard-detail-panel > * {
  position: relative;
  z-index: 1;
}

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

.dashboard-panel-head-detail {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 0 0 14px 12px;
  border-bottom: 1px solid #dbe6f0;
}

.dashboard-panel-eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.dashboard-panel-meta {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #16324c;
}

.dashboard-panel-head-detail .dashboard-panel-meta {
  font-size: 22px;
}

.dashboard-panel-note {
  max-width: 260px;
  color: #607487;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.dashboard-sort {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.dashboard-sort label {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-sort select {
  min-width: 180px;
  min-height: 36px;
  border: 1px solid #cfdae5;
  border-radius: 10px;
  background: #fcfdff;
  padding: 0 12px;
  box-shadow: none;
}

.account-list {
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.account-list-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  padding: 14px 14px;
  background: #fbfcfe;
  line-height: 1.6;
}

.account-list-group {
  display: grid;
  gap: 6px;
}

.account-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e1eaf2;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fafd 0%, #f1f6fa 100%);
  color: #5d7388;
  font-size: 12px;
  font-weight: 700;
}

.account-list-group-head-single {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #edf2f6;
}

.account-list-group-head-single:hover {
  background: #f8fbfe;
}

.account-list-group-head-single.active {
  border-color: rgba(31, 111, 235, 0.18);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  box-shadow: inset 3px 0 0 #1f6feb;
}

.account-list-group-head-single .account-list-group-value {
  font-size: 13px;
}

.account-list-group-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-list-group-toggle {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  position: relative;
}

.account-list-group-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.account-list-group-toggle.collapsed::before {
  transform: translate(-58%, -50%) rotate(-45deg);
}

.account-list-group-toggle:hover {
  background: rgba(96, 112, 129, 0.1);
}

.account-list-group-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.account-row {
  width: 100%;
  border: 0;
  min-height: 40px;
  border-radius: 12px;
  background: transparent;
  padding: 6px 12px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.account-row:hover {
  background: #f7fbfe;
}

.account-row.running {
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d8 100%);
}

.account-row.active {
  background: linear-gradient(180deg, #f7fbff 0%, #e9f3fe 100%);
  color: var(--text);
  box-shadow:
    inset 5px 0 0 #1f6feb,
    0 14px 28px rgba(31, 111, 235, 0.12);
  transform: translateX(2px);
}

.account-row.active .account-row-exchange {
  color: #53687d;
}

.account-row.active .account-row-value {
  color: #123452;
}

.account-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.account-row-title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-row-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
}

.account-row-exchange {
  min-width: 0;
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-row-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.account-row-status.ok {
  border-color: rgba(16, 117, 78, 0.2);
  background: rgba(219, 243, 232, 0.92);
  color: #0f6746;
}

.account-row-status.pending {
  border-color: rgba(147, 114, 26, 0.18);
  background: rgba(255, 243, 212, 0.92);
  color: #8a5d00;
}

.account-row-status.running {
  border-color: rgba(201, 138, 26, 0.24);
  background: rgba(255, 238, 194, 0.9);
  color: #8a5d00;
}

.account-row-status.error {
  border-color: rgba(152, 46, 46, 0.18);
  background: rgba(253, 231, 231, 0.92);
  color: #972f2f;
}

.account-row.active .account-row-status {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.account-row.active .account-row-status.ok {
  border-color: rgba(16, 117, 78, 0.2);
  background: rgba(219, 243, 232, 0.92);
  color: #0f6746;
}

.account-row.active .account-row-status.pending {
  border-color: rgba(147, 114, 26, 0.18);
  background: rgba(255, 243, 212, 0.92);
  color: #8a5d00;
}

.account-row.active .account-row-status.error {
  border-color: rgba(152, 46, 46, 0.18);
  background: rgba(253, 231, 231, 0.92);
  color: #972f2f;
}

.account-row-value {
  color: var(--text);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  text-align: right;
}

.account-row.active .account-row-title {
  color: #0f2742;
}

.detail-card {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-card-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: #fbfcfe;
  text-align: center;
  padding: 20px;
}

.detail-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 143, 90, 0.45);
  color: var(--accent);
  background: linear-gradient(180deg, #edf9f3 0%, #e3f5eb 100%);
  font-size: 13px;
  font-weight: 700;
}

.detail-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-card-title-wrap {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.detail-card-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-card-subtitle {
  color: #617487;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.detail-card-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #e3ebf2;
  border-radius: 14px;
  background: #f7fafd;
}

.detail-card-title-inline {
  font-size: 22px;
  line-height: 1.1;
}

.detail-card-name-edit input {
  width: min(260px, 100%);
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d8e2eb;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.detail-side-stack {
  display: grid;
  gap: 12px;
}

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

.detail-status-card {
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  padding: 12px 14px;
  min-width: 0;
}

.detail-status-label {
  color: #6b7d90;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-status-value {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-status-value.ok {
  color: #0b6a43;
}

.detail-status-value.pending {
  color: #8a5d00;
}

.detail-status-value.error {
  color: var(--danger);
}

.detail-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-card-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d4dfeb;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.05);
  font-weight: 700;
}

.detail-card-actions .btn.primary {
  background: linear-gradient(180deg, #123452 0%, #0f2742 100%);
  border-color: #163a59;
  color: #fff;
}

.detail-card-actions .btn.danger {
  background: #fff7f6;
  border-color: #edc3bf;
}

.detail-card-actions .btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.detail-status-line {
  margin-top: -6px;
  padding: 10px 14px;
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: #f8fbfe;
}

.detail-status-line.running {
  border-color: #ffe0a6;
  background: var(--amber-soft);
}

.detail-status-line.success {
  border-color: #bde5cf;
  background: var(--accent-soft);
}

.detail-status-line.error {
  border-color: #e3b4b1;
  background: var(--danger-soft);
}

.detail-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.detail-value-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9fe 56%, #eef5fc 100%);
  padding: 18px;
  min-width: 0;
  display: grid;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(31, 111, 235, 0.08);
}

.detail-value-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f6feb 0%, #46a6ff 62%, rgba(70, 166, 255, 0) 100%);
}

.detail-value-panel::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -30px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 166, 255, 0.2) 0%, rgba(70, 166, 255, 0.08) 42%, rgba(70, 166, 255, 0) 72%);
  pointer-events: none;
}

.detail-value-label {
  position: relative;
  z-index: 1;
  color: #58708a;
  font-size: 13px;
  font-weight: 600;
}

.detail-value-number {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.detail-value-number .unit {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.detail-value-caption {
  position: relative;
  z-index: 1;
  color: #5f7488;
  font-size: 13px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric {
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: #fcfdff;
  padding: 12px 14px;
  min-width: 0;
}

.detail-metric-label {
  color: #6b7d90;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-metric-value {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  overflow-wrap: anywhere;
}

.detail-metric-value.ok {
  color: #0b6a43;
}

.detail-metric-value.pending {
  color: #8a5d00;
}

.detail-metric-value.error {
  color: var(--danger);
}

.detail-asset-box {
  border: 1px solid #d7e2ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  padding: 16px;
}

.detail-asset-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-asset-box-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.detail-asset-box-head span {
  color: var(--muted);
  font-size: 12px;
}

.detail-asset-list {
  display: grid;
  gap: 8px;
}

.detail-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #ffffff;
}

.detail-asset-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-asset-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}

.detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 16px;
}

