@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#view-tasks,
#view-tasks * {
    font-family: 'Mulish', sans-serif !important;
}

.drawer-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
}

.drawer-surface-container {
    width: 80%;
    max-width: 1150px;
    min-width: 768px;
    height: 100vh;
    background: var(--tpt-drawer-ground);
    box-shadow: -16px 0px 48px rgba(16, 24, 40, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-surface-container *:not(i):not([class*="fa-"]):not([class*="fa "]) {
    font-family: 'Mulish', sans-serif !important;
}

.drawer-header-navbar {
    background: var(--tpt-surface);
    padding: 16px 24px;
    border-bottom: 1px solid var(--tpt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-context-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tpt-text);
}

.drawer-hero-profile-header {
    background: var(--tpt-surface);
    padding: 24px;
    border-bottom: 1px solid var(--tpt-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.role-avatar-initials {
    background: #475467;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.role-main-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tpt-text);
    margin: 0 0 2px 0;
    letter-spacing: -0.02em;
}

.role-client-subtext {
    font-size: 0.88rem;
    color: var(--tpt-text-muted);
    font-weight: 600;
    margin: 0;
}

.action-hub-btn {
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-hub-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Status Badges */
.figma-status-pill {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
}

.badge-figma-open { background: var(--tpt-good-tint); color: var(--tpt-good); border: 1px solid var(--tpt-good-line); }
.badge-figma-filled { background: var(--tpt-info-tint); color: var(--tpt-info); border: 1px solid var(--tpt-info-line); }
.badge-figma-paused { background: var(--tpt-critical-tint); color: var(--tpt-critical); border: 1px solid var(--tpt-critical-line); }

.pipeline-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    width: 100%;
}

.pipeline-metric-card {
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pipeline-metric-card .metric-number {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.pipeline-metric-card .metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tpt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.side-by-side-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    align-items: start;
}

.profile-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-details-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--tpt-surface-muted);
    padding-bottom: 8px;
}

.profile-details-list > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-details-list .details-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tpt-text-subtle);
}

.profile-details-list .details-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tpt-text);
    text-align: right;
}

.drawer-navigation-tab-strip {
    background: var(--tpt-surface);
    border-bottom: 1px solid var(--tpt-border);
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.profile-tab-toggle {
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tpt-text-subtle);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.profile-tab-toggle.active {
    color: var(--tpt-accent) !important;
    border-bottom: 2px solid var(--tpt-accent) !important;
    font-weight: 700;
}

.drawer-scrollable-body-viewport {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

.grid-card-block {
    background: var(--tpt-surface);
    border: 1px solid var(--tpt-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02);
    margin-bottom: 20px;
}

.block-meta-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tpt-text-strong);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.form-attribute-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.attribute-group-box label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--tpt-text-strong);
    margin-bottom: 6px;
}

.attribute-value-field {
    padding: 11px 14px;
    background: var(--tpt-surface-sunken);
    border: 1px solid var(--tpt-border-strong);
    border-radius: 8px;
    color: var(--tpt-text);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Was set from onmouseover; the resting values are inline, hence !important. */
.task-candidate-link:hover { color: var(--tpt-info) !important; text-decoration: underline !important; }

/* ---- Role page > drawer frame (admin/roles/show) ---- */
#role-drawer-container.role-drawer-frame { width: 90%; max-width: 1320px; min-width: 768px; height: calc(100vh - 48px); background: var(--tpt-drawer-ground); border-radius: 16px; box-shadow: 0px 24px 48px -12px rgba(16, 24, 40, 0.15); flex-direction: column; overflow: hidden; animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-drawer-topbar { background: var(--tpt-surface); padding: 16px 24px; border-bottom: 1px solid var(--tpt-border); justify-content: space-between; align-items: center; flex-shrink: 0; }
#role-drawer-container .role-drawer-topbar-title { align-items: center; gap: 12px; }
#role-drawer-container .role-drawer-topbar-label { font-size: 0.95rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-drawer-close { text-decoration: none; padding: 6px; color: var(--tpt-text-subtle); font-size: 1.2rem; transition: color 0.15s ease; }
#role-drawer-container .role-drawer-body { flex-grow: 1; padding: 24px; overflow-y: auto; box-sizing: border-box; }

/* ---- Role page > hero (admin/roles/show/_hero) ---- */
#role-drawer-container .role-hero { background: var(--tpt-surface); padding: 24px; border-bottom: 1px solid var(--tpt-border); flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; flex-shrink: 0; }
#role-drawer-container .role-hero-identity { align-items: center; gap: 16px; }
#role-drawer-container .role-hero-avatar { background: var(--tpt-surface-muted); color: var(--tpt-text-muted); font-weight: 700; font-size: 22px; border-radius: 12px; align-items: center; justify-content: center; width: 64px; height: 64px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); flex-shrink: 0; }
#role-drawer-container .role-hero-title-row { align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
#role-drawer-container .role-hero-title { font-size: 1.35rem; font-weight: 800; color: var(--tpt-text); margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
#role-drawer-container .role-hero-status { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
#role-drawer-container .role-hero-scoring { align-items: center; gap: 6px; background-color: var(--tpt-surface); border: 1px solid var(--tpt-accent); color: var(--tpt-accent); padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; line-height: 1.2; }
#role-drawer-container .role-hero-scoring-icon { font-size: 0.65rem; }
#role-drawer-container .role-hero-industry { font-size: 0.88rem; color: var(--tpt-text-muted); font-weight: 600; margin: 0 0 4px 0; align-items: center; gap: 4px; }
#role-drawer-container .role-hero-client { font-size: 0.72rem; color: var(--tpt-text-muted); font-weight: 600; align-items: center; gap: 6px; }
#role-drawer-container .role-hero-actions { align-items: center; gap: 10px; flex-wrap: wrap; }
#role-drawer-container .role-hero-edit { background: var(--tpt-surface); color: var(--tpt-text-strong); border: 1px solid var(--tpt-border-strong); text-decoration: none; }
#role-drawer-container .role-hero-add-candidate { background: var(--tpt-accent); color: #FFF; border: none; text-decoration: none; }

/* ---- Role page > tab bar (admin/roles/show/_tab_bar) ---- */
#role-drawer-container .role-tab-bar { background: var(--tpt-surface); border-bottom: 1px solid var(--tpt-border); padding: 0 24px; gap: 4px; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }

/* ---- Role page > Overview tab (admin/roles/show/_overview) ---- */
#role-drawer-container .role-overview-stack { flex-direction: column; gap: 24px; width: 100%; }
#role-drawer-container .role-tracker-card { background: var(--tpt-surface); border-radius: 12px; padding: 20px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); }
#role-drawer-container .role-tracker-title { font-size: 0.78rem; font-weight: 700; color: var(--tpt-text-strong); text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.5px; }
#role-drawer-container .role-card-title-icon { color: var(--tpt-text-subtle); margin-right: 4px; }
#role-drawer-container .role-tracker-pills { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#role-drawer-container .role-tracker-strip { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; width: 100%; }
#role-drawer-container .role-tracker-metric { padding: 12px; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#role-drawer-container .role-tracker-metric-number { font-size: 1.25rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
#role-drawer-container .role-tracker-metric-label { font-size: 0.7rem; font-weight: 700; color: var(--tpt-text-muted); text-transform: uppercase; letter-spacing: 0.2px; }
#role-drawer-container .role-overview-split { grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; align-items: start; }
#role-drawer-container .role-overview-detail-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); min-height: 340px; box-sizing: border-box; flex-direction: column; }
#role-drawer-container .role-card-header { border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 12px; margin-bottom: 16px; }
#role-drawer-container .role-card-title { font-size: 0.78rem; font-weight: 700; color: var(--tpt-text-strong); text-transform: uppercase; letter-spacing: 0.5px; }
#role-drawer-container .role-detail-fields { flex-direction: column; gap: 14px; }
#role-drawer-container .role-detail-label { font-size: 0.68rem; color: var(--tpt-text-subtle); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
#role-drawer-container .role-field-value { font-size: 0.85rem; font-weight: 600; color: var(--tpt-text); }
#role-drawer-container .role-experience-value { font-size: 0.90rem; font-weight: 600; color: var(--tpt-text); }
#role-drawer-container .role-field-value-strong { font-size: 0.85rem; font-weight: 600; color: var(--tpt-text-strong); }
#role-drawer-container .role-client-card-title { font-size: 0.78rem; font-weight: 600; color: var(--tpt-text); text-transform: uppercase; letter-spacing: 0.5px; }
#role-drawer-container .role-client-fields { flex-direction: column; gap: 14px; font-size: 0.85rem; }
#role-drawer-container .role-client-label { font-size: 0.65rem; color: var(--tpt-text-faint); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
#role-drawer-container .role-client-contact-row { align-items: center; gap: 8px; color: var(--tpt-text-strong); }
#role-drawer-container .role-client-contact-icon { color: var(--tpt-text-subtle); width: 14px; }
#role-drawer-container .role-client-contact-name { font-weight: 600; color: var(--tpt-text); }
#role-drawer-container .role-client-position { font-size: 0.85rem; font-weight: 600; color: var(--tpt-text-muted); }
#role-drawer-container .role-client-email-icon { color: var(--tpt-text-subtle); width: 14px; word-break: break-all; }
#role-drawer-container .role-client-email { font-weight: 600; color: var(--tpt-accent); }
#role-drawer-container .role-client-phone { font-weight: 600; }
#role-drawer-container .role-milestones-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); flex-direction: column; }
#role-drawer-container .role-milestones-row { width: 100%; gap: 16px; }
#role-drawer-container .role-milestone { flex: 1; min-width: 0; background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-border); border-radius: 8px; padding: 12px; }
#role-drawer-container .role-milestone-label { font-size: 0.68rem; color: var(--tpt-text-subtle); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
#role-drawer-container .role-milestone-date { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text-strong); }
#role-drawer-container .role-milestone-icon { margin-right: 6px; color: var(--tpt-text-faint); }
#role-drawer-container .role-milestone-date-due { font-size: 0.85rem; font-weight: 700; color: var(--tpt-critical); }
#role-drawer-container .role-milestone-icon-due { margin-right: 6px; color: var(--tpt-critical); }
#role-drawer-container .role-advert-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); }
#role-drawer-container .role-advert-header { border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 12px; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 12px; }
#role-drawer-container .role-advert-live { background: var(--tpt-good-tint); color: var(--tpt-good); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
#role-drawer-container .role-advert-off { background: var(--tpt-surface-muted); color: var(--tpt-text-muted); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
#role-drawer-container .role-advert-url { color: var(--tpt-info); word-break: break-all; }
#role-drawer-container .role-advert-blockers-intro { margin: 0 0 8px; font-size: 0.8rem; color: var(--tpt-text-muted); }
#role-drawer-container .role-advert-blockers { margin: 0 0 16px; padding-left: 18px; font-size: 0.8rem; color: var(--tpt-warn); }
#role-drawer-container .role-advert-blocker { margin-bottom: 4px; }
#role-drawer-container .role-advert-edit { background: var(--tpt-surface); color: var(--tpt-text-strong); border: 1px solid var(--tpt-border-strong); border-radius: 8px; padding: 8px 16px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }

/* ---- Role page > Requirements tab (admin/roles/show/_requirements) ---- */
#role-drawer-container .role-tab-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; flex-direction: column; gap: 20px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.03); }
#role-drawer-container .role-tab-header { justify-content: space-between; align-items: center; border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 12px; }
#role-drawer-container .role-tab-title { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-tab-add { background: none; border: 1px solid var(--tpt-border-strong); padding: 6px 12px; border-radius: 8px; font-size: 0.80rem; font-weight: 700; color: var(--tpt-text-strong); cursor: pointer; align-items: center; gap: 6px; }
#role-drawer-container .role-req-form-panel { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; }
#role-drawer-container .role-req-field { margin-bottom: 20px; }
#role-drawer-container .role-form-label { font-size: 0.75rem; font-weight: 700; color: var(--tpt-text-strong); margin-bottom: 6px; }
#role-drawer-container textarea.role-req-description-input { padding: 10px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; }
#role-drawer-container .role-req-field-row { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
#role-drawer-container select.role-req-select { padding: 10px 14px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.88rem; background: var(--tpt-surface); color: var(--tpt-text); box-sizing: border-box; }
#role-drawer-container .role-req-skills { gap: 16px; margin-bottom: 24px; }
#role-drawer-container .role-req-skill-column { flex: 1; flex-direction: column; gap: 8px; }
#role-drawer-container .role-req-skills-label { font-size: 0.75rem; font-weight: 700; color: var(--tpt-text-strong); }
#role-drawer-container .role-req-pill-box { flex-wrap: wrap; gap: 6px; min-height: 60px; background: var(--tpt-surface-sunken); border: 1px dashed var(--tpt-neutral-line); padding: 8px; border-radius: 8px; }
#role-drawer-container .role-req-pill { align-items: center; background-color: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); padding: 4px 10px; border-radius: 50px; font-size: 11px; color: var(--tpt-text-strong); gap: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
#role-drawer-container .role-req-pill-remove { cursor: pointer; font-weight: bold; color: var(--tpt-text-faint); font-size: 12px; }
#role-drawer-container .role-req-form-actions { justify-content: flex-end; gap: 12px; border-top: 1px solid var(--tpt-border); padding-top: 16px; }
#role-drawer-container .role-form-cancel { background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); padding: 10px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; color: var(--tpt-text-strong); cursor: pointer; }
#role-drawer-container .role-form-save { background: var(--tpt-accent); color: #FFF; border: none; padding: 10px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
#role-drawer-container .role-req-summary { width: 100%; flex-direction: column; gap: 18px; }
#role-drawer-container .role-req-summary-label { font-size: 0.68rem; color: var(--tpt-text-subtle); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
#role-drawer-container .role-req-description { font-size: 0.88rem; color: var(--tpt-text-strong); line-height: 1.6; font-weight: 400; }
#role-drawer-container .role-req-see-more { background: none; border: none; padding: 0; color: var(--tpt-accent); font-weight: 700; font-size: 0.85rem; cursor: pointer; margin-left: 4px; }
#role-drawer-container .role-req-see-less { background: none; border: none; padding: 0; color: var(--tpt-accent); font-weight: 700; font-size: 0.85rem; cursor: pointer; margin-top: 8px; }
#role-drawer-container .role-req-no-description { color: var(--tpt-text-faint); font-style: italic; font-size: 0.88rem; }
#role-drawer-container .role-req-facts { border-top: 1px dashed var(--tpt-border); padding-top: 14px; }
#role-drawer-container .role-facts-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
#role-drawer-container .role-fact-value { font-size: 0.90rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-req-competencies { border-top: 1px dashed var(--tpt-border); padding-top: 12px; }
#role-drawer-container .role-req-competencies-label { font-size: 0.68rem; color: var(--tpt-text-subtle); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
#role-drawer-container .role-req-competency-groups { flex-direction: column; gap: 14px; }
#role-drawer-container .role-req-essential-label { font-size: 0.70rem; color: var(--tpt-accent); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
#role-drawer-container .role-req-chips { flex-wrap: wrap; gap: 6px; }
#role-drawer-container .role-req-essential-chip { background: var(--tpt-accent-tint); border: 1px solid var(--tpt-accent-line); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--tpt-accent-deep); font-weight: 600; }
#role-drawer-container .role-req-additional-label { font-size: 0.70rem; color: var(--tpt-text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
#role-drawer-container .role-req-additional-chip { background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-good-line); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--tpt-good); font-weight: 600; }
#role-drawer-container .role-req-no-competencies { margin: 0; color: var(--tpt-text-subtle); font-size: 0.82rem; font-style: italic; }
#role-drawer-container .role-tab-actions { gap: 8px; align-items: center; flex-shrink: 0; margin-left: 16px; }
#role-drawer-container .role-tab-edit { background: none; border: none; color: var(--tpt-text-muted); padding: 4px; cursor: pointer; }
#role-drawer-container .role-tab-empty { text-align: center; color: var(--tpt-text-subtle); font-size: 0.85rem; margin: 20px 0; }

/* ---- Role page > Candidates tab (admin/roles/show/_pipelines) ---- */
#role-drawer-container .role-candidates-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.03); }
#role-drawer-container .role-candidates-subtabs { gap: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--tpt-border); }
#role-drawer-container .role-applicant-list { flex-direction: column; gap: 12px; }
#role-drawer-container .role-applicant-card { background: var(--tpt-surface-sunken); border-radius: 8px; padding: 16px; align-items: center; justify-content: space-between; gap: 16px; }
#role-drawer-container .role-card-text { min-width: 0; }
#role-drawer-container .role-applicant-name { margin: 0 0 4px 0; font-size: 0.9rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-applicant-link { color: var(--tpt-text); text-decoration: none; }
#role-drawer-container .role-applicant-meta { font-size: 0.78rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-applicant-meta-value { font-weight: 600; color: var(--tpt-text-strong); }
#role-drawer-container .role-applicant-not-scored { margin: 6px 0 0; font-size: 0.75rem; color: var(--tpt-warn); }
#role-drawer-container .role-applicant-below-threshold { margin: 6px 0 0; font-size: 0.75rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-applicant-badges { align-items: center; gap: 8px; flex-shrink: 0; }
#role-drawer-container .role-applicant-score { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
#role-drawer-container .role-applicant-stage { background: var(--tpt-info-tint); color: var(--tpt-info); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
#role-drawer-container .role-candidates-empty { text-align: center; color: var(--tpt-text-subtle); font-size: 0.85rem; margin: 20px 0; font-style: italic; }
#role-drawer-container .role-pool-sections { flex-direction: column; gap: 16px; }
#role-drawer-container .role-candidates-list { flex-direction: column; gap: 10px; }
#role-drawer-container .role-pool-high-heading { font-size: 0.7rem; font-weight: 700; color: var(--tpt-good); text-transform: uppercase; letter-spacing: 0.5px; justify-content: space-between; margin-bottom: 2px; }
#role-drawer-container .role-pool-high-count { color: var(--tpt-text-subtle); text-transform: none; letter-spacing: 0; font-weight: 600; }
#role-drawer-container .role-pool-card-link { text-decoration: none; color: inherit; }
#role-drawer-container .role-pool-high-card { border-radius: 8px; padding: 14px; align-items: center; justify-content: space-between; transition: all 0.2s ease-in-out; }
#role-drawer-container .role-pool-name-row { align-items: center; gap: 8px; }
#role-drawer-container .role-pool-high-name { margin: 0; font-size: 0.88rem; font-weight: 700; }
#role-drawer-container .role-pool-state { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
#role-drawer-container .role-pool-high-title { font-size: 0.75rem; color: var(--tpt-text-muted); margin-top: 4px; }
#role-drawer-container .role-pool-high-title-strong { color: var(--tpt-text-strong); }
#role-drawer-container .role-pool-high-score { background: var(--tpt-good-tint); color: var(--tpt-good); font-size: 0.8rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
#role-drawer-container .role-pool-divider { border: 0; border-top: 1px dashed var(--tpt-border); margin: 8px 0; width: 100%; }
#role-drawer-container .role-pool-low-heading { font-size: 0.7rem; font-weight: 700; color: var(--tpt-critical); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
#role-drawer-container .role-pool-low-card { background: var(--tpt-critical-tint); border: 1px solid var(--tpt-critical-line); border-radius: 8px; padding: 14px; align-items: center; gap: 12px; opacity: 0.85; transition: all 0.2s ease-in-out; }
#role-drawer-container .role-pool-low-link { text-decoration: none; color: inherit; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
#role-drawer-container .role-pool-low-name { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--tpt-critical); }
#role-drawer-container .role-pool-low-stage { background: var(--tpt-critical-tint); color: var(--tpt-critical); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
#role-drawer-container .role-pool-subline { font-size: 0.75rem; color: var(--tpt-text-subtle); margin-top: 4px; }
#role-drawer-container .role-pool-low-title { color: var(--tpt-text-muted); }
#role-drawer-container .role-pool-low-score { background: var(--tpt-critical-tint); color: var(--tpt-critical); font-size: 0.8rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }
#role-drawer-container .role-pool-in-pipeline { font-size: 0.72rem; font-weight: 700; color: var(--tpt-text-muted); flex-shrink: 0; }
#role-drawer-container .role-pool-accept-form { flex-shrink: 0; }
#role-drawer-container .role-pool-accept { font-family: 'Mulish', sans-serif; background: var(--tpt-surface); color: var(--tpt-text-strong); border: 1px solid var(--tpt-border-strong); font-size: 0.72rem; font-weight: 700; padding: 6px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
#role-drawer-container .role-pool-fix-list { flex-direction: column; gap: 10px; margin-top: 8px; }
#role-drawer-container .role-pool-fix-heading { font-size: 0.7rem; font-weight: 700; color: var(--tpt-warn); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
#role-drawer-container .role-pool-fix-card { background: var(--tpt-warn-tint); border: 1px solid var(--tpt-warn); border-radius: 8px; padding: 12px 14px; align-items: center; justify-content: space-between; }
#role-drawer-container .role-pool-fix-name { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--tpt-text-strong); }
#role-drawer-container .role-pool-fix-action { font-size: 0.72rem; color: var(--tpt-warn); font-weight: 700; }
#role-drawer-container .role-pool-not-this-work { margin-top: 8px; }
#role-drawer-container .role-pool-not-this-work-summary { font-size: 0.7rem; font-weight: 700; color: var(--tpt-text-muted); text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; list-style: revert; }
#role-drawer-container .role-pool-not-this-work-list { flex-direction: column; gap: 8px; margin-top: 10px; }
#role-drawer-container .role-pool-not-this-work-card { background: var(--tpt-surface-sunken); border: 1px dashed var(--tpt-border); border-radius: 8px; padding: 10px 14px; align-items: center; justify-content: space-between; opacity: 0.75; }
#role-drawer-container .role-pool-not-this-work-name { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--tpt-text-muted); }
#role-drawer-container .role-pool-not-this-work-note { font-size: 0.72rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-rejected-card { background: var(--tpt-critical-tint); border: 1px solid var(--tpt-critical-line); border-radius: 8px; padding: 12px 16px; justify-content: space-between; align-items: center; }
#role-drawer-container .role-rejected-name { font-weight: 700; color: var(--tpt-critical); font-size: 0.85rem; }
#role-drawer-container .role-rejected-kind { font-size: 0.72rem; color: var(--tpt-critical); font-weight: 600; }

/* ---- Role page > Shortlist tab (admin/roles/show/_shortlist) ---- */
#role-drawer-container .role-shortlist-font { font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-shortlist-header { justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--tpt-border); font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-tab-heading { font-size: 0.75rem; font-weight: 800; color: var(--tpt-text-muted); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
#role-drawer-container .role-shortlist-hint { font-family: 'Mulish', sans-serif; margin: 4px 0 0 0; font-size: 0.78rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-shortlist-options { align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-border); border-radius: 8px; }
#role-drawer-container .role-shortlist-option { align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 600; color: var(--tpt-text-strong); cursor: pointer; }
#role-drawer-container .role-shortlist-option-box { width: 15px; height: 15px; accent-color: var(--tpt-accent); cursor: pointer; }
#role-drawer-container .role-shortlist-generate { font-family: 'Mulish', sans-serif; background: var(--tpt-accent); color: #FFF; border: none; font-weight: 700; font-size: 0.82rem; padding: 10px 18px; border-radius: 8px; cursor: pointer; align-items: center; gap: 8px; transition: background 0.2s ease-in-out; }
#role-drawer-container .role-shortlist-generate:hover { background: var(--tpt-accent-hover); }
#role-drawer-container .role-shortlist-list { flex-direction: column; gap: 12px; font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-shortlist-empty { background: var(--tpt-surface-sunken); border: 1px dashed var(--tpt-border); border-radius: 12px; padding: 32px; text-align: center; font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-shortlist-empty-icon { font-size: 2rem; color: var(--tpt-border-strong); margin-bottom: 8px; }
#role-drawer-container .role-shortlist-empty-title { font-family: 'Mulish', sans-serif; margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--tpt-text-strong); }
#role-drawer-container .role-shortlist-card { justify-content: space-between; align-items: center; background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 10px; padding: 16px; box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.05); font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-shortlist-card-main { align-items: center; gap: 16px; }
#role-drawer-container .role-shortlist-score { font-family: 'Mulish', sans-serif; background: var(--tpt-good-tint); border: 1px solid var(--tpt-good-line); color: var(--tpt-good); font-weight: 800; font-size: 0.82rem; padding: 8px 12px; border-radius: 8px; text-align: center; }
#role-drawer-container .role-shortlist-name { font-family: 'Mulish', sans-serif; font-size: 0.92rem; font-weight: 700; color: var(--tpt-text); text-decoration: none; }
#role-drawer-container .role-shortlist-client-code { margin-left: 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tpt-text-muted); background: var(--tpt-surface-muted); border: 1px solid var(--tpt-neutral-line); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
#role-drawer-container .role-shortlist-contact { font-family: 'Mulish', sans-serif; font-size: 0.78rem; color: var(--tpt-text-subtle); margin-top: 2px; }
#role-drawer-container .role-shortlist-remove { font-family: 'Mulish', sans-serif; background: var(--tpt-critical-tint); color: var(--tpt-critical); border: 1px solid var(--tpt-critical-line); font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
#role-drawer-container .role-shortlist-sent { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--tpt-border); }
#role-drawer-container .role-shortlist-sent-title { font-size: 0.72rem; font-weight: 800; color: var(--tpt-text-subtle); margin: 0 0 4px 0; text-transform: uppercase; letter-spacing: 0.06em; }
#role-drawer-container .role-shortlist-sent-hint { font-family: 'Mulish', sans-serif; margin: 0 0 12px 0; font-size: 0.78rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-shortlist-sent-list { flex-direction: column; gap: 8px; }
#role-drawer-container .role-shortlist-sent-card { justify-content: space-between; align-items: center; background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-border); border-radius: 10px; padding: 12px 16px; opacity: 0.75; font-family: 'Mulish', sans-serif; }
#role-drawer-container .role-shortlist-sent-name { font-size: 0.88rem; font-weight: 700; color: var(--tpt-text-muted); text-decoration: none; }
#role-drawer-container .role-shortlist-verdict { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 5px; }

/* ---- Role page > Tasks tab (admin/roles/show/_tasks) ---- */
#role-drawer-container .role-tasks-header { justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tpt-border); }
#role-drawer-container .role-tasks-grid { grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
#role-drawer-container .role-task-rail { flex-direction: column; justify-content: space-between; height: 100%; box-sizing: border-box; background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 12px; }
#role-drawer-container .role-task-list { flex-direction: column; gap: 10px; padding: 6px; box-sizing: border-box; }
#role-drawer-container .role-task-empty { background: var(--tpt-surface); border: 1px dashed var(--tpt-border); border-radius: 10px; padding: 24px 12px; text-align: center; }
#role-drawer-container .role-task-empty-icon-ring { width: 36px; height: 36px; background: var(--tpt-surface-muted); border-radius: 50%; align-items: center; justify-content: center; margin: 0 auto 10px auto; }
#role-drawer-container .role-task-empty-icon { font-size: 1rem; color: #7F56D9; }
#role-drawer-container .role-task-empty-title { margin: 0 0 4px 0; font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-task-empty-text { margin: 0; font-size: 0.72rem; color: var(--tpt-text-subtle); line-height: 1.3; }
#role-drawer-container .role-task-slot { position: relative; width: 100%; box-sizing: border-box; }
#role-drawer-container .role-task-card { border-radius: 8px; padding: 12px; flex-direction: column; gap: 6px; box-sizing: border-box; transition: border-color 0.15s ease, background-color 0.15s ease; }
#role-drawer-container .role-task-card-row { justify-content: space-between; align-items: center; gap: 8px; }
#role-drawer-container .role-task-name { margin: 0; font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
#role-drawer-container .role-task-done-mark { width: 18px; height: 18px; border-radius: 50%; background: #22C55E; align-items: center; justify-content: center; flex-shrink: 0; }
#role-drawer-container .role-task-done-icon { font-size: 0.6rem; color: #FFFFFF; }
#role-drawer-container .role-task-active-mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tpt-accent); background: transparent; flex-shrink: 0; }
#role-drawer-container .role-task-open-mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tpt-text-faint); background: transparent; flex-shrink: 0; }
#role-drawer-container .role-invoice-card { border-radius: 8px; padding: 12px; flex-direction: column; gap: 6px; box-sizing: border-box; }
#role-drawer-container .role-invoice-meta-row { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#role-drawer-container .role-invoice-meta { font-size: 0.72rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-invoice-open { font-size: 0.72rem; }
#role-drawer-container .role-stage-panel { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 10px; padding: 14px; margin-top: 10px; box-sizing: border-box; box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.04); }
#role-drawer-container .role-stage-promote { width: 100%; color: #FFFFFF; border: none; font-weight: 700; font-size: 0.8rem; padding: 9px 0; border-radius: 8px; }
#role-drawer-container .role-stage-demote-form { margin: 0; }
#role-drawer-container .role-stage-demote { width: 100%; margin-top: 6px; background: var(--tpt-critical-tint); color: var(--tpt-critical); border: 1px solid var(--tpt-critical-line); font-weight: 700; font-size: 0.8rem; padding: 8px 0; border-radius: 8px; cursor: pointer; }
#role-drawer-container .role-workspace { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); box-sizing: border-box; }
#role-drawer-container .role-workspace-header { border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 14px; margin-bottom: 20px; }
#role-drawer-container .role-workspace-title-row { align-items: center; gap: 8px; margin-bottom: 4px; }
#role-drawer-container .role-workspace-title { font-size: 1.15rem; font-weight: 800; color: var(--tpt-text); margin: 0; }
#role-drawer-container .role-workspace-note { margin: 0; font-size: 0.78rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-workspace-section-title { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); margin: 0 0 16px 0; }
#role-drawer-container .role-review-list { flex-direction: column; gap: 8px; margin-bottom: 20px; padding-right: 4px; }
#role-drawer-container .role-review-empty { background: var(--tpt-surface); border: 1px dashed var(--tpt-border); padding: 16px; border-radius: 8px; text-align: center; }
#role-drawer-container .role-review-row { justify-content: space-between; align-items: center; background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); padding: 10px 14px; border-radius: 8px; flex-shrink: 0; }
#role-drawer-container .role-review-main { align-items: center; gap: 12px; }
#role-drawer-container .role-review-score { font-weight: 800; font-size: 0.78rem; padding: 6px 10px; border-radius: 6px; align-items: center; gap: 4px; min-width: 48px; justify-content: center; }
#role-drawer-container .role-review-name { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); text-decoration: none; align-items: center; gap: 4px; }
#role-drawer-container .role-review-meta { font-size: 0.74rem; color: var(--tpt-text-subtle); margin-top: 2px; }
#role-drawer-container .role-review-type { color: var(--tpt-text-muted); }
#role-drawer-container .role-review-open { background: var(--tpt-accent); color: #FFF; border: none; font-size: 0.75rem; font-weight: 700; padding: 7px 16px; border-radius: 6px; text-decoration: none; align-items: center; gap: 6px; }
#role-drawer-container .role-workspace-field { margin-bottom: 16px; }
#role-drawer-container .role-workspace-label { font-size: 0.78rem; font-weight: 700; color: var(--tpt-text-strong); margin-bottom: 6px; }
#role-drawer-container select.role-task-assignee { box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; color: var(--tpt-text); }
#role-drawer-container .role-workspace-notes-field { margin-bottom: 20px; }
#role-drawer-container .role-task-notes-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; font-family: inherit; color: var(--tpt-text); line-height: 1.4; }
#role-drawer-container .role-email-recipient { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; color: var(--tpt-text-muted); background: var(--tpt-surface-sunken); }
#role-drawer-container .role-email-subject { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; color: var(--tpt-text); }
#role-drawer-container .role-email-body { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; font-family: inherit; color: var(--tpt-text); line-height: 1.5; min-height: 230px; max-height: 440px; overflow-y: auto; background: var(--tpt-surface); }
#role-drawer-container .role-workspace-footer { justify-content: space-between; align-items: center; border-top: 1px solid var(--tpt-surface-muted); padding-top: 18px; }
#role-drawer-container .role-email-status { font-size: 0.78rem; font-weight: 600; color: var(--tpt-good); margin-right: 10px; }
#role-drawer-container .role-email-send { background-color: var(--tpt-surface); color: var(--tpt-accent); border: 1px solid var(--tpt-accent); font-weight: 700; font-size: 0.82rem; padding: 9px 16px; border-radius: 6px; cursor: pointer; transition: all 0.2s ease-in-out; }
#role-drawer-container .role-workspace-empty { flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--tpt-text-subtle); }
#role-drawer-container .role-workspace-empty-icon { font-size: 2rem; margin-bottom: 12px; color: var(--tpt-border-strong); }
#role-drawer-container .role-workspace-empty-title { margin: 0; font-size: 0.88rem; font-weight: 600; }
#role-drawer-container .role-workspace-empty-text { margin: 4px 0 0 0; font-size: 0.78rem; }

/* ---- Role page > Billing tab (admin/roles/show/_billing) ---- */
#role-drawer-container .role-billing-form-panel { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); }
#role-drawer-container .role-billing-form-actions { justify-content: flex-end; gap: 12px; border-top: 1px solid var(--tpt-border); padding-top: 16px; margin-top: 8px; }
#role-drawer-container .role-billing-summary { width: 100%; flex-direction: column; gap: 14px; }

/* ---- Role page > details form (admin/roles/_details_form) ---- */
#role-details-form .details-choice.role-details-document { margin: 0; align-items: center; gap: 8px; }

/* ---- Role page > posting under our own page (admin/roles/_board_posting_panel) ---- */
#role-drawer-container .role-post-fields { border: 1px solid var(--tpt-border); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
#role-drawer-container .role-post-fields-title { font-size: 0.72rem; font-weight: 700; color: var(--tpt-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
#role-drawer-container .role-post-field { align-items: center; gap: 12px; padding: 9px 14px; }
#role-drawer-container .role-post-field-label { flex: 0 0 8.5rem; font-size: 0.72rem; color: var(--tpt-text-subtle); font-weight: 600; }
#role-drawer-container .role-post-field-value { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--tpt-text); font-weight: 500; overflow-wrap: anywhere; }
#role-drawer-container .role-post-copy { flex-shrink: 0; background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); border-radius: 6px; padding: 4px 10px; font-size: 0.72rem; font-weight: 600; color: var(--tpt-text-strong); cursor: pointer; }
#role-drawer-container .role-post-description { border-top: 1px solid var(--tpt-surface-muted); padding: 9px 14px; }
#role-drawer-container .role-post-description-header { align-items: center; gap: 12px; margin-bottom: 6px; }
#role-drawer-container .role-post-description-label { flex: 1; font-size: 0.72rem; color: var(--tpt-text-subtle); font-weight: 600; }
#role-drawer-container .role-post-description-copy { background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); border-radius: 6px; padding: 4px 10px; font-size: 0.72rem; font-weight: 600; color: var(--tpt-text-strong); cursor: pointer; }
#role-drawer-container .role-post-description-preview { max-height: 9rem; overflow-y: auto; font-size: 0.8rem; color: var(--tpt-text-muted); background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-surface-muted); border-radius: 6px; padding: 10px 12px; line-height: 1.55; }

/* ---- Role page > one job board (admin/roles/_board_listing) ---- */
#role-drawer-container .role-board-name { font-size: 0.8rem; font-weight: 700; color: var(--tpt-text); }
#role-drawer-container .role-board-posted { background: var(--tpt-good-tint); color: var(--tpt-good); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 6px; }
#role-drawer-container .role-board-dead { background: var(--tpt-critical-tint); color: var(--tpt-critical); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 6px; }
#role-drawer-container .role-board-not-posted { background: var(--tpt-surface-muted); color: var(--tpt-text-muted); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 6px; }
#role-drawer-container .role-board-open { background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); border-radius: 6px; padding: 5px 12px; font-size: 0.72rem; font-weight: 600; color: var(--tpt-text-strong); text-decoration: none; }
#role-drawer-container .role-links { border: 1px solid var(--tpt-border); border-radius: 8px; overflow: hidden; }
#role-drawer-container .role-links-header { background: var(--tpt-surface-sunken); padding: 9px 14px; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#role-drawer-container .role-links-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
#role-drawer-container .role-links-source,
#role-drawer-container .role-links-name { border: 1px solid var(--tpt-border-strong); border-radius: 8px; padding: 7px 11px; font-size: 0.8rem; background: var(--tpt-surface); color: var(--tpt-text); }
#role-drawer-container .role-links-source { min-width: 11rem; }
#role-drawer-container .role-links-name { width: 13rem; }
#role-drawer-container .role-links-blockers { border-top: 1px solid var(--tpt-border); padding: 12px 14px; }
#role-drawer-container .role-link { border-top: 1px solid var(--tpt-border); padding: 12px 14px; }
#role-drawer-container .role-link-header { align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 1.9rem; }
#role-drawer-container .role-link-count { margin-left: 10px; font-size: 0.74rem; font-weight: 500; color: var(--tpt-text-muted); }
#role-drawer-container .role-link .role-board-apply-label { flex-basis: 7rem; }
#role-drawer-container .role-board-apply-row { align-items: center; gap: 10px; margin-bottom: 10px; }
#role-drawer-container .role-board-apply-label { flex: 0 0 5.5rem; font-size: 0.72rem; color: var(--tpt-text-subtle); font-weight: 600; }
#role-drawer-container .role-board-apply-url { flex: 1; min-width: 0; font-size: 0.78rem; color: var(--tpt-text); overflow-wrap: anywhere; }
#role-drawer-container .role-board-form-row { gap: 8px; flex-wrap: wrap; align-items: center; }
#role-drawer-container .role-board-post-url { flex: 1; min-width: 13rem; border: 1px solid var(--tpt-border-strong); border-radius: 8px; padding: 7px 11px; font-size: 0.8rem; }
#role-drawer-container .role-board-save { background: var(--tpt-accent); color: #FFFFFF; border: none; border-radius: 8px; padding: 7px 15px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
#role-drawer-container .role-board-proof { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tpt-surface-muted); }
#role-drawer-container .role-board-proof-header { align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
#role-drawer-container .role-board-proof-title { font-size: 0.7rem; font-weight: 700; color: var(--tpt-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
#role-drawer-container .role-board-check { background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); border-radius: 6px; padding: 4px 11px; font-size: 0.7rem; font-weight: 600; color: var(--tpt-text-strong); cursor: pointer; }
#role-drawer-container .role-board-hint { margin: 0 0 8px; font-size: 0.76rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-board-check-result { border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; }
#role-drawer-container .role-board-check-label { margin: 0 0 3px; font-size: 0.76rem; font-weight: 700; }
#role-drawer-container .role-board-check-detail { margin: 0; font-size: 0.76rem; }
#role-drawer-container .role-board-check-headline { margin: 5px 0 0; font-size: 0.73rem; opacity: 0.85; }
#role-drawer-container .role-board-checked-at { margin: 0 0 8px; font-size: 0.7rem; color: var(--tpt-text-subtle); }
#role-drawer-container .role-board-screenshot-label { margin: 0 0 5px; font-size: 0.7rem; color: var(--tpt-text-subtle); font-weight: 600; }
#role-drawer-container .role-board-screenshot-link { border: 1px solid var(--tpt-border); border-radius: 8px; overflow: hidden; max-height: 15rem; }
#role-drawer-container .role-board-screenshot { width: 100%; height: auto; }
