:root {
  color-scheme:light;
  --bg:#f5f7f4;
  --surface:#fff;
  --ink:#24352e;
  --muted:#788179;
  --green:#234b3e;
  --lime:#e4edcd;
  --border:#e4e9e2;
  --red:#a53737;
  --radius:22px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.5
}
button,input,select {
  font:inherit
}
button,select,label.source-card {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.5
}
a {
  color:inherit
}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible {
  outline:3px solid #a5c584;
  outline-offset:4px
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.icon {
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.site-header {
  max-width:1400px;
  margin:auto;
  padding:18px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  font-size:26px;
  font-weight:700;
  letter-spacing:-1px
}
.brand-mark {
  display:inline-flex;
  width:42px;
  height:42px;
  border-radius:14px;
  background:var(--green);
  color:var(--lime);
  align-items:center;
  justify-content:center
}
.brand-mark .icon {
  width:26px;
  height:26px;
  stroke-width:2
}
.brand-accent {
  font-weight:450
}
.brand small {
  display:inline-block;
  font-size:9px;
  letter-spacing:1px;
  font-weight:600;
  margin-left:7px;
  color:var(--muted);
  vertical-align:middle
}
.server-badge {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#69786b
}
.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
  flex-shrink:0;
  background:#b5bcb4
}
.dot.ready,.dot.live {
  background:#51935c
}
.dot.live {
  box-shadow:0 0 0 4px #51935c13
}
.dot.loading {
  background:#b48948
}
.dot.error {
  background:#ba5757
}
.dot.paused {
  background:#b48948
}
main {
  max-width:1400px;
  padding:6px 48px 0;
  margin:auto
}
.page-intro {
  margin:6px 0 18px
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:2.4px;
  color:#7c8c68;
  margin:0 0 9px
}
h1 {
  font-size:clamp(29px,3.3vw,38px);
  line-height:1.2;
  letter-spacing:-1.4px;
  font-weight:550;
  margin:0 0 8px
}
.page-intro>p:last-child {
  color:var(--muted);
  font-size:15px;
  margin:0
}
.mobile-break {
  display:none
}
.workspace {
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:24px;
  align-items:start
}
.panel {
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:0 4px 12px #26362d03
}
.settings-panel {
  padding:22px
}
.section-heading {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:13px
}
.section-heading h2,.history-header h2 {
  font-size:14px;
  margin:0;
  font-weight:650;
  letter-spacing:-.2px
}
.step-number {
  width:21px;
  height:21px;
  background:#eef2e6;
  color:#82925d;
  border-radius:7px;
  font-size:11px;
  display:grid;
  place-items:center;
  font-weight:600
}
.source-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  border:0;
  padding:0;
  margin:0
}
.source-card {
  position:relative;
  min-width:0
}
.source-card>input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0
}
.source-card>span {
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:6px;
  padding:14px 11px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  transition:border-color .2s,background .2s;
  height:102px
}
.source-card:has(input:checked)>span {
  border-color:#749565;
  background:#f5f8ee
}
.source-card:has(input:focus-visible)>span {
  outline:3px solid #a5c584;
  outline-offset:3px
}
.source-card:has(input:disabled) {
  opacity:.65;
  cursor:default
}
.source-card .icon {
  width:23px;
  height:23px;
  color:#738064
}
.source-card strong {
  font-size:13px;
  font-weight:600;
  line-height:1
}
.source-card small {
  font-size:9px;
  line-height:1.4;
  color:var(--muted)
}
.help-text {
  color:var(--muted);
  font-size:11px;
  line-height:1.65;
  margin:10px 0 0
}
.help-text strong {
  font-weight:600;
  color:#6b756a
}
.language-heading {
  margin-top:20px;
  margin-bottom:12px
}
select,input[type=password] {
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  color:var(--ink);
  border-radius:10px;
  min-height:44px;
  padding:10px 12px;
  font-size:13px
}
select:disabled {
  background:#f8f9f6;
  color:#7d857c
}
.translation-direction {
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:19px;
  background:#f8f9f6;
  padding:11px 12px;
  border-radius:10px;
  font-size:11px;
  color:var(--muted)
}
.translation-direction .icon {
  width:14px;
  height:14px;
  margin-left:auto
}
.translation-direction strong {
  font-weight:600;
  color:#526047
}
.language-code {
  font-size:9px;
  border:1px solid #dce4d7;
  border-radius:4px;
  color:#7a886a;
  padding:0 3px
}
.voice-section {
  padding:17px 0;
  margin-top:9px
}
.switch-label {
  display:flex;
  align-items:center;
  position:relative;
  gap:8px;
  cursor:pointer
}
.switch-label>span:first-child {
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  font-size:12px
}
.switch-label .icon {
  width:16px;
  height:16px;
  color:#7b886c
}
.switch-label strong {
  font-weight:550
}
.switch-label input {
  position:absolute;
  right:0;
  opacity:0;
  width:36px;
  height:20px
}
.switch {
  width:34px;
  height:20px;
  border-radius:20px;
  background:#dce2d8;
  position:relative
}
.switch:after {
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:14px;
  height:14px;
  background:#fff;
  border-radius:50%;
  transition:transform .2s
}
.switch-label input:checked+.switch {
  background:var(--green)
}
.switch-label input:checked+.switch:after {
  transform:translateX(14px)
}
.switch-label input:focus-visible+.switch {
  outline:3px solid #a5c584;
  outline-offset:4px
}
.field-label {
  display:block;
  color:#687662;
  font-size:11px;
  font-weight:600;
  margin:17px 0 7px
}
.button {
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  min-height:43px;
  padding:10px 14px;
  font-size:12px;
  font-weight:600;
  transition:background .15s
}
.button .icon {
  width:16px;
  height:16px
}
.button-primary {
  width:100%;
  background:var(--green);
  color:#fff;
  min-height:47px
}
.button-primary:hover:not(:disabled) {
  background:#30604e
}
.arrow-icon {
  margin-left:auto
}
.button-primary>span {
  margin-right:auto
}
.session-controls {
  display:flex;
  gap:9px
}
.button-secondary {
  background:#eff3e9;
  color:#53634c;
  flex:1
}
.button-secondary:hover {
  background:#e6ecd9
}
.stop-button {
  background:#f3f4f1;
  color:#777f73
}
.session-message {
  font-size:10px;
  text-align:center;
  color:#909689;
  line-height:1.6;
  margin:11px 0 0;
  min-height:32px
}
.capture-guide {
  border-top:1px solid var(--border);
  margin-top:18px;
  padding-top:17px
}
.capture-guide strong {
  font-size:10px;
  font-weight:650;
  color:#7c886e
}
.capture-guide p {
  font-size:10px;
  line-height:1.7;
  color:#92998b;
  margin:7px 0
}
.results-panel {
  overflow:hidden;
  min-height:674px
}
.results-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:23px 28px;
  border-bottom:1px solid #edf0e9
}
.live-status {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  color:#7c8874
}
.output-language {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.3px;
  color:#7d8b6c;
  background:#f0f4e9;
  padding:5px 10px;
  border-radius:6px
}
.subtitle-area {
  padding:35px 34px 30px;
  min-height:328px;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.subtitle-placeholder {
  text-align:center;
  color:#96a18b;
  margin:auto
}
.placeholder-wave {
  display:inline-flex;
  width:64px;
  height:64px;
  background:#f3f6ec;
  border-radius:20px;
  align-items:center;
  justify-content:center;
  margin-bottom:18px
}
.placeholder-wave .icon {
  width:33px;
  height:33px;
  stroke-width:1.3;
  color:#9ba88a
}
.subtitle-placeholder h2 {
  font-size:17px;
  font-weight:500;
  letter-spacing:-.2px;
  margin:0 0 7px;
  color:#8a967e
}
.subtitle-placeholder p {
  font-size:12px;
  margin:0;
  max-width:300px
}
.subtitle {
  font-size:clamp(24px,2.75vw,34px);
  line-height:1.48;
  letter-spacing:-.65px;
  font-weight:450;
  margin:0;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.original-details {
  color:#7b8771;
  font-size:12px;
  margin-top:24px
}
.original-details summary {
  cursor:pointer;
  font-size:10px;
  user-select:none
}
.original-details p {
  margin:10px 0 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.7
}
.signal-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 28px;
  border-top:1px solid #edf0e9;
  border-bottom:1px solid #edf0e9;
  background:#fbfcf9;
  gap:12px
}
.input-signal {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#919b87;
  flex-wrap:wrap
}
.input-signal .icon {
  width:14px;
  height:14px
}
.input-signal meter {
  width:70px;
  height:6px;
  appearance:none;
  border:0;
  background:#e4e9de;
  border-radius:6px;
  overflow:hidden
}
.input-signal meter::-webkit-meter-bar {
  border:0;
  background:#e4e9de;
  height:6px
}
.input-signal meter::-webkit-meter-optimum-value {
  background:#829c69
}
.input-signal meter::-moz-meter-bar {
  background:#829c69
}
.input-signal span {
  min-width:45px;
  font-size:9px
}
.latency-stat {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:9px;
  color:#97a088;
  white-space:nowrap
}
.latency-stat>span:first-child {
  font-size:12px;
  font-weight:650;
  color:#7a896c;
  font-variant-numeric:tabular-nums
}
.latency-stat button {
  width:13px;
  height:13px;
  font:9px Georgia,serif;
  padding:0;
  border-radius:50%;
  background:none;
  border:1px solid #bdc6b1;
  color:#8c987f
}
.history-section {
  padding:23px 28px
}
.history-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.history-header h2 {
  font-size:12px;
  color:#68785d
}
.history-header>div>span {
  display:block;
  font-size:10px;
  color:#a0a78f;
  margin-top:3px
}
.button-quiet {
  background:transparent;
  color:#859273;
  font-size:10px;
  min-height:30px;
  padding:6px
}
.button-quiet .icon {
  width:13px;
  height:13px
}
.button-quiet:hover:not(:disabled) {
  background:#f1f4ea
}
.history-empty {
  text-align:center;
  font-size:11px;
  color:#a8af9a;
  padding:38px 0 20px
}
.history-list {
  list-style:none;
  padding:0;
  margin:20px 0 0;
  max-height:355px;
  overflow:auto;
  scrollbar-width:thin
}
.history-list li {
  border-top:1px solid #edf0e9;
  padding:14px 0;
  display:grid;
  grid-template-columns:37px minmax(0,1fr);
  gap:12px
}
.history-list time {
  color:#a0ab93;
  font-size:9px;
  padding-top:3px;
  font-variant-numeric:tabular-nums
}
.history-text {
  font-size:13px;
  line-height:1.65;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.history-original {
  margin:6px 0 0;
  font-size:10px;
  color:#919c87;
  line-height:1.6;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:9px;
  color:#a0aa96;
  padding:25px 0 24px
}
.notice {
  border:1px solid #e3dcc4;
  background:#faf6e8;
  border-radius:11px;
  padding:12px 16px;
  margin:0 0 18px;
  font-size:12px;
  line-height:1.6;
  color:#88753e
}
.notice.error {
  border-color:#eacccc;
  color:var(--red);
  background:#fcf1f0
}
.notice.success {
  border-color:#d4e3c9;
  background:#f1f7ea;
  color:#5c784f
}
dialog {
  border:1px solid var(--border);
  border-radius:22px;
  padding:32px;
  max-width:390px;
  width:calc(100% - 32px);
  color:var(--ink);
  box-shadow:0 20px 90px #25312825
}
dialog::backdrop {
  background:#e9eee3d9;
  backdrop-filter:blur(5px)
}
.login-form h2 {
  font-size:24px;
  font-weight:550;
  letter-spacing:-.7px;
  margin:22px 0 8px
}
.login-form>p {
  font-size:12px;
  color:var(--muted)
}
.login-form .button {
  margin-top:20px
}
.login-error {
  color:var(--red)!important;
  margin:12px 0 0;
  font-size:11px
}
.login-form input {
  margin-top:1px
}
@media(min-width:1550px) {
  .workspace {
    grid-template-columns:360px minmax(0,1fr)
  }
  .settings-panel {
    padding:28px
  }
  .results-panel {
    min-height:698px
  }
  .subtitle-area {
    min-height:350px
  }
}
@media(max-width:1000px) {
  .site-header {
    padding:24px 28px
  }
  main {
    padding:9px 28px 0
  }
  .workspace {
    grid-template-columns:300px minmax(0,1fr);
    gap:18px
  }
  .settings-panel {
    padding:22px
  }
  .subtitle-area {
    padding:28px
  }
  .results-toolbar,.signal-bar,.history-section {
    padding-left:23px;
    padding-right:23px
  }
  .input-signal label {
    display:none
  }
  .latency-stat>span:nth-child(2) {
    max-width:46px;
    white-space:normal;
    font-size:8px;
    line-height:1.3
  }
  .source-card small {
    font-size:8px
  }
  .subtitle-placeholder p {
    font-size:11px
  }
}
@media(max-width:760px) {
  .site-header {
    padding:20px 20px 16px
  }
  .brand {
    font-size:24px
  }
  .server-badge {
    font-size:9px;
    max-width:140px;
    text-align:right;
    line-height:1.4
  }
  main {
    padding:6px 20px 0
  }
  .page-intro {
    margin:14px 0 24px
  }
  h1 {
    font-size:31px;
    letter-spacing:-1px
  }
  .page-intro>p:last-child {
    font-size:12px
  }
  .workspace {
    grid-template-columns:1fr;
    gap:18px
  }
  .settings-panel {
    padding:22px
  }
  .source-card>span {
    height:92px;
    display:grid;
    grid-template-columns:27px 1fr;
    align-content:center;
    column-gap:10px
  }
  .source-card .icon {
    grid-row:1 / span 2;
    align-self:center
  }
  .source-card small {
    font-size:9px
  }
  .section-heading {
    margin-bottom:13px
  }
  .language-heading {
    margin-top:21px
  }
  .capture-guide {
    margin-top:12px;
    padding-top:12px
  }
  .capture-guide p {
    margin:5px 0
  }
  .results-panel {
    min-height:550px
  }
  .subtitle-area {
    min-height:265px;
    padding:28px 24px
  }
  .subtitle {
    font-size:26px
  }
  .results-toolbar {
    padding-top:18px;
    padding-bottom:18px
  }
  .history-section {
    padding-top:20px;
    padding-bottom:20px
  }
  .signal-bar {
    padding-top:14px;
    padding-bottom:14px
  }
  .input-signal label {
    display:block
  }
  .latency-stat>span:nth-child(2) {
    max-width:none;
    white-space:nowrap;
    font-size:9px
  }
  .page-footer {
    font-size:8px;
    padding-top:19px
  }
  .session-message {
    min-height:auto
  }
  .voice-section {
    padding:18px 0
  }
  .source-options {
    gap:12px
  }
  .source-card>span {
    padding:12px
  }
  .help-text {
    font-size:11px
  }
  .capture-guide strong,.capture-guide p {
    font-size:10px
  }
}
@media(max-width:390px) {
  .mobile-break {
    display:block
  }
  .site-header {
    padding:18px 16px
  }
  main {
    padding:4px 16px 0
  }
  .settings-panel {
    padding:18px
  }
  .source-card strong {
    font-size:12px
  }
  .source-card small {
    font-size:8px
  }
  .input-signal label {
    display:none
  }
  .input-signal meter {
    width:52px
  }
  .latency-stat>span:nth-child(2) {
    max-width:44px;
    white-space:normal;
    line-height:1.2;
    font-size:8px
  }
  .page-footer {
    flex-direction:column;
    gap:4px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.history-text.translation-pending {
  font-size:11px;
  color:#98a28d;
  font-style:italic
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.admin-link {
  text-decoration: none;
  font-size: 11px;
  color: var(--muted);
}
.admin-link:hover {
  color: var(--ink);
}
.theme-toggle {
  font-size: 11px;
  gap: 6px;
  padding: 7px 8px;
}
.theme-toggle .icon {
  width: 16px;
  height: 16px;
}
.floating-tools {
  padding: 16px 28px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.floating-tools .button-secondary {
  flex: 0 1 auto;
  font-size: 11px;
  min-height: 34px;
}
.floating-tools>p {
  flex-basis: 100%;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.session-name-field {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.session-name-field summary {
  cursor: pointer;
}
.session-name-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  padding: 9px 11px;
  margin-top: 10px;
}
.session-name-field input:disabled {
  opacity: .7;
}
.history-list {
  max-height: 420px;
}
.history-text {
  font-size: 14px;
}
.history-original {
  font-size: 12px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111815;
  --surface: #1b251e;
  --ink: #edf4e7;
  --muted: #adbaa6;
  --green: #b9d79d;
  --lime: #e6f6d6;
  --border: #33432f;
  --red: #ffc4bb;
}
[data-theme="dark"] .panel {
  box-shadow: 0 4px 12px #00000015;
}
[data-theme="dark"] .brand-mark {
  background: #344e2e;
  color: #d0edb5;
}
[data-theme="dark"] .button-primary {
  color: #182514;
  background: #b9d79d;
}
[data-theme="dark"] .button-primary:hover:not(:disabled) {
  background: #c7e5aa;
}
[data-theme="dark"] .source-card:has(input:checked)>span {
  background: #2c3c25;
  border-color: #8eb875;
}
[data-theme="dark"] .source-card .icon,
[data-theme="dark"] .voice-section .icon {
  color: #bdd1a7;
}
[data-theme="dark"] select,
[data-theme="dark"] input[type="password"] {
  background: #17201a;
  color: var(--ink);
}
[data-theme="dark"] select:disabled {
  background: #202b22;
  color: #a4b19b;
}
[data-theme="dark"] .step-number,
[data-theme="dark"] .output-language {
  color: #c1d8ad;
  background: #2d3c26;
}
[data-theme="dark"] .translation-direction,
[data-theme="dark"] .placeholder-wave,
[data-theme="dark"] .button-secondary,
[data-theme="dark"] .button-quiet:hover:not(:disabled) {
  background: #273322;
}
[data-theme="dark"] .button-secondary:hover {
  background: #34462a;
}
[data-theme="dark"] .translation-direction strong,
[data-theme="dark"] .button-secondary,
[data-theme="dark"] .history-header h2 {
  color: #d0e5bb;
}
[data-theme="dark"] .language-code {
  color: #c7d8b8;
  border-color: #506245;
}
[data-theme="dark"] .switch {
  background: #53624a;
}
[data-theme="dark"] .switch-label input:checked+.switch {
  background: #93bd70;
}
[data-theme="dark"] .signal-bar {
  background: #182119;
}
[data-theme="dark"] .signal-bar,
[data-theme="dark"] .results-toolbar,
[data-theme="dark"] .history-list li {
  border-color: var(--border);
}
[data-theme="dark"] .server-badge,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .help-text strong,
[data-theme="dark"] .capture-guide strong,
[data-theme="dark"] .capture-guide p,
[data-theme="dark"] .session-message,
[data-theme="dark"] .live-status,
[data-theme="dark"] .subtitle-placeholder,
[data-theme="dark"] .subtitle-placeholder h2,
[data-theme="dark"] .placeholder-wave .icon,
[data-theme="dark"] .original-details,
[data-theme="dark"] .input-signal,
[data-theme="dark"] .latency-stat,
[data-theme="dark"] .latency-stat>span:first-child,
[data-theme="dark"] .history-header>div>span,
[data-theme="dark"] .history-empty,
[data-theme="dark"] .button-quiet,
[data-theme="dark"] .history-list time,
[data-theme="dark"] .history-original,
[data-theme="dark"] .history-text.translation-pending,
[data-theme="dark"] .page-footer,
[data-theme="dark"] .field-label {
  color: var(--muted);
}
[data-theme="dark"] .notice {
  background: #332e1c;
  border-color: #655b35;
  color: #f1daa1;
}
[data-theme="dark"] .notice.error {
  background: #382421;
  border-color: #72473f;
  color: #ffc4bb;
}
[data-theme="dark"] .notice.success {
  background: #27391f;
  border-color: #526e3f;
  color: #d2e9bd;
}
[data-theme="dark"] dialog {
  background: var(--surface);
}
[data-theme="dark"] dialog::backdrop {
  background: #070e0bd9;
}
[data-theme="dark"] .login-error {
  color: #ffc4bb!important;
}
@media(max-width: 760px) {
  .header-actions {
    gap: 9px;
    flex-wrap: wrap;
    max-width: 200px;
  }
  .admin-link {
    font-size: 10px;
  }
  .header-actions .server-badge {
    flex-basis: 100%;
    justify-content: flex-end;
    max-width: none;
  }
  .floating-tools {
    padding-left: 23px;
    padding-right: 23px;
  }
}
