:root {
  --sidebar-width: 295px;
  --topbar-height: 52px;
  --brand: #5b5fa9;
  --brand-dark: #383064;
  --brand-mid: #4c4f97;
  --brand-soft: #e8e9ff;
  --page: #f7f8fb;
  --line: #dfe3eb;
  --text: #1f2430;
  --muted: #667085;
  --card: #ffffff;
  --success: #24a35a;
  --warning: #f5a000;
  --danger: #e95078;
  --blue: #3173e0;
  --shadow: 0 2px 8px rgba(40, 42, 75, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

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

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  opacity: .72;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background: var(--page);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--brand);
  color: #fff;
  padding: clamp(16px, 2.6vh, 26px) 15px clamp(14px, 2.8vh, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 20px);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 12px clamp(4px, 1.2vh, 12px);
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(36px, 4.6vh, 45px);
  height: clamp(36px, 4.6vh, 45px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: clamp(5px, 1vh, 10px);
  flex-shrink: 1;
}

.nav-button {
  height: clamp(36px, 5.1vh, 50px);
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  font-size: clamp(13px, 1.55vh, 16px);
  font-weight: 700;
  text-decoration: none;
}

.nav-button.active,
.nav-button:hover {
  background: var(--brand-dark);
  box-shadow: 0 5px 10px rgba(65, 53, 114, 0.34);
}

.nav-icon {
  width: 25px;
  text-align: center;
  font-size: clamp(16px, 2.2vh, 22px);
  font-weight: 900;
}

.sidebar-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: clamp(8px, 1.6vh, 18px) 0 4px;
  flex-shrink: 0;
}

.upgrade-card {
  margin: auto 6px 0;
  background: #fff;
  color: #1f2430;
  border-radius: 18px;
  padding: clamp(10px, 1.6vh, 18px) 14px;
  text-align: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.upgrade-card .mini-logo {
  width: clamp(30px, 4.2vh, 44px);
  height: clamp(30px, 4.2vh, 44px);
  object-fit: contain;
}

.upgrade-title {
  margin-top: clamp(2px, 0.7vh, 6px);
  font-size: clamp(13px, 1.55vh, 16px);
  font-weight: 700;
}

.upgrade-copy {
  color: #202331;
  font-size: clamp(11px, 1.35vh, 14px);
  line-height: 1.35;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 20;
  height: var(--topbar-height);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 26px;
}

.topbar label {
  font-size: 14px;
  font-weight: 700;
}

.topbar select {
  height: 32px;
  min-width: 285px;
  border: 1px solid #cfd3df;
  border-radius: 5px;
  background: #fff;
  padding: 0 12px;
}

.top-btn,
.logout-btn {
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
}

.logout-btn {
  min-width: 110px;
  background: #fff;
  color: #222;
  border-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #31356d;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  box-shadow: 0 8px 22px rgba(26, 27, 66, 0.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.logout-btn:hover {
  background: #f7f8ff;
  box-shadow: 0 10px 26px rgba(26, 27, 66, 0.2);
  transform: translateY(-1px);
}

.user-email {
  margin: 0 10px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.main {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  min-height: 0;
  min-width: 0;
}

.content {
  height: 100%;
  margin-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(18px, 2.8vh, 26px) clamp(18px, 2.4vw, 30px) 96px;
  scrollbar-gutter: stable;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 18px;
  color: #303342;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(30, 34, 54, 0.06);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.dark {
  background: #4b4b4b;
  border-color: #4b4b4b;
  color: #fff;
}

.btn.blue {
  background: #2f76e8;
  border-color: #2f76e8;
  color: #fff;
}

.btn.ghost-purple {
  color: var(--brand);
  border-color: var(--brand);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card.pad {
  padding: clamp(16px, 2vw, 22px);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.kpi {
  min-height: clamp(112px, 14vh, 145px);
  padding: clamp(16px, 2vw, 24px) clamp(14px, 1.8vw, 22px);
  display: grid;
  grid-template-columns: clamp(52px, 5.7vw, 70px) 1fr;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  width: clamp(46px, 5.2vw, 64px);
  height: clamp(46px, 5.2vw, 64px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
}

.kpi-title {
  color: #343848;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 800;
}

.kpi-value {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 900;
}

.kpi-sub {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 12px);
  margin: clamp(16px, 2vh, 22px) 0;
}

.quick {
  height: clamp(56px, 7.8vh, 78px);
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 4px 10px rgba(91, 95, 169, 0.25);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(250px, 0.82fr) minmax(300px, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  align-items: start;
}

.dashboard-grid > .card {
  height: clamp(315px, 41vh, 385px);
  overflow: hidden;
}

.wide-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 22px;
}

.wide-stat {
  min-height: clamp(88px, 11vh, 112px);
  padding: clamp(14px, 1.7vw, 22px);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.wide-stat:last-child {
  border-right: 0;
}

.section-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 900;
}

.chart {
  height: clamp(170px, 24vh, 225px);
  position: relative;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(to top, transparent 0 39px, #e8eaf0 40px),
    repeating-linear-gradient(to right, transparent 0 74px, #eef0f4 75px);
}

.line-chart {
  width: 100%;
  height: clamp(170px, 24vh, 225px);
  display: block;
}

.bars {
  height: clamp(170px, 24vh, 225px);
  display: flex;
  align-items: flex-end;
  gap: 34px;
  padding: 28px 40px 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: 34px;
  background: #6963ca;
  border-radius: 4px 4px 0 0;
  position: relative;
}

.bar::before {
  content: attr(data-label);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  color: #545867;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.list-card .table {
  min-width: 1060px;
}

.table.compact {
  min-width: 0;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7ef;
  font-size: 13px;
  vertical-align: middle;
}

.table td {
  line-height: 1.45;
}

.table th {
  color: #697084;
  font-size: 12px;
  text-transform: uppercase;
  background: #fafbfe;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4e7f9, #f7f8ff);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
  background: #f1f2f6;
  color: #424756;
  white-space: nowrap;
}

.badge.purple {
  background: #ecebff;
  color: #453eb0;
}

.badge.green {
  background: #e5f6eb;
  color: #1d8f4d;
}

.badge.blue {
  background: #e8f0ff;
  color: #2f70d8;
}

.badge.orange {
  background: #fff2da;
  color: #c77a00;
}

.badge.pink {
  background: #ffe7ef;
  color: #d33d68;
}

.badge.match {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(91, 95, 169, 0.28);
}

.filter-card {
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 2vw, 24px);
  margin-bottom: clamp(16px, 2vh, 22px);
}

.filter-row {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.field label {
  color: #4d5364;
  font-weight: 800;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  border: 1px solid #d7dbe6;
  border-radius: 6px;
  background: #fff;
  padding: 9px 12px;
  color: #303342;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

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

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.list-card {
  overflow: auto;
}

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

.candidate-actions .btn {
  min-height: 35px;
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
}

.list-card .person-cell strong,
.list-card td:nth-child(2),
.list-card td:nth-child(7) {
  white-space: nowrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  color: #4e5465;
}

.page-number {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-left: 8px;
  background: #fff;
}

.page-number.active {
  background: var(--brand);
  color: #fff;
}

.login-page,
.candidate-page {
  height: 100vh;
  background: #f5f5f5;
  display: grid;
}

.login-page {
  place-items: center;
}

.login-card {
  width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 42px;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.login-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.login-brand h1 {
  margin: 0;
  color: #1f2430;
  font-size: 31px;
}

.login-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.login-links a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.candidate-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.candidate-header img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.candidate-header strong {
  font-size: 23px;
}

.candidate-main {
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  place-items: start center;
}

.start-card {
  width: min(920px, 100%);
  padding: 34px;
}

.device-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.camera-preview,
.video-player {
  background: linear-gradient(135deg, #f1f3f9, #dfe3ef);
  border: 1px solid #ccd2df;
  border-radius: 10px;
  min-height: clamp(180px, 28vh, 245px);
  display: grid;
  place-items: center;
  color: #596073;
  font-weight: 800;
}

.interview-room {
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
}

.question-card {
  min-height: clamp(420px, 66vh, 535px);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wave {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wave span {
  width: 9px;
  border-radius: 6px;
  background: var(--brand);
}

.tnx-candidate .wave span {
  background: linear-gradient(180deg, var(--candidate-theme-base), var(--candidate-theme-answer));
  box-shadow: 0 0 18px color-mix(in srgb, var(--candidate-theme-base) 38%, transparent);
}

.wave span:nth-child(1) { height: 60px; opacity: .55; }
.wave span:nth-child(2) { height: 110px; opacity: .7; }
.wave span:nth-child(3) { height: 150px; }
.wave span:nth-child(4) { height: 92px; opacity: .75; }
.wave span:nth-child(5) { height: 128px; opacity: .9; }
.wave span:nth-child(6) { height: 68px; opacity: .65; }

.control-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.completion-card {
  width: min(760px, 100%);
  padding: 42px;
  text-align: center;
}

.checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e5f6eb;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  margin: 0 auto 20px;
}

.detail-header {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.large-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dce1f7, #f7f8ff);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: 18px;
}

.score-card {
  padding: clamp(14px, 1.5vw, 18px);
  min-height: clamp(88px, 11vh, 108px);
}

.score-card strong {
  display: block;
  font-size: clamp(24px, 2.6vw, 30px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.eval-block {
  background: #fafbfe;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
}

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 12px;
}

.tab {
  padding: 0 0 10px;
  color: #4d5364;
  font-weight: 800;
}

.tab.active {
  color: var(--brand);
  border-bottom: 3px solid var(--brand);
}

.transcript {
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  background: #fff;
}

.radar {
  width: 180px;
  height: 150px;
  margin: 0 auto;
  clip-path: polygon(50% 4%, 96% 38%, 78% 94%, 22% 94%, 4% 38%);
  background: rgba(91, 95, 169, 0.18);
  border: 2px solid var(--brand);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compare-card {
  padding: 20px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f5;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.settings-tabs .tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
}

.settings-tabs .tab-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.drawer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
}

.progress-steps {
  display: grid;
  gap: 10px;
}

.step {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.step.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.muted {
  color: var(--muted);
}

.mt {
  margin-top: 18px;
}

.text-right {
  text-align: right;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 42, 0.36);
  pointer-events: auto;
}

.side-panel,
.modal-panel {
  position: absolute;
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(23, 28, 48, 0.22);
}

.side-panel {
  top: 0;
  right: 0;
  width: min(520px, calc(100vw - var(--sidebar-width) - 28px));
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-panel {
  top: 50%;
  left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
  width: min(720px, calc(100vw - var(--sidebar-width) - 52px));
  max-height: min(86vh, 760px);
  transform: translate(-50%, -50%);
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.candidate-page .modal-panel {
  left: 50%;
  width: min(720px, calc(100vw - 40px));
}

.candidate-page .url-issue-modal,
.url-issue-modal {
  left: 50%;
  width: min(1360px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  grid-template-rows: auto minmax(0, 1fr);
}

.url-issue-modal .panel-head {
  padding: 18px 24px;
}

.url-issue-modal .panel-body {
  padding: 24px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel-head,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-body {
  padding: 20px;
  overflow: auto;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.upload-box {
  min-height: 150px;
  border: 2px dashed #b9bfd1;
  border-radius: 10px;
  background: #fafbfe;
  display: grid;
  place-items: center;
  color: #4e5465;
  font-weight: 900;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #333847;
  font-weight: 700;
}

.copy-card {
  display: grid;
  gap: 10px;
}

.copy-card label {
  font-weight: 900;
  color: #4d5364;
}

.copy-card code {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
  word-break: break-all;
}

.activity-list,
.role-list,
.notice-list,
.qa-list {
  display: grid;
  gap: 10px;
}

.activity-list div,
.role-list div,
.notice-list div,
.qa-list div {
  border: 1px solid #eef0f5;
  background: #fafbfe;
  border-radius: 8px;
  padding: 12px;
}

.activity-list span,
.role-list span,
.notice-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.qa-list {
  margin-top: 14px;
}

.qa-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.progress-mini {
  height: 8px;
  background: #edf0f6;
  border-radius: 999px;
  overflow: hidden;
}

.progress-mini span {
  display: block;
  height: 100%;
  background: var(--brand);
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 86px;
  }

  .app-shell {
    display: block;
  }

  .brand-name,
  .nav-label,
  .upgrade-card,
  .sidebar-rule {
    display: none;
  }

  .sidebar {
    padding: 18px 12px;
  }

  .nav-button {
    justify-content: center;
    padding: 0;
  }

  .topbar {
    gap: 6px;
    padding: 0 12px;
  }

  .topbar select {
    min-width: 190px;
  }

  .user-email {
    display: none;
  }

  .kpi-grid,
  .score-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .quick-grid,
  .dashboard-grid,
  .wide-stats,
  .detail-layout,
  .split,
  .two-col,
  .drawer-layout,
  .compare-grid,
  .interview-room {
    grid-template-columns: 1fr;
  }

  .side-panel {
    width: calc(100vw - var(--sidebar-width));
  }

  .modal-panel {
    left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
    width: calc(100vw - var(--sidebar-width) - 24px);
  }

  .url-issue-modal {
    left: 50%;
    width: calc(100vw - 24px);
  }
}

@media (max-height: 820px) and (min-width: 1101px) {
  .sidebar {
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 7px;
  }

  .brand-row {
    padding-bottom: 2px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav {
    gap: 4px;
  }

  .nav-button {
    height: 33px;
    font-size: 13px;
    border-radius: 7px;
  }

  .nav-icon {
    font-size: 16px;
  }

  .sidebar-rule {
    margin: 6px 0 2px;
  }

  .upgrade-card {
    border-radius: 12px;
    padding: 7px 10px;
  }

  .upgrade-card .mini-logo {
    display: none;
  }

  .upgrade-title {
    font-size: 13px;
    margin-top: 0;
  }

  .upgrade-copy {
    font-size: 11px;
    line-height: 1.25;
  }

  .upgrade-card .btn {
    min-height: 28px;
    padding: 0 12px;
    margin-top: 7px;
    font-size: 12px;
  }
}

@media (max-width: 1350px) and (min-width: 1101px) {
  :root {
    --sidebar-width: 270px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-button {
    font-size: 14px;
    gap: 12px;
  }

  .topbar select {
    min-width: 230px;
  }

  .user-email {
    font-size: 14px;
  }

  .kpi-grid {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(280px, 1.1fr) minmax(230px, 0.8fr) minmax(260px, 1fr);
  }

  .list-card .table {
    min-width: 940px;
  }

  .route-candidates .list-card .table {
    min-width: 0;
    table-layout: fixed;
  }

  .route-candidates .list-card th:nth-child(1),
  .route-candidates .list-card td:nth-child(1) {
    width: 11%;
  }

  .route-candidates .list-card th:nth-child(2),
  .route-candidates .list-card td:nth-child(2) {
    width: 13%;
  }

  .route-candidates .list-card th:nth-child(3),
  .route-candidates .list-card td:nth-child(3) {
    width: 12%;
  }

  .route-candidates .list-card th:nth-child(4),
  .route-candidates .list-card td:nth-child(4),
  .route-candidates .list-card th:nth-child(5),
  .route-candidates .list-card td:nth-child(5),
  .route-candidates .list-card th:nth-child(6),
  .route-candidates .list-card td:nth-child(6),
  .route-candidates .list-card th:nth-child(7),
  .route-candidates .list-card td:nth-child(7) {
    width: 7%;
  }

  .route-candidates .list-card th:nth-child(8),
  .route-candidates .list-card td:nth-child(8) {
    width: 5%;
  }

  .route-candidates .list-card th:nth-child(9),
  .route-candidates .list-card td:nth-child(9) {
    width: 10%;
  }

  .route-candidates .list-card th:nth-child(10),
  .route-candidates .list-card td:nth-child(10) {
    width: 21%;
  }

  .route-candidates .list-card .person-cell {
    gap: 5px;
  }

  .route-candidates .list-card .avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .route-candidates .list-card th,
  .route-candidates .list-card td {
    padding: 9px 7px;
  }

  .route-candidates .list-card td,
  .route-candidates .list-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .candidate-actions {
    gap: 4px;
  }

  .candidate-actions .btn {
    min-height: 30px;
    padding: 0 4px;
    font-size: 10px;
  }
}

.ui-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* タイトル列は可縮にし（長い説明文は折り返す）、アクションボタン群へ横幅を譲る。
   これによりヘッダー右上のボタンが中途半端に1つだけ折り返す崩れを防ぐ。 */
.ui-head > div:first-child {
  min-width: 0;
}

.ui-actions {
  flex-shrink: 0;
}

.ui-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: #0c1b34;
}

.ui-head p {
  margin: 8px 0 0;
  color: #546074;
  font-weight: 600;
}

.ui-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ui-card {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(16, 24, 40, 0.06);
}

.ui-pad {
  padding: 18px;
}

.ui-pad h2,
.ui-pad h3 {
  margin: 0 0 14px;
  color: #0d1d36;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 104px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-card span {
  display: block;
  color: #1a2941;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.1;
  color: #071a35;
  word-break: keep-all;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: #536176;
  font-weight: 700;
}

.metric-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
}

.metric-icon.blue { background: #dfeeff; color: #1468c8; }
.metric-icon.amber { background: #fff0cf; color: #d58a00; }
.metric-icon.green { background: #dcf4e4; color: #22995c; }
.metric-icon.violet { background: #eadcff; color: #7d44dd; }
.metric-icon.cyan { background: #dcf8fb; color: #078ca2; }
.metric-icon.gray { background: #eceff4; color: #566174; }

.chart-grid,
.url-layout,
.report-grid,
.settings-layout,
.position-layout,
.result-detail-layout,
.user-layout {
  display: grid;
  gap: 18px;
}

.chart-grid {
  grid-template-columns: 0.95fr 1fr;
  margin-bottom: 18px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #526076;
  font-weight: 800;
  margin-top: -8px;
}

.area-chart {
  height: 225px;
  border-left: 1px solid #e1e6ef;
  border-bottom: 1px solid #d7dde8;
  background:
    linear-gradient(180deg, rgba(2, 143, 160, 0.2), rgba(2, 143, 160, 0.02)),
    repeating-linear-gradient(to top, transparent 0 40px, #eef2f7 41px),
    linear-gradient(120deg, transparent 0 7%, #078da0 7% 8%, transparent 8% 16%, #078da0 16% 17%, transparent 17% 27%, #078da0 27% 28%, transparent 28% 40%, #078da0 40% 41%, transparent 41% 52%, #078da0 52% 53%, transparent 53% 65%, #078da0 65% 66%, transparent 66% 78%, #078da0 78% 79%, transparent 79% 100%);
  border-radius: 2px;
}

.score-trend {
  width: 100%;
  height: 225px;
  display: block;
}

.score-trend .gridline {
  stroke: #eef2f7;
  stroke-width: 1;
}

.score-trend .axis {
  fill: #536176;
  font-size: 13px;
  font-weight: 700;
}

.chart-box {
  position: relative;
  width: 100%;
}

.chart-box canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-main {
  height: 240px;
}

.radar-large {
  height: 245px;
  max-width: 430px;
  margin: 6px auto 0;
}

.radar-mini {
  width: min(185px, 46%);
  height: 150px;
  margin: 0;
  flex: 0 0 min(185px, 46%);
}

.report-chart {
  height: 210px;
}

.chart-note {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 8px;
  color: #34445d;
  font-weight: 800;
}

.chart-note span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 999px;
}

.chart-note .teal-line::before {
  background: #099a9f;
}

.chart-note .gray-line::before {
  background: repeating-linear-gradient(90deg, #8b99ad 0 6px, transparent 6px 10px);
}

.center-link,
.link-btn {
  color: #075fbd;
  font-weight: 900;
}

.link-btn {
  border: 0;
  background: transparent;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
}

.ui-table th,
.ui-table td {
  border: 1px solid #dfe4ec;
  padding: 12px 14px;
  font-size: 14px;
  color: #15243a;
  vertical-align: middle;
  word-break: keep-all;
}

.ui-table th {
  background: #f7f8fb;
  font-weight: 900;
  color: #374154;
}

.ui-table.tight th,
.ui-table.tight td {
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
}

.table-card .ui-table {
  min-width: 980px;
}

.table-card {
  overflow: auto;
}

.search-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.search-grid {
  display: grid;
  gap: 18px 28px;
  align-items: end;
}

.search-grid.five {
  grid-template-columns: 1.25fr repeat(4, 1fr);
}

.search-grid.six {
  grid-template-columns: 1.3fr repeat(5, 1fr);
}

.ui-field {
  display: grid;
  gap: 8px;
  color: #12243c;
  font-weight: 900;
}

.ui-field input,
.ui-field select,
.ui-field textarea,
.list-tools input,
.horizontal-filter input,
.horizontal-filter select,
.compare-controls select,
.full-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd6e2;
  border-radius: 5px;
  background: #fff;
  padding: 10px 14px;
  color: #1c2c43;
}

.ui-field textarea {
  min-height: 104px;
  line-height: 1.7;
}

.ui-field em {
  color: #758197;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.locked-field input:disabled {
  border-color: #d8dee8;
  background: #f2f4f7;
  color: #344054;
  opacity: 1;
  cursor: not-allowed;
  font-weight: 900;
}

.locked-field em {
  color: #667085;
  text-align: left;
}

.date-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}

.date-pair span {
  grid-column: 1 / -1;
  font-weight: 900;
  color: #12243c;
}

.date-pair input {
  min-height: 42px;
  border: 1px solid #cfd6e2;
  border-radius: 5px;
  padding: 10px 14px;
}

.search-btn {
  min-width: 140px;
}

.ui-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.ui-pager > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ui-pager select {
  min-height: 40px;
  border: 1px solid #cfd6e2;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 12px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ui-chip.ok { color: #0b9868; background: #e8f8ef; }
.ui-chip.blue { color: #0b6fd7; background: #e9f3ff; }
.ui-chip.gray { color: #4f5d6f; background: #edf0f4; }
.ui-chip.warn { color: #e58600; background: #fff3dc; }
.ui-chip.bad { color: #e33453; background: #ffe9ee; }

.score-pill {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 28px;
  color: #fff;
  border-radius: 5px;
  font-weight: 900;
}

.score-pill.good { background: linear-gradient(90deg, #25b860, #168f39); }
.score-pill.mid { background: linear-gradient(90deg, #7bcf34, #f8bd1c); }
.score-pill.low { background: linear-gradient(90deg, #ffbc1b, #ff7a18); }
.score-pill.bad { background: linear-gradient(90deg, #ff6a72, #e93049); }

.icon-only {
  border: 0;
  background: transparent;
  color: #074f9d;
  font-size: 20px;
}

.mini-result-btn {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
  color: #074f9d;
  border-color: #87acd8;
  box-shadow: none;
}

.mini-result-btn.primary-lite {
  border-color: #5b5fa9;
  background: #eeecff;
  color: #453eb0;
}

.mini-result-btn.document-lite {
  border-color: #0b8794;
  background: #edfafa;
  color: #08727d;
}

.candidate-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  justify-content: center;
  gap: 6px 7px;
  min-width: 0;
}

.candidate-row-actions .mini-result-btn {
  min-height: 30px;
  width: 100%;
  min-width: 0;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1.1;
}

.candidate-row-actions .mini-result-btn:nth-child(5) {
  grid-column: 1 / -1;
}

.position-layout {
  grid-template-columns: minmax(380px, 0.72fr) minmax(520px, 1.08fr);
}

.hiring-position-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hiring-position-detail-stack {
  display: grid;
  gap: 16px;
}

.hiring-position-selector-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(420px, 0.66fr);
  gap: 18px;
  align-items: start;
}

.hiring-position-selector-card .ui-field {
  margin: 0;
}

.position-select-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.position-order-buttons {
  display: flex;
  gap: 6px;
}

.position-order-buttons .btn.icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}

.position-order-panel {
  display: grid;
  gap: 10px;
}

.position-order-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.position-order-panel-head span {
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}

.position-order-panel-head small {
  color: #64748b;
  font-size: 11px;
}

.position-order-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.position-order-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.position-order-item.active {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.position-order-item.draft {
  border-style: dashed;
  border-color: #0f766e;
  background: #f0fdfa;
}

.position-order-rank {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

.position-order-item.draft .position-order-rank {
  background: #ccfbf1;
  color: #115e59;
}

.position-order-main {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.position-order-main strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-order-main span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-order-actions {
  display: flex;
  gap: 6px;
}

.position-order-actions .btn.icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

.hiring-position-selector-card [hidden] {
  display: none !important;
}

.hiring-position-list .ui-table td:nth-child(3),
.hiring-position-list .ui-table th:nth-child(3) {
  text-align: center;
}

.document-criteria-settings {
  display: grid;
  gap: 0;
}

.document-criteria-case-style {
  background: #fff;
}

.document-criteria-case-style .case-card-title {
  margin-bottom: 12px;
}

.document-criteria-case-style .case-card-title h2 {
  margin-bottom: 0;
}

.document-criteria-case-style .case-card-title span {
  white-space: nowrap;
}

.document-criteria-case-style .case-criteria-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shared-evaluation-targets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shared-evaluation-targets span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cdd6f6;
  border-radius: 999px;
  background: #f1f3ff;
  color: #3545b6;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  letter-spacing: 0;
}

.shared-axis-policy-note,
.shared-axis-sync-note {
  border: 1px solid #d8e1f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #344054;
  padding: 12px 14px;
}

.shared-axis-policy-note {
  margin: 12px 0;
}

.shared-axis-policy-note strong,
.shared-axis-sync-note {
  font-size: 13px;
  font-weight: 900;
}

.shared-axis-policy-note p,
.shared-axis-sync-note {
  line-height: 1.55;
}

.shared-axis-policy-note p {
  margin: 4px 0 0;
  font-size: 12px;
}

.template-evaluation-panel .case-criteria-actions,
.template-evaluation-panel .add-criteria,
.template-evaluation-panel .case-row-remove,
.template-evaluation-panel .tag-head .link-btn {
  display: none;
}

.template-evaluation-panel select,
.template-evaluation-panel input {
  pointer-events: none;
  color: #344054;
  background: #f7f8fb;
}

.template-evaluation-panel input[type="range"] {
  opacity: .55;
}

.document-analysis-switch {
  min-width: 180px;
  margin: 0;
}

.document-criteria-case-style .criteria-table th:nth-child(1) { width: 25%; }
.document-criteria-case-style .criteria-table th:nth-child(2) { width: 10%; }
.document-criteria-case-style .criteria-table th:nth-child(3) { width: 24%; }
.document-criteria-case-style .criteria-table th:nth-child(4) { width: 13%; }
.document-criteria-case-style .criteria-table th:nth-child(5) { width: 32%; }

.document-criteria-case-style .case-row-remove:disabled,
.document-criteria-case-style .link-btn:disabled {
  color: #98a2b3;
  cursor: default;
}

.document-criteria-case-style .case-text-input:disabled,
.document-criteria-case-style .score-input:disabled {
  background: #f9fafb;
  color: #344054;
  opacity: 1;
}

.document-rubric-readonly p {
  margin: 0;
}

.document-rubric-readonly dl {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #eaecf0;
}

.document-rubric-readonly dt {
  margin-bottom: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.document-rubric-readonly dd {
  margin: 0;
  line-height: 1.45;
  font-size: 12px;
}

.document-question-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.document-question-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #4c4f97;
}

.document-criteria-preview-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.document-criteria-preview-head div {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.document-criteria-preview-head span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.document-criteria-preview-head b {
  display: block;
  margin-top: 4px;
  color: #172238;
  font-size: 16px;
}

.list-tools {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #dfe4ec;
}

.ui-table tr.selected td {
  background: #e9f9fb;
  border-left-color: #10a8bd;
}

.workspace-search {
  padding: 0;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.workspace-search:has(details[open]) {
  z-index: 60;
}

.workspace-search-summary {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(300px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
}

.workspace-search-summary::-webkit-details-marker {
  display: none;
}

.workspace-search-summary::after {
  content: "⌄";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7dde8;
  border-radius: 50%;
  color: #445168;
  font-weight: 900;
}

.workspace-search[open] .workspace-search-summary {
  border-bottom: 1px solid #dfe4ec;
}

.workspace-search[open] .workspace-search-summary::after {
  transform: rotate(180deg);
}

.workspace-search-summary strong,
.workspace-search-summary span {
  display: block;
}

.workspace-search-summary strong {
  color: #12243c;
  font-size: 16px;
  font-weight: 900;
}

.workspace-search-summary span {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.workspace-search-summary > b {
  color: #075fbd;
  font-size: 13px;
  white-space: nowrap;
}

.workspace-search-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.workspace-search-chips span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #f7f8fb;
  color: #536176;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.workspace-search:not([open]) .workspace-search-body {
  display: none;
}

.workspace-search-body {
  padding: 18px 20px 12px;
}

.workspace-filters {
  grid-template-columns: minmax(210px, 1.45fr) repeat(5, minmax(120px, 1fr));
  gap: 14px 20px;
}

.workspace-filters .date-pair {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.workspace-filter-toggle {
  margin-top: 12px;
}

.workspace-search-static {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.workspace-search-static .workspace-search-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0;
  cursor: default;
}

.workspace-search-static .workspace-search-summary::after {
  content: none;
}

.workspace-primary-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}

.workspace-detail-search {
  border-top: 1px solid #e4e8f0;
  padding-top: 12px;
}

.workspace-detail-search summary {
  color: #075fbd;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.workspace-detail-search summary::-webkit-details-marker {
  display: none;
}

.workspace-detail-search summary::after {
  content: "⌄";
  margin-left: 8px;
}

.workspace-detail-search[open] summary::after {
  content: "⌃";
}

.workspace-detail-search .workspace-filters {
  margin-top: 14px;
}

.workspace-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}

.workspace-stat {
  min-height: 78px;
  padding: 14px 12px;
  border-right: 1px solid #dfe4ec;
  border-bottom: 1px solid #dfe4ec;
}

.workspace-stat:last-child {
  border-right: 0;
}

.workspace-stat span {
  display: block;
  color: #374154;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.workspace-stat strong {
  margin: 6px 4px 0 0;
  display: inline-block;
  color: #092043;
  font-size: 28px;
  line-height: 1;
}

.workspace-stat small {
  color: #24354d;
  font-size: 12px;
  font-weight: 900;
}

.workspace-stat.ok strong {
  color: #06989a;
}

.workspace-stat.warn strong {
  color: #ff7a00;
}

.workspace-stat.gap strong {
  color: #4f55c5;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.workspace-table .ui-table {
  min-width: 100%;
  width: 100%;
  table-layout: fixed;
}

.workspace-table tbody tr {
  cursor: pointer;
}

.workspace-table tbody tr:hover td {
  background: #f4fbfd;
}

.workspace-table tbody tr.selected td,
.workspace-table tbody tr.selected:hover td {
  background: #e8f5ff;
}

.workspace-table tbody tr.selected td:first-child {
  box-shadow: inset 4px 0 0 #4b52b8;
}

.workspace-table .ui-table th,
.workspace-table .ui-table td {
  overflow: hidden;
  padding: 10px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.workspace-table .ui-table td.has-tooltip {
  position: relative;
}

.workspace-table .ui-table td.has-tooltip:hover {
  overflow: visible;
  z-index: 8;
}

.workspace-table .ui-table td.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 6px;
  top: calc(100% + 6px);
  z-index: 20;
  max-width: min(360px, 42vw);
  width: max-content;
  padding: 8px 10px;
  border: 1px solid #24354d;
  border-radius: 6px;
  background: #12243c;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.08s ease, transform 0.08s ease;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-table .ui-table td.has-tooltip:hover::after {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.workspace-table .ui-table th:nth-child(1),
.workspace-table .ui-table td:nth-child(1) { width: 12%; text-align: left; }
.workspace-table .ui-table th:nth-child(2),
.workspace-table .ui-table td:nth-child(2) { width: 13%; }
.workspace-table .ui-table th:nth-child(3),
.workspace-table .ui-table td:nth-child(3) { width: 12%; }
.workspace-table .ui-table th:nth-child(4),
.workspace-table .ui-table td:nth-child(4) { width: 8%; }
.workspace-table .ui-table th:nth-child(5),
.workspace-table .ui-table td:nth-child(5) { width: 9%; }
.workspace-table .ui-table th:nth-child(6),
.workspace-table .ui-table td:nth-child(6) { width: 8%; }
.workspace-table .ui-table th:nth-child(7),
.workspace-table .ui-table td:nth-child(7) { width: 11%; }
.workspace-table .ui-table th:nth-child(8),
.workspace-table .ui-table td:nth-child(8) { width: 12%; }
.workspace-table .ui-table th:nth-child(9),
.workspace-table .ui-table td:nth-child(9) { width: 15%; }

.workspace-table .ui-chip,
.workspace-table .score-pill {
  max-width: 100%;
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
}

.workspace-plain {
  display: inline-block;
  max-width: 100%;
  color: #586174;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.decision-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  border-radius: 7px;
  padding: 0 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.decision-tag.strong {
  background: #e4f8ed;
  border-color: #9fe2bd;
  color: #0b8f52;
}

.decision-tag.review {
  background: #eef6ff;
  border-color: #aad0ff;
  color: #0b63c7;
}

.decision-tag.hold {
  background: #fff3d9;
  border-color: #f4c76f;
  color: #b06a00;
}

.decision-tag.none {
  background: #fff0f3;
  border-color: #f0a8b8;
  color: #d1365b;
}

.decision-tag.empty {
  background: #f4f6f9;
  border-color: #d9dee8;
  color: #7a8495;
}

.decision-muted {
  color: #8a94a6;
  font-weight: 700;
}

.workspace-table .score-pill {
  width: 100%;
}

.workspace-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0b4fa5;
}

.workspace-pager {
  margin-bottom: 0;
}

.settings-layout-slim {
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
}

.settings-single-layout {
  max-width: 1040px;
  display: grid;
  gap: 20px;
}

.settings-single-card {
  display: grid;
  gap: 16px;
}

.settings-single-card .btn.primary {
  justify-self: start;
}

.settings-email-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notification-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-volume-row input[type="range"] {
  flex: 1;
  min-height: 32px;
  padding: 0;
  accent-color: #8b8fd9;
}

.notification-volume-value {
  min-width: 44px;
  color: #5f63bf;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.settings-email-body {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px;
  border: 1px solid var(--line, #d9dee8);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
}

.candidate-theme-settings-card {
  gap: 18px;
}

.candidate-theme-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.candidate-theme-mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dce3f1;
  border-radius: 8px;
  background: #f8fbff;
  padding: 13px;
  cursor: pointer;
}

.candidate-theme-mode input {
  margin-top: 4px;
  accent-color: #0f766e;
}

.candidate-theme-mode strong,
.candidate-theme-mode small {
  display: block;
}

.candidate-theme-mode strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.candidate-theme-mode small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.candidate-theme-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.candidate-theme-swatch {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.candidate-theme-swatch:hover,
.candidate-theme-swatch.active {
  border-color: var(--swatch-base);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--swatch-base) 22%, transparent);
  transform: translateY(-1px);
}

.candidate-theme-swatch span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch-base), var(--swatch-answer));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.candidate-theme-swatch b {
  font-size: 13px;
}

.candidate-theme-preview {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--candidate-theme-border);
  border-radius: 14px;
  padding: 18px;
  background:
    radial-gradient(ellipse 540px 260px at 75% -15%, color-mix(in srgb, var(--candidate-theme-base) 24%, transparent), transparent 62%),
    radial-gradient(ellipse 420px 240px at 10% 110%, color-mix(in srgb, var(--candidate-theme-answer) 20%, transparent), transparent 62%),
    linear-gradient(180deg, #0e1024 0%, #15173a 60%, #101228 100%);
  color: var(--candidate-theme-text);
}

.candidate-theme-preview.theme-bg-light {
  background:
    radial-gradient(ellipse 540px 260px at 75% -15%, color-mix(in srgb, var(--candidate-theme-base) 16%, transparent), transparent 62%),
    radial-gradient(ellipse 420px 240px at 10% 110%, color-mix(in srgb, var(--candidate-theme-answer) 14%, transparent), transparent 62%),
    linear-gradient(180deg, #fff 0%, #f8fbff 58%, #eef4ff 100%);
}

.candidate-theme-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .78;
  filter: blur(2px);
}

.candidate-theme-preview-top,
.candidate-theme-preview-body,
.candidate-theme-preview-answer {
  position: relative;
  z-index: 1;
}

.candidate-theme-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--candidate-theme-muted);
  font-size: 12px;
  font-weight: 900;
}

.candidate-theme-preview-top b {
  color: var(--candidate-theme-answer);
}

.candidate-theme-preview-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 44px;
}

.candidate-theme-preview-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--candidate-theme-base), var(--candidate-theme-answer), color-mix(in srgb, var(--candidate-theme-base) 70%, #fff), var(--candidate-theme-base));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 28px color-mix(in srgb, var(--candidate-theme-base) 44%, transparent);
}

.candidate-theme-preview-body strong {
  display: block;
  color: var(--candidate-theme-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.candidate-theme-preview-body p {
  margin: 9px 0 0;
  max-width: 660px;
  color: var(--candidate-theme-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.candidate-theme-preview-answer {
  margin-top: 28px;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--candidate-theme-answer) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--candidate-theme-answer) 16%, transparent);
  color: var(--candidate-theme-answer);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
}

.settings-single-card small code {
  background: #eef1f7;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  margin-right: 2px;
}

.route-integrations .content {
  background: #f7f8fb;
}

.ats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ats-summary-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.ats-summary-card span,
.ats-summary-card small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.ats-summary-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.ats-summary-card strong.is-date {
  font-size: 18px;
}

.ats-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ats-provider-rail {
  padding: 12px;
  border-radius: 8px;
  position: sticky;
  top: 14px;
}

.ats-panel-head {
  padding: 8px 8px 12px;
}

.ats-panel-head span,
.eyebrow {
  color: #6366f1;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
}

.ats-panel-head strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
}

.ats-provider-card {
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ats-provider-card:hover,
.ats-provider-card.active {
  border-color: #6366f1;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.ats-provider-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ats-provider-card strong,
.ats-provider-card small,
.ats-provider-card em {
  display: block;
}

.ats-provider-card strong {
  font-size: 13px;
}

.ats-provider-card small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}

.ats-provider-card em {
  grid-column: 2;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ats-provider-card em.on {
  background: #dcfce7;
  color: #166534;
}

.ats-main {
  display: grid;
  gap: 16px;
}

.ats-detail-card {
  border-radius: 8px;
}

.ats-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ats-detail-head h2 {
  margin: 4px 0 6px;
  color: #111827;
  font-size: 24px;
}

.ats-detail-head p {
  margin: 0;
  color: #6b7280;
  font-weight: 700;
}

.ats-state-pill {
  min-width: 76px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.ats-state-pill.active {
  background: #dcfce7;
  color: #166534;
}

.ats-provider-guide {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) auto;
  gap: 12px;
  align-items: center;
}

.ats-provider-guide div {
  display: grid;
  gap: 5px;
}

.ats-provider-guide strong {
  color: #1e3a8a;
  font-size: 13px;
}

.ats-provider-guide span,
.ats-provider-guide p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.ats-provider-guide code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
}

.ats-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ats-switch-row {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfcff;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ats-switch-row input {
  margin-top: 4px;
  accent-color: #4f46e5;
}

.ats-switch-row strong,
.ats-switch-row small {
  display: block;
}

.ats-switch-row strong {
  color: #111827;
  font-size: 13px;
}

.ats-switch-row small {
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.45;
  font-weight: 700;
}

.ats-form-grid,
.ats-mapping-grid,
.ats-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ats-field-mapping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ats-credential-row {
  align-self: stretch;
}

.ats-body-template-field {
  grid-column: span 2;
}

.ats-body-template-field textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ats-credential-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ats-credential-grid {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(240px, 1fr) minmax(180px, .8fr) auto;
  gap: 12px;
  align-items: start;
}

.ats-credential-action {
  align-self: end;
  min-height: 62px;
  display: flex;
  align-items: center;
}

.ats-section-title {
  margin: 18px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.ats-section-title strong {
  color: #111827;
  font-size: 15px;
}

.ats-section-title span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.ats-advanced {
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.ats-advanced summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
  list-style-position: inside;
}

.ats-advanced[open] summary {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.ats-advanced .ats-form-grid,
.ats-advanced .ats-field-mapping-grid,
.ats-advanced > .ui-field {
  padding: 12px;
}

.ats-advanced .ats-section-title {
  padding: 0 12px;
}

.ats-map-field input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.ats-preview-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ats-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ats-preview-head strong,
.ats-preview-head span {
  display: block;
}

.ats-preview-head strong {
  color: #111827;
  font-size: 14px;
}

.ats-preview-head span {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.ats-preview-table-wrap {
  overflow-x: auto;
}

.ats-preview-table {
  min-width: 840px;
}

.ats-preview-table td {
  vertical-align: top;
}

.ats-preview-table td strong,
.ats-preview-table td small {
  display: block;
}

.ats-preview-table td small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ats-preview-table code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
}

.ats-preview-state {
  display: inline-flex;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.ats-preview-state.ok {
  background: #dcfce7;
  color: #166534;
}

.ats-preview-state.skip {
  background: #fef3c7;
  color: #92400e;
}

.ats-test-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  display: grid;
  gap: 4px;
}

.ats-test-result strong {
  font-size: 13px;
}

.ats-test-result span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.ats-test-result.success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.ats-test-result.success strong {
  color: #166534;
}

.ats-test-result.failed {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.ats-test-result.failed strong {
  color: #9f1239;
}

.ats-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-field-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
}

.ats-sync-list {
  display: grid;
  gap: 10px;
}

.ats-sync-list div {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ats-sync-list span {
  color: #6b7280;
  font-weight: 800;
}

.ats-sync-list strong {
  color: #111827;
}

.ats-history-card {
  border-radius: 8px;
}

.ats-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ats-history-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 18px;
}

.ats-history-table-wrap {
  overflow-x: auto;
}

.ats-history-table {
  min-width: 760px;
}

.ats-run-status {
  display: inline-flex;
  min-width: 64px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.ats-run-status.success {
  background: #dcfce7;
  color: #166534;
}

.ats-run-status.partial,
.ats-run-status.running {
  background: #fef3c7;
  color: #92400e;
}

.ats-run-status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.ats-empty-cell {
  color: #6b7280;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .ats-summary-grid,
  .ats-toggle-grid,
  .ats-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ats-layout {
    grid-template-columns: 1fr;
  }

  .ats-provider-rail {
    position: static;
  }

  .ats-provider-guide {
    grid-template-columns: 1fr;
  }

  .ats-credential-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ats-summary-grid,
  .ats-form-grid,
  .ats-mapping-grid,
  .ats-field-mapping-grid,
  .ats-toggle-grid,
  .ats-info-grid {
    grid-template-columns: 1fr;
  }

  .ats-body-template-field {
    grid-column: auto;
  }
}

/* C-15: URL一括発行モーダル */
.bulk-issue-modal {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
}

.bulk-issue-body {
  display: grid;
  gap: 16px;
}

.bulk-issue-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.bulk-issue-controls .ui-field {
  gap: 6px;
  min-width: 0;
}

.bulk-issue-controls .ui-field small {
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7280;
}

.bulk-issue-controls .ui-field small.bulk-issue-warn {
  color: #b45309;
}

.bulk-issue-controls .bulk-issue-email-toggle {
  grid-column: 1 / -1;
}

/* メール送信トグル: .ui-field input の全幅スタイルを打ち消し、通常サイズのチェックボックスにする */
.bulk-issue-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  min-height: 42px;
}

.bulk-issue-switch input[type="checkbox"] {
  width: 18px;
  min-height: 0;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
  border-radius: 4px;
  accent-color: var(--brand, #6366f1);
}

.bulk-issue-email-toggle .bulk-issue-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}

.bulk-issue-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #9a3412;
}

.bulk-issue-notice p {
  margin: 2px 0;
}

.bulk-issue-table-wrap {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 12px;
}

.bulk-issue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bulk-issue-table thead th {
  position: sticky;
  top: 0;
  background: #f5f7fb;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid var(--line, #e5e9f0);
  z-index: 1;
}

.bulk-issue-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f7;
  vertical-align: middle;
}

.bulk-issue-table tbody tr:last-child td {
  border-bottom: none;
}

.bulk-issue-check {
  width: 44px;
  text-align: center;
}

.bulk-issue-warn {
  color: #b45309;
  font-size: 12px;
}

.bulk-issue-summary {
  display: flex;
  gap: 28px;
}

.bulk-issue-summary div {
  display: grid;
  gap: 2px;
}

.bulk-issue-summary span {
  font-size: 12px;
  color: #6b7280;
}

.bulk-issue-summary strong {
  font-size: 20px;
}

.bulk-issue-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.bulk-issue-pill.ok {
  background: #ecfdf5;
  color: #047857;
}

.bulk-issue-pill.warn {
  background: #fff7ed;
  color: #b45309;
}

.bulk-issue-pill.failed {
  background: #fef2f2;
  color: #b91c1c;
}

.bulk-issue-link {
  color: var(--brand, #6366f1);
  text-decoration: none;
  font-weight: 600;
}

.bulk-issue-note {
  font-size: 12px;
  color: #6b7280;
  max-width: 260px;
}

@media (max-width: 720px) {
  .bulk-issue-controls {
    grid-template-columns: 1fr;
  }
}

.support-modal {
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}

.support-modal .panel-body {
  padding: 20px;
}

.support-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  min-height: 620px;
}

.support-menu {
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.support-menu button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: #f0f0f0;
  color: #333;
  padding: 0 15px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.support-menu button.active {
  background: #5b5fa9;
  color: #fff;
}

.support-content {
  min-height: 0;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 30px;
}

.support-content-section h2 {
  margin: 0 0 20px;
  border-bottom: 2px solid #5b5fa9;
  padding-bottom: 15px;
  color: #333;
  font-size: 24px;
}

.support-content-section h3 {
  margin: 28px 0 16px;
  color: #5b5fa9;
  font-size: 20px;
}

.support-search {
  position: relative;
  margin-bottom: 25px;
}

.support-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px 12px 40px;
  font-size: 15px;
}

.support-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #999;
  transform: translateY(-50%);
}

.support-guide-list,
.support-faq-list,
.support-glossary {
  display: grid;
  gap: 15px;
}

.support-guide-card,
.support-faq,
.support-glossary div,
.support-contact-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.support-guide-card[hidden],
.support-faq[hidden],
.support-glossary div[hidden] {
  display: none !important;
}

.support-guide-card h4,
.support-faq summary {
  margin: 0 0 8px;
  color: #333;
  font-size: 17px;
  font-weight: 900;
}

.support-guide-card p,
.support-faq p,
.support-glossary span {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.support-faq summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.support-faq[open] summary {
  margin-bottom: 12px;
}

.support-glossary div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  box-shadow: none;
}

.support-glossary b {
  color: #5b5fa9;
}

.support-contact-card {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  box-shadow: none;
}

.support-submit {
  justify-self: center;
  min-width: 180px;
}

.activity-page {
  display: grid;
  gap: 20px;
  padding: 20px 0 0;
}

.activity-filter-card,
.activity-list-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}

.activity-filter-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.activity-filter-row label {
  color: #666;
  font-size: 14px;
  font-weight: 800;
}

.activity-filter-row select {
  min-height: 38px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.activity-filter-row select.scope {
  background: #f0f4ff;
}

.activity-company-scope {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #d8e0f0;
  border-radius: 999px;
  background: #f5f7ff;
  color: #3443a1;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.activity-filter-row .btn {
  margin-left: auto;
  min-height: 38px;
  border-radius: 5px;
  padding: 8px 20px;
}

.activity_item {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color .15s ease;
}

.activity_item:hover {
  background-color: #f9f9f9;
}

.activity_item:last-child {
  border-bottom: 0;
}

.activity_time {
  margin-bottom: 5px;
  color: #999;
  font-size: 14px;
}

.activity_title {
  margin-bottom: 5px;
  color: #333;
  font-size: 16px;
  font-weight: 900;
}

.activity_detail {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.activity_candidate_link {
  color: #2563eb;
  font: inherit;
  font-weight: 800;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.activity_candidate_link:hover {
  text-decoration: underline;
}

.activity_candidate_context {
  display: inline-block;
  margin-right: 8px;
  color: #333;
  font-weight: 700;
}

.activity_status_badge {
  display: inline-block;
  margin-left: 10px;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status_complete {
  background-color: #e8f5e9;
  color: #388e3c;
}

.status_add {
  background-color: #fff3e0;
  color: #f57c00;
}

.status_issue {
  background-color: #e3f2fd;
  color: #1e40af;
}

.status_generate {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.status_advance {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.activity_position_badge {
  display: inline-block;
  margin-left: 6px;
  border-radius: 4px;
  background: #e8eaf6;
  color: #3949ab;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.activity_user {
  color: #5b5fa9;
  font-weight: 700;
}

.workspace-detail {
  padding: 0;
  overflow: hidden;
}

.workspace-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
}

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

.workspace-summary::after {
  content: "⌄";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7dde8;
  border-radius: 50%;
  color: #445168;
  font-weight: 900;
}

.workspace-detail[open] .workspace-summary {
  border-bottom: 1px solid #dfe4ec;
}

.workspace-detail[open] .workspace-summary::after {
  transform: rotate(180deg);
}

.workspace-detail:not([open]) .workspace-detail-body {
  display: none;
}

.workspace-detail-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(330px, 1fr) minmax(300px, 0.82fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.workspace-detail-body .workspace-ai {
  grid-row: span 2;
}

.workspace-detail-body .workspace-tabs,
.workspace-detail-body .ui-field,
.workspace-detail-body .workspace-detail-actions {
  min-width: 0;
}

.workspace-profile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.workspace-profile h2 {
  margin: 0 0 3px;
  font-size: 22px;
}

.workspace-profile p {
  margin: 0;
  color: #445168;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.large-avatar.small {
  width: 54px;
  height: 54px;
  font-size: 24px;
  background: #347ccf;
}

.workspace-score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  overflow: hidden;
}

.workspace-summary-scores {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.workspace-summary-scores span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #f7f8fb;
  color: #536176;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.workspace-summary-scores b {
  color: #06989a;
  font-size: 15px;
}

.workspace-expand-label {
  color: #075fbd;
  font-weight: 900;
  white-space: nowrap;
}

.workspace-detail[open] .workspace-expand-label {
  color: #536176;
}

.workspace-score-row div {
  min-height: 70px;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid #dfe4ec;
}

.workspace-score-row div:last-child {
  border-right: 0;
}

.workspace-score-row span,
.workspace-score-row small {
  display: block;
  color: #536176;
  font-size: 12px;
  font-weight: 900;
}

.workspace-score-row strong {
  display: block;
  color: #06989a;
  font-size: 24px;
  line-height: 1.1;
}

.workspace-ai {
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  padding: 12px;
}

.workspace-ai h3 {
  margin: 0 0 8px;
}

.workspace-ai p {
  margin: 0 0 10px;
  color: #34445d;
  font-size: 13px;
  line-height: 1.65;
}

.workspace-ai a {
  display: block;
  color: #075fbd;
  font-weight: 900;
  text-align: right;
}

.workspace-radar {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.workspace-radar .radar-large {
  width: 138px;
  height: 120px;
  margin: 0;
}

.workspace-radar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.workspace-radar li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 4px;
}

.workspace-tabs {
  margin: 0;
}

.workspace-tabs .tab {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.workspace-tab-content {
  min-width: 0;
}

.workspace-tab-card {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.workspace-tab-card h3 {
  margin: 0;
  font-size: 16px;
}

.workspace-tab-card p {
  margin: 0;
  color: #445168;
  line-height: 1.65;
}

.drawer-facts.compact div {
  min-height: 54px;
}

.workspace-transcript {
  display: grid;
  gap: 10px;
  max-height: 210px;
  overflow: auto;
}

.workspace-video-preview {
  min-height: 180px;
  border-radius: 8px;
  background: linear-gradient(135deg, #15233a, #3f4b75);
  color: #fff;
  display: grid;
  place-items: center;
  gap: 8px;
  font-weight: 900;
}

.video-play-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  padding-left: 4px;
}

.workspace-video-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
}

.candidate-add-modal {
  display: grid;
  gap: 16px;
}

.candidate-add-large-modal,
.document-analysis-review-modal {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 24px);
}

.document-analysis-review-modal {
  width: min(1040px, calc(100vw - 40px));
}

.candidate-add-modal .required {
  color: #d33d68;
}

.candidate-add-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.candidate-add-tabs button {
  min-height: 42px;
  border: 2px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #536176;
  font-weight: 900;
  cursor: pointer;
}

.candidate-add-tabs button.active {
  border-color: #4a90e2;
  background: #4a90e2;
  color: #fff;
}

.candidate-add-manual,
.candidate-add-parse,
.candidate-add-csv,
.candidate-add-pdf {
  display: grid;
  gap: 14px;
}

.candidate-add-manual[hidden],
.candidate-add-parse[hidden],
.candidate-add-csv[hidden],
.candidate-add-pdf[hidden],
.candidate-add-parse-result[hidden] {
  display: none;
}

.candidate-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.candidate-add-grid.compact {
  gap: 10px;
}

.candidate-dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 142px;
  border: 2px dashed #d5dbe6;
  border-radius: 8px;
  background: #fbfcff;
  color: #536176;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.candidate-dropzone:hover {
  border-color: #4a90e2;
  background: #f3f8ff;
}

.candidate-dropzone.dragover {
  border-color: #4a90e2;
  border-style: solid;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 2px rgba(74, 144, 226, 0.25);
}

.candidate-dropzone.dragover * {
  pointer-events: none;
}

.candidate-dropzone input {
  display: none;
}

.candidate-dropzone strong {
  color: #15243a;
}

.candidate-add-help-card,
.candidate-add-extract-preview {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 14px;
}

.candidate-add-help-card strong,
.candidate-add-extract-preview b {
  color: #172238;
  font-weight: 900;
}

.candidate-add-help-card p,
.candidate-add-extract-preview span {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.pdf-dropzone {
  border-color: #bfc7ee;
  background: #f5f6ff;
}

.candidate-add-file-list {
  color: #4a90e2;
  font-weight: 900;
}

.candidate-add-paste-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.candidate-add-paste-card textarea {
  min-height: 132px;
  resize: vertical;
}

.candidate-add-paste-card em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.parse-btn {
  width: 100%;
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #fff;
}

.candidate-add-parse-result {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: #f0f4ff;
  padding: 14px;
}

.candidate-add-status {
  display: none;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.candidate-add-status.warn,
.candidate-add-status.ok {
  display: block;
}

.candidate-add-status.warn {
  background: #fff3cd;
  color: #856404;
}

.candidate-add-status.ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.candidate-document-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 14px;
  align-items: stretch;
}

.candidate-document-settings-common {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.candidate-document-settings-common h3 {
  margin: 0 0 8px;
}

.candidate-document-settings-common .document-setting-note {
  margin: 0;
}

.document-analysis-main-toggle {
  min-width: 190px;
  margin: 0;
}

.document-analysis-fixed-badge {
  display: grid;
  gap: 6px;
  min-width: 150px;
  border: 1px solid #95d7ba;
  border-radius: 8px;
  background: #effbf5;
  color: #118154;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.document-analysis-fixed-badge b {
  color: #0b6b43;
  font-size: 14px;
}

.candidate-document-criteria-inline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.candidate-document-criteria-inline.empty {
  border-color: #f3c46b;
  background: #fffaf0;
}

.candidate-document-criteria-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.candidate-document-criteria-head strong {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.candidate-document-criteria-empty {
  margin: 0;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.candidate-document-criteria-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-document-criteria-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid #c8cff2;
  border-radius: 999px;
  background: #f5f6ff;
  color: #4c4f97;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.candidate-document-criteria-tags b {
  color: #344054;
  font-weight: 900;
}

.candidate-document-dropzone {
  min-height: 196px;
  border-color: #c3d2ea;
  background: #fff;
}

.candidate-document-dropzone .document-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #75849d;
  border-radius: 8px;
  color: #536176;
  font-size: 26px;
}

.candidate-document-dropzone em {
  color: #44536a;
  font-style: normal;
  font-weight: 900;
}

.document-upload-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.candidate-document-settings,
.selected-document-card,
.document-review-card {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.candidate-document-settings {
  display: grid;
  gap: 10px;
}

.candidate-document-settings h3,
.selected-document-card h3,
.document-review-card h3 {
  margin: 0;
  color: #12203b;
  font-size: 17px;
}

.document-setting-note {
  margin: 0;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #f8faff;
  color: #344158;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.document-setting-note .link-btn {
  margin-left: 4px;
  font-size: 12px;
}

.candidate-document-settings h3 span,
.document-review-card h3 small {
  color: #667085;
  font-size: 13px;
}

.document-setting-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.document-setting-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #3f75d7;
}

.document-setting-row b,
.document-setting-row small {
  display: block;
}

.document-setting-row b {
  color: #1f2a44;
  font-weight: 900;
}

.document-setting-row small {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.selected-document-card {
  display: grid;
  gap: 10px;
}

.candidate-pdf-text textarea {
  min-height: 108px;
}

.candidate-pdf-parsed {
  display: grid;
  gap: 12px;
  border: 1px solid #c8d6e5;
  border-radius: 8px;
  background: #f8faff;
  padding: 14px;
}

.candidate-pdf-parsed[hidden] {
  display: none;
}

.candidate-pdf-parsed h3 {
  margin: 0;
  color: #172238;
  font-size: 15px;
}

/* 複数ファイルの扱い（解析モード選択） */
.candidate-parse-mode {
  display: grid;
  gap: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  padding: 12px 14px;
}

.candidate-parse-mode-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.candidate-parse-mode-opt {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.candidate-parse-mode-opt input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--brand, #6366f1);
}

/* separateモード: 複数候補者の解析結果リスト */
.candidate-parsed-list {
  display: grid;
  gap: 14px;
}

.candidate-parsed-list[hidden] {
  display: none;
}

.candidate-parsed-list h3 {
  margin: 0;
  color: #172238;
  font-size: 15px;
}

.candidate-parsed-note {
  margin: -6px 0 0;
  font-size: 12.5px;
  color: #667085;
}

.candidate-parsed-row {
  display: grid;
  gap: 10px;
  border: 1px solid #c8d6e5;
  border-radius: 8px;
  background: #f8faff;
  padding: 14px;
}

.candidate-parsed-row-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.candidate-parsed-row-head strong {
  color: #172238;
  font-size: 14px;
}

.candidate-parsed-row-head small {
  color: #6b7280;
  font-size: 12px;
}

.document-file-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
}

.document-file-table th,
.document-file-table td {
  border-bottom: 1px solid #e7ebf2;
  padding: 8px 12px;
  color: #26364f;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.document-file-table th {
  background: #fbfcff;
  color: #536176;
  font-size: 12px;
}

.document-file-table tr:last-child td {
  border-bottom: 0;
}

.document-empty-file {
  display: inline-flex;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
}

.document-file-icon {
  margin-right: 8px;
  color: #d94040;
}

.document-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #95d7ba;
  border-radius: 6px;
  background: #effbf5;
  color: #118154;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.icon-btn.small {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.candidate-add-hidden-fields {
  display: none;
}

.document-analysis-review {
  display: grid;
  gap: 16px;
}

.document-analysis-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  padding: 0 42px 6px;
}

.document-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.document-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% - 18px);
  right: -18px;
  top: 20px;
  height: 1px;
  background: #dfe4ec;
}

.document-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #c8d0dc;
  background: #fff;
  color: #44536a;
  font-weight: 900;
}

.document-step.active span {
  border-color: #4c4f97;
  background: #4c4f97;
  color: #fff;
}

.document-step b {
  color: #25314a;
  font-size: 14px;
  font-weight: 900;
}

.document-step small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.document-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 14px;
}

.document-review-card {
  display: grid;
  gap: 10px;
}

.document-extract-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}

.document-extract-field span {
  color: #344158;
  font-size: 13px;
  font-weight: 900;
}

.document-extract-field input {
  height: 34px;
  border: 1px solid #d5dbe6;
  border-radius: 6px;
  padding: 0 12px;
  color: #1f2a44;
  font-weight: 800;
}

.document-extract-field button {
  height: 34px;
  border: 0;
  background: transparent;
  color: #536176;
  font-weight: 900;
}

.document-fit-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.document-fit-scores div {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fbfcff;
}

.document-fit-scores span {
  color: #25314a;
  font-size: 13px;
  font-weight: 900;
}

.document-fit-scores strong {
  color: #4450b5;
  font-size: 28px;
  line-height: 1.1;
}

.document-fit-scores div:nth-child(2) strong,
.document-fit-scores div:nth-child(3) strong {
  color: #078c8f;
}

.document-fit-scores small {
  color: #536176;
  font-size: 14px;
}

.document-review-card h4 {
  margin: 0;
  color: #12203b;
}

.document-review-card p {
  margin: 0;
  color: #344158;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.document-question-card {
  gap: 8px;
}

.document-question-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  padding: 7px 8px;
}

.document-question-row span,
.document-result-question span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.document-question-row span.tech,
.document-result-question span {
  background: #e9f3ff;
  color: #2765b3;
}

.document-question-row span.solve {
  background: #fff1e9;
  color: #d15a1a;
}

.document-question-row span.mind {
  background: #e9f9ee;
  color: #1f8a58;
}

.document-question-row span.risk {
  background: #f2eaff;
  color: #7c4bc2;
}

.document-question-row p {
  color: #26364f;
}

.document-question-row button {
  min-height: 32px;
  border: 1px solid #d9deeb;
  border-radius: 6px;
  background: #fff;
  color: #4c4f97;
  font-size: 12px;
  font-weight: 900;
}

.candidate-import-modal {
  display: grid;
  gap: 16px;
}

.candidate-import-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #f7faff;
  padding: 14px;
}

.candidate-import-template h3,
.candidate-import-mapping h3,
.candidate-import-preview h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.candidate-import-template p {
  margin: 0;
  color: #536176;
  font-size: 13px;
  line-height: 1.5;
}

.candidate-csv-dropzone {
  min-height: 118px;
}

.candidate-import-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.candidate-import-mapping,
.candidate-import-preview {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.candidate-import-mapping .ui-table,
.candidate-csv-table {
  min-width: 0;
  table-layout: fixed;
}

.candidate-import-mapping .ui-table th,
.candidate-import-mapping .ui-table td,
.candidate-csv-table th,
.candidate-csv-table td {
  overflow: hidden;
  padding: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-csv-preview {
  min-height: 82px;
  overflow: auto;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
}

.candidate-csv-empty {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: #69758a;
  font-weight: 800;
}

.candidate-csv-more {
  margin: 8px 10px 10px;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
}

.workspace-detail .ui-field textarea {
  min-height: 86px;
}

.workspace-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.workspace-detail-actions .wide-btn {
  grid-column: 1 / -1;
  min-height: 40px;
}

.workspace-drawer {
  display: grid;
  gap: 14px;
}

.drawer-profile {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 12px;
  background: #f7f8fb;
}

.drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-facts div {
  min-height: 62px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.drawer-facts span,
.drawer-facts b {
  display: block;
}

.drawer-facts span {
  color: #536176;
  font-size: 12px;
  font-weight: 900;
}

.drawer-facts b {
  margin-top: 6px;
  overflow: hidden;
  color: #12243c;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-drawer .workspace-radar {
  grid-template-columns: 150px minmax(0, 1fr);
}

.workspace-drawer .workspace-radar .radar-large {
  width: 150px;
  height: 132px;
}

.workspace-drawer .workspace-detail-actions {
  grid-template-columns: 1fr 1fr;
}

.workspace-result-preview {
  display: grid;
  gap: 12px;
}

.workspace-result-preview .result-hero-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 0;
  padding: 16px;
}

.workspace-result-preview .result-hero-icon {
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.workspace-result-preview .result-hero-card h2 {
  font-size: 18px;
}

.workspace-result-preview .result-hero-card p,
.workspace-result-preview .concern-box p,
.workspace-result-preview .result-score-card p {
  font-size: 12px;
}

.workspace-result-preview .concern-grid,
.workspace-result-preview .result-score-card-grid {
  grid-template-columns: 1fr;
}

.workspace-result-preview .summary-tile-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-minutes-card .minutes-summary,
.workspace-minutes-card .minutes-log {
  margin-top: 12px;
}

.workspace-minutes-card .minutes-row {
  grid-template-columns: 64px 72px minmax(0, 1fr);
}

.workspace-minutes-card .minutes-row.evaluation {
  grid-template-columns: 28px 72px minmax(0, 1fr);
}

.candidate-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.candidate-result-head h1 {
  margin: 12px 0 6px;
  font-size: 30px;
}

.candidate-result-head p {
  margin: 0;
  color: #536176;
  font-weight: 700;
}

.candidate-result-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.candidate-result-profile {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
  position: relative;
}

.candidate-result-profile h2 {
  margin: 0 0 0 48px;
  font-size: 26px;
}

.candidate-result-profile > small {
  margin-left: 48px;
}

.candidate-result-profile p {
  margin: 0;
  color: #26364f;
  line-height: 1.65;
}

.candidate-result-main {
  display: grid;
  gap: 14px;
}

.candidate-result-score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  overflow: hidden;
}

.candidate-result-score-grid div {
  padding: 18px 14px;
  border-right: 1px solid #dfe4ec;
}

.candidate-result-score-grid div:last-child {
  border-right: 0;
}

.candidate-result-score-grid span {
  display: block;
  color: #536176;
  font-weight: 900;
}

.candidate-result-score-grid strong {
  display: block;
  margin-top: 8px;
  color: #06989a;
  font-size: 34px;
  line-height: 1;
}

.candidate-result-summary {
  background: #f4f7fb;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 18px;
}

.candidate-result-summary h3,
.candidate-result-grid h2,
.candidate-result-bottom h2 {
  margin: 0 0 12px;
}

.candidate-result-summary p,
.candidate-result-text,
.candidate-result-grid aside p {
  margin: 0;
  color: #26364f;
  line-height: 1.75;
}

.candidate-result-matrix td:first-child {
  width: 220px;
  background: #f7f8fb;
  font-weight: 900;
}

.candidate-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 18px;
  margin-bottom: 18px;
}

.candidate-result-eval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.candidate-result-eval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.candidate-result-eval-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.candidate-result-eval-card span {
  color: #536176;
  font-weight: 900;
}

.candidate-result-eval-card strong {
  color: #0b9868;
  font-size: 30px;
  line-height: 1;
}

.candidate-result-eval-card small {
  color: #536176;
  font-size: 13px;
}

.candidate-result-eval-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #445168;
  line-height: 1.65;
}

.risk-meter {
  height: 22px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
  margin-bottom: 12px;
}

.risk-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #25b860, #f8bd1c);
}

.risk-label {
  display: block;
  color: #0b9868;
  font-size: 24px;
  margin-bottom: 12px;
}

.candidate-result-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.45fr);
  gap: 18px;
}

.candidate-transcript {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.result-redesign-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.result-redesign-head h1 {
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: 0;
  line-height: 1.25;
}

.result-redesign-head > div:first-child {
  min-width: min(100%, 340px);
}

.result-redesign-head .toolbar {
  justify-content: flex-end;
}

.result-candidate-card {
  display: grid;
  grid-template-columns: 96px minmax(170px, 1.05fr) repeat(4, minmax(116px, 0.75fr));
  gap: 0;
  align-items: stretch;
  margin-bottom: 14px;
  overflow: hidden;
}

.result-candidate-card.case-candidate-card {
  grid-template-columns: 96px minmax(170px, 0.85fr) minmax(210px, 1.15fr) repeat(3, minmax(116px, 0.7fr));
}

.result-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  background: var(--brand-mid);
  color: #fff;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 900;
}

.result-candidate-main {
  align-self: center;
  padding-right: 20px;
  min-width: 0;
}

.result-candidate-main h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 29px);
  color: #101828;
  line-height: 1.2;
}

.result-candidate-main p {
  margin: 0;
  color: #26364f;
  line-height: 1.5;
  font-weight: 700;
  font-size: clamp(12px, 1.2vw, 16px);
  overflow-wrap: anywhere;
}

.result-fact {
  min-height: 112px;
  min-width: 0;
  padding: clamp(16px, 1.8vw, 24px) clamp(12px, 1.5vw, 20px);
  border-left: 1px solid #dfe4ec;
  display: grid;
  grid-template-columns: clamp(18px, 1.8vw, 22px) minmax(0, 1fr);
  gap: 6px 10px;
  align-content: center;
}

.result-fact > span {
  color: var(--brand-mid);
  font-size: clamp(16px, 1.6vw, 19px);
  grid-row: span 2;
}

.result-fact small {
  color: #536176;
  font-weight: 900;
  font-size: clamp(11px, 1.1vw, 13px);
}

.result-fact b {
  color: #1f2430;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.result-waiting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 84px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #f0bd67;
  border-radius: 6px;
  background: #fff4df;
  color: #b36a00;
  font-weight: 900;
  white-space: nowrap;
}

.result-hero-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid rgba(9, 154, 159, 0.5);
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fffd, #fff);
  box-shadow: var(--shadow);
}

.result-hero-card.case {
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

.result-hero-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #07989a;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
}

.result-hero-card h2 {
  margin: 0 0 8px;
  color: #078c8f;
  font-size: 29px;
}

.result-hero-card p {
  margin: 0;
  color: #26364f;
  line-height: 1.7;
  font-weight: 700;
}

.case-result-total-score {
  min-width: 118px;
  text-align: center;
  color: #078c8f;
  font-weight: 900;
}

.case-result-total-score strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.case-result-total-score small {
  color: #536176;
  font-size: 13px;
}

.hero-reasons {
  border-left: 1px solid #d9e2ea;
  padding-left: 22px;
}

.hero-reasons b {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.hero-reasons p {
  margin: 6px 0;
  font-size: 14px;
}

.result-two-column {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.case-insight-row:not(.result-two-column) {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.result-two-column h3,
.result-lower-grid h3,
.case-result-grid h3,
.result-action-card h3 {
  margin: 0 0 14px;
  color: #12203b;
  font-size: 20px;
}

.result-reason-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.result-reason-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.result-reason-row > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7fbfb;
  color: #078c8f;
  font-weight: 900;
  font-size: 22px;
}

.result-reason-row:nth-child(4) > span {
  background: #fff0f4;
  color: #d83d67;
}

.result-reason-row b {
  display: block;
  margin-bottom: 4px;
  color: #1f2430;
  font-size: 16px;
}

.result-reason-row p {
  margin: 0;
  color: #344158;
  line-height: 1.55;
  font-size: 13px;
  font-weight: 700;
}

.concern-card {
  display: grid;
  gap: 14px;
}

.concern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.concern-box {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  overflow: hidden;
}

.concern-box h4 {
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
}

.concern-box p {
  margin: 0;
  padding: 8px 16px;
  color: #26364f;
  font-weight: 800;
}

.concern-box.warn {
  border-color: #f3d0d6;
  background: #fff9fa;
}

.concern-box.warn h4 {
  background: #fff0f2;
  color: #d9405c;
}

.concern-box.ok {
  border-color: #cfe7e7;
  background: #fbffff;
}

.concern-box.ok h4 {
  background: #effafa;
  color: #078c8f;
}

.mind-map {
  --mind-edge-default: #078c8f;
  --mind-edge-action: #5b5fa9;
  --mind-edge-risk: #f29900;
  --mind-edge-followup: #d9405c;
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-height: 420px;
  overflow: auto;
  padding: 12px 10px 12px 0;
}

.mind-map-center {
  position: relative;
  min-height: 150px;
  border: 2px solid var(--mind-edge-default);
  border-radius: 999px;
  background: radial-gradient(circle at 40% 30%, #ffffff, #e7fbfb);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px;
  text-align: center;
}

.mind-map-center::after {
  content: "";
  position: absolute;
  right: -21px;
  top: 50%;
  width: 21px;
  height: 4px;
  background: var(--mind-edge-default);
  transform: translateY(-50%);
  border-radius: 999px;
}

.mind-map-center span {
  color: #078c8f;
  font-size: 12px;
  font-weight: 900;
}

.mind-map-center strong {
  color: #12203b;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mind-map-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding-left: 18px;
}

.mind-map-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 44px;
  width: 4px;
  background: var(--mind-edge-default);
  border-radius: 999px;
}

.mind-map-branch {
  --mind-edge-color: var(--mind-edge-default);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  min-height: 88px;
}

.mind-map-line {
  position: relative;
  height: 4px;
  background: var(--mind-edge-color);
  border-radius: 999px 0 0 999px;
}

.mind-map-line::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  width: 18px;
  height: 4px;
  background: var(--mind-edge-color);
}

.mind-map-line::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--mind-edge-color);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.mind-map-line span {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  max-width: 102px;
  min-width: 74px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfe4ec;
  box-shadow: 0 3px 10px rgba(34, 47, 73, 0.12);
  line-height: 1.15;
  z-index: 1;
}

.mind-map-line span b {
  color: var(--mind-edge-color);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mind-map-line span small {
  color: #536176;
  font-size: 10px;
  font-weight: 800;
}

.mind-map-node {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(34, 47, 73, 0.06);
}

.mind-map-node b {
  display: block;
  color: #078c8f;
  font-size: 15px;
  margin-bottom: 4px;
}

.mind-map-node p {
  margin: 0;
  color: #344158;
  line-height: 1.55;
  font-size: 13px;
  font-weight: 700;
}

.mind-map-branch.action {
  --mind-edge-color: var(--mind-edge-action);
}

.mind-map-branch.risk {
  --mind-edge-color: var(--mind-edge-risk);
}

.mind-map-branch.followup {
  --mind-edge-color: var(--mind-edge-followup);
}

.case-modern-insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.case-modern-panel {
  align-self: start;
  min-width: 0;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 14px 34px rgba(23, 37, 63, 0.07);
  padding: 20px;
}

.case-modern-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 12px;
}

.case-modern-panel-head span {
  color: #6c7588;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-modern-panel-head h3 {
  margin: 0;
  color: #142038;
  font-size: 18px;
  line-height: 1.35;
}

.result-card-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 12px;
}

.result-card-title span {
  color: #6c7588;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-card-title h3,
.normal-result-card .result-card-title h3,
.cxr-document-grid .normal-result-card .result-card-title h3,
.cxr-card .result-card-title h3,
.ui-card .result-card-title h3 {
  margin: 0;
  color: #142038;
  font-size: 18px;
  line-height: 1.35;
}

.result-card-title h3 small {
  color: #75809a;
  font-size: 12px;
}

.case-modern-reasons {
  display: grid;
  gap: 12px;
}

.case-modern-reasons .result-reason-row {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.case-modern-reasons .result-reason-row > span {
  width: 34px;
  height: 34px;
  background: #eef8f8;
  color: #078c8f;
  font-size: 16px;
}

.case-modern-reasons .result-reason-row b {
  font-size: 13px;
}

.case-modern-reasons .result-reason-row p {
  color: #4a566b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.65;
}

.case-modern-list {
  display: grid;
  gap: 10px;
}

.case-modern-panel.potential {
  grid-column: 1 / -1;
  padding: 24px;
}

.case-modern-panel.potential .case-modern-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-modern-panel.potential .case-modern-panel-head h3 {
  font-size: 20px;
}

.case-modern-panel.potential .case-modern-item {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
}

.case-modern-panel.potential .case-modern-item span {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.case-modern-panel.potential .case-modern-item p,
.case-modern-panel.potential .case-modern-empty {
  font-size: 14px;
  line-height: 1.85;
}

.case-modern-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.case-modern-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f2f4ff;
  color: #4f5fb7;
  font-size: 12px;
  font-weight: 900;
}

.case-modern-item p,
.case-modern-empty {
  margin: 0;
  color: #4a566b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.65;
}

.case-modern-panel.mindmap {
  grid-column: 1 / -1;
}

.case-modern-panel.mindmap .mind-map {
  max-height: none;
  overflow: visible;
  padding: 4px 0 0;
}

.case-modern-panel.mindmap .mind-map-center {
  min-height: 168px;
}

.case-modern-panel.mindmap .mind-map-node {
  border-radius: 12px;
}

.summary-tile-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.summary-tile {
  min-height: 74px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.summary-tile span {
  color: var(--brand-mid);
  font-weight: 900;
}

.summary-tile small {
  color: #536176;
  font-weight: 900;
}

.summary-tile strong {
  color: #078c8f;
  font-size: 24px;
  line-height: 1;
}

.result-score-card strong small {
  margin-left: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.summary-tile.orange strong {
  color: #f29900;
}

.case-process-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-process-summary .summary-tile {
  min-height: 82px;
}

.result-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 14px;
  margin-bottom: 14px;
}

.result-score-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result-score-card {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 14px;
  min-height: 150px;
}

.result-score-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.result-score-card strong {
  color: #078c8f;
  font-size: 18px;
}

.result-score-card.orange strong,
.result-score-card.orange .stars {
  color: #f29900;
}

.stars {
  margin: 6px 0 8px;
  color: #07989a;
  letter-spacing: 1px;
}

.result-score-card p,
.next-question-card li span,
.process-row p,
.possibility-card p,
.followup-card p,
.result-action-card p {
  color: #344158;
  line-height: 1.55;
  font-size: 13px;
  font-weight: 700;
}

.next-question-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.next-question-card li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.next-question-card li b {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}

.result-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.42fr);
  gap: 14px 28px;
  align-items: end;
}

.result-action-card h3 {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.action-content {
  border: 1px solid rgba(9, 154, 159, 0.45);
  border-radius: 8px;
  background: #f6ffff;
  display: grid;
  grid-template-columns: 62px 1fr;
  overflow: hidden;
}

.action-content > span {
  background: #07989a;
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.action-content div {
  padding: 12px 16px;
}

.action-content b {
  display: block;
  margin-bottom: 4px;
  color: #26364f;
  font-size: 20px;
}

.action-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.action-options b {
  width: 100%;
  color: #26364f;
}

.result-case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.result-case-meta > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.result-case-meta b {
  font-size: 20px;
  color: #1f2430;
}

.result-case-meta span {
  color: #344158;
  font-weight: 800;
}

.case-meta-chip {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  color: #26364f;
  font-weight: 800;
}

.case-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-result-grid > :first-child {
  grid-column: 1;
  grid-row: 1;
}

.case-result-grid > .possibility-card {
  grid-column: 2;
  grid-row: 1;
}

.case-result-grid > .thinking-card {
  grid-column: 1 / -1;
  grid-row: 2;
}

.case-result-grid > .followup-card {
  grid-column: 1 / -1;
}

.case-thinking-detail .result-score-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-thinking-detail .mind-map + .result-score-card-grid {
  margin-top: 18px;
}

@media (max-width: 1200px) {
  .result-candidate-card,
  .result-candidate-card.case-candidate-card {
    grid-template-columns: 88px minmax(0, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  }

  .result-candidate-card .result-fact:nth-child(5),
  .result-candidate-card .result-fact:nth-child(6) {
    border-top: 1px solid #dfe4ec;
  }

  .result-candidate-card .result-fact:nth-child(5) {
    border-left: 0;
  }

  .result-avatar {
    width: 64px;
    height: 64px;
  }

  .result-candidate-main {
    padding: 16px 16px 16px 0;
  }
}

@media (max-width: 760px) {
  .candidate-result-head {
    display: grid;
    gap: 12px;
  }

  .result-redesign-head .toolbar {
    justify-content: flex-start;
  }

  .result-candidate-card,
  .result-candidate-card.case-candidate-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .result-candidate-card .result-fact {
    min-height: 0;
    border-top: 1px solid #dfe4ec;
  }

  .result-candidate-card .result-fact:nth-child(odd) {
    border-left: 0;
  }

  .result-avatar {
    width: 56px;
    height: 56px;
    margin: 16px auto;
  }
}

.process-card {
  display: grid;
  gap: 10px;
}

.process-row {
  display: grid;
  grid-template-columns: 96px 56px 1fr;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 10px;
}

.process-row:last-child {
  border-bottom: 0;
}

.process-row b {
  color: #26364f;
}

.process-row span {
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.process-row .high {
  background: #e6f8ef;
  color: #0b9868;
}

.process-row .mid {
  background: #fff2d6;
  color: #c57900;
}

.process-row p {
  margin: 0;
}

.thinking-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  overflow: hidden;
}

.thinking-matrix div {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
}

.thinking-matrix div:nth-child(odd) {
  border-right: 1px solid #edf1f6;
}

.thinking-matrix span {
  color: #26364f;
  font-weight: 800;
}

.thinking-matrix strong {
  color: #082c75;
}

.thinking-average {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  border-top: 1px solid #dfe4ec;
  padding-top: 12px;
}

.thinking-average strong {
  color: #078c8f;
  font-size: 28px;
}

.followup-card {
  display: grid;
  gap: 12px;
}

.followup-card > div {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 12px;
}

.case-followup-question {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 12px;
}

.case-followup-question + .case-followup-question {
  margin-top: 10px;
}

.followup-card p {
  margin: 8px 0 0;
}

.case-followup-question p:first-child {
  margin-top: 0;
}

.case-followup-question p b,
.followup-card p span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 5px;
  background: #e6f8ef;
  color: #0b9868;
  font-weight: 900;
  margin-right: 8px;
}

.case-followup-check b,
.followup-card p span.warn {
  background: #fff2d6;
  color: #b36a00;
}

@media (max-width: 900px) {
  .cxr-gap-head {
    display: block;
  }

  .cxr-gap-head p {
    margin-top: 8px;
    max-width: none;
  }

  .cxr-gap-grid {
    grid-template-columns: 1fr;
  }

  .case-insight-row {
    grid-template-columns: 1fr;
  }

  .case-process-card .concern-grid {
    grid-template-columns: 1fr;
  }

  .case-result-grid {
    grid-template-columns: 1fr;
  }

  .case-result-grid > :first-child,
  .case-result-grid > .possibility-card,
  .case-result-grid > .thinking-card,
  .case-result-grid > .followup-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 1100px) {
  .case-thinking-detail .result-score-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-process-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mind-map {
    grid-template-columns: 1fr;
  }

  .mind-map-center::after,
  .mind-map-branches::before,
  .mind-map-line::before {
    display: none;
  }

  .mind-map-branches {
    padding-left: 0;
  }
}

.minutes-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 14px;
  margin-top: 14px;
}

.minutes-card,
.minutes-video-card {
  min-height: 360px;
}

.minutes-card h3,
.minutes-video-card h3 {
  margin: 0;
  color: #12203b;
  font-size: 20px;
}

.minutes-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.minutes-summary {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #f7f9fc;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.minutes-summary b {
  display: block;
  margin-bottom: 4px;
  color: #26364f;
}

.minutes-summary p {
  margin: 0;
  color: #344158;
  line-height: 1.6;
  font-weight: 700;
}

.minutes-summary-eval {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}

.minutes-summary-eval span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.minutes-summary-eval.good {
  background: #f1fbf6;
  border-color: #a8dfc0;
}

.minutes-summary-eval.good span {
  background: #0b9868;
}

.minutes-summary-eval.warn {
  background: #fff8e8;
  border-color: #f2c36f;
}

.minutes-summary-eval.warn span {
  background: #f0a21a;
}

.minutes-summary-eval strong {
  display: inline-block;
  margin-right: 8px;
  font-weight: 900;
}

.minutes-summary-eval.good p,
.minutes-summary-eval.good strong {
  color: #075f43;
}

.minutes-summary-eval.warn p,
.minutes-summary-eval.warn strong {
  color: #7a4a00;
}

.minutes-log {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.minutes-row {
  display: grid;
  grid-template-columns: 66px 72px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.minutes-row.ai {
  background: #f8fbff;
}

.minutes-row.candidate {
  background: #fbffff;
  border-color: #d6eeee;
}

.minutes-row.evaluation {
  grid-template-columns: 34px 72px 1fr;
  align-items: center;
}

.minutes-row.evaluation.good {
  background: #f1fbf6;
  border-color: #a8dfc0;
  box-shadow: inset 4px 0 0 #18a866;
}

.minutes-row.evaluation.warn {
  background: #fff8e8;
  border-color: #f2c36f;
  box-shadow: inset 4px 0 0 #f0a21a;
}

.eval-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.minutes-row.evaluation.good .eval-icon {
  background: #0b9868;
}

.minutes-row.evaluation.warn .eval-icon {
  background: #f0a21a;
}

.minutes-row time {
  color: #667085;
  font-weight: 900;
  font-size: 12px;
}

.minutes-row b {
  color: #26364f;
}

.minutes-row.evaluation.good b {
  color: #08734f;
}

.minutes-row.evaluation.warn b {
  color: #a15c00;
}

.minutes-row p {
  margin: 0;
  color: #344158;
  line-height: 1.55;
  font-weight: 700;
}

button.minutes-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

button.minutes-row:hover {
  border-color: #8da2ff;
  box-shadow: 0 6px 18px rgba(76, 93, 214, 0.12);
}

.result-transcript-cue.active {
  border-color: #4f5fb7;
  background: #f2f5ff;
  box-shadow: inset 4px 0 0 #4f5fb7, 0 8px 22px rgba(79, 95, 183, 0.12);
}

.minutes-row.evaluation.good p {
  color: #075f43;
  font-weight: 800;
}

.minutes-row.evaluation.warn p {
  color: #7a4a00;
  font-weight: 800;
}

.minutes-row.evaluation p span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 5px;
  background: #e6f8ef;
  color: #0b9868;
  font-weight: 900;
}

.minutes-row.evaluation p span.warn {
  background: #fff0d2;
  color: #b36a00;
}

.minutes-video {
  margin-top: 14px;
}

.result-interview-video {
  display: block;
  width: 100%;
  min-height: 238px;
  max-height: 420px;
  border-radius: 10px;
  border: 1px solid #cfd6e3;
  background: #111827;
}

.video-frame {
  position: relative;
  min-height: 238px;
  border-radius: 10px;
  border: 1px solid #cfd6e3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.32), transparent 16%),
    linear-gradient(135deg, #26364f, #111827);
  display: grid;
  place-items: center;
  color: #fff;
}

.video-frame.video-empty {
  background: linear-gradient(135deg, #2c3445, #171d29);
}

.video-person {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-weight: 900;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-mid);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.video-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-weight: 900;
}

.video-meta-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.video-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fff;
}

.video-meta-list span {
  color: #667085;
  font-weight: 800;
}

.video-meta-list b {
  color: #078c8f;
}

.transcript-bubble {
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #dfe4ec;
  background: #f7f8fb;
}

.transcript-bubble.user {
  background: #e9f3ff;
  margin-left: 48px;
}

.transcript-bubble.ai {
  background: #f4efff;
  margin-right: 48px;
}

.transcript-bubble b {
  display: block;
  margin-bottom: 6px;
  color: #074f9d;
}

.transcript-bubble p {
  margin: 0;
  line-height: 1.65;
}

.candidate-video {
  height: 230px;
  margin-bottom: 16px;
}

.candidate-nonverbal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-nonverbal span {
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fb;
  color: #26364f;
  font-weight: 900;
}

.position-detail {
  display: grid;
  gap: 14px;
}

.position-detail input:disabled,
.position-detail select:disabled,
.position-detail textarea:disabled {
  background: #f7f8fb;
  color: #445168;
  opacity: 1;
}

.position-detail.editing {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tag-box {
  min-height: 44px;
  border: 1px solid #d4dbe7;
  border-radius: 5px;
  padding: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid #cdd5e1;
  border-radius: 4px;
  padding: 0 10px;
  margin: 0 6px 6px 0;
  background: #f9fbfd;
  font-size: 13px;
  font-weight: 700;
}

.tag button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #e8edf5;
  color: #536176;
  font-weight: 900;
  line-height: 1;
}

.tag.add,
.mini-edit {
  color: #007c9b;
  border-color: #007c9b;
  background: #fff;
}

.mini-edit {
  float: right;
  border-radius: 4px;
  padding: 4px 14px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 18px;
}

.form-actions .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn.danger {
  border-color: #ff7182;
  color: #e4364c;
  background: #fff;
}

.badge.gray {
  color: #4b5563;
  background: #eef1f5;
  border-color: #cfd6df;
}

.criteria-set-layout,
.template-settings-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.criteria-set-layout > *,
.template-settings-layout > *,
.template-detail-card > *,
.template-section-card > *,
.question-editor > *,
.template-guidance > * {
  min-width: 0;
}

.criteria-set-layout {
  grid-template-columns: 1fr;
}

.criteria-list-card,
.template-list-card {
  overflow: hidden;
}

.criteria-list-card,
.template-list-card {
  overflow-x: auto;
}

.template-list-card .ui-table {
  min-width: 0;
  table-layout: fixed;
}

.template-list-card .ui-table th,
.template-list-card .ui-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 10px 9px;
}

.template-list-card .ui-table th:nth-child(1),
.template-list-card .ui-table td:nth-child(1) {
  width: 52%;
}

.template-list-card .ui-table th:nth-child(2),
.template-list-card .ui-table td:nth-child(2) {
  width: 24%;
}

.template-list-card .ui-table th:nth-child(3),
.template-list-card .ui-table td:nth-child(3) {
  width: 24%;
}

.criteria-set-table th,
.criteria-set-table td {
  white-space: nowrap;
}

.use-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c1c6d3;
  box-shadow: inset 0 0 0 4px #eef1f7;
}

.use-dot.on {
  background: #5559c6;
}

.criteria-detail-card {
  gap: 18px;
}

.criteria-meta-grid {
  display: grid;
  gap: 14px;
}

.criteria-meta-grid div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  color: #26364f;
}

.criteria-meta-grid span {
  color: #667085;
  font-weight: 800;
}

.criteria-allocation-card {
  display: grid;
  gap: 14px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.criteria-allocation-head,
.criteria-even-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.criteria-allocation-head h3,
.question-editor h3,
.template-guidance h3 {
  margin: 0 0 4px;
  color: #172238;
  font-size: 17px;
  font-weight: 900;
}

.criteria-allocation-head p,
.criteria-even-row span {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.criteria-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background: #f8faff;
  padding: 9px 12px;
  color: #667085;
}

.criteria-total strong {
  color: #3339a6;
  font-size: 24px;
}

.criteria-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.criteria-chip {
  min-height: 34px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  color: #445168;
  padding: 0 14px;
  font-weight: 800;
}

.criteria-chip.active {
  border-color: #5b5fc7;
  background: #f2f3ff;
  color: #3339a6;
}

.criteria-allocation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
}

.criteria-allocation-table th,
.criteria-allocation-table td {
  border-bottom: 1px solid #e6ebf3;
  padding: 12px;
  vertical-align: top;
  text-align: left;
  color: #26364f;
}

.criteria-allocation-table th {
  background: #f8faff;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.criteria-allocation-table select,
.criteria-allocation-table input[type="number"] {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  color: #172238;
  font-weight: 800;
}

.criteria-allocation-table small {
  display: block;
  margin-top: 6px;
  color: #667085;
  line-height: 1.5;
}

.criteria-allocation-table input[type="range"] {
  width: 100%;
  accent-color: #5b5fc7;
}

.criteria-allocation-table td:nth-child(4) {
  display: grid;
  grid-template-columns: 70px auto;
  gap: 8px;
}

.rubric-high-readonly {
  min-height: 42px;
  border: 1px solid #dfe5f0;
  border-radius: 6px;
  background: #fbfcff;
  padding: 10px;
  color: #445168;
  line-height: 1.5;
}

.score-notice {
  border: 1px solid #bfe6d4;
  border-radius: 8px;
  background: #f1fbf6;
  color: #15724b;
  padding: 12px;
  font-weight: 800;
}

.option-lock-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #f8faff;
  padding: 14px 16px;
}

.option-lock-card.compact {
  grid-template-columns: 42px minmax(0, 1fr);
}

.option-lock-card b {
  color: #172238;
}

.option-lock-card p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.lock-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd5e7;
  border-radius: 8px;
  background: #fff;
}

.template-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 6px;
}

.template-mode-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536176;
  font-weight: 900;
}

.template-mode-tabs button.active {
  background: #fff;
  color: #3339a6;
  box-shadow: 0 1px 4px rgba(26, 36, 60, 0.1);
}

.template-mode-tabs span {
  display: block;
  color: #8a94a6;
  font-size: 11px;
}

.template-detail-card,
.question-editor,
.template-guidance,
.template-section-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.template-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.template-subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.question-editor {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.template-section-card {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.compact-template-section {
  gap: 10px;
}

.normal-total-question-section {
  display: grid;
  gap: 12px;
}

.normal-total-question-section[hidden] {
  display: none;
}

.normal-total-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.normal-total-question-field {
  max-width: 360px;
}

.normal-total-question-field.invalid select {
  border-color: #d92d20;
  background: #fff7f7;
}

.normal-total-question-hint {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.normal-total-question-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f4b8b8;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  font-size: 13px;
  font-weight: 900;
}

.normal-improvisation-warning,
.position-field-help {
  display: block;
  margin-top: 8px;
  color: #7a5b15;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}

.normal-improvisation-warning {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1d48b;
  border-radius: 8px;
  background: #fff8e6;
}

.position-field-help {
  color: #5f6f86;
}

.template-section-card h3 {
  margin: 0;
  color: #172238;
  font-size: 17px;
  font-weight: 900;
}

.template-section-description {
  margin: -4px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.question-editor-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(180px, 0.38fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.question-editor-row.no-meta {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.question-delete-btn {
  min-height: 28px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #f8faff;
  color: #667085;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.question-delete-btn:hover {
  border-color: #c7cedb;
  background: #eef2f7;
  color: #344054;
}

.template-unit-settings {
  background: #fbfcff;
}

.template-unit-settings .wait-setting {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.template-unit-settings .segment-row {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.template-threshold-card {
  margin-top: 0;
}

.generated-question-list {
  display: grid;
  gap: 12px;
}

.generated-question-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(180px, 0.38fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.generated-question-row label {
  display: grid;
  gap: 8px;
}

.generated-question-row label span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.generated-question-row textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  padding: 10px;
  color: #26364f;
  resize: vertical;
}

.generated-question-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.template-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.template-detail-card .card-title-row {
  flex-wrap: wrap;
}

.template-selector-block {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.template-selector-block .ui-field {
  margin: 0;
}

.template-selector-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.template-selector-row .btn {
  min-height: 42px;
  white-space: nowrap;
}

.template-selector-block select {
  background: #fff;
}

.template-position-summary {
  display: grid;
  gap: 6px;
  min-height: 74px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #f8fafc;
}

.template-position-summary b {
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.template-position-summary small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.detail-feature-checks {
  margin: 0;
}

.question-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eff1ff;
  color: #3339a6;
  font-weight: 900;
}

.question-editor-row label,
.question-meta,
.template-guidance {
  display: grid;
  gap: 8px;
}

.question-editor-row label span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.question-editor-row textarea,
.template-guidance textarea,
.result-action-mini textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  padding: 10px;
  color: #26364f;
  resize: vertical;
}

.locked-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-interview-templates .topbar {
  display: none;
}

.route-interview-templates .main {
  top: 0;
}

.route-interview-templates .content {
  height: 100%;
  margin-top: 0;
  padding: 0;
}

.route-interview-templates .upgrade-card,
.route-interview-templates .sidebar-rule {
  display: none;
}

.template-page .template-mode-tabs {
  margin: 0 0 14px;
  border-color: #dfe4ec;
  background: #f8fafc;
}

.template-page .template-mode-tabs button {
  color: #344054;
  border-radius: 7px;
}

.template-page .template-mode-tabs button.active {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--brand), 0 1px 4px rgba(16, 24, 40, 0.08);
}

.template-page .template-settings-layout {
  grid-template-columns: minmax(280px, 0.42fr) minmax(560px, 1fr);
  gap: 14px;
  align-items: start;
}

.template-page .template-settings-layout.single-template-layout {
  grid-template-columns: minmax(0, 1fr);
}

.template-page .template-list-card,
.template-page .template-detail-card,
.template-page .question-editor,
.template-page .template-section-card {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.template-page .template-list-card,
.template-page .template-detail-card {
  padding: 16px;
}

.template-page .question-editor,
.template-page .template-section-card {
  padding: 14px;
  border-top: 1px solid #dfe4ec;
}

.template-page .template-unit-settings {
  background: #fbfcff;
}

.template-page .card-title-row h2,
.template-page .card-title-row h3 {
  color: #101828;
  font-weight: 900;
}

.template-page .question-number {
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  background: #f7f8fb;
  color: #1d2939;
}

.template-page .question-editor-row {
  border-color: #d9deea;
  border-radius: 7px;
}

.template-page .template-evaluation-section {
  display: grid;
}

.support-page {
  min-width: 0;
}

.support-page .support-shell {
  min-height: calc(100vh - 180px);
}

.support-page .support-content {
  max-height: none;
}

.simple-result-candidate-card {
  grid-template-columns: 96px minmax(170px, 1.05fr) repeat(4, minmax(116px, 0.75fr)) minmax(210px, 0.9fr);
}

.result-status-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.result-status-control label {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.result-status-control select {
  min-height: 38px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.simple-result-summary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 0.8fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.result-judgement-card {
  border-left: 5px solid #5b5fc7;
}

.result-label {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.result-judgement-card h2 {
  margin: 8px 0;
  color: #3339a6;
  font-size: 32px;
}

.result-judgement-card p,
.result-action-mini p {
  margin: 0;
  color: #536176;
  line-height: 1.7;
}

.simple-result-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(320px, 1.2fr);
  gap: 16px;
  margin-top: 16px;
}

.result-action-mini {
  display: grid;
  gap: 12px;
  align-content: start;
}

.result-action-mini h3 {
  margin: 0;
  color: #172238;
  font-size: 17px;
}

.result-locked-options {
  margin: 16px 0;
}

.short-result-page {
  display: grid;
  gap: 18px;
}

.short-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.short-back,
.result-back-link {
  border: 0;
  background: transparent;
  color: #3f4395;
  font-weight: 900;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.result-back-link:hover {
  text-decoration: underline;
}

.short-result-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 2.4vw, 32px);
}

.short-result-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.short-candidate-card,
.short-card,
.short-option-card {
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 42, 75, 0.08);
}

.short-candidate-card {
  display: grid;
  grid-template-columns: 92px minmax(260px, 1fr) minmax(150px, 0.34fr) minmax(150px, 0.34fr) minmax(340px, 0.72fr);
  gap: 0;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 0 24px 0 16px;
}

.short-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ececff;
  color: #5458b4;
  font-size: 34px;
  margin: 0 auto;
}

.short-candidate-main h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 27px;
}

.short-candidate-main p {
  margin: 0 0 8px;
  color: #344158;
  font-size: 16px;
}

.copy-mini {
  border: 0;
  background: transparent;
  color: #6b7280;
}

.short-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  background: #eef0f7;
  color: #667085;
  padding: 0 14px;
  margin-right: 10px;
  font-weight: 800;
}

.short-chip.primary {
  background: #5054a8;
  color: #fff;
}

.short-fact {
  min-height: 76px;
  border-left: 1px solid #dfe3eb;
  display: grid;
  align-content: center;
  gap: 8px;
  padding-left: 34px;
}

.short-fact small,
.short-status label {
  color: #4b5563;
  font-weight: 900;
}

.short-fact b {
  color: #111827;
  font-size: 20px;
}

.short-status {
  border-left: 1px solid #dfe3eb;
  display: grid;
  gap: 8px;
  padding-left: 34px;
}

.short-status > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 14px;
}

.short-status select {
  min-height: 48px;
  border: 1px solid #cfd5e2;
  border-radius: 6px;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
}

.short-top-grid,
.short-lower-grid {
  display: grid;
  gap: 14px;
}

.short-top-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr) minmax(420px, 1.25fr);
}

.short-lower-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) minmax(360px, 1fr);
}

.short-card {
  padding: 20px;
}

.short-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 19px;
}

.short-card h3 span {
  color: #7b8496;
  font-size: 15px;
}

.short-judge-card {
  text-align: center;
}

.short-judge-card strong {
  display: block;
  color: #5558b7;
  font-size: 72px;
  line-height: 1;
}

.short-judge-card b {
  display: block;
  color: #333;
  font-size: 25px;
  margin-top: 6px;
}

.short-judge-card hr {
  border: 0;
  border-top: 1px solid #dfe3eb;
  margin: 18px 28px;
}

.short-judge-card p,
.short-summary-card p,
.short-option-card p {
  margin: 0;
  color: #344158;
  line-height: 1.7;
  font-weight: 700;
}

.short-axis-card {
  display: grid;
  gap: 13px;
}

.short-axis-row {
  display: grid;
  grid-template-columns: 140px minmax(160px, 1fr) 68px;
  gap: 12px;
  align-items: center;
}

.short-axis-row span {
  color: #111827;
  font-weight: 800;
}

.short-axis-row i {
  height: 8px;
  border-radius: 999px;
  background: #d9dce7;
  overflow: hidden;
}

.short-axis-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5054a8;
}

.short-axis-row strong {
  color: #111827;
}

.short-axis-row small {
  color: #6b7280;
}

.short-transcript-box {
  max-height: 198px;
  overflow-y: auto;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
}

.short-transcript-row {
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f6;
}

.short-transcript-row time {
  display: block;
  color: #8a94a6;
  font-size: 12px;
}

.short-transcript-row b,
.short-transcript-row p {
  display: block;
  margin: 2px 0 0;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
}

.short-outline-btn {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid #575bb3;
  border-radius: 6px;
  background: #fff;
  color: #4b4fa3;
  font-weight: 900;
}

.short-video {
  position: relative;
  height: 238px;
  border-radius: 6px;
  background: #020203;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.short-video > button {
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 24px;
}

.short-video-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 20px auto 1fr 20px 20px 20px;
  gap: 10px;
  align-items: center;
  color: #fff;
}

.short-video-controls i {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 16%, #5f636c 16%);
}

.short-memo-card textarea {
  width: 100%;
  min-height: 176px;
  border: 1px solid #cfd5e2;
  border-radius: 6px;
  padding: 14px;
  resize: vertical;
  margin-bottom: 14px;
}

.short-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.short-option-card {
  padding: 18px;
}

.short-option-card > div {
  display: grid;
  grid-template-columns: 24px auto 92px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.short-option-card span {
  color: #667085;
}

.short-option-card b {
  color: #1f2937;
  font-size: 17px;
}

.short-option-card em {
  justify-self: end;
  border-radius: 7px;
  background: #eef0ff;
  color: #5054a8;
  padding: 5px 12px;
  font-style: normal;
  font-weight: 800;
}

.normal-result-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 38, 0.48);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 24px;
}

.normal-result-pane {
  position: static;
  background: transparent;
  display: block;
  padding: 0;
}

.normal-result-shell {
  width: min(1280px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #f7f8fb;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(30, 34, 54, 0.22);
  color: #1f2430;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
}

.normal-result-pane .normal-result-shell {
  width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: none;
}

.normal-result-page {
  padding: clamp(18px, 2.5vw, 30px);
}

.normal-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.normal-result-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  color: #12203b;
}

.normal-result-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.normal-result-btn {
  min-height: 40px;
  border: 1px solid #dfe3eb;
  background: #fff;
  border-radius: 8px;
  padding: 0 16px;
  color: #303342;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(30, 34, 54, 0.06);
}

.normal-result-btn.primary,
.transcript-toggle-btn[data-active="true"] {
  background: #5b5fa9;
  border-color: #5b5fa9;
  color: #fff;
}

.normal-result-btn.warning {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
}

.normal-result-card {
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(40, 42, 75, 0.12);
}

.normal-result-pad {
  padding: clamp(18px, 2vw, 24px);
}

.normal-candidate-card {
  display: grid;
  grid-template-columns: 96px minmax(170px, 1fr) repeat(4, minmax(116px, .75fr));
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 14px;
}

.normal-result-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  background: #4c4f97;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
}

.normal-candidate-main {
  align-self: center;
  padding-right: 20px;
  min-width: 0;
}

.normal-candidate-main h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 29px);
  color: #101828;
  line-height: 1.2;
}

.normal-candidate-main p {
  margin: 0;
  color: #26364f;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.normal-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 8px 6px 0 0;
  border-radius: 6px;
  background: #eef0ff;
  color: #4c4f97;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.normal-result-fact {
  min-height: 112px;
  min-width: 0;
  padding: 18px 16px;
  border-left: 1px solid #dfe4ec;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px 10px;
  align-content: center;
}

.normal-result-fact > span {
  color: #4c4f97;
  font-size: 18px;
  grid-row: span 2;
  font-weight: 900;
}

.normal-result-fact small {
  color: #536176;
  font-weight: 900;
  font-size: 12px;
}

.normal-result-fact b {
  color: #1f2430;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.normal-result-hero {
  display: grid;
  grid-template-columns: 78px minmax(170px, 0.9fr) minmax(140px, max-content) 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid rgba(9, 154, 159, 0.5);
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fffd, #fff);
  box-shadow: 0 2px 8px rgba(40, 42, 75, 0.12);
}

.normal-result-hero.mid {
  border-color: rgba(242, 153, 0, .45);
  background: linear-gradient(90deg, #fff8e8, #fff);
}

.normal-result-hero.orange {
  border-color: rgba(217, 64, 92, .4);
  background: linear-gradient(90deg, #fff3f5, #fff);
}

.normal-result-hero-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #07989a;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.normal-result-hero.mid .normal-result-hero-icon {
  background: #f29900;
}

.normal-result-hero.orange .normal-result-hero-icon {
  background: #d9405c;
}

.normal-result-hero h2 {
  margin: 0;
  color: #078c8f;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.normal-result-hero.mid h2 {
  color: #b36a00;
}

.normal-result-hero.orange h2 {
  color: #c22948;
}

.normal-result-hero p {
  margin: 0;
  color: #26364f;
  line-height: 1.7;
  font-weight: 700;
  white-space: pre-wrap;
}

.normal-result-hero-score {
  text-align: left;
  border-left: 1px solid #d9e2ea;
  padding-left: 18px;
  justify-self: start;
}

.normal-result-hero-score span {
  display: block;
  color: #536176;
  font-weight: 900;
  font-size: 13px;
}

.normal-result-hero-score strong {
  color: #078c8f;
  font-size: 42px;
  line-height: 1;
}

.normal-result-hero-score small {
  color: #536176;
  font-size: 17px;
  font-weight: 800;
}

.normal-result-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .42fr);
  gap: 14px;
  margin-bottom: 14px;
}

.normal-result-two-column.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.normal-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.normal-result-wide {
  grid-column: 1 / -1;
}

.normal-short-result-page > .normal-result-card {
  margin-bottom: 14px;
}

.normal-result-card h3 {
  margin: 0 0 14px;
  color: #12203b;
  font-size: 20px;
}

.document-result-pane .normal-result-shell {
  max-width: none;
}

.document-candidate-card {
  grid-template-columns: 96px minmax(190px, 1fr) minmax(220px, .9fr) minmax(220px, .9fr);
}

.document-result-hero {
  grid-template-columns: 78px minmax(0, max-content) minmax(140px, max-content) 1fr;
}

.document-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.document-result-grid .normal-result-card {
  min-height: 0;
}

.document-result-grid p {
  margin: 0;
  color: #344158;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.document-score-list {
  display: grid;
  gap: 13px;
}

.document-score-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
}

.document-score-row span {
  color: #25314a;
  font-size: 13px;
  font-weight: 900;
}

.document-score-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e5ec;
}

.document-score-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4c4f97;
}

.document-score-row b {
  color: #15243a;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.document-score-row small {
  color: #536176;
  margin-left: 2px;
}

.document-highlight,
.document-concern {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.document-highlight:last-child,
.document-concern:last-child {
  margin-bottom: 0;
}

.document-highlight > span,
.document-concern > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #4c4f97;
  font-size: 13px;
  font-weight: 900;
}

.document-concern > span {
  color: #f29900;
}

.document-highlight b,
.document-concern b {
  color: #25314a;
  font-weight: 900;
}

.document-highlight p,
.document-concern p {
  margin-top: 3px;
  color: #536176;
  font-size: 12px;
}

.document-result-question-list {
  display: grid;
  gap: 8px;
}

.document-result-question {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  padding: 7px;
}

.document-result-question b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  color: #44536a;
  font-size: 13px;
}

.document-result-question p {
  font-size: 12px;
  line-height: 1.5;
}

.document-result-question:nth-child(2) span {
  background: #e8faf6;
  color: #078c8f;
}

.document-result-question:nth-child(3) span {
  background: #eeecff;
  color: #4c4f97;
}

.document-result-question:nth-child(4) span {
  background: #fff0f3;
  color: #d9405c;
}

.document-source-list {
  display: grid;
  gap: 14px;
}

.document-source-file {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 12px;
}

.document-source-file > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  color: #4c4f97;
}

.document-source-file b,
.document-source-file small {
  display: block;
}

.document-source-file b {
  color: #25314a;
  font-size: 13px;
}

.document-source-file small {
  color: #667085;
  margin-top: 4px;
  font-weight: 700;
}

.document-result-card-head {
  align-items: center;
  margin-bottom: 14px;
}

.document-result-card-head h3 {
  margin: 0;
}

.document-criteria-preview-modal {
  width: min(1080px, calc(100vw - 40px));
}

.document-criteria-preview {
  display: grid;
  gap: 14px;
}

.document-criteria-preview-table {
  table-layout: fixed;
}

.document-criteria-preview-table th,
.document-criteria-preview-table td {
  padding: 10px;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}

.document-criteria-preview-table th:nth-child(1) { width: 14%; }
.document-criteria-preview-table th:nth-child(2) { width: 8%; }
.document-criteria-preview-table th:nth-child(3) { width: 31%; }
.document-criteria-preview-table th:nth-child(4) { width: 31%; }
.document-criteria-preview-table th:nth-child(5) { width: 10%; }

.document-criteria-preview > p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.normal-interview-overview {
  margin-bottom: 14px;
}

.normal-interview-overview p {
  margin: 0;
  color: #344158;
  line-height: 1.7;
  font-size: 13px;
  font-weight: 700;
}

.normal-chart-box {
  min-height: 360px;
  position: relative;
}

.normal-chart-box-compact {
  min-height: 320px;
  margin-bottom: 16px;
}

.normal-result-risk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #dfe4ec;
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 42, 75, 0.12);
}

.normal-result-risk-card span {
  display: block;
  margin-bottom: 6px;
  color: #536176;
  font-size: 13px;
  font-weight: 900;
}

.normal-result-risk-card p,
.normal-result-score-card p,
.normal-text-card p,
.normal-salary-card p {
  color: #344158;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.normal-result-risk-card strong {
  justify-self: end;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #e9fbf7;
  color: #078c8f;
  font-size: 34px;
  border: 8px solid #bce8df;
}

.normal-result-risk-card strong small {
  display: block;
  margin-top: 4px;
  color: #536176;
  font-size: 13px;
}

.normal-result-risk-card.mid strong {
  background: #fff8e8;
  border-color: #f4ce86;
  color: #b36a00;
}

.normal-result-risk-card.high strong {
  background: #fff0f3;
  border-color: #f1a8b8;
  color: #c22948;
}

.normal-result-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.normal-result-score-card {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 14px;
  min-height: 150px;
}

.normal-result-score-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1f2430;
}

.normal-result-score-card strong {
  color: #078c8f;
  font-size: 24px;
}

.normal-result-score-card.mid strong {
  color: #f29900;
}

.normal-result-score-card.orange strong {
  color: #d9405c;
}

.normal-result-score-card small {
  color: #667085;
  font-size: 13px;
  margin-left: 2px;
}

.normal-salary-card strong {
  display: block;
  color: #078c8f;
  font-size: clamp(22px, 2.5vw, 30px);
}

.normal-transcript-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .44fr);
  gap: 14px;
  margin-top: 14px;
}

.normal-transcript-log {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.transcript-item {
  border-left: 4px solid #5b5fa9;
  border-radius: 8px;
  background: #f8faff;
  padding: 12px 14px;
}

.transcript-item[data-role="user"] {
  border-left-color: #07989a;
}

.transcript-item b {
  color: #26364f;
}

.transcript-item b small {
  margin-left: 10px;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 800;
}

.transcript-item p {
  color: #344158;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}

.normal-empty {
  color: #667085;
  font-weight: 700;
  margin: 0;
}

.normal-video-frame video {
  width: 100%;
  min-height: 300px;
  max-height: 460px;
  border-radius: 8px;
  background: #111827;
  object-fit: contain;
}

.normal-nonverbal-retry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.normal-nonverbal-retry-card p {
  margin: 8px 0 0;
  color: #596275;
  line-height: 1.7;
}

.normal-credibility-list {
  display: grid;
  gap: 12px;
}

.normal-credibility-row {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: inset 4px 0 0 #0b9868;
}

.normal-credibility-row.mid {
  box-shadow: inset 4px 0 0 #f0a21a;
}

.normal-credibility-row.low {
  box-shadow: inset 4px 0 0 #d9405c;
}

.normal-credibility-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.normal-credibility-head b {
  color: #26364f;
  font-size: 15px;
}

.normal-credibility-head strong {
  color: #078c8f;
  font-size: 22px;
}

.normal-credibility-score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #f8fafc;
}

.normal-credibility-score span {
  color: #596276;
  font-size: 12px;
  font-weight: 900;
}

.normal-credibility-row.mid .normal-credibility-head strong {
  color: #b36a00;
}

.normal-credibility-row.low .normal-credibility-head strong {
  color: #c22948;
}

.normal-credibility-head small {
  color: #667085;
  font-size: 12px;
  margin-left: 2px;
}

.normal-credibility-qa {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.normal-credibility-qa p {
  margin: 0;
  color: #344158;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.normal-credibility-qa span {
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  height: 22px;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 5px;
  background: #eef2ff;
  color: #4c4f97;
  font-size: 12px;
  font-weight: 900;
}

.normal-credibility-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f6;
}

.normal-credibility-track i {
  display: block;
  height: 100%;
  background: #0b9868;
}

.normal-credibility-row.mid .normal-credibility-track i {
  background: #f0a21a;
}

.normal-credibility-row.low .normal-credibility-track i {
  background: #d9405c;
}

.normal-credibility-reason {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.5;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .normal-candidate-card {
    grid-template-columns: 88px minmax(0, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  }

  .normal-result-fact:nth-child(5),
  .normal-result-fact:nth-child(6) {
    border-top: 1px solid #dfe4ec;
  }

  .normal-result-fact:nth-child(5) {
    border-left: 0;
  }

  .normal-result-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .normal-transcript-video,
  .normal-result-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .normal-result-modal {
    padding: 0;
  }

  .normal-result-shell {
    max-height: 100vh;
    border-radius: 0;
  }

  .normal-result-pane .normal-result-shell {
    max-height: none;
    border-radius: 12px;
  }

  .normal-candidate-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .normal-result-fact {
    min-height: 0;
    border-top: 1px solid #dfe4ec;
    border-left: 0;
  }

  .normal-result-hero {
    grid-template-columns: 1fr;
  }

  .normal-result-hero-score {
    text-align: left;
    border-left: 0;
    border-top: 1px solid #d9e2ea;
    padding: 14px 0 0;
  }

  .normal-result-risk-card {
    grid-template-columns: 1fr;
  }

  .normal-result-risk-card strong {
    justify-self: start;
  }

  .normal-result-grid,
  .normal-result-score-grid {
    grid-template-columns: 1fr;
  }
}

.url-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.url-layout-modal {
  align-items: start;
}

.form-panel,
.preview-panel {
  display: grid;
  gap: 14px;
}

.url-issue-form {
  align-content: start;
}

.shared-axis-fixed-preview {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e1f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 13px 14px;
}

.shared-axis-fixed-preview.warning {
  border-color: #f3c56b;
  background: #fff8e8;
}

.shared-axis-fixed-preview strong {
  display: block;
  color: #182236;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 3px;
}

.shared-axis-fixed-preview p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.shared-axis-fixed-preview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shared-axis-fixed-preview li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #d5dce8;
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.shared-axis-fixed-preview li b {
  color: #3545b6;
}

.interview-type-field {
  display: grid;
  gap: 10px;
}

.interview-type-field h3,
.invitation-copy-block h3 {
  margin: 0;
  color: #12243c;
  font-size: 16px;
  font-weight: 900;
}

.interview-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interview-type-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 72px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  cursor: pointer;
}

.interview-type-option.active {
  border-color: var(--brand);
  background: #f3f2ff;
  box-shadow: inset 0 0 0 1px rgba(91, 95, 169, 0.18);
}

.interview-type-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.interview-type-option strong,
.interview-type-option small {
  display: block;
}

.interview-type-option strong {
  color: #12243c;
  font-size: 15px;
  font-weight: 900;
}

.interview-type-option small {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.case-url-settings {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.case-topic-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.case-topic-summary span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.invitation-copy-block {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e4e8ef;
  padding-top: 14px;
}

.invitation-copy-block textarea {
  width: 100%;
  min-height: 170px;
  border: 1px solid #cfd6e2;
  border-radius: 7px;
  background: #fff;
  color: #1c2c43;
  padding: 12px 14px;
  line-height: 1.65;
  resize: vertical;
}

.url-preview-panel {
  align-content: start;
}

.url-output-panel {
  align-content: start;
  gap: 14px;
}

.url-output-empty {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: center;
  justify-items: start;
  border: 1px dashed #cfd8e7;
  border-radius: 8px;
  background: #fbfcff;
  padding: 24px;
}

.url-output-empty h3 {
  margin: 0;
  color: #12243c;
  font-size: 16px;
  font-weight: 900;
}

.url-output-empty p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.url-preview-badge {
  justify-self: start;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eeecff;
  color: var(--brand);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.url-summary {
  display: grid;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  overflow: hidden;
}

.url-summary-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 9px 12px;
  border-bottom: 1px solid #e8ecf2;
}

.url-summary-row:last-child {
  border-bottom: 0;
}

.url-summary-row span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.url-summary-row b {
  overflow: hidden;
  color: #12243c;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-summary-row button {
  border: 1px solid #008798;
  border-radius: 5px;
  background: #fff;
  color: #008798;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.hint {
  margin: -4px 0 4px;
  color: #68768b;
  font-size: 13px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #12243c;
  font-weight: 900;
}

.switch-row input {
  width: 42px;
  height: 22px;
  accent-color: #0b8794;
}

.copy-line,
.mail-preview,
.warn-box,
.inline-alert {
  border: 1px solid #d2d9e5;
  border-radius: 5px;
  padding: 14px;
  background: #fff;
}

.copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

.copy-line button {
  border: 1px solid #008798;
  color: #008798;
  background: #fff;
  border-radius: 5px;
  padding: 9px 16px;
  font-weight: 900;
}

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

.inline-alert b,
.warn-box {
  color: #c57900;
  background: #fff8e7;
  border-color: #f1c36a;
}

.wide-btn {
  width: 100%;
  min-height: 48px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.detail-top h1 {
  margin: 8px 0;
  font-size: 28px;
}

.detail-top small,
.crumb {
  color: #68768b;
}

.detail-score {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 14px;
}

.detail-score div {
  padding: 18px 24px;
  border-right: 1px solid #e1e6ef;
}

.detail-score div:last-child {
  border-right: 0;
}

.detail-score span {
  display: block;
  font-weight: 900;
}

.detail-score strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  color: #092043;
}

.detail-score b {
  color: #06989a;
}

.result-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: start;
}

.detail-left,
.detail-right,
.settings-stack {
  display: grid;
  gap: 14px;
}

.summary-grid,
.eval-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.eval-grid {
  grid-template-columns: repeat(3, 1fr);
}

.eval-grid h3 {
  display: flex;
  justify-content: space-between;
}

.eval-grid p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5eaf2;
  padding-bottom: 10px;
}

.ai-box {
  min-height: 205px;
  background: #f0f3f7;
  border-radius: 5px;
  padding: 18px;
  line-height: 1.75;
}

.radar-big,
.mini-radar {
  width: 220px;
  height: 220px;
  margin: 10px auto;
  position: relative;
  background: repeating-radial-gradient(circle at center, transparent 0 24px, #d9e0ea 25px 26px), conic-gradient(from 18deg, transparent 0 20%, rgba(0, 150, 160, .22) 20% 40%, transparent 40% 100%);
  clip-path: polygon(50% 2%, 96% 35%, 78% 92%, 22% 92%, 4% 35%);
  border: 3px solid #17a3aa;
}

.mini-radar {
  width: 150px;
  height: 122px;
  border-width: 2px;
  float: right;
}

.mini-radar.orange {
  border-color: #f59a00;
  background: rgba(245, 154, 0, .18);
}

.mini-radar.navy {
  border-color: #0a3a89;
}

.mini-radar span {
  display: none;
}

.video-mock {
  height: 200px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d7dce4, #f1f3f6 42%, #1c2533 43% 47%, #111827);
  position: relative;
  overflow: hidden;
}

.video-mock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: rgba(0, 0, 0, .72);
}

.transcript-list {
  height: 210px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.65;
  color: #405067;
}

.nonverbal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.compare-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.compare-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 14px;
}

.compare-person {
  padding: 18px;
  position: relative;
}

.compare-person h2 {
  margin: 0 0 2px 48px;
}

.compare-person > small {
  display: block;
  margin: 0 0 12px 48px;
  color: #516077;
}

.compare-person > span {
  display: block;
  font-weight: 900;
  color: #2f4058;
}

.compare-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
  border-bottom: 1px solid #dfe4ec;
  padding-bottom: 14px;
}

.compare-score {
  min-width: 132px;
}

.compare-score > span {
  display: block;
  font-weight: 900;
  color: #2f4058;
}

.compare-score > strong {
  display: block;
  font-size: 42px;
  color: #0a3a89;
  margin: 8px 0;
  width: 150px;
  white-space: nowrap;
  line-height: 1.05;
}

.compare-score > strong small {
  font-size: 18px;
  font-weight: 500;
}

.rank {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.rank.navy { background: #082c75; }
.rank.teal { background: #09a49c; }
.rank.orange { background: #ff9d00; }

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

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8dee8;
}

.dots .on { background: #069a9c; }
.dots.navy .on { background: #0b3b89; }
.dots.orange .on { background: #f59a00; }

.horizontal-filter {
  display: flex;
  align-items: end;
  gap: 18px;
}

.horizontal-filter label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.horizontal-filter label:nth-child(1) {
  min-width: 260px;
}

.report-grid {
  grid-template-columns: 0.82fr 1.18fr;
  margin-bottom: 18px;
}

.report-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bar-chart,
.stack-chart,
.column-chart {
  height: 190px;
  border-left: 1px solid #dfe4ec;
  border-bottom: 1px solid #dfe4ec;
}

.bar-chart {
  background:
    linear-gradient(to top, transparent 0 15%, #49c3e6 15% 55%, transparent 55%),
    repeating-linear-gradient(to right, transparent 0 62px, #50c9e8 63px 82px, transparent 83px 112px, #0ea5a5 113px 132px, transparent 133px 164px),
    linear-gradient(15deg, transparent 0 36%, #0d4ea6 37% 39%, transparent 40%);
}

.stack-chart {
  background: repeating-linear-gradient(to bottom, transparent 0 22px, #2f80ed 23px 42px, #12b3a8 42px 62px, #8bd9ec 62px 78px, #0c3472 78px 90px, transparent 91px 100px);
}

.column-chart {
  background: repeating-linear-gradient(to right, transparent 0 58px, #2f80ed 59px 92px, transparent 93px 134px);
}

/* ユーザー・権限管理: 一覧（左）+ 招待カード（右・sticky）。
   旧実装はパネルを全高オーバーレイ(負マージン)で重ねており、ヘッダーボタンや
   テーブル右列が隠れて崩れて見えたため、通常のカード並びに整理。 */
.user-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.user-list-column {
  min-width: 0; /* テーブルの内容幅でグリッド列が膨張して右カラムに重なるのを防止 */
  display: grid;
  gap: 18px;
  align-content: start;
}

.user-layout .list-tools {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  align-items: center;
}

.user-layout .table-card {
  overflow-x: auto; /* 列が多い時はカード内で横スクロール（レイアウトは崩さない） */
}

.user-layout .table-card .ui-table {
  min-width: 760px; /* 実モードの操作列（権限セレクト+ボタン）まで収まる幅 */
}

.user-layout .table-card td:nth-child(5) {
  white-space: nowrap; /* 最終ログイン日時の不自然な折返しを防止 */
}

.invite-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.invite-panel .wide-btn {
  width: 100%;
}

.role-help {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe2f0;
  border-radius: 8px;
  background: #f7f9ff;
  padding: 14px;
}

.role-help > b {
  color: #3b4560;
  font-size: 12px;
  letter-spacing: .02em;
}

.role-help strong {
  color: #283149;
  font-size: 13px;
}

.role-help p {
  margin: 2px 0 0;
  color: #657286;
  font-size: 12px;
  line-height: 1.6;
}

.users-pager {
  flex-wrap: wrap;
  gap: 10px;
}

.users-pager > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

  .invite-panel {
    position: static;
  }
}

.plain-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid #d8dee8;
  margin-bottom: 20px;
}

.plain-tabs span {
  padding: 0 26px 14px;
  font-weight: 900;
  color: #27364e;
}

.plain-tabs .active {
  color: #073f94;
  border-bottom: 3px solid #073f94;
}

.settings-layout {
  grid-template-columns: 0.48fr 1fr;
}

.logo-upload {
  min-height: 86px;
  border: 1px dashed #bac4d2;
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.logo-upload img {
  width: 190px;
  height: 52px;
  object-fit: contain;
}

.logo-upload small {
  grid-column: 2;
  color: #69768a;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 30px;
  margin: 10px 0 18px;
}

.check-grid.two {
  grid-template-columns: repeat(2, 1fr);
}



.round-icon,

.start-hero h1,



.candidate-facts b {
  display: block;
  color: #667287;
  margin-bottom: 6px;
}

.candidate-facts strong {
  font-size: 22px;
  color: #061a34;
}





















.ai-stage {
  min-height: 690px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 26%, #1d4a77, #081d3c 72%);
  color: #fff;
  position: relative;
  padding: 34px;
  display: grid;
  justify-items: center;
  align-content: center;
}

.room-status {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  gap: 12px;
}

.room-status b {
  color: #5fe486;
}

.voice-orb {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 1px solid #54a6df;
  background: radial-gradient(circle, #fff 0 43%, transparent 44%), linear-gradient(90deg, transparent, rgba(82,166,223,.5), transparent);
  box-shadow: 0 0 80px rgba(69, 157, 220, .35);
}

.answering {
  display: inline-flex;
  margin: 24px 0 14px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #3ca85d;
  font-size: 22px;
  font-weight: 900;
}

.question-box {
  width: min(800px, 84%);
  margin-top: 12px;
  background: #fff;
  color: #071a35;
  border-radius: 8px;
  padding: 30px 36px;
}

.question-box h1 {
  font-size: 28px;
  line-height: 1.6;
}

.room-side {
  display: grid;
  gap: 12px;
}

.face-mock {
  height: 182px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dde7da 0 30%, #f4f4f1 30% 100%);
}

.steps p {
  margin: 0;
  padding: 12px;
  border: 1px solid #dfe4ec;
}

.steps .active {
  color: #0a55bd;
  background: #eaf3ff;
  font-weight: 900;
}

.green-text {
  color: #15965b;
}

.room-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: #fff;
  border-top: 1px solid #d8dee8;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 12;
}

.circle-btn,
.hangup {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #d7dde8;
  background: #fff;
  font-size: 24px;
}

.hangup {
  background: #f33a4e;
  color: #fff;
  border-color: #f33a4e;
}






.case-page {
  --case-brand: var(--brand);
  width: 100%;
  min-width: 0;
  padding: 24px;
  color: #101828;
}

.route-case-interviews .topbar {
  display: none;
}

.route-case-interviews .main {
  top: 0;
}

.route-case-interviews .content {
  height: 100%;
  margin-top: 0;
  padding: 0;
}

.route-case-interviews .upgrade-card,
.route-case-interviews .sidebar-rule,
.route-case-interviews .sidebar > .nav-button {
  display: none;
}

.case-page .ui-card {
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.case-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.case-titlebar h1 {
  margin: 0 0 18px;
  color: #101828;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.help-dot {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  vertical-align: 3px;
}

.case-position-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344054;
  font-weight: 800;
  flex-wrap: wrap;
}

.case-position-row select {
  width: min(285px, 100%);
  min-height: 46px;
  border: 1px solid #cfd6e2;
  border-radius: 7px;
  background: #fff;
  padding: 0 16px;
  color: #172033;
  font-weight: 800;
}

.case-position-row b,
.case-card-title b {
  color: var(--brand);
}

.case-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
}

.case-actions .btn {
  min-width: 120px;
}

.case-page .btn:disabled,
.case-page .btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.case-page .btn.danger {
  border-color: #fda29b;
  background: #fff1f3;
  color: #b42318;
}

.case-processing-overlay {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -10px 0 12px;
  padding: 10px 14px;
  border: 1px solid #d7d8f1;
  border-radius: 7px;
  background: #f5f5ff;
  color: var(--brand);
  font-weight: 900;
  box-shadow: 0 1px 6px rgba(16, 24, 40, 0.08);
}

.case-page.is-processing .case-processing-overlay {
  display: block;
}

.case-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(560px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.case-main-grid.case-single-layout {
  grid-template-columns: minmax(0, 1fr);
}

.case-main-grid > * {
  min-width: 0;
}

.case-patterns,
.case-topic-panel,
.case-criteria-panel {
  padding: 16px;
  overflow: hidden;
}

.case-criteria-embedded,
.template-evaluation-panel {
  margin-top: 4px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fbfcff;
}

.case-template-selector {
  margin-bottom: 14px;
}

.case-topic-panel > .case-criteria-embedded {
  margin: 0 0 18px;
}

.case-criteria-embedded .criteria-table,
.template-evaluation-panel .criteria-table {
  min-width: 720px;
}

.template-evaluation-panel .criteria-table {
  min-width: 0;
  table-layout: fixed;
}

.template-evaluation-panel .criteria-table th,
.template-evaluation-panel .criteria-table td {
  padding: 8px 7px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.template-evaluation-panel .criteria-table th:nth-child(1) { width: 24%; }
.template-evaluation-panel .criteria-table th:nth-child(2) { width: 10%; }
.template-evaluation-panel .criteria-table th:nth-child(3) { width: 20%; }
.template-evaluation-panel .criteria-table th:nth-child(4) { width: 16%; }
.template-evaluation-panel .criteria-table th:nth-child(5) { width: 30%; }

.template-evaluation-panel .case-text-input,
.template-evaluation-panel .score-input {
  min-width: 0;
  padding: 8px;
}

.template-evaluation-panel .case-score-range {
  min-width: 0;
}

.template-evaluation-panel .case-row-remove {
  display: block;
  margin-top: 6px;
}

.normal-shared-axis-panel {
  border-color: #dfe4ec;
  background: #fbfcff;
}

.normal-shared-axis-panel .case-card-title {
  margin-bottom: 12px;
}

.normal-shared-axis-panel .case-card-title span {
  align-self: start;
  border: 1px solid #d8ddeb;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.normal-shared-axis-table {
  table-layout: fixed;
}

.normal-shared-axis-table th,
.normal-shared-axis-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.normal-shared-axis-table th:nth-child(1) { width: 26%; }
.normal-shared-axis-table th:nth-child(2) { width: 12%; }
.normal-shared-axis-table th:nth-child(3) { width: 62%; }

.case-criteria-embedded,
.template-evaluation-panel {
  overflow-x: auto;
}

.case-patterns h2,
.case-topic-panel h2,
.case-criteria-panel h2,
.case-preview-flow h2 {
  margin: 0 0 14px;
  color: #101828;
  font-size: 18px;
  font-weight: 900;
}

.case-pattern-list {
  display: grid;
  gap: 10px;
}

.case-pattern-card {
  border: 1px solid #d9deea;
  border-radius: 7px;
  padding: 13px;
  background: #fff;
  cursor: pointer;
}

.case-pattern-card.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.case-pattern-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.case-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  background: #f7f8fb;
  color: #1d2939;
  font-weight: 900;
}

.case-number.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.case-pattern-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d2939;
  font-size: 14px;
}

.case-status-badge {
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.case-status-badge.inactive {
  background: #f2f4f7;
  color: #667085;
}

.case-pattern-card p {
  margin: 9px 0 12px 39px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.case-pattern-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.case-pattern-actions .btn {
  min-height: 34px;
  padding: 0 8px;
  color: var(--brand);
  font-size: 12px;
  box-shadow: none;
}

.case-note {
  margin-top: 22px;
  padding: 12px;
  border-radius: 6px;
  background: #f1f3fa;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.case-topic-panel {
  display: grid;
  gap: 13px;
  align-content: start;
}

.case-topic-panel .ui-field textarea.case-short,
.case-description textarea {
  min-height: 118px;
}

.case-description textarea {
  min-height: 128px;
}

.wait-setting {
  display: grid;
  gap: 10px;
}

.wait-setting h3,
.ai-followup-box h3,
.case-decision-threshold-card h3,
.case-criteria-panel h3 {
  margin: 0;
  color: #1d2939;
  font-size: 15px;
  font-weight: 900;
}

.case-card-title.compact {
  align-items: flex-start;
}

.case-card-title.compact p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.case-decision-threshold-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
}

.case-decision-slider {
  position: relative;
  height: 46px;
}

.case-decision-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #dc2626 0 var(--hold-pct),
    #d97706 var(--hold-pct) var(--hire-pct),
    #16a34a var(--hire-pct) var(--strong-pct),
    #047857 var(--strong-pct) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.case-decision-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.case-decision-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  background: transparent;
}

.case-decision-slider input[type="range"]::-moz-range-track {
  height: 9px;
  background: transparent;
}

.case-decision-slider input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #101828;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.28);
  cursor: grab;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.case-decision-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #101828;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.28);
  cursor: grab;
  pointer-events: auto;
}

.case-decision-threshold-values {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.6;
}

.case-decision-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.case-decision-legend span {
  min-width: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.case-decision-legend .no-hire { background: #dc2626; }
.case-decision-legend .hold { background: #d97706; }
.case-decision-legend .hire { background: #16a34a; }
.case-decision-legend .strong-hire { background: #047857; }

.segment-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.segment-row button {
  min-height: 39px;
  border: 1px solid #d2d9e5;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-weight: 900;
}

.segment-row button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 95, 169, 0.22);
}

.ai-followup-box {
  display: grid;
  gap: 8px;
}

.ai-followup-box p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.case-auto-guidance {
  border: 1px dashed #b8bce7;
  border-radius: 7px;
  background: #fbfbff;
  color: #4b5565;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.case-attachment-box {
  display: grid;
  gap: 12px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.case-attachment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1d2939;
}

.case-attachment-head div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.case-attachment-head span {
  display: block;
  color: #1d2939;
  font-size: 15px;
  font-weight: 900;
}

.case-attachment-head small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.case-attachment-head b {
  flex: 0 0 auto;
  border: 1px solid #d7d8f1;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.case-attachment-content {
  display: grid;
  gap: 12px;
}

.case-attachment-box p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.case-attachment-empty {
  border: 1px dashed #c7d7fe;
  border-radius: 7px;
  color: #475467;
  background: #fff;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
}

.case-attachment-file-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.case-attachment-file-summary b,
.case-attachment-file-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-attachment-file-summary b {
  max-width: 220px;
}

.case-attachment-file-summary small {
  color: #667085;
  flex: 1;
}

.case-attachment-description {
  display: grid;
  gap: 6px;
}

.case-attachment-description textarea {
  min-height: 86px;
  border: 1px solid #d3d9e5;
  border-radius: 7px;
  padding: 10px 12px;
  color: #1d2939;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  resize: vertical;
}

.case-attachment-dropzone {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed #b8bce7;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  text-align: center;
  padding: 14px;
}

.case-attachment-dropzone strong,
.case-attachment-dropzone span {
  display: block;
}

.case-attachment-dropzone strong {
  color: #1d2939;
  font-size: 13px;
  font-weight: 900;
}

.case-attachment-dropzone span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

#caseAttachmentInput {
  display: none;
}

.case-upload-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d7d8f1;
  border-radius: 7px;
  background: #f5f5ff;
  color: var(--brand);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.guidance-row {
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr) 44px 44px;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
}

.guidance-row span {
  color: #98a2b3;
  font-weight: 900;
}

.guidance-row b {
  color: #1d2939;
}

.guidance-row input {
  min-width: 0;
  border: 0;
  color: #1d2939;
  font-weight: 800;
}

.guidance-row button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.add-guidance,
.add-criteria {
  min-height: 34px;
  border: 1px dashed var(--brand);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
}

.case-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.case-card-title span {
  padding: 6px 12px;
  border-radius: 6px;
  background: #f0f1ff;
  color: var(--brand);
  font-weight: 900;
}

.criteria-mode {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.case-criteria-actions {
  margin-bottom: 12px;
}

.criteria-mode label,
.tag-head strong {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.criteria-mode .segment-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 300px;
}

.criteria-tags {
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fbfcff;
}

.tag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.criteria-tag {
  min-height: 30px;
  margin: 0 6px 6px 0;
  border: 1px solid #d3d9e5;
  border-radius: 999px;
  background: #f3f5f9;
  color: #344054;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.criteria-tag.selected {
  border-color: var(--brand);
  background: #ecebff;
  color: var(--brand);
}

.case-tag-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, 0.42);
  padding: 24px;
}

.case-tag-modal {
  width: min(820px, 100%);
  max-height: min(720px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
}

.case-tag-modal-head,
.case-tag-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eaecf0;
}

.case-tag-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid #eaecf0;
  border-bottom: 0;
}

.case-tag-modal .btn {
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  padding: 9px 16px;
  font-weight: 900;
  cursor: pointer;
}

.case-tag-modal .btn:hover {
  background: #f9fafb;
}

.case-tag-modal .btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.case-tag-modal .btn.primary:hover {
  filter: brightness(0.96);
}

.case-tag-modal-head h3 {
  margin: 0;
  font-size: 18px;
  color: #101828;
}

.case-tag-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 900;
  cursor: pointer;
}

.case-tag-modal-body {
  overflow: auto;
  padding: 16px 18px;
}

.case-tag-modal-note {
  margin: 0 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.case-tag-manager-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(240px, 1.6fr) 52px;
  gap: 10px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid #eaecf0;
}

.case-tag-manager-row label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.case-tag-manager-row input,
.case-tag-manager-row textarea {
  min-width: 0;
  border: 1px solid #d3d9e5;
  border-radius: 7px;
  padding: 10px 12px;
  color: #1d2939;
  font: inherit;
  font-weight: 700;
  box-sizing: border-box;
}

.case-tag-manager-row textarea {
  min-height: 76px;
  resize: vertical;
}

.criteria-table {
  width: 100%;
  table-layout: fixed;
}

.criteria-table th,
.criteria-table td {
  padding: 9px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.criteria-table th:nth-child(1) { width: 25%; }
.criteria-table th:nth-child(2) { width: 10%; }
.criteria-table th:nth-child(3) { width: 24%; }
.criteria-table th:nth-child(4) { width: 13%; }
.criteria-table th:nth-child(5) { width: 28%; }

.case-text-input {
  width: 100%;
}

.editable-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid #d7dde8;
  border-radius: 5px;
  padding: 0 8px;
  background: #fff;
  font-weight: 900;
}

.slider-track {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #d9dde7;
}

.slider-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.slider-track b {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.score-input {
  width: 58px;
  min-height: 34px;
  border: 1px solid #d3d9e5;
  border-radius: 6px;
  text-align: center;
  font-weight: 900;
}

.case-score-range {
  width: 100%;
  accent-color: var(--brand);
}

.case-score-text {
  color: #344054;
  font-weight: 900;
  white-space: nowrap;
}

.case-row-remove,
.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rubric-high-readonly {
  min-height: 42px;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #f9fafb;
  color: #344054;
  padding: 8px 10px;
  line-height: 1.45;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.add-criteria {
  width: 100%;
  margin: 8px 0 8px;
}

.score-warning {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #f0c36d;
  border-radius: 6px;
  background: #fff8e6;
  color: #a15c00;
  font-size: 13px;
  font-weight: 900;
}

.score-warning.invalid {
  border-color: #fda29b;
  background: #fff1f3;
  color: #b42318;
}

.rubric-table th,
.rubric-table td {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.case-preview-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.34fr);
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
}

.preview-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  position: relative;
}

.preview-step {
  min-height: 58px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px 10px 52px;
  position: relative;
}

.preview-step::after {
  content: ">";
  position: absolute;
  right: -28px;
  top: 18px;
  color: #98a2b3;
  font-size: 20px;
  font-weight: 900;
}

.preview-step:last-child::after {
  content: none;
}

.preview-step span {
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.preview-step strong,
.preview-step small {
  display: block;
}

.preview-step strong {
  color: #1d2939;
  font-size: 14px;
}

.preview-step small,
.issue-url-card p {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.issue-url-card {
  display: grid;
  gap: 8px;
}

.issue-url-card p {
  margin: 0;
  text-align: center;
}

.wide-btn {
  width: 100%;
}

.case-bottom-actions {
  margin-top: 18px;
}

.case-wide-save {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

@media (max-width: 1580px) and (min-width: 1351px) {
  .case-main-grid {
    grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  }
}

@media (max-width: 1350px) {
  .metric-grid,
  .detail-score,
  .compare-cards,
  .report-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid,
  .url-layout,
  .position-layout,
  .hiring-position-layout,
  .result-detail-layout,
  .report-grid,
  .user-layout,
  .settings-layout,
  .summary-grid,
  .eval-grid {
    grid-template-columns: 1fr;
  }

  .invite-panel {
    margin-top: 0;
    min-height: 0;
  }

  .search-grid.five,
  .search-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-summary,
  .workspace-search-summary,
  .workspace-detail-body {
    grid-template-columns: 1fr;
  }

  .workspace-summary {
    position: relative;
    padding-right: 58px;
  }

  .workspace-summary::after {
    position: absolute;
    right: 16px;
    top: 22px;
  }

  .workspace-search-summary {
    position: relative;
    padding-right: 58px;
  }

  .workspace-search-summary::after {
    position: absolute;
    right: 16px;
    top: 22px;
  }

  .case-page {
    min-width: 0;
  }

  .case-main-grid,
  .case-preview-flow {
    grid-template-columns: 1fr;
  }

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

  .preview-step::after {
    content: none;
  }
}

@media (max-width: 1180px) {
  .criteria-set-layout,
  .template-settings-layout,
  .simple-result-summary-grid,
  .simple-result-action-grid,
  .locked-option-grid {
    grid-template-columns: 1fr;
  }

  .hiring-position-selector-card {
    grid-template-columns: 1fr;
  }

  .position-order-list {
    max-height: 420px;
  }

  .simple-result-candidate-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .simple-result-candidate-card .result-fact,
  .simple-result-candidate-card .result-status-control {
    grid-column: 1 / -1;
  }

  .question-editor-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .generated-question-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .question-meta {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .candidate-add-tabs,
  .template-basic-grid,
  .template-subsection-grid,
  .template-policy-grid,
  .candidate-add-grid,
  .criteria-meta-grid,
  .template-mode-tabs {
    grid-template-columns: 1fr;
  }

  .position-order-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .position-order-actions {
    grid-column: 2;
  }

  .position-order-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .criteria-allocation-head,
  .criteria-even-row {
    align-items: stretch;
    flex-direction: column;
  }

  .criteria-allocation-table {
    display: block;
    overflow-x: auto;
  }

  .option-lock-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

.option-lock-card > .btn {
    grid-column: 1 / -1;
  }
}

/* Stashed dashboard pane */
.cc-dash-page {
  max-width: none;
  overflow-x: hidden;
}

.cc-dash-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cc-dash-titlebar h1 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cc-dash-titlebar p {
  margin: 8px 0 0;
  color: #44506a;
  font-size: 14px;
  font-weight: 600;
}

.cc-dash-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cc-dash-icon-btn,
.cc-dash-date-btn {
  height: 44px;
  border-color: #d9dfec;
  color: #1d2945;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .04);
}

.cc-dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cc-dash-stat-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 16px 14px;
  border: 1px solid #dbe1ec;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(31,41,55,.05);
  overflow: hidden;
}

.cc-dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
  color: #4c4fd4;
  background: #eceeff;
}

.cc-dash-stat-icon.teal {
  color: #159e9d;
  background: #e3f6f6;
}

.cc-dash-stat-card b {
  display: block;
  color: #18203a;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cc-dash-stat-card strong {
  display: block;
  margin-top: 7px;
  color: #4c4fd4;
  font-size: 29px;
  line-height: 1;
  white-space: nowrap;
}

.cc-dash-stat-card strong small {
  margin-left: 4px;
  color: inherit;
  font-size: 18px;
}

.cc-dash-stat-card p {
  margin: 8px 0 0;
  color: #44506a;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cc-dash-policy-strip {
  display: grid;
  grid-template-columns: 180px 365px 1px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 82px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1px solid #dbe1ec;
  border-radius: 8px;
}

.cc-dash-policy-strip h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
}

.cc-dash-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #bfc8dc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.cc-dash-segment button {
  min-height: 45px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #18203a;
  font-weight: 800;
}

.cc-dash-segment button.active {
  background: #4644c0;
  color: #fff;
}

.cc-dash-vline {
  width: 1px;
  height: 54px;
  background: #dbe1ec;
}

.cc-dash-policy-threshold {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-dash-policy-threshold b {
  color: #172033;
}

.cc-dash-policy-threshold span {
  padding: 7px 10px;
  border: 1px solid #aeb5ff;
  border-radius: 4px;
  background: #f4f4ff;
  color: #4344c0;
  font-weight: 800;
}

.cc-dash-policy-threshold span.teal {
  border-color: #8bd6d5;
  background: #eafafa;
  color: #089391;
}

.cc-dash-policy-threshold em {
  color: #44506a;
  font-style: normal;
}

.cc-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.cc-dash-panels .ui-card,
.cc-dash-latest-card {
  border-radius: 8px;
}

.cc-dash-panels h2,
.cc-dash-latest-card h2 {
  margin: 0 0 12px;
  color: #16203b;
  font-size: 18px;
}

.cc-dash-chart-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.cc-dash-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 999px;
  background: currentColor;
}

.cc-dash-chart-legend .indigo { color: #4142d0; }
.cc-dash-chart-legend .teal { color: #139b9a; }

.cc-dash-line-chart {
  min-height: 210px;
}

.cc-dash-line-chart svg {
  width: 100%;
  height: 210px;
}

.cc-dash-line-chart line {
  stroke: #e7ebf2;
}

.cc-dash-line-chart path {
  fill: none;
  stroke: #4f5fb7;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-dash-line-chart polyline {
  fill: none;
  stroke: #13a66b;
  stroke-width: 3;
}

.cc-dash-line-chart text {
  fill: #7d8798;
  font-size: 12px;
}

.cc-dash-line-chart .cc-dash-chart-empty {
  fill: #9aa3b2;
  font-size: 13px;
  font-weight: 700;
}

.cc-dash-line-chart .axis-label,
.cc-dash-line-chart .axis-unit {
  fill: #5e6a82;
  font-size: 12px;
  font-weight: 700;
}

.cc-dash-line-chart .series-points circle {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 2;
}

.cc-dash-line-chart .series-points text {
  fill: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.cc-dash-line-chart .series-points.indigo {
  color: #4142d0;
}

.cc-dash-line-chart .series-points.teal {
  color: #139b9a;
}

.cc-dash-footnote {
  margin: 4px 0 0;
  color: #536176;
  font-size: 12px;
}

.cc-dash-pattern-table th,
.cc-dash-pattern-table td,
.cc-dash-image-table th,
.cc-dash-image-table td {
  border: 1px solid #e2e6ef;
  vertical-align: middle;
}

.cc-dash-pattern-table {
  table-layout: fixed;
  width: 100%;
  font-size: 13px;
}

.cc-dash-pattern-table th:nth-child(1),
.cc-dash-pattern-table td:nth-child(1) {
  width: 35%;
  white-space: nowrap;
}

.cc-dash-pattern-table th:nth-child(2),
.cc-dash-pattern-table td:nth-child(2) {
  width: 16%;
}

.cc-dash-pattern-table th:nth-child(3),
.cc-dash-pattern-table td:nth-child(3) {
  width: 29%;
}

.cc-dash-pattern-table th:nth-child(4),
.cc-dash-pattern-table td:nth-child(4) {
  width: 20%;
  white-space: nowrap;
}

.cc-dash-pattern-table th,
.cc-dash-pattern-table td {
  padding: 11px 10px;
}

.cc-dash-image-table {
  table-layout: fixed;
  width: 100%;
}

.cc-dash-image-table th,
.cc-dash-image-table td {
  padding: 11px 12px;
}

.cc-dash-image-table th:nth-child(1) { width: 9%; }
.cc-dash-image-table th:nth-child(2) { width: 13%; }
.cc-dash-image-table th:nth-child(3) { width: 13%; }
.cc-dash-image-table th:nth-child(4) { width: 16%; }
.cc-dash-image-table th:nth-child(5) { width: 16%; }
.cc-dash-image-table th:nth-child(6) { width: 13%; }
.cc-dash-image-table th:nth-child(7) { width: 20%; }

.cc-dash-pattern-table i {
  display: inline-block;
  width: 70px;
  height: 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b4fd2 var(--w, 80%), #e4e8f0 0);
  vertical-align: middle;
}

.cc-dash-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4c4fd4;
}

.cc-dash-status-dot.indigo { background: #5357b8; }
.cc-dash-status-dot.teal { background: #149c9a; }
.cc-dash-status-dot.blue { background: #2470d8; }
.cc-dash-status-dot.gray { background: #7d879d; }

.cc-dash-mail {
  display: inline-block;
  margin-left: 8px;
  color: #8f98ad;
  font-size: 12px;
  transform: translateY(-1px);
}

.cc-dash-mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cc-dash-mini-tags span {
  padding: 5px 8px;
  border-radius: 4px;
  background: #eef0f7;
  color: #3d4661;
  font-size: 12px;
  font-weight: 800;
}

.cc-dash-mini-tags span:nth-child(2) {
  background: #ededff;
  color: #4745cf;
}

.cc-dash-mini-tags span:nth-child(3) {
  background: #e9f8f8;
  color: #07908e;
}

.cc-dash-decision,
.cc-dash-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cc-dash-doc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cc-dash-doc-tag.interview {
  border: 1px solid #f4c46f;
  background: #fff6df;
  color: #ea8a00;
}

.cc-dash-doc-tag.reject {
  border: 1px solid #ffb6b4;
  background: #fff0f0;
  color: #f04438;
}

.cc-dash-doc-tag.pass {
  border: 1px solid #f4c46f;
  background: #fff8d9;
  color: #d67a00;
}

.cc-dash-decision.pass {
  background: #eaf8f1;
  color: #0e8a58;
  border: 1px solid rgba(14, 138, 88, .22);
}

.cc-dash-decision.check {
  background: #fff7e6;
  color: #b76a00;
  border: 1px solid rgba(183, 106, 0, .22);
}

.cc-dash-decision.stop,
.cc-dash-empty {
  background: #f4f6fb;
  color: #667085;
  border: 1px solid #dce2ed;
}

.cc-dash-score-text {
  color: #141b34;
  font-size: 16px;
}

.cc-dash-check {
  margin-left: 8px;
  color: #0b9a8d;
  font-size: 12px;
}

.cc-dash-table-action {
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid #aeb5ef;
  border-radius: 5px;
  background: #fff;
  color: #4548c5;
  font-weight: 800;
  white-space: nowrap;
}

.cc-dash-action-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.cc-dash-pattern-table tr.total td {
  background: #f7f8fc;
  font-weight: 800;
}

.cc-dash-square-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 30px;
  border: 1px solid #aeb5ef;
  border-radius: 5px;
  background: #fff;
  color: #4548c5;
}

@media (max-width: 1320px) {
  .cc-dash-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cc-dash-panels,
  .cc-dash-policy-strip {
    grid-template-columns: 1fr;
  }
}

/* Stashed candidate pane */
.cc-page {
  max-width: none;
}

.cc-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cc-titlebar h1 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cc-titlebar p {
  margin: 8px 0 0;
  color: #44506a;
  font-size: 14px;
  font-weight: 600;
}

.cc-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cc-icon-btn {
  height: 44px;
  border-color: #d9dfec;
  color: #1d2945;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .04);
}

.cc-search-card {
  display: grid;
  grid-template-columns: 1.9fr repeat(4, minmax(0, 1fr)) 170px;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #dbe1ec;
  border-radius: 8px;
}

.cc-search-card label {
  display: grid;
  gap: 7px;
  color: #2c3550;
  font-size: 12px;
  font-weight: 800;
}

.cc-search-card label.wide {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7deea;
  border-radius: 5px;
  color: #5c6680;
}

.cc-search-card input,
.cc-search-card select {
  height: 42px;
  min-width: 0;
  border: 1px solid #d7deea;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
}

.cc-search-card label.wide input {
  flex: 1;
  height: auto;
  border: 0;
}

.cc-candidates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.candidate-modern-page {
  max-width: 1440px;
  margin: 0 auto;
}

.candidate-modern-page .ui-head {
  align-items: center;
  margin-bottom: 16px;
}

.candidate-modern-page .ui-head h1 {
  font-size: clamp(28px, 3vw, 36px);
}

.candidate-modern-page .workspace-search {
  border-color: #dde5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 33, 61, .07);
}

.candidate-modern-page .workspace-search-summary {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf5;
}

.candidate-modern-page .workspace-search-summary > div {
  min-width: 240px;
  flex: 1 1 420px;
}

.candidate-modern-page .workspace-search-summary strong {
  font-size: 16px;
}

.candidate-modern-page .workspace-search-summary span {
  max-width: 760px;
}

.candidate-modern-page .workspace-primary-filters,
.candidate-modern-page .workspace-filters {
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.candidate-modern-page .ui-field span,
.candidate-modern-page .date-pair > span {
  color: #42506a;
  font-size: 12px;
  font-weight: 900;
}

.candidate-modern-page .ui-field input,
.candidate-modern-page .ui-field select,
.candidate-modern-page .date-pair input {
  border-color: #d8e0eb;
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.candidate-modern-page .ui-field input:focus,
.candidate-modern-page .ui-field select:focus,
.candidate-modern-page .date-pair input:focus {
  outline: 3px solid rgba(12, 135, 132, .12);
  border-color: #0c8784;
  background: #fff;
}

.candidate-modern-page .workspace-detail-search summary {
  color: #26334d;
}

.candidate-modern-page .workspace-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.candidate-modern-page .workspace-stat {
  min-height: 74px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 33, 61, .06);
}

.candidate-modern-page .workspace-stat span {
  color: #5b687c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.candidate-modern-page .workspace-stat strong {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1;
}

.candidate-modern-page .workspace-stat small {
  margin-left: 2px;
  font-size: 12px;
}

.candidate-modern-page .workspace-crosscheck-list {
  overflow: hidden;
  border-color: #dde5ef;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(20, 33, 61, .08);
}

.candidate-modern-page .workspace-map-card,
.cc-dash-page .workspace-map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 135, 132, .08), rgba(112, 72, 232, .06) 48%, rgba(255, 255, 255, .96) 100%),
    #fff;
  box-shadow: 0 18px 48px rgba(20, 33, 61, .1);
}

.candidate-map-title {
  align-items: flex-start;
  margin-bottom: 12px;
}

.candidate-map-title h2 {
  margin: 0 0 4px;
  color: #0f1c33;
  font-size: 22px;
  line-height: 1.25;
}

.candidate-map-title p {
  margin: 0;
  color: #5b687c;
  font-size: 13px;
  font-weight: 700;
}

.candidate-map-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.candidate-map-actions .ui-field {
  min-width: 220px;
  margin: 0;
}

.candidate-map-actions .ui-field span {
  font-size: 11px;
}

.candidate-map-actions .ui-field select {
  min-height: 34px;
  font-size: 12px;
}

.cc-dash-eval-panel {
  min-height: 100%;
}

.cc-dash-eval-panel h2 {
  margin: 0 0 14px;
}

.cc-dash-eval-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cc-dash-eval-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.cc-dash-eval-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.cc-dash-eval-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.cc-dash-eval-grid small {
  margin-left: 2px;
  font-size: 11px;
}

.cc-dash-progress-list {
  display: grid;
  gap: 10px;
}

.cc-dash-progress-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto 92px auto;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.cc-dash-progress-row i {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.cc-dash-progress-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: inherit;
  background: #4f46e5;
}

.cc-dash-progress-row i.teal::before {
  background: #0f9f9a;
}

.cc-dash-progress-row i.orange::before {
  background: #d97706;
}

.cc-dash-progress-row em {
  color: #64748b;
  font-style: normal;
}

.candidate-map-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: #42506a;
  font-size: 11px;
  font-weight: 900;
}

.candidate-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.candidate-map-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0c8784;
}

.candidate-map-legend .case::before {
  background: #7048e8;
}

.candidate-map-legend .ai::before {
  background: linear-gradient(135deg, #22d3ee 0%, #14b8a6 52%, #4f46e5 100%);
}

.candidate-map-legend .pass::before {
  background: #fff;
  border: 2px solid #0b8f65;
}

.candidate-map-wrap {
  position: relative;
  width: 100%;
  border: 1px solid rgba(205, 214, 226, .9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(12, 135, 132, .08), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(112, 72, 232, .08), transparent 30%),
    linear-gradient(180deg, rgba(248, 251, 253, .96) 0%, #fff 100%);
  overflow: hidden;
}

.candidate-map-svg {
  display: block;
  width: 100%;
  min-height: 290px;
}

.candidate-map-plot {
  fill: rgba(255, 255, 255, .9);
  stroke: rgba(203, 213, 225, .72);
  stroke-width: 1.2;
}

.candidate-map-pass-area {
  pointer-events: none;
  mix-blend-mode: multiply;
}

.candidate-map-pass-area.interview {
  fill: rgba(12, 135, 132, .075);
}

.candidate-map-pass-area.normal {
  fill: rgba(12, 135, 132, .085);
}

.candidate-map-pass-area.case {
  fill: rgba(112, 72, 232, .07);
}

.candidate-map-pass-area.average {
  fill: rgba(11, 143, 101, .075);
}

.candidate-map-pass-area.ai {
  fill: rgba(20, 184, 166, .08);
}

.candidate-map-pass-area.document {
  fill: rgba(11, 143, 101, .065);
}

.candidate-map-grid line {
  stroke: rgba(226, 232, 240, .92);
  stroke-width: 1;
}

.candidate-map-grid text {
  fill: #697589;
  font-size: 11px;
  font-weight: 800;
}

.candidate-map-axis-label {
  fill: #2f3a52;
  font-size: 12px;
  font-weight: 900;
}

.candidate-map-threshold line {
  stroke-width: 3.2;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  filter: url(#candidateMapLineGlow);
  opacity: .92;
}

.candidate-map-threshold text {
  stroke: none;
  font-size: 11px;
  font-weight: 900;
}

.candidate-map-threshold.document line,
.candidate-map-threshold.document text {
  stroke: #ce8a00;
  fill: #8a5b00;
}

.candidate-map-threshold.normal line,
.candidate-map-threshold.normal text {
  stroke: #0c8784;
  fill: #0a6f6d;
}

.candidate-map-threshold.case line,
.candidate-map-threshold.case text {
  stroke: #7048e8;
  fill: #5b37c8;
}

.candidate-map-threshold.average line,
.candidate-map-threshold.average text {
  stroke: #0b8f65;
  fill: #08724f;
}

.candidate-map-threshold.ai line,
.candidate-map-threshold.ai text {
  stroke: #0f9f9a;
  fill: #087a76;
}

.candidate-map-threshold text {
  stroke: none;
}

.candidate-map-dot {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 2.2;
  filter: url(#candidateMapDotShadow);
  paint-order: stroke fill;
  transition: r .14s ease, stroke-width .14s ease, opacity .14s ease, transform .14s ease;
}

.candidate-map-dot.normal {
  fill: url(#candidateMapDotNormal);
}

.candidate-map-dot.case {
  fill: url(#candidateMapDotCase);
}

.candidate-map-dot.ai {
  fill: url(#candidateMapDotAi);
}

.candidate-map-dot.hold {
  opacity: .72;
}

.candidate-map-dot.pass {
  stroke: #ecfdf5;
  stroke-width: 3;
}

.candidate-map-dot:hover {
  opacity: 1;
  stroke: #111827;
  stroke-width: 3.2;
}

.candidate-map-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: min(340px, calc(100% - 24px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96)),
    #0f172a;
  color: #e5edf8;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .32);
  pointer-events: none;
}

.candidate-map-tooltip[hidden] {
  display: none;
}

.candidate-map-tooltip strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.candidate-map-tooltip span {
  color: #cbd6e5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.workspace-map-empty {
  display: grid;
  min-height: 156px;
  place-items: center;
  border: 1px dashed #d8e0eb;
  border-radius: 8px;
  background: #fbfcfe;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.candidate-list-title {
  align-items: flex-start;
  margin-bottom: 18px;
}

.candidate-list-title h2 {
  margin: 9px 0 4px;
  color: #0f1c33;
  font-size: 21px;
  line-height: 1.25;
}

.candidate-list-title p {
  margin: 0;
  color: #5b687c;
  font-size: 13px;
  font-weight: 700;
}

.candidate-list-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fbfcfe;
  color: #39465e;
  font-weight: 900;
}

.candidate-list-title select {
  height: 30px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  background: #fff;
  color: #26334d;
  font-weight: 800;
}

.cc-sort-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cc-sort-header span,
.cc-sort-header small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-sort-header small {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #7a8496;
  font-size: 11px;
  line-height: 1.25;
}

.cc-sort-header b {
  grid-row: 1 / span 1;
  grid-column: 2;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #7a8496;
  font-size: 11px;
  line-height: 1;
}

.cc-sort-header:hover b,
.cc-sort-header.active b {
  background: rgba(12, 135, 132, .1);
  color: #0c8784;
}

.cc-policy-strip {
  display: grid;
  align-items: center;
  min-height: 82px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1px solid #dbe1ec;
  border-radius: 8px;
}

.cc-policy-strip.candidates {
  grid-template-columns: 170px 345px minmax(0, 1fr);
  gap: 22px;
}

.cc-policy-strip h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
}

.cc-policy-strip.candidates .cc-condition-line {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4f7fb;
  color: #33405c;
}

.cc-policy-strip.candidates p {
  margin: 4px 0 0;
  color: #536176;
}

.cc-segment.image6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid #bfc8dc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.cc-segment.image6 button {
  min-height: 45px;
  border: 0;
  border-radius: 0;
  color: #18203a;
  background: #fff;
  font-weight: 800;
}

.cc-segment.image6 button.active {
  background: #4644c0;
  color: #fff;
  box-shadow: none;
}

.cc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.candidate-modern-page .cc-table-scroll {
  margin: 0;
  border-top: 1px solid #e7edf5;
  overflow-x: visible;
}

.cc-image-table th,
.cc-image-table td {
  border: 1px solid #e2e6ef;
}

.cc-candidates-image-table {
  min-width: 1040px;
  table-layout: fixed;
}

.cc-candidates-image-table th,
.cc-candidates-image-table td {
  padding: 8px 8px;
  font-size: 12px;
  vertical-align: middle;
}

.candidate-modern-page .cc-candidates-image-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.candidate-modern-page .cc-candidates-image-table th,
.candidate-modern-page .cc-candidates-image-table td {
  border: 0;
  border-bottom: 1px solid #e9eef5;
  padding: 10px 7px;
  font-size: 11px;
}

.candidate-modern-page .cc-candidates-image-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #3b465c;
  font-size: 10px;
  text-transform: none;
}

.candidate-modern-page .cc-candidates-image-table tbody tr {
  transition: background .16s ease, box-shadow .16s ease;
}

.candidate-modern-page .cc-candidates-image-table tbody tr:hover td {
  background: #fbfefd;
}

.candidate-modern-page .cc-candidates-image-table tbody tr:last-child td {
  border-bottom: 0;
}

.cc-candidates-image-table th {
  line-height: 1.25;
}

.cc-candidates-image-table th small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.cc-candidates-image-table th:last-child,
.cc-candidates-image-table td:last-child {
  position: static;
  background: #fff;
  box-shadow: none;
}

.cc-candidates-image-table th:last-child {
  background: #f7f8fb;
}

.cc-candidates-image-table th:nth-child(1),
.cc-candidates-image-table td:nth-child(1) { width: 11%; }
.cc-candidates-image-table th:nth-child(2),
.cc-candidates-image-table td:nth-child(2) { width: 9%; }
.cc-candidates-image-table th:nth-child(3),
.cc-candidates-image-table td:nth-child(3) { width: 7%; }
.cc-candidates-image-table th:nth-child(4),
.cc-candidates-image-table td:nth-child(4) { width: 8%; }
.cc-candidates-image-table th:nth-child(5),
.cc-candidates-image-table td:nth-child(5) { width: 9%; }
.cc-candidates-image-table th:nth-child(6),
.cc-candidates-image-table td:nth-child(6) { width: 9%; }
.cc-candidates-image-table th:nth-child(7),
.cc-candidates-image-table td:nth-child(7) { width: 9%; }
.cc-candidates-image-table th:nth-child(8),
.cc-candidates-image-table td:nth-child(8) { width: 9%; }
.cc-candidates-image-table th:nth-child(9),
.cc-candidates-image-table td:nth-child(9) { width: 18%; }
.cc-candidates-image-table th:nth-child(10),
.cc-candidates-image-table td:nth-child(10) { width: 11%; }

.cc-candidates-image-table td:nth-child(9) {
  white-space: normal;
}

.cc-wrap-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.cc-basis-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.cc-candidate-cell {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.cc-candidate-cell > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1f8;
  color: #3b4664;
  font-weight: 900;
}

.candidate-modern-page .cc-candidate-cell {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
}

.candidate-modern-page .cc-candidate-cell > span {
  width: 28px;
  height: 28px;
  background: #eef1f8;
  color: #3b4664;
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, .08);
}

.cc-candidate-cell small {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.candidate-modern-page .cc-candidate-cell small {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
  line-height: 1.25;
}

.cc-cand-link {
  display: inline-block;
  color: #4f5fb7;
  cursor: pointer;
  white-space: nowrap;
}

.candidate-modern-page .cc-cand-link {
  color: #12243c;
  font-size: 12px;
  font-weight: 900;
  white-space: normal;
}

.candidate-modern-page .cc-cand-link:hover {
  color: #4f5fb7;
}

.cc-cand-link:hover {
  text-decoration: underline;
}

.cc-mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cc-mini-tags span {
  padding: 4px 6px;
  border-radius: 4px;
  background: #eef0f7;
  color: #3d4661;
  font-size: 11px;
  font-weight: 800;
}

.candidate-modern-page .cc-mini-tags span {
  border-radius: 999px;
  padding: 4px 6px;
  background: #f0f4f8;
  font-size: 10px;
}

.cc-mini-tags span:nth-child(2) {
  background: #ededff;
  color: #4745cf;
}

.cc-mini-tags span:nth-child(3) {
  background: #e9f8f8;
  color: #07908e;
}

.cc-decision,
.cc-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.candidate-modern-page .cc-decision,
.candidate-modern-page .cc-empty {
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  white-space: normal;
  text-align: center;
}

.cc-decision.pass {
  background: #eaf8f1;
  color: #0e8a58;
  border: 1px solid rgba(14, 138, 88, .22);
}

.cc-decision.check {
  background: #fff7e6;
  color: #b76a00;
  border: 1px solid rgba(183, 106, 0, .22);
}

.cc-decision.stop {
  background: #f4f6fb;
  color: #667085;
  border: 1px solid #dce2ed;
}

.cc-decision.neutral,
.cc-empty {
  background: #eef1f8;
  color: #667085;
  border: 1px solid #dbe1ec;
}

.cc-decision-status {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
  width: 100%;
}

.cc-decision-status .decision-tag,
.cc-decision-status .decision-muted {
  justify-self: center;
  margin-inline: auto;
  text-align: center;
}

.cc-decision-status small {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.cc-decision-status .cc-decision-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.cc-decision-source.confirmed {
  background: #e8f7ef;
  color: #0b7f4a;
  border: 1px solid #a8dfbf;
}

.cc-decision-source.provisional {
  background: #eef4ff;
  color: #3159d4;
  border: 1px solid #b9c9ff;
}

.cc-decision-source.tentative {
  background: #fff4df;
  color: #a16207;
  border: 1px solid #f4ca7a;
}

.cc-decision-status em {
  color: #8b95a8;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.cc-bulk-confirm-btn {
  border-color: #b9c9ff;
  background: #eef4ff;
  color: #3159d4;
  font-weight: 900;
}

.cc-bulk-confirm-btn:hover {
  background: #dfe9ff;
}

.cc-num {
  color: #141b34;
  font-size: 16px;
}

.cc-num.teal {
  color: #089391;
  font-size: 19px;
}

.cc-num.orange {
  color: #de7300;
  font-size: 19px;
}

.cc-num.low {
  color: #d92d20;
  font-size: 19px;
}

.cc-score-cell {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  line-height: 1.15;
  text-align: center;
}

.candidate-modern-page .cc-score-cell {
  min-height: 42px;
  align-content: center;
}

.candidate-modern-page .cc-score-cell small {
  font-size: 9px;
}

.candidate-modern-page .cc-std-score {
  font-size: 17px;
}

.candidate-modern-page .cc-score-cell.gap .cc-std-score {
  font-size: 17px;
}

.cc-score-cell small {
  flex-basis: 100%;
  color: #667085;
  font-size: 10px;
  line-height: 1.25;
}

.cc-std-score {
  color: #141b34;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.cc-std-score.teal {
  color: #089391;
}

.cc-std-score.orange {
  color: #de7300;
}

.cc-std-score.low {
  color: #d92d20;
}

.cc-raw-score {
  color: #596276;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cc-score-cell.gap .cc-std-score {
  font-size: 20px;
}

.cc-check {
  margin-left: 8px;
  color: #0b9a8d;
  font-size: 12px;
}

.cc-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4c4fd4;
}

.cc-status-dot.indigo { background: #5357b8; }
.cc-status-dot.teal { background: #149c9a; }
.cc-status-dot.blue { background: #2470d8; }
.cc-status-dot.gray { background: #7d879d; }

.cc-small-outline {
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid #aeb5ef;
  border-radius: 5px;
  background: #fff;
  color: #4548c5;
  font-weight: 800;
}

.cc-op-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 86px;
}

.cc-op-actions .cc-small-outline {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.candidate-modern-page .cc-op-actions .cc-small-outline {
  min-height: 27px;
  padding: 5px 6px;
  border-radius: 5px;
  border-color: #aeb5ef;
  color: #4548c5;
  background: #fff;
  font-size: 10px;
}

.cc-op-actions .cc-op-primary {
  background: #4f5fb7;
  border-color: #4f5fb7;
  color: #fff;
}

.candidate-modern-page .cc-op-actions .cc-op-primary {
  background: #4f5fb7;
  border-color: #4f5fb7;
  color: #fff;
}

.cc-op-actions .cc-op-primary:hover {
  background: #44509e;
}

.candidate-modern-page .cc-op-actions .cc-op-primary:hover {
  background: #44509e;
  color: #fff;
}

.cc-op-actions .cc-small-outline:hover {
  border-color: #8f97df;
}

.cc-footnote {
  margin: 10px 0 0;
  color: #536176;
  font-size: 12px;
}

.cc-side-summary {
  align-self: start;
}

.cc-side-summary h2 {
  margin: 0 0 18px;
  font-size: 17px;
}

.cc-side-summary p {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
  color: #27324a;
}

.cc-side-summary p > span {
  white-space: normal;
  line-height: 1.35;
}

.cc-side-summary p > i {
  width: 12px;
  height: 12px;
}

.cc-side-summary p em {
  grid-column: 2 / -1;
  color: #4c5872;
  font-style: normal;
  padding-left: 26px;
}

.cc-side-summary p b {
  color: #15203c;
  font-size: 18px;
  white-space: nowrap;
}

.cc-side-summary p b.teal {
  color: #089391;
}

.cc-side-summary p b.orange {
  color: #de7300;
}

.cc-side-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cc-side-total b {
  color: #4b4fd2;
  font-size: 30px;
}

.cc-side-summary hr {
  border: 0;
  border-top: 1px solid #e2e6ef;
  margin: 24px 0;
}

@media (max-width: 1320px) {
  .cc-search-card,
  .cc-candidates-layout,
  .cc-policy-strip.candidates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .candidate-modern-page .ui-head {
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .candidate-modern-page .ui-head h1 {
    font-size: 26px;
    line-height: 1.2;
    word-break: keep-all;
  }

  .candidate-modern-page .ui-head p {
    font-size: 13px;
    line-height: 1.55;
  }

  .candidate-modern-page .ui-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .candidate-modern-page .ui-actions .btn {
    flex: 1 1 132px;
    white-space: nowrap;
  }

  .candidate-modern-page .workspace-primary-filters,
  .candidate-modern-page .workspace-filters {
    grid-template-columns: 1fr;
  }

  .candidate-modern-page .workspace-filters .date-pair {
    grid-column: auto;
  }

  .candidate-modern-page .workspace-search-summary > div {
    min-width: 0;
    flex-basis: 100%;
  }

  .candidate-modern-page .workspace-search-summary .search-btn {
    width: 100%;
  }

  .candidate-modern-page .workspace-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-modern-page .workspace-stat {
    min-height: 96px;
    padding: 14px;
  }

  .candidate-modern-page .workspace-stat strong {
    font-size: 26px;
  }

  .candidate-list-title {
    display: grid;
    gap: 12px;
  }

  .candidate-list-title > span {
    justify-content: space-between;
    width: 100%;
  }

  .candidate-modern-page .cc-table-scroll {
    margin: 0;
    overflow-x: hidden;
  }

  .candidate-modern-page .cc-candidates-image-table,
  .candidate-modern-page .cc-candidates-image-table thead,
  .candidate-modern-page .cc-candidates-image-table tbody,
  .candidate-modern-page .cc-candidates-image-table tr,
  .candidate-modern-page .cc-candidates-image-table th,
  .candidate-modern-page .cc-candidates-image-table td {
    display: block;
    width: 100% !important;
  }

  .candidate-modern-page .cc-candidates-image-table thead {
    display: none;
  }

  .candidate-modern-page .cc-candidates-image-table tbody tr {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    background: #fff;
    min-width: 0;
  }

  .candidate-modern-page .cc-candidates-image-table td {
    display: grid;
    grid-template-columns: minmax(0, 82px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 0;
    border: 0;
    font-size: 12px;
    min-width: 0;
  }

  .candidate-modern-page .cc-candidates-image-table td > * {
    min-width: 0;
  }

  .candidate-modern-page .cc-candidates-image-table td::before {
    color: #5b687c;
    font-size: 11px;
    font-weight: 900;
  }

  .candidate-modern-page .cc-candidates-image-table td:nth-child(1)::before { content: "候補者"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(2)::before { content: "ポジション"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(3)::before { content: "実施済み"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(4)::before { content: "書類分析"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(5)::before { content: "通常面接"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(6)::before { content: "ケース面接"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(7)::before { content: "判定"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(8)::before { content: "合否・判定"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(9)::before { content: "根拠"; }
  .candidate-modern-page .cc-candidates-image-table td:nth-child(10)::before { content: "操作"; }

  .candidate-modern-page .cc-candidates-image-table td.muted-note {
    display: block;
    padding: 10px 0;
    text-align: left;
  }

  .candidate-modern-page .cc-candidates-image-table td.muted-note::before {
    content: none;
  }

  .candidate-modern-page .cc-op-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .candidate-modern-page .cc-op-actions .cc-small-outline {
    min-width: 0;
    width: auto;
    flex: 1 1 72px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .candidate-modern-page .workspace-pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .candidate-modern-page .workspace-pager strong {
    white-space: normal;
    word-break: keep-all;
  }

.candidate-modern-page .workspace-pager > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Modern admin surfaces: hiring positions, reports, activity, users, settings, support. */
.route-hiring-positions .content,
.route-reports .content,
.route-activity .content,
.route-users .content,
.route-settings .content,
.route-support .content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56), rgba(247, 248, 251, 0) 260px),
    var(--page);
}

.route-hiring-positions .ui-head,
.route-reports .ui-head,
.route-activity .ui-head,
.route-users .ui-head,
.route-settings .ui-head,
.route-support .ui-head {
  max-width: 1440px;
  margin: 0 auto 18px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(223, 228, 236, .76);
}

.route-hiring-positions .ui-head h1,
.route-reports .ui-head h1,
.route-activity .ui-head h1,
.route-users .ui-head h1,
.route-settings .ui-head h1,
.route-support .ui-head h1 {
  font-size: clamp(28px, 3vw, 36px);
}

.route-hiring-positions .ui-card,
.route-reports .ui-card,
.route-activity .activity-filter-card,
.route-activity .activity-list-card,
.route-users .ui-card,
.route-settings .ui-card,
.route-support .support-content,
.route-support .support-menu {
  border: 1px solid #dde5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 33, 61, .07);
}

.route-hiring-positions .ui-pad,
.route-reports .ui-pad,
.route-users .ui-pad,
.route-settings .ui-pad {
  padding: 20px;
}

.route-hiring-positions .ui-field input,
.route-hiring-positions .ui-field select,
.route-hiring-positions .ui-field textarea,
.route-reports .horizontal-filter input,
.route-reports .horizontal-filter select,
.route-users .list-tools input,
.route-users .list-tools select,
.route-users .user-role-select,
.route-settings .ui-field input,
.route-settings .ui-field select,
.route-settings .ui-field textarea,
.route-support .support-search input,
.route-support .support-contact-card input,
.route-support .support-contact-card select,
.route-support .support-contact-card textarea,
.route-activity .activity-filter-row select {
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #fbfcfe;
  color: #12243c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.route-hiring-positions .ui-field input:focus,
.route-hiring-positions .ui-field select:focus,
.route-hiring-positions .ui-field textarea:focus,
.route-reports .horizontal-filter input:focus,
.route-reports .horizontal-filter select:focus,
.route-users .list-tools input:focus,
.route-users .list-tools select:focus,
.route-users .user-role-select:focus,
.route-settings .ui-field input:focus,
.route-settings .ui-field select:focus,
.route-settings .ui-field textarea:focus,
.route-support .support-search input:focus,
.route-support .support-contact-card input:focus,
.route-support .support-contact-card select:focus,
.route-support .support-contact-card textarea:focus,
.route-activity .activity-filter-row select:focus {
  outline: 3px solid rgba(79, 95, 183, .14);
  border-color: #4f5fb7;
  background: #fff;
}

.route-hiring-positions .ui-table,
.route-reports .ui-table,
.route-users .ui-table {
  border-collapse: separate;
  border-spacing: 0;
}

.route-hiring-positions .ui-table th,
.route-hiring-positions .ui-table td,
.route-reports .ui-table th,
.route-reports .ui-table td,
.route-users .ui-table th,
.route-users .ui-table td {
  border-width: 0 0 1px;
  border-color: #e9eef5;
}

.route-hiring-positions .ui-table th,
.route-reports .ui-table th,
.route-users .ui-table th {
  background: #f7fafc;
  color: #3b465c;
  font-size: 12px;
}

.route-hiring-positions .ui-table tbody tr:hover td,
.route-reports .ui-table tbody tr:hover td,
.route-users .ui-table tbody tr:hover td {
  background: #fbfefd;
}

.route-hiring-positions .hiring-position-layout,
.route-reports .metric-grid,
.route-reports .report-grid,
.route-reports .report-charts,
.route-reports .report-position-summary,
.route-users .user-layout,
.route-settings .settings-single-layout,
.route-support .support-page,
.route-activity .activity-page {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.route-hiring-positions .hiring-position-layout {
  gap: 18px;
}

.route-hiring-positions .hiring-position-selector-card {
  padding: 18px;
}

.route-hiring-positions .position-detail h2,
.route-reports .ui-card h3,
.route-users .ui-card h2,
.route-settings .settings-single-card h2,
.route-support .support-content-section h2 {
  margin-top: 0;
  color: #0f1c33;
}

.route-reports .metric-grid {
  gap: 12px;
}

.route-reports .metric-card {
  min-height: 100px;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(20, 33, 61, .06);
}

.route-reports .metric-icon {
  border-radius: 8px;
}

.route-reports .horizontal-filter {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  padding: 18px;
}

.route-reports .report-charts .ui-card,
.route-reports .report-grid .ui-card {
  overflow: hidden;
}

.route-activity .activity-page {
  padding-top: 0;
}

.route-activity .activity-filter-card,
.route-activity .activity-list-card {
  padding: 18px;
}

.route-activity .activity-filter-row {
  gap: 12px;
}

.route-activity .activity-filter-row label {
  color: #42506a;
  font-size: 12px;
  font-weight: 900;
}

.route-activity .activity-filter-row .btn {
  border-radius: 8px;
}

.route-activity .activity_item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}

.route-activity .activity_item:hover {
  background: #fbfefd;
  box-shadow: 0 10px 24px rgba(20, 33, 61, .06);
}

.route-activity .activity_item:last-child {
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 0;
}

.route-activity .activity_time {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.route-activity .activity_title {
  color: #12243c;
}

.route-activity .activity_detail {
  color: #536176;
}

.route-users .list-tools {
  border-color: #dde5ef;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 61, .06);
}

.route-users .invite-panel {
  border-radius: 8px;
}

.route-users .role-help {
  border-color: #dfe6f0;
  border-radius: 8px;
  background: #f8fafc;
}

.route-settings .settings-single-layout {
  gap: 18px;
}

.route-settings .settings-single-card {
  border-radius: 8px;
}

.route-settings .logo-upload {
  border-color: #cfd8e7;
  border-radius: 8px;
  background: #fbfcfe;
}

.route-settings .check-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px 12px;
}

.route-support .support-shell {
  gap: 18px;
}

.route-support .support-menu {
  padding: 10px;
}

.route-support .support-menu button {
  border-radius: 8px;
}

.route-support .support-menu button.active {
  background: #4f5fb7;
  color: #fff;
}

.route-support .support-content {
  padding: 22px;
}

.route-support .support-guide-card,
.route-support .support-faq,
.route-support .support-glossary div,
.route-support .support-contact-card {
  border-color: #e1e7f0;
  border-radius: 8px;
  background: #fff;
}

.route-support .support-search {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .route-hiring-positions .ui-head,
  .route-reports .ui-head,
  .route-activity .ui-head,
  .route-users .ui-head,
  .route-settings .ui-head,
  .route-support .ui-head {
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .route-reports .report-charts,
  .route-reports .report-grid {
    grid-template-columns: 1fr;
  }

  .route-reports .horizontal-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-reports .horizontal-filter label,
  .route-reports .horizontal-filter label:nth-child(1),
  .route-reports .filter-date-range {
    min-width: 0;
    width: 100%;
  }

  .route-reports .filter-date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .route-reports .ui-card {
    min-width: 0;
    overflow-x: auto;
  }

  .route-reports .ui-card .ui-table {
    min-width: 560px;
  }

  .route-settings .settings-single-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-settings .settings-single-card,
  .route-settings .settings-single-card .ui-field,
  .route-settings .settings-single-card .ui-field > span,
  .route-settings .settings-single-card input,
  .route-settings .settings-single-card select,
  .route-settings .settings-single-card textarea,
  .route-settings .logo-upload {
    width: 100%;
    min-width: 0;
  }

  .route-settings .logo-upload {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .route-settings .logo-upload img {
    width: 100%;
    max-width: 190px;
  }

  .route-support .support-page,
  .route-support .support-shell {
    width: 100%;
    min-width: 0;
  }

  .route-support .support-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-support .support-menu,
  .route-support .support-content {
    min-width: 0;
  }

  .route-activity .activity-filter-row .btn,
  .route-settings .settings-email-actions .btn {
    width: 100%;
  }
}

/* Cross-check result pane restored from the stashed result UI. */
.cxr-page {
  max-width: 1320px;
  margin: 0 auto;
}

.app-loading-pane {
  position: relative;
}

.app-loading-pane.is-loading {
  min-height: 360px;
}

.app-loading-pane.is-loading > :not(.app-loading-overlay) {
  pointer-events: none;
  user-select: none;
}

.app-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 14px;
  background: rgba(248, 250, 252, .78);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  cursor: wait;
}

.app-global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(248, 250, 252, .64);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.app-loading-viewport-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px));
  padding: 22px 24px;
  border: 1px solid #e3e7f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(31, 41, 55, .14);
  color: #1f2937;
  text-align: center;
  pointer-events: none;
}

.app-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, .38);
}

.app-dialog-card {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid #e3e7f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.app-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef0fb;
  color: #4f5fb7;
  font-weight: 900;
  font-size: 20px;
}

.app-dialog-card.danger .app-dialog-icon {
  background: #fdecec;
  color: #d92d20;
}

.app-dialog-card.success .app-dialog-icon {
  background: #e3f6ec;
  color: #18794e;
}

.app-dialog-body h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.app-dialog-body p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.app-loading-viewport-card strong,
.app-loading-viewport-card small {
  display: block;
}

.app-loading-viewport-card strong {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 800;
}

.app-loading-viewport-card small {
  margin-top: 5px;
  color: #7a8495;
  font-size: 12px;
  line-height: 1.5;
}

.app-loading-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid #dfe4f2;
  border-top-color: #4f5fb7;
  border-radius: 50%;
  animation: app-loading-spin .8s linear infinite;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.cxr-crumb {
  margin: 0 0 6px;
}

.cxr-crumb button {
  border: 0;
  background: none;
  color: #6b7385;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cxr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.cxr-head h1 {
  margin: 0;
  font-size: 26px;
  color: #101828;
}

.cxr-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cxr-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dadfeb;
  border-radius: 9px;
  background: #fff;
  color: #3c4658;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cxr-tool i {
  font-style: normal;
}

.cxr-tool.primary {
  background: #4f5fb7;
  border-color: #4f5fb7;
  color: #fff;
}

.cxr-cand {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1.4fr) minmax(140px, .9fr) minmax(120px, .75fr) minmax(230px, 1.2fr) minmax(220px, 1.1fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(40, 42, 75, .05);
}

.cxr-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef0fb;
  color: #5b5fa9;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}

.cxr-cand-id h2 {
  margin: 0;
  font-size: 18px;
  color: #101828;
}

.cxr-mail {
  margin: 3px 0 6px;
  color: #6b7385;
  font-size: 12.5px;
}

.cxr-cand-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cxr-tag-soft {
  padding: 3px 9px;
  border-radius: 6px;
  background: #eef0fb;
  color: #5b5fa9;
  font-size: 11px;
  font-weight: 800;
}

.cxr-id,
.cxr-copy {
  color: #98a1b2;
  font-size: 11px;
  font-weight: 700;
}

.cxr-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cxr-fact > span {
  color: #8a93a6;
  font-size: 11px;
  font-weight: 700;
}

.cxr-fact > b {
  color: #232a39;
  font-size: 14px;
}

.cxr-status-row {
  display: flex;
  gap: 8px;
}

.cxr-status-row select {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #d8dde9;
  border-radius: 8px;
  padding: 0 10px;
  color: #2b3242;
  font-weight: 700;
  font-size: 13px;
}

.cxr-update {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #4f5fb7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cxr-mini-seg {
  display: inline-flex;
  background: #eef1f7;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.cxr-mini-seg button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #69728a;
  cursor: pointer;
  white-space: nowrap;
}

.cxr-mini-seg button.active {
  background: #fff;
  color: #4f5fb7;
  box-shadow: 0 2px 6px rgba(31, 41, 55, .1);
}

.cxr-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border-radius: 12px;
  background: #eef1f8;
}

.cxr-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #536176;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.cxr-tabs button.active {
  background: #fff;
  color: #4f5fb7;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .08);
}

.cxr-tabs button.disabled,
.cxr-tabs button:disabled {
  cursor: not-allowed;
  opacity: .62;
  color: #8993a5;
}

.cxr-tabs button.disabled em,
.cxr-tabs button:disabled em {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #d9dee8;
}

.cxr-tabs button em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7eaf1;
  color: #8a93a6;
}

.cxr-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cxr-badge.pass {
  background: #e3f6ec;
  color: #18794e;
}

.cxr-badge.warn {
  background: #fff1de;
  color: #b76a00;
}

.cxr-badge.neutral {
  background: #eef0f4;
  color: #76808f;
}

.cxr-card,
.cxr-verdict {
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(40, 42, 75, .04);
}

.cxr-card {
  padding: 16px 18px;
}

.cxr-axis-fixed-note {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #d8e1f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 13px 16px;
}

.cxr-axis-fixed-note.changed {
  border-color: #f3c56b;
  background: #fff8e8;
}

.cxr-axis-fixed-note.muted {
  background: #f7f8fb;
}

.cxr-axis-fixed-note strong {
  color: #1a2230;
  font-size: 13px;
  font-weight: 900;
}

.cxr-axis-fixed-note p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.cxr-axis-fixed-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cxr-axis-fixed-note span {
  border: 1px solid #d5dce8;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.cxr-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #1a2230;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cxr-card h3 small,
.cxr-card h4.cxr-sub small {
  font-size: 11.5px;
  color: #98a1b2;
  font-weight: 700;
}

.cxr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.cxr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.cxr-grid-2.align-start,
.cxr-grid-3.align-start {
  align-items: start;
}

.cxr-verdict {
  display: grid;
  grid-template-columns: 1.5fr 2.4fr 1.2fr;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.cxr-verdict.pass {
  border-color: #93d7b4;
  background: linear-gradient(180deg, #f0fff7 0%, #ffffff 64%);
}

.cxr-verdict.reject {
  border-color: #f2c36b;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 64%);
}

.cxr-verdict.pending {
  border-color: #d8dde8;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 64%);
}

.cxr-verdict-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cxr-verdict-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #24a35a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.cxr-verdict.reject .cxr-verdict-icon {
  background: #f59a00;
  color: #fff;
  box-shadow: 0 10px 24px rgba(245, 154, 0, .22);
}

.cxr-verdict.pending .cxr-verdict-icon {
  background: #8a94a6;
  color: #fff;
}

.cxr-verdict-main small {
  color: #8a93a6;
  font-size: 11px;
  font-weight: 800;
}

.cxr-verdict-main h2 {
  margin: 2px 0 6px;
  font-size: 24px;
  color: #18794e;
}

.cxr-verdict.reject .cxr-verdict-main h2 {
  color: #b76a00;
}

.cxr-verdict.pending .cxr-verdict-main h2 {
  color: #586174;
}

.cxr-verdict-main p,
.cxr-verdict-note p {
  margin: 0;
  color: #5b6477;
  font-size: 12px;
  line-height: 1.55;
}

.cxr-verdict-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 8px;
  align-items: center;
  border-left: 1px solid #eef0f4;
  border-right: 1px solid #eef0f4;
  padding: 0 18px;
}

.cxr-vf-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cxr-vf-item > span,
.cxr-radar-side > span,
.cxr-stat > span,
.cxr-judge > span {
  color: #8a93a6;
  font-size: 11px;
  font-weight: 800;
}

.cxr-vf-item strong {
  font-size: 26px;
  color: #1a2230;
  font-weight: 800;
  line-height: 1;
}

.cxr-vf-item strong small,
.cxr-radar-side strong small,
.cxr-stat strong small,
.cxr-judge strong small {
  font-size: 12px;
  color: #98a1b2;
  margin-left: 2px;
}

.cxr-vf-item strong.muted,
.cxr-radar-side strong.muted,
.cxr-judge strong.muted {
  font-size: 17px;
  color: #98a1b2;
}

.cxr-vf-item em,
.cxr-radar-side em,
.cxr-stat em,
.cxr-judge em {
  font-style: normal;
  font-size: 10.5px;
  color: #98a1b2;
  line-height: 1.45;
}

.cxr-vf-arrow {
  color: #c4cad6;
  font-size: 20px;
}

.cxr-link {
  color: #4f5fb7;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.cxr-verdict-note h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #3c4658;
}

.cxr-verdict-note ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.cxr-verdict-note li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4b5466;
  font-weight: 700;
}

.cxr-verdict-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.cxr-verdict-note .dot.orange {
  background: #f59a00;
}

.cxr-verdict-note .dot.purple {
  background: #4f5fb7;
}

.cxr-verdict-note .dot.teal {
  background: #13a66b;
}

.cxr-radar-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
  align-items: center;
}

.cxr-radar-table {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 14px;
  align-items: center;
}

.cxr-radar-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  padding-left: 12px;
  border-left: 1px solid #eef0f4;
}

.cxr-radar-side strong {
  font-size: 30px;
  color: #1a2230;
  font-weight: 800;
  line-height: 1;
}

.cxr-delta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e6e9f1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cxr-delta span {
  font-size: 10.5px;
  color: #98a1b2;
}

.cxr-delta b {
  font-size: 14px;
  color: #1a2230;
}

.cxr-delta b.up {
  color: #18794e;
}

.cxr-gap-panel {
  margin-bottom: 16px;
}

.cxr-gap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cxr-gap-head h3 {
  margin: 0;
}

.cxr-gap-head h3 small {
  display: block;
  margin-top: 4px;
  color: #8a93a6;
  font-size: 11px;
  font-weight: 800;
}

.cxr-gap-head p {
  max-width: 560px;
  margin: 0;
  color: #5b6477;
  font-size: 12px;
  line-height: 1.55;
}

.cxr-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cxr-gap-tile {
  min-height: 116px;
  padding: 16px;
  border: 1px solid #e2e7f2;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.cxr-gap-tile span {
  display: block;
  color: #596276;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.cxr-gap-tile strong {
  display: inline-block;
  margin-top: 8px;
  color: #4f55c5;
  font-size: 30px;
  line-height: 1;
}

.cxr-gap-tile strong small {
  margin-left: 2px;
  color: #8a93a6;
  font-size: 12px;
}

.cxr-gap-tile strong.up {
  color: #18794e;
}

.cxr-gap-tile strong.down {
  color: #d92d20;
}

.cxr-gap-tile strong.muted {
  color: #98a1b2;
  font-size: 20px;
}

.cxr-gap-tile em {
  display: block;
  margin-top: 8px;
  color: #8a93a6;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.cxr-gap-tile.rule {
  background: #f7f8fb;
}

.cxr-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.cxr-legend span {
  position: relative;
  padding-left: 22px;
  font-size: 11px;
  font-weight: 800;
  color: #4f5fb7;
}

.cxr-legend span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #4f5fb7;
}

.cxr-legend span.dash {
  color: #94a3b8;
}

.cxr-legend span.dash::before {
  background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px);
}

.cxr-legend span.solid.document {
  color: #f5a000;
}

.cxr-legend span.solid.document::before {
  background: #f5a000;
}

.cxr-legend span.solid.case {
  color: #13a66b;
}

.cxr-legend span.solid.case::before,
.cxr-cell-bar.case i {
  background: #13a66b;
}

.cc-radar {
  width: 100%;
  min-height: 230px;
  display: grid;
  place-items: center;
}

.cc-radar svg {
  width: min(100%, 320px);
  height: auto;
  overflow: visible;
}

.cc-radar polygon,
.cc-radar line {
  fill: none;
  stroke: #e0e5ef;
  stroke-width: 1;
}

.cc-radar polygon.main {
  fill: rgba(79, 95, 183, .20);
  stroke: #4f5fb7;
  stroke-width: 2;
}

.cc-radar.case polygon.main {
  fill: rgba(19, 166, 107, .20);
  stroke: #13a66b;
}

.cc-radar polygon.sub {
  fill: rgba(148, 163, 184, .12);
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.cc-radar text {
  fill: #1f2937;
  font-size: 10px;
  font-weight: 800;
}

.cc-radar.document polygon.main {
  fill: rgba(245, 160, 0, .18);
  stroke: #f5a000;
}

.cc-radar.document-overlay polygon.sub {
  fill: none;
  stroke: #94a3b8;
  stroke-dasharray: 5 5;
}

.cc-radar.empty polygon.main {
  fill: rgba(148, 163, 184, .08);
  stroke: #cbd2de;
  stroke-dasharray: 5 5;
}

.cxr-reason p {
  margin: 0 0 9px;
  font-size: 12px;
  color: #4b5466;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.cxr-reason p::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.cxr-reason p.ok::before {
  content: "✓";
  color: #24a35a;
}

.cxr-reason p.dot::before {
  content: "●";
  color: #5b5fa9;
  font-size: 9px;
  top: 2px;
}

.cxr-foot-note {
  background: #f1f3fb;
  border: 1px solid #e3e7f3;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px;
  color: #5b6477;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cxr-foot-note b {
  color: #4f5fb7;
}

.cxr-foot-note span {
  color: #98a1b2;
  font-size: 11px;
}

.cxr-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.cxr-stat {
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(40, 42, 75, .04);
}

.cxr-stat strong {
  font-size: 27px;
  color: #1a2230;
  font-weight: 800;
  line-height: 1;
}

.cxr-stat .warn-text,
.cxr-stat strong.warn-text {
  font-size: 19px;
  color: #e08a00;
}

.cxr-stat .pass-text,
.cxr-stat strong.pass-text {
  font-size: 19px;
  color: #18794e;
}

.cxr-stat .teal-text,
.cxr-stat strong.teal-text {
  font-size: 18px;
  color: #13a66b;
}

.cxr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cxr-table th {
  text-align: left;
  color: #8a93a6;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-bottom: 1px solid #eef0f4;
}

.cxr-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f3f7;
  color: #3c4658;
  vertical-align: middle;
}

.cxr-table td b {
  color: #1a2230;
  font-size: 13px;
}

.cxr-table td.cmt {
  font-size: 11px;
  color: #76808f;
  line-height: 1.4;
}

.cxr-cell-bar {
  display: inline-block;
  vertical-align: middle;
  width: 56px;
  height: 7px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
  margin-right: 7px;
}

.cxr-cell-bar i {
  display: block;
  height: 100%;
  background: #4f5fb7;
  border-radius: inherit;
}

.cxr-bar {
  position: relative;
  flex: 1;
}

.cxr-bar-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
  min-width: 120px;
}

.cxr-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b73c9, #4f5fb7);
}

.cxr-bar.case .cxr-bar-track i {
  background: linear-gradient(90deg, #2bbd84, #13a66b);
}

.cxr-bar u {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: #e95078;
}

.cxr-bar u b {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: #e95078;
  white-space: nowrap;
  font-style: normal;
}

.cxr-judge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 12px;
  align-items: stretch;
}

.cxr-judge {
  border: 1px solid #eceef4;
  border-radius: 11px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  background: #fbfcfe;
}

.cxr-judge strong {
  font-size: 24px;
  color: #1a2230;
  font-weight: 800;
  line-height: 1;
}

.cxr-judge.final {
  background: #e8f7ee;
  border-color: #bfe6cd;
  align-items: center;
  text-align: center;
}

.cxr-judge.final b {
  font-size: 16px;
  color: #18794e;
}

.cxr-judge-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #24a35a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.cxr-decision-seg {
  display: flex;
  gap: 8px;
}

.cxr-decision-seg button {
  flex: 1;
  border: 1px solid #dadfeb;
  background: #fff;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #69728a;
  cursor: pointer;
}

.cxr-decision-seg button.active.pass {
  background: #1aa45c;
  border-color: #1aa45c;
  color: #fff;
}

.cxr-tag-pool {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cxr-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #dde2ec;
  background: #fff;
  font-size: 11.5px;
  font-weight: 800;
  color: #69728a;
}

.cxr-chip.active {
  border-color: #1aa45c;
  background: #e8f7ee;
  color: #18794e;
}

.cxr-textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid #dde2ec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #3c4658;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.cxr-document-hero {
  margin-bottom: 16px;
}

.cxr-document-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cxr-document-grid > .normal-result-card {
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 49, 74, .07);
}

.cxr-document-grid > .normal-result-card:nth-child(1) {
  border-color: #cfd8f6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.cxr-document-grid > .normal-result-card:nth-child(4) {
  border-color: #f3d7a7;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.cxr-document-grid .normal-result-card h3 {
  margin: 0 0 16px;
  color: #12203b;
  font-size: 18px;
  line-height: 1.3;
}

.cxr-document-grid .normal-result-card h3 small {
  color: #75809a;
  font-size: 12px;
}

.cxr-document-grid .normal-result-card > p {
  color: #26364f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.85;
}

.cxr-document-radar-card {
  min-height: 100%;
  grid-column: 1 / -1;
}

.cxr-document-axis-combo {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.cxr-document-radar-box {
  min-width: 0;
  display: grid;
  place-items: center;
}

.cxr-document-radar-card .cc-radar {
  min-width: 0;
  min-height: 250px;
  padding: 0;
}

.cxr-document-radar-card .cc-radar svg {
  width: min(100%, 300px);
}

.cxr-document-axis-block {
  min-width: 0;
}

.cxr-document-axis-block .cxr-table {
  width: 100%;
  table-layout: fixed;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cxr-document-axis-block .cxr-table th {
  background: #f6f8fc;
  color: #6c7588;
  padding: 9px 8px;
  white-space: normal;
}

.cxr-document-axis-block .cxr-table td {
  padding: 10px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.cxr-document-axis-block .cxr-table th:first-child,
.cxr-document-axis-block .cxr-table td:first-child {
  width: 19%;
}

.cxr-document-axis-block .cxr-table th:nth-child(2),
.cxr-document-axis-block .cxr-table td:nth-child(2) {
  width: 12%;
  text-align: center;
}

.cxr-document-axis-block .cxr-table th:nth-child(3),
.cxr-document-axis-block .cxr-table td:nth-child(3) {
  width: 18%;
  text-align: center;
}

.cxr-document-axis-block .cxr-table th:nth-child(4),
.cxr-document-axis-block .cxr-table td:nth-child(4) {
  width: 51%;
}

.cxr-document-radar-card .cxr-table {
  align-self: center;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cxr-document-radar-card .cxr-table th:first-child,
.cxr-document-radar-card .cxr-table td:first-child {
  width: 48%;
}

.cxr-document-radar-card .cxr-table th:nth-child(2),
.cxr-document-radar-card .cxr-table td:nth-child(2) {
  width: 18%;
  text-align: center;
}

.cxr-document-radar-card .cxr-table th:nth-child(3),
.cxr-document-radar-card .cxr-table td:nth-child(3) {
  width: 34%;
  text-align: center;
}

.cxr-document-radar-card .cxr-table th {
  background: #f6f8fc;
  color: #6c7588;
  padding: 9px 8px;
  white-space: normal;
}

.cxr-document-radar-card .cxr-table td {
  padding: 10px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.cxr-document-grid .document-highlight,
.cxr-document-grid .document-concern {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.cxr-document-grid .document-highlight:last-child,
.cxr-document-grid .document-concern:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cxr-document-grid .document-highlight > span,
.cxr-document-grid .document-concern > span {
  width: 24px;
  height: 24px;
  background: #f4f6ff;
  color: #4f5fb7;
}

.cxr-document-grid .document-concern > span {
  background: #fff7e7;
  color: #f29900;
}

.cxr-document-grid .document-highlight b,
.cxr-document-grid .document-concern b {
  color: #18243a;
  font-size: 14px;
}

.cxr-document-grid .document-highlight p,
.cxr-document-grid .document-concern p {
  color: #536176;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

.cxr-document-grid .document-source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cxr-document-grid .document-source-file {
  min-height: 72px;
  border-radius: 10px;
  background: #fbfcff;
}

.cxr-normal-extra-row,
.cxr-normal-extra-grid,
.cxr-normal-transcript-video {
  margin-top: 16px;
}

.cxr-normal-extra-grid .normal-result-wide,
.cxr-normal-extra-grid .normal-result-card.normal-result-wide {
  grid-column: 1 / -1;
}

.cxr-normal-nonverbal .normal-result-score-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cxr-normal-transcript-video .normal-transcript-log {
  max-height: 320px;
}

@media (max-width: 1180px) {
  .cxr-cand,
  .cxr-verdict,
  .cxr-grid-2,
  .cxr-grid-3,
  .cxr-document-grid,
  .cxr-stat-row,
  .cxr-judge-row,
  .cxr-radar-table {
    grid-template-columns: 1fr;
  }

  .cxr-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cxr-verdict-flow {
    border: 0;
    padding: 0;
    grid-template-columns: 1fr;
  }

  .cxr-vf-arrow {
    display: none;
  }

  .cxr-document-radar-card {
    grid-column: auto;
  }

  .cxr-document-axis-combo {
    grid-template-columns: 1fr;
  }

  .case-modern-insights {
    grid-template-columns: 1fr;
  }

  .case-modern-panel.potential {
    grid-column: auto;
  }

  .case-modern-panel.potential .case-modern-list {
    grid-template-columns: 1fr;
  }

  .case-modern-panel.mindmap {
    grid-column: auto;
  }

  .case-modern-panel.mindmap .mind-map {
    grid-template-columns: 1fr;
  }

  .case-modern-panel.mindmap .mind-map-center::after,
  .case-modern-panel.mindmap .mind-map-branches::before,
  .case-modern-panel.mindmap .mind-map-line::before {
    display: none;
  }

  .case-modern-panel.mindmap .mind-map-branches {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .case-modern-panel.mindmap .mind-map-branch {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-modern-panel.mindmap .mind-map-line {
    height: auto;
    background: transparent;
  }

  .case-modern-panel.mindmap .mind-map-line::after {
    display: none;
  }

  .case-modern-panel.mindmap .mind-map-line span {
    position: static;
    transform: none;
    max-width: none;
    width: fit-content;
  }

  .cxr-document-grid .document-source-list {
    grid-template-columns: 1fr;
  }

.cxr-normal-nonverbal .normal-result-score-grid {
  grid-template-columns: 1fr;
  }
}

.crosscheck-settings-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.crosscheck-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.crosscheck-settings-head h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.crosscheck-settings-head p {
  margin: 8px 0 0;
  color: #526176;
  font-size: 14px;
  font-weight: 700;
}

.crosscheck-settings-actions,
.crosscheck-rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crosscheck-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border: 1px solid #d7deee;
  border-radius: 12px;
  background: #f7f9ff;
}

.crosscheck-settings-tabs button {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #3b4560;
  cursor: pointer;
  padding: 12px 14px;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.crosscheck-settings-tabs button strong,
.crosscheck-settings-tabs button span {
  display: block;
  letter-spacing: 0;
}

.crosscheck-settings-tabs button strong {
  color: #172033;
  font-size: 14px;
}

.crosscheck-settings-tabs button span {
  margin-top: 4px;
  color: #69758b;
  font-size: 12px;
  font-weight: 700;
}

.crosscheck-settings-tabs button.active {
  border-color: #bac4f6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 51, 127, .10);
}

.crosscheck-settings-tabs button.active strong {
  color: #3545b6;
}

.crosscheck-position-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
}

.crosscheck-position-scope strong,
.crosscheck-position-scope span {
  display: block;
  letter-spacing: 0;
}

.crosscheck-position-scope strong {
  color: #172033;
  font-size: 15px;
}

.crosscheck-position-scope span {
  margin-top: 5px;
  color: #69758b;
  font-size: 12px;
  font-weight: 700;
}

.crosscheck-position-scope .ui-field {
  margin: 0;
  min-width: 0;
}

.crosscheck-position-scope select {
  width: 100%;
}

.crosscheck-position-dropdown {
  position: relative;
  z-index: 5;
}

.crosscheck-position-dropdown summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  list-style: none;
}

.crosscheck-position-dropdown summary::-webkit-details-marker {
  display: none;
}

.crosscheck-position-dropdown summary span {
  grid-column: 1 / -1;
  margin: 0;
  color: #687385;
  font-size: 11px;
  font-weight: 800;
}

.crosscheck-position-dropdown summary b {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crosscheck-position-dropdown summary::after {
  content: "⌄";
  grid-column: 2;
  color: #667085;
  font-size: 14px;
  font-weight: 900;
}

.crosscheck-position-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
}

.crosscheck-position-options button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 10px;
  text-align: left;
}

.crosscheck-position-options button:hover,
.crosscheck-position-options button.selected {
  background: #eef3ff;
  color: #3545b6;
}

.app-dropdown-native {
  display: none !important;
}

.app-dropdown-field > span:first-child {
  display: none;
}

.ui-field.app-dropdown-field {
  gap: 0;
}

.app-dropdown-enhanced {
  position: relative;
  z-index: 5;
  display: inline-block;
  min-width: 120px;
  color: #12243c;
  font-weight: 900;
  vertical-align: middle;
}

.app-dropdown-enhanced[open],
.crosscheck-position-dropdown[open] {
  z-index: 10000;
}

.ui-field > .app-dropdown-enhanced,
.field .app-dropdown-enhanced,
.workspace-primary-filters .app-dropdown-enhanced,
.workspace-filters .app-dropdown-enhanced,
.horizontal-filter .app-dropdown-enhanced,
.compare-controls .app-dropdown-enhanced,
.activity-filter-row .app-dropdown-enhanced {
  display: block;
  width: 100%;
}

.app-dropdown-enhanced summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  list-style: none;
}

.app-dropdown-enhanced.compact summary {
  min-height: 38px;
  padding: 0 12px;
}

.app-dropdown-enhanced summary::-webkit-details-marker {
  display: none;
}

.app-dropdown-enhanced summary span {
  grid-column: 1 / -1;
  color: #687385;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.app-dropdown-enhanced summary b {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dropdown-enhanced summary::after {
  content: "⌄";
  grid-column: 2;
  color: #667085;
  font-size: 14px;
  font-weight: 900;
}

.app-dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
}

.app-dropdown-options button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 10px;
  text-align: left;
}

.app-dropdown-options button:hover,
.app-dropdown-options button.selected {
  background: #eef3ff;
  color: #3545b6;
}

.app-dropdown-enhanced.disabled summary,
.app-dropdown-options button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.crosscheck-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.crosscheck-summary-card,
.crosscheck-settings-card {
  border: 1px solid #d8deec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 40, 84, .08);
}

.crosscheck-summary-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 100px;
  padding: 18px;
}

.crosscheck-summary-icon,
.crosscheck-metric-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  font-weight: 900;
}

.crosscheck-summary-icon {
  width: 46px;
  height: 46px;
  color: #3743b2;
  background: #edf0ff;
}

.crosscheck-summary-card.doc .crosscheck-summary-icon {
  color: #d95800;
  background: #fff2df;
}

.crosscheck-summary-card.case .crosscheck-summary-icon {
  color: #087c79;
  background: #e7fbf9;
}

.crosscheck-summary-card span {
  display: block;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
}

.crosscheck-summary-card strong {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.crosscheck-summary-card p {
  margin: 5px 0 0;
  color: #6a7385;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.crosscheck-settings-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  gap: 16px;
}

.crosscheck-settings-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.crosscheck-settings-card {
  padding: 18px;
}

.crosscheck-card-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.crosscheck-card-title h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #172033;
  font-size: 18px;
  letter-spacing: 0;
}

.crosscheck-card-title h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  letter-spacing: 0;
}

.crosscheck-card-title.compact {
  margin-top: 18px;
}

.crosscheck-card-title p {
  margin: 0;
  color: #606c80;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.crosscheck-threshold-row {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(250px, 1fr) minmax(132px, .42fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #edf0f6;
}

.crosscheck-threshold-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.crosscheck-threshold-label strong,
.crosscheck-threshold-label span {
  display: block;
  letter-spacing: 0;
}

.crosscheck-threshold-label strong {
  color: #1b2638;
  font-size: 14px;
}

.crosscheck-threshold-label span {
  margin-top: 4px;
  color: #657286;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.crosscheck-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crosscheck-slider-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #758197;
  font-size: 11px;
  font-weight: 800;
}

.crosscheck-slider-scale span:nth-child(2),
.crosscheck-slider-scale span:nth-child(3) {
  text-align: center;
}

.crosscheck-slider-scale span:last-child {
  text-align: right;
}

.crosscheck-slider-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #dfe4ee;
  overflow: visible;
}

.crosscheck-slider-input {
  position: absolute;
  inset: -13px 0;
  width: 100%;
  height: 36px;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
}

.crosscheck-slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--point);
  border-radius: inherit;
  background: linear-gradient(90deg, #4957c7, #20aaa3);
}

.crosscheck-threshold-row.doc .crosscheck-slider-fill {
  background: linear-gradient(90deg, #f0a02d, #e65b00);
}

.crosscheck-threshold-row.case .crosscheck-slider-fill {
  background: linear-gradient(90deg, #20aaa3, #087c79);
}

.crosscheck-slider-thumb {
  position: absolute;
  top: 50%;
  left: var(--point);
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3545b6;
  box-shadow: 0 3px 10px rgba(31, 40, 95, .28);
  transform: translate(-50%, -50%);
}

.crosscheck-threshold-row.doc .crosscheck-slider-thumb {
  background: #e65b00;
}

.crosscheck-threshold-row.case .crosscheck-slider-thumb {
  background: #09958d;
}

.crosscheck-threshold-input,
.crosscheck-small-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #5f6c80;
  font-size: 11px;
  font-weight: 800;
}

.crosscheck-threshold-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.crosscheck-threshold-input input,
.crosscheck-small-input input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  background: #fbfcff;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  padding: 9px 10px;
}

.crosscheck-pass-rate-estimate {
  border: 1px solid #dce3f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 10px;
}

.crosscheck-pass-rate-estimate span,
.crosscheck-pass-rate-estimate strong,
.crosscheck-pass-rate-estimate small {
  display: block;
  letter-spacing: 0;
}

.crosscheck-pass-rate-estimate span {
  color: #657286;
  font-size: 10.5px;
  font-weight: 900;
}

.crosscheck-pass-rate-estimate strong {
  margin-top: 3px;
  color: #172033;
  font-size: 20px;
  line-height: 1.1;
}

.crosscheck-pass-rate-estimate small {
  margin-top: 4px;
  color: #657286;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
}

.crosscheck-estimate-footnote {
  margin: 12px 0 0;
  border-top: 1px solid #edf0f6;
  padding-top: 12px;
  color: #657286;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.crosscheck-any-pass-rate-estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #cbd6f8;
  border-radius: 10px;
  background: #f5f7ff;
  padding: 16px;
}

.crosscheck-any-pass-rate-estimate span,
.crosscheck-any-pass-rate-estimate strong,
.crosscheck-any-pass-rate-estimate small {
  display: block;
  letter-spacing: 0;
}

.crosscheck-any-pass-rate-estimate span {
  color: #5362c4;
  font-size: 11px;
  font-weight: 900;
}

.crosscheck-any-pass-rate-estimate strong {
  margin-top: 4px;
  color: #172033;
  font-size: 15px;
}

.crosscheck-any-pass-rate-estimate small {
  margin-top: 5px;
  color: #657286;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}

.crosscheck-any-pass-rate-estimate b {
  color: #3545b6;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.crosscheck-values-card {
  display: flex;
  flex-direction: column;
}

.crosscheck-gap-usage {
  border-top: 1px solid #edf0f6;
  margin-top: 18px;
  padding-top: 2px;
}

.crosscheck-value-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.crosscheck-value-toggle button {
  border: 1px solid #d5dced;
  border-radius: 12px;
  background: #fff;
  color: #263244;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.crosscheck-value-toggle button strong,
.crosscheck-value-toggle button span {
  display: block;
  letter-spacing: 0;
}

.crosscheck-value-toggle button strong {
  font-size: 16px;
  color: #172033;
}

.crosscheck-value-toggle button span {
  margin-top: 6px;
  color: #667286;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.crosscheck-value-toggle button.active {
  border-color: #9faaf0;
  background: #f1f3ff;
  box-shadow: 0 8px 18px rgba(52, 65, 180, .10);
}

.crosscheck-value-toggle button.active strong {
  color: #3545b6;
}

.crosscheck-pass-condition {
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: center;
  border-top: 1px solid #edf0f6;
  padding: 0 0 16px;
}

.crosscheck-pass-condition strong,
.crosscheck-pass-condition span {
  display: block;
  letter-spacing: 0;
}

.crosscheck-pass-condition strong {
  color: #1b2638;
  font-size: 14px;
}

.crosscheck-pass-condition span {
  margin-top: 4px;
  color: #657286;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.crosscheck-condition-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 5px;
}

.crosscheck-condition-segment button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #536176;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.35;
  padding: 10px 12px;
  letter-spacing: 0;
}

.crosscheck-condition-segment button.active {
  border-color: #b8c1f6;
  background: #fff;
  color: #3545b6;
  box-shadow: 0 6px 14px rgba(52, 65, 180, .10);
}

.crosscheck-average-rule {
  border-top: 1px solid #edf0f6;
  padding: 16px 0;
}

.crosscheck-average-rule strong,
.crosscheck-average-rule p {
  display: block;
  letter-spacing: 0;
}

.crosscheck-average-rule strong {
  color: #1b2638;
  font-size: 14px;
}

.crosscheck-average-rule div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.crosscheck-average-rule span {
  border: 1px solid #cdd6f6;
  border-radius: 999px;
  background: #f1f3ff;
  color: #3545b6;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.crosscheck-average-rule p {
  margin: 10px 0 0;
  color: #657286;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.crosscheck-metric-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #edf0f6;
}

.crosscheck-metric-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.crosscheck-metric-icon {
  width: 38px;
  height: 38px;
  color: #3545b6;
  background: #edf0ff;
}

.crosscheck-metric-icon.doc {
  color: #d95800;
  background: #fff2df;
}

.crosscheck-metric-icon.case {
  color: #087c79;
  background: #e7fbf9;
}

.crosscheck-metric-row strong {
  color: #1b2638;
  font-size: 14px;
}

.crosscheck-metric-row p {
  margin: 4px 0 10px;
  color: #667286;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.crosscheck-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 8px 6px 0;
  border: 1px solid #d5dced;
  border-radius: 999px;
  color: #516077;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  grid-column: 2;
}

.crosscheck-radio.active {
  border-color: #b8c1f6;
  color: #3545b6;
  background: #f1f3ff;
}

.crosscheck-formula-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crosscheck-formula-list div {
  border: 1px solid #e2e7f1;
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
}

.crosscheck-formula-list strong,
.crosscheck-formula-list span {
  display: block;
}

.crosscheck-formula-list strong {
  color: #172033;
  font-size: 13px;
}

.crosscheck-formula-list span {
  margin-top: 5px;
  color: #5f6c80;
  font-size: 12px;
  font-weight: 800;
}

.crosscheck-rule-row {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f6;
}

.crosscheck-small-input {
  min-width: 132px;
}

.crosscheck-preview-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  color: #263244;
  font-size: 12.5px;
}

.crosscheck-preview-table th,
.crosscheck-preview-table td {
  border-bottom: 1px solid #e7ebf3;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.crosscheck-preview-table th {
  color: #536176;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 900;
}

.crosscheck-preview-table tr:last-child td {
  border-bottom: 0;
}

.crosscheck-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crosscheck-check-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #e1e7f1;
  border-radius: 10px;
  background: #fbfcff;
  color: #334156;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  padding: 11px 12px;
}

.crosscheck-embedded-settings .case-page {
  margin-top: 0;
}

.crosscheck-embedded-settings .case-titlebar {
  margin-top: 2px;
}

.crosscheck-document-normal-settings {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.crosscheck-document-settings-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-crosscheck-titlebar {
  margin-bottom: 0;
}

.crosscheck-document-settings-block .document-criteria-settings {
  margin-top: 0;
}

.crosscheck-section-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.crosscheck-section-save-row .btn {
  min-width: 180px;
}

.template-empty-state {
  display: grid;
  gap: 10px;
  justify-items: start;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 22px;
}

.template-empty-state strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.template-empty-state p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 1240px) {
  .crosscheck-position-scope,
  .crosscheck-settings-main-grid,
  .crosscheck-settings-bottom-grid {
    grid-template-columns: 1fr;
  }

  .crosscheck-threshold-row {
    grid-template-columns: 1fr;
  }

  .crosscheck-pass-condition {
    grid-template-columns: 1fr;
  }

  .crosscheck-any-pass-rate-estimate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .crosscheck-settings-head {
    flex-direction: column;
  }

  .crosscheck-settings-summary,
  .crosscheck-settings-tabs {
    grid-template-columns: 1fr;
  }

  .crosscheck-condition-segment {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   公開品質向上パッチ（2026-06）: フォーカス可視化・空状態・
   フィルタ行の整列・実働ページャなど横断的なUX改善。
   ============================================================ */

/* キーボード操作時のフォーカスリング（マウス操作では出さない） */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(91, 95, 169, 0.85);
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled,
.page-number:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 一覧の空状態（アクティビティ等） */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  color: #5d6878;
  text-align: center;
}

.empty-state span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef0fb;
  color: #4f5fb7;
  font-size: 24px;
}

.empty-state strong {
  max-width: 520px;
  color: #5d6878;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

/* アクティビティのフィルタを1行に整列（全幅化の打ち消し） */
.activity-filter-row .app-dropdown-enhanced {
  display: inline-block;
  width: auto;
  min-width: 170px;
  flex: 0 0 auto;
}

/* ダッシュボード「すべて表示」リンクをクリック可能に */
.center-link[role="link"] {
  cursor: pointer;
}

.center-link[role="link"]:hover {
  text-decoration: underline;
}

/* レポートの期間（日付レンジ）入力 */
.filter-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
}

.filter-date-range input[type="date"] {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

/* 実働ページャ（ユーザー管理）: spanからbutton化した分の体裁 */
button.page-number {
  cursor: pointer;
  color: #4e5465;
  font-size: 15px;
  font-weight: 800;
}

button.page-number:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.list-tools .app-dropdown-enhanced {
  min-width: 170px;
}

.list-tools input {
  flex: 1;
}

/* 設定: 企業ロゴ選択（label[for]+隠しfile input。div.ui-fieldラッパー用の体裁含む） */
#company-logo-input {
  display: none;
}

.logo-upload label.btn {
  cursor: pointer;
  user-select: none;
}

.logo-upload label.btn.file-label-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 面接URL発行: 発行済みURLの表示ブロック */
.issued-url-block {
  display: grid;
  gap: 8px;
  border: 1px solid #bfe3d2;
  border-radius: 8px;
  background: #f2fbf6;
  padding: 14px;
}

.issued-url-code {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d4e7dd;
  border-radius: 6px;
  background: #fff;
  color: #14532d;
  font-size: 12px;
  word-break: break-all;
}

/* 面接URL発行: 設定未保存の警告（設定画面への導線付き） */
.url-settings-warning {
  display: grid;
  gap: 10px;
  justify-items: start;
}

/* ============================================================
   候補者向け受験画面: TeraNextPrd(HubHR Interview)と同一UIへ移植（2026-06-10）
   出典: TeraNextPrd/public/interview/index.html の<style>を .tnx-candidate 配下へ名前空間化。
   企業ブランディング（ロゴ/表示名）はヘッダーのbrand-lockupに適用。
   ============================================================ */
.tnx-candidate .loading-spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.tnx-candidate .interview-container {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.tnx-candidate .content-card {
background: white;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 2rem;
margin: 2rem;
}
.tnx-candidate .btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px 24px;
border-radius: 6px;
font-weight: bold;
transition: all 0.3s ease;
}
.tnx-candidate .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.tnx-candidate .btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.tnx-candidate .question-card {
background: #f7fafc;
border-left: 4px solid #667eea;
padding: 1rem;
margin: 1rem 0;
border-radius: 4px;
}
.tnx-candidate .case-timing-panel {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.tnx-candidate .case-timing-panel div {
border: 1px solid #dfe3ec;
border-radius: 6px;
background: #fff;
padding: 10px 12px;
}
.tnx-candidate .case-timing-panel strong, .tnx-candidate .case-timing-panel span {
display: block;
}
.tnx-candidate .case-timing-panel strong {
color: #657082;
font-size: 12px;
margin-bottom: 4px;
}
.tnx-candidate .case-timing-panel span {
color: #202533;
font-weight: 800;
}
.tnx-candidate .case-material-panel {
border: 1px solid #dfe3ec;
border-radius: 8px;
background: #fbfcff;
padding: 14px;
margin-bottom: 14px;
}
.tnx-candidate .case-material-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.tnx-candidate .case-material-head strong {
color: #202533;
font-size: 15px;
}
.tnx-candidate .case-material-head span {
color: #657082;
font-size: 12px;
font-weight: 700;
}
.tnx-candidate .case-material-list {
display: grid;
gap: 12px;
}
.tnx-candidate .case-material-item {
border: 1px solid #e6e9f0;
border-radius: 7px;
background: #fff;
padding: 10px;
}
.tnx-candidate .case-material-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 8px;
}
.tnx-candidate .case-material-title strong {
color: #202533;
overflow-wrap: anywhere;
}
.tnx-candidate .case-material-title span, .tnx-candidate .case-material-title a {
color: #657082;
font-size: 12px;
font-weight: 700;
}
.tnx-candidate .case-material-item img {
display: block;
max-width: 100%;
max-height: 520px;
border-radius: 6px;
object-fit: contain;
background: #f2f4f7;
margin: 0 auto;
}
.tnx-candidate .case-material-item iframe {
width: 100%;
min-height: 520px;
border: 1px solid #e6e9f0;
border-radius: 6px;
background: #f2f4f7;
}
.tnx-candidate .case-answer-control {
margin: 0 0 16px;
padding: 14px 16px;
border: 1px solid #d8b4fe;
border-radius: 8px;
background: #faf5ff;
color: #581c87;
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
align-items: center;
gap: 12px;
}
.tnx-candidate .case-answer-control.hidden {
display: none;
}
.tnx-candidate .case-answer-control strong,
.tnx-candidate .case-answer-control span {
display: block;
}
.tnx-candidate .case-answer-control strong {
color: #581c87;
font-size: 15px;
font-weight: 800;
}
.tnx-candidate .case-answer-control span {
color: #6b21a8;
font-size: 0.9rem;
margin-top: 4px;
}
.tnx-candidate .case-answer-btn {
appearance: none;
border: 1px solid #c084fc;
border-radius: 7px;
background: #fff;
color: #581c87;
font-weight: 900;
min-height: 42px;
padding: 10px 14px;
white-space: nowrap;
cursor: pointer;
}
.tnx-candidate .case-answer-btn.primary {
background: #7c3aed;
color: #fff;
border-color: #7c3aed;
}
.tnx-candidate .case-answer-btn:disabled {
opacity: 0.55;
cursor: wait;
}
.tnx-candidate .case-answer-btn.hidden {
display: none;
}
.tnx-candidate .transcript-container {
background: #f7fafc;
border-radius: 6px;
padding: 1rem;
max-height: 300px;
overflow-y: auto;
}
.tnx-candidate .conversation-container {
background: #f7fafc;
border-radius: 6px;
padding: 1rem;
max-height: 400px;
overflow-y: auto;
}
.tnx-candidate .ai-message, .tnx-candidate .user-message {
margin-bottom: 1rem;
padding: 0.75rem;
border-radius: 8px;
}
.tnx-candidate .ai-message {
background: #e6f3ff;
border-left: 4px solid #667eea;
}
.tnx-candidate .user-message {
background: #f0f0f0;
border-left: 4px solid #48bb78;
}
.tnx-candidate .message-role {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.25rem;
color: #4a5568;
}
.tnx-candidate .message-content {
color: #2d3748;
}
.tnx-candidate .interview-content {
padding: 1rem;
}
.tnx-candidate .result-card {
background: #f7fafc;
border-radius: 8px;
padding: 1.5rem;
margin: 1rem 0;
}
.tnx-candidate .score-circle {
width: 120px;
height: 120px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 36px;
font-weight: bold;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.tnx-candidate .evaluation-item {
display: flex;
justify-content: space-between;
padding: 0.5rem 0;
border-bottom: 1px solid #e2e8f0;
}
.tnx-candidate {
--hubhr-primary: #514dad;
--hubhr-primary-dark: #46439d;
--hubhr-primary-soft: #eeedff;
--hubhr-text: #202533;
--hubhr-muted: #657082;
--hubhr-line: #dfe3ec;
--hubhr-bg: #f8f9fd;
--hubhr-success: #25b45b;
}
.tnx-candidate .interview-container {
min-height: 100vh;
background:
                radial-gradient(circle at 18% 15%, rgba(81, 77, 173, 0.08), transparent 30%),
                radial-gradient(circle at 84% 78%, rgba(81, 77, 173, 0.08), transparent 34%),
                linear-gradient(180deg, #fbfbff 0%, #f7f8fc 100%);
color: var(--hubhr-text);
}
.tnx-candidate.theme-bg-dark .interview-container {
background:
                radial-gradient(circle at 18% 15%, color-mix(in srgb, var(--candidate-theme-base) 14%, transparent), transparent 32%),
                radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--candidate-theme-answer) 12%, transparent), transparent 34%),
                linear-gradient(180deg, #080b18 0%, #101426 100%);
}
.tnx-candidate.theme-bg-light .interview-container {
background:
                radial-gradient(circle at 18% 15%, color-mix(in srgb, var(--candidate-theme-base) 8%, transparent), transparent 30%),
                radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--candidate-theme-answer) 8%, transparent), transparent 34%),
                linear-gradient(180deg, #fbfbff 0%, #f7f8fc 100%);
}
.tnx-candidate .interview-header {
height: 78px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 0 34px;
border-bottom: 1px solid var(--hubhr-line);
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(14px);
}
.tnx-candidate .interview-header.is-complete {
background: linear-gradient(90deg, #504ca8 0%, #5854b5 100%);
border-bottom: none;
color: #fff;
}
.tnx-candidate .service-lockup,
.tnx-candidate .brand-lockup {
display: flex;
align-items: center;
gap: 12px;
color: var(--hubhr-primary);
font-weight: 700;
letter-spacing: 0;
min-width: 0;
}
.tnx-candidate .interview-header.is-complete .service-lockup, .tnx-candidate .interview-header.is-complete .brand-lockup, .tnx-candidate .interview-header.is-complete .header-help {
color: #fff;
}
.tnx-candidate .service-lockup {
flex: 0 0 auto;
}
.tnx-candidate .service-mark {
width: 96px;
height: 64px;
object-fit: contain;
display: block;
}
.tnx-candidate .service-name {
font-size: 30px;
font-weight: 800;
line-height: 1;
color: #1a1a1a;
white-space: nowrap;
}
.tnx-candidate .interview-header.is-complete .service-name {
color: #fff;
}
.tnx-candidate .candidate-company-lockup {
justify-content: flex-end;
flex: 1 1 auto;
}
.tnx-candidate .brand-mark {
width: 58px;
height: 34px;
object-fit: contain;
display: block;
}
.tnx-candidate .brand-name {
font-size: 28px;
line-height: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tnx-candidate .brand-product {
font-size: 26px;
font-weight: 400;
line-height: 1;
white-space: nowrap;
}
.tnx-candidate .header-help {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--hubhr-primary);
font-size: 16px;
font-weight: 600;
}
.tnx-candidate .interview-page {
min-height: calc(100vh - 78px);
padding: 20px 20px 18px;
}
.tnx-candidate .interview-page.is-start {
animation: tnx-start-page-in 0.8s ease 3.65s both;
}
.tnx-candidate .start-splash {
position: fixed;
inset: 0;
z-index: 10000;
display: grid;
place-items: center;
background: #fff;
pointer-events: none;
animation: tnx-start-splash-out 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.tnx-candidate .start-splash img {
width: min(96vw, 1200px);
height: min(96vh, 860px);
object-fit: contain;
filter: drop-shadow(0 28px 54px rgba(36, 40, 62, 0.16));
animation: tnx-start-logo-motion 4.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tnx-start-splash-out {
0%, 58% {
opacity: 1;
}
100% {
opacity: 0;
visibility: hidden;
}
}
@keyframes tnx-start-logo-motion {
0% {
opacity: 0;
transform: scale(0.92) translateY(18px);
}
18%, 58% {
opacity: 1;
transform: scale(1) translateY(0);
}
100% {
opacity: 0;
transform: scale(1.08) translateY(-18px);
}
}
@keyframes tnx-start-page-in {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tnx-candidate .setup-card {
width: min(980px, calc(100vw - 40px));
margin: 0 auto;
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(223, 227, 236, 0.9);
border-radius: 12px;
box-shadow: 0 14px 42px rgba(36, 40, 62, 0.12);
padding: 26px 30px 22px;
}
.tnx-candidate .start-invalid-card {
width: min(720px, calc(100vw - 40px));
margin: 48px auto 0;
background: rgba(255, 255, 255, 0.96);
border: 1px solid rgba(223, 227, 236, 0.95);
border-radius: 12px;
box-shadow: 0 14px 42px rgba(36, 40, 62, 0.12);
padding: 36px 34px;
text-align: center;
}
.tnx-candidate .start-invalid-card h1 {
font-size: 30px;
line-height: 1.25;
font-weight: 800;
letter-spacing: 0;
color: var(--hubhr-text);
margin: 0 0 12px;
}
.tnx-candidate .start-invalid-card p {
font-size: 15px;
line-height: 1.8;
color: var(--hubhr-muted);
margin: 0;
}
.tnx-candidate .setup-title {
text-align: center;
padding-bottom: 14px;
border-bottom: 1px solid var(--hubhr-line);
margin-bottom: 20px;
}
.tnx-candidate .screen-icon {
width: 56px;
height: 56px;
border-radius: 999px;
background: var(--hubhr-primary-soft);
color: var(--hubhr-primary);
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
.tnx-candidate .setup-title h1, .tnx-candidate .complete-title {
font-size: 36px;
line-height: 1.2;
font-weight: 800;
letter-spacing: 0;
color: var(--hubhr-text);
}
.tnx-candidate .setup-title p, .tnx-candidate .complete-lead {
color: var(--hubhr-muted);
font-size: 14px;
line-height: 1.7;
margin-top: 10px;
}
.tnx-candidate .setup-top-grid {
display: grid;
grid-template-columns: 1fr 1.05fr;
gap: 30px;
margin-bottom: 16px;
}
.tnx-candidate .candidate-stack {
display: grid;
gap: 22px;
padding: 4px 0;
}
.tnx-candidate .candidate-row {
display: grid;
grid-template-columns: 36px 1fr;
gap: 18px;
align-items: center;
}
.tnx-candidate .candidate-icon {
color: var(--hubhr-primary);
display: flex;
align-items: center;
justify-content: center;
}
.tnx-candidate .candidate-label {
color: var(--hubhr-muted);
font-size: 14px;
line-height: 1.4;
}
.tnx-candidate .candidate-value {
color: #111827;
font-size: 20px;
font-weight: 800;
line-height: 1.45;
}
.tnx-candidate .language-panel {
display: grid;
grid-template-columns: 36px 1fr;
gap: 18px;
align-items: center;
}
.tnx-candidate .language-panel select {
height: 40px;
border-radius: 8px;
border: 1px solid var(--hubhr-line);
background: #fff;
color: var(--hubhr-text);
font-weight: 600;
}
.tnx-candidate .info-panel {
background: linear-gradient(180deg, #fbfbff 0%, #f5f6fb 100%);
border: 1px solid var(--hubhr-line);
border-radius: 8px;
padding: 16px 18px;
}
.tnx-candidate .panel-title {
display: flex;
align-items: center;
gap: 8px;
color: var(--hubhr-primary);
font-weight: 800;
margin-bottom: 10px;
}
.tnx-candidate .info-panel ol, .tnx-candidate .info-panel ul {
color: #3f4654;
font-size: 13px;
line-height: 1.9;
padding-left: 18px;
margin: 0;
}
.tnx-candidate .environment-grid {
display: grid;
grid-template-columns: 1fr 1.05fr;
gap: 30px;
margin-bottom: 18px;
}
.tnx-candidate .section-eyebrow {
color: var(--hubhr-primary);
font-weight: 800;
font-size: 14px;
margin-bottom: 8px;
}
.tnx-candidate .check-list {
border: 1px solid var(--hubhr-line);
border-radius: 8px;
overflow: hidden;
background: #fff;
}
.tnx-candidate .check-row {
min-height: 74px;
display: grid;
grid-template-columns: 50px 1fr 28px;
align-items: center;
gap: 14px;
padding: 0 22px 0 14px;
border-bottom: 1px solid var(--hubhr-line);
}
.tnx-candidate .check-row:last-child {
border-bottom: none;
}
.tnx-candidate .check-icon {
width: 44px;
height: 44px;
border-radius: 999px;
background: var(--hubhr-primary-soft);
color: var(--hubhr-primary);
display: flex;
align-items: center;
justify-content: center;
}
.tnx-candidate .check-title {
color: #111827;
font-weight: 800;
line-height: 1.4;
}
.tnx-candidate .check-subtitle {
color: var(--hubhr-muted);
font-size: 13px;
margin-top: 2px;
}
.tnx-candidate .check-status {
color: var(--hubhr-success);
}
.tnx-candidate .preview-video-wrap {
height: 188px;
border-radius: 8px;
overflow: hidden;
background: linear-gradient(135deg, #eff1f7, #d9dce7);
border: 1px solid var(--hubhr-line);
}
.tnx-candidate #setup-video-preview {
width: 100%;
height: 100%;
object-fit: cover;
background: #eef0f6;
}
.tnx-candidate .mic-meter {
display: grid;
grid-template-columns: repeat(44, 1fr);
gap: 5px;
margin-top: 8px;
}
.tnx-candidate .mic-meter span {
height: 17px;
border-radius: 999px;
background: #dfe3ec;
transition: background 0.12s ease;
}
.tnx-candidate .mic-meter span.is-active {
background: var(--hubhr-primary);
}
.tnx-candidate .device-settings {
display: grid;
gap: 12px;
margin-top: 12px;
}
.tnx-candidate .device-control {
display: grid;
gap: 6px;
}
.tnx-candidate .device-control label, .tnx-candidate .volume-control-label {
color: var(--hubhr-primary);
font-size: 13px;
font-weight: 800;
}
.tnx-candidate .device-control select {
width: 100%;
min-height: 40px;
border: 1px solid var(--hubhr-line);
border-radius: 8px;
background: #fff;
color: var(--hubhr-text);
font-weight: 600;
padding: 0 12px;
}
.tnx-candidate .volume-control {
display: grid;
grid-template-columns: 1fr auto;
gap: 10px;
align-items: center;
}
.tnx-candidate .volume-slider {
width: 100%;
accent-color: var(--hubhr-primary);
}
.tnx-candidate .volume-value {
min-width: 44px;
color: #111827;
font-weight: 800;
text-align: right;
}
.tnx-candidate .test-sound-button {
min-height: 38px;
border: 1px solid var(--hubhr-line);
border-radius: 8px;
color: var(--hubhr-primary);
background: #fff;
font-weight: 800;
transition: background 0.15s ease, border-color 0.15s ease;
}
.tnx-candidate .test-sound-button:hover {
background: var(--hubhr-primary-soft);
border-color: #c8c6f4;
}
.tnx-candidate .start-action-stack {
display: grid;
gap: 10px;
}
.tnx-candidate .btn-secondary-start {
min-height: 50px;
border: 1px solid #c8c6f4;
border-radius: 8px;
background: #fff;
color: var(--hubhr-primary);
font-weight: 800;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tnx-candidate .btn-secondary-start:hover:not(:disabled) {
background: var(--hubhr-primary-soft);
border-color: var(--hubhr-primary);
transform: translateY(-1px);
}
.tnx-candidate .btn-secondary-start:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.tnx-candidate .consent-card {
border: 1px solid var(--hubhr-line);
border-radius: 8px;
background: #fff;
padding: 12px 14px;
margin-bottom: 16px;
}
.tnx-candidate .consent-card label {
display: flex;
align-items: flex-start;
gap: 10px;
color: #4b5563;
font-size: 14px;
line-height: 1.7;
}
.tnx-candidate .consent-card input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 3px;
accent-color: var(--hubhr-primary);
}
.tnx-candidate .consent-card a {
color: var(--hubhr-primary);
text-decoration: underline;
font-weight: 600;
}
.tnx-candidate .consent-details {
margin-top: 8px;
}
.tnx-candidate .consent-details summary {
cursor: pointer;
color: var(--hubhr-primary);
font-weight: 800;
list-style: none;
display: inline-flex;
align-items: center;
gap: 6px;
}
.tnx-candidate .consent-details summary::-webkit-details-marker {
display: none;
}
.tnx-candidate .consent-details summary::after {
content: "";
width: 8px;
height: 8px;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(45deg) translateY(-2px);
transition: transform 0.15s ease;
}
.tnx-candidate .consent-details[open] summary::after {
transform: rotate(225deg) translateY(-1px);
}
.tnx-candidate .consent-details ul {
color: #5b55a7;
font-size: 13px;
line-height: 1.8;
padding-left: 20px;
margin: 8px 0 0;
}
.tnx-candidate .btn-primary {
width: 100%;
min-height: 56px;
border-radius: 7px;
background: linear-gradient(135deg, var(--hubhr-primary) 0%, var(--hubhr-primary-dark) 100%);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
color: #fff;
font-size: 22px;
font-weight: 800;
box-shadow: 0 8px 20px rgba(81, 77, 173, 0.22);
}
.tnx-candidate .btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(81, 77, 173, 0.28);
}
.tnx-candidate .btn-primary:disabled {
opacity: 0.55;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.tnx-candidate .secure-note, .tnx-candidate .support-note {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
color: #7b8492;
font-size: 13px;
margin-top: 12px;
}
.tnx-candidate .support-note {
display: block;
text-align: center;
margin-top: 18px;
line-height: 1.8;
}
.tnx-candidate .support-link {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--hubhr-primary);
font-weight: 700;
}
.tnx-candidate .complete-card {
width: min(860px, calc(100vw - 40px));
margin: 32px auto 0;
background: rgba(255, 255, 255, 0.96);
border: 1px solid rgba(223, 227, 236, 0.9);
border-radius: 12px;
box-shadow: 0 14px 42px rgba(36, 40, 62, 0.13);
padding: 28px 60px 24px;
text-align: center;
}
.tnx-candidate .complete-icon {
width: 98px;
height: 98px;
border-radius: 999px;
background: var(--hubhr-primary-soft);
color: var(--hubhr-primary);
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
}
.tnx-candidate .complete-divider {
height: 1px;
background: var(--hubhr-line);
margin: 18px 0 22px;
}
.tnx-candidate .submission-status {
border: 1px solid var(--hubhr-line);
border-radius: 8px;
overflow: hidden;
background: #fff;
text-align: left;
margin-bottom: 20px;
}
.tnx-candidate .submission-row {
min-height: 82px;
display: grid;
grid-template-columns: 54px 1fr auto;
align-items: center;
gap: 18px;
padding: 0 18px;
border-bottom: 1px solid var(--hubhr-line);
}
.tnx-candidate .submission-row.is-done {
background: #f0fdf4;
}
.tnx-candidate .submission-row.is-done .check-icon {
background: #dcfce7;
color: #16a34a;
}
.tnx-candidate .submission-row:last-child {
border-bottom: none;
}
.tnx-candidate .status-pill {
min-width: 100px;
min-height: 36px;
border-radius: 7px;
background: var(--hubhr-primary-soft);
color: var(--hubhr-primary);
font-weight: 800;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
}
.tnx-candidate .status-pill.is-done {
background: #dcfce7;
color: #15803d;
}
.tnx-candidate .status-spinner {
width: 22px;
height: 22px;
border: 3px dotted var(--hubhr-primary);
border-radius: 999px;
animation: spin 1.1s linear infinite;
}
.tnx-candidate .complete-info {
display: flex;
align-items: flex-start;
gap: 14px;
text-align: left;
border: 1px solid #d8dcff;
border-left: 4px solid #d8dcff;
background: linear-gradient(180deg, #fbfbff 0%, #f6f7ff 100%);
border-radius: 8px;
padding: 16px 18px;
color: var(--hubhr-primary);
margin-bottom: 22px;
}
.tnx-candidate .complete-info strong {
display: block;
font-size: 18px;
margin-bottom: 4px;
}
.tnx-candidate .complete-info span {
color: #697386;
}
.tnx-candidate.candidate-tutorial-overlay {
position: fixed;
inset: 0;
z-index: 12000;
display: grid;
place-items: center;
padding: 22px;
background: rgba(17, 24, 39, 0.56);
backdrop-filter: blur(8px);
}
.tnx-candidate .candidate-tutorial-modal {
width: min(1080px, 100%);
max-height: min(860px, calc(100vh - 44px));
overflow: auto;
border: 1px solid rgba(223, 227, 236, 0.92);
border-radius: 12px;
background: #fff;
box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}
.tnx-candidate .candidate-tutorial-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
padding: 22px 24px 16px;
border-bottom: 1px solid var(--hubhr-line);
}
.tnx-candidate .candidate-tutorial-head span {
display: inline-flex;
align-items: center;
min-height: 26px;
padding: 0 10px;
border-radius: 999px;
background: var(--hubhr-primary-soft);
color: var(--hubhr-primary);
font-size: 12px;
font-weight: 900;
}
.tnx-candidate .candidate-tutorial-head h2 {
margin: 10px 0 0;
color: var(--hubhr-text);
font-size: 24px;
line-height: 1.35;
font-weight: 900;
letter-spacing: 0;
}
.tnx-candidate .candidate-tutorial-close {
width: 38px;
height: 38px;
border-radius: 8px;
border: 1px solid var(--hubhr-line);
background: #fff;
color: #475467;
font-size: 24px;
line-height: 1;
}
.tnx-candidate .candidate-tutorial-close:hover {
background: #f5f6fb;
color: var(--hubhr-primary);
}
.tnx-candidate .candidate-tutorial-body {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
gap: 22px;
padding: 22px 24px;
}
.tnx-candidate .candidate-tutorial-stage {
position: relative;
min-height: 430px;
overflow: hidden;
border-radius: 12px;
background: radial-gradient(circle at 24% 18%, rgba(139, 92, 246, 0.28), transparent 30%), linear-gradient(135deg, #131827 0%, #222848 54%, #171b2d 100%);
color: #fff;
padding: 18px;
}
.tnx-candidate .candidate-tutorial-topbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
position: relative;
z-index: 1;
}
.tnx-candidate .candidate-tutorial-topbar span,
.tnx-candidate .candidate-tutorial-topbar b {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.13);
border: 1px solid rgba(255, 255, 255, 0.18);
font-size: 13px;
font-weight: 800;
}
.tnx-candidate .candidate-tutorial-main {
display: grid;
grid-template-columns: 86px 1fr;
gap: 18px;
align-items: center;
margin-top: 58px;
padding-right: 130px;
}
.tnx-candidate .candidate-tutorial-orb {
width: 86px;
height: 86px;
border-radius: 999px;
display: grid;
place-items: center;
background: linear-gradient(135deg, #b6adff, #f0abfc);
box-shadow: 0 0 44px rgba(190, 173, 255, 0.44);
color: #1f2350;
font-weight: 900;
font-size: 24px;
}
.tnx-candidate .candidate-tutorial-question {
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
padding: 18px 20px;
backdrop-filter: blur(10px);
}
.tnx-candidate .candidate-tutorial-question small {
display: block;
color: rgba(255, 255, 255, 0.7);
font-weight: 800;
margin-bottom: 8px;
}
.tnx-candidate .candidate-tutorial-question p {
margin: 0;
font-size: 19px;
line-height: 1.75;
font-weight: 800;
}
.tnx-candidate .candidate-tutorial-pip {
position: absolute;
right: 18px;
bottom: 18px;
width: 170px;
height: 116px;
overflow: hidden;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.28);
background: #0b1020;
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}
.tnx-candidate .candidate-tutorial-pip video {
width: 100%;
height: 100%;
object-fit: cover;
}
.tnx-candidate .candidate-tutorial-pip span {
position: absolute;
left: 8px;
bottom: 8px;
right: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
font-weight: 800;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.tnx-candidate .candidate-tutorial-answer,
.tnx-candidate .candidate-tutorial-mic-check {
position: absolute;
left: 18px;
right: 208px;
bottom: 18px;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) auto auto;
align-items: center;
gap: 12px;
min-height: 76px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
background: rgba(255, 255, 255, 0.12);
padding: 12px 14px;
backdrop-filter: blur(10px);
}
.tnx-candidate .candidate-tutorial-answer strong,
.tnx-candidate .candidate-tutorial-mic-check strong {
display: block;
font-size: 15px;
font-weight: 900;
}
.tnx-candidate .candidate-tutorial-answer span,
.tnx-candidate .candidate-tutorial-mic-check span {
display: block;
margin-top: 3px;
color: rgba(255, 255, 255, 0.74);
font-size: 12px;
line-height: 1.55;
}
.tnx-candidate .candidate-tutorial-mini-btn {
min-height: 40px;
padding: 0 14px;
border-radius: 8px;
background: #fff;
color: var(--hubhr-primary);
font-weight: 900;
white-space: nowrap;
}
.tnx-candidate .candidate-tutorial-meter {
display: grid;
grid-template-columns: repeat(18, 1fr);
gap: 4px;
min-width: 150px;
}
.tnx-candidate .candidate-tutorial-meter span {
height: 14px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.22);
}
.tnx-candidate .candidate-tutorial-meter span.is-active {
background: #c4b5fd;
}
.tnx-candidate .candidate-tutorial-guide {
display: grid;
align-content: start;
gap: 16px;
}
.tnx-candidate .candidate-tutorial-guide p {
margin: 0;
color: #344054;
font-size: 15px;
line-height: 1.85;
font-weight: 700;
}
.tnx-candidate .candidate-tutorial-guide ol {
margin: 0;
padding-left: 20px;
color: #475467;
font-size: 14px;
line-height: 1.9;
}
.tnx-candidate .candidate-tutorial-note {
border: 1px solid #d8dcff;
border-left: 4px solid var(--hubhr-primary);
border-radius: 8px;
background: #fbfbff;
padding: 12px 14px;
color: #5b55a7;
font-size: 13px;
line-height: 1.7;
font-weight: 800;
}
.tnx-candidate .candidate-tutorial-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 0 24px 24px;
}
.tnx-candidate .candidate-tutorial-actions .btn-primary,
.tnx-candidate .candidate-tutorial-actions .btn-secondary-start {
min-height: 48px;
font-size: 16px;
}
@media (max-width: 900px) {
.tnx-candidate .interview-header {
padding: 0 18px;
gap: 10px;
height: auto;
min-height: 86px;
align-items: flex-start;
flex-direction: column;
justify-content: center;
}
.tnx-candidate .service-mark {
width: 72px;
height: 48px;
}
.tnx-candidate .service-name {
font-size: 23px;
}
.tnx-candidate .candidate-company-lockup {
width: 100%;
justify-content: flex-start;
gap: 9px;
}
.tnx-candidate .brand-mark {
width: 42px;
height: 28px;
}
.tnx-candidate .brand-name {
font-size: 17px;
}
.tnx-candidate .brand-product {
font-size: 16px;
}
.tnx-candidate .interview-page {
min-height: calc(100vh - 106px);
}
.tnx-candidate .setup-card, .tnx-candidate .complete-card {
width: min(100%, calc(100vw - 28px));
padding: 22px 18px;
}
.tnx-candidate .setup-top-grid, .tnx-candidate .environment-grid {
grid-template-columns: 1fr;
gap: 18px;
}
.tnx-candidate .setup-title h1, .tnx-candidate .complete-title {
font-size: 30px;
}
.tnx-candidate .submission-row {
grid-template-columns: 48px 1fr;
padding: 14px;
}
.tnx-candidate .status-pill, .tnx-candidate .status-spinner {
grid-column: 2;
justify-self: start;
}
.tnx-candidate.candidate-tutorial-overlay {
padding: 12px;
}
.tnx-candidate .candidate-tutorial-head,
.tnx-candidate .candidate-tutorial-body,
.tnx-candidate .candidate-tutorial-actions {
padding-left: 16px;
padding-right: 16px;
}
.tnx-candidate .candidate-tutorial-body,
.tnx-candidate .candidate-tutorial-actions {
grid-template-columns: 1fr;
}
.tnx-candidate .candidate-tutorial-stage {
min-height: 520px;
}
.tnx-candidate .candidate-tutorial-main {
grid-template-columns: 1fr;
margin-top: 34px;
padding-right: 0;
}
.tnx-candidate .candidate-tutorial-orb {
width: 70px;
height: 70px;
}
.tnx-candidate .candidate-tutorial-answer,
.tnx-candidate .candidate-tutorial-mic-check {
left: 14px;
right: 14px;
bottom: 142px;
grid-template-columns: 1fr;
}
.tnx-candidate .candidate-tutorial-pip {
left: 14px;
right: auto;
width: calc(100% - 28px);
height: 112px;
}
}

/* --- TeraNextPrd互換 Tailwindユーティリティ（候補者画面で使用する分のみ・名前空間内） --- */
.tnx-candidate .hidden { display: none !important; }
.tnx-candidate .flex { display: flex; }
.tnx-candidate .grid { display: grid; }
.tnx-candidate .items-center { align-items: center; }
.tnx-candidate .items-start { align-items: flex-start; }
.tnx-candidate .justify-center { justify-content: center; }
.tnx-candidate .flex-1 { flex: 1 1 0%; }
.tnx-candidate .min-h-screen { min-height: calc(100vh - 70px); }
.tnx-candidate .text-center { text-align: center; }
.tnx-candidate .mx-auto { margin-left: auto; margin-right: auto; }
.tnx-candidate .mb-2 { margin-bottom: 0.5rem; }
.tnx-candidate .mb-3 { margin-bottom: 0.75rem; }
.tnx-candidate .mb-4 { margin-bottom: 1rem; }
.tnx-candidate .mb-6 { margin-bottom: 1.5rem; }
.tnx-candidate .mt-4 { margin-top: 1rem; }
.tnx-candidate .gap-4 { gap: 1rem; }
.tnx-candidate .gap-6 { gap: 1.5rem; }
.tnx-candidate .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.tnx-candidate .p-4 { padding: 1rem; }
.tnx-candidate .max-w-md { max-width: 28rem; }
.tnx-candidate .max-w-4xl { max-width: 56rem; }
.tnx-candidate .w-full { width: 100%; }
.tnx-candidate .h-64 { height: 16rem; }
.tnx-candidate .w-10 { width: 2.5rem; }
.tnx-candidate .h-10 { height: 2.5rem; }
.tnx-candidate .rounded { border-radius: 0.25rem; }
.tnx-candidate .rounded-lg { border-radius: 0.5rem; }
.tnx-candidate .rounded-full { border-radius: 9999px; }
.tnx-candidate .bg-black { background-color: #000; }
.tnx-candidate .bg-gray-50 { background-color: #f9fafb; }
.tnx-candidate .text-white { color: #fff; }
.tnx-candidate .text-gray-600 { color: #4b5563; }
.tnx-candidate .text-gray-700 { color: #374151; }
.tnx-candidate .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.tnx-candidate .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.tnx-candidate .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.tnx-candidate .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.tnx-candidate .font-bold { font-weight: 700; }
.tnx-candidate .font-semibold { font-weight: 600; }
.tnx-candidate .space-x-3 > * + * { margin-left: 0.75rem; }
.tnx-candidate .container-live { width: min(1024px, 100%); margin: 0 auto; }
.tnx-candidate .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .tnx-candidate .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tnx-candidate .ai-avatar { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 9999px; background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tnx-candidate button { font: inherit; cursor: pointer; border: 0; background: none; }
.tnx-candidate .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; border: 0; cursor: pointer; }
.tnx-candidate .btn-finish { width: auto; min-width: 220px; }
/* 面接実施中: ステータスチップ */
.tnx-candidate .stage-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tnx-candidate .stage-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--hubhr-primary-soft); color: var(--hubhr-primary); font-size: 13px; font-weight: 800; }
.tnx-candidate .stage-chip b { font-weight: 900; }
/* 環境チェックの状態色 */
.tnx-candidate .check-status.ng { color: #d92d20; }
.tnx-candidate .check-status.pending { color: var(--hubhr-muted); }
.tnx-candidate .check-status .status-spinner { width: 22px; height: 22px; border: 3px solid #dfe3ec; border-top-color: var(--hubhr-primary); border-radius: 50%; display: inline-block; animation: tnx-spin 0.8s linear infinite; }
@keyframes tnx-spin { to { transform: rotate(360deg); } }
.tnx-candidate .check-subtitle.ng { color: #b42318; }
/* 完了画面 */
.tnx-candidate .tnx-complete-list { border: 1px solid var(--hubhr-line); border-radius: 8px; overflow: hidden; margin: 1.25rem 0; text-align: left; }
.tnx-candidate .tnx-complete-list > div { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hubhr-line); }
.tnx-candidate .tnx-complete-list > div:last-child { border-bottom: 0; }
.tnx-candidate .tnx-complete-list span:first-child { color: var(--hubhr-primary); font-size: 18px; }
.tnx-candidate #rt-caption { color: var(--hubhr-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.tnx-candidate .preview-video-wrap video { width: 100%; height: 100%; object-fit: cover; background: #eef0f6; }

/* 旧グローバル .question-card（管理画面レガシー）のbleed打ち消し */
.tnx-candidate .question-card {
  min-height: 0;
  display: block;
}

/* C-14: 発行済みURL（有効）ブロック */
.issued-url-block.active-issued {
  border-color: #c9d4f3;
  background: #f6f8ff;
}

.issued-url-block.active-issued .issued-url-code {
  border-color: #d4dcf0;
  color: #2d3a6b;
}

.issued-url-meta {
  margin: 0;
  color: #5b678a;
  font-size: 12px;
  font-weight: 700;
}

.issued-url-actions {
  display: flex;
  gap: 8px;
}

/* 候補者画面のスクロール: 管理画面シェルの body{overflow:hidden} の影響を受けるため、
   候補者画面はルート要素自身をスクロールコンテナにする（TeraNextPrdのbodyスクロールと同等の挙動） */
.tnx-candidate {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  --candidate-theme-base: #7c3aed;
  --candidate-theme-answer: #0891b2;
  --candidate-theme-base-hue: 264;
  --candidate-theme-answer-hue: 190;
  --candidate-theme-surface: rgba(255,255,255,0.07);
  --candidate-theme-border: rgba(255,255,255,0.14);
  --candidate-theme-text: #e7e9f6;
  --candidate-theme-muted: #b9bedf;
}

/* ============================================================
   C-15: 面接実施中のモダンステージUI（ダーク・グラスモーフィズム）
   ============================================================ */
.tnx-candidate .tnx-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 70px - 38px);
  margin: 0 auto;
  border-radius: 18px;
  padding: 22px 28px;
  background:
    radial-gradient(ellipse 900px 500px at 70% -10%, color-mix(in srgb, var(--candidate-theme-base) 28%, transparent), transparent 60%),
    radial-gradient(ellipse 700px 420px at 12% 108%, color-mix(in srgb, var(--candidate-theme-answer) 25%, transparent), transparent 60%),
    linear-gradient(180deg, #0e1024 0%, #15173a 55%, #101228 100%);
  color: var(--candidate-theme-text);
  overflow: hidden;
}

.tnx-candidate.theme-bg-light .tnx-stage {
  background:
    radial-gradient(ellipse 900px 500px at 70% -10%, color-mix(in srgb, var(--candidate-theme-base) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 700px 420px at 12% 108%, color-mix(in srgb, var(--candidate-theme-answer) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #eef4ff 100%);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.tnx-candidate.theme-bg-light .stage-progress-bar {
  background: rgba(15, 23, 42, 0.10);
}

.tnx-candidate.theme-bg-light .stage-answer.case-answer-control strong,
.tnx-candidate.theme-bg-light .stage-answer.case-answer-control span {
  color: #0f172a;
}

.tnx-candidate.theme-bg-light .stage-answer .case-answer-btn {
  border-color: color-mix(in srgb, var(--candidate-theme-answer) 42%, #fff);
  background: #fff;
  color: #0f172a;
}

.tnx-candidate .stage-tutorial-banner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(196, 181, 253, 0.48);
  border-radius: 10px;
  background: rgba(238, 242, 255, 0.12);
  color: #eef2ff;
  padding: 11px 14px;
  backdrop-filter: blur(10px);
}

.tnx-candidate .stage-tutorial-banner strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.tnx-candidate .stage-tutorial-banner span {
  min-width: 0;
  color: #d8d8ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.tnx-candidate .stage-tutorial-banner button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4c1d95;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

/* 上部バー: 進捗 + ステータス */
.tnx-candidate .stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.tnx-candidate .stage-progress-wrap {
  display: grid;
  gap: 7px;
  min-width: 220px;
  flex: 0 1 340px;
}

.tnx-candidate .stage-progress-label {
  color: var(--candidate-theme-muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
}

.tnx-candidate .stage-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tnx-candidate .stage-progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--candidate-theme-base), var(--candidate-theme-answer));
  transition: width .5s ease;
}

.tnx-candidate .stage-indicators {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tnx-candidate .stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--candidate-theme-border);
  background: var(--candidate-theme-surface);
  backdrop-filter: blur(8px);
  color: #cdd2ee;
  font-size: 12.5px;
  font-weight: 700;
}

.tnx-candidate .stage-pill b {
  color: var(--candidate-theme-text);
  font-weight: 800;
}

.tnx-candidate .stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}

/* 中央: AIオーブ + 質問 */
.tnx-candidate .stage-main {
  flex: 1;
  min-height: 0;                 /* 子のスクロール領域が親を押し広げないように */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 0 8px;
  text-align: center;
  overflow: hidden;
}
/* 通常モード: 左カラムを横に広く使い、質問表示スペースを最大化 */
.tnx-candidate .stage-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: min(1040px, 96%);
  min-height: 0;
  max-height: 100%;
}

/* AIアイコン + 状態/カウントダウンを横並びにする compact ヘッダー行 */
.tnx-candidate .stage-head-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
}
.tnx-candidate .stage-head-text {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.tnx-candidate .stage-head-row .stage-live-label { margin: 0; }

.tnx-candidate .stage-orb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, var(--candidate-theme-base), var(--candidate-theme-answer), color-mix(in srgb, var(--candidate-theme-base) 72%, #fff), var(--candidate-theme-base));
  box-shadow: 0 0 30px color-mix(in srgb, var(--candidate-theme-base) 45%, transparent), inset 0 0 16px rgba(255, 255, 255, 0.25);
}

.tnx-candidate .stage-orb::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--candidate-theme-base) 42%, transparent);
  opacity: 0;
}

.tnx-candidate .stage-orb.speaking::after {
  opacity: 1;
  animation: tnx-orb-pulse 1.4s ease-out infinite;
}

.tnx-candidate .stage-orb span {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(20, 16, 60, 0.4);
}

@keyframes tnx-orb-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}

.tnx-candidate .stage-question-card {
  width: 100%;
  flex: 1 1 auto;               /* 余った縦スペースをすべて質問表示に使う */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--candidate-theme-border);
  border-radius: 18px;
  background: var(--candidate-theme-surface);
  backdrop-filter: blur(14px);
  padding: 20px 26px;
  text-align: left;
  overflow: hidden;             /* 見出しは固定、本文側をスクロールさせる */
}

.tnx-candidate .stage-question-card small {
  display: block;
  color: var(--candidate-theme-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.tnx-candidate .stage-question-card #rt-question {
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;             /* 長い発話はここをスクロール */
  overflow-wrap: anywhere;      /* 長い語・URL等もはみ出さず折返す */
  word-break: break-word;
  color: var(--candidate-theme-text);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.75;
}

.tnx-candidate .stage-question-card #rt-caption {
  margin: 8px 0 0;
  color: var(--candidate-theme-muted);
  font-size: 13px;
}

/* 回答コントロール（ステージ用グラス調・紫アクセントは踏襲） */
.tnx-candidate .stage-answer.case-answer-control {
  width: min(760px, 100%);
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--candidate-theme-answer) 50%, transparent);
  background: color-mix(in srgb, var(--candidate-theme-answer) 16%, transparent);
  color: #efe7ff;
  backdrop-filter: blur(12px);
  text-align: left;
}

.tnx-candidate .stage-answer.case-answer-control strong {
  color: #fff;
}

.tnx-candidate .stage-answer.case-answer-control span {
  color: #cfc3f5;
}

.tnx-candidate .stage-answer .case-answer-btn {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: #4c1d95;
  border-radius: 999px;
  padding: 10px 22px;
}

.tnx-candidate .stage-answer .case-answer-btn.primary {
  background: linear-gradient(135deg, var(--candidate-theme-answer), var(--candidate-theme-base));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--candidate-theme-answer) 42%, transparent);
}

/* 自分の映像（PiP） */
.tnx-candidate .stage-pip {
  position: absolute;
  right: 26px;
  bottom: 72px;
  width: 248px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(5, 8, 28, 0.55);
  background: #000;
}

.tnx-candidate .stage-pip video {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #000;
}

.tnx-candidate .stage-pip span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 32, 0.65);
  color: #dfe3ff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* 下部バー */
.tnx-candidate .stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  padding: 6px 0 2px;
}
.tnx-candidate .stage-footer.stage-footer-center { justify-content: center; }

.tnx-candidate .stage-finish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}

.tnx-candidate .stage-finish:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

.tnx-candidate .stage-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8d94bd;
  font-size: 12px;
}

/* 再接続ボタン（エラー時にJSが追加） */
.tnx-candidate .tnx-stage #rt-retry {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: #7c3aed;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .tnx-candidate .tnx-stage {
    padding: 16px;
    border-radius: 12px;
  }

  .tnx-candidate .stage-tutorial-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tnx-candidate .stage-tutorial-banner button {
    width: 100%;
  }

  .tnx-candidate .stage-question-card {
    padding: 18px 16px;
  }

  .tnx-candidate .stage-pip {
    position: static;
    width: 100%;
    margin: 14px 0;
  }

  .tnx-candidate .stage-pip video {
    height: 180px;
  }

  .tnx-candidate .stage-main {
    padding-bottom: 16px;
  }

  .tnx-candidate .stage-answer.case-answer-control {
    grid-template-columns: 1fr;
  }
}

/* C-16: 送信中/失敗時の完了画面 */
.tnx-candidate .complete-icon.is-processing {
  background: #eef0fb;
}

.tnx-candidate .status-spinner.big {
  width: 34px;
  height: 34px;
  border-width: 4px;
}

.tnx-candidate .submission-warning {
  color: #b45309;
  font-weight: 700;
}

.tnx-candidate .complete-icon.is-error {
  background: #fdecec;
  color: #d92d20;
}

.tnx-candidate .status-pill.is-error {
  border-color: #f3b4b4;
  background: #fdecec;
  color: #b42318;
}

.tnx-candidate .submission-error-detail {
  margin: 10px auto 0;
  max-width: 560px;
  color: #b42318;
  font-size: 12px;
  word-break: break-all;
}

/* ============================================================
   C-17: 面接ステージの体験強化（音声リアクティブ・オーロラ・マイクロインタラクション）
   ============================================================ */
/* 動くオーロラ背景 */
.tnx-candidate .tnx-stage::before,
.tnx-candidate .tnx-stage::after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.tnx-candidate .tnx-stage::before {
  background: radial-gradient(circle, var(--candidate-theme-base), transparent 62%);
  top: -180px;
  right: -120px;
  animation: tnx-aurora-a 16s ease-in-out infinite alternate;
}

.tnx-candidate .tnx-stage::after {
  background: radial-gradient(circle, var(--candidate-theme-answer), transparent 62%);
  bottom: -200px;
  left: -140px;
  animation: tnx-aurora-b 20s ease-in-out infinite alternate;
}

@keyframes tnx-aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 70px) scale(1.18); }
}

@keyframes tnx-aurora-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(110px, -60px) scale(0.94); }
}

.tnx-candidate .stage-topbar,
.tnx-candidate .stage-main,
.tnx-candidate .stage-footer {
  position: relative;
  z-index: 1;
}

.tnx-candidate .stage-pip {
  z-index: 2; /* position:absolute は基本定義のまま（オーロラより前面に出すだけ） */
}

/* オーブ + 円形スペクトラム */
.tnx-candidate .stage-orb-wrap {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.tnx-candidate .stage-nebula {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;          /* ステージ背景。コンテンツ(z-index:1+)の後ろで全面に広がる */
  pointer-events: none;
  display: block;
  opacity: 0.6;          /* 主張を抑え、面接内容から気が散らないように */
  filter: blur(3px);     /* 背景全体にボカシ */
}

/* ライブ状態ラベル */
.tnx-candidate .stage-live-label {
  margin-top: -6px;
  color: var(--candidate-theme-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: color .3s ease;
}

.tnx-candidate .tnx-stage.ai-speaking .stage-live-label {
  color: color-mix(in srgb, var(--candidate-theme-base) 68%, #fff);
}

/* 質問テキスト: 読み上げ中のキャレット */
.tnx-candidate .tnx-stage.ai-speaking .stage-question-card #rt-question::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: -0.18em;
  border-radius: 2px;
  background: var(--candidate-theme-base);
  animation: tnx-caret 0.9s steps(2) infinite;
}

@keyframes tnx-caret {
  50% { opacity: 0; }
}

/* 質問カード: 読み上げ中はうっすら発光 */
.tnx-candidate .stage-question-card {
  transition: border-color .4s ease, box-shadow .4s ease;
}

.tnx-candidate .tnx-stage.ai-speaking .stage-question-card {
  border-color: color-mix(in srgb, var(--candidate-theme-base) 52%, transparent);
  box-shadow: 0 0 42px color-mix(in srgb, var(--candidate-theme-base) 22%, transparent);
}

/* PiP: 回答録音中はマイクレベル連動の発光 + RECバッジ */
.tnx-candidate .stage-pip {
  --mic-glow: 0;
  transition: box-shadow .12s linear, border-color .3s ease;
}

.tnx-candidate .stage-pip.recording {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 18px 44px rgba(5, 8, 28, 0.55), 0 0 calc(14px + 26px * var(--mic-glow)) rgba(239, 68, 68, calc(0.25 + 0.55 * var(--mic-glow)));
}

.tnx-candidate .pip-rec {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.85);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.tnx-candidate .pip-rec::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: tnx-rec-blink 1.1s ease-in-out infinite;
}

@keyframes tnx-rec-blink {
  50% { opacity: 0.25; }
}

.tnx-candidate .stage-pip.recording .pip-rec {
  display: inline-flex;
}

/* 回答コントロール: 出現アニメ + ボタンのマイクロインタラクション */
.tnx-candidate .stage-answer.case-answer-control {
  animation: tnx-rise .35s cubic-bezier(.21,.86,.36,1);
}

@keyframes tnx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.tnx-candidate .stage-answer .case-answer-btn {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.tnx-candidate .stage-answer .case-answer-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
}

.tnx-candidate .stage-answer .case-answer-btn:active:not(:disabled) {
  transform: translateY(0);
}

@media (max-width: 860px) {
  .tnx-candidate .stage-orb-wrap {
    width: 170px;
    height: 170px;
  }

}

/* C-22: ケースAI面接のお題パネル・思考時間・回答時間（ステージUI内） */
.tnx-candidate .case-material {
  width: min(760px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(13, 16, 38, 0.55);
  backdrop-filter: blur(10px);
  padding: 18px 22px;
  text-align: left;
  z-index: 1;
}

.tnx-candidate .case-material-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tnx-candidate .case-material-head strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.tnx-candidate .case-material-head span {
  color: #a5acd8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  border: 1px solid rgba(167, 172, 216, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
}

.tnx-candidate .case-material-desc {
  margin: 0;
  color: #dfe3f6;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.tnx-candidate .case-material-figure {
  margin-top: 12px;
}

.tnx-candidate .case-material-figure img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.tnx-candidate .case-material-figure small {
  display: block;
  margin-top: 6px;
  color: #9aa1c9;
  font-size: 12px;
}

.tnx-candidate .case-wait-countdown {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.5);
  background: rgba(124, 58, 237, 0.18);
  color: #efe7ff;
  font-weight: 800;
}

.tnx-candidate .case-wait-countdown.hidden { display: none; }

.tnx-candidate .case-wait-countdown span {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
}

.tnx-candidate .case-answer-time {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.tnx-candidate .case-answer-time.hidden { display: none; }

/* ============================================================
   C-23: ケースAI面接 — 1画面レイアウト・大きい資料説明・全画面ズームビューア
   ============================================================ */
/* ケース時はステージをはみ出させず1画面に収める */
.tnx-candidate .tnx-stage {
  height: calc(100vh - 70px);
  overflow: hidden;
}

/* 受験中はページ自体をスクロールさせない（通常・ケース共通。各カード内のみスクロール） */
.tnx-candidate:has(.tnx-stage) {
  overflow: hidden;
}

/* ケース時はフッターの余白を詰めて1画面に収める */
.tnx-candidate .tnx-stage.case-mode .stage-footer { padding-top: 4px; }
.tnx-candidate .tnx-stage.case-mode .stage-topbar { margin-bottom: 2px; }


/* ケース時は2カラム: 左=AI/質問/回答操作、右=お題資料。1画面に収める */
.tnx-candidate .tnx-stage.case-mode .stage-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 24px;
  padding: 14px 4px 6px;
  text-align: left;
}
.tnx-candidate .tnx-stage.case-mode .stage-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
}
.tnx-candidate .tnx-stage.case-mode .stage-question-card { width: 100%; min-height: 0; flex: 1 1 auto; }
.tnx-candidate .tnx-stage.case-mode .stage-left { align-items: stretch; justify-content: flex-start; }

/* お題資料カラム: 説明文を大きく、内部スクロール、画像サムネ */
.tnx-candidate .tnx-stage.case-mode .case-material {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}
.tnx-candidate .case-material-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;       /* 資料が長い場合はカード内だけスクロール（ページは固定） */
}
.tnx-candidate .tnx-stage.case-mode .case-material-desc {
  font-size: 16px;
  line-height: 2;
}
.tnx-candidate .case-figure-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.tnx-candidate .case-figure-btn img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.tnx-candidate .case-figure-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10,12,32,0.7);
  color: #dfe3ff;
  font-size: 11px;
  font-weight: 700;
}
.tnx-candidate .case-material-figure figcaption {
  margin-top: 8px;
  color: #cdd2ee;
  font-size: 14px;
  line-height: 1.8;
}

/* 全画面ズームビューア */
.case-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  background: rgba(6, 8, 22, 0.92);
  backdrop-filter: blur(4px);
}
.case-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: #e7e9f6;
}
.case-lightbox-title { font-weight: 800; }
.case-lightbox-tools { display: flex; align-items: center; gap: 8px; }
.case-lightbox-tools button {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.case-lightbox-tools button:hover { background: rgba(255,255,255,0.18); }
.case-lightbox-tools .case-lightbox-close { font-size: 20px; line-height: 1; }
#case-lightbox-zoom { min-width: 52px; text-align: center; color: #cdd2ee; font-variant-numeric: tabular-nums; }
.case-lightbox-stage {
  flex: 1;
  overflow: auto;            /* 拡大時のスクロール */
  display: grid;
  place-items: center;
  cursor: grab;
}
#case-lightbox-img {
  max-width: 96vw;
  max-height: 82vh;
  transform-origin: center center;
  transition: transform 0.05s linear;
  user-select: none;
}
#case-lightbox-img.grabbing { cursor: grabbing; }
.case-lightbox-desc {
  padding: 12px 20px 18px;
  color: #cfd4ee;
  font-size: 15px;
  line-height: 1.9;
  max-height: 22vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .tnx-candidate .tnx-stage.case-mode { height: auto; overflow: visible; }
  .tnx-candidate .tnx-stage.case-mode .stage-main {
    grid-template-columns: 1fr;
    grid-template-areas: "ai" "material";
  }
}

/* C-24/C-25: 質問内容のスクロールバーを通常・ケース両モードで常時表示（スクロール中でなくても表示） */
.tnx-candidate .stage-question-card #rt-question {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.7) rgba(255, 255, 255, 0.12);
}
.tnx-candidate .stage-question-card #rt-question::-webkit-scrollbar {
  width: 10px;
  -webkit-appearance: none;
}
.tnx-candidate .stage-question-card #rt-question::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}
.tnx-candidate .stage-question-card #rt-question::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.75);
  border-radius: 999px;
}

/* =====================================================
   アクティビティ通知（サイドバー未読バッジ + 右上トースト）
   ===================================================== */
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #8b8fd9;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  flex-shrink: 0;
}

.activity-toast {
  position: fixed;
  top: calc(var(--topbar-height) + 12px);
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: activity-toast-in 0.25s ease-out;
}

@keyframes activity-toast-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.activity-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
  line-height: 32px;
  text-align: center;
  flex-shrink: 0;
}

.activity-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.activity-toast-body strong {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-toast-body small {
  font-size: 11px;
  color: var(--muted);
}

.activity-toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.activity-notification-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.activity-notification-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.activity-notification-type-row input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .activity-notification-type-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   TeraNextからのインフォメーション（サイドバー左下カード + モーダル）
   ===================================================== */
.service-info-card {
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  width: calc(100% - 12px);
}

.service-info-card:hover {
  box-shadow: 0 5px 14px rgba(40, 42, 75, 0.24);
}

.service-info-card .upgrade-title {
  line-height: 1.4;
}

.service-info-card .service-info-title {
  color: #171a2c;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(13px, 1.55vh, 16px);
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.22;
}

.service-info-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.service-information-modal {
  max-width: 560px;
}

.service-info-modal-body h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.service-info-modal-body .service-info-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 80px;
}

/* =====================================================
   ヘッダーの「戻る」「進む」履歴ナビゲーション
   ===================================================== */
.history-nav {
  margin-right: auto;
  display: flex;
  gap: 8px;
  padding-left: 16px;
}

.history-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.history-btn:hover {
  background: var(--brand-dark);
}

.normal-result-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 16px 18px;
}

.normal-result-selector b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.normal-result-selector span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.normal-result-selector label {
  display: grid;
  gap: 6px;
  min-width: min(420px, 100%);
}

.normal-result-selector select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

@media (max-width: 720px) {
  .normal-result-selector {
    align-items: stretch;
    flex-direction: column;
  }
}
