:root {
  color-scheme: dark;
  --bg: #061624;
  --surface: #0d2b42;
  --surface-2: #153e5c;
  --surface-3: #1a4a69;
  --line: rgba(173, 224, 255, .32);
  --line-strong: rgba(225, 246, 255, .66);
  --text: #f8fbfd;
  --muted: #a8c9dc;
  --blue: #83d5ff;
  --orange: #ff9749;
  --orange-soft: #ffd0aa;
  --green: #76e0ad;
  --red: #ff9e95;
  --shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% -8%, rgba(255, 151, 73, .14), transparent 28%),
    radial-gradient(circle at 2% 42%, rgba(84, 191, 246, .09), transparent 26%),
    linear-gradient(145deg, #061624, #091c2c 58%, #102639);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1540px, calc(100% - 28px));
  min-height: 82px;
  margin: 14px auto 0;
  padding: 12px 16px 12px 18px;
  display: grid;
  grid-template-columns: minmax(245px, .8fr) minmax(360px, 590px) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 24px;
  background: #123650;
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 18px 55px rgba(2,9,17,.22);
}
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { width: 114px; height: auto; display: block; }
.brand-separator { width: 1px; height: 40px; flex: 0 0 1px; background: linear-gradient(transparent, rgba(255,255,255,.92) 22%, #fff 50%, rgba(255,255,255,.92) 78%, transparent); }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { letter-spacing: .13em; text-transform: uppercase; font-size: .76rem; }
.brand-copy small { display: flex; gap: 5px; align-items: baseline; white-space: nowrap; font-size: .68rem; }
.brand-copy em { color: var(--orange); font-style: normal; font-weight: 800; }
.brand-copy b { color: #fff; font-weight: 750; }
.hub-global-search { min-height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.58); border-radius: 15px; background: rgba(13,39,59,.88); }
.hub-global-search:focus-within { border-color: rgba(255,255,255,.86); background: rgba(7,24,38,.78); }
.hub-global-search > span { color: #fff; font-size: 1.45rem; transform: rotate(-16deg); }
.hub-global-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f6fbff; font-size: .82rem; }
.hub-global-search input::placeholder { color: #7890a4; }
.top-actions { min-width: 0; padding-left: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-left: 1px solid rgba(255,255,255,.22); }
.admin-access-link, .logout-button { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.48); border-radius: 12px; background: rgba(255,255,255,.055); color: #fff; font-size: .68rem; font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.admin-access-link { border-color: rgba(255,158,73,.7); background: rgba(255,139,52,.13); color: #ffd2ad; }
.admin-access-link:hover, .logout-button:hover { transform: translateY(-1px); border-color: #fff; background: rgba(255,255,255,.11); }
.header-profile { min-width: 205px; min-height: 52px; padding: 5px 12px 5px 6px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.header-avatar { width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden; display: grid; place-items: center; border: 2px solid #ff9a4f; border-radius: 12px; background: linear-gradient(145deg,#ffca94,#ef7c2f); color: #1d120a; font-size: .72rem; font-weight: 900; }
.header-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 36%; }
.header-profile-copy { min-width: 0; display: grid; gap: 2px; }
.header-profile-copy strong, .header-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-profile-copy strong { font-size: .83rem; }
.header-profile-copy small { color: var(--muted); font-size: .7rem; }
.logout-button { width: 44px; min-width: 44px; padding: 0; border-radius: 13px; color: #dff3ff; }
.logout-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.module-tools { width: min(1540px, calc(100% - 28px)); margin: 10px auto 0; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.hub-return { border-color: rgba(255, 151, 73, .72); background: rgba(255, 151, 73, .1); color: var(--orange-soft); font-weight: 850; }
.hub-return span { font-size: 1.15rem; line-height: 1; }
.menu-back { background: transparent; }
.test-badge { padding: 8px 12px; border: 1px solid rgba(255, 151, 73, .6); border-radius: 999px; color: var(--orange-soft); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.ghost-link, .button {
  min-height: 42px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #163b56;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border: 0; background: linear-gradient(135deg, #ffad69, var(--orange)); color: #132333; font-weight: 900; }
.button.secondary { background: transparent; }
.button.disabled { opacity: .55; cursor: default; }
.trash-button span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: rgba(255,158,149,.14); color: var(--red); font-size: .72rem; font-weight: 900; }
.button.small { min-height: 36px; padding: 8px 12px; font-size: .82rem; }
.button:hover, .ghost-link:hover { transform: translateY(-1px); filter: brightness(1.08); }

@media (max-width: 1050px) {
  .topbar { position: static; grid-template-columns: 1fr auto; }
  .hub-global-search { grid-column: 1 / -1; grid-row: 2; }
  .top-actions { padding-left: 0; border-left: 0; }
  .module-tools { flex-wrap: wrap; }
}

@media (max-width: 650px) {
  .topbar { width: calc(100% - 16px); margin-top: 8px; padding: 12px; grid-template-columns: 1fr; border-radius: 18px; }
  .brand img { width: 104px; }
  .top-actions { grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .hub-global-search { grid-row: 3; }
  .header-profile { min-width: 0; flex: 1; }
  .admin-access-link { order: 3; width: 100%; }
  .module-tools { width: calc(100% - 16px); justify-content: stretch; }
  .module-tools .ghost-link { flex: 1 1 auto; }
  .test-badge { width: 100%; text-align: center; }
}

.layout { max-width: 1560px; margin: auto; padding: 22px 26px 70px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 24px 6px 34px; }
.eyebrow { margin: 0; color: var(--blue); font-size: .71rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 4.2vw, 4.15rem); line-height: .98; letter-spacing: -.05em; }
.hero h1 em { color: var(--orange-soft); font-style: normal; }
.hero p:last-child { max-width: 760px; margin: 0; color: #c5deec; font-size: 1rem; line-height: 1.55; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 10px; }
.hero-stat { min-width: 118px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 43, 66, .8); }
.hero-stat strong { display: block; color: var(--orange-soft); font-size: 1.7rem; }
.hero-stat span { color: var(--muted); font-size: .78rem; }

.toolbar { margin-bottom: 16px; padding: 14px; display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 43, 66, .8); }
.toolbar input, .toolbar select { height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #071d2d; color: #fff; }
.toolbar input { flex: 1; min-width: 190px; }
.toolbar input:focus, .toolbar select:focus, .form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(131, 213, 255, .12); }
.advanced-search { margin: -4px 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,43,66,.9); box-shadow: var(--shadow); }
.advanced-search-heading { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.advanced-search-heading h2 { margin: 4px 0 0; font-size: 1.18rem; }
.search-modal { padding: 28px; }
.search-modal-card { width: min(1180px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; padding: 32px; }
.search-modal-card .advanced-search-heading { margin-bottom: 0; }
.search-modal-card .advanced-search-heading h2 { font-size: 1.6rem; }
.criteria-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.criteria-grid label, .criteria-field { display: grid; gap: 8px; color: #dcecf5; font-size: .88rem; font-weight: 700; }
.criteria-grid .full { grid-column: 1 / -1; }
.criteria-grid label small { color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.45; }
.criteria-field { align-content: start; }
.criteria-multi .multi-select-trigger { min-height: 56px; border-radius: 13px; font-size: 1rem; }
.criteria-multi .multi-select-panel { top: 63px; }
.criteria-multi .multi-select-options { max-height: 340px; }
.criteria-grid .multi-option { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 10px; font-size: .9rem; font-weight: 600; }
.criteria-grid .multi-option input { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; }
.criteria-grid input, .criteria-grid select { width: 100%; min-width: 0; height: 56px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #071d2d; color: #fff; font-size: 1rem; }
.criteria-grid input:focus, .criteria-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(131,213,255,.12); }
.criteria-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }

.workspace { display: grid; grid-template-columns: minmax(470px, .92fr) minmax(520px, 1.08fr); gap: 18px; }
.workspace.detail-collapsed { grid-template-columns: minmax(0, 1fr) 66px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(145deg, rgba(25, 69, 99, .95), rgba(10, 37, 57, .97)); box-shadow: var(--shadow); }
.panel-header { padding: 20px 22px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(173, 224, 255, .16); }
.panel-header h2 { margin: 5px 0 0; font-size: 1.25rem; }
.candidate-list { min-height: 510px; max-height: 690px; overflow: auto; padding: 10px; }
.candidate-card { width: 100%; padding: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; text-align: left; border: 1px solid transparent; border-radius: 16px; background: transparent; color: #fff; cursor: pointer; }
.candidate-card:hover, .candidate-card.active { border-color: var(--line-strong); background: rgba(20, 61, 89, .9); }
.avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #ffb16f, var(--orange)); color: #142334; font-weight: 900; }
.candidate-main { min-width: 0; }
.candidate-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.candidate-main small { display: block; margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.candidate-meta { display: grid; justify-items: end; gap: 6px; }
.date { color: var(--muted); font-size: .72rem; }
.pill { width: max-content; padding: 5px 8px; border-radius: 999px; background: rgba(131, 213, 255, .12); color: var(--blue); font-size: .7rem; font-weight: 800; }
.pill.orange { background: rgba(255, 151, 73, .14); color: var(--orange-soft); }
.pill.green { background: rgba(118, 224, 173, .14); color: var(--green); }
.pill.red { background: rgba(255, 158, 149, .14); color: var(--red); }
.empty { padding: 70px 25px; text-align: center; color: var(--muted); }

.detail { min-height: 620px; }
.detail.collapsed { min-height: 620px; display: grid; place-items: start center; padding-top: 18px; }
.detail-header-actions { display: flex; align-items: center; gap: 9px; }
.detail-toggle { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,29,45,.7); color: var(--blue); cursor: pointer; }
.trash-icon { color: var(--red); }
.trash-icon:hover { border-color: rgba(255,158,149,.65); background: rgba(255,158,149,.12); }
.collapsed-toggle { width: 44px; height: auto; min-height: 44px; gap: 12px; padding: 12px 8px; }
.collapsed-toggle span { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: .72rem; }
.detail-content { padding: 22px; }
.detail-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.detail-identity h2 { margin: 4px 0; font-size: 1.8rem; }
.detail-identity p { margin: 0; color: var(--muted); }
.completion { width: 130px; }
.completion-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: .75rem; }
.progress { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.28); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.simple-process { margin: 0 0 18px; padding: 14px; display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: center; border: 1px solid rgba(173,224,255,.18); border-radius: 16px; background: rgba(5,26,42,.3); }
.process-step { display: flex; align-items: center; gap: 10px; opacity: .62; }
.process-step > b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.process-step span { display: grid; gap: 2px; }
.process-step strong { font-size: .8rem; }
.process-step small { color: var(--muted); font-size: .7rem; }
.process-step.done, .process-step.active { opacity: 1; }
.process-step.done > b { border-color: var(--green); background: rgba(118,224,173,.14); color: var(--green); }
.process-step.active > b { border-color: var(--orange); background: rgba(255,151,73,.14); color: var(--orange-soft); }
.process-line { height: 2px; margin: 0 8px; background: rgba(173,224,255,.22); }
.process-line.done { background: var(--green); }
.notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgba(255,151,73,.35); border-radius: 13px; background: rgba(255,151,73,.09); color: var(--orange-soft); font-size: .88rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.info-card { padding: 15px; border: 1px solid rgba(173,224,255,.18); border-radius: 15px; background: rgba(5,26,42,.34); }
.info-card.full { grid-column: 1 / -1; }
.info-card small { color: var(--blue); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.info-card p { margin: 8px 0 0; line-height: 1.5; white-space: pre-wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { padding: 6px 9px; border-radius: 8px; background: rgba(131,213,255,.1); color: #c8edff; font-size: .78rem; }
.editor { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(173,224,255,.18); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; }
.editor select, .editor input, .editor textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #071d2d; color: #fff; }
.editor .full { grid-column: 1 / -1; }
.editor textarea { min-height: 90px; resize: vertical; }
.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-toggle span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: rgba(131,213,255,.12); color: var(--blue); }
.history-toggle.active { border-color: var(--blue); background: rgba(131,213,255,.1); }
.timeline { grid-column: 1 / -1; margin-top: 4px; }
.timeline h3 { margin: 0 0 12px; font-size: 1rem; }
.timeline-item { position: relative; padding: 0 0 15px 22px; border-left: 1px solid rgba(173,224,255,.28); color: #d7ebf5; font-size: .86rem; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; left: -5px; top: 3px; border-radius: 50%; background: var(--orange); }
.timeline-item small { display: block; margin-top: 4px; color: var(--muted); }
.document-list { display: grid; gap: 7px; margin-top: 10px; }
.document-list a { padding: 9px 11px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid rgba(173,224,255,.18); border-radius: 10px; color: #dff3ff; text-decoration: none; }
.document-list a span { color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; padding: 24px; display: grid; place-items: center; overflow: auto; background: rgba(1,10,17,.78); backdrop-filter: blur(8px); }
.modal-card { width: min(700px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(145deg, #194563, #0a2539); box-shadow: var(--shadow); }
.modal-card.search-modal-card { width: min(1180px, calc(100vw - 48px)); max-height: calc(100vh - 48px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-header h2 { margin: 5px 0 0; }
.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-intro, .request-message { color: #c5deec; line-height: 1.55; white-space: pre-wrap; }
.request-options { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.request-options label { padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,29,45,.72); font-size: .86rem; }
.request-options input { accent-color: var(--orange); }
.modal-message { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; }
.modal-message textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #071d2d; color: #fff; resize: vertical; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-result { margin-top: 16px; padding: 13px; border: 1px solid rgba(118,224,173,.35); border-radius: 12px; background: rgba(118,224,173,.08); }
.modal-result p { margin: 5px 0 11px; color: var(--muted); }
.secure-link { display: flex; gap: 7px; }
.secure-link input { min-width: 0; flex: 1; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #071d2d; color: #fff; }
.trash-modal-card { width: min(720px, 100%); }
.trash-list { display: grid; gap: 9px; max-height: 55vh; overflow: auto; }
.trash-item { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,29,45,.58); }
.trash-item div { min-width: 0; }
.trash-item strong, .trash-item small { display: block; }
.trash-item small { margin-top: 4px; color: var(--muted); }

.public-shell { max-width: 1050px; margin: auto; padding: 20px 20px 70px; }
.public-hero { padding: 55px 4px 30px; text-align: center; }
.public-hero img { width: 190px; }
.public-hero h1 { margin: 18px 0 10px; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.05em; }
.public-hero h1 em { color: var(--orange-soft); font-style: normal; }
.public-hero p { max-width: 700px; margin: auto; color: #c5deec; line-height: 1.6; }
.public-hero.compact { padding-top: 32px; }
.public-hero.compact .eyebrow { margin-top: 22px; }
.public-form { padding: 28px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(145deg, rgba(25,69,99,.97), rgba(10,37,57,.98)); box-shadow: var(--shadow); }
.form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(173,224,255,.2); }
.form-section h2 { margin: 4px 0 18px; font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field > span { color: #ddecf4; font-size: .83rem; font-weight: 650; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #071d2d; color: #fff; }
.form-field textarea { min-height: 125px; resize: vertical; }
.multi-select { position: relative; }
.multi-select-trigger { width: 100%; min-height: 52px; padding: 12px 44px 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #071d2d; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.multi-select-trigger::after { content: "⌄"; position: absolute; right: 16px; top: 13px; color: var(--orange); font-size: 1.25rem; }
.multi-select-panel { position: absolute; z-index: 20; top: 58px; width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: #071d2d; box-shadow: var(--shadow); }
.multi-select-panel[hidden] { display: none; }
.multi-select-search { margin-bottom: 10px; }
.multi-select-options { display: grid; gap: 4px; max-height: 300px; overflow: auto; padding-right: 4px; }
.multi-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 9px; color: #eaf6fb; cursor: pointer; }
.multi-option:hover { background: rgba(131,213,255,.1); }
.multi-option input { width: 17px; min-height: 17px; margin-top: 1px; accent-color: var(--orange); }
.multi-select-values { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.multi-value { padding: 7px 9px; border: 1px solid rgba(131,213,255,.28); border-radius: 9px; background: rgba(131,213,255,.1); color: #dff5ff; cursor: pointer; }
.multi-value span { color: var(--orange); font-weight: 800; }
.multi-empty { margin: 8px; color: var(--muted); }
.check-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.check { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,29,45,.72); cursor: pointer; }
.check input { accent-color: var(--orange); }
.upload { padding: 22px; border: 1px dashed rgba(131,213,255,.55); border-radius: 14px; background: rgba(7,29,45,.5); text-align: center; }
.upload input { margin-top: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; color: #d8eaf3; line-height: 1.45; font-size: .85rem; }
.consent input { margin-top: 4px; accent-color: var(--orange); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.submit-row small { color: var(--muted); }
.form-message { margin-top: 18px; padding: 13px; border-radius: 12px; background: rgba(118,224,173,.1); color: var(--green); }
.form-message.error { background: rgba(255,158,149,.1); color: var(--red); }
.success-card { padding: 50px 25px; text-align: center; }
.success-card .checkmark { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(118,224,173,.15); color: var(--green); font-size: 2rem; }
.success-card h2 { font-size: 2rem; margin: 0 0 10px; }
.success-card p { color: var(--muted); }
.error-state h2 { color: var(--orange-soft); }
.upload small { display: block; margin-top: 5px; color: var(--muted); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 390px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #133b56; box-shadow: var(--shadow); }

.menu-back { border: 1px solid var(--line); background: rgba(7,29,45,.55); cursor: pointer; }
.directory-home { min-height: calc(100vh - 150px); display: grid; align-content: center; gap: 38px; }
.directory-intro { max-width: 850px; }
.directory-intro h1, .directory-section-heading h1 { margin: 7px 0 12px; font-size: clamp(2.35rem, 5vw, 4.8rem); letter-spacing: -.055em; line-height: .98; }
.directory-intro h1 em { color: var(--orange-soft); font-style: normal; }
.directory-intro > p:last-child, .directory-section-heading p { max-width: 790px; color: #c5deec; line-height: 1.6; }
.directory-menu { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.directory-choice { min-height: 220px; padding: 25px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 17px; position: relative; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(145deg, rgba(25,69,99,.98), rgba(8,35,53,.98)); color: #fff; text-align: left; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.directory-choice:hover { transform: translateY(-4px); border-color: var(--orange); }
.directory-choice-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(131,213,255,.5); border-radius: 15px; background: rgba(131,213,255,.12); color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.active-trainers .directory-choice-icon { border-color: rgba(118,224,173,.55); background: rgba(118,224,173,.12); color: var(--green); }
.candidate-management .directory-choice-icon { border-color: rgba(255,159,90,.6); background: rgba(255,159,90,.13); color: var(--orange); }
.directory-choice span:nth-child(2) { display: grid; gap: 9px; }
.directory-choice small { color: var(--muted); line-height: 1.35; }
.directory-choice strong { font-size: 1.35rem; }
.directory-choice em { position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%); color: var(--orange-soft); font-style: normal; font-size: clamp(2.8rem, 4.4vw, 4.6rem); font-weight: 950; line-height: 1; letter-spacing: -.06em; text-shadow: 0 0 26px rgba(255,159,90,.23); }
.active-trainers em { color: var(--green); text-shadow: 0 0 28px rgba(118,224,173,.25); }
.inactive-trainers em { color: var(--blue); text-shadow: 0 0 28px rgba(131,213,255,.24); }
.candidate-management em { color: var(--orange-soft); }
.candidate-management.is-testing { filter: grayscale(.88); opacity: .62; border-style: dashed; }
.candidate-management.is-testing:hover { filter: grayscale(.45); opacity: .86; transform: translateY(-2px); border-color: rgba(199,215,224,.72); }
.candidate-management.is-testing i { width: max-content; max-width: 100%; padding: 5px 9px; border: 1px solid rgba(199,215,224,.45); border-radius: 999px; color: #d6e2e8; font-size: .68rem; font-style: normal; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.directory-choice > b { color: var(--orange); font-size: 1.4rem; }
.trainer-directory { padding-bottom: 50px; }
.directory-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 35px 0 22px; }
.directory-section-heading h1 { font-size: clamp(2.25rem, 4vw, 4rem); }
.directory-total { min-width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(19,59,86,.85); color: var(--orange-soft); font-size: 2rem; font-weight: 900; }
.trainer-toolbar input { flex: 1; }
.trainer-grid { display: block; }
.trainer-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,29,45,.72); box-shadow: var(--shadow); }
.trainer-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: .79rem; }
.trainer-table th { position: sticky; top: 0; z-index: 1; padding: 11px 10px; border-bottom: 1px solid var(--line-strong); background: #123b56; color: var(--blue); text-align: left; text-transform: uppercase; letter-spacing: .055em; font-size: .67rem; }
.sort-button { width: 100%; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.sort-button span { color: rgba(131,213,255,.52); font-size: .72rem; }
.sort-button.active span { color: var(--orange); }
.trainer-table td { padding: 9px 10px; border-bottom: 1px solid rgba(173,224,255,.11); color: #e8f3f8; vertical-align: middle; }
.trainer-table tbody tr:last-child td { border-bottom: 0; }
.trainer-table tbody tr:hover { background: rgba(131,213,255,.055); }
.trainer-name { min-width: 200px; display: flex; align-items: center; gap: 10px; }
.trainer-name-copy { min-width: 0; flex: 1; }
.trainer-name strong, .trainer-name small, .contact-cell small { display: block; }
.trainer-name small, .contact-cell small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.table-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--orange), #ffbd8d); color: #061827; font-weight: 900; }
.trainer-complement-icon { position: relative; width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid rgba(131,213,255,.48); border-radius: 9px; background: rgba(131,213,255,.08); color: var(--blue); font-size: .9rem; cursor: pointer; }
.trainer-complement-icon b { position: absolute; right: 2px; bottom: 0; color: var(--orange-soft); font-size: .68rem; line-height: 1; }
.trainer-complement-icon:hover { border-color: var(--orange); background: rgba(255,159,90,.13); color: #fff; }
.trainer-complement-icon:disabled { opacity: .28; cursor: not-allowed; }
.dense-text { max-width: 260px; color: #cfdfE7; line-height: 1.35; }
.skills-cell-button { width: 100%; padding: 4px 6px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #e7f6fc; text-align: left; cursor: pointer; }
.skills-cell-button span { min-width: 0; line-height: 1.35; }
.skills-cell-button b { padding: 3px 6px; border-radius: 999px; background: rgba(131,213,255,.13); color: var(--blue); font-size: .65rem; }
.skills-cell-button i { grid-column: 1 / -1; color: var(--orange-soft); font-size: .62rem; font-style: normal; font-weight: 800; opacity: 0; transition: opacity .15s ease; }
.skills-cell-button:hover, .skills-cell-button:focus-visible { border-color: rgba(131,213,255,.4); background: rgba(131,213,255,.07); outline: 0; }
.skills-cell-button:hover i, .skills-cell-button:focus-visible i { opacity: 1; }
.contact-cell { max-width: 220px; overflow-wrap: anywhere; }
.contact-cell a { color: #dff5ff; text-decoration: none; }
.numeric { text-align: center !important; white-space: nowrap; }
.icon-column { width: 52px; text-align: center !important; }
.pdf-icon, .dendreo-icon { margin: auto; display: grid; place-items: center; text-decoration: none; }
.pdf-icon { width: 34px; height: 38px; position: relative; border: 1px solid rgba(255,159,90,.62); border-radius: 7px; background: rgba(255,159,90,.12); color: var(--orange-soft); }
.pdf-icon::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.pdf-icon span { margin-top: 8px; font-size: .55rem; font-weight: 900; letter-spacing: .02em; }
.pdf-icon:hover { background: var(--orange); color: #061827; }
.dendreo-icon { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); font-size: 1rem; }
.dendreo-icon:hover { border-color: var(--blue); background: rgba(131,213,255,.1); }
.no-document { color: rgba(197,222,236,.35); }
.trainer-search-modal-card { width: min(850px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; }
.trainer-criteria-list { display: grid; gap: 10px; margin: 18px 0 12px; }
.trainer-criterion-row { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(260px,1.2fr) 42px; gap: 9px; }
.trainer-criterion-row select, .trainer-criterion-row input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #071d2d; color: #fff; }
.remove-criterion { width: 42px; border: 1px solid rgba(255,158,149,.38); border-radius: 11px; background: rgba(255,158,149,.08); color: var(--red); font-size: 1.25rem; cursor: pointer; }
.add-criterion { padding: 10px 14px; display: inline-flex; align-items: center; gap: 9px; border: 1px dashed rgba(131,213,255,.48); border-radius: 11px; background: rgba(131,213,255,.06); color: #dff5ff; cursor: pointer; }
.add-criterion span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #071d2d; font-weight: 900; }
.criteria-empty-state { margin: 6px 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.cv-index-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,159,90,.4); border-radius: 11px; background: rgba(255,159,90,.08); color: var(--orange-soft); }
.cv-index-notice > div:first-child { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cv-index-notice strong { color: #fff; font-size: .76rem; }
.cv-index-notice span { color: var(--orange-soft); font-size: .7rem; }
.cv-progress-track { height: 10px; overflow: hidden; border: 1px solid rgba(255,183,126,.38); border-radius: 999px; background: rgba(3,20,32,.7); }
.cv-progress-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffd09e); transition: width .3s ease; box-shadow: 0 0 16px rgba(255,159,90,.5); }
.trainer-modal-results { margin-top: 16px; padding: 14px; border: 1px solid rgba(111,226,194,.48); border-radius: 14px; background: rgba(4,25,39,.56); }
.trainer-modal-results-heading { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.trainer-modal-results-heading strong { color: var(--green); font-size: 1.05rem; }
.trainer-modal-results-heading span { color: var(--muted); font-size: .72rem; }
.trainer-modal-results-list { max-height: 250px; display: grid; gap: 7px; overflow: auto; }
.trainer-modal-results-list article { padding: 9px 11px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(131,213,255,.2); border-radius: 11px; background: rgba(19,59,86,.72); }
.trainer-modal-results-list article strong, .trainer-modal-results-list article small { display: block; }
.trainer-modal-results-list article small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.trainer-modal-results-list article > b { padding: 5px 7px; border: 1px solid rgba(255,159,90,.48); border-radius: 7px; color: var(--orange-soft); font-size: .6rem; }
.trainer-search-error { padding: 13px; display: grid; gap: 5px; border: 1px solid rgba(255,126,135,.48); border-radius: 11px; background: rgba(103,25,38,.35); }
.trainer-search-error strong { color: #ffd5d8; }
.trainer-search-error span { color: #fff; font-size: .76rem; }
.trainer-search-error small { color: #efb8bd; font-size: .66rem; }
.trainer-search-result { margin: 0 0 14px; padding: 13px 16px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(111,226,194,.42); border-radius: 12px; background: rgba(111,226,194,.08); }
.trainer-search-result strong { color: var(--green); white-space: nowrap; font-size: 1rem; }
.trainer-search-result span { color: #d8edf5; font-size: .76rem; }
.trainer-skills-modal-card { width: min(760px, calc(100vw - 40px)); }
.trainer-skills-list { max-height: min(52vh, 480px); padding: 4px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 9px; overflow: auto; }
.trainer-skills-list > span { padding: 9px 12px; border: 1px solid rgba(131,213,255,.4); border-radius: 999px; background: rgba(131,213,255,.09); color: #effaff; font-size: .76rem; }
.trainer-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(25,69,99,.92), rgba(8,35,53,.96)); box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.trainer-card-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.trainer-card-head strong, .trainer-card-head small { display: block; }
.trainer-card-head small { margin-top: 4px; color: var(--muted); }
.trainer-card-details { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.trainer-card-details p { min-width: 0; margin: 0; padding: 10px; border: 1px solid rgba(173,224,255,.15); border-radius: 11px; background: rgba(7,29,45,.45); }
.trainer-card-details b, .trainer-card-details span { display: block; }
.trainer-card-details b { margin-bottom: 5px; color: var(--blue); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.trainer-card-details span { color: #e4f1f7; font-size: .83rem; line-height: 1.4; overflow-wrap: anywhere; }
.directory-empty { grid-column: 1 / -1; min-height: 170px; display: grid; place-items: center; }

@media (max-width: 1040px) {
  .directory-menu, .trainer-grid { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .workspace.detail-collapsed { grid-template-columns: 1fr; }
  .detail.collapsed { min-height: auto; padding: 8px; place-items: center end; }
  .collapsed-toggle { width: auto; min-height: 38px; display: flex; }
  .collapsed-toggle span { writing-mode: horizontal-tb; transform: none; }
  .candidate-list { max-height: 430px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .search-modal-card { padding: 24px; }
}
@media (max-width: 680px) {
  .directory-choice { min-height: 175px; padding: 18px; }
  .directory-section-heading { align-items: flex-start; flex-direction: column; }
  .directory-total { min-width: 70px; height: 70px; }
  .trainer-card-details { grid-template-columns: 1fr; }
  .trainer-criterion-row { grid-template-columns: 1fr 42px; }
  .trainer-criterion-row > :first-child { grid-column: 1 / -1; }
  .topbar { margin: 7px; padding: 13px; border-radius: 18px; }
  .brand img { width: 120px; }
  .brand-copy, .test-badge { display: none; }
  .layout { padding: 15px 12px 55px; }
  .toolbar { flex-direction: column; }
  .criteria-grid { grid-template-columns: 1fr; }
  .search-modal { padding: 10px; }
  .search-modal-card { max-height: calc(100vh - 20px); padding: 19px; }
  .criteria-actions { align-items: stretch; flex-direction: column-reverse; }
  .hero-stats { width: 100%; }
  .hero-stat { min-width: 0; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .detail-grid, .editor, .form-grid { grid-template-columns: 1fr; }
  .simple-process { grid-template-columns: 1fr; gap: 8px; }
  .process-line { width: 2px; height: 16px; margin-left: 14px; }
  .request-options { grid-template-columns: 1fr; }
  .info-card.full, .editor .full, .form-field.full { grid-column: auto; }
  .public-form { padding: 19px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .editor-actions, .trash-item { align-items: stretch; flex-direction: column; }
}
