#v1-depth-console {
  --depth-ink: #132724;
  --depth-muted: #61716d;
  --depth-paper: #f5f1e7;
  --depth-line: rgba(19, 39, 36, .16);
  --depth-accent: #0f766e;
  --depth-warn: #a85d17;
  margin: 3rem auto 5rem;
  max-width: 1180px;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--depth-ink);
  border: 1px solid var(--depth-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0, rgba(15, 118, 110, .13), transparent 31%),
    linear-gradient(145deg, #fffdf7 0%, var(--depth-paper) 100%);
  box-shadow: 0 24px 60px rgba(19, 39, 36, .11);
}
.depth-kicker { margin: 0 0 .45rem; color: var(--depth-accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.depth-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.depth-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.7rem, 4vw, 3rem); line-height: .98; }
.depth-boundary { max-width: 39rem; color: var(--depth-muted); margin: .7rem 0 0; }
.depth-badges { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.depth-badge { padding: .42rem .7rem; border-radius: 999px; border: 1px solid var(--depth-line); background: rgba(255,255,255,.72); font-size: .76rem; font-weight: 750; }
.depth-badge.safe { color: var(--depth-accent); }
.depth-badge.blocked { color: var(--depth-warn); }
.depth-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: .35rem; border-radius: 14px; background: rgba(19,39,36,.06); }
.depth-tab { border: 0; border-radius: 10px; padding: .7rem .9rem; background: transparent; color: var(--depth-muted); white-space: nowrap; font-weight: 750; cursor: pointer; }
.depth-tab[aria-selected="true"] { color: white; background: var(--depth-ink); }
.depth-panel { padding-top: 1.25rem; }
.depth-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem; }
.depth-card { grid-column: span 4; min-width: 0; padding: 1rem; border-radius: 18px; border: 1px solid var(--depth-line); background: rgba(255,255,255,.76); }
.depth-card.wide { grid-column: span 8; }
.depth-card.full { grid-column: 1 / -1; }
.depth-card h3 { margin: .15rem 0 .4rem; font-size: 1rem; }
.depth-card p { margin: .3rem 0; color: var(--depth-muted); }
.depth-count { font: 700 2.4rem/1 Georgia, serif; color: var(--depth-ink) !important; }
.depth-list { margin: .7rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.depth-list li { padding: .58rem .65rem; border-left: 3px solid var(--depth-accent); background: rgba(15,118,110,.06); overflow-wrap: anywhere; }
.depth-form { display: grid; gap: .7rem; }
.depth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.depth-form label { display: grid; gap: .28rem; color: var(--depth-muted); font-weight: 700; font-size: .78rem; }
.depth-form input, .depth-form select, .depth-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--depth-line); border-radius: 10px; padding: .68rem; color: var(--depth-ink); background: #fff; font: inherit; }
.depth-form textarea { min-height: 9rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.depth-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.depth-actions button { border: 1px solid var(--depth-line); border-radius: 10px; padding: .68rem .85rem; background: white; color: var(--depth-ink); font-weight: 800; cursor: pointer; }
.depth-actions button.primary { background: var(--depth-accent); color: #fff; border-color: var(--depth-accent); }
.depth-actions button.danger { color: #8c2f20; }
.depth-actions button:disabled { cursor: not-allowed; opacity: .45; }
.depth-result { padding: .75rem; border-radius: 10px; background: #132724; color: #ecf8f4; max-height: 20rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .76rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.depth-warning { border-left: 4px solid var(--depth-warn); padding: .75rem; background: rgba(168,93,23,.08); color: #6c3b0e; }
.depth-empty { color: var(--depth-muted); font-style: italic; }
@media (max-width: 820px) {
  #v1-depth-console { margin: 1.5rem .65rem 3rem; border-radius: 20px; }
  .depth-head { align-items: flex-start; flex-direction: column; }
  .depth-badges { justify-content: flex-start; }
  .depth-card, .depth-card.wide { grid-column: 1 / -1; }
  .depth-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  #v1-depth-console { animation: depth-rise .55s ease both; }
  .depth-card { animation: depth-rise .4s ease both; }
  @keyframes depth-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
