:root {
      --navy: #163a5f;
      --navy-deep: #0b2745;
      --navy-mid: #2e5280;
      --teal: #0e7a8a;
      --teal-light: #14a8bf;
      --gold: #f0b534;
      --ice: #e8f5f8;
      --line: #c7dbe2;
      --text: #314556;
      --muted: #647f91;
      --white: #ffffff;
      --success: #16a34a;
      --warning: #d97706;
      --danger: #dc2626;
      --shadow-card: 0 24px 48px rgba(18, 46, 74, 0.12);
      --shadow-soft: 0 16px 32px rgba(18, 46, 74, 0.08);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      font-family:  'Inter', 'DM Sans', 'Segoe UI', sans-serif;
      color: var(--navy-deep);
      background:
        radial-gradient(circle at top left, rgba(20, 168, 191, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(240, 181, 52, 0.14), transparent 28%),
        linear-gradient(145deg, #f9fcfd 0%, #eef6f8 48%, #dbeaf0 100%);
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      width: 360px;
      height: 360px;
      top: -140px;
      left: -120px;
      background: radial-gradient(circle, rgba(14, 122, 138, 0.2) 0%, rgba(14, 122, 138, 0) 72%);
    }

    body::after {
      width: 420px;
      height: 420px;
      right: -180px;
      bottom: -180px;
      background: radial-gradient(circle, rgba(46, 82, 128, 0.14) 0%, rgba(46, 82, 128, 0) 72%);
    }

    img {
      display: block;
      max-width: 100%;
    }

    button {
      font: inherit;
    }

    .page-shell {
      position: relative;
      z-index: 1;
      max-width: 1400px;
      margin: 0 auto;
      padding: 24px;
    }

    .resume-banner {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
      padding: 18px 20px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(199, 219, 226, 0.9);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(18px);
    }

    .resume-banner.active {
      display: flex;
    }

    .resume-copy {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .resume-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(20, 168, 191, 0.14), rgba(22, 58, 95, 0.14));
      color: var(--teal);
      font-size: 18px;
      flex-shrink: 0;
    }

    .resume-copy h2 {
      font-size: 18px;
      color: var(--navy-deep);
    }

    .resume-copy p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .app-frame {
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 34px;
      box-shadow: var(--shadow-card);
      backdrop-filter: blur(22px);
      overflow: hidden;
    }

    .top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 22px 24px;
      border-bottom: 1px solid rgba(199, 219, 226, 0.85);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 252, 0.72));
    }

    .brand-lockup {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }

    .brand-mark {
      width: 66px;
      height: 66px;
      padding: 10px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(199, 219, 226, 0.76);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 16px 28px rgba(18, 46, 74, 0.08);
      flex-shrink: 0;
    }

    .brand-mark picture {
      display: block;
      width: 100%;
    }

    .brand-mark img {
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .brand-copy small {
      display: block;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .brand-copy h1 {
      margin-top: 6px;
      font-size: 22px;
      font-weight: 600;
      line-height: 1.15;
      color: var(--navy-deep);
    }

    .brand-copy p {
      margin-top: 7px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .meta-strip {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 12px;
    }

    .top-bar-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
    }

    .voice-panel-spaced {
      margin-top: 18px;
    }

    .system-mt {
      margin-top: 14px;
    }

    .interview-answer-textarea {
      margin-top: 10px;
      width: 100%;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.08);
      color: white;
      padding: 12px;
      min-height: 88px;
      font-family: inherit;
      font-size: 14px;
      line-height: 1.5;
    }

    .interview-answer-textarea::placeholder {
      color: rgba(255, 255, 255, 0.45);
    }

    .interview-answer-textarea:focus {
      outline: 2px solid rgba(255, 255, 255, 0.28);
      outline-offset: 1px;
    }

    .side-rail-actions {
      margin-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .meta-card {
      min-width: 132px;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(199, 219, 226, 0.78);
      box-shadow: 0 10px 20px rgba(18, 46, 74, 0.05);
    }

    .meta-card span {
      display: block;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .meta-card strong {
      display: block;
      margin-top: 8px;
      color: var(--navy-deep);
      font-size: 15px;
    }

    .status-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.16);
    }

    .status-dot.recording {
      background: #ef4444;
      box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.16);
    }

    .status-dot.processing {
      background: var(--warning);
      box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.16);
    }

    .status-dot.reconnect,
    .status-dot.paused {
      background: var(--danger);
      box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.16);
    }

    .status-dot.completed {
      background: var(--teal);
      box-shadow: 0 0 0 5px rgba(14, 122, 138, 0.16);
    }

    .layout-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.88fr);
      gap: 24px;
      padding: 24px;
    }

    .main-panel {
      min-width: 0;
    }

    .panel-card {
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(255, 255, 255, 0.86);
      border-radius: 28px;
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(18px);
    }

    .section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 22px 22px 0;
    }

    .section-heading h2 {
      font-size: 20px;
      color: var(--navy-deep);
    }

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

    .history-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(232, 245, 248, 0.9);
      color: var(--navy-mid);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

    .conversation-area {
      margin: 18px 22px 0;
      padding: 20px;
      min-height: 420px;
      max-height: 580px;
      overflow-y: auto;
      border-radius: 26px;
      background: linear-gradient(180deg, rgba(247, 251, 252, 0.98), rgba(234, 244, 247, 0.94));
      border: 1px solid rgba(199, 219, 226, 0.78);
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .message {
      max-width: 86%;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .message.ai {
      align-self: flex-start;
    }

    .message.user {
      align-self: flex-end;
    }

    .message-head {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .speaker-icon {
      width: 42px;
      height: 42px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 16px;
    }

    .message.ai .speaker-icon {
      background: linear-gradient(135deg, rgba(20, 168, 191, 0.16), rgba(22, 58, 95, 0.12));
      color: var(--teal);
    }

    .message.user .speaker-icon {
      background: linear-gradient(135deg, rgba(22, 58, 95, 0.18), rgba(14, 122, 138, 0.2));
      color: var(--navy);
    }

    .speaker-meta strong {
      display: block;
      font-size: 15px;
      color: var(--navy-deep);
    }

    .speaker-meta span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
    }

    .bubble {
      padding: 18px 20px;
      border-radius: 24px;
      box-shadow: 0 16px 30px rgba(18, 46, 74, 0.06);
      line-height: 1.68;
      font-size: 15px;
    }

    .message.ai .bubble {
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(199, 219, 226, 0.84);
      color: var(--text);
      border-top-left-radius: 8px;
    }

    .message.user .bubble {
      background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 58%, var(--teal) 100%);
      color: white;
      border-top-right-radius: 8px;
    }

    .message-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .audio-action,
    .audio-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: none;
      font-size: 13px;
      font-weight: 600;
    }

    .audio-action {
      background: rgba(14, 122, 138, 0.12);
      color: var(--teal);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .audio-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 20px rgba(18, 46, 74, 0.08);
    }

    .audio-badge {
      background: rgba(255, 255, 255, 0.16);
      color: rgba(255, 255, 255, 0.92);
    }

    .thinking-message {
      display: none;
      align-self: flex-start;
      gap: 12px;
      align-items: center;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(199, 219, 226, 0.84);
      color: var(--muted);
      font-size: 14px;
      box-shadow: 0 14px 24px rgba(18, 46, 74, 0.06);
    }

    .thinking-message.active {
      display: inline-flex;
    }

    .thinking-dots {
      display: inline-flex;
      gap: 6px;
    }

    .thinking-dots span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(20, 168, 191, 0.7);
      animation: bounce 1s infinite ease-in-out;
    }

    .thinking-dots span:nth-child(2) {
      animation-delay: 0.12s;
    }

    .thinking-dots span:nth-child(3) {
      animation-delay: 0.24s;
    }

    @keyframes bounce {
      0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.55;
      }

      40% {
        transform: translateY(-5px);
        opacity: 1;
      }
    }

    .voice-panel {
      margin: 18px 22px 22px;
      padding: 22px;
      border-radius: 28px;
      background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 62%, var(--navy-mid) 100%);
      color: white;
      position: relative;
      overflow: hidden;
    }

    .voice-panel::before {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -120px;
      top: -120px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(20, 168, 191, 0.22) 0%, rgba(20, 168, 191, 0) 72%);
      pointer-events: none;
    }

    .voice-panel-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .voice-panel-header h3 {
      font-size: 21px;
    }

    .voice-panel-header p {
      margin-top: 6px;
      color: rgba(232, 245, 248, 0.78);
      font-size: 14px;
    }

    .recording-indicator {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.12);
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }

    .recording-indicator span {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
    }

    .voice-panel.is-recording .recording-indicator span {
      background: #ef4444;
      box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
    }

    .controls-row {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 22px;
    }

    .mic-button {
      width: 94px;
      height: 94px;
      border: none;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 34px;
      color: white;
      background: linear-gradient(145deg, var(--teal-light) 0%, var(--teal) 100%);
      box-shadow: 0 20px 34px rgba(20, 168, 191, 0.28);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      flex-shrink: 0;
    }

    .mic-button:hover {
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 24px 38px rgba(20, 168, 191, 0.34);
    }

    .mic-button.is-live {
      animation: pulse 1.4s infinite;
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(20, 168, 191, 0.3);
      }

      70% {
        box-shadow: 0 0 0 18px rgba(20, 168, 191, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(20, 168, 191, 0);
      }
    }

    .control-button {
      border: none;
      border-radius: 18px;
      padding: 15px 18px;
      min-width: 148px;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .control-button:hover:not(:disabled) {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.16);
    }

    .control-button.primary {
      background: linear-gradient(145deg, #f5c04f 0%, var(--gold) 100%);
      color: var(--navy-deep);
      box-shadow: 0 16px 28px rgba(240, 181, 52, 0.24);
    }

    .control-button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .waveform-wrap {
      position: relative;
      z-index: 1;
      margin-top: 18px;
      padding: 18px;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .waveform {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 8px;
      min-height: 72px;
    }

    .wave-bar {
      width: 8px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(20, 168, 191, 0.5));
      opacity: 0.28;
      animation: waveform 1.05s ease-in-out infinite;
      animation-play-state: paused;
    }

    .voice-panel.is-recording .wave-bar {
      opacity: 1;
      animation-play-state: running;
    }

    .wave-bar:nth-child(1) { height: 26px; animation-delay: 0s; }
    .wave-bar:nth-child(2) { height: 52px; animation-delay: 0.08s; }
    .wave-bar:nth-child(3) { height: 34px; animation-delay: 0.16s; }
    .wave-bar:nth-child(4) { height: 66px; animation-delay: 0.24s; }
    .wave-bar:nth-child(5) { height: 44px; animation-delay: 0.32s; }
    .wave-bar:nth-child(6) { height: 58px; animation-delay: 0.4s; }
    .wave-bar:nth-child(7) { height: 28px; animation-delay: 0.48s; }
    .wave-bar:nth-child(8) { height: 64px; animation-delay: 0.56s; }
    .wave-bar:nth-child(9) { height: 38px; animation-delay: 0.64s; }

    @keyframes waveform {
      0%, 100% {
        transform: scaleY(0.55);
      }

      50% {
        transform: scaleY(1.15);
      }
    }

    .system-state {
      position: relative;
      z-index: 1;
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .system-state strong {
      display: block;
      font-size: 14px;
    }

    .system-state span {
      display: block;
      margin-top: 4px;
      color: rgba(232, 245, 248, 0.82);
      font-size: 13px;
    }

    .state-pill {
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .system-state.error {
      background: rgba(220, 38, 38, 0.18);
      border-color: rgba(248, 113, 113, 0.28);
    }

    .system-state.warning {
      background: rgba(217, 119, 6, 0.18);
      border-color: rgba(245, 158, 11, 0.28);
    }

    .system-state.success {
      background: rgba(22, 163, 74, 0.18);
      border-color: rgba(52, 211, 153, 0.24);
    }

    .draft-card {
      position: relative;
      z-index: 1;
      margin-top: 16px;
      padding: 16px 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: none;
    }

    .draft-card.active {
      display: block;
    }

    .draft-card span {
      display: block;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(232, 245, 248, 0.74);
    }

    .draft-card p {
      margin-top: 8px;
      color: white;
      font-size: 14px;
      line-height: 1.6;
    }

    .side-rail {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .side-card {
      padding: 22px;
    }

    .side-card h3 {
      font-size: 18px;
      color: var(--navy-deep);
    }

    .side-card p {
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .step-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 18px;
    }

    .step-item {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 12px;
      align-items: start;
    }

    .step-dot {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(20, 168, 191, 0.1);
      color: var(--navy-mid);
      font-weight: 700;
      font-size: 13px;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .step-item strong {
      display: block;
      font-size: 14px;
      color: var(--navy-deep);
    }

    .step-item span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .step-item.active .step-dot {
      background: linear-gradient(145deg, var(--teal), var(--navy-mid));
      color: white;
      transform: translateY(-1px);
      box-shadow: 0 14px 22px rgba(20, 168, 191, 0.2);
    }

    .summary-list {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .summary-item {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(248, 251, 252, 0.9);
      border: 1px solid rgba(199, 219, 226, 0.78);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .summary-item span {
      color: var(--muted);
      font-size: 13px;
    }

    .summary-item strong {
      color: var(--navy-deep);
      font-size: 15px;
    }

    .support-note {
      margin-top: 18px;
      padding: 16px;
      border-radius: 18px;
      background: linear-gradient(145deg, rgba(232, 245, 248, 0.94), rgba(255, 255, 255, 0.98));
      border: 1px solid rgba(199, 219, 226, 0.82);
      color: var(--text);
      font-size: 14px;
      line-height: 1.55;
    }

    .support-note strong {
      color: var(--navy-deep);
    }

    .top-bar-action-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
    }

    .end-interview-button,
    .end-interview-control {
      border: none;
      border-radius: 16px;
      padding: 13px 18px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
      background: linear-gradient(145deg, #b42318 0%, #7f1d1d 100%);
      color: #fff;
      box-shadow: 0 12px 24px rgba(127, 29, 29, 0.2);
    }

    .end-interview-button-block {
      width: 100%;
    }

    .end-interview-button:hover:not(:disabled),
    .end-interview-control:hover:not(:disabled) {
      transform: translateY(-1px);
      filter: brightness(1.05);
    }

    .end-interview-button:disabled,
    .end-interview-control:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .exit-button,
    .banner-button,
    .modal-button {
      border: none;
      border-radius: 16px;
      padding: 13px 18px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

    .banner-button,
    .modal-button.primary {
      background: linear-gradient(145deg, var(--teal) 0%, var(--navy-mid) 100%);
      color: white;
      box-shadow: 0 16px 28px rgba(18, 46, 74, 0.14);
    }

    .exit-button,
    .modal-button.secondary {
      background: rgba(255, 255, 255, 0.9);
      color: var(--navy);
      border: 1px solid rgba(199, 219, 226, 0.82);
    }

    .exit-button:hover,
    .banner-button:hover,
    .modal-button:hover {
      transform: translateY(-1px);
      filter: brightness(1.02);
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(11, 39, 69, 0.5);
      backdrop-filter: blur(10px);
      z-index: 20;
    }

    .modal-overlay.active {
      display: flex;
    }

    .complete-card {
      width: min(520px, 100%);
      padding: 32px;
      border-radius: 32px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 32px 60px rgba(11, 39, 69, 0.24);
      text-align: center;
    }

    .complete-icon {
      width: 76px;
      height: 76px;
      margin: 0 auto 20px;
      border-radius: 24px;
      background: linear-gradient(145deg, rgba(22, 163, 74, 0.14), rgba(20, 168, 191, 0.14));
      color: var(--success);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
    }

    .complete-card h2 {
      font-size: 30px;
      color: var(--navy-deep);
    }

    .complete-card p {
      margin-top: 12px;
      color: var(--muted);
      line-height: 1.7;
      font-size: 15px;
    }

    .complete-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    @media (max-width: 1080px) {
      .layout-grid {
        grid-template-columns: 1fr;
      }

      .side-rail {
        order: -1;
      }
    }

    @media (max-width: 760px) {
      .page-shell {
        padding: 16px;
      }

      .resume-banner,
      .top-bar {
        flex-direction: column;
        align-items: flex-start;
      }

      .meta-strip {
        width: 100%;
        justify-content: flex-start;
      }

      .layout-grid,
      .top-bar {
        padding: 18px;
      }

      .section-heading,
      .conversation-area,
      .voice-panel,
      .side-card {
        margin-left: 0;
        margin-right: 0;
      }

      .message {
        max-width: 100%;
      }

      .controls-row {
        flex-direction: column;
        align-items: stretch;
      }

      .mic-button {
        width: 100%;
        height: 78px;
        border-radius: 24px;
      }

      .control-button {
        width: 100%;
      }

      .system-state {
        flex-direction: column;
        align-items: flex-start;
      }

      .complete-card {
        padding: 26px 22px;
      }
    }

    @media (max-width: 560px) {
      .page-shell {
        padding: 12px;
      }

      .app-frame {
        border-radius: 24px;
      }

      .resume-copy,
      .brand-lockup {
        align-items: flex-start;
      }

      .brand-lockup {
        flex-direction: column;
      }

      .brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
      }

      .brand-copy h1 {
        font-size: 22px;
      }

      .meta-strip {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
      }

      .meta-card {
        min-width: 0;
      }

      .summary-item {
        flex-direction: column;
        align-items: flex-start;
      }

      .section-heading,
      .conversation-area,
      .voice-panel,
      .side-card,
      .support-note {
        padding-left: 16px;
        padding-right: 16px;
      }

      .complete-actions > * {
        width: 100%;
        justify-content: center;
      }
    }

    /* —— Modern AI conversational interview (2026) —— */
    .chat-interview-shell {
      width: min(94vw, 1520px);
      max-width: 1520px;
      margin-left: auto;
      margin-right: auto;
      padding: 10px 12px 14px;
    }

    body:has(.chat-interview-shell) {
      background: #eceff3;
    }

    body:has(.chat-interview-shell)::before,
    body:has(.chat-interview-shell)::after {
      display: none;
    }

    .page-shell.chat-interview-shell {
      min-height: 100vh;
      height: 100vh;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }

    .chat-app-frame {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      height: 100%;
      border-radius: 20px;
      background: #ffffff;
      border: 1px solid rgba(213, 224, 232, 0.9);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 8px 32px rgba(18, 46, 74, 0.07);
      overflow: hidden;
    }

    .chat-header {
      flex-shrink: 0;
      padding: 10px 20px 8px;
      background: #ffffff;
    }

    .chat-header-compact {
      border-bottom: none;
      box-shadow: 0 1px 0 rgba(221, 230, 237, 0.85);
    }

    .chat-header-main {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 36px;
    }

    .chat-header-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex: 1;
    }

    .chat-header-brand h1 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--navy-deep);
      letter-spacing: -0.02em;
      line-height: 1.2;
      white-space: nowrap;
    }

    .chat-header-util {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .chat-header-sub {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 6px;
      padding-bottom: 2px;
    }

    .chat-header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .chat-session-timer {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      font-size: 0.8125rem;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: var(--navy-deep);
      background: #f4f7fa;
      border: none;
      border-radius: 999px;
      letter-spacing: 0.01em;
      box-shadow: inset 0 0 0 1px rgba(208, 221, 230, 0.9);
    }

    .chat-session-timer i {
      font-size: 0.75rem;
      color: var(--teal);
    }

    .chat-ai-icon {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(14, 122, 138, 0.14), rgba(22, 58, 95, 0.08));
      color: var(--teal);
      font-size: 14px;
      flex-shrink: 0;
    }

    .chat-icon-btn {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-size: 0.875rem;
      color: var(--muted);
      background: transparent;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .chat-icon-btn:hover:not(:disabled) {
      color: var(--navy-deep);
      background: #f0f4f8;
    }

    .chat-icon-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .chat-icon-btn:focus-visible {
      outline: 2px solid var(--teal-light);
      outline-offset: 2px;
    }

    .chat-icon-btn-muted {
      font-size: 0.8125rem;
    }

    .chat-status-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin: 0;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted);
      line-height: 1.35;
      min-width: 0;
    }

    .chat-status-line > span:first-child {
      color: var(--text);
      font-weight: 600;
    }

    .chat-status-sep {
      color: #b8c5d0;
      user-select: none;
    }

    .chat-status-active {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .chat-status-active .status-dot {
      width: 6px;
      height: 6px;
    }

    .chat-toolbar-btn {
      padding: 5px 12px;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--navy-mid);
      background: #fff;
      border: 1px solid rgba(199, 219, 226, 0.75);
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .chat-toolbar-btn-ghost {
      background: transparent;
      border-color: transparent;
    }

    .chat-toolbar-btn-ghost:hover:not(:disabled) {
      background: #f0f4f8;
      border-color: rgba(199, 219, 226, 0.6);
    }

    .chat-toolbar-btn:hover:not(:disabled) {
      background: var(--ice);
      box-shadow: 0 1px 2px rgba(18, 46, 74, 0.04);
    }

    .chat-toolbar-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .chat-toolbar-btn-danger {
      color: var(--danger);
      border-color: rgba(220, 38, 38, 0.22);
    }

    .chat-toolbar-btn-danger:hover:not(:disabled) {
      background: rgba(220, 38, 38, 0.06);
    }

    .chat-layout {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      position: relative;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 0 12px;
      scroll-behavior: smooth;
      scrollbar-width: thin;
      scrollbar-color: rgba(14, 122, 138, 0.35) transparent;
      background: linear-gradient(180deg, #f6f8fa 0%, #f3f6f9 100%);
    }

    .chat-messages-inner {
      width: 100%;
      max-width: min(1200px, 100%);
      margin: 0 auto;
      padding: 0 clamp(16px, 2.5vw, 28px) 8px;
    }

    .chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    .chat-messages::-webkit-scrollbar-thumb {
      background: rgba(14, 122, 138, 0.3);
      border-radius: 999px;
    }

    .chat-message {
      display: flex;
      gap: 12px;
      margin-bottom: 18px;
      animation: chatFadeIn 0.26s ease;
    }

    .chat-message-generating {
      margin-bottom: 8px;
    }

    .chat-generating-card {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      font-size: 0.875rem;
      color: var(--muted);
      background: #ffffff;
      border: 1px solid #dde6ed;
      border-radius: 14px;
      border-top-left-radius: 4px;
      box-shadow: 0 1px 2px rgba(18, 46, 74, 0.04);
    }

    .chat-generating-card .thinking-dots span {
      width: 6px;
      height: 6px;
      background: var(--teal-light);
    }

    .chat-message-typing {
      margin-bottom: 18px;
      animation: chatFadeIn 0.28s ease;
    }

    .chat-message-typing .chat-message-body {
      max-width: min(85%, 720px);
    }

    .chat-typing-bubble {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      min-height: 44px;
      padding: 14px 18px;
      background: #fafcfd;
      border: 1px solid rgba(221, 230, 237, 0.9);
      border-radius: 18px;
      border-top-left-radius: 6px;
      box-shadow: 0 2px 8px rgba(18, 46, 74, 0.04);
    }

    .chat-typing-bubble .thinking-dots {
      align-self: flex-start;
    }

    .chat-typing-bubble .thinking-dots span {
      width: 7px;
      height: 7px;
      background: rgba(20, 168, 191, 0.85);
    }

    .chat-typing-caption {
      font-size: 0.8125rem;
      color: var(--muted);
      font-weight: 500;
    }

    .chat-composer.is-processing {
      opacity: 0.72;
      transition: opacity 0.2s ease;
    }

    .chat-composer.is-processing .chat-composer-input:disabled,
    .chat-composer.is-processing .chat-mic-btn:disabled,
    .chat-composer.is-processing .chat-send-btn:disabled {
      cursor: not-allowed;
    }

    .chat-send-btn.is-loading {
      position: relative;
      pointer-events: none;
    }

    .chat-send-btn.is-loading .fas {
      opacity: 0;
    }

    .chat-send-btn.is-loading::after {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      border-radius: 50%;
      animation: chatSendSpin 0.65s linear infinite;
    }

    @keyframes chatSendSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @keyframes chatFadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .chat-message-user {
      flex-direction: row-reverse;
      margin-left: auto;
      max-width: 100%;
      width: 100%;
      justify-content: flex-end;
    }

    .chat-message-avatar {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .chat-message-ai .chat-message-avatar {
      background: rgba(14, 122, 138, 0.1);
      color: var(--teal);
    }

    .chat-message-user .chat-message-avatar {
      background: rgba(22, 58, 95, 0.08);
      color: var(--navy-mid);
    }

    .chat-message-ai .chat-message-body {
      flex: 0 1 auto;
      min-width: 0;
      max-width: min(85%, 720px);
    }

    .chat-message-user .chat-message-body {
      flex: 0 1 auto;
      min-width: 0;
      max-width: min(85%, 720px);
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      margin-left: auto;
    }

    .chat-message-user .chat-message-body:has(.chat-message-edit) {
      align-items: stretch;
      width: min(85%, 720px);
      min-width: min(280px, 100%);
    }

    .chat-message-user .chat-message-label {
      text-align: right;
    }

    .chat-message-ai {
      max-width: 100%;
      width: 100%;
    }

    .chat-message-label {
      font-size: 0.625rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin-bottom: 5px;
      opacity: 0.9;
    }

    .chat-message-card {
      padding: 16px 18px;
      font-size: 0.9375rem;
      line-height: 1.65;
      letter-spacing: -0.01em;
      color: #1a2f42;
      background: #ffffff;
      border: 1px solid rgba(221, 230, 237, 0.85);
      border-radius: 18px;
      box-shadow: 0 2px 10px rgba(18, 46, 74, 0.04);
      word-break: break-word;
    }

    .chat-message-text {
      margin: 0;
      white-space: pre-wrap;
    }

    .chat-message-ai .chat-message-card {
      background: #fafcfd;
      border-color: rgba(221, 230, 237, 0.75);
      border-top-left-radius: 6px;
    }

    .chat-message-user .chat-message-card {
      background: linear-gradient(145deg, #e8f4f8 0%, #dceef5 100%);
      border-color: rgba(197, 220, 230, 0.65);
      color: #163a5f;
      border-top-right-radius: 6px;
      box-shadow: 0 2px 10px rgba(14, 122, 138, 0.06);
      box-sizing: border-box;
    }

    .chat-message-user .chat-message-card:has(.chat-message-edit) {
      width: 100%;
    }

    .chat-message-listen {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 12px;
      padding: 0;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--teal);
      background: transparent;
      border: none;
      border-radius: 0;
      cursor: pointer;
      transition: color 0.15s ease, opacity 0.15s ease;
    }

    .chat-message-listen:hover {
      color: var(--navy-deep);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .chat-message-listen.is-playing {
      color: var(--navy-deep);
    }

    .chat-message-listen i {
      font-size: 0.875rem;
    }

    .chat-message-edit-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 12px;
      padding: 0;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--teal);
      background: transparent;
      border: none;
      cursor: pointer;
      transition: color 0.15s ease;
    }

    .chat-message-edit-link:hover {
      color: var(--navy-deep);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .chat-message-edit {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      min-width: 0;
    }

    .chat-message-edit-input {
      display: block;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      min-height: 4.5em;
      margin: 0;
      padding: 8px;
      border: none;
      border-radius: 8px;
      background: white;
      color: inherit;
      font: inherit;
      font-size: inherit;
      line-height: inherit;
      letter-spacing: inherit;
      resize: vertical;
    }

    .chat-message-edit-input:focus {
      outline: none;
      box-shadow: none;
    }

    .chat-message-edit-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .chat-message-edit-btn {
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(14, 122, 138, 0.35);
      background: var(--teal);
      color: #ffffff;
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
    }

    .chat-message-edit-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .chat-message-edit-btn-muted {
      background: #ffffff;
      color: #163a5f;
      border-color: #c5dce6;
    }

    .chat-composer-region {
      flex-shrink: 0;
      position: sticky;
      bottom: 0;
      z-index: 10;
      padding: 12px clamp(16px, 2.5vw, 28px) 18px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 12%);
      border-top: none;
      box-shadow: none;
    }

    .chat-composer-region::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(221, 230, 237, 0.9) 20%, rgba(221, 230, 237, 0.9) 80%, transparent);
      pointer-events: none;
    }

    .chat-composer-region .chat-composer-form,
    .chat-composer-region .chat-completion-bar {
      width: 100%;
      max-width: min(1200px, 100%);
      margin: 0 auto;
    }

    .chat-alerts {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 10px;
    }

    .chat-alert {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 10px;
      padding: 8px 12px;
      font-size: 0.75rem;
      border-radius: 10px;
      line-height: 1.4;
    }

    .chat-alert-warning {
      background: rgba(217, 119, 6, 0.08);
      border: 1px solid rgba(217, 119, 6, 0.25);
      color: #92400e;
    }

    .chat-alert strong {
      font-weight: 600;
    }

    .chat-composer-form {
      width: 100%;
    }

    .chat-composer {
      border: 1px solid rgba(207, 217, 226, 0.95);
      border-radius: 24px;
      background: #ffffff;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 4px 20px rgba(18, 46, 74, 0.07),
        0 1px 3px rgba(18, 46, 74, 0.04);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .chat-composer:focus-within {
      border-color: rgba(142, 184, 200, 0.9);
      background: #ffffff;
      box-shadow:
        0 0 0 3px rgba(14, 122, 138, 0.1),
        0 8px 28px rgba(18, 46, 74, 0.08);
    }

    .chat-composer.is-recording {
      border-color: #e8a8a8;
      background: #fffafa;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 4px 16px rgba(220, 38, 38, 0.06);
    }

    .chat-composer-recording {
      padding: 10px 14px 0;
    }

    .chat-answer-review-hint {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 10px 14px 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f0f9ff;
      border: 1px solid #bae6fd;
      color: #0c4a6e;
      font-size: 0.8125rem;
      line-height: 1.45;
    }

    .chat-answer-review-hint i {
      margin-top: 2px;
      color: var(--teal);
      flex-shrink: 0;
    }

    .chat-recording-status-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
      font-size: 0.8125rem;
      font-weight: 500;
      color: #b91c1c;
    }

    .chat-transcript-panel {
      margin-top: 10px;
      padding: 10px 12px;
      background: #f8fafb;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
    }

    .chat-transcript-label {
      display: block;
      font-size: 0.6875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .chat-live-transcript {
      margin: 0;
      font-size: 0.9375rem;
      line-height: 1.55;
      color: var(--navy-deep);
      white-space: pre-wrap;
      word-break: break-word;
      min-height: 1.5em;
    }

    .chat-live-transcript.is-placeholder {
      color: var(--muted);
      font-style: italic;
    }

    .chat-live-transcript.is-updating {
      transition: color 0.15s ease;
    }

    .chat-transcript-pending {
      font-weight: 500;
      color: var(--teal);
      animation: transcriptPulse 1.2s ease-in-out infinite;
    }

    @keyframes transcriptPulse {
      0%,
      100% {
        opacity: 0.55;
      }
      50% {
        opacity: 1;
      }
    }

    .chat-recording-sep {
      opacity: 0.6;
      font-weight: 400;
    }

    .chat-recording-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--danger);
      animation: chatPulse 1.2s ease-in-out infinite;
    }

    @keyframes chatPulse {
      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.5;
        transform: scale(1.15);
      }
    }

    .chat-recording-label {
      font-weight: 500;
    }

    .chat-waveform {
      display: flex;
      align-items: flex-end;
      gap: 3px;
      height: 28px;
      margin-left: auto;
    }

    .chat-composer.is-recording .chat-waveform .wave-bar {
      width: 3px;
      min-height: 6px;
      border-radius: 2px;
      background: var(--teal-light);
      opacity: 1;
      animation: waveform 1.05s ease-in-out infinite;
      animation-play-state: running;
    }

    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(1) { height: 10px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(2) { height: 18px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(3) { height: 12px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(4) { height: 22px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(5) { height: 14px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(6) { height: 20px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(7) { height: 11px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(8) { height: 24px; }
    .chat-composer.is-recording .chat-waveform .wave-bar:nth-child(9) { height: 13px; }

    .chat-composer-row {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      padding: 10px 12px 10px 14px;
    }

    .chat-mic-btn {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 12px;
      background: #f0f5f8;
      color: var(--teal);
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .chat-mic-btn:hover:not(:disabled) {
      background: rgba(14, 122, 138, 0.15);
    }

    .chat-mic-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .chat-mic-btn.is-live {
      color: #fff;
      background: var(--danger);
      animation: micGlow 1.5s ease-in-out infinite;
    }

    @keyframes micGlow {
      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
      }
      50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
      }
    }

    .chat-composer-input {
      flex: 1;
      min-height: 32px;
      max-height: 200px;
      padding: 11px 4px;
      font-family: inherit;
      font-size: 0.9375rem;
      line-height: 1.55;
      color: var(--navy-deep);
      background: transparent;
      border: none;
      resize: none;
      outline: none;
    }

    .chat-composer-input::placeholder {
      color: var(--muted);
    }

    .chat-composer-input:disabled {
      opacity: 0.6;
    }

    .chat-send-btn {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 12px;
      background: var(--navy-deep);
      color: #fff;
      cursor: pointer;
      transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
    }

    .chat-send-btn:hover:not(:disabled) {
      background: var(--teal);
    }

    .chat-send-btn:active:not(:disabled) {
      transform: scale(0.96);
    }

    .chat-send-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .chat-send-btn-label {
      width: auto;
      min-width: 140px;
      padding: 0 16px;
      font-size: 0.8125rem;
      font-weight: 500;
    }

    .chat-composer-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 0 14px 10px;
      font-size: 0.6875rem;
      color: var(--muted);
    }

    .chat-char-count.over-limit {
      color: var(--danger);
      font-weight: 600;
    }

    .chat-composer-hint {
      text-align: right;
    }

    .chat-completion-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      background: rgba(232, 245, 248, 0.6);
      border: 1px solid rgba(199, 219, 226, 0.8);
      border-radius: 14px;
    }

    .chat-completion-bar strong {
      display: block;
      font-size: 0.9375rem;
      color: var(--navy-deep);
    }

    .chat-completion-bar p {
      margin-top: 4px;
      font-size: 0.8125rem;
      color: var(--muted);
    }

    .chat-completion-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    @media (max-width: 1024px) {
      .chat-interview-shell {
        width: 96vw;
      }

      .chat-message-ai .chat-message-body,
      .chat-message-user .chat-message-body {
        max-width: 88%;
      }
    }

    @media (max-width: 720px) {
      .chat-interview-shell {
        width: 100%;
        padding: 0;
        max-width: none;
        height: 100vh;
        min-height: 100dvh;
      }

      .chat-app-frame {
        border-radius: 0;
        border-left: none;
        border-right: none;
      }

      .chat-header {
        padding: 8px 12px 6px;
      }

      .chat-header-main {
        flex-wrap: wrap;
      }

      .chat-header-brand h1 {
        font-size: 0.9375rem;
      }

      .chat-header-sub {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }

      .chat-header-actions {
        width: 100%;
        justify-content: flex-end;
      }

      .chat-composer-hint {
        display: none;
      }

      .chat-message-ai .chat-message-body,
      .chat-message-user .chat-message-body {
        max-width: 92%;
      }

      .chat-messages-inner {
        padding: 0 12px 6px;
      }

      .chat-composer-region {
        padding: 10px 12px 14px;
      }
    }

    /* —— Interview already completed (link locked) —— */
    .interview-completed-screen {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
      background: linear-gradient(145deg, #f9fcfd 0%, #eef6f8 48%, #dbeaf0 100%);
    }

    .interview-completed-card {
      width: min(100%, 520px);
      padding: 32px 28px 28px;
      text-align: center;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(213, 224, 232, 0.9);
      border-radius: 24px;
      box-shadow: 0 12px 40px rgba(18, 46, 74, 0.1);
    }

    .interview-completed-card .logo-frame {
      max-width: 180px;
      margin: 0 auto 20px;
    }

    .interview-completed-icon-wrap {
      width: 64px;
      height: 64px;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(22, 163, 74, 0.12);
      color: var(--success);
      font-size: 28px;
    }

    .interview-completed-card h1 {
      font-size: 1.375rem;
      font-weight: 600;
      color: var(--navy-deep);
      letter-spacing: -0.02em;
      line-height: 1.3;
      margin-bottom: 12px;
    }

    .interview-completed-lead {
      font-size: 1rem;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 10px;
    }

    .interview-completed-body,
    .interview-completed-support {
      font-size: 0.9375rem;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .interview-completed-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 18px 0 16px;
      padding: 8px 16px;
      font-size: 0.8125rem;
      font-weight: 600;
      color: #166534;
      background: rgba(22, 163, 74, 0.1);
      border-radius: 999px;
    }

    .interview-completed-meta {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 6px 16px;
      max-width: 320px;
      margin: 0 auto;
      padding: 14px 16px;
      text-align: left;
      font-size: 0.8125rem;
      background: #f4f8fa;
      border-radius: 12px;
    }

    .interview-completed-meta dt {
      font-weight: 600;
      color: var(--muted);
    }

    .interview-completed-meta dd {
      margin: 0;
      color: var(--navy-deep);
    }

    .interview-completed-meta code {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 0.75rem;
      letter-spacing: 0.06em;
    }
