:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #253c32;
  background: #f5f6f2;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
input,
select,
textarea {
  border: 1px solid #d8dfd6;
  border-radius: 9px;
  padding: 10px 13px;
  background: white;
  color: inherit;
}
button:hover {
  border-color: #568069;
  background: #f2f8ef;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86bd71;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #abd293;
  border-color: transparent;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #265b3e;
}
textarea {
  width: 100%;
  min-height: 110px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}
.primary {
  background: #214e38;
  color: white;
  border-color: #214e38;
}
.primary:hover {
  background: #316849;
  color: white;
}
.danger {
  color: #a34936;
}
.quiet {
  background: transparent;
}
.app {
  display: grid;
  grid-template-columns: 226px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  background: #edf0e8;
  border-right: 1px solid #dde3d8;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.5px;
  font-size: 19px;
}
.brand img {
  width: 33px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #7b8b7d;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav {
  border: 0;
  text-align: left;
  padding: 13px;
  background: transparent;
  color: #667668;
}
.nav.active {
  background: #dce7d4;
  color: #204b31;
  font-weight: 650;
}
.sidefoot {
  margin-top: auto;
  line-height: 1.8;
  font-size: 12px;
  color: #738170;
}
.sidefoot .tag {
  display: inline-block;
  margin-bottom: 8px;
}
.main {
  min-width: 0;
  padding: 36px 44px 60px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 6px 0 10px;
}
.muted {
  color: #7d887c;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  margin: 25px 0;
  padding: 14px 18px;
  border-radius: 11px;
  background: #e8efe1;
  border: 1px solid #dbe6d1;
  color: #547148;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.stat {
  border: 1px solid #e0e4dc;
  border-radius: 13px;
  background: #fff;
  padding: 20px;
}
.stat strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  margin-top: 10px;
  font-weight: 600;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 16px;
}
.section-title h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.card {
  padding: 23px;
  border: 1px solid #dfe4da;
  background: white;
  border-radius: 13px;
}
.card h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 600;
}
.card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card p {
  color: #7b8679;
  line-height: 1.7;
}
.card footer {
  border-top: 1px solid #edf0e8;
  padding-top: 17px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.provider {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.4px;
  color: #577c57;
}
.tag {
  border-radius: 20px;
  font-size: 11px;
  padding: 5px 9px;
  background: #f0f2ec;
  color: #687866;
  white-space: nowrap;
}
.tag.good {
  background: #e5f0df;
  color: #406e30;
}
.tag.bad {
  background: #fbe9e4;
  color: #a34c35;
}
.tag.pending {
  background: #fff1d4;
  color: #97731b;
}
.panel {
  background: #fff;
  border: 1px solid #e0e4dc;
  border-radius: 13px;
  padding: 24px;
  margin-top: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 13px 12px;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #7c8879;
  font-weight: 500;
  border-bottom: 1px solid #e4e8df;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #eef0e9;
}
tr:last-child td {
  border-bottom: 0;
}
.link {
  color: #366749;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #7b8877;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #dde3d8;
  margin-top: 25px;
}
.tab {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 13px 0;
  color: #7b8877;
}
.tab.active {
  color: #285639;
  border-bottom: 2px solid #285639;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field small {
  color: #7a8877;
  line-height: 1.6;
}
.span2 {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.split {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(270px, 1fr);
  gap: 22px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #e1e7dc;
  border-radius: 10px;
  padding: 18px;
  background: #f5f7f0;
  line-height: 1.7;
  font-size: 12px;
  max-height: 500px;
  overflow: auto;
}
.timeline {
  padding: 0;
  list-style: none;
}
.timeline li {
  border-left: 2px solid #d7e4cc;
  padding: 0 0 22px 18px;
  margin-left: 5px;
  position: relative;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: #6c9960;
  border-radius: 50%;
}
.timeline time {
  font-family: ui-monospace, monospace;
  color: #7e8a79;
  font-size: 11px;
}
.timeline strong {
  display: block;
  margin: 6px 0;
}
.timeline p {
  color: #75816f;
  font-size: 12px;
  line-height: 1.7;
  margin: 6px 0;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 80% 10%, #e0ead4, transparent 65%), #f5f6f2;
}
.login-box {
  width: 100%;
  max-width: 410px;
}
.login-box h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 38px 0 12px;
}
.login-box form {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}
.login-box input {
  padding: 14px;
}
.login-box button {
  padding: 13px;
}
.error {
  color: #a3422e;
  line-height: 1.6;
  min-height: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #244a34;
  color: white;
  border-radius: 10px;
  max-width: 90%;
  z-index: 5;
  display: none;
}
dialog {
  border: 1px solid #d5dece;
  border-radius: 16px;
  padding: 28px;
  width: min(600px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  color: inherit;
  background: #fbfcf8;
}
dialog::backdrop {
  background: #192e2266;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin: 0 0 18px;
}
.loading {
  padding: 80px;
  color: #648159;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.bar {
  height: 9px;
  background: #e9eee3;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}
.bar span {
  display: block;
  height: 100%;
  background: #85ad6c;
}
.job-sub {
  font-size: 12px;
  line-height: 1.8;
  color: #71806c;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.required {
  color: #ad624d;
}
.divider {
  height: 1px;
  background: #e5e9df;
  margin: 22px 0;
}
details summary {
  cursor: pointer;
  color: #55704c;
  padding: 12px 0;
}
.inline-note {
  font-size: 12px;
  color: #798672;
  line-height: 1.8;
}
.back {
  margin-bottom: 15px;
}
.flex1 {
  flex: 1;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 170px 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
  .main {
    padding: 28px 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #dde3d8;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
    overflow: auto;
  }
  .nav {
    padding: 9px;
  }
  .sidefoot {
    display: none;
  }
  .main {
    padding: 23px 16px;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar h1 {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .card {
    padding: 20px;
  }
  .panel {
    padding: 17px;
  }
  .actions {
    gap: 6px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  button {
    padding: 9px 11px;
  }
  .brand {
    font-size: 17px;
  }
}

meter {
  width: 100%;
  height: 16px;
  accent-color: #85ad6c;
}

@media (max-width: 620px) {
  .sidefoot {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
  }
  .sidefoot > div,
  .sidefoot > .tag {
    display: none;
  }
}

[hidden] {
  display: none !important;
}

/* Provider-focused editors: practical forms, readable summaries, progressive disclosure. */
.provider-options {
  display: grid;
  gap: 12px;
}
.provider-option {
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  gap: 8px;
  padding: 20px;
}
.provider-option strong {
  font-size: 19px;
}
.provider-option span {
  grid-column: 1;
  line-height: 1.7;
  color: #617060;
}
.provider-option b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.provider-intro {
  margin: 24px 0;
  padding: 0 4px;
}
.provider-intro p {
  color: #627461;
  line-height: 1.8;
}
.editor-section {
  margin: 18px 0;
  padding: 26px;
  border: 1px solid #dfe5dc;
  background: white;
  border-radius: 14px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 2px 0 8px;
}
.section-heading p {
  margin: 0;
}
.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6efdf;
  color: #365a31;
  flex: none;
  font-weight: 650;
}
.account-select,
.secret-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-select select,
.secret-control input {
  flex: 1;
  min-width: 140px;
}
.account-select button,
.secret-control button {
  flex-shrink: 0;
}
.form-grid > * {
  min-width: 0;
}
.field input,
.field select {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.field input[type="checkbox"] {
  width: 18px;
  flex: none;
}
.hours-editor {
  display: grid;
  gap: 8px;
}
.hour-rows {
  display: grid;
  gap: 8px;
}
.hour-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hour-row select {
  flex: 1;
}
.hour-row button {
  padding: 9px 14px;
}
.hour-row > span {
  width: 18px;
  text-align: center;
}
.add-hour {
  justify-self: start;
}
.weekday-editor {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.weekday-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f6f8f3;
}
.weekday-row .check {
  padding-top: 10px;
}
.weekday-row .hours-editor {
  max-width: 360px;
}
.summary-box {
  background: #f1f5ec;
  border-left: 3px solid #86a978;
  padding: 14px;
  line-height: 1.8;
  font-size: 13px;
  border-radius: 0 8px 8px 0;
}
.switch-label {
  margin-bottom: 22px;
  font-weight: 650;
}
.savebar {
  position: sticky;
  bottom: 12px;
  background: #fffffff5;
  padding: 15px 20px;
  box-shadow: 0 4px 24px #1a332315;
  border: 1px solid #d7e1d1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-heading h2 {
  margin-top: 8px;
}
.credential-group {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8dc;
}
.credential-group h3 {
  margin: 8px 0;
}
.credential-group .form-grid {
  margin-top: 18px;
}
.credential-group .small {
  font-weight: 400;
  font-size: 12px;
  color: #697965;
}
.device-editor {
  margin-top: 15px;
}
.header-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 1.3fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.header-row label {
  font-size: 12px;
}
.header-row input {
  width: 100%;
  min-width: 0;
}
.header-key {
  font-size: 11px;
  margin-top: 5px;
}
.mode-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.mode-option {
  border: 1px solid #d9e3d2;
  padding: 18px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  cursor: pointer;
}
.mode-option:has(input:checked) {
  border-color: #4b7742;
  background: #eef5e7;
}
.mode-option span {
  grid-column: 2;
  line-height: 1.7;
  color: #687760;
  font-size: 12px;
}
.time-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.audit-row {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e6eadd;
  font-size: 12px;
  overflow-wrap: anywhere;
}
dialog {
  width: min(850px, calc(100% - 30px));
}
@media (max-width: 620px) {
  .editor-section {
    padding: 18px;
  }
  .weekday-row {
    grid-template-columns: 70px 1fr;
    padding: 10px;
    gap: 6px;
  }
  .savebar {
    bottom: 6px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .savebar .actions {
    flex: 1;
    justify-content: flex-end;
  }
  .secret-control {
    gap: 6px;
  }
  .header-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .header-row label {
    grid-column: 1/-1;
  }
  .audit-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  dialog {
    padding: 18px;
  }
  .mode-options {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 16px;
  }
}

/* Adapted from the OpenDesign Local Codex design system. */
:root {
  --bg: oklch(97.5% 0.009 93);
  --surface: oklch(99.5% 0.004 93);
  --fg: oklch(23% 0.018 205);
  --muted: oklch(48% 0.018 205);
  --border: oklch(88% 0.012 110);
  --accent: oklch(58% 0.15 155);
  --sidebar: oklch(22% 0.018 200);
  --mint-wash: oklch(94% 0.035 155);
  --mint-ink: oklch(36% 0.115 155);
  --shadow: 0 12px 32px #172e2306;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "SF Pro Text",
    -apple-system,
    "PingFang SC",
    sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}
button {
  min-height: 42px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button,
input,
select,
textarea {
  border-color: var(--border);
  border-radius: 10px;
}
button:hover {
  background: #eef4ef;
  border-color: #96b6a3;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.primary:hover {
  background: oklch(50% 0.15 155);
  border-color: oklch(50% 0.15 155);
}
.muted,
.inline-note,
.field small {
  color: var(--muted);
}
.app {
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  background: var(--sidebar);
  color: #f1f6f3;
  padding: 32px 19px;
  gap: 38px;
  border: 0;
}
.sidebar .brand {
  font-size: 20px;
}
.sidebar .eyebrow {
  color: #93a79f;
  font-size: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b5c2bd;
  border-radius: 9px;
  min-height: 46px;
  font-size: 13px;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.nav:hover {
  background: #ffffff0c;
  color: #fff;
}
.nav.active {
  background: #2d4940;
  color: #d3ffe6;
}
.sidefoot {
  color: #9aaea5;
}
.sidefoot .quiet {
  color: #c3d2cb;
  border-color: #ffffff24;
  margin: 5px 5px 0 0;
}
.sidefoot .quiet:hover {
  background: #ffffff10;
}
.sidebar .divider {
  background: #ffffff17;
}
.sidefoot .tag.good {
  background: #ffffff0c;
  color: #addcbe;
}
.main {
  padding: 36px 40px 70px;
  max-width: 1490px;
}
.main > .topbar {
  margin-bottom: 24px;
}
.topbar h1 {
  font-size: 31px;
  font-weight: 600;
}
.eyebrow {
  font-family: ui-monospace, monospace;
  color: var(--mint-ink);
  letter-spacing: 1.4px;
}
.panel,
.card,
.editor-section {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
}
.card h3 {
  font-size: 21px;
  line-height: 1.4;
}
.card footer {
  gap: 12px;
}
.tag {
  border-radius: 6px;
  font-size: 11px;
}
.tag.good {
  color: var(--mint-ink);
  background: var(--mint-wash);
}
.provider {
  font:
    600 11px ui-monospace,
    monospace;
  letter-spacing: 0.3px;
  color: var(--mint-ink);
}
.banner {
  background: #f3f0e1;
  border: 1px solid #e9dfbb;
  color: #6f5928;
  border-radius: 10px;
}
.demo-banner {
  font-size: 11px;
  background: #edf4ef;
  border-color: #d1e1d5;
  color: #446b53;
}
.overview-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sidebar);
  color: #edf8f0;
  border-radius: 20px;
  padding: 31px 36px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 20px 0 24px;
}
.overview-hero:after {
  content: "";
  width: 370px;
  height: 370px;
  border-radius: 50%;
  border: 1px solid #c6efdb1b;
  box-shadow:
    0 0 0 45px #c6efdb07,
    0 0 0 90px #c6efdb04;
  position: absolute;
  right: -120px;
  top: -145px;
  z-index: -1;
}
.overview-hero .eyebrow {
  color: #a0dbbc;
  font-size: 9px;
}
.overview-hero h2 {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.overview-hero p {
  color: #b4c8bd;
  font-size: 13px;
}
.hero-tags {
  display: flex;
  gap: 10px;
  font-size: 10px;
  margin-top: 22px;
  color: #c3d4ca;
}
.hero-tags span {
  border: 1px solid #d3f3df24;
  border-radius: 5px;
  padding: 5px 8px;
}
.hero-clock {
  text-align: right;
  flex: none;
  display: grid;
  gap: 9px;
}
.hero-clock small {
  font-size: 10px;
  color: #afc7bb;
  letter-spacing: 1px;
}
.hero-clock strong {
  font:
    500 64px/1.2 "Avenir Next",
    sans-serif;
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
}
.hero-clock strong span {
  color: #89cfa5;
}
.stats {
  margin: 20px 0 26px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 20px 23px;
}
.stat > span {
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  font:
    550 35px/1.3 "Avenir Next",
    sans-serif;
  display: block;
  margin: 6px 0;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.overview-columns .panel {
  margin-top: 0;
}
.section-title h2 {
  font-size: 19px;
}
.plan {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.plan:last-child {
  padding-bottom: 0;
}
.plan h3 {
  font-size: 16px;
  margin: 7px 0;
}
.plan .muted {
  font-size: 11px;
}
.release-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: #f2f5ef;
  border-radius: 10px;
  padding: 16px;
}
.release-track div {
  display: grid;
  gap: 8px;
}
.release-track small {
  font-size: 11px;
  color: var(--muted);
}
.release-track strong {
  font:
    550 23px "Avenir Next",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.release-track > span {
  color: #8cb49c;
  font-size: 18px;
}
.attention-item {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 8px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  width: 100%;
  background: transparent;
}
.attention-item strong {
  font-size: 13px;
}
.attention-item > span:not(.tag) {
  font-size: 11px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.attention-item small {
  font-size: 10px;
  color: var(--muted);
}
.attention-item:hover {
  background: #f3f6ef;
}
.filterbar {
  display: flex;
  gap: 16px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px;
  margin: 20px 0 25px;
}
.filterbar label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 550;
  min-width: 150px;
}
.filterbar .search-field {
  flex: 1;
}
.filterbar input,
.filterbar select {
  font-weight: 400;
}
.job-times {
  font:
    500 24px "Avenir Next",
    sans-serif;
  margin: 18px 0 10px;
  letter-spacing: -0.7px;
}
.job-facts {
  margin: 22px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 16px;
  font-size: 12px;
}
.job-facts div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.job-facts dt {
  color: var(--muted);
  flex: none;
  font-size: 11px;
}
.job-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.job-card {
  display: flex;
  flex-direction: column;
}
.job-card footer {
  margin-top: auto;
  border: 0;
  padding-top: 2px;
}
.evidence-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f1f4ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-top: 18px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.evidence-strip span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.latency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.latency-row strong {
  font-family: ui-monospace, monospace;
  color: var(--mint-ink);
}
.latency-row span {
  color: var(--muted);
}
.tab.active {
  color: var(--mint-ink);
  border-color: var(--accent);
}
.mode-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--mint-wash);
}
.mode-option:has(input[value="execute"]:checked) {
  background: #fff3eb;
  border-color: #c87b48;
}
.summary-box {
  background: #f0f5ed;
  border-color: #82b093;
}
.step-number {
  background: var(--mint-wash);
  color: var(--mint-ink);
}
.savebar {
  border-color: var(--border);
  box-shadow: 0 8px 35px #1c32271a;
}
.login {
  background: var(--bg);
  background-image: radial-gradient(
    ellipse at 80% 20%,
    #dcebdd99,
    transparent 60%
  );
}
.login-box {
  border-color: var(--border);
  box-shadow: 0 25px 80px #24362a12;
}
.loading {
  padding: 15vh 24px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 761px) and (max-width: 1100px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main {
    padding: 30px 24px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .hero-clock strong {
    font-size: 46px;
  }
  .overview-hero {
    padding: 25px;
  }
  .overview-hero h2 {
    font-size: 26px;
  }
}

/* Phone navigation and layouts are designed independently of desktop density. */
.mobile-nav,
.mobile-brand {
  display: none;
}
.mobile-menu {
  display: grid;
  gap: 12px;
}
.mobile-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 52px;
}
.mobile-menu svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 16px 16px calc(100px + env(safe-area-inset-bottom));
    width: 100%;
  }
  .mobile-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.3px;
    margin: 0 0 22px;
  }
  .mobile-brand .tag {
    font-size: 9px;
  }
  .main > .topbar {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
  }
  .main > .topbar .eyebrow {
    display: none;
  }
  .topbar h1 {
    font-size: 26px;
    letter-spacing: -0.7px;
    margin: 0 0 6px;
  }
  .main > .topbar > .actions {
    width: 100%;
    justify-content: space-between;
  }
  .topbar .muted {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  button,
  input,
  select {
    min-height: 44px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 0;
    width: 20px;
    height: 20px;
  }
  button {
    touch-action: manipulation;
  }
  .mobile-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fbfcfaf5;
    backdrop-filter: blur(16px);
    border-top: 1px solid #dce3df;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px #12221b08;
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 49px;
    padding: 5px 0;
    font-size: 11px;
    color: #64716b;
  }
  .mobile-nav button[aria-current="page"] {
    color: #145c46;
    background: #e3f3eb;
    border-radius: 12px;
    font-weight: 700;
  }
  .mobile-nav svg {
    width: 21px;
    height: 21px;
  }
  .overview-hero {
    padding: 24px;
    display: block;
    border-radius: 20px;
  }
  .overview-hero h2 {
    font-size: 25px;
    line-height: 1.4;
    max-width: 260px;
  }
  .overview-hero p {
    font-size: 12px;
  }
  .hero-clock {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ffffff24;
    text-align: left;
  }
  .hero-clock strong {
    font-size: 54px;
  }
  .hero-tags {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 6px;
  }
  .overview-columns,
  .cards,
  .metric-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    min-width: 0;
    padding: 16px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat small {
    font-size: 10px;
  }
  .overview-stats .stat:last-child small {
    white-space: normal;
  }
  .panel,
  .card,
  .editor-section {
    padding: 19px;
    border-radius: 16px;
  }
  .panel h2 {
    font-size: 18px;
  }
  .release-track {
    gap: 6px;
  }
  .release-track strong {
    font-size: 21px;
  }
  .release-track small {
    font-size: 10px;
  }
  .plan h3 {
    font-size: 15px;
  }
  .plan > .row {
    align-items: center;
    gap: 8px;
  }
  .attention-item {
    padding: 14px 0;
  }
  .filterbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
  }
  .filterbar .search-field {
    grid-column: 1/-1;
  }
  .filterbar label {
    min-width: 0;
  }
  .filterbar input,
  .filterbar select {
    width: 100%;
    max-width: 100%;
  }
  .filterbar button {
    align-self: end;
  }
  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .table-wrap table,
  .table-wrap tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 10px;
    padding: 18px;
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #e1e6e2;
    border-radius: 16px;
  }
  .table-wrap td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .table-wrap td:first-child {
    grid-column: 1/-1;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0ec;
  }
  .table-wrap td:first-child button {
    font-size: 15px;
    padding: 0;
    min-height: 36px;
    text-align: left;
  }
  .table-wrap td:first-child .code {
    font-size: 10px;
  }
  .table-wrap td[data-label]:before {
    content: attr(data-label);
    display: block;
    color: #6c7973;
    font-size: 10px;
    margin-bottom: 5px;
  }
  .table-wrap td.empty {
    grid-column: 1/-1;
  }
  .tabs {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .tab {
    padding: 12px 4px;
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .span2 {
    grid-column: auto;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .mode-options {
    grid-template-columns: 1fr;
    margin: 18px 0;
  }
  .mode-option {
    padding: 17px;
  }
  .mode-option strong {
    font-size: 14px;
  }
  .mode-option span {
    font-size: 12px;
  }
  .savebar {
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .savebar .actions {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }
  .test-editor .footer-actions {
    position: sticky;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 12px 0;
    background: #ffffffed;
  }
  .test-editor .footer-actions .primary {
    width: 100%;
  }
  .evidence-strip {
    align-items: flex-start;
    flex-direction: column;
    font-size: 12px;
  }
  .latency-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .latency-row span {
    grid-row: 2;
    font-size: 10px;
  }
  .latency-row strong {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .secret-control input {
    flex-basis: 100%;
  }
  .secret-control button {
    flex: 1;
    font-size: 12px;
  }
  .account-select select {
    flex-basis: 100%;
  }
  .header-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .header-row label {
    grid-column: 1/-1;
  }
  .audit-row {
    grid-template-columns: 1fr;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }
  dialog .modal-heading {
    position: sticky;
    top: -22px;
    background: #fff;
    z-index: 3;
    padding: 14px 0;
  }
  dialog .footer-actions {
    position: sticky;
    bottom: calc(-24px - env(safe-area-inset-bottom));
    background: #fff;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  }
  .login {
    padding: 24px 16px;
  }
  .login-box {
    padding: 28px 22px;
  }
  .login h1 {
    font-size: 30px;
  }
  #toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
  }
  pre,
  .code {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) {
  .overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px;
    margin: 16px 0;
  }
  .overview-hero .eyebrow,
  .overview-hero p,
  .hero-clock small:last-child,
  .hero-tags span:last-child {
    display: none;
  }
  .overview-hero h2 {
    font-size: 17px;
    max-width: 160px;
    margin: 0;
  }
  .hero-tags {
    margin-top: 11px;
  }
  .hero-clock {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
    gap: 4px;
  }
  .hero-clock strong {
    font-size: 39px;
    letter-spacing: -2px;
  }
  .hero-clock small {
    font-size: 9px;
  }
  .overview-stats {
    margin: 16px 0;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .overview-stats .stat {
    padding: 12px 7px;
    text-align: center;
    border-radius: 11px;
  }
  .overview-stats .stat > span {
    font-size: 9px;
    white-space: nowrap;
  }
  .overview-stats .stat strong {
    font-size: 25px;
    margin: 4px 0 0;
  }
  .overview-stats .stat small {
    display: none;
  }
  .overview-columns {
    gap: 12px;
  }
  .overview-columns > .panel > .muted {
    font-size: 10px;
  }
  .overview-columns > .panel .section-title {
    margin: 0 0 10px;
  }
  .overview-columns > .panel .section-title .eyebrow {
    margin-top: 0;
  }
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 760px) {
  .main > .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .main > .topbar > .actions {
    width: auto;
  }
  .main > .topbar:has(#new-job) > .actions,
  .main > .topbar:has(#new-connection) > .actions {
    grid-column: 1/-1;
    width: 100%;
  }
  .overview-hero h2 {
    text-wrap: balance;
  }
  .plan > .row > div {
    min-width: 0;
  }
  .plan > .row button {
    flex: none;
  }
}
.editor-section > .section-heading {
  list-style: none;
  color: var(--fg);
  padding: 0;
  margin-bottom: 0;
}
.editor-section > .section-heading::-webkit-details-marker {
  display: none;
}
.editor-section > .section-heading::after {
  content: "+";
  margin-left: auto;
  font-size: 21px;
  color: var(--muted);
}
.editor-section[open] > .section-heading::after {
  content: "−";
}
.editor-section[open] > .section-body {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .provider-intro {
    margin: 14px 0;
  }
  .provider-intro p {
    font-size: 12px;
  }
  .back {
    margin-bottom: 8px;
  }
  .tabs {
    margin-top: 8px;
  }
  .editor-section:not([open]) .section-heading p {
    display: none;
  }
}
@media (max-width: 760px) {
  .overview-stats .stat > span {
    white-space: normal;
    display: block;
    min-height: 26px;
    line-height: 1.4;
  }
}

.tag.info {
  background: #eaf1f9;
  color: #345c83;
}
.workspace-status {
  font-size: 11px;
  color: var(--muted);
  margin: 26px 0 0;
}

/* Identity and account access use the same single-column flow on phones. */
.google-login {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
}
.token-recovery {
  margin: 24px 0;
}
.token-recovery summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--muted);
}
.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #e6e8ed);
}
.identity-card strong {
  overflow-wrap: anywhere;
}
.identity-card p {
  margin: 6px 0 0;
}
#account-grants {
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
}
.grant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.grant-option input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.grant-option small {
  display: block;
  color: var(--muted);
  padding-top: 4px;
}
.wrap-code {
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (max-width: 600px) {
  .identity-card {
    align-items: flex-start;
  }
  .identity-card button {
    flex-shrink: 0;
  }
  #google-settings .secret-control {
    flex-wrap: wrap;
  }
  #google-settings .secret-control input {
    min-width: 0;
    width: 100%;
  }
}

.signed-in-user {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 850px) {
  .mobile-nav.member-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scope-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  background: white;
  border: 1px solid #e2e7e3;
  border-radius: 14px;
}
.scope-bar select {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.scope-bar .muted {
  font-size: 12px;
}
.service-target label {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.service-target input {
  width: 100%;
  min-width: 0;
}
.service-target {
  border-top: 1px solid #e2e7e3;
  padding: 16px 0;
}
@media (max-width: 600px) {
  .scope-bar {
    align-items: stretch;
  }
  .scope-bar select {
    min-width: 0;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
}

/* Dates carry meaning; never hide schedule context on a small screen. */
.schedule-hero {
  background: var(--sidebar);
  color: #edf8f0;
  border-radius: 20px;
  padding: 28px 32px;
  margin: 20px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.schedule-hero .eyebrow {
  color: #a0dbbc;
  margin-top: 0;
}
.schedule-hero h2 {
  font-size: 23px;
  margin: 12px 0;
  line-height: 1.5;
}
.schedule-hero .action-time {
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.schedule-hero p {
  color: #c3d4ca;
  line-height: 1.7;
}
.hero-itinerary {
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
}
.hero-itinerary strong {
  font-weight: 500;
}
.schedule-hero .hero-tags {
  flex-wrap: wrap;
  margin-top: 16px;
}
.schedule-hero .hero-tags span {
  display: inline-block;
}
.hero-preview-link {
  color: #d7f5e4;
  flex-shrink: 0;
  padding: 12px 0;
  text-underline-offset: 5px;
}
#upcoming-plans {
  scroll-margin-top: 20px;
}
.plan-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 12px 0;
}
.schedule-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.schedule-steps li {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.schedule-steps li:last-child {
  padding-bottom: 0;
}
.step-number {
  border: 1px solid var(--border);
  background: var(--mint-wash);
  color: var(--mint-ink);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.schedule-steps li > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  line-height: 1.5;
}
.schedule-steps small,
.forecast-row small {
  color: var(--muted);
  font-size: 11px;
}
.schedule-steps strong {
  font-size: 15px;
  font-weight: 600;
}
.schedule-steps li > div > span {
  color: var(--muted);
  font-size: 12px;
}
.schedule-preview {
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.schedule-preview summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.schedule-preview summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
}
.forecast-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.forecast-row > div {
  display: grid;
  align-content: start;
  gap: 6px;
  line-height: 1.5;
  font-size: 12px;
}
.forecast-row strong {
  font-size: 12px;
  font-weight: 600;
}
.forecast-state {
  color: var(--mint-ink);
}
.forecast-muted .forecast-state {
  color: var(--muted);
}
.upcoming-panel .schedule-explanation {
  line-height: 1.8;
}
@media (max-width: 760px) {
  .schedule-hero {
    display: block;
    padding: 22px;
  }
  .schedule-hero h2 {
    font-size: 18px;
  }
  .schedule-hero .action-time {
    font-size: 38px;
  }
  .hero-itinerary span {
    display: grid;
    gap: 2px;
  }
  .hero-preview-link {
    display: inline-block;
    margin-top: 12px;
  }
  .overview-columns > .upcoming-panel > .schedule-explanation {
    display: block;
  }
  .forecast-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .forecast-row > div:last-child {
    padding-left: 12px;
    border-left: 2px solid #b7d4c2;
  }
  .schedule-steps strong {
    font-size: 13px;
  }
}
