        :root {
            --font-bump: 0px;
            --btn-height: 36px;
            --bg-app: #f6f8fc;
            --bg-sidebar: #ffffff;
            --border: #e5e7eb;
            --text-main: #111827;
            --text-muted: #6b7280;
            --primary: #2563eb;
            --primary-hover: #1d4ed8;
            --primary-soft: #f5f8ff;
            --primary-border: #bfdbfe;
            --success-soft: #f2fbf6;
            --success-border: #bbf7d0;
            --success-text: #166534;
            --warning-soft: #fff9ef;
            --warning-border: #fde68a;
            --warning-text: #92400e;
            --info-soft: #eff6ff;
            --info-border: #93c5fd;
            --info-text: #1d4ed8;
            --danger: #dc2626;
            --danger-hover: #b91c1c;
        }
        @media (max-width: 768px) {
            :root { --font-bump: 2px; --btn-height: 42px; }
        }
        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            overflow: hidden;
        }
        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--text-main);
            background: var(--bg-app);
        }
        .app-shell {
            position: fixed;
            inset: 0;
            display: flex;
            background: var(--bg-app);
        }
        .sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 40;
        }
        .sidebar {
            position: relative;
            z-index: 45;
            width: 256px;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            padding: 18px 14px;
            box-sizing: border-box;
            height: 100%;
        }
        .menu {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-top: 12px;
        }
        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 14px;
            border-radius: 12px;
            color: var(--text-main);
            text-decoration: none;
            font-size: calc(14px + var(--font-bump));
            height: 40px;
            min-height: var(--btn-height);
        }
        button.menu-item {
            width: 100%;
            border: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
            appearance: none;
            -webkit-appearance: none;
            font: inherit;
            pointer-events: auto;
        }
        .menu-item:hover {
            background: var(--primary-soft);
            color: var(--primary);
        }
        .menu-item:focus-visible,
        .footer-toggle:focus-visible,
        .hamburger:focus-visible {
            outline: 2px solid #93c5fd;
            outline-offset: 2px;
        }
        .menu-item.active {
            background: var(--primary-soft);
            color: var(--primary);
            font-weight: 600;
        }
        .menu-icon {
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
        }
        .menu-item.active .menu-icon,
        .menu-item:hover .menu-icon {
            color: inherit;
        }
        .footer-menu {
            position: relative;
            margin-top: auto;
            padding-top: 16px;
        }
        .footer-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 12px;
            background: var(--bg-app);
            border: 1px solid var(--border);
            cursor: pointer;
            font-family: inherit;
            box-sizing: border-box;
            appearance: none;
            -webkit-appearance: none;
        }
        .footer-logo {
            width: 32px;
            height: 32px;
            object-fit: contain;
            border-radius: 0;
        }
        .footer-title {
            font-size: calc(13px + var(--font-bump));
            font-weight: 600;
        }
        .footer-toggle-icon {
            margin-left: auto;
            color: #6b7280;
        }
        .footer-dropdown {
            position: absolute;
            left: 0;
            right: 0;
            bottom: calc(100% + 10px);
            background: var(--bg-app);
            border-radius: 14px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
            overflow: hidden;
            display: none;
            z-index: 5;
        }
        .footer-menu.is-open .footer-dropdown {
            display: block;
        }
        .footer-menu.is-open .footer-toggle-icon {
            transform: rotate(180deg);
        }
        .footer-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            text-decoration: none;
            color: #111827;
            font-size: calc(14px + var(--font-bump));
        }
        .footer-link + .footer-link {
            border-top: 1px solid #f1f5f9;
        }
        .footer-link:hover {
            background: #f8fafc;
        }
        .footer-icon {
            width: 20px;
            height: 20px;
            color: #111827;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .main {
            flex: 1;
            min-width: 0;
            overflow-y: auto;
            padding: 24px;
            box-sizing: border-box;
        }
        .top-bar {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 14px;
        }
        .hamburger {
            display: none;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #fff;
            cursor: pointer;
            color: #111827;
            appearance: none;
            -webkit-appearance: none;
        }
        .hamburger svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            stroke-width: 2.4;
        }
        .page-divider {
            border-top: 1px solid var(--border);
            margin: 12px 0 18px;
        }
        .section {
            margin-bottom: 24px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
            padding: 16px;
        }
        .planning-shell {
            min-height: 100vh;
            box-sizing: border-box;
            padding: 24px;
            background: var(--bg-sidebar);
        }
        .planning-hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 12px;
            align-items: start;
        }
        .planning-hero__eyebrow {
            margin: 0 0 8px;
            color: var(--text-muted);
            font-size: calc(12px + var(--font-bump));
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        .planning-hero__body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
            gap: 16px;
            align-items: start;
            min-width: 0;
        }
        .planning-hero__copy {
            min-width: 0;
        }
        .planning-hero__title {
            margin: 0;
            font-size: calc(26px + var(--font-bump));
            line-height: 1.15;
            letter-spacing: -0.025em;
        }
        .planning-hero__text {
            max-width: 720px;
            margin: 12px 0 0;
            color: var(--text-muted);
            font-size: calc(14px + var(--font-bump));
            line-height: 1.5;
        }
        .spacer-sm {
            height: 12px;
        }
        .field-wide {
            grid-column: 1 / -1;
        }
        .demo-row--stacked {
            margin-top: 12px;
        }
        .alert-spaced {
            margin-top: 12px;
        }
        .alert-spaced-sm {
            margin-top: 10px;
        }
        .section-title-inline {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-subtitle-spaced {
            margin-top: 14px;
        }
        .finish-page {
            min-height: 100vh;
            padding: 24px;
            box-sizing: border-box;
            display: grid;
            place-items: center;
            background:
                radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 34%),
                var(--bg-app);
        }
        .finish-page__card {
            width: min(720px, 100%);
        }
        .finish-page__header {
            align-items: center;
            gap: 18px;
        }
        .finish-page__mark {
            width: 72px;
            height: 72px;
            border-radius: 20px;
            background: linear-gradient(180deg, var(--primary) 0%, #6b8dff 100%);
            position: relative;
            flex: 0 0 auto;
        }
        .finish-page__mark::before {
            content: "";
            position: absolute;
            inset: 22px;
            border-radius: 999px;
            border: 4px solid rgba(255, 255, 255, 0.92);
            border-top-color: transparent;
            animation: spin 0.9s linear infinite;
        }
        .finish-page__title {
            margin: 0;
            font-size: calc(24px + var(--font-bump));
            line-height: 1.2;
        }
        .finish-page__text {
            margin: 8px 0 0;
            color: var(--text-muted);
        }
        .finish-page__body {
            padding-top: 4px;
        }
        .finish-page__list {
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .finish-page__list li {
            padding: 12px 14px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #fff;
        }
        .finish-page__footer {
            margin-top: 20px;
        }
        .planning-hero__stats {
            min-width: 0;
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .planning-hero__stats .mini-card {
            min-height: 120px;
        }
        .planning-header {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .planning-header__copy {
            min-width: 0;
        }
        .planning-kpis {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .planning-tabs-shell {
            display: grid;
            gap: 16px;
        }
        .planning-tab-panels {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
            gap: 16px;
            align-items: start;
        }
        .planning-tab-panel {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .calendar-layout {
            display: grid;
            grid-template-columns: 300px minmax(0, 1fr);
            gap: 16px;
            align-items: start;
        }
        .calendar-view {
            display: grid;
            gap: 12px;
            grid-template-columns: 300px minmax(0, 1fr);
            align-items: start;
        }
        .calendar-embed {
            display: block;
            width: 100%;
            min-height: 900px;
            border: 0;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .calendar-task-list {
            display: grid;
            gap: 10px;
            align-content: start;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: #fff;
        }
        .calendar-task-list.is-highlighted {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
        }
        .calendar-task-list__title {
            font-weight: 600;
            font-size: calc(14px + var(--font-bump));
        }
        .calendar-task-card {
            width: 100%;
            display: grid;
            gap: 4px;
            text-align: left;
            border: 1px solid var(--border);
            background: #fff;
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            font: inherit;
        }
        .calendar-task-card.is-active {
            border-color: var(--primary-border);
            background: var(--primary-soft);
        }
        .calendar-day.is-highlighted,
        .timeline-card.is-highlighted,
        .calendar-task-card.is-highlighted {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
        }
        .calendar-task-card__name {
            font-size: calc(14px + var(--font-bump));
            font-weight: 600;
            color: var(--text-main);
        }
        .calendar-task-card__meta {
            font-size: calc(12px + var(--font-bump));
            color: var(--text-muted);
        }
        .calendar-day {
            background: #fff;
        }
        .mini-card-note {
            margin: 10px 0 0;
            color: var(--text-muted);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.4;
        }
        .planning-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
            gap: 16px;
            align-items: start;
        }
        .planning-grid + .planning-grid {
            margin-top: 16px;
        }
        .planning-panel {
            margin-bottom: 0;
        }
        .panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
            min-width: 0;
        }
        .panel-title {
            margin: 0 0 6px;
            font-size: calc(20px + var(--font-bump));
            line-height: 1.2;
        }
        .panel-subtitle {
            margin: 0;
            color: var(--text-muted);
            font-size: calc(14px + var(--font-bump));
            line-height: 1.45;
        }
        .panel-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
        }
        .panel-stack {
            display: grid;
            gap: 12px;
        }
        .panel-card {
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #fff;
            padding: 14px;
            box-sizing: border-box;
        }
        .ui-dropdown {
            background: #fff;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .ui-dropdown-panel {
            min-width: 12rem;
        }
        .ui-dropdown-link {
            display: block;
            width: 100%;
            padding: 10px 14px;
            color: var(--text);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.4;
        }
        .ui-dropdown-link:hover,
        .ui-dropdown-link:focus {
            background: var(--surface-2);
        }
        .ui-modal__overlay {
            background: rgba(15, 23, 42, 0.52);
        }
        .ui-modal {
            position: fixed;
            inset: 0;
            overflow-y: auto;
            padding: 16px;
            z-index: 50;
        }
        [x-cloak] {
            display: none !important;
        }
        .ui-modal__panel {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            transform-origin: center;
        }
        .code-block {
            white-space: pre-wrap;
            overflow: auto;
            font-family: var(--font-mono);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.5;
            color: var(--text);
        }
        .timeline-card {
            border: 1px solid var(--border);
            background: #fff;
            border-radius: 12px;
            padding: 12px;
        }
        .timeline-card__time {
            font-size: calc(12px + var(--font-bump));
            color: var(--text-muted);
        }
        .timeline-card__title {
            margin-top: 6px;
            font-size: calc(15px + var(--font-bump));
            font-weight: 600;
            line-height: 1.3;
        }
        .timeline-card__subtitle {
            margin-top: 6px;
            color: var(--text-muted);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.4;
        }
        .timeline-card__actions {
            margin-top: 8px;
        }
        .empty-state {
            border: 1px dashed var(--border);
            border-radius: 12px;
            padding: 14px;
            background: #fff;
        }
        .empty-state--compact {
            padding: 12px;
        }
        .empty-state__title {
            font-weight: 600;
            font-size: calc(14px + var(--font-bump));
        }
        .empty-state__text {
            margin-top: 6px;
            color: var(--text-muted);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.45;
        }
        .calendar-task-card__title {
            font-size: calc(14px + var(--font-bump));
            line-height: 1.3;
            font-weight: 600;
            color: var(--text-main);
        }
        .calendar-task-card--selectable {
            transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
        }
        .calendar-task-card--selectable:hover {
            border-color: var(--primary-border);
            background: var(--primary-soft);
        }
        .calendar-task-card__subtitle {
            color: var(--text-muted);
            font-size: calc(12px + var(--font-bump));
        }
        .planning-note {
            margin-top: 14px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        .stack-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .field__label {
            font-size: calc(13px + var(--font-bump));
            color: var(--text-muted);
        }
        .form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-end;
        }
        .event-modal {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .event-modal.is-hidden {
            display: none;
        }
        .event-modal__backdrop {
            position: absolute;
            inset: 0;
            border: 0;
            background: rgba(15, 23, 42, 0.45);
            cursor: pointer;
        }
        .event-modal__dialog {
            position: relative;
            z-index: 1;
            width: min(760px, 100%);
        }
        .event-modal__card {
            max-height: calc(100vh - 48px);
            overflow: auto;
        }
        .icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #fff;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
        }
        .icon-button:hover {
            background: var(--primary-soft);
            border-color: var(--primary-border);
            color: var(--primary);
        }
        .badge-warning {
            background: var(--warning-soft);
            border-color: var(--warning-border);
            color: var(--warning-text);
        }
        .badge-date-tomorrow {
            background: var(--warning-soft);
            border-color: var(--warning-border);
            color: var(--warning-text);
            font-weight: 600;
        }
        .badge-danger {
            background: #fff1f2;
            border-color: #fda4af;
            color: #991b1b;
        }
        .badge-info {
            background: var(--info-soft);
            border-color: var(--info-border);
            color: var(--info-text);
        }
        .badge-priority-high {
            background: var(--warning-soft);
            border-color: var(--warning-border);
            color: var(--warning-text);
            font-weight: 600;
        }
        .badge-priority-medium {
            background: var(--info-soft);
            border-color: var(--info-border);
            color: var(--info-text);
        }
        .badge-priority-low {
            background: var(--success-soft);
            border-color: var(--success-border);
            color: var(--success-text);
        }
        .section h2 {
            margin: 0 0 8px;
            font-size: calc(18px + var(--font-bump));
        }
        .section p {
            margin: 0 0 14px;
            color: var(--text-muted);
            font-size: calc(14px + var(--font-bump));
            line-height: 1.45;
        }
        .demo-row {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
        .btn {
            min-height: var(--btn-height);
            padding: 0 16px;
            border-radius: 12px;
            border: 1px solid transparent;
            font-family: inherit;
            font-size: calc(14px + var(--font-bump));
            cursor: pointer;
            line-height: 1.1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .btn-primary { color: #fff; background: var(--primary); }
        .btn-primary:hover { background: var(--primary-hover); }
        .btn-secondary { color: #374151; background: #fff; border-color: #d1d5db; }
        .btn-secondary:hover { border-color: #9ca3af; color: #111827; background: #f9fafb; }
        .btn-danger { color: #fff; background: var(--danger); }
        .btn-danger:hover { background: var(--danger-hover); }
        .btn-ghost { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-border); }
        .ui-label {
            display: block;
            font-weight: 600;
            font-size: calc(13px + var(--font-bump));
            color: var(--text-main);
        }
        .ui-input {
            min-height: var(--btn-height);
            border: 1px solid #d1d5db;
            border-radius: 10px;
            padding: 0 10px;
            font-family: inherit;
            font-size: calc(14px + var(--font-bump));
            box-sizing: border-box;
            width: 100%;
            color: #111827;
            background-color: #fff;
        }
        .ui-input:hover {
            border-color: #9ca3af;
        }
        .ui-input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        .ui-input:disabled {
            background: #f3f4f6;
            color: #6b7280;
            cursor: not-allowed;
        }
        .ui-field-error {
            margin: 0;
            padding-left: 18px;
            color: #b91c1c;
            font-size: calc(12px + var(--font-bump));
            line-height: 1.35;
        }
        .auth-shell {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
            box-sizing: border-box;
            background: var(--bg-app);
        }
        .auth-card {
            width: min(100%, 520px);
        }
        .auth-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
        }
        .auth-brand__logo {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: cover;
        }
        .auth-brand__eyebrow {
            color: var(--text-muted);
            font-size: calc(12px + var(--font-bump));
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .auth-brand__title {
            margin: 4px 0 0;
            font-size: calc(22px + var(--font-bump));
        }
        .delete-btn {
            border: none;
            background: #fef2f2;
            color: #991b1b;
            border-radius: 6px;
            width: var(--btn-height);
            height: var(--btn-height);
            padding: 0;
            cursor: pointer;
            font-size: calc(16px + var(--font-bump));
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .delete-btn:hover { background: #fee2e2; }

        .field-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(240px, 1fr));
            gap: 12px;
        }
        .field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }
        .field label {
            font-size: calc(13px + var(--font-bump));
            color: #374151;
        }
        .field input,
        .field select,
        .field textarea {
            min-height: var(--btn-height);
            border: 1px solid #d1d5db;
            border-radius: 10px;
            padding: 0 10px;
            font-family: inherit;
            font-size: calc(14px + var(--font-bump));
            box-sizing: border-box;
            width: 100%;
            color: #111827;
            background-color: #fff;
        }
        .field input:hover,
        .field select:hover,
        .field textarea:hover {
            border-color: #9ca3af;
        }
        .field input:focus,
        .field select:focus,
        .field textarea:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        .field input:disabled,
        .field select:disabled,
        .field textarea:disabled {
            background: #f3f4f6;
            color: #6b7280;
            cursor: not-allowed;
        }
        .field-error {
            color: #b91c1c;
            font-size: calc(12px + var(--font-bump));
            line-height: 1.35;
        }
        .field select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            padding-right: 30px;
            background-image:
                linear-gradient(45deg, transparent 50%, #6b7280 50%),
                linear-gradient(135deg, #6b7280 50%, transparent 50%);
            background-position:
                calc(100% - 16px) 50%,
                calc(100% - 11px) 50%;
            background-size: 5px 5px, 5px 5px;
            background-repeat: no-repeat;
        }
        .field textarea {
            min-height: 92px;
            padding: 10px;
            resize: vertical;
        }
        .select-status.select-status--active {
            background-color: var(--success-soft);
            border-color: var(--success-border);
        }
        .select-status.select-status--inactive {
            background-color: #fff1f2;
            border-color: #fda4af;
        }

        .field input[type="checkbox"] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 4px;
            border: 1px solid #d1d5db;
            background: #fff;
            display: inline-grid;
            place-content: center;
            margin: 0;
            min-height: 16px;
        }
        .field input[type="checkbox"]::after {
            content: "";
            width: 10px;
            height: 10px;
            transform: scale(0);
            transition: transform 120ms ease-in-out;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
            background: #fff;
        }
        .field input[type="checkbox"]:checked {
            background: #2563eb;
            border-color: #2563eb;
        }
        .field input[type="checkbox"]:checked::after {
            transform: scale(1);
        }

        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 16px;
        }
        .checkbox-option {
            min-width: 220px;
            padding: 10px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            background: #fff;
            align-items: flex-start;
        }
        .checkbox-group label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: calc(13px + var(--font-bump));
            color: #374151;
        }
        .checkbox-option .hint {
            margin-top: 2px;
        }
        .hint {
            margin-top: 6px;
            color: #6b7280;
            font-size: calc(12px + var(--font-bump));
            line-height: 1.35;
        }

        .attendees-picker { position: relative; }
        .attendees-input {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            padding: 6px 8px;
            background: #fff;
            min-height: 38px;
        }
        .attendees-input:focus-within {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        .attendee-search {
            border: none;
            outline: none;
            font-size: calc(13px + var(--font-bump));
            padding: 4px 2px;
            flex: 1;
            min-width: 160px;
        }
        .attendee-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0 12px;
            border-radius: 10px;
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            font-size: calc(14px + var(--font-bump));
            color: #111827;
            height: 36px;
            line-height: 1;
        }
        .attendee-remove {
            border: none;
            background: transparent;
            color: #9ca3af;
            font-size: calc(14px + var(--font-bump));
            line-height: 1;
            cursor: pointer;
            margin-left: 4px;
            padding-right: 2px;
        }
        .attendee-dropdown {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 6px);
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
            max-height: 220px;
            overflow-y: auto;
            padding: 6px;
            display: none;
            z-index: 20;
        }
        .attendee-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 10px;
            cursor: pointer;
            font-size: calc(13px + var(--font-bump));
        }
        .attendee-option:hover { background: #f3f4f6; }

        .cards-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(3, minmax(180px, 1fr));
        }
        .mini-card {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            background: #fff;
        }
        .mini-card-title { font-size: calc(12px + var(--font-bump)); color: var(--text-muted); font-weight: 600; letter-spacing: 0.01em; }
        .mini-card-value { margin-top: 8px; font-size: calc(20px + var(--font-bump)); font-weight: 600; }
        .badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            min-height: 30px;
            padding: 0 14px;
            font-size: calc(14px + var(--font-bump));
            font-weight: 600;
            border: 1.5px solid transparent;
            box-sizing: border-box;
            line-height: 1;
        }
        .badge-success { background: var(--success-soft); color: var(--success-text); border-color: var(--success-border); }
        .badge-danger { background: #fff1f2; color: #991b1b; border-color: #fda4af; }
        .badge-info { background: var(--info-soft); color: var(--info-text); border-color: var(--info-border); }
        .badge-date-tomorrow { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning-border); font-weight: 600; }
        .badge-priority-high { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning-border); font-weight: 600; }
        .badge-priority-medium { background: var(--info-soft); color: var(--info-text); border-color: var(--info-border); }
        .badge-priority-low { background: var(--success-soft); color: var(--success-text); border-color: var(--success-border); }

        .calendar-week {
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            background: #fff;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .calendar-week__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 20px 10px;
            flex-wrap: wrap;
        }
        .calendar-week__month {
            font-size: calc(24px + var(--font-bump));
            font-weight: 600;
            letter-spacing: -0.03em;
            color: #1f2937;
        }
        .calendar-week__range {
            margin-top: 4px;
            color: var(--text-muted);
            font-size: calc(14px + var(--font-bump));
        }
        .calendar-week__controls {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: calc(14px + var(--font-bump));
            flex-wrap: wrap;
        }
        .calendar-week__control,
        .calendar-week__arrow {
            border: 1px solid #e5e7eb;
            background: #fff;
            color: #374151;
            font: inherit;
            min-height: 36px;
            padding: 0 12px;
            border-radius: 10px;
            cursor: pointer;
        }
        .calendar-week__control {
            text-decoration: none;
        }
        .calendar-week__control:hover {
            color: #1d4ed8;
            border-color: #bfdbfe;
            background: #eff6ff;
        }
        .calendar-week__arrow {
            font-size: calc(24px + var(--font-bump));
            line-height: 1;
        }
        .calendar-week__days {
            display: grid;
            grid-template-columns: 84px repeat(7, minmax(0, 1fr));
            align-items: end;
            padding: 0 0 10px;
            border-bottom: 1px solid #e5e7eb;
        }
        .calendar-week__time-label {
            padding-left: 20px;
            font-size: calc(15px + var(--font-bump));
            color: #475569;
        }
        .calendar-week__day {
            justify-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: calc(12px + var(--font-bump));
            color: #64748b;
            font-weight: 400;
            text-align: center;
        }
        .calendar-week__day strong {
            font-weight: 400;
            font-size: calc(12px + var(--font-bump));
            letter-spacing: -0.03em;
            color: #64748b;
            line-height: 1;
        }
        .calendar-week__day span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
            border-radius: 999px;
            background: transparent;
            font-size: calc(14px + var(--font-bump));
        }
        .calendar-week__day.is-today {
            color: #111827;
            font-weight: 600;
        }
        .calendar-week__day.is-today span {
            background: var(--primary);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(63, 106, 224, 0.14);
        }
        .calendar-week__grid {
            display: grid;
            grid-template-columns: 84px minmax(0, 1fr);
        }
        .calendar-week__axis {
            display: grid;
            grid-template-rows: repeat(24, var(--calendar-slot-height, 32px));
            padding-top: 10px;
            color: #94a3b8;
            font-size: calc(14px + var(--font-bump));
        }
        .calendar-week__axis span {
            position: relative;
            padding-left: 20px;
            transform: translateY(-10px);
        }
        .calendar-week__axis span::after {
            content: "";
            position: absolute;
            left: 78px;
            top: 50%;
            width: 8px;
            height: 1px;
            background: #dbe2ee;
        }
        .calendar-week__board {
            position: relative;
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            grid-auto-rows: var(--calendar-slot-height, 32px);
            align-items: stretch;
            min-height: 1536px;
            background:
                linear-gradient(to right, transparent, transparent calc(100% - 1px), #e5e7eb calc(100% - 1px), #e5e7eb 100%),
                linear-gradient(to bottom, transparent calc(var(--calendar-slot-height, 32px) - 1px), #f1f5f9 calc(var(--calendar-slot-height, 32px) - 1px), #f1f5f9 var(--calendar-slot-height, 32px));
            background-size: calc(100% / 7) var(--calendar-slot-height, 32px);
        }
        .calendar-board {
            position: relative;
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 0;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            background: #fff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .calendar-board__column {
            display: grid;
            grid-template-rows: auto;
            gap: 8px;
            min-width: 0;
            min-height: 100%;
            padding: 12px;
            border-right: 1px solid #e5e7eb;
            background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
        }
        .calendar-board__column:last-child {
            border-right: 0;
        }
        .calendar-board__column.is-empty {
            background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
        }
        .calendar-board__day {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e5e7eb;
        }
        .calendar-board__weekday,
        .calendar-board__count {
            font-size: calc(12px + var(--font-bump));
            color: #64748b;
        }
        .calendar-board__date {
            font-size: calc(18px + var(--font-bump));
            font-weight: 700;
            color: #111827;
            line-height: 1;
        }
        .calendar-week__column {
            display: grid;
            grid-template-rows: repeat(48, var(--calendar-slot-height, 32px));
            position: relative;
            border-right: 1px solid #e5e7eb;
            min-height: 1536px;
        }
        .calendar-week__column.is-empty {
            background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
        }
        .calendar-event {
            position: relative;
            margin: 2px 4px;
            border-radius: 10px;
            padding: 9px 11px 10px;
            color: #334155;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
            overflow: hidden;
            z-index: 2;
            align-self: stretch;
            grid-column: 1 / -1;
            min-height: calc(var(--calendar-slot-height, 32px) - 4px);
        }
        .calendar-event__title {
            font-size: calc(14px + var(--font-bump));
            font-weight: 700;
            line-height: 1.15;
            text-shadow: none;
        }
        .calendar-event__time {
            margin-top: 4px;
            font-size: calc(12px + var(--font-bump));
            opacity: 0.8;
        }
        .event-modal__message {
            padding: 0 0 12px;
            color: var(--text-muted);
            font-size: calc(14px + var(--font-bump));
            line-height: 1.5;
        }
        .calendar-event--soft {
            background: var(--primary-soft);
            color: var(--primary);
        }
        .calendar-event--mint {
            background: var(--success-soft);
            color: var(--success-text);
        }
        .calendar-event--peach {
            background: var(--warning-soft);
            color: var(--warning-text);
        }
        .calendar-event--sky {
            background: var(--info-soft);
            color: var(--info-text);
        }
        .calendar-event--lime {
            background: var(--success-soft);
            color: var(--success-text);
        }
        .calendar-event--pink {
            background: var(--primary-soft);
            color: var(--primary);
        }
        .calendar-event--rose {
            background: #fdf2f8;
            color: #be185d;
        }
        .calendar-event--sand {
            background: var(--warning-soft);
            color: var(--warning-text);
        }
        .calendar-event--yellow {
            background: var(--warning-soft);
            color: var(--warning-text);
        }
        .calendar-event--green {
            background: var(--success-soft);
            color: var(--success-text);
        }
        .calendar-event--violet {
            background: var(--primary-soft);
            color: var(--primary);
        }
        .calendar-event.is-active {
            box-shadow:
                inset 0 0 0 2px rgba(255, 255, 255, 0.88),
                0 8px 18px rgba(63, 106, 224, 0.12);
        }
        .calendar-week__today-line {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 2px;
            background: #ef4444;
            z-index: 3;
            pointer-events: none;
        }
        .calendar-week__today-line em {
            position: absolute;
            left: -64px;
            top: -12px;
            background: #fff;
            color: #ef4444;
            padding: 0 8px;
            border-radius: 999px;
            font-style: normal;
            font-weight: 700;
            font-size: calc(14px + var(--font-bump));
        }
        .calendar-week__note {
            position: absolute;
            left: 12px;
            right: 12px;
            top: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.78);
            color: #334155;
            border: 1px solid rgba(229, 231, 235, 0.9);
            font-size: calc(13px + var(--font-bump));
            line-height: 1.35;
            backdrop-filter: blur(6px);
        }

        @media (max-width: 1180px) {
            .planning-hero,
            .planning-grid {
                grid-template-columns: 1fr;
            }
            .planning-header,
            .planning-tab-panels,
            .calendar-layout {
                grid-template-columns: 1fr;
            }
            .planning-hero__body {
                grid-template-columns: 1fr;
            }
            .planning-hero__stats {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
            .planning-kpis {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
            .calendar-view {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 860px) {
            .planning-shell {
                padding: 14px;
            }
            .panel-card {
                padding: 12px;
            }
            .planning-hero__stats,
            .planning-kpis,
            .cards-grid {
                grid-template-columns: 1fr;
            }
            .panel-head {
                flex-direction: column;
            }
            .panel-actions {
                width: 100%;
            }
            .calendar-week__header {
                flex-direction: column;
                align-items: flex-start;
            }
            .calendar-week__month {
                font-size: calc(28px + var(--font-bump));
            }
            .calendar-week__days {
                grid-template-columns: 64px repeat(7, minmax(0, 1fr));
            }
            .calendar-week__grid {
                grid-template-columns: 64px minmax(0, 1fr);
            }
            .calendar-week__axis span {
                padding-left: 10px;
            }
            .calendar-week__axis span::after {
                left: 54px;
            }
            .btn {
                width: 100%;
            }
            .panel-actions .btn,
            .calendar-week__controls .btn {
                width: auto;
            }
        }
        .alpha-alert {
            margin: 0;
            background: #fff1f2;
            border: 1px solid #fda4af;
            color: #7f1d1d;
            border-radius: 12px;
            padding: 12px 14px;
            font-size: calc(13px + var(--font-bump));
            line-height: 1.45;
        }
        .alert {
            border-radius: 10px;
            padding: 10px 12px;
            font-size: calc(13px + var(--font-bump));
            line-height: 1.45;
        }
        .alert-success { background: var(--success-soft); border: 1px solid var(--success-border); color: var(--success-text); }
        .alert-warning { background: var(--warning-soft); border: 1px solid var(--warning-border); color: var(--warning-text); }

        .icon-cards {
            display: grid;
            grid-template-columns: repeat(3, minmax(160px, 1fr));
            gap: 10px;
        }
        .icon-card {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            background: #fff;
            padding: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: calc(13px + var(--font-bump));
            color: #374151;
        }

        .editor-wrapper {
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            overflow: hidden;
            transition: 0.2s ease;
        }
        .editor-wrapper:focus-within {
            border-color: #2563eb;
            background: #fff;
        }
        .ql-toolbar.ql-snow {
            border: none !important;
            border-bottom: 1px solid #cbd5e1 !important;
            background: #fff;
        }
        .ql-container.ql-snow {
            border: none !important;
            font-family: inherit !important;
            font-size: calc(14px + var(--font-bump)) !important;
            min-height: 200px;
        }
        .ql-snow .ql-picker.ql-header .ql-picker-label::before,
        .ql-snow .ql-picker.ql-header .ql-picker-item::before {
            content: 'Обычный';
        }
        .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
        .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
            content: 'Заголовок 1';
        }
        .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
        .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
            content: 'Заголовок 2';
        }

        .faq-layout {
            display: grid;
            grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 1fr);
            gap: 16px;
        }
        .faq-list {
            border-top: 1px solid #e5e7eb;
            background: #fff;
        }
        .faq-item {
            border-bottom: 1px solid #e5e7eb;
        }
        .faq-item summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 0;
            cursor: pointer;
            font-size: calc(14px + var(--font-bump));
            font-weight: 600;
            color: #111827;
            list-style: none;
        }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item .chevron {
            width: 18px;
            height: 18px;
            color: #9ca3af;
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }
        .faq-item[open] .chevron { transform: rotate(180deg); color: #111827; }
        .faq-answer {
            padding: 0 0 16px;
            font-size: calc(14px + var(--font-bump));
            color: #4b5563;
            line-height: 1.5;
        }
        .vote-area {
            margin-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .vote-btn {
            border: 1px solid #d1d5db;
            background: #fff;
            color: #111827;
            font-size: calc(13px + var(--font-bump));
            padding: 0 18px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            min-height: var(--btn-height);
        }
        .vote-hint {
            font-size: calc(12px + var(--font-bump));
            color: #6b7280;
        }
        .faq-process {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 12px;
            background: #f8fafc;
        }
        .faq-process h3 {
            margin: 0 0 10px;
            font-size: calc(15px + var(--font-bump));
        }
        .faq-process ol {
            margin: 0;
            padding-left: 18px;
            color: #374151;
            font-size: calc(13px + var(--font-bump));
            line-height: 1.45;
        }
        .tabs-demo {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .planning-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .tab-button {
            border: 1px solid #d1d5db;
            background: #fff;
            color: #374151;
            font-size: calc(13px + var(--font-bump));
            padding: 0 18px;
            border-radius: 999px;
            min-height: var(--btn-height);
            line-height: 1.1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .tab-button.is-active {
            background: #e0e7ff;
            border-color: #c7d2fe;
            color: #1d4ed8;
            font-weight: 600;
        }
        .is-hidden {
            display: none !important;
        }
        @media (max-width: 900px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
            .form-actions {
                justify-content: stretch;
            }
            .form-actions .btn {
                width: 100%;
            }
        }
        .tab-panel-demo {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 12px;
            font-size: calc(13px + var(--font-bump));
            color: #374151;
            background: #f8fafc;
        }

        .table-wrap {
            width: 100%;
            overflow-x: auto;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #fff;
        }
        .table {
            width: 100%;
            border-collapse: collapse;
            min-width: 680px;
            font-size: calc(14px + var(--font-bump));
        }
        .table th,
        .table td {
            border-bottom: 1px solid var(--border);
            padding: 12px;
            text-align: left;
            vertical-align: middle;
        }
        .table th { background: #f8fafc; color: var(--text-muted); font-weight: 600; }
        .link-action {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: calc(14px + var(--font-bump));
            border: 0;
            background: transparent;
            padding: 0;
            cursor: pointer;
            font: inherit;
        }
        .link-action:hover {
            text-decoration: underline;
        }
        .link-action:focus-visible,
        .calendar-week__control:focus-visible {
            outline: 2px solid rgba(63, 106, 224, 0.28);
            outline-offset: 2px;
        }
        .table-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }
        .sortable-head {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #374151;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
        }
        .sort-icon {
            width: 12px;
            height: 14px;
            display: inline-flex;
            flex-direction: column;
            line-height: 0.7;
            color: #9ca3af;
            font-size: 10px;
        }
        .sortable-head.active .sort-icon { color: #1d4ed8; }
        .copy-link-btn {
            border: 0;
            background: transparent;
            color: var(--primary);
            text-decoration: none;
            padding: 0;
            cursor: pointer;
            font: inherit;
            font-size: calc(14px + var(--font-bump));
            font-weight: 600;
            min-height: 32px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .copy-link-btn:hover,
        .link-action:hover {
            text-decoration: underline;
        }
        .toast {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            background: #fff;
            color: #111827;
            font-size: calc(14px + var(--font-bump));
            line-height: 1.45;
        }
        .toast-success {
            background: #f2fbf6;
            border-color: #bbf7d0;
            color: #166534;
        }
        .toast-error {
            background: #fff1f2;
            border-color: #fda4af;
            color: #991b1b;
        }
        pre {
            margin: 0;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #111827;
            color: #f3f4f6;
            overflow: auto;
            font-size: calc(13px + var(--font-bump));
            line-height: 1.5;
        }
        tbody tr:hover {
            background: #f8fafc;
        }

        .flatpickr-calendar {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: calc(14px + var(--font-bump));
            border-radius: 12px;
            box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
        }
        .flatpickr-weekday {
            font-size: calc(12px + var(--font-bump));
            color: #6b7280;
        }
        .flatpickr-day {
            height: 36px;
            line-height: 36px;
            font-size: calc(14px + var(--font-bump));
        }
        .flatpickr-day.selected,
        .flatpickr-day.startRange,
        .flatpickr-day.endRange {
            background: #2563eb;
            border-color: #2563eb;
        }

        @media (max-width: 1080px) {
            .faq-layout { grid-template-columns: 1fr; }
            .icon-cards { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
        }
        @media (max-width: 960px) {
            .field-grid { grid-template-columns: 1fr; }
            .cards-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
                transition: transform 0.2s ease;
                z-index: 50;
            }
            body.sidebar-open .sidebar { transform: translateX(0); }
            body.sidebar-open .sidebar-overlay {
                opacity: 1;
                pointer-events: auto;
            }
            .hamburger { display: inline-flex; }
            .top-bar { align-items: flex-start; }
            .main { padding: 14px; }
            .planning-shell { padding: 12px; }
            .finish-page { padding: 14px; }
            .finish-page__header { flex-direction: column; align-items: flex-start; }
            .finish-page__mark { width: 60px; height: 60px; }
            .finish-page__footer { flex-direction: column; align-items: stretch; }
            .finish-page__footer .btn { width: 100%; }
            .section {
                padding: 14px;
                border-radius: 12px;
            }
            .section-header,
            .card-header,
            .event-modal__header,
            .actions-row,
            .calendar-toolbar,
            .calendar-toolbar__group,
            .calendar-toolbar__meta {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .section-title {
                font-size: calc(22px + var(--font-bump));
                line-height: 1.18;
            }
            .section-description,
            .card-subtitle {
                margin-bottom: 0;
            }
            .actions-row .btn,
            .card-header .btn,
            .event-modal__footer .btn,
            .calendar-week__controls .btn {
                width: 100%;
            }
            .stats-grid,
            .section-grid {
                grid-template-columns: 1fr;
            }
            .list-item,
            .calendar-card {
                padding: 12px;
            }
            .list-item,
            .calendar-card__header,
            .calendar-card__footer,
            .table-actions {
                align-items: stretch;
                flex-direction: column;
            }
            .list-item__actions,
            .calendar-card__footer,
            .table-actions {
                width: 100%;
            }
            .list-item__actions .btn,
            .calendar-card__footer .btn,
            .table-actions .btn {
                width: 100%;
            }
            .calendar-days {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }
            .calendar-day {
                min-height: 88px;
                padding: 10px 8px;
            }
            .calendar-toolbar__meta {
                text-align: left;
            }
            .calendar-board {
                overflow-x: auto;
                padding-bottom: 4px;
            }
            .calendar-board {
                display: block;
            }
            .calendar-board__column {
                display: flex;
                flex-direction: column;
                margin-bottom: 10px;
                border-right: 0;
                border-bottom: 1px solid #e5e7eb;
            }
            .calendar-board__column:last-child {
                margin-bottom: 0;
                border-bottom: 0;
            }
            .calendar-board__time-line {
                min-width: 720px;
            }
            .calendar-card {
                min-width: 100%;
            }
            .table-wrap {
                border-radius: 10px;
            }
            table {
                min-width: 760px;
            }
            .event-modal {
                padding: 12px;
                align-items: flex-end;
            }
            .event-modal__dialog {
                width: 100%;
            }
            .event-modal__card {
                max-height: calc(100vh - 24px);
                border-radius: 14px;
            }
            .field-grid {
                gap: 10px;
            }
            .icon-cards { grid-template-columns: 1fr; }
            .link-action {
                width: 100%;
                justify-content: flex-start;
                padding: 6px 0;
            }
            .timeline-card__actions,
            .calendar-task-card__meta {
                align-items: flex-start;
            }
            .calendar-week__controls {
                width: 100%;
            }
            .calendar-week__control {
                flex: 1 1 0;
            }
            .calendar-week__days {
                grid-template-columns: 56px repeat(7, minmax(0, 1fr));
            }
            .calendar-week__grid {
                grid-template-columns: 56px minmax(0, 1fr);
            }
            .calendar-week__axis span {
                padding-left: 8px;
            }
            .calendar-week__axis span::after {
                left: 46px;
            }
            .calendar-event {
                margin: 2px 2px;
                padding: 8px 9px;
                gap: 4px;
            }
            .calendar-event__title {
                font-size: calc(12px + var(--font-bump));
            }
            .calendar-event__time {
                font-size: calc(10px + var(--font-bump));
            }
        }
        @media (max-width: 560px) {
            .planning-shell {
                padding: 10px;
            }
            .section-header .section-eyebrow,
            .card-header .section-eyebrow,
            .event-modal__header .section-eyebrow {
                margin-bottom: 2px;
            }
            .stats-grid {
                gap: 10px;
            }
            .stat-card {
                padding: 12px;
            }
            .stat-card__value {
                font-size: calc(24px + var(--font-bump));
            }
            .list-item__meta,
            .calendar-card__meta {
                word-break: break-word;
            }
            .calendar-days {
                grid-template-columns: 1fr;
            }
            .calendar-day {
                min-height: auto;
            }
            .calendar-day__weekday,
            .calendar-day__count {
                font-size: calc(12px + var(--font-bump));
            }
            .calendar-day__date {
                font-size: calc(22px + var(--font-bump));
            }
            .calendar-board__column {
                padding: 10px;
            }
            .calendar-board__day {
                padding-bottom: 6px;
            }
            .calendar-board__date {
                font-size: calc(16px + var(--font-bump));
            }
            .event-modal__footer {
                display: flex;
                flex-direction: column-reverse;
                gap: 10px;
            }
            .toast {
                padding: 10px 12px;
            }
        }
        @media (max-width: 360px) {
            .main {
                padding: 10px;
            }
            .planning-shell {
                padding: 8px;
            }
            .section {
                padding: 12px;
                border-radius: 10px;
            }
            .section-title {
                font-size: calc(20px + var(--font-bump));
            }
            .section-description,
            .card-subtitle,
            .stat-card__meta,
            .list-item__meta,
            .calendar-card__meta {
                font-size: calc(12px + var(--font-bump));
                line-height: 1.4;
            }
            .actions-row,
            .card-header,
            .calendar-toolbar,
            .event-modal__header,
            .event-modal__footer {
                gap: 8px;
            }
            .btn {
                min-width: 0;
                padding-inline: 10px;
            }
            .stat-card {
                padding: 10px;
            }
            .stat-card__value {
                font-size: calc(22px + var(--font-bump));
                line-height: 1;
            }
            .calendar-day {
                padding: 8px;
                min-height: 76px;
            }
            .calendar-day__date {
                font-size: calc(20px + var(--font-bump));
            }
            .calendar-day__weekday,
            .calendar-day__count {
                font-size: calc(11px + var(--font-bump));
            }
            .calendar-board__column {
                padding: 8px;
            }
            .calendar-board__weekday,
            .calendar-board__count {
                font-size: calc(11px + var(--font-bump));
            }
            .calendar-board__date {
                font-size: calc(15px + var(--font-bump));
            }
            .list-item,
            .calendar-card {
                padding: 10px;
            }
            .list-item__actions .btn,
            .calendar-card__footer .btn,
            .table-actions .btn {
                padding-inline: 10px;
            }
            .field-grid {
                gap: 8px;
            }
            .ui-label {
                font-size: calc(12px + var(--font-bump));
            }
            .ui-input {
                min-height: 42px;
                font-size: calc(13px + var(--font-bump));
            }
            .event-modal {
                padding: 8px;
            }
            .event-modal__card {
                max-height: calc(100vh - 16px);
            }
            .toast {
                padding: 8px 10px;
                font-size: calc(12px + var(--font-bump));
            }
        }
