:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152329;
  background: #f2f6f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f2f6f6; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }

.sidebar {
  background: #0b1f24;
  color: #eef7f7;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: #1bb4a8; color: #062c2d;
}
.brand strong { display: block; letter-spacing: .08em; }
.brand span { display: block; color: #9eb6b8; font-size: 12px; margin-top: 2px; }
nav { display: grid; gap: 8px; }
.nav-item {
  border: 0; background: transparent; color: #bdd0d1; text-align: left;
  padding: 12px 14px; border-radius: 10px;
}
.nav-item.active, .nav-item:hover { background: #16343a; color: #fff; }
.sidebar-footer { margin-top: auto; color: #8fa9ab; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; }

.main { padding: 34px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #548086; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; }
.primary, .secondary {
  border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700;
}
.primary { background: #0b8f88; color: white; }
.primary:hover { background: #087b75; }
.secondary { background: #e7eeee; color: #29484c; }

.hero {
  background: linear-gradient(120deg, #10343a, #0f6666);
  color: white; border-radius: 18px; padding: 28px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  box-shadow: 0 15px 40px rgba(11, 31, 36, .12);
}
.hero h2 { margin-bottom: 8px; font-size: 25px; }
.hero p { margin-bottom: 0; max-width: 720px; color: #d4e8e8; }
.eyebrow.light { color: #80d7cf; }
.hero-badge {
  width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center;
  align-content: center; background: rgba(255,255,255,.08);
}
.hero-badge span, .hero-badge small { font-size: 11px; color: #bde5e1; }
.hero-badge strong { font-size: 42px; line-height: 1; margin: 2px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; margin: 20px 0;
}
.stat-card {
  background: white; border: 1px solid #dce7e7; border-radius: 14px;
  padding: 18px; min-height: 105px;
}
.stat-card span { color: #678084; font-size: 13px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 28px; }

.panel {
  background: white; border: 1px solid #dce7e7; border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; border-bottom: 1px solid #e8eeee;
}
.panel-head h3 { margin-bottom: 0; font-size: 19px; }
.tools { display: flex; gap: 10px; }
.tools input, .tools select {
  border: 1px solid #cad8d9; border-radius: 9px; padding: 9px 11px;
  background: white; min-height: 40px;
}
.tools input { width: 280px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 980px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf1f1; text-align: left; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6c8487; background: #fbfcfc; }
td { font-size: 13px; vertical-align: middle; }
.client-event strong { display: block; }
.client-event span { display: block; color: #71868a; margin-top: 3px; }
.pill {
  display: inline-flex; border-radius: 999px; padding: 5px 9px;
  font-size: 11px; font-weight: 750; white-space: nowrap;
  background: #edf4f4; color: #36585c;
}
.pill.sent { background: #e9f4ff; color: #225b88; }
.pill.progress { background: #fff5df; color: #7a5814; }
.pill.complete, .pill.approved { background: #e8f7ef; color: #226744; }
.pill.reviewed { background: #eef0ff; color: #4c4f8d; }
.action-btn {
  border: 1px solid #cfdcdc; background: white; color: #21575b;
  border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 12px;
}
.empty { text-align: center; padding: 60px 20px; }
.empty-icon {
  margin: 0 auto 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #e7f5f2; color: #0b8f88; font-weight: 800;
}
.hidden { display: none !important; }

dialog {
  width: min(680px, calc(100vw - 32px)); border: 0; border-radius: 16px;
  padding: 0; box-shadow: 0 28px 80px rgba(6, 31, 36, .25);
}
dialog::backdrop { background: rgba(4, 22, 26, .58); }
dialog form { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.dialog-head h3 { margin: 0; font-size: 22px; }
.icon-btn { border: 0; background: #eef3f3; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { font-size: 12px; font-weight: 750; color: #4b666a; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input {
  width: 100%; margin-top: 7px; border: 1px solid #c9d6d7;
  border-radius: 9px; padding: 11px 12px; color: #182d31;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-error { margin: 14px 0 0; color: #a52a2a; font-size: 13px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 210px 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 20px; }
  .hero { align-items: flex-start; }
  .hero-badge { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-head { align-items: stretch; flex-direction: column; }
  .tools { flex-direction: column; }
  .tools input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
}

.interview-body { background: #eaf0f0; }
.interview-shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 54px; }
.interview-top {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  background: #0b1f24; color: white; border-radius: 18px 18px 0 0; padding: 20px 24px;
}
.progress-wrap { width: min(430px, 48vw); }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #c9dcdd; margin-bottom: 7px; }
.progress-track { height: 7px; background: #27434a; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #35c5b7; transition: width .25s ease; }
.event-context {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: #d6e1e1; border-left: 1px solid #d6e1e1; border-right: 1px solid #d6e1e1;
}
.event-context div { background: white; padding: 14px 18px; min-width: 0; }
.event-context span { display: block; color: #778e91; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.event-context strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-card {
  background: white; border: 1px solid #d6e1e1; border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 45px rgba(13, 38, 43, .08); overflow: hidden;
}
.messages {
  min-height: 420px; max-height: 60vh; overflow-y: auto; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.message { max-width: 82%; }
.message.user { align-self: flex-end; }
.message-role { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #6f888b; margin: 0 0 6px 4px; }
.message-text { border-radius: 16px; padding: 15px 17px; line-height: 1.55; background: #eff5f5; color: #173136; }
.message.assistant .message-text { border-top-left-radius: 5px; }
.message.user .message-text { background: #0e716d; color: white; border-top-right-radius: 5px; }
.answer-box { border-top: 1px solid #e0e8e8; padding: 20px 24px 22px; background: #fbfcfc; }
.answer-box label { display: block; font-size: 12px; font-weight: 750; color: #4a6669; margin-bottom: 8px; }
.answer-box textarea {
  display: block; width: 100%; resize: vertical; min-height: 110px;
  border: 1px solid #bfd0d1; border-radius: 12px; padding: 13px 14px; line-height: 1.5;
}
.answer-box textarea:focus { outline: 2px solid #9eddd7; border-color: #4aa69f; }
.answer-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.answer-actions span { color: #7b8e90; font-size: 12px; }
.complete-panel { padding: 48px 24px 52px; text-align: center; border-top: 1px solid #e0e8e8; }
.complete-panel p { color: #667f82; margin-bottom: 0; }
@media (max-width: 760px) {
  .interview-top { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; }
  .event-context { grid-template-columns: 1fr 1fr; }
  .messages { padding: 20px; max-height: none; }
  .message { max-width: 94%; }
}

.review-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 54px; }
.review-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #0b1f24; color: white; border-radius: 18px 18px 0 0; padding: 20px 24px;
}
.link-button { display: inline-flex; align-items: center; text-decoration: none; }
.review-panel {
  background: white; border: 1px solid #d6e1e1; border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 45px rgba(13, 38, 43, .08); overflow: hidden;
}
.review-toolbar {
  padding: 22px 24px; display: flex; justify-content: space-between; gap: 24px;
  align-items: flex-start; border-bottom: 1px solid #e4ecec;
}
.review-toolbar h1 { font-size: 22px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.review-status {
  padding: 12px 24px; background: #f7fafa; border-bottom: 1px solid #e4ecec;
  display: flex; align-items: center; gap: 12px; min-height: 52px;
}
.output-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px;
}
.output-grid label { font-size: 12px; font-weight: 750; color: #4b666a; }
.output-grid textarea {
  width: 100%; margin-top: 8px; border: 1px solid #c9d6d7; border-radius: 10px;
  padding: 12px; resize: vertical; line-height: 1.5; color: #183035; background: #fff;
}
.output-grid textarea:focus { outline: 2px solid #9eddd7; border-color: #4aa69f; }
.muted { color: #758a8d; font-size: 12px; }
@media (max-width: 860px) {
  .review-toolbar { flex-direction: column; }
  .review-actions { justify-content: flex-start; }
  .output-grid { grid-template-columns: 1fr; }
}
