/* Shared shell of the KADAFERHIDUP bank-simulator family: soft grey canvas, white cards with generous radius, one
   lime accent for what you can act on or what is healthy. Each console keeps its own meaning colours on top. */
:root {
  --canvas: #e9ebe6;
  --shell: #f5f6f3;
  --card: #ffffff;
  --sunk: #f4f5f1;
  --ink: #141811;
  --ink-2: #6b7066;
  --ink-3: #9aa095;
  --line: #e9ebe5;
  --lime: #c4f135;
  --lime-strong: #a6d916;
  --lime-soft: #eefad0;
  --lime-ink: #2b3a06;
  --red: #c01f26;
  --red-soft: #fde5e4;
  --amber: #d07a0d;
  --amber-soft: #fdf0dc;
  --green: #3f9a1e;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgb(20 24 17 / 4%), 0 8px 24px -12px rgb(20 24 17 / 12%);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #f3fbe0 0, transparent 60%), var(--canvas); color: var(--ink); font: 500 14.5px/1.5 var(--sans); }
a { color: inherit; }
button, input, select, textarea, output { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--lime-strong); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }

/* ---------------------------------------------------------------- shell */
.shell { max-width: 1480px; margin: 28px auto 20px; padding: 18px 22px 24px; background: var(--shell); border-radius: var(--r-xl); box-shadow: 0 30px 80px -40px rgb(20 24 17 / 25%); }
.top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 2px 4px 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); flex: none; }
.logo-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.roles { justify-self: center; display: inline-flex; gap: 4px; padding: 5px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); }
.roles button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.roles button:hover { color: var(--ink); background: var(--sunk); }
.roles button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.top-note { justify-self: center; margin: 0; padding: 10px 18px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); }
.top-right { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 14px; border: 3px solid var(--card); box-shadow: var(--shadow); text-decoration: none; }
.gh { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.gh svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gh:hover { background: var(--lime-soft); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 196px; padding: 26px 30px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(100deg, #e3f8a8 0%, #d2f36c 45%, #b9ea2b 100%); }
.hero::before { content: ""; position: absolute; inset: auto -60px -120px auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 45%), transparent 65%); pointer-events: none; }
.hero h1 { position: relative; margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.hero mark { background: var(--card); color: var(--ink); padding: 0 8px; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { position: relative; margin: 10px 0 0; max-width: 54ch; color: #3c4a16; font-size: 14px; }
.hero-art { width: 100%; max-height: 190px; justify-self: center; }
.hero-cta { position: relative; z-index: 1; display: grid; justify-items: end; gap: 6px; }

/* ---------------------------------------------------------------- cards */
.card { min-width: 0; padding: 20px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card > h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card h3 { margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
.hint, .count { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.err, .form-error { margin: 6px 0 0; color: var(--red); font-size: 13.5px; font-weight: 600; }
.err:empty, .form-error:empty { margin: 0; }
.intro { margin-top: 18px; }
.intro-card h2 { margin: 0 0 6px; font-size: 18px; }
.intro-card p { margin: 0; max-width: 76ch; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.hero-btn { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgb(43 58 6 / 50%); min-height: 52px; padding: 0 28px; }
.btn.hero-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover:not(:disabled) { background: var(--lime-strong); }
.btn.soft { background: var(--sunk); color: var(--ink); }
.btn.soft:hover:not(:disabled) { background: var(--line); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #961820; }
.btn.try { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn.try:hover:not(:disabled) { background: #fdeeee; }

label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 500; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime-strong); outline-offset: 0; background: #fff; }
textarea { min-height: 64px; resize: vertical; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sunk); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chain { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); font-weight: 700; font-size: 13.5px; background: var(--sunk); }
.chain.ok { background: var(--lime-soft); color: #3c5a07; }
.chain.bad { background: var(--red-soft); color: var(--red); }
.empty { padding: 26px 16px; border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; color: var(--ink-2); font-size: 13.5px; }

.list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.list th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 9px 10px; background: var(--sunk); }
.list th:first-child { border-radius: 10px 0 0 10px; }
.list th:last-child { border-radius: 0 10px 10px 0; }
.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .num { text-align: right; }
.scroll { overflow-x: auto; }

.actions { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed #d6ddc7; }
.actions p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.actions .row { display: flex; gap: 8px; flex-wrap: wrap; }
.steps, .audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { position: relative; padding: 0 0 0 18px; font-size: 13px; border: 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-strong); }
.steps b { font-weight: 700; }
.steps small { display: block; color: var(--ink-3); font-size: 11.5px; }
.audit li { font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit .h { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--sunk); border-radius: 999px; }
.tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tabs button:hover { color: var(--ink); background: #fff; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.foot { max-width: 1480px; margin: 0 auto; padding: 8px 24px 32px; font-size: 13px; color: var(--ink-2); }
.foot p { margin: 4px 0; }

@media (max-width: 820px) {
  .shell { margin: 0; border-radius: 0; padding: 14px; }
  .top { grid-template-columns: 1fr auto; }
  .roles, .top-note { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; }
  .roles button { flex: 1 0 auto; padding: 0 14px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-name { font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-height: 150px; }
  .hero-cta { justify-items: start; }
}

/* ---------------------------------------------------------------- rekon: one colour per kind of difference, the same
   on the summary tiles, the composition bar, the tabs and the rows. Lime is only for what matched. */
:root {
  --c-AMOUNT: #c01f26; --c-ONLY_A: #d07a0d; --c-ONLY_B: #8a4fd0; --c-STATUS: #1c5fa8;
  --c-DATE: #0f7b6c; --c-DUPLICATE: #8a6a00; --c-INVALID: #6b7066; --c-MATCH: #8fcf16;
}
.inputs { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 1180px) { .inputs { grid-template-columns: 1fr 1fr; } .rules { grid-column: 1 / -1; } }
@media (max-width: 760px) { .inputs { grid-template-columns: 1fr; } }

.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 18px; border: 2px dashed #d4dcc4; border-radius: var(--r-md); background: var(--sunk); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--lime-strong); background: var(--lime-soft); }
.drop:focus-within { outline: 3px solid var(--lime-strong); outline-offset: 2px; }
.drop.loaded { border-style: solid; border-color: var(--lime-strong); background: #fff; }
.drop-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--lime); }
.drop-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drop-main { font-weight: 700; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.drop-sub { font-size: 12.5px; color: var(--ink-2); }
.mapping { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
.mapping label select { background: #fff; }
.mapping .preview { grid-column: 1 / -1; margin: 2px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sunk); font: 12px/1.5 var(--mono); color: var(--ink-2); overflow-x: auto; white-space: pre; }

.rules label { margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime-strong); }
.btn.wide { width: 100%; margin-top: 16px; }
.privacy { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--lime-soft); color: #3c5a07; font-size: 12.5px; }

.summary, .results { margin-top: 18px; }
.sum-head, .res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-head h2, .res-head h2 { margin: 0 0 4px; font-size: 16px; }
.sum-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 18px; }
@media (max-width: 900px) { .sum-grid { grid-template-columns: 1fr; } }
.big { padding: 20px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.big-label { margin: 0; color: #b9c0ae; font-size: 13px; font-weight: 600; }
.big-num { margin: 2px 0 14px; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--lime); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #2a3224; }
.bar i { display: block; height: 100%; background: var(--c); min-width: 3px; }
.totals { display: grid; gap: 6px; margin: 16px 0 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.totals dt { color: #b9c0ae; }
.totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals .net dd { color: var(--lime); }
.totals .net.off dd { color: #ff8a84; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tiles button { width: 100%; display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: background .15s; }
.tiles button:hover { background: var(--sunk); }
.tiles button[aria-pressed="true"] { background: var(--sunk); box-shadow: inset 0 0 0 2px var(--c); }
.tiles b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tiles .t-name { font-size: 13px; font-weight: 700; }
.tiles .t-sum { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tiles .zero b { color: var(--ink-3); }

.search input { margin: 0; min-width: 240px; border-radius: 999px; background: var(--sunk); padding: 10px 16px; }
.tabs button .n { margin-left: 6px; font-size: 12px; opacity: .7; }
.res td { vertical-align: top; }
.res .ref { font-family: var(--mono); font-size: 12px; max-width: 220px; overflow-wrap: anywhere; white-space: normal; }
.res .note { white-space: normal; min-width: 220px; color: var(--ink-2); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.res .neg { color: var(--red); font-weight: 700; }
.res .pos { color: #3c7a12; font-weight: 700; }
.res .muted-cell { color: var(--ink-3); }
.empty-row td { padding: 30px; text-align: center; color: var(--ink-2); white-space: normal; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pager .count { margin: 0; }
.pg-btns { display: flex; gap: 8px; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.busy { cursor: progress; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles button { padding: 12px 14px; }
  .tiles b { font-size: 22px; }
  .tabs { border-radius: var(--r-md); }
  .search, .search input { width: 100%; min-width: 0; }
  .big-num { font-size: 44px; }
}
