@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
}

:root {
  --sh-ink: #070408;
  --sh-surface: #0f0d14;
  --sh-elevated: #17141d;
  --sh-hairline: #2a2632;
  --sh-accent: #22dfc8;
  --sh-accent-deep: #0e8f80;
  --sh-violet: #7c6bff;
  --sh-amber: #fda136;
  --sh-text: #edeaf2;
  --sh-text-muted: #8a8496;
  --sh-ok: #34d399;
  --sh-warn: #fda136;
  --sh-err: #ff5c5c;
  --sh-pending: #8a8496;
  --sh-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --sh-font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --sh-radius: 8px;
  --sh-radius-lg: 12px;
  --sh-border: 1px solid var(--sh-hairline);
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--sh-ink);
  color: var(--sh-text);
  font-family: var(--sh-font-sans);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
.wordmark,
.page-title,
.sidebar-link,
.stat-card .label,
.list-head,
.detail-head,
.form-label,
.pill {
  font-family: var(--sh-font-mono);
  font-weight: 500;
}

code,
pre,
.method,
.path,
.url,
.hint,
.meta,
.count,
.stat-card .value,
.status-code {
  font-family: var(--sh-font-mono);
  font-variant-numeric: tabular-nums;
}

.wordmark {
  color: var(--sh-accent);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: lowercase;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: var(--sh-border);
  background: var(--sh-surface);
}

.topbar .who {
  margin: 0;
  color: var(--sh-text-muted);
  font-family: var(--sh-font-mono);
  font-size: 13px;
  font-weight: 400;
}

.topbar-signout {
  margin-left: auto;
}

.topbar-guide {
  display: none;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 53px);
}

.sidebar {
  border-right: var(--sh-border);
  background: var(--sh-surface);
  padding: 1rem 0.75rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.25rem;
}

.sidebar-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--sh-radius);
  color: var(--sh-text-muted);
  font-size: 14px;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--sh-text);
  background: var(--sh-elevated);
}

.sidebar-link.active {
  color: var(--sh-accent);
  background: color-mix(in srgb, var(--sh-accent) 12%, transparent);
}

.sidebar-link.guide-link {
  margin-top: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--sh-violet) 48%, var(--sh-hairline));
  color: color-mix(in srgb, var(--sh-violet) 76%, var(--sh-text));
  background: color-mix(in srgb, var(--sh-violet) 8%, transparent);
}

.sidebar-link.guide-link:hover,
.sidebar-link.guide-link.active {
  color: var(--sh-text);
  border-color: var(--sh-violet);
  background: color-mix(in srgb, var(--sh-violet) 18%, transparent);
}

.sidebar-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: var(--sh-border);
}

.sidebar-section-label {
  margin: 0 0 0.5rem 0.75rem;
  color: var(--sh-text-muted);
  font-family: var(--sh-font-mono);
  font-size: 12px;
  font-weight: 400;
}

.page {
  padding: 1.75rem 1.5rem 3rem;
  max-width: 960px;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 24px;
  line-height: 1.25;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.page-head .cta {
  flex-shrink: 0;
}

.lede {
  margin: 0;
  color: var(--sh-text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.lede a {
  color: var(--sh-accent);
  text-decoration: none;
}

.lede a:hover {
  text-decoration: underline;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
}

.guide-step {
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
}

.guide-num {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--sh-accent);
  font-family: var(--sh-font-mono);
  font-size: 12px;
  font-weight: 500;
}

.guide-step h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sh-font-mono);
  font-size: 16px;
  font-weight: 500;
}

.guide-step p,
.guide-step li {
  margin: 0 0 0.65rem;
  color: var(--sh-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.guide-step ul {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}

.guide-step li:last-child,
.guide-step p:last-child {
  margin-bottom: 0;
}

.guide-step a {
  color: var(--sh-accent);
  text-decoration: none;
}

.guide-step a:hover {
  text-decoration: underline;
}

.guide-step strong {
  color: var(--sh-text);
  font-weight: 500;
}

.guide-step code {
  color: var(--sh-accent);
  font-size: 13px;
}

.guide-step pre {
  margin: 0.75rem 0;
  color: var(--sh-accent);
  font-size: 13px;
}

.section-title {
  margin: 2.5rem 0 0.5rem;
  font-size: 18px;
}

.home {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.home-main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.home-main h1 {
  margin: 0 0 1rem;
  font-family: var(--sh-font-mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.form-label {
  display: grid;
  gap: 0.35rem;
  font-size: 13px;
  color: var(--sh-text-muted);
}

.form-label input {
  font-family: var(--sh-font-sans);
  font-size: 16px;
  color: var(--sh-text);
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 0.7rem 0.8rem;
}

.auth-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-error {
  margin: 0;
  color: var(--sh-err);
  font-size: 14px;
}

.form-ok {
  margin: 0;
  color: var(--sh-ok);
  font-size: 14px;
}

.text-link {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sh-accent);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.cta {
  background: var(--sh-accent);
  color: var(--sh-ink);
  border: var(--sh-border);
  border-color: var(--sh-accent);
  border-radius: var(--sh-radius);
  padding: 0.65rem 1rem;
  font-family: var(--sh-font-mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.05);
}

.cta.ghost {
  background: transparent;
  color: var(--sh-text-muted);
  border-color: var(--sh-hairline);
}

.cta.ghost:hover {
  color: var(--sh-text);
  background: var(--sh-elevated);
}

.cta.compact {
  padding: 0.4rem 0.75rem;
  font-size: 13px;
}

.cta.amber {
  background: transparent;
  color: var(--sh-amber);
  border-color: var(--sh-amber);
}

.cta.danger {
  background: transparent;
  color: var(--sh-err);
  border-color: color-mix(in srgb, var(--sh-err) 45%, var(--sh-hairline));
}

.cta.danger:hover {
  background: color-mix(in srgb, var(--sh-err) 12%, transparent);
}

.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

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

a.text-link {
  display: inline;
  margin-top: 0;
}

.create-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 720px;
}

.create-form input,
.create-form select {
  font: inherit;
  color: var(--sh-text);
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 0.65rem 0.8rem;
}

.role-form {
  grid-template-columns: 1fr 1.4fr auto auto auto;
  max-width: none;
  align-items: center;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sh-text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
  padding: 0.95rem 1rem;
}

.stat-card .value {
  display: block;
  font-size: 1.35rem;
  color: var(--sh-accent);
}

.stat-card .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 12px;
  font-weight: 400;
  color: var(--sh-text-muted);
}

.usage-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  height: 148px;
  margin-top: 1.25rem;
}

.usage-col {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.usage-col .bar {
  align-self: end;
  width: 100%;
  min-height: 2px;
  background: var(--sh-accent-deep);
  border-radius: 2px 2px 0 0;
}

.usage-col .day-label {
  margin-top: 0.35rem;
  font-family: var(--sh-font-mono);
  font-size: 12px;
  color: var(--sh-text-muted);
  text-align: center;
}

.row-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.row-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
}

.row-list li.inactive {
  opacity: 0.6;
}

.row-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sh-font-mono);
  font-weight: 500;
}

.row-list code,
.tunnel-url {
  color: var(--sh-accent);
  font-size: 13px;
}

.row-note {
  margin: 0.4rem 0 0;
  color: var(--sh-text-muted);
  font-size: 14px;
}

.row-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.row-actions a,
.row-actions button {
  color: var(--sh-accent);
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sh-font-mono);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.row-actions button.amber-link {
  color: var(--sh-amber);
}

.row-actions button.danger-link {
  color: var(--sh-err);
}

.row-list select {
  font: inherit;
  color: var(--sh-text);
  background: var(--sh-elevated);
  border: var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 0.35rem 0.5rem;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--sh-font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--sh-text-muted);
}

.badge.off {
  color: var(--sh-err);
}

.empty {
  padding: 2rem 0;
  color: var(--sh-text-muted);
  font-size: 14px;
}

.loading-skeleton {
  display: grid;
  gap: 0.8rem;
}

.page > .loading-skeleton {
  margin-top: 0.15rem;
}

.skeleton {
  display: block;
  max-width: 100%;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    var(--sh-elevated) 0%,
    color-mix(in srgb, var(--sh-text-muted) 16%, var(--sh-elevated)) 48%,
    var(--sh-elevated) 100%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  min-height: 0.85rem;
}

.loading-skeleton > .skeleton-line:first-child {
  min-height: 1.75rem;
}

.skeleton-nav {
  display: grid;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
}

.skeleton-stat-grid {
  margin-top: 0.7rem;
}

.skeleton-card {
  display: grid;
  gap: 0.75rem;
  min-height: 5.4rem;
}

.skeleton-rows {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding: 1rem;
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
}

.skeleton-row > div {
  display: grid;
  flex: 1;
  gap: 0.65rem;
}

.app-skeleton .topbar .skeleton:last-child {
  margin-left: auto;
}

.inspector-list-skeleton {
  padding: 0.25rem 0.75rem 1rem;
}

.inspector-list-skeleton .skeleton-rows {
  margin-top: 0.5rem;
}

.inspector-detail-skeleton {
  padding: 1.25rem;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 8, 0.72);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-card {
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
  padding: 1.5rem;
  max-width: 640px;
  width: 100%;
  max-height: min(90vh, 720px);
  overflow: auto;
}

.modal-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sh-font-mono);
  font-size: 18px;
  font-weight: 500;
}

.modal-card pre {
  margin: 1rem 0;
  padding: 0.8rem;
  background: var(--sh-elevated);
  border-radius: var(--sh-radius);
  overflow-x: auto;
  font-size: 13px;
  color: var(--sh-accent);
}

.inspector {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.inspector-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: var(--sh-border);
  background: var(--sh-surface);
}

.inspector-bar a.wordmark {
  text-decoration: none;
}

.urls {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.urls label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--sh-font-mono);
  font-size: 12px;
  color: var(--sh-text-muted);
  min-width: 0;
}

.url {
  font-size: 13px;
  color: var(--sh-accent);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  font-size: 13px;
  color: var(--sh-text-muted);
}

.status {
  display: flex;
  gap: 0.5rem;
}

.pill {
  font-size: 13px;
  font-weight: 400;
  padding: 0.3rem 0.55rem;
  border-radius: var(--sh-radius);
  border: var(--sh-border);
}

.pill.on {
  color: var(--sh-ok);
  background: color-mix(in srgb, var(--sh-ok) 12%, transparent);
  border-color: color-mix(in srgb, var(--sh-ok) 35%, var(--sh-hairline));
}

.pill.off {
  color: var(--sh-pending);
  background: color-mix(in srgb, var(--sh-pending) 12%, transparent);
}

.pill.mode {
  color: var(--sh-accent);
  background: color-mix(in srgb, var(--sh-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--sh-accent) 35%, var(--sh-hairline));
}

.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 0;
}

.list-pane {
  border-right: var(--sh-border);
  overflow: auto;
  background: var(--sh-surface);
}

.list-head,
.detail-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: var(--sh-border);
  font-size: 13px;
  font-weight: 400;
  color: var(--sh-text-muted);
}

.count {
  margin-left: auto;
  color: var(--sh-accent);
  font-size: 13px;
}

.request-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.request-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 1rem 0.7rem 1.25rem;
  background: none;
  border: 0;
  border-bottom: var(--sh-border);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.request-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
}

.request-row:hover,
.request-row.active {
  background: var(--sh-elevated);
}

.request-row.landed::before {
  animation: tether-dash 600ms ease-out;
  background: linear-gradient(to bottom, var(--sh-accent) 0%, var(--sh-accent) 40%, transparent 40%);
}

.request-row.landed .status-code {
  animation: status-pulse 600ms ease-out;
}

@keyframes tether-dash {
  0% {
    background-position: 0 -100%;
    background-size: 2px 200%;
    background-image: linear-gradient(to bottom, transparent 50%, var(--sh-accent) 50%);
  }
  100% {
    background-position: 0 100%;
    background-size: 2px 200%;
    background-image: linear-gradient(to bottom, var(--sh-accent) 50%, transparent 50%);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }

  .request-row.landed::before,
  .request-row.landed .status-code {
    animation: none;
  }

  .request-row.landed::before {
    background: var(--sh-accent);
  }
}

.method {
  font-size: 13px;
  font-weight: 500;
  color: var(--sh-violet);
}

.path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.status-code {
  font-size: 13px;
  padding: 0.15rem 0.45rem;
  border-radius: var(--sh-radius);
}

.status-code.ok {
  color: var(--sh-ok);
  background: color-mix(in srgb, var(--sh-ok) 12%, transparent);
}

.status-code.warn {
  color: var(--sh-warn);
  background: color-mix(in srgb, var(--sh-warn) 12%, transparent);
}

.status-code.err {
  color: var(--sh-err);
  background: color-mix(in srgb, var(--sh-err) 12%, transparent);
}

.status-code.pending {
  color: var(--sh-pending);
  background: color-mix(in srgb, var(--sh-pending) 12%, transparent);
}

.detail-pane {
  overflow: auto;
}

.placeholder {
  padding: 2rem 1rem;
  color: var(--sh-text-muted);
}

.detail-head .path {
  color: var(--sh-text);
  font-size: 14px;
}

.detail-head .method {
  font-size: 14px;
}

.meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--sh-text-muted);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cols article {
  padding: 1rem 1.2rem 2rem;
  border-right: var(--sh-border);
}

.cols article:last-child {
  border-right: 0;
}

.cols h2 {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--sh-accent);
}

.cols h3 {
  margin: 1rem 0 0.4rem;
  font-size: 12px;
  font-weight: 400;
  color: var(--sh-text-muted);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.45;
  padding: 0.75rem;
  background: var(--sh-elevated);
  border-radius: var(--sh-radius);
  color: var(--sh-text);
}

.cols pre {
  max-height: min(70vh, 48rem);
  overflow: auto;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.create-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 640px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--sh-surface);
  border: var(--sh-border);
  border-radius: var(--sh-radius-lg);
}

.create-card .cta {
  justify-self: start;
}

.mode-fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.mode-fieldset legend {
  margin-bottom: 0.35rem;
  font-family: var(--sh-font-mono);
  font-size: 13px;
  color: var(--sh-text-muted);
}

.mode-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: var(--sh-border);
  border-radius: var(--sh-radius);
  cursor: pointer;
}

.mode-choice strong {
  display: block;
  font-family: var(--sh-font-mono);
  font-weight: 500;
}

.mode-choice.selected {
  border-color: color-mix(in srgb, var(--sh-accent) 45%, var(--sh-hairline));
  background: color-mix(in srgb, var(--sh-accent) 8%, transparent);
}

.inbox-card {
  align-items: flex-start;
}

.inbox-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
}

.inbox-url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.inbox-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.secret-field {
  margin-top: 1rem;
}

.secret-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--sh-font-mono);
  font-size: 13px;
  color: var(--sh-text-muted);
}

.secret-field-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.secret-field select,
.command-runner select {
  font: inherit;
  color: var(--sh-text);
  background: var(--sh-elevated);
  border: var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 0.35rem 0.5rem;
}

.command-runner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sh-font-mono);
  font-size: 13px;
  color: var(--sh-text-muted);
}

.secret-field pre {
  margin: 0.45rem 0 0;
}

.paste-secret {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.paste-secret .cta {
  justify-self: start;
}

.back-link {
  color: var(--sh-text-muted);
  font-family: var(--sh-font-mono);
  font-size: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.back-link:hover {
  color: var(--sh-text);
}

.wordmark-link {
  text-decoration: none;
  flex-shrink: 0;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.empty-state {
  padding: 1.25rem 1rem 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.empty-state p {
  margin: 0;
  color: var(--sh-text-muted);
  font-size: 14px;
}

.empty-state .cta {
  justify-self: start;
}

@media (max-width: 900px) {
  .topbar .who {
    display: none;
  }

  .topbar-guide {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-signout {
    margin-left: 0;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: var(--sh-border);
  }

  .sidebar .guide-link {
    display: none;
  }

  .split,
  .cols,
  .create-form,
  .role-form,
  .stat-grid,
  .row-list li {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .row-list li {
    flex-direction: column;
  }

  .inspector {
    height: auto;
  }

  .inspector-bar {
    flex-wrap: wrap;
  }
}
