:root {
  --navy: #092b45;
  --navy-2: #123d59;
  --ink: #173449;
  --muted: #687d8d;
  --line: #d8e5ea;
  --paper: #f4f8f7;
  --white: #ffffff;
  --aqua: #46d8c3;
  --aqua-soft: #dff6f0;
  --orange: #ffb263;
  --orange-soft: #fff0dc;
  --red: #df6c64;
  --shadow: 0 18px 44px rgba(9, 43, 69, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; background: var(--paper); }

a { color: inherit; }

button, input, select { font: inherit; }

.topbar {
  min-height: 74px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: var(--navy);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(70, 216, 195, .65);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 25px;
  line-height: 1;
}
.brand-kicker, .eyebrow, .section-index, .note-label, .sort-field span, .select-field > span, legend, .number-field > span, .method-note, .data-points span {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.brand-kicker { display: block; color: #86a8ba; font-size: 10px; }
.brand-name { display: block; margin-top: 1px; font-weight: 750; font-size: 16px; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: #b9d0db; font-size: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(70,216,195,.12); }
.meta-divider { color: #5f8799; }

main { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) 48px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 48px;
  padding: 52px 0 38px;
}
.eyebrow { margin: 0 0 13px; color: #159c96; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 790px; margin-bottom: 14px; color: var(--navy); font-size: clamp(32px, 4.3vw, 62px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.intro-copy { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.intro-note { padding: 18px 20px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #775123; font-size: 14px; line-height: 1.45; }
.intro-note .note-label { display: block; margin-bottom: 4px; color: #a27037; font-size: 10px; }
.intro-note strong { display: block; color: #5c3a16; font-size: 17px; }

.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 28px; }
.filter-panel, .results-panel { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.filter-panel { padding: 24px; }
.panel-heading, .results-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.panel-heading { margin-bottom: 26px; }
.panel-heading h2, .results-toolbar h2, .data-section h2 { margin: 4px 0 0; color: var(--navy); font-size: 22px; letter-spacing: -.025em; }
.section-index { color: #10a399; font-size: 11px; }
.reset-button { padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.reset-button:hover { color: var(--navy); }

fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 10px; color: var(--navy); font-size: 11px; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.number-field { display: grid; gap: 6px; }
.number-field.full-width { grid-column: 1 / -1; }
.number-field > span, .select-field > span { color: var(--muted); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 650; }
.number-field small { color: #95a6af; font-weight: 500; font-size: 11px; }
input[type="number"], input[type="date"], select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #cbdde3; border-radius: 9px; color: var(--ink); background: #fbfdfd; outline: none; }
input:focus, select:focus { border-color: #24b7ad; box-shadow: 0 0 0 3px rgba(36,183,173,.14); }
.select-field { display: grid; gap: 6px; margin-bottom: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 13px; line-height: 1.35; cursor: pointer; }
.check-line input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #15a69d; }
.atout-panel { margin: -2px 0 24px; padding: 15px; border: 1px solid #b8e9df; border-radius: 12px; background: linear-gradient(135deg, #e9fbf7, #f8fffd); }
.atout-panel-heading { display: flex; align-items: center; gap: 10px; }
.atout-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--navy); background: var(--aqua); font-size: 13px; font-weight: 850; }
.atout-panel-heading strong, .atout-panel-heading span { display: block; }
.atout-panel-heading strong { color: var(--navy); font-size: 14px; }
.atout-panel-heading span { margin-top: 2px; color: #4c7b80; font-size: 11px; line-height: 1.25; }
.atout-panel > p { margin: 14px 0 10px; color: #25656a; font-size: 12px; line-height: 1.4; }
.atout-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.atout-examples div { padding: 9px 8px; border-radius: 8px; background: rgba(255,255,255,.75); }
.atout-examples strong, .atout-examples span { display: block; }
.atout-examples strong { color: var(--navy); font-size: 18px; letter-spacing: -.03em; }
.atout-examples span { margin-top: 2px; color: #5d7c83; font-size: 10px; line-height: 1.25; }
.atout-panel > small { display: block; margin-top: 11px; color: #65838a; font-size: 10px; line-height: 1.35; }
.atout-panel > a { display: inline-block; margin-top: 9px; color: #087f79; font-size: 11px; font-weight: 750; text-decoration: none; }
.atout-panel > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.timecard-panel { margin: -2px 0 24px; padding: 15px; border: 1px solid #f1d1a7; border-radius: 12px; background: linear-gradient(135deg, #fff8ed, #fffdf9); }
.timecard-panel-heading { display: flex; align-items: center; gap: 10px; }
.timecard-mark { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 10px; color: #6b451d; background: var(--orange); font-size: 11px; font-weight: 850; }
.timecard-panel-heading strong, .timecard-panel-heading span { display: block; }
.timecard-panel-heading strong { color: var(--navy); font-size: 14px; }
.timecard-panel-heading span { margin-top: 2px; color: #927047; font-size: 11px; line-height: 1.25; }
.timecard-panel > p { margin: 14px 0 10px; color: #79562d; font-size: 12px; line-height: 1.4; }
.timecard-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timecard-examples div { padding: 9px 8px; border-radius: 8px; background: rgba(255,255,255,.78); }
.timecard-examples strong, .timecard-examples span { display: block; }
.timecard-examples strong { color: var(--navy); font-size: 18px; letter-spacing: -.03em; }
.timecard-examples span { margin-top: 2px; color: #806e57; font-size: 10px; line-height: 1.25; }
.timecard-panel > small { display: block; margin-top: 11px; color: #8d7b64; font-size: 10px; line-height: 1.35; }
.timecard-panel > a { display: inline-block; margin-top: 9px; color: #a26724; font-size: 11px; font-weight: 750; text-decoration: none; }
.timecard-panel > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.method-note { display: flex; gap: 10px; align-items: flex-start; margin: 26px -24px -24px; padding: 17px 24px; border-top: 1px solid var(--line); color: #718591; font-size: 12px; letter-spacing: 0; text-transform: none; line-height: 1.45; font-weight: 500; }
.method-note p { margin: 0; }
.method-icon { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #9db5c0; border-radius: 50%; color: #63818f; font-size: 12px; font-weight: 800; }

.results-panel { min-width: 0; padding: 26px; }
.results-toolbar { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.results-toolbar h2 { display: inline-block; margin-right: 8px; }
.results-toolbar p { display: inline; color: var(--muted); font-size: 14px; }
.sort-field { display: grid; gap: 6px; min-width: 175px; }
.sort-field span { color: var(--muted); font-size: 10px; }
.sort-field select { min-height: 39px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }

.winner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 22px 0 16px; padding: 20px 22px; border: 1px solid #b8e9df; background: linear-gradient(120deg, #e9fbf7, #f8fffd); }
.winner-label { margin-bottom: 7px; color: #078f86; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.winner h3 { margin-bottom: 4px; color: var(--navy); font-size: 23px; letter-spacing: -.03em; }
.winner p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.winner-price { text-align: right; }
.winner-price strong { display: block; color: var(--navy); font-size: 31px; letter-spacing: -.04em; }
.winner-price span { color: #5b7a83; font-size: 12px; }

.results-list { display: grid; gap: 10px; }
.result-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); background: var(--white); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.result-card:hover { border-color: #87d8d0; box-shadow: 0 10px 24px rgba(9,43,69,.07); transform: translateY(-1px); }
.rank { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #507081; background: #edf4f6; font-size: 12px; font-weight: 800; }
.card-main { min-width: 0; }
.card-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-title-line h3 { margin: 0; color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.town { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.open { color: #168f7f; background: var(--aqua-soft); }
.status.check { color: #9a6c2d; background: var(--orange-soft); }
.status.closed { color: #a85f5a; background: #fde9e7; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.tag { padding: 3px 7px; border-radius: 5px; background: #f1f6f7; }
.tag.highlight { color: #087f79; background: var(--aqua-soft); }
.tag.sun { color: #9a6c2d; background: var(--orange-soft); }
.tag.atout-tag { color: #087f79; background: #c8f1e9; }
.tag.time-tag { color: #9a6c2d; background: #ffe7c5; }
.tag.entry-tag { color: #496a8d; background: #e5edf7; }
.card-note { margin: 8px 0 0; color: #748995; font-size: 12px; }
.card-price { min-width: 190px; text-align: right; }
.card-price strong { display: block; color: var(--navy); font-size: 23px; letter-spacing: -.035em; }
.card-price span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.price-breakdown { display: grid; gap: 4px; margin-top: 8px; }
.price-option { display: block; padding: 4px 6px; border-radius: 6px; color: #748995; background: #f2f7f8; font-size: 10px; line-height: 1.25; }
.price-option b { color: #587680; font-size: 10px; }
.price-option small { display: block; margin-top: 1px; color: #879ba3; font-size: 9px; }
.price-option.selected { color: #087f79; background: var(--aqua-soft); }
.price-option.selected b { color: #087f79; }
.price-option.atout { border-left: 2px solid var(--aqua); }
.price-option.timecard { border-left: 2px solid var(--orange); }
.price-option.timecard.selected { color: #8a5a22; background: #fff0dc; }
.price-option.timecard.selected b { color: #8a5a22; }
.price-option.entrycard { border-left: 2px solid #8aaed1; }
.price-option.entrycard.selected { color: #3e638a; background: #e5edf7; }
.price-option.entrycard.selected b { color: #3e638a; }
.winner-price { min-width: 210px; }
.winner-price .price-breakdown { text-align: left; }
.winner-price .price-option { text-align: left; }
.card-link { display: inline-block; margin-top: 7px; color: #118f88; font-size: 12px; font-weight: 750; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 36px 20px; border: 1px dashed #b8cdd5; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 18px; }

.data-section { display: grid; grid-template-columns: minmax(0, 1fr) 1.25fr; gap: 60px; align-items: center; margin-top: 32px; padding: 28px 30px; border: 1px solid var(--line); background: #eaf4f5; }
.data-section p { max-width: 620px; margin: 10px 0 0; color: #5d7581; font-size: 15px; line-height: 1.5; }
.data-points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.data-points div { padding-left: 15px; border-left: 2px solid #8adbd1; }
.data-points strong { display: block; color: var(--navy); font-size: 27px; letter-spacing: -.04em; }
.data-points span { display: block; margin-top: 3px; color: #66808b; font-size: 10px; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 21px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: #77909b; background: #eaf1f2; font-size: 12px; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
  .filter-panel, .results-panel { padding: 20px; }
  .method-note { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .data-section { gap: 30px; }
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .topbar-meta { font-size: 12px; }
  .intro { display: block; padding: 36px 0 26px; }
  h1 { font-size: clamp(34px, 10vw, 52px); }
  .intro-note { max-width: 340px; margin-top: 24px; }
  .workspace { display: block; }
  .filter-panel { margin-bottom: 18px; }
  .results-panel { padding: 18px; }
  .results-toolbar { display: block; }
  .sort-field { max-width: 230px; margin-top: 16px; }
  .winner { grid-template-columns: 1fr; }
  .winner-price { text-align: left; }
  .result-card { grid-template-columns: 30px minmax(0, 1fr); }
  .card-price { grid-column: 2; min-width: 0; text-align: left; }
  .card-price strong { display: inline-block; margin-right: 7px; }
  .card-price span { display: inline; }
  .card-price .price-breakdown { display: grid; }
  .card-price .price-option { display: block; }
  .data-section { display: block; padding: 22px; }
  .data-points { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 420px) {
  main { padding-left: 14px; padding-right: 14px; }
  .people-grid { grid-template-columns: 1fr; }
  .number-field.full-width { grid-column: auto; }
  .data-points { grid-template-columns: 1fr; gap: 12px; }
}
