/* Persimmon's paper sign-in and neutral API workspace are the visual reference. */
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f6f6f4;
  --ink: #171716;
  --muted: #6b6a65;
  --line: #e6e6e3;
  --line-strong: #ccccca;
  --success: #32735a;
  --danger: #b2493f;
  --paper: #f8f7f2;
  --green: #304333;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 6px; color: #fff; background: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #353532; border-color: #353532; }
button.quiet, .button.secondary { color: var(--ink); background: var(--bg); border-color: var(--line-strong); }
button.quiet:hover, .button.secondary:hover { background: var(--surface); }
button.danger { min-height: 36px; padding: 6px 12px; color: var(--danger); background: transparent; border-color: var(--line); }
button.danger:hover { background: #fbf0ee; border-color: var(--danger); }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
#view:focus { outline: none; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 16px; padding: 10px 16px; transform: translateY(-150%); color: #fff; background: var(--green); }
.skip-link:focus { transform: none; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 72px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.brand { color: var(--green); font: 600 28px/1 Georgia, "Times New Roman", serif; letter-spacing: -.07em; text-decoration: none; }
.brand-divider { width: 1px; height: 20px; background: var(--line-strong); }
.product-name { font-size: 13px; font-weight: 500; }
.console-label { margin-left: auto; color: var(--muted); font-size: 12px; }
.workspace { display: flex; min-height: calc(100svh - 129px); }
.sidebar { display: flex; flex-direction: column; flex: 0 0 224px; gap: 32px; padding: 36px 18px 24px; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 5px; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav-label { margin: 0 12px 14px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.sidebar nav a:hover { color: var(--ink); background: var(--surface); }
.sidebar nav a.current { color: var(--ink); background: #eeeee9; font-weight: 500; }
.nav-symbol { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-menu { display: grid; gap: 10px; margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--line); }
.account-email { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#sign-out { margin-top: 4px; }
#sign-out button { min-height: 36px; padding: 6px 12px; font-size: 12px; }
main { width: 100%; min-width: 0; max-width: 1220px; margin: 0 auto; padding: 48px 56px 64px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }
h2 { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading p { margin-top: 10px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading .note { font-size: 11px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; padding: 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.card.primary { background: #f0f3ed; border-color: #dce3d6; color: var(--green); }
.card .label { color: var(--muted); font-size: 12px; }
.card .value { margin: 12px 0 6px; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card .detail { color: var(--muted); font-size: 11px; }
.panel { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.access-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.access-panel .access-copy { flex: 1; min-width: 200px; }
.access-copy p { margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 4px 9px; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 11px; white-space: nowrap; }
.badge.success { color: var(--success); background: #edf4ef; }
.badge.attention { color: #86632b; background: #f8f1e4; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.next-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.next-step { display: flex; flex-direction: column; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--line); }
.next-step p { margin: 8px 0 18px; max-width: 320px; }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 36px; margin-top: auto; font-size: 13px; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.account-details { margin-top: 40px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: 12px; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel > .section-heading { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
th { color: var(--muted); background: #fafaf8; font-size: 11px; font-weight: 500; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafaf8; }
td:first-child { min-width: 120px; }
td code { white-space: nowrap; }
form.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.key-field { flex: 1; max-width: 440px; min-width: 180px; }
input { min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: var(--bg); }
input::placeholder { color: #898880; }
.form-panel h2 { margin-bottom: 20px; }
.form-panel .note { margin-top: 12px; }
.empty-state { padding: 44px 24px; text-align: center; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { max-width: 390px; margin: 0 auto; }
.secret-reveal { margin-bottom: 24px; padding: 20px; border: 1px solid #d3ddcd; border-radius: 8px; background: #f0f3ed; }
.secret-reveal .note { margin-top: 6px; }
.secret { display: block; margin-top: 14px; padding: 12px; border: 1px solid #d3ddcd; border-radius: 5px; background: #fff; font: 13px/1.7 var(--mono); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.error { margin: 16px 0; padding: 14px 16px; color: var(--danger); background: #fbf0ee; border: 1px solid #ecd3cd; border-radius: 6px; overflow-wrap: anywhere; }
.usage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.usage-note { margin-top: 14px; }
.loading, .notice { padding: 32px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; min-height: 57px; padding: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

/* Persimmon's sign-in uses warm paper, forest green, and an editorial serif. */
body.signed-out { background: var(--paper); color: var(--green); }
.signed-out .bar, .signed-out .site-footer { width: min(1120px, calc(100% - 80px)); margin: auto; padding-inline: 0; border-color: #d9ddcf; }
.signed-out .bar { min-height: 104px; }
.signed-out .console-label { color: #65705f; }
.signed-out .workspace { min-height: calc(100svh - 169px); align-items: center; }
.signed-out main { max-width: 1120px; padding: 80px 0 100px; width: calc(100% - 80px); }
.sign-in-layout { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 80px; }
.sign-in-copy .eyebrow { color: #65705f; margin-bottom: 24px; }
.sign-in-copy h1 { margin-bottom: 38px; font: 400 clamp(58px, 6.8vw, 88px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.sign-in-copy h2 { margin-bottom: 14px; font: 400 26px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.sign-in-copy > p { max-width: 410px; color: #65705f; font-size: 14px; line-height: 1.8; }
.sign-in-copy .button { margin-top: 28px; min-height: 48px; padding: 14px 22px; border-color: var(--green); border-radius: 4px; background: var(--green); }
.sign-in-copy .button:hover { background: #435943; }
.sign-in-copy .sign-in-note { margin-top: 14px; font-size: 11px; }
.sign-in-details { border-top: 1px solid #d9ddcf; }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 28px 0; border-bottom: 1px solid #d9ddcf; }
.feature-number { padding-top: 4px; color: #788270; font: 11px var(--mono); }
.feature h2 { font-size: 15px; }
.feature p { margin-top: 8px; color: #65705f; font-size: 13px; line-height: 1.7; }
.signed-out .site-footer { min-height: 65px; }

@media (max-width: 1100px) {
  .sidebar { flex-basis: 196px; }
  main { padding: 36px 32px 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sign-in-layout { gap: 48px; }
}
@media (max-width: 700px) {
  .bar { min-height: 64px; padding: 0 20px; gap: 16px; }
  .brand { font-size: 25px; }
  .console-label { display: none; }
  .workspace { display: block; min-height: calc(100svh - 121px); }
  .sidebar { padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); gap: 0; }
  .sidebar nav { display: flex; gap: 4px; }
  .sidebar nav a { flex: 1; justify-content: center; gap: 8px; padding: 10px 8px; }
  .nav-label, .account-menu > .eyebrow { display: none; }
  .account-menu { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 0 0; border-top: 1px solid var(--line); }
  #sign-out { margin: 0; flex-shrink: 0; }
  .account-email { font-size: 11px; }
  main { padding: 30px 20px 44px; }
  h1 { font-size: 28px; }
  .page-heading { margin-bottom: 26px; }
  .cards { gap: 10px; }
  .card { padding: 18px 16px; }
  .card .value { font-size: 29px; }
  .panel { padding: 20px; }
  .table-panel { padding: 0; }
  .table-panel > .section-heading { padding: 18px 20px; }
  th, td { padding: 14px 16px; }
  .next-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .account-details { margin-top: 30px; }
  .row .key-field { max-width: none; flex-basis: 100%; }
  input { font-size: 16px; }
  input[type="date"] { display: block; width: 100%; max-width: 100%; appearance: none; }
  /* Safari's native date text needs more space than half a phone-width form. */
  .date-field { flex: 1 1 100%; min-width: 0; }
  .site-footer { flex-wrap: wrap; padding: 18px 20px; }
  .signed-out .bar, .signed-out .site-footer, .signed-out main { width: calc(100% - 40px); }
  .signed-out .bar { min-height: 88px; }
  .signed-out main { padding: 48px 0; }
  .sign-in-layout { grid-template-columns: 1fr; gap: 44px; }
  .sign-in-copy h1 { font-size: 64px; margin-bottom: 28px; }
  .sign-in-copy h2 { font-size: 25px; }
  .feature { padding: 22px 0; }
}
@media (max-width: 360px) {
  .nav-symbol { display: none; }
  .sign-in-copy h1 { font-size: 56px; }
  .card { padding: 16px 12px; }
  .card .value { font-size: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button, .sidebar nav a { transition: background-color .15s, border-color .15s; }
}
