:root {
    --guide-bg: #f4f6fb;
    --guide-surface: #ffffff;
    --guide-primary: #1a3d7c;
    --guide-primary-light: #2f5ab5;
    --guide-accent: #2ec4b6;
    --guide-muted: #e0e6f5;
    --guide-text: #1f2430;
    --guide-text-light: #5a6170;
    --guide-border: #d7dce9;
    --guide-success: #2a9d8f;
    --guide-warning: #f4a261;
    --guide-danger: #e76f51;
    --guide-radius: 16px;
    --guide-shadow: 0 16px 40px rgba(26, 61, 124, 0.08);
    --guide-transition: 0.25s ease;
    --guide-on-primary: #ffffff;
    --guide-on-accent: #053b4b;
    --guide-footer-text: #555555;
    --guide-panel-shadow: 0 12px 30px rgba(17, 23, 41, 0.07);
    --guide-card-shadow: 0 12px 28px rgba(17, 23, 41, 0.05);
    --guide-timeline-shadow: 0 8px 24px rgba(17, 23, 41, 0.06);
    --guide-material-bg: rgba(255, 255, 255, 0.85);
    --guide-soft-surface: rgba(26, 61, 124, 0.04);
    --guide-callout-gradient-start: rgba(26, 61, 124, 0.95);
    --guide-callout-gradient-end: rgba(46, 196, 182, 0.9);
    font-size: 16px;
    --shell-surface: var(--guide-surface);
    --shell-section-surface: rgba(255, 255, 255, 0.92);
    --shell-border: rgba(26, 61, 124, 0.12);
    --shell-text-strong: var(--guide-primary);
    --shell-muted: var(--guide-text-light);
    --shell-accent: var(--guide-accent);
    --shell-avatar-bg: var(--guide-primary);
    --shell-max-width: min(1180px, 92vw);
}

:root[data-theme='dark'] {
    --guide-bg: #0b1120;
    --guide-surface: #111c2f;
    --guide-primary: #8fb4ff;
    --guide-primary-light: #b0c9ff;
    --guide-accent: #5eead4;
    --guide-muted: rgba(148, 163, 184, 0.22);
    --guide-text: #e2e8f0;
    --guide-text-light: #cbd5f5;
    --guide-border: rgba(148, 163, 184, 0.25);
    --guide-success: #34d399;
    --guide-warning: #fbbf24;
    --guide-danger: #f87171;
    --guide-shadow: 0 16px 40px rgba(3, 12, 33, 0.55);
    --guide-on-primary: #041021;
    --guide-on-accent: #042924;
    --guide-footer-text: #94a3b8;
    --guide-panel-shadow: 0 12px 30px rgba(8, 28, 55, 0.6);
    --guide-card-shadow: 0 12px 28px rgba(8, 28, 55, 0.5);
    --guide-timeline-shadow: 0 8px 24px rgba(8, 28, 55, 0.5);
    --guide-material-bg: rgba(17, 27, 45, 0.85);
    --guide-soft-surface: rgba(148, 163, 184, 0.12);
    --guide-callout-gradient-start: rgba(15, 44, 84, 0.9);
    --guide-callout-gradient-end: rgba(46, 196, 182, 0.65);
    --shell-surface: var(--guide-surface);
    --shell-section-surface: rgba(15, 23, 42, 0.72);
    --shell-border: rgba(148, 163, 184, 0.2);
    --shell-text-strong: #f8fafc;
    --shell-muted: var(--guide-text-light);
    --shell-accent: var(--guide-accent);
    --shell-avatar-bg: #334155;
}

body.guide-body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--guide-bg);
    margin: 0;
    color: var(--guide-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--guide-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.guide-container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.guide-subnav {
    background: var(--shell-section-surface);
    border-bottom: 1px solid var(--shell-border);
}

.guide-subnav__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.guide-subnav__links .btn {
    margin: 0;
}

/* Internal Poradnik tabs */
.guide-tabs {
    background: var(--guide-surface);
    border-bottom: 2px solid var(--guide-border);
}

.guide-tabs__links {
    display: flex;
    gap: 0;
}

.guide-tabs__link {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--guide-text-light);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.guide-tabs__link:hover {
    background: rgba(46, 196, 182, 0.04);
    text-decoration: none;
}

.guide-tabs__link--active {
    color: var(--guide-primary);
    border-bottom-color: var(--guide-accent);
    background: rgba(46, 196, 182, 0.06);
}

.guide-tabs__link--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    box-sizing: border-box;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    margin: 0;
    cursor: pointer;
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    transition: var(--guide-transition);
}

.guide-btn:hover,
.guide-btn:focus-visible {
    filter: brightness(1.05);
    text-decoration: none;
}

.guide-btn:disabled {
    cursor: not-allowed;
    background: var(--guide-muted);
    color: var(--guide-text-light);
}

.guide-btn--ghost {
    background: transparent;
    border: 1px solid var(--guide-border);
    color: var(--guide-primary);
}

.guide-btn--ghost:hover {
    border-color: var(--guide-primary);
}

:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home {
    background: var(--guide-accent);
    color: var(--guide-on-accent);
    border: none;
}

:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home:hover,
:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home:focus-visible {
    border: none;
}

.guide-btn--accent {
    background: var(--guide-accent);
    color: var(--guide-on-accent);
}

.guide-btn--full {
    width: 100%;
}

.guide-main {
    flex: 1;
    padding: 32px 0 60px;
}

.guide-flash-region {
    background: rgba(46, 196, 182, 0.15);
    padding: 12px 0;
}

.guide-flash {
    padding: 12px 18px;
    border-radius: var(--guide-radius);
    background: var(--guide-surface);
    border-left: 4px solid var(--guide-accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.guide-flash--warning {
    border-left-color: var(--guide-warning);
    background: rgba(244, 162, 97, 0.1);
}

.guide-section {
    margin-bottom: 56px;
}

.guide-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
    background: var(--guide-surface);
    padding: 48px;
    border-radius: calc(var(--guide-radius) + 8px);
    box-shadow: var(--guide-shadow);
}

.guide-hero__content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 16px;
    color: var(--guide-primary);
}

.guide-hero__content p {
    font-size: 1.05rem;
    color: var(--guide-text-light);
    margin-bottom: 24px;
}

.guide-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 61, 124, 0.08);
    color: var(--guide-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-account-callout {
    background: linear-gradient(135deg, var(--guide-callout-gradient-start), var(--guide-callout-gradient-end));
    color: var(--guide-on-primary);
    padding: 38px;
    border-radius: calc(var(--guide-radius) + 8px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: center;
    box-shadow: var(--guide-shadow);
}

.guide-account-callout h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--guide-on-primary);
}

.guide-account-callout p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-account-callout li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer {
    text-align: center;
    font-size: 0.56em;
    color: var(--guide-footer-text);
}

.footer a {
    color: var(--guide-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Step view */

.guide-step-header {
    background: var(--guide-surface);
    padding: 24px 28px;
    border-radius: var(--guide-radius);
    box-shadow: var(--guide-panel-shadow);
    margin-bottom: 24px;
}

.guide-step-header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--guide-primary);
}

.guide-step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.guide-step-description {
    margin: 0;
    color: var(--guide-text-light);
    line-height: 1.6;
}

.guide-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.guide-step-actions__note {
    font-size: 0.85rem;
    color: var(--guide-text-light);
}

.guide-step-timeline {
    position: relative;
    padding: 24px;
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    margin-bottom: 28px;
    box-shadow: var(--guide-timeline-shadow);
}

.guide-step-timeline__track {
    position: relative;
    height: 6px;
    background: var(--guide-muted);
    border-radius: 999px;
}

.guide-step-timeline__progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--guide-accent);
    border-radius: 999px;
    transition: width var(--guide-transition);
}

.guide-step-timeline__list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
}

.guide-step-timeline__item {
    text-align: center;
    font-size: 0.78rem;
    color: var(--guide-text-light);
    position: relative;
}

.guide-step-timeline__label {
    margin-top: 6px;
}

.guide-step-timeline__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--guide-muted);
    background: var(--guide-surface);
    font-weight: 600;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--guide-transition), border-color var(--guide-transition), background var(--guide-transition), box-shadow var(--guide-transition);
}

.guide-step-timeline__dot:hover {
    border-color: var(--guide-primary);
    box-shadow: 0 0 0 3px rgba(26, 61, 124, 0.12);
}

.guide-step-timeline__dot:focus-visible {
    outline: 3px solid rgba(26, 61, 124, 0.45);
    outline-offset: 2px;
}

.guide-step-timeline__item.is-completed .guide-step-timeline__dot {
    border-color: var(--guide-accent);
    background: rgba(46, 196, 182, 0.12);
    color: var(--guide-primary);
}

.guide-step-timeline__item.is-current .guide-step-timeline__dot {
    border-color: var(--guide-primary);
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    transform: scale(1.1);
}

.guide-step-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 24px;
}

.guide-card {
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    padding: 24px;
    box-shadow: var(--guide-card-shadow);
}

.guide-card h2 {
    margin-top: 0;
    font-size: 1.35rem;
    color: var(--guide-primary);
}

.guide-card h3 {
    margin-top: 24px;
    font-size: 1.05rem;
    color: var(--guide-primary);
}

.guide-card ul,
.guide-card ol {
    padding-left: 18px;
    line-height: 1.6;
    color: var(--guide-text-light);
}

.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.guide-checklist li {
    padding: 10px 12px;
    background: var(--guide-soft-surface);
    border-radius: 12px;
}

.guide-checklist__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.guide-checklist__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.guide-checklist__box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--guide-primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.guide-checklist__box::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: transparent;
    border-radius: 2px;
}

.guide-checklist li.is-completed .guide-checklist__box::after {
    background: var(--guide-accent);
}

.guide-checklist li.is-completed .guide-checklist__label {
    text-decoration: line-through;
    color: var(--guide-primary);
}

.guide-checklist__checkbox:focus-visible + .guide-checklist__box {
    outline: 2px solid var(--guide-primary);
    outline-offset: 2px;
}

.guide-materials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.guide-material {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--guide-border);
    background: var(--guide-material-bg);
}

.guide-material strong {
    display: block;
    margin-bottom: 4px;
    color: var(--guide-primary);
}

.guide-material span {
    font-size: 0.9rem;
    color: var(--guide-text-light);
}

.guide-material.is-coming-soon {
    border-style: dashed;
    color: var(--guide-text-light);
    background: var(--guide-soft-surface);
}

.guide-alert {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(231, 111, 81, 0.1);
    border-left: 4px solid var(--guide-danger);
    color: var(--guide-danger);
    margin-bottom: 12px;
}

.guide-reminders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.guide-reminder {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(46, 196, 182, 0.15);
    border: 1px solid rgba(46, 196, 182, 0.25);
    color: var(--guide-text);
}

.guide-placeholder {
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed var(--guide-border);
    background: var(--guide-soft-surface);
    color: var(--guide-text-light);
}

.guide-celebration {
    position: relative;
    padding: 24px;
    border-radius: var(--guide-radius);
    background: linear-gradient(135deg,
            rgba(46, 196, 182, 0.65),
            rgba(255, 183, 3, 0.55),
            rgba(131, 56, 236, 0.6));
    text-align: center;
    color: var(--guide-primary);
    box-shadow: 0 12px 30px -18px rgba(26, 61, 124, 0.6);
		margin-top: 24px;
}


.guide-aside {
    display: grid;
    gap: 20px;
}

.guide-next-step {
    margin-top: 20px;
}

.guide-glossary {
    display: grid;
    gap: 12px;
}

.guide-glossary__item {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--guide-soft-surface);
}

.guide-glossary__term {
    font-weight: 600;
    color: var(--guide-primary);
}

.guide-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.guide-filter {
    border: 1px solid var(--guide-border);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--guide-surface);
    font-size: 0.85rem;
    color: var(--guide-text-light);
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.guide-filter:is(:hover, :focus-visible) {
    border-color: var(--guide-primary);
    color: var(--guide-primary);
}

.guide-filter.is-active {
    background: var(--guide-primary);
    border-color: var(--guide-primary);
    color: var(--guide-on-primary);
}

.guide-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.guide-dashboard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.guide-dashboard-progress__value {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--guide-primary);
}

.guide-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.guide-dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--guide-soft-surface);
}

.guide-dashboard-item[hidden] {
    display: none !important;
}

.guide-dashboard-item__title {
    font-weight: 600;
    color: var(--guide-primary);
}

.guide-dashboard-item__meta {
    font-size: 0.85rem;
    color: var(--guide-text-light);
}

.guide-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.guide-completion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 50vh, 560px);
}

.guide-completion__card {
    background: linear-gradient(145deg, var(--guide-surface), var(--guide-soft-surface));
    border-radius: calc(var(--guide-radius) + 12px);
    box-shadow: var(--guide-card-shadow);
    max-width: min(640px, 100%);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.5vw, 24px);
}

.guide-completion__icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    filter: drop-shadow(0 12px 24px rgba(26, 61, 124, 0.15));
}

:root[data-theme='dark'] .guide-completion__icon {
    filter: drop-shadow(0 12px 24px rgba(14, 23, 42, 0.45));
}

.guide-completion__card h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin: 0;
}

.guide-completion__card p {
    margin: 0;
    color: var(--guide-text-light);
    line-height: 1.6;
}

.guide-completion__actions {
    margin-top: 12px;
}

/* === Read-only banner === */
.guide-ro-banner {
    background: linear-gradient(135deg, var(--guide-callout-gradient-start), var(--guide-callout-gradient-end));
    color: var(--guide-on-primary);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-ro-banner__text {
    font-size: 0.88rem;
    font-weight: 600;
}

.guide-ro-banner__btn {
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--guide-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

.guide-ro-banner__btn:hover {
    text-decoration: none;
    filter: brightness(0.95);
}

/* === Overview table === */
.guide-overview-title {
    font-size: 1.3rem;
    color: var(--guide-primary);
    margin-bottom: 12px;
}

.guide-overview-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.guide-overview-summary__progress {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--guide-primary);
}

.guide-overview-summary__text {
    font-size: 0.9rem;
    color: var(--guide-text-light);
}

.guide-overview-table-wrap {
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    box-shadow: var(--guide-card-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.guide-overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.guide-overview-table th {
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    padding: 10px 8px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
}

.guide-overview-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--guide-border);
    vertical-align: middle;
}

.guide-ov-row {
    transition: background 0.15s;
}

.guide-ov-row:hover {
    background: rgba(46, 196, 182, 0.04);
}

.guide-ov-row--current {
    background: rgba(26, 61, 124, 0.04);
}

.guide-ov-row--current:hover {
    background: rgba(26, 61, 124, 0.07);
}

.guide-ov-row--done {
    opacity: 0.7;
}

.guide-ov-row--total {
    background: rgba(46, 196, 182, 0.08);
}

.guide-ov-row--total td {
    border-bottom: none;
    font-weight: 700;
}

.guide-ov-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--guide-accent);
    cursor: pointer;
}

.guide-ov-check-form {
    display: inline;
}

.guide-ov-cost {
    font-weight: 600;
    white-space: nowrap;
}

.guide-ov-cost--total {
    color: var(--guide-primary);
}

.guide-ov-time-active {
    color: var(--guide-primary);
    font-weight: 600;
}

.guide-ov-time-wait {
    color: var(--guide-warning);
    font-size: 0.78rem;
}

.guide-ov-time-total {
    font-size: 0.78rem;
    color: var(--guide-text-light);
}

.guide-ov-done {
    color: var(--guide-success);
    font-weight: 700;
}

.guide-ov-current-marker {
    font-weight: 700;
    color: var(--guide-primary);
    font-size: 0.78rem;
}

.guide-ov-todo {
    color: var(--guide-text-light);
}

/* === Overview mobile list === */
.guide-overview-mobile {
    display: none;
}

.guide-overview-mobile__summary {
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    padding: 12px 14px;
    box-shadow: var(--guide-card-shadow);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-overview-mobile__cost {
    font-weight: 700;
    color: var(--guide-accent);
    font-size: 0.95rem;
}

.guide-overview-mobile__meta {
    font-size: 0.68rem;
    color: var(--guide-text-light);
}

.guide-overview-mobile__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    padding: 8px 12px;
    margin-bottom: 4px;
    box-shadow: var(--guide-card-shadow);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.guide-overview-mobile__item:hover {
    text-decoration: none;
    background: rgba(46, 196, 182, 0.04);
}

.guide-overview-mobile__item--current {
    border-left: 3px solid var(--guide-primary);
}

.guide-overview-mobile__item--done {
    opacity: 0.7;
}

.guide-overview-mobile__item--future {
    opacity: 0.55;
}

.guide-overview-mobile__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--guide-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--guide-text-light);
}

.guide-ov-checkbox-mobile {
    width: 16px;
    height: 16px;
    accent-color: var(--guide-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.guide-overview-mobile__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.guide-overview-mobile__title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--guide-primary);
}

.guide-overview-mobile__item--future .guide-overview-mobile__title {
    color: var(--guide-text-light);
}

.guide-overview-mobile__detail {
    font-size: 0.6rem;
    color: var(--guide-text-light);
}

.guide-overview-mobile__arrow {
    font-size: 0.7rem;
    color: var(--guide-text-light);
    flex-shrink: 0;
}

/* === Step prev/next navigation === */
.guide-step-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.guide-step-nav__link {
    font-size: 0.82rem;
    color: var(--guide-text-light);
    text-decoration: none;
}

.guide-step-nav__link:hover {
    color: var(--guide-primary);
    text-decoration: underline;
}

/* === Time badges === */
.guide-badge--time {
    background: rgba(26, 61, 124, 0.08);
}

.guide-badge--wait {
    background: rgba(244, 162, 97, 0.12);
    color: #b45309;
}

:root[data-theme='dark'] .guide-badge--wait {
    color: var(--guide-warning);
}

.guide-badge--done {
    background: rgba(46, 196, 182, 0.12);
    color: var(--guide-success);
}

/* === Mark as done button === */
.guide-step-mark-done {
    margin-top: 24px;
}

.guide-btn-mark-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--guide-accent);
    background: rgba(46, 196, 182, 0.08);
    color: var(--guide-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.guide-btn-mark-done:hover {
    background: var(--guide-accent);
    color: var(--guide-on-accent);
    text-decoration: none;
}

.guide-btn-mark-done--reset {
    border-color: var(--guide-border);
    background: transparent;
    color: var(--guide-text-light);
}

.guide-btn-mark-done--reset:hover {
    border-color: var(--guide-danger);
    color: var(--guide-danger);
    background: rgba(231, 111, 81, 0.08);
}

.guide-btn-mark-done--disabled {
    border-color: var(--guide-border);
    background: var(--guide-soft-surface);
    color: var(--guide-text-light);
    cursor: default;
}

.guide-btn-mark-done--disabled:hover {
    background: var(--guide-soft-surface);
    color: var(--guide-text-light);
}

/* === Budget card (sidebar) === */
.guide-card--budget {
    border-left: 4px solid var(--guide-accent);
}

.guide-budget-rows {
    display: grid;
    gap: 4px;
}

.guide-budget-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--guide-text-light);
}

.guide-budget-row strong {
    color: var(--guide-text);
}

.guide-budget-next {
    background: rgba(46, 196, 182, 0.12);
    border: 1px solid rgba(46, 196, 182, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
}

.guide-budget-next__title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--guide-primary);
    margin-bottom: 4px;
}

.guide-budget-next__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.guide-budget-next__amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--guide-accent);
}

.guide-budget-next__label {
    font-size: 0.75rem;
    color: var(--guide-text-light);
}

/* === Budget bar (koszty page) === */
.guide-budget-bar {
    display: flex;
    height: 28px;
    background: var(--guide-muted);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.guide-budget-bar__spent {
    background: var(--guide-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--guide-on-accent);
}

.guide-budget-bar__next {
    background: rgba(46, 196, 182, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--guide-primary);
    overflow: visible;
    white-space: nowrap;
    position: relative;
    min-width: 0;
}

.guide-budget-bar__rest {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--guide-text-light);
}

/* === Koszty page layout === */
.guide-koszty-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 24px;
}

.guide-koszty-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-koszty-aside {
    display: grid;
    gap: 16px;
    align-content: start;
}

.guide-koszty-progress__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-koszty-progress__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--guide-primary);
}

.guide-koszty-progress__text {
    font-size: 0.88rem;
    color: var(--guide-text-light);
}

.guide-koszty-list {
    display: grid;
    gap: 4px;
}

.guide-koszty-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--guide-border);
    font-size: 0.85rem;
}

.guide-koszty-item:last-child {
    border-bottom: none;
}

.guide-koszty-item--done {
    color: var(--guide-success);
}

.guide-koszty-item--current {
    font-weight: 700;
    color: var(--guide-primary);
}

.guide-koszty-item__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-koszty-item__cost {
    white-space: nowrap;
}

.guide-koszty-aside__step-num {
    font-weight: 600;
    color: var(--guide-primary);
    margin-bottom: 4px;
}

.guide-koszty-aside__step-title {
    font-size: 0.88rem;
    color: var(--guide-text-light);
}

.guide-koszty-aside__wait {
    margin-top: 8px;
    padding: 8px;
    background: rgba(244, 162, 97, 0.1);
    border-radius: 8px;
    font-size: 0.78rem;
    color: #b45309;
}

:root[data-theme='dark'] .guide-koszty-aside__wait {
    color: var(--guide-warning);
}

/* === Mobile stepper === */
.guide-mobile-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}

.guide-mobile-stepper__dots {
    display: flex;
    gap: 3px;
}

.guide-mobile-stepper__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--guide-border);
    flex-shrink: 0;
}

.guide-mobile-stepper__dot--done {
    background: var(--guide-accent);
}

.guide-mobile-stepper__dot--current {
    background: var(--guide-primary);
}

.guide-mobile-stepper__current {
    flex: 1;
    min-width: 0;
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-mobile-stepper__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.guide-mobile-stepper__txt {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-mobile-stepper__next {
    flex-shrink: 0;
    background: var(--guide-surface);
    border: 2px solid var(--guide-border);
    border-radius: 12px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 120px;
}

.guide-mobile-stepper__next-num {
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--guide-primary);
}

.guide-mobile-stepper__next-txt {
    font-size: 0.6rem;
    color: var(--guide-text-light);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Visibility helpers */
.guide-desktop-only { display: block; }
.guide-mobile-only { display: none; }

/* Responsive tweaks */

@media (max-width: 1024px) {
    .guide-step-layout,
    .guide-dashboard-grid,
    .guide-koszty-layout {
        grid-template-columns: 1fr;
    }
    .guide-aside {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 32px;
    }
    .guide-main {
        padding: 24px 0 40px;
    }
    .guide-step-timeline__list {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
}

@media (max-width: 768px) {
    .guide-tabs__link {
        font-size: 0.75rem;
        padding: 10px 4px;
    }

    .guide-ro-banner {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .guide-ro-banner__text {
        font-size: 0.75rem;
    }

    .guide-overview-table-wrap {
        display: none;
    }

    .guide-overview-mobile {
        display: block;
    }

    .guide-desktop-only { display: none; }
    .guide-mobile-only { display: flex; }

    .guide-koszty-progress__value {
        font-size: 1.2rem;
    }

    .guide-budget-bar {
        height: 22px;
    }

    .guide-budget-bar__spent,
    .guide-budget-bar__next {
        font-size: 0.55rem;
    }

    .guide-budget-bar__rest {
        font-size: 0.5rem;
    }

    .guide-budget-next__amount {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .guide-container {
        width: 92vw;
    }
    .guide-hero {
        padding: 24px;
    }
    .guide-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .guide-btn {
        width: 100%;
    }
    .guide-subnav__links {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }
    .guide-subnav__links .btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .guide-step-timeline {
        padding: 18px;
    }
    .guide-step-timeline__list {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    .guide-step-timeline__label {
        display: none;
    }
    .guide-step-timeline__dot {
        margin-bottom: 0;
    }
    .guide-btn-mark-done {
        font-size: 0.78rem;
        padding: 12px;
    }
    .guide-koszty-item {
        font-size: 0.75rem;
    }
}
