:root,
[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-raised: #fff;
  --bg-muted: #eef0f4;
  --fg: #14161a;
  --fg-muted: #5c6370;
  --border: #d4d8e0;
  --accent: #1f4e8c;
  --accent-fg: #fff;
  --danger: #9b1c1c;
  --ok: #065f46;
  --shadow: 0 1px 2px rgba(16, 18, 22, 0.08);
  --sidebar-w: 15.5rem;
  --sidebar-w-compact: 3.25rem;
  --font: 12.5px;
  --radius: 6px;
  --pad: 0.28rem 0.5rem;
  font-family: system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.35;
  font-size: var(--font);
}

[data-theme="dark"] {
  --bg: #12141a;
  --bg-raised: #1b1e26;
  --bg-muted: #242833;
  --fg: #e8eaf0;
  --fg-muted: #9aa3b2;
  --border: #323846;
  --accent: #6ea8ff;
  --accent-fg: #12141a;
  --danger: #f87171;
  --ok: #34d399;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* SPA shell (V2-M) */
.spa-main {
  min-height: 50vh;
}

.spa-body #app-shell {
  width: 100%;
}

body {
  margin: 0;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--fg);
}

button,
.btn,
select,
input,
textarea {
  font: inherit;
  font-size: inherit;
}

button,
.btn,
a.button-link {
  padding: var(--pad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--fg);
  cursor: pointer;
}

button[aria-pressed="true"],
.btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

body.admission-login .site-nav {
  display: none;
}

table.admin-people {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

table.admin-people th,
table.admin-people td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #ddd;
}

.login-card form p {
  margin: 0.75rem 0;
}

.login-card label {
  display: block;
  margin-bottom: 0.25rem;
}

.login-card input {
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
}

#app-sign-out,
#app-admin-link,
#app-account-link {
  margin-left: 0.5rem;
}

.account-name-row label {
  display: inline-block;
  margin-right: 0.5rem;
}

.account-name-row input {
  max-width: 22rem;
}

table.account-pins,
table.account-candidates {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

table.account-pins th,
table.account-pins td,
table.account-candidates th,
table.account-candidates td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #ddd;
}

nav a,
.site-nav a {
  margin-right: 0.75rem;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex: 1;
  min-width: 12rem;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.nav-cadence a {
  font-weight: 600;
  text-decoration: none;
  color: #1a1a1a;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #e8e4dc;
}

.nav-cadence a.active {
  background: #1a1a1a;
  color: #fff;
}

.nav-detail a {
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
}

.nav-detail a.active {
  font-weight: 600;
  text-decoration: underline;
}

.nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.5rem;
  border-left: 1px solid #ccc;
}

.nav-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-right: 0.15rem;
}

.nav-detail a.nav-pinned {
  font-weight: 600;
}

.plugin-home-card.card-pinned {
  border-color: #94a3b8;
}

.mode-lead {
  margin: -0.5rem 0 1rem;
}

.synth-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.synth-list li {
  margin-bottom: 0.4rem;
}

.warn-list {
  margin: 0;
  padding-left: 1.2rem;
}

.warn-list li {
  margin-bottom: 0.5rem;
}

.checklist li.done {
  color: #065f46;
}

.checklist li.done::marker {
  content: '✓ ';
}

.subhead {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

a.button-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #1a1a1a;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}

.ok-line {
  color: #065f46;
}

.gap-line {
  color: #92400e;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.stack label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.stack input[type='text'],
.stack input:not([type]),
.stack textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button {
  cursor: pointer;
  padding: 0.4rem 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.error {
  color: #a40000;
}

.muted {
  color: #666;
}

.small {
  font-size: 0.8rem;
}

a code {
  color: inherit;
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e5e5e5;
}

.status-ok {
  background: #d1fae5;
  color: #065f46;
}

.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.status-partial {
  background: #fef3c7;
  color: #92400e;
}

.status-running {
  background: #dbeafe;
  color: #1e40af;
}

canvas {
  max-width: 100%;
}

.inline-filter {
  display: inline-block;
  margin: 0 1rem 0.75rem 0;
  font-size: 0.9rem;
}

.inline-filter select {
  margin-left: 0.35rem;
  padding: 0.25rem 0.4rem;
}

.checklist {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.checklist li {
  margin-bottom: 0.35rem;
}

.nowrap {
  white-space: nowrap;
}

.nowrap button {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
}

.stack select {
  display: block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  max-width: 28rem;
}

.stack input[type='date'],
.stack input[type='number'] {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
}

.report-body {
  white-space: pre-wrap;
  font-size: 0.85rem;
  background: #f8f7f4;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-height: 32rem;
  overflow: auto;
  margin-top: 0.75rem;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 28rem;
  overflow: auto;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f8f7f4;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.chat-bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.chat-bubble.chat-assistant {
  border-left: 3px solid #1e40af;
}

.chat-bubble.chat-user {
  border-left: 3px solid #065f46;
}

.chat-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
}

.chat-content {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
}

.chat-content.md-body {
  white-space: normal;
}

.md-body .md-p {
  margin: 0 0 0.5rem;
}

.md-body .md-p:last-child {
  margin-bottom: 0;
}

.md-body .md-h {
  margin: 0.35rem 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.md-body h1.md-h {
  font-size: 1.1rem;
}

.md-body h3.md-h,
.md-body h4.md-h {
  font-size: 0.95rem;
}

.md-body .md-list {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.25rem;
}

.md-body .md-list li {
  margin-bottom: 0.2rem;
}

.md-body .md-quote {
  margin: 0.35rem 0;
  padding: 0.25rem 0.65rem;
  border-left: 3px solid #cbd5e1;
  color: #444;
}

.md-body .md-code {
  margin: 0.4rem 0;
  padding: 0.5rem 0.65rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: auto;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  white-space: pre;
}

.md-body .md-inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.md-body .md-link {
  color: #1e40af;
}

.chat-form {
  margin-bottom: 1.25rem;
}

.onboarding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

button.btn-link,
.btn-link {
  background: none;
  border: none;
  color: #1e40af;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

button.btn-promote {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.project-switcher-label {
  font-size: 0.8rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-switcher {
  font-size: 0.85rem;
  max-width: 14rem;
  padding: 0.2rem 0.35rem;
}

.nav-project {
  margin-bottom: 0.15rem;
}

/* Help sidebar — history + chat */
.form-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(248, 247, 244, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem 4rem;
  overflow: auto;
}

#app-main {
  position: relative;
}

.form-overlay-card {
  width: min(36rem, 100%);
  background: #fff;
  border: 1px solid #d5d1c8;
  border-radius: 0.6rem;
  padding: 1rem 1.1rem 0.9rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.form-overlay-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.form-overlay-prompt {
  font-size: 1.02rem;
  margin: 0 0 0.75rem;
}

.form-overlay-card textarea {
  width: 100%;
  font: inherit;
  min-height: 5rem;
  margin-bottom: 0.75rem;
}

.form-overlay-choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.form-overlay-choice {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d5d1c8;
  background: #f8f7f4;
  cursor: pointer;
  border-radius: 0.35rem;
}

.form-overlay-choice:hover {
  border-color: #1e40af;
}

.form-overlay-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.form-overlay-spacer {
  flex: 1;
}

.form-overlay-cancel {
  background: none;
  border: none;
  color: #6b665e;
  cursor: pointer;
}

.notify-root {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  max-width: none;
}

.notify-chip {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #1f2937;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.notify-chip-unread {
  background: #9a3412;
}

.notify-panel {
  background: #fff;
  border: 1px solid #d5d1c8;
  border-radius: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 16rem;
  max-height: 18rem;
  overflow: auto;
}

.notify-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #ece9e2;
  font-weight: 600;
  font-size: 0.85rem;
}

.notify-read-all {
  border: none;
  background: none;
  color: #1e40af;
  cursor: pointer;
  font-size: 0.8rem;
}

.notify-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.notify-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.notify-row:hover {
  background: #f7f5f1;
}

.notify-unread strong {
  font-weight: 700;
}

.notify-fail strong {
  color: #9a3412;
}

.assistant-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #1e40af;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.assistant-open .assistant-fab {
  right: calc(min(36rem, 100vw) + 0.5rem);
}

.assistant-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(36rem, 100vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #ddd;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.assistant-panel[hidden] {
  display: none !important;
}

body.assistant-open {
  max-width: none;
  width: calc(100vw - min(36rem, 100vw));
  margin-left: 0;
  margin-right: min(36rem, 100vw);
  box-sizing: border-box;
}

body.assistant-open.assistant-max {
  width: 100%;
  max-width: none;
  margin-right: 0;
  overflow-x: hidden;
}

body.assistant-max .assistant-panel {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.assistant-project-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
}

.assistant-project-select {
  font: inherit;
  max-width: 14rem;
}

body.assistant-people-hidden .assistant-history {
  display: none;
}

.assistant-people-actions {
  padding: 0.4rem 0.5rem;
  flex-wrap: wrap;
}

.assistant-board {
  display: none;
  width: min(56rem, 58vw);
  flex-shrink: 0;
  border-left: 1px solid #eee;
  background: #fafaf8;
  min-height: 0;
  flex-direction: column;
}

body.assistant-max .assistant-board:not([hidden]) {
  display: flex;
}

.assistant-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.assistant-board-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.assistant-board-lanes {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.45rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
}

.assistant-board.assistant-board-reading .assistant-board-lanes {
  display: none;
}

.assistant-board-doc {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.assistant-board-doc[hidden] {
  display: none;
}

.assistant-board-doc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.assistant-board-doc-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-board-doc-body {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 0.9rem;
}

.assistant-board-lane {
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
}

.assistant-board-lane-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.assistant-board-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
  margin-bottom: 0.35rem;
}

.assistant-board-file {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  word-break: break-all;
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.assistant-scope {
  margin: 0.15rem 0 0;
}

.assistant-header-actions {
  display: flex;
  gap: 0.75rem;
}

.assistant-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.assistant-history {
  width: 9.5rem;
  flex-shrink: 0;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  background: #fafaf8;
  min-height: 0;
}

.assistant-history-head {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #eee;
}

.assistant-history-list {
  flex: 1;
  overflow: auto;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.assistant-history-empty {
  margin: 0.35rem;
}

button.assistant-history-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

button.assistant-history-item:hover,
button.assistant-history-item:focus-visible {
  background: #fff;
  border-color: #ddd;
  outline: none;
}

button.assistant-history-item.is-active {
  background: #fff;
  border-color: #1e40af;
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.15);
}

.assistant-history-title {
  font-size: 0.8rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assistant-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.assistant-thread {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f8f7f4;
  min-height: 0;
}

@media (max-width: 640px) {
  .assistant-history {
    width: 7.25rem;
  }
  body.assistant-open .assistant-fab {
    right: calc(min(100vw, 100vw) + 0.5rem);
  }
}

.assistant-bubble {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.assistant-bubble.assistant-assistant {
  border-left: 3px solid #1e40af;
}

.assistant-bubble.assistant-user {
  border-left: 3px solid #065f46;
}

.assistant-bubble.ht-line-prior {
  opacity: 0.55;
  color: #4b5563;
}

.assistant-progress {
  position: sticky;
  bottom: 0;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  color: #374151;
  font-style: italic;
  background: #f3f4f6;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.assistant-form {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.assistant-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  padding: 0.4rem 0.5rem;
}

.assistant-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.assistant-finalize {
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  max-height: 40vh;
  overflow: auto;
}

#assistant-error {
  margin: 0 0.75rem 0.5rem;
}

.jobs-group {
  margin-bottom: 1.25rem;
}

.jobs-group table {
  margin-top: 0.35rem;
}

.plugin-card .plugin-fields {
  margin-top: 0.5rem;
}

.plugin-card textarea {
  max-width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.plugin-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.plugin-home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

a.plugin-home-card,
.plugin-home-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 1rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

a.plugin-home-card:hover,
a.plugin-home-card:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

.plugin-home-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
}

.plugin-home-card-title {
  margin: 0;
  font-size: 1rem;
}

.plugin-home-card-body {
  margin: 0;
  flex: 1;
}

button.plugin-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

button.plugin-tile:hover,
button.plugin-tile:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

.plugin-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.plugin-tile-title {
  margin: 0;
  font-size: 1.05rem;
}

.plugin-tile-desc {
  margin: 0 0 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plugin-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: auto;
}

.plugin-detail-nav {
  margin: 0 0 0.75rem;
}

.setup-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.setup-blueprint-label {
  flex: 1;
  min-width: 14rem;
  margin-bottom: 0;
}

.setup-blueprint-label select {
  max-width: 100%;
  width: 100%;
}

.setup-flags {
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.25rem;
}

.setup-actions-table {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.assistant-confirmations {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #eee;
  background: #fff8e8;
  max-height: 40vh;
  overflow: auto;
}

.assistant-confirm-card {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-color: #f59e0b;
}

.assistant-confirm-card .card-actions {
  margin-top: 0.5rem;
}

.projects-active-bar {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.projects-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

button.project-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

button.project-tile:hover,
button.project-tile:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

button.project-tile-active {
  border-color: #065f46;
}

.project-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.project-tile-title {
  margin: 0;
  font-size: 1.05rem;
}

.project-tile-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.project-tile-desc {
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-detail-nav {
  margin: 0 0 0.75rem;
}

.project-demo-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.project-demo-note .subhead {
  margin-top: 0;
}

.briefings-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.briefings-list-toolbar #list-status {
  margin: 0;
}

.briefings-scope-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.briefings-scope-toggle button {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: #444;
}

.briefings-scope-toggle button + button {
  border-left: 1px solid #ccc;
}

.briefings-scope-toggle button.is-active {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.briefings-gen-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.briefings-gen-bar select {
  padding: 0.35rem 0.5rem;
  max-width: 18rem;
}

.briefings-gen-label {
  margin: 0;
}

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

.briefing-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

button.briefing-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

button.briefing-tile:hover,
button.briefing-tile:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

.briefing-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.briefing-tile-title {
  margin: 0;
  font-size: 1.05rem;
}

.briefing-tile-type {
  margin: 0 0 0.35rem;
}

.briefing-tile-when {
  margin: 0;
  margin-top: auto;
}

.briefing-detail-nav {
  margin: 0 0 0.75rem;
}

.agent-status-bar {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.agent-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.agent-list-toolbar #list-status {
  margin: 0;
}

.agent-scope-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.agent-scope-toggle button {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: #444;
}

.agent-scope-toggle button + button {
  border-left: 1px solid #ccc;
}

.agent-scope-toggle button.is-active {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.agent-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

button.agent-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

button.agent-tile:hover,
button.agent-tile:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

.agent-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.agent-tile-title {
  margin: 0;
  font-size: 1.05rem;
}

.agent-tile-title-text {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-tile-when {
  margin: 0;
  margin-top: auto;
}

.agent-detail-nav {
  margin: 0 0 0.75rem;
}

.watchlist-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.watchlist-view-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.watchlist-view-toggle button {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: #444;
}

.watchlist-view-toggle button + button {
  border-left: 1px solid #ccc;
}

.watchlist-view-toggle button.is-active {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.watchlist-table {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.process-log {
  max-height: 24rem;
  overflow: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: #1a1a1a;
  color: #e8e4dc;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.process-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.process-btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid #c5c0b6;
  border-radius: 6px;
  background: #f8f7f4;
  color: #1a1a1a;
}

.process-btn:hover:not(:disabled) {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.process-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.process-flash {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
}

.process-flash.is-bad {
  background: #fee2e2;
  color: #991b1b;
}

.process-flash[hidden] {
  display: none;
}

body.sites-workspace,
body.full-workspace {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

body.sites-workspace .site-header,
body.full-workspace .site-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.4rem 0.9rem 0.35rem;
}

body.sites-workspace .site-header h1,
body.full-workspace .site-header h1 {
  font-size: 1.05rem;
}

body.sites-workspace #app-shell,
body.full-workspace #app-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

body.sites-workspace #app,
body.sites-workspace #app-main,
body.full-workspace #app,
body.full-workspace #app-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.full-workspace #app-main > * {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sites-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sites-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.35rem 0.9rem;
  border-bottom: 1px solid #d5d1c8;
  background: #f8f7f4;
  flex: 0 0 auto;
}

.sites-chrome-left {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.sites-chrome-mark,
.sites-chrome-back {
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  color: inherit;
}

.sites-chrome-back:hover {
  text-decoration: underline;
}

.sites-chrome-sep {
  color: #9a958b;
}

.sites-chrome-host {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.sites-chrome-url {
  font-size: 0.78rem;
  color: #4a5560;
}

.sites-chrome-count {
  font-size: 0.8rem;
  color: #6b665c;
}

.sites-chrome-right {
  margin-left: 0;
}

.sites-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.sites-inline input,
.sites-inline select {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
  max-width: 9.5rem;
}

.sites-inline button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
}

.sites-inline-label {
  font-size: 0.75rem;
  color: #6b665c;
}

.sites-error {
  margin: 0;
  padding: 0.3rem 0.9rem;
}

.kit-form input[readonly] {
  background: #eee;
  color: #5c574e;
}

.sites-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wf-run-params {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 0.2rem 1rem;
  margin: 0 0 0.75rem;
}

.wf-run-params > div {
  display: contents;
}

.wf-run-params dt {
  margin: 0;
  color: var(--muted, #6b665e);
  font-weight: 600;
}

.wf-run-params dd {
  margin: 0;
}

.sites-table th {
  text-align: left;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-bottom: 1px solid #d5d1c8;
  background: #f8f7f4;
  position: sticky;
  top: 0;
}

.sites-table th.wb-th-sort {
  padding: 0;
}

.sites-table th.wb-th-sort button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.sites-table th.wb-th-sort button:hover,
.sites-table th.wb-th-sort.is-on button {
  color: #2c4a6e;
}

.wb-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-top: 1px solid #d5d1c8;
  background: #f8f7f4;
}

.wb-pager-range {
  font-size: 0.85rem;
  color: #6b665c;
  margin-right: 0.35rem;
}

.wb-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.sites-table td {
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid #ece9e2;
}

.sites-table tbody tr {
  cursor: pointer;
}

.sites-table tbody tr:hover {
  background: #efece6;
}

.sites-table tbody tr[aria-current='true'] {
  background: #e4dfd6;
  box-shadow: inset 3px 0 0 #1a1a1a;
}

.sites-hop {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c574e;
}

.sites-cube-chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e4dfd6;
  color: #3d3a34;
  vertical-align: middle;
}

.sites-table .sites-cube-chip {
  margin-left: 0;
}

.sites-modal,
.app-dialog {
  border: 1px solid #d5d1c8;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  max-width: 32rem;
  width: calc(100vw - 2rem);
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.app-dialog.app-dialog-wide {
  max-width: 75vw;
  width: 75vw;
}

.app-dialog-body {
  max-height: 70vh;
  overflow: auto;
}

.sites-modal::backdrop,
.app-dialog::backdrop {
  background: rgba(30, 28, 24, 0.35);
}

.app-dialog-form {
  margin: 0;
}

.app-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.app-dialog-copy {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.app-dialog-mark-list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.app-dialog-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-stage-help {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.bp-stage-label {
  margin: 0.6rem 0 0.25rem;
  font-weight: 600;
}

.bp-stage-fields {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.app-dialog-confirm-danger {
  background: #8b2e2e;
  border-color: #8b2e2e;
  color: #fff;
}

.sites-domain-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.sites-domain-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.sites-split {
  flex: 1;
  min-height: 0;
  display: flex;
}

.wb-split-host,
.wb-split {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
}

.wb-split[data-split="horizontal"] {
  flex-direction: column;
}

.wb-split-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.wb-split-pane .wb-tile,
.wb-split-pane .sites-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wb-split-pane .wb-preview-frame,
.wb-split-pane .wb-host-preview {
  flex: 1;
  min-height: 0;
}

.wb-splitter {
  flex: 0 0 5px;
  cursor: col-resize;
  background: #d5d1c8;
}

.wb-split[data-split="horizontal"] > .wb-splitter {
  cursor: row-resize;
}

.wb-splitter:hover,
.wb-splitter:focus {
  background: #1a1a1a;
}

.wb-split-pane [data-tile="workflow"],
.wb-split-pane [data-tile="blueprint-run"] {
  padding: 1rem 1.1rem 1.4rem;
  overflow: auto;
}

.wb-split-pane [data-tile="blueprint-run"] .bp-start {
  max-width: none;
}

.sites-preview-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ddd9d0;
}

.sites-need-route,
.sites-preview-window-note {
  margin: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}

.sites-app-detail .site-preview-shell {
  flex: 1;
  min-height: 0;
  border: 0;
  background: #cfcbc2;
  overflow: hidden;
  align-items: flex-start;
}

.site-preview-clip {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
}

.site-preview-framewrap {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: #fff;
}

.site-preview-framewrap iframe {
  display: block;
  border: 0;
  margin: 0;
  background: #fff;
}

.sites-splitter {
  flex: 0 0 5px;
  cursor: col-resize;
  background: #d5d1c8;
}

.sites-splitter:hover,
.sites-splitter:focus {
  background: #1a1a1a;
}

.sites-inspector {
  flex: 0 0 22rem;
  width: 22rem;
  min-width: 15rem;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f8f7f4;
  border-left: 1px solid #d5d1c8;
}

.sites-tabs {
  display: flex;
  flex: 0 0 auto;
  border-bottom: 1px solid #d5d1c8;
}

.sites-tabs [role='tab'] {
  flex: 1;
  margin: 0;
  padding: 0.4rem 0.2rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5c574e;
  cursor: pointer;
}

.sites-tabs [role='tab'][aria-selected='true'] {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.sites-panels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem 0.55rem 0.7rem;
}

.sites-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.sites-danger {
  color: #991b1b;
}

#sites-routing-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d5d1c8;
}

.sites-rev-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.sites-rev-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e6e2d8;
}

.sites-rev-item.is-ondisk {
  background: #f5f2ea;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.sites-rev-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  min-width: 0;
}

.sites-rev-when {
  font-size: 0.72rem;
  color: #5c574e;
}

.sites-rev-subject {
  font-size: 0.82rem;
}

.sites-rev-checkout {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}

.sites-rev-showing {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sites-rev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sites-rev-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sites-rev-name input {
  width: 7rem;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.12rem 0.3rem;
}

.sites-rev-name button {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.12rem 0.35rem;
  cursor: pointer;
}

.sites-app-detail .sites-eng-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.35rem;
}

.sites-eng-thread.assistant-thread {
  flex: 1;
  min-height: 10rem;
  border: 1px solid #e6e2d8;
}

.sites-eng-target {
  font-size: 0.75rem;
  background: #f5f2ea;
  padding: 0.25rem 0.4rem;
}

.sites-eng-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  min-height: 4rem;
  resize: vertical;
}

.site-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.site-preview-gap {
  width: 0.45rem;
}

.site-preview-zoom {
  width: auto;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.site-preview-pct {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #5c574e;
  min-width: 2.4rem;
}

.site-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #c5c0b6;
  border-radius: 6px;
  background: #f8f7f4;
  color: #1a1a1a;
}

.site-preview-btn.site-preview-zoom {
  width: auto;
  min-width: 2.25rem;
  padding: 0 0.55rem;
}

.site-preview-btn[aria-pressed="true"] {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.site-preview-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-preview-shell {
  overflow: hidden;
  border: 1px solid #ccc;
  background: #e8e6e1;
  min-height: 12rem;
}

.site-preview-shell iframe {
  display: block;
  border: 0;
  background: #fff;
  transform-origin: top left;
}

.kit-subtabs {
  display: flex;
  gap: 0;
  margin: 0 0 0.45rem;
  border-bottom: 1px solid #d5d1c8;
}

.kit-subtab {
  flex: 1;
  margin: 0;
  padding: 0.25rem 0.15rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5c574e;
  cursor: pointer;
}

.kit-subtab[aria-selected='true'] {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.kit-form label {
  display: block;
  font-size: 0.75rem;
  margin: 0 0 0.3rem;
}

.kit-apply {
  margin-top: 0.45rem;
}

.kit-contrast-lead {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.68rem;
  line-height: 1.3;
}

.kit-form input,
.kit-form select {
  font: inherit;
  font-size: 0.82rem;
  width: 100%;
  box-sizing: border-box;
}

.kit-form input[type='color'] {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  max-width: 1.7rem;
}

.kit-wheel-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.kit-wheel {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 5.5rem;
  cursor: crosshair;
}

.kit-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    hsl(0 85% 50%),
    hsl(60 85% 50%),
    hsl(120 85% 50%),
    hsl(180 85% 50%),
    hsl(240 85% 50%),
    hsl(300 85% 50%),
    hsl(360 85% 50%)
  );
  box-shadow: inset 0 0 0 5px #f8f7f4;
}

.kit-wheel-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1a1a1a;
  pointer-events: none;
  transform-origin: 4.5px 4.5px;
}

.kit-harmony {
  flex: 1;
  min-width: 0;
}

.kit-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem 0.2rem;
  margin: 0.3rem 0 0.25rem;
}

.kit-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  color: #5c574e;
}

.kit-swatch input[type='color'] {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid #c5c0b6;
  background: #fff;
  cursor: pointer;
}

.kit-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
}

.kit-contrast {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0 0 0.15rem;
}

.kit-aa {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: #e8e6e1;
}

.kit-aa-ok {
  background: #dcefe0;
  color: #14532d;
}

.kit-aa-fail {
  background: #fee2e2;
  color: #991b1b;
}

.watchlist-table th {
  background: #f8f7f4;
  font-weight: 600;
  white-space: nowrap;
}

.watchlist-table .sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.watchlist-table .sort-btn:hover,
.watchlist-table .sort-btn:focus-visible {
  color: #1e40af;
  outline: none;
}

.watchlist-table .sort-btn.is-sorted {
  color: #1a1a1a;
}

.watchlist-table .sort-ind {
  font-size: 0.75rem;
  min-width: 0.75rem;
  color: #1e40af;
}

.watchlist-table tbody tr:hover {
  background: #f8fafc;
}

.watchlist-table td a {
  color: inherit;
  text-decoration: none;
}

.watchlist-table td a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.watchlist-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

/* Author display:grid beats UA [hidden]; force hide for view toggles */
.watchlist-tile-grid[hidden],
#watchlist-table-wrap[hidden],
#outreach-table-wrap[hidden],
#outreach-list-view[hidden],
#outreach-edit-view[hidden] {
  display: none !important;
}

a.watchlist-tile,
button.watchlist-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  box-sizing: border-box;
}

a.watchlist-tile:hover,
a.watchlist-tile:focus-visible,
button.watchlist-tile:hover,
button.watchlist-tile:focus-visible {
  border-color: #1e40af;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.12);
  outline: none;
}

.watchlist-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.watchlist-tile-title {
  margin: 0;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watchlist-tile-asin {
  margin: 0 0 0.35rem;
}

.watchlist-tile-cat {
  margin: 0 0 0.35rem;
}

.watchlist-tile-when {
  margin: 0;
  margin-top: auto;
}

.watchlist-detail-nav {
  margin: 0 0 0.75rem;
}

.watchlist-notes {
  white-space: pre-wrap;
  margin: 0.5rem 0;
}

.backlog-buckets {
  display: grid;
  gap: 0.75rem;
}

.md-reader {
  overflow-x: auto;
}

.md-reader h1,
.md-reader h2,
.md-reader h3 {
  margin-top: 1.2em;
}

.md-reader pre {
  overflow-x: auto;
  background: #eee;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.md-reader table.md-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.md-reader table.md-table th,
.md-reader table.md-table td {
  border: 1px solid #ccc;
  padding: 0.3rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.desk-room {
  --desk-ink: #1c1917;
  --desk-muted: #57534e;
  --desk-line: #e7e5e4;
  --desk-accent: #1d4ed8;
}

.desk-room .desk-detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--desk-line);
  margin: 1rem 0 0.75rem;
}

.desk-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.4rem 0.7rem;
  color: var(--desk-muted);
  cursor: pointer;
  font: inherit;
}

.desk-tab[data-tile-tab-active] {
  color: var(--desk-ink);
  border-bottom-color: var(--desk-accent);
  font-weight: 600;
}

.desk-tile {
  background: #fafaf9;
  border: 1px solid var(--desk-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.desk-tile h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.desk-related {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.desk-row-selected {
  background: #eff6ff;
}

.desk-verbs button {
  font: inherit;
}

.desk-row-head {
  margin-bottom: 0.75rem;
}

.desk-row-key {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.85rem;
}

.desk-facts {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  margin: 0 0 0.85rem;
}

.desk-fact {
  display: contents;
}

.desk-facts dt {
  color: var(--desk-muted, #57534e);
  font-size: 0.8rem;
}

.desk-facts dd {
  margin: 0;
}

.desk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.desk-chip {
  border: 1px solid var(--desk-line, #e7e5e4);
  border-radius: 999px;
  padding: 0.15em 0.65em;
  font-size: 0.8rem;
}

.wb-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f2ee;
}

.bp-app .bp-landing {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
}

.bp-landing-inner {
  max-width: 52rem;
  padding: 1.25rem 1.4rem 2rem;
}

.wb-app .sites-chrome-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.wb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.25rem 0.45rem;
  padding: 0.25rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  flex: 0 0 auto;
}

.wb-filter {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #6b665c;
}

.wb-filter input,
.wb-filter select {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: #1a1a1a;
  padding: 0.28rem 0.5rem;
  min-width: 6.5rem;
  max-width: 12rem;
  border: 1px solid #c8c3b8;
  border-radius: 6px;
  background: #fff;
}

.wb-filter-range {
  border: 0;
  padding: 0;
  min-width: 0;
}

.wb-filter-range legend {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #6b665c;
}

.wb-filter-range input {
  width: 6.5rem;
  min-width: 0;
  margin-right: 0.3rem;
}

.wb-filter-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.wb-filter-more {
  font-size: 0.8rem;
}

.wb-filter-more summary {
  cursor: pointer;
  color: #5c574e;
  font-weight: 650;
}

.wb-filter-more[open] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
}

.wb-app .sites-chrome button,
.wb-filter-actions button,
.wb-btn-group button,
.sites-btn-row button,
.wb-inline button,
.wb-pager button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--fg);
}

.wb-app .sites-chrome button[aria-pressed="true"],
.listing-view-toggle .btn[aria-pressed="true"],
.listing-view-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.wb-app .sites-chrome button:hover,
.wb-filter-actions button:hover,
.wb-btn-group button:hover,
.sites-btn-row button:hover,
.wb-pager button:hover {
  background: #efece6;
}

.wb-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.wb-btn-group-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b665c;
  margin-right: 0.15rem;
}

a.wb-open {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid #c8c3b8;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.78rem;
}

a.wb-open:hover {
  background: #efece6;
}

.wb-chip {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e4dfd6;
  color: #3d3a34;
  margin-right: 0.2rem;
}

.wb-app.wb-app-detail {
  min-height: 0;
}

.wb-app-detail .sites-chrome-left {
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.wb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-bottom: 1px solid #ece9e2;
  background: #f8f7f4;
  flex: 0 0 auto;
}

.wb-desk-split {
  flex: 1;
  min-height: 0;
  display: flex;
  min-width: 0;
}

.wb-split-side {
  flex-direction: row;
}

.wb-split-below {
  flex-direction: column;
}

.wb-list-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wb-split-below .wb-list-col {
  flex: 1 1 45%;
}

.wb-desk-split.wb-inspector-closed .wb-inspector {
  display: none;
}

.wb-desk-split.wb-inspector-max .wb-list-col {
  display: none;
}

.wb-desk-split.wb-inspector-max .wb-inspector {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
}

.wb-inspector-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #ece9e2;
  background: #f3f1ec;
  flex: 0 0 auto;
}

.wb-inspector-empty {
  padding: 1rem 1.1rem;
}

.wb-field-block {
  flex: 0 0 auto;
  border-bottom: 1px solid #ece9e2;
  background: #f8f7f4;
}

.wb-field-block > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b665c;
  padding: 0.55rem 1.1rem;
}

.wb-field-block-body {
  padding: 0 1.1rem 0.9rem;
}

.wb-inspector [data-inspector-tiles],
.wb-record [data-inspector-tiles] {
  flex: 1 1 auto;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.wb-record {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f8f7f4;
}

.wb-record .sites-tabs,
.wb-inspector .sites-tabs {
  flex: 0 0 auto;
}

.wb-record-panels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1.1rem 1.25rem;
}

.wb-inspector {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 18rem;
}

.sites-split .wb-inspector,
.wb-split-side .wb-inspector {
  flex: 0 0 22rem;
  width: 22rem;
  max-width: none;
  min-width: 16rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.wb-split-below .wb-inspector {
  flex: 1 1 55%;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-top: 1px solid #d5d1c8;
}

.sites-preview-col .wb-host-preview {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0.65rem 0.75rem 0.75rem;
}

.sites-preview-col .wb-host-preview .site-preview-toolbar {
  flex: 0 0 auto;
}

.sites-preview-col .wb-host-preview .site-preview-shell {
  flex: 1;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #cfcbc2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wb-tile {
  max-width: 44rem;
}

.wb-tile.wb-host-preview {
  max-width: none;
}

.wb-host-preview .site-preview-toolbar {
  margin-bottom: 0.65rem;
}

.wb-host-preview .site-preview-shell {
  min-height: 28rem;
  height: min(70vh, 40rem);
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  overflow: auto;
  background: #eceae4;
}

.wb-tile .muted {
  margin: 0 0 0.85rem;
}

.wb-field {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #5c574e;
}

.wb-field input,
.wb-field textarea,
.wb-field select {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin-top: 0.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a1a1a;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c8c3b8;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
}

.wb-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.wb-inline {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.3rem;
}

.wb-related {
  margin: 0;
  padding-left: 1.15rem;
}

.wb-related-latest {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wb-related-latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}

.wb-related-class {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.wb-related-open {
  font-size: 0.82rem;
}

.wb-related-dl {
  margin: 0;
}

.wb-related-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.35rem 0.7rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #ece9e2;
  font-size: 0.82rem;
}

.wb-related-row dt {
  margin: 0;
  color: #6b665c;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.wb-related-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wb-related-module {
  margin: 0.35rem 0 0;
}

.wb-related-module h4,
.wb-related-history h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b665c;
}

.wb-related-timing {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
}

.wb-related-history {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #ece9e2;
}

.wb-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  background: #fff;
}

.wb-record-form-wrap {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem 1.5rem;
}

.wb-record-form {
  max-width: 40rem;
}

.wb-section-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
}

a.wb-ghost {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid #c8c3b8;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.82rem;
}

.wb-list-start {
  gap: 0.5rem;
  align-items: center;
}

.wb-list-start-label {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wb-list-start-label input {
  min-width: 14rem;
}

.bp-landing {
  box-sizing: border-box;
}

.bp-why {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

.bp-start {
  margin: 1.25rem 0 1.25rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  background: #faf8f4;
  max-width: 36rem;
}

.bp-start-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.bp-start-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.bp-start-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 12rem;
  flex: 1 1 12rem;
}

.bp-start-field input {
  font: inherit;
  padding: 0.35rem 0.5rem;
}

.bp-plugin.is-ok {
  border-color: #5a7a4a;
  background: #f3f6f1;
}

.bp-plugin.is-fail {
  border-color: #8a3030;
  background: #f7eeee;
}

.bp-plugin.is-current {
  border-color: #2c4a6e;
  background: #e8eef6;
  box-shadow: 0 0 0 2px rgba(44, 74, 110, 0.25);
}

.bp-plugin.is-pending {
  opacity: 0.55;
}

.bp-plugin.is-skip {
  opacity: 0.45;
  border-style: dashed;
}

.bp-run-report {
  margin: 0.6rem 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
}

.bp-run-report summary {
  cursor: pointer;
  font-weight: 600;
}

.bp-run-report-body {
  margin-top: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  background: #faf8f4;
}

.bp-run-report-body ul {
  margin: 0.35rem 0 0.7rem;
  padding-left: 1.2rem;
}

.bp-run-report-body .bp-run-sub {
  margin: 0.7rem 0 0.2rem;
  font-weight: 600;
}

.bp-room {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d8d3c8;
  border-radius: 8px;
  background: #faf8f4;
}

.bp-room h3 {
  margin: 0 0 0.35rem;
}

.bp-go {
  display: inline-block;
  margin-top: 0.4rem;
}

.bp-graph h3 {
  margin: 0 0 0.75rem;
}

.bp-chain {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.4rem 0;
  overflow-x: auto;
}

.bp-node-col {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: 0 0 auto;
}

.bp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp-edge {
  width: 1.4rem;
  height: 2px;
  background: #8a8478;
  margin: 1.1rem 0.35rem 0;
}

.wb-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.wb-chip {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid #c9c3b6;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
}

.wb-chip.is-on {
  border-color: #2c4a6e;
  background: #e8eef6;
}

.bp-plugin,
.bp-wb {
  border: 1px solid #2c4a6e;
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.bp-wb {
  margin-top: 0.45rem;
  border-color: #5a7a4a;
  font-size: 0.85rem;
}

.bp-hang {
  display: flex;
  justify-content: center;
}

.bp-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.bp-modal[hidden] {
  display: none;
}

.bp-modal-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  min-width: 22rem;
  max-width: 32rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.bp-modal-card h3 {
  margin: 0 0 0.4rem;
}

.bp-modal-card ul {
  padding-left: 1.1rem;
}

.app-sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem 0.7rem;
  border-right: 1px solid var(--border);
  background: var(--bg-raised);
  overflow: auto;
  box-sizing: border-box;
}

body[data-sidebar="compact"] .app-sidebar {
  flex-basis: var(--sidebar-w-compact);
  width: var(--sidebar-w-compact);
  padding: 0.35rem 0.25rem;
  align-items: center;
}

body[data-sidebar="compact"] .sidebar-label,
body[data-sidebar="compact"] #app-title,
body[data-sidebar="compact"] .theme-select,
body[data-sidebar="compact"] .project-switcher-label span,
body[data-sidebar="compact"] .sidebar-account a,
body[data-sidebar="compact"] .sidebar-account button {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body[data-sidebar="compact"] .app-sidebar:hover .sidebar-popup,
body[data-sidebar="compact"] .app-sidebar:focus-within .sidebar-popup {
  display: block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.sidebar-tenancy .nav-project {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.sidebar-tenancy .project-switcher {
  width: 100%;
  max-width: none;
}

.app-frame {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-main-nav {
  flex: 0 0 auto;
  align-items: stretch;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
}

.app-main-nav .nav-row {
  justify-content: flex-start;
}

.nav-icon {
  display: none;
}

.app-sidebar .nav-icon,
.app-sidebar .sidebar-icon {
  display: none;
}

body[data-sidebar="compact"] .app-sidebar #sidebar-toggle,
body[data-sidebar="compact"] .app-sidebar .notify-chip,
body[data-sidebar="compact"] .app-sidebar .sidebar-toggle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  padding: 0;
}

.app-main-nav .nav-icon {
  display: none !important;
}

body.admission-login .app-sidebar .sidebar-tenancy,
body.admission-login .app-sidebar .sidebar-account,
body.admission-login .app-sidebar .sidebar-alerts {
  display: none;
}

.toolbar-flow {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  padding: 0.25rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  width: 100%;
  box-sizing: border-box;
}

.toolbar-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  flex: 0 1 auto;
  max-width: 100%;
}

.wb-app .sites-chrome.toolbar-flow .sites-chrome-left,
.wb-app .sites-chrome.toolbar-flow .sites-chrome-right {
  flex: 0 1 auto;
  width: auto;
  margin-left: 0;
}

.listing-view-toggle {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
}

.wb-filter-bar {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  gap: 0.25rem 0.5rem;
  padding: 0.2rem 0.45rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}

.wb-filter-bar .wb-filters {
  display: contents;
}

.listing-app,
.workspace-pane,
.wb-app {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.listing-title {
  margin: 0;
  font-size: 0.95rem;
}

.listing-lead {
  margin: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  padding: 0.25rem 0.55rem;
  border-bottom: 1px solid var(--border);
}

.listing-scope {
  align-items: center;
}

.listing-scope .btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.listing-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: auto;
}

#plugins-list-view,
#plugins-list,
[data-listing-body] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.listing-tiles,
.plugin-tile-grid,
.project-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.4rem;
  padding: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  align-content: start;
  align-items: start;
}

.listing-app[data-view="table"] .listing-tiles,
.listing-app[data-view="table"] .plugin-tile-grid,
.listing-app[data-view="table"] .project-tile-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.listing-app[data-view="table"] .listing-tile,
.listing-app[data-view="table"] .plugin-tile,
.listing-app[data-view="table"] .project-tile {
  display: grid;
  grid-template-columns: 1fr 1fr 8rem;
  gap: 0.35rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 0.2rem 0.45rem;
}

.listing-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
  height: auto;
  align-self: start;
  cursor: default;
}

.listing-tile[data-href] {
  cursor: pointer;
}

.listing-tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.listing-tile-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  color: inherit;
}

.listing-tile-body {
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.listing-tile-actions {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.listing-table-wrap {
  flex: 1;
}

.listing-table th,
.listing-table td,
.sites-table th,
.sites-table td {
  padding: 0.18rem 0.45rem;
  font-size: 0.78rem;
}

.listing-pager,
.wb-pager.listing-pager {
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

body.full-workspace #app-main > .listing-app,
body.full-workspace #app-main > .wb-app,
body.full-workspace #app-main > .workspace-pane {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.listing-body .listing-table-wrap,
.listing-body .sites-table-wrap {
  flex: none;
  height: auto;
  max-height: none;
  overflow: visible;
}

#workflows-defs-card {
  min-height: 0;
  flex: 1 1 auto;
}

.listing-history-open .listing-filters,
.listing-history-open .listing-view-toggle,
.listing-history-open .listing-summary,
.listing-history-open .listing-lead,
.listing-history-open #workflows-lead,
.listing-history-open #workflows-scope,
.listing-history-open #workflows-summary {
  display: none;
}

.listing-history-open #workflows-history-panel,
.listing-history-open #setup-history-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

body.full-workspace.assistant-open {
  width: calc(100vw - min(36rem, 100vw));
  max-width: calc(100vw - min(36rem, 100vw));
  margin-right: min(36rem, 100vw);
}

body.full-workspace.assistant-open #app-shell,
body.full-workspace.assistant-open .app-frame,
body.full-workspace.assistant-open .wb-app,
body.full-workspace.assistant-open .listing-app {
  max-width: 100%;
  width: 100%;
}

.listing-pager-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wb-split {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.wb-split[data-split="horizontal"] {
  flex-direction: column;
}

.wb-split[data-split="vertical"] {
  flex-direction: row;
}

.wb-split-pane {
  flex: 1 1 auto;
  min-width: 6rem;
  min-height: 6rem;
  overflow: auto;
}

.wb-splitter {
  flex: 0 0 5px;
  background: var(--border);
  cursor: col-resize;
}

.wb-split[data-split="horizontal"] > .wb-splitter {
  cursor: row-resize;
}

.wb-desk-split > .wb-splitter {
  flex: 0 0 5px;
  background: var(--border);
  cursor: col-resize;
}

.wb-split-below > .wb-splitter {
  cursor: row-resize;
}

.wb-tile,
.wb-field {
  padding: 0.25rem 0.4rem;
}

.wb-field-label {
  font-size: 0.68rem;
  color: var(--fg-muted);
}

.wb-json-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.wb-json-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.wb-json-table th,
.wb-json-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.2rem 0.4rem 0.2rem 0;
  border-bottom: 1px solid var(--border);
}

.wb-json-table th {
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}

pre.wb-json {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
}

.wb-record-panels {
  padding: 0.4rem 0.55rem;
}

.card {
  background: var(--bg-raised);
  border-color: var(--border);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.55rem;
}

.notify-root {
  position: relative;
}

.notify-chip {
  width: 100%;
}

body[data-sidebar="compact"] .notify-chip {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
}

.site-header {
  display: none;
}

#app-header {
  display: none;
}
