/* HireHub Platform — shared components (works with any theme; best with the HireHub theme). */
:root {
	/* SKILLGATE: navy 50% · teal 30% · white 20% */
	--hh-navy: #0a1f44;
	--hh-navy-deep: #06142e;
	--hh-navy-2: #112b5c;
	--hh-accent: #0c8e86;
	--hh-accent-bright: #14b8a6;
	--hh-accent-light: #5eead4;
	--hh-accent-ink: #ffffff;
	--hh-ink: #0a1f44;
	--hh-text: #33445f;
	--hh-muted: #5b6b84;
	--hh-line: #dce5ef;
	--hh-bg: #f3f7fa;
	--hh-card: #ffffff;
	--hh-soft: color-mix(in srgb, var(--hh-accent) 9%, white);
	--hh-radius: 14px;
	--hh-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
	--hh-green: #059669;
	--hh-amber: #d97706;
	--hh-red: #dc2626;
	--hh-blue: #2563eb;
}

.hh-muted { color: var(--hh-muted); }
.hh-small { font-size: .85rem; }
.hh-mt { margin-top: 1.5rem !important; }
.hh-center { text-align: center; }
.hh-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Buttons */
.hh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	background: var(--hh-accent); color: var(--hh-accent-ink) !important; border: 1px solid var(--hh-accent);
	padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: .95rem; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s;
	font-family: inherit; white-space: nowrap;
}
.hh-btn:hover { background: var(--hh-accent-bright); box-shadow: 0 6px 18px color-mix(in srgb, var(--hh-accent) 35%, transparent); transform: translateY(-1px); }
.hh-btn-sm { padding: .42rem .75rem; font-size: .83rem; border-radius: 8px; }
.hh-btn-block { width: 100%; }
.hh-btn-ghost { background: transparent; color: var(--hh-accent) !important; border-color: color-mix(in srgb, var(--hh-accent) 35%, transparent); }
.hh-btn-ghost:hover { background: var(--hh-soft); box-shadow: none; }
.hh-btn-danger { background: transparent; color: var(--hh-red) !important; border-color: #fecaca; }
.hh-btn-danger:hover { background: #fef2f2; box-shadow: none; }
.hh-btn .hh-icon { width: 16px; height: 16px; }
.hh-inline-form { display: inline; margin: 0; }

/* Forms */
.hh-form { display: grid; gap: 1rem; margin: 0; }
.hh-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--hh-ink); }
.hh-form input[type=text], .hh-form input[type=email], .hh-form input[type=password], .hh-form input[type=tel],
.hh-form input[type=number], .hh-form input[type=date], .hh-form input[type=datetime-local], .hh-form input[type=search],
.hh-form input[type=file], .hh-form select, .hh-form textarea,
.hh-search input, .hh-search select, .hh-copy input {
	width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid var(--hh-line); border-radius: 10px;
	background: #fff; font: inherit; font-weight: 400; color: var(--hh-ink); transition: border-color .12s, box-shadow .12s;
}
.hh-form input:focus, .hh-form select:focus, .hh-form textarea:focus, .hh-search input:focus, .hh-search select:focus {
	outline: none; border-color: var(--hh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hh-accent) 18%, transparent);
}
.hh-form .hh-check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.hh-form .hh-check input { margin-top: .2rem; }
.hh-grid-2, .hh-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) {
	.hh-grid-2 { grid-template-columns: 1fr 1fr; }
	.hh-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.hh-gap { gap: 1.25rem; margin-bottom: 1.25rem; }

/* Notices & badges */
.hh-notice { padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-size: .93rem; border: 1px solid; }
.hh-notice a { font-weight: 600; }
.hh-notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.hh-notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.hh-notice-info { background: var(--hh-soft); border-color: color-mix(in srgb, var(--hh-accent) 25%, white); color: var(--hh-ink); }

.hh-badge { display: inline-block; padding: .22rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #f1f5f9; color: #475569; white-space: nowrap; }
.hh-badge-open, .hh-badge-active, .hh-badge-hired, .hh-badge-confirmed { background: #d1fae5; color: #065f46; }
.hh-badge-shortlisted, .hh-badge-offered, .hh-badge-trial { background: #e0e7ff; color: #3730a3; }
.hh-badge-interview, .hh-badge-proposed { background: #dbeafe; color: #1e40af; }
.hh-badge-screening, .hh-badge-pending, .hh-badge-past_due { background: #fef3c7; color: #92400e; }
.hh-badge-rejected, .hh-badge-suspended, .hh-badge-inactive, .hh-badge-cancelled { background: #fee2e2; color: #991b1b; }
.hh-badge-closed, .hh-badge-completed { background: #f1f5f9; color: #475569; }
.hh-match { display: inline-block; padding: .22rem .55rem; border-radius: 8px; font-weight: 800; font-size: .78rem; background: #ecfdf5; color: var(--hh-green); }
.hh-match-lg { font-size: .95rem; padding: .35rem .7rem; }

.hh-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.hh-chip { background: #f1f5f9; color: #334155; padding: .28rem .6rem; border-radius: 999px; font-size: .8rem; }
.hh-skills .hh-chip { background: var(--hh-soft); color: var(--hh-accent); font-weight: 600; }

/* Auth cards */
.hh-auth-card { max-width: 460px; margin: 1rem auto 3rem; background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: 18px; padding: 2rem; box-shadow: var(--hh-shadow); }
.hh-auth-wide { max-width: 640px; }
.hh-auth-card h2 { margin-top: 0; }
.hh-auth-links { text-align: center; font-size: .9rem; margin: 1.2rem 0 0; }
.hh-tabs { display: flex; flex-wrap: wrap; gap: .35rem; background: #f1f5f9; padding: .3rem; border-radius: 12px; margin-bottom: 1.25rem; }
.hh-tab { flex: 1 1 auto; text-align: center; padding: .55rem .7rem; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--hh-muted); text-decoration: none; }
.hh-tab.is-active { background: #fff; color: var(--hh-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Job board */
.hh-search { display: grid; gap: .6rem; background: var(--hh-card); padding: .75rem; border-radius: 16px; border: 1px solid var(--hh-line); box-shadow: var(--hh-shadow); margin-bottom: 1rem; }
@media (min-width: 820px) { .hh-search { grid-template-columns: 2fr 1.3fr 1.3fr 1fr auto; } .hh-search-inline { grid-template-columns: 2fr 1.4fr 1fr auto; } }
.hh-search input, .hh-search select { border: 1px solid transparent; background: #f8fafc; }
.hh-job-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: var(--hh-radius); margin-bottom: .8rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hh-job-card:hover { border-color: color-mix(in srgb, var(--hh-accent) 40%, white); box-shadow: var(--hh-shadow); transform: translateY(-1px); }
.hh-job-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--hh-navy); color: var(--hh-accent-light); display: grid; place-items: center; font-weight: 800; }
.hh-job-main h3 { margin: 0 0 .15rem; font-size: 1.08rem; }
.hh-job-main h3 a { color: var(--hh-ink); text-decoration: none; }
.hh-job-company { color: var(--hh-muted); font-size: .9rem; }
.hh-job-side { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 720px) { .hh-job-card { grid-template-columns: auto 1fr auto; } .hh-job-side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; } }
.hh-pagination { display: flex; gap: .35rem; justify-content: center; margin: 1.5rem 0; }
.hh-pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--hh-line); text-decoration: none; color: var(--hh-ink); background: #fff; }
.hh-pagination a.is-active { background: var(--hh-accent); color: #fff; border-color: var(--hh-accent); }
.hh-empty { text-align: center; padding: 2.5rem 1.5rem; background: var(--hh-card); border: 1px dashed #cbd5e1; border-radius: var(--hh-radius); margin-bottom: 1rem; }
.hh-empty h3 { margin: 0 0 .4rem; }

/* Single job */
.hh-job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.hh-job-facts div { background: #f8fafc; border: 1px solid var(--hh-line); border-radius: 12px; padding: .75rem .9rem; display: grid; gap: .15rem; }
.hh-job-facts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hh-muted); }
.hh-job-facts strong { color: var(--hh-ink); font-size: .95rem; }
.hh-apply-box { margin: 2rem 0; padding: 1.5rem; border-radius: 18px; background: var(--hh-soft); border: 1px solid color-mix(in srgb, var(--hh-accent) 20%, white); }
.hh-apply-box h3 { margin-top: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Pricing */
.hh-pricing { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 860px) { .hh-pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.hh-plan { position: relative; background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: 20px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.hh-plan.is-featured { border: 2px solid var(--hh-accent); box-shadow: 0 18px 40px color-mix(in srgb, var(--hh-accent) 18%, transparent); }
.hh-plan-tag { position: absolute; top: -12px; left: 1.5rem; background: var(--hh-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.hh-plan h3 { margin: 0; }
.hh-price { font-size: 2rem; font-weight: 800; color: var(--hh-ink); letter-spacing: -.02em; }
.hh-price span { font-size: .9rem; font-weight: 500; color: var(--hh-muted); margin-left: .3rem; }
.hh-plan ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: .5rem; }
.hh-plan li { padding-left: 1.6rem; position: relative; }
.hh-plan li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--hh-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c8e86' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.hh-plan .hh-inline-form, .hh-plan .hh-inline-form button { width: 100%; }
.hh-plan .hh-inline-form + .hh-inline-form { margin-top: .4rem; display: block; }

/* ============ Portal shell ============ */
.hh-portal { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; background: var(--hh-bg); color: var(--hh-text); }
.hh-sidebar, .hh-main { min-width: 0; }
@media (min-width: 960px) { .hh-portal { grid-template-columns: 260px minmax(0, 1fr); } }
.hh-sidebar { background: linear-gradient(180deg, var(--hh-navy-deep), var(--hh-navy)); color: #cbd5e1; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 960px) { .hh-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; box-sizing: border-box; } }
.hh-side-brand a { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.hh-side-brand span { display: block; font-size: .8rem; color: #94a3b8; margin-top: .15rem; }
.hh-sidebar nav { display: flex; gap: .25rem; overflow-x: auto; }
@media (min-width: 960px) { .hh-sidebar nav { flex-direction: column; overflow: visible; flex: 1; } }
.hh-sidebar nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.hh-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.hh-sidebar nav a.is-active { background: var(--hh-accent); color: #fff; }
.hh-sidebar nav a em { margin-left: auto; font-style: normal; background: #f59e0b; color: #1f2937; font-size: .72rem; font-weight: 800; padding: .08rem .45rem; border-radius: 999px; }
.hh-sidebar .hh-side-switch { margin-top: .75rem; border: 1px dashed rgba(255,255,255,.2); }
.hh-side-user { display: none; }
@media (min-width: 960px) { .hh-side-user { display: flex; align-items: center; gap: .65rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); } }
.hh-side-user strong { color: #fff; display: block; font-size: .9rem; }
.hh-side-user small { color: #94a3b8; }
.hh-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--hh-soft); color: var(--hh-accent); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.hh-avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }

.hh-main { padding: 1rem; min-width: 0; }
@media (min-width: 960px) { .hh-main { padding: 1.5rem 2.25rem 3rem; } }
.hh-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hh-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hh-muted); }
.hh-topbar-actions { display: flex; gap: 1rem; font-size: .88rem; }
.hh-topbar-actions a { color: var(--hh-muted); text-decoration: none; }
.hh-topbar-actions a:hover { color: var(--hh-accent); }

.hh-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.hh-page-head h1 { margin: 0; font-size: 1.6rem; color: var(--hh-ink); letter-spacing: -.02em; }
.hh-page-head p { margin: .3rem 0 0; }
.hh-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.hh-card { background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 1.25rem; box-shadow: var(--hh-shadow); margin-bottom: 1.25rem; min-width: 0; }
.hh-grid-2 > .hh-card { margin-bottom: 0; }
.hh-card h3 { margin: 0 0 1rem; font-size: 1.02rem; color: var(--hh-ink); }
.hh-card-highlight { border-color: color-mix(in srgb, var(--hh-accent) 35%, white); background: linear-gradient(0deg, #fff, var(--hh-soft)); }

.hh-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); margin-bottom: 1.25rem; }
.hh-stat { display: flex; align-items: center; gap: .9rem; background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 1rem 1.1rem; text-decoration: none; box-shadow: var(--hh-shadow); color: inherit; }
a.hh-stat:hover { border-color: var(--hh-accent); }
.hh-stat .hh-icon { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: var(--hh-soft); color: var(--hh-accent); flex-shrink: 0; }
.hh-stat strong { display: block; font-size: 1.45rem; color: var(--hh-ink); line-height: 1.1; letter-spacing: -.02em; }
.hh-stat span { font-size: .82rem; color: var(--hh-muted); }

.hh-table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.hh-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hh-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hh-muted); padding: .6rem .7rem; border-bottom: 1px solid var(--hh-line); font-weight: 700; white-space: nowrap; }
.hh-table td { padding: .8rem .7rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.hh-table tr:last-child td { border-bottom: 0; }
.hh-table a { color: var(--hh-ink); text-decoration: none; }
.hh-table a:hover { color: var(--hh-accent); }
.hh-actions { white-space: nowrap; text-align: right; }
.hh-actions > * { margin-left: .25rem; }

.hh-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hh-filter a { padding: .45rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--hh-line); text-decoration: none; color: var(--hh-text); font-size: .85rem; font-weight: 600; }
.hh-filter a em { font-style: normal; color: var(--hh-muted); margin-left: .2rem; }
.hh-filter a.is-active { background: var(--hh-navy); color: #fff; border-color: var(--hh-ink); }
.hh-filter a.is-active em { color: #cbd5e1; }

.hh-bar-row { display: grid; grid-template-columns: 100px 1fr 32px; gap: .75rem; align-items: center; margin-bottom: .55rem; font-size: .88rem; }
.hh-bar { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.hh-bar i { display: block; height: 100%; background: var(--hh-accent); border-radius: 999px; min-width: 2px; }
.hh-bar-row strong { text-align: right; color: var(--hh-ink); }

.hh-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.hh-checklist li { padding-left: 1.8rem; position: relative; }
.hh-checklist li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #cbd5e1; box-sizing: border-box; }
.hh-checklist li.is-done::before { background: var(--hh-green); border-color: var(--hh-green); }
.hh-checklist li.is-done a { color: var(--hh-muted); text-decoration: line-through; }

.hh-copy { display: flex; gap: .5rem; }
.hh-copy input { font-size: .82rem; background: #f8fafc; }

.hh-layout-2 { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .hh-layout-2 { grid-template-columns: 1.6fr 1fr; } }

.hh-profile-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.hh-profile-head h2 { margin: 0; font-size: 1.3rem; color: var(--hh-ink); }
.hh-profile-head p { margin: .15rem 0 0; }
.hh-bio { color: var(--hh-text); }

.hh-timeline { list-style: none; padding: 0; margin: 0 0 1rem; }
.hh-timeline li { padding: .55rem 0 .55rem 1rem; border-left: 2px solid var(--hh-line); margin-left: .3rem; font-size: .9rem; }
.hh-timeline li p { margin: .2rem 0 0; }

.hh-details summary { cursor: pointer; font-weight: 700; color: var(--hh-accent); margin: .75rem 0; }

.hh-interviews { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hh-interviews li { display: grid; grid-template-columns: 52px 1fr; gap: .8rem; align-items: center; padding: .7rem; border: 1px solid var(--hh-line); border-radius: 12px; }
.hh-iv-date { background: var(--hh-soft); color: var(--hh-accent); border-radius: 10px; text-align: center; padding: .35rem 0; line-height: 1.1; }
.hh-iv-date strong { display: block; font-size: 1.2rem; }
.hh-iv-date span { font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.hh-iv-side { grid-column: 1 / -1; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
@media (min-width: 720px) { .hh-interviews li { grid-template-columns: 52px 1fr auto; } .hh-iv-side { grid-column: auto; justify-content: flex-end; } }

.hh-people { list-style: none; padding: 0; margin: 0; }
.hh-people li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid #f1f5f9; }
.hh-people li:last-child { border-bottom: 0; }
.hh-people a { color: var(--hh-ink); text-decoration: none; }
.hh-people-side { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.hh-radio-cards { display: grid; gap: .5rem; }
.hh-radio-cards label { display: flex !important; align-items: center; gap: .6rem; padding: .75rem .9rem; border: 1px solid var(--hh-line); border-radius: 10px; cursor: pointer; font-weight: 500 !important; }
.hh-radio-cards label:has(input:checked) { border-color: var(--hh-accent); background: var(--hh-soft); }

.hh-app-list { list-style: none; padding: 0; margin: 0; }
.hh-app-list > li { padding: 1rem 0; border-bottom: 1px solid #f1f5f9; }
.hh-app-list > li:last-child { border-bottom: 0; }
.hh-app-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.hh-app-head a { color: var(--hh-ink); text-decoration: none; }
.hh-steps { display: flex; list-style: none; padding: 0; margin: .9rem 0 .6rem; counter-reset: s; overflow-x: auto; }
.hh-steps li { flex: 1; min-width: 78px; text-align: center; font-size: .72rem; color: var(--hh-muted); position: relative; padding-top: 1.4rem; }
.hh-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.15rem; height: 1.15rem; line-height: 1.15rem; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: .65rem; font-weight: 800; z-index: 1; }
.hh-steps li::after { content: ""; position: absolute; top: .55rem; left: -50%; width: 100%; height: 2px; background: #e2e8f0; }
.hh-steps li:first-child::after { display: none; }
.hh-steps li.is-done { color: var(--hh-ink); font-weight: 600; }
.hh-steps li.is-done::before, .hh-steps li.is-done::after { background: var(--hh-green); color: #fff; }

.hh-progress-card { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .hh-progress-card { grid-template-columns: 1fr 200px auto; } }
.hh-progress-card h3 { margin-bottom: .3rem; }
.hh-progress-card p { margin: 0; }
.hh-progress { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.hh-progress i { display: block; height: 100%; background: var(--hh-green); }

.hh-billing-summary { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hh-billing-summary div { display: grid; gap: .3rem; justify-items: start; }
.hh-billing-summary strong { font-size: 1.15rem; color: var(--hh-ink); }
.hh-pricing-portal { margin-top: 0; }

.hh-icon { flex-shrink: 0; }

/* ============ SKILLGATE additions ============ */
.hh-topbar { background: var(--hh-navy); margin: -1rem -1rem 1.25rem; padding: .9rem 1rem; }
@media (min-width: 960px) { .hh-topbar { margin: -1.5rem -2.25rem 1.5rem; padding: 1rem 2.25rem; } }
.hh-topbar .hh-eyebrow { color: var(--hh-accent-light); }
.hh-topbar-actions a { color: #c9d6ea; }
.hh-topbar-actions a:hover { color: #fff; }
.hh-sidebar nav a.is-active { background: var(--hh-accent); }
.hh-side-brand a { letter-spacing: .03em; }
.hh-stat .hh-icon { background: var(--hh-navy); color: var(--hh-accent-light); }
.hh-avatar { background: var(--hh-accent); color: #fff; }
.hh-card h3 { color: var(--hh-navy); }
.hh-card-highlight { border-left: 4px solid var(--hh-accent); }

.hh-btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.hh-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--hh-muted); margin: 1rem 0 .2rem; }
.hh-fieldset { border: 1px solid var(--hh-line); border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0; display: grid; gap: .8rem; }
.hh-fieldset legend { font-weight: 700; font-size: .9rem; color: var(--hh-ink); padding: 0 .35rem; }
.hh-checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.hh-form label.hh-check-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--hh-line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; background: #fff; }
.hh-check-pill input { accent-color: var(--hh-accent); margin: 0; }
.hh-form label.hh-check-pill:has(input:checked) { background: var(--hh-navy); border-color: var(--hh-navy); color: #fff; }
.hh-chip-type { background: var(--hh-navy); color: #fff; font-weight: 600; }
.hh-chip-cert { background: #d8f5f1; color: #065f59; font-weight: 700; }
.hh-cert-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.hh-cert-strip span { padding: .5rem .9rem; border-radius: 10px; background: var(--hh-navy); color: #fff; font-weight: 700; font-size: .88rem; border-bottom: 3px solid var(--hh-accent-bright); }
.hh-form-step { display: flex; align-items: center; gap: .7rem; margin-top: .6rem; }
.hh-form-step span { width: 32px; height: 32px; border-radius: 10px; background: var(--hh-navy); color: var(--hh-accent-light); display: grid; place-items: center; font-weight: 800; }
.hh-form-step h3, .entry-content .hh-form-step h3 { margin: 0; font-size: 1.1rem; color: var(--hh-navy); }
.hh-request-form { background: #fff; border: 1px solid var(--hh-line); border-top: 5px solid var(--hh-accent); border-radius: 18px; padding: 1.75rem; box-shadow: 0 20px 50px rgba(10,31,68,.08); }
.hh-success-card { text-align: center; padding: 3rem 1.5rem; background: #fff; border-radius: 20px; border: 1px solid var(--hh-line); border-top: 5px solid var(--hh-accent); }
.hh-success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--hh-accent); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.hh-screening-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; padding: .8rem; background: var(--hh-bg); border-radius: 12px; }
.hh-screening-form label { font-weight: 700; font-size: .85rem; color: var(--hh-ink); display: flex; align-items: center; gap: .4rem; }
.hh-screening-form select { padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--hh-line); font: inherit; }
.hh-badge-screened { background: #d1fae5; color: #065f46; }
.hh-badge-in_screening { background: #dbeafe; color: #1e40af; }
.hh-badge-not_screened { background: #f1f5f9; color: #475569; }
.hh-badge-not_approved { background: #fee2e2; color: #991b1b; }
@media (min-width: 900px) { .hh-search-full { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto; } }

/* ---------- Plan requests (v2.1) ---------- */
.hh-request-notice { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hh-plan.is-requested { border-color: #f59e0b; box-shadow: 0 12px 30px rgba(245, 158, 11, .15); }
.hh-plan.is-requested .hh-plan-tag { background: #f59e0b; }
.hh-plan-state { margin: 0; padding: .65rem .8rem; border-radius: 10px; background: var(--hh-soft); font-weight: 600; font-size: .9rem; display: flex; gap: .4rem; align-items: center; }
.hh-plan.is-requested .hh-plan-state { background: #fef3c7; color: #92400e; }
.hh-request-plan > summary { list-style: none; cursor: pointer; text-align: center; }
.hh-request-plan > summary::-webkit-details-marker { display: none; }
.hh-request-plan[open] > summary { margin-bottom: .75rem; }
.hh-request-plan .hh-form { margin: 0; }
.hh-pay-options { display: grid; gap: .4rem; margin-top: .25rem; padding-top: .75rem; border-top: 1px dashed var(--hh-line); }
.hh-pay-options .hh-inline-form, .hh-pay-options .hh-inline-form button { width: 100%; }
/* Portal plan cards adapt to the width of the portal column. */
.hh-pricing.hh-pricing-portal { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hh-request-plan > summary.hh-btn { box-sizing: border-box; display: block; }

/* ==========================================================
   v2.2 — Super Admin & Admin portals + shared components
   ========================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Mobile navigation */
.hh-side-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .75rem; }
.hh-side-brand > a { flex: 1 1 auto; }
.hh-side-brand > span { flex-basis: 100%; order: 3; }
.hh-nav-toggle { margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px; width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; }
@media (max-width: 959px) {
	.hh-sidebar { position: sticky; top: 0; z-index: 50; padding: .8rem 1rem; }
	.hh-sidebar nav { display: none; flex-direction: column; overflow: visible; max-height: calc(100vh - 80px); overflow-y: auto; }
	.hh-sidebar.is-open nav { display: flex; }
	.hh-side-brand > span { flex-basis: auto; order: 0; }
}
@media (min-width: 960px) { .hh-nav-toggle { display: none; } }

/* Platform console look: a deeper sidebar so staff always know where they are */
.hh-portal-platform .hh-sidebar { background: linear-gradient(180deg, #050d1f, #0a1f44 70%, #0b2a52); }
.hh-portal-platform .hh-side-brand span { color: var(--hh-accent-light); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.hh-portal-super_admin .hh-topbar { box-shadow: inset 0 -3px 0 #f59e0b; }

/* Toolbars */
.hh-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hh-toolbar .hh-filter { margin-bottom: 0; }
.hh-searchbox { display: flex; gap: .4rem; flex: 0 1 340px; min-width: 220px; margin: 0; }
.hh-searchbox input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--hh-line); border-radius: 10px; font: inherit; background: #fff; }
.hh-searchbox input:focus { outline: none; border-color: var(--hh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hh-accent) 18%, transparent); }
.hh-crumbs { margin: -.5rem 0 1rem; font-size: .88rem; }
.hh-crumbs a { color: var(--hh-muted); text-decoration: none; }
.hh-crumbs a:hover { color: var(--hh-accent); }
.hh-pager-gap { align-self: center; color: var(--hh-muted); padding: 0 .25rem; }
.hh-narrow { max-width: 760px; }

/* Notices */
.hh-notice-warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.hh-notice-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hh-notice-row > span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.hh-tag-amber { display: inline-block; color: #92400e; background: #fef3c7; border-radius: 6px; padding: .05rem .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* Badges for new states */
.hh-badge-new { background: #fef3c7; color: #92400e; }
.hh-badge-reviewing { background: #dbeafe; color: #1e40af; }
.hh-badge-sourcing { background: #e0e7ff; color: #3730a3; }
.hh-badge-fulfilled, .hh-badge-enabled { background: #d1fae5; color: #065f46; }
.hh-badge-disabled { background: #fee2e2; color: #991b1b; }

/* The switch (front-end) */
.hh-toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; transition: background .15s; flex-shrink: 0; }
.hh-toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.hh-toggle.is-on { background: var(--hh-green); }
.hh-toggle.is-on::before { transform: translateX(20px); }
.hh-toggle.is-requested:not(.is-on) { box-shadow: 0 0 0 2px #f59e0b; }
.hh-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--hh-accent) 45%, transparent); outline-offset: 2px; }
.hh-toggle:disabled { opacity: .6; }
.hh-plan-rows { display: grid; gap: .5rem; }
.hh-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .95rem; border: 1px solid var(--hh-line); border-radius: 12px; background: #fff; }
.hh-plan-row.is-on { border-color: color-mix(in srgb, var(--hh-green) 45%, white); background: #f0fdf4; }

/* Plan request rows */
.hh-request { display: grid; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eef2f6; }
.hh-request:last-child { border-bottom: 0; }
.hh-request:first-child { padding-top: 0; }
@media (min-width: 820px) { .hh-request { grid-template-columns: 1fr minmax(260px, 320px); align-items: start; } }
.hh-card > .hh-request:only-of-type { padding-bottom: 0; }
.hh-request-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hh-request-title a { color: var(--hh-ink); text-decoration: none; font-size: 1.02rem; }
.hh-request-plan-line { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.hh-chip-paid { background: #d1fae5; color: #065f46; font-weight: 700; }
.hh-quote { margin: .65rem 0 0; padding: .55rem .8rem; border-left: 3px solid #f59e0b; background: #fffbeb; border-radius: 0 8px 8px 0; color: #78350f; font-size: .88rem; }
.hh-request-actions { display: grid; gap: .5rem; }
.hh-request-actions .hh-inline-form, .hh-request-actions .hh-inline-form .hh-btn { width: 100%; }
.hh-approve-form { gap: .55rem; padding: .8rem; background: var(--hh-bg); border-radius: 12px; }
.hh-approve-form .hh-btn { width: 100%; }
.hh-decline > summary, .hh-pop > summary { list-style: none; cursor: pointer; }
.hh-decline > summary::-webkit-details-marker, .hh-pop > summary::-webkit-details-marker { display: none; }
.hh-decline > summary { width: 100%; box-sizing: border-box; }
.hh-decline[open] > summary { margin-bottom: .5rem; }
.hh-decline .hh-form { gap: .55rem; }
.hh-pop { position: relative; display: inline-block; }
.hh-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, 85vw); background: #fff; border: 1px solid var(--hh-line); border-radius: 14px; padding: 1rem; box-shadow: 0 18px 40px rgba(10,31,68,.18); }

/* Key/value */
.hh-kv { margin: 0; display: grid; gap: 0; }
.hh-kv > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; font-size: .9rem; }
.hh-kv > div:last-child { border-bottom: 0; }
.hh-kv dt { color: var(--hh-muted); font-weight: 600; }
.hh-kv dd { margin: 0; color: var(--hh-ink); overflow-wrap: anywhere; }
.hh-kv a { color: var(--hh-accent); }

/* Meters */
.hh-meter { margin-bottom: .8rem; }
.hh-meter-head { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: .3rem; }
.hh-meter-head strong { color: var(--hh-ink); }
.hh-meter-bar { height: 8px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.hh-meter-bar i { display: block; height: 100%; background: var(--hh-accent); border-radius: 999px; }
.hh-meter.is-high .hh-meter-bar i { background: var(--hh-amber); }
.hh-meter.is-full .hh-meter-bar i { background: var(--hh-red); }

/* Mini stats & lists */
.hh-mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.hh-mini-stats > div { background: var(--hh-bg); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .1rem; }
.hh-mini-stats strong { font-size: 1.25rem; color: var(--hh-ink); letter-spacing: -.02em; }
.hh-mini-stats span { font-size: .78rem; color: var(--hh-muted); }
.hh-list { list-style: none; margin: 0; padding: 0; }
.hh-list li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid #f1f5f9; }
.hh-list li:last-child { border-bottom: 0; }
.hh-list li > a { color: var(--hh-ink); text-decoration: none; }
.hh-list li > .hh-muted { margin-right: auto; }

/* Column chart */
.hh-colchart { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; align-items: end; height: 210px; padding-top: .5rem; }
.hh-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: .35rem; text-align: center; min-width: 0; }
.hh-col-val { font-size: .68rem; color: var(--hh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-col-track { position: relative; background: linear-gradient(to top, #eef2f6 1px, transparent 1px); border-radius: 8px 8px 0 0; }
.hh-col-track i { position: absolute; left: 12%; right: 12%; bottom: 0; background: linear-gradient(180deg, var(--hh-accent-bright), var(--hh-accent)); border-radius: 6px 6px 0 0; }
.hh-col:last-child .hh-col-track i { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.hh-col-label { font-size: .78rem; font-weight: 700; color: var(--hh-ink); }

/* Activity */
.hh-activity { list-style: none; margin: 0; padding: 0; }
.hh-activity li { display: grid; grid-template-columns: 112px 1fr auto; gap: .75rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid #f1f5f9; font-size: .9rem; }
.hh-activity li:last-child { border-bottom: 0; }
.hh-activity li > div { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.hh-activity.is-compact li { grid-template-columns: 96px 1fr; padding: .5rem 0; font-size: .85rem; }
.hh-activity-type { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .45rem; border-radius: 6px; background: #f1f5f9; color: #475569; text-align: center; }
.hh-type-company { background: #e0f2f1; color: #065f59; }
.hh-type-payment { background: #d1fae5; color: #065f46; }
.hh-type-user { background: #e0e7ff; color: #3730a3; }
.hh-type-admin { background: #fef3c7; color: #92400e; }
.hh-type-job { background: #dbeafe; color: #1e40af; }
.hh-type-request { background: #fce7f3; color: #9d174d; }
.hh-type-settings { background: #0a1f44; color: #fff; }
@media (max-width: 600px) { .hh-activity li, .hh-activity.is-compact li { grid-template-columns: 1fr; gap: .3rem; } .hh-activity-type { justify-self: start; } }

/* Forms bits */
.hh-form-tight { gap: .35rem; }
.hh-input-row { display: flex; gap: .4rem; }
.hh-input-row input { flex: 1; min-width: 0; }
.hh-quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.hh-grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .hh-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.hh-details-card { padding: 0; }
.hh-details-card > summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.hh-details-card > summary::-webkit-details-marker { display: none; }
.hh-details-card > summary strong { display: inline-flex; align-items: center; gap: .45rem; color: var(--hh-navy); }
.hh-details-card[open] > summary { border-bottom: 1px solid var(--hh-line); }
.hh-details-body { padding: 1.25rem; }
.hh-sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .85rem 1rem; margin-top: .5rem; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid var(--hh-line); border-radius: 14px; box-shadow: 0 -6px 20px rgba(10,31,68,.06); }

/* Permissions */
.hh-perm-grid { display: grid; gap: .5rem; }
.hh-form label.hh-perm, .hh-perm { display: flex !important; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--hh-line); border-radius: 12px; cursor: pointer; font-weight: 500 !important; background: #fff; }
.hh-perm input { margin-top: .2rem; accent-color: var(--hh-accent); }
.hh-perm span { display: grid; gap: .1rem; }
.hh-perm small { color: var(--hh-muted); font-weight: 400; font-size: .8rem; }
.hh-perm:has(input:checked) { border-color: var(--hh-accent); background: var(--hh-soft); }
.hh-admin-row { padding: 1rem 0; border-bottom: 1px solid #f1f5f9; }
.hh-admin-row:first-of-type { padding-top: 0; }
.hh-admin-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hh-admin-head { display: flex; gap: .75rem; align-items: center; }
.hh-admin-head a { color: var(--hh-ink); text-decoration: none; }

/* Plan editor */
.hh-plan-editor { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.hh-plan-editor .hh-card { margin-bottom: 0; display: grid; gap: .9rem; }
.hh-plan-edit-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.hh-plan-edit-head h3 { margin: 0; }
.hh-plan-edit.is-new { border-style: dashed; background: #fbfdff; }
.hh-form input[readonly] { background: #f8fafc; color: var(--hh-muted); }

/* Misc */
.hh-danger-zone { border-color: #fecaca; }
.hh-danger-zone h3 { color: var(--hh-red) !important; }
.hh-timeline-scroll { max-height: 340px; overflow: auto; }
.hh-timeline li.is-note { border-left-color: var(--hh-accent); background: var(--hh-soft); border-radius: 0 8px 8px 0; }
.hh-people li > div { min-width: 0; }
.hh-people li a { font-weight: 600; }
.hh-card > .hh-quick:first-child { margin-top: 0; }
.hh-btn-sm .hh-icon { width: 14px; height: 14px; }

/* Full-screen portal template */
body.hh-app { margin: 0; background: var(--hh-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--hh-text); -webkit-font-smoothing: antialiased; }
body.hh-app * { box-sizing: border-box; }
body.hh-app h1, body.hh-app h2, body.hh-app h3 { font-family: inherit; line-height: 1.25; }
body.hh-app :where(a) { color: var(--hh-accent); }
body.hh-app .hh-btn, body.hh-app .hh-sidebar nav a, body.hh-app .hh-filter a, body.hh-app .hh-table a, body.hh-app .hh-list a, body.hh-app .hh-stat { text-decoration: none; }
body.hh-app.admin-bar .hh-sidebar { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) { body.hh-app.admin-bar .hh-sidebar { top: 0; } }
body.hh-app .hh-auth-card { margin-top: 12vh; }
.hh-request.is-compact { grid-template-columns: 1fr; gap: .6rem; }
.hh-request.is-compact .hh-request-actions { display: flex; gap: .4rem; }
.hh-request.is-compact .hh-request-actions > * { width: auto; }
.hh-portal-platform .hh-grid-2 { align-items: start; }
