/* Landscaper Contact Collector: static mockup styles */
:root {
  --bg: #F3F5F1; --surface: #FFFFFF; --line: #DCE2DA; --line-soft: #EDF0EC;
  --ink: #14261F; --muted: #55655D; --control: #C5CFC6;
  --side: #12281F; --side-active: #24473A; --side-text: #C9D8CE; --side-muted: #A9BDB0;
  --accent: #1A7046; --accent-dark: #0F4D2F; --accent-tint: #E3F1E8; --accent-wash: #F3FAF5;
  --warn-bg: #FBEFD9; --warn-line: #E9CF9C; --warn-ink: #5E3305;
  --ref-bg: #E4ECFA; --ref-ink: #1B3F85; --self-bg: #FCE9D6; --self-ink: #7A3A08; --self-line: #E8BE93;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
h1, h2, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #2F6FD0; outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-name { display: block; font-weight: 700; font-size: 16px; color: #FFFFFF; }
.brand-sub { display: block; font-size: 13px; color: var(--side-muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 500; }
.nav a:hover { background: #1B382D; color: #FFFFFF; }
.nav a[aria-current="page"] { background: var(--side-active); color: #FFFFFF; font-weight: 600; }
.sample { margin-top: auto; padding: 10px 12px; border: 1px solid #35584A; border-radius: 8px; color: var(--side-muted); font-size: 13px; }

.main { min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn:disabled { background: #E4E9E3; color: var(--muted); cursor: default; border-color: var(--control); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card h2 { font-size: 18px; font-weight: 600; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); gap: 10px; }
.card-warn a { color: var(--warn-ink); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--accent-tint); color: var(--accent-dark); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.pill-ref { background: var(--ref-bg); color: var(--ref-ink); }
.pill-self { background: var(--self-bg); color: var(--self-ink); border: 1px solid var(--self-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.run-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.progress { height: 8px; border-radius: 4px; background: #E4E9E3; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stage { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stage-state { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.stage-name { font-weight: 600; }
.stage-num { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.stage-now { border: 2px solid var(--accent); padding: 15px; background: var(--accent-wash); }
.stage-wait { border-style: dashed; border-color: var(--control); }
.stage-wait .stage-state, .stage-wait .stage-num { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
th.num, .num a { font-family: var(--sans); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.strong { font-weight: 600; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.t-runs { min-width: 560px; } .t-contacts { min-width: 940px; } .t-groups { min-width: 820px; }

.facts { display: flex; flex-direction: column; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.facts .total { padding-top: 12px; border-top: 1px solid var(--line-soft); }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { min-height: 44px; width: 100%; padding: 0 14px; border-radius: 8px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: inherit; }
.add-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.add-row .field { flex: 1 1 320px; }
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.tile b { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--ink); }
.tile-ok b { color: var(--accent-dark); }
.tile-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.tile-warn b { color: var(--warn-ink); }
.check { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.conns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.conn { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.conn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.chips-keep li { background: var(--accent-tint); color: var(--accent-dark); font-weight: 500; }
.chips-skip li { border: 1px solid var(--control); }
.group { display: flex; flex-direction: column; gap: 8px; }
.rules { gap: 0; }
.rules h2 { margin-bottom: 8px; }
.rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rule:last-child { border-bottom: 0; padding-bottom: 0; }
.rule input { margin-top: 3px; }
.rule b { display: block; font-weight: 600; }
.rule span span { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 14px; max-width: 760px; }

@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .halves { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { gap: 16px; padding: 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sample { margin-top: 0; }
  .main { padding: 24px 16px 40px; }
  .filters, .tiles, .conns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .stages, .fields { grid-template-columns: minmax(0, 1fr); }
}
