:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --surface: #fffdfa;
  --ink: #1b2233;
  --muted: #4a5268;
  --line: #ded9cf;
  --blue: #2347a8;
  --gold: #c8a04a;
  --green: #56702f;
  --red: #9e4526;
  --soft: #efe9de;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 13px;
  line-height: 1.25;
}
button:hover:not(:disabled) {
  background: #ebe7de;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 0;
  top: -100px;
  padding: 15px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.app {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 33px 18px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(165deg, #f9f7f1, #ede7db);
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    600 37px Georgia,
    serif;
  text-decoration: none;
  color: var(--ink);
  padding: 0 13px;
  margin-bottom: 50px;
}
.brand span {
  display: block;
  font:
    11px system-ui,
    sans-serif;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 5px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  color: var(--muted);
}
.sidebar > .eyebrow {
  padding: 0 13px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-color: transparent;
  background: transparent;
  padding: 12px 10px;
  font-size: 13px;
}
nav button span {
  font-size: 19px;
  width: 22px;
  text-align: center;
}
nav button b {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  min-width: 19px;
  text-align: center;
}
nav button[aria-current="page"] {
  background: #fffdf7;
  border-color: #dcd5c5;
  box-shadow: 0 2px 4px #201b0f05;
  color: var(--blue);
}
.sidebar-note {
  margin-top: auto;
  padding: 60px 12px 15px;
  line-height: 1.8;
  font-size: 12px;
}
.sidebar-note small {
  color: var(--muted);
}
.prototype {
  border-top: 1px solid var(--line);
  padding: 18px 12px 0;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.prototype small {
  font-size: 10px;
  letter-spacing: 0;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 33px;
  background: var(--surface);
  font-size: 12px;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.stop {
  color: var(--red);
  border-color: #c6b3a6;
  padding: 8px 13px;
}
.status-dot,
.dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  height: 6px;
  width: 6px;
  margin-right: 9px;
  vertical-align: middle;
}
.dot.blue {
  background: var(--blue);
}
main {
  padding: 35px 33px 40px;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font:
    400 35px Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
.page-heading p:last-child {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.primary {
  background: var(--gold);
  border-color: #b18b3e;
  color: var(--ink);
  font-weight: 600;
  padding: 12px 18px;
  white-space: nowrap;
}
.primary:hover:not(:disabled) {
  background: #d7b86c;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.metrics article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px 19px;
  background: var(--surface);
}
.metrics article > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.metrics strong {
  font-size: 25px;
  font-weight: 500;
}
.metrics small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.queue-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.queue-strip small {
  margin-left: 14px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 3px;
}
.filters button {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.toolbar input {
  width: 267px;
  font-size: 12px;
  padding: 10px 12px;
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.table-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.table-scroll {
  overflow-x: auto;
  min-height: 383px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--muted);
  background: #f2eee6;
  height: 39px;
  font-weight: 600;
}
th,
td {
  padding: 12px 11px;
  border-bottom: 1px solid #e9e4da;
}
td:first-child,
th:first-child {
  padding-left: 15px;
  padding-right: 4px;
}
tbody tr {
  cursor: pointer;
  height: 66px;
}
tbody tr:hover,
tbody tr.selected {
  background: #f1f3f9;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}
.file-source {
  color: var(--muted);
  font-size: 10px;
}
.owner {
  font-size: 11px;
}
.state {
  display: inline-block;
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 6px;
  background: var(--soft);
  white-space: nowrap;
}
.state.downloading {
  color: var(--blue);
  background: #e8edf9;
}
.state.awaiting_approval {
  color: #735619;
  background: #f4edda;
}
.state.failed {
  color: var(--red);
  background: #f9eae3;
}
.state.completed {
  color: var(--green);
  background: #edf1e6;
}
.saved {
  width: 84px;
}
progress {
  display: block;
  height: 5px;
  width: 78px;
  margin-bottom: 7px;
  appearance: none;
  border: none;
  background: var(--soft);
  border-radius: 5px;
}
progress::-webkit-progress-bar {
  background: var(--soft);
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: var(--blue);
}
.speed small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.batchbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fcfaf6;
  font-size: 11px;
}
.batchbar > span {
  margin-right: 7px;
  color: var(--muted);
}
.batchbar button {
  font-size: 11px;
  padding: 6px 9px;
}
.batchbar small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 20px 18px;
  background: linear-gradient(150deg, #fdfbf6, #f4f0e8);
}
.inspector h2 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.inspector .eyebrow {
  font-size: 9px;
  margin-bottom: 16px;
}
.inspector p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.inspector dl {
  font-size: 11px;
  margin: 20px 0;
}
.inspector dt {
  color: var(--muted);
  margin-top: 13px;
  font-size: 10px;
}
.inspector dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.segment-map {
  display: flex;
  gap: 3px;
  margin: 16px 0 8px;
}
.segment-map span {
  height: 12px;
  flex: 1;
  background: #ddd8cd;
  border-radius: 2px;
}
.segment-map span.saved {
  background: var(--gold);
}
.inspector button {
  font-size: 11px;
  width: 100%;
  margin-top: 8px;
}
.section-note {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0 0;
}
.message {
  padding: 12px 16px;
  border: 1px solid #b1bdd9;
  background: #edf1fb;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.6;
}
footer {
  border-top: 1px solid var(--line);
  padding: 15px 33px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}
footer a {
  font:
    14px Georgia,
    serif;
  margin-left: 8px;
  color: var(--ink);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 8px;
}
.card h2 {
  font:
    25px Georgia,
    serif;
  margin: 0 0 15px;
}
.card p {
  font-size: 13px;
  line-height: 1.8;
}
.card label {
  display: block;
  font-size: 12px;
  margin: 0 0 10px;
}
.card input,
.card textarea,
.card select,
.toolbar input {
  border: 1px solid #cfc8bc;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.card input,
.card select {
  width: 100%;
  display: block;
  padding: 10px;
  margin-top: 7px;
}
.card textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.7;
  padding: 12px;
  margin-bottom: 18px;
}
.form-row,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid {
  margin-top: 25px;
}
.empty {
  padding: 55px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px dashed var(--line);
  margin: 20px 0;
}
.link-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.link-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.run-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.run-heading h2 {
  margin-top: 14px;
}
.run-heading p {
  margin-bottom: 0;
}
.tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: #f0e6cc;
  color: #72551b;
  border-radius: 4px;
  padding: 6px 9px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 25px 0;
  gap: 5px;
}
.pipeline > div {
  border-top: 3px solid #d8d4cb;
  padding: 13px 10px;
  background: #efebe3;
  font-size: 12px;
}
.pipeline .done {
  border-color: var(--green);
}
.pipeline .waiting {
  border-color: var(--gold);
  background: #f6ecd7;
}
.pipeline small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.plan-list {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
}
.plan-list li {
  padding: 8px 0;
}
.agent-quote {
  border-left: 2px solid #9da2ad;
  padding: 12px 17px;
  margin-top: 20px;
  background: #f2f2f2;
  font-size: 11px;
}
.agent-quote p {
  font-size: 12px;
  font-style: italic;
  margin-bottom: 0;
}
.notice {
  border: 1px solid var(--line);
  background: #f5f1e7;
  padding: 13px;
}
.queue-list {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.queue-list button {
  padding: 18px;
  text-align: left;
}
.queue-list button[aria-pressed="true"] {
  border-color: var(--blue);
}
.queue-list small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.card label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}
.check input {
  display: inline-block;
  width: auto;
  margin: 0;
}
.approval-inbox {
  max-width: 780px;
  background: #fff;
  color: #161616;
  border-color: #aaa;
  border-radius: 3px;
}
.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  padding: 20px 0;
  border-block: 1px solid #bbb;
}
.approval-row p {
  margin: 0;
}
.trust-dialog {
  background: white;
  color: #111;
  border: 2px solid #444;
  border-radius: 2px;
  width: min(540px, calc(100% - 32px));
  max-height: 90vh;
  padding: 28px;
  font:
    14px system-ui,
    sans-serif;
  overflow: auto;
}
.trust-dialog::backdrop {
  background: #141b2b88;
}
.trust-dialog h2 {
  font:
    600 22px system-ui,
    sans-serif;
  margin: 18px 0;
}
.trust-dialog .close {
  float: right;
  font-size: 23px;
  padding: 0 7px;
  border: 0;
  background: white;
}
.simulation {
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.trust-dialog dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  line-height: 1.6;
}
.trust-dialog dt {
  font-weight: 600;
}
.trust-dialog dd {
  margin: 0;
}
.trust-dialog > p {
  line-height: 1.6;
}
.trust-dialog blockquote {
  border-left: 3px solid #777;
  padding: 10px 15px;
  margin: 20px 0;
  background: #eee;
  font-size: 12px;
}
.binding {
  border-block: 1px solid #aaa;
  padding: 14px 0;
  margin: 18px 0;
  display: grid;
  gap: 6px;
}
.binding strong {
  font: 600 20px monospace;
  letter-spacing: 0.08em;
}
.binding small {
  font-size: 11px;
}
.trust-dialog input {
  font: 18px monospace;
  padding: 10px;
  width: 100%;
  margin: 8px 0;
  border: 1px solid #555;
  border-radius: 2px;
}
.decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.decision-actions button {
  background: white;
  color: #111;
  border: 1px solid #444;
  border-radius: 2px;
  padding: 12px 8px;
}
.decision-actions button:hover:not(:disabled) {
  background: #ddd;
}
.trust-dialog #review-hint {
  min-height: 21px;
  font-size: 12px;
}
.no-jobs {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  main {
    max-width: 1600px;
    width: 100%;
    margin: auto;
  }
  .desk {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  td,
  th {
    padding-inline: 17px;
  }
  .table-scroll {
    min-height: 420px;
  }
}
@media (max-width: 1200px) {
  .desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .inspector {
    border-left: none;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 30px;
  }
  .inspector dl {
    margin: 0;
    grid-row: 1/6;
    grid-column: 2;
  }
  .inspector h2 {
    grid-column: 1;
  }
  .inspector button {
    max-width: 220px;
  }
  .metrics {
    gap: 8px;
  }
  .metrics article {
    padding: 15px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .queue-strip {
    align-items: flex-start;
  }
  .queue-strip small {
    display: block;
    margin-left: 16px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .app {
    display: block;
  }
  .sidebar {
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 26px;
    margin: 0 0 15px;
    padding: 0;
  }
  .brand span {
    display: inline;
    font-size: 10px;
    margin-left: 10px;
  }
  .sidebar > .eyebrow,
  .sidebar-note,
  .prototype {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px;
  }
  nav button span {
    display: none;
  }
  nav button b {
    margin-left: 5px;
  }
  .topbar {
    padding: 12px 17px;
    height: auto;
    gap: 14px;
    font-size: 10px;
  }
  .top-actions button {
    font-size: 10px;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .page-heading > button {
    margin-top: 20px;
  }
  main {
    padding: 25px 16px;
    min-width: 0;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics strong {
    font-size: 22px;
  }
  .queue-strip > .muted {
    display: none;
  }
  .toolbar {
    display: block;
  }
  .toolbar input {
    margin-top: 15px;
    width: 100%;
  }
  .filters button {
    font-size: 11px;
    padding: 9px;
  }
  .batchbar {
    flex-wrap: wrap;
  }
  .batchbar small {
    display: none;
  }
  .inspector {
    display: block;
  }
  .inspector dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    margin: 15px 0;
  }
  .inspector dt,
  .inspector dd {
    margin: 0;
  }
  .card {
    padding: 20px;
  }
  .form-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .run-heading {
    display: block;
  }
  .run-heading button {
    margin-top: 15px;
  }
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    padding: 15px 16px;
    display: block;
    line-height: 2;
  }
  footer span {
    display: block;
  }
  .approval-row {
    display: block;
  }
  .approval-row button {
    margin-top: 15px;
  }
  .trust-dialog {
    padding: 20px;
  }
  .decision-actions {
    grid-template-columns: 1fr 1fr;
  }
  .trust-dialog dl {
    grid-template-columns: 65px 1fr;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Website preview: keep the simulation boundary visible at every viewport. */
.preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--ink); font: 12px/1.6 system-ui, sans-serif; }
.preview-banner p { margin: 0; flex: 1 1 320px; }
.preview-banner a { font-weight: 600; }
.status-dot.is-stopped { background: var(--red); }
@media (max-width: 700px) { .preview-banner { padding: 12px 16px; } }

.preview-endorsement { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; text-decoration: none; }
.preview-endorsement > span:first-child { font: 9px system-ui, sans-serif; letter-spacing: .08em; }
.preview-endorsement .verne-logo { display: block; width: 22px; height: 22px; }

.cloud-facts { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font: 13px/1.5 system-ui, sans-serif; }
.cloud-facts dt { color: var(--muted); }
.cloud-facts dd { margin: 0; overflow-wrap: anywhere; }
.cloud-progress-card { margin-top: 24px; }
.cloud-progress-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cloud-progress { display: grid; gap: 16px; margin-top: 18px; }
.cloud-progress-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.cloud-progress-row progress { grid-column: 1 / -1; width: 100%; height: 8px; }
@media (max-width: 700px) { .cloud-progress-row { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; font: 13px/1.5 system-ui, sans-serif; }
.check-row input { width: auto; flex: 0 0 auto; margin-top: 3px; }
