:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #172033; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #175cd3; }
button, .button { border: 0; border-radius: .55rem; padding: .7rem 1rem; background: #175cd3; color: white; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .5; cursor: wait; }
.secondary { background: #e7eef9; color: #17345f; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #102a56; color: white; padding: 1.2rem max(1rem, calc((100% - 1400px)/2)); }
.site-header h1, .site-header p { margin: 0; }
.site-header nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.site-header form { margin: 0; }
.container { max-width: 1400px; margin: auto; padding: 1.25rem; display: grid; gap: 1rem; }
.card { background: white; border: 1px solid #dce3ee; border-radius: .8rem; padding: 1.1rem; box-shadow: 0 2px 10px #102a5610; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 1rem; }
.stats article { display: grid; gap: .4rem; }
.stats strong { font-size: 1.8rem; }
.actions { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
#linkedin-review-form { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
.eyebrow { color: #42628f; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: #60708a; }
.error { background: #fee4e2; color: #912018; padding: .7rem; border-radius: .5rem; }
label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #b8c4d6; border-radius: .45rem; padding: .65rem; font: inherit; background: white; }
.filters, .form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: .8rem; align-items: end; }
.wide { grid-column: 1 / -1; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
th, td { border-bottom: 1px solid #e3e8ef; padding: .7rem; text-align: left; vertical-align: top; }
th { color: #52627a; font-size: .78rem; text-transform: uppercase; }
td .actions { display: flex; gap: .35rem; flex-wrap: wrap; }
td button, td .button { padding: .4rem .6rem; font-size: .78rem; }
.score-error { color: #b42318; }
.pager { display: flex; justify-content: center; align-items: center; gap: .8rem; padding-top: 1rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 420px; background: #172033; color: white; border-radius: .6rem; padding: .8rem 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.visible { opacity: 1; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: #eaf0fa; }
.login-card { width: min(420px, 100%); }
.login-card form { display: grid; gap: 1rem; }
.detail { max-width: 900px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; }
@media (max-width: 850px) { .stats { grid-template-columns: repeat(2, 1fr); } .filters, .form-grid { grid-template-columns: 1fr; } .wide { grid-column: auto; } .site-header { align-items: flex-start; flex-direction: column; } }

[hidden] { display: none !important; }
.container > *, .workspace-view > * { min-width: 0; }
.workspace-view { display: grid; gap: 1rem; }
.site-header .eyebrow { color: #c0d6f7; }
.demo-label { border: 1px solid #8095b8; border-radius: .3rem; margin-left: .6rem; padding: .12rem .35rem; font-size: .65rem; letter-spacing: .03em; }
.header-link { color: #d7e5fa; font-size: .85rem; margin-left: .4rem; }
.demo-notice { font-size: .8rem; margin: 0; color: #60708a; line-height: 1.6; }
.text-button { padding: 0; color: #175cd3; background: transparent; text-decoration: underline; font-size: inherit; font-weight: 600; }
#storage-message:empty { display: none; }
.workspace-nav { display: flex; gap: .5rem; border-bottom: 1px solid #dce3ee; padding-bottom: .6rem; }
.workspace-nav button[aria-current] { background: #175cd3; color: white; }
.search-bar, .section-heading, .dialog-header, .document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-bar h2 { font-size: 1rem; margin: 0 0 .4rem; }
.search-bar p { margin: 0; font-size: .85rem; }
.section-heading h2 { margin: 0 0 1rem; }
.section-heading p { font-size: .85rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.count { display: inline-block; font-size: .75rem; background: #e7eef9; color: #17345f; border-radius: 1rem; padding: .2rem .5rem; margin-left: .5rem; }
#review-form { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; }
#add-job-form, #add-board-form { margin-top: 1rem; }
table { font-size: .85rem; }
td { padding: .7rem .5rem; }
td:first-child { white-space: nowrap; font-size: .75rem; color: #60708a; }
td:nth-child(2) { min-width: 110px; }
td:nth-child(3) { min-width: 170px; }
td:nth-child(5) { min-width: 75px; }
td:nth-child(6) { min-width: 120px; }
td:nth-child(7) { min-width: 100px; max-width: 160px; }
td:nth-child(8) { min-width: 210px; max-width: 240px; }
td .actions { align-items: center; }
td button { font-size: .75rem; }
.role-link, .score-link { background: transparent; color: #175cd3; padding: 0; text-align: left; font-weight: 650; }
.role-link { text-decoration: underline; }
.location { display: block; padding-top: .35rem; line-height: 1.5; font-size: .75rem; }
button:disabled { cursor: default; }
dialog { width: min(850px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid #dce3ee; border-radius: .8rem; padding: 1.5rem; color: #172033; }
dialog::backdrop { background: #102a5699; }
.dialog-header { align-items: start; }
.dialog-header h2 { margin-top: 0; }
.dialog-header .eyebrow { margin-top: .15rem; }
dialog section { margin-top: 1.2rem; border-top: 1px solid #e3e8ef; }
.detail-form { display: grid; gap: 1rem; }
.detail-form button { justify-self: start; }
#detail-actions { margin-top: 1rem; }
.evidence-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid #e3e8ef; padding: .8rem 0; font-size: .85rem; }
.evidence-row p { margin: 0; }
.document-dialog { width: min(1100px, calc(100% - 2rem)); background: #f3f6fb; }
.document-toolbar { padding: .8rem 0; border-top: 1px solid #dce3ee; border-bottom: 1px solid #dce3ee; flex-wrap: wrap; }
.document-tabs { display: flex; gap: .4rem; }
.document-tabs button[aria-pressed="true"] { background: #175cd3; color: white; }
.document-source { font-size: .8rem; }
.document-paper { background: white; border: 1px solid #dce3ee; max-width: 816px; margin: 1.2rem auto; padding: 3rem 3.5rem; box-shadow: 0 3px 12px #102a5610; font: 14px/1.6 Arial, sans-serif; }
.document-paper h1 { font-size: 29px; color: #102a56; margin: .8rem 0; }
.document-paper h3 { font-size: 13px; letter-spacing: .03em; color: #102a56; margin: 1.3rem 0 .5rem; }
.document-paper .prose { line-height: 1.6; margin: .5rem 0 1.2rem; }
.paper-disclosure { font-size: .7rem; color: #60708a; border-top: 1px solid #dce3ee; padding-top: .5rem; }
.paper-contact { font-size: .8rem; color: #60708a; }
.document-footnote { font-size: .75rem; text-align: center; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.comparison { padding: 1rem; border: 1px solid #dce3ee; border-radius: .5rem; background: white; min-width: 0; }
.comparison:nth-child(2) { border-color: #abc7eb; }
.comparison h4 { margin-top: 0; font-size: .85rem; }
.comparison p { font-size: .85rem; }
.change-note { border-left: 3px solid #438566; background: #edf6f1; padding: 1rem; line-height: 1.6; }
.resume-record { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; flex-wrap: wrap; }
.resume-record h3, .resume-record p { margin: .3rem 0; }
.resume-record > div:nth-child(2) { flex: 1; min-width: 220px; }
.file-icon { padding: 1.5rem .9rem; background: #e7eef9; color: #17345f; border-radius: .5rem; font-weight: 750; font-size: .9rem; }
.resume-metadata { display: flex; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid #e3e8ef; padding-top: 1rem; font-size: .8rem; color: #60708a; }
.resume-metadata strong { display: block; color: #172033; margin-bottom: .3rem; }
.master-preview { background: #f3f6fb; padding: .2rem 1rem; border-radius: .5rem; }
.artifact-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding: 1rem 0; border-top: 1px solid #e3e8ef; }
.artifact-row p { margin: .4rem 0 0; font-size: .85rem; }
.about-list { padding-left: 1.25rem; line-height: 1.7; }
.about-list li { margin: .8rem 0; }
.workspace-nav .text-button { margin-left: auto; font-size: .8rem; }
.generation-panel { background: white; border: 1px solid #dce3ee; border-radius: .6rem; padding: 1.2rem; margin: 1rem 0; }
.generation-heading { display: flex; align-items: center; gap: .7rem; }
.generation-heading h3 { margin: 0; font-size: 1rem; }
.generation-panel p { font-size: .85rem; color: #52627a; line-height: 1.6; min-height: 2.8em; }
.generation-panel progress { width: 100%; height: .65rem; accent-color: #175cd3; }
.generation-panel ol { display: flex; gap: .75rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; }
.generation-panel li { color: #8a96a8; font-size: .75rem; }
.generation-panel li::before { content: "○ "; }
.generation-panel li.current { color: #175cd3; font-weight: 700; }
.generation-panel li.current::before { content: "◉ "; }
.generation-panel li.complete { color: #347456; }
.generation-panel li.complete::before { content: "✓ "; }
.activity-spinner { width: 1rem; height: 1rem; border: 2px solid #dce3ee; border-top-color: #175cd3; border-radius: 50%; animation: activity .75s linear infinite; flex-shrink: 0; }
@keyframes activity { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .activity-spinner { animation: none; } }
:focus-visible { outline: 3px solid #79a8ec; outline-offset: 3px; }
@media (max-width: 850px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .section-heading, .search-bar { align-items: start; flex-direction: column; }
  .evidence-row { grid-template-columns: 1fr; gap: .3rem; }
  .document-paper { padding: 1.5rem; }
  .document-toolbar { align-items: start; }
}
@media (max-width: 650px) {
  .container { padding: .8rem; }
  .card { padding: .9rem; }
  .stats { gap: .7rem; }
  .site-header nav { gap: .45rem; }
  .site-header nav .secondary { padding: .55rem .65rem; font-size: .8rem; }
  dialog { padding: 1rem; }
  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: .8rem; }
  tr { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; border: 1px solid #dce3ee; border-radius: .5rem; padding: .8rem; }
  td { display: block; padding: 0; border: 0; min-width: 0 !important; max-width: none !important; }
  td:first-child { order: 1; }
  td:nth-child(2) { order: 2; text-align: right; font-weight: 650; }
  td:nth-child(3) { order: 3; grid-column: 1 / -1; font-size: 1rem; }
  td:nth-child(4) { order: 4; }
  td:nth-child(5) { order: 5; }
  td:nth-child(6) { order: 6; grid-column: 1 / -1; }
  td:nth-child(7) { order: 7; grid-column: 1 / -1; }
  td:nth-child(8) { order: 8; grid-column: 1 / -1; padding-top: .5rem; border-top: 1px solid #e3e8ef; }
  td:nth-child(4)::before, td:nth-child(5)::before, td:nth-child(6)::before, td:nth-child(7)::before { content: attr(data-label); display: block; color: #60708a; font-size: .7rem; text-transform: uppercase; padding-bottom: .3rem; }
  td .actions { gap: .4rem; }
  td .actions button { padding: .5rem .65rem; font-size: .8rem; }
  .master-preview { padding: 0; background: transparent; }
  .master-preview .document-paper { padding: 1rem; border: 0; box-shadow: none; }
  .document-paper { padding: 1.2rem; font-size: 12px; }
  .document-paper h1 { font-size: 25px; }
  .document-tabs button { font-size: .8rem; padding: .6rem; }
  .pager { font-size: .8rem; gap: .5rem; }
}
