[hidden] { display: none !important; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
input, textarea { font: inherit; width: 100%; border: 1px solid #b9c0b1; border-radius: 6px; color: var(--ink); background: #fff; padding: 13px 15px; min-height: 48px; }
textarea { resize: vertical; line-height: 1.75; }
input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #a53910; outline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
button.button { border: 1px solid transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
.button-outline { border: 1px solid #aeb4a7 !important; color: var(--ink); background: transparent; }
.button-outline:hover { background: #edf0e7; }
.text-button { border: 0; padding: 10px 0; min-height: 44px; background: none; color: #8c3617; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.text-link { display: inline-block; min-height: 44px; padding-block: 12px; font-size: 14px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 8px; }
.form-status { font-size: 14px; line-height: 1.65; min-height: 24px; margin-top: 16px; }
.form-status[data-state="error"] { color: #a52f23; }
.form-status[data-state="success"] { color: #315338; }
.bot-check { min-height: 66px; margin-top: 18px; max-width: 100%; font-size: 12px; color: var(--muted); }
.newsletter-section { margin-top: 80px; padding: 48px; border: 1px solid #d3dacb; border-radius: 12px; background: #eef1e7; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.newsletter-copy h2 { font-size: clamp(2.5rem, 3.8vw, 3.8rem); margin: 24px 0 20px; }
.newsletter-copy .serif-word { color: #b94217; }
.newsletter-copy > p { max-width: 390px; color: var(--muted); }
.newsletter-form label:first-child { margin-top: 0; }
.signup-row { display: flex; gap: 10px; }
.signup-row input { min-width: 0; }
.signup-row .button { margin: 0; flex-shrink: 0; gap: 10px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: #4c5547; margin-top: 15px; }
.consent-label input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex-shrink: 0; accent-color: #364d30; }
.consent-label a { text-decoration: underline; text-underline-offset: 3px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.social-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social-preview > span:first-child { font-size: 12px; color: #58614f; flex-basis: 100%; }
.social-logo { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #cad2bf; border-radius: 50%; color: #59634f; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.social-logo:hover { color: #222720; background-color: #fff; border-color: #8b967e; }
.social-logo:focus-visible { border-radius: 50%; }
.social-logo svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.action-page { max-width: 590px; margin: auto; padding: 52px 24px; }
.action-card { margin-top: 45px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 42px; }
.action-card h1 { font-size: 42px; margin: 20px 0; letter-spacing: -.055em; line-height: 1.12; }
.action-card > p { color: var(--muted); }
.action-card .button { width: 100%; margin-top: 20px; }
.action-card .text-link { margin-top: 20px; }
.login-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #ffe5d6; margin-bottom: 28px; }
.login-footnote { font-size: 13px; color: var(--muted); text-align: center; margin-top: 26px; }
#login-code { font-size: 25px; letter-spacing: .3em; }
.passkey-signin { margin-top: 26px; }
.passkey-signin .button { justify-content: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-fallback { border: 1px solid var(--line); border-radius: 8px; background: #f8f9f4; }
.auth-fallback summary { min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.auth-fallback-body { border-top: 1px solid var(--line); padding: 2px 18px 20px; }
.auth-fallback-body > .field-hint { margin-top: 14px; }
.auth-fallback .button { justify-content: center; }
.desk-header { display: flex; align-items: center; gap: 32px; justify-content: space-between; padding: 20px 40px; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.desk-name { font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-right: auto; }
.desk-account { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.desk-wrap { max-width: 1440px; padding: 45px 40px 80px; margin: auto; }
.desk-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 38px; }
.desk-heading h1 { font-size: clamp(2.8rem, 4vw, 4.2rem); margin-top: 14px; line-height: 1.06; }
.desk-heading .serif-word { color: #b94217; }
.desk-heading .button { margin: 0 0 8px; }
.desk-stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 23px 0; }
.desk-stats div { display: flex; flex-direction: column; gap: 4px; }
.desk-stats span { font-size: 12px; color: var(--muted); }
.desk-stats strong { font-family: var(--heading); font-size: 32px; font-weight: 500; }
.desk-stats p { font-size: 13px; color: var(--muted); align-self: center; }
.desk-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 20px 0 30px; }
.desk-tabs button { border: 0; background: none; padding: 14px 0; min-height: 48px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.desk-tabs button[aria-pressed="true"] { color: var(--ink); border-color: #c44818; }
.desk-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 35px; }
.desk-grid > * { min-width: 0; }
.letter-library h2, .preview-heading h2 { font-size: 20px; letter-spacing: -.5px; font-weight: 600; }
.letter-library { border-right: 1px solid var(--line); padding-right: 25px; }
#letter-list { margin-top: 20px; }
.empty-note { color: var(--muted); font-size: 14px; padding: 22px 0; }
.library-letter { display: flex; flex-direction: column; gap: 7px; text-align: left; width: 100%; padding: 16px; margin: 0 0 10px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--ink); }
.library-letter:hover { background: #ecefe5; }
.library-letter[aria-pressed="true"] { border-color: #c4cdbb; background: #ecefe5; }
.library-letter strong { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.library-status { text-transform: uppercase; font-size: 10px; letter-spacing: 1px; color: #536048; }
.editor-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 5px; }
.state-pill { padding: 5px 10px; border: 1px solid #cbd4c1; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.editor-topline .field-hint { margin-top: 0; text-align: right; }
.optional { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.letter-options { margin-top: 24px; border-block: 1px solid var(--line); padding: 12px 0; }
.letter-options summary { padding: 8px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.button-fields { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding-bottom: 18px; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; }
.editor-actions .button { margin: 0; }
.editor-actions .button-dark { margin-left: auto; }
.send-hint { margin-top: 15px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; }
#letter-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 15px; }
.audience-heading h2 { font-size: 36px; }
.audience-heading p { color: var(--muted); margin-top: 12px; }
.security-heading h2 { font-size: 36px; }
.security-heading > p { color: var(--muted); margin-top: 12px; max-width: 680px; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px; margin-top: 30px; }
.security-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 28px; }
.security-card h3 { font-size: 22px; margin-bottom: 8px; }
.security-card > p { color: var(--muted); }
.passkey-setup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; }
.passkey-setup label { margin-top: 0; }
.passkey-setup .button { margin: 0; min-height: 48px; }
.passkey-list { display: grid; gap: 10px; margin-top: 20px; }
.passkey-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9f4; }
.passkey-copy { min-width: 0; }
.passkey-copy strong { display: block; overflow-wrap: anywhere; }
.passkey-copy span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.passkey-row .text-button { flex-shrink: 0; color: #963126; }
.security-callout { border-left: 3px solid #c44818; padding-left: 16px; margin-top: 24px; }
.security-callout strong { display: block; margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 17px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-size: 12px; color: var(--muted); }
dialog { border: 1px solid var(--line); padding: 36px; border-radius: 12px; max-width: 540px; width: calc(100% - 32px); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(20 29 17 / 65%); }
dialog h2 { font-size: 34px; margin-block: 18px 24px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; }
.dialog-actions .button { margin-top: 0; }
.dev-inbox { max-width: 900px; padding: 40px 24px; margin: auto; }
.dev-inbox h1 { font-size: 40px; }
.dev-inbox article { padding: 24px; background: white; border: 1px solid var(--line); margin-top: 25px; }
.dev-inbox h2 { font-size: 24px; }
.dev-inbox pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .newsletter-section { gap: 35px; padding: 35px; } .signup-row { flex-direction: column; } .signup-row .button { justify-content: center; } .desk-name { display: none; } .desk-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 25px; } .editor-actions .button-dark { margin-left: 0; } }
@media (max-width: 760px) { .newsletter-section { grid-template-columns: 1fr; margin-top: 55px; } .newsletter-copy > p { max-width: 100%; } .signup-row { flex-direction: row; } .desk-header { padding: 16px 22px; } .desk-header .brand { font-size: 24px; } .desk-account { gap: 10px; } #owner-name { display: none; } .desk-wrap { padding: 32px 22px 60px; } .desk-stats { grid-template-columns: repeat(3, 1fr); gap: 15px; } .desk-stats p { display: none; } .desk-grid { grid-template-columns: 1fr; } .letter-library { border-right: 0; padding: 0; } #letter-list { display: flex; overflow-x: auto; max-width: 100%; } .library-letter { min-width: 200px; width: 200px; flex-shrink: 0; } .empty-note { padding: 0; } .button-fields { grid-template-columns: 1fr; gap: 0; } .security-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .newsletter-section { padding: 28px 22px; gap: 26px; } .newsletter-copy h2 { font-size: 2.7rem; } .signup-row { flex-direction: column; } .action-page { padding: 26px 18px; } .action-card { padding: 28px 22px; margin-top: 28px; } .action-card h1 { font-size: 36px; } .desk-heading { flex-direction: column; align-items: flex-start; } .desk-heading h1 { font-size: 3rem; } .desk-stats span { font-size: 11px; } .desk-stats strong { font-size: 28px; } .editor-actions { display: grid; grid-template-columns: 1fr 1fr; } .editor-actions .button { justify-content: center; padding-inline: 12px; font-size: 13px; gap: 10px; } .preview-heading { align-items: flex-start; } .preview-heading h2 { font-size: 18px; } .passkey-setup { grid-template-columns: 1fr; } .passkey-setup .button { justify-content: center; } .passkey-row { align-items: flex-start; } .security-card { padding: 22px; } dialog { padding: 25px; } .dialog-actions { flex-wrap: wrap; } th, td { padding-inline: 8px; font-size: 12px; } }
