/* ============================================
   MOJKRZ.PL - Mobile-First Styles
   Version 1.0
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Colors */
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --success: #34a853;
    --success-light: #e6f4ea;
    --warning: #fbbc04;
    --warning-light: #fef7e0;
    --danger: #ea4335;
    --danger-light: #fce8e6;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #80868b;
    --gray-700: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* Layout */
    --top-bar-height: 56px;
    --bottom-nav-height: 72px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    -webkit-appearance: none;
}

input, select {
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom */
    border: none;
    outline: none;
    -webkit-appearance: none;
}


textarea {
	width: 100%;
	min-height: 100px;
	resize: none;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	border: none;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.btn-1 {
	background-color: var(--primary);
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
	color: var(--white);
	cursor: pointer;
	display: flex;
    align-items: center;
    justify-content: center;
}

.btn-2 {
	border: none;
    cursor: pointer;
    padding: 20px;
    border-radius: var(--radius-md);
	display: flex;
    flex-direction: column;
    align-items: center;
	background: #ffffff;
}

.title {
	font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- SPLASH POROZMAWIAJMY ---------- */

.talk-type-buttons {
	display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
	margin-bottom: 20px;
}

.talk-type-buttons span {
	font-size: 25px;
    margin-bottom: 5px;
}

.talk-type-buttons .btn-2.active{
	border: 1px solid var(--primary);
}

#voiceBtn.recording {
	background-color: red;
	color: white;
}

/* ---------- SPLASH SCREEN ---------- */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: var(--white);
}

.splash-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    animation: pulse 2s infinite;
}

.splash-icon svg {
    width: 100%;
    height: 100%;
}

.splash-icon svg circle,
.splash-icon svg path {
    stroke: var(--white);
}

.splash-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.splash-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.splash-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- APP CONTAINER ---------- */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
}

/* ---------- TOP BAR - Elegancka gĂłrna belka ---------- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
    z-index: 100;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(21, 101, 192, 0.3);
}

.top-bar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / Logo */
.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.brand-logo svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.brand-case {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== SYNC STATUS SYSTEM ========== */
.sync-status-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.sync-status-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.sync-icon-wrapper {
    position: relative;
    width: 22px;
    height: 22px;
}

.sync-icon {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.sync-status-btn.syncing .sync-icon {
    animation: spin-sync 1.5s linear infinite;
}

@keyframes spin-sync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sync-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.sync-status-dot.synced {
    background: #22c55e;
    animation: pulse-dot 3s ease-in-out infinite;
}

.sync-status-dot.syncing {
    background: #3b82f6;
    animation: pulse-syncing 1s ease-in-out infinite;
}

.sync-status-dot.offline {
    background: #f59e0b;
    animation: none;
}

.sync-status-dot.error {
    background: #ef4444;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

@keyframes pulse-syncing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sync Panel Dropdown */
.sync-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.sync-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sync-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.sync-panel-header {
    padding: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.sync-panel.syncing .sync-panel-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.sync-panel.offline .sync-panel-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sync-panel-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sync-status-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.sync-status-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.sync-status-icon.syncing svg {
    animation: spin-sync 1.5s linear infinite;
}

.sync-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sync-status-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.sync-status-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.sync-panel-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sync-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sync-info-row:last-child {
    border-bottom: none;
}

.sync-info-row svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.sync-info-row span {
    font-size: 13px;
    color: #64748b;
}

.sync-info-row strong {
    color: #1e293b;
    font-weight: 600;
}

.sync-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 4px 16px 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sync-refresh-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.sync-refresh-btn:active {
    transform: scale(0.98);
}

.sync-refresh-btn.syncing {
    pointer-events: none;
    opacity: 0.7;
}

.sync-refresh-btn svg {
    width: 18px;
    height: 18px;
    stroke: #475569;
}

.sync-refresh-btn.syncing svg {
    animation: spin-sync 1.5s linear infinite;
}

.sync-panel-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sync-connection {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connection-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-connection 2s ease-in-out infinite;
}

@keyframes pulse-connection {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sync-panel.offline .connection-dot {
    background: #f59e0b;
    animation: none;
}

/* Action Button (Notifications) */
.top-action-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.top-action-btn svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.top-action-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: #ff5252;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
}

.notification-badge:empty,
.notification-badge[data-count="0"] {
    display: none;
}

/* User Avatar */
.top-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.top-avatar:active {
    transform: scale(0.92);
}

.avatar-initials {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Avatar z badge'm ustawieĹ */
.top-avatar.has-settings {
    position: relative;
    cursor: pointer;
}

.top-avatar.has-settings:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.avatar-settings-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--gray-100);
    transition: all 0.2s ease;
}

.avatar-settings-badge svg {
    width: 10px;
    height: 10px;
    color: var(--gray-700);
    transition: transform 0.3s ease;
}

.top-avatar.has-settings:hover .avatar-settings-badge {
    background: var(--primary);
    border-color: var(--primary);
}

.top-avatar.has-settings:hover .avatar-settings-badge svg {
    color: var(--white);
    transform: rotate(45deg);
}

.top-avatar.has-settings:active .avatar-settings-badge svg {
    transform: rotate(90deg);
}

/* ---------- SCREENS CONTAINER ---------- */
.screens-container {
    flex: 1;
    margin-top: var(--top-bar-height);
    margin-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen {
    display: block;
    padding: var(--space-lg);
    padding-bottom: var(--space-2xl);
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- BOTTOM NAVIGATION ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    color: var(--gray-600);
    transition: all 0.2s ease;
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    background: var(--primary-light);
}

.nav-icon {
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
    position: relative;
}

.nav-icon svg {
    width: 26px;
    height: 26px;
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* ---------- HERO CARD ---------- */
/* ============================================
   JOURNEY HERO - Twoja droga do oddĹuĹźenia
   Kompaktowy pasek postÄpu
   ============================================ */

.journey-hero {
    margin-bottom: var(--space-md);
}

/* Header z tytuĹem i procentem */
.journey-header {
    margin-bottom: var(--space-lg);
}

.journey-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.journey-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.journey-percent {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.journey-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
}

.journey-subtitle strong {
    color: var(--gray-800);
}

/* Kompaktowy pasek z kropkami */
.journey-progress-bar {
    padding: var(--space-sm) 0;
}

.progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Kropka (numer fazy) */
.progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-dot span {
    line-height: 1;
}

.progress-dot svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

/* ĹÄcznik miÄdzy kropkami */
.progress-connector {
    width: 24px;
    height: 3px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* Stan: ukoĹczone */
.progress-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.progress-connector.completed {
    background: var(--success);
}

/* Stan: aktualny */
.progress-dot.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
    transform: scale(1.15);
    position: relative;
}

.progress-dot.current::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
}

/* Ostatnia kropka - finaĹ */
.progress-dot.final {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.progress-dot.final.completed {
    background: linear-gradient(135deg, #34a853 0%, #00c853 100%);
    border-color: transparent;
}

.progress-dot.final.completed svg {
    color: var(--white);
}

/* Separator przed szczegĂłĹami */
.journey-separator {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.journey-separator::before,
.journey-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.journey-separator span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   STATUS BAR - Styl InPost (stary, zachowany)
   ============================================ */

.status-bar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    display: none; /* ukryty - zastÄpiony przez journey-hero */
}

.status-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.status-phase {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.status-dot {
    color: var(--gray-400);
    font-size: 10px;
}

.status-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.status-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-line {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    position: relative;
    overflow: visible;
}

.progress-line .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #42a5f5 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.progress-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    min-width: 36px;
    text-align: right;
}

/* ============================================
   ALERT CARD - Pilna akcja
   ============================================ */

.alert-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--danger);
}

.alert-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.alert-indicator .indicator-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.alert-indicator .indicator-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.alert-text {
    flex: 1;
    min-width: 0;
}

.alert-text .alert-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.alert-text .alert-sub {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
}

.alert-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--danger);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.alert-btn svg {
    width: 16px;
    height: 16px;
}

.alert-btn:active {
    transform: scale(0.96);
    background: #c62828;
}

/* Ukryj alert gdy brak akcji */
.alert-card.hidden {
    display: none;
}

/* ============================================
   DEBTS SCREEN - Ekran wierzytelnoĹci
   ============================================ */

/* Stats Bar */
.debts-stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.dsb-total {
    display: flex;
    flex-direction: column;
}

.dsb-amount {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.dsb-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsb-counts {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.dsb-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dsb-count .count-value {
    font-size: 26px;
    font-weight: 700;
}

.dsb-count .count-value.success { color: #81c784; }
.dsb-count .count-value.warning { color: #ffb74d; }
.dsb-count .count-value.danger { color: #ef5350; }

.dsb-count .count-label {
    font-size: 8px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Filter Bar */
.debts-filter-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    padding-bottom: 4px;
}

.debt-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.debt-filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.debt-filter-chip:active {
    transform: scale(0.96);
}

.chip-badge {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.08);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.debt-filter-chip.active .chip-badge {
    background: rgba(255,255,255,0.25);
}

/* Debts List Screen */
.debts-list-screen {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Pojedyncza karta wierzytelnoĹci */
.debt-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.debt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.debt-card.status-verified::before {
    background: var(--success);
}

.debt-card.status-pending::before {
    background: var(--warning);
}

.debt-card.status-disputed::before {
    background: var(--danger);
}

.debt-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.debt-logo.bank {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.debt-logo.loan {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.debt-logo span {
    font-size: 12px;
    font-weight: 700;
}

.debt-info {
    flex: 1;
    min-width: 0;
}

.debt-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.debt-type {
    font-size: 12px;
    color: var(--gray-500);
}

.debt-amount-section {
    text-align: right;
    flex-shrink: 0;
}

.debt-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.debt-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.debt-status.verified {
    background: var(--success-light);
    color: var(--success);
}

.debt-status.pending {
    background: var(--warning-light);
    color: #f57c00;
}

.debt-status.disputed {
    background: var(--danger-light);
    color: var(--danger);
}

.debt-status svg {
    width: 12px;
    height: 12px;
}

/* Legenda ekranu dĹugĂłw */
.debts-screen-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.debts-screen-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.debts-screen-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.debts-screen-legend .dot.success { background: var(--success); }
.debts-screen-legend .dot.warning { background: var(--warning); }
.debts-screen-legend .dot.danger { background: var(--danger); }

/* ---------- TIMELINE SECTION ---------- */
.timeline-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
}

/* Ukryj stary section-title w timeline gdy jest journey-hero */
.timeline-section .section-title {
    display: none;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.timeline-item.completed .timeline-dot svg {
    width: 14px;
    height: 14px;
}

.timeline-item.current .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0;
}

.dot-pulse {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.7; }
}

.timeline-item.future .timeline-dot {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.timeline-item.future .timeline-dot.final {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}

.timeline-item.future .timeline-dot.final svg {
    width: 14px;
    height: 14px;
}

.timeline-content {
    padding-left: var(--space-md);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
}

.timeline-item.future .timeline-title {
    color: var(--gray-500);
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.timeline-badge {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.timeline-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.timeline-item.future .timeline-desc {
    color: var(--gray-400);
}

.timeline-waiting {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--primary);
    background: var(--primary-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
}

.waiting-icon {
    width: 18px;
    height: 18px;
    animation: spin 3s linear infinite;
}

/* ---------- ACCORDION TIMELINE ---------- */

.accordion-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Accordion Phase */
.accordion-phase {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.accordion-phase.completed {
    border-color: var(--success-light);
}

.accordion-phase.current {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

.accordion-phase.future {
    opacity: 0.85;
}

.accordion-phase.warning {
    border-color: var(--danger-light);
}

.accordion-phase.success {
    border-color: var(--success);
}

/* Accordion Header */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: transparent;
    text-align: left;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-header:active {
    background: var(--gray-100);
}

/* Status Icon */
.accordion-status {
    flex-shrink: 0;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.status-icon.completed {
    background: var(--success);
    color: var(--white);
}

.status-icon.current {
    background: var(--primary);
    position: relative;
}

.status-icon.future {
    background: var(--gray-200);
    color: var(--gray-600);
}

.status-icon.success {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: var(--gray-900);
    font-size: 18px;
}

/* Pulse dot */
.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.6; }
}

/* Accordion Info */
.accordion-info {
    flex: 1;
    min-width: 0;
}

.accordion-number {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accordion-title {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2px;
}

.accordion-phase.future .accordion-title {
    color: var(--gray-500);
}

/* Badges */
.accordion-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-left: var(--space-sm);
    vertical-align: middle;
}

.accordion-badge.now {
    background: var(--primary);
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

.accordion-badge.warning {
    background: var(--danger);
    color: var(--white);
}

.accordion-badge.success {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: var(--gray-900);
}

/* Meta info */
.accordion-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.accordion-steps,
.accordion-deadlines {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.accordion-progress {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--gray-700);
}

/* Arrow */
.accordion-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.accordion-arrow svg {
    width: 100%;
    height: 100%;
}

.accordion-phase.expanded .accordion-arrow {
    transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 var(--space-lg);
}

.accordion-phase.expanded .accordion-content {
    max-height: 1000px;
    padding: 0 var(--space-lg) var(--space-lg);
}

/* Phase Action Alert */
.phase-action-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--danger-light), #fff5f5);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.alert-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-icon {
    font-size: 24px;
}

.alert-text {
    display: flex;
    flex-direction: column;
}

.alert-text strong {
    font-size: var(--font-size-sm);
    color: var(--danger);
}

.alert-text span {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
}

.alert-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--danger);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.alert-countdown .days {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1;
}

.alert-countdown .label {
    font-size: var(--font-size-xs);
}

/* Mini Timeline */
.mini-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mini-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    transition: background 0.2s ease;
}

.mini-step.done {
    background: var(--success-light);
}

.mini-step.active {
    background: var(--primary-light);
    border: 1px solid var(--primary);
}

.mini-step.action {
    background: var(--danger-light);
    border: 1px solid var(--danger);
}

.mini-step.pending {
    background: var(--gray-50);
    opacity: 0.7;
}

.mini-step.deadline {
    border-left: 3px solid var(--warning);
}

.mini-step.deadline.critical {
    border-left-color: var(--danger);
}

.mini-step.milestone {
    border-left: 3px solid var(--primary);
}

.mini-step.final {
    background: linear-gradient(135deg, var(--success-light), #d4edda);
    border-left: 3px solid var(--success);
}

/* Step Dot */
.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--gray-200);
    color: var(--gray-600);
}

.mini-step.done .step-dot {
    background: var(--success);
    color: var(--white);
}

.mini-step.active .step-dot {
    background: var(--primary);
    color: var(--white);
}

.step-dot.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.step-dot.urgent {
    background: var(--danger);
    color: var(--white);
    font-size: 14px;
}

/* Step Content */
.step-content {
    flex: 1;
    min-width: 0;
}

.step-text {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-800);
}

.step-text.important {
    font-weight: 600;
    color: var(--danger);
}

.step-sub {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: 1px;
}

.step-date {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    margin-left: auto;
}

.step-actor {
    font-size: 14px;
    flex-shrink: 0;
}

.step-actor.you {
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
}

.step-note {
    font-size: var(--font-size-xs);
    color: var(--danger);
    font-weight: 600;
    margin-left: auto;
}

/* Phase Info Box */
.phase-info-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.phase-info-box.warning {
    background: var(--danger-light);
    border-left: 3px solid var(--danger);
}

.phase-info-box.success {
    background: var(--success-light);
    border-left: 3px solid var(--success);
}

.phase-info-box span {
    font-size: 20px;
}

.phase-info-box p {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin: 0;
}

/* Phase Action Button */
.phase-action-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
    background: var(--primary);
    color: var(--white);
    font-size: var(--font-size-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.phase-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.phase-action-btn:active {
    transform: translateY(0);
}

/* Sprawozdania - sekcja */
.report-warning {
    color: var(--danger);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

.report-deadline {
    color: var(--warning);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

.report-icon.warning {
    color: var(--warning);
}

.report-help-card {
    display: flex;
    gap: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.report-help-card .help-icon {
    color: var(--primary);
}

.report-help-card .help-icon svg {
    width: 24px;
    height: 24px;
}

.report-help-card .help-text {
    flex: 1;
}

.report-help-card .help-text p {
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    margin: 0 0 var(--space-sm) 0;
}

.report-help-card .help-text ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.report-help-card .help-text li {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: 4px;
}

/* ---------- LAST SYNC ---------- */
.last-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    padding: var(--space-md);
}

.last-sync svg {
    width: 16px;
    height: 16px;
}

/* ---------- SCREEN HEADER ---------- */
.screen-header {
    margin-bottom: var(--space-xl);
}

.screen-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.screen-subtitle {
    font-size: var(--font-size-base);
    color: var(--gray-600);
}

/* Screen header z ikonÄ (ustawienia) */
.screen-header-settings {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.screen-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.screen-header-icon svg {
    width: 26px;
    height: 26px;
    color: var(--gray-700);
}

.screen-header-text {
    flex: 1;
}

.screen-header-settings .screen-title {
    margin-bottom: 2px;
}

.screen-header-settings .screen-subtitle {
    font-size: var(--font-size-sm);
}

/* ---------- FILTER TABS ---------- */
.filter-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
}

.filter-tab {
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ---------- SMART FILTER TABS ---------- */
.filter-tabs-smart {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    background: var(--gray-100);
    padding: 6px;
    border-radius: var(--radius-lg);
}

.filter-tab-smart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-tab-smart.active {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-tab-smart .tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.filter-tab-smart.active .tab-icon {
    color: var(--primary);
}

.filter-tab-smart .tab-icon svg {
    width: 20px;
    height: 20px;
}

.filter-tab-smart .tab-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-tab-smart.active .tab-label {
    color: var(--gray-900);
}

.filter-tab-smart .tab-badge,
.filter-tab-smart .tab-count {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tab-smart .tab-badge.critical {
    background: #dc2626;
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.filter-tab-smart .tab-count {
    background: var(--gray-200);
    color: var(--gray-600);
}

.filter-tab-smart.active .tab-count {
    background: var(--primary-light);
    color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- THREADS LIST ---------- */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.thread-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.thread-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: background 0.2s ease;
}

.thread-header:active {
    background: var(--gray-50);
}

.thread-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.thread-status-dot.critical {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.thread-status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.thread-status-dot.success {
    background: #16a34a;
}

.thread-status-dot.info {
    background: var(--gray-400);
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.thread-separator {
    color: var(--gray-300);
}

.thread-badge-group {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.thread-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.thread-badge.draft {
    background: #fef3c7;
    color: #b45309;
}

.thread-badge.sent {
    background: #d1fae5;
    color: #047857;
}

.thread-badge.read {
    background: var(--gray-100);
    color: var(--gray-600);
}

.thread-deadline {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
}

.thread-deadline.critical {
    background: #fef2f2;
    color: #dc2626;
}

.thread-deadline.warning {
    background: #fffbeb;
    color: #b45309;
}

.thread-deadline.safe {
    background: #f0fdf4;
    color: #16a34a;
}

.thread-expand-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.thread-expand-icon svg {
    width: 20px;
    height: 20px;
}

.thread-card.expanded .thread-expand-icon {
    transform: rotate(180deg);
}

/* Timeline */
.thread-timeline {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
    padding-left: calc(var(--space-lg) + 6px);
}

.thread-card.expanded .thread-timeline {
    display: block;
}

.timeline-item {
    display: flex;
    gap: var(--space-md);
    position: relative;
}

.timeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-dot.received {
    background: var(--gray-200);
}

.timeline-dot.sent {
    background: #16a34a;
}

.timeline-dot.sent svg {
    width: 14px;
    height: 14px;
    color: white;
}

.timeline-dot.draft {
    background: #f59e0b;
}

.timeline-dot.draft svg {
    width: 12px;
    height: 12px;
    color: white;
}

.timeline-dot.deadline {
    background: transparent;
    border: 2px dashed;
}

.timeline-dot.deadline.critical {
    border-color: #dc2626;
}

.timeline-dot.deadline.safe {
    border-color: #16a34a;
}

.timeline-dot.resolved {
    background: #16a34a;
}

.timeline-dot.resolved svg {
    width: 14px;
    height: 14px;
    color: white;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--gray-200);
    min-height: 16px;
    margin: 4px 0;
}

.timeline-content {
    flex: 1;
    padding-bottom: var(--space-lg);
    min-width: 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.timeline-direction {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--gray-500);
}

.timeline-direction svg {
    width: 14px;
    height: 14px;
}

.timeline-direction.draft-label {
    color: #b45309;
}

.timeline-direction.sent-label {
    color: #047857;
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

.timeline-body {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.timeline-body h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.timeline-body p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.5;
}

/* Draft content in timeline */
.timeline-content.draft-content .timeline-body {
    background: #fffbeb;
    border: 1px dashed #fcd34d;
}

.draft-autosave {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
}

.draft-autosave svg {
    width: 12px;
    height: 12px;
}

.draft-attachments {
    margin-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.attachment-chip svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.draft-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Timeline action buttons */
.timeline-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-action-btn svg {
    width: 16px;
    height: 16px;
}

.timeline-action-btn.primary {
    background: var(--primary);
    color: white;
}

.timeline-action-btn.primary:active {
    background: var(--primary-dark);
}

.timeline-action-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.timeline-action-btn.secondary:active {
    background: var(--gray-200);
}

.timeline-action-btn.send {
    background: #16a34a;
    color: white;
}

.timeline-action-btn.send:active {
    background: #15803d;
}

/* Sent content styling */
.timeline-content.sent-content .timeline-body {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* Send confirmation */
.send-confirmation {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid #bbf7d0;
}

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.confirmation-ref {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gray-600);
    font-family: monospace;
}

.download-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    cursor: pointer;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-btn:active {
    background: var(--gray-200);
}

/* Delivery tracker */
.delivery-tracker {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-sm);
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tracker-step .step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-200);
    position: relative;
}

.tracker-step.completed .step-dot {
    background: #16a34a;
}

.tracker-step.completed .step-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.tracker-step .step-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
}

.tracker-step.completed .step-label {
    color: #16a34a;
}

.tracker-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 4px;
    margin-bottom: 20px;
}

.tracker-line.completed {
    background: #16a34a;
}

.delivery-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
}

.delivery-date svg {
    width: 14px;
    height: 14px;
}

/* Deadline reminder in timeline */
.deadline-content {
    padding-bottom: var(--space-sm);
}

.deadline-reminder-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px dashed;
}

.deadline-content.critical .deadline-reminder-box {
    background: #fef2f2;
    border-color: #fecaca;
}

.deadline-content.critical .deadline-reminder-box svg {
    color: #dc2626;
}

.deadline-content.safe .deadline-reminder-box {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.deadline-content.safe .deadline-reminder-box svg {
    color: #16a34a;
}

.deadline-reminder-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.deadline-reminder-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deadline-reminder-text strong {
    font-size: var(--font-size-sm);
    color: var(--gray-900);
}

.deadline-reminder-text span {
    font-size: 11px;
    color: var(--gray-600);
}

/* Resolved indicator */
.resolved-content {
    padding-bottom: 0;
}

.resolved-box {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: #d1fae5;
    border-radius: var(--radius-sm);
    color: #047857;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.resolved-box svg {
    width: 16px;
    height: 16px;
}

/* ---------- DRAFTS LIST ---------- */
.drafts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.draft-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 2px dashed #fcd34d;
}

.draft-card .draft-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
}

.draft-card .draft-icon {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.draft-card .draft-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.draft-card .draft-info {
    flex: 1;
    min-width: 0;
}

.draft-card .draft-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.draft-card .draft-meta {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.draft-card .draft-thread {
    color: #b45309;
}

.draft-autosave-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
    flex-shrink: 0;
}

.draft-autosave-indicator svg {
    width: 14px;
    height: 14px;
}

.draft-preview {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.draft-preview p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.draft-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--gray-50);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.draft-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 11px;
    color: var(--gray-500);
}

.draft-attachment-count,
.draft-last-edit {
    display: flex;
    align-items: center;
    gap: 4px;
}

.draft-attachment-count svg {
    width: 14px;
    height: 14px;
}

.draft-deadline-alert {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.draft-deadline-alert.critical {
    background: #fef2f2;
    color: #dc2626;
}

.draft-deadline-alert svg {
    width: 14px;
    height: 14px;
}

.draft-card .draft-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
}

.draft-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.draft-btn svg {
    width: 18px;
    height: 18px;
}

.draft-btn.edit {
    background: var(--gray-100);
    color: var(--gray-700);
}

.draft-btn.edit:active {
    background: var(--gray-200);
}

.draft-btn.send {
    background: #16a34a;
    color: white;
}

.draft-btn.send:active {
    background: #15803d;
}

/* Drafts empty hint */
.drafts-empty-hint {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-500);
}

.drafts-empty-hint .hint-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.drafts-empty-hint .hint-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-400);
}

.drafts-empty-hint p {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.drafts-empty-hint .hint-subtext {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ---------- DOCUMENTS LIST ---------- */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.document-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.document-view-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.document-view-btn:active {
    background: var(--gray-200);
}

.document-view-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- DEADLINE TRACKER SYSTEM ---------- */
.document-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.document-card[data-urgency="critical"] {
    border-color: #fecaca;
}

.document-card[data-urgency="warning"] {
    border-color: #fed7aa;
}

.document-card[data-urgency="safe"] {
    border-color: #bbf7d0;
}

/* Deadline Tracker Header */
.deadline-tracker {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.deadline-tracker.critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom-color: #fecaca;
}

.deadline-tracker.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom-color: #fed7aa;
}

.deadline-tracker.safe {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom-color: #bbf7d0;
}

.deadline-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.deadline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.critical .deadline-icon {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    animation: pulse-critical 2s infinite;
}

.warning .deadline-icon {
    background: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.safe .deadline-icon {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.deadline-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

@keyframes pulse-critical {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.55);
    }
}

.deadline-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deadline-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.critical .deadline-label {
    color: #b91c1c;
}

.warning .deadline-label {
    color: #b45309;
}

.safe .deadline-label {
    color: #15803d;
}

.deadline-date {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
}

.deadline-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    min-width: 60px;
}

.critical .deadline-countdown {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.warning .deadline-countdown {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.safe .deadline-countdown {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.countdown-number {
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.countdown-unit {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.deadline-progress {
    margin-top: var(--space-sm);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.critical .progress-bar {
    background: rgba(220, 38, 38, 0.15);
}

.warning .progress-bar {
    background: rgba(245, 158, 11, 0.15);
}

.safe .progress-bar {
    background: rgba(22, 163, 74, 0.15);
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.critical .progress-fill {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.warning .progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.safe .progress-fill {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
}

.critical .progress-labels {
    color: #b91c1c;
}

.warning .progress-labels {
    color: #b45309;
}

.safe .progress-labels {
    color: #15803d;
}

/* Document Body */
.document-body {
    padding: var(--space-lg);
    background: var(--white);
}

.document-content {
    margin-bottom: var(--space-lg);
}

.document-from {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.document-from svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.document-from strong {
    color: var(--gray-700);
    font-weight: 600;
}

.document-card .document-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.document-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.5;
}

/* Action Buttons */
.document-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: 14px var(--space-lg);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.document-action-btn.critical {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.document-action-btn.critical:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.document-action-btn.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.document-action-btn.warning:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.document-action-btn.safe {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.document-action-btn.safe:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.document-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Info document style (no deadline) */
.document-card.info-only {
    border-color: var(--gray-200);
}

.document-card.info-only .document-body {
    padding-top: var(--space-lg);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.info-badge svg {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
}

.document-card.info-only .document-action-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    box-shadow: none;
}

.document-card.info-only .document-action-btn:active {
    background: var(--gray-200);
}

/* Info document status indicator */
.document-status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.read {
    background: var(--success);
}

.status-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.status-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
}

.document-date {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-500);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gray-400);
}

.empty-text {
    font-size: var(--font-size-base);
}

/* Empty state card - dla pustych ekranĂłw */
.empty-state-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--space-sm);
}

.empty-state-text {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   MĂJ BEZPIECZNIK (OpĹaty) - Checklista rachunkĂłw
   ============================================ */

/* Hero: Ile mam na Ĺźycie */
.safeguard-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.safeguard-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.safeguard-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.safeguard-amount .amount-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.safeguard-amount .amount-currency {
    font-size: var(--font-size-xl);
    font-weight: 600;
    opacity: 0.9;
}

.safeguard-daily {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    display: inline-flex;
}

.safeguard-daily .daily-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.safeguard-daily .daily-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.safeguard-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.breakdown-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.breakdown-value {
    font-size: var(--font-size-base);
    font-weight: 600;
}

.breakdown-value.income {
    color: #a5d6a7;
}

.breakdown-value.expense {
    color: #ffcdd2;
}

/* Style dla rozliczenia w MĂłj Bezpiecznik */
.breakdown-income .breakdown-value {
    color: #a5d6a7;
}

.breakdown-paid .breakdown-value {
    color: #81d4fa;
}

.breakdown-unpaid .breakdown-value {
    color: #ffcc80;
    font-weight: 700;
}

.breakdown-divider {
    font-size: var(--font-size-xl);
    opacity: 0.5;
}

/* Pasek postÄpu rachunkĂłw */
.bills-progress-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.bills-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.bills-progress-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.bills-progress-count {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.bills-progress-count strong {
    color: var(--success);
}

.bills-progress-text {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.bills-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bills-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #66bb6a 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.bills-remaining {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    text-align: center;
}

.bills-remaining.all-paid {
    color: var(--success);
    font-weight: 600;
}

/* Lista rachunkĂłw (checklista) */
.bills-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

/* Pojedynczy rachunek */
.bill-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-300);
    transition: all 0.3s ease;
}

.bill-item:active {
    transform: scale(0.99);
}

/* Checkbox */
.bill-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bill-checkbox .check-icon {
    width: 16px;
    height: 16px;
    color: var(--white);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.bill-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.bill-checkbox.checked .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* ZawartoĹÄ rachunku */
.bill-content {
    flex: 1;
    min-width: 0;
}

.bill-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.bill-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
}

.bill-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bill-badge.critical {
    background: #fff3e0;
    color: #e65100;
}

.bill-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.bill-amount {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.bill-due {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.bill-status {
    font-size: var(--font-size-xs);
}

.bill-status.paid {
    color: var(--success);
    font-weight: 500;
}

/* Przycisk "ZapĹacone" */
.bill-action-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bill-action-btn:hover {
    background: var(--success);
    color: var(--white);
}

.bill-action-btn.paid {
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: var(--font-size-xs);
}

.bill-action-btn.paid:hover {
    background: var(--gray-300);
    color: var(--gray-700);
}

/* Ikona "done" dla zapĹaconych */
.bill-done-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bill-done-icon svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

/* Stany rachunkĂłw */

/* Rachunek zapĹacony */
.bill-item.bill-paid {
    border-left-color: var(--success);
    background: #f8fdf9;
}

.bill-item.bill-paid .bill-title {
    color: var(--gray-500);
    text-decoration: line-through;
}

.bill-item.bill-paid .bill-amount {
    color: var(--gray-400);
}

/* Rachunek KRYTYCZNY (PSW) */
.bill-item.bill-critical {
    border-left-color: #ff6f00;
    background: linear-gradient(90deg, #fff8e1 0%, var(--white) 100%);
    box-shadow: 0 2px 12px rgba(255, 111, 0, 0.15);
}

.bill-item.bill-critical .bill-checkbox {
    border-color: #ff6f00;
}

.bill-item.bill-critical .bill-action-btn {
    background: #ff6f00;
    color: var(--white);
}

.bill-item.bill-critical .bill-action-btn:hover {
    background: #e65100;
}

/* Rachunek zalegĹy (przeterminowany) */
.bill-item.bill-overdue {
    border-left-color: var(--danger);
    background: #fff5f5;
}

.bill-item.bill-overdue .bill-checkbox {
    border-color: var(--danger);
}

.bill-item.bill-overdue .bill-due {
    color: var(--danger);
    font-weight: 600;
}

/* Footer z poradÄ */
.safeguard-footer {
    margin-top: var(--space-md);
}

.safeguard-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.4;
}

.safeguard-tip svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---------- SYNDYK SCREEN ---------- */
.syndyk-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.syndyk-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.syndyk-avatar-compact {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f4fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.syndyk-avatar-compact svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.syndyk-details {
    flex: 1;
    min-width: 0;
}

.syndyk-name-compact {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.syndyk-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.syndyk-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.syndyk-license-num {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.syndyk-address {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.syndyk-address svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gray-400);
}

.syndyk-contact-row {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-md);
}

.syndyk-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    transition: all 0.15s ease;
}

.syndyk-contact-btn:active {
    transform: scale(0.98);
}

.syndyk-contact-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.syndyk-contact-btn.primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.syndyk-contact-btn.primary:active {
    background: var(--primary-dark);
}

/* ---------- REPORTS SECTION ---------- */
.reports-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.reports-compact-header {
    margin-bottom: var(--space-md);
}

.reports-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.reports-title-row h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.reports-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.reports-freq {
    font-size: var(--font-size-xs);
    color: var(--white);
    background: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
    margin-left: auto;
}

.reports-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin: var(--space-xs) 0 0 28px;
}

.reports-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.report-entry {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gray-300);
    transition: all 0.2s ease;
}

.report-entry.pending {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, var(--gray-50) 100%);
}

.report-entry.done {
    border-left-color: var(--success);
}

.report-entry-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-entry-marker svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.report-entry-marker.done {
    background: var(--success-light);
}

.report-entry-marker.done svg {
    color: var(--success);
}

.report-entry-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.report-entry-year {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    min-width: 50px;
}

.report-entry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-entry-status {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
}

.report-entry-status.success {
    color: var(--success);
}

.report-entry-deadline {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.report-entry-btn {
    padding: var(--space-xs) var(--space-md);
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-entry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-entry-btn.secondary {
    background: var(--primary-light);
    color: var(--primary);
}

.report-entry-btn.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.report-btn:disabled {
    opacity: 0.5;
}

.report-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ---------- HELP TIP ---------- */
.help-tip {
    display: flex;
    gap: var(--space-md);
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

.help-tip svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--gray-400);
}

/* ---------- PROFIL SCREEN ---------- */
.user-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.user-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
}

.user-case {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ---------- CASE SUMMARY ---------- */
.case-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.summary-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.summary-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.summary-label {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
}

/* ---------- SETTINGS SECTION ---------- */
.settings-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-name {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-900);
}

.setting-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ---------- TOGGLE SWITCH ---------- */
.toggle {
    position: relative;
    width: 52px;
    height: 32px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ---------- REMINDER OPTIONS ---------- */
.reminder-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.reminder-option input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.reminder-option input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.reminder-option input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* ---------- HELP SECTION ---------- */
.help-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.help-button {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.help-button svg {
    width: 24px;
    height: 24px;
    color: var(--gray-500);
}

/* ---------- APP VERSION ---------- */
.app-version {
    text-align: center;
    padding: var(--space-xl);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.version-tagline {
    font-style: italic;
    margin-top: var(--space-xs);
}

/* ---------- MODALS ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease;
}

.modal-container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-500);
}

.modal-close:active {
    background: var(--gray-100);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    padding-bottom: calc(var(--space-lg) + var(--safe-area-bottom));
    border-top: 1px solid var(--gray-200);
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

/* ---------- WIZARD MODAL ---------- */
.modal-container.wizard {
    max-height: 95vh;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    padding-top: var(--space-lg);
}

.wizard-step {
    width: 32px;
    height: 32px;
    background: var(--gray-200);
    color: var(--gray-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.wizard-step.active {
    background: var(--primary);
    color: var(--white);
}

.wizard-step.done {
    background: var(--success);
    color: var(--white);
}

.wizard-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
}

.wizard-header {
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg) var(--space-lg);
}

.wizard-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.wizard-back svg {
    width: 24px;
    height: 24px;
}

.wizard-title {
    flex: 1;
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.wizard-content {
    padding: 0 var(--space-xl) var(--space-xl);
}

.wizard-question h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.wizard-hint {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.wizard-option {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.2s ease;
}

.wizard-option:active,
.wizard-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

.option-title {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.option-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.wizard-form {
    margin-top: var(--space-lg);
}

.wizard-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    resize: none;
    margin-bottom: var(--space-lg);
}

.wizard-textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

.wizard-attachment {
    text-align: center;
}

.attach-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-700);
}

.attach-btn svg {
    width: 20px;
    height: 20px;
}

.attach-hint {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: var(--space-sm);
}

.wizard-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--primary);
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.wizard-submit svg {
    width: 24px;
    height: 24px;
}

/* ---------- SUCCESS STATE ---------- */
.success-animation {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--success);
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-md);
    text-align: center;
}

.success-message {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    text-align: center;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.wizard-done {
    width: 100%;
    padding: var(--space-lg);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* ---------- SYNDYK MESSAGE FORM ---------- */
.syndyk-message-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
    display: block;
}

.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-900);
}

.form-select:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    resize: none;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-attachment {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + var(--space-lg));
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   CENTRUM WIEDZY - Professional Knowledge Hub
   ============================================ */

/* Sekcja Centrum Wiedzy na ekranie Syndyk */
.knowledge-center {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.knowledge-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.knowledge-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.knowledge-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.knowledge-title-wrap {
    flex: 1;
}

.knowledge-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.knowledge-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.knowledge-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.knowledge-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.2s ease;
}

.knowledge-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--primary-light);
}

.knowledge-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.knowledge-card-icon svg {
    width: 24px;
    height: 24px;
}

.knowledge-card-icon.statusy {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.knowledge-card-icon.terminy {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.knowledge-card-content {
    flex: 1;
}

.knowledge-card-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.knowledge-card-content p {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.knowledge-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.knowledge-card-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
    background: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.knowledge-card-meta svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.knowledge-footer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
}

.knowledge-footer svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.knowledge-footer span {
    font-size: 11px;
    color: var(--gray-400);
}

/* ============================================
   KOMPENDIUM MODAL
   ============================================ */

/* Zachowujemy dla kompatybilnosci */
.kompendium-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.kompendium-section .section-header {
    margin-bottom: var(--space-lg);
}

.kompendium-section .section-badge.helpful {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary);
}

.kompendium-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.kompendium-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.2s ease;
}

.kompendium-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: var(--primary-light);
}

.kompendium-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kompendium-icon svg {
    width: 24px;
    height: 24px;
}

.kompendium-icon.slownik {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.kompendium-icon.statusy {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.kompendium-icon.terminy {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.kompendium-text {
    flex: 1;
}

.kompendium-title {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
}

.kompendium-desc {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.kompendium-arrow {
    width: 24px;
    height: 24px;
    color: var(--gray-400);
}

.kompendium-arrow svg {
    width: 100%;
    height: 100%;
}

/* Modal Kompendium */
.kompendium-modal {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.kompendium-header {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
    padding: var(--space-xl);
    padding-bottom: var(--space-lg);
    color: var(--white);
    position: relative;
}

.kompendium-header .modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.kompendium-header .modal-close:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Branding w headerze */
.kompendium-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.kompendium-logo {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kompendium-logo svg {
    width: 28px;
    height: 28px;
}

.kompendium-title-group {
    flex: 1;
}

.kompendium-modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 2px;
}

.kompendium-modal-subtitle {
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

/* Tabs */
.kompendium-tabs {
    display: flex;
    gap: var(--space-sm);
    background: rgba(0, 0, 0, 0.15);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.kompendium-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.kompendium-tab svg {
    width: 20px;
    height: 20px;
}

.kompendium-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.kompendium-tab:not(.active):active {
    background: rgba(255, 255, 255, 0.1);
}

/* Body */
.kompendium-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--gray-100);
}

.kompendium-content {
    display: none;
    padding: var(--space-lg);
}

.kompendium-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== SLOWNIK TAB ===== */

.slownik-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-md);
    transition: border-color 0.2s ease;
}

.slownik-search:focus-within {
    border-color: var(--primary);
}

.slownik-search svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.slownik-search input {
    flex: 1;
    background: transparent;
    font-size: var(--font-size-base);
    color: var(--gray-900);
}

.slownik-search input::placeholder {
    color: var(--gray-400);
}

.search-clear {
    padding: var(--space-xs);
    border-radius: 50%;
    color: var(--gray-400);
}

.search-clear:active {
    background: var(--gray-100);
}

/* Filters */
.slownik-filters {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
}

.slownik-filter {
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.slownik-filter.active {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: var(--white);
}

.slownik-filter.alarm.active {
    background: var(--danger);
    border-color: var(--danger);
}

.slownik-filter.uwaga.active {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--gray-900);
}

.slownik-filter.spokojnie.active {
    background: var(--success);
    border-color: var(--success);
}

/* Dictionary Items */
.slownik-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.slownik-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-300);
}

.slownik-item.alarm {
    border-left-color: var(--danger);
}

.slownik-item.uwaga {
    border-left-color: var(--warning);
}

.slownik-item.spokojnie {
    border-left-color: var(--success);
}

.slownik-item .slownik-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    background: var(--white);
    transition: background 0.2s ease;
}

.slownik-item .slownik-header:active {
    background: var(--gray-50);
}

.slownik-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.slownik-badge.alarm {
    background: var(--danger);
    color: var(--white);
}

.slownik-badge.uwaga {
    background: var(--warning);
    color: var(--gray-900);
}

.slownik-badge.spokojnie {
    background: var(--success);
    color: var(--white);
}

.slownik-term {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    flex: 1;
}

.slownik-legal-ref {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.slownik-content {
    padding: 0 var(--space-lg) var(--space-lg);
    display: none;
}

/* Professional dictionary content structure */
.slownik-definition,
.slownik-significance {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.slownik-definition h5,
.slownik-significance h5,
.slownik-action h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.slownik-definition p,
.slownik-significance p {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.65;
    margin: 0;
}

.slownik-item.expanded .slownik-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.slownik-meaning,
.slownik-why {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.slownik-meaning strong,
.slownik-why strong {
    color: var(--gray-900);
}

.slownik-action {
    background: var(--gray-50);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
}

.slownik-action strong {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
}

.slownik-action ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.slownik-action li {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: 4px;
}

.slownik-action li:last-child {
    margin-bottom: 0;
}

/* Empty State */
.slownik-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-500);
}

.slownik-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.slownik-empty p {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.slownik-empty span {
    font-size: var(--font-size-sm);
}

/* ===== STATUSY TAB ===== */

.statusy-intro {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.statusy-intro-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.statusy-intro-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.statusy-intro p {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin: 0;
}

.statusy-intro-text {
    flex: 1;
}

.statusy-intro-text h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.statusy-intro-text p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.statusy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.status-card {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-300);
}

.status-card.action {
    border-left-color: var(--danger);
}

.status-card.waiting {
    border-left-color: var(--warning);
}

.status-card.check {
    border-left-color: var(--primary);
}

.status-card.final {
    border-left-color: var(--gray-400);
}

.status-card.urgent {
    background: linear-gradient(135deg, #fff5f5, #fce8e6);
}

.status-card .status-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-card .status-icon svg {
    width: 24px;
    height: 24px;
}

.status-card .status-icon.nowe {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.status-card .status-icon.doreczone {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.status-card .status-icon.wtrakcie {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.status-card .status-icon.oczekuje {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #c2185b;
}

.status-card .status-icon.zakonczone {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.status-card .status-icon.prawomocne {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: #424242;
}

.status-card .status-icon.zwrocone {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.status-info {
    flex: 1;
}

.status-info .status-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.status-info .status-meaning {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.status-info .status-action {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
}

.status-info .status-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.status-info .status-action.required {
    background: var(--danger-light);
    color: var(--danger);
}

.status-info .status-action.required.urgent {
    background: var(--danger);
    color: var(--white);
}

.status-info .status-action.waiting {
    background: var(--warning-light);
    color: #f57c00;
}

.status-info .status-action.check {
    background: var(--primary-light);
    color: var(--primary);
}

.status-info .status-action.final {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Professional status action structure */
.status-info .status-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.status-info .status-action .action-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.status-info .status-action .action-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ===== TERMINY TAB ===== */

.terminy-hero {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.terminy-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terminy-hero-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.terminy-hero-text {
    flex: 1;
}

.terminy-hero h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.terminy-hero p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.terminy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.termin-card {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.termin-card.critical .termin-days {
    background: linear-gradient(135deg, var(--danger), #c62828);
}

.termin-card.warning .termin-days {
    background: linear-gradient(135deg, var(--warning), #f57c00);
}

.termin-card.normal .termin-days {
    background: linear-gradient(135deg, var(--primary), #1565c0);
}

.termin-card.recurring .termin-days {
    background: linear-gradient(135deg, var(--success), #2e7d32);
}

.termin-days {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    color: var(--white);
    flex-shrink: 0;
}

.termin-days .days-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.termin-days .days-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.termin-info {
    flex: 1;
}

.termin-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.termin-info .termin-from {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: 4px;
}

.termin-info .termin-note {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.termin-info .termin-legal {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-400);
    background: var(--gray-50);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Zasada ogolna */
.terminy-golden-rule {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.golden-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.golden-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.golden-text {
    flex: 1;
}

.golden-text strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.golden-text p {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

/* ========== HELP SCREEN (POMOC) ========== */

/* Emergency Banner */
.help-emergency-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.emergency-icon {
    width: 44px;
    height: 44px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.emergency-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.emergency-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emergency-text strong {
    font-size: var(--font-size-base);
    color: #991b1b;
}

.emergency-text span {
    font-size: var(--font-size-sm);
    color: #b91c1c;
}

.emergency-call-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: #dc2626;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.emergency-call-btn:active {
    transform: scale(0.95);
    background: #b91c1c;
}

.emergency-call-btn svg {
    width: 18px;
    height: 18px;
}

/* Help Sections */
.help-section {
    margin-bottom: var(--space-xl);
}

.help-section-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

/* Quick Actions */
.help-quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.help-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-action-card:active {
    background: var(--gray-50);
    transform: scale(0.99);
}

.help-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-action-icon.syndyk {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.help-action-icon.syndyk svg {
    color: #0284c7;
}

.help-action-icon.hotline {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.help-action-icon.hotline svg {
    color: #16a34a;
}

.help-action-icon.legal {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.help-action-icon.legal svg {
    color: #d97706;
}

.help-action-icon svg {
    width: 24px;
    height: 24px;
}

.help-action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-action-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
}

.help-action-desc {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.help-action-arrow {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* FAQ Section */
.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-900);
    flex: 1;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.expanded .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-item.expanded .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-100);
}

/* Help Links */
.help-links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.help-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-link-item:active {
    background: var(--gray-50);
}

.help-link-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-link-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gray-600);
}

.help-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-link-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-900);
}

.help-link-url {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.help-link-external {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* App Info Footer */
.help-app-info {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-lg);
    border-top: 1px solid var(--gray-100);
}

.help-app-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.help-app-version {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.help-app-tagline {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    font-style: italic;
}

/* ---------- JOURNEY HERO - ResponsywnoĹÄ ---------- */
@media (max-width: 360px) {
    .journey-title {
        font-size: var(--font-size-base);
    }

    .journey-percent {
        font-size: var(--font-size-lg);
        padding: 3px 10px;
    }

    .progress-dot {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .progress-dot svg {
        width: 14px;
        height: 14px;
    }

    .progress-connector {
        width: 16px;
    }
}

/* ---------- MEDIA QUERIES ---------- */
@media (min-width: 768px) {
    /* Rama telefonu na desktopie */
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
        border-left: 1px solid var(--gray-200);
        border-right: 1px solid var(--gray-200);
    }

    .top-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .screens-container {
        max-width: 480px;
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-container {
        max-width: 480px;
        margin: 0 auto;
        border-radius: var(--radius-xl);
        margin-bottom: var(--space-xl);
    }

    /* TĹo za "telefonem" */
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
    }
}

/* ---------- DARK MODE (optional) ---------- */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- PRINT ---------- */
@media print {
    .bottom-nav,
    .top-bar,
    .splash-screen {
        display: none;
    }

    .screens-container {
        margin: 0;
    }
}

/* ============================================
   PISMA - Message List & Detail View
   ============================================ */

.pisma-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pisma-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pisma-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    cursor: pointer;
    transition: background 0.15s ease;
    border-left: 4px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-100);
}

.pisma-item:last-child {
    border-bottom: none;
}

.pisma-item:active {
    background: var(--gray-50);
}

.pisma-item.type-action {
    border-left-color: var(--warning);
}

.pisma-item.type-info {
    border-left-color: var(--primary);
}

.pisma-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gray-100);
}

.pisma-item-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.pisma-item.type-action .pisma-item-icon {
    background: var(--warning-light);
}

.pisma-item.type-action .pisma-item-icon svg {
    color: #d97706;
}

.pisma-item.type-info .pisma-item-icon {
    background: var(--primary-light);
}

.pisma-item.type-info .pisma-item-icon svg {
    color: var(--primary);
}

.pisma-item-content {
    flex: 1;
    min-width: 0;
}

.pisma-item-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pisma-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.pisma-item-sender {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pisma-item-date {
    flex-shrink: 0;
}

.pisma-item-arrow {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.pisma-item-arrow svg {
    width: 100%;
    height: 100%;
}

/* Detail view */
.pisma-detail {
    animation: fadeIn 0.2s ease;
}

.pisma-back-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.pisma-back-btn svg {
    width: 20px;
    height: 20px;
}

.pisma-detail-split {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pisma-ai-section,
.pisma-original-section {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pisma-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.pisma-section-header svg {
    flex-shrink: 0;
}

.pisma-ai-section .pisma-section-header {
    background: linear-gradient(135deg, #e8f0fe 0%, #e3f2fd 100%);
    color: var(--primary-dark);
}

.pisma-ai-section .pisma-section-header svg {
    color: var(--primary);
}

.pisma-ai-content {
    padding: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.7;
    min-height: 80px;
}

.pisma-ai-placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.pisma-original-content {
    padding: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 100px;
    max-height: 43vh;
    overflow-y: auto;
}

.pisma-original-meta {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-100);
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pisma-original-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ---------- PISMA: STATUS BADGES ---------- */
.pisma-item-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    line-height: 1.4;
}

.badge-awaiting {
    background: var(--warning-light);
    color: #b06000;
}

.badge-processing {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-deadline {
    background: var(--success-light);
    color: #1e7e34;
}

.badge-urgent {
    background: var(--danger-light);
    color: var(--danger);
}

/* Status icon colors */
.pisma-item.status-awaiting .pisma-item-icon {
    background: var(--warning-light);
}
.pisma-item.status-awaiting .pisma-item-icon svg {
    color: #b06000;
}

.pisma-item.status-processing .pisma-item-icon {
    background: var(--primary-light);
}
.pisma-item.status-processing .pisma-item-icon svg {
    color: var(--primary);
}

.pisma-item.status-picked-up .pisma-item-icon {
    background: var(--success-light);
}
.pisma-item.status-picked-up .pisma-item-icon svg {
    color: var(--success);
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pisma-spinner {
    animation: spin 1s linear infinite;
}

.pisma-spinner-large {
    animation: spin 1.5s linear infinite;
}

/* ---------- PISMA: PICKUP CARD ---------- */
.pisma-pickup-section,
.pisma-processing-section {
    animation: fadeIn 0.3s ease;
}

.pickup-card,
.processing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.pickup-card svg {
    color: #b06000;
}

.pickup-card h3,
.processing-card h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.pickup-card p,
.processing-card p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
    max-width: 360px;
    line-height: 1.6;
}

.pickup-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: #e65100;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pickup-btn:hover:not(:disabled) {
    background: #bf360c;
}

.pickup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.processing-card svg {
    color: var(--primary);
}

/* ---------- PISMA: DEADLINE BANNER ---------- */
.pisma-deadline-banner {
    background: var(--success-light);
    border: 1px solid #a8dab5;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.pisma-deadline-banner.deadline-urgent {
    background: var(--danger-light);
    border-color: #f5a6a0;
}

.deadline-indicator {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.deadline-days {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.deadline-urgent .deadline-days {
    color: var(--danger);
}

.pisma-deadline-banner .deadline-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
	margin-left: 7px;
}

/* ============================================
   POSTĘPOWANIA - ACCORDION
   ============================================ */
.proc-arrow {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.proc-item.expanded .proc-arrow {
    transform: rotate(180deg);
}

.proc-detail {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.proc-detail-inner {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-100);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.6;
    word-break: break-word;
}

/* ============================================ */

.pisma-deadline-banner .deadline-date {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

#screen-postepowania .pisma-item-date {
	color: var(--gray-900);
    font-weight: 600;
}


/* ============================================
   WIERZYTELNOŚCI - ACCORDION
   ============================================ */
.debts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-md);
}

.debt-row {
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    border-left: 4px solid var(--gray-300);
    background: var(--white);
    transition: background 0.15s ease;
}

.debt-row:last-of-type {
    border-bottom: none;
}

.debt-row:active {
    background: var(--gray-50);
}

.debt-row.status-verified {
    border-left-color: var(--success);
}

.debt-row.status-pending {
    border-left-color: var(--warning);
}

.debt-row.status-disputed {
    border-left-color: var(--danger);
}

.debt-row.expanded .proc-arrow {
    transform: rotate(180deg);
}

.debt-row-main {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
}

.debt-row-name {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debt-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.debt-row-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
}

.debt-detail-inner {
    padding: var(--space-md) var(--space-lg);
}

.debt-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debt-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
}

.debt-detail-label {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    font-weight: 500;
    flex-shrink: 0;
}

.debt-detail-value {
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.debt-detail-value.mono {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}