:root { --ink: #202c35; --muted: #66727b; --line: #dce2e6; --paper: #fff; --canvas: #f5f7f8; --brand: #1e3a8a; --teal: #14665d; --danger: #a32e37; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); min-width: 320px; }
[hidden] { display: none !important; }
a { color: var(--brand); overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; background: var(--paper); color: var(--ink); }
button:hover { background: #eef2f4; }
button:disabled { opacity: .55; cursor: wait; }
button.primary { background: var(--brand); color: white; border-color: var(--brand); }
button.primary:hover { background: #183174; }
button.text-button { border: 0; background: transparent; color: var(--brand); }
.icon-button { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
input, textarea, select { width: 100%; min-height: 42px; border: 1px solid #b9c4cc; border-radius: 5px; background: white; padding: 9px 11px; color: var(--ink); }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
:focus-visible { outline: 3px solid #78b9dc; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; } h2 { font-size: 22px; } h3 { font-size: 16px; }
.muted, .eyebrow { color: var(--muted); font-size: 13px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 28px; border-bottom: 1px solid var(--line); background: var(--paper); gap: 16px; }
.brand { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--brand); }
.brand span { display: inline-block; font-size: 12px; color: var(--muted); margin-left: 12px; font-weight: 400; }
#account { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.notice { padding: 12px 28px; border-bottom: 1px solid #b7d6cf; background: #e8f4ef; color: #214a40; overflow-wrap: anywhere; }
.notice.error { background: #fff0f0; color: var(--danger); border-color: #f2c4c8; }
.auth-view { max-width: 390px; margin: 80px auto; padding: 0 24px; }
.auth-heading > svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 14px; }
.auth-heading p, #deniedView p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
.auth-view form > button { margin-top: 20px; width: 100%; }
#workspace { max-width: 1500px; margin: 0 auto; padding: 0 28px 32px; }
.tabs { border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.active-tab { display: inline-flex; gap: 8px; align-items: center; padding: 16px 0 13px; border-bottom: 3px solid var(--brand); font-size: 14px; font-weight: 600; }
.inbox-tab { min-height: 48px; padding: 12px 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; }
.inbox-tab:hover { background: transparent; color: var(--brand); }
.inbox-count { min-width: 20px; padding: 2px 6px; border-radius: 12px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.inbox-dialog { width: min(680px, calc(100% - 32px)); }
.inbox-tools { display: flex; gap: 8px; }
.inbox-list { display: grid; gap: 0; max-height: 65vh; overflow-y: auto; margin-top: 18px; border-top: 1px solid var(--line); }
.inbox-item { display: grid; width: 100%; gap: 6px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; }
.inbox-item:hover { background: #f5f7fa; }
.inbox-item-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.inbox-item-heading strong { font-size: 14px; }
.inbox-item-subject { font-size: 13px; font-weight: 600; }
.inbox-item-preview { color: var(--muted); font-size: 13px; line-height: 1.5; }
.inbox-item-date { color: var(--muted); font-size: 11px; }
.inbox-empty { padding: 24px 4px; color: var(--muted); font-size: 14px; }
.workspace-heading, .detail-heading, .thread-heading, .dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.workspace-heading p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 250px) minmax(150px, 200px); gap: 12px; margin: 20px 0; }
.search-field { display: flex; gap: 6px; }
.recruitment-layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); border-top: 1px solid var(--line); background: white; min-height: 520px; }
.applications-pane { border-right: 1px solid var(--line); padding: 0 0 20px; }
#applicationList { max-height: calc(100vh - 290px); min-height: 200px; overflow-y: auto; }
.application-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 17px 16px; text-align: left; display: block; overflow-wrap: anywhere; }
.application-item.selected { background: #edf2fb; box-shadow: inset 3px 0 var(--brand); }
.application-item strong { display: block; font-size: 14px; margin-bottom: 5px; }
.application-item .email, .application-item .role { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.item-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.stage { display: inline-block; background: #f0f2f4; padding: 4px 7px; border-radius: 3px; color: #485863; font-size: 11px; }
.stage.shortlisted, .stage.hired { background: #e4f2eb; color: #215c44; }
.stage.rejected { background: #f9e9e9; color: #8d343b; }
#loadMore { margin: 16px; }
.detail-pane { padding: 24px; min-width: 0; }
.empty-state { padding: 100px 20px; text-align: center; color: var(--muted); }
.empty-state > svg { width: 32px; height: 32px; margin-bottom: 16px; }
.empty-state h2 { font-size: 17px; font-weight: 500; }
.detail-heading { align-items: flex-start; }
.detail-heading > div:first-child { min-width: 0; }
.detail-heading h2 { margin: 7px 0; overflow-wrap: anywhere; }
.detail-heading > div:last-child { min-width: 145px; }
.detail-heading label { margin-top: 0; }
.contact-row, .file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 13px; overflow-wrap: anywhere; }
.contact-row a { display: inline-flex; gap: 6px; align-items: center; max-width: 100%; }
.file-row { margin-bottom: 20px; }
details { border-top: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; }
details p, details form { margin-top: 12px; }
#notesForm button { margin-top: 10px; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 14px; }
.thread-heading { border-top: 1px solid var(--line); padding-top: 18px; margin: 6px 0 14px; }
.thread { display: grid; gap: 16px; }
.message { border-left: 3px solid #91b6ae; padding: 6px 0 8px 14px; min-width: 0; }
.message.outbound { border-color: #99abd0; }
.message.failed { border-color: var(--danger); }
.message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 8px; overflow-wrap: anywhere; }
.message h4 { margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.message .body { max-height: 280px; overflow-y: auto; }
.message .file-row { margin-bottom: 0; }
.message .failure { color: var(--danger); font-size: 12px; margin-top: 8px; }
.composer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.message-success { border-top: 1px solid var(--line); margin-top: 24px; padding: 26px 0 8px; }
.success-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #e4f2eb; color: #215c44; }
.message-success h3 { margin-top: 14px; font-size: 18px; }
.message-success p { margin-top: 8px; overflow-wrap: anywhere; }
.message-success button { margin-top: 18px; }
.exercise-fields { background: var(--canvas); padding: 12px; margin-top: 12px; }
.exercise-fields button { margin-top: 12px; }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.mobile-back { display: none; }
dialog { width: min(650px, calc(100% - 32px)); max-height: 85vh; padding: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
dialog::backdrop { background: #18253180; }
dialog h3, dialog p { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0 18px; font-size: 13px; }
.bulk-stage-controls { display: flex; gap: 8px; margin-left: auto; }
.bulk-stage-controls select { width: 160px; }
.application-row.with-pick { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; border-bottom: 1px solid var(--line); }
.with-pick .application-item { border-bottom: 0; }
.bulk-pick { width: 18px; height: 18px; min-height: 18px; margin: 20px 0 0 12px; padding: 0; accent-color: var(--brand); }
.bulk-dialog { width: min(760px, calc(100% - 32px)); }
.bulk-dialog h3, .bulk-dialog p { overflow-wrap: anywhere; }
.bulk-results { list-style: none; padding: 0; margin: 14px 0; max-height: 220px; overflow-y: auto; }
.bulk-result { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.bulk-result strong { overflow-wrap: anywhere; min-width: 0; }
.bulk-result p { flex-basis: 100%; margin: 0; }
.bulk-result.failed .stage, .bulk-result.unconfirmed .stage { color: var(--danger); background: #fff0f0; }
.bulk-result.sent .stage { color: #215c44; background: #e4f2eb; }
.tabs { display: flex; gap: 24px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 13px; font-size: 14px; text-decoration: none; color: var(--muted); }
#usersWorkspace { max-width: 1200px; margin: 0 auto; padding: 0 28px 32px; }
.invite-form { border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 8px; }
.invite-form h2 { font-size: 17px; }
.invite-fields { display: grid; grid-template-columns: 1fr 1.4fr minmax(160px, .6fr); gap: 16px; }
.invite-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.checkbox-label input { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.user-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(160px, 1fr) minmax(155px, .6fr) 85px 90px; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.user-identity { display: grid; gap: 7px; overflow-wrap: anywhere; font-size: 13px; }
.user-row label { margin-top: 0; }
.user-actions { display: flex; gap: 6px; }
.user-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; font-size: 13px; }
.auth-return { display: inline-block; margin-top: 24px; font-size: 14px; }
#accountEmail, #successView p { margin-top: 12px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .user-row { grid-template-columns: minmax(160px, 1fr) minmax(145px, 1fr) 90px; }
    .user-identity { grid-column: 1 / -1; }
    .user-actions { grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 760px) {
    .topbar { padding: 12px 16px; align-items: flex-start; }
    .brand span { display: block; margin: 4px 0 0; }
    #account { gap: 6px; } #memberName { max-width: 110px; overflow-wrap: anywhere; }
    #workspace { padding: 0 16px 24px; }
    .bulk-stage-controls { margin-left: 0; width: 100%; }
    .bulk-stage-controls select { flex: 1; min-width: 0; }
    .bulk-dialog .composer-actions { flex-wrap: wrap; }
    #usersWorkspace { padding: 0 16px 24px; }
    .invite-fields { grid-template-columns: 1fr; gap: 0; }
    .invite-actions { flex-wrap: wrap; }
    .user-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .user-actions { grid-column: 2; }
    .filters { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .recruitment-layout { display: block; }
    .applications-pane { border-right: 0; }
    #applicationList { max-height: none; }
    .detail-pane { display: none; padding: 18px 12px; }
    .recruitment-layout.detail-open .applications-pane { display: none; }
    .recruitment-layout.detail-open .detail-pane { display: block; }
    .mobile-back { display: inline-flex; margin: 0 0 16px -8px; }
    .detail-heading { flex-wrap: wrap; }
    .detail-heading > div:last-child { width: 100%; }
    .auth-view { margin-top: 48px; }
    .notice { padding: 12px 16px; }
}