:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #1b1d21;
  --surface-2: #23262c;
  --surface-3: #2a2e35;
  --line: #343841;
  --text: #f2f4f7;
  --muted: #aab1bd;
  --blue: #6ea8ff;
  --green: #59d18c;
  --copper: #f18a45;
  --red: #ff7a7a;
  --violet: #b69cff;
  --teal: #58d2c4;
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.mode-public .shell {
  width: min(960px, 100%);
}

.mode-public .admin-only {
  display: none;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 19px;
}

.status,
.section-head > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface);
}

.shortcut-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(89, 209, 140, 0.5);
  border-radius: 999px;
  background: #18231e;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.shortcut-button:hover {
  border-color: rgba(110, 168, 255, 0.75);
  background: var(--surface-2);
}

.shortcut-button[hidden] {
  display: none;
}

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

.metric {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.1;
}

.metric:nth-child(2) strong {
  color: var(--blue);
}

.metric:nth-child(3) strong {
  color: var(--teal);
}

.metric.danger strong {
  color: var(--red);
}

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

.primary-action,
.card,
.public-skill-card,
.ops button,
.tabs button,
.view-toggle button,
.ghost-button,
.submit-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.primary-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 116px;
  padding: 14px;
  text-align: left;
  border-color: rgba(89, 209, 140, 0.45);
  background: #18231e;
}

.primary-action.blue {
  border-color: rgba(110, 168, 255, 0.45);
  background: #18202d;
}

.primary-action.copper {
  border-color: rgba(241, 138, 69, 0.45);
  background: #2a2119;
}

.primary-action.violet {
  border-color: rgba(182, 156, 255, 0.45);
  background: #221f2d;
}

.primary-action:active,
.card:active,
.public-skill-card:active,
.ops button:active,
.tabs button:active,
.view-toggle button:active,
.ghost-button:active,
.submit-button:active {
  transform: scale(0.99);
}

.primary-action:hover,
.card:hover,
.public-skill-card:hover,
.ops button:hover,
.tabs button:hover,
.view-toggle button:hover,
.ghost-button:hover,
.submit-button:hover {
  border-color: var(--blue);
  background: var(--surface-2);
}

.primary-action strong,
.card strong,
.public-skill-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.primary-action small,
.card small,
.public-skill-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.action-icon,
.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.primary-action.blue .action-icon,
.card[data-tone="blue"] .card-icon,
.public-skill-card[data-tone="blue"] .card-icon {
  color: var(--blue);
}

.primary-action.copper .action-icon,
.card[data-tone="copper"] .card-icon,
.public-skill-card[data-tone="copper"] .card-icon {
  color: var(--copper);
}

.primary-action.violet .action-icon,
.card[data-tone="violet"] .card-icon,
.public-skill-card[data-tone="violet"] .card-icon {
  color: var(--violet);
}

.card[data-tone="green"] .card-icon,
.public-skill-card[data-tone="green"] .card-icon {
  color: var(--green);
}

.card[data-tone="red"] .card-icon,
.public-skill-card[data-tone="red"] .card-icon {
  color: var(--red);
}

.card[data-tone="teal"] .card-icon,
.public-skill-card[data-tone="teal"] .card-icon {
  color: var(--teal);
}

.card[data-tone="gray"] .card-icon,
.public-skill-card[data-tone="gray"] .card-icon {
  color: var(--muted);
}

.launcher,
.workspace,
.control,
.activity,
.web-intake {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}

.launcher,
.web-intake {
  margin-bottom: 8px;
}

.mode-public .web-intake {
  padding-top: 18px;
  border-top: 0;
}

.public-skill-picker {
  margin-bottom: 14px;
}

.public-skill-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.public-skill-tabs {
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.public-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 2px;
}

.public-skill-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 148px;
  padding: 14px;
  text-align: left;
}

.public-skill-card.active {
  border-color: rgba(89, 209, 140, 0.72);
  background: #18231e;
  box-shadow: inset 0 0 0 1px rgba(89, 209, 140, 0.22);
}

.launcher[hidden] {
  display: none;
}

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

.web-dynamic-fields {
  margin-top: 10px;
}

.web-intake-hint {
  padding: 11px;
  border: 1px solid rgba(110, 168, 255, 0.38);
  border-radius: var(--radius);
  background: #17202a;
}

.web-intake-hint strong,
.web-intake-hint span,
.web-intake-hint small {
  display: block;
}

.web-intake-hint strong {
  font-size: 14px;
}

.web-intake-hint span {
  margin-top: 5px;
  color: var(--text);
  line-height: 1.35;
}

.web-intake-hint small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.3;
}

.field {
  display: grid;
  gap: 6px;
}

.field.wide {
  grid-column: 1 / -1;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(110, 168, 255, 0.75);
}

.web-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 11px;
  border: 1px solid rgba(89, 209, 140, 0.4);
  border-radius: var(--radius);
  background: #17251e;
}

.web-file-preview[hidden] {
  display: none;
}

.web-file-preview strong,
.web-file-preview small {
  display: block;
  overflow-wrap: anywhere;
}

.web-file-preview small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.web-file-preview em {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.web-file-preview.danger {
  border-color: rgba(255, 122, 122, 0.5);
  background: #2a1d1d;
}

.web-file-preview.danger em {
  color: var(--red);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.ghost-button,
.submit-button {
  min-height: 42px;
  padding: 0 14px;
}

.submit-button {
  border-color: rgba(89, 209, 140, 0.55);
  background: #18231e;
}

.ghost-button.active {
  border-color: rgba(110, 168, 255, 0.75);
  background: #18202d;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.web-task-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(110, 168, 255, 0.45);
  border-radius: var(--radius);
  background: var(--surface);
}

.web-task-card[hidden] {
  display: none;
}

.web-recent {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.web-recent[hidden] {
  display: none;
}

.web-recent .section-head {
  align-items: center;
}

.web-recent .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.web-recent-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.web-recent-filters button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.web-recent-filters button.active {
  border-color: rgba(89, 209, 140, 0.55);
  background: #18231e;
  color: var(--text);
}

.web-recent-list {
  display: grid;
  gap: 8px;
}

.web-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.web-recent-item:hover {
  border-color: rgba(110, 168, 255, 0.75);
  background: var(--surface-2);
}

.web-recent-item strong,
.web-recent-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.web-recent-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.web-recent-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.web-recent-item em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.web-recent-item em[data-tone="done"],
.activity-item em[data-tone="done"],
.web-task-title em[data-tone="done"] {
  color: var(--green);
  background: #17251e;
}

.web-recent-item em[data-tone="active"],
.activity-item em[data-tone="active"],
.web-task-title em[data-tone="active"] {
  color: var(--blue);
  background: #17202a;
}

.web-recent-item em[data-tone="retry"],
.activity-item em[data-tone="retry"],
.web-task-title em[data-tone="retry"] {
  color: var(--copper);
  background: #2a2119;
}

.web-recent-item em[data-tone="failed"],
.activity-item em[data-tone="failed"],
.web-task-title em[data-tone="failed"] {
  color: var(--red);
  background: #2a1d1d;
}

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

.web-task-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.web-task-actions .ghost-button,
.web-task-actions .web-download-button {
  min-height: 38px;
}

.web-task-title,
.web-task-title small {
  display: block;
}

.web-task-title em {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.web-task-title small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.web-task-message {
  margin: -2px 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.web-task-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.web-task-card dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.web-task-card dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.web-task-card dd {
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.web-task-card p,
.web-result {
  color: var(--muted);
  line-height: 1.45;
}

.web-result.pending {
  border-color: rgba(110, 168, 255, 0.35);
  background: #17202a;
  color: var(--muted);
}

.web-result.danger {
  border-color: rgba(255, 122, 122, 0.42);
  background: #2a1d1d;
}

.web-result {
  padding: 10px;
  border: 1px solid rgba(89, 209, 140, 0.35);
  border-radius: var(--radius);
  background: #18231e;
  color: var(--text);
  white-space: pre-wrap;
}

.web-warnings {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.web-warnings span {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(241, 138, 69, 0.42);
  border-radius: var(--radius);
  background: #2a2119;
  color: var(--text);
  line-height: 1.35;
}

.web-downloads {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(110, 168, 255, 0.35);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.web-downloads > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.web-downloads > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-download-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.web-download-button:hover {
  border-color: rgba(110, 168, 255, 0.75);
  background: var(--surface-3);
}

.web-download-button.accent {
  border-color: rgba(89, 209, 140, 0.55);
}

.web-download-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.web-download-button small {
  flex: 0 0 auto;
  color: var(--muted);
}

.web-review {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(89, 209, 140, 0.35);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.web-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.web-review-head strong,
.web-review-head small,
.web-review-history strong,
.web-review-history span,
.web-review-history small {
  display: block;
}

.web-review-head small,
.web-review-history span,
.web-review-history small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.3;
}

.web-review-head em {
  max-width: 48%;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.web-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.web-review-actions .ghost-button,
.web-review-actions .submit-button {
  min-height: 38px;
}

.web-review-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(110, 168, 255, 0.32);
  border-radius: var(--radius);
  background: var(--surface);
}

.web-review-form label {
  color: var(--muted);
  font-size: 12px;
}

.web-review-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  resize: vertical;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.4;
}

.web-review-form textarea:focus {
  border-color: rgba(110, 168, 255, 0.75);
}

.web-review-form div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.web-review-form .ghost-button,
.web-review-form .submit-button {
  min-height: 38px;
}

.web-review-history {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.web-review-history div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.web-review-history small {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder {
  color: #7d8592;
}

.view-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 260px;
}

.view-toggle button,
.tabs button {
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--surface);
}

.view-toggle button.active,
.tabs button.active {
  color: var(--text);
  border-color: rgba(89, 209, 140, 0.55);
  background: #18231e;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 156px;
  padding: 14px;
  text-align: left;
}

.card-body {
  min-width: 0;
}

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

.card em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags span {
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.empty {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

.control {
  margin-top: 16px;
}

.activity {
  margin-top: 16px;
}

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

.insights div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.insights span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.insights strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

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

.ops button {
  min-height: 48px;
  padding: 12px;
  background: var(--surface);
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.activity-panel {
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.activity-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.web-queue,
.web-quality {
  margin-top: 24px;
}

.web-queue-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.web-queue-controls input {
  min-width: 0;
}

.web-queue .activity-list,
.web-quality .activity-list {
  margin-top: 12px;
}

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

.activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.activity-item strong,
.trace-summary strong {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.activity-item small,
.trace-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.activity-item em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.queue-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.queue-actions .ghost-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.activity-list.compact .activity-item {
  min-height: 44px;
}

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

.trace-summary div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #22262d;
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.toast.visible {
  display: block;
}

@media (max-width: 980px) {
  .quick,
  .metrics,
  .insights,
  .ops,
  .trace-summary,
  .web-task-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 740px) {
  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 27px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    display: grid;
    justify-items: end;
    max-width: 46%;
  }

  .toolbar,
  .public-skill-toolbar,
  .quick,
  .metrics,
  .insights,
  .grid,
  .public-skill-grid,
  .activity-grid,
  .trace-summary,
  .web-task-card dl,
  .form-grid,
  .ops {
    grid-template-columns: 1fr;
  }

  .web-review-head {
    display: grid;
  }

  .web-review-head em {
    max-width: none;
  }

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

  .view-toggle {
    min-width: 0;
  }

  .card,
  .public-skill-card,
  .primary-action {
    min-height: 118px;
  }
}
