:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1d2527; background: #f4f3ee; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 12%, #e6efe8, transparent 35%), #f4f3ee; }
.shell { max-width: 1120px; margin: auto; padding: 0 28px; }
.brand { height: 88px; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 800; letter-spacing: .16em; border-bottom: 1px solid #d8ddd8; }
.brand-mark { font-size: 21px; color: #28775e; letter-spacing: -.2em; margin-right: 5px; }
.connection-status { margin-left: auto; font-size: 11px; letter-spacing: 0; font-weight: 700; color: #28775e; }
.connection-status.offline { color: #a34536; }
.brand-tag { padding: 6px 10px; border: 1px solid #bacfc3; border-radius: 99px; font-size: 11px; letter-spacing: .04em; color: #28775e; }
main { min-height: calc(100vh - 150px); padding: 65px 0 80px; }
.intro { max-width: 650px; margin-bottom: 36px; }
.eyebrow, .card-kicker { color: #28775e; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5vw, 61px); letter-spacing: -.055em; line-height: 1.05; margin: 0 0 15px; }
.intro > p:last-child { font-size: 17px; color: #586662; line-height: 1.6; }
h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -.04em; }
h3 { margin: 0 0 20px; font-size: 23px; letter-spacing: -.035em; }
.card { background: #fff; border: 1px solid #dce3de; border-radius: 20px; padding: 30px; box-shadow: 0 14px 42px #213c3021; }
.narrow { max-width: 480px; }
form { display: flex; flex-direction: column; }
label { font-size: 13px; font-weight: 700; margin: 18px 0 7px; }
input, textarea, select { width: 100%; min-height: 47px; border-radius: 9px; border: 1px solid #b9c5bd; padding: 10px 13px; font: inherit; background: #fcfdfb; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 3px solid #b9dec9; border-color: #28775e; }
input[type="range"] { padding: 0; min-height: 30px; accent-color: #216a55; }
button { cursor: pointer; font: inherit; font-weight: 700; border: 0; border-radius: 9px; min-height: 45px; padding: 10px 17px; background: #216a55; color: #fff; }
button:hover { background: #18533f; }
button:disabled { cursor: not-allowed; opacity: .55; }
.small-button { min-height: 34px; margin-top: 8px; padding: 6px 10px; font-size: 12px; }
.generator-card button.text-tool { align-self: flex-start; min-height: 36px; margin-top: 0; font-size: 12px; }
form button { margin-top: 23px; display: flex; justify-content: space-between; align-items: center; }
button.quiet { color: #216a55; background: #e9f2ec; }
button.quiet:hover { background: #d9eadd; }
.text-button { color: #8d3f39; background: none; padding-left: 0; margin-top: 12px; }
.text-button:hover { color: #6e2923; background: none; }
.muted { color: #61716a; line-height: 1.55; }
.fine { color: #6d7973; font-size: 12px; line-height: 1.55; }
.message { border-radius: 10px; padding: 13px 16px; margin: 0 0 22px; background: #e8f3e9; color: #1b6249; }
.message.error { background: #fff0eb; color: #9d3b2e; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.dashboard-head h2 { margin-bottom: 0; }
.dashboard-head .muted { margin-bottom: 0; }
.dashboard-nav { display: flex; gap: 10px; margin: 0 0 16px; }
.dashboard-nav button { min-width: 135px; }
.quota-summary { margin: 0 0 22px; padding: 10px 14px; border: 1px solid #d7e3da; border-radius: 10px; color: #416355; background: #f4f9f5; font-size: 12px; line-height: 1.5; }
.library-item h4 { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.status-pill { display: inline-block; padding: 7px 12px; color: #856126; background: #fff4d9; border-radius: 99px; font-size: 13px; font-weight: 700; }
.status-pill.active { color: #1f674c; background: #e6f4eb; }
.hero-number { font-size: clamp(43px, 5vw, 65px); font-weight: 800; letter-spacing: -.05em; margin: 4px 0 -8px; }
.meter { width: 100%; height: 9px; background: #e5ece7; border-radius: 99px; margin: 22px 0 8px; overflow: hidden; }
.meter span { display: block; height: 100%; background: #55ab7e; border-radius: inherit; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; border-top: 1px solid #e7ece9; padding-top: 22px; }
.facts div, .estimate-grid div { display: flex; flex-direction: column; gap: 7px; }
.facts span, .estimate-grid span { color: #6d7973; font-size: 12px; }
.facts strong { font-size: 14px; line-height: 1.4; }
.estimate-card { margin-top: 22px; }
.output-card { margin-top: 22px; }
.stats-card { margin-top: 22px; }
.generator-card, .library-card, .security-card { margin-bottom: 22px; }
.security-card { margin-top: 22px; }
.security-card form + form, .security-card form + p { border-top: 1px solid #e4e9e5; margin-top: 24px; padding-top: 20px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-two > div { display: flex; flex-direction: column; }
.inline-choice { display: flex; align-items: center; gap: 10px; }
.inline-choice input { width: 18px; min-height: 18px; height: 18px; accent-color: #216a55; }
.library-list { display: grid; gap: 14px; margin-top: 22px; }
.library-item { border: 1px solid #dce3de; border-radius: 14px; padding: 20px; background: #fcfdfb; }
.library-item h4 { margin: 0 0 8px; font-size: 19px; }
.library-item p { overflow-wrap: anywhere; }
.item-actions, .file-row, .library-pagination { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.item-actions button, .file-row button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.audio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 14px 0; }
.audio-actions button, .download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.download-button { color: #216a55; background: #e9f2ec; text-decoration: none; }
.download-button:hover { background: #d9eadd; }
.audio-actions audio { width: min(100%, 310px); height: 38px; }
.audio-failure { padding: 10px 12px; border-radius: 9px; color: #8d3f39; background: #fff0eb; font-size: 13px; line-height: 1.5; }
.library-pagination { justify-content: space-between; margin-top: 18px; }
.versions { border-top: 1px solid #dce3de; margin-top: 18px; padding-top: 8px; }
.version { border-bottom: 1px solid #dce3de; padding: 16px 0; }
.version > strong { font-family: ui-monospace, Consolas, monospace; }
.version > p { white-space: pre-wrap; }
.file-row { margin: 11px 0; }
.file-row audio { width: min(100%, 310px); height: 38px; }
.file-row a { color: #216a55; font-weight: 700; font-size: 13px; }
#two-factor-qr { width: min(100%, 280px); height: auto; display: block; margin: 18px 0; }
#recovery-codes { padding: 18px; overflow: auto; background: #f4f8f4; border-radius: 10px; line-height: 1.7; }
.format-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.format-choices legend { font-size: 13px; font-weight: 700; padding: 0; margin: 12px 0; }
.choice { display: flex; gap: 13px; align-items: center; border: 1px solid #cad8ce; border-radius: 12px; padding: 16px; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: #28775e; background: #edf7ef; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: #216a55; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 4px; }
.choice small { color: #66766e; font-size: 12px; font-weight: 400; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95em; word-break: break-all; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 25px; }
.estimate-grid div { padding: 20px; background: #f4f8f4; border-radius: 12px; }
.estimate-grid strong { font-size: 30px; letter-spacing: -.04em; color: #245f4b; }
footer { color: #7b8880; border-top: 1px solid #d8ddd8; padding: 20px 0 30px; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 720px) { .shell { padding: 0 18px; } .brand { height: 70px; } main { padding: 42px 0 60px; } .dashboard-grid, .facts, .estimate-grid, .format-choices, .form-two { grid-template-columns: 1fr; } .card { padding: 24px; } .card-top { flex-wrap: wrap; } .dashboard-head { align-items: flex-start; } .dashboard-head .quiet { white-space: nowrap; } }
@media (max-width: 440px) { .brand { gap: 8px; font-size: 12px; } .brand-tag { display: none; } .connection-status { font-size: 10px; white-space: nowrap; } }
