:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #fcfffd;
  --surface-strong: #ffffff;
  --ink: #191715;
  --muted: #68615b;
  --soft: #dfe9e5;
  --line: rgba(29, 24, 20, 0.12);
  --panel: rgba(252, 255, 253, 0.86);
  --coral: #ff4f68;
  --teal: #157f74;
  --amber: #d99121;
  --blue: #4d6ddf;
  --shadow: 0 18px 52px rgba(31, 27, 23, 0.16);
  --stage-shadow: 0 28px 90px rgba(28, 24, 20, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(25, 23, 21, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 23, 21, 0.032) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 20px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  transition:
    grid-template-columns 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    gap 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-shell.controls-collapsed {
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 0;
}

.stage-column,
.control-column {
  min-width: 0;
}

.stage-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: calc(100vh - 36px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(25, 23, 21, 0.22);
}

.brand-mark span {
  width: 22px;
  height: 15px;
  border: 3px solid white;
  border-radius: 5px;
  position: relative;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 2px;
  border-left: 7px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 35px;
  line-height: 1;
}

.brand-row p {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 255, 253, 0.78);
  color: #3b3631;
  font-size: 13px;
  font-weight: 800;
}

.session-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(21, 127, 116, 0.13);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-left: 2px;
  padding: 0 13px;
  border: 1px solid rgba(29, 24, 20, 0.14);
  border-radius: 999px;
  background: rgba(252, 255, 253, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(31, 27, 23, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.brand-row > .session-badge {
  margin-left: auto;
}

.account-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8b1aa;
}

.account-chip[data-state="on"] span {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(21, 127, 116, 0.13);
}

.account-chip strong {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(29, 24, 20, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(223, 233, 229, 0.56)),
    #dfe9e5;
  box-shadow: var(--stage-shadow);
  overflow: hidden;
}

#recordCanvas {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 100%;
  height: auto;
  background: #1f1a18;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(25, 23, 21, 0.28);
  transform-origin: center;
  transition:
    width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preview-wrap.ratio-transitioning #recordCanvas {
  transform: scale(0.985);
}

#cameraPreview {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.permission-panel {
  position: absolute;
  display: grid;
  gap: 14px;
  max-width: min(430px, calc(100% - 42px));
  padding: 24px;
  text-align: center;
  background: rgba(252, 255, 253, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(25, 23, 21, 0.18);
  backdrop-filter: blur(20px);
  z-index: 2;
}

.permission-panel[hidden] {
  display: none;
}

.permission-panel h2,
.panel h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
}

.permission-panel p,
.status-line,
#speechStatus {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.primary-action,
.secondary-action,
.download-link,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 760;
  text-decoration: none;
}

.primary-action {
  box-shadow: 0 12px 26px rgba(25, 23, 21, 0.2);
}

.download-link[hidden] {
  display: none;
}

.secondary-action {
  width: 100%;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 22px rgba(25, 23, 21, 0.13);
}

.secondary-action:disabled {
  background: #dfe9e5;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.ghost-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.transport {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 255, 253, 0.88);
  box-shadow: 0 14px 34px rgba(31, 27, 23, 0.1);
}

.transport strong,
.transport span {
  display: block;
}

.transport span {
  margin-top: 3px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #ffe1e6;
  box-shadow: inset 0 0 0 1px rgba(255, 79, 104, 0.12);
}

.record-action-button {
  display: inline-flex;
  width: auto;
  min-width: 128px;
  padding: 0 18px;
  gap: 10px;
  border-radius: 999px;
  background: #d6324f;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(214, 50, 79, 0.28);
}

.record-action-button:disabled {
  opacity: 1;
  background: #d6324f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(214, 50, 79, 0.18);
}

.record-action-button.recording {
  background: #1f1a18;
  color: white;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(25, 23, 21, 0.16);
}

#recordGlyph {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

#recordButton.recording #recordGlyph {
  width: 16px;
  height: 16px;
  margin-left: 0;
  border: 0;
  border-radius: 3px;
  background: #ffffff;
}

#recordButtonText {
  margin-top: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.pause-button {
  background: #e0f3ef;
}

#pauseGlyph {
  position: relative;
  width: 18px;
  height: 18px;
}

#pauseGlyph::before,
#pauseGlyph::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: var(--teal);
}

#pauseGlyph::before {
  left: 3px;
}

#pauseGlyph::after {
  right: 3px;
}

#pauseButton.paused #pauseGlyph::before {
  left: 5px;
  width: 0;
  height: 0;
  border-left: 12px solid var(--teal);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-radius: 0;
  background: transparent;
}

#pauseButton.paused #pauseGlyph::after {
  display: none;
}

.control-column {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-right: 2px;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 220ms ease;
}

.controls-collapsed .control-column {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
}

.control-toggle {
  position: absolute;
  top: 88px;
  right: 374px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(25, 23, 21, 0.9);
  color: white;
  box-shadow: 0 16px 36px rgba(25, 23, 21, 0.2);
  font-size: 12px;
  font-weight: 850;
  transition:
    right 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(12px);
}

.control-toggle:hover {
  background: rgba(25, 23, 21, 0.96);
  transform: translateY(-1px);
}

.control-toggle-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 20px;
  line-height: 1;
  transition: transform 220ms ease;
}

.controls-collapsed .control-toggle {
  right: 18px;
}

.controls-collapsed .control-toggle-icon {
  transform: rotate(180deg);
}

.outline-notification-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e7a421;
}

.outline-notification-dot[hidden] {
  display: none;
}

.panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(31, 27, 23, 0.07);
  backdrop-filter: blur(18px);
}

.panel-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  background: #dfe9e5;
}

.format-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.segmented button span {
  font-size: 11px;
  font-weight: 850;
}

.segmented button strong {
  font-size: 17px;
  line-height: 1;
}

.segmented button.active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(39, 31, 23, 0.1);
}

.ratio-transition {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 6px;
  min-width: 148px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(252, 255, 253, 0.88);
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(25, 23, 21, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(18px);
}

.ratio-transition span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ratio-transition strong {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.ratio-transition.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.field-label,
.switch-row label {
  font-size: 13px;
  font-weight: 760;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 80px;
  padding: 12px;
  line-height: 1.45;
}

select {
  min-height: 38px;
  padding: 0 10px;
}

input {
  min-height: 38px;
  padding: 0 11px;
}

.auth-form,
.memory-session {
  display: grid;
  gap: 9px;
}

.auth-compact {
  gap: 8px;
}

.memory-session[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.status-line:empty,
.demo-results-box:empty {
  display: none;
}

.mode-section[hidden] {
  display: none;
}

.memory-session strong,
.memory-session span {
  display: block;
}

.memory-session span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.checkbox-row input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--ink);
}

.demo-link-box,
.demo-results-box,
.job-list-box {
  display: grid;
  gap: 8px;
}

.job-list-box:empty::before {
  content: "暂无岗位";
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.job-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.job-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-row strong {
  color: var(--ink);
  font-size: 14px;
}

.job-row span {
  color: var(--muted);
  font-size: 12px;
}

.job-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-link-box {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  overflow-wrap: anywhere;
}

.demo-link-box a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
}

.queue-meter,
.demo-result-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.queue-meter,
.demo-result-row summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.demo-result-row summary {
  cursor: pointer;
}

.demo-result-row strong {
  color: var(--ink);
}

.demo-result-detail {
  display: grid;
  gap: 10px;
  padding: 10px 0 2px;
}

.demo-result-detail > div {
  display: grid;
  gap: 5px;
}

.demo-result-detail blockquote {
  margin: 0;
  padding: 7px 9px;
  border-left: 2px solid var(--teal);
  background: rgba(21, 127, 116, 0.07);
  color: var(--ink);
  line-height: 1.45;
}

.job-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 48px 18px;
  background: rgba(17, 17, 16, 0.28);
  overflow: auto;
  backdrop-filter: blur(14px);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 17, 16, 0.32);
  backdrop-filter: blur(14px);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(252, 255, 253, 0.96);
  box-shadow: 0 28px 90px rgba(22, 18, 15, 0.28);
}

.auth-dialog-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}

.auth-dialog-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.auth-dialog-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.auth-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 127, 116, 0.96), rgba(77, 109, 223, 0.9)),
    var(--ink);
  box-shadow: 0 12px 24px rgba(21, 127, 116, 0.16);
}

.auth-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.auth-dialog-actions {
  margin-top: 4px;
}

.auth-dialog-status {
  min-height: 20px;
}

.auth-dialog-status[data-state="error"] {
  color: var(--risk);
  font-weight: 650;
}

.job-editor-overlay[hidden] {
  display: none;
}

.job-editor-panel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 255, 253, 0.96);
  box-shadow: 0 24px 80px rgba(25, 23, 21, 0.22);
}

.job-editor-panel h2 {
  margin: 0;
  font-size: 24px;
}

.job-editor-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.job-editor-panel textarea {
  min-height: 260px;
}

.rule-guide {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.rule-guide strong {
  color: var(--ink);
  font-size: 14px;
}

.rule-guide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.compact-action {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.memory-indicator {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: #dfe9e5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.memory-indicator[data-state="on"] {
  background: #dff3ef;
  color: var(--teal);
}

.memory-indicator[data-state="error"] {
  background: #ffe0e5;
  color: #a22f48;
}

.switch-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 12px;
}

.transcript-panel {
  max-height: 320px;
}

.content-outline-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e3e9e7;
  color: #5d6662;
  font-size: 12px;
  font-weight: 800;
}

.content-outline-state[data-state="new"] {
  background: #fff0cf;
  color: #80530d;
}

.outline-title-button[hidden],
.outline-pending-button[hidden],
.outline-expanded[hidden],
.outline-history[hidden] {
  display: none;
}

.outline-title-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.outline-title-button > span:first-child {
  min-width: 0;
}

.outline-title-button small,
.outline-title-button strong {
  display: block;
}

.outline-title-button small {
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-title-button strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}

.outline-chevron {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform 180ms ease;
}

.outline-title-button[aria-expanded="true"] .outline-chevron {
  transform: rotate(90deg);
}

.outline-pending-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid #e3bf73;
  border-radius: 6px;
  background: #fff4dc;
  color: #68450d;
  font-size: 12px;
  font-weight: 800;
}

.outline-expanded {
  display: grid;
  gap: 6px;
}

.outline-sections {
  display: grid;
}

.outline-section {
  border-bottom: 1px solid var(--line);
}

.outline-section summary {
  position: relative;
  padding: 10px 24px 10px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.outline-section summary::-webkit-details-marker {
  display: none;
}

.outline-section summary::after {
  position: absolute;
  top: 8px;
  right: 2px;
  content: "+";
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.outline-section[open] summary::after {
  content: "−";
}

.outline-prompts {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 11px 17px;
  color: #505753;
  font-size: 12px;
  line-height: 1.5;
}

.outline-history {
  margin-top: 4px;
}

.outline-history > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.outline-history-list {
  display: grid;
  gap: 2px;
  padding-top: 7px;
}

.outline-history-list button {
  padding: 7px 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #4c5551;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.speech-indicator {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: #dfe9e5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.speech-indicator[data-state="listening"] {
  background: #dff3ef;
  color: var(--teal);
}

.speech-indicator[data-state="processing"] {
  background: #fff0d3;
  color: #80530d;
}

.speech-indicator[data-state="error"] {
  background: #ffe0e5;
  color: #a22f48;
}

.transcript-box {
  min-height: 120px;
  max-height: 210px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #3c3733;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.transcript-box.empty {
  color: #8d8782;
}

.recording-list {
  display: grid;
  gap: 8px;
}

.recording-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.recording-item strong,
.recording-item span {
  display: block;
}

.recording-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.recording-item a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 12px;
  }

  .app-shell.controls-collapsed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stage-column {
    min-height: auto;
  }

  .control-column {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .controls-collapsed .control-column {
    display: none;
  }

  .control-toggle {
    position: fixed;
    top: 14px;
    right: 12px;
  }

  .preview-wrap {
    min-height: min(680px, calc(100vh - 210px));
  }
}

@media (max-width: 560px) {
  .brand-row {
    align-items: flex-start;
  }

  .session-badge {
    display: none;
  }

  .transport {
    grid-template-columns: auto auto 1fr;
  }

  .download-link {
    grid-column: 1 / -1;
  }

  .brand-row p {
    letter-spacing: 2.5px;
  }

  .switch-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

}

.recruitment-demo-page {
  min-width: 320px;
  background: #edf2ef;
  color: #171918;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  min-height: 100vh;
  background: #d8e0dc;
}

.demo-stage {
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 100vh;
  padding: 0 22px 22px;
  background: #edf2ef;
}

.demo-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #171918;
}

.demo-brand-mark i {
  position: relative;
  width: 16px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.demo-brand-mark i::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -6px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid #fff;
}

.demo-brand h1 {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.15;
}

.demo-brand p {
  margin-top: 3px;
  color: #68716c;
  font-size: 11px;
  font-weight: 500;
}

#demoQueueBadge {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cbd5d0;
  border-radius: 999px;
  background: #fff;
  color: #087b69;
  font-family: "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 26px;
}

.demo-video-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  border: 1px solid #202522;
  border-radius: 6px;
  background: #202522;
  box-shadow: 0 20px 56px rgba(23, 25, 24, 0.18);
  overflow: hidden;
}

.demo-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #202522;
}

.demo-question-card {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 5px;
  width: min(520px, calc(100% - 44px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #171918;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.demo-question-card > span {
  color: #087b69;
  font-size: 11px;
  font-weight: 720;
}

.demo-question-card > strong {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.36;
  letter-spacing: 0;
}

.demo-question-card.is-thinking {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(247, 252, 250, 0.96);
}

.demo-question-card.is-thinking > strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #244b45;
}

.demo-question-card.is-thinking > strong::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(8, 123, 105, 0.22);
  border-top-color: #087b69;
  border-radius: 50%;
  content: "";
  animation: demo-thinking-spin 700ms linear infinite;
}

@keyframes demo-thinking-spin {
  to { transform: rotate(360deg); }
}

.demo-question-card > strong.is-updated {
  animation: demo-question-replace 240ms ease-out;
}

@keyframes demo-question-replace {
  from { opacity: 0.35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-question-card > strong.is-updated,
  .demo-question-card.is-thinking > strong::before {
    animation: none;
  }
}

.demo-question-tools {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}

.demo-question-tools[hidden],
.demo-question-options[hidden] {
  display: none;
}

.demo-question-tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-question-tool-row button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #59625e;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.demo-question-tool-row button:hover,
.demo-question-tool-row button:focus-visible {
  color: #087b69;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-question-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding-top: 2px;
}

.demo-question-options > button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cbd5d0;
  border-radius: 5px;
  background: #f7faf9;
  color: #202522;
  text-align: left;
  cursor: pointer;
}

.demo-question-options > button:hover,
.demo-question-options > button:focus-visible {
  border-color: #087b69;
  background: #edf5f2;
}

.demo-question-options > button:disabled,
.demo-question-tool-row button:disabled {
  cursor: default;
  opacity: 0.45;
  text-decoration: none;
}

.demo-question-options > button > strong {
  font-size: 12px;
  line-height: 1.35;
}

.demo-question-options > button > span {
  color: #69716d;
  font-size: 10px;
  line-height: 1.35;
}

.demo-question-action-status {
  min-height: 16px;
  color: #087b69;
  font-size: 11px;
}

.demo-recording-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  background: #fff;
}

.demo-recording-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-recording-status > i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #87908b;
}

.demo-recording-status[data-state="recording"] > i {
  background: #c82d3f;
  box-shadow: 0 0 0 4px rgba(200, 45, 63, 0.12);
}

.demo-recording-status[data-state="paused"] > i,
.demo-recording-status[data-state="processing"] > i {
  background: #a7680b;
}

.demo-recording-status[data-state="complete"] > i {
  background: #087b69;
}

.demo-recording-status[data-state="error"] > i {
  background: #b42318;
}

.demo-recording-status div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.demo-recording-status strong {
  font-size: 13px;
  white-space: nowrap;
}

.demo-recording-status span {
  color: #68716c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.demo-recording-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-record-button,
.demo-pause-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-record-button {
  min-width: 112px;
  border: 1px solid #171918;
  background: #171918;
  color: #fff;
}

.demo-record-button:hover:not(:disabled) {
  background: #2d322f;
}

.demo-record-button.is-recording {
  border-color: #b42318;
  background: #b42318;
}

.demo-record-button > i {
  width: 12px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(12% 5%, 94% 50%, 12% 95%);
}

.demo-record-button.is-recording > i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  clip-path: none;
}

.demo-pause-button {
  min-width: 112px;
  border: 1px solid #bdc8c2;
  background: #fff;
  color: #2d322f;
}

.demo-pause-button:hover:not(:disabled) {
  border-color: #87908b;
  background: #f4f7f5;
}

.demo-pause-button > i {
  width: 12px;
  height: 14px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.demo-pause-button.is-paused > i {
  border: 0;
  background: currentColor;
  clip-path: polygon(12% 5%, 94% 50%, 12% 95%);
}

.demo-record-button:disabled,
.demo-pause-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.demo-panel {
  display: grid;
  align-content: start;
  max-height: 100vh;
  overflow: auto;
  background: #fff;
}

.demo-interview-header,
.demo-interview-section,
.demo-report-section {
  padding: 22px 24px;
  border-bottom: 1px solid #d9e0dc;
}

.demo-interview-header > span {
  color: #68716c;
  font-size: 11px;
}

.demo-interview-header h2 {
  margin: 5px 0 16px;
  font-size: 21px;
  line-height: 1.25;
}

.demo-progress {
  height: 5px;
  overflow: hidden;
  background: #e3e9e6;
}

.demo-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #087b69;
  transition: width 240ms ease;
}

.demo-interview-header p {
  margin-top: 8px;
  color: #68716c;
  font-size: 12px;
}

.demo-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-section-heading h3 {
  margin: 0;
  font-size: 15px;
}

.demo-panel .field-label {
  display: block;
  margin-bottom: 6px;
  color: #4f5752;
  font-size: 12px;
  font-weight: 650;
}

.demo-panel input,
.demo-panel textarea {
  width: 100%;
  border: 1px solid #bdc8c2;
  border-radius: 5px;
  outline: none;
  color: #171918;
  background: #fff;
}

.demo-panel input {
  min-height: 42px;
  padding: 0 11px;
  margin-bottom: 10px;
}

.demo-panel textarea {
  min-height: 190px;
  padding: 11px;
  line-height: 1.6;
  resize: vertical;
}

.demo-panel input:focus,
.demo-panel textarea:focus {
  border-color: #2563a6;
  box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.1);
}

.demo-primary-button,
.demo-secondary-button,
.demo-finish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 5px;
  font-weight: 680;
}

.demo-primary-button {
  width: 100%;
  padding: 0 14px;
  border: 1px solid #087b69;
  color: #fff;
  background: #087b69;
}

.demo-primary-button:hover { border-color: #056657; background: #056657; }

.demo-secondary-button {
  padding: 0 12px;
  border: 1px solid #bdc8c2;
  color: #2d322f;
  background: #fff;
}

.demo-finish-button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  color: #565f5a;
  background: #edf2ef;
}

.demo-primary-button:disabled,
.demo-secondary-button:disabled,
.demo-finish-button:disabled { cursor: not-allowed; opacity: 0.48; }

.demo-answer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.demo-recording-files .demo-section-heading span {
  color: #68716c;
  font-size: 11px;
}

#demoRecordingList {
  display: grid;
  gap: 8px;
}

.demo-recording-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #d9e0dc;
  border-radius: 5px;
  background: #f7f9f8;
}

.demo-recording-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.demo-recording-item strong {
  font-size: 13px;
}

.demo-recording-item span {
  overflow: hidden;
  color: #68716c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-recording-item a {
  flex: 0 0 auto;
  color: #087b69;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.demo-recording-item a:hover {
  text-decoration: underline;
}

.demo-status {
  margin: 0;
  padding: 14px 24px;
  color: #68716c;
  font-size: 12px;
  line-height: 1.5;
}

.score-hero {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: #087b69;
}

.score-hero span {
  font-size: 14px;
  color: #68716c;
}

.score-item {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid #d9e0dc;
}

.score-item p {
  color: #68716c;
  font-size: 13px;
  line-height: 1.45;
}

.score-item small {
  color: #68716c;
  font-size: 12px;
  line-height: 1.45;
}

.report-decision {
  display: grid;
  gap: 4px;
  margin: 12px 0 6px;
  padding: 12px 0;
  border-top: 2px solid #171918;
  border-bottom: 1px solid #d9e0dc;
}

.report-decision strong {
  color: #087b69;
  font-size: 17px;
}

.report-decision span {
  color: #68716c;
  font-size: 12px;
}

.report-decision[data-state="当前证据不支持推进"] strong {
  color: #b42318;
}

.report-decision[data-state="需要补充面试"] strong {
  color: #8b5b11;
}

.score-item blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid #087b69;
  background: #edf5f2;
  color: #2d322f;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 940px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-stage {
    min-height: 62vh;
    padding: 0 14px 14px;
  }

  .demo-video-frame {
    min-height: 48vh;
  }

  .demo-recording-bar {
    margin-top: 8px;
  }

  .demo-panel {
    max-height: none;
  }

  .demo-question-card {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .demo-stage { min-height: 56vh; }
  .demo-brand p { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo-video-frame { min-height: 43vh; }
  .demo-question-options {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    left: 0;
    z-index: 4;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  }
  .demo-interview-header,
  .demo-interview-section,
  .demo-report-section { padding: 19px 18px; }
  .demo-status { padding: 13px 18px; }
  .demo-answer-actions { grid-template-columns: 1fr; }
  .demo-recording-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .demo-recording-status {
    justify-content: space-between;
  }
  .demo-recording-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .demo-record-button,
  .demo-pause-button {
    min-width: 0;
    padding: 0 10px;
  }
  .demo-recording-item {
    align-items: flex-start;
  }
}

/* Creator recording workbench: direction 1. */
:root {
  --bg: #edf2ef;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #171918;
  --muted: #68716c;
  --soft: #e7edea;
  --line: #d6dfda;
  --panel: #ffffff;
  --coral: #d6324f;
  --teal: #087b69;
  --amber: #a86512;
  --blue: #2563a6;
  --shadow: 0 16px 40px rgba(23, 25, 24, 0.12);
  --stage-shadow: 0 18px 48px rgba(23, 25, 24, 0.18);
}

body {
  min-width: 320px;
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

.app-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  height: 100svh;
  padding: 0;
  background: var(--bg);
}

.app-shell.controls-collapsed {
  grid-template-columns: minmax(0, 1fr) 0;
}

.stage-column {
  grid-template-rows: 58px minmax(0, 1fr) auto;
  gap: 0;
  min-height: 100svh;
  padding: 0 18px 16px;
}

.brand-row {
  gap: 10px;
  min-height: 58px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: none;
}

.brand-mark span {
  width: 16px;
  height: 11px;
  border-width: 2px;
  border-radius: 3px;
}

.brand-mark span::after {
  right: -6px;
  top: 2px;
  border-left-width: 5px;
  border-top-width: 3px;
  border-bottom-width: 3px;
}

h1 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 720;
  line-height: 1;
}

.brand-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.session-badge,
.account-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

.session-badge {
  padding: 0 10px;
}

.session-badge span,
.account-chip[data-state="on"] span {
  background: var(--teal);
  box-shadow: none;
}

.account-chip {
  margin-left: 0;
  padding: 0 12px;
}

.account-chip:hover,
.control-toggle:hover,
.ghost-action:hover,
.download-link:hover {
  border-color: #aebbb4;
  background: #f7faf8;
}

.preview-wrap {
  min-height: 0;
  padding: 14px;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  background: #dce4e0;
  box-shadow: none;
}

#recordCanvas {
  border-radius: 4px;
  box-shadow: var(--stage-shadow);
}

.permission-panel {
  gap: 12px;
  width: min(390px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(23, 25, 24, 0.16);
  backdrop-filter: blur(14px);
}

.permission-panel h2 {
  font-size: 18px;
}

.permission-panel p,
.status-line,
#speechStatus {
  font-size: 13px;
}

.primary-action,
.secondary-action,
.download-link,
.ghost-action {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 650;
}

.primary-action,
.secondary-action {
  background: var(--teal);
  box-shadow: none;
}

.primary-action:hover,
.secondary-action:hover {
  background: #056657;
}

.secondary-action:disabled {
  border-color: var(--line);
  background: var(--soft);
}

.ghost-action,
.download-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.transport {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.transport strong {
  font-size: 13px;
  font-weight: 650;
}

.transport span {
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.record-action-button,
.record-action-button:disabled {
  min-width: 132px;
  padding: 0 18px;
  border-radius: 6px;
  background: #d6324f;
  box-shadow: none;
}

.record-action-button:disabled {
  opacity: 0.46;
}

.record-action-button.recording {
  background: #202421;
  box-shadow: none;
}

.pause-button {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

.pause-button.paused {
  border-color: #e5c18a;
  background: #f8eedf;
}

.control-column {
  align-content: start;
  gap: 0;
  height: 100svh;
  max-height: 100svh;
  padding: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.control-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 54px 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.control-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 720;
}

.control-toggle,
.controls-collapsed .control-toggle {
  top: 11px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
}

.control-toggle:hover {
  transform: none;
}

.control-toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  font-size: 20px;
}

.control-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.panel {
  gap: 12px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.panel h2 {
  font-size: 14px;
  font-weight: 720;
}

.panel-kicker {
  display: none;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: var(--soft);
}

.segmented button {
  min-height: 40px;
  border-radius: 4px;
  font-weight: 650;
}

.segmented button.active {
  box-shadow: 0 2px 8px rgba(23, 25, 24, 0.08);
}

.segmented button strong {
  font-size: 15px;
}

.ratio-transition {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(23, 25, 24, 0.16);
  backdrop-filter: blur(14px);
}

.field-label,
.switch-row label,
.checkbox-row {
  font-weight: 650;
}

textarea,
input,
select {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface);
}

textarea {
  min-height: 72px;
  padding: 10px;
}

select,
input {
  min-height: 40px;
}

textarea:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(8, 123, 105, 0.34);
  outline-offset: 2px;
}

.checkbox-row {
  min-height: 44px;
}

.checkbox-row input {
  accent-color: var(--teal);
}

.memory-indicator,
.content-outline-state,
.speech-indicator {
  border-radius: 4px;
  font-weight: 650;
}

.transcript-box,
.recording-item,
.demo-link-box,
.auth-dialog,
.job-editor-panel,
.rule-guide {
  border-radius: 6px;
}

.transcript-box {
  background: #f7f9f8;
}

.recording-item {
  background: var(--surface);
}

.auth-overlay {
  background: rgba(17, 20, 18, 0.28);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 64px rgba(23, 25, 24, 0.2);
}

.auth-mark {
  border-radius: 6px;
  background: var(--teal);
  box-shadow: none;
}

.auth-close-button {
  border-radius: 6px;
}

@media (max-width: 980px) {
  .app-shell,
  .app-shell.controls-collapsed {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: 100svh;
    padding: 0;
  }

  .stage-column {
    grid-template-rows: 54px minmax(0, 1fr) auto;
    gap: 0;
    min-height: 100svh;
    padding: 0 12px 12px;
  }

  .brand-row {
    min-height: 54px;
  }

  .account-chip {
    margin-right: 46px;
  }

  .preview-wrap {
    min-height: min(680px, calc(100svh - 144px));
  }

  .control-column {
    height: auto;
    max-height: none;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .control-heading {
    position: static;
  }

  .control-toggle,
  .controls-collapsed .control-toggle {
    position: fixed;
    top: 9px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .brand-row {
    align-items: center;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: 17px;
  }

  .account-chip {
    min-height: 44px;
    margin-left: auto;
    padding: 0 10px;
  }

  .preview-wrap {
    min-height: min(680px, calc(100svh - 144px));
    padding: 6px;
  }

  .permission-panel {
    width: calc(100% - 24px);
    padding: 18px;
  }

  .transport {
    grid-template-columns: 128px 48px minmax(0, 1fr);
    gap: 8px;
    padding-top: 10px;
  }

  .record-action-button {
    min-width: 0;
    padding: 0 12px;
  }

  .download-link {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 16px 14px;
  }

  .control-heading {
    min-height: 54px;
    padding-left: 14px;
  }

  .switch-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .auth-dialog {
    padding: 18px;
  }
}
