.asset-container {
  gap: 14px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-nav a {
  color: #b5c6e8;
  text-decoration: none;
  border: 1px solid #324465;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.top-nav a.active {
  color: #ecf6ff;
  border-color: #5d769f;
  background: rgba(93, 118, 159, 0.24);
}

.top-nav-form {
  margin: 0;
}

.top-nav-button {
  color: #b5c6e8;
  background: transparent;
  border: 1px solid #324465;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  cursor: pointer;
}

.top-nav-button:hover {
  color: #ecf6ff;
  border-color: #5d769f;
}

.asset-user-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.asset-user-hint span {
  color: #b7c6df;
}

.asset-auth-container {
  max-width: 720px;
}

.asset-auth-card {
  padding: 22px;
}

.asset-auth-form {
  margin-top: 12px;
}

.asset-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-auth-error {
  margin: 10px 0 0;
  color: #ffb0a8;
}

textarea {
  width: 100%;
  background: #0c1424;
  color: var(--text);
  border: 1px solid #334263;
  border-radius: 8px;
  padding: 10px;
}

.asset-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.asset-checkbox-row input {
  margin: 0;
}

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

.summary-box {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 12px;
}

.summary-box h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.summary-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.28rem;
  color: var(--accent);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.22;
}

.summary-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.asset-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.asset-subtabs {
  margin-top: 0;
}

.asset-tab {
  border: 1px solid #344765;
  background: transparent;
  color: #bdd2ef;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.asset-tab-active {
  border-color: #6b86b1;
  background: rgba(107, 134, 177, 0.18);
  color: #f2f7ff;
}

.asset-tab-panel {
  display: none;
}

.asset-tab-panel-active {
  display: block;
}

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

.asset-edit-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asset-edit-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #2d3f5e;
  border-radius: 12px;
  background: rgba(14, 24, 40, 0.74);
}

.asset-edit-section-full {
  grid-column: 1 / -1;
}

.asset-edit-fields {
  display: grid;
  gap: 8px;
}

.asset-edit-fields label {
  color: var(--muted);
  font-size: 0.82rem;
}

.asset-edit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.asset-edit-summary-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #314562;
  border-radius: 10px;
  background: rgba(11, 18, 33, 0.86);
}

.asset-edit-summary-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.asset-edit-summary-item strong {
  color: #eef5ff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.asset-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef5ff;
  font-size: 0.88rem;
}

.asset-checkbox-row input {
  margin: 0;
}

.asset-edit-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.asset-form button {
  margin-top: 6px;
}

.asset-conversion-preview {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #314562;
  border-radius: 10px;
  background: rgba(11, 18, 33, 0.86);
}

.asset-conversion-preview span {
  color: var(--muted);
  font-size: 0.82rem;
}

.asset-conversion-preview strong {
  color: #eef5ff;
  font-size: 1rem;
}

.asset-form button:disabled,
.asset-toggle-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.asset-section-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  min-width: 0;
}

.asset-section-row-actions > * {
  min-width: 0;
}

.asset-section-toggle-btn {
  min-width: 0;
  padding-inline: 10px;
  gap: 6px;
}

.asset-section-toggle-btn span {
  pointer-events: none;
}

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

.asset-section-panel[hidden] {
  display: none !important;
}

.asset-section-collapsed {
  padding-bottom: 14px;
}

.asset-chain-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #2d3f5e;
  border-radius: 10px;
  background: rgba(14, 24, 40, 0.7);
}

.asset-chain-box h3 {
  margin: 0;
  font-size: 0.94rem;
}

.asset-chain-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.asset-chain-toolbar strong {
  color: #dce7f7;
  font-size: 0.86rem;
}

.asset-chain-selector {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.asset-chain-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #314562;
  border-radius: 10px;
  background: #0c1424;
}

.asset-chain-option input {
  margin-top: 3px;
}

.asset-chain-option strong {
  display: block;
  color: #eef5ff;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-chain-option span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-chain-option .asset-trade-pill {
  display: inline-flex;
  margin-top: 6px;
}

.asset-chain-option .asset-trade-pill,
.asset-chain-option .asset-trade-pill span {
  color: inherit;
}

.asset-chain-empty {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 4px 0;
}

body.asset-modal-body-open {
  overflow: hidden;
}

.asset-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.asset-modal.asset-modal-open {
  display: block;
}

.asset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.74);
  backdrop-filter: blur(3px);
}

.asset-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.asset-modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 24px 80px rgba(2, 6, 12, 0.46);
}

.asset-chain-advanced {
  border-top: 1px dashed #2d3f5e;
  padding-top: 8px;
}

.asset-chain-advanced summary {
  cursor: pointer;
  color: #bdd2ef;
}

.asset-table {
  min-width: 900px;
}

.asset-mobile-cards {
  display: none;
}

.asset-mobile-cards .mobile-card {
  gap: 0;
}

.asset-mobile-cards .mobile-card h3 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-mobile-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.asset-mobile-actions .asset-toggle-btn {
  width: 100%;
}

.asset-mobile-actions .asset-action-stack {
  min-width: 0;
}

.asset-mobile-meta {
  margin-top: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-mobile-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-trade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.asset-trade-buy {
  color: #f5fff9;
  background: linear-gradient(180deg, rgba(30, 176, 104, 0.98), rgba(17, 120, 70, 0.98));
  border-color: rgba(148, 255, 198, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(13, 92, 53, 0.28),
    0 8px 18px rgba(11, 58, 35, 0.18);
}

.asset-trade-sell {
  color: #fff6f3;
  background: linear-gradient(180deg, rgba(230, 76, 60, 0.98), rgba(178, 37, 22, 0.98));
  border-color: rgba(255, 180, 167, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(103, 21, 12, 0.28),
    0 8px 18px rgba(91, 24, 16, 0.18);
}

.asset-trade-neutral {
  color: #d5e1f3;
  background: rgba(74, 98, 132, 0.22);
  border-color: rgba(101, 126, 162, 0.4);
}

.asset-trade-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.asset-trade-row-selected td {
  outline: 1px solid rgba(159, 208, 255, 0.18);
}

.asset-trade-row-chain-related td {
  opacity: 1;
}

.asset-trade-row-chain-muted {
  transform: translateX(26px);
}

.asset-trade-row-chain-muted td {
  opacity: 0.38;
}

.asset-trade-row-chain-source td {
  outline: 1px solid rgba(124, 173, 235, 0.34);
}

.asset-trade-card-selected {
  box-shadow:
    inset 0 0 0 1px rgba(159, 208, 255, 0.18),
    0 16px 28px rgba(4, 10, 18, 0.34);
}

.asset-detail-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #314562;
  border-radius: 12px;
  background: rgba(12, 20, 36, 0.84);
}

.asset-detail-summary strong {
  font-size: 1rem;
  color: #eef5ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.asset-detail-fact {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #314562;
  border-radius: 10px;
  background: rgba(11, 18, 33, 0.86);
}

.asset-detail-fact span {
  color: var(--muted);
  font-size: 0.76rem;
}

.asset-detail-fact strong {
  color: #eef5ff;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.asset-detail-list-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.asset-detail-list-block h4 {
  margin: 0;
  font-size: 0.92rem;
}

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

.asset-trade-status-completed {
  color: #8be3a0;
  border-color: rgba(139, 227, 160, 0.32);
  background: rgba(139, 227, 160, 0.12);
}

.asset-trade-status-pending {
  color: #ffd48d;
  border-color: rgba(255, 212, 141, 0.32);
  background: rgba(255, 212, 141, 0.12);
}

.asset-trade-status-cancelled {
  color: #ffb0a8;
  border-color: rgba(255, 176, 168, 0.28);
  background: rgba(255, 176, 168, 0.1);
}

.asset-trade-status-other {
  color: #d9e2f3;
  border-color: rgba(217, 226, 243, 0.24);
  background: rgba(217, 226, 243, 0.08);
}

.asset-chain-flow {
  display: grid;
  gap: 12px;
}

.asset-chain-flow-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.asset-chain-flow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.asset-chain-flow-pill-ancestor {
  color: #ffe4ad;
  border-color: rgba(255, 212, 141, 0.34);
  background: rgba(255, 212, 141, 0.12);
}

.asset-chain-flow-pill-selected {
  color: #dcebff;
  border-color: rgba(124, 173, 235, 0.42);
  background: rgba(58, 92, 142, 0.22);
}

.asset-chain-flow-pill-descendant {
  color: #c8ffd9;
  border-color: rgba(117, 224, 160, 0.34);
  background: rgba(46, 118, 74, 0.18);
}

.asset-chain-current-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dcebff;
  border: 1px solid rgba(124, 173, 235, 0.42);
  background: rgba(58, 92, 142, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
}

.asset-chain-flow-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.asset-chain-timeline {
  display: grid;
  gap: 12px;
}

.asset-chain-timeline-step {
  display: grid;
  gap: 8px;
}

.asset-chain-timeline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #dcebff;
  font-size: 0.84rem;
}

.asset-chain-timeline-label small {
  color: var(--muted);
  font-size: 0.76rem;
}

.asset-chain-timeline-arrow {
  display: flex;
  justify-content: center;
  color: #9bc0ee;
  font-size: 1.2rem;
  font-weight: 900;
}

.asset-chain-column {
  min-width: 220px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #314562;
  border-radius: 12px;
  background: rgba(11, 18, 33, 0.86);
}

.asset-chain-column h5 {
  margin: 0;
  color: #eef5ff;
  font-size: 0.84rem;
}

.asset-chain-column-selected {
  border-color: rgba(124, 173, 235, 0.46);
  background: rgba(16, 28, 48, 0.92);
}

.asset-chain-column-ancestor {
  border-color: rgba(255, 212, 141, 0.22);
  background: linear-gradient(180deg, rgba(45, 35, 18, 0.28), rgba(11, 18, 33, 0.9));
}

.asset-chain-column-descendant {
  border-color: rgba(117, 224, 160, 0.22);
  background: linear-gradient(180deg, rgba(17, 41, 28, 0.3), rgba(11, 18, 33, 0.9));
}

.asset-chain-column-items {
  display: grid;
  gap: 10px;
}

.asset-chain-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  color: #9bc0ee;
  font-size: 1.35rem;
  font-weight: 900;
}

.asset-chain-flow-arrow-hero {
  color: #d4e6ff;
}

.asset-chain-node {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid #395071;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 29, 49, 0.95), rgba(11, 18, 33, 0.95));
  color: #edf4ff;
  cursor: pointer;
}

.asset-chain-node:hover {
  border-color: #6b86b1;
}

.asset-chain-node-selected {
  border-color: rgba(124, 173, 235, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(124, 173, 235, 0.14),
    0 12px 24px rgba(5, 11, 19, 0.3);
}

.asset-chain-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-chain-node-top strong {
  color: #eef5ff;
  font-size: 0.88rem;
}

.asset-chain-node-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.asset-trade-row-buy td {
  background: rgba(19, 88, 54, 0.1);
}

.asset-trade-row-sell td {
  background: rgba(110, 28, 17, 0.1);
}

.asset-trade-row-buy td:first-child,
.asset-trade-row-sell td:first-child {
  box-shadow: inset 4px 0 0 transparent;
}

.asset-trade-row-buy td:first-child {
  box-shadow: inset 4px 0 0 rgba(42, 205, 127, 0.78);
}

.asset-trade-row-sell td:first-child {
  box-shadow: inset 4px 0 0 rgba(240, 92, 78, 0.82);
}

.asset-trade-card-buy {
  border-color: rgba(77, 214, 148, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(77, 214, 148, 0.08),
    0 10px 24px rgba(8, 29, 18, 0.28);
}

.asset-trade-card-sell {
  border-color: rgba(238, 98, 84, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(238, 98, 84, 0.08),
    0 10px 24px rgba(34, 11, 9, 0.3);
}

.asset-trade-card-chain-muted {
  margin-left: 18px;
  opacity: 0.38;
}

.asset-trade-card-chain-related {
  opacity: 1;
}

.asset-trade-card-chain-source {
  box-shadow:
    inset 0 0 0 1px rgba(124, 173, 235, 0.22),
    0 16px 28px rgba(4, 10, 18, 0.34);
}

.asset-history-split {
  display: grid;
  gap: 18px;
}

.asset-history-block {
  display: grid;
  gap: 10px;
}

.asset-chain-graph-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-graph-legend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 153, 194, 0.38);
  background: rgba(17, 31, 52, 0.7);
  color: #d9e7fb;
  font-size: 0.8rem;
  white-space: nowrap;
}

.asset-chain-graph-shell {
  border: 1px solid #314562;
  border-radius: 14px;
  background: rgba(9, 17, 30, 0.84);
  padding: 14px;
}

.asset-chain-graph-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.asset-chain-graph-scroll {
  width: 100%;
  overflow: auto;
  padding: 4px 2px 12px;
}

.asset-chain-graph-svg {
  display: block;
  max-width: none;
}

.asset-graph-node-group {
  cursor: pointer;
  outline: none;
}

.asset-graph-node-group:focus rect,
.asset-graph-node-group:hover rect {
  stroke: #9fd0ff;
  filter: drop-shadow(0 10px 16px rgba(5, 12, 22, 0.26));
}

.asset-graph-node-group-focused rect {
  filter: drop-shadow(0 14px 22px rgba(5, 12, 22, 0.34));
}

.asset-toggle-panel {
  display: none;
}

.asset-toggle-panel.asset-toggle-panel-open {
  display: block;
}

.asset-history-editor {
  margin-bottom: 14px;
}

.asset-history-focus-bar {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(122, 196, 255, 0.24);
  background: rgba(17, 31, 52, 0.78);
}

.asset-chain-focus-trail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
}

.asset-chain-focus-chip {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #395071;
  background: rgba(10, 18, 31, 0.9);
  color: #edf4ff;
  text-align: left;
  cursor: pointer;
}

.asset-chain-focus-chip:hover {
  border-color: #6b86b1;
}

.asset-chain-focus-chip-active {
  border-color: rgba(124, 173, 235, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(124, 173, 235, 0.16),
    0 12px 24px rgba(5, 11, 19, 0.28);
}

.asset-chain-focus-chip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.asset-inline-link {
  color: #9fd0ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.asset-inline-link:hover {
  text-decoration: underline;
}

.asset-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.asset-status-pending {
  color: #ffd48d;
  border-color: rgba(255, 212, 141, 0.32);
  background: rgba(255, 212, 141, 0.12);
}

.asset-status-in_stock {
  color: #8be3a0;
  border-color: rgba(139, 227, 160, 0.32);
  background: rgba(139, 227, 160, 0.12);
}

.asset-status-other {
  color: #d9e2f3;
  border-color: rgba(217, 226, 243, 0.24);
  background: rgba(217, 226, 243, 0.08);
}

.asset-toggle-btn {
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #41506f;
  background: transparent;
  color: #d7e2f8;
  cursor: pointer;
}

.asset-toggle-btn:hover {
  border-color: #6882ac;
  color: #f3f7ff;
}

.asset-focus-close-btn {
  border-color: rgba(255, 197, 120, 0.5);
  background: rgba(255, 197, 120, 0.12);
  color: #fff0d0;
  font-weight: 700;
}

.asset-focus-close-btn:hover {
  border-color: rgba(255, 213, 154, 0.76);
  background: rgba(255, 197, 120, 0.18);
}

.asset-action-stack {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.asset-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-inline-datetime {
  width: 100%;
  min-width: 0;
}

.asset-meta-editor {
  min-width: 220px;
}

.asset-meta-editor summary {
  cursor: pointer;
  color: #9fd0ff;
  list-style: none;
}

.asset-meta-editor summary::-webkit-details-marker {
  display: none;
}

.asset-meta-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.asset-meta-grid label {
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-meta-grid textarea,
.asset-meta-grid input,
.asset-meta-grid select {
  width: 100%;
  min-width: 0;
}

.asset-meta-grid textarea {
  min-height: 74px;
  resize: vertical;
}

#importText {
  min-height: 220px;
  resize: vertical;
}

.asset-row-disregarded {
  opacity: 0.48;
}

.asset-muted {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.asset-negative {
  color: #ff9f96;
}

.asset-positive {
  color: #8be3a0;
}

.status-card {
  padding: 10px 14px;
}

.status-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .asset-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .asset-detail-lists {
    grid-template-columns: 1fr;
  }

  .header-top {
    flex-direction: column;
  }

  .asset-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .asset-auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .asset-button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-section-row-actions {
    justify-content: stretch;
    width: 100%;
  }

  .asset-section-toggle-btn {
    width: 100%;
  }

  .asset-chain-toolbar {
    align-items: stretch;
  }

  .asset-chain-toolbar .asset-toggle-btn {
    width: 100%;
  }

  .asset-chain-flow-track {
    flex-direction: column;
  }

  .asset-modal-dialog {
    padding: 18px;
  }

  .asset-chain-flow-arrow {
    min-width: 0;
    min-height: 20px;
    transform: rotate(90deg);
  }

  .asset-chain-graph-shell {
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .asset-summary-grid {
    grid-template-columns: 1fr;
  }

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

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

  .summary-box strong {
    font-size: 1.14rem;
  }

  .asset-detail-grid {
    grid-template-columns: 1fr;
  }

  .asset-modal-dialog {
    padding: 12px;
  }

  .asset-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .asset-chain-flow-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-nav a,
  .top-nav-button {
    flex: 1 1 100%;
    text-align: center;
  }

  .top-nav-form {
    flex: 1 1 100%;
  }

  .desktop-table {
    display: none;
  }

  .asset-mobile-cards {
    display: grid;
  }

  .asset-mobile-cards .mobile-row,
  .asset-mobile-cards .gbg-mobile-row {
    align-items: start;
  }

  .asset-mobile-cards .mobile-row span,
  .asset-mobile-cards .mobile-row strong,
  .asset-mobile-cards .mobile-sub,
  .asset-muted,
  .asset-inline-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .asset-trade-row-chain-muted {
    transform: none;
  }

  .asset-trade-card-chain-muted {
    margin-left: 12px;
  }

  .asset-action-stack {
    min-width: 0;
  }

  .asset-meta-editor {
    min-width: 0;
  }

  .asset-inline-actions {
    display: grid;
  }

  .asset-muted {
    line-height: 1.45;
  }

  .asset-chain-graph-shell {
    padding: 10px;
  }

  .asset-chain-graph-scroll {
    margin-inline: -2px;
  }
}
