:root {
    --bg: #eff6ff;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --line: rgba(30, 64, 175, 0.1);
    --line-strong: rgba(30, 64, 175, 0.18);
    --text: #0f172a;
    --muted-text: #64748b;
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --green: #16a34a;
    --red: #dc2626;
    --amber: #d97706;
    --shadow: 0 24px 80px rgba(37, 99, 235, 0.12);
}

/* TailAdmin-style operations shell */
:root {
    --ta-bg: #f9fafb;
    --ta-sidebar: #ffffff;
    --ta-card: #ffffff;
    --ta-border: #e4e7ec;
    --ta-text: #101828;
    --ta-muted: #667085;
    --ta-blue: #465fff;
    --ta-blue-soft: #ecf3ff;
    --ta-green: #12b76a;
    --ta-green-soft: #ecfdf3;
    --ta-amber: #f79009;
    --ta-amber-soft: #fffaeb;
    --ta-purple: #7a5af8;
    --ta-purple-soft: #f4f3ff;
    --ta-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

body.app-body {
    background: var(--ta-bg);
    color: var(--ta-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tailadmin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--ta-border);
    background: var(--ta-sidebar);
}

.sidebar-brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 0 8px;
}

.sidebar-brand .mascot-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.5rem;
    box-shadow: none;
    background: var(--ta-blue);
}

.sidebar-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: var(--ta-muted);
    font-size: 0.78rem;
}

.sidebar-nav {
    display: grid;
    gap: 24px;
}

.sidebar-group {
    display: grid;
    gap: 6px;
}

.sidebar-label {
    padding: 0 12px 6px;
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar-link {
    min-height: 44px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-parent-link,
.planner-parent-link {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--ta-blue-soft);
    color: var(--ta-blue);
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f2f4f7;
    font-weight: 800;
}

.sidebar-link.active .nav-icon,
.sidebar-link:hover .nav-icon {
    background: #dbeafe;
}

.planner-parent-link.expanded .sidebar-chevron {
    transform: rotate(0deg);
}

.planner-submenu {
    padding-left: 18px;
}

.planner-child-link {
    min-height: 36px;
    padding-left: 14px;
    font-size: 0.92rem;
}

.sidebar-card {
    margin-top: 28px;
    padding: 14px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #f8fbff;
}

.sidebar-card span {
    display: block;
    color: var(--ta-muted);
    font-size: 0.8rem;
}

.sidebar-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--ta-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.topbar-title {
    min-width: 0;
}

.topbar-title h1 {
    margin: 2px 0 0;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    width: min(360px, 28vw);
    min-height: 44px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ta-muted);
}

.topbar-search input {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    outline: none;
}

.sidebar-toggle {
    display: grid;
}

.page-breadcrumb-card {
    display: grid;
    margin-bottom: 20px;
    padding: 18px 24px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: var(--ta-card);
    box-shadow: var(--ta-shadow);
}

.page-breadcrumb-card h2 {
    margin: 0;
    color: var(--ta-text);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ta-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.page-breadcrumb a {
    color: var(--ta-muted);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--ta-blue);
}

.page-breadcrumb strong {
    color: var(--ta-text);
    font-weight: 900;
}

.page-breadcrumb-separator {
    color: #98a2b3;
}

.page-local-heading,
.profile-area-heading,
.billing-page-heading {
    display: none;
}

.page-shell {
    width: min(100% - 48px, 1280px);
    padding: 24px 0 44px;
}

.dashboard-stack {
    gap: 20px;
}

.overview-strip,
.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-chip,
.info-card,
.profile-card,
.admin-metric-card,
.admin-page-header {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: var(--ta-card);
    box-shadow: var(--ta-shadow);
}

.meta-chip {
    min-height: 96px;
    padding: 18px;
}

.meta-label,
.brand-kicker,
.eyebrow,
.wallet-label,
.detail-score-label,
.user-name-label,
.user-role-label,
.user-role,
.goal-status,
.read-only-badge {
    letter-spacing: 0;
}

.brand-kicker,
.eyebrow {
    color: var(--ta-blue);
}

.language-select,
input,
select,
textarea {
    border-color: var(--ta-border);
    border-radius: 8px;
}

.session-trigger,
.install-app-button,
.primary-action,
.secondary-action,
.ghost-action,
.pricing-cta {
    border-radius: 8px;
    box-shadow: none;
}

.session-trigger,
.install-app-button,
.primary-action {
    background: var(--ta-blue);
    color: #ffffff;
}

.secondary-action {
    border: 1px solid var(--ta-border);
    background: #ffffff;
    color: var(--ta-blue);
}

.ghost-action {
    border: 1px solid var(--ta-border);
    background: #ffffff;
    color: #344054;
}

.admin-metric-card {
    min-height: 132px;
    padding: 20px;
}

.admin-metric-card span {
    color: var(--ta-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-metric-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.75rem;
    line-height: 1.1;
}

.admin-metric-card em {
    display: inline-flex;
    margin-top: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-style: normal;
}

.admin-metric-card.blue em { background: var(--ta-blue-soft); color: var(--ta-blue); }
.admin-metric-card.green em { background: var(--ta-green-soft); color: #067647; }
.admin-metric-card.amber em { background: var(--ta-amber-soft); color: #b54708; }
.admin-metric-card.purple em { background: var(--ta-purple-soft); color: var(--ta-purple); }

.dashboard-overview {
    display: grid;
    gap: 20px;
}

.dashboard-chart-card {
    padding: 20px;
}

.segmented-control {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #f9fafb;
}

.segmented-control button {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 6px 12px;
    background: transparent;
    color: var(--ta-muted);
}

.segmented-control button.active {
    background: #ffffff;
    color: var(--ta-blue);
    box-shadow: var(--ta-shadow);
}

.progress-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    align-items: end;
    gap: 18px;
    padding: 22px 8px 6px;
}

.chart-column {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.chart-track {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: end;
    padding: 8px;
    border-radius: 8px;
    background: #f2f4f7;
}

.chart-track span {
    width: 100%;
    min-height: 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--ta-blue), var(--ta-green));
}

.chart-column small {
    color: var(--ta-muted);
}

.admin-page {
    display: block;
}

.admin-route-page {
    display: grid;
    gap: 20px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
}

.admin-page-header h2 {
    margin: 6px 0 6px;
    font-size: 1.5rem;
}

.admin-page-header p {
    margin: 0;
    color: var(--ta-muted);
}

.backoffice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
}

.settings-form,
.wallet-admin-form {
    gap: 16px;
}

.access-users {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.access-card {
    border-radius: 8px;
    box-shadow: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ta-border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--ta-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-user {
    display: grid;
    gap: 3px;
}

.table-user span {
    color: var(--ta-muted);
    font-size: 0.86rem;
}

.system-health-list {
    display: grid;
    gap: 10px;
}

.system-health-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #fcfcfd;
}

.system-health-item span {
    color: var(--ta-muted);
}

.profile-card {
    padding: 20px;
}

.profile-header,
.wallet-grid,
.activity-layout,
.public-map-layout {
    gap: 16px;
}

.wallet-card,
.agenda-day,
.city-points-card,
.pricing-card,
.about-card {
    border-radius: 8px;
    box-shadow: none;
}

.table-wrap {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    overflow: auto;
}

.goals-table th,
.goals-table td {
    border-color: var(--ta-border);
}

.status-indicator {
    left: auto;
    right: 22px;
    bottom: 22px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    box-shadow: var(--ta-shadow);
}

@media (max-width: 1180px) {
    .tailadmin-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: 290px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        box-shadow: 20px 0 40px rgba(16, 24, 40, 0.14);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .overview-strip,
    .admin-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backoffice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-topbar {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px 16px;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar-search {
        width: 100%;
    }

    .page-shell {
        width: min(100% - 24px, 560px);
        padding: 18px 0 92px;
    }

    .overview-strip,
    .admin-metric-grid,
    .wallet-grid,
    .activity-layout,
    .access-users {
        grid-template-columns: 1fr;
    }

    .admin-page-header,
    .card-heading,
    .profile-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Final form/control normalization. */
.brand-kicker,
.eyebrow {
    color: var(--ta-blue);
}

.language-select,
input,
select,
textarea {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ta-text);
    box-shadow: none;
}

.language-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ta-blue);
    outline: 3px solid rgba(70, 95, 255, 0.12);
}

.primary-action,
.install-app-button {
    border: 1px solid var(--ta-blue);
    background: var(--ta-blue);
    color: #ffffff;
    box-shadow: none;
}

.secondary-action,
.ghost-action {
    border: 1px solid var(--ta-border);
    background: #ffffff;
    color: var(--ta-blue);
    box-shadow: none;
}

.ghost-action {
    color: #344054;
}

.session-trigger {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ta-text);
    box-shadow: none;
}

.session-trigger-avatar {
    border-radius: 8px;
    background: var(--ta-blue-soft);
    color: var(--ta-blue);
}

.goal-status.active {
    background: var(--ta-blue-soft);
    color: var(--ta-blue);
}

.wallet-type-row,
.wallet-admin-card,
.access-card {
    border-color: var(--ta-border);
    border-radius: 8px;
    box-shadow: none;
}

.brand-kicker,
.eyebrow {
    color: var(--ta-blue);
}

.language-select,
input,
select,
textarea {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ta-text);
    box-shadow: none;
}

.language-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ta-blue);
    outline: 3px solid rgba(70, 95, 255, 0.12);
}

.primary-action,
.install-app-button {
    border: 1px solid var(--ta-blue);
    background: var(--ta-blue);
    color: #ffffff;
    box-shadow: none;
}

.primary-action:hover,
.install-app-button:hover {
    background: #3641f5;
    border-color: #3641f5;
}

.secondary-action,
.ghost-action {
    border: 1px solid var(--ta-border);
    background: #ffffff;
    color: var(--ta-blue);
    box-shadow: none;
}

.ghost-action {
    color: #344054;
}

.session-trigger {
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ta-text);
    box-shadow: none;
}

.session-trigger-avatar {
    border-radius: 8px;
    background: var(--ta-blue-soft);
    color: var(--ta-blue);
}

.goal-status.active {
    background: var(--ta-blue-soft);
    color: var(--ta-blue);
}

.wallet-type-row,
.wallet-admin-card,
.access-card {
    border-color: var(--ta-border);
    border-radius: 8px;
    box-shadow: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 26%),
        linear-gradient(180deg, #eef5ff 0%, #f8fbff 50%, #edf6ff 100%);
    min-height: 100vh;
}

.page-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 34px;
}

.topbar {
    display: block;
    margin-bottom: 24px;
}

.brand-kicker,
.eyebrow,
.meta-label,
.wallet-label,
.detail-score-label,
.user-name-label,
.user-role-label,
.user-role,
.goal-status,
.read-only-badge {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-kicker,
.eyebrow {
    color: var(--blue-deep);
}

.brand-block h1 {
    margin: 6px 0 10px;
    font-size: 3.45rem;
    line-height: 0.95;
    letter-spacing: 0;
}

.brand-block p,
.hero-panel p,
.profile-header p,
.log-entry p {
    margin: 0;
    color: var(--muted-text);
}

.meta-chip,
.hero-panel,
.profile-card,
.info-card {
    background: var(--panel);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.meta-chip {
    padding: 14px 16px;
    min-width: 0;
}

.meta-chip strong {
    display: block;
    margin-top: 6px;
    font-size: 1.18rem;
}

.language-select,
input,
select,
button,
textarea {
    font: inherit;
}

.language-select,
input,
select {
    width: 100%;
    border: 1px solid var(--line-strong);
    background: white;
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
}

.user-role {
    color: var(--muted-text);
    margin-top: 6px;
    display: inline-block;
}

.user-name-label,
.user-role-label {
    margin-top: 8px;
    color: var(--muted-text);
    display: block;
}

.user-name {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    color: var(--text);
}

.auth-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.section-switcher {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.icon-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

.icon-toggle.active {
    background: linear-gradient(145deg, var(--blue), var(--blue-deep));
    color: white;
}

.user-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
    font-weight: 700;
    text-decoration: none;
    border: none;
}

.dashboard-stack {
    display: grid;
    gap: 20px;
}

.hero-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.hero-actions {
    display: grid;
    gap: 14px;
    justify-items: end;
}

.site-nav,
.hero-auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-top-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-language-control {
    min-width: 220px;
}

.session-menu {
    position: relative;
}

.session-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px 6px 6px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
    color: var(--text);
    cursor: pointer;
}

.session-trigger-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: var(--blue-deep);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.session-trigger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-trigger-label {
    font-weight: 700;
    color: var(--blue-deep);
}

.session-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    z-index: 20;
}

.session-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    border: none;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.session-menu-item:hover {
    background: rgba(37, 99, 235, 0.12);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 700;
}

.nav-chip.active {
    background: linear-gradient(145deg, var(--blue), var(--blue-deep));
    color: white;
}

.hero-panel {
    padding: 22px 24px;
}

.overview-card {
    padding: 22px 24px;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

#public-view {
    display: grid;
    gap: 20px;
}

.public-home-header,
.public-map-layout,
.public-points-total,
.pricing-grid,
.about-grid {
    display: grid;
    gap: 16px;
}

.public-home-header {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: end;
}

.public-points-total strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.public-map-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: start;
}

.world-map-card,
.pricing-card,
.about-card,
.city-points-card {
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 24px;
}

.world-map-card {
    padding: 18px;
}

.world-map {
    width: 100%;
    height: auto;
}

.world-map path {
    fill: rgba(37, 99, 235, 0.08);
    stroke: rgba(37, 99, 235, 0.2);
    stroke-width: 6;
    stroke-linejoin: round;
}

.world-map image {
    opacity: 0.28;
}

.map-marker {
    cursor: pointer;
    filter: drop-shadow(0 14px 24px rgba(37, 99, 235, 0.2));
    transition: transform 180ms ease, filter 180ms ease;
    transform-origin: center;
}

.map-marker:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 18px 30px rgba(37, 99, 235, 0.28));
}

.map-marker-pulse {
    fill: rgba(59, 130, 246, 0.08);
    stroke: rgba(96, 165, 250, 0.18);
    stroke-width: 1;
    transform-origin: center;
    animation: map-marker-pulse 3.2s ease-in-out infinite;
}

.map-marker-halo {
    fill: rgba(37, 99, 235, 0.1);
    stroke: rgba(96, 165, 250, 0.18);
    stroke-width: 1;
}

.map-marker-tail {
    fill: rgba(37, 99, 235, 0.92);
}

.map-marker-ring {
    fill: rgba(255, 255, 255, 0.96);
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
}

.map-marker-core {
    fill: url(#map-marker-gradient);
    stroke: rgba(29, 78, 216, 0.16);
    stroke-width: 1;
}

.map-marker-highlight {
    fill: rgba(255, 255, 255, 0.35);
}

.map-marker-text {
    fill: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
    paint-order: stroke;
    stroke: rgba(15, 23, 42, 0.08);
    stroke-width: 0.6;
}

.map-marker-city {
    fill: rgba(15, 23, 42, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.map-marker:hover .map-marker-city {
    opacity: 1;
}

@keyframes map-marker-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.city-points-list {
    display: grid;
    gap: 12px;
}

.city-points-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
}

.city-points-card span {
    display: block;
    color: var(--muted-text);
    font-size: 0.88rem;
}

.city-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-card,
.about-card {
    padding: 18px;
}

.pricing-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.pricing-card p,
.about-card p {
    color: var(--muted-text);
}

.pricing-card ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    color: var(--text);
}

.pricing-cta {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    margin-top: 12px;
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-page {
    display: grid;
    gap: 20px;
}

.admin-page-header .card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.hero-panel h2,
.profile-header h2 {
    margin: 6px 0 8px;
    font-size: 2.1rem;
    line-height: 1;
}

.rates-chip strong,
.admin-metric-card.rates-metric-card strong {
    display: block;
    margin-top: 10px;
    color: var(--blue-deep);
    font-size: 1rem;
    line-height: 1.45;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-card {
    padding: 22px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.profile-score-wrap {
    text-align: right;
}

.profile-score {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    margin-top: 6px;
}

.positive {
    color: var(--green);
}

.negative {
    color: var(--red);
}

.zero {
    color: var(--text);
}

.score-controls {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.score-button,
.primary-action,
.secondary-action,
.ghost-action,
.table-action {
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.score-button:hover,
.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.table-action:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.score-button {
    border-radius: 18px;
    width: 64px;
    height: 54px;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.score-button.plus {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.score-button.minus {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.wallet-grid,
.conversion-grid,
.activity-layout {
    display: grid;
    gap: 16px;
}

.wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.wallet-profile-list {
    display: grid;
    gap: 16px;
}

.wallet-profile-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
}

.wallet-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wallet-profile-heading h4 {
    margin: 6px 0 6px;
    font-size: 1.35rem;
}

.wallet-profile-heading p {
    margin: 0;
    color: var(--ta-muted);
}

.wallet-profile-total {
    text-align: right;
}

.wallet-profile-total span {
    display: block;
    color: var(--ta-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.wallet-profile-total strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
}

.wallet-profile-card .wallet-grid {
    margin-top: 0;
}

.wallet-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef4ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 24px;
}

.wallet-button,
.profile-score-button {
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.profile-score-button {
    background: transparent;
    padding: 0;
}

.wallet-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.9rem;
    font-weight: 800;
    color: white;
}

.wallet-icon.euro {
    background: linear-gradient(145deg, #16a34a, #15803d);
}

.wallet-icon.btc {
    background: linear-gradient(145deg, #f59e0b, #d97706);
}

.wallet-card h4 {
    margin: 6px 0 8px;
    font-size: 1.45rem;
}

.wallet-card p {
    margin: 0;
    color: var(--muted-text);
}

.wallet-secondary {
    margin-top: 8px !important;
    color: var(--text) !important;
    font-weight: 600;
}

.profile-block {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.block-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.block-heading h3,
.card-heading h3 {
    margin: 0;
    font-size: 1.3rem;
}

.read-only-badge {
    color: var(--muted-text);
}

.conversion-grid {
    grid-template-columns: 1fr;
}

.conversion-result {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
}

.conversion-result strong {
    font-size: 1.1rem;
}

.mini-form,
.goal-form,
.settings-form {
    display: grid;
    gap: 12px;
}

.mini-form {
    padding: 16px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border-radius: 20px;
}

.mini-form h4 {
    margin: 0;
    font-size: 1rem;
}

label {
    display: grid;
    gap: 6px;
}

label span {
    color: var(--muted-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.primary-action,
.secondary-action,
.ghost-action {
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 700;
}

.primary-action {
    background: linear-gradient(145deg, var(--blue), var(--blue-deep));
    color: white;
}

.secondary-action {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-deep);
}

.ghost-action {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
}

.goals-table {
    width: 100%;
    border-collapse: collapse;
}

.goals-table th,
.goals-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: middle;
}

.goals-table th {
    color: var(--muted-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.goal-sort-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    font-weight: 700;
    cursor: pointer;
}

.goal-sort-button.active {
    color: var(--blue-deep);
}

.goal-image {
    width: 92px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.goal-image-button,
.goal-title-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
}

.goal-title {
    font-weight: 700;
}

.goal-title-button {
    font: inherit;
    font-weight: 700;
    color: var(--text);
}

.goal-title-button.is-clickable {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.goal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
}

.goal-status.completed {
    background: rgba(22, 163, 74, 0.12);
    color: var(--green);
}

.goal-status.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
}

.goal-progress-cell {
    min-width: 160px;
    display: grid;
    gap: 8px;
}

.goal-progress-cell small {
    color: var(--muted-text);
    font-weight: 600;
}

.goal-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.08);
}

.goal-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.goal-actions,
.goal-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.goal-icon-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.goal-editor {
    margin-top: 14px;
}

.goal-image-preview {
    display: grid;
    gap: 8px;
    color: var(--muted-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.goal-image-preview img {
    width: 180px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.goal-action-menu {
    position: relative;
}

.goal-action-menu summary {
    list-style: none;
}

.goal-action-menu summary::-webkit-details-marker {
    display: none;
}

.goal-menu-items {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 4;
    min-width: 160px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.table-action {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
    font-weight: 700;
}

.table-action.danger {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
}

.goal-form {
    margin-top: 16px;
}

.hidden {
    display: none !important;
}

.activity-layout {
    grid-template-columns: 1fr;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.planner-calendar-shell {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: white;
}

@media (max-width: 900px) {
    .planner-calendar-shell {
        overflow-x: auto;
    }
}

.agenda-view-switch {
    display: inline-flex;
    gap: 4px;
    padding: 2px;
    border: 0;
    border-radius: 8px;
    background: #f2f4f7;
}

.agenda-view-switch button,
.agenda-user-chip {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.agenda-view-switch button {
    min-width: 70px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
}

.agenda-view-switch button.active,
.agenda-user-chip.active {
    background: white;
    color: #101828;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.agenda-controls {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 24px 24px 16px;
}

.agenda-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 4px;
}

.agenda-period-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agenda-period-controls h4 {
    min-width: 180px;
    margin: 0;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 600;
}

.agenda-period-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: transparent;
    color: #344054;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.agenda-period-button:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #101828;
}

.agenda-filter-row,
.agenda-user-filter {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.agenda-control {
    display: grid;
    gap: 6px;
    min-width: 150px;
}

.agenda-control span,
.agenda-user-filter > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-control select {
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 8px;
    background: white;
    padding: 0 12px;
    color: var(--ink);
    font-weight: 700;
}

.agenda-user-filter {
    align-items: center;
}

.agenda-user-chip {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
}

.agenda-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 24px 16px;
    padding: 12px 14px;
    border: 1px solid rgba(70, 95, 255, 0.12);
    border-radius: 8px;
    background: #f8fbff;
}

.agenda-summary strong {
    display: block;
    margin-top: 2px;
    font-size: 1.45rem;
}

.agenda-summary-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.agenda-summary-stats span {
    padding: 5px 8px;
    border-radius: 8px;
    background: white;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.agenda-calendar-grid,
.agenda-year-grid {
    min-width: 760px;
}

.agenda-calendar-grid {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    gap: 0;
    border-top: 1px solid #e5e7eb;
}

.agenda-weekday {
    padding: 16px 20px;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #98a2b3;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
}

.agenda-calendar-grid > :nth-child(7n) {
    border-right: 0;
}

.agenda-calendar-day,
.agenda-month-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    min-height: 132px;
    padding: 14px;
    border: 0;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-radius: 0;
    background: white;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.agenda-calendar-day::before,
.agenda-month-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: var(--completion, 0%);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.34));
    pointer-events: none;
}

.agenda-calendar-day > *,
.agenda-month-card > * {
    position: relative;
    z-index: 1;
}

.agenda-year-grid .agenda-month-card {
    min-height: 150px;
}

.agenda-calendar-day:hover,
.agenda-month-card:hover,
.agenda-calendar-day.active {
    background: #f9fafb;
    box-shadow: none;
    transform: none;
}

.agenda-calendar-day.muted {
    opacity: 1;
    background: #fcfcfd;
}

.agenda-calendar-day > span,
.agenda-month-card > span {
    color: #667085;
    font-size: 0.86rem;
    font-weight: 600;
}

.agenda-calendar-day.muted > span,
.agenda-calendar-day.muted strong,
.agenda-calendar-day.muted small {
    color: #98a2b3;
}

.agenda-calendar-day strong,
.agenda-month-card strong {
    align-self: center;
    justify-self: center;
    font-size: 1.35rem;
    text-align: center;
}

.agenda-calendar-day .agenda-complete-icon,
.agenda-month-card .agenda-complete-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    border-radius: 999px;
    background: #22c55e;
    color: white;
    font-size: 1.25rem;
    line-height: 1;
}

.agenda-calendar-day small,
.agenda-month-card small {
    justify-self: center;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.agenda-year-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 0;
    border-top: 1px solid #e5e7eb;
}

.agenda-week-board {
    --agenda-week-header-height: 72px;
    display: grid;
    min-width: 0;
    border-top: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.agenda-week-board.is-week-header-fixed {
    padding-top: var(--agenda-week-header-height);
}

.agenda-week-header,
.agenda-week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.agenda-week-header {
    display: grid;
    box-sizing: border-box;
    border-bottom: 1px solid #bbf7d0;
    background: #ecfccb;
}

.agenda-week-grid {
    align-items: stretch;
    gap: 0;
    min-width: 0;
    overflow: visible;
    padding: 0;
}

.agenda-week-grid .agenda-day {
    min-width: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-right: 1px solid #bbf7d0;
    border-radius: 0;
    background: #f0fdf4;
}

.agenda-week-grid .agenda-day:last-child {
    border-right: 0;
}

.agenda-week-grid .agenda-day.is-empty {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.agenda-week-grid .agenda-day-label {
    display: flex;
    align-self: start;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border-bottom: 1px solid #bbf7d0;
    background: #ecfccb;
    color: #15803d;
    letter-spacing: 0;
}

.agenda-week-header .agenda-day-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid #bbf7d0;
    border-radius: 0;
    background: #ecfccb;
    color: #15803d;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.agenda-week-header .agenda-day-label:last-child {
    border-right: 0;
}

.agenda-week-header .agenda-day-label div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.agenda-week-header .agenda-day-label strong {
    font-size: 0.78rem;
}

.agenda-week-header .agenda-day-label span {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
}

.agenda-week-header .agenda-day-label em {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: white;
    color: #166534;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.08);
}

.agenda-week-grid .agenda-day.is-empty .agenda-day-label {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
    color: var(--muted);
}

.agenda-week-grid .agenda-day-label div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.agenda-week-grid .agenda-day-label strong {
    font-size: 0.78rem;
}

.agenda-week-grid .agenda-day-label span {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
}

.agenda-week-grid .agenda-day-label em {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: white;
    color: #166534;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.08);
}

.agenda-week-grid .agenda-day.is-empty .agenda-day-label em {
    color: var(--muted);
}

.agenda-week-grid .agenda-day-items {
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 8px;
    padding: 10px;
}

.agenda-week-grid .agenda-empty {
    display: grid;
    min-height: 92px;
    place-items: center;
    border-style: dashed;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.agenda-week-grid .schedule-activity {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    grid-template-areas:
        "icon body status"
        "icon points status";
    align-items: center;
    gap: 7px 8px;
    min-height: 0;
    padding: 9px;
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.agenda-week-grid .schedule-activity .agenda-item-type {
    width: 30px;
    height: 30px;
}

.agenda-week-grid .schedule-activity-body {
    min-width: 0;
}

.agenda-week-grid .schedule-activity-body strong {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.agenda-week-grid .schedule-activity-body small {
    white-space: normal;
    overflow-wrap: anywhere;
}

.agenda-week-grid .schedule-points {
    justify-self: center;
}

.agenda-week-grid .schedule-status-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    align-self: center;
    justify-self: end;
    font-size: 0.9rem;
}

.agenda-week-grid .schedule-status-text {
    display: none;
}

.agenda-detail {
    margin-top: 18px;
}

.planner-calendar-shell {
    border-radius: 16px;
    background: #ffffff;
}

.agenda-calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(180px, 1fr) minmax(230px, auto);
    align-items: center;
    gap: 18px;
}

.agenda-period-title {
    text-align: center;
}

.agenda-period-title h4 {
    margin: 0;
    color: #101828;
    font-size: 1.15rem;
    font-weight: 800;
}

.agenda-period-controls {
    gap: 8px;
}

.agenda-period-button {
    background: #ffffff;
}

.calendar-add-event {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--ta-blue);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.agenda-filter-row {
    display: none;
}

.tailadmin-calendar-month {
    min-width: 900px;
}

.tailadmin-calendar-month .agenda-calendar-day {
    grid-template-rows: auto 1fr auto;
    min-height: 130px;
    padding: 14px;
}

.calendar-day-number {
    width: fit-content;
    border: 0;
    background: transparent;
    color: #667085;
    font-weight: 800;
    cursor: pointer;
}

.month-event-list {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
}

.calendar-time-grid {
    position: relative;
    display: grid;
    grid-template-columns: 56px repeat(var(--calendar-days), minmax(140px, 1fr));
    grid-auto-rows: 58px;
    min-width: 900px;
    border-top: 1px solid #e5e7eb;
}

.calendar-time-grid-day {
    grid-template-columns: 56px minmax(560px, 1fr);
}

.calendar-time-corner,
.calendar-day-heading,
.calendar-time-label,
.calendar-slot {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-time-corner,
.calendar-day-heading {
    min-height: 48px;
    background: #ffffff;
}

.calendar-day-heading {
    border-top: 0;
    border-left: 0;
    color: #98a2b3;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.calendar-time-label {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #667085;
    font-weight: 700;
}

.calendar-time-label.all-day {
    font-size: 0.86rem;
}

.calendar-slot {
    min-width: 0;
    border-top: 0;
    border-left: 0;
    background: #ffffff;
    cursor: pointer;
}

.calendar-slot:hover {
    background: #f8fafc;
}

.calendar-event-position {
    z-index: 2;
    align-self: start;
    min-width: 0;
    padding: 10px 10px 0;
    pointer-events: none;
}

.calendar-event {
    width: 100%;
    min-height: 42px;
    display: grid;
    gap: 2px;
    align-content: center;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #ecfdf3;
    color: #101828;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.calendar-event small {
    color: #667085;
    font-size: 0.74rem;
    font-weight: 700;
}

.calendar-event.completed {
    background: #ecfdf3;
}

.calendar-event.cancelled {
    background: #fef2f2;
    color: #64748b;
    text-decoration: line-through;
}

.calendar-event.month-chip {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.78rem;
}

.calendar-event.month-chip small {
    display: none;
}

.calendar-event-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
}

.calendar-event-dialog {
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--ta-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.agenda-day-grid {
    display: block;
    padding: 18px 24px 24px;
    border-top: 1px solid #e5e7eb;
}

.agenda-detail-heading {
    margin-bottom: 12px;
}

.agenda-player-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.agenda-player-detail {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: #f8fafc;
}

.agenda-player-detail h4 {
    margin: 0;
}

.agenda-day-grid .agenda-player-detail-grid {
    grid-template-columns: minmax(0, 1fr);
}

.agenda-day {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.agenda-day-label {
    width: 100%;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-deep);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.agenda-day-items {
    display: grid;
    gap: 8px;
}

.agenda-item,
.agenda-empty {
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.08);
    font-size: 0.9rem;
}

.agenda-item {
    display: grid;
    gap: 4px;
}

.agenda-item-type {
    font-size: 1rem;
}

.schedule-activity {
    width: 100%;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon body status"
        "icon points status";
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.schedule-activity:hover {
    border-color: rgba(70, 95, 255, 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.schedule-activity[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.schedule-activity[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.78;
}

.schedule-activity.completed {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.28);
}

.schedule-activity.cancelled {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.24);
}

.schedule-activity.cancelled .schedule-points {
    background: #f1f5f9;
    color: #64748b;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.schedule-activity-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.schedule-activity-body strong {
    overflow-wrap: anywhere;
}

.schedule-activity-body small {
    color: var(--muted);
    font-size: 0.78rem;
}

.schedule-points {
    justify-self: center;
    padding: 3px 8px;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.76rem;
    font-weight: 800;
}

.schedule-status-button {
    justify-self: start;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.schedule-status-text {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-status-button:hover {
    transform: translateY(-1px);
}

.schedule-status-button.completed {
    background: #dcfce7;
    border-color: rgba(22, 163, 74, 0.35);
    color: #15803d;
}

.schedule-status-button.cancelled {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.32);
    color: #b91c1c;
}

.schedule-status-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.schedule-status-button[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.78;
}

.schedule-template-form {
    gap: 18px;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.schedule-check-group {
    display: grid;
    gap: 8px;
}

.schedule-check-group > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.check-chip input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.schedule-template-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.schedule-template-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-template-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.schedule-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.logs-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.icon-action {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: none;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-deep);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.icon-table-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-deep);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.icon-table-action.danger {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
}

.admin-panel {
    display: grid;
    gap: 18px;
}

.wallet-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wallet-types-grid {
    display: grid;
    gap: 12px;
}

.wallet-type-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
    gap: 10px;
    color: var(--muted-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-type-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.wallet-type-rate {
    padding: 10px 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--line-strong);
    color: var(--muted-text);
    font-weight: 600;
}

.wallet-admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.wallet-admin-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.access-users {
    display: grid;
    gap: 12px;
}

.access-row {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.access-card-header,
.admin-inline-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.access-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.access-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: var(--blue-deep);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.access-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.access-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.access-full {
    grid-column: 1 / -1;
}

.access-auth-block {
    display: grid;
    gap: 10px;
}

.access-auth-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-password-state {
    min-height: 48px;
}

.access-card-actions {
    display: flex;
    justify-content: flex-end;
}

.invite-heading {
    margin-bottom: 10px;
    color: var(--muted-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.invite-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.invite-card strong {
    font-size: 1.1rem;
}

.invite-card span {
    color: var(--muted-text);
    font-size: 0.88rem;
}

.info-card {
    padding: 22px;
}

.card-heading {
    margin-bottom: 16px;
}

.logs-list {
    display: grid;
    gap: 12px;
}

.log-entry {
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid rgba(37, 99, 235, 0.08);
    overflow: hidden;
}

.log-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-deep);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-text);
    font-size: 0.82rem;
}

.log-summary {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.log-summary::-webkit-details-marker {
    display: none;
}

.log-summary strong {
    line-height: 1.35;
}

.log-details {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.log-details h4 {
    margin: 14px 0 0;
    font-size: 0.95rem;
}

.log-detail-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.log-detail-row {
    display: grid;
    gap: 6px;
}

.log-detail-row span {
    color: var(--muted-text);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.log-detail-row pre {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(37, 99, 235, 0.08);
    color: var(--text);
    font: 0.88rem/1.45 "Consolas", "SFMono-Regular", monospace;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty-logs {
    color: var(--muted-text);
}

.status-indicator {
    position: fixed;
    left: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 40px;
    background: rgba(15, 23, 42, 0.82);
}

.image-lightbox img {
    max-width: min(90vw, 1100px);
    max-height: 84vh;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.image-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.status-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.online {
    background-color: var(--green);
}

.offline {
    background-color: var(--red);
}

@media (max-width: 1100px) {
    .topbar,
    .profile-header,
    .hero-head {
        flex-direction: column;
    }

    .hero-meta-grid,
    .profiles-grid,
    .activity-layout,
    .conversion-grid,
    .wallet-grid,
    .admin-panel,
    .agenda-grid,
    .access-card-grid,
    .wallet-admin-grid,
    .wallet-type-header,
    .logs-filter-bar,
    .wallet-type-row,
    .public-home-header,
    .public-map-layout {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .site-nav,
    .hero-auth-actions,
    .hero-top-controls {
        justify-items: start;
        justify-content: flex-start;
    }

    .top-language-control {
        min-width: 180px;
    }

    .profile-score-wrap {
        text-align: left;
    }

    .score-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .page-shell {
        width: min(100% - 16px, 100%);
        padding-top: 14px;
    }

    .topbar {
        margin-bottom: 16px;
    }

    .brand-block h1 {
        font-size: 2.5rem;
    }

    .hero-panel,
    .profile-card,
    .info-card,
    .meta-chip {
        border-radius: 22px;
    }

    .hero-panel,
    .profile-card,
    .info-card {
        padding: 16px;
    }

    .hero-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-grid,
    .conversion-grid,
    .agenda-grid,
    .access-card-grid,
    .wallet-admin-grid,
    .logs-filter-bar {
        grid-template-columns: 1fr;
    }

    .profile-score {
        font-size: 3.4rem;
    }

    .goal-image {
        width: 72px;
        height: 44px;
    }

    .status-indicator {
        left: 10px;
        bottom: 10px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

/* BrightSteps game UI refresh and shadcn-compatible design tokens */
:root {
    --background: 88 100% 98%;
    --foreground: 137 22% 16%;
    --card: 0 0% 100%;
    --card-foreground: 137 22% 16%;
    --popover: 0 0% 100%;
    --popover-foreground: 137 22% 16%;
    --primary: 101 98% 40%;
    --primary-foreground: 0 0% 100%;
    --secondary: 199 92% 54%;
    --secondary-foreground: 0 0% 100%;
    --muted: 94 43% 91%;
    --muted-foreground: 102 12% 42%;
    --accent: 49 100% 50%;
    --accent-foreground: 137 22% 16%;
    --destructive: 0 100% 65%;
    --destructive-foreground: 0 0% 100%;
    --border: 100 70% 82%;
    --input: 100 70% 82%;
    --ring: 199 92% 54%;
    --radius: 0.5rem;
    --bg: #f7fee7;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --line: #d7f8c6;
    --line-strong: #9be56d;
    --text: #213124;
    --muted-text: #60705d;
    --blue: #1cb0f6;
    --blue-deep: #147bd1;
    --green: #58cc02;
    --green-deep: #3f9700;
    --red: #ff4b4b;
    --amber: #ffc800;
    --berry: #ce82ff;
    --shadow: 0 8px 0 #b7e969, 0 18px 34px rgba(33, 49, 36, 0.12);
    --shadow-blue: 0 8px 0 #9be4ff, 0 18px 34px rgba(20, 123, 209, 0.16);
    --shadow-soft: 0 12px 28px rgba(33, 49, 36, 0.1);
}

* {
    letter-spacing: 0;
}

html {
    background: var(--bg);
}

body {
    font-family: ui-rounded, "Nunito", "Avenir Next", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #f7fee7 0%, #eefbe2 48%, #eaf7ff 100%);
    min-height: 100svh;
    overflow-x: hidden;
}

.page-shell {
    width: min(1180px, calc(100% - 28px));
    padding: 18px 0 34px;
}

.dashboard-stack {
    gap: 18px;
}

.brand-kicker,
.eyebrow,
.meta-label,
.wallet-label,
.detail-score-label,
.user-name-label,
.user-role-label,
.user-role,
.goal-status,
.read-only-badge,
.goals-table th,
.invite-heading,
.log-type,
.log-detail-row span {
    letter-spacing: 0;
}

.hero-panel,
.profile-card,
.info-card,
.meta-chip {
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.game-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 14px, rgba(255, 255, 255, 0) 14px 32px),
        linear-gradient(135deg, #ecffdc 0%, #fff8c7 52%, #eaf7ff 100%);
    border-color: #9be56d;
}

.hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
}

.brand-block {
    display: grid;
    gap: 16px;
}

.brand-lockup {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mascot-badge {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 3px solid #ffffff;
    border-radius: 8px;
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 7px 0 var(--green-deep);
    font-size: 2.55rem;
    font-weight: 900;
    line-height: 1;
}

.brand-kicker,
.eyebrow,
.agenda-day-label {
    color: var(--green-deep);
}

.brand-block h1 {
    margin: 2px 0 8px;
    font-size: 3.45rem;
    line-height: 1;
    font-weight: 900;
    color: var(--text);
}

.brand-block p,
.hero-panel p,
.profile-header p,
.log-entry p,
.pricing-card p,
.about-card p,
.wallet-card p {
    color: var(--muted-text);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, 1fr));
    gap: 10px;
    max-width: 560px;
}

.hero-stat {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.hero-stat:nth-child(2) {
    border-color: #9be4ff;
}

.hero-stat:nth-child(3) {
    border-color: #f7d66d;
}

.hero-stat span {
    color: var(--muted-text);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-stat strong {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text);
}

.hero-actions {
    min-width: min(100%, 390px);
    justify-items: end;
}

.site-nav,
.hero-top-controls {
    gap: 10px;
}

.hero-top-controls {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto auto;
    width: 100%;
}

.top-language-control {
    min-width: 0;
}

.language-select,
input,
select,
textarea {
    min-height: 46px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
    outline: none;
}

.language-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(28, 176, 246, 0.16);
}

.nav-chip,
.session-trigger,
.install-app-button,
.primary-action,
.secondary-action,
.ghost-action,
.table-action,
.icon-toggle,
.icon-action,
.icon-table-action,
.score-button,
.pricing-cta,
.ghost-link,
.session-menu-item {
    border-radius: 8px;
    font-weight: 900;
}

.nav-chip {
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid #c7edb7;
    background: #ffffff;
    color: var(--green-deep);
    box-shadow: 0 4px 0 #d6efc8;
}

.nav-chip.active {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
    box-shadow: 0 4px 0 var(--green-deep);
}

.session-trigger {
    min-height: 48px;
    border: 2px solid #9be4ff;
    background: #ffffff;
    box-shadow: 0 5px 0 #b7eafa;
}

.session-trigger-avatar,
.access-avatar,
.wallet-icon {
    border-radius: 8px;
}

.session-trigger-avatar,
.access-avatar {
    background: #eaf7ff;
    color: var(--blue-deep);
}

.session-trigger-label {
    color: var(--blue-deep);
}

.session-menu-panel {
    border: 2px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.session-menu-item {
    background: #f7fee7;
    color: var(--green-deep);
}

.install-app-button {
    min-height: 48px;
    padding: 0 14px;
    border: 2px solid #f5d24f;
    background: var(--amber);
    color: var(--text);
    box-shadow: 0 5px 0 #d4a900;
    cursor: pointer;
}

.public-home-card,
#public-pricing,
#public-about,
#dashboard-view {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.public-home-header,
.public-map-layout,
.public-points-total,
.pricing-grid,
.about-grid {
    gap: 14px;
}

.public-points-total,
.world-map-card,
.pricing-card,
.about-card,
.city-points-card,
.wallet-card,
.profile-block,
.mini-form,
.agenda-day,
.agenda-item,
.agenda-empty,
.wallet-type-row,
.wallet-admin-card,
.access-row,
.invite-card,
.log-entry,
.conversion-result {
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.public-points-total {
    padding: 16px;
    background: #fff8c7;
    border-color: #f5d24f;
}

.public-points-total strong {
    color: var(--text);
    font-size: 2rem;
}

.world-map-card {
    padding: 12px;
    background: #f7fee7;
}

.world-map {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.world-map path {
    stroke-linejoin: round;
}

.map-marker {
    filter: drop-shadow(0 8px 0 rgba(88, 204, 2, 0.18));
}

.map-marker-tail {
    fill: var(--green);
}

.map-marker-core {
    stroke: rgba(33, 49, 36, 0.12);
}

.map-marker-city {
    letter-spacing: 0;
}

.city-points-card strong {
    color: var(--blue-deep);
}

.country-flag {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 20px;
    object-fit: unset;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1;
}

.pricing-card,
.about-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-color: #9be4ff;
}

.pricing-card:nth-child(2n) {
    border-color: #f5d24f;
}

.pricing-card:nth-child(3n) {
    border-color: #dfb2ff;
}

.pricing-card ul {
    margin: 0;
    padding-left: 18px;
}

.pricing-cta,
.primary-action {
    border: 2px solid var(--green);
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 5px 0 var(--green-deep);
}

.secondary-action,
.table-action,
.icon-toggle {
    border: 2px solid #9be4ff;
    background: #eaf7ff;
    color: var(--blue-deep);
    box-shadow: 0 4px 0 #b7eafa;
}

.ghost-action,
.ghost-link {
    border: 2px solid var(--line);
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 4px 0 #d6efc8;
}

.table-action.danger,
.icon-table-action.danger {
    border-color: #ffb0b0;
    background: #fff1f1;
    color: var(--red);
}

.hero-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.meta-chip {
    min-height: 112px;
    padding: 14px;
    box-shadow: none;
}

.meta-chip.household-chip {
    border-color: #f5d24f;
}

.meta-chip.streak-chip {
    border-color: #dfb2ff;
}

.meta-chip strong,
.rates-chip strong,
.admin-metric-card.rates-metric-card strong {
    color: var(--text);
}

.section-switcher {
    gap: 8px;
}

.icon-toggle {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.icon-toggle.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
    box-shadow: 0 4px 0 var(--blue-deep);
}

.profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-card {
    position: relative;
    padding: 20px;
}

.profile-card:nth-child(2n) {
    border-color: #9be4ff;
    box-shadow: var(--shadow-blue);
}

.hero-panel h2,
.profile-header h2 {
    font-size: 2.1rem;
    line-height: 1.05;
}

.profile-score {
    font-size: 4.4rem;
    letter-spacing: 0;
}

.positive {
    color: var(--green);
}

.negative {
    color: var(--red);
}

.score-button {
    width: 58px;
    height: 52px;
    border: 2px solid transparent;
    box-shadow: 0 5px 0 rgba(33, 49, 36, 0.18);
}

.score-button.plus {
    background: var(--green);
    border-color: var(--green);
}

.score-button.minus {
    background: var(--red);
    border-color: var(--red);
}

.wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-card {
    grid-template-columns: 52px 1fr;
    padding: 14px;
    background: #f7fee7;
}

.wallet-card:nth-child(2n) {
    background: #eaf7ff;
    border-color: #9be4ff;
}

.wallet-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
}

.wallet-icon.euro {
    background: var(--green);
}

.wallet-icon.btc {
    background: var(--amber);
    color: var(--text);
}

.profile-block,
.mini-form {
    background: #fbfff6;
}

.goal-progress-bar {
    height: 12px;
    background: #d7f8c6;
}

.goal-progress-fill {
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.goal-status.completed {
    background: #e5ffd8;
    color: var(--green-deep);
}

.goal-status.active {
    background: #eaf7ff;
    color: var(--blue-deep);
}

.goal-due-date {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.goals-section-card .goals-management-block {
    margin-top: 0;
}

.agenda-grid {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
}

.agenda-day {
    background: #f7fee7;
}

.agenda-item,
.agenda-empty {
    background: #ffffff;
}

.logs-filter-bar {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.goals-table {
    min-width: 760px;
}

.table-wrap {
    border-radius: 8px;
}

.status-indicator {
    left: 18px;
    bottom: 18px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 0 #d6efc8;
}

.online {
    background-color: var(--green);
}

.offline {
    background-color: var(--red);
}

.image-lightbox img,
.image-lightbox-close,
.goal-image,
.goal-image-preview img,
.goal-menu-items,
.log-detail-row pre,
.auth-method-chip,
.wallet-type-rate {
    border-radius: 8px;
}

@media (min-width: 701px) and (max-width: 1180px) {
    .page-shell {
        width: min(100% - 24px, 940px);
    }

    .hero-head {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
        justify-items: start;
    }

    .hero-top-controls {
        max-width: 520px;
    }

    .hero-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profiles-grid,
    .public-map-layout {
        grid-template-columns: 1fr;
    }

    .agenda-grid {
        grid-template-columns: repeat(4, minmax(132px, 1fr));
    }
}

@media (max-width: 700px) {
    body {
        background: linear-gradient(180deg, #f7fee7 0%, #f3fde9 58%, #eaf7ff 100%);
    }

    .page-shell {
        width: min(100% - 16px, 520px);
        padding: 10px 0 112px;
    }

    .dashboard-stack {
        gap: 14px;
    }

    .game-hero,
    .profile-card {
        padding: 14px;
    }

    .hero-head,
    .public-home-header,
    .public-map-layout,
    .profiles-grid,
    .hero-meta-grid,
    .wallet-grid,
    .activity-layout,
    .conversion-grid,
    .access-card-grid,
    .wallet-admin-grid,
    .logs-filter-bar,
    .wallet-type-row,
    .wallet-type-header {
        grid-template-columns: 1fr;
    }

    .wallet-profile-heading {
        flex-direction: column;
    }

    .wallet-profile-total {
        text-align: left;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .mascot-badge {
        width: 58px;
        height: 58px;
        font-size: 2rem;
        box-shadow: 0 5px 0 var(--green-deep);
    }

    .brand-block h1 {
        font-size: 2.35rem;
    }

    .brand-block p {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .hero-stat {
        min-height: 66px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .hero-actions,
    .hero-top-controls,
    .top-language-control {
        width: 100%;
        justify-items: stretch;
    }

    .hero-top-controls {
        grid-template-columns: 1fr auto;
    }

    .top-language-control {
        grid-column: 1 / -1;
    }

    .install-app-button {
        min-width: 96px;
    }

    .site-nav {
        position: fixed;
        z-index: 18;
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 2px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 8px 0 #d6efc8, 0 18px 28px rgba(33, 49, 36, 0.14);
    }

    .site-nav:has(#nav-dashboard:not(.hidden)) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nav-chip {
        min-width: 0;
        min-height: 48px;
        padding: 8px 6px;
        text-align: center;
        font-size: 0.84rem;
        box-shadow: none;
    }

    .session-menu-panel {
        right: 0;
        max-width: calc(100vw - 28px);
    }

    .meta-chip {
        min-height: auto;
    }

    .profile-header {
        gap: 12px;
    }

    .profile-score-wrap,
    .score-controls {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .profile-score {
        font-size: 3.4rem;
    }

    .score-button {
        width: 54px;
        height: 50px;
    }

    .wallet-card {
        grid-template-columns: 48px 1fr;
    }

    .wallet-icon {
        width: 48px;
        height: 48px;
    }

    .public-points-total strong {
        font-size: 1.6rem;
    }

    .world-map {
        aspect-ratio: 1.35 / 1;
    }

    .agenda-grid {
        grid-template-columns: repeat(2, minmax(132px, 1fr));
    }

    .access-card-header,
    .admin-inline-actions,
    .block-heading,
    .profile-header,
    .pricing-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-action,
    .secondary-action,
    .ghost-action,
    .pricing-cta {
        min-height: 46px;
    }

    .status-indicator {
        left: 10px;
        bottom: 88px;
        padding: 8px 10px;
        font-size: 0.82rem;
        box-shadow: 0 4px 0 #d6efc8;
    }
}

/* Final admin-shell overrides kept at the end so the TailAdmin layout wins over legacy mobile styles. */
body.app-body {
    background: var(--ta-bg);
    color: var(--ta-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tailadmin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--ta-border);
    background: var(--ta-sidebar);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--ta-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.topbar-clock {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--ta-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ta-text);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.topbar-clock-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--ta-blue);
}

.topbar-clock-icon .icon-svg {
    width: 17px;
    height: 17px;
}

.top-language-control {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-grid;
    place-items: center;
}

.language-flag-button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--ta-border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.language-flag-button:focus-visible {
    outline: 3px solid rgba(70, 95, 255, 0.18);
    outline-offset: 2px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 45;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.language-menu-item {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ta-text);
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.language-menu-item:hover,
.language-menu-item.active {
    background: #f2f4f7;
}

.language-menu-flag {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
    font-size: 1.35rem;
    line-height: 1;
}

.page-shell {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 24px 0 44px;
}

.site-nav {
    position: static;
    display: initial;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.overview-strip,
.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.profile-card,
.meta-chip,
.admin-metric-card,
.admin-page-header {
    border-radius: 8px;
    border: 1px solid var(--ta-border);
    background: var(--ta-card);
    box-shadow: var(--ta-shadow);
}

.status-indicator {
    left: auto;
    right: 22px;
    bottom: 22px;
    border: 1px solid var(--ta-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--ta-shadow);
}

@media (max-width: 1180px) {
    .tailadmin-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: 290px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        box-shadow: 20px 0 40px rgba(16, 24, 40, 0.14);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .overview-strip,
    .admin-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-topbar {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px 16px;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar-search,
    .top-language-control {
        width: 100%;
    }

    .topbar-clock {
        width: 100%;
        justify-content: center;
    }

    .top-language-control,
    .top-language-control .language-select {
        width: 46px;
    }

    .page-shell {
        width: min(100% - 24px, 560px);
        padding: 18px 0 92px;
    }

    .overview-strip,
    .admin-metric-grid,
    .wallet-grid,
    .activity-layout,
    .access-users,
    .schedule-form-grid,
    .schedule-template-card {
        grid-template-columns: 1fr;
    }

    .schedule-template-actions {
        justify-content: flex-start;
    }
}

.activity-layout .agenda-grid:not(.agenda-calendar-grid):not(.agenda-year-grid):not(.agenda-week-grid):not(.agenda-day-grid) {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-gutter: stable;
}

.activity-layout .agenda-calendar-grid {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    overflow-x: visible;
    gap: 0;
}

.activity-layout .agenda-year-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    overflow-x: visible;
    gap: 0;
}

.activity-layout .agenda-day {
    min-width: 220px;
    align-content: start;
}

.activity-layout .agenda-day-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    letter-spacing: 0;
}

.schedule-activity {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon body status"
        "icon points status";
    align-items: center;
    gap: 8px 10px;
    min-height: 0;
}

.schedule-activity .agenda-item-type {
    grid-area: icon;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f8fafc;
}

.schedule-activity-body {
    grid-area: body;
}

.schedule-activity-body strong {
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.schedule-activity-body small {
    line-height: 1.25;
}

.schedule-points {
    grid-area: points;
    justify-self: center;
}

.schedule-status-button {
    grid-area: status;
    justify-self: end;
}

.activity-layout .agenda-week-grid .agenda-day {
    min-width: 0;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
}

.activity-layout .agenda-week-grid .agenda-day-label {
    align-items: center;
    gap: 12px;
}

@media (min-width: 1181px) {
    body.sidebar-collapsed .tailadmin-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    body.sidebar-collapsed .app-sidebar {
        width: 88px;
        min-width: 0;
        max-width: 88px;
        box-sizing: border-box;
        padding: 24px 14px;
        overflow-x: hidden;
    }

    body.sidebar-collapsed .sidebar-brand {
        grid-template-columns: 44px;
        justify-content: center;
        justify-items: center;
        padding: 0;
    }

    body.sidebar-collapsed .sidebar-brand > div:not(.mascot-badge),
    body.sidebar-collapsed .sidebar-label,
    body.sidebar-collapsed .sidebar-card,
    body.sidebar-collapsed .sidebar-chevron,
    body.sidebar-collapsed .sidebar-link > span:not(.nav-icon) {
        display: none;
    }

    body.sidebar-collapsed .sidebar-nav {
        gap: 14px;
    }

    body.sidebar-collapsed .sidebar-group,
    body.sidebar-collapsed .sidebar-submenu {
        display: grid;
        justify-items: center;
        gap: 6px;
    }

    body.sidebar-collapsed .planner-submenu {
        padding-left: 0;
    }

    body.sidebar-collapsed .sidebar-link {
        width: 44px;
        min-height: 44px;
        grid-template-columns: 44px;
        justify-content: center;
        gap: 0;
        margin: 0 auto;
        padding: 8px;
    }

    body.sidebar-collapsed .sidebar-sub-link,
    body.sidebar-collapsed .planner-child-link {
        padding: 8px;
    }

    body.sidebar-collapsed .nav-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 760px) {
    .agenda-view-switch,
    .agenda-summary {
        width: 100%;
    }

    .agenda-calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-period-controls {
        justify-content: space-between;
    }

    .agenda-period-controls h4 {
        min-width: 0;
        text-align: center;
    }

    .agenda-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-summary-stats {
        justify-content: flex-start;
    }

    .agenda-calendar-grid {
        grid-template-columns: repeat(7, minmax(112px, 1fr));
        overflow-x: auto;
    }

    .agenda-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-layout .agenda-calendar-grid {
        grid-template-columns: repeat(7, minmax(112px, 1fr));
        overflow-x: auto;
    }

    .activity-layout .agenda-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-calendar-day,
    .agenda-month-card {
        min-height: 112px;
        padding: 10px;
    }

    .activity-layout .agenda-grid:not(.agenda-calendar-grid):not(.agenda-year-grid):not(.agenda-week-grid):not(.agenda-day-grid) {
        grid-template-columns: repeat(7, minmax(210px, 82vw));
    }

    .activity-layout .agenda-week-board {
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .activity-layout .agenda-week-header,
    .activity-layout .agenda-week-grid {
        grid-template-columns: repeat(7, minmax(248px, 82vw));
        min-width: max-content;
    }

    .activity-layout .agenda-day {
        min-width: 210px;
    }

    .activity-layout .agenda-week-grid .agenda-day {
        min-width: 248px;
    }
}
