:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f2;
  color: #171a17;
  font-synthesis: none;
  --ink: #171a17;
  --muted: #687068;
  --line: #d9ded8;
  --surface: #ffffff;
  --surface-soft: #edf0ec;
  --dark: #111311;
  --green: #26734d;
  --green-soft: #e1f1e7;
  --red: #b42318;
  --red-soft: #fce8e6;
  --amber: #9a5b00;
  --amber-soft: #fff0d4;
  --blue: #285f8f;
  --blue-soft: #e6f0f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #f4f5f2;
}

body {
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--dark);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  background: var(--surface);
}

.login-context {
  min-height: 100vh;
  padding: 48px clamp(32px, 7vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark);
  color: #f8faf7;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
}

.login-context-copy {
  max-width: 680px;
}

.login-context h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.login-context p {
  max-width: 610px;
  margin: 0;
  color: #c9cec8;
  font-size: 17px;
  line-height: 1.75;
}

.login-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #343834;
}

.login-step {
  color: #aeb5ae;
  font-size: 13px;
}

.login-step strong {
  display: block;
  margin-bottom: 6px;
  color: #f8faf7;
  font-size: 14px;
  font-weight: 500;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form {
  width: min(100%, 420px);
}

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

.login-form h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 500;
}

.login-form > p {
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.6;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #bcc4bc;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid rgba(38, 115, 77, 0.2);
  border-color: var(--green);
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 650;
}

.primary-button {
  padding: 10px 16px;
  background: var(--dark);
  color: white;
}

.primary-button:hover {
  background: #2b302b;
}

.secondary-button {
  padding: 9px 14px;
  border-color: #c4cbc4;
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.danger-button {
  padding: 9px 14px;
  border-color: #ebaaa5;
  background: var(--surface);
  color: var(--red);
}

.icon-button {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: #c4cbc4;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}

.login-form .primary-button {
  width: 100%;
  min-height: 48px;
}

.error-message {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #f7f9f6;
}

.sidebar .brand-lockup {
  padding: 4px 8px 22px;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.nav-link {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  color: #b9c0b9;
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  background: #292d29;
  color: white;
}

.nav-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #343a34;
  font-size: 11px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 2px;
  border-top: 1px solid #343834;
}

.user-identity strong,
.user-identity span {
  display: block;
}

.user-identity strong {
  font-size: 13px;
  font-weight: 600;
}

.user-identity span {
  margin-top: 3px;
  color: #969f96;
  font-size: 11px;
}

.sidebar-footer button {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8cec8;
  font-size: 12px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 68px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 242, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-button {
  display: none;
}

.store-select {
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #c3cac3;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.connection-indicator {
  color: var(--muted);
  font-size: 12px;
}

.connection-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #8c948c;
}

.connection-indicator.is-connected::before {
  background: var(--green);
}

.connection-indicator.is-pending::before {
  background: #d38b18;
}

.connection-indicator.is-offline::before {
  background: var(--red);
}

.content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px 32px 56px;
}

.page-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 550;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.metric {
  min-height: 124px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

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

.metric-value {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 30px;
  font-weight: 550;
}

.metric-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.page-inspector {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.page-inspector-header {
  min-height: 94px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.page-inspector-header h2,
.page-inspector-empty h2 {
  margin: 3px 0 5px;
  font-size: 19px;
}

.page-inspector-header p,
.page-inspector-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.page-inspector-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto 40px;
  align-items: end;
  gap: 10px;
}

.page-inspector-controls > label {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-inspector-controls select {
  grid-column: 1;
  min-width: 0;
  height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.page-preview-viewports,
.page-inspector-controls > .icon-button {
  grid-row: 1 / span 2;
  align-self: end;
}

.page-preview-viewports {
  grid-column: 2;
}

.page-inspector-controls > .icon-button {
  grid-column: 3;
}

.page-inspector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  min-height: 520px;
}

.page-preview-stage {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #e8ebe7;
}

.storefront-preview-scroll {
  max-height: 620px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #cfd5cf;
}

.storefront-preview-image {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  background: white;
}

.storefront-preview-image.is-mobile {
  width: min(390px, 100%);
}

.storefront-preview-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.page-issue-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.page-issue-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-issue-overlay rect {
  fill: rgba(217, 45, 32, 0.13);
  stroke: #d92d20;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}

.page-issue-overlay:hover rect,
.page-issue-overlay:focus-visible rect {
  fill: rgba(217, 45, 32, 0.25);
  stroke-width: 4px;
}

.page-issue-overlay:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.page-issue-overlay.is-manual rect {
  stroke: #b42318;
}

.page-marker-placement {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(40, 95, 143, 0.08);
  cursor: crosshair;
  touch-action: pan-y;
}

.page-preview-caption {
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #c6ccc6;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.page-preview-caption a {
  color: var(--green);
  font-weight: 700;
}

.page-preview-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-preview-state {
  min-height: 500px;
  padding: 32px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
  text-align: center;
}

.page-preview-state small {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.6;
}

.page-preview-state.is-error strong {
  color: var(--red);
}

.page-preview-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #bcc5bd;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: page-preview-spin 800ms linear infinite;
}

@keyframes page-preview-spin {
  to { transform: rotate(360deg); }
}

.page-issue-panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
}

.page-issue-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.page-issue-panel h3 {
  margin: 18px 0;
  font-size: 18px;
  line-height: 1.35;
}

.page-issue-panel dl {
  margin: 0;
}

.page-issue-panel dl > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.page-issue-panel dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.page-issue-panel dd {
  margin: 0;
  color: #363c36;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page-issue-actions {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.page-marker-help {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: #264d70;
  font-size: 11px;
  line-height: 1.55;
}

.page-inspector-empty {
  min-height: 126px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel-header {
  min-height: 58px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.panel-header a {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.priority-list,
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-item {
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.priority-item:last-child,
.activity-item:last-child {
  border-bottom: 0;
}

.severity {
  width: fit-content;
  min-width: 64px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.severity-critical {
  background: var(--red-soft);
  color: var(--red);
}

.severity-high {
  background: var(--amber-soft);
  color: var(--amber);
}

.severity-medium {
  background: var(--blue-soft);
  color: var(--blue);
}

.priority-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.priority-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.activity-item {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
}

.activity-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.activity-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.segments {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #c9cfc9;
  border-radius: 6px;
  background: var(--surface);
}

.segment {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.segment.active {
  background: var(--dark);
  color: white;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.issue-title {
  display: block;
  max-width: 420px;
  margin-bottom: 4px;
  font-weight: 650;
  line-height: 1.45;
}

.issue-evidence {
  display: -webkit-box;
  max-width: 540px;
  overflow: hidden;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.subtle {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c948c;
}

.status-approved::before,
.status-completed::before,
.status-connected::before,
.status-available::before {
  background: var(--green);
}

.status-awaiting_approval::before,
.status-ready::before,
.status-investigate::before,
.status-queued::before,
.status-preview_queued::before,
.status-running::before,
.status-previewing::before {
  background: #d38b18;
}

.status-rejected::before,
.status-offline::before,
.status-failed::before {
  background: var(--red);
}

.empty-state {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
}

.detail-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.detail-section p {
  margin: 0;
  color: #404640;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

.file-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.file-list li:last-child {
  border-bottom: 0;
}

.diff {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid #c9cfc9;
  border-radius: 4px;
  background: #151815;
  color: #e8ede8;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.policy-list {
  border: 1px solid var(--line);
  background: var(--surface);
}

.policy-row {
  min-height: 72px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 160px auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.policy-row:last-child {
  border-bottom: 0;
}

.policy-label strong {
  display: block;
  font-size: 13px;
}

.policy-label span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

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

.connection-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.connection-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

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

.connection-action {
  flex: 1;
}

.connection-buttons {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.worker-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.worker-row {
  min-height: 44px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.worker-row span,
.worker-row b {
  margin: 0;
  display: block;
}

.worker-row b {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 11px;
}

.text-danger-button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.configuration-note {
  margin-top: 8px;
  display: block;
  color: var(--amber);
  font-size: 11px;
}

.requirement-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.requirement-list li {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.requirement-list li:last-child {
  border-bottom: 0;
}

.compact-modal {
  width: min(560px, 100%);
}

.pairing-code {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font: 700 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  letter-spacing: 0;
}

.connection-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.notice {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: #294457;
  font-size: 12px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.execution-console {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.execution-console-header {
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.execution-console-header h2 {
  margin: 0;
  font-size: 18px;
}

.execution-console-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
}

.command-history {
  max-height: 340px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.command-message {
  width: 100%;
  padding: 15px 18px;
  display: grid;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.command-message:hover {
  background: var(--surface);
}

.command-message strong,
.command-message span {
  overflow-wrap: anywhere;
}

.command-message strong {
  font-size: 12px;
}

.command-message > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.command-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.command-composer {
  min-width: 0;
  padding: 18px;
}

.command-targeting {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.command-field {
  min-width: 0;
}

.command-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.command-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #bcc4bc;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  text-overflow: ellipsis;
}

.command-field select:focus {
  outline: 3px solid rgba(38, 115, 77, 0.2);
  border-color: var(--green);
}

.command-target-summary {
  min-width: 0;
  margin-bottom: 14px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--ink);
}

.command-target-summary strong,
.command-target-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.command-target-summary strong {
  font-size: 11px;
}

.command-target-summary span {
  color: #42554a;
  font-size: 10px;
  line-height: 1.45;
}

.command-composer > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.command-composer textarea {
  width: 100%;
  min-height: 132px;
  padding: 13px;
  resize: vertical;
  border: 1px solid #bcc4bc;
  border-radius: 5px;
  color: var(--ink);
  line-height: 1.6;
}

.command-composer textarea:focus {
  outline: 3px solid rgba(38, 115, 77, 0.2);
  border-color: var(--green);
}

.command-suggestions {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.command-suggestions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c4cbc4;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11px;
}

.command-composer-footer {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.command-composer-footer span {
  color: var(--muted);
  font-size: 10px;
}

.target-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.target-detail-grid > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.target-detail-grid > div:nth-child(2n) {
  border-right: 0;
}

.target-detail-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.target-detail-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.target-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.empty-state.compact {
  padding: 28px 20px;
  font-size: 12px;
}

.product-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-search {
  width: min(520px, 100%);
  display: flex;
  gap: 8px;
}

.product-search input {
  min-width: 0;
  flex: 1;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #bcc4bc;
  border-radius: 5px;
  background: var(--surface);
}

.permission-notice {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.permission-notice strong,
.permission-notice span {
  display: block;
}

.permission-notice a {
  color: var(--blue);
  font-weight: 700;
}

.loading-panel,
.error-state {
  padding: 56px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.error-state button {
  margin-top: 16px;
}

.product-table {
  min-width: 1080px;
}

.product-table th:first-child {
  width: 44px;
}

.product-table th:nth-child(2) {
  width: 34%;
}

.product-table th:nth-child(3) {
  width: 27%;
}

.product-identity {
  min-width: 260px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.product-identity img,
.product-image-placeholder {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  object-fit: cover;
  color: var(--muted);
  font-size: 10px;
}

.product-identity strong,
.product-identity small {
  display: block;
  overflow-wrap: anywhere;
}

.product-identity strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.product-identity small {
  color: var(--muted);
  font-size: 10px;
}

.product-seo-summary {
  min-width: 250px;
  display: grid;
  gap: 9px;
}

.product-seo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-seo-heading > strong {
  font-size: 11px;
  white-space: nowrap;
}

.product-seo-heading > strong.has-issues {
  color: var(--red);
}

.product-seo-heading > strong.no-issues {
  color: var(--muted);
  font-weight: 600;
}

.product-seo-scan {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.product-seo-scan:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-seo-list {
  display: grid;
  gap: 5px;
}

.product-seo-issue {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #4d5854;
  text-align: left;
}

.product-seo-issue > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-seo-issue:hover > span:last-child {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-seo-risk {
  min-width: 24px;
  padding: 2px 3px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.product-seo-risk-critical,
.product-seo-risk-high {
  background: var(--red-soft);
  color: var(--red);
}

.product-seo-risk-medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.product-seo-more {
  color: var(--muted);
  font-size: 9px;
}

.product-state {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product-state-active {
  background: var(--green-soft);
  color: var(--green);
}

.product-state-draft {
  background: var(--amber-soft);
  color: var(--amber);
}

.task-monitor {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.task-monitor-list {
  display: grid;
}

.task-monitor-row {
  min-height: 58px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) minmax(180px, 0.7fr);
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.task-monitor-row:last-child {
  border-bottom: 0;
}

.task-monitor-row:hover {
  background: var(--surface-soft);
}

.task-monitor-row strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.task-monitor-row small {
  color: var(--muted);
}

.section-title {
  margin: 0 0 12px;
  font-size: 15px;
}

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.task-summary-grid > div {
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.task-summary-grid > div:last-child {
  border-right: 0;
}

.task-summary-grid span,
.task-summary-grid strong {
  display: block;
}

.task-summary-grid > div > span:first-child {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.task-logs {
  max-height: 250px;
  overflow: hidden auto;
  border: 1px solid var(--line);
  background: #151815;
}

.task-log {
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #303530;
  color: #e8ede8;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.task-log:last-child {
  border-bottom: 0;
}

.task-log time {
  color: #9ca69c;
}

.task-log span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-log-error span {
  color: #ffaaa3;
}

.task-log-success span {
  color: #8bd0a6;
}

.task-links {
  margin-top: 14px;
}

.preview-error {
  display: grid;
  gap: 4px;
  border-left-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.revoke-notice {
  margin: 18px 0 0;
  border-left-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 5px;
  box-shadow: 0 12px 36px rgba(17, 19, 17, 0.18);
  background: var(--dark);
  color: white;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 19, 17, 0.58);
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden auto;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(17, 19, 17, 0.22);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.mobile-overlay {
  display: none;
}

.audit-running {
  margin-bottom: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dfbd78;
  background: var(--amber-soft);
}

.audit-running strong,
.audit-running span {
  display: block;
}

.audit-progress-stack {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.audit-progress-stack small {
  color: var(--muted);
  font-size: 10px;
}

.audit-progress-stack .audit-polling-error {
  color: var(--red);
  font-weight: 700;
}

.audit-running strong {
  font-size: 13px;
}

.audit-running span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.audit-progress {
  width: 100%;
  height: 7px;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #d8ddd7;
  appearance: none;
}

.audit-progress::-webkit-progress-bar {
  background: #d8ddd7;
  border-radius: inherit;
}

.audit-progress::-webkit-progress-value {
  background: var(--green);
  border-radius: inherit;
}

.audit-progress::-moz-progress-bar {
  background: var(--green);
  border-radius: inherit;
}

.settings-policy-panel {
  margin-top: 22px;
}

.compact-field {
  margin: 0;
}

.modal-badges {
  margin-bottom: 18px;
}

.decision-field {
  margin-top: 18px;
}

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

.provider-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.provider-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.provider-metrics {
  margin: 18px 0 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.provider-metrics span,
.provider-panel small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.provider-metrics b {
  min-height: 24px;
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
}

.seo-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.audit-history {
  max-height: 340px;
  overflow-y: auto;
}

.audit-history-row {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 92px minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.audit-history-row:hover {
  background: var(--surface-soft);
}

.audit-history-row strong {
  font-size: 12px;
}

.audit-history-row small {
  color: var(--muted);
  font-size: 10px;
}

.schedule-form {
  padding: 18px;
}

.schedule-form .checkbox-line {
  margin-bottom: 18px;
}

.seo-issues-toolbar {
  margin-top: 30px;
  align-items: flex-end;
}

.seo-issues-toolbar .section-title {
  margin: 0 0 12px;
}

.table-pagination {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.page-button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.page-button.active {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

.audit-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.audit-comparison span {
  padding: 18px 20px;
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
}

.audit-comparison span:last-child {
  border-right: 0;
}

.audit-comparison b {
  margin-right: 8px;
  color: var(--ink);
  font-size: 22px;
}

.report-list {
  margin: 0;
  padding-left: 18px;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.7;
}

.report-findings {
  display: grid;
  gap: 10px;
}

.report-findings article {
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.report-findings article > strong {
  font-size: 13px;
}

.report-findings article > a {
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 11px;
}

.report-findings pre {
  max-height: 170px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  background: var(--surface-soft);
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.report-findings p {
  color: var(--muted);
  font-size: 11px;
}

.comparison-tag {
  margin-left: 7px;
  color: var(--muted);
  font-size: 10px;
}

.report-pages {
  display: grid;
}

.report-pages > div {
  min-height: 38px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.report-pages a {
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 11px;
}

.report-pages small {
  color: var(--muted);
  font-size: 10px;
}

.http-status {
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.http-ok {
  color: var(--green);
}

.http-error {
  color: var(--red);
}

@media (max-width: 1040px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .dashboard-grid,
  .detail-grid,
  .seo-layout {
    grid-template-columns: 1fr;
  }

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

  .command-layout {
    grid-template-columns: 1fr;
  }

  .command-history {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

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

  .login-context {
    min-height: 340px;
    padding: 28px 24px;
  }

  .login-context h1 {
    margin-top: 48px;
    font-size: 38px;
  }

  .login-context p {
    font-size: 14px;
  }

  .login-steps {
    display: none;
  }

  .login-panel {
    padding: 38px 24px 48px;
  }

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 25;
    width: min(86vw, 300px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-overlay.open {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    border: 0;
    background: rgba(17, 19, 17, 0.45);
  }

  .mobile-menu-button {
    display: grid;
  }

  .topbar {
    padding: 10px 14px;
  }

  .connection-indicator {
    display: none;
  }

  .content {
    padding: 22px 15px 44px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 23px;
  }

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

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

  .audit-running {
    grid-template-columns: 1fr;
  }

  .audit-history-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .audit-history-row small {
    grid-column: 2;
  }

  .audit-comparison {
    grid-template-columns: 1fr;
  }

  .audit-comparison span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-pages > div {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .report-pages small {
    grid-column: 2;
  }

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .execution-console-header,
  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .command-composer-footer {
    grid-template-columns: 1fr;
  }

  .command-targeting,
  .target-detail-grid {
    grid-template-columns: 1fr;
  }

  .target-detail-grid > div,
  .target-detail-grid > div:nth-child(2n),
  .target-detail-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .target-detail-grid > div:last-child {
    border-bottom: 0;
  }

  .command-composer-footer .primary-button {
    width: 100%;
  }

  .permission-notice {
    grid-template-columns: 1fr;
  }

  .product-search {
    width: 100%;
  }

  .product-identity {
    min-width: 0;
  }

  .task-monitor-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .task-summary-grid > div:nth-child(2) {
    border-right: 0;
  }

  .task-summary-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .task-modal .modal-footer {
    flex-wrap: wrap;
  }

  .segments {
    width: 100%;
  }

  .segment {
    flex: 1;
  }

  .table-wrap:has(.responsive-table) {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tr {
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .responsive-table td {
    min-height: 45px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    overflow-wrap: anywhere;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .responsive-table .issue-title {
    max-width: none;
  }

  .responsive-table .issue-evidence {
    max-width: none;
  }

  .responsive-table .empty-state {
    grid-column: 1 / -1;
  }

  .priority-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .priority-item .text-button {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 7px 7px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.settings-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0 4px;
}

.bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
}

.selection-cell { width: 44px; text-align: center; }
.onboarding-empty { max-width: 640px; margin: 10vh auto; }
.onboarding-empty h1 { margin: 8px 0 12px; font-size: 32px; }
.onboarding-form { margin-top: 28px; padding: 24px; border: 1px solid var(--border); background: var(--surface); }
.sidebar-close-button { display: none; }

@media (max-width: 760px) {
  .settings-two-column { grid-template-columns: 1fr; }
  .bulk-action-bar { align-items: stretch; flex-direction: column; }
  .bulk-action-bar .button-row { display: grid; grid-template-columns: 1fr; }
  .sidebar-close-button { display: grid; position: absolute; top: 18px; right: 12px; z-index: 2; color: #fff; background: #242824; border-color: #4b514b; }
  .sidebar-close-button:hover { color: #fff; background: #303630; }
  .sidebar .brand-lockup { padding-right: 34px; }
}

/* Operations Console UI v2 */
:root {
  --ink: #19211f;
  --muted: #69736f;
  --line: #dfe4e2;
  --border: #dfe4e2;
  --border-strong: #c9d1ce;
  --surface: #ffffff;
  --surface-strong: #f8faf9;
  --surface-soft: #f3f6f5;
  --dark: #18221f;
  --green: #147a52;
  --green-soft: #e5f4ec;
  --red: #b3342b;
  --red-soft: #fcecea;
  --amber: #a9660c;
  --amber-soft: #fff3dc;
  --blue: #286a9f;
  --blue-soft: #e9f2f9;
  background: #f3f5f6;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html,
body {
  background: #f3f5f6;
  letter-spacing: 0;
}

body {
  color: var(--ink);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
.nav-link,
.panel-header a,
.approval-shortcut {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.2);
  outline-offset: 2px;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.primary-button {
  border-color: #18221f;
  background: #18221f;
  box-shadow: 0 1px 1px rgba(11, 24, 19, 0.12);
}

.primary-button:hover {
  background: #25332e;
  border-color: #25332e;
  box-shadow: 0 4px 12px rgba(11, 24, 19, 0.14);
}

.secondary-button {
  border-color: var(--border-strong);
  background: #fff;
}

.secondary-button:hover {
  border-color: #9ea9a5;
  background: var(--surface-soft);
}

.danger-button {
  border-color: #e5bbb7;
  background: #fff;
}

.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px 16px;
  overflow-y: auto;
  border-right: 1px solid #26332f;
  background: #18221f;
}

.sidebar .brand-lockup {
  min-height: 58px;
  padding: 4px 8px 18px;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 7px;
  background: #d9f4e5;
  color: #155f43;
  font-size: 11px;
  font-weight: 800;
}

.brand-copy,
.brand-copy strong,
.brand-copy small {
  min-width: 0;
  display: block;
}

.brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 2px;
  color: #8fa09a;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-list {
  gap: 2px;
  margin-top: 15px;
}

.nav-group-label {
  margin: 14px 10px 5px;
  color: #73847e;
  font-size: 10px;
  font-weight: 750;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-link {
  position: relative;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b7c2be;
  font-size: 13px;
}

.nav-link-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #9eaaa6;
  font-size: 11px;
  font-weight: 700;
}

.nav-link:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.active {
  border-color: rgba(132, 214, 168, 0.14);
  background: #26352f;
  box-shadow: inset 3px 0 0 #54bd83;
}

.nav-link.active .nav-icon {
  border-color: rgba(112, 205, 153, 0.24);
  background: rgba(84, 189, 131, 0.14);
  color: #a8e2c1;
}

.nav-count {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #dce6e2;
  font-size: 10px;
}

.nav-link.active .nav-count {
  background: #d9f4e5;
  color: #155f43;
}

.sidebar-footer {
  padding: 14px 8px 2px;
  border-top-color: rgba(255, 255, 255, 0.09);
}

.user-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.user-identity .user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: #24332d;
  color: #e2ede8;
  font-size: 12px;
  font-weight: 750;
}

.user-identity .user-copy,
.user-identity .user-copy strong,
.user-identity .user-copy small {
  min-width: 0;
  display: block;
}

.user-identity .user-copy strong {
  overflow: hidden;
  color: #f5f8f6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity .user-copy small {
  margin-top: 3px;
  color: #8fa09a;
  font-size: 10px;
}

.sidebar-footer > button {
  margin-top: 12px;
  color: #899a94;
}

.sidebar-footer > button:hover {
  color: #fff;
}

.workspace {
  background: #f3f5f6;
}

.topbar {
  min-height: 72px;
  padding: 9px 32px;
  border-bottom-color: #e2e7e5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(17, 35, 28, 0.02);
}

.topbar-left {
  gap: 14px;
}

.store-context {
  min-width: 190px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.store-context-label {
  grid-column: 1;
  grid-row: 1;
  color: #89928f;
  font-size: 10px;
  font-weight: 700;
}

.store-select {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-height: 25px;
  padding: 2px 23px 2px 0;
  border: 0;
  background-color: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.store-domain {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 1px;
  overflow: hidden;
  color: #7b8581;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}

.connection-indicator::before {
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(140, 148, 140, 0.12);
}

.connection-indicator.is-connected::before {
  box-shadow: 0 0 0 3px rgba(20, 122, 82, 0.12);
}

.approval-shortcut {
  min-height: 38px;
  padding: 7px 10px 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ead5aa;
  border-radius: 6px;
  background: #fffaf0;
  color: #7b500f;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.approval-shortcut strong {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #a9660c;
  color: #fff;
  font-size: 10px;
}

.approval-shortcut:hover {
  border-color: #d5b36f;
  background: #fff5df;
}

.content {
  width: min(100%, 1560px);
  padding: 30px 36px 64px;
}

.page-heading {
  min-height: 72px;
  margin-bottom: 24px;
  align-items: center;
}

.page-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.page-heading h1 {
  font-size: 28px;
  font-weight: 680;
  line-height: 1.2;
}

.page-heading p {
  margin-top: 6px;
  font-size: 13px;
}

.page-actions {
  flex: 0 0 auto;
}

.metrics {
  gap: 12px;
  border: 0;
  background: transparent;
}

.metric {
  position: relative;
  min-height: 132px;
  padding: 18px 19px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--blue);
}

.metric-risk::after {
  background: var(--red);
}

.metric-approval::after {
  background: var(--amber);
}

.metric-connected::after {
  background: var(--green);
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.metric-risk .metric-signal {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.metric-approval .metric-signal {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.metric-connected .metric-signal {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.metric-label {
  color: #59635f;
  font-size: 12px;
  font-weight: 650;
}

.metric-value {
  margin-top: 11px;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.05;
}

.metric-fraction {
  color: #939c99;
  font-size: 16px;
  font-weight: 550;
}

.metric-note {
  margin-top: 8px;
  color: #7a8480;
  font-size: 11px;
}

.panel,
.table-wrap,
.task-monitor,
.policy-list,
.loading-panel,
.error-state {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
}

.dashboard-grid {
  gap: 18px;
  margin-top: 18px;
}

.panel-header {
  min-height: 60px;
  padding: 15px 18px;
  border-bottom-color: #e6eae8;
}

.panel-header h2 {
  font-size: 14px;
  font-weight: 700;
}

.panel-header a,
.text-button {
  color: #126b49;
}

.priority-item {
  min-height: 70px;
  padding: 15px 18px;
  border-bottom-color: #edf0ef;
}

.activity-item {
  padding: 15px 18px;
  border-bottom-color: #edf0ef;
}

.priority-item:hover,
.activity-item:hover {
  background: #fafcfb;
}

.severity {
  min-width: 58px;
  border-radius: 5px;
  font-size: 10px;
}

.execution-console {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 35, 29, 0.07);
}

.execution-console-header {
  min-height: 92px;
  padding: 17px 20px;
  border-bottom: 0;
  background: #1b2723;
  color: #f5f8f6;
}

.execution-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.execution-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(151, 225, 183, 0.24);
  border-radius: 8px;
  background: rgba(84, 189, 131, 0.12);
  color: #a8e2c1;
  font-size: 12px;
  font-weight: 800;
}

.execution-console-header .eyebrow {
  margin-bottom: 4px;
  color: #84d6a8;
  font-size: 10px;
}

.execution-console-header h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 680;
}

.execution-console-header p {
  color: #9fb0aa;
  font-size: 11px;
}

.execution-console-header .connection-indicator {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4e0;
}

.command-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr);
  background: #fff;
}

.command-history-shell {
  min-width: 0;
  border-right: 1px solid #e1e6e4;
  background: #f6f8f7;
}

.command-history-heading {
  min-height: 53px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e6e4;
  color: #59645f;
  font-size: 11px;
  font-weight: 700;
}

.command-history-heading strong {
  min-width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #e6ebe9;
  color: #34413c;
  font-size: 10px;
}

.command-history {
  max-height: 463px;
  border: 0;
  background: transparent;
}

.command-message {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 5px 10px;
  padding: 15px 16px;
  border-bottom-color: #e5e9e7;
}

.command-message:hover {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--green);
}

.command-index {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e5ebe8;
  color: #60706a;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.command-message-meta,
.command-message > strong,
.command-message > span:last-child {
  grid-column: 2;
}

.command-message-meta {
  flex-wrap: wrap;
  font-size: 10px;
}

.command-message strong {
  font-size: 12px;
  line-height: 1.45;
}

.command-composer {
  padding: 20px 22px 22px;
}

.command-composer-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-composer-heading div > span,
.command-composer-heading div > strong {
  display: block;
}

.command-composer-heading div > span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.command-composer-heading div > strong {
  font-size: 15px;
}

.safety-badge {
  padding: 5px 8px;
  border: 1px solid #bcdcc9;
  border-radius: 5px;
  background: var(--green-soft);
  color: #126b49;
  font-size: 10px;
  font-weight: 700;
}

.theme-baseline-strip {
  margin: -2px 0 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: baseline;
  border-left: 3px solid #299661;
  background: #f1f7f4;
}

.theme-baseline-strip span {
  color: #607069;
  font-size: 10px;
  font-weight: 700;
}

.theme-baseline-strip strong {
  min-width: 0;
  overflow: hidden;
  color: #21342c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-baseline-strip small {
  grid-column: 1 / -1;
  color: #718079;
  font-size: 9px;
  line-height: 1.45;
}

.command-suggestions {
  margin-bottom: 16px;
}

.command-suggestions button {
  min-height: 31px;
  border-color: #d3dad7;
  border-radius: 5px;
  background: #f8faf9;
  color: #45514d;
  font-size: 10px;
}

.command-suggestions button:hover {
  border-color: #9dcab0;
  background: #eef8f2;
  color: #126b49;
}

.command-targeting {
  gap: 12px;
  margin-bottom: 14px;
}

.command-field label,
.command-composer > label {
  color: #59635f;
  font-size: 11px;
  font-weight: 700;
}

.command-field select,
.command-composer textarea,
.field input,
.field textarea,
.field select,
.product-search input {
  border-color: #cbd3d0;
  border-radius: 6px;
  background: #fff;
}

.command-field select {
  min-height: 42px;
  font-size: 12px;
}

.command-target-summary {
  margin-bottom: 15px;
  padding: 11px 13px;
  border-left-width: 3px;
  border-radius: 0 6px 6px 0;
  background: #edf7f1;
}

.command-target-summary strong {
  font-size: 11px;
}

.command-target-summary span {
  font-size: 10px;
}

.command-composer textarea {
  min-height: 116px;
  font-size: 12px;
}

.command-composer-footer {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf0ef;
}

.command-composer-footer span {
  color: #737e79;
  font-size: 10px;
}

.command-composer-footer span strong {
  margin-right: 5px;
  color: #3e4a45;
}

.product-toolbar,
.toolbar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segments {
  border-color: #d4dad8;
  background: #f3f6f5;
}

.segment {
  font-size: 11px;
  font-weight: 650;
}

.segment.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 35, 29, 0.12);
}

.bulk-action-bar {
  position: sticky;
  top: 82px;
  z-index: 8;
  border-color: #acd2bd;
  border-radius: 8px;
  background: #eff8f3;
  box-shadow: 0 6px 18px rgba(20, 35, 29, 0.08);
}

.table-wrap {
  overflow: auto;
}

table {
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 14px 16px;
  border-bottom-color: #e9edeb;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9f8;
  color: #69736f;
  font-size: 10px;
  text-transform: none;
}

td {
  color: #313b37;
  font-size: 12px;
}

tbody tr:hover td {
  background: #fbfcfc;
}

.product-identity img,
.product-image-placeholder {
  border-radius: 6px;
}

.product-state,
.status,
.notice,
.connection-card,
.provider-panel,
.report-findings article {
  border-radius: 6px;
}

.status {
  white-space: nowrap;
}

.connection-grid,
.provider-grid {
  gap: 14px;
}

.connection-card,
.provider-panel {
  position: relative;
  min-height: 134px;
  padding: 17px;
  overflow: hidden;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
}

.connection-card::before,
.provider-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #aab5b1;
}

.connection-card:nth-child(3n + 1)::before,
.provider-panel:nth-child(3n + 1)::before {
  background: var(--green);
}

.connection-card:nth-child(3n + 2)::before,
.provider-panel:nth-child(3n + 2)::before {
  background: var(--blue);
}

.connection-card:nth-child(3n)::before,
.provider-panel:nth-child(3n)::before {
  background: var(--amber);
}

.connection-help-link {
  width: fit-content;
  margin-top: 10px;
  display: inline-flex;
  color: #126b49;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.connection-help-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.connection-card-head strong,
.provider-heading strong {
  font-size: 13px;
}

.settings-two-column {
  gap: 0;
  padding: 0;
}

.settings-organization-panel {
  margin-top: 18px;
}

.settings-two-column > form + form {
  border-left: 1px solid var(--line);
}

.schedule-form h3 {
  margin: 0 0 18px;
  font-size: 13px;
}

.policy-row {
  border-bottom-color: #e9edeb;
}

.modal-backdrop {
  background: rgba(12, 22, 18, 0.62);
  backdrop-filter: blur(3px);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(12, 22, 18, 0.28);
}

.modal-header,
.modal-footer {
  background: #fbfcfc;
}

.toast {
  border: 1px solid #2d3a35;
  border-radius: 7px;
  background: #18221f;
}

.help-overview {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
}

.help-overview > div {
  min-height: 92px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 12px;
  border-right: 1px solid var(--line);
}

.help-overview > div:last-child {
  border-right: 0;
}

.help-overview span,
.help-overview small {
  color: var(--muted);
  font-size: 10px;
}

.help-overview span {
  font-weight: 700;
}

.help-overview strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ink);
  font-size: 26px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.help-index {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.help-index > strong {
  padding: 15px 16px 11px;
  display: block;
  color: #67716d;
  font-size: 10px;
}

.help-index nav {
  display: grid;
}

.help-index nav a {
  min-height: 48px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0ef;
  color: #3d4944;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.help-index nav a small {
  color: #8a9490;
  font-size: 9px;
  font-weight: 600;
}

.help-index nav a:hover,
.help-index nav a.active {
  background: #edf7f1;
  color: #126b49;
}

.help-index nav a.active {
  box-shadow: inset 3px 0 0 var(--green);
}

.help-workflow-link {
  padding: 13px 14px;
  display: block;
  border-top: 1px solid var(--line);
  color: #126b49;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.help-content {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.help-section {
  min-width: 0;
}

.help-section-heading {
  margin-bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.help-section-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.help-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.help-section-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.help-guide-list,
.workflow-guide-list {
  display: grid;
  gap: 10px;
}

.help-guide,
.workflow-guide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
}

.help-guide > summary,
.workflow-guide > summary {
  min-height: 66px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.help-guide > summary::-webkit-details-marker,
.workflow-guide > summary::-webkit-details-marker {
  display: none;
}

.help-guide > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
}

.help-guide > summary:hover,
.workflow-guide > summary:hover {
  background: #fafcfb;
}

.help-guide-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf1ef;
  color: #66736d;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.help-guide-title strong,
.help-guide-title small {
  display: block;
}

.help-guide-title strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.help-guide-title small {
  color: var(--muted);
  font-size: 10px;
}

.help-guide-toggle,
.workflow-guide > summary > span:last-child {
  color: #78837e;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  transition: transform 140ms ease;
}

.help-guide[open] .help-guide-toggle,
.workflow-guide[open] > summary > span:last-child {
  transform: rotate(45deg);
}

.help-guide[open] > summary {
  background: #f7faf8;
}

.help-guide-body {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.help-guide-summary {
  margin: 0 0 18px;
  color: #3f4a46;
  font-size: 13px;
  line-height: 1.7;
}

.help-guide-columns {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.help-guide-columns > section {
  min-width: 0;
  padding: 15px 16px;
}

.help-guide-columns > section + section {
  border-left: 1px solid var(--line);
}

.help-guide-body h3 {
  margin: 0 0 9px;
  color: #33403b;
  font-size: 11px;
}

.help-guide-body h3:not(:first-child) {
  margin-top: 14px;
}

.help-guide-body ul,
.help-guide-body p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.help-guide-body ul {
  padding-left: 18px;
}

.help-steps {
  margin-bottom: 18px;
}

.help-steps ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  counter-reset: help-step;
  list-style: none;
}

.help-steps li {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid #e3e8e6;
  border-radius: 6px;
  background: #fafcfb;
  color: #4d5854;
  font-size: 11px;
  line-height: 1.55;
  counter-increment: help-step;
}

.help-steps li::before {
  content: counter(help-step);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff1e7;
  color: #126b49;
  font-size: 9px;
  font-weight: 800;
}

.help-workflows {
  scroll-margin-top: 92px;
}

.workflow-guide > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
}

.workflow-guide > summary > span:first-child {
  color: var(--green);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workflow-guide > summary strong {
  font-size: 12px;
}

.workflow-guide > ol {
  margin: 0;
  padding: 16px 22px 18px 52px;
  border-top: 1px solid var(--line);
  color: #59645f;
  font-size: 11px;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .content {
    padding-inline: 26px;
  }

  .command-layout {
    grid-template-columns: minmax(250px, 0.65fr) minmax(440px, 1.35fr);
  }
}

@media (max-width: 1040px) {
  .metric:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .command-layout {
    grid-template-columns: 1fr;
  }

  .command-history-shell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    width: 100%;
  }

  .sidebar {
    width: min(86vw, 294px);
    padding-top: 16px;
  }

  .sidebar-close-button {
    top: 17px;
    right: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
  }

  .topbar {
    min-height: 64px;
    padding: 8px 12px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .mobile-menu-button {
    flex: 0 0 40px;
  }

  .store-context {
    min-width: 0;
    flex: 1;
  }

  .store-select {
    min-width: 0;
    max-width: 170px;
  }

  .store-domain,
  .topbar-actions .approval-shortcut,
  .topbar-actions .secondary-button {
    display: none;
  }

  .content {
    padding: 22px 14px 48px;
  }

  .page-heading {
    min-height: 0;
    margin-bottom: 20px;
    gap: 16px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading p {
    max-width: 34ch;
    line-height: 1.55;
  }

  .page-actions,
  .page-actions > button {
    width: 100%;
  }

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

  .metric,
  .metric:nth-child(2) {
    min-height: 118px;
    padding: 15px;
    border: 1px solid var(--line);
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-note {
    line-height: 1.35;
  }

  .execution-console {
    margin-top: 16px;
  }

  .execution-console-header {
    min-height: 0;
    padding: 16px;
  }

  .execution-title {
    align-items: flex-start;
  }

  .execution-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .execution-console-header .connection-indicator {
    display: inline-flex;
    align-self: flex-start;
  }

  .command-history {
    max-height: 214px;
    border-bottom: 0;
  }

  .command-composer {
    padding: 17px 15px 18px;
  }

  .command-targeting {
    grid-template-columns: 1fr;
  }

  .command-composer-footer {
    grid-template-columns: 1fr;
  }

  .product-toolbar,
  .toolbar {
    padding: 10px;
  }

  .seo-issues-toolbar {
    align-items: stretch;
  }

  .table-pagination {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .table-pagination > div {
    width: 100%;
    justify-content: center;
  }

  .product-table {
    min-width: 0;
  }

  .product-seo-summary {
    min-width: 0;
  }

  .product-seo-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bulk-action-bar {
    top: 72px;
  }

  .responsive-table tr {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20, 35, 29, 0.035);
  }

  .responsive-table td {
    border-bottom-color: #e9edeb;
  }

  .settings-two-column > form + form {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .help-overview > div {
    min-height: 88px;
    padding: 13px 10px;
    grid-template-columns: 1fr;
    gap: 3px;
    text-align: center;
  }

  .help-overview strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 22px;
  }

  .help-overview small {
    display: none;
  }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .help-index {
    position: static;
  }

  .help-index > strong,
  .help-workflow-link {
    display: none;
  }

  .help-index nav {
    padding: 5px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .help-index nav::-webkit-scrollbar {
    display: none;
  }

  .help-index nav a {
    min-height: 38px;
    padding: 7px 10px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 5px;
  }

  .help-index nav a small {
    display: none;
  }

  .help-index nav a.active {
    box-shadow: none;
  }

  .help-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .help-section-heading > p {
    text-align: left;
  }

  .help-guide > summary {
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    gap: 9px;
  }

  .help-guide > summary .status {
    grid-column: 2;
    justify-self: start;
  }

  .help-guide-toggle {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .help-guide-body {
    padding: 16px;
  }

  .help-guide-columns,
  .help-steps ol {
    grid-template-columns: 1fr;
  }

  .help-guide-columns > section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .modal {
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 1040px) {
  .page-inspector-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-inspector-controls {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto 40px;
  }

  .page-inspector-layout {
    grid-template-columns: 1fr;
  }

  .page-preview-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .storefront-preview-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .page-inspector {
    margin: 18px 0;
  }

  .page-inspector-header {
    min-height: 0;
    padding: 16px;
    gap: 16px;
  }

  .page-inspector-controls {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .page-inspector-controls > label,
  .page-inspector-controls select {
    grid-column: 1 / -1;
  }

  .page-preview-viewports {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }

  .page-inspector-controls > .icon-button {
    grid-column: 2;
    grid-row: 3;
  }

  .page-preview-state {
    min-height: 360px;
    padding: 24px;
  }

  .page-preview-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .page-preview-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-issue-panel {
    padding: 18px 16px;
  }

  .page-inspector-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    min-height: 108px;
  }
}
