:root {
    --ink: #14201e;
    --ink-2: #263530;
    --paper: #f3f1e9;
    --surface: #fffefa;
    --surface-2: #ebe9df;
    --line: #d8d7cd;
    --muted: #6d7773;
    --accent: #d9ff66;
    --accent-2: #c8f53e;
    --blue: #4e72f1;
    --orange: #ef7840;
    --green: #287b55;
    --red: #c94d45;
    --yellow: #a66a13;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --shadow: 0 20px 65px rgba(20, 32, 30, .10);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(78, 114, 241, .35); outline-offset: 2px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    color: var(--ink);
    font-size: 14px;
    font-weight: 820;
    letter-spacing: -.015em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    background: var(--ink);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before { width: 22px; height: 2px; background: currentColor; content: ""; }

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: #263a35; }
.button-accent { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.button-accent:hover:not(:disabled) { background: var(--accent-2); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover:not(:disabled) { border-color: #a9b0ac; background: #f9f8f2; }
.button-block { width: 100%; }
.button-sm { min-height: 38px; padding-inline: 13px; font-size: 11px; }
.button-provider { color: #fff; }
.button-allegro { border-color: #f4511e; background: #f4511e; }
.button-allegro:hover { background: #d94215; }

.field { display: grid; gap: 8px; }
.field > span:first-child { color: var(--ink-2); font-size: 12px; font-weight: 720; }
.field > span:first-child small { color: var(--muted); font-size: 10px; font-weight: 570; }
.field > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.field input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: #adb4af; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(78, 114, 241, .1); outline: 0; }
.field input::placeholder { color: #a8aeaa; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 66px; }
.password-field button {
    position: absolute;
    top: 50%;
    right: 9px;
    padding: 7px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    cursor: pointer;
    transform: translateY(-50%);
}
.password-field button:hover { background: var(--paper); color: var(--ink); }

.form-stack { display: grid; gap: 16px; }
.form-stack.compact { gap: 12px; }
.form-between { display: flex; justify-content: flex-end; margin-top: -5px; }
.form-between a { color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.form-between a:hover { color: var(--ink); text-decoration: underline; }

.flash {
    position: relative;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 630;
    line-height: 1.45;
}
.flash-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.flash-success { border-color: #b9d9c4; background: #f1faf4; }
.flash-success .flash-mark { background: var(--green); }
.flash-error { border-color: #e7bbb7; background: #fff2f1; }
.flash-error .flash-mark { background: var(--red); }
.flash-warning { border-color: #ead1a7; background: #fff8eb; }
.flash-warning .flash-mark { background: var(--yellow); }
.flash-close { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.flash-close:hover { background: rgba(20, 32, 30, .06); color: var(--ink); }

/* Authentication */
.auth-body { background: var(--surface); }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.1fr); }
.auth-panel { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 68px); background: var(--surface); }
.auth-content { width: min(100%, 440px); margin: clamp(45px, 8vh, 95px) auto; }
.auth-title { margin-bottom: 13px; font-size: clamp(42px, 5vw, 64px); line-height: .98; letter-spacing: -.06em; }
.auth-title-small { max-width: 430px; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.auth-lead { margin-bottom: 29px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 750; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-footer { color: #8e9692; font-size: 10px; }
.inline-notice { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #ead1a7; border-radius: 10px; background: #fff8eb; color: #72501e; font-size: 10px; line-height: 1.55; }

.auth-context { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(40px, 6vw, 78px); background: var(--ink); color: #fff; }
.auth-context::before { position: absolute; top: -320px; right: -250px; width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.auth-context::after { position: absolute; bottom: -180px; left: -140px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.context-top, .context-copy, .context-steps { position: relative; z-index: 1; }
.context-top { display: flex; justify-content: space-between; color: #8d9c97; font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.context-version { color: var(--accent); }
.context-copy { margin-block: auto; }
.context-copy h2 { max-width: 620px; margin-bottom: 24px; font-size: clamp(45px, 5.3vw, 74px); line-height: .97; letter-spacing: -.055em; }
.context-copy h2 span { color: var(--accent); }
.context-copy p { max-width: 500px; margin: 0; color: #aab5b1; font-size: 14px; line-height: 1.7; }
.context-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.13); }
.context-steps div { display: grid; min-height: 110px; align-content: end; padding: 19px 13px 0; border-right: 1px solid rgba(255,255,255,.13); }
.context-steps div:first-child { padding-left: 0; }
.context-steps div:last-child { border-right: 0; }
.context-steps span { margin-bottom: 18px; color: var(--accent); font-size: 10px; }
.context-steps strong { margin-bottom: 4px; font-size: 12px; }
.context-steps small { color: #7f8f89; font-size: 9px; }

/* Project setup */
.setup-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.setup-card { position: relative; display: flex; min-height: 360px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f8f7f1; }
.setup-card-dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.setup-number { margin-left: auto; color: #9da5a1; font-size: 9px; font-weight: 760; }
.setup-card-dark .setup-number { color: var(--accent); }
.setup-card h2 { margin: 35px 0 8px; font-size: 23px; line-height: 1.05; letter-spacing: -.04em; }
.setup-card p { margin-bottom: 24px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.setup-card-dark p { color: #9daaa5; }
.setup-card form { margin-top: auto; }
.field-dark > span:first-child { color: #d9dfdc; }
.field-dark input { border-color: #3f4e49; background: #23312d; color: #fff; }
.field-dark input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217,255,102,.1); }
.invite-input { letter-spacing: .14em; text-transform: uppercase; }

/* Application shell */
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 23px 17px; background: var(--ink); color: #fff; }
.brand-sidebar { padding-inline: 7px; color: #fff; }
.brand-sidebar .brand-mark { background: var(--accent); color: var(--ink); }
.nav-caption { margin: 40px 10px 9px; color: #7d8d87; font-size: 9px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-link { display: grid; min-height: 43px; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 0 11px; border-radius: 10px; color: #afbbb6; font-size: 12px; font-weight: 660; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav-link:hover:not(.disabled) { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: var(--accent); color: var(--ink); }
.nav-link.disabled { cursor: not-allowed; opacity: .48; }
.nav-link small { padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: inherit; font-size: 7px; font-weight: 760; text-transform: uppercase; }
.nav-icon { font-size: 16px; text-align: center; }
.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
.project-chip, .user-chip { display: grid; align-items: center; gap: 9px; }
.project-chip { grid-template-columns: 35px minmax(0,1fr); padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.04); }
.project-avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 9px; font-weight: 850; }
.project-chip strong, .user-chip strong { display: block; overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-chip small, .user-chip small { display: block; overflow: hidden; margin-top: 3px; color: #7f8f89; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip { grid-template-columns: 32px minmax(0,1fr) 31px; padding: 10px 7px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #30413b; color: var(--accent); font-size: 10px; font-weight: 800; }
.icon-button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #81918b; cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-main { min-width: 0; }
.mobile-header { display: none; }
.page-wrap { width: min(100%, 1260px); margin: 0 auto; padding: clamp(28px, 4.8vw, 68px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-header h1 { margin-bottom: 8px; font-size: clamp(36px, 4.5vw, 53px); line-height: 1; letter-spacing: -.052em; }
.page-header p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.project-label { flex: 0 0 auto; max-width: 260px; overflow: hidden; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,254,250,.65); color: var(--muted); font-size: 10px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }

/* Dashboard */
.summary-grid { display: grid; grid-template-columns: 1.08fr .96fr .96fr; gap: 13px; margin-bottom: 34px; }
.summary-card { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.summary-card > span:first-child { display: block; margin-bottom: 27px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.summary-card > strong { display: block; margin-bottom: 17px; font-size: 43px; line-height: 1; letter-spacing: -.05em; }
.summary-card > strong small { color: #7f8d88; font-size: 13px; }
.summary-card > a { color: var(--accent); font-size: 10px; font-weight: 720; text-decoration: none; }
.summary-card > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.summary-card-dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.summary-card-dark > span:first-child { color: #85948f; }
.summary-card .text-value { margin-top: 36px; font-size: 27px; }
.summary-card .invite-value { margin-top: 28px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 25px; letter-spacing: .08em; }
.copy-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; }
.copy-button:hover { text-decoration: underline; }
.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 790; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.connection-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.connection-strip article { display: grid; min-width: 0; grid-template-columns: 39px minmax(0,1fr) 8px; align-items: center; gap: 10px; min-height: 82px; padding: 13px; border-right: 1px solid var(--line); }
.connection-strip article:last-child { border-right: 0; }
.provider-monogram { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: var(--paper); font-size: 9px; font-weight: 850; }
.connection-strip strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.connection-strip small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #b5bbb8; }
.connection-dot.status-connected { background: var(--green); box-shadow: 0 0 0 4px rgba(40,123,85,.1); }
.connection-dot.status-error { background: var(--red); box-shadow: 0 0 0 4px rgba(201,77,69,.1); }
.disabled-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.disabled-grid article { position: relative; min-height: 185px; padding: 20px; border: 1px dashed #c8c8bf; border-radius: var(--radius-md); background: rgba(255,254,250,.46); opacity: .68; }
.disabled-grid article > span { color: #a1a6a3; font-size: 8px; font-weight: 780; }
.disabled-grid h3 { margin: 37px 0 7px; font-size: 18px; letter-spacing: -.03em; }
.disabled-grid p { max-width: 280px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.disabled-grid small { position: absolute; top: 17px; right: 17px; padding: 4px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 7px; font-weight: 770; text-transform: uppercase; }

/* Integrations */
.security-note { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #cbd5ad; border-radius: 12px; background: #f8ffe6; color: #38451e; }
.security-note > span { color: #71921b; }
.security-note p { margin: 0; font-size: 10px; line-height: 1.5; }
.security-note strong { margin-right: 8px; }
.security-note code { font-size: 9px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.integration-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 30px rgba(20,32,30,.035); }
.integration-head { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #e7e5dc; }
.provider-logo { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 13px; background: var(--paper); font-size: 12px; font-weight: 900; }
.provider-allegro { background: #fff0e7; color: #e85218; }
.provider-erli { background: #e7f0ff; color: #316ac5; }
.provider-empik { background: #f2e7ff; color: #7b41b0; }
.provider-prestashop { background: #e5f6f7; color: #207d84; }
.integration-head h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.025em; }
.integration-head p { margin: 0; color: var(--muted); font-size: 8px; }
.status-pill { padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-pill.status-connected { background: #e7f6ec; color: var(--green); }
.status-pill.status-error { background: #fff0ef; color: var(--red); }
.status-pill.status-pending { background: #fff5e4; color: var(--yellow); }
.connection-state { min-height: 100px; padding: 15px 0; }
.connection-state > p { margin-bottom: 9px; color: var(--ink-2); font-size: 10px; line-height: 1.5; }
.connection-state > span { color: var(--muted); font-size: 9px; }
.check-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.check-times span { color: var(--muted); font-size: 8px; line-height: 1.45; }
.check-times strong { display: block; margin-top: 3px; color: var(--ink-2); font-size: 9px; }
.integration-form { display: grid; gap: 12px; padding-top: 2px; }
.integration-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.integration-actions form { margin: 0; }
.check-form { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 9px; font-weight: 720; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

/* Public info */
.public-body { background: var(--paper); }
.public-header { display: flex; width: min(calc(100% - 40px), 1050px); min-height: 78px; align-items: center; justify-content: space-between; margin: 0 auto; }
.public-main { width: min(calc(100% - 40px), 1050px); margin: 55px auto 90px; }
.info-hero { max-width: 760px; margin-bottom: 55px; }
.info-hero h1 { margin-bottom: 15px; font-size: clamp(58px, 10vw, 104px); line-height: .9; letter-spacing: -.075em; }
.info-hero > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.info-meta { display: flex; gap: 10px; margin-top: 26px; }
.info-meta > span { min-width: 150px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.info-meta small, .info-meta strong { display: block; }
.info-meta small { margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 780; text-transform: uppercase; }
.info-meta strong { font-size: 12px; }
.info-card { margin-top: 14px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.info-card h2 { margin-bottom: 15px; font-size: 22px; letter-spacing: -.035em; }
.info-card > p { max-width: 750px; margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.agent-code { display: block; overflow-x: auto; padding: 15px; border-radius: 10px; background: var(--ink); color: var(--accent); font-size: 12px; white-space: nowrap; }
.info-list { display: grid; gap: 8px; padding-left: 18px; color: var(--ink-2); font-size: 11px; }
.error-page { display: grid; min-height: 55vh; place-items: center; align-content: center; text-align: center; }
.error-page > span { color: var(--accent-2); font-size: 100px; font-weight: 900; letter-spacing: -.08em; }
.error-page h1 { max-width: 600px; margin-bottom: 26px; font-size: 28px; }

@media (max-width: 1040px) {
    .auth-shell { grid-template-columns: minmax(360px, .95fr) minmax(430px, 1.05fr); }
    .app-shell { grid-template-columns: 215px minmax(0,1fr); }
    .sidebar { padding-inline: 13px; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .summary-card:first-child { grid-row: span 2; }
    .connection-strip { grid-template-columns: repeat(2, 1fr); }
    .connection-strip article:nth-child(2) { border-right: 0; }
    .connection-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .auth-shell { display: block; }
    .auth-context { display: none; }
    .auth-panel { min-height: 100vh; padding: 28px; }
    .app-shell { display: block; }
    .sidebar { display: none; }
    .mobile-header { position: sticky; z-index: 30; top: 0; display: flex; min-height: 65px; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.94); backdrop-filter: blur(10px); }
    .mobile-header nav { display: flex; gap: 7px; }
    .mobile-header nav a { padding: 8px; border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; }
    .mobile-header nav a:hover { background: var(--paper); color: var(--ink); }
    .page-wrap { padding: 31px 20px 55px; }
    .integration-grid { grid-template-columns: 1fr; }
    .disabled-grid { grid-template-columns: 1fr; }
    .disabled-grid article { min-height: 155px; }
}

@media (max-width: 620px) {
    .auth-content { margin-block: 55px; }
    .auth-title { font-size: 44px; }
    .setup-options { grid-template-columns: 1fr; }
    .setup-card { min-height: 320px; }
    .page-header { display: block; }
    .project-label { display: inline-flex; margin-top: 15px; }
    .summary-grid { grid-template-columns: 1fr; }
    .summary-card:first-child { grid-row: auto; }
    .summary-card { min-height: 145px; }
    .connection-strip { grid-template-columns: 1fr; }
    .connection-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
    .connection-strip article:last-child { border-bottom: 0; }
    .section-heading { align-items: flex-start; }
    .security-note { align-items: flex-start; }
    .security-note strong { display: block; margin-bottom: 3px; }
    .security-note code { overflow-wrap: anywhere; }
    .integration-head { grid-template-columns: 43px minmax(0,1fr); }
    .status-pill { grid-column: 1 / -1; width: max-content; }
    .check-times { grid-template-columns: 1fr; }
    .integration-actions { align-items: stretch; flex-direction: column; }
    .integration-actions .button, .integration-actions form, .integration-actions form .button { width: 100%; }
    .info-meta { display: grid; }
    .info-meta > span { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Czytelność oraz moduły pracowników i zamówień */
html { font-size: 17px; }
.brand { font-size: 16px; }
.brand-mark { font-size: 14px; }
.eyebrow { font-size: 12px; }
.button { font-size: 14px; }
.button-sm { font-size: 13px; }
.field > span:first-child { font-size: 14px; }
.field > span:first-child small, .field > small { font-size: 12px; }
.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    resize: vertical;
}
.field input { padding-block: 0; }
.field textarea:hover { border-color: #adb4af; }
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(78, 114, 241, .1); outline: 0; }
.password-field button { font-size: 12px; }
.form-between a, .flash, .auth-switch { font-size: 13px; }
.auth-lead, .context-copy p { font-size: 16px; }
.auth-footer, .inline-notice, .context-top { font-size: 12px; }
.context-steps span, .context-steps strong, .context-steps small { font-size: 12px; }
.setup-number, .setup-card p { font-size: 12px; }
.nav-caption { font-size: 11px; }
.nav-link { font-size: 14px; }
.nav-link small { font-size: 10px; }
.project-avatar, .user-avatar { font-size: 12px; }
.project-chip strong, .user-chip strong { font-size: 12px; }
.project-chip small, .user-chip small { font-size: 10px; }
.page-header p { font-size: 15px; }
.project-label { font-size: 12px; }
.summary-card > span:first-child, .summary-card > a, .summary-card > small, .copy-button { font-size: 12px; }
.section-kicker { font-size: 10px; }
.connection-strip strong { font-size: 12px; }
.connection-strip small { font-size: 10px; }
.disabled-grid article > span, .disabled-grid p, .disabled-grid small { font-size: 11px; }
.disabled-grid .module-ready { border-style: solid; opacity: 1; background: var(--surface); }
.disabled-grid .module-ready a { color: var(--blue); font-size: 13px; font-weight: 760; text-decoration: none; }
.security-note p { font-size: 12px; }
.security-note code { font-size: 11px; }
.provider-logo { font-size: 14px; }
.integration-head p, .status-pill { font-size: 10px; }
.connection-state > p { font-size: 12px; }
.connection-state > span, .check-times span, .check-times strong, .text-button { font-size: 11px; }
.check-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-times span { min-width: 0; }
.check-times strong { margin-top: 4px; overflow-wrap: anywhere; }
.mobile-header nav a { font-size: 12px; }
.info-meta small, .info-card > p, .info-list { font-size: 12px; }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.panel-card .section-heading { margin-bottom: 10px; }
.panel-help { margin-bottom: 19px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.panel-help code { color: var(--ink); }
.panel-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ip-list { display: grid; gap: 8px; }
.ip-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ip-list form, .table-action form { margin: 0; }
.text-button.danger { color: var(--red); }
.empty-compact { padding: 15px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.count-badge { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 800; }
.empty-state { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: rgba(255,254,250,.55); text-align: center; }
.empty-state strong { font-size: 19px; }
.empty-state span { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #ebe9df; color: var(--muted); font-size: 11px; font-weight: 790; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #e7e5dc; color: var(--ink-2); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > small { max-width: 300px; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.table-action { text-align: right; }
.nowrap { white-space: nowrap; }

.sync-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sync-strip article { display: grid; min-width: 0; grid-template-columns: 39px minmax(0, 1fr) 8px; align-items: center; gap: 10px; min-height: 86px; padding: 13px; border-right: 1px solid var(--line); }
.sync-strip article:last-child { border-right: 0; }
.sync-strip strong, .sync-strip small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sync-strip strong { font-size: 12px; }
.sync-strip small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.orders-section { margin-top: 28px; }
.orders-table { min-width: 1120px; }
.orders-table td { max-width: 260px; }
.provider-inline { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.orders-table code { display: block; font-size: 11px; overflow-wrap: anywhere; }
.items-cell small { display: -webkit-box !important; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--surface-2); font-size: 10px; font-weight: 760; white-space: nowrap; }

@media (max-width: 1040px) {
    .admin-grid { grid-template-columns: 1fr; }
    .sync-strip { grid-template-columns: repeat(2, 1fr); }
    .sync-strip article:nth-child(2) { border-right: 0; }
    .sync-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
    .mobile-header { align-items: flex-start; flex-direction: column; }
    .mobile-header nav { width: 100%; overflow-x: auto; }
    .panel-card { padding: 18px; }
    .sync-strip { grid-template-columns: 1fr; }
    .sync-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
    .sync-strip article:last-child { border-bottom: 0; }
}
