:root { color-scheme: light; --ink: #18251f; --muted: #536259; --line: #dde4df; --green: #17613d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 0 24px 48px; background: #fff; color: var(--ink); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main, header.top, body > footer { width: 100%; max-width: 720px; margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.wordmark img { display: block; width: auto; height: 32px; border-radius: 4px; }
nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 0; margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(28px, 5vw, 36px); letter-spacing: -.025em; margin: 40px 0 16px; }
h2 { font-size: 20px; margin: 36px 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.muted, .hint { color: var(--muted); font-size: 14px; }
.lead { font-size: 18px; max-width: 580px; color: var(--muted); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, .cta { min-height: 44px; }
.primary, .cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 8px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.primary:hover, .cta:hover { background: #104b2e; text-decoration: none; }
.secondary, .small { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #c8d2cb; border-radius: 8px; background: #fff; color: var(--ink); line-height: 1.4; font-size: 14px; }
.small:hover, .secondary:hover { background: #f4f7f5; }
.danger, .error { color: #9d3029; }
.error { min-height: 24px; margin-top: 16px; }
.error:empty { min-height: 0; margin: 0; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #498560; outline-offset: 4px; }
label { display: block; font-size: 14px; color: var(--ink); margin: 20px 0 6px; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid #c8d2cb; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 80px; resize: vertical; }
details { margin: 20px 0; }
summary { cursor: pointer; color: var(--muted); padding: 8px 0; font-size: 14px; }
details[open] > summary { margin-bottom: 8px; }
code, pre, .code-slab { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
code { font-size: .88em; overflow-wrap: anywhere; }
pre { padding: 20px; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f7; font-size: 13px; line-height: 1.7; overflow: auto; max-width: 100%; }
.code-slab { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 12px 0; text-align: center; overflow-wrap: anywhere; user-select: all; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
.tw { overflow-x: auto; }
.section { padding: 28px 0; border-top: 1px solid var(--line); }
.section h2 { margin-top: 0; }
.section p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0; }
.home h1 { margin-top: 72px; font-size: clamp(32px, 6vw, 44px); max-width: 580px; }
.home .intro { padding-bottom: 40px; }
.home .section { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.home .section p { color: var(--muted); }
.veyns-signin { max-width: 320px; margin: 24px 0; }
.account-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.account-section h2 { margin-top: 0; }
.device-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.device-row > span { min-width: 0; overflow-wrap: anywhere; }
.device-row .muted { display: block; margin-top: 2px; }
.device-row button { flex-shrink: 0; }
.device-row:last-child { margin-bottom: 20px; }
.app { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.app .row { font-size: 14px; overflow-wrap: anywhere; color: var(--muted); margin: 6px 0; }
.app .controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.app h3 code { display: block; color: var(--muted); margin-top: 4px; font-weight: 400; }
.console .primary { margin-top: 24px; }
.popup { padding: 24px 16px; background: #f5f7f5; }
.popup main { max-width: 440px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.popup h1 { font-size: 26px; margin-top: 28px; }
.popup .primary, .popup .secondary { width: 100%; margin-top: 12px; }
.popup .wordmark { margin-bottom: 0; }
.popup .wordmark img { height: 28px; }
.decision-kind { margin: 24px 0 6px; color: var(--muted); font-size: 14px; }
.decision-kind + h1 { margin: 0 0 12px; overflow-wrap: anywhere; }
.decision-actions { display: flex; gap: 12px; margin-top: 20px; }
.popup .decision-actions button { flex: 1; width: 0; min-width: 0; min-height: 52px; margin: 0; border-radius: 12px; font-size: 16px; }
.request-status { padding: 12px 16px; background: #edf5ef; border-radius: 12px; color: var(--green); font-size: 14px; }
.popup #status:empty { display: none; }
.action-box { padding: 18px; border: 1px solid var(--line); border-radius: 8px; margin: 20px 0; }
.action-box strong { display: block; font-weight: 600; }
.action-box dl { margin: 12px 0 0; }
.action-box dl div { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; margin: 8px 0; }
.action-box dt { color: var(--muted); }
.action-box dd { margin: 0; overflow-wrap: anywhere; }
.action-box .request-details div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.request-details dt { font-size: 14px; overflow-wrap: anywhere; }
.request-details dd { font-size: 16px; white-space: pre-wrap; }
.action-box strong { overflow-wrap: anywhere; }
.verified-tag { color: var(--green); }
.unverified-tag { color: #88620b; }
.verified-tag, .unverified-tag { display: inline-block; font-size: 13px; }
.linklike { border: 0; background: none; color: var(--muted); padding: 8px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
#status, #palm-status, #palm-pair-note { margin-top: 20px; }
.popup #status, .popup #palm-status { color: var(--green); font-weight: 500; }
#details { white-space: pre-wrap; overflow-wrap: anywhere; }
footer, body > footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer nav { gap: 20px; margin-bottom: 12px; }
footer a, footer .linklike { color: var(--muted); }
.popup footer { margin-top: 28px; }
@media (max-width: 480px) {
  body { padding-left: 20px; padding-right: 20px; }
  header.top { gap: 16px; flex-wrap: wrap; padding-top: 20px; }
  nav { gap: 18px; }
  .wordmark span { display: none; }
  .home h1 { margin-top: 44px; }
  .home .section { display: block; }
  .home .section h2 { margin-bottom: 12px; }
  .account-table th, .account-table td { padding-left: 4px; padding-right: 4px; font-size: 12px; }
  .account-table .small { padding: 8px; font-size: 12px; }
}
