/* Business portal */
.bz-body { margin: 0; background: var(--surface-2); color: var(--ink); }
.bz-shell { display: flex; min-height: 100vh; }
.bz-shell [hidden] { display: none !important; }
.bz-side { display: none; position: sticky; top: 0; flex-direction: column; flex-shrink: 0; width: 248px; height: 100vh; border-right: 1px solid rgba(0, 0, 0, .05); background: #fff; }
.bz-side-logo { display: flex; align-items: center; height: 72px; padding: 0 20px; }
.bz-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.bz-logo svg { width: 36px; height: 33px; flex-shrink: 0; }
.bz-logo-accent { color: #2eaa62; font-weight: 600; }
.bz-account { margin: 0 16px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.bz-account small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.bz-account strong { display: block; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bz-account span { display: block; overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.bz-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 0 12px; }
.bz-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; color: rgba(29, 29, 31, .8); font-size: 14px; font-weight: 500; text-decoration: none; }
.bz-nav a:hover { background: var(--surface-2); }
.bz-nav a.is-on { background: var(--ink); color: #fff; }
.bz-nav b { padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; }
.bz-nav a.is-on b { background: rgba(255, 255, 255, .2); }
.bz-logout { padding: 12px; border-top: 1px solid rgba(0, 0, 0, .05); }
.bz-logout a, .bz-logout button { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; text-decoration: none; }
.bz-logout a:hover, .bz-logout button:hover { background: var(--surface-2); }
.bz-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bz-page { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 20px; border-bottom: 1px solid rgba(0, 0, 0, .05); background: #fff; }
.bz-top h1 { display: none; margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.bz-top-logo .bz-logo { font-size: 15px; }
.bz-top-logo .bz-logo svg { width: 30px; height: 27px; }
.bz-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.bz-chip { display: none; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }
.bz-user-name { display: none; white-space: nowrap; }
.bz-avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.bz-nav-mobile { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid rgba(0, 0, 0, .05); background: #fff; }
.bz-nav-mobile a { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; color: rgba(29, 29, 31, .8); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.bz-nav-mobile a.is-on { background: var(--ink); color: #fff; }
.bz-main { flex: 1; min-width: 0; padding: 20px 16px; }
.bz-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bz-w-1280, .bz-w-1200, .bz-w-1100, .bz-w-1000, .bz-w-800 { margin: 0 auto; }
.bz-w-1280 { max-width: 1280px; }
.bz-w-1200 { max-width: 1200px; }
.bz-w-1100 { max-width: 1100px; }
.bz-w-1000 { max-width: 1000px; }
.bz-w-800 { max-width: 800px; }
.bz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bz-head h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.bz-head p { margin: 2px 0 0; color: var(--muted); }
.bz-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: #fff4e0; }
.bz-alert-text { display: flex; flex: 1 1 280px; gap: 12px; }
.bz-alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #b45309; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bz-alert strong { font-size: 15px; }
.bz-alert p { margin: 2px 0 0; font-size: 14px; color: rgba(29, 29, 31, .8); }
.bz-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bz-stat { padding: 20px; border-radius: var(--radius-lg); background: #fff; }
.bz-stat span { display: block; font-size: 13px; color: var(--muted); }
.bz-stat strong { display: block; margin-top: 4px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.bz-stat small { display: block; font-size: 12px; color: var(--muted); }
.bz-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bz-card { min-width: 0; border-radius: var(--radius-lg); background: #fff; }
.bz-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.bz-card-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.bz-card-head a, .bz-link { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.bz-card-head a:hover, .bz-link:hover { text-decoration: underline; }
.bz-card-body { padding: 20px; }
.bz-small-btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.bz-main .btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.bz-main .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.bz-letter { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.bz-tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bz-tag.is-green { background: var(--brand-soft); color: var(--brand); }
.bz-tag.is-amber { background: #fff4e0; color: #b45309; }
.bz-tag.is-red { background: #fde8e8; color: #b91c1c; }
.bz-tag.is-blue { background: #e8f0fe; color: #1a56db; }
.bz-tag.is-grey { background: var(--surface-2); color: var(--muted); }
.bz-tasks { display: flex; flex-direction: column; padding-block: 8px; }
.bz-task { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .05); }
.bz-task:first-child { border-top: 0; }
.bz-task-text { flex: 1 1 200px; min-width: 0; }
.bz-task-text strong { font-size: 15px; }
.bz-task-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.bz-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bz-bar-col { position: relative; display: flex; flex: 1; align-items: flex-end; height: 100%; }
.bz-bar-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 45%, white); }
.bz-bar-col i.is-now { background: var(--brand); }
.bz-bar-col b { position: absolute; top: -4px; left: 50%; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; opacity: 0; translate: -50% 0; pointer-events: none; }
.bz-bar-col:hover b { opacity: 1; }
.bz-chart-labels { display: flex; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.bz-chart-labels span { flex: 1; min-width: 0; overflow: hidden; text-align: center; }
.bz-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.bz-stack > .bz-note { margin: 0; }
.bz-big { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.bz-big + .bz-note { margin-top: 0; }
.bz-card-body > .bz-link { display: inline-block; margin-top: 12px; }
.bz-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bz-space { margin-top: 12px; }
.bz-input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
textarea.bz-input { min-height: 80px; resize: vertical; }
.bz-tools > .bz-input { width: auto; max-width: 240px; min-height: 42px; flex: 1 1 160px; }
.bz-table-wrap { position: relative; overflow-x: auto; }
.bz-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.bz-w-1000 .bz-table { min-width: 680px; }
.bz-table-small { min-width: 600px; font-size: 13px; }
.bz-table-plain { min-width: 520px; }
.bz-table thead { background: var(--surface-2); }
.bz-table th { padding: 12px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-align: left; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bz-table td { padding: 12px; border-top: 1px solid rgba(0, 0, 0, .05); vertical-align: middle; }
.bz-table tbody tr:first-child td { border-top: 0; }
.bz-table tbody tr:hover { background: var(--surface-2); }
.bz-table small { display: block; font-size: 12px; color: var(--muted); }
.bz-table-plain thead { background: none; }
.bz-table .bz-right, .bz-right { text-align: right; white-space: nowrap; }
.bz-object { display: flex; align-items: center; gap: 12px; }
.bz-object strong { font-weight: 500; }
.bz-muted { color: var(--muted); }
.bz-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.bz-date-amber { color: #b45309; font-weight: 500; }
.bz-date-red { color: #b91c1c; font-weight: 500; }
.bz-action { text-align: right; white-space: nowrap; }
.bz-action a, .bz-action button { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.bz-action a:hover, .bz-action button:hover { text-decoration: underline; }
.bz-order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bz-panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: #fff; }
.bz-panel h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.bz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bz-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.bz-field-error { margin: 4px 0 0; font-size: 13px; color: #b91c1c; }
.bz-summary { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.bz-summary > span:not(.bz-mono) { color: var(--muted); }
.bz-summary p { margin: 8px 0 0; font-size: 13px; color: var(--brand); }
.bz-summary .bz-mono { overflow-wrap: anywhere; font-size: 13px; }
.bz-products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bz-product { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.bz-product:hover, .bz-product.is-on { border-color: var(--ink); }
.bz-product.is-on { box-shadow: 0 0 0 1px var(--ink); }
.bz-product-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bz-product-text { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.bz-recommended { padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; }
.bz-modes { display: flex; flex-direction: column; gap: 8px; }
.bz-mode { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.bz-mode:hover, .bz-mode.is-on { border-color: var(--ink); }
.bz-mode.is-on { box-shadow: 0 0 0 1px var(--ink); }
.bz-mode input { flex-shrink: 0; margin-top: 4px; accent-color: var(--brand); }
.bz-mode strong { display: block; font-weight: 500; }
.bz-mode small { display: block; font-size: 13px; color: var(--muted); }
.bz-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.bz-price { margin-top: -12px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.bz-price + .bz-note { margin-top: -12px; }
.bz-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .05); font-size: 13px; }
.bz-rows-flat { padding-top: 0; border-top: 0; }
.bz-rows div { display: flex; justify-content: space-between; gap: 12px; }
.bz-rows dt { color: var(--muted); }
.bz-rows dd { margin: 0; text-align: right; }
.bz-full { width: 100%; }
.bz-center-note { margin: -4px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.bz-plain { padding: 20px; border-radius: var(--radius-lg); background: #fff; font-size: 13px; color: var(--muted); }
.bz-plain strong { color: var(--ink); }
.bz-plain button { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; cursor: pointer; }
.bz-done-title { font-size: 22px !important; letter-spacing: -.02em !important; }
.bz-roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bz-role { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.bz-role strong { font-size: 13px; }
.bz-role p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.bz-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; margin: 0; font-size: 14px; }
.bz-facts dt { margin-top: 8px; color: var(--muted); }
.bz-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.bz-terms { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bz-terms > div { flex: 1 1 260px; }
.bz-terms strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.bz-terms .bz-note { margin-top: 2px; }
.bz-checks { display: flex; flex-direction: column; gap: 12px; }
.bz-checks label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; cursor: pointer; }
.bz-checks input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.bz-code { margin: 12px 0; padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bz-key code { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12px; overflow-wrap: anywhere; }
.bz-toast { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 50; max-width: 420px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; text-align: center; }
.bz-toast[hidden] { display: none; }
@media (min-width: 40rem) {
    .bz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bz-grid, .bz-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bz-wide { grid-column: 1 / -1; }
    .bz-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bz-chip, .bz-user-name { display: inline; }
    .bz-facts { grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; }
    .bz-facts dt { margin-top: 0; }
}
@media (min-width: 64rem) {
    .bz-side { display: flex; }
    .bz-top-logo, .bz-nav-mobile { display: none; }
    .bz-top { padding: 0 32px; }
    .bz-top h1 { display: block; }
    .bz-main { padding: 32px; }
    .bz-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bz-split { grid-template-columns: minmax(0, 1fr) 380px; }
    .bz-order { grid-template-columns: minmax(0, 1fr) 360px; }
    .bz-order-side { align-self: start; position: sticky; top: 24px; }
    .bz-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Customer account and sign-in */
.kz-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.kz-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.kz-flat { margin: 0; }
.kz-center { margin: 12px 0 0; text-align: center; }
.kz-row { color: inherit; text-decoration: none; }
.kz-row:hover { background: var(--surface-2); }
.kz-row-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.kz-row-price small { font-size: 12px; color: var(--muted); }
.kz-chevron { color: var(--muted); }
.kz-table { min-width: 620px; }
.kz-link { color: var(--brand); font-weight: 500; text-decoration: none; }
.kz-link:hover { text-decoration: underline; }
.kz-files { display: flex; flex-direction: column; gap: 4px; }
.kz-file { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.kz-file:hover { background: var(--surface-2); }
.kz-file-kind { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.kz-file-kind.is-pdf { background: #fef2f2; color: #b91c1c; }
.kz-file-kind.is-image { background: #e8f0fe; color: #1a56db; }
.kz-file-text { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.kz-file-text strong { display: block; font-weight: 500; }
.kz-file-text small { display: block; font-size: 12px; color: var(--muted); }
.kz-file-open { display: inline-flex; flex-shrink: 0; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.kz-file-open:hover { background: #fff; color: var(--ink); }
.kz-file-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bz-main .kz-danger { color: #b91c1c; }
.kz-back { align-self: flex-start; font-size: 13px; color: var(--muted); text-decoration: none; }
.kz-back:hover { color: var(--ink); }
.bz-head h2 .bz-tag { vertical-align: middle; letter-spacing: 0; }
.kz-steps-card { padding: 20px; }
.kz-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.kz-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.kz-steps li::before { content: ""; position: absolute; top: 12px; right: 50%; left: -50%; height: 2px; background: var(--line); }
.kz-steps li:first-child::before { display: none; }
.kz-steps li.is-done::before, .kz-steps li.is-now::before { background: var(--brand); }
.kz-steps i { position: relative; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: 11px; font-style: normal; font-weight: 600; }
.kz-steps .is-done i, .kz-steps .is-now i { background: var(--brand); color: #fff; }
.kz-steps .is-now span { color: var(--ink); font-weight: 600; }
.kz-order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.kz-doc-group { margin: 0 0 8px; }
.kz-accepted { background: var(--brand) !important; color: #fff !important; }
.kz-checked { background: var(--brand-soft); color: var(--brand); }
.kz-issuer { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.kz-issuer img, .kz-message img { border-radius: 50%; object-fit: cover; }
.kz-chat { display: flex; flex-direction: column; gap: 12px; }
.kz-system { align-self: center; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); text-align: center; }
.kz-message { display: flex; gap: 8px; }
.kz-message > img { flex-shrink: 0; }
.kz-message > div { max-width: 80%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 14px; }
.kz-message p { margin: 0; }
.kz-message small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.kz-reply { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.kz-reply.is-open { border-color: var(--brand); background: #f1f9f3; }
.kz-reply p { margin: 0; font-size: 13px; color: var(--brand); }
.kz-reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.kz-sheet-frame { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.kz-sheet { max-width: 100%; margin: 0 auto; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .4); }
.kz-facts { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.kz-facts dt { color: var(--muted); }
.kz-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kz-items { margin-top: 16px; }
.kz-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, .05); font-weight: 600; }
.kz-total dt { color: var(--ink) !important; }
.kz-history { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); list-style: none; font-size: 14px; }
.kz-history li { position: relative; }
.kz-history li::before { content: ""; position: absolute; top: 5px; left: -25px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.kz-history li:last-child::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.kz-history small { display: block; font-size: 12px; color: var(--muted); }
.kz-login-body { display: flex; min-height: 100vh; }
.kz-login { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px; }
.kz-login .bz-logo { font-size: 26px; }
.kz-login .bz-logo svg { width: 53px; height: 48px; }
.kz-login-card { width: 100%; max-width: 440px; margin-top: 32px; padding: 32px; border-radius: var(--radius-lg); background: #fff; }
.kz-login-card h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.kz-login-card > p:first-of-type { margin: 4px 0 24px; font-size: 14px; color: var(--muted); }
.kz-login-btn { width: 100%; min-height: 48px; margin-top: 16px; }
.kz-login-start { margin: 24px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
.kz-login-start a { color: var(--brand); text-decoration: none; }
.kz-login-staff { margin: 24px 0 0; font-size: 12px; color: var(--muted); }
.kz-login-staff a { color: inherit; text-decoration: none; }
.kz-login a:hover { text-decoration: underline; }
.kz-login .btn:hover { text-decoration: none; }
@media (min-width: 40rem) {
    .kz-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kz-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .kz-order { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Ausstellerportal */
/* real business account: settings switches, exposé dialog, invoice figure, edit link */
.bz-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .05); font-size: 14px; }
.bz-switch-row input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.bz-dialog { width: min(560px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.bz-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.bz-dialog h3 { margin: 0 0 6px; font-size: 18px; }
.bz-dialog textarea { width: 100%; margin: 12px 0; }
.bz-big { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.bz-csv-help {display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 18px; }
.bz-table tr.is-selected td { background: #f1f8f4; }
.az-flash {max-width: 1280px; margin: 0 auto 16px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 14px; }
.az-flash.error-summary { background: #fdecec; color: #b42318; }
.az-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.az-chips button { padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.az-chips button.is-on { background: var(--ink); color: #fff; }
.az-green { color: var(--brand); }
.az-amber { color: #b45309; }
.az-red { color: #b42318; }
.az-express { display: block; color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.az-express-tag { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; vertical-align: middle; }
.bz-tag.is-blue { background: #e8f0fe; color: #1d4ed8; }
.bz-tag.is-red { background: #fdecec; color: #b42318; }
.bz-tag.is-grey { background: var(--surface-2); color: var(--muted); }
.bz-chip.is-away { background: #fff4e0; color: #b45309; }
.az-search { width: 100%; max-width: 280px; }
.az-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.az-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .az-two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .az-detail { grid-template-columns: minmax(0, 1fr) 420px; } }
.az-small td, .az-small th { font-size: 13px; }
.az-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.az-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.az-pills span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.az-pills span.is-yes { background: var(--brand-soft); color: var(--brand); }
.az-pills span.is-no { color: var(--ink); }
.az-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.az-photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; overflow: hidden; padding: 10px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 12px; }
.az-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.az-photo span, .az-photo small { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-photo:has(img) span, .az-photo:has(img) small { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.az-photo span { font-weight: 600; }
.az-photo.is-missing { align-items: center; justify-content: center; border: 1px dashed rgba(180, 83, 9, .4); background: #fff8ea; text-align: center; white-space: normal; }
.az-photo.is-missing span { white-space: normal; }
.az-photo.is-missing small { color: #b45309; font-weight: 600; }
.az-docs { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid rgba(0, 0, 0, .06); border-radius: 12px; }
.az-docs li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.az-docs li + li { border-top: 1px solid rgba(0, 0, 0, .05); }
.az-docs li.is-missing { background: #fff8ea; }
.az-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.az-request { margin-left: auto; color: #b45309; font-size: 12px; font-weight: 600; }
.az-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 4px; font-size: 13px; }
.az-file a { color: var(--brand); font-weight: 500; overflow-wrap: anywhere; }
.az-file-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.az-file-actions form { display: flex; gap: 4px; }
.az-file-actions button { padding: 4px 10px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.az-file-actions .az-ok.is-on { background: var(--brand); color: #fff; }
.az-file-actions .az-bad.is-on { background: #b42318; color: #fff; }
.az-download { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.az-download:hover { background: var(--surface-2); color: var(--ink); }
.az-thumb { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 700; }
.az-thumb img { width: 100%; height: 100%; object-fit: cover; }
.az-file-text { display: flex; flex: 1 1 160px; flex-direction: column; min-width: 0; }
.az-doc-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.az-doc-icon.is-ok { background: var(--brand); color: #fff; }
.az-doc-icon.is-up { background: #e8f0fe; color: #1a56db; }
.az-doc-icon.is-bad { background: #fdecec; color: #b42318; }
.az-docs li.is-unusable { background: #fdf2f2; }
.az-photo-state { position: absolute; top: 8px; left: 8px; font-style: normal; }
.az-hints li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.az-hints li.is-done { border-color: var(--brand); background: #f1f8f4; }
.az-hint-btn { flex-shrink: 0; padding: 4px 10px; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.az-hint-ok { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.az-rec { display: flex; align-items: center; gap: 8px; }
.az-rec .bz-input { flex: 1; min-width: 0; }
.az-rec-remove { flex-shrink: 0; padding: 6px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.az-rec-remove:hover { background: #fdecec; color: #b42318; }
.az-rec-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* decision: three choices, one panel (radio-driven, works without JavaScript) */
.az-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.az-choice-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.az-choice-tabs label { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.az-choice-tabs small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.az-choice-tabs .is-ok strong { color: var(--brand); }
.az-choice-tabs .is-ask strong { color: #b45309; }
.az-choice-tabs .is-no strong { color: #b42318; }
#az-d-ok:checked ~ .az-choice-tabs .is-ok { border-color: var(--brand); background: #f1f8f4; }
#az-d-ask:checked ~ .az-choice-tabs .is-ask { border-color: #b45309; background: #fff8ea; }
#az-d-no:checked ~ .az-choice-tabs .is-no { border-color: #b42318; background: #fdf2f2; }
#az-d-ok:focus-visible ~ .az-choice-tabs .is-ok, #az-d-ask:focus-visible ~ .az-choice-tabs .is-ask, #az-d-no:focus-visible ~ .az-choice-tabs .is-no { outline: 2px solid var(--brand); outline-offset: 2px; }
.az-panel { display: none; margin-top: 14px; }
#az-d-ok:checked ~ .is-ok-panel, #az-d-ask:checked ~ .is-ask-panel, #az-d-no:checked ~ .is-no-panel { display: flex; }
.az-two-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.az-two-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.az-chips.is-soft button { background: var(--surface-2); }
.az-chips.is-soft button.is-on { background: var(--ink); color: #fff; }
.az-btn-amber { align-self: flex-start; background: #b45309; }
.az-btn-red { align-self: flex-end; background: #b42318; }
@media (max-width: 420px) { .az-choice-tabs, .az-two-fields { grid-template-columns: minmax(0, 1fr); } }
/* photo full view */
.az-lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(0, 0, 0, .85); }
.az-lightbox[hidden] { display: none; }
.az-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(1100px, 100%); margin: 0; }
.az-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; object-fit: contain; }
.az-lightbox figcaption { color: #fff; font-size: 13px; text-align: center; }
.az-lightbox-close { position: absolute; top: 12px; right: 12px; }
.az-lightbox-close, .az-lightbox-nav { padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.az-lightbox-nav[hidden] { display: none; }
.az-bubble { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: 16px 4px 16px 16px; background: var(--ink); color: #fff; font-size: 14px; }
.az-bubble p { margin: 0; white-space: pre-line; }
.az-bubble small { color: rgba(255, 255, 255, .6); font-size: 11px; }
.az-hints { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.az-hints li { padding: 10px 12px; border-left: 3px solid #f59e0b; border-radius: 8px; background: #fffaf0; }
.az-hints li.is-blocker { border-color: #b42318; background: #fdf2f2; }
.az-hints p { margin: 0; font-size: 14px; }
.az-hints small { color: var(--muted); font-size: 12px; }
.az-decision { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.az-decision strong { font-size: 15px; }
.az-decision.is-ok strong { color: var(--brand); }
.az-decision.is-ask strong { color: #b45309; }
.az-decision.is-no strong { color: #b42318; }
.az-decision small { color: var(--muted); font-size: 12px; }
.az-decision .btn, .az-decision .btn-ghost { align-self: flex-start; }
.az-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.az-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .az-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.az-issuer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.az-avatar-large { width: 72px; height: 72px; font-size: 22px; }
.az-sig-wrap { position: relative; border: 1px dashed var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.az-sig-canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.az-sig-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.az-sig-upload-label { cursor: pointer; }
.kz-setup { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.kz-setup code { font-size: 17px; font-weight: 600; letter-spacing: .06em; overflow-wrap: anywhere; }
.kz-setup a { color: var(--brand); }
.bz-action a.btn { padding: 8px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; }
.bz-action a.btn:hover { background: var(--brand-hover, #063f23); text-decoration: none; }
.bz-order-problem { margin: 8px 0 0; color: #b42318; font-size: 13px; }

/* Ausstellerportal → Profil → Sicherheit: password change and new authenticator */
.az-sec-title { margin: 4px 0 0; font-size: 15px; }
.az-sec-key { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.az-sec-key code { font-size: 17px; font-weight: 700; letter-spacing: .06em; word-break: break-all; }
.az-sec-key a { color: var(--brand); text-decoration: underline; }
