:root {
  --ink: #102027;
  --muted: #5d6976;
  --line: rgba(145, 169, 186, .34);
  --soft: #091419;
  --panel: rgba(255, 255, 255, .96);
  --brand: #071419;
  --brand-2: #0d3035;
  --teal: #0a5960;
  --ok: #146b38;
  --warn: #9a6a09;
  --danger: #a6423c;
  --api-gold: #caa24b;
  --api-red: #c6534c;
  --api-blue: #236b91;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(9, 20, 25, .94), rgba(14, 38, 43, .90) 42%, rgba(245, 248, 251, .98) 42%),
    radial-gradient(circle at 18% 0%, rgba(19, 143, 134, .26), transparent 32%),
    #091419;
  color: var(--ink);
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.console-appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, rgba(7, 20, 25, .98), rgba(13, 48, 53, .98));
  color: #fff;
  border-bottom: 1px solid rgba(202, 162, 75, .24);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.api-admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(7, 13, 17, .96);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.api-admin-header h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.lukhoo-logo-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.lukhoo-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lukhoo-logo-mark line {
  stroke-width: 1.1;
  stroke-linecap: round;
}

.api-admin-header .slogan {
  color: var(--muted);
  font-size: .85rem;
}

#user-name {
  margin-left: auto;
  margin-right: 8px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: .84rem;
}

#user-name:empty {
  display: inline-block;
}

.menu-icon {
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.menu-icon:hover {
  border-color: rgba(232, 238, 242, .68);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 12px;
  top: 56px;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1217;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}

.dropdown-content a {
  display: block;
  padding: 11px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, .045);
}

.console-appbar-inner {
  min-height: 72px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e9f8f6, #ffffff);
  color: var(--teal);
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(19, 143, 134, .18), 0 12px 26px rgba(0, 0, 0, .18);
}

.brand strong {
  display: block;
  font-family: 'Poppins', sans-serif;
}

.brand small {
  display: block;
  color: #f1d27a;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.console-actions a,
.notice a,
.button-row button,
.docs-actions button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  text-decoration: none;
  font-weight: 700;
}

.console-actions a:hover {
  border-color: rgba(202, 162, 75, .62);
  background: rgba(202, 162, 75, .15);
}

.console-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 18px 22px;
  display: grid;
  gap: 8px;
}

.console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(232, 248, 246, .94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .20);
}

.eyebrow,
.card-kicker {
  color: #0d665f;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

h1,
h2 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 7px 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h2 {
  margin: 0;
  font-size: 1.06rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.status-panel,
.console-card,
.metric-grid article,
.docs-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(12, 30, 35, .08);
}

.status-panel {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 10px;
}

.status-panel strong {
  font-size: .98rem;
}

.status-panel p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.42;
}

.status-pill,
.card-badge {
  max-width: 100%;
  justify-self: start;
  border-radius: 6px;
  padding: 2px 5px;
  background: #f0f5fb;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status-pill.active {
  background: #dff6ea;
  color: var(--ok);
}

.status-pill.locked,
.card-badge.gated {
  background: #fff1d6;
  color: var(--warn);
}

.status-pill.error {
  background: #fae2df;
  color: var(--danger);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #f0d8a8;
  border-radius: 8px;
  background: #fff8e8;
  padding: 14px;
}

.notice[hidden] {
  display: none !important;
}

.notice p {
  margin: 4px 0 0;
}

.notice a {
  flex: 0 0 auto;
  border-color: #b9891d;
  color: #6d4c07;
  background: #fff;
}

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

.metric-grid article {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px;
}

.metric-grid span {
  color: var(--muted);
  font-size: .82rem;
}

.metric-grid strong {
  color: var(--ink);
  font-size: 1rem;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

.console-grid.lower {
  grid-template-columns: 2fr 1fr;
}

.console-card {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.console-card.wide {
  min-width: 0;
}

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

.card-head > div {
  min-width: 0;
}

.card-head h2 {
  overflow-wrap: anywhere;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 8px;
}

.checklist li > span {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: #fff;
}

.checklist li > div {
  min-width: 0;
}

.checklist strong,
.empty-state strong {
  display: block;
}

.checklist p,
.console-card p,
.empty-state p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.key-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fbfd;
  border: 1px solid var(--line);
}

.key-preview code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-preview span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .78rem;
}

code {
  color: #17304a;
}

.input-label {
  color: var(--ink);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.button-row,
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.button-row button,
.docs-actions button {
  border-color: #b8c7d8;
  color: #17304a;
  background: #fff;
}

button:disabled,
input:disabled {
  opacity: .64;
  cursor: not-allowed;
}

.event-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.event-cloud code {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 100%;
  padding: 5px 6px;
  background: #f8fbfd;
  font-size: .74rem;
  overflow-wrap: anywhere;
}

.payload-sample {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  border: 1px solid #1d3145;
  border-radius: 8px;
  background: #0c1724;
  color: #d8e7f0;
  padding: 12px;
  line-height: 1.45;
}

.payload-sample code {
  color: inherit;
}

.empty-state {
  border: 1px dashed #c7d4e4;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.docs-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

@media (max-width: 980px) {
  .console-hero,
  .console-grid,
  .console-grid.lower,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .api-admin-header,
  .console-appbar-inner,
  .docs-band,
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-admin-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #user-name {
    max-width: calc(100vw - 104px);
    margin-left: 0;
  }

  .console-actions,
  .console-actions a,
  .notice a,
  .docs-actions,
  .docs-actions button,
  .button-row button {
    width: 100%;
  }
}

/* API Integration workspace skin */
:root {
  --ink: #e8eef2;
  --muted: #9caab4;
  --line: rgba(188, 205, 216, .26);
  --soft: #070d11;
  --panel: rgba(9, 15, 19, .82);
  --panel-2: rgba(12, 20, 25, .94);
  --teal: #9bc8c3;
  --ok: #9fcbb2;
  --warn: #d2bd84;
  --danger: #d79a95;
}

html,
body {
  background: #070d11;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .16));
}

.console-appbar {
  background: rgba(7, 13, 17, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.brand-mark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

.brand small {
  color: var(--muted);
}

.console-actions a,
.notice a,
.button-row button,
.docs-actions button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82rem;
}

.console-actions a:hover,
.notice a:hover,
.button-row button:hover,
.docs-actions button:hover {
  background: transparent;
  border-color: rgba(232, 238, 242, .68);
}

.console-shell {
  position: relative;
  z-index: 1;
}

.console-hero,
.status-panel,
.console-card,
.metric-grid article,
.docs-band,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.console-hero {
  background: linear-gradient(135deg, rgba(10, 17, 22, .94), rgba(13, 24, 29, .86));
}

h1,
h2,
.status-panel strong,
.metric-grid strong,
.checklist strong,
.empty-state strong,
.input-label {
  color: var(--ink);
}

p,
.status-panel p,
.metric-grid span,
.console-card p,
.empty-state p {
  color: var(--muted);
}

.eyebrow,
.card-kicker,
.status-pill,
.card-badge {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-pill.active,
.status-pill.locked,
.status-pill.error,
.card-badge.gated {
  background: transparent;
}

.status-pill.active {
  color: var(--ok);
  border-color: rgba(159, 203, 178, .52);
}

.status-pill.locked,
.card-badge.gated {
  color: var(--warn);
  border-color: rgba(210, 189, 132, .52);
}

.status-pill.error {
  color: var(--danger);
  border-color: rgba(215, 154, 149, .54);
}

.notice {
  border-color: rgba(210, 189, 132, .42);
}

.notice a {
  color: var(--ink);
}

.checklist li > span {
  background: #fff;
  border: 0;
}

.key-preview,
.empty-state,
input,
.event-cloud code {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  color: var(--ink);
}

code,
.key-preview code,
.event-cloud code {
  color: #dbe7ec;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

input::placeholder {
  color: rgba(156, 170, 180, .78);
}

.payload-sample {
  background: #05090c;
  border: 1px solid rgba(232, 238, 242, .24);
  color: #dbe7ec;
}

button:disabled,
input:disabled {
  opacity: .72;
}

.button-row button,
.docs-actions button,
.notice a {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

.card-badge {
  flex: 0 1 auto;
  text-align: right;
}

.console-card * {
  min-width: 0;
}

.status-panel .status-pill {
  width: auto;
  min-height: 0;
  padding: 2px 5px;
  justify-self: start;
  line-height: 1.1;
}

/* Match attorney_admin_panel.html header positioning exactly. */
header.api-admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px 16px;
  background: rgba(7, 13, 17, .96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

header.api-admin-header h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .3px;
}

header.api-admin-header .slogan {
  color: var(--muted);
  font-size: .85rem;
}

header.api-admin-header #user-name {
  margin-left: auto;
  margin-right: 8px;
  display: inline-block;
  min-width: 0;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
}

header.api-admin-header .menu-icon {
  cursor: pointer;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
}

header.api-admin-header .menu-icon:hover {
  background: rgba(255, 255, 255, .13);
}

header.api-admin-header .dropdown-content {
  display: none;
  position: absolute;
  right: 12px;
  top: 56px;
  min-width: 220px;
  overflow: hidden;
  background: #0b1217;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}

header.api-admin-header .dropdown-content a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

header.api-admin-header .dropdown-content a:hover {
  background: rgba(255, 255, 255, .045);
}

header.api-admin-header #user-name:empty {
  display: inline-block;
  width: 0;
  max-width: 0;
  padding: 0;
  margin-left: auto;
  margin-right: 8px;
  overflow: hidden;
  background: transparent;
}

/* API workspace: retain the established header geometry. */
.workspace { gap: 12px; }
.workspace [hidden] { display: none !important; }
.workspace h1 { font-size: 24px; margin: 4px 0; }
.workspace h2 { font-size: 17px; }
.workspace h3 { font: 600 15px 'Roboto', sans-serif; margin: 0 0 8px; }
.workspace-title, .section-heading, .workspace-state, .composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workspace-title { padding: 6px 0; }
.workspace-state { flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 12px; }
.workspace .status-pill { padding: 3px 6px; font-size: 11px; line-height: 1.2; }
.workspace button, .workspace .resource-band a { color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; min-height: 32px; max-width: 100%; font: 500 12px 'Roboto Mono', monospace; cursor: pointer; overflow-wrap: anywhere; }
.workspace button:hover:not(:disabled) { border-color: #e4e8eb; }
.workspace .button-row a { border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; font-size: 12px; text-decoration: none; }
.workspace button:disabled { opacity: .45; cursor: not-allowed; }
.workspace :focus-visible { outline: 2px solid #b9cfdb; outline-offset: 3px; }
.workspace a { color: #d6e4ee; }
.workspace input, .workspace textarea { color: var(--ink); background: #0a1115; border: 1px solid var(--line); border-radius: 4px; padding: 7px; font: 14px 'Roboto', sans-serif; width: 100%; min-width: 0; }
.workspace textarea { resize: vertical; }
.workspace label { display: grid; gap: 5px; font-size: 13px; min-width: 0; }
.workspace form { display: grid; gap: 10px; align-content: start; }
.workspace form > button { justify-self: start; }
.workspace .session-form { grid-template-columns: auto minmax(160px,1fr) minmax(140px,1fr) auto; align-items: end; border-block: 1px solid var(--line); padding: 12px 0; }
.session-form strong { align-self: center; font-size: 14px; }
.workspace-notice { padding: 9px 12px; border-left: 2px solid #d2bd84; color: #e3d6b5; font-size: 14px; }
.workspace-notice.error { border-color: #d79a95; color: #edc3bf; }
.workspace-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.workspace-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 15px; white-space: nowrap; }
.workspace-tabs [aria-current="page"] { border-bottom-color: #e8eef2; }
.section-heading { margin: 15px 0 10px; }
.section-heading > span, .compact-copy, .empty-copy { color: var(--muted); font-size: 12px; margin: 6px 0; }
.record-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.table-scroll { overflow-x: auto; min-width: 0; }
.workspace table { border-collapse: collapse; width: 100%; font-size: 13px; }
.workspace th { color: var(--muted); font-weight: 500; text-align: left; }
.workspace th, .workspace td { border-bottom: 1px solid var(--line); padding: 9px 7px; vertical-align: top; overflow-wrap: anywhere; }
.workspace td small { display: block; color: var(--muted); margin-top: 4px; }
.workspace td button { min-height: 28px; padding: 4px 7px; }
.detail-pane { border-left: 1px solid var(--line); padding-left: 18px; min-width: 0; }
.detail-pane dl { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 7px; font-size: 13px; }
.detail-pane dt { color: var(--muted); }
.detail-pane dd { margin: 0; overflow-wrap: anywhere; }
.workspace pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow-y: auto; background: #05090c; border: 1px solid var(--line); padding: 10px; font: 12px/1.5 'Roboto Mono', monospace; }
.workspace details { margin-top: 12px; font-size: 13px; }
.workspace summary { cursor: pointer; padding: 7px 0; }
.connection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.connection-grid > section + section { padding-left: 24px; border-left: 1px solid var(--line); }
.workspace fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.workspace legend { padding: 0 0 7px; color: var(--muted); font-size: 12px; }
.workspace fieldset label { display: flex; align-items: center; gap: 7px; font-size: 12px; overflow-wrap: anywhere; }
.workspace input[type="checkbox"] { flex: 0 0 auto; width: 14px; height: 14px; min-height: 0; margin: 0; accent-color: #dbe7ec; }
.connection-item { border: 1px solid var(--line); border-radius: 5px; margin-top: 12px; padding: 9px; font-size: 12px; overflow-wrap: anywhere; }
.connection-item p { margin: 5px 0 9px; font-size: 12px; }
.resource-band { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.resource-band h3 { margin: 0 auto 0 0; }
.resource-band a { text-decoration: none; }
.conversation-workspace { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(0,2fr); gap: 20px; }
.conversation-list { border-right: 1px solid var(--line); padding-right: 14px; min-width: 0; }
.conversation-list button { text-align: left; display: grid; gap: 4px; width: 100%; margin-bottom: 7px; }
.conversation-list button[aria-pressed="true"] { border-color: #e8eef2; }
.conversation-list small { color: var(--muted); }
.conversation-pane { min-width: 0; }
.message-list { min-height: 80px; max-height: 420px; overflow-y: auto; margin: 10px 0; }
.message-entry { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.message-entry small { color: var(--muted); font-size: 11px; }
.message-entry p { margin: 5px 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.composer-actions span { font-size: 12px; color: var(--muted); }
.workspace dialog { color: var(--ink); background: #0b1217; border: 1px solid var(--line); border-radius: 6px; width: min(480px,calc(100% - 30px)); padding: 18px; }
.workspace dialog::backdrop { background: #000b; }
.workspace dialog textarea { font-family: 'Roboto Mono', monospace; margin-bottom: 10px; }
.workspace .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media(max-width:800px) {
  .record-workspace { grid-template-columns: 1fr; }
  .detail-pane { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .workspace .session-form { grid-template-columns: 1fr 1fr; }
  .session-form strong { grid-column: 1/-1; }
  .connection-grid { gap: 16px; }
  .connection-grid > section + section { padding-left: 16px; }
}
@media(max-width:560px) {
  .workspace { padding: 10px; }
  .workspace-tabs button { font-size: 11px; padding: 9px 8px; }
  .workspace-title { align-items: flex-start; }
  .workspace-title h1 { font-size: 21px; }
  .workspace-state { max-width: 140px; }
  .workspace .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .connection-grid, .conversation-workspace { grid-template-columns: 1fr; }
  .connection-grid > section + section { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .conversation-list { border-right: 0; padding: 0; max-height: 220px; overflow: auto; }
  .workspace .section-heading { flex-wrap: wrap; }
  .workspace fieldset { grid-template-columns: 1fr; }
}
