:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b0a;
  color: #f1f6f2;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #193a2a 0, #080b0a 42%); }
main { width: min(680px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 32px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #07110b; background: #55e38c; font-weight: 900; font-size: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: 25px; letter-spacing: -0.03em; }
.eyebrow { color: #7d9b88; font-size: 10px; font-weight: 800; letter-spacing: .17em; margin-bottom: 2px; }
.status { margin-left: auto; color: #9eb0a4; font-size: 12px; padding: 8px 11px; border: 1px solid #27322b; border-radius: 999px; }
.status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55e38c; margin-right: 6px; box-shadow: 0 0 12px #55e38c; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 12px; border: 1px solid #28342c; border-radius: 14px; background: #0c110e; }
.tab { border: 0; border-radius: 10px; padding: 11px 14px; color: #788b7f; background: transparent; font-weight: 750; cursor: pointer; }
.tab.active { color: #dff7e7; background: #18251d; box-shadow: inset 0 0 0 1px #304638; }
.tab:disabled { cursor: not-allowed; opacity: .55; }
.card, .result { background: rgba(15, 21, 17, .92); border: 1px solid #28342c; border-radius: 22px; padding: 24px; box-shadow: 0 26px 80px rgba(0,0,0,.32); }
.recorder { min-height: 125px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.recorder strong { font-size: 18px; }
.recorder p { color: #789083; font-size: 13px; margin-top: 5px; }
.record { width: 72px; height: 72px; border-radius: 50%; border: 1px solid #356247; background: #13241a; cursor: pointer; position: relative; transition: .2s ease; }
.record:hover { transform: scale(1.04); border-color: #55e38c; }
.record span { position: absolute; inset: 21px; border-radius: 50%; background: #55e38c; transition: .2s ease; }
.record.active { border-color: #ff6f6f; box-shadow: 0 0 0 8px rgba(255,111,111,.08); }
.record.active span { inset: 25px; border-radius: 5px; background: #ff6f6f; }
.options { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 8px; }
label { color: #819287; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
select, input[type=text] { display: block; width: 100%; margin-top: 7px; border: 1px solid #2d3b32; background: #0a0f0c; color: #e7eee9; border-radius: 10px; padding: 12px; outline: none; }
select:focus, input[type=text]:focus { border-color: #55e38c; }
.check { display: flex; align-items: center; gap: 8px; margin: 17px 0; color: #93a49a; }
.check input { accent-color: #55e38c; }
.message { min-height: 18px; text-align: center; color: #9bac9f; font-size: 12px; margin-top: 12px; }
.message.error { color: #ff8a8a; }
.result { margin-top: 16px; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.result h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .11em; color: #7d9385; }
.live-state { display: inline-block; margin-left: 6px; padding: 4px 6px; border-radius: 5px; color: #07110b; background: #55e38c; font-size: 8px; vertical-align: 1px; }
.live-state.final { color: #a9bbb0; background: #1a251e; }
.result button { background: transparent; color: #a9bbb0; border: 1px solid #314038; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
#transcript { font-size: 22px; line-height: 1.55; letter-spacing: -.015em; white-space: pre-wrap; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.metrics span { padding: 6px 9px; border-radius: 7px; background: #151e18; color: #8da095; font-size: 11px; }
.words { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.words span { border-bottom: 1px dotted #4e6857; color: #a7b7ad; font-size: 12px; padding: 3px 1px; }
footer { text-align: center; color: #536158; font-size: 11px; margin-top: 22px; }
@media (max-width: 560px) { main { padding-top: 28px; } .options { grid-template-columns: 1fr; } .card, .result { padding: 19px; } .status { display: none; } }
