@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("/samples/archivo.woff2") format("woff2-variations"), url("/samples/archivo.woff2") format("woff2"); }
:root {
  color-scheme: light;
  font-family: Archivo, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #0f1b2d;
  background: #f4f6f9;
  --ink: #0f1b2d;
  --muted: #4a5668;
  --line: #d9dfe8;
  --accent: #0f1b2d;
  --lantern: #ffc21a;
  --lantern-hover: #f2b200;
  --wash: #fff4cf;
  --paper: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, summary, .file-button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #0f1b2d; outline-offset: 3px; }
.skip { position: absolute; left: .75rem; top: .75rem; translate: 0 -200%; z-index: 2; padding: .5rem; background: white; color: var(--ink); }
.skip:focus { translate: 0; }
.masthead { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.masthead-inner, .wrap { width: min(1280px, calc(100% - 64px)); margin: auto; }
.masthead-inner { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; }
.brand-icon { flex: none; }
.privacy { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .81rem; }
.privacy span { width: .48rem; height: .48rem; border-radius: 50%; background: #18884d; }
.wrap { padding: 30px 0 54px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; line-height: 1.03; margin-bottom: .65rem; }
h2 { font-size: 1.24rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
.page-heading p { color: var(--muted); line-height: 1.55; }
.heading-actions, .page-controls { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.button { text-decoration: none; min-height: 39px; display: inline-flex; justify-content: center; align-items: center; padding: .52rem .78rem; border-radius: 7px; font-size: .84rem; font-weight: 650; color: var(--ink); border: 1px solid transparent; background: transparent; text-align: center; line-height: 1.35; }
.secondary { background: var(--paper); border-color: #c5cfdc; }
.secondary:hover:not(:disabled) { background: #eef1f5; }
.primary { color: var(--ink); background: var(--lantern); border-color: var(--lantern); }
.primary:hover { background: var(--lantern-hover); border-color: var(--lantern-hover); }
.text-button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { background: #eef1f5; }
.file-button { position: relative; }
.file-button:focus-within { outline: 3px solid #0f1b2d; outline-offset: 3px; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.layout { display: grid; grid-template-columns: minmax(285px, 330px) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px #0f1b2d12; }
.examples { padding: 10px 13px; margin-bottom: 17px; }
.examples > summary { display: list-item; width: fit-content; }
.example-options, .example-files, .report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.example-options { margin-top: 7px; }
.example-options button { min-height: 32px; padding: .34rem .62rem; }
.example-options button[aria-pressed=true] { background: var(--wash); border-color: var(--lantern); color: var(--ink); }
.example-footer { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; margin-top: 2px; }
.example-footer .quiet { font-size: .79rem; }
.example-files .button { min-height: 28px; padding: .28rem .38rem; font-size: .74rem; }
.setup { padding: 17px; min-width: 0; }
.quiet { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.setup-intro { margin: 4px 0 13px; }
.file-card { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; background: #f7f9fc; }
.file-label { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: .35rem; }
.file-label, .field, .check-field { font-weight: 600; font-size: .84rem; }
.file-format { font-size: .65rem; letter-spacing: .045em; color: var(--muted); background: #e8edf3; padding: 2px 5px; border-radius: 3px; }
.csv-picker { min-height: 27px; padding: .28rem .5rem; font-size: .75rem; }
.file-meta { font-size: .76rem; line-height: 1.4; margin-top: .32rem; color: var(--muted); overflow-wrap: anywhere; }
.template-button { min-height: 27px; padding: .2rem .3rem .2rem 0; margin-top: .14rem; font-size: .74rem; }
details { font-size: .8rem; }
summary { color: #1d3a66; font-weight: 650; line-height: 1.5; }
.file-card summary { margin-top: .26rem; }
.mapping { display: grid; gap: .56rem; margin-top: .6rem; }
.mapping-status { margin-top: .35rem; }
.mapping-status.error { color: #a8321f; font-weight: 600; overflow-wrap: anywhere; }
.column-example { font-size: .72rem; font-weight: 400; overflow-wrap: anywhere; }
.field { display: grid; gap: .27rem; min-width: 0; }
.field input, select, input[type=search], .manual-link input { color: var(--ink); border: 1px solid #c5cfdc; background: white; border-radius: 6px; width: 100%; min-height: 36px; min-width: 0; padding: .42rem .5rem; font-size: .83rem; font-weight: 450; }
.period { margin-top: 12px; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.date-fields input { font-size: .77rem; padding-inline: .38rem; }
.coverage-hint { margin: .43rem 0 .72rem; font-size: .76rem; }
.options { padding: .48rem 0; border-top: 1px solid var(--line); }
.check-field { display: flex; align-items: start; gap: .5rem; line-height: 1.4; }
.check-field input { accent-color: var(--ink); }
.setup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.compare { flex: 1; }
#clear { font-size: .76rem; }
.results { min-width: 0; }
.notice { padding: .65rem .85rem; background: #eef1f5; border: 1px solid #d9dfe8; border-radius: 8px; color: #0f1b2d; font-size: .83rem; line-height: 1.45; margin-bottom: 11px; overflow-wrap: anywhere; }
.notice.error { background: #fdece8; border-color: #f3c2b8; color: #8f2a19; }
.empty { padding: 22px; }
.empty p { color: var(--muted); margin-top: 5px; line-height: 1.5; }
#issues { margin-top: 1rem; }
#issues ul, .evidence ul { padding-left: 1.2rem; margin: .4rem 0; }
#issues li, .evidence li { margin: .25rem 0; overflow-wrap: anywhere; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 3px 0 14px; }
.report-head .quiet { margin-top: .2rem; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.metric { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; min-width: 0; background: var(--paper); }
.metric:first-child { background: var(--wash); border-color: #f2d27a; }
.metric h3 { font-size: .77rem; font-weight: 650; color: #3d4a5c; }
.metric strong { display: block; margin: 3px 0; font-size: clamp(1.35rem, 2.8vw, 2.05rem); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.05em; overflow-wrap: anywhere; }
.metric p { font-size: .74rem; line-height: 1.35; color: var(--muted); }
.results-toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--line); }
.views { display: flex; gap: 2px; flex-wrap: wrap; }
.views button { border: 1px solid transparent; color: var(--muted); background: transparent; padding: 7px 8px; font-size: .8rem; font-weight: 630; border-radius: 6px; }
.views button:hover { background: #f2f4f8; }
.views button[aria-pressed=true] { color: #0f1b2d; background: #eef1f5; border-color: #d0d8e4; }
.views [id$="-count"] { font-size: .69rem; margin-left: .22rem; font-variant-numeric: tabular-nums; }
.results-toolbar input { max-width: 155px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
thead { background: #f6f8fb; }
th { font-size: .73rem; font-weight: 650; color: #3d4a5c; text-align: left; }
th, td { padding: 10px 12px; vertical-align: middle; }
tbody tr:not(:last-child) td, thead th { border-bottom: 1px solid #e3e8ef; }
th.money, td.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.reference { min-width: 125px; overflow-wrap: anywhere; }
.row-toggle { border: 0; background: transparent; text-align: left; color: #0f1b2d; padding: 1px 0; font-weight: 700; overflow-wrap: anywhere; }
.row-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-toggle .caret { font-size: .71em; padding-right: .32rem; }
.row-description { display: block; color: var(--muted); line-height: 1.35; font-size: .74rem; margin-top: 2px; max-width: 24rem; }
.status { display: inline-block; padding: .25rem .43rem; border-radius: 5px; background: #eef1f5; color: #3d4a5c; font-weight: 620; font-size: .72rem; white-space: nowrap; }
.status-matched, .status-linked, .status-manual { background: #e4f4ea; color: #17683d; }
.status-short, .status-excess, .status-ambiguous, .status-coverage, .status-unlinked { background: #fff4cf; color: #6b4b00; }
.status-missing { background: #fdece8; color: #9a2c18; }
.status-inline { display: none; }
.evidence { background: #f7f9fc; padding: 13px 15px; line-height: 1.5; color: #2c3a4d; overflow-wrap: anywhere; }
.evidence p + p { margin-top: .3rem; }
.evidence .text-button { margin-top: 3px; }
.manual-link { margin-top: 8px; display: flex; gap: .45rem; align-items: end; flex-wrap: wrap; }
.link-target { width: min(100%, 235px); }
.candidate-options { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.candidate-options .button { min-height: 25px; padding: .18rem .4rem; font-size: .73rem; }
.manual-link .button { min-height: 36px; }
.manual-link .candidate-options .button { min-height: 25px; }
.row-empty { padding: 19px; color: var(--muted); font-size: .85rem; }
.page-controls { justify-content: center; padding: 9px; border-top: 1px solid var(--line); font-size: .78rem; }
.page-controls button { min-height: 32px; padding: .3rem .5rem; }
.report-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 8px; flex-wrap: wrap; }
.report-foot .button { min-height: 32px; }
.save-note { font-size: .74rem; }
.follow-up-dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 19px; color: var(--ink); }
.follow-up-dialog::backdrop { background: #0f1b2db3; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 13px; }
.follow-up-dialog .field { margin-bottom: 10px; }
.follow-up-dialog textarea { resize: vertical; min-height: 170px; width: 100%; padding: .6rem; color: var(--ink); border: 1px solid #c5cfdc; border-radius: 6px; line-height: 1.55; font-weight: 400; }
.draft-actions { justify-content: end; }
#copy-status { margin-top: .35rem; min-height: 1.1rem; }

@media (max-width: 960px) {
  .masthead-inner, .wrap { width: calc(100% - 36px); }
  .layout { grid-template-columns: minmax(235px, 285px) minmax(0, 1fr); gap: 14px; }
  .setup { padding: 15px; }
  th, td { padding-inline: 8px; }
  .metric { padding-inline: 9px; }
}

@media (max-width: 700px) {
  .masthead-inner, .wrap { width: calc(100% - 28px); }
  .wrap { padding-top: 24px; }
  .page-heading { flex-direction: column; align-items: start; margin-bottom: 18px; gap: 12px; }
  .layout { grid-template-columns: 1fr; }
  .results { grid-row: 2; }
  .results-toolbar input { max-width: none; }
  .metrics { gap: 5px; }
  .metric { padding: 8px; }
  .report-head .quiet { font-size: .73rem; }
  .report-head { align-items: start; flex-wrap: wrap; }
  .privacy { font-size: .74rem; }
}

@media (max-width: 560px) {
  /* Keep reference, expected and difference visible without sideways scrolling. */
  .col-status, .col-posted { display: none; }
  .status-inline { display: table; margin-top: 5px; white-space: normal; }
  td.reference { min-width: 0; }
}

/* Hosted product: header actions, check switch, plan limit and license unlock. */
.brand { color: inherit; text-decoration: none; }
.masthead-actions { display: flex; align-items: center; gap: .9rem; }
.masthead-button { min-height: 34px; padding: .35rem .8rem; color: var(--ink); background: var(--lantern); border-color: var(--lantern); border-radius: 999px; font-size: .8rem; }
.masthead-button:hover { background: var(--lantern-hover); }
.masthead-button { white-space: nowrap; }
.masthead-button .short { display: none; }
.unlocked-badge { font-size: .78rem; font-weight: 650; color: var(--ink); background: #e4f4ea; padding: .3rem .65rem; border-radius: 999px; }
.mode-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; background: #e8edf3; border-radius: 999px; margin-bottom: 14px; }
.mode-switch button { border: 0; background: transparent; color: #3d4a5c; font-weight: 650; font-size: .84rem; padding: .42rem .95rem; border-radius: 999px; min-height: 34px; }
.mode-switch button[aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #0f1b2d24; }
.plan-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); line-height: 1.45; }
.plan-note .text-button { min-height: 0; padding: 0; font-size: .76rem; }
.locked { padding: 26px 22px 22px; border-left: 4px solid var(--lantern); }
.locked h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.locked p { color: var(--muted); max-width: 62ch; line-height: 1.5; }
.locked .report-actions { margin: 14px 0 10px; }
.unlock-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 19px; color: var(--ink); }
.unlock-dialog::backdrop { background: #0f1b2db3; }
.unlock-dialog .field { margin-bottom: 10px; }
.unlock-dialog .check-field { margin-bottom: 12px; font-weight: 500; }
#unlock-status { margin-top: .5rem; min-height: 1.1rem; }
@media (max-width: 560px) {
  .privacy { display: none; }
  .masthead-inner { min-height: 54px; }
  .masthead-button .long { display: none; }
  .masthead-button .short { display: inline; }
}
