/* Capital Manager — hub + assets (mobile-first, scoped to #hydraToolsShell) */

#hydraToolsShell .cm-hub {
  padding: 8px 10px 16px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__head {
  margin-bottom: 12px;
}

#hydraToolsShell .cm-hub__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

#hydraToolsShell .cm-hub__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

#hydraToolsShell .cm-hub__grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

#hydraToolsShell .cm-hub__card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#hydraToolsShell .cm-hub__card:active {
  background: #f8fafc;
}

#hydraToolsShell .cm-hub__card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
}

#hydraToolsShell .cm-hub__card-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

#hydraToolsShell .cm-hub__card-icon--debt {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

#hydraToolsShell .cm-hub__card-icon--assets {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

#hydraToolsShell .cm-hub__card-body {
  flex: 1 1 auto;
  min-width: 0;
}

#hydraToolsShell .cm-hub__card-head {
  flex: 1 1 auto;
  min-width: 0;
}

#hydraToolsShell .cm-hub__card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

#hydraToolsShell .cm-hub__card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#hydraToolsShell .cm-hub__badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

#hydraToolsShell .cm-hub__badge--bad {
  background: #fef2f2;
  color: #dc2626;
}

#hydraToolsShell .cm-hub__badge--warn {
  background: #fff7ed;
  color: #ea580c;
}

#hydraToolsShell .cm-hub__badge--ok {
  background: #ecfdf5;
  color: #047857;
}

#hydraToolsShell .cm-hub__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-left: 54px;
}

#hydraToolsShell .cm-hub__metric {
  min-width: 0;
}

#hydraToolsShell .cm-hub__metric-label {
  display: block;
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__metric-val {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__metric-val--good {
  color: #059669;
}

#hydraToolsShell .cm-hub__metric-val--bad {
  color: #dc2626;
}

#hydraToolsShell .cm-hub__metric-val--warn {
  color: #ea580c;
}

#hydraToolsShell .cm-hub__card-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__card-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #ea580c;
  font-size: 14px;
  font-weight: 700;
}

#hydraToolsShell .cm-hub__error {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  font-size: 12px;
}

#hydraToolsShell .cm-hub__loading {
  margin: 0 0 8px;
  font-size: 11px;
  color: #94a3b8;
}

#hydraToolsShell .cm-hub__overview {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#hydraToolsShell .cm-hub__overview-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

#hydraToolsShell .cm-hub__overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#hydraToolsShell .cm-hub__overview-item {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
}

#hydraToolsShell .cm-hub__overview-label {
  display: block;
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__overview-val {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__overview-val--good {
  color: #059669;
}

#hydraToolsShell .cm-hub__overview-val--bad {
  color: #dc2626;
}

#hydraToolsShell .cm-hub__overview-val--warn {
  color: #ea580c;
}

@media (max-width: 389px) {
  #hydraToolsShell .cm-hub__metrics {
    padding-left: 0;
  }

  #hydraToolsShell .cm-hub__metric-val {
    font-size: 12px;
  }

  #hydraToolsShell .cm-hub__overview-val {
    font-size: 13px;
  }
}

/* Capital allocation dashboard */

#hydraToolsShell .cm-hub__alloc {
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-head {
  margin-bottom: 8px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

#hydraToolsShell .cm-hub__alloc-sub {
  margin: 2px 0 0;
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
}

#hydraToolsShell .cm-hub__alloc-empty {
  padding: 12px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.1);
}

#hydraToolsShell .cm-hub__alloc-empty p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

#hydraToolsShell .cm-hub__alloc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 520px) {
  #hydraToolsShell .cm-hub__alloc-body {
    flex-direction: row;
    align-items: center;
  }
}

#hydraToolsShell .cm-hub__alloc-chart-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 180px;
  height: 140px;
  margin: 0 auto;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-chart-wrap.is-collapsed {
  display: none;
  height: 0;
  margin: 0;
  overflow: hidden;
}

#hydraToolsShell .cm-hub__alloc-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (min-width: 520px) {
  #hydraToolsShell .cm-hub__alloc-chart-wrap {
    margin: 0;
    width: 160px;
  }
}

#hydraToolsShell .cm-hub__alloc-legend {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-size: 10px;
}

#hydraToolsShell .cm-hub__alloc-swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

#hydraToolsShell .cm-hub__alloc-legend-label {
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-legend-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}

#hydraToolsShell .cm-hub__alloc-legend-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  white-space: nowrap;
  text-align: right;
}

#hydraToolsShell .cm-hub__alloc-warn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.25);
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-warn-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 2px;
}

#hydraToolsShell .cm-hub__alloc-warn-text {
  display: block;
  font-size: 10px;
  color: #9a3412;
  line-height: 1.35;
}

#hydraToolsShell .cm-hub__alloc-rank-wrap {
  margin-top: 10px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-rank-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

#hydraToolsShell .cm-hub__alloc-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#hydraToolsShell .cm-hub__alloc-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
}

#hydraToolsShell .cm-hub__alloc-rank-pos {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hydraToolsShell .cm-hub__alloc-rank-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#hydraToolsShell .cm-hub__alloc-rank-name {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .cm-hub__alloc-rank-meta {
  font-size: 9px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

#hydraToolsShell .cm-hub__alloc-rank-val {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}

#hydraToolsShell .cm-hub__alloc-rank-empty {
  margin: 0;
  font-size: 10px;
  color: #94a3b8;
}

#hydraToolsShell .cm-hub__alloc-hint {
  margin: 6px 0 0;
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Capital growth chart */

#hydraToolsShell .cm-hub__chart {
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

#hydraToolsShell .cm-hub__chart-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__chart-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

#hydraToolsShell .cm-hub__chart-sub {
  margin: 2px 0 0;
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
}

#hydraToolsShell .cm-hub__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}

#hydraToolsShell .cm-hub__chips::-webkit-scrollbar {
  display: none;
}

#hydraToolsShell .cm-hub__chip {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

#hydraToolsShell .cm-hub__chip.is-active {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

#hydraToolsShell .cm-hub__chart-wrap {
  position: relative;
  height: 200px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

#hydraToolsShell .cm-hub__legend {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  padding-left: 10px;
  position: relative;
}

#hydraToolsShell .cm-hub__legend::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
}

#hydraToolsShell .cm-hub__legend--assets::before {
  background: #059669;
}

#hydraToolsShell .cm-hub__legend--debt::before {
  background: #ea580c;
}

#hydraToolsShell .cm-hub__legend--gap::before {
  background: #2563eb;
}

#hydraToolsShell .cm-hub__chart-empty {
  padding: 12px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  min-width: 0;
}

#hydraToolsShell .cm-hub__chart-empty p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

#hydraToolsShell .cm-hub__chart-hint {
  margin: 6px 0 0;
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.3;
}

#hydraToolsShell .cm-hub__chart-today {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
}

#hydraToolsShell .cm-hub__chart-today-gap--good {
  color: #059669;
}

#hydraToolsShell .cm-hub__chart-today-gap--bad {
  color: #dc2626;
}

/* Capital Assets */

#hydraToolsShell .ca-root {
  padding: 8px 10px 16px;
  min-width: 0;
}

#hydraToolsShell .ca-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

#hydraToolsShell .ca-head__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  min-width: 0;
}

#hydraToolsShell .ca-head__add {
  flex: 0 0 auto;
}

#hydraToolsShell .ca-error {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  font-size: 12px;
}

#hydraToolsShell .ca-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

@media (min-width: 901px) {
  #hydraToolsShell .ca-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#hydraToolsShell .ca-kpi {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
  min-width: 0;
}

#hydraToolsShell .ca-kpi__label {
  display: block;
  font-size: 9px;
  color: #64748b;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .ca-kpi__val {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#hydraToolsShell .ca-kpi__val--good {
  color: #059669;
}

#hydraToolsShell .ca-kpi__val--bad {
  color: #dc2626;
}

#hydraToolsShell .ca-kpi__val--warn {
  color: #ea580c;
}

#hydraToolsShell .ca-section__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

#hydraToolsShell .ca-list {
  display: grid;
  gap: 8px;
}

#hydraToolsShell .ca-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 7px 8px;
  min-width: 0;
}

#hydraToolsShell .ca-card--menu-open {
  z-index: 2;
}

#hydraToolsShell .ca-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

#hydraToolsShell .ca-card__row--head {
  margin-bottom: 3px;
}

#hydraToolsShell .ca-card__row--foot {
  align-items: flex-end;
}

#hydraToolsShell .ca-card__type-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

#hydraToolsShell .ca-card__type-icon--cash,
#hydraToolsShell .ca-card__type-icon--savings {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

#hydraToolsShell .ca-card__type-icon--bank {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

#hydraToolsShell .ca-card__type-icon--inventory,
#hydraToolsShell .ca-card__type-icon--collection {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

#hydraToolsShell .ca-card__type-icon--stock,
#hydraToolsShell .ca-card__type-icon--investment {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.1);
}

#hydraToolsShell .ca-card__type-icon--crypto {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

#hydraToolsShell .ca-card__type-icon--real_estate,
#hydraToolsShell .ca-card__type-icon--vehicle {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

#hydraToolsShell .ca-card__head-main {
  flex: 1 1 auto;
  min-width: 0;
}

#hydraToolsShell .ca-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

#hydraToolsShell .ca-card__name {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#hydraToolsShell .ca-card__amount-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
}

#hydraToolsShell .ca-card__amount {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

#hydraToolsShell .ca-card__pct {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

#hydraToolsShell .ca-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  color: #64748b;
}

#hydraToolsShell .ca-card__type-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#hydraToolsShell .ca-card__meta-sep {
  flex: 0 0 auto;
  color: #cbd5e1;
}

#hydraToolsShell .ca-card__liq {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

#hydraToolsShell .ca-card__liq--high {
  color: #059669;
}

#hydraToolsShell .ca-card__liq--medium {
  color: #d97706;
}

#hydraToolsShell .ca-card__liq--low {
  color: #dc2626;
}

#hydraToolsShell .ca-card__updated {
  flex: 0 0 auto;
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
}

#hydraToolsShell .ca-card__note {
  margin: 3px 0 0 34px;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .ca-card__menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

#hydraToolsShell .ca-card__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#hydraToolsShell .ca-card__menu-btn:hover,
#hydraToolsShell .ca-card__menu-btn[aria-expanded="true"] {
  background: #f1f5f9;
  color: #0f172a;
}

#hydraToolsShell .ca-card__menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 5;
  min-width: 148px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

#hydraToolsShell .ca-card__menu[hidden] {
  display: none;
}

#hydraToolsShell .ca-card__menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #0f172a;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

#hydraToolsShell .ca-card__menu-item:hover {
  background: #f8fafc;
}

#hydraToolsShell .ca-card__menu-item--danger {
  color: #dc2626;
}

#hydraToolsShell .ca-empty {
  margin: 0;
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

#hydraToolsShell .ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #f1f5f9;
  color: #0f172a;
}

#hydraToolsShell .ca-btn--sm {
  min-height: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
}

#hydraToolsShell .ca-btn--primary {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}

#hydraToolsShell .ca-btn--ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

#hydraToolsShell .ca-btn--danger {
  background: #fff;
  border-color: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

#hydraToolsShell .ca-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

#hydraToolsShell .ca-form-wrap {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 901px) {
  #hydraToolsShell .ca-form-wrap {
    align-items: center;
    padding: 16px;
  }
}

#hydraToolsShell .ca-form {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 12px 12px 16px;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
}

@media (min-width: 901px) {
  #hydraToolsShell .ca-form {
    border-radius: 14px;
  }
}

#hydraToolsShell .ca-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#hydraToolsShell .ca-form__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

#hydraToolsShell .ca-form__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#hydraToolsShell .ca-field {
  display: block;
  margin-bottom: 10px;
  min-width: 0;
}

#hydraToolsShell .ca-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

#hydraToolsShell .ca-field__input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

#hydraToolsShell .ca-field__textarea {
  resize: vertical;
  min-height: 56px;
}

#hydraToolsShell .ca-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__icon {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__body {
  gap: 2px;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--assets {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__split-item {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__split-item--debt {
  color: #ea580c;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__split-item--pay {
  color: #dc2626;
  text-align: right;
  flex: 0 1 auto;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--gap {
  font-size: 13px;
  font-weight: 700;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--gap-good {
  color: #059669;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--gap-bad {
  color: #dc2626;
}

#hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__sub--capital {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.2;
}

@media (max-width: 389px) {
  #hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__split {
    font-size: 10px;
    gap: 4px;
  }

  #hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--assets {
    font-size: 13px;
  }

  #hydraToolsShell .tools-dash-tile--capital .tools-dash-tile__stat--gap {
    font-size: 12px;
  }
}
