/* Shared visual polish: preserves the existing brand palette and typography. */
.public-profile-page{max-width:980px;margin:0 auto;padding:34px 5% 70px}.public-profile-brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;color:var(--muted);font:600 11px var(--mono);text-transform:uppercase;letter-spacing:.08em}.public-profile-brand strong{font:800 18px var(--sans);letter-spacing:0;color:var(--text);text-transform:none}.public-profile-brand strong span{color:var(--orange)}.public-profile-page .talent-profile-hero{margin-bottom:28px}.public-profile-page .profile-section{margin-top:16px}
:root {
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 650ms;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
button, input, textarea, select, a { transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) ease; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.topbar, .guest-header { position: relative; z-index: 10; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 257px; display: flex; flex-direction: column; padding: 0 17px 18px; background: #202022; border-right: 1px solid #3a3d44; }
.sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; min-height: 96px; padding: 15px 0 0; border: 0; background: none; color: #a8cdf8; text-align: left; }
.sidebar-brand strong { font: 800 21px/1.05 var(--sans); }.sidebar-brand strong span { color: #a8cdf8; }.sidebar-brand small { margin-top: 7px; color: #b6bac4; font: 500 10px var(--mono); letter-spacing: .08em; }
.sidebar-nav { display: grid; gap: 4px; }.sidebar-nav button { display: flex; align-items: center; gap: 17px; min-height: 40px; padding: 0 17px; border: 0; border-radius: 4px; background: transparent; color: #c0c2ca; text-align: left; font: 500 13px var(--mono); }.sidebar-nav button b { width: 21px; color: #c7ceda; font: 20px/1 var(--sans); text-align: center; }.sidebar-nav button:hover { color: #fff; background: #2c2d30; }.sidebar-nav button.active { color: #06131b; background: #079ff2; font-weight: 700; }.sidebar-nav button.active b { color: #06131b; }.sidebar-secondary { margin-top: auto; padding-top: 25px; border-top: 1px solid #4b4d54; }.sidebar-publish { min-height: 39px; margin-top: 22px; border: 0; border-radius: 3px; background: #079ff2; color: #fff; font: 700 12px var(--mono); letter-spacing: .04em; }.topbar { margin-left: 257px; }
.topbar { min-height: 70px; padding: 0 28px; gap: 26px; background: #111214; border-bottom-color: #3a3d44; backdrop-filter: blur(14px); }
.topbar-view-title { color: #b8bbc5; font: 500 14px/1 var(--mono); letter-spacing: .12em; white-space: nowrap; }
.topbar-search { width: min(256px, 22vw); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #424852; border-radius: 4px; background: #090a0c; color: #b8c0cc; }
.topbar-search span { font: 28px/1 var(--sans); transform: rotate(-20deg); }
.topbar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 14px var(--mono); }
.topbar-search input::placeholder { color: #727987; }
.topbar .nav { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(17,18,20,.78), rgba(13,14,17,.88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.16); }
.topbar .nav button { position: relative; padding: 12px 16px; border-radius: 12px; color: #b9c0cb; font: 600 13px var(--sans); letter-spacing: .02em; background: transparent; border: 0; min-height: 44px; overflow: hidden; }
.topbar .nav button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%); transform: translateX(-120%); transition: transform 620ms ease; }
.topbar .nav button:hover::before, .topbar .nav button.active::before { transform: translateX(120%); }
.topbar .nav button.active { background: linear-gradient(135deg, rgba(10,162,245,.24), rgba(10,162,245,.08)); color: #eaf7ff; box-shadow: inset 0 0 0 1px rgba(76,186,255,.22), 0 10px 20px rgba(10,162,245,.18), 0 0 18px rgba(10,162,245,.12); }
.topbar .nav button.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, rgba(94,212,255,.8), rgba(255,125,26,.8)); box-shadow: 0 0 12px rgba(94,212,255,.7); }
.topbar .nav button:hover { color: #edf6ff; background: rgba(255,255,255,.025); }
.topbar .nav button::after { display: none; }
.topbar .actions { margin-left: auto; gap: 14px; }
.topbar .dashboard-link { display: none; }
.topbar .primary { min-height: 42px; padding: 0 22px; border-radius: 4px; color: #fff; background: #079cf0; font: 700 14px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.topbar .icon-btn { color: #c4c9d3; font-size: 20px; }
.topbar .avatar { width: 32px; height: 32px; border: 1px solid #56616d; }
#app > main { margin-left: 257px; }
#app > footer { margin-left: 257px; }
.brand { transition: transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) ease; }
.brand:hover { transform: translateY(-1px); opacity: .9; }
.nav button, .guest-nav button { position: relative; }
.nav button::after, .guest-nav button::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 15px; height: 2px; background: var(--blue); transition: right var(--motion-base) var(--ease-out); }
.nav button:hover::after, .nav button.active::after, .guest-nav button:hover::after { right: 0; }
.nav button.active { border-bottom-color: transparent; }

.primary, .secondary, .dashboard-link { position: relative; overflow: hidden; }
.primary::after, .secondary::after, .dashboard-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.18) 48%, transparent 72%); transform: translateX(-120%); transition: transform 600ms ease; pointer-events: none; }
.primary:hover::after, .secondary:hover::after, .dashboard-link:hover::after { transform: translateX(120%); }
.primary:hover, .secondary:hover, .dashboard-link:hover { transform: translateY(-2px); }
.primary:active, .secondary:active, .dashboard-link:active { transform: translateY(0); }

.container { animation: page-rise var(--motion-slow) var(--ease-out) both; }
.hero { position: relative; overflow: hidden; animation: content-rise var(--motion-slow) var(--ease-out) both; border: 1px solid rgba(109,154,185,.22); box-shadow: 0 24px 52px rgba(10,29,41,.16), inset 0 1px 0 rgba(255,255,255,.06); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(10,162,245,.24), transparent 32%), radial-gradient(circle at bottom right, rgba(255,125,26,.18), transparent 28%); pointer-events: none; }
.hero h1 { position: relative; z-index: 1; letter-spacing: -.025em; text-shadow: 0 0 18px rgba(10,162,245,.18); }
.hero p { position: relative; z-index: 1; }
.hero .eyebrow { position: relative; z-index: 1; }
.hero .primary, .hero .secondary { position: relative; z-index: 1; }
.hero .primary { min-height: 48px; padding: 0 22px; border-radius: 14px; box-shadow: 0 18px 30px rgba(10,162,245,.2), 0 0 22px rgba(10,162,245,.12); }
.hero .secondary { border-radius: 14px; box-shadow: 0 16px 26px rgba(0,0,0,.12); }
.panel, .job-card, .profile-card, .talent-card, .resume-preview, .stat { position: relative; transition: transform var(--motion-base) var(--ease-out), border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, background-color var(--motion-base) ease; }
.panel::before, .job-card::before, .profile-card::before, .talent-card::before, .resume-preview::before, .stat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(10,162,245,.08), transparent 35%, rgba(255,125,26,.06) 100%); opacity: 0; transition: opacity var(--motion-base) ease; pointer-events: none; }
.panel:hover::before, .job-card:hover::before, .profile-card:hover::before, .talent-card:hover::before, .resume-preview:hover::before, .stat:hover::before { opacity: 1; }
.panel:hover, .job-card:hover, .profile-card:hover, .talent-card:hover, .resume-preview:hover, .stat:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(10,20,30,.18), 0 0 0 1px rgba(96,164,210,.1); }
.job-card, .talent-card { animation: content-rise var(--motion-slow) var(--ease-out) both; }
.job-card:nth-child(2), .talent-card:nth-child(2) { animation-delay: 70ms; }
.job-card:nth-child(3), .talent-card:nth-child(3) { animation-delay: 140ms; }
.job-card:nth-child(4), .talent-card:nth-child(4) { animation-delay: 210ms; }

.tag { transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }
.tag:hover { transform: translateY(-1px); }
.talent-profile-page { max-width: 900px; margin: 0 auto; padding: 40px 5% 70px; }
.talent-profile-hero, .profile-section { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.talent-profile-hero { display: grid; grid-template-columns: 118px 1fr auto; gap: 22px; align-items: center; padding: 28px 22px; }
.talent-profile-avatar { width: 116px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 10px; background: linear-gradient(145deg, #12364a, #182128); color: #b9dcff; font: 700 32px var(--mono); }
.profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.talent-profile-heading h1 { margin: 0 0 7px; font-size: 32px; line-height: 1.1; }
.talent-profile-heading p { margin: 0 0 12px; color: #9ccfff; font-size: 16px; }
.profile-location, .profile-status { display: inline-block; margin: 0 8px 0 0; padding: 5px 8px; border: 1px solid var(--blue); color: #a9d4ff; font: 11px var(--mono); text-transform: uppercase; }
.profile-status { border-color: var(--orange); color: var(--orange); }
.talent-profile-actions { display: flex; gap: 9px; }
.talent-profile-actions button { min-width: 110px; }
.profile-section { margin-top: 20px; padding: 22px; }
.profile-section h2 { margin: 0 0 22px; font-size: 22px; }
.profile-section h2 span { color: var(--blue); font-family: var(--mono); }
.profile-copy, .profile-empty, .profile-resume-details p { margin: 0; color: #c9dced; line-height: 1.8; white-space: pre-line; }
.profile-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-skill { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: #101215; color: var(--text); }
.profile-skill strong { font: 13px var(--mono); }
.profile-contact { display: grid; gap: 12px; }
.profile-contact p { margin: 0; color: #c9dced; }
.profile-contact b { display: inline-block; width: 28px; color: var(--orange); }
.profile-section-heading { display: flex; justify-content: space-between; align-items: center; }
.profile-section-heading h2 { margin-bottom: 0; }
.profile-review-count { color: var(--muted); font: 12px var(--mono); }
.profile-reviews .review-item { color: #eef6fb; }
.profile-reviews .review-item strong { color: #eef6fb; }
.profile-reviews .review-item p { color: #c9dced; }
.profile-reviews .review-item span { color: var(--orange); }
.profile-resume-details div + div { margin-top: 18px; }
.profile-resume-details strong { color: var(--orange); font: 12px var(--mono); text-transform: uppercase; }
.input { transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.session-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); color: var(--text); }
.session-loading-mark { font: 700 24px var(--mono); letter-spacing: .02em; }
.session-loading-mark b { color: var(--orange); }
.session-loading-line { width: 86px; height: 3px; overflow: hidden; background: var(--line); position: relative; }
.session-loading-line::after { content: ''; position: absolute; inset: 0 auto 0 -100%; width: 100%; background: var(--blue); animation: session-loading 900ms ease-in-out infinite; }
@keyframes session-loading { to { transform: translateX(200%); } }

.guest-hero { isolation: isolate; }
.guest-doodles { pointer-events: none !important; }
.guest-hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: 16%; top: -180px; border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent); border-radius: 50%; opacity: .5; animation: orbit-glow 9s ease-in-out infinite; pointer-events: none; }
.guest-copy, .guest-visual { animation: content-rise var(--motion-slow) var(--ease-out) both; }
.guest-visual { animation-delay: 100ms; transition: transform var(--motion-slow) var(--ease-out), box-shadow var(--motion-slow) ease; }
.guest-visual:hover { transform: translateY(-7px) rotate(.4deg); box-shadow: 0 28px 55px #0009; }
.category-grid button { position: relative; overflow: hidden; transition: transform var(--motion-base) var(--ease-out), border-color var(--motion-base) ease, box-shadow var(--motion-base) ease; }
.category-grid button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,162,245,.12), transparent 45%, rgba(255,125,26,.08) 100%); opacity: 0; transition: opacity var(--motion-base) ease; }
.category-grid button:hover::before { opacity: 1; }
.category-grid button:hover { transform: translateY(-7px); box-shadow: 0 22px 38px rgba(0,0,0,.18), 0 0 0 1px rgba(92,171,222,.12); }

.auth { animation: page-rise var(--motion-slow) var(--ease-out) both; }
.auth-box { animation: auth-pop 700ms var(--ease-out) both; }
.auth-art { animation: auth-art-in 900ms var(--ease-out) both; }
.auth-box .primary { width: 100%; margin-top: 6px; }
.resend-code { display: block; margin: 8px auto 2px; padding: 4px 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; }
.resend-code:disabled { opacity: .65; cursor: wait; }

.auth { min-height: 100svh; min-width: 0; }
.auth-art, .auth-form { min-width: 0; }
.auth-form { min-height: 100svh; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; overflow-x: hidden; padding: clamp(28px, 6vh, 72px) clamp(22px, 7vw, 92px); }
.auth-box { width: min(100%, 500px); margin: 0 auto; }
.auth-box .form-group { min-width: 0; }
.auth-box .input { width: 100%; max-width: 100%; min-width: 0; }
.auth-box textarea.input { resize: vertical; }
.auth-register .auth-form { height: 100svh; min-height: 0; }

@media (max-width: 800px) {
  .auth-form { min-height: calc(100svh - 190px); padding: 28px 14px 44px; align-items: flex-start; }
  .auth-box { width: min(100%, 500px); padding: 22px 16px; }
  .auth-register .auth-form { height: calc(100svh - 190px); padding: 26px 14px 44px; }
  .auth-box h2 { font-size: 26px; }
  .role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.welcome-transition { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: var(--bg); color: var(--text); animation: welcome-in 520ms var(--ease-out) both; }
.welcome-transition::before, .welcome-transition::after { content: ''; position: absolute; border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent); border-radius: 50%; pointer-events: none; }
.welcome-transition::before { width: min(72vw, 760px); aspect-ratio: 1; animation: welcome-ring 1.2s var(--ease-out) both; }
.welcome-transition::after { width: min(46vw, 480px); aspect-ratio: 1; border-color: color-mix(in srgb, var(--orange) 25%, transparent); animation: welcome-ring 1s 80ms var(--ease-out) both reverse; }
.welcome-mark { position: relative; z-index: 1; width: min(720px, 86vw); text-align: center; animation: welcome-mark-in 520ms 60ms var(--ease-out) both; }
.welcome-mark .eyebrow { display: block; margin-bottom: 18px; }
.welcome-mark h1 { margin: 0; font-size: clamp(30px, 5vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
.welcome-mark h1 strong { color: var(--blue); font-weight: 800; }
.welcome-mark i { display: block; width: 56px; height: 3px; margin: 28px auto 0; background: var(--orange); transform-origin: center; animation: welcome-line 600ms 220ms var(--ease-out) both; }
.welcome-transition.is-leaving { animation: welcome-out 420ms var(--ease-out) both; pointer-events: none; }
.logout-transition .welcome-mark { animation-delay: 80ms; }
.logout-transition .welcome-mark h1 { color: var(--orange); }

.modal-wrap { animation: fade-in 180ms ease both; backdrop-filter: blur(5px); }
.modal { animation: modal-rise 380ms var(--ease-out) both; }
.close:hover { transform: rotate(90deg); }

@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes auth-art-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes orbit-glow { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .35; } 50% { transform: translate(-22px, 18px) scale(1.06); opacity: .6; } }
@keyframes welcome-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes welcome-mark-in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes welcome-ring { from { opacity: 0; transform: scale(.55) rotate(-18deg); } to { opacity: .75; transform: scale(1) rotate(0); } }
@keyframes welcome-line { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

@media (max-width: 800px) {
  .sidebar { width: 78px; padding: 0 8px 12px; }
  .sidebar-brand { min-height: 84px; padding-top: 12px; }
  .sidebar-brand strong { font-size: 13px; line-height: 1.15; }
  .sidebar-brand small, .sidebar-nav button span, .sidebar-publish { display: none; }
  .sidebar-nav button { justify-content: center; min-height: 42px; padding: 0; }
  .sidebar-nav button b { font-size: 19px; }
  .sidebar-secondary { padding-top: 18px; }
  .topbar { margin-left: 78px; padding: 0 14px; backdrop-filter: none; }
  #app > main, #app > footer { margin-left: 78px; }
  .topbar-view-title, .topbar-search { display: none; }
  .talent-profile-page { padding-top: 24px; }
  .talent-profile-hero { grid-template-columns: 72px 1fr; gap: 14px; padding: 18px; }
  .talent-profile-avatar { width: 72px; font-size: 22px; }
  .talent-profile-heading h1 { font-size: 24px; }
  .talent-profile-actions { grid-column: 1 / -1; }
  .talent-profile-actions button { flex: 1; }
  .profile-skills { grid-template-columns: repeat(2, 1fr); }
  .nav button::after, .guest-nav button::after { display: none; }
  .panel:hover, .job-card:hover, .profile-card:hover, .talent-card:hover, .resume-preview:hover, .stat:hover { transform: none; }
  .auth { display: block; min-height: 100svh; }
  .auth-art { min-height: 190px; padding: 34px 22px 20px; }
  .auth-art h1 { margin: 0; }
  .auth-form { min-height: calc(100svh - 190px); padding: 32px 18px 48px; }
  .auth-box { width: min(430px, 100%); padding: 24px 20px; }
  .auth-back { display: block; visibility: visible; min-height: 20px; }
  .welcome-transition { padding: 24px; }
  .welcome-mark { width: min(100%, 430px); }
  .welcome-mark h1 { font-size: clamp(28px, 8vw, 42px); overflow-wrap: anywhere; }
  .guest-hero::before { width: 280px; height: 280px; right: -110px; top: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
}

.modal { max-height: calc(100dvh - 40px); overflow: auto; }
.modal-head { position: sticky; top: -26px; z-index: 2; padding-bottom: 12px; background: var(--panel); }
.close { flex: 0 0 auto; min-width: 32px; min-height: 32px; line-height: 1; padding: 4px; }

@media (hover: hover) {
  .guest-nav button:hover { color: #08a8ff; }
}

@media (hover: none) {
  .guest-nav button:hover { color: #d4d7db; }
}

@media (max-width: 800px) {
  .guest-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 16px;
    gap: 8px 12px;
  }
  .guest-header .brand { width: 105px; height: 58px; }
  .guest-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
  }
  .guest-nav::-webkit-scrollbar { display: none; }
  .guest-nav button { flex: 0 0 auto; font-size: 13px; padding: 5px 0; }
  .guest-actions { grid-column: 2; grid-row: 1; min-width: 0; }
  .guest-actions .icon-btn { display: none; }
  .guest-actions .secondary, .guest-actions .primary { padding: 9px 10px; font-size: 11px; white-space: nowrap; }
  .theme-toggle { top: auto !important; right: 10px !important; bottom: 105px !important; left: auto !important; }
  .language-toggle { top: auto !important; right: 10px !important; bottom: 55px !important; left: auto !important; }
}

.sidebar-account-nav { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid #4b4d54; }
.sidebar-account-action { display: flex; align-items: center; gap: 17px; min-height: 40px; padding: 0 17px; border: 0; border-radius: 4px; background: transparent; color: #c0c2ca; text-align: left; font: 500 13px var(--mono); }
.sidebar-account-action b { width: 21px; color: #c7ceda; font: 20px/1 var(--sans); text-align: center; }
.sidebar-account-action:hover { color: #fff; background: #2c2d30; }
#app:has(.sidebar) > main, #app:has(.sidebar) > footer { margin-left: 257px; }
.guest-page, .auth { margin-left: 0 !important; }
.auth.auth-register { display: grid; grid-template-columns: 1fr 1fr; height: 100svh; min-height: 100svh; overflow: hidden; }
.auth-register .auth-art { position: sticky; top: 0; height: 100svh; }
.auth-register .auth-form { min-height: 0; height: 100svh; overflow-y: auto; padding: 48px 8%; }
.auth-register .auth-box { margin: 0 auto; }

.app-notice { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 12, .62); opacity: 0; transition: opacity 180ms ease; }
.app-notice.is-visible { opacity: 1; }
.app-notice-card { width: min(470px, 100%); display: grid; grid-template-columns: 46px 1fr auto; align-items: start; gap: 15px; padding: 18px 18px 16px 18px; border: 1px solid rgba(76, 167, 211, .9); border-radius: 14px; background: linear-gradient(180deg, rgba(20, 26, 32, .97), rgba(11, 16, 20, .96)); box-shadow: 0 22px 60px rgba(0, 0, 0, .46), 0 0 0 1px rgba(10, 162, 245, .14); transform: translateY(14px) scale(.98); transition: transform 240ms var(--ease-out); }
.admin-page{max-width:1280px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.admin-section{margin-top:18px}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:680px}.admin-table th,.admin-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.admin-table th{font-family:var(--mono);font-size:10px;color:var(--muted);text-transform:uppercase}.admin-table td:last-child{display:flex;gap:8px;flex-wrap:wrap}.admin-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--line)}.admin-row:last-child{border-bottom:0}.admin-row h3{margin:0 0 6px}.admin-row p{margin:0}.admin-row .secondary{white-space:nowrap}.admin-row .reviewed{border-color:var(--green);color:var(--green)}
.admin-user-modal{width:min(820px,100%);max-height:min(88vh,820px);overflow:auto}.admin-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.admin-edit-grid .form-group:has(textarea){grid-column:span 2}.admin-edit-save{width:100%;margin-top:8px}
.admin-page{padding-bottom:70px}.admin-page>.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:34px 38px;border-radius:22px}.admin-page>.hero h1{margin:8px 0 10px;font-size:clamp(34px,4vw,54px);line-height:1.05}.admin-page>.hero p{margin:0;max-width:620px}.admin-page>.hero>.secondary{flex:0 0 auto;min-height:44px;padding:0 20px;border-radius:12px}.admin-stats .stat{min-height:112px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:20px 22px;border-radius:18px}.admin-stats .stat strong{font:800 34px/1 var(--sans)}.admin-stats .stat small{font:600 11px var(--mono);letter-spacing:.1em;text-transform:uppercase}.admin-section{padding:24px 26px;border-radius:20px}.admin-section h2{margin:0 0 18px}.admin-table th{padding-top:0}.admin-table td{vertical-align:middle}.admin-row{padding:18px 0}.admin-row h3{font-size:16px}.admin-row p{color:var(--muted);line-height:1.5}.admin-row .tag{flex:0 0 auto}@media(max-width:800px){.admin-page>.hero{display:block;padding:26px 22px}.admin-page>.hero>.secondary{margin-top:20px}.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-section{padding:20px 16px}}@media(max-width:520px){.admin-stats{grid-template-columns:1fr}.admin-page>.hero h1{font-size:34px}}

.grid > *, .grid-3 > *, .panel, .job-card, .profile-card, .talent-card, .stat { min-width: 0; }
.panel h1, .panel h2, .panel h3, .panel h4, .job-card h1, .job-card h2, .job-card h3, .job-card h4, .profile-card h1, .profile-card h2, .profile-card h3, .profile-card h4, .stat strong, .stat small, .activity, .muted { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }
.panel p, .job-card p, .profile-card p, .talent-card p, .panel strong, .job-card strong, .profile-card strong, .talent-card strong { overflow-wrap: normal; word-break: normal; hyphens: none; }
.topbar-view-title, .topbar .nav button, .sidebar-nav button, button { overflow-wrap: normal; word-break: normal; }
.app-notice.is-visible .app-notice-card { transform: translateY(0) scale(1); }
.app-notice-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #23a8ff, #0d8fe5); color: #06131b; font: 800 22px var(--sans); box-shadow: 0 0 0 5px rgba(10, 162, 245, .12); }
.app-notice-copy strong { display: block; margin: 2px 0 6px; color: #edf7ff; font: 700 17px var(--sans); }
.app-notice-copy p { margin: 0; color: rgba(228, 236, 244, .82); font: 15px/1.55 var(--sans); white-space: pre-line; }
.app-notice-close { width: 32px; height: 32px; border: 1px solid rgba(185, 200, 214, .38); border-radius: 8px; background: rgba(255,255,255,.02); color: rgba(232, 237, 242, .88); font-size: 22px; line-height: 1; cursor: pointer; }
.app-notice-close:hover { border-color: rgba(88, 172, 219, .7); color: #fff; background: rgba(10, 162, 245, .08); }
:root[data-theme='light'] .app-notice-card { border-color: #79b0ca; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,246,249,.98)); box-shadow: 0 24px 70px rgba(38, 67, 81, .2), 0 0 0 1px rgba(8, 127, 189, .08); }
:root[data-theme='light'] .app-notice-copy strong { color: #173344; }
:root[data-theme='light'] .app-notice-copy p { color: rgba(29, 48, 60, .8); }
:root[data-theme='light'] .app-notice-close { border-color: rgba(103, 136, 155, .38); color: rgba(19, 35, 44, .9); }
:root[data-theme='light'] .app-notice { background: rgba(22, 35, 43, .28); }
@media (max-width: 520px) { .app-notice-card { grid-template-columns: 38px 1fr auto; gap: 11px; padding: 17px 16px 15px; } .app-notice-icon { width: 36px; height: 36px; font-size: 19px; } .app-notice-copy p { font-size: 13px; } }
@media (max-width: 800px) {
  .sidebar-account-nav { padding-top: 18px; }
  .sidebar-account-action { justify-content: center; padding: 0; }
  .sidebar-account-action span { display: none; }
  #app:has(.sidebar) > main, #app:has(.sidebar) > footer { margin-left: 78px; }
  .guest-page, .auth { margin-left: 0 !important; }
  .auth.auth-register { display: block; height: 100svh; min-height: 100svh; overflow: hidden; }
  .auth-register .auth-art { position: relative; height: 190px; min-height: 190px; padding: 34px 22px 20px; }
  .auth-register .auth-art h1 { margin: 0; }
  .auth-register .auth-form { height: calc(100svh - 190px); min-height: 0; overflow-y: auto; padding: 32px 18px 48px; }
}

/* The authenticated layout uses the original horizontal navigation. */
.sidebar { display: none !important; }
.topbar { margin-left: 0 !important; }
.topbar-view-title, .topbar-search { display: none !important; }
.topbar .nav { display: flex; }
.topbar .nav { margin-left: 0; gap: 22px; }
.topbar .actions { margin-left: auto; }
#app > main, #app:has(.sidebar) > main { margin-left: auto !important; margin-right: auto !important; }
#app > footer, #app:has(.sidebar) > footer { margin-left: 0 !important; }
@media (max-width: 800px) {
  #app > main, #app:has(.sidebar) > main { margin-left: auto !important; margin-right: auto !important; }
  #app > footer, #app:has(.sidebar) > footer { margin-left: 0 !important; }
  .topbar { margin-left: 0 !important; }
  .container { width: 100%; max-width: 100%; padding-left: 14px; padding-right: 14px; }
  .grid, .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .panel h2, .panel h3 { font-size: clamp(20px, 6vw, 28px); line-height: 1.15; }
}

.theme-toggle:not(.header-control) { position: fixed !important; right: 24px !important; bottom: 24px !important; top: auto !important; left: auto !important; z-index: 1000 !important; }
.language-toggle:not(.header-control) { position: fixed !important; right: 24px !important; bottom: 78px !important; top: auto !important; left: auto !important; z-index: 1000 !important; }
@media (max-width: 800px) {
  .theme-toggle:not(.header-control) { right: 14px !important; bottom: 16px !important; }
  .language-toggle:not(.header-control) { right: 14px !important; bottom: 68px !important; }
}

.auth-form { min-width: 0; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; overflow-x: hidden; overflow-y: auto; padding: clamp(28px, 6vh, 72px) clamp(22px, 7vw, 92px); }
.auth-box { width: min(100%, 500px); margin: 0 auto; }
.auth-box .form-group, .auth-box .input { min-width: 0; max-width: 100%; }
.auth-register .auth-form { height: 100svh; min-height: 0; padding: clamp(28px, 6vh, 72px) clamp(22px, 7vw, 92px); }
@media (max-width: 800px) {
  .auth-form { min-height: calc(100svh - 190px); padding: 26px 14px 44px; }
  .auth-box { padding: 22px 16px; }
  .auth-register .auth-form { height: calc(100svh - 190px); min-height: 0; padding: 26px 14px 44px; }
}
