:root {
  --brand: #21634f;
  --ink: #172b25;
  --muted: #61716a;
  --line: #dce4dc;
  --paper: #fff;
  --base: #f4f6f1;
  --sidebar: #102e27;
  --serif: "STIX Two Text", "Songti SC", "SimSun", serif;
  --sans:
    "Inter", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color-scheme: light;
  font: 14px/1.6 var(--sans);
  color: var(--ink);
  background: var(--base);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #348663;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
p,
h1,
h2,
h3,
dl,
dt,
dd {
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
::selection {
  background: #cbeac3;
  color: #172b25;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #dceae1;
  padding: 31px 17px 21px;
  border-right: 1px solid #1d4239;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 32px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.brand > div {
  min-width: 0;
}
.brand strong {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.6px;
  display: block;
  line-height: 1.4;
  color: #f3f8f1;
  overflow-wrap: anywhere;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: #9bb5a8;
  font-size: 11px;
  letter-spacing: 0.6px;
}
.sidebar-nav {
  border-top: 1px solid #315044;
  padding: 26px 0 16px;
  overflow: auto;
  scrollbar-width: thin;
}
.nav-caption {
  font-size: 11px;
  font-weight: 600;
  color: #97b3a5;
  letter-spacing: 1.6px;
  margin: 0 14px 12px;
}
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  margin: 3px 0;
  color: #bfd0c6;
  font-weight: 530;
  font-size: 14px;
  border-radius: 8px;
  transition:
    background 0.14s,
    color 0.14s;
}
.nav-link:hover {
  background: #1d3d33;
  color: #fff;
}
.nav-link.active {
  background: #d2edba;
  color: #17392b;
  font-weight: 720;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #315044;
  padding: 14px 4px 0;
}
.side-link,
.support {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b4cbbd;
  font-size: 12px;
  padding: 9px 8px;
}
.support {
  background: transparent;
  border: 0;
}
.switch-link:hover,
.support:hover {
  text-decoration: underline;
}
.workspace-main {
  min-width: 0;
}
.topbar {
  min-height: 68px;
  padding: 0 clamp(22px, 3.5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
.breadcrumb,
.top-actions,
.top-balance,
.account {
  display: flex;
  align-items: center;
}
.breadcrumb {
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb strong {
  color: #30473b;
  font-weight: 600;
}
.breadcrumb > svg:first-child {
  color: #587063;
}
.top-actions {
  gap: 15px;
  flex: none;
}
.top-balance {
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #365b43;
}
.account {
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  padding: 0 0 0 14px;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d8e8d2;
  display: grid;
  place-items: center;
  color: #314e39;
}
.page {
  margin: 0 auto;
  max-width: 1560px;
  padding: clamp(22px, 2.9vw, 44px) clamp(22px, 3.5vw, 64px) 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  outline: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 1px;
}
.page-head h1 {
  font-size: clamp(27px, 2.25vw, 38px);
  letter-spacing: -1.4px;
  line-height: 1.34;
}
.page-head p,
.dialog-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.page-head p {
  margin-top: 6px;
}
.btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 640;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.btn:not(:disabled):active {
  transform: translateY(1px);
}
.btn.secondary:hover,
.btn.tiny:hover {
  background: #f0f4ec;
  border-color: #bdcdbe;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.btn.primary:hover {
  filter: brightness(0.93);
}
.btn.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.btn.tiny {
  font-size: 12px;
  min-height: 29px;
  padding: 4px 9px;
  color: #365341;
}
.icon-btn {
  border: 1px solid transparent;
  background: none;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #5c6e64;
  flex: none;
}
.icon-btn:hover {
  background: #eff4ec;
  color: #174735;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #326348;
  font-size: 12px;
  font-weight: 650;
}
.text-link:hover {
  text-decoration: underline;
}
.subtle,
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.panel {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 5px #17302603;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 63px;
  padding: 15px 22px;
  border-bottom: 1px solid #e6ebe4;
}
.panel-head h2,
.dialog-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.4px;
}
.section-icon {
  color: #40614c;
  display: inline-flex;
}
.studio-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 176px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(106deg, #184338 5%, #205243 52%, #173d32 100%);
  color: #f6fbec;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(#b7d3b917 1px, transparent 1px),
    linear-gradient(90deg, #b7d3b917 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent 3%, #000 40%);
}
.hero-copy {
  padding: 26px 36px;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cee6c5;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 560;
  letter-spacing: 1.15px;
}
.hero-copy h1 {
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.35;
  letter-spacing: -1.8px;
  font-weight: 720;
}
.hero-copy p {
  margin-top: 8px;
  font-size: 13px;
  color: #d6e6d6;
}
.hero-wave {
  position: absolute;
  right: 2%;
  top: 10%;
  width: 49%;
  height: 80%;
  z-index: 0;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 18px;
}
.draft-panel,
.voice-panel {
  display: flex;
  flex-direction: column;
}
.counter {
  color: #7c8980;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.counter b {
  color: #4b6052;
  font-weight: 600;
}
.script-text {
  width: 100%;
  min-height: 220px;
  flex: 1;
  resize: vertical;
  padding: 22px 23px;
  background: #fff;
  border: none;
  outline: 0 !important;
  color: #20382b;
  line-height: 1.9;
  font-size: 15px;
}
.script-text::placeholder {
  color: #8a988e;
  font-size: 14px;
}
.script-text:focus {
  box-shadow: inset 0 0 0 2px #d0e5ce;
}
.editor-bottom {
  padding: 11px 22px;
  background: #fbfcf9;
  border-top: 1px solid #eef0ea;
  font-size: 11px;
  color: #758276;
  display: flex;
  align-items: center;
  gap: 7px;
}
.editor-bottom span {
  margin-left: auto;
}
.voice-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.voice-body legend {
  font-size: 12px;
  color: #617367;
  margin-bottom: 8px;
  font-weight: 600;
}
.voices {
  display: grid;
  gap: 7px;
}
.voice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe6db;
  border-radius: 8px;
  min-height: 43px;
  padding: 6px 11px;
  cursor: pointer;
  color: #495a4f;
  font-size: 13px;
  position: relative;
  background: #fff;
}
.voice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.voice-option:has(input:checked) {
  background: #f2f8ed;
  border-color: #a6c5a2;
  color: #264c34;
}
.voice-option:focus-within {
  outline: 2px solid #69a876;
}
.voice-symbol {
  height: 27px;
  width: 30px;
  display: inline-grid;
  place-items: center;
  background: #daeacb;
  border-radius: 6px;
  color: #3a643a;
}
.voice-symbol.v1 {
  background: #ede9d8;
  color: #746f45;
}
.voice-option strong {
  font-weight: 580;
}
.radio-mark {
  margin-left: auto;
  border: 1.4px solid #c6d0c3;
  border-radius: 50%;
  width: 15px;
  height: 15px;
}
.voice-option:has(input:checked) .radio-mark {
  border: 4.5px solid var(--brand);
  background: #fff;
}
.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0 10px;
  margin-top: auto;
  font-size: 12px;
  color: #66766a;
}
.estimate strong {
  color: #294d36;
  font-size: 21px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.estimate small {
  font-size: 11px;
  font-weight: 570;
}
.generate {
  width: 100%;
  min-height: 42px;
}
.generate svg:last-child {
  margin-left: auto;
}
.generate svg:first-child {
  margin-right: auto;
}
.empty {
  text-align: center;
  padding: 24px 15px 28px;
  color: #5c6e60;
  display: grid;
  justify-items: center;
  gap: 5px;
}
.empty-icon {
  height: 37px;
  width: 42px;
  display: grid;
  place-items: center;
  background: #eff3eb;
  color: #79967a;
  border-radius: 10px;
  margin-bottom: 3px;
}
.empty b {
  font-size: 13px;
  line-height: 1.6;
  color: #4c6051;
  font-weight: 620;
}
.empty p {
  font-size: 12px;
  color: #738176;
}
.work-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid #edf0e9;
}
.work-row:last-child {
  border-bottom: 0;
}
.audio-cover,
.pack-icon,
.catalog-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: #4b7051;
  background: #e5efde;
  border-radius: 9px;
}
.audio-cover {
  width: 42px;
  height: 42px;
}
.work-info {
  min-width: 0;
  flex: 1;
}
.work-info strong {
  font-size: 14px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-info small,
.two-lines small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.work-info i {
  margin: 0 6px;
  font-style: normal;
}
.status-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-cell small {
  max-width: 160px;
  font-size: 10px;
  color: #8c4e40;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 580;
  white-space: nowrap;
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.good {
  color: #2c7147;
  background: #e6f2df;
}
.warm {
  color: #8b642b;
  background: #f8efd7;
}
.bad {
  color: #9a4d3f;
  background: #f9eae6;
}
.muted {
  background: #edf0ec;
  color: #69756d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.stats.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 20px;
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #637669;
  font-size: 12px;
}
.stat-top svg {
  color: #6a8a71;
}
.stat strong {
  display: block;
  font-family: "Inter", "Microsoft YaHei UI", sans-serif;
  font-weight: 640;
  line-height: 1.25;
  margin-top: 13px;
  font-size: clamp(23px, 2.2vw, 34px);
  color: #214332;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat strong small {
  font-size: 11px;
  letter-spacing: 0;
  color: #6b7d6f;
  margin-left: 6px;
  font-family: var(--sans);
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: #718075;
  font-weight: 600;
  white-space: nowrap;
  background: #f8faf5;
  font-size: 11px;
  letter-spacing: 0.1px;
}
td,
th {
  padding: 12px 15px;
  border-bottom: 1px solid #e9eee7;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 22px;
}
td:last-child,
th:last-child {
  padding-right: 22px;
}
td {
  color: #394e40;
  line-height: 1.55;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcf8;
}
.mono {
  font:
    11px/1.55 "IBM Plex Mono",
    Consolas,
    monospace;
  color: #596e5e;
}
.wrap-id {
  display: inline-block;
  overflow-wrap: anywhere;
  max-width: 19em;
  min-width: 3em;
}
.row-actions,
.dialog-actions,
.entry-links {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dialog-actions {
  flex-wrap: wrap;
}
.package-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 13px;
}
.package {
  background: #f7faf3;
  border: 1px solid #dce8d6;
  border-radius: 11px;
  padding: 16px;
}
.pack-icon {
  width: 30px;
  height: 30px;
}
.package h3 {
  font-size: 14px;
  margin-top: 8px;
}
.package > strong {
  display: block;
  font-size: 27px;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.package > strong small {
  font-size: 11px;
  letter-spacing: 0;
  color: #5d735f;
}
.package > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: #425941;
  font-weight: 650;
}
.catalog-card {
  display: flex;
  align-items: center;
  padding: 23px;
  gap: 24px;
}
.catalog-icon {
  height: 56px;
  width: 56px;
}
.catalog-values {
  display: flex;
  gap: clamp(20px, 4vw, 62px);
  flex-wrap: wrap;
}
.catalog-values dt {
  font-size: 12px;
  color: var(--muted);
}
.catalog-values dd {
  font-size: 22px;
  font-weight: 640;
  color: #2d5037;
  line-height: 1.5;
}
.catalog-values dd small,
.catalog-values .voices-label {
  font-size: 13px;
}
.paging,
.filter-form,
.form-foot,
.result-meta,
.playback {
  display: flex;
  align-items: center;
  gap: 9px;
}
.paging {
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid #e5ebe0;
  font-size: 12px;
  color: var(--muted);
}
.paging > div {
  display: flex;
  gap: 6px;
}
.filter-form select,
.filter-form .btn {
  min-height: 32px;
  font-size: 12px;
  padding: 4px 10px;
}
.form-body {
  padding: 20px 23px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
  font-size: 13px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 640;
  color: #3b5544;
}
.field small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
input:not([type="radio"]),
select,
textarea:not(.script-text) {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd9cc;
  border-radius: 7px;
  line-height: 1.5;
  padding: 9px 11px;
}
input[type="color"] {
  height: 41px;
  cursor: pointer;
  padding: 3px;
}
textarea:not(.script-text) {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #87928a;
}
textarea.secrets,
input[readonly] {
  font-family: "IBM Plex Mono", Consolas, "Microsoft YaHei UI", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: #f6f9f2;
}
.form-body .field:last-child,
.dialog-main > .field:last-child {
  margin-bottom: 0;
}
.narrow {
  max-width: 680px;
}
.form-foot {
  justify-content: flex-end;
  margin-top: 18px;
}
.page > form > .panel + .panel {
  margin-top: 18px;
}
.form-error,
.warning {
  color: #8e4634;
  font-size: 12px;
  padding: 10px 13px;
  line-height: 1.6;
  background: #faefe9;
  border: 1px solid #eddbcd;
  border-radius: 7px;
  margin-top: 12px;
}
.form-error[hidden] {
  display: none;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  align-self: center;
  margin: clamp(8px, 6vh, 80px) 0;
  background: #fff;
}
.auth-intro {
  isolation: isolate;
  position: relative;
  padding: 36px;
  background: linear-gradient(135deg, #153b31, #275b44);
  color: #f5f9ec;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 370px;
}
.auth-brand .brand-logo {
  width: 46px;
  height: 46px;
}
.auth-copy {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}
.auth-copy > span {
  font-size: 12px;
  color: #c3dcba;
  letter-spacing: 1px;
}
.auth-copy h1 {
  font-size: 37px;
  line-height: 1.5;
  letter-spacing: -2px;
}
.auth-copy p {
  font-size: 13px;
  color: #cbdcc8;
  max-width: 240px;
  margin-top: 6px;
}
.auth-wave {
  width: 96%;
  height: 78px;
  position: absolute;
  left: 2%;
  bottom: 7px;
  z-index: -1;
  opacity: 0.75;
}
.auth-card {
  align-content: center;
  padding: 36px;
}
.auth-card h2 {
  font-size: 23px;
  margin-bottom: 19px;
  letter-spacing: -0.7px;
}
.auth-form > .btn {
  width: 100%;
  margin-top: 8px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.auth-switch button {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 650;
}
.initial-error,
.loading-view {
  margin: 8vh auto;
  width: min(560px, 92vw);
}
.loading-view {
  text-align: center;
  color: #626f63;
}
dialog {
  color: var(--ink);
  width: min(470px, calc(100% - 24px));
  max-height: 88vh;
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #d6e2d5;
  border-radius: 15px;
  box-shadow: 0 24px 90px #122c2240;
  overflow-y: auto;
}
dialog::backdrop {
  background: #102b235c;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  background: #fbfcf9;
}
.dialog-main {
  padding: 20px 22px 22px;
}
.dialog-copy {
  margin-bottom: 13px;
  overflow-wrap: anywhere;
}
.details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 20px;
  font-size: 13px;
  padding: 13px 0 18px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  text-align: right;
  overflow-wrap: anywhere;
}
.read-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8f0;
  border: 1px solid #e6ede0;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  color: #48604a;
  max-height: 210px;
  overflow-y: auto;
  font-size: 13px;
}
.playback {
  align-items: stretch;
  flex-direction: column;
}
.playback audio {
  width: 100%;
  height: 40px;
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f7ec;
  border-radius: 9px;
  padding: 15px 17px;
  margin-bottom: 12px;
}
.payment-summary b {
  display: block;
}
.payment-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.payment-summary strong {
  font-size: 22px;
  color: #2d543a;
}
.notice.show {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  background: #214536;
  color: #f3f8f0;
  border-radius: 10px;
  padding: 10px 17px;
  font-size: 13px;
  box-shadow: 0 8px 26px #11261933;
}
.notice.error {
  background: #834b3c;
}
.entry-links {
  margin: 0 0 15px;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 23px;
    padding-right: 23px;
  }
  .hero-copy {
    padding: 36px 40px;
  }
  .studio-hero {
    min-height: 190px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    padding-left: 4px;
    gap: 8px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand-logo {
    width: 35px;
    height: 35px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(235px, 1fr);
    gap: 14px;
  }
  .page {
    padding-inline: 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .stat {
    padding: 15px 13px;
  }
  .panel-head {
    padding-inline: 17px;
  }
  .hero-copy {
    padding-inline: 27px;
  }
}
@media (max-width: 880px) {
  .workspace {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .brand {
    flex-wrap: wrap;
    padding-bottom: 20px;
  }
  .brand > div {
    width: 100%;
  }
  .nav-link {
    gap: 8px;
    padding: 10px;
    font-size: 13px;
  }
  .page {
    padding: 20px 16px 44px;
    gap: 15px;
  }
  .topbar {
    min-height: 58px;
    padding-inline: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(205px, 1fr);
    gap: 10px;
  }
  .voice-body {
    padding: 13px;
  }
  .panel-head {
    min-height: 53px;
    padding: 12px 15px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .hero-copy {
    padding: 23px;
  }
  .studio-hero {
    min-height: 154px;
  }
  .script-text {
    padding: 17px;
    min-height: 195px;
  }
  .editor-bottom {
    padding: 10px 13px;
  }
  .auth-card,
  .auth-intro {
    padding: 25px;
  }
  .auth-copy h1 {
    font-size: 31px;
  }
  .auth-copy p {
    font-size: 12px;
  }
}
@media (max-width: 680px) {
  .workspace {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    display: block;
    padding: 13px 14px 9px;
    border: 0;
  }
  .brand {
    padding: 0;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .brand > div {
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
  }
  .brand strong {
    font-size: 15px;
    line-height: 1.35;
  }
  .brand small {
    font-size: 10px;
    margin: 0;
    color: #abcdba;
  }
  .sidebar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 0;
    margin-top: 10px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-caption {
    display: none;
  }
  .nav-link {
    flex: none;
    width: auto;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    margin: 0;
    border-radius: 6px;
  }
  .nav-link svg {
    width: 14px;
    height: 14px;
  }
  .sidebar-footer {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    border: 0;
    padding: 0;
  }
  .side-link,
  .support {
    font-size: 10px;
    padding: 4px;
    gap: 3px;
  }
  .side-link svg,
  .support svg {
    width: 12px;
    height: 12px;
  }
  .support {
    font-size: 0;
    gap: 0;
  }
  .topbar {
    min-height: 45px;
    padding: 5px 14px;
  }
  .breadcrumb {
    gap: 5px;
    font-size: 10px;
  }
  .breadcrumb > svg:first-child {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .top-balance {
    font-size: 11px;
    gap: 4px;
  }
  .account {
    padding-left: 8px;
    gap: 5px;
  }
  .account-name {
    display: none;
  }
  .user-avatar {
    height: 23px;
    width: 23px;
    font-size: 10px;
  }
  .top-actions .btn.small {
    min-height: 28px;
    font-size: 11px;
    padding: 3px 8px;
  }
  .page {
    padding: 12px 12px 35px;
    gap: 13px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .studio-hero {
    min-height: 124px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 17px 19px;
    max-width: 80%;
  }
  .hero-copy h1 {
    font-size: 31px;
  }
  .hero-copy p {
    font-size: 11px;
    margin-top: 4px;
  }
  .hero-kicker {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .hero-wave {
    width: 42%;
    height: 78%;
    top: 11%;
    right: -1%;
    opacity: 0.65;
  }
  .panel {
    border-radius: 11px;
  }
  .script-text {
    min-height: 141px;
    height: 145px;
  }
  .voice-body {
    gap: 0;
    padding: 10px 14px 14px;
  }
  .voices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .voice-option {
    padding: 6px;
    gap: 5px;
    font-size: 11px;
    min-height: 39px;
  }
  .voice-symbol {
    height: 24px;
    width: 25px;
  }
  .radio-mark {
    width: 12px;
    height: 12px;
  }
  .voice-option:has(input:checked) .radio-mark {
    border-width: 4px;
  }
  .estimate {
    padding: 8px 0 7px;
  }
  .panel-head {
    padding: 11px 14px;
    min-height: 45px;
  }
  .panel-head h2 {
    gap: 6px;
  }
  .work-row {
    padding: 12px;
    gap: 8px;
  }
  .work-info strong {
    font-size: 12px;
  }
  .work-info small {
    font-size: 10px;
  }
  .audio-cover {
    width: 31px;
    height: 33px;
  }
  .status-cell small {
    display: none;
  }
  .work-row .icon-btn {
    width: 22px;
  }
  .badge {
    font-size: 10px;
    padding: 2px 6px;
    gap: 4px;
  }
  .page-head {
    gap: 8px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 11px;
    margin-top: 3px;
  }
  .page-head .btn {
    min-height: 31px;
    padding: 5px 9px;
    font-size: 11px;
  }
  .stats,
  .stats.three {
    gap: 8px;
  }
  .stats.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 11px;
  }
  .stat-top {
    font-size: 10px;
    align-items: flex-start;
  }
  .stat-top svg {
    height: 12px;
    width: 12px;
  }
  .stat strong {
    font-size: 22px;
    margin-top: 7px;
  }
  .stat strong small {
    font-size: 9px;
    margin-left: 3px;
  }
  .table-scroll td,
  .table-scroll th {
    font-size: 11px;
    padding: 9px;
    min-width: 52px;
  }
  .table-scroll td:first-child,
  .table-scroll th:first-child {
    padding-left: 13px;
  }
  .wrap-id {
    min-width: 79px;
    font-size: 10px;
  }
  .form-body {
    padding: 15px;
  }
  .catalog-card {
    padding: 16px;
    gap: 10px;
  }
  .catalog-icon {
    display: none;
  }
  .catalog-values {
    gap: 15px;
  }
  .catalog-values dd {
    font-size: 17px;
  }
  .catalog-values dd small,
  .catalog-values .voices-label {
    font-size: 10px;
  }
  .catalog-values dt {
    font-size: 10px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 0;
  }
  .auth-intro {
    min-height: 143px;
    padding: 17px 20px;
  }
  .auth-brand {
    display: none;
  }
  .auth-copy {
    margin: 0;
  }
  .auth-copy h1 {
    font-size: 28px;
  }
  .auth-copy p {
    margin-top: 4px;
    max-width: 74%;
  }
  .auth-wave {
    width: 40%;
    right: 0;
    left: auto;
    height: 85px;
  }
  .auth-card {
    padding: 22px;
  }
  .auth-card h2 {
    font-size: 19px;
    margin-bottom: 13px;
  }
  .package-grid {
    padding: 12px;
  }
  .dialog-main {
    padding: 16px;
  }
  .dialog-head {
    padding: 12px 16px;
  }
  .field-grid {
    gap: 9px;
  }
  .field input,
  .field textarea,
  .field select,
  .script-text {
    font-size: 16px;
  }
  .filter-form {
    gap: 4px;
  }
  .filter-form select {
    max-width: 140px;
  }
  .empty {
    padding: 17px 10px;
  }
  .paging {
    padding: 10px;
  }
  .btn.small {
    font-size: 11px;
  }
  .brand strong {
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }
}

.studio-hero,
.auth-intro {
  background: linear-gradient(
    107deg,
    var(--hero-start, #184338),
    var(--hero-mid, #205243) 58%,
    var(--hero-start, #173d32)
  );
}
.nav-link.active {
  background: var(--nav-active, #d2edba);
}
.btn.primary {
  color: var(--brand-text, #fff);
}
.filter-form input {
  max-width: 165px;
  min-height: 32px;
  font-size: 12px;
  padding: 4px 8px;
}
.form-error .btn {
  margin-left: 8px;
}
.check-line {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.check-line input {
  width: auto;
}
