:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #eef2ff; background: #0b1020; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #253a68 0, transparent 35rem), #0b1020; }
.app-shell { width: min(100% - 2rem, 760px); margin: 0 auto; padding: 4rem 0; }
header { margin-bottom: 2rem; } .eyebrow { color: #a7f3d0; font-weight: 800; font-size: .75rem; letter-spacing: .14em; } h1 { font-size: clamp(2.2rem, 8vw, 4.25rem); letter-spacing: -.06em; margin: .25rem 0 .75rem; } .intro { color: #c7d2fe; max-width: 38rem; font-size: 1.08rem; line-height: 1.6; }
.practice-card, .panel { background: rgba(20, 29, 55, .86); border: 1px solid rgba(199, 210, 254, .19); border-radius: 1.25rem; box-shadow: 0 1.4rem 4rem rgba(0,0,0,.22); }.practice-card { padding: 1.5rem; }.section-heading, .result-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } h2 { margin: 0 0 1rem; font-size: 1.25rem; } h3 { margin-top: 0; font-size: .95rem; color: #a7f3d0; }.status, .band { font-size: .82rem; font-weight: 700; background: #253a68; padding: .4rem .65rem; border-radius: 99px; white-space: nowrap; }.status.busy { color: #fef3c7; background: #854d0e; }
label { display: block; font-size: .9rem; font-weight: 700; margin: 1.4rem 0 .5rem; } select, button { width: 100%; font: inherit; } select { color: #eef2ff; background: #111a31; border: 1px solid #40537e; border-radius: .7rem; padding: .9rem; }.field-hint { color: #a5b4cf; font-size: .8rem; line-height: 1.5; margin: .45rem 0 0; }.recorder { text-align: center; padding: 2rem 0 1rem; }.record-button { max-width: 240px; color: white; background: #6366f1; border: 0; border-radius: 99px; padding: 1rem 1.25rem; font-weight: 800; cursor: pointer; }.record-button[aria-pressed="true"] { background: #dc2626; animation: pulse 1.25s infinite; }.record-button:disabled { cursor: wait; opacity: .6; }.record-dot { display: inline-block; width: .7rem; height: .7rem; background: currentColor; border-radius: 50%; margin-right: .4rem; }.privacy-note, #recording-hint, .disclaimer { color: #a5b4cf; font-size: .8rem; line-height: 1.5; }.result { margin-top: 1.5rem; }.hidden { display: none !important; }.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.reply-panel { grid-column: 1 / -1; }.panel { padding: 1.2rem; margin: 1rem 0; }.panel p { line-height: 1.55; margin-bottom: 0; }.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin: 1rem 0; }.score { background: #182443; border-radius: .8rem; padding: .8rem; }.score span { display: block; color: #a5b4cf; font-size: .75rem; }.score strong { font-size: 1.2rem; }.correction + .correction { border-top: 1px solid #40537e; margin-top: 1rem; padding-top: 1rem; }.correction p { margin: .25rem 0; } audio { width: 100%; margin-top: 1rem; } @keyframes pulse { 50% { transform: scale(1.04); } } @media (max-width: 560px) { .app-shell { padding: 2rem 0; }.feedback-grid { grid-template-columns: 1fr; }.reply-panel { grid-column: auto; }.scores { grid-template-columns: 1fr 1fr; } }

a { color: #a7f3d0; }
input, textarea { width: 100%; color: #eef2ff; background: #111a31; border: 1px solid #40537e; border-radius: .7rem; padding: .9rem; font: inherit; }
input[type="checkbox"] { width: auto; }
.account-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .8rem; color: #c7d2fe; font-size: .85rem; }
.text-button { width: auto; padding: 0; border: 0; color: #a7f3d0; background: transparent; cursor: pointer; text-decoration: underline; }
.auth-shell { width: min(100% - 2rem, 560px); margin: 0 auto; padding: 4rem 0; }
.auth-card, .admin-card { background: rgba(20, 29, 55, .92); border: 1px solid rgba(199, 210, 254, .19); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 1.4rem 4rem rgba(0,0,0,.22); }
.primary-button { margin-top: 1.25rem; background: #a7f3d0; color: #064e3b; border: 0; border-radius: .7rem; padding: .95rem; font-weight: 800; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { width: auto; background: #253a68; color: #eef2ff; border: 1px solid #40537e; border-radius: .6rem; padding: .6rem .8rem; cursor: pointer; }
.reply-panel .secondary-button { margin-top: .9rem; }
.error-message { min-height: 1.4rem; color: #fecaca; font-size: .9rem; }
.success-message { color: #a7f3d0; }
.auth-footer { color: #a5b4cf; text-align: center; margin-top: 1rem; }
.plan-list { display: grid; gap: .75rem; margin-top: 1rem; }
.plan-option { display: block; margin: 0; padding: 1rem; border: 1px solid #40537e; border-radius: .8rem; cursor: pointer; }
.plan-option:has(input:checked) { border-color: #a7f3d0; background: rgba(16, 185, 129, .08); }
.plan-option input { margin-right: .5rem; }
.plan-option strong, .plan-option span { display: block; margin-left: 1.5rem; }
.plan-option span { color: #a5b4cf; font-weight: 400; margin-top: .25rem; }
.admin-shell { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: 2rem 0 4rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-card { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid #40537e; vertical-align: top; }
td select, td input { min-width: 130px; padding: .55rem; }
.status-pill { display: inline-block; border-radius: 999px; background: #253a68; padding: .25rem .5rem; font-size: .75rem; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.reply-action-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.reply-action-heading h3, .reply-action-heading p { margin: 0; }
.reply-action-heading p { margin-top: .4rem; color: #c7d2fe; }
.reply-button { width: auto; min-width: 7rem; margin: 0; }
.reply-options { display: grid; gap: .75rem; margin-top: 1rem; }
.reply-option { padding: 1rem; border: 1px solid #40537e; border-radius: .8rem; background: #111a31; }
.reply-option h4 { margin: 0; color: #a7f3d0; }
.suggested-reply { font-size: 1.05rem; }
.reply-reason { color: #a5b4cf; font-size: .82rem; }
.reply-option-actions { display: flex; gap: .6rem; margin-top: .9rem; }
@media (max-width: 760px) { .admin-grid, .inline-fields { grid-template-columns: 1fr; } .account-nav { justify-content: flex-start; } }
@media (max-width: 560px) { .reply-action-heading { align-items: stretch; flex-direction: column; } .reply-button { width: 100%; } }
.pwa-install-button { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; width: auto; padding: .8rem 1rem; border: 1px solid #a7f3d0; border-radius: 999px; background: #064e3b; color: #ecfdf5; box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .35); font-weight: 800; cursor: pointer; }
.pwa-install-button[hidden], .pwa-install-help[hidden] { display: none; }
.pwa-install-help { position: fixed; right: 1rem; bottom: 4.8rem; z-index: 20; display: grid; gap: .45rem; width: min(calc(100% - 2rem), 340px); padding: 1rem; border: 1px solid #40537e; border-radius: .9rem; background: #111a31; box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .45); }
.pwa-install-help span { color: #c7d2fe; line-height: 1.45; }
.pwa-install-help .text-button { justify-self: start; margin-top: .25rem; }
