
:root {
  --navy: #0a2540;
  --ink: #16304a;
  --muted: #667b91;
  --line: #dbe6f1;
  --surface: #ffffff;
  --canvas: #f4f8fc;
  --blue: #1261d8;
  --blue-dark: #084fbf;
  --sky: #19a8e5;
  --pale: #eaf4ff;
  --green: #0f9d72;
  --amber: #be6a0b;
  --red: #c3414a;
  --shadow: 0 22px 60px rgba(11, 55, 96, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(25,168,229,.35); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(210,225,239,.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand { color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 12px; letter-spacing: .08em; font-weight: 760; }
.brand-logo-frame { display: block; width: 193px; height: 34px; overflow: hidden; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 4px; font-size: 20px; }
.brand b { color: var(--blue); }
.brand small { display: block; font-size: 9px; color: #71859a; letter-spacing: .08em; margin-left: 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, var(--blue), var(--sky)); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px; box-shadow: 0 7px 18px rgba(18,97,216,.24); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 10px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .85; }
.model-badge { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #d6e4f2; background: #f8fbfe; color: #526a81; font-size: 12px; font-weight: 700; border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22b884; box-shadow: 0 0 0 4px rgba(34,184,132,.13); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.user-menu { position: relative; }
.current-user { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 9px 0 5px; border: 0; border-left: 1px solid #e1e8f0; background: transparent; color: #283a4d; border-radius: 0 9px 9px 0; }
.current-user:hover, .current-user[aria-expanded="true"] { background: #f3f7fb; color: var(--blue); }
.current-user strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #7628df; color: #fff; font-size: 12px; font-weight: 850; }
.user-menu-chevron { width: 7px; height: 7px; margin: -4px 1px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.current-user[aria-expanded="true"] .user-menu-chevron { margin-top: 4px; transform: rotate(225deg); }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 100; width: 170px; padding: 7px; border: 1px solid #d9e5f0; border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgba(10,37,64,.16); }
.user-dropdown::before { content: ""; position: absolute; top: -5px; right: 23px; width: 9px; height: 9px; border-top: 1px solid #d9e5f0; border-left: 1px solid #d9e5f0; background: #fff; transform: rotate(45deg); }
.user-dropdown button, .user-dropdown a { position: relative; width: 100%; min-height: 39px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #344b61; text-align: left; text-decoration: none; font-size: 13px; font-weight: 700; }
.user-dropdown button:hover, .user-dropdown button:focus-visible, .user-dropdown a:hover, .user-dropdown a:focus-visible { background: #edf5ff; color: var(--blue); }
.logout-button { border: 1px solid #d6e4f2; border-radius: 9px; background: #fff; color: #647b91; min-height: 37px; padding: 0 12px; font-size: 12px; font-weight: 750; }
.logout-button:hover { border-color: #a9c9e5; color: var(--blue); background: #f7fbff; }

.login-page { min-height: 100vh; overflow: hidden; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 55% 45%; }
.login-visual { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px; background: linear-gradient(145deg, #1b2032, #223449); color: #fff; }
.login-visual::before { content: ""; position: absolute; width: min(62vw, 520px); aspect-ratio: 1; border: 1px solid rgba(239,96,58,.1); border-radius: 50%; }
.login-promo { position: relative; z-index: 1; width: min(100%, 470px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-product-badge { width: 223px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: #fff; color: var(--navy); padding: 8px 15px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.login-brand-logo-frame { display: block; width: 193px; height: 34px; overflow: hidden; }
.login-brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-product-badge .brand-mark { width: 32px; height: 32px; border-radius: 8px; padding: 7px; box-shadow: none; }
.login-product-badge > span:last-child { display: flex; align-items: baseline; gap: 4px; font-size: 17px; font-weight: 800; letter-spacing: .05em; }
.login-product-badge b { color: var(--blue); }
.login-product-badge small { margin-left: 6px; color: #8292a2; font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.login-promo h1 { margin: 38px 0 19px; font-size: 32px; line-height: 1.15; letter-spacing: -.045em; }
.login-promo p { margin: 0; color: rgba(226,234,242,.6); font-size: 15px; line-height: 1.5; }
.login-panel { display: grid; place-items: center; padding: 48px; background: #fff; }
.login-card { width: min(100%, 400px); }
.login-card h2 { margin: 0 0 9px; color: #121b2b; font-size: 28px; letter-spacing: -.035em; }
.login-description { margin: 0 0 31px; color: #a5afba; font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 9px; }
.login-field > span:first-child { color: #3c4a5e; font-size: 14px; font-weight: 800; }
.login-input-wrap { position: relative; display: block; }
.login-input-wrap svg { position: absolute; top: 50%; left: 17px; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #c3ccd5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-field input { display: block; width: 100%; min-height: 46px; border: 1px solid #dce2e8; border-radius: 10px; background: #fff; padding: 0 16px 0 41px; color: #182536; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.login-field input::placeholder { color: #c4cbd2; }
.login-field input:focus { border-color: #ef603a; box-shadow: 0 0 0 3px rgba(239,96,58,.1); outline: 0; }
.login-password-field { display: none; }
.login-form.is-password-step .login-password-field { display: grid; }
.login-error { margin: -4px 0 0; border: 1px solid #f0cfd2; border-radius: 9px; background: #fff0f1; color: #a43d45; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.login-button { min-height: 41px; border: 0; border-radius: 10px; background: #ef603a; color: #fff; font-size: 13px; font-weight: 850; box-shadow: 0 9px 22px rgba(239,96,58,.2); }
.login-button:hover { background: #e95632; transform: translateY(-1px); }
.login-signup { margin: 31px 0 0; color: #aab3bc; font-size: 12px; text-align: center; }
.login-signup span { color: #ef603a; font-weight: 800; }
.login-copyright { margin: 39px 0 0; color: #d0d5da; font-size: 10px; text-align: center; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 40px 24px; }
}

.page-label { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.dashboard { max-width: 1180px; min-height: calc(100vh - 78px); margin: 0 auto; padding: 54px 0 90px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.dashboard-heading h1, .composer-heading h1 { margin: 7px 0 5px; color: var(--navy); font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.dashboard-heading p { margin: 0; color: #7a8fa3; font-size: 12px; }
.new-pq-button, .new-result-button { border: 0; border-radius: 11px; background: linear-gradient(105deg, var(--blue-dark), #167be5); color: #fff; min-height: 44px; padding: 0 18px; font-size: 12px; font-weight: 800; box-shadow: 0 9px 22px rgba(18,97,216,.2); transition: .2s ease; }
.new-pq-button:hover, .new-result-button:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(18,97,216,.27); }
.new-pq-button span, .new-result-button span { font-size: 17px; font-weight: 400; margin-right: 5px; vertical-align: -1px; }
.history-message { margin-top: 22px; border-radius: 11px; padding: 12px 15px; font-size: 10px; line-height: 1.55; font-weight: 650; }
.history-message.analyzing { color: #35658c; background: #e8f4ff; border: 1px solid #c9e3f7; }
.history-message.success { color: #28735d; background: #eaf8f3; border: 1px solid #c7e9dc; }
.history-message.error { color: #a43d45; background: #fff0f1; border: 1px solid #f0cfd2; }
.history-overview { min-height: 82px; margin-top: 34px; border: 1px solid #dce7f1; border-radius: 15px; background: linear-gradient(120deg, #fff, #f8fbfe); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: 0 8px 28px rgba(26,66,101,.045); }
.history-message:not([hidden]) + .history-overview { margin-top: 12px; }
.history-overview > div { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.history-overview span { color: #758a9e; font-size: 10px; font-weight: 750; margin-right: 9px; }
.history-overview strong { color: var(--blue); font-size: 25px; letter-spacing: -.04em; }
.history-overview small { color: #8398aa; font-size: 10px; }
.history-overview p { margin: 0; color: #8a9cae; font-size: 10px; }
.history-list { display: grid; gap: 11px; margin-top: 18px; }
.history-card { position: relative; width: 100%; border: 1px solid #dce7f1; border-radius: 15px; background: #fff; padding: 18px 20px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 130px 165px 20px 52px; gap: 17px; align-items: center; text-align: left; color: inherit; box-shadow: 0 7px 25px rgba(25,68,105,.045); transition: .2s ease; }
.history-card:hover { border-color: #b8d5ee; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(25,68,105,.08); }
.history-card[aria-disabled="true"] { cursor: default; }
.history-card[aria-disabled="true"]:hover { border-color: #dce7f1; transform: none; box-shadow: 0 7px 25px rgba(25,68,105,.045); }
.history-card-open { position: absolute; inset: 0; z-index: 1; border: 0; border-radius: 15px; background: transparent; }
.history-card-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.history-delete-button { position: relative; z-index: 2; border: 1px solid #e1e8ee; border-radius: 8px; background: #fff; color: #758a9e; min-height: 32px; padding: 0 10px; font-size: 11px; font-weight: 750; }
.history-delete-button:hover { border-color: #e1aeb3; background: #fff5f5; color: var(--red); }
.history-card.status-queued, .history-card.status-analyzing { background: linear-gradient(110deg, #fff, #f7fbff); }
.history-card.status-failed { background: linear-gradient(110deg, #fff, #fff9f9); border-color: #ecdadd; }
.history-card-icon { width: 42px; height: 42px; border-radius: 11px; background: #e9f4ff; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 10px; }
.history-card-icon i { display: block; width: 4px; border-radius: 3px; background: var(--blue); }
.history-card-icon i:nth-child(1) { height: 9px; opacity: .55; }
.history-card-icon i:nth-child(2) { height: 18px; }
.history-card-icon i:nth-child(3) { height: 13px; opacity: .75; }
.history-card-main { min-width: 0; display: block; }
.history-card-main > small { display: block; color: var(--blue); font-size: 8px; font-weight: 800; margin-bottom: 5px; }
.history-card-main > strong { display: block; color: var(--navy); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-card-main > span { display: block; color: #99a9b8; font-size: 8px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-card-score, .history-card-date { display: block; border-left: 1px solid #e8eef4; padding-left: 17px; }
.history-card-score small, .history-card-date small { display: block; color: #98a8b7; font-size: 8px; margin-bottom: 5px; }
.history-card-score b { color: var(--blue); font-size: 11px; }
.history-card-score .status-text { color: #4b7191; }
.status-failed .history-card-score .status-text, .status-failed .history-card-arrow { color: var(--red); }
.history-card-date b { color: #62798e; font-size: 9px; font-weight: 650; }
.history-card-arrow { color: #9bb1c4; font-size: 17px; }
.mini-spinner { display: block; width: 14px; height: 14px; border: 2px solid #d1e3f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.history-empty { margin-top: 18px; min-height: 365px; border: 1px dashed #cbdbea; border-radius: 18px; background: rgba(255,255,255,.62); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px 20px; }
.empty-icon { width: 66px; height: 66px; border-radius: 20px; background: #e5f2ff; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 15px; margin-bottom: 20px; }
.empty-icon i { display: block; width: 6px; border-radius: 5px; background: var(--blue); }
.empty-icon i:nth-child(1) { height: 15px; opacity: .52; }
.empty-icon i:nth-child(2) { height: 29px; }
.empty-icon i:nth-child(3) { height: 21px; opacity: .75; }
.history-empty h2 { margin: 0; color: var(--navy); font-size: 18px; letter-spacing: -.025em; }
.history-empty p { margin: 9px 0 20px; color: #8397aa; font-size: 11px; }
.history-empty button { border: 1px solid #bcd6ee; background: #fff; color: var(--blue); border-radius: 9px; padding: 9px 14px; font-size: 10px; font-weight: 800; }
.history-empty button:hover { border-color: var(--blue); background: #f5faff; }

.composer { max-width: 1180px; min-height: calc(100vh - 78px); margin: 0 auto; padding: 42px 0 80px; }
.composer-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.back-button { border: 1px solid #d4e1ec; border-radius: 9px; background: #fff; color: #587188; padding: 9px 11px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.back-button:hover { color: var(--blue); border-color: #b6d2ea; }
.composer-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 24px; align-items: stretch; }
.composer-body .upload-shell { min-width: 0; }
.composer-guide { border-radius: 22px; padding: 34px 32px; color: #fff; background: linear-gradient(145deg, #0a2f54, #0b4e8d); box-shadow: 0 22px 55px rgba(9,53,95,.18); position: relative; overflow: hidden; }
.composer-guide::after { content: ""; position: absolute; width: 290px; height: 290px; right: -140px; top: -125px; border-radius: 50%; background: radial-gradient(circle, rgba(59,180,235,.3), transparent 68%); }
.composer-guide .page-label { color: #70c9f1; position: relative; z-index: 1; }
.composer-guide h2 { position: relative; z-index: 1; margin: 12px 0 12px; max-width: 330px; font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.composer-guide > p { position: relative; z-index: 1; color: #bfd4e7; font-size: 11px; line-height: 1.75; margin: 0; }
.guide-steps { display: grid; gap: 12px; margin-top: 27px; position: relative; z-index: 1; }
.guide-steps > div { display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 12px; border-top: 1px solid rgba(196,225,247,.14); padding-top: 12px; }
.guide-steps b { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #7bcaf0; background: rgba(125,203,241,.12); font-size: 8px; }
.guide-steps span { color: #edf7ff; font-size: 11px; font-weight: 750; }
.guide-steps small { display: block; color: #91aec7; font-size: 8px; font-weight: 500; margin-top: 3px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(202,231,249,.12); border-radius: 11px; padding: 13px; margin-top: 28px; position: relative; z-index: 1; }
.privacy-note > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: rgba(84,215,172,.17); color: #6fe0b7; font-style: normal; font-size: 9px; }
.privacy-note span, .privacy-note b, .privacy-note small { display: block; }
.privacy-note b { color: #eef9ff; font-size: 9px; }
.privacy-note small { color: #9eb8cf; font-size: 8px; margin-top: 4px; line-height: 1.45; }
.result-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.new-result-button { min-height: 38px; padding: 0 14px; font-size: 10px; }

.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #edf6ff 0%, #f7fbff 48%, #eaf7fe 100%); border-bottom: 1px solid #dce9f5; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(68,133,196,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(68,133,196,.055) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, black, transparent 78%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.glow-one { width: 460px; height: 460px; right: -130px; top: -210px; background: radial-gradient(circle, rgba(31,177,234,.18), transparent 68%); }
.glow-two { width: 330px; height: 330px; left: 12%; bottom: -240px; background: radial-gradient(circle, rgba(18,97,216,.12), transparent 68%); }
.hero-inner { max-width: 1180px; margin: 0 auto; min-height: 620px; padding: 72px 0 66px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; position: relative; z-index: 2; }
.hero-copy { padding-bottom: 12px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--blue); font-weight: 800; font-size: 11px; letter-spacing: .18em; }
.eyebrow i { width: 58px; height: 1px; background: linear-gradient(90deg, var(--sky), transparent); }
.hero h1 { margin: 22px 0 22px; color: var(--navy); font-size: clamp(39px, 4.15vw, 58px); line-height: 1.16; letter-spacing: -.055em; font-weight: 810; }
.hero h1 em { color: var(--blue); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 7px; border-radius: 100%; border-top: 2px solid rgba(25,168,229,.45); transform: rotate(-1deg); }
.hero-copy > p { margin: 0; color: #526d85; font-size: 16px; line-height: 1.85; }
.trust-row { display: flex; flex-wrap: wrap; gap: 15px 19px; margin-top: 32px; color: #49647c; font-size: 12px; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dceeff; color: var(--blue); font-size: 10px; font-style: normal; }

.upload-shell { background: rgba(255,255,255,.95); border: 1px solid rgba(195,216,235,.9); border-radius: 22px; padding: 29px; box-shadow: var(--shadow), inset 0 1px 0 #fff; backdrop-filter: blur(10px); }
.upload-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.step-label { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.upload-heading h2 { margin: 5px 0 0; color: var(--navy); font-size: 20px; letter-spacing: -.025em; }
.completion { background: #eff6fd; color: #7990a6; border-radius: 999px; padding: 7px 11px; font-size: 11px; }
.completion b { color: var(--blue); font-size: 14px; }
.file-list { display: grid; gap: 10px; }
.file-card { min-height: 86px; border: 1px dashed #cbdbea; background: #fbfdff; border-radius: 14px; display: grid; grid-template-columns: 28px 44px 1fr auto; align-items: center; gap: 13px; padding: 13px 15px; transition: .2s ease; }
.file-card:hover, .file-card.is-dragging { border-color: var(--sky); background: #f5fbff; transform: translateY(-1px); }
.file-card.has-file { border-style: solid; border-color: #b9d8f4; background: #f8fcff; }
.file-order { color: #9badbd; font-size: 10px; font-weight: 800; align-self: start; padding-top: 3px; }
.file-icon { width: 42px; height: 49px; border-radius: 8px; background: linear-gradient(145deg, #edf5ff, #d8eaff); border: 1px solid #c8def3; display: grid; place-items: center; position: relative; color: var(--blue); }
.file-icon::after { content: ""; position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; background: #fff; border-left: 1px solid #c8def3; border-bottom: 1px solid #c8def3; border-radius: 0 7px 0 5px; }
.file-icon span { font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.file-copy { min-width: 0; }
.file-label-row { display: flex; align-items: center; gap: 8px; }
.file-copy strong { color: var(--ink); font-size: 14px; }
.file-copy p { color: #7b8fa2; margin: 5px 0 0; font-size: 11px; }
.file-copy .file-name { color: #3f5b75; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 270px; }
.file-size { display: block; color: #8aa0b2; font-size: 9px; margin-top: 4px; }
.verified-pill { color: var(--green); background: #e5f8f2; border-radius: 99px; padding: 3px 6px; font-size: 8px; font-weight: 800; }
.file-action { border: 1px solid #d6e3ef; color: #56718a; background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 10px; font-weight: 750; }
.file-action:hover { color: var(--blue); border-color: #adcff0; }
.upload-footnote { display: flex; justify-content: space-between; margin: 14px 2px 18px; color: #8a9bad; font-size: 9px; }
.analyze-button { width: 100%; min-height: 51px; border: 0; border-radius: 12px; background: linear-gradient(105deg, var(--blue-dark), #167be5); color: #fff; font-weight: 780; font-size: 14px; box-shadow: 0 10px 24px rgba(18,97,216,.22); transition: .2s ease; }
.analyze-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(18,97,216,.28); }
.analyze-button:disabled { cursor: wait; opacity: .82; }
.analyze-button span:last-child { margin-left: 8px; }
.sample-button { width: 100%; border: 0; background: transparent; color: #768da3; font-size: 10px; font-weight: 700; padding: 12px 4px 1px; }
.sample-button:hover { color: var(--blue); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.system-message { margin-top: 13px; border-radius: 9px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: 10px; line-height: 1.5; }
.system-message span { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; }
.system-message.error { background: #fff0f1; color: #a8353d; }
.system-message.error span { background: #ffd8db; }
.system-message.analyzing { background: #eef7ff; color: #426b91; }
.system-message.analyzing span { background: #d9edff; }
.system-message.done { background: #eaf8f3; color: #24735b; }
.system-message.done span { background: #cfefe3; }

.workflow-strip { max-width: 980px; margin: -1px auto 0; display: flex; align-items: center; justify-content: center; gap: 30px; padding: 27px 0; }
.workflow-strip > div { display: flex; gap: 11px; align-items: center; min-width: 190px; }
.workflow-strip b { width: 32px; height: 32px; border: 1px solid #c9dceb; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: #fff; font-size: 9px; }
.workflow-strip span { color: #3c5871; font-size: 11px; font-weight: 800; }
.workflow-strip small { display: block; color: #91a3b4; font-size: 9px; font-weight: 500; margin-top: 3px; }
.workflow-strip > i { color: #b6c9da; font-style: normal; }

.results { max-width: 1180px; margin: 44px auto 70px; }
.result-topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 24px; }
.result-kicker { color: var(--blue); font-size: 9px; letter-spacing: .17em; font-weight: 900; }
.result-topline h2 { margin: 7px 0 6px; color: var(--navy); font-size: 28px; letter-spacing: -.035em; max-width: 800px; }
.result-topline p { color: #768ba0; margin: 0; font-size: 12px; }
.result-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.confidence { display: flex; gap: 8px; align-items: center; color: #41745f; background: #ebf8f2; border: 1px solid #cceadc; padding: 9px 12px; border-radius: 9px; font-size: 10px; font-weight: 750; }
.confidence i { width: 6px; height: 6px; background: #1dad7a; border-radius: 50%; }
.result-actions button { border: 1px solid #cdddeb; background: #fff; color: #49657d; border-radius: 9px; padding: 9px 12px; font-size: 10px; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 13px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px 22px; box-shadow: 0 8px 25px rgba(25,68,105,.05); }
.metric.primary { background: linear-gradient(125deg, #0a53c2, #137edc); border: 0; color: #fff; }
.metric > span { color: #71879a; font-size: 10px; font-weight: 750; }
.metric.primary > span { color: #cfe5ff; }
.metric strong { display: block; color: var(--navy); font-size: 27px; letter-spacing: -.035em; margin: 8px 0 5px; }
.metric.primary strong { color: #fff; }
.metric strong small { font-size: 13px; margin-left: 2px; }
.metric p { color: #8b9daf; font-size: 9px; margin: 0; }
.metric.primary p { color: #c7e1fb; }
.company-score strong { display: flex; align-items: baseline; gap: 7px; margin: 7px 0 6px; }
.company-score strong b { font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.company-score strong small { color: #d6eaff; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.staffing-metric { display: flex; flex-direction: column; justify-content: center; }
.staffing-metric > div { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.staffing-metric > div > b { color: var(--navy); font-size: 17px; white-space: nowrap; }
.staffing-metric > div > p { line-height: 1.5; }
.summary-panel { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px 22px; border: 1px solid #c9e0f4; background: #eef7ff; border-radius: 14px; margin-top: 13px; }
.summary-symbol { width: 32px; height: 32px; border-radius: 50%; background: #d4eaff; color: var(--blue); display: grid; place-items: center; font-family: Georgia, serif; font-weight: 900; }
.summary-panel h3 { margin: 0 0 6px; color: #17466f; font-size: 13px; }
.summary-panel p { margin: 0; color: #436581; font-size: 12px; line-height: 1.65; }
.summary-panel small { display: block; color: #7a91a6; margin-top: 6px; font-size: 9px; }
.warning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 13px; }
.warning-grid > div { background: #fff; border: 1px solid #eadfce; border-left: 3px solid #e5a13e; border-radius: 11px; padding: 14px 15px; }
.warning-grid b { color: #b36b12; font-size: 8px; letter-spacing: .1em; }
.warning-grid p { margin: 5px 0 0; color: #5d6e7f; font-size: 10px; line-height: 1.55; }

.result-section { min-width: 0; margin-top: 54px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.section-heading > span { color: var(--blue); font-size: 9px; font-weight: 900; background: #e3f1ff; width: auto; min-width: 31px; height: 31px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; }
.section-heading h3 { margin: 0; color: var(--navy); font-size: 19px; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: #8a9db0; font-size: 10px; }
.section-heading.compact { margin-bottom: 14px; }
.tech-role-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tech-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; box-shadow: 0 7px 22px rgba(27,68,104,.045); }
.tech-card-head { display: flex; justify-content: space-between; align-items: center; }
.tech-card-head span { color: var(--blue); background: var(--pale); border-radius: 6px; padding: 5px 8px; font-size: 8px; font-weight: 850; }
.tech-card-head b { color: #6b8298; font-size: 10px; }
.tech-card h4 { margin: 17px 0 15px; color: var(--navy); font-size: 17px; }
.tech-card h4 small { color: var(--blue); font-size: 11px; margin-left: 8px; }
.tech-card dl { margin: 0; }
.tech-card dl > div { display: grid; grid-template-columns: 57px 1fr; gap: 9px; border-top: 1px solid #edf2f6; padding: 10px 0; }
.tech-card dt { color: #8b9cad; font-size: 9px; }
.tech-card dd { margin: 0; color: #456078; font-size: 10px; line-height: 1.5; }
.consequence { background: #fff3f2; color: #b84a4e; border-radius: 7px; padding: 8px 10px; font-size: 9px; font-weight: 750; margin-top: 7px; }
.source { display: block; color: #9aabb9; font-size: 8px; margin-top: 11px; }
.tech-score-tables { margin-top: 20px; padding-top: 18px; border-top: 1px solid #dce7f0; }
.tech-score-section + .tech-score-section { margin-top: 20px; }
.tech-score-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.tech-score-heading b { color: var(--navy); font-size: 12px; }
.tech-score-heading span { flex: 0 0 auto; color: var(--blue); background: #eaf4ff; border-radius: 6px; padding: 5px 7px; font-size: 7px; font-weight: 850; }
.tech-score-group + .tech-score-group { margin-top: 13px; }
.tech-score-group h5 { margin: 0 0 6px; color: #49637a; font-size: 9px; }
.tech-score-scroll { width: 100%; overflow-x: auto; border-radius: 7px; }
.band-score-matrix { width: 100%; min-width: var(--matrix-min-width); border-top: 1px solid #8e9aa5; border-left: 1px solid #8e9aa5; background: #fff; }
.band-score-row { display: grid; grid-template-columns: 90px repeat(var(--band-count), minmax(132px, 1fr)); }
.band-score-row > * { min-width: 0; margin: 0; border-right: 1px solid #a7b0b8; border-bottom: 1px solid #a7b0b8; padding: 10px 8px; display: grid; place-items: center; color: #263d52; background: #fff; text-align: center; font-size: 10px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.band-score-row > b { color: var(--navy); background: #f7f9fb; font-weight: 850; }
.band-score-header > span { background: #f7f9fb; font-weight: 750; }
.band-score-values > span { color: #173e63; font-size: 11px; font-weight: 800; }
.tech-score-empty { margin: 0; padding: 13px; border-radius: 8px; background: #f6f9fc; color: #7e92a5; font-size: 9px; }
.role-summary-card .tech-score-scroll { overflow-x: hidden; }
.role-summary-card .band-score-matrix { min-width: 0; }
.role-summary-card .band-score-row { grid-template-columns: 56px repeat(var(--band-count), minmax(0, 1fr)); }
.role-summary-card .band-score-row > * { padding: 8px 4px; font-size: 8px; word-break: keep-all; }

.technician-scoring-box { margin-top: 28px; border: 1px solid #c9ddeb; border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 9px 28px rgba(27,68,104,.055); }
.technician-scoring-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; background: linear-gradient(120deg, #f4f9ff, #fff); border-bottom: 1px solid #deebf4; }
.technician-scoring-head h4 { margin: 0; color: var(--navy); font-size: 18px; }
.technician-scoring-head p { margin: 6px 0 0; color: #637d94; font-size: 13px; line-height: 1.5; }
.technician-scoring-head button { flex: 0 0 auto; border: 0; border-radius: 9px; background: var(--blue); color: #fff; padding: 11px 16px; font-size: 13px; font-weight: 850; box-shadow: 0 7px 16px rgba(18,97,216,.18); }
.technician-scoring-head button:disabled { cursor: wait; opacity: .65; }
.technician-score-message { margin: 14px 20px 0; padding: 11px 13px; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.technician-score-message.is-loading { color: #376b98; background: #eef7ff; }
.technician-score-message.is-success { color: #267156; background: #eef9f4; }
.technician-score-message.is-error { color: #a8353d; background: #fff0f1; }
.technician-score-empty { margin: 18px 20px 20px; border: 1px dashed #ccdce8; border-radius: 11px; padding: 21px; color: #637d94; background: #fbfdff; text-align: center; font-size: 13px; }
.technician-score-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 17px 20px 12px; }
.technician-score-meta span { color: var(--blue); background: #eaf4ff; border-radius: 6px; padding: 6px 9px; font-size: 12px; font-weight: 850; }
.technician-score-meta b { color: var(--navy); font-size: 14px; }
.technician-score-meta small { flex-basis: 100%; color: #6d8499; font-size: 12px; line-height: 1.5; }
.technician-interim-summary { margin: 0 20px 17px; overflow: hidden; border: 1px solid #bcd8ef; border-radius: 13px; background: linear-gradient(120deg, #eff7ff, #fbfdff); }
.technician-interim-total { display: grid; grid-template-columns: auto auto minmax(220px, 1fr); align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #d7e7f3; }
.technician-interim-total > span { color: #426985; font-size: 13px; font-weight: 850; }
.technician-interim-total > strong { color: var(--blue); font-size: 25px; letter-spacing: -.03em; }
.technician-interim-total > strong small { color: #68839a; font-size: 15px; font-weight: 800; }
.technician-interim-total > p { margin: 0; color: #6d8396; font-size: 11px; line-height: 1.5; text-align: right; }
.technician-interim-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.technician-interim-roles article { min-width: 0; padding: 13px 16px; border-right: 1px solid #dce9f3; }
.technician-interim-roles article:last-child { border-right: 0; }
.technician-interim-roles span, .technician-interim-roles b, .technician-interim-roles small { display: block; }
.technician-interim-roles span { color: #668097; font-size: 11px; font-weight: 800; }
.technician-interim-roles b { margin-top: 5px; color: var(--navy); font-size: 16px; }
.technician-interim-roles small { overflow: hidden; margin-top: 5px; color: #71889c; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.technician-interim-notice { margin: 0; padding: 10px 16px; border-top: 1px solid #ead8b5; background: #fff9ec; color: #8a6225; font-size: 11px; line-height: 1.5; }
.technician-score-tabs { display: flex; gap: 7px; padding: 0 20px 13px; overflow-x: auto; }
.technician-score-tabs button { white-space: nowrap; border: 1px solid #cfdeea; border-radius: 8px; background: #fff; color: #526f87; padding: 10px 12px; font-size: 13px; font-weight: 800; }
.technician-score-tabs button small { margin-left: 5px; color: #71899d; font-size: 11px; }
.technician-score-tabs button[aria-selected="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.technician-score-tabs button[aria-selected="true"] small { color: #d7eaff; }
.technician-score-table-wrap { width: 100%; overflow-x: auto; padding: 0 20px 20px; }
.technician-score-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; border: 1px solid #d6e2eb; border-radius: 10px; overflow: hidden; }
.technician-score-table th { padding: 12px 10px; border-bottom: 1px solid #ccdbe6; background: #f4f7fa; color: #415f78; font-size: 12px; text-align: center; }
.technician-score-table td { padding: 12px 10px; border-bottom: 1px solid #e4ecf2; color: #344f66; font-size: 13px; text-align: center; vertical-align: middle; }
.technician-score-table tr:last-child td { border-bottom: 0; }
.technician-score-table td:first-child { min-width: 150px; text-align: left; }
.technician-score-table td b { display: block; color: var(--navy); font-size: 14px; }
.technician-score-table td small { display: block; margin-top: 4px; color: #6f8598; font-size: 11px; }
.technician-score-table td:last-child strong { color: var(--navy); font-size: 15px; }
.technician-score-row { cursor: pointer; }
.technician-score-row:hover td { background: #f5faff; }
.technician-score-row.is-interim-selected td { background: #f0f8ff; }
.technician-overlap-count { color: #176d50 !important; }
.technician-overlap-count.is-error { color: #a33e47 !important; }
.technician-score-row.is-interim-selected:hover td { background: #e8f4ff; }
.technician-score-table td:first-child { min-width: 82px; text-align: center; }
.technician-score-table td:nth-child(2) { min-width: 150px; text-align: left; }
.technician-role-choice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.technician-role-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.technician-role-choice input:disabled { cursor: wait; opacity: .6; }
.technician-role-choice span { color: #55738b; font-size: 11px; font-weight: 850; }
.technician-role-choice input:checked + span { color: var(--blue); }
.technician-score-person { width: 100%; display: block; border: 0; border-radius: 8px; background: transparent; padding: 7px 8px; color: inherit; text-align: left; }
.technician-score-person:hover, .technician-score-person:focus-visible { background: #eaf4ff; }
.technician-score-person span { display: inline-block; margin-top: 7px; color: var(--blue); font-size: 11px; font-weight: 850; }
.technician-score-status { display: inline-block; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 850; }
.technician-score-status.is-complete { color: #1e775a; background: #e7f7f0; }
.technician-score-status.is-review { color: #9b651a; background: #fff5df; }
.technician-score-status.is-ineligible { color: #a9434a; background: #ffedef; }
.technician-interim-selected-badge { color: var(--blue) !important; font-weight: 850; }
.technician-score-issues td { padding: 9px 12px; color: #7a5636; background: #fffaf1; text-align: left; font-size: 11px; line-height: 1.55; }
.technician-score-empty-row td { padding: 25px 18px; color: #637d94; text-align: center; font-size: 13px; }

body.technician-project-modal-open { overflow: hidden; }
.technician-project-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 28px; background: rgba(7, 28, 48, .62); backdrop-filter: blur(3px); }
.technician-project-dialog { width: min(1220px, 100%); max-height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cbddea; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(6, 32, 55, .28); }
.technician-project-dialog > header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #dce8f1; background: linear-gradient(120deg, #edf7ff, #fff); }
.technician-project-dialog > header span { display: block; margin-bottom: 5px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.technician-project-dialog > header h3 { margin: 0; color: var(--navy); font-size: 22px; }
.technician-project-dialog > header button { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #cedeea; border-radius: 10px; background: #fff; color: #537088; font-size: 25px; line-height: 1; }
.technician-project-dialog > header button:hover { border-color: #9fc5e4; color: var(--blue); background: #f5faff; }
.technician-project-modal-content { min-height: 220px; overflow: auto; padding: 20px 24px 25px; }
.technician-project-modal-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.technician-project-modal-summary span { border-radius: 7px; background: #eaf4ff; padding: 6px 9px; color: var(--blue); font-size: 12px; font-weight: 850; }
.technician-project-modal-summary b { color: var(--navy); font-size: 15px; }
.technician-project-modal-summary small { flex-basis: 100%; color: #70869a; font-size: 12px; }
.technician-project-modal-summary > button { margin-left: auto; border: 1px solid #9fc7e7; border-radius: 8px; background: #f3f9ff; color: var(--blue); padding: 9px 16px; font-size: 13px; font-weight: 850; }
.technician-project-modal-summary > button:hover { border-color: var(--blue); background: #e7f3ff; }
.technician-project-groups { display: grid; gap: 22px; }
.technician-project-group { overflow: hidden; border: 1px solid #d7e3ec; border-radius: 13px; background: #fff; }
.technician-project-group-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid #dce7ef; background: #f8fbfd; }
.technician-project-group-head h4 { margin: 0; color: var(--navy); font-size: 16px; }
.technician-project-group-head p { margin: 5px 0 0; color: #71869a; font-size: 12px; }
.technician-project-group-head span { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 850; }
.technician-project-group.is-career .technician-project-group-head span { color: var(--blue); background: #eaf4ff; }
.technician-project-group.is-performance .technician-project-group-head span { color: #177657; background: #e9f7f1; }
.technician-mpro-overlap-group { margin-bottom: 22px; border-color: #b9dccd; }
.technician-mpro-overlap-group .technician-project-group-head { background: #f2fbf7; }
.technician-mpro-overlap-group .technician-project-group-head span { color: #177657; background: #def4e9; }
.technician-mpro-overlap-table { min-width: 760px; }
.technician-mpro-overlap-table td:first-child small { display: block; margin-top: 4px; color: #799086; font-size: 10px; }
.technician-mpro-overlap-table tr.is-user-excluded td { color: #8b969e; background: #faf7f7; opacity: .78; }
.technician-mpro-overlap-table tr.is-user-excluded td b { color: #7a858d; text-decoration: line-through; }
.technician-mpro-overlap-message { min-height: 90px; display: grid; place-items: center; padding: 18px; color: #587466; background: #fbfefc; font-size: 13px; text-align: center; }
.technician-mpro-overlap-message.is-error { color: #a33e47; background: #fff5f6; }
.technician-mpro-overlap-message.is-empty { color: #647d70; }
.technician-project-group-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.technician-project-group-actions button { border: 1px solid #bfd4e4; border-radius: 8px; background: #fff; color: #385d79; padding: 7px 10px; font-size: 11px; font-weight: 850; }
.technician-project-group-actions button:hover { border-color: var(--blue); color: var(--blue); }
.technician-project-table-wrap { width: 100%; overflow: auto; border: 1px solid #d7e3ec; border-radius: 11px; }
.technician-project-group .technician-project-table-wrap { border: 0; border-radius: 0; }
.technician-project-table { min-width: 1020px; border-collapse: separate; border-spacing: 0; }
.technician-project-table th { padding: 12px 11px; background: #edf5fc; color: #405e77; font-size: 12px; text-align: center; }
.technician-project-table td { padding: 13px 11px; color: #40596f; font-size: 12px; text-align: center; vertical-align: middle; }
.technician-project-table td:first-child { min-width: 220px; text-align: left; }
.technician-project-table .technician-project-period { min-width: 190px; }
.technician-project-table td b { color: var(--navy); font-size: 13px; }
.technician-project-modal-loading, .technician-project-modal-empty, .technician-project-modal-error { display: grid; min-height: 180px; place-items: center; border: 1px dashed #cadbe7; border-radius: 12px; background: #f8fbfd; color: #607b91; font-size: 14px; text-align: center; }
.technician-project-group-empty { min-height: 105px; display: grid; place-items: center; padding: 20px; color: #70869a; background: #fbfdff; font-size: 13px; text-align: center; }
.technician-project-modal-error { border-color: #efcbd0; background: #fff5f6; color: #a33e47; }
.technician-project-editor { display: grid; gap: 18px; }
.technician-project-editor-head { padding: 15px 17px; border: 1px solid #cfe0ec; border-radius: 12px; background: #f6faff; }
.technician-project-editor-head h4 { margin: 0; color: var(--navy); font-size: 16px; }
.technician-project-editor-head p { margin: 6px 0 0; color: #667f94; font-size: 12px; line-height: 1.55; }
.technician-project-edit-list { display: grid; gap: 8px; }
.technician-project-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #d5e2ec; border-radius: 10px; background: #fff; }
.technician-project-edit-row.is-excluded { border-color: #e1d7d8; background: #faf7f7; opacity: .72; }
.technician-project-edit-row > label { min-width: 0; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.technician-project-edit-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.technician-project-edit-row label span { min-width: 0; }
.technician-project-edit-row label b { display: block; overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.technician-project-edit-row label small { display: block; margin-top: 5px; color: #70869a; font-size: 11px; line-height: 1.45; }
.technician-project-edit-row > div { display: flex; align-items: center; gap: 8px; }
.technician-project-edit-row em { border-radius: 999px; background: #eef5fa; padding: 5px 8px; color: #60788d; font-size: 10px; font-style: normal; font-weight: 800; }
.technician-project-edit-row em.is-match { color: #177657; background: #e9f7f1; }
.technician-project-edit-row em.is-mismatch { color: #a66222; background: #fff3e4; }
.technician-project-edit-row em.is-forced { color: #315fb4; background: #edf3ff; }
.technician-project-edit-row label small.technician-project-failures { color: #a66222; }
.technician-project-failure-list { display: grid !important; gap: 6px; margin-top: 9px; }
.technician-project-failure-list > span { display: grid; grid-template-columns: minmax(95px, .6fr) minmax(150px, 1fr) minmax(170px, 1.25fr); gap: 8px; align-items: stretch; }
.technician-project-failure-list > span > b, .technician-project-failure-list > span > i { overflow: visible; border-radius: 7px; padding: 7px 9px; white-space: normal; }
.technician-project-failure-list > span > b { color: #985719; background: #fff0dd; font-size: 11px; }
.technician-project-failure-list > span > i { color: #536d82; background: #f4f7fa; font-size: 11px; font-style: normal; line-height: 1.45; }
.technician-project-failure-list > span > i:last-child { color: #934a2d; background: #fff7f1; }
.technician-project-edit-row .technician-project-failure-list small { display: block; margin: 0 0 2px; color: #8a9baa; font-size: 9px; font-weight: 850; }
.technician-project-edit-empty { padding: 22px; border: 1px dashed #cadbe7; border-radius: 10px; background: #fafcfe; color: #667f94; font-size: 12px; text-align: center; }
.technician-project-editor-actions { display: flex; justify-content: flex-end; gap: 9px; position: sticky; bottom: -25px; padding: 13px 0 0; background: #fff; }
.technician-project-editor-actions button { border: 0; border-radius: 9px; background: var(--blue); color: #fff; padding: 11px 16px; font-size: 13px; font-weight: 850; }
.technician-project-editor-actions button.is-secondary { border: 1px solid #cbdbe7; background: #fff; color: #587187; }
.technician-project-editor-actions button:disabled { cursor: wait; opacity: .65; }
.technician-project-save-message { border-radius: 9px; padding: 11px 13px; font-size: 12px; line-height: 1.5; }
.technician-project-save-message.is-loading { color: #376b98; background: #eef7ff; }
.technician-project-save-message.is-success { margin-bottom: 14px; color: #176d50; background: #e9f7f1; }
.technician-project-save-message.is-error { color: #a23d47; background: #fff2f3; }

.technician-criteria-section { margin: 0 0 30px; padding: 22px; border: 1px solid #cfe1f1; border-radius: 17px; background: linear-gradient(120deg, #eef7ff, #f8fbfe); }
.technician-criteria-section .section-heading { margin-bottom: 15px; }
.personnel-criteria-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recognition-list { min-width: 0; display: grid; gap: 12px; }
.recognition-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px 22px; }
.recognition-card.compact { box-shadow: 0 7px 22px rgba(27,68,104,.04); }
.recognition-card.compact .primary-rules { margin-top: 14px; }
.recognition-details.criterion-basis { border-top: 1px solid #e2ebf3; padding-top: 12px; }
.criterion-basis .target-work { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin-top: 0; }
.criterion-basis .target-work b { color: var(--blue); font-size: 9px; }
.recognition-title { display: flex; align-items: center; gap: 10px; }
.recognition-title h4 { margin: 0; color: var(--navy); font-size: 15px; }
.recognition-title span { color: var(--blue); background: #edf6ff; padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 800; }
.target-work { color: #49657c; font-size: 11px; line-height: 1.6; margin: 12px 0; }
.formula { background: #f5f8fb; border-radius: 8px; padding: 10px 12px; color: #4c6479; font-size: 10px; }
.formula b { color: var(--blue); margin-right: 12px; }
.rule-toggle { width: 100%; margin-top: 12px; border: 1px solid #d2e1ed; border-radius: 8px; background: #fbfdff; color: #4c6982; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 800; text-align: left; }
.rule-toggle:hover { color: var(--blue); border-color: #afd0ed; background: #f5faff; }
.rule-toggle-icon { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #e6f2fd; color: var(--blue); font-size: 13px; font-style: normal; font-weight: 600; }
.recognition-details { margin-top: 11px; padding-top: 1px; }
.embedded-score-tables { min-width: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid #dce7f0; }
.supplemental-score-section { min-width: 0; }
.supplemental-score-section + .supplemental-score-section { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #d6e3ee; }
.supplemental-score-section .tech-score-scroll { overflow-x: hidden; }
.supplemental-score-section .band-score-matrix { min-width: 0; }
.supplemental-score-section .band-score-row { grid-template-columns: 90px repeat(var(--band-count), minmax(0, 1fr)); }
.supplemental-score-section .band-score-row > * { overflow-wrap: anywhere; word-break: keep-all; }
.supplemental-score-section .tech-score-group h5 small { color: #8ca0b2; font-size: 7px; margin-left: 4px; }
.usage-weight-table { min-width: 0; table-layout: fixed; border: 1px solid #8e9aa5; }
.usage-weight-table th, .usage-weight-table td { border: 1px solid #a7b0b8; padding: 10px 8px; text-align: center; line-height: 1.35; }
.usage-weight-table th { color: var(--navy); background: #f7f9fb; font-weight: 850; }
.usage-weight-table td { color: #263d52; font-weight: 650; }
.supplemental-score-notes { margin: 11px 0 0; padding-left: 17px; color: #758a9d; font-size: 8px; line-height: 1.6; }
.supplemental-score-card { background: linear-gradient(135deg, #fff, #fbfdff); }
.supplemental-score-card > .target-work { margin-bottom: 0; }
[data-score-group="credit"] .embedded-score-tables { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; }
[data-score-group="credit"] .supplemental-score-section:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-score-group="credit"] .supplemental-score-section:first-child > .tech-score-heading,
[data-score-group="credit"] .supplemental-score-section:first-child > .supplemental-score-notes,
[data-score-group="credit"] .supplemental-score-section:first-child > .source { grid-column: 1 / -1; }
[data-score-group="credit"] .supplemental-score-section:first-child .tech-score-group + .tech-score-group { margin-top: 0; }
[data-score-group="credit"] .supplemental-score-section:first-child .tech-score-group h5 { color: var(--navy); font-size: 12px; font-weight: 850; }
[data-score-group="credit"] .supplemental-score-section + .supplemental-score-section { margin-top: 0; padding-top: 0; border-top: 0; }
[data-score-group="credit"] .credit-health-group { margin-top: 15px; }
[data-score-group="credit"] .band-score-row { grid-template-columns: 64px repeat(var(--band-count), minmax(0, 1fr)); }
[data-score-group="technology-investment"] .embedded-score-tables { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 1.6fr); gap: 12px; align-items: start; }
[data-score-group="technology-investment"] .supplemental-score-section:first-child { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, .8fr) minmax(0, 1fr); gap: 12px; }
[data-score-group="technology-investment"] .supplemental-score-section:first-child > .tech-score-heading,
[data-score-group="technology-investment"] .supplemental-score-section:first-child > .supplemental-score-notes,
[data-score-group="technology-investment"] .supplemental-score-section:first-child > .source { grid-column: 1 / -1; }
[data-score-group="technology-investment"] .supplemental-score-section:first-child .tech-score-group + .tech-score-group { margin-top: 0; }
[data-score-group="technology-investment"] .supplemental-score-section + .supplemental-score-section { margin-top: 0; padding-top: 0; border-top: 0; }
[data-score-group="technology-investment"] .technology-usage-group { margin-top: 15px; }
[data-score-group="technology-investment"] .band-score-row { grid-template-columns: 56px repeat(var(--band-count), minmax(0, 1fr)); }
.rule-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.rule-columns > div { border: 1px solid #e5edf4; border-radius: 9px; padding: 11px; display: flex; flex-direction: column; gap: 6px; }
.rule-columns b { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.rule-columns .accept { color: var(--green); }
.rule-columns .reject { color: var(--red); }
.rule-columns span { color: #63788b; font-size: 9px; line-height: 1.4; }
.evidence-line { margin-top: 11px; color: #6d8194; font-size: 9px; }
.evidence-line b { color: #4d667d; margin-right: 11px; }

table { width: 100%; border-collapse: collapse; min-width: 580px; background: #fff; }
th { background: #edf5fc; color: #4c667e; text-align: left; font-size: 9px; font-weight: 820; padding: 11px 13px; border-bottom: 1px solid #d6e4ef; white-space: nowrap; }
td { color: #536a7f; font-size: 9px; padding: 10px 13px; border-bottom: 1px solid #edf2f6; vertical-align: top; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdff; }
.report-footer { margin-top: 58px; border-top: 1px solid #d7e4ef; padding-top: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: #8598aa; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; padding: 7px; gap: 2px; box-shadow: none; }
.brand-mark.small i { width: 3px; }
.brand-mark.small i:nth-child(1) { height: 7px; }
.brand-mark.small i:nth-child(2) { height: 12px; }
.brand-mark.small i:nth-child(3) { height: 9px; }
.report-footer p { margin: 0; font-size: 9px; }
.report-footer p b { color: var(--blue); }
.report-footer small { font-size: 8px; }

@media (max-width: 1050px) {
  .site-header { padding: 0 24px; }
  .dashboard, .composer, .hero-inner, .results { margin-left: 24px; margin-right: 24px; }
  .hero-inner { grid-template-columns: .82fr 1.18fr; gap: 35px; }
  .brand small { display: none; }
}

@media (max-width: 820px) {
  .composer-body { grid-template-columns: 1fr; }
  .personnel-criteria-list { grid-template-columns: 1fr; }
  .history-card { grid-template-columns: 42px minmax(0, 1fr) 120px 20px 52px; }
  .history-card-date { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { text-align: center; }
  .eyebrow, .trust-row { justify-content: center; }
  .hero-copy > p { font-size: 14px; }
  .desktop-break { display: none; }
  .workflow-strip { padding: 24px; gap: 12px; }
  .workflow-strip > div { min-width: 0; }
  .workflow-strip > i { display: none; }
  .warning-grid { grid-template-columns: 1fr; }
  .result-topline { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { height: 66px; padding: 0 16px; }
  .brand-logo-frame { width: 150px; height: 27px; }
  .brand > span:last-child { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .model-badge { font-size: 9px; padding: 8px 10px; }
  .header-actions .model-badge { display: none; }
  .login-panel { padding: 32px 20px; }
  .login-card h2 { font-size: 26px; }
  .dashboard, .composer, .hero-inner, .results { margin-left: 15px; margin-right: 15px; }
  .dashboard { padding-top: 34px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .dashboard-heading h1, .composer-heading h1 { font-size: 25px; }
  .new-pq-button { width: 100%; }
  .history-overview { align-items: flex-start; flex-direction: column; gap: 8px; }
  .history-card { grid-template-columns: 38px minmax(0, 1fr) 18px 48px; gap: 12px; padding: 16px 14px; }
  .history-card-icon { width: 38px; height: 38px; }
  .history-card-score { display: none; }
  .composer { padding-top: 28px; }
  .composer-heading { align-items: flex-start; }
  .composer-guide { padding: 28px 22px; }
  .hero-inner { padding: 42px 0 48px; gap: 38px; }
  .hero h1 { font-size: 37px; }
  .trust-row { gap: 10px; }
  .upload-shell { padding: 20px 16px; border-radius: 17px; }
  .file-card { grid-template-columns: 22px 40px 1fr; padding: 12px 10px; }
  .file-action { grid-column: 3; justify-self: start; padding: 6px 9px; }
  .file-copy .file-name { max-width: 185px; }
  .upload-footnote { flex-direction: column; gap: 5px; }
  .workflow-strip { justify-content: space-between; padding: 20px 15px; }
  .workflow-strip > div { display: block; text-align: center; }
  .workflow-strip b { margin: 0 auto 7px; }
  .workflow-strip small { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .tech-card { padding: 14px 10px; }
  .technician-scoring-head { align-items: stretch; flex-direction: column; }
  .technician-scoring-head button { width: 100%; }
  .technician-score-meta, .technician-score-tabs { padding-left: 14px; padding-right: 14px; }
  .technician-interim-summary { margin-left: 14px; margin-right: 14px; }
  .technician-interim-total { grid-template-columns: 1fr; gap: 6px; }
  .technician-interim-total > p { text-align: left; }
  .technician-interim-roles { grid-template-columns: 1fr; }
  .technician-interim-roles article { border-right: 0; border-bottom: 1px solid #dce9f3; }
  .technician-interim-roles article:last-child { border-bottom: 0; }
  .technician-score-table-wrap { padding-left: 14px; padding-right: 14px; }
  .technician-project-modal { padding: 12px; }
  .technician-project-dialog { max-height: calc(100vh - 24px); border-radius: 14px; }
  .technician-project-dialog > header, .technician-project-modal-content { padding-left: 15px; padding-right: 15px; }
  .technician-project-dialog > header h3 { font-size: 18px; }
  .technician-project-modal-summary > button { width: 100%; margin-left: 0; }
  .technician-project-edit-row { grid-template-columns: 1fr; }
  .technician-project-edit-row > div { justify-content: flex-end; }
  .technician-project-failure-list > span { grid-template-columns: 1fr; }
  .technician-project-editor-actions { bottom: -25px; }
  .technician-project-editor-actions button { flex: 1; }
  .result-topline h2 { font-size: 22px; }
  .result-actions { width: 100%; justify-content: space-between; }
  .rule-columns { grid-template-columns: 1fr; }
  .supplemental-score-section .band-score-row { grid-template-columns: 68px repeat(var(--band-count), minmax(0, 1fr)); }
  .supplemental-score-section .band-score-row > * { padding: 8px 5px; font-size: 8px; }
  .report-footer { grid-template-columns: auto 1fr; }
  .report-footer > small { grid-column: 1 / -1; }
}

/* Readability: keep the layout, raise small body copy to a comfortable size. */
.brand small, .page-label, .result-kicker, .step-label { font-size: 11px; }
.dashboard-heading p, .result-topline p, .summary-panel p { font-size: 14px; }
.history-message, .history-overview span, .history-overview small, .history-overview p,
.history-empty button, .back-button, .new-result-button, .composer-guide > p,
.guide-steps span, .file-action, .sample-button, .system-message,
.workflow-strip span, .confidence, .result-actions button { font-size: 12px; }
.history-card-main > small, .history-card-main > span,
.history-card-score small, .history-card-date small, .history-card-date b,
.guide-steps small, .privacy-note small, .file-size, .upload-footnote,
.workflow-strip small, .summary-panel small, .metric p, .source,
.supplemental-score-notes, .report-footer small { font-size: 10px; }
.history-card-main > strong { font-size: 16px; }
.history-card-score b, .history-empty p, .file-copy p { font-size: 13px; }
.metric > span, .section-heading p, .warning-grid p,
.tech-card dd, .target-work, .formula, .rule-columns span,
.evidence-line, th, td { font-size: 12px; }
.warning-grid b, .tech-card-head span, .tech-card dt, .consequence,
.recognition-title span, .rule-columns b,
.criterion-basis .target-work b, .tech-score-heading span,
.rule-toggle { font-size: 11px; }
.tech-card-head b, .tech-score-group h5,
.role-summary-card .band-score-row > *,
.supplemental-score-section .band-score-row > * { font-size: 10px; }
.band-score-row > *, .band-score-values > span { font-size: 11px; }
.recognition-title h4 { font-size: 17px; }
.report-footer p { font-size: 11px; }

@media print {
  body { background: #fff; }
  .site-header, .dashboard, .composer, .hero, .workflow-strip, .result-navigation, .result-actions, .technician-project-modal { display: none !important; }
  .results { margin: 0; max-width: none; }
  .result-section { margin-top: 30px; }
  .metric, .tech-card, .recognition-card { box-shadow: none; }
  .rule-toggle { display: none !important; }
  .recognition-details[hidden] { display: block !important; }
  .tech-score-tables[hidden] { display: block !important; }
}
