@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a2233;
  background: #f6f7f9;
  --rail: 264px;
  --inbox: 384px;
  --line: #e6e9ee;
  --line-strong: #e1e5ea;
  --text: #161c27;
  --muted: #8a93a3;
  --muted-strong: #6b7280;
  --soft: #f6f7f9;
  --soft-blue: #e9eef6;
  --panel: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1a3c8c;
  --violet: #6d28d9;
  --violet-soft: #f4f0ff;
  --green: #117c6f;
  --red: #b42318;
  --shadow: 0 18px 44px rgba(22, 28, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: var(--blue);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: pretty;
}

h2 {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

code,
pre,
textarea[readonly] {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre,
code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}

pre {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #2c3543;
  outline: 0;
  padding: 9px 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

::selection {
  background: #bcd2ff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 6px;
  background: #d3d8e0;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #b6bdc9;
  background-clip: content-box;
}

@keyframes osf-toast {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shell */
#app {
  display: grid;
  grid-template-columns: var(--rail) var(--inbox) minmax(0, 1fr);
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: var(--soft);
  color: #1a2233;
  font-size: 13px;
  letter-spacing: 0;
}

#app.access-mode,
#app.projects-mode,
#app.settings-mode {
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

#app.rail-collapsed {
  --rail: 62px;
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  transition: width 0.18s ease;
}

.brand,
.pane-header {
  height: 52px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #111726;
  color: #7fb0ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.brand strong {
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-pill {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
}

.icon-button,
.mini-action,
.icon-action,
.secondary,
.primary-action,
.status-filter,
.form-actions button,
.comment-form button,
.access-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #d4dae2;
  border-radius: 7px;
  background: #fff;
  color: #2c3543;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.icon-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin-left: auto;
  padding: 0;
  color: var(--muted);
}

.icon-button:hover,
.mini-action:hover,
.icon-action:hover,
.secondary:hover,
.status-filter:hover {
  background: #f2f5f8;
}

.primary-action {
  height: 30px;
  border-color: #ddd6fe;
  border-radius: 8px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 0 11px;
  font-size: 12px;
}

.primary-action:hover {
  background: #ede9fe;
}

.text-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.rail-nav {
  display: grid;
  gap: 3px;
  padding: 10px 10px 4px;
}

.rail-nav button {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  width: 100%;
  min-height: 33px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #37414f;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.rail-nav button:hover {
  background: #eef1f5;
}

.rail-nav button[aria-current="true"] {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.nav-icon {
  display: inline-flex;
  flex: none;
  color: currentColor;
}

.nav-label,
.rail-nav em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-nav em {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.rail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 20px;
}

.rail-rule {
  height: 1px;
  margin: 6px 0 14px;
  background: #eef0f3;
}

.rail-card,
.project-list,
.login-form,
.activity,
.links {
  display: grid;
  gap: 8px;
}

.rail-card {
  gap: 10px;
}

.rail-heading,
.section-title-row,
.detail-header,
.access-header,
.copy-fallback .section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rail-heading h2,
.token span,
.small-label,
legend {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rail-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mini-action {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  border-radius: 5px;
  padding: 0;
  color: #525b6b;
  font-size: 13px;
}

.login-form {
  margin-bottom: 16px;
}

.api-key-card,
.access-key-card {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.api-key-card p,
.access-key-card p,
.api-key-card small,
.access-key-card small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.api-key-card .token {
  margin-bottom: 0;
}

.rail-card-action {
  width: 100%;
}

.login-form button,
.form-actions button[type="submit"],
.comment-form button,
.access-actions button:not(.secondary) {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.token {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.token-box {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
  color: var(--muted);
}

.token-box input {
  width: 10px;
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3a4253;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  padding: 0;
}

.project-list {
  gap: 2px;
  margin-bottom: 6px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #26303f;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.project-item:hover {
  background: #eef1f5;
}

.project-item[aria-current="true"] {
  background: var(--soft-blue);
}

.project-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item em {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.project-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--dot);
  flex: none;
}

.project-icon {
  display: inline-flex;
  color: #525b6b;
  flex: none;
}

.new-project {
  margin: 6px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.new-project h2 {
  font-size: 12px;
}

.new-project input {
  height: 30px;
}

.new-project textarea {
  min-height: 54px;
  max-height: 90px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  resize: none;
}

.rail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  padding: 9px 14px;
}

.footer-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dde6f6;
  color: #3a63b8;
  font-size: 10px;
  font-weight: 700;
}

.rail-footer span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #475061;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-footer .text-button {
  color: #8a93a3;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.rail-footer:hover .text-button,
.rail-footer:focus-within .text-button {
  opacity: 1;
}

#app.rail-collapsed .brand-copy,
#app.rail-collapsed .nav-label,
#app.rail-collapsed .rail-nav em,
#app.rail-collapsed .rail-scroll,
#app.rail-collapsed .rail-footer {
  display: none;
}

#app.rail-collapsed .rail {
  align-items: center;
}

#app.rail-collapsed .rail-nav button {
  justify-content: center;
}

/* Inbox */
.inbox-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fff;
}

.pane-header {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  padding: 0 16px;
}

.inbox-title {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-count {
  border-radius: 5px;
  background: #f1f3f6;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 1px 6px;
}

.status-filter {
  height: 26px;
  min-height: 26px;
  border-radius: 6px;
  color: #525b6b;
  padding: 0 8px;
  font-size: 12px;
}

.status-filter-wrap {
  position: relative;
  margin-left: auto;
}

.status-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: grid;
  min-width: 162px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.status-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.status-menu button:last-child {
  border-bottom: 0;
}

.status-menu button:hover,
.status-menu button[aria-checked="true"] {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.status-menu em {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-style: normal;
}

.feedback-list {
  overflow: auto;
}

.feedback-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  padding: 11px 15px 12px;
  color: inherit;
  text-align: left;
}

.feedback-item:hover {
  background: #f7f9fb;
}

.feedback-item[aria-current="true"] {
  border-left-color: var(--blue);
  background: var(--soft-blue);
}

.feedback-row-top,
.feedback-row-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.feedback-id,
.issue-id {
  color: #9098a6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.type-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  height: 17px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  color: var(--c);
  font-size: 10.5px;
  font-weight: 600;
  padding: 0 6px;
}

.status-chip {
  gap: 4px;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.feedback-row-top time {
  margin-left: auto;
  color: #a2aab6;
  font-size: 11px;
  white-space: nowrap;
}

.feedback-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #222a37;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feedback-row-bottom small {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--c);
  font-size: 11px;
  font-weight: 600;
}

.feedback-row-bottom em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #aab0bb;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

/* Detail */
.detail {
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  background: var(--soft);
  padding: 0 28px 60px;
}

.detail-header,
.access-header {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0 14px;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: block;
  min-height: 146px;
  background: linear-gradient(#f6f7f9 78%, rgba(246, 247, 249, 0));
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}

.detail-title {
  min-width: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  margin-bottom: 0;
}

.detail-meta .issue-id {
  font-size: 12px;
}

.detail-meta .type-chip {
  height: 19px;
  border-radius: 5px;
  font-size: 11px;
  padding: 0 7px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.meta-dot {
  color: #a2aab6;
  font-size: 11.5px;
}

.action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: none;
  margin-left: auto;
}

.quick-actions {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
}

.icon-action {
  width: 32px;
  min-width: 32px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-right: 1px solid #eceef2;
  border-radius: 0;
  padding: 0;
  color: #344054;
}

.quick-actions .icon-action:last-child {
  border-right: 0;
}

.detail-quick-triage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
}

.quick-chip:hover {
  border-color: #b8c6d9;
  background: #f7faff;
}

.quick-chip:disabled {
  opacity: 0.48;
  cursor: default;
}

.external-action {
  border: 1px solid #d4dae2;
  border-radius: 8px;
}

.feed-panel {
  display: grid;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  margin: 13px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.panel-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  border: 0;
  background: #fff;
  color: #2c3543;
  padding: 12px 14px;
  text-align: left;
}

.panel-head:hover {
  background: #fafbfc;
}

.panel-arrow {
  display: inline-flex;
  color: #9aa2ae;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.feed-panel[data-open="true"] .panel-arrow {
  transform: rotate(90deg);
}

.panel-icon {
  display: inline-flex;
  color: #525b6b;
}

.panel-title {
  overflow: hidden;
  color: #2c3543;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-meta {
  margin-left: auto;
  overflow: hidden;
  color: #9aa2ae;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-body {
  display: none;
  border-top: 1px solid #eef0f3;
}

.feed-panel[data-open="true"] .panel-body {
  display: block;
}

.triage-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 11px 12px;
  padding: 13px 14px;
}

.triage-layout label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.triage-layout label span,
.form-grid label span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.triage-layout label strong,
.triage-layout input,
.triage-layout select {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #2c3543;
  padding: 0 9px;
  font-size: 12.5px;
  font-weight: 500;
}

.triage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
  padding: 10px 14px;
}

.triage-actions span {
  color: #93a0b5;
  font-size: 11.5px;
  font-weight: 500;
}

.save {
  height: 30px;
  min-height: 30px;
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: #a9b5c8;
  color: #fff;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.save:hover {
  filter: brightness(0.96);
}

.screenshot-frame {
  position: relative;
  padding: 16px;
  background: #eef1f4;
}

.screenshot-browser {
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.screenshot-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f4f6;
  padding: 0 9px;
}

.screenshot-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.screenshot-chrome i:nth-child(1) {
  background: #f87171;
}

.screenshot-chrome i:nth-child(2) {
  background: #fbbf24;
}

.screenshot-chrome i:nth-child(3) {
  background: #34d399;
}

.screenshot-url {
  max-width: min(460px, 70%);
  margin-left: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #9aa2ae;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  padding: 1px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot {
  display: block;
  width: 100%;
  height: 200px;
  max-height: 200px;
  object-fit: contain;
  background: #fff;
}

.screenshot-empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.screenshot-frame figcaption {
  display: none;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fafbfc;
}

.attachment-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.attachment-card img,
.attachment-file-glyph {
  width: 78px;
  height: 62px;
  border-radius: 7px;
  object-fit: cover;
  background: #f1f4f8;
}

.attachment-file-glyph {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.attachment-card div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attachment-card strong,
.attachment-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card strong {
  color: #222a37;
  font-size: 13px;
  font-weight: 600;
}

.attachment-card span {
  color: var(--muted);
  font-size: 11.5px;
}

.attachment-card a {
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.devtools-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef0f3;
  padding: 0 6px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 -2px 0 transparent;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.tab span {
  border-radius: 5px;
  background: #f1f3f6;
  color: #6b7280;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  padding: 1px 6px;
}

.devtools-content {
  min-width: 0;
}

.table-list {
  max-height: 240px;
  overflow-y: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f4f5f7;
  padding: 7px 14px;
}

.row span:first-child {
  width: 46px;
  flex: none;
  border-radius: 4px;
  background: color-mix(in srgb, var(--row-color, #475061) 12%, #fff);
  color: var(--row-color, #475061);
  padding: 2px 0;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.row.error {
  --row-color: #dc2626;
}

.row.warn {
  --row-color: #f59e0b;
}

.row code {
  min-width: 0;
  flex: 1;
  color: #2c3543;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-word;
}

.row time {
  flex: none;
  color: #aab0bb;
  font-size: 10.5px;
  white-space: nowrap;
}

.network-row {
  align-items: center;
}

.network-row span:first-child {
  width: 42px;
  background: transparent;
  color: #475061;
  text-align: left;
}

.network-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-row time {
  min-width: 92px;
  text-align: right;
}

.panel-content {
  padding: 13px 14px;
}

dl {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 13px 14px;
}

.source-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.source-grid pre {
  border-color: #1c2334;
  background: #0f1320;
  color: #9fb0cc;
  font-size: 10.5px;
  line-height: 1.55;
}

.environment-list {
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 13px 14px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 14px 0;
}

.activity {
  margin: 0;
  padding: 12px 14px 14px 34px;
}

.activity li {
  padding: 4px 0;
}

.activity span,
.empty,
.eyebrow,
.members-section p,
.checkbox-group p,
small,
figcaption {
  color: var(--muted);
}

.activity span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.links {
  margin: 0;
  padding: 13px 14px;
  list-style: none;
}

.links li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.empty {
  padding: 18px;
}

/* Access */
.access-mode .detail,
.projects-mode .detail,
.settings-mode .detail {
  padding: 22px 28px 70px;
}

.access-mode .detail > section,
.projects-mode .detail > form,
.projects-mode .detail > section,
.settings-mode .detail > section {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.access-header {
  align-items: center;
  padding-top: 0;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 18px 0 12px;
  background: linear-gradient(#f6f7f9 88%, rgba(246, 247, 249, 0));
}

.project-header-title {
  min-width: 0;
}

.project-header-title h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

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

.agent-button {
  color: var(--violet);
}

.project-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #127a45;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.project-status[data-enabled="false"] {
  background: #f3f4f6;
  color: #6b7280;
}

.access-drawer,
.members-section,
.reveal-key {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.members-section,
.integration-section,
.field-with-help,
.project-device-group {
  scroll-margin-top: 18px;
}

.agent-drawer {
  border-color: #e1d7ff;
  background: #fbf9ff;
}

.onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.onboarding-card h2 {
  margin-bottom: 4px;
  font-size: 15px;
}

.onboarding-card p,
.onboarding-card li {
  color: var(--muted-strong);
  line-height: 1.45;
}

.onboarding-card ol {
  margin: 0;
  padding-left: 18px;
}

.compact-button {
  min-height: 30px;
  padding: 0 11px;
}

.project-setup-nav {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
}

.project-setup-nav-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.project-setup-nav-header h2 {
  margin: 0;
  font-size: 13px;
}

.project-setup-nav-header p {
  color: var(--muted);
  font-size: 12px;
}

.setup-checklist-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 7px;
}

.project-setup-nav .setup-checklist-summary {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.setup-step-tile {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 7px 6px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    transform 0.12s ease;
}

.project-setup-nav .setup-step-tile {
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center start;
  min-height: 34px;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 8px;
}

.setup-step-tile:hover {
  transform: translateY(-1px);
  border-color: #bcd0f5;
  background: #f8fbff;
}

.setup-step-tile.static {
  cursor: default;
}

.setup-step-tile.static:hover {
  transform: none;
  border-color: #dfe7f2;
  background: #fff;
}

.setup-step-tile > span {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #087443;
  font-size: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.project-setup-nav .setup-step-tile > span {
  width: 18px;
  height: 18px;
}

.setup-step-tile > span::before {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.project-setup-nav .setup-step-tile > span::before {
  width: 7px;
  height: 4px;
}

.setup-step-tile[data-done="false"] > span {
  background: #fff7ed;
  color: #c2410c;
}

.setup-step-tile[data-done="false"] > span::before {
  content: "!";
  width: auto;
  height: auto;
  border: 0;
  font-size: 12px;
  line-height: 1;
  transform: none;
}

.setup-step-tile[data-optional="true"][data-done="false"] > span {
  background: #edf3ff;
  color: #1d4ed8;
}

.setup-step-tile[data-optional="true"][data-done="false"] > span::before {
  content: "i";
}

.setup-step-tile strong {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-setup-nav .setup-step-tile strong {
  font-size: 11px;
  text-align: left;
}

.setup-checklist-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.setup-check > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #087443;
  font-size: 10px;
  font-weight: 850;
}

.setup-check[data-done="false"] > span {
  background: #fff7ed;
  color: #c2410c;
}

.setup-check[data-optional="true"][data-done="false"] > span {
  background: #edf3ff;
  color: #1d4ed8;
}

.setup-check strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12.5px;
}

.setup-check p {
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.35;
}

.setup-jump {
  align-self: center;
  white-space: nowrap;
}

.setup-scroll-highlight {
  animation: setup-target-pulse 1.45s ease;
}

@keyframes setup-target-pulse {
  0%,
  100% {
    box-shadow: none;
  }

  20%,
  72% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 12px 30px rgba(37, 99, 235, 0.12);
  }
}

@media (max-width: 1080px) {
  .setup-checklist-summary {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  }

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

.settings-explainer {
  display: grid;
  gap: 4px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #eff6ff;
  padding: 12px;
  color: #1e3a8a;
}

.settings-explainer p {
  color: #46628f;
  line-height: 1.45;
}

.settings-explainer.neutral {
  border-color: var(--line);
  background: #fbfcfe;
  color: var(--ink);
}

.settings-explainer.neutral p {
  color: var(--muted-strong);
}

.settings-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 0;
  padding: 0;
}

.onboarding-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  padding: 12px;
}

.onboarding-option input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.onboarding-option-copy {
  display: grid;
  gap: 4px;
}

.onboarding-option-copy strong {
  color: var(--ink);
}

.onboarding-option-copy small {
  color: var(--muted-strong);
  line-height: 1.45;
}

.option-state {
  align-self: start;
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.option-state[data-checked="true"] {
  background: #e7f7ef;
  color: #127a45;
}

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

.form-grid.compact {
  grid-template-columns: minmax(220px, 0.4fr);
}

.password-grid {
  max-width: 760px;
}

.form-grid.compact.password-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.password-reset-drawer {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.project-settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
  gap: 12px;
}

.wide-label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field-with-help {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-settings-grid > .wide-label {
  grid-column: 1 / -1;
}

.wide-label > span,
.field-label-row label,
.project-device-group legend,
.project-token-box span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.help-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-help {
  display: inline-grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.field-help:hover,
.field-help:focus-visible {
  border-color: #9fb8e8;
  background: var(--soft-blue);
  color: var(--blue-dark);
  outline: none;
}

.help-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100vw - 44px));
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  color: #e5e7eb;
  padding: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  visibility: hidden;
}

.help-popover strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.help-popover code {
  display: block;
  border: 1px solid #293445;
  border-radius: 5px;
  background: #0b1220;
  color: #bfdbfe;
  padding: 4px 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  white-space: normal;
  word-break: break-word;
}

.help-popover em {
  color: #cbd5e1;
  font-style: normal;
}

.help-anchor:hover .help-popover,
.help-anchor:focus-within .help-popover,
.help-anchor[data-open="true"] .help-popover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.wide-label small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.project-settings-form textarea {
  min-height: 78px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  line-height: 1.45;
}

.access-form.project-settings-layout {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}

.access-form.project-settings-layout > .members-section {
  margin-top: 0;
}

.issue-routing-section {
  align-content: start;
}

.routing-builder {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
}

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

.routing-builder-header span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.routing-builder-header p,
.routing-group-title span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.routing-policy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.routing-policy label {
  display: grid;
  gap: 5px;
}

.routing-policy label > span,
.routing-row > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.routing-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.routing-toggle {
  position: relative;
  display: block;
  min-width: 0;
}

.routing-toggle input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.routing-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  background: #fff;
  color: #4b5563;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.routing-toggle input:checked + span {
  border-color: #bfd1f6;
  background: #edf4ff;
  color: #1d4f9f;
}

.routing-toggle input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.routing-group {
  display: grid;
  gap: 8px;
}

.routing-group-title {
  display: grid;
  gap: 2px;
}

.routing-group-title strong {
  color: #1a2233;
  font-size: 13px;
}

.routing-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.routing-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.routing-row input {
  min-height: 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
}

.routing-builder[disabled] {
  opacity: 0.72;
}

.routing-safety-summary {
  display: grid;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.routing-safety-summary strong {
  color: #1e3a8a;
  font-size: 12.5px;
}

.routing-safety-summary div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.routing-safety-summary span {
  display: grid;
  gap: 3px;
  border: 1px solid #e4ecfb;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.35;
}

.routing-safety-summary b {
  color: var(--ink);
  font-size: 11.5px;
}

.project-device-group {
  padding-top: 2px;
}

.project-device-group.is-invalid-group {
  border: 1px solid #f0b8b8;
  border-radius: 8px;
  background: #fff7f7;
  padding: 8px;
}

.project-device-group legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-token-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.project-token-box code {
  color: #2c3543;
  font-size: 12px;
}

.project-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.project-create-section .new-project {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.project-create-section .new-project h2 {
  display: none;
}

.project-create-section .new-project input {
  height: 38px;
}

.project-create-section .new-project textarea {
  min-height: 80px;
  max-height: 160px;
  resize: vertical;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.project-overview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  padding: 13px;
}

.project-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.project-card-dot {
  margin-top: 7px;
}

.project-card-top h2 {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-top p {
  margin-top: 2px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

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

.project-card-metrics div {
  display: grid;
  gap: 2px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.project-card-metrics strong {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 17px;
  font-weight: 700;
}

.project-card-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.project-card-details {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px 12px;
  border-top: 1px solid #eef0f3;
  padding-top: 12px;
}

.project-card-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-card-details dd {
  color: #334155;
  font-size: 12px;
}

.project-card-details dd .access-chip {
  margin-right: 5px;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid #eef0f3;
  padding-top: 12px;
}

.project-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: #fbfcfe;
}

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

.integration-section-heading {
  padding-top: 6px;
}

.integration-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.integration-tabs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.integration-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  border: 0;
  border-right: 1px solid #eceef2;
  background: transparent;
  color: #4b5563;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.integration-tab:last-child {
  border-right: 0;
}

.integration-tab:hover {
  background: #f7f9fb;
}

.integration-tab[aria-selected="true"] {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.integration-tab span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.integration-tab em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #127a45;
  padding: 0 7px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}

.integration-tab em[data-enabled="false"] {
  background: #f3f4f6;
  color: #6b7280;
}

.integration-panels {
  display: grid;
}

.integration-panel[hidden] {
  display: none;
}

.integration-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.integration-card-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.integration-card-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.integration-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.integration-title-row h2 {
  font-size: 14px;
}

.integration-test-result {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px;
}

.integration-test-result[data-ok="false"] {
  border-color: #fed7aa;
  background: #fff8f0;
}

.integration-test-result[data-ok="pending"] {
  border-color: #dbe3ef;
  background: #f8fafc;
}

.integration-test-result strong {
  color: #0f172a;
  font-size: 12.5px;
}

.integration-test-result p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.4;
}

.integration-test-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
}

.integration-test-result dl > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.integration-test-result dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.integration-test-result dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-setup-wizard {
  display: grid;
  gap: 12px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
}

.github-setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.github-setup-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  border: 1px solid #e4e9f2;
  border-radius: 9px;
  background: #fff;
  padding: 10px;
}

.github-setup-step > span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 850;
}

.github-setup-step[data-done="true"] > span {
  background: #e9f8ef;
  color: #087443;
}

.github-setup-step strong,
.label-preview-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12.5px;
}

.github-setup-step p,
.label-preview-card p {
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.35;
}

.label-preview-card {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e8edf5;
  padding-top: 10px;
}

.label-preview-rows {
  display: grid;
  gap: 7px;
}

.label-preview-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.label-preview-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label-preview-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.label-preview-row code {
  border: 1px solid #dbe5f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #27548a;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.integration-guide {
  display: grid;
  gap: 9px;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  padding: 10px 0;
}

.integration-guide > strong {
  color: var(--ink);
  font-size: 13px;
}

.integration-guide ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integration-guide li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.integration-guide li > span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.integration-guide p {
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.4;
}

.integration-guide code {
  font-size: 10.5px;
}

.integration-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}

.install-verification {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.install-verification-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.install-verification-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.install-verification-copy p,
.install-verification-actions small {
  margin: 3px 0 0;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.4;
}

.install-verification-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  border-top: 1px solid #e5edf7;
  padding-top: 10px;
}

.install-verification-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
}

.install-verification-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.install-verification-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.install-verification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-install-section textarea {
  min-height: 220px;
  border-color: #1c2334;
  background: #0f1320;
  color: #9fb0cc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.form-grid label,
.access-form {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.inline-check input {
  width: 14px;
  height: 14px;
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.checkbox-group legend {
  flex-basis: 100%;
  padding: 0;
}

.checkbox-group p {
  flex-basis: 100%;
  font-size: 12px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.checkbox-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-group label span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #d7dce5;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  padding: 5px 9px;
  font-size: 11.5px;
}

.checkbox-group input:checked + span {
  border-color: #bfd1f6;
  background: #edf4ff;
  color: #1d4f9f;
}

.scopes {
  max-height: 190px;
  overflow: auto;
}

.section-title-row {
  align-items: center;
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  min-height: 30px;
  border: 0;
  border-right: 1px solid #eceef2;
  background: transparent;
  color: #525b6b;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button[aria-current="true"] {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.access-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  padding: 12px;
}

.access-card.is-muted {
  opacity: 0.62;
}

.access-card.is-current {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: inset 3px 0 0 var(--blue);
}

.access-card.is-current-key {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.access-card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.access-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.access-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.access-avatar[data-role="Admin"] {
  background: #ede9fe;
  color: #6d28d9;
}

.access-avatar[data-role="Agent"] {
  background: #ecfeff;
  color: #0e7490;
}

.key-avatar svg {
  width: 15px;
  height: 15px;
}

.access-name {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.access-name strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-name span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge,
.state-badge,
.current-badge,
.key-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.role-badge {
  background: #e8f0ff;
  color: #1d4ed8;
}

.role-badge[data-role="Admin"] {
  background: #f1ebff;
  color: #6d28d9;
}

.role-badge[data-role="Agent"] {
  background: #ecfeff;
  color: #0e7490;
}

.state-badge {
  background: #f3f4f6;
  color: #64748b;
}

.current-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.key-prefix {
  border: 1px solid #d7dce5;
  background: #fff;
  color: #475061;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.access-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.6fr);
  gap: 10px;
  min-width: 0;
}

.api-key-detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
}

.access-detail {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.access-detail > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475061;
  padding: 3px 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.scope-chip {
  background: #f8fafc;
  color: #334155;
}

.project-chip {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-chip {
  background: #f0fdf4;
  color: #166534;
}

.lifecycle-chip {
  background: #fff;
  color: #64748b;
}

.access-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: max-content;
  align-self: center;
}

.data-table {
  display: grid;
  gap: 6px;
  overflow: auto;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(82px, 0.5fr) minmax(180px, 1.3fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
  min-width: 780px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 9px 10px;
}

.keys-table .table-row {
  grid-template-columns: minmax(130px, 0.9fr) minmax(140px, 1fr) minmax(90px, 0.6fr) minmax(190px, 1.4fr) minmax(120px, 0.8fr) auto;
}

.table-head {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.muted-row {
  opacity: 0.58;
}

.compact-actions {
  justify-content: flex-end;
  gap: 6px;
}

.danger-action {
  border-color: #f0c8c8;
  color: #c0392b;
}

.reveal-key {
  border-color: #b9d3f8;
  background: #eff6ff;
}

.reveal-key textarea,
.copy-fallback textarea {
  min-height: 74px;
  font-size: 12px;
}

.empty-state,
.copy-fallback {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.empty-state {
  display: grid;
  gap: 8px;
  align-content: start;
  max-width: 860px;
  margin: 20px auto 0;
  padding: 22px;
}

.copy-fallback {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(720px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 120px));
  padding: 14px;
  box-shadow: var(--shadow);
}

.copy-fallback textarea {
  max-height: 360px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(460px, calc(100vw - 36px));
  min-height: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 11px 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: osf-toast 0.16s ease-out;
}

.toast:empty {
  display: none;
}

.toast[data-kind="error"] {
  background: var(--red);
}

@media (max-width: 1220px) {
  #app {
    --rail: 232px;
    --inbox: 330px;
  }

  .detail {
    padding-right: 18px;
    padding-left: 18px;
  }

  .detail-header,
  .access-header {
    gap: 12px;
  }
}

@media (max-width: 1300px) {
  .detail-header {
    min-height: 160px;
  }

  .detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .action-group {
    justify-self: end;
    margin-left: 0;
  }
}

@media (max-width: 1080px) {
  #app {
    --inbox: 320px;
  }

  .detail-header {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .detail-top {
    align-items: flex-start;
  }

  .action-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  .source-grid,
  .form-grid,
  .form-grid.compact.password-grid,
  .project-settings-grid,
  .onboarding-card,
  .settings-checkboxes,
  .setup-checklist-detail,
  .github-setup-steps,
  .routing-safety-summary div {
    grid-template-columns: 1fr;
  }

  .access-card {
    grid-template-columns: 1fr;
  }

  .access-card-actions {
    justify-content: flex-start;
    min-width: 0;
    border-top: 1px solid #eef0f3;
    padding-top: 10px;
  }

  .access-detail-grid,
  .api-key-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .label-preview-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  #app,
  #app.access-mode,
  #app.projects-mode,
  #app.settings-mode {
    display: block;
    overflow: auto;
  }

  .rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #app:not(.rail-collapsed) .brand-copy,
  #app:not(.rail-collapsed) .nav-label,
  #app:not(.rail-collapsed) .rail-nav em,
  #app:not(.rail-collapsed) .rail-scroll,
  #app:not(.rail-collapsed) .rail-footer {
    display: flex;
  }

  #app:not(.rail-collapsed) .rail-scroll {
    display: block;
  }

  #app:not(.rail-collapsed) .rail-footer {
    display: flex;
  }

  .inbox-pane,
  .detail {
    height: auto;
  }

  .detail {
    overflow: visible;
    padding: 14px;
  }

  .detail-header,
  .access-header,
  .section-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .triage-layout,
  dl,
  .environment-list,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .save,
  .comment-form button {
    width: 100%;
  }

  .onboarding-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .option-state {
    grid-column: 2;
    justify-self: start;
  }

  .access-identity {
    flex-wrap: wrap;
  }

  .access-name {
    flex-basis: calc(100% - 40px);
  }

  .access-detail-grid,
  .api-key-detail-grid {
    grid-template-columns: 1fr;
  }

  .integration-guide ol {
    grid-template-columns: 1fr;
  }

  .routing-switches {
    grid-template-columns: 1fr;
  }

  .setup-checklist-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-setup-nav .setup-checklist-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================================
   MOBILE — ≤ 640 px
   ============================================================
   Goal: single-column usable layout on a 375 px phone.
   All rules here are inside the max-width query so desktop
   (≥ 1280 px) is completely unaffected.
   ============================================================ */
@media (max-width: 640px) {
  /* --- App shell: vertical flex column ------------------------ */
  #app,
  #app.access-mode,
  #app.projects-mode,
  #app.settings-mode {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow: initial;
  }

  /* --- Rail: slim sticky top nav bar ------------------------- */
  .rail {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    transition: none;
  }

  /* Brand keeps just the logo mark on the left */
  .brand {
    flex: none;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  /* Hide all rail sidebar content — always, regardless of collapsed state */
  .brand-copy,
  #app:not(.rail-collapsed) .brand-copy,
  .rail-scroll,
  #app:not(.rail-collapsed) .rail-scroll,
  .rail-footer,
  #app:not(.rail-collapsed) .rail-footer,
  .rail-nav em,
  #app:not(.rail-collapsed) .rail-nav em {
    display: none !important;
  }

  /* Nav items: horizontal scrollable row */
  .rail-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .rail-nav button {
    flex: none;
    min-height: 36px;
    border-radius: 8px;
    padding: 0 12px;
    white-space: nowrap;
    justify-content: center;
  }

  /* Nav labels stay visible in the horizontal bar */
  .nav-label,
  #app:not(.rail-collapsed) .nav-label {
    display: inline !important;
  }

  /* --- Inbox pane: constrained height so detail is visible --- */
  .inbox-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
    max-height: 44vh;
    min-height: 140px;
    overflow: hidden;
  }

  .feedback-list {
    -webkit-overflow-scrolling: touch;
  }

  /* --- Detail: natural flow, reduced padding ---------------- */
  .detail {
    flex: 1;
    height: auto;
    overflow: visible;
    padding: 12px 14px 48px;
  }

  .access-mode .detail,
  .projects-mode .detail,
  .settings-mode .detail {
    padding: 12px 14px 48px;
  }

  /* Remove sticky from detail-header on mobile (page scrolls, not .detail) */
  .detail-header {
    position: relative;
    min-height: 0;
    background: transparent;
  }

  /* Detail top: stack title + actions vertically */
  .detail-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .action-group {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .detail-quick-triage {
    flex-wrap: wrap;
  }

  /* --- Project / access headers ----------------------------- */
  .project-header {
    position: relative;
    top: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0 8px;
  }

  .access-actions {
    justify-content: flex-start;
  }

  /* --- Tables: horizontal scroll wrapper -------------------- */
  .data-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Onboarding card: stack vertically -------------------- */
  .onboarding-card {
    grid-template-columns: 1fr;
  }

  /* --- Form grids that weren't already collapsed ------------ */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-settings-grid {
    grid-template-columns: 1fr;
  }

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

  .github-setup-steps {
    grid-template-columns: 1fr;
  }

  .routing-safety-summary div {
    grid-template-columns: 1fr;
  }

  /* Attachment list: single column */
  .attachment-list {
    grid-template-columns: 1fr;
  }

  /* Access card: already handled by 760px, ensure actions stack */
  .access-card-actions {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
}
