/* Shared СЭ—01 instrument treatment. Tool behavior and state stay in their own modules. */
.tool-station {
  --paper: #eeede5;
  --paper-light: #f8f7ef;
  --paper-shade: #e1e1d6;
  --surface: #f8f7ef;
  --ink: #30372b;
  --muted: #656957;
  --line: #c6c7b6;
  --rule: #c6c7b6;
  --olive: #46543a;
  --olive-hover: #2f3b28;
  --accent: #46543a;
  --accent-hover: #2f3b28;
  --accent-soft: #dce1d0;
  --soft: #e7eadc;
  --font-sans: "Golos Text", Arial, sans-serif;
  --font-editorial: "PT Serif", Georgia, serif;
  --font-instrument: "PT Mono", "Courier New", monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}
.tool-station ::selection { background: #566144; color: #fff9e5; }
.tool-station :is(a, button, summary, input, select, textarea, audio):focus-visible { outline: 3px solid #a35a28; outline-offset: 4px; }
.tool-station :is(h1, h2) { font-family: var(--font-editorial); font-weight: 400; }
.tool-station .recorder-shell { max-width: 660px; padding-inline: 28px; }
.tool-station.workspace-tool-page { background: transparent; }
.workspace-tool-page :is(.site-header, .tool-return-row, .install-recorder) { display: none; }
.tool-station .site-header { min-height: 92px; border-bottom: 1px solid #b6b9a6; }
.tool-station .brand { gap: 11px; font-size: 19px; font-weight: 600; letter-spacing: -.6px; }
.tool-station :is(.brand-mark, .solution-brand-mark) {
  width: 36px;
  height: 39px;
  border: 1px solid #394430;
  border-radius: 3px;
  background: linear-gradient(145deg, #647053, #3c4831);
  color: #f0efde;
  box-shadow: inset 0 1px 1px #ffffff45, 0 2px 2px #2e382626;
}
.tool-station .account-link { font-size: 12px; font-weight: 500; }
.tool-return-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 18px; }
.tool-station .tool-return { display: inline-flex; align-items: center; min-height: 44px; color: var(--olive); font-size: 12px; text-decoration: none; }
.tool-station .tool-return:hover { text-decoration: underline; text-underline-offset: 4px; }
.tool-channel { color: var(--muted); font: 9px/1.7 var(--font-instrument); letter-spacing: .06em; }
.tool-station .page-heading { padding: 23px 2px 29px; }
.tool-station .eyebrow { font-family: var(--font-instrument); font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.tool-station h1 { font-size: clamp(36px, 7.6vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.tool-station .balance { font-family: var(--font-instrument); font-size: 9px; }
.tool-station .voice-shell .page-heading { padding-bottom: 16px; }
.tool-station .voice-intro { max-width: 510px; font-size: 14px; line-height: 1.8; margin-bottom: 26px; }

.tool-station .tool-instrument {
  position: relative;
  min-width: 0;
  padding: 24px 20px 18px;
  border: 2px solid #343b2b;
  border-radius: 9px;
  background: repeating-linear-gradient(3deg, #ffffff02 0, #ffffff02 1px, #00000002 1px, #00000002 3px), linear-gradient(115deg, #6a7456, #565f45 37%, #4b553e 88%);
  box-shadow: inset 0 2px 1px #c0c6a961, inset 2px 0 2px #939d7877, inset -3px -4px 2px #252e218a, 0 4px 0 #353e2d, 0 7px 0 #282f22, 0 16px 28px -12px #25331b60;
}
.tool-nameplate { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 30px; margin: 0 8px 17px; color: #e7e6cf; font: 10px/1.6 var(--font-instrument); letter-spacing: .07em; }
.tool-nameplate b { flex-shrink: 0; padding: 5px 8px; border: 1px solid #99a087; border-radius: 2px; font-weight: 400; font-size: 13px; box-shadow: inset 0 1px #2b382955, 0 1px #a9b18d40; }
.tool-screw { position: absolute; width: 8px; height: 8px; border: 1px solid #272e23; border-radius: 50%; background: linear-gradient(130deg, #b7b9a8, #777e69 50%, #404b35); box-shadow: inset 0 1px #d5d5c333, 0 1px 1px #1d281b; pointer-events: none; }
.tool-screw::after { content: ""; position: absolute; width: 5px; height: 1px; top: 3px; left: 1px; background: #30372a; transform: rotate(-35deg); }
.tool-screw-tl { top: 9px; left: 9px; }
.tool-screw-tr { top: 9px; right: 9px; }
.tool-screw-bl { bottom: 9px; left: 9px; }
.tool-screw-br { bottom: 9px; right: 9px; }
.tool-screw-tr::after, .tool-screw-bl::after { transform: rotate(27deg); }
.tool-station :is(.recorder-card, .tool-instrument-surface) { min-width: 0; padding: 25px; border: 1px solid #30382a; border-radius: 4px; background: var(--surface); box-shadow: inset 0 1px 2px #ffffff, 0 1px #a9b18d80; }
.tool-instrument-footer { display: flex; align-items: center; gap: 8px; margin: 16px 8px 0; color: #d5d8bd; font: 8px/1.7 var(--font-instrument); letter-spacing: .05em; }
.tool-instrument-footer > span:last-child { margin-left: auto; }
.tool-ready-light { flex: 0 0 5px; height: 5px; border-radius: 50%; background: #dac07b; box-shadow: 0 0 0 3px #dac07b16; }
.tool-station .mode-selector { gap: 5px; padding: 5px; border: 1px solid #aeb39d; border-radius: 4px; background: #dce1d0; box-shadow: inset 0 1px 3px #3c48231a; }
.tool-station .mode-button { padding-inline: 9px; border-radius: 2px; font-size: 13px; font-weight: 500; }
.tool-station .mode-button[aria-pressed="true"] { border-color: #8f987c; background: linear-gradient(#faf9ef, #e8e9dc); color: #3a482e; box-shadow: inset 0 1px #fff, 0 2px 2px #3d472424; }
.tool-station .mode-button:hover:not(:disabled):not([aria-pressed="true"]) { background: #f7f6e970; }
.tool-station :is(.trial-intro, .trial-result-note, .notice) { border-radius: 3px; }
.tool-station .trial-intro { border: 1px solid #c4cbb6; background: #e7eadc; }
.tool-station .record-button {
  min-height: 175px;
  border: 1px solid #39452f;
  border-radius: 4px;
  background: linear-gradient(145deg, #61704f, #46543a);
  color: #f8f5e3;
  box-shadow: inset 0 1px #ffffff35, inset 0 -3px #26331e99, 0 3px 3px #2e38262b;
  font-size: 16px;
  font-weight: 500;
}
.tool-station .record-button:hover:not(:disabled) { background: linear-gradient(#6d7d59, #475c38); }
.tool-station .record-icon { width: 58px; height: 58px; border-color: #dee0bf55; background: #1b2d1b20; box-shadow: inset 0 2px 5px #18251840, 0 1px #ffffff15; }
.tool-station .import-button { min-height: 48px; margin-top: 13px; border: 1px solid #b5bba5; border-radius: 3px; background: linear-gradient(#f6f5ed, #e4e4d9); box-shadow: inset 0 1px #fff9, inset 0 -2px #b9bbaa80, 0 2px 2px #3d472414; font-size: 13px; }
.tool-station .import-button:hover:not(:disabled) { border-color: #636e52; background: linear-gradient(#fffef3, #e5e8d8); }
.tool-station :is(.button, .btn) { border: 1px solid #929681; border-radius: 3px; background: linear-gradient(#f6f5ed, #e4e4d9); color: var(--ink); box-shadow: inset 0 1px #fff9, inset 0 -2px #b9bbaa80, 0 2px 2px #3d472414; font-weight: 500; }
.tool-station :is(.button, .btn):hover:not(:disabled) { border-color: #636e52; background: linear-gradient(#fffef3, #e5e8d8); }
.tool-station :is(.button-primary, .btn-primary) { color: #f8f5e3; border-color: #34412d; background: linear-gradient(#61724d, #46543a); box-shadow: inset 0 1px #ffffff35, inset 0 -2px #26331eb3, 0 3px 4px #2e382626; }
.tool-station :is(.button-primary, .btn-primary):hover:not(:disabled) { color: #f8f5e3; border-color: #34412d; background: linear-gradient(#6d7d59, #475c38); }
.tool-station :is(.button, .btn, .import-button, .record-button):active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 3px #30372620; }
.tool-station :is(.button, .btn, .import-button, .record-button):disabled { cursor: default; }
.tool-station .recording-timer { margin: 24px 0 0; padding: 22px 8px; border: 4px solid #515b43; border-radius: 4px; color: #e6d39d; background: radial-gradient(ellipse at 50% 35%, #464b29, #23291c); box-shadow: inset 0 2px 9px #0008; font-family: var(--font-instrument); font-size: clamp(37px, 10vw, 58px); letter-spacing: -.06em; }
.tool-station :is(.step-label, .language-note, .voice-free, .audio-duration) { font-family: var(--font-instrument); font-size: 10px; }
.tool-station :is(.audio-card, .report-consent-panel, .stream-panel, .install-dialog) { border-radius: 4px; background: #eff0e4; }
.tool-station .audio-card { border-color: #afb79d; }
.tool-station :is(.auth-panel input, .voice-focus select, .tts-trial select, .tts-trial textarea) { border-radius: 3px; border-color: #aeb59e; background: #fffef6; box-shadow: inset 0 1px 3px #3037260a; }
.tool-station .voice-focus select { font-family: var(--font-sans); }
.tool-station .voice-time { border-radius: 2px; font-family: var(--font-instrument); font-size: 11px; }
.tool-station .voice-benefits { padding: 7px 16px; border: 1px solid var(--line); border-radius: 3px; background: #e4e7d8; margin-top: 26px; }
.tool-station .browser-note { margin-top: 27px; }
.tool-station .page-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tool-station .notice-error { border-color: #c99d86; background: #f3e7db; }

/* The synthesis page keeps its catalogue and registration continuation. */
.tool-station.public-page.solution-page .solution-topbar { min-height: 86px; padding-block: 16px; border-bottom-color: #b6b9a6; background: #eeede5f5; }
.tool-station .solution-brand b { font-family: var(--font-sans); font-size: 21px; font-weight: 600; letter-spacing: -.045em; }
.tool-station .solution-brand small { font-size: 10px; }
.tool-station .solution-nav a { font-size: 12px; }
.tool-station .solution-main { padding-top: 8px; }
.tool-station .solution-hero { gap: 48px; padding-top: 35px; align-items: center; }
.tool-station .solution-hero h1 { max-width: 650px; }
.tool-station .service-kicker { font-family: var(--font-instrument); }
.tool-station .service-kicker span:last-child { font-size: 10px; }
.tool-station .service-example.tts-sample { padding: 24px 18px 18px; }
.tool-station .tts-sample h2 { margin-top: 10px; font-size: 29px; }
.tool-station .tts-sample .tts-trial-header { padding-bottom: 14px; margin-bottom: 17px; }
.tool-station .tts-trial-badge { border-radius: 2px; border-color: #adb79b; background: #e3e8d5; color: #46543a; font: 9px/1.6 var(--font-instrument); }
.tool-station .tts-sample .tts-trial-header .eyebrow { font-size: 9px; }
.tool-station .tts-sample .tool-instrument-footer { margin-top: 16px; }
.tool-station .tts-trial-text-label output { font-family: var(--font-instrument); font-size: 10px; }
.tool-station .tts-registration-promise { border: 1px solid #bbc2ac; border-left: 3px solid #71815b; border-radius: 3px; background: #e2e7d6; }
.tool-station :is(.tts-full-offer, .service-voice, .solution-closing) { border-color: #afb79d; border-radius: 4px; background: #f6f5ea; box-shadow: 0 3px 0 #c4c8b8; }
.tool-station .service-voice-purpose { font-family: var(--font-instrument); font-size: 10px; }
.tool-station .service-statline { border-color: #b8bea9; }
.tool-station .solution-section { border-top-color: #b8bea9; }
.tool-station .solution-footer { border-top-color: #b6b9a6; }

@media (max-width: 1000px) {
  .tool-station .solution-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tool-station .tts-sample { width: 100%; max-width: 680px; }
}
@media (max-width: 600px) {
  .tool-station .recorder-shell { padding-inline: 18px; }
  .tool-station .site-header { min-height: 80px; }
  .tool-return-row { gap: 0 12px; padding-top: 10px; }
  .tool-channel { font-size: 8px; }
  .tool-station .page-heading { padding-top: 22px; padding-bottom: 25px; }
  .tool-station .tool-instrument { padding: 23px 13px 17px; }
  .tool-station :is(.recorder-card, .tool-instrument-surface) { padding: 20px 16px; }
  .tool-nameplate { font-size: 8px; letter-spacing: .04em; margin-inline: 5px; }
  .tool-nameplate b { font-size: 11px; }
  .tool-station .record-button { min-height: 165px; font-size: 15px; }
  .tool-station .mode-button { gap: 5px; padding-inline: 5px; font-size: 12px; }
  .tool-station .mode-button svg { width: 16px; height: 16px; }
  .tool-station .solution-main { padding-top: 8px; }
  .tool-station .solution-hero { padding-top: 26px; }
  .tool-station .service-example.tts-sample { padding: 23px 13px 17px; }
  .tool-station .tts-sample .tts-trial-header { align-items: flex-start; gap: 8px; }
  .tool-station .tts-sample h2 { font-size: 27px; }
}
@media (max-width: 380px) {
  .tool-station .recorder-shell { padding-inline: 12px; }
  .tool-station .brand { font-size: 17px; }
  .tool-channel { width: 100%; padding-bottom: 6px; }
  .tool-station :is(.recorder-card, .tool-instrument-surface) { padding-inline: 12px; }
  .tool-station .mode-button { font-size: 11px; }
  .tool-station .mode-button svg { display: none; }
  .tool-nameplate { gap: 6px; }
  .tool-instrument-footer { margin-inline: 4px; gap: 6px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-station :is(a, button, input, select, textarea) { transition: none; }
}
