/* PeopleLens / editorial operations UI
 * Derived from a project-specific Taste Skill design audit; native CSS, no runtime dependency.
 * Design system: deep pine, mineral neutrals, restrained jade accent.
 * Intent: HR analysts and Moodle administrators, dense but calm, accessible, mobile-friendly.
 */
:root {
  --bg: #f5f5f1;
  --ink: #20342f;
  --muted: #687a74;
  --line: #e2e7e0;
  --blue: #236c58;
  --mint: #236c58;
  --white: #ffffff;
  --sidebar: #162a25;
  --shadow: 0 2px 15px rgba(24, 52, 43, .022);
  --surface: #ffffff;
  --surface-soft: #f9faf7;
  --brand-deep: #173f34;
  --brand-accent: #236c58;
  --brand-border: #d9e4dd;
  --ring: rgba(35, 108, 88, .25);
}
html { font-family: Aptos, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif; scroll-behavior: smooth; }
body { color: var(--ink); background: var(--bg); font-size: 13.5px; line-height: 1.56; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:active:not(:disabled) { transform: translateY(1px); }
:where(button, input, select, textarea, a):focus-visible {
  outline: 3px solid var(--ring) !important;
  outline-offset: 3px;
}
::selection { background: #c5e4d4; color: #15382c; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.04em; text-wrap: balance; }
p { text-wrap: pretty; }
small, .metric b, td:first-child { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .115em; color: #47796c; }
.muted { color: var(--muted); }
.brand-mark {
  background: #e4efe7; color: #164c3d; border: 1px solid #c1d8c9;
  border-radius: 9px; width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  box-shadow: none; letter-spacing: -.065em;
}
.btn { border-radius: 7px; min-height: 39px; padding: 10px 15px; font-size: 12px; letter-spacing: .005em; font-weight: 690; }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #235b47; box-shadow: 0 4px 12px rgba(22, 66, 51, .10); }
.btn-outline { border-color: #cddbd2; background: #fff; color: #245748; }
.btn-outline:hover:not(:disabled) { background: #f3f8f4; border-color: #a7c3b2; }
.btn:disabled, button:disabled { opacity: .5; }
.chip { border: 1px solid #d1e2d6; background: #eef5ef; color: #2e6554; font-size: 11px; font-weight: 650; border-radius: 6px; }
.avatar { border-radius: 9px; width: 33px; height: 33px; background: #e3ece4; color: #346853; font-size: 10px; font-weight: 800; }
/* Navigation is a permanent utility panel, not a promotional sidebar. */
.app-layout { min-height: 100dvh; }
.sidebar {
  background: var(--sidebar); width: 252px; flex: 0 0 252px;
  border-right: 1px solid #0e251c; min-height: 100dvh; padding: 24px 16px 17px;
}
.logo { padding: 0 8px 32px; gap: 12px; align-items: center; }
.logo .brand-mark { color: #d9ebe0; background: #285343; border-color: #416657; }
.logo strong { font-size: 17px; font-weight: 750; color: #f3f7f4; letter-spacing: -.055em; }
.logo small { color: #98afa3; font-size: 10.5px; letter-spacing: .015em; }
.side-group-title { color: #94a69d; font-size: 9.5px; letter-spacing: .14em; padding: 15px 11px 10px; font-weight: 700; }
.nav-item {
  border-radius: 6px; gap: 8px; padding: 11px 12px; margin-bottom: 4px;
  color: #b2c2ba; font-size: 12px; font-weight: 570;
}
.nav-item:hover { color: #fff; background: #29453a; }
.nav-item.active { color: #edfbf2; background: #315947; box-shadow: inset 3px 0 0 #a6d5b9; font-weight: 700; }
.nav-item .nav-icon { font-size: 10px; width: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .045em; opacity: .70; }
.sidebar-bottom { margin-top: auto; padding: 14px 7px; }
.readonly { border-color: #3a5749; background: #20382e; border-radius: 7px; color: #c7dfcc; font-size: 10px; }
.status-dot { background: #8bcaa1; width: 6px; height: 6px; }
.logout { margin-top: 20px; font-size: 12px; color: #c0d4c7; }
.logout:hover { color: #fff; }
.sidebar-version { color: #84998b; font-size: 10px; }
/* Upper navigation becomes a quiet ledger-style masthead. */
.topbar {
  height: 76px; background: #fbfcf9; border-bottom: 1px solid #e3e9e2;
  padding: 0 clamp(22px, 3vw, 52px);
}
.breadcrumb { color: #718379; font-size: 10px; letter-spacing: .1em; }
.breadcrumb b { color: #2d5244; font-weight: 740; }
.breadcrumb span { color: #bbc9be; }
.page-body { max-width: 1440px; padding: 34px clamp(22px, 3vw, 52px) 36px; }
.hero {
  border-radius: 9px; border: 1px solid #dce7dc; padding: 30px 34px 35px;
  background: #edf3ec; min-height: 188px; overflow: hidden; gap: 24px;
  box-shadow: none;
}
.hero:before {
  content: ""; position: absolute; right: 21%; top: -95px; width: 280px; height: 280px;
  border: 1px solid rgba(50, 101, 77, .12); border-radius: 0;
  transform: rotate(23deg); pointer-events: none;
}
.hero:after { width: 170px; height: 170px; right: -65px; bottom: -108px; border: 1px solid #b7cbbb; border-radius: 0; transform: rotate(23deg); }
.hero h1 { max-width: 780px; font-size: clamp(25px, 2.45vw, 37px); line-height: 1.08; letter-spacing: -.052em; font-weight: 760; margin-bottom: 12px; }
.hero h1 em { color: #215b47; font-style: normal; }
.hero p:not(.eyebrow) { max-width: 630px; font-size: 12.5px; line-height: 1.65; color: #5b7265; }
.hero .eyebrow { color: #447662; margin-bottom: 16px; }
.hero-right {
  z-index: 1; width: 220px; min-width: 220px; margin-left: auto;
  border-left: 1px solid #b8cdba; border-radius: 0; box-shadow: none;
  background: transparent; padding: 7px 0 7px 22px; align-self: center;
}
.hero-right strong { font-size: 19px; letter-spacing: -.03em; font-weight: 740; color: #1c483b; line-height: 1.18; }
.hero-right small { font-size: 11px; line-height: 1.55; color: #5b7565; }
.hero-label { font-size: 9px; color: #577566; letter-spacing: .13em; }
.notice {
  margin: 20px 0; border-radius: 7px; padding: 13px 15px;
  background: #fbfcf8; color: #476556; border: 1px solid #dbe7db;
  font-size: 11.5px; box-shadow: none;
}
.notice-symbol { border-radius: 5px; background: #e6f1e7; color: #2b6751; }
.notice.success { background: #edf7ef; border-color: #c9e0cf; color: #2c6a4d; }
.notice.error { background: #fcf0ed; border-color: #edcfca; color: #a34a42; }
/* Deliberate card hierarchy. Selection is a working surface, metrics are simple counters. */
.selection-card, .form-card, .upload-card, .table-surface { border: 1px solid #e0e7df; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.selection-card { padding: 25px 26px; margin-top: 21px; }
.selection-inner { margin-top: 22px; border-radius: 7px; border-color: #e0e7df; padding: 15px; background: #fbfcfa; }
.section-head h2 { font-size: 20px; font-weight: 740; letter-spacing: -.045em; }
.section-head .muted { font-size: 12px; max-width: 68ch; line-height: 1.55; }
.section-top { margin-top: 36px; margin-bottom: 18px; }
.cohort-search input, .toolbar input, .toolbar select, .field input, .evidence-area input, .evidence-area select {
  border: 1px solid #d6e1d8; border-radius: 6px; background: #fff;
  color: #253f32; padding: 10px 12px; font-size: 12px;
}
.cohort-search input::placeholder, .toolbar input::placeholder, .field input::placeholder { color: #92a297; }
.cohort-search input:focus, .toolbar input:focus, .field input:focus { border-color: #6caa8e; }
.cohort-pill { padding: 9px 10px; background: #fff; border-color: #e0e7df; border-radius: 5px; color: #344d40; }
.cohort-pill:hover { border-color: #94bba2; background: #fafdf9; }
.cohort-pill:has(input:checked) { border-color: #84b095; background: #e8f3e8; }
.cohort-pill input, .confirmation input, .activity-choice input { accent-color: #236c58; }
.selection-foot { border-top-color: #e1e8e1; }
.metric-grid { gap: 13px; }
.metric {
  border: 0; border-top: 3px solid #d1e1d4; border-radius: 5px; box-shadow: none;
  background: #ffffff; padding: 19px 21px 20px;
}
.metric:nth-child(2) { border-top-color: #b9d3c7; }
.metric:nth-child(3) { border-top-color: #9ec3b0; }
.metric:nth-child(4) { border-top-color: #7dab96; }
.metric b { font-size: 32px; letter-spacing: -.06em; color: #243f32; font-weight: 760; }
.metric span { color: #6d8273; font-size: 11px; font-weight: 660; }
.metric small { color: #8b9c91; }
.metric .metric-symbol { color: #46785f; background: #f1f7f1; border-radius: 5px; }
.two-col { gap: 14px; }
.feature-card {
  border: 1px solid #e0e7df; border-radius: 7px; background: #fbfcf9;
  box-shadow: none; padding: 24px 26px 27px; display: flex; flex-direction: column;
}
.feature-number { color: #507764; font-size: 10px; font-weight: 720; }
.feature-card h3 { font-size: 17px; letter-spacing: -.035em; font-weight: 730; }
.feature-card p { font-size: 12px; line-height: 1.65; color: #698174; }
.text-link { color: #20654f; font-size: 12px; margin-top: auto; text-align: left; align-self: flex-start; padding: 5px 0; }
.text-link:hover { text-decoration: underline; }
.table-surface { box-shadow: none; }
th { background: #f4f7f2; color: #587064; font-weight: 720; font-size: 10px; letter-spacing: .04em; padding: 12px 16px; }
td { color: #3d5547; border-top-color: #eaf0e9; padding: 13px 16px; font-size: 12px; }
tr:hover td { background: #fafcf9; }
td strong { color: #244634; }
.email { color: #778a7d; }
.pill { border-radius: 4px; padding: 4px 8px; font-size: 10px; }
.pill-green { background: #e8f4e9; color: #226e4a; }
.pill-amber { background: #fff6e4; color: #916c2b; }
.pill-red { background: #fbece9; color: #b04d49; }
.pill-blue { background: #eaf2ec; color: #356a51; }
.pill-gray { background: #f1f3f0; color: #758277; }
.pagination { border-top-color: #e0e8df; }
.pagination button { border-radius: 5px; color: #3e654e; }
.upload-card { padding: 21px 22px; gap: 17px; }
.upload-card .upload-icon { background: #eaf3ed; color: #356f56; border-radius: 7px; }
.form-card { padding: 24px; column-gap: 24px; row-gap: 18px; }
.field label { font-size: 11px; color: #355240; }
.evidence-area { background: #f9fbf8; border-color: #e0e9df; border-radius: 7px; }
.activity-note { background: #fff8ea; border-left-color: #bc985d; color: #6b5d43; border-radius: 4px; }
.helper { color: #7a8d7f; font-size: 11px; }
.footer { font-size: 10.5px; color: #8c9c90; border-top-color: #e0e7df; text-align: left; }
/* Keep provisioning inputs and wide CSV previews inside the working surface. */
#view-accounts .form-card { grid-template-columns: minmax(0, 1fr); }
#view-accounts code { overflow-wrap: anywhere; }
#view-accounts input { max-width: 100%; min-width: 0; }
#view-accounts .bulk-action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
#accounts-results { min-width: 0; max-width: 100%; overflow-x: auto; }
/* Login: editorial split, no synthetic orbits or AI-gradient wallpaper. */
.login-wrap { min-height: 100dvh; background: #f8faf6; }
.login-panel { width: min(570px, 50%); padding: clamp(34px, 5.5vw, 90px); background: #fafbf8; }
.login-panel .brand-mark { margin-bottom: 38px; width: 48px; height: 48px; font-size: 15px; }
.login-panel h1 { font-size: clamp(29px, 3.25vw, 45px); font-weight: 780; line-height: 1.09; letter-spacing: -.052em; max-width: 430px; }
.login-panel>.muted { color: #6b8174; font-size: 13px; max-width: 420px; line-height: 1.68; }
.login-panel .eyebrow { color: #497e65; }
.login-panel form { margin-top: 34px; gap: 9px; }
.login-panel form label { font-size: 11px; color: #3d5b49; }
.login-panel form input { background: #fff; border: 1px solid #d8e4da; border-radius: 6px; padding: 13px 14px; color: #203b2d; }
.login-panel form input:focus { border-color: #649477; }
.login-panel .btn-primary { min-height: 45px; margin-top: 8px; }
.login-foot { color: #839588; border-top: 1px solid #e0e9df; padding-top: 19px; margin-top: 46px; }
.login-foot span { border-radius: 4px; background: #eaf3e9; color: #327657; border-color: #c3dfca; }
.login-visual {
  background: #183a2d; position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(202, 232, 207, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 232, 207, .05) 1px, transparent 1px);
  background-size: 54px 54px;
}
.login-visual:before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(24, 58, 45, .65), transparent 56%);
  pointer-events: none;
}
.login-visual:after {
  content: ""; position: absolute; width: min(45vw, 440px); height: min(45vw, 440px);
  border: 1px solid rgba(169, 216, 179, .32); right: -12%; bottom: -21%; transform: rotate(31deg);
  pointer-events: none;
}
.orbit { display: none; }
.visual-content { position: relative; z-index: 2; max-width: 480px; }
.visual-content h2 { font-size: clamp(41px, 5vw, 72px); line-height: 1.04; font-weight: 730; letter-spacing: -.06em; color: #f2faf2; }
.visual-content p { color: #bfd3c3; font-size: 13px; line-height: 1.7; }
.dot { background: #99d0aa; width: 7px; height: 7px; }
/* Natural-responsive data UI. */
@media (max-width: 1150px) {
  .hero-right { display: none; }
  .sidebar { width: 224px; flex-basis: 224px; }
  .page-body { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .app-layout { display: block; }
  .sidebar { width: 100%; height: auto; min-height: 0; position: static; padding: 12px 14px 8px; }
  .logo { padding: 4px 5px 12px; }
  .sidebar-bottom { display: block; padding: 0 5px 4px; }
  .sidebar-bottom .readonly, .sidebar-version { display: none; }
  .logout { margin-top: 6px; min-height: 44px; }
  .sidebar nav { padding: 2px 0 8px; gap: 5px; }
  .nav-item { font-size: 11px; border-radius: 6px; padding: 9px 12px; }
  .nav-item.active { box-shadow: inset 0 -2px 0 #b1dbba; }
  .topbar { padding: 0 18px; height: 59px; }
  .page-body { padding: 20px 16px 29px; }
  .hero { padding: 24px 23px 26px; min-height: unset; }
  .hero h1 { font-size: clamp(26px, 5vw, 34px); }
  .selection-card { padding: 21px 17px; }
  .section-head h2 { font-size: 19px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 17px; }
  .metric b { font-size: 28px; }
  .form-card { padding: 19px; grid-template-columns: 1fr; }
  .login-panel { width: 100%; padding: 38px clamp(26px,6vw,52px); }
  .login-visual { display: none; }
  .footer { line-height: 1.6; }
}
@media (max-width: 420px) {
  .top-actions .avatar { display: none; }
  .hero h1 { font-size: 28px; }
  .metric-grid { gap: 9px; }
  .metric { padding: 13px; }
  .metric b { font-size: 25px; }
  .section-head .btn { width: 100%; }
  .toolbar input { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* QA-09 — operational readability improvement for light surfaces. */
:root { --muted: #40584b; }
.metric span, .metric small, .feature-card p, .helper, .email, .footer, .login-foot,
.login-panel > .muted, .hero p:not(.eyebrow), .section-head .muted { color: #40584b; }
.metric span, .metric small { font-size: 12px; }
.footer, .login-foot { font-size: 12px; }
.cohort-search input::placeholder, .toolbar input::placeholder, .field input::placeholder { color: #53695b; }
.pill-gray { color: #3a5745; }

/* QA-10 — focused app-screen polish: remove generic hero embellishment and KPI ornaments.
   The primary content now begins above the fold and the login panel reads as an HR workspace. */
.hero { min-height: 0; padding: 20px 24px; gap: 0; background: #f0f4ee; border: 1px solid #dbe5db; }
.hero::before, .hero::after,
.login-visual::before, .login-visual::after { content: none !important; display: none; }
.hero h1 { font-size: clamp(24px, 2.15vw, 31px); line-height: 1.18; max-width: 850px; margin-bottom: 8px; }
.hero p:not(.eyebrow) { font-size: 13px; max-width: 850px; color: #40584b; }
.hero .eyebrow { margin-bottom: 8px; }
.selection-card { margin-top: 12px; padding: 20px 22px; }
.selection-inner { margin-top: 14px; }
.notice { margin: 12px 0; font-size: 12px; }
.section-top { margin-top: 23px; }
.metric { border: 1px solid #dee7df; border-top: 1px solid #dee7df; border-radius: 7px; padding: 17px 18px; }
.metric:nth-child(n) { border-top-color: #dee7df; }
.metric .metric-symbol { display: none; }
.metric span, .metric small { color: #40584b; font-size: 12px; }
.eyebrow, .side-group-title, .hero-label, .feature-number { font-size: 12px; letter-spacing: .045em; }
.sidebar .side-group-title { color: #c6dacf; }
.login-visual { background: #183a2d; background-image: none; }
.login-visual .visual-content { width: min(100%, 530px); }
.login-visual .visual-content h2 { color: #f4f8f3; max-width: 500px; font-size: clamp(37px, 4vw, 56px); line-height: 1.08; margin: 18px 0; }
.login-rail-label { color: #c2dec8; font-size: 12px; font-weight: 720; letter-spacing: .08em; }
.login-workflow { border-top: 1px solid #678577; display: grid; gap: 12px; padding-top: 24px; margin-top: 40px; }
.login-workflow span { color: #e0ede1; font-size: 14px; }
.login-workflow b { color: #d6e6d8; font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 18px; }
.login-panel h1 { max-width: 520px; font-size: clamp(33px, 3vw, 43px); line-height: 1.15; }
.login-panel .eyebrow { font-size: 12px; color: #2f654f; }
.login-panel form label { font-size: 13px; }
.login-foot { font-size: 12px; color: #40584b; }
.login-foot span { font-size: 11px; color: #214f38; }
.footer, .helper, .field label { font-size: 12px; color: #40584b; }
@media (max-width: 760px) {
  .hero { padding: 18px 20px; }
  .hero h1 { font-size: clamp(23px, 5vw, 29px); }
  .selection-card { padding: 16px; }
}

/* Accessibility: explicit nav backgrounds so layered foreground/background
   contrast can be verified reliably, plus legible operational metadata. */
.sidebar .nav-item { background-color: #162a25; color: #d6e5da; }
.sidebar .nav-item:hover { background-color: #29453a; color: #fff; }
.sidebar .nav-item.active { background-color: #315947; color: #fff; }
.sidebar .nav-item .nav-icon {
  opacity: 1; background-color: #162a25; color: #e8f2ea;
  font-size: 12px; font-weight: 700;
}
.sidebar .nav-item.active .nav-icon { background-color: #315947; color: #fff; }
.sidebar .nav-item:hover .nav-icon { background-color: #29453a; color: #fff; }
.breadcrumb { color: #3c5649; font-size: 12px; }
.pill-amber { color: #72501b; }
.pill-gray { color: #314a39; }

/* Keyboard-accessible horizontal report tables and HR reconciliation note. */
#hr-unmatched { color: #40584b; font-size: 12px; }
.table-scroll:focus-visible { outline: 3px solid #236c58; outline-offset: -3px; }

/* Taste Skill app-screen gate: no button glow/shadows, readable table and utility text. */
#app button, #app .nav-item, #app .nav-item.active {
  box-shadow: none !important; text-shadow: none !important; filter: none !important;
}
#app :is(small, .readonly, .sidebar-version, .side-group-title, .nav-icon,
  .breadcrumb, .eyebrow, th, td, .pill, .chip, .avatar, .feature-number,
  .note-text, .helper, .pagination, .empty, .cohort-pill, .selection-foot) {
  font-size: 12px;
}
#app .breadcrumb { letter-spacing: .02em; font-size: 13px; }
#app .sidebar .nav-icon { font-size: 12px; }
:root { --bg: #f3f6f4; }
@media (max-width: 760px) {
  #app .sidebar { padding-inline: 20px; }
}
