/* Dedicated attachment-style skin. Loaded after the legacy stylesheet. */
:root {
  --att-page: #cfd9e3;
  --att-page-light: #eef3f7;
  --att-panel: #f7f9fb;
  --att-panel-soft: #edf2f6;
  --att-panel-blue: #e9f0f6;
  --att-border: #94a3b8;
  --att-border-soft: #cbd5e1;
  --att-text: #334155;
  --att-title: #0f172a;
  --att-muted: #64748b;
  --att-blue: #2563eb;
  --att-cyan: #22d3ee;
  --att-emerald: #10b981;
  --att-shadow: 0 8px 18px rgba(71, 85, 105, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--att-text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

/* Final visual alignment against the provided screenshot */
body:has(#appView:not(.hidden)) #transcript,
body:has(#appView:not(.hidden)) #answer {
  outline: none;
  white-space: pre-wrap;
}

body:has(#appView:not(.hidden)) .text-panel[data-empty="true"] {
  display: grid !important;
  place-items: center;
}

.panel-empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-align: center;
}

.panel-empty-state iconify-icon {
  margin-bottom: 16px;
  color: #64748b;
}

.panel-empty-state strong {
  color: #64748b;
  font-size: 20px;
  font-weight: 400;
}

.panel-empty-state span {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

@media (min-width: 1181px) {
  body:has(#appView:not(.hidden)) .top-strip {
    min-height: 98px !important;
    padding: 16px 26px !important;
    gap: 12px !important;
  }

  body:has(#appView:not(.hidden)) .brand-status-panel {
    min-width: 286px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding-right: 26px !important;
  }

  body:has(#appView:not(.hidden)) .app-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }

  body:has(#appView:not(.hidden)) .brand-block h1 {
    font-size: 20px !important;
    letter-spacing: 0.04em !important;
  }

  body:has(#appView:not(.hidden)) .brand-block .eyebrow {
    margin-top: 4px;
    font-size: 14px !important;
    color: #637ff1 !important;
  }

  body:has(#appView:not(.hidden)) .license-badge,
  body:has(#appView:not(.hidden)) .status-chip,
  body:has(#appView:not(.hidden)) .member-badge,
  body:has(#appView:not(.hidden)) .activation-panel,
  body:has(#appView:not(.hidden)) .account-panel {
    height: 66px !important;
    min-height: 66px !important;
    border-radius: 8px !important;
  }

  body:has(#appView:not(.hidden)) .license-badge {
    min-width: 170px !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
    font-size: 18px !important;
  }

  body:has(#appView:not(.hidden)) .license-badge::before {
    content: none !important;
  }

  body:has(#appView:not(.hidden)) .license-state-dot {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    flex: 0 0 12px !important;
    border-radius: 999px;
    background: #10b981;
  }

  body:has(#appView:not(.hidden)) .license-badge strong {
    font-size: 18px !important;
    font-weight: 500 !important;
  }

  body:has(#appView:not(.hidden)) .status-chip {
    padding: 0 18px !important;
  }

  body:has(#appView:not(.hidden)) .status-chip span {
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) .status-chip strong {
    font-size: 18px !important;
  }

  body:has(#appView:not(.hidden)) .expire-chip {
    min-width: 316px !important;
  }

  body:has(#appView:not(.hidden)) .rebind-chip {
    min-width: 144px !important;
  }

  body:has(#appView:not(.hidden)) .rebind-chip strong {
    font-size: 22px !important;
  }

  body:has(#appView:not(.hidden)) .member-badge {
    min-width: 146px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #fbbf24;
    background: #fff7ed;
    color: #b45309;
    font-size: 16px;
    font-weight: 600;
  }

  body:has(#appView:not(.hidden)) .activation-panel {
    flex: 1 1 494px !important;
    min-width: 494px !important;
    max-width: 494px !important;
    padding: 8px !important;
    gap: 12px !important;
  }

  body:has(#appView:not(.hidden)) .activation-field input,
  body:has(#appView:not(.hidden)) .buy-card-link,
  body:has(#appView:not(.hidden)) .activation-panel .primary {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) .activation-panel .primary {
    min-width: 100px !important;
  }

  body:has(#appView:not(.hidden)) .buy-card-link {
    min-width: 156px !important;
  }

  body:has(#appView:not(.hidden)) .account-panel {
    min-width: 208px !important;
    padding-left: 26px !important;
  }

  body:has(#appView:not(.hidden)) .workspace-scroll {
    padding: 24px 26px 28px !important;
  }

  body:has(#appView:not(.hidden)) .workspace-inner > * + * {
    margin-top: 26px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock.resume-dock {
    min-height: 472px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-head,
  body:has(#appView:not(.hidden)) .conversation-toolbar,
  body:has(#appView:not(.hidden)) .record-head {
    min-height: 92px !important;
    padding: 20px 24px !important;
  }

  body:has(#appView:not(.hidden)) .section-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body:has(#appView:not(.hidden)) .resume-title h2,
  body:has(#appView:not(.hidden)) .conversation-title h2,
  body:has(#appView:not(.hidden)) .record-head h2 {
    font-size: 24px !important;
  }

  body:has(#appView:not(.hidden)) .resume-title p,
  body:has(#appView:not(.hidden)) .conversation-title p,
  body:has(#appView:not(.hidden)) .record-head p {
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) .resume-summary {
    border: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-body {
    grid-template-columns: minmax(360px, 450px) minmax(0, 1fr) !important;
    min-height: 354px !important;
    gap: 24px !important;
    padding: 24px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-control {
    width: auto !important;
    min-height: 330px !important;
    padding: 24px !important;
    border: 1px dashed #92a8c4 !important;
    border-radius: 8px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .file-picker {
    min-height: 208px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .file-picker strong {
    font-size: 20px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .file-picker small {
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .primary,
  body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .secondary {
    height: 54px !important;
    min-height: 54px !important;
    font-size: 20px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .secondary {
    flex-basis: 120px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-panels {
    height: 330px !important;
    min-height: 330px !important;
    padding: 0 !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-result-head {
    min-height: 56px !important;
    font-size: 20px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-qa-box {
    min-height: 84px !important;
    padding: 32px 22px !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-question-text,
  body:has(#appView:not(.hidden)) #resumeDock .resume-answer-text {
    font-size: 18px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
  }

  body:has(#appView:not(.hidden)) .conversation-panel .conversation {
    min-height: 726px !important;
    height: auto !important;
    grid-template-columns: minmax(430px, 3fr) minmax(760px, 7fr) !important;
  }

  body:has(#appView:not(.hidden)) .transcript-pane,
  body:has(#appView:not(.hidden)) .answer-pane {
    min-height: 726px !important;
    padding: 26px 24px !important;
  }

  body:has(#appView:not(.hidden)) .pane-head {
    min-height: 46px !important;
    padding: 0 0 18px !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }

  body:has(#appView:not(.hidden)) .pane-head h2 {
    text-align: left !important;
    font-size: 20px !important;
  }

  body:has(#appView:not(.hidden)) .transcript-pane {
    position: relative;
  }

  body:has(#appView:not(.hidden)) .voice-source {
    position: absolute;
    top: 24px;
    right: 24px;
    min-height: 42px;
    padding: 4px !important;
    border: 1px solid #bdcbe0;
    border-radius: 6px !important;
    background: #d8e3eb !important;
  }

  body:has(#appView:not(.hidden)) .voice-source > span {
    display: none;
  }

  body:has(#appView:not(.hidden)) .voice-source .secondary {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 0 !important;
    font-size: 14px !important;
  }

  body:has(#appView:not(.hidden)) #transcript,
  body:has(#appView:not(.hidden)) #answer {
    min-height: 420px !important;
    margin: 0 !important;
    padding: 28px !important;
    font-size: 16px !important;
  }

  body:has(#appView:not(.hidden)) #answer {
    min-height: 540px !important;
  }

  body:has(#appView:not(.hidden)) .pane-actions {
    gap: 12px !important;
    padding: 20px 0 0 !important;
  }

  body:has(#appView:not(.hidden)) .pane-actions button {
    height: 54px !important;
    min-height: 54px !important;
    font-size: 18px !important;
  }

  body:has(#appView:not(.hidden)) .pane-foot {
    margin: 20px 0 0 !important;
    padding-top: 18px !important;
  }

  body:has(#appView:not(.hidden)) .pane-foot button {
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }

  body:has(#appView:not(.hidden)) .record-body {
    grid-template-columns: 450px minmax(0, 1fr) !important;
    min-height: 344px !important;
    max-height: 344px !important;
  }

  body:has(#appView:not(.hidden)) .record-list,
  body:has(#appView:not(.hidden)) .record-detail {
    max-height: 344px !important;
  }

  body:has(#appView:not(.hidden)) .record-item {
    min-height: 84px !important;
    padding: 16px !important;
  }

  body:has(#appView:not(.hidden)) .record-item strong {
    font-size: 18px !important;
    font-weight: 500 !important;
  }

  body:has(#appView:not(.hidden)) .record-item span {
    margin-top: 8px;
    font-size: 14px !important;
  }

  body:has(#appView:not(.hidden)) .record-empty {
    min-height: 290px !important;
    font-size: 18px !important;
  }

  body:has(#appView:not(.hidden)) .dialog-tools {
    min-height: 64px !important;
    padding: 14px 24px !important;
  }

  body:has(#appView:not(.hidden)) .victory-motto {
    font-size: 18px !important;
  }
}

body:has(#appView:not(.hidden)) .account-panel::before {
  content: none !important;
  display: none !important;
}

body:has(#appView:not(.hidden)) .account-avatar {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb !important;
  font-weight: 800;
}

body:has(#appView:not(.hidden)) .account-panel .secondary::before {
  content: none !important;
}

body:has(#appView:not(.hidden)) .account-panel .secondary {
  color: #64748b !important;
  font-size: 0 !important;
}

body:has(#appView:not(.hidden)) .account-panel .secondary::after {
  content: "↪";
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1180px) {
  body:has(#appView:not(.hidden)) #resumeDock .resume-body,
  body:has(#appView:not(.hidden)) .conversation-panel .conversation,
  body:has(#appView:not(.hidden)) .record-body {
    grid-template-columns: 1fr !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-control {
    width: 100% !important;
  }

  body:has(#appView:not(.hidden)) .activation-panel {
    min-width: min(420px, 100%) !important;
  }

  body:has(#appView:not(.hidden)) .transcript-pane,
  body:has(#appView:not(.hidden)) .answer-pane {
    min-height: 620px !important;
  }
}

@media (max-width: 760px) {
  body:has(#appView:not(.hidden)) .activation-panel {
    flex-basis: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
  }
}

/* Screenshot fidelity pass */
body:has(#appView:not(.hidden)) {
  background: #cfd9e3 !important;
}

body:has(#appView:not(.hidden)) .top-strip {
  min-height: 98px !important;
  padding: 16px 26px !important;
  gap: 12px !important;
  border-bottom-color: #8ea4ba !important;
  background: #edf2f6 !important;
}

body:has(#appView:not(.hidden)) .brand-status-panel {
  min-width: 286px;
  min-height: 66px !important;
  height: 66px !important;
  padding-right: 26px !important;
}

body:has(#appView:not(.hidden)) .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

body:has(#appView:not(.hidden)) .brand-block h1 {
  font-size: 20px;
  letter-spacing: 0.04em;
}

body:has(#appView:not(.hidden)) .brand-block .eyebrow {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #637ff1;
}

body:has(#appView:not(.hidden)) .license-badge,
body:has(#appView:not(.hidden)) .status-chip,
body:has(#appView:not(.hidden)) .member-badge,
body:has(#appView:not(.hidden)) .activation-panel,
body:has(#appView:not(.hidden)) .account-panel {
  height: 66px !important;
  min-height: 66px !important;
  border-radius: 8px !important;
}

body:has(#appView:not(.hidden)) .license-badge {
  min-width: 170px;
  justify-content: flex-start;
  padding: 0 20px !important;
  border-color: #5ee5af !important;
  background: #eafff6 !important;
  color: #00815d !important;
  font-size: 18px;
}

body:has(#appView:not(.hidden)) .license-badge::before {
  content: none !important;
}

body:has(#appView:not(.hidden)) .license-state-dot {
  width: 12px !important;
  height: 12px !important;
  display: inline-block;
  flex: 0 0 12px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

body:has(#appView:not(.hidden)) .license-badge.locked {
  border-color: #facc15 !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

body:has(#appView:not(.hidden)) .license-badge.locked .license-state-dot {
  background: #f59e0b;
}

body:has(#appView:not(.hidden)) .license-badge strong {
  font-size: 18px !important;
  font-weight: 500;
}

body:has(#appView:not(.hidden)) .status-chip {
  padding: 0 18px;
  border-color: #c0cfe0;
  background: #edf2f6;
}

body:has(#appView:not(.hidden)) .status-chip span {
  font-size: 16px;
}

body:has(#appView:not(.hidden)) .status-chip strong {
  font-size: 18px;
}

body:has(#appView:not(.hidden)) .expire-chip {
  min-width: 316px;
}

body:has(#appView:not(.hidden)) .rebind-chip {
  min-width: 144px;
}

body:has(#appView:not(.hidden)) .rebind-chip strong {
  font-size: 22px;
}

.member-badge {
  flex: 0 0 auto;
  min-width: 146px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #fbbf24;
  background: #fff7ed;
  color: #b45309;
  font-size: 16px;
  font-weight: 600;
}

.member-badge:not(.active) {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

body:has(#appView:not(.hidden)) .activation-panel {
  flex: 1 1 494px;
  min-width: 494px;
  max-width: 494px;
  padding: 8px !important;
  gap: 12px;
  border-color: rgba(34, 211, 238, 0.55) !important;
  background: rgba(236, 254, 255, 0.72) !important;
}

body:has(#appView:not(.hidden)) .activation-field input,
body:has(#appView:not(.hidden)) .buy-card-link,
body:has(#appView:not(.hidden)) .activation-panel .primary {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
}

body:has(#appView:not(.hidden)) .activation-panel .primary {
  min-width: 100px;
}

body:has(#appView:not(.hidden)) .buy-card-link {
  min-width: 156px;
}

body:has(#appView:not(.hidden)) .account-panel {
  min-width: 208px;
  padding-left: 26px !important;
}

body:has(#appView:not(.hidden)) .account-panel::before {
  content: none !important;
  display: none !important;
}

body:has(#appView:not(.hidden)) .account-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb !important;
  font-size: 18px !important;
  font-weight: 800;
}

body:has(#appView:not(.hidden)) .account-panel #accountName {
  max-width: 98px;
  font-size: 16px;
}

body:has(#appView:not(.hidden)) .account-panel .secondary::before {
  content: none !important;
}

body:has(#appView:not(.hidden)) .account-panel .secondary {
  width: 40px;
  min-width: 40px;
  height: 40px !important;
  color: #64748b !important;
  font-size: 0 !important;
}

body:has(#appView:not(.hidden)) .account-panel .secondary::after {
  content: "↪";
  font-size: 24px;
  line-height: 1;
}

body:has(#appView:not(.hidden)) .workspace-scroll {
  padding: 24px 26px 28px;
}

body:has(#appView:not(.hidden)) .workspace-inner > * + * {
  margin-top: 26px !important;
}

body:has(#appView:not(.hidden)) .workspace-inner > .resume-dock,
body:has(#appView:not(.hidden)) .workspace-inner > .conversation-panel,
body:has(#appView:not(.hidden)) .workspace-inner > .record-history-panel,
body:has(#appView:not(.hidden)) .workspace-inner > .dialog-tools {
  border-color: #9fb2c8 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 22px rgba(71, 85, 105, 0.2) !important;
}

body:has(#appView:not(.hidden)) #resumeDock.resume-dock {
  min-height: 472px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-head,
body:has(#appView:not(.hidden)) .conversation-toolbar,
body:has(#appView:not(.hidden)) .record-head {
  min-height: 92px !important;
  padding: 20px 24px !important;
  background: #e9f0f6 !important;
}

body:has(#appView:not(.hidden)) .section-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

body:has(#appView:not(.hidden)) .resume-title h2,
body:has(#appView:not(.hidden)) .conversation-title h2,
body:has(#appView:not(.hidden)) .record-head h2 {
  font-size: 24px;
  line-height: 1.15;
}

body:has(#appView:not(.hidden)) .resume-title p,
body:has(#appView:not(.hidden)) .conversation-title p,
body:has(#appView:not(.hidden)) .record-head p {
  margin-top: 5px;
  font-size: 16px;
}

body:has(#appView:not(.hidden)) .resume-summary {
  border: 0 !important;
  background: transparent !important;
  font-size: 16px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-body {
  min-height: 354px !important;
  grid-template-columns: minmax(360px, 450px) minmax(0, 1fr) !important;
  gap: 24px !important;
  padding: 24px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-control {
  width: auto !important;
  min-height: 330px !important;
  padding: 24px !important;
  border: 1px dashed #92a8c4 !important;
  border-radius: 8px !important;
  background: #e5edf4 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .file-picker {
  min-height: 208px !important;
  border-style: solid !important;
  background: #f8fafc !important;
}

body:has(#appView:not(.hidden)) #resumeDock .upload-cloud {
  margin-bottom: 8px;
  color: #0891b2;
}

body:has(#appView:not(.hidden)) #resumeDock .file-picker strong {
  font-size: 20px;
}

body:has(#appView:not(.hidden)) #resumeDock .file-picker small {
  margin-top: 6px;
  font-size: 16px;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-buttons {
  gap: 12px;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .primary,
body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .secondary {
  height: 54px !important;
  min-height: 54px !important;
  font-size: 20px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-buttons .secondary {
  flex-basis: 120px;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-panels {
  height: 330px !important;
  min-height: 330px !important;
  padding: 0 !important;
}

body:has(#appView:not(.hidden)) #resumeDock #resumeResult {
  border-color: #92a8c4 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result-head {
  min-height: 56px;
  font-size: 20px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result-head span {
  padding: 15px 12px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-qa-box {
  min-height: 84px !important;
  padding: 32px 22px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-question-text,
body:has(#appView:not(.hidden)) #resumeDock .resume-answer-text {
  font-size: 18px !important;
  line-height: 1.75 !important;
  font-weight: 400;
}

body:has(#appView:not(.hidden)) .conversation-panel .conversation {
  min-height: 726px !important;
  height: auto !important;
  grid-template-columns: minmax(430px, 3fr) minmax(760px, 7fr) !important;
}

body:has(#appView:not(.hidden)) .transcript-pane,
body:has(#appView:not(.hidden)) .answer-pane {
  min-height: 726px;
  padding: 26px 24px !important;
  background: #f8fafc !important;
}

body:has(#appView:not(.hidden)) .pane-head {
  min-height: 46px;
  padding: 0 0 18px !important;
  border-bottom: 0;
  background: transparent !important;
}

body:has(#appView:not(.hidden)) .pane-head > div {
  width: 100%;
}

body:has(#appView:not(.hidden)) .pane-head h2 {
  text-align: left;
  color: #1e40af;
  font-size: 20px !important;
}

body:has(#appView:not(.hidden)) .voice-source {
  position: absolute;
  top: 24px;
  right: 24px;
  min-height: 42px;
  padding: 4px !important;
  border: 1px solid #bdcbe0;
  border-radius: 6px !important;
  background: #d8e3eb !important;
}

body:has(#appView:not(.hidden)) .voice-source > span {
  display: none;
}

body:has(#appView:not(.hidden)) .voice-source .secondary {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent;
  font-size: 14px !important;
}

body:has(#appView:not(.hidden)) .voice-source .secondary.active {
  background: #bff7f8 !important;
  color: #0e7490 !important;
  box-shadow: none !important;
}

body:has(#appView:not(.hidden)) .transcript-pane {
  position: relative;
}

body:has(#appView:not(.hidden)) #transcript,
body:has(#appView:not(.hidden)) #answer {
  min-height: 420px !important;
  margin: 0 !important;
  padding: 28px !important;
  border-color: #c0cfe0 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

body:has(#appView:not(.hidden)) #answer {
  min-height: 540px !important;
}

body:has(#appView:not(.hidden)) #transcript::placeholder {
  color: #64748b;
  text-align: center;
}

body:has(#appView:not(.hidden)) .pane-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
  gap: 12px !important;
  padding: 20px 0 0 !important;
}

body:has(#appView:not(.hidden)) .pane-actions button {
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 6px !important;
  font-size: 18px !important;
}

body:has(#appView:not(.hidden)) #autoInterviewBtn {
  background: #2563eb !important;
  color: #fff !important;
}

body:has(#appView:not(.hidden)) #manualInterviewBtn {
  border-color: #22d3ee !important;
  background: #ecfeff !important;
  color: #0e7490 !important;
}

body:has(#appView:not(.hidden)) #pauseInterviewBtn {
  background: #d8e3eb !important;
  color: #475569 !important;
}

body:has(#appView:not(.hidden)) .pane-foot {
  margin: 20px 0 0 !important;
  padding-top: 18px !important;
}

body:has(#appView:not(.hidden)) .pane-foot button {
  border: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 14px !important;
}

body:has(#appView:not(.hidden)) .pane-foot button.active,
body:has(#appView:not(.hidden)) .pane-foot button:hover {
  color: #0891b2 !important;
  box-shadow: none !important;
}

body:has(#appView:not(.hidden)) .record-body {
  grid-template-columns: 450px minmax(0, 1fr) !important;
  min-height: 344px !important;
  max-height: 344px !important;
}

body:has(#appView:not(.hidden)) .record-list,
body:has(#appView:not(.hidden)) .record-detail {
  max-height: 344px;
}

body:has(#appView:not(.hidden)) .record-item {
  min-height: 84px;
  padding: 16px;
  border-color: #c0cfe0;
}

body:has(#appView:not(.hidden)) .record-item strong {
  font-size: 18px;
  font-weight: 500;
}

body:has(#appView:not(.hidden)) .record-item span {
  margin-top: 8px;
  font-size: 14px;
}

body:has(#appView:not(.hidden)) .record-empty {
  min-height: 290px;
  font-size: 18px;
}

body:has(#appView:not(.hidden)) .dialog-tools {
  min-height: 64px;
  padding: 14px 24px !important;
}

body:has(#appView:not(.hidden)) .victory-motto {
  font-size: 18px !important;
}

@media (max-width: 1500px) {
  body:has(#appView:not(.hidden)) .top-strip {
    min-height: 84px !important;
    padding: 12px 18px !important;
  }

  body:has(#appView:not(.hidden)) .brand-status-panel,
  body:has(#appView:not(.hidden)) .license-badge,
  body:has(#appView:not(.hidden)) .status-chip,
  body:has(#appView:not(.hidden)) .member-badge,
  body:has(#appView:not(.hidden)) .activation-panel,
  body:has(#appView:not(.hidden)) .account-panel {
    height: 56px !important;
    min-height: 56px !important;
  }

  body:has(#appView:not(.hidden)) .brand-status-panel {
    min-width: 230px;
  }

  body:has(#appView:not(.hidden)) .app-icon,
  body:has(#appView:not(.hidden)) .account-avatar {
    width: 40px;
    height: 40px;
  }

  body:has(#appView:not(.hidden)) .brand-block h1 {
    font-size: 16px;
  }

  body:has(#appView:not(.hidden)) .brand-block .eyebrow {
    font-size: 11px;
  }

  body:has(#appView:not(.hidden)) .license-badge strong,
  body:has(#appView:not(.hidden)) .status-chip strong,
  body:has(#appView:not(.hidden)) .status-chip span,
  body:has(#appView:not(.hidden)) .member-badge,
  body:has(#appView:not(.hidden)) .account-panel #accountName {
    font-size: 14px !important;
  }

  body:has(#appView:not(.hidden)) .expire-chip {
    min-width: 238px;
  }

  body:has(#appView:not(.hidden)) .activation-panel {
    flex-basis: 420px;
    min-width: 420px;
    max-width: 480px;
  }

  body:has(#appView:not(.hidden)) .activation-field input,
  body:has(#appView:not(.hidden)) .buy-card-link,
  body:has(#appView:not(.hidden)) .activation-panel .primary {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
}

/* Auth page from auth.html */
body:has(#authView:not(.hidden)) {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--att-page-light) !important;
}

#authView.auth-shell:not(.hidden) {
  width: min(1120px, 100%) !important;
  min-height: 640px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(148, 163, 184, 0.42);
}

.auth-hero {
  position: relative;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 40px !important;
  border-right: 1px solid #e2e8f0;
  border-radius: 0 !important;
  background: #e7f0f5 !important;
  color: var(--att-title);
  box-shadow: none !important;
}

.auth-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  border-left: 1px solid rgba(37, 99, 235, 0.1);
}

.mini-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.brand-mark {
  width: 36px !important;
  height: 36px !important;
  display: grid;
  place-items: center;
  border-radius: 6px !important;
  background: var(--att-blue) !important;
  color: #fff !important;
}

.mini-brand strong,
.mini-brand small {
  display: block;
}

.mini-brand strong {
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.mini-brand small {
  margin-top: 2px;
  color: rgba(29, 78, 216, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-kicker span {
  width: 32px;
  height: 1px;
  background: var(--att-blue);
}

.auth-hero h1 {
  max-width: 460px !important;
  color: var(--att-title) !important;
  font-size: 38px !important;
  font-weight: 700;
  line-height: 1.18 !important;
}

.auth-hero h1 span {
  color: #1d4ed8;
}

.hero-copy {
  max-width: 400px !important;
  margin-top: 22px !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 430px;
  margin-top: 56px;
}

.hero-stats div {
  padding-left: 12px;
  border-left: 2px solid var(--att-blue);
}

.hero-stats div:nth-child(2) {
  border-color: #0284c7;
}

.hero-stats div:nth-child(3) {
  border-color: #6366f1;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #1e293b;
  font-size: 18px;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--att-muted);
  font-size: 11px;
}

.auth-hero-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--att-muted);
  font-size: 11px;
}

.auth-hero-foot iconify-icon {
  color: #059669;
}

.auth-card {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 40px 56px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.auth-title {
  margin-bottom: 28px !important;
}

.auth-title h2 {
  color: var(--att-title) !important;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.2;
}

.auth-title p {
  margin-top: 8px !important;
  color: var(--att-muted) !important;
  font-size: 14px !important;
}

.auth-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin-bottom: 28px !important;
  padding: 0 !important;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 !important;
  background: transparent !important;
}

.auth-tabs button {
  height: auto !important;
  padding: 0 0 12px !important;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  color: var(--att-muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-tabs button.active {
  border-color: var(--att-blue);
  background: transparent !important;
  color: #1d4ed8;
  font-weight: 700;
}

.auth-form {
  display: grid !important;
  gap: 16px !important;
}

.auth-form label > span {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.input-wrap {
  position: relative;
}

.input-wrap iconify-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  color: var(--att-muted);
  transform: translateY(-50%);
}

.auth-form input,
.captcha-image,
.code-row .secondary {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-size: 14px !important;
  outline: none;
}

.input-wrap input {
  padding-left: 40px !important;
}

.auth-form input {
  padding-right: 12px;
}

.auth-form input:focus {
  border-color: rgba(37, 99, 235, 0.7) !important;
}

.captcha-row,
.code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  gap: 12px !important;
}

.captcha-image {
  padding: 0 !important;
  overflow: hidden;
}

.captcha-image img {
  width: 100%;
  height: 44px !important;
  display: block;
  object-fit: cover;
}

.auth-card .primary {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  margin-top: 8px;
  border: 0;
  border-radius: 6px !important;
  background: var(--att-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
}

.auth-card .primary:hover {
  background: #1d4ed8 !important;
}

.message {
  margin: 14px 0 0 !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
}

.message:empty {
  display: none;
}

.auth-terms {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: var(--att-muted);
  font-size: 11px;
  line-height: 1.8;
}

/* Workspace from workspace.html */
body:has(#appView:not(.hidden)) {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--att-page) !important;
}

#appView.client-shell:not(.hidden) {
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--att-page) !important;
}

.top-strip {
  width: 100% !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 !important;
  padding: 10px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--att-border) !important;
  border-radius: 0 !important;
  background: var(--att-panel-soft) !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.14) !important;
}

.brand-status-panel {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center;
  padding: 0 16px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--att-border-soft) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-block {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.app-icon,
.section-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--att-blue);
  color: #fff;
}

.brand-block h1 {
  margin: 0;
  color: var(--att-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow,
.brand-block .eyebrow {
  margin: 0;
  color: rgba(29, 78, 216, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.license-badge,
.status-chip,
.activation-panel,
.account-panel {
  flex: 0 0 auto;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.license-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px !important;
  border: 1px solid #86efac !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 12px;
  font-weight: 700;
}

.license-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--att-emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.license-badge.locked {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

.license-badge.locked::before {
  background: #f59e0b;
}

.license-badge span,
.license-badge strong {
  margin: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--att-border-soft);
  background: var(--att-panel-soft);
  font-size: 12px;
}

.status-chip span {
  color: var(--att-muted);
}

.status-chip strong {
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.rebind-chip strong {
  color: #1d4ed8;
  font-size: 14px;
}

.activation-panel {
  flex: 1 1 430px;
  min-width: 330px;
  max-width: 560px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px !important;
  border: 1px solid rgba(34, 211, 238, 0.32) !important;
  background: rgba(236, 254, 255, 0.52) !important;
}

.activation-field {
  flex: 1 1 auto;
  min-width: 0;
}

.activation-label-row {
  display: none !important;
}

.activation-field input {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(8, 145, 178, 0.36) !important;
  border-radius: 4px !important;
  background: #fff !important;
  font-size: 12px !important;
}

.buy-card-link,
.activation-panel .primary {
  height: 32px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px !important;
  border-radius: 4px !important;
  white-space: nowrap;
  font-size: 12px !important;
  text-decoration: none;
}

.buy-card-link {
  border: 1px solid rgba(8, 145, 178, 0.36) !important;
  background: #fff !important;
  color: #0e7490 !important;
}

.activation-panel .primary {
  border: 0;
  background: var(--att-cyan) !important;
  color: #06121e !important;
}

.account-panel {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  border-left: 1px solid var(--att-border-soft) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.account-panel::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dbeafe;
}

.account-panel span {
  max-width: 160px;
  overflow: hidden;
  color: var(--att-text) !important;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel .secondary {
  width: 32px;
  min-width: 32px;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

.account-panel .secondary::before {
  content: "退";
  color: var(--att-muted);
  font-size: 12px;
}

.sync-message {
  display: none !important;
}

.resume-dock,
.conversation-panel,
.record-history-panel,
.dialog-tools {
  width: min(1680px, calc(100% - 40px)) !important;
  margin: 14px auto 0 !important;
  overflow: hidden;
  border: 1px solid var(--att-border) !important;
  border-radius: 6px !important;
  background: var(--att-panel) !important;
  box-shadow: var(--att-shadow) !important;
}

.resume-dock {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 314px !important;
  padding: 0 !important;
}

.resume-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--att-border-soft);
  background: var(--att-panel-blue);
}

.resume-title,
.conversation-title,
.pane-head > div,
.record-head > div:first-child {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.resume-title h2,
.conversation-title h2,
.pane-head h2,
.record-head h2 {
  margin: 0;
  color: var(--att-title);
  font-size: 14px;
  font-weight: 800;
}

.resume-title p,
.conversation-title p {
  display: block;
  margin-top: 2px;
  color: var(--att-muted);
  font-size: 11px;
}

.resume-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  min-height: 256px;
}

.resume-control {
  min-height: 256px !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 12px;
  padding: 16px !important;
  border: 0 !important;
  border-right: 1px solid var(--att-border-soft) !important;
  border-radius: 0 !important;
  background: #e5edf4 !important;
}

.resume-control-title {
  display: none;
}

.file-picker {
  position: relative;
  flex: 1 1 auto;
  min-height: 172px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--att-border) !important;
  border-radius: 6px !important;
  background: var(--att-panel) !important;
  color: var(--att-text);
  text-align: center;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker .upload-cloud {
  display: grid !important;
  place-items: center;
  color: #0891b2;
}

.file-picker .upload-cloud::before,
.file-picker strong::before,
.file-picker span::before {
  content: none !important;
}

.file-picker strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--att-text);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker small {
  color: var(--att-muted);
  font-size: 11px;
}

.resume-buttons {
  display: flex !important;
  gap: 8px;
}

.resume-buttons .primary {
  flex: 1 1 auto;
  height: 36px !important;
  min-height: 36px !important;
  border: 0;
  border-radius: 5px !important;
  background: #06b6d4 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
}

.resume-buttons .secondary {
  flex: 0 0 76px;
  height: 36px !important;
  min-height: 36px !important;
  border: 1px solid var(--att-border-soft);
  border-radius: 5px !important;
  background: #fff;
  color: var(--att-muted);
  font-size: 12px;
}

#resumeText {
  display: none !important;
}

.resume-panels {
  height: 256px !important;
  min-height: 256px !important;
  padding: 14px !important;
  background: var(--att-panel) !important;
}

.resume-result {
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden !important;
  border: 1px solid var(--att-border) !important;
  border-radius: 6px !important;
  background: #f9fbfc !important;
}

.resume-box-head {
  display: none !important;
}

.resume-summary {
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--att-border-soft) !important;
  background: #f9fbfc !important;
  color: var(--att-muted) !important;
  font-size: 11px !important;
}

.resume-result-head {
  display: grid !important;
  grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr);
  padding: 0 !important;
  border-bottom: 1px solid var(--att-border-soft) !important;
  background: var(--att-panel-blue) !important;
  color: #1e40af !important;
  text-align: center;
  font-size: 13px !important;
  font-weight: 800;
}

.resume-result-head span {
  padding: 9px 12px !important;
}

.resume-result-head span:first-child {
  border-right: 1px solid var(--att-border-soft);
}

.resume-questions {
  min-height: 0;
  max-height: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto;
  list-style: none;
}

.resume-questions li,
.resume-questions li.resume-placeholder-row {
  display: grid !important;
  grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr) !important;
  grid-template-areas:
    "question answer action" !important;
  gap: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e2e8f0;
}

.resume-questions li.resume-placeholder-row {
  grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr) !important;
  grid-template-areas: "question answer" !important;
}

.resume-qa-box {
  min-height: 58px !important;
  max-height: none !important;
  padding: 8px 10px !important;
  overflow: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

.resume-question-box {
  grid-area: question;
  border-right: 1px solid #d8e1ea !important;
  background: #f8fafc !important;
}

.resume-answer-box {
  grid-area: answer;
  background: #fff !important;
}

.resume-question-text {
  display: block;
  color: var(--att-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.resume-answer-text {
  color: var(--att-text);
  font-size: 13px;
  line-height: 1.55;
}

.mini-add {
  grid-area: action;
  align-self: center;
  justify-self: center;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  border-radius: 4px !important;
  font-size: 11px;
}

.conversation-panel {
  overflow: hidden;
}

.conversation-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--att-border-soft);
  background: var(--att-panel-blue);
}

.conversation-title p {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-toolbar .record-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.conversation-toolbar .record-actions input,
.conversation-toolbar .record-actions button,
.record-status,
.record-count {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

.conversation-toolbar .record-actions input {
  width: 144px;
  padding: 0 10px;
}

.record-status,
.record-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--att-border-soft);
  background: #f8fafc;
  color: var(--att-muted);
}

.record-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}

.record-status i.active {
  background: var(--att-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.conversation-panel .conversation {
  width: 100% !important;
  height: clamp(420px, 49vh, 620px) !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 3fr) minmax(560px, 7fr) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pane {
  min-height: 0;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.answer-pane {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.transcript-pane {
  border-right: 1px solid var(--att-border-soft) !important;
}

.pane-head {
  min-height: 52px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px !important;
  border-bottom: 1px solid #d8e1ea;
  background: #f2f6fa !important;
}

.pane-head > div {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.pane-head .eyebrow {
  display: none;
}

.pane-head h2 {
  color: #1e40af;
  font-size: 13px;
}

.voice-source {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 12px !important;
  border-bottom: 1px solid #d8e1ea;
  border-radius: 0 !important;
  background: #f2f6fa !important;
}

.voice-source span {
  color: var(--att-muted);
  font-size: 11px;
}

.voice-source .secondary {
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

.pane-actions {
  display: grid !important;
  grid-template-columns: 7fr 3fr !important;
  gap: 8px;
  padding: 10px 12px 0 !important;
}

.pane-actions #manualInterviewBtn {
  grid-column: 1;
}

.pane-actions #recognizeQuestionBtn {
  grid-column: 2;
}

.pane-actions button {
  height: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px !important;
  font-size: 12px !important;
}

.secondary {
  border: 1px solid var(--att-border-soft);
  background: #fff;
  color: var(--att-text);
}

.secondary.active,
.secondary:not(:disabled):active {
  border-color: #0f172a !important;
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--att-cyan);
}

.transcribe-actions .mode-action.listening-pulse {
  border-color: #06b6d4 !important;
  background: #0f172a !important;
  color: #fff !important;
}

#transcript,
#answer {
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 12px !important;
  padding: 12px !important;
  overflow: auto !important;
  border: 1px solid var(--att-border-soft) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--att-text) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

#answer {
  white-space: pre-wrap;
}

.pane-foot {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 12px 12px !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--att-border-soft);
}

.scroll-actions {
  display: flex !important;
  gap: 8px;
}

.pane-foot button,
.scroll-actions .secondary {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

.record-history-panel {
  margin-top: 14px !important;
}

.record-head {
  min-height: 58px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--att-border-soft);
  background: var(--att-panel-blue) !important;
}

.record-body {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  min-height: 174px !important;
  max-height: 232px !important;
}

.record-list {
  max-height: 232px;
  overflow: auto;
  padding: 8px !important;
  border-right: 1px solid var(--att-border-soft);
  background: #eef3f7 !important;
}

.record-detail {
  max-height: 232px;
  min-width: 0;
  overflow: auto;
  padding: 14px !important;
  background: #f9fbfc !important;
  color: var(--att-muted);
  font-size: 12px;
}

.record-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: var(--att-muted);
  text-align: center;
}

.record-item {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
  padding: 9px;
  border: 1px solid var(--att-border-soft);
  border-radius: 6px;
  background: #fff;
  color: var(--att-text);
  text-align: left;
}

.record-item.active,
.record-item:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: #ecfeff;
}

.record-qa {
  display: grid;
  grid-template-columns: minmax(160px, 3fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid var(--att-border-soft);
  border-radius: 6px;
}

.record-qa section {
  min-width: 0;
  padding: 10px;
  background: #fff;
}

.record-qa section:first-child {
  border-right: 1px solid var(--att-border-soft);
  background: #eef3f7;
}

.record-qa b {
  display: block;
  margin-bottom: 7px;
  color: #1e40af;
  font-size: 11px;
}

.record-qa pre {
  max-height: 118px;
  margin: 0;
  overflow: auto;
  color: var(--att-text);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.dialog-tools {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px !important;
  padding: 12px 16px !important;
  border-color: var(--att-border-soft) !important;
  background: var(--att-panel-blue) !important;
}

.dialog-tools::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--att-cyan);
}

.victory-motto {
  flex: 1 1 auto;
  color: #0e7490 !important;
  font-size: 14px !important;
  font-weight: 800;
  text-align: right;
}

.danger {
  border-color: rgba(225, 29, 72, 0.32) !important;
  color: #be123c !important;
}

@media (max-width: 1180px) {
  .top-strip {
    align-items: stretch;
  }

  .resume-body,
  .conversation-panel .conversation {
    grid-template-columns: 1fr !important;
  }

  .resume-control,
  .transcript-pane {
    border-right: 0 !important;
    border-bottom: 1px solid var(--att-border-soft) !important;
  }

  .conversation-panel .conversation {
    height: auto !important;
  }

  #transcript,
  #answer {
    min-height: 260px !important;
  }
}

@media (max-width: 760px) {
  body:has(#authView:not(.hidden)) {
    padding: 14px;
  }

  #authView.auth-shell:not(.hidden) {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .auth-hero {
    border-right: 0 !important;
    border-bottom: 1px solid #e2e8f0;
  }

  .auth-card {
    padding: 28px !important;
  }

  .resume-dock,
  .conversation-panel,
  .record-history-panel,
  .dialog-tools {
    width: min(100% - 20px, 1680px) !important;
  }

  .activation-panel,
  .record-body {
    min-width: 0;
    grid-template-columns: 1fr !important;
  }

  .record-list {
    border-right: 0;
    border-bottom: 1px solid var(--att-border-soft);
  }
}

/* Highest specificity overrides against the previous accumulated stylesheet */
body:has(#appView:not(.hidden)) #resumeDock.resume-dock {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 314px !important;
  padding: 0 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-head {
  width: 100% !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--att-border-soft) !important;
  background: var(--att-panel-blue) !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-body {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  min-height: 256px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-control {
  width: 300px !important;
  min-height: 256px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px !important;
  border-right: 1px solid var(--att-border-soft) !important;
  border-bottom: 0 !important;
  background: #e5edf4 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-panels {
  width: 100% !important;
  height: 256px !important;
  min-height: 256px !important;
  padding: 14px !important;
}

body:has(#appView:not(.hidden)) #resumeDock #resumeResult {
  width: 100% !important;
  height: 100% !important;
}

body:has(#appView:not(.hidden)) #resumeDock .file-picker {
  width: 100% !important;
  min-height: 172px !important;
}

@media (max-width: 1180px) {
  body:has(#appView:not(.hidden)) #resumeDock .resume-body {
    grid-template-columns: 1fr !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-control {
    width: 100% !important;
    min-height: 210px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--att-border-soft) !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-panels {
    height: 300px !important;
  }
}

/* Imported design files: runtime shell and dynamic-content polish */
html {
  height: 100%;
  background: var(--att-page);
}

body {
  height: 100%;
}

body:has(#appView:not(.hidden)) {
  overflow: hidden !important;
}

#appView.client-shell:not(.hidden) {
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.workspace-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 20px;
  scrollbar-width: none;
}

.workspace-scroll::-webkit-scrollbar,
.resume-questions::-webkit-scrollbar,
#transcript::-webkit-scrollbar,
#answer::-webkit-scrollbar,
.record-list::-webkit-scrollbar,
.record-detail::-webkit-scrollbar {
  display: none;
}

.workspace-inner {
  width: 100%;
  max-width: 1680px;
  min-width: 0;
  margin: 0 auto;
}

.workspace-inner > * + * {
  margin-top: 14px !important;
}

body:has(#appView:not(.hidden)) .workspace-inner > .resume-dock,
body:has(#appView:not(.hidden)) .workspace-inner > .conversation-panel,
body:has(#appView:not(.hidden)) .workspace-inner > .record-history-panel,
body:has(#appView:not(.hidden)) .workspace-inner > .dialog-tools {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body:has(#appView:not(.hidden)) .top-strip {
  min-height: 64px !important;
}

body:has(#appView:not(.hidden)) .brand-status-panel {
  min-width: 190px;
}

body:has(#appView:not(.hidden)) .license-badge {
  min-width: 126px;
}

body:has(#appView:not(.hidden)) .status-chip {
  min-width: 112px;
}

body:has(#appView:not(.hidden)) .expire-chip {
  min-width: 174px;
}

body:has(#appView:not(.hidden)) .activation-panel {
  min-width: 390px;
}

body:has(#appView:not(.hidden)) .buy-card-link {
  min-width: 100px;
  border-color: rgba(6, 182, 212, 0.46) !important;
  background: #ecfeff !important;
  color: #0e7490 !important;
  font-weight: 800;
}

body:has(#appView:not(.hidden)) .activation-panel .primary {
  min-width: 72px;
  font-weight: 900;
}

body:has(#appView:not(.hidden)) .resume-summary {
  max-width: 46vw;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(#appView:not(.hidden)) #resumeDock.resume-dock {
  min-height: 320px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-body {
  min-height: 262px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-panels {
  height: 262px !important;
  min-height: 262px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result-head {
  font-size: 14px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-result-head span {
  padding: 10px 12px !important;
  text-align: center;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-questions li,
body:has(#appView:not(.hidden)) #resumeDock .resume-questions li.resume-placeholder-row {
  grid-template-columns: minmax(170px, 3fr) minmax(0, 7fr) !important;
  grid-template-areas: "question answer" "action answer" !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-qa-box {
  min-height: 58px !important;
  padding: 8px 11px !important;
}

body:has(#appView:not(.hidden)) #resumeDock .resume-question-text,
body:has(#appView:not(.hidden)) #resumeDock .resume-answer-text {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body:has(#appView:not(.hidden)) #resumeDock .placeholder-box {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body:has(#appView:not(.hidden)) .conversation-toolbar {
  min-height: 58px !important;
}

body:has(#appView:not(.hidden)) .conversation-panel .conversation {
  height: clamp(460px, 53vh, 660px) !important;
  grid-template-columns: minmax(300px, 3fr) minmax(620px, 7fr) !important;
}

body:has(#appView:not(.hidden)) .pane-head h2 {
  width: 100%;
  text-align: center;
  font-size: 14px !important;
  letter-spacing: 0.04em;
}

body:has(#appView:not(.hidden)) .pane-actions {
  grid-template-columns: 7fr 3fr !important;
  padding: 10px 12px 0 !important;
}

body:has(#appView:not(.hidden)) .pane-actions #autoInterviewBtn {
  grid-column: 1;
}

body:has(#appView:not(.hidden)) .pane-actions #pauseInterviewBtn {
  grid-column: 2;
}

body:has(#appView:not(.hidden)) .pane-actions #manualInterviewBtn {
  grid-column: 1;
}

body:has(#appView:not(.hidden)) .pane-actions #recognizeQuestionBtn {
  grid-column: 2;
}

body:has(#appView:not(.hidden)) #transcript,
body:has(#appView:not(.hidden)) #answer {
  resize: none;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body:has(#appView:not(.hidden)) #answer {
  margin-left: 14px !important;
}

body:has(#appView:not(.hidden)) .record-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

body:has(#appView:not(.hidden)) .record-detail-head h3 {
  margin: 0;
  color: var(--att-title);
  font-size: 14px;
}

body:has(#appView:not(.hidden)) .record-detail-head p {
  margin: 4px 0 0;
  color: var(--att-muted);
  font-size: 11px;
}

body:has(#appView:not(.hidden)) .record-detail-head > div:last-child {
  display: flex;
  gap: 8px;
}

body:has(#appView:not(.hidden)) .record-detail-head button {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 7px 9px;
  border-radius: 4px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.press-feedback {
  transform: scale(0.985);
  box-shadow: inset 0 0 0 2px rgba(34, 211, 238, 0.55) !important;
}

@keyframes interviewControlPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.32), inset 0 -2px 0 var(--att-cyan);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0), inset 0 -2px 0 var(--att-cyan);
  }
}

body:has(#appView:not(.hidden)) .transcribe-actions .mode-action.listening-pulse {
  animation: interviewControlPulse 0.95s ease-in-out infinite;
}

body:has(#appView:not(.hidden)) .answer-pane.answering #answer {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.16);
}

@media (max-width: 1180px) {
  body:has(#appView:not(.hidden)) .workspace-scroll {
    padding: 12px 14px;
  }

  body:has(#appView:not(.hidden)) .conversation-panel .conversation {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  body:has(#appView:not(.hidden)) .transcript-pane {
    border-right: 0 !important;
    border-bottom: 1px solid var(--att-border-soft) !important;
  }

  body:has(#appView:not(.hidden)) #answer {
    margin-left: 12px !important;
  }
}

@media (max-width: 780px) {
  body:has(#appView:not(.hidden)) .top-strip {
    padding: 10px 12px !important;
  }

  body:has(#appView:not(.hidden)) .activation-panel {
    min-width: 100%;
    max-width: none;
  }

  body:has(#appView:not(.hidden)) .conversation-toolbar,
  body:has(#appView:not(.hidden)) .record-head,
  body:has(#appView:not(.hidden)) .dialog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-body,
  body:has(#appView:not(.hidden)) .record-body {
    grid-template-columns: 1fr !important;
  }

  body:has(#appView:not(.hidden)) #resumeDock .resume-control {
    width: 100% !important;
  }
}

.hidden {
  display: none !important;
}
