/* Koszyk Kraft — the look of the KD modules (KD Shop Lister): MAX-TRADE colours, dark header, white cards. */
:root { --red: #e21a22; --ink: #232323; --mut: #71717a; --line: #e4e4e7; --bg: #f4f4f5; --ok: #28a745; --warn: #f59e0b; --blue: #2563eb; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
.kc { font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif; color: var(--ink); font-size: 13px; line-height: 1.45; min-height: 100vh; }
.kc button, .kc input, .kc select { font-family: inherit; }
.kc button { cursor: pointer; }
.kc :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.kc h1, .kc h3 { margin: 0; }
.kc a { color: var(--red); }

.kc-hero { background: var(--ink); color: #fff; padding: 18px 26px 64px; position: relative; }
.kc-hero.slim { padding-bottom: 70px; }
.kc-hero:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.kc-hrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1380px; margin: 0 auto; }
.kc-lg { display: flex; gap: 12px; align-items: center; }
.kc-lg > b { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.kc-lg h1 { font-size: 19px; font-weight: 700; }
.kc-lg small { display: block; color: #a1a1aa; font-size: 12px; }
.kc-ver { font-size: 11px; font-weight: 500; color: #a1a1aa; margin-left: 6px; }
.kc-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kc-sel { padding: 8px 14px; border-radius: 999px; border: 1px solid #52525b; background: #2f2f33; color: #fff; font-size: 12.5px; font-weight: 600; }
.kc-bt { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 12.5px; border: 1px solid #52525b; color: #fff; background: transparent; line-height: 1.2; }
.kc-bt:hover { border-color: #a1a1aa; }
.kc-bt.kc-red { background: var(--red); border-color: var(--red); color: #fff; }
.kc-bt.kc-red:hover { background: #c4141b; }
.kc-bt.lt { border-color: var(--line); color: var(--ink); background: #fff; }
.kc-bt.lt:hover { border-color: var(--ink); }
.kc-bt.lt.red-t { color: var(--red); }
.kc-bt.sm { padding: 6px 12px; font-size: 12px; }
.kc-bt[disabled] { opacity: .5; cursor: default; }
.kc-link { background: none; border: 0; color: var(--mut); text-decoration: underline; font-size: 12px; padding: 0; }
.kc-menu { display: flex; gap: 22px; margin: 18px auto 0; font-weight: 500; flex-wrap: wrap; max-width: 1380px; }
.kc-menu button { background: none; border: 0; color: #d4d4d8; padding: 0 0 6px; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; }
.kc-menu button.on { color: #fff; border-bottom-color: var(--red); }

.kc-page { max-width: 1380px; margin: -44px auto 0; padding: 0 22px 26px; position: relative; }
.kc-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kc-sc { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.06); display: flex; gap: 14px; align-items: center; }
.kc-sc .l { color: var(--mut); font-size: 11.5px; }
.kc-sc .v { font-size: 22px; font-weight: 700; }
.kc-sc small { color: var(--mut); font-size: 11px; }
.kc-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.kc-ic.g { background: #dcfce7; color: var(--ok); } .kc-ic.r { background: #fde2e2; color: var(--red); } .kc-ic.y { background: #fef3c7; color: #b45309; } .kc-ic.k { background: #f4f4f5; color: var(--ink); }
.kc-box { background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.05); padding: 16px 18px; margin-bottom: 16px; }
.kc-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.kc-box .sub, .kc .sub { color: var(--mut); font-size: 12px; margin: 0 0 12px; }
.kc-grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.kc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.kc-row form { margin: 0; }
.kc-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: 12.5px; }
.kc-note.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.kc-note.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.kc-status { font-weight: 500; }
.kc-prog { height: 6px; background: #f4f4f5; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.kc-prog > div { height: 100%; width: 0; background: var(--red); transition: width .2s; }

.kc-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.kc-seg { display: flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.04); flex-wrap: wrap; }
.kc-seg button { padding: 7px 14px; border-radius: 999px; font-weight: 500; color: #52525b; font-size: 12px; background: none; border: 0; }
.kc-seg button.on { background: var(--ink); color: #fff; }
.kc-search { background: #fff; border-radius: 999px; padding: 9px 16px; width: 260px; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.04); font-size: 12.5px; }
.kc-tw { overflow-x: auto; border-radius: 14px; }
.kc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.kc-table th { text-align: left; font-size: 11.5px; color: var(--mut); font-weight: 600; padding: 10px 12px; background: #fafafa; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kc-table td { padding: 9px 12px; border-bottom: 1px solid #f4f4f5; vertical-align: top; }
.kc-table .num { text-align: right; white-space: nowrap; }
.kc-table td.sku a { color: var(--red); font-weight: 700; text-decoration: none; }
.kc-table td small, .kc-mut { color: var(--mut); font-size: 11.5px; display: block; }
.kc-table tr.bad td { background: #fff5f5; }
.kc-table tr.low td { background: #fffbeb; }
.kc-badge { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.kc-badge.g { background: #dcfce7; color: #15803d; } .kc-badge.r { background: var(--red); color: #fff; } .kc-badge.y { background: var(--warn); color: #fff; } .kc-badge.k { background: #e4e4e7; color: #52525b; }

.kc-auth { max-width: 460px; margin: 0 auto 16px; }
.kc-auth.wide { max-width: none; margin: 0 0 16px; }
.kc-auth label { display: block; font-weight: 500; font-size: 12.5px; margin-bottom: 12px; }
.kc-auth input:not([type=checkbox]):not([type=radio]):not([hidden]), .kc-auth select { display: block; width: 100%; margin-top: 5px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fafafa; }
.kc-auth input:focus, .kc-auth select:focus { border-color: var(--ink); background: #fff; outline: none; }
.kc-code { letter-spacing: .3em; font-weight: 600; font-variant-numeric: tabular-nums; }
.kc-chk { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
.kc-chk input { accent-color: var(--red); width: 16px; height: 16px; }
.kc-key { font-family: Consolas, 'Courier New', monospace; font-size: 18px; font-weight: 700; letter-spacing: .08em; background: #f4f4f5; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; word-break: break-all; user-select: all; }
.kc-cancel { text-align: center; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.kc-cancel form { margin: 0; }
.kc .kc-gap { margin-top: 10px; }
.kc-log { background: #fafafa; border-radius: 10px; padding: 12px; font-size: 12px; max-height: 520px; overflow: auto; white-space: pre-wrap; margin: 0; font-family: Consolas, 'Courier New', monospace; }
.kc-dev { padding: 8px 0; border-bottom: 1px solid #f4f4f5; font-size: 12.5px; }
.kc-dev:last-child { border-bottom: 0; }

@media (max-width: 900px) { .kc-sum { grid-template-columns: repeat(2, 1fr); } .kc-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kc-hero { padding: 16px 16px 60px; } .kc-page { padding: 0 16px 20px; } .kc-sum { grid-template-columns: 1fr; } .kc-search { width: 100%; } }

.kc-who { margin-left: auto; color: #a1a1aa; font-size: 12px; padding-bottom: 6px; }
.kc-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.kc-steps p { margin: 0 0 8px; font-size: 12.5px; }
.kc-linkbox { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.kc-linkbox input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; background: #fafafa; font-family: Consolas, 'Courier New', monospace; }
.kc-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { .kc-who { margin-left: 0; width: 100%; } }

.kc-lbl { font-weight: 600; font-size: 12.5px; margin: 4px 0 8px; }
.kc-choice { display: grid; gap: 8px; margin-bottom: 12px; }
.kc-choice label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; cursor: pointer; font-weight: 400; }
.kc-choice label:has(input:checked) { border-color: var(--red); background: #fff5f5; }
.kc-choice input { accent-color: var(--red); margin-top: 3px; }
.kc-choice small { display: block; color: var(--mut); font-size: 11.5px; }
