/* =========
   DESIGN-TOKENS
   ========= */
:root {
    --bg-page: #f4f5f7;
    --bg-header: rgba(255, 255, 255, 0.92);
    --bg-card: #ffffff;
    --bg-card-alt: #f8f9fb;

    --border-subtle: #e0e3ea;
    --border-strong: #3a3a3a;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --text-link: #0b6bdc;
    --danger: #dc2626;

    --accent: #0b6bdc;
    --accent-soft: #e3f0ff;

    --radius-card: 22px;
    --radius-field: 4px;
    --header-height: 76px;

    /* Nya färger från wizard */
    --accent-strong: rgba(37, 99, 235, 0.18);
    --accent-pill-bg: #eef2ff;
    --accent-pill-text: #4338ca;

    --wizard-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

/* =========
   GLOBAL RESET + BODY
   ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: radial-gradient(circle at top, #ffffff 0, #f4f5f7 52%, #eef0f5 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.sponsor-match-finder {
    padding: 30px 0 48px;
}

.sponsor-match-finder__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.sponsor-match-finder__hero,
.sponsor-match-finder__start-card,
.sponsor-match-finder__summary,
.sponsor-match-finder__filters,
.sponsor-match-finder__results,
.sponsor-match-finder__detail,
.sponsor-match-finder__empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.sponsor-match-finder__hero,
.sponsor-match-finder__summary,
.sponsor-match-finder__filters-head,
.sponsor-match-finder__detail-head,
.sponsor-match-finder__results-head,
.sponsor-match-finder__card-head,
.sponsor-match-finder__card-actions,
.sponsor-match-finder__cta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.sponsor-match-finder__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.sponsor-match-finder__title,
.sponsor-match-finder__summary h2,
.sponsor-match-finder__filters h2,
.sponsor-match-finder__results h2,
.sponsor-match-finder__detail-title,
.sponsor-match-finder__start-card h2,
.sponsor-match-finder__empty h2 {
    margin: 0;
    color: #0f172a;
}

.sponsor-match-finder__lead,
.sponsor-match-finder__summary p,
.sponsor-match-finder__detail-lead,
.sponsor-match-finder__start-card p,
.sponsor-match-finder__empty p {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-match-finder__hero-side {
    min-width: 280px;
    display: grid;
    gap: 12px;
    justify-items: end;
}

.sponsor-match-finder__hero-button {
    min-width: 180px;
}

.sponsor-match-finder__hero-meta,
.sponsor-match-finder__chips,
.sponsor-match-finder__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-match-finder__hero-meta span,
.sponsor-match-finder__chip,
.sponsor-match-finder__card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d9e2ef;
    color: #334155;
    font-size: 13px;
}

.sponsor-match-finder__chip {
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sponsor-match-finder__chip:hover {
    border-color: #0f4c81;
    color: #0f4c81;
    background: #eff6ff;
}

.sponsor-match-finder__start-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: center;
}

.sponsor-match-finder__start-note {
    color: #0f4c81;
}

.sponsor-match-finder__start-points,
.sponsor-match-finder__summary-stats,
.sponsor-match-finder__facts,
.sponsor-match-finder__detail-grid {
    display: grid;
    gap: 12px;
}

.sponsor-match-finder__start-points,
.sponsor-match-finder__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-match-finder__summary-stats {
    min-width: min(100%, 560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sponsor-match-finder__point,
.sponsor-match-finder__summary-stat,
.sponsor-match-finder__facts div,
.sponsor-match-finder__panel,
.sponsor-match-finder__card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.sponsor-match-finder__point,
.sponsor-match-finder__summary-stat,
.sponsor-match-finder__facts div {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.sponsor-match-finder__point strong,
.sponsor-match-finder__summary-stat span,
.sponsor-match-finder__facts span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.sponsor-match-finder__point span,
.sponsor-match-finder__facts strong {
    color: #0f172a;
}

.sponsor-match-finder__summary-stat strong {
    font-size: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.sponsor-match-finder__filters-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 12px;
    margin-top: 18px;
}

.sponsor-match-finder__field {
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__field span {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sponsor-match-finder__field input,
.sponsor-match-finder__field select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0 14px;
    font: inherit;
    color: #0f172a;
}

.sponsor-match-finder__filters-submit {
    align-self: end;
    min-height: 46px;
}

.sponsor-match-finder__results-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-match-finder__list {
    display: grid;
    gap: 12px;
}

.sponsor-match-finder__list--simple {
    gap: 8px;
}

.sponsor-match-finder__card {
    padding: 18px;
    background: #fff;
}

.sponsor-match-finder__simple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sponsor-match-finder__simple-row:hover {
    border-color: #0f4c81;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.08);
    transform: translateY(-1px);
}

.sponsor-match-finder__simple-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__simple-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.sponsor-match-finder__simple-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-match-finder__simple-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d9e2ef;
    color: #475569;
    font-size: 13px;
}

.sponsor-match-finder__simple-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.sponsor-match-finder__simple-button {
    min-height: 42px;
    white-space: nowrap;
}

.sponsor-match-finder__simple-button--info {
    text-decoration: none;
}

.sponsor-match-finder__simple-arrow {
    display: none;
}

.sponsor-match-finder__card-title {
    margin: 0;
    color: #0f172a;
}

.sponsor-match-finder__card-meta {
    margin-top: 10px;
}

.sponsor-match-finder__badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sponsor-match-finder__badge--high {
    background: #dcfce7;
    color: #166534;
}

.sponsor-match-finder__badge--relevant {
    background: #eff6ff;
    color: #0f4c81;
}

.sponsor-match-finder__badge--possible {
    background: #fef3c7;
    color: #92400e;
}

.sponsor-match-finder__card-reason,
.sponsor-match-finder__card-idea,
.sponsor-match-finder__panel p {
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-match-finder__card-actions,
.sponsor-match-finder__cta-row {
    margin-top: 16px;
    align-items: center;
}

.sponsor-match-finder__detail-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.sponsor-match-finder__detail-grid {
    margin-top: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-match-finder__panel {
    padding: 18px;
}

.sponsor-match-finder__reason-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #475569;
    display: grid;
    gap: 8px;
}

.sponsor-match-finder__info-list {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.sponsor-match-finder__info-row {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.sponsor-match-finder__info-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.sponsor-match-finder__info-row dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.sponsor-match-finder__info-row dd {
    margin: 0;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.sponsor-match-finder__panel-price {
    font-weight: 700;
    color: #0f172a;
}

.sponsor-match-finder__error {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 1100px) {
    .sponsor-match-finder__filters-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sponsor-match-finder__filters-submit {
        width: 100%;
    }

    .sponsor-match-finder__start-card,
    .sponsor-match-finder__summary,
    .sponsor-match-finder__detail-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-match-finder__summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sponsor-match-finder__hero,
    .sponsor-match-finder__filters-head,
    .sponsor-match-finder__results-head,
    .sponsor-match-finder__card-head,
    .sponsor-match-finder__card-actions,
    .sponsor-match-finder__cta-row,
    .sponsor-match-finder__detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sponsor-match-finder__hero-side,
    .sponsor-match-finder__detail-actions {
        justify-items: stretch;
        min-width: 0;
    }

    .sponsor-match-finder__start-points,
    .sponsor-match-finder__summary-stats,
    .sponsor-match-finder__facts,
    .sponsor-match-finder__detail-grid,
    .sponsor-match-finder__filters-form {
        grid-template-columns: 1fr;
    }

    .sponsor-match-finder__simple-row,
    .sponsor-match-finder__simple-actions {
        align-items: stretch;
    }

    .sponsor-match-finder__simple-row {
        flex-direction: column;
    }

    .sponsor-match-finder__simple-actions {
        justify-content: stretch;
    }

    .sponsor-match-finder__simple-button {
        width: 100%;
        text-align: center;
    }
}

/* =========
   APP-SKAL
   ========= */
a {
    text-decoration: none;
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========
   HEADER
   ========= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    min-height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(210, 213, 220, 0.85);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 51px;
    align-items: flex-start;
}

.brand-title {
    font-size: 16px;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.15;
}

.nav {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.nav-link {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.04);
    color: var(--text-main);
}

.nav-link:hover,
.nav-link.active {
    background: #111827;
    color: #ffffff;
}

/* =========
   SIDOLAYOUT (CLIENT)
   ========= */
.app-layout {
    width: 100%;
}

.app-layout-with-sidebar {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
}

.app-main.with-sidebar {
    margin: 0;
    min-width: 0;
    width: 100%;
    grid-column: 2;
}

.client-sidebar {
    position: sticky;
    top: var(--header-height);
    align-self: flex-start;
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
    overflow: visible;
    grid-column: 1;
}

.client-sidebar__scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px 16px;
}

.client-sidebar__eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 6px 12px 2px;
}

.client-sidebar__group {
    border-radius: 14px;
    padding: 2px;
}

.client-sidebar__link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 10px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.client-sidebar__link:hover {
    background: rgba(11, 107, 220, 0.08);
    transform: translateX(2px);
}

.client-sidebar__link.is-open {
    background: rgba(11, 107, 220, 0.16);
    color: #0b6bdc;
}

.client-sidebar__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: #0b6bdc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-sidebar__icon svg {
    width: 20px;
    height: 20px;
}

.client-sidebar__label {
    white-space: nowrap;
}

.client-sidebar__chevron {
    margin-left: auto;
    display: inline-flex;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.client-sidebar__link.is-open .client-sidebar__chevron {
    transform: rotate(90deg);
}

.client-sidebar__link--single {
    justify-content: flex-start;
}

.client-sidebar__submenu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 10px 12px 58px;
}

.client-sidebar__submenu[hidden],
.client-sidebar__submenu:not(.is-open) {
    display: none;
}

.client-sidebar__sublink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    color: var(--text-muted);
    transition: background 0.16s ease, color 0.16s ease;
}

.client-sidebar__sublink:hover {
    background: rgba(11, 107, 220, 0.08);
    color: var(--text-main);
}

.client-sidebar__sublink.is-active {
    background: rgba(11, 107, 220, 0.14);
    color: #0b6bdc;
    font-weight: 700;
}

.grants {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breadcrumb {
    margin: 6px 0 10px;
}

.breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb__link {
    color: #0b6bdc;
    font-weight: 600;
}

.breadcrumb__sep {
    color: var(--text-soft);
}

.breadcrumb__current {
    color: var(--text-main);
    font-weight: 600;
}

.grants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 2px 0;
}

.grants-header__text {
    max-width: 640px;
}

.grants-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.grants-title {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.grants-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.grants-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.grants-new-btn form {
    margin: 0;
}

.archive-top-tab-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 12px -13px;
    position: relative;
    z-index: 4;
}

.archive-top-tab {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    position: relative;
    top: 1px;
    z-index: 5;
}

.archive-top-tab.is-unopened {
    background: #a14646;
    border-color: #e4d1a0;
    color: #383838;
}

.archive-top-tab:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.archive-top-tab.is-unopened:hover {
    background: #efe4c5;
    border-color: #d6bf82;
    color: #4b3c18;
}

.archive-top-tab.is-highlight {
    animation: newPdfBlink 1.1s ease-in-out 3;
}

.archive-tab-card {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    transition: grid-template-columns 0.2s ease;
    overflow: hidden;
}

.team-layout--detail {
    grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
}

.team-layout--detail.is-editing {
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr);
}

.team-layout--teams {
    grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
}

.team-layout--teams.is-creating {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.team-edit-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-28px);
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    padding: 0;
    border-width: 0;
    margin: 0;
    transition: opacity 0.24s ease, transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease, border-width 0.3s ease;
}

.team-layout--detail:not(.is-editing) .team-edit-card {
    opacity: 0;
    transform: translateX(-28px);
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    padding: 0;
    border-width: 0;
    margin: 0;
}

.team-layout--detail.is-editing .team-edit-card {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    max-height: 2600px;
    padding: 22px 22px 20px;
    border-width: 1px;
    margin: 0;
}

.team-create-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.team-layout--teams:not(.is-creating) .team-create-card {
    max-height: 0;
    padding: 0;
    border-width: 0;
    margin: 0;
}

.team-layout--teams.is-creating .team-create-card {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    max-height: none;
    padding: 22px 22px 20px;
    border-width: 1px;
}

.team-list-card {
    position: relative;
}

.team-layout--teams:not(.is-creating) .team-list-card::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 26px;
    width: 12px;
    height: 65%;
    border-radius: 12px 0 0 12px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-right: none;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.team-layout--detail:not(.is-editing) .team-overview-card::before {
    content: none;
}

.team-overview-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    opacity: 1;
    transform: translateX(0);
    max-height: 2600px;
    max-width: 1600px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.24s ease, max-height 0.3s ease, max-width 0.3s ease, padding 0.3s ease, border-width 0.3s ease;
}

.team-layout--detail.is-editing .team-overview-card {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    max-height: 2600px;
    max-width: 1600px;
    padding: 22px 22px 20px;
    border-width: 1px;
    margin: 0;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.team-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    margin: 0 0 12px;
}

.team-view-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.team-view-switch__btn svg,
.team-edit-toggle-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.9;
}

.team-view-switch__btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.team-view-switch__btn.is-active {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
}

.team-view-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 9px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.team-view-switch__link:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-secondary.is-muted {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #d1d5db;
    cursor: default;
}

.team-card__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-card {
    padding: 22px 22px 20px;
}

.team-card__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.team-card__header h2 {
    margin: 0;
    font-size: 18px;
}

.team-card__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.team-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-days,
.team-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.team-days__title {
    font-size: 13px;
    font-weight: 600;
}

.team-days__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 6px 10px;
}

.team-check--weekday.is-active {
    background: #e7f6ec;
    border-color: #d6efe0;
    color: #166534;
}

.team-check--weekend.is-active {
    background: #fdecea;
    border-color: #f8d8d3;
    color: #b91c1c;
}

.team-check input {
    margin: 0;
}

.team-check--inline {
    background: transparent;
    border: none;
    padding: 0;
}

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

.team-grid .form-field label {
    min-height: 36px;
    display: flex;
    align-items: flex-end;
}

.team-form__hint {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
}

.team-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.team-sync-card {
    margin: 0 auto 14px;
    border: 1px solid #dbe7f6;
    background: #f8fbff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    max-width: 980px;
}

.team-sync-card.is-highlight {
    animation: teamSyncPulse 1.2s ease-in-out 2;
}

.team-sync-card__header h2 {
    margin: 0;
    font-size: 18px;
}

.team-sync-card__header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #475569;
}

.team-sync-card__stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.team-sync-card__stat {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.team-sync-card__stat span {
    font-size: 12px;
    color: #64748b;
}

.team-sync-card__stat strong {
    font-size: 18px;
    color: #0f172a;
    line-height: 1;
}

.team-sync-card__stat--warn strong {
    color: #b45309;
}

.team-sync-card__stat--ok strong {
    color: #166534;
}

.team-sync-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.team-sync-list {
    display: grid;
    gap: 8px;
}

.team-sync-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 9px 10px;
}

.team-sync-item input {
    margin-top: 2px;
}

.team-sync-item__main {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.team-sync-item__reason {
    grid-column: 2 / -1;
    font-size: 12px;
    color: #64748b;
}

.team-sync-empty {
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.team-sync-guidance {
    margin-top: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
}

.team-sync-guidance.is-warning {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #78350f;
}

.team-sync-persist {
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
}

.team-sync-persist.is-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.team-sync-persist.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.team-sync-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-sync-modal .swap-modal__card {
    width: min(980px, calc(100vw - 36px));
    max-width: 980px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.team-sync-modal .team-sync-card {
    margin: 0;
    max-height: min(82vh, 820px);
    overflow: auto;
}

.team-sync-action-btn.is-completed {
    cursor: default;
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.team-sync-action-btn.is-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.team-sync-action-btn.is-danger:disabled {
    opacity: 1;
}

@keyframes teamSyncPulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(14, 116, 144, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0); }
}

.team-form__actions {
    display: flex;
    margin-top: 20px;
    text-align: left;
}

.team-coaches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-coaches__header {
    display: flex;
    align-items: center;
    margin-top: 30px;;
    justify-content: space-between;
    gap: 8px;
}

.team-coaches__header h3 {
    margin: 0;
    font-size: 15px;
}

.coach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coach-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: center;
}

.coach-row input {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.coach-remove {
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
}

.coach-remove:hover {
    background: #e5e7eb;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #fff;
}

.team-row__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.team-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.team-empty {
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 2px;
}

.team-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-summary .team-summary__block {
    display: inline-flex;
    flex-direction: column;
}

.team-summary .team-summary__block--full {
    width: 100%;
}

.team-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.team-summary__block {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
}

.team-summary__label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.team-summary__value {
    font-size: 14px;
    font-weight: 600;
}

.team-summary__list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: grid;
    gap: 4px;
}

.team-summary__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.team-sync-inline-alert {
    margin-bottom: 10px;
    border: 1px solid #fbbf24;
    background: #fffbeb;
    color: #78350f;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.4;
}

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

.team-summary__schedule.is-time-mode .team-summary__slot-time {
    font-weight: 700;
}


.team-summary__schedule.is-day-mode .team-summary__day-title {
    font-weight: 700;
}

.team-summary__schedule.is-selecting .team-summary__day {
    cursor: pointer;
}

.team-summary__schedule.is-selecting .team-summary__day:hover {
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.team-summary__schedule.is-selecting .team-summary__day:hover .team-summary__day-title {
    color: #b45309;
}

.team-summary__day {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.team-summary__day.is-selected-day {
    box-shadow: inset 0 0 0 1px #86efac;
}

.team-summary__day.is-moved {
    animation: teamDayPulse 1.1s ease;
}

.team-summary__schedule.is-selecting .team-summary__day.is-selected-day .team-summary__day-title {
    color: #166534;
}

.team-summary__day--weekday-active {
    background: #f1fbf5;
    border-color: grey;
}

.team-summary__day--weekend-active {
    background: #fdf5f4;
    border-color: grey;
}

.team-summary__day-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.team-summary__slots {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 12px;
}

.team-summary__slot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
    padding: 10px 6px;
    cursor: default;
    align-items: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.team-summary__schedule.is-selecting .team-summary__slot.is-selected {
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #f59e0b;
    font-weight: 600;
}

.team-summary__slot-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.team-summary__action-menu {
    position: relative;
    display: inline-flex;
}

.team-summary__action-menu-toggle {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #111827;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.team-summary__action-menu-toggle:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.team-summary__action-menu.is-open .team-summary__action-menu-toggle {
    background: #e8f1ff;
    border-color: #93c5fd;
}

.team-summary__action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 136px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    padding: 4px;
    z-index: 40;
}

.team-summary__action-menu-panel[hidden] {
    display: none;
}

.team-summary__action-menu-item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    color: #0f172a;
    cursor: pointer;
}

.team-summary__action-menu-item:hover {
    background: #f1f5f9;
}

.team-summary__action-menu-item--danger {
    color: #b91c1c;
}

.team-layout--detail.is-editing .team-summary__slot-actions {
    display: none;
}

.team-summary__action {
    border: none;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-summary__action--day {
    background: #fff7ed;
    color: #b45309;
}

.team-summary__action--delete {
    background: #fee2e2;
    color: #b91c1c;
}

.team-summary__action svg {
    stroke: currentColor;
    fill: none;
}

.team-summary__action--delete svg {
    fill: currentColor;
}

.team-summary__action:hover {
    filter: brightness(0.96);
}

@keyframes teamDayPulse {
    0% { box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.15); }
    50% { box-shadow: inset 0 0 0 2px rgba(22, 101, 52, 0.35); }
    100% { box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.15); }
}

@keyframes trainingRowPulse {
    0% { background: transparent; }
    40% { background: rgba(148, 163, 184, 0.22); }
    100% { background: transparent; }
}

.training-row.is-updated {
    animation: trainingRowPulse 0.9s ease-in-out 3;
}

.team-coach-name {
    font-weight: 600;
    font-size: 13px;
}

.team-coach-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.team-summary__empty {
    font-size: 13px;
    color: var(--text-muted);
}

.team-saved {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
}

.team-alert--success {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.training-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.training-fields {
    margin-bottom: 14px;
}

.training-fields__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.training-fields__row input {
    flex: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.training-fields__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.training-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.training-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-settings__block {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.training-settings__block--weekday {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.training-settings__block--weekend {
    border-color: #fecaca;
    background: #fff7f7;
}

.training-settings__title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.training-settings__block--weekday .training-settings__title {
    color: #0f172a;
}

.training-settings__block--weekend .training-settings__title {
    color: #b91c1c;
}

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

.training-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.training-list-card {
    padding: 18px 18px 12px;
}

.training-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.training-card-header--stack {
    align-items: stretch;
    gap: 14px;
}

.training-list-card {
    position: relative;
}

.training-header-actions--top {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.training-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-header-actions__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-plan-card {
    overflow: hidden;
}

.field-plan-toolbar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.field-plan-toolbar--center {
    justify-content: center;
}

.field-plan-toolbar__label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.field-plan-toolbar__select {
    min-width: 180px;
    font-weight: 800;
}

.field-plan-board {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
    align-items: start;
}

.field-plan-axis {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    overflow: hidden;
}

.field-plan-axis__head-spacer {
    height: 42px;
    border-bottom: 1px solid var(--border-subtle);
    background: #f8fafc;
}

.field-plan-axis__tail-spacer {
    height: 42px;
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
}

.field-plan-axis__track {
    position: relative;
    height: var(--field-plan-height, 560px);
}

.field-plan-axis__line {
    position: absolute;
    left: 52px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #cbd5e1;
}

.field-plan-axis__tick {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.field-plan-axis__tick::after {
    content: "";
    width: 7px;
    height: 1px;
    background: #94a3b8;
    margin-left: auto;
    margin-right: 35px;
}

.field-plan-axis__tick span {
    font-size: 11px;
    color: #64748b;
    padding-left: 8px;
    width: 50px;
}

.field-plan-columns {
    overflow-x: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 10px;
    min-width: 100%;
    padding-bottom: 6px;
}

.field-plan-column {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #fff;
    min-width: 190px;
    overflow: hidden;
}

.field-plan-column__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-subtle);
    background: #f8fafc;
}

.field-plan-column__head strong {
    font-size: 13px;
    color: #111827;
}

.field-plan-column__head span {
    font-size: 11px;
    color: #64748b;
}

.field-plan-column__track {
    position: relative;
    height: var(--field-plan-height, 560px);
    background: #f8fafc;
}

.field-plan-segment {
    position: absolute;
    left: 8px;
    right: 8px;
    border-radius: 2px;
    border: 1px solid #d1d5db;
    padding: 5px 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-plan-segment--booked {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.field-plan-segment--free {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-plan-segment--free:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.field-plan-segment.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.field-plan-segment.is-disabled:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: none;
}

.field-plan-segment__time {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
}

.field-plan-segment__team,
.field-plan-segment__free {
    font-size: 11px;
    line-height: 1.1;
}

.field-plan-segment__team {
    font-size: 13px;
    font-weight: 700;
    color: #0b1220;
}

.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.mode-toggle__label {
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.mode-toggle__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mode-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.mode-toggle__track {
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #e2e8f0;
    border: 1px solid #cbd5f5;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mode-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.mode-toggle__input:checked + .mode-toggle__track {
    background: #dbeafe;
    border-color: #93c5fd;
}

.mode-toggle__input:checked + .mode-toggle__track .mode-toggle__thumb {
    transform: translateX(18px);
}

.mode-toggle:not(.is-time) .mode-toggle__label--left {
    color: #0f172a;
    font-weight: 700;
}

.mode-toggle:not(.is-time) .mode-toggle__label--right {
    color: var(--text-muted);
}

.mode-toggle.is-time .mode-toggle__label--right {
    color: #0f172a;
    font-weight: 700;
}

.mode-toggle.is-time .mode-toggle__label--left {
    color: var(--text-muted);
}

.mode-toggle.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mode-toggle--availability:not(.is-right) .mode-toggle__label--left {
    color: #0f172a;
    font-weight: 700;
}

.mode-toggle--availability:not(.is-right) .mode-toggle__label--right {
    color: var(--text-muted);
}

.mode-toggle--availability.is-right .mode-toggle__label--right {
    color: #0f172a;
    font-weight: 700;
}

.mode-toggle--availability.is-right .mode-toggle__label--left {
    color: var(--text-muted);
}

.mode-toggle:not(.is-time) .mode-toggle__track {
    background: #fff4e6;
    border-color: #f5d0a6;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    min-height: 34px;
    position: relative;
}

.view-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.view-toggle__track {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e2e8f0;
    border: 1px solid #cbd5f5;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.view-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.view-toggle__input:checked + .view-toggle__track {
    background: #dbeafe;
    border-color: #93c5fd;
}

.view-toggle__input:checked + .view-toggle__track .view-toggle__thumb {
    transform: translateX(16px);
}

.app-toast {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1px;
    transform: translateX(-50%);
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 10px 22px;
    border-radius: 12px 12px 0 0;
    background: #fef2f2;
    color: black;
    font-weight: bold;;
    border: 1px solid #b0b0b0;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    z-index: 9999;
    border-bottom: none;
}

.app-toast.is-visible {
    display: block;
}

.app-toast--success {
    background: #ecfdf3;
}

.training-week {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.training-week.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.training-week.is-compact .training-day {
    overflow: visible;
}

.training-week.is-time-mode .training-row[data-session-id] .training-cell--time {
    font-weight: 700;
}

.training-week.is-day-mode .training-day__title {
    font-weight: 700;
}

.training-day {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.training-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f1f5f9;
    font-weight: 600;
    font-size: 13px;
}

.training-day__head--day-1 { background: #e8f1ff; }
.training-day__head--day-2 { background: #e7f6ec; }
.training-day__head--day-3 { background: #fff4e6; }
.training-day__head--day-4 { background: #f3ecff; }
.training-day__head--day-5 { background: #e8f7f6; }
.training-day__head--day-6 { background: #fdecea; }
.training-day__head--day-7 { background: #fce7f3; }

.training-week.is-selecting .training-day__head {
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.training-week.is-selecting .training-day__head:hover {
    background: #ffe9cf;
    color: #b45309;
}

.training-week.is-selecting .training-day__hint {
    display: inline-flex;
}

.training-week.is-compact .training-day__head {
    padding: 8px 10px;
}

.training-day__meta {
    font-weight: 500;
    color: var(--text-muted);
    display: none;
}

.training-day__hint {
    display: none;
    font-size: 11px;
    color: #b45309;
    background: #fff4e6;
    border-radius: 999px;
    padding: 4px 8px;
}

.training-day .training-row:last-child {
    border-bottom: none;
}

.training-row {
    display: grid;
    grid-template-columns: 32px 120px minmax(0, 1.2fr) minmax(0, 1fr) 90px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.training-week.is-free-view .training-row {
    grid-template-columns: 140px minmax(0, 1fr) auto;
}

.training-row[data-session-id] {
    cursor: default;
}

.training-row[data-session-id]:not(.is-selected):not(.is-target):hover {
    background: #f8fafc;
}

.training-week.is-compact .training-row--head {
    display: none;
}

.training-week.is-compact .training-row[data-session-id] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "time actions"
        "team actions"
        "field actions";
    gap: 3px 10px;
    padding: 8px 10px;
}

.training-week.is-compact .training-row[data-session-id] .training-cell--time {
    grid-area: time;
    font-weight: 600;
}

.training-week.is-compact .training-row[data-session-id] .training-cell--team {
    grid-area: team;
    font-weight: 500;
    padding-left: 0;
}

.training-week.is-compact .training-row[data-session-id] .training-cell--field {
    grid-area: field;
    color: var(--text-muted);
    font-size: 12px;
}

.training-week.is-compact .training-row[data-session-id] .training-cell:nth-child(1),
.training-week.is-compact .training-row[data-session-id] .training-cell:nth-child(5) {
    display: none;
}

.training-week.is-compact .training-row[data-session-id] .training-cell--actions {
    grid-area: actions;
    align-self: stretch;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 0;
}

.training-week.is-compact .training-row[data-session-id]:hover {
    background: #f8fafc;
}

.training-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.training-action-menu {
    display: inline-flex;
    position: relative;
}

.training-action-menu__toggle {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.training-action-menu__toggle:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.training-action-menu.is-open .training-action-menu__toggle {
    background: #e8f1ff;
    border-color: #93c5fd;
}

.training-action-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 130px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    padding: 4px;
    z-index: 30;
}

.training-week.is-compact .training-action-menu__panel {
    top: auto;
    bottom: calc(100% + 6px);
}

.training-action-menu__panel[hidden] {
    display: none;
}

.training-action-menu__item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    color: #0f172a;
    cursor: pointer;
}

.training-action-menu__item:hover {
    background: #f1f5f9;
}

.training-action-menu__item--danger {
    color: #b91c1c;
}

.training-week.is-compact .training-actions-inline {
    display: none;
}

.training-week.is-compact .training-action-menu {
    display: inline-flex;
}

.training-row--head {
    background: var(--bg-card-alt);
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.training-cell--actions-head {
    white-space: nowrap;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
}

.training-week.is-free-view .training-row--head .training-cell--actions-head {
    display: none;
}

.training-cell--time {
    white-space: nowrap;
    padding-right: 10px;
}


.training-row--empty {
    color: var(--text-muted);
    cursor: default;
}

.training-row--empty .training-cell {
    grid-column: 1 / -1;
}

.training-week.is-free-view .training-row[data-session-id],
.training-week.is-free-view .training-row--empty {
    display: none;
}

.training-row--free {
    cursor: pointer;
}

.training-row--free:hover {
    background: #f8fafc;
}

.training-row--free.is-selected {
    background: #fef3c7;
    border-color: #f9d3a0;
}

.training-row--free-empty .training-cell {
    grid-column: 1 / -1;
    color: var(--text-muted);
}

.team-select {
    width: 100%;
    border: 1px solid var(#475569);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    font-family: inherit;
}

.team-select option{
    font-weight: bold;
    margin: 2px 0;
}

.team-select:hover{
    cursor: pointer;
    background-color: #f1f1f1;
}

.training-row.is-selected {
    background: #e7f6ec;
    border-color: #d6efe0;
}

.training-row.is-target {
    background: #fef3c7;
    border-color: #f9d3a0;
}

.training-week.is-selecting .training-row[data-session-id]:not(.is-selected):hover {
    background: #fef9c3;
}


.swap-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.swap-modal.is-open {
    display: flex;
}

.swap-modal.is-error [data-swap-confirm] {
    display: none;
}

.swap-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.swap-modal__card {
    position: relative;
    z-index: 2;
    width: min(440px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 18px 18px 16px;
    animation: modalIn 0.2s ease;
}

.swap-modal__title {
    margin: 0 0 6px;
    font-size: 18px;
}

.swap-modal__text {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.swap-modal__text.is-error {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 10px;
}

.swap-modal__text.is-success {
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px;
}

.swap-modal__summary {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.time-options {
    display: grid;
    gap: 8px;
    margin: 4px 0 14px;
    max-height: 240px;
    overflow: auto;
}

.time-option {
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.time-option:hover {
    background: #eef6ff;
    border-color: #c7ddff;
}

.time-option.is-active {
    background: #e8f1ff;
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.settings-impact {
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    padding: 10px;
    max-height: 260px;
    overflow: auto;
    margin-bottom: 16px;
}

.settings-impact__section {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 6px 0 4px;
}

.settings-impact__list {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.settings-impact__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.settings-impact__item--delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.settings-impact__item--move {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #166534;
}

.settings-impact__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    flex-shrink: 0;
}

.swap-modal__item {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 12px;
}

.swap-modal__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.swap-modal__value {
    font-size: 13px;
    font-weight: 600;
}

.swap-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.training-cell {
    font-size: 13px;
    min-width: 0;
}

.training-cell--select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.training-select-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #cbd5f5;
    background: #f8fafc;
    display: inline-block;
}

.training-week.is-day-mode .training-select-dot {
    border-color: #f59e0b;
    background: #f8fafc;
}

.training-week.is-day-mode .training-row.is-selected .training-select-dot {
    border-color: #f59e0b;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.training-week.is-selecting .training-row.is-selected .training-select-dot {
    border-color: #f59e0b;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.training-row.is-selected .training-select-dot {
    border-color: #16a34a;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.training-cell--team {
    font-weight: 600;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.training-week.is-free-view .training-cell--team-head {
    display: none;
}

.training-week.is-free-view .training-cell--length-head {
    display: none;
}

.training-week.is-free-view .training-row[data-session-id] .training-cell--actions {
    display: none;
}

.training-week.is-free-view .training-day__meta {
    display: none;
}

.training-time-meta {
    display: none;
}

.training-week.is-compact.is-free-view .training-cell--time {
    grid-column: auto;
    display: block;
}

.training-week.is-compact.is-free-view .training-row--free {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "time actions"
        "field field";
    gap: 4px 10px;
    align-items: start;
}

.training-week.is-compact.is-free-view .training-row--free .training-cell--time {
    grid-area: time;
    font-weight: 600;
}

.training-week.is-compact.is-free-view .training-row--free .training-cell--field {
    grid-area: field;
    padding-left: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.training-week.is-compact.is-free-view .training-row--free .training-cell--actions {
    grid-area: actions;
    align-self: start;
}

.training-week.is-compact.is-free-view .training-time-meta {
    display: inline-flex;
    margin-left: auto;
    font-weight: 600;
    color: var(--text-muted);
}

.training-book-btn {
    white-space: nowrap;
    padding: 4px 9px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    min-height: 24px;
    border-radius: 8px;
}

.training-cell--actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-left: 0;
}

.training-delete {
    border: none;
    background: #f3f4f6;
    color: #b91c1c;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.training-delete:hover {
    background: #fee2e2;
}

.training-delete svg {
    fill: currentColor;
}

.training-action {
    border: none;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.training-action--day {
    background: #fff7ed;
    color: #b45309;
}

.training-action:hover {
    filter: brightness(0.96);
}

.training-action svg {
    stroke: currentColor;
}

.btn-soft-blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #efc8c3;
    background: #fff1ef;
    color: #1f2937;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    min-height: 34px;
    font-family: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-soft-blue .btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.btn-soft-blue:hover {
    background: #ffe6e2;
    box-shadow: 0 10px 18px rgba(127, 29, 29, 0.10);
    transform: translateY(-1px);
}

.btn-soft-blue.is-highlight {
    animation: newPdfBlink 1.1s ease-in-out 3;
}

.btn-soft-blue.is-disabled,
.btn-soft-blue:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-soft-shape {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    min-height: 34px;
    border-radius: 10px;
}

.btn-secondary.is-disabled,
.btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-soft-orange {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #f5d0a6;
    background: #fff4e6;
    color: #b45309;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-soft-orange:hover {
    background: #ffe9cf;
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.btn-soft-orange.is-active {
    background: #ffe0bf;
    border-color: #f2bf86;
}

.btn-soft-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #b7f0cf;
    background: #e7f9ee;
    color: #166534;
    font-size: 13px;
    line-height: 1;
    min-height: 34px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-soft-green:hover {
    background: #dcf6e6;
    box-shadow: 0 10px 18px rgba(22, 101, 52, 0.18);
    transform: translateY(-1px);
}

.btn-soft-green.is-highlight {
    animation: scheduleBlink 1.1s ease-in-out 3;
}

@keyframes newPdfBlink {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 116, 237, 0.0);
        transform: translateY(0);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(14, 116, 237, 0.18);
        transform: translateY(-1px);
    }
    70% {
        box-shadow: 0 0 0 0 rgba(14, 116, 237, 0.0);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 116, 237, 0.0);
        transform: translateY(0);
    }
}

@keyframes scheduleBlink {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
        transform: translateY(0);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.2);
        transform: translateY(-1px);
    }
    70% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
        transform: translateY(0);
    }
}

.grants-card {
    padding: 0;
    overflow: hidden;
}

.grants-table {
    display: flex;
    flex-direction: column;
}

.grants-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 110px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

.grants-row--head {
    background: var(--bg-card-alt);
    font-weight: 600;
    color: var(--text-muted);
}

.grants-row:last-child {
    border-bottom: none;
}

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

.grants-cell {
    font-size: 14px;
}

.grants-cell--actions {
    text-align: right;
}

.grants-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--accent-soft);
    color: #0b6bdc;
    font-weight: 600;
}

.grants-status--warn {
    background: #fff7e6;
    color: #d97706;
}

.grants-status--success {
    background: #ecfdf3;
    color: #15803d;
}

.grants-status--danger {
    background: #fef2f2;
    color: #b91c1c;
}

.grants-status--info {
    background: var(--accent-soft);
    color: #0b6bdc;
}

.grants-remove {
    border: 1px solid var(--border-subtle);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.grants-remove:hover {
    background: rgba(11, 107, 220, 0.06);
    border-color: rgba(11, 107, 220, 0.25);
}

.grant-desc {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.grant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
}

.grant-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: var(--accent-soft);
    color: #0b6bdc;
    border-radius: 999px;
}

.grant-chip--muted {
    background: #eef1f6;
    color: var(--text-muted);
}

.grant-chip--amount {
    background: #ecfdf3;
    color: #15803d;
}

.grant-chip--match {
    background: #edf2ee;
    color: #16462a;
    font-weight: 700;
}

.grant-chip--reason {
    background: #f6ebe9;
    color: #16462a;
}

.grant-match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.grant-link {
    color: #0b6bdc;
    font-weight: 600;
    font-size: 13px;
}

.grant-link--muted {
    color: var(--text-soft);
    font-size: 13px;
}

.grant-plan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.grant-plan__column h3 {
    margin: 16px 0 8px;
    font-size: 18px;
}

.grant-text-block {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.grant-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
}

.grant-list li {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    font-size: 14px;
}

.grant-budget {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

.grant-budget-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
}

.grant-budget-row--total {
    background: var(--bg-card-alt);
    font-weight: 700;
}

.grant-budget-row:last-child {
    border-bottom: none;
}

.grant-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.grant-match-summary {
    padding: 16px 18px;
    margin-top: 14px;
    margin-bottom: 14px;
    border: 1px solid #d9f2e3;
    background: linear-gradient(180deg, #f6fcf8 0%, #ffffff 100%);
}

.grant-match-summary__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.grant-match-summary__title {
    margin: 0 0 6px;
    font-size: 18px;
}

.grant-match-summary__text {
    margin: 0;
    color: var(--text-muted);
    max-width: 760px;
}

.grant-match-summary__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.grant-match-summary__profile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.grant-match-summary--compact {
    padding: 14px 18px;
}

.grant-match-summary--compact .grant-match-summary__text {
    max-width: 560px;
}

.grant-results {
    padding: 16px 18px;
}

.grant-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grant-result-card {
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.grant-result-card[open] {
    border-color: rgba(11, 107, 220, 0.2);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.grant-result-card__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

.grant-result-card__summary::-webkit-details-marker {
    display: none;
}

.grant-result-card__main {
    min-width: 0;
    flex: 1 1 auto;
}

.grant-result-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.grant-result-card__title {
    display: block;
    font-size: 16px;
    color: var(--text-main);
}

.grant-result-card__excerpt {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grant-result-card__meta,
.grant-result-card__detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.grant-result-card__toggle {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #0b6bdc;
}

.grant-result-card__toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 12px;
}

.grant-result-card[open] .grant-result-card__toggle::after {
    content: '▴';
}

.grant-result-card__details {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 18px 18px;
    background: #fcfdff;
}

.grant-result-card__next-step {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f9fc;
    border: 1px solid #dbe4ef;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

.grant-search {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px 14px 10px;
    box-shadow: var(--wizard-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grant-search__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.grant-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.grant-field input,
.grant-field select {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
}

.grant-search__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #c4c4c4;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(11, 107, 220, 0.06);
    border-color: rgba(11, 107, 220, 0.2);
}

.btn-secondary.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #f8fafc;
}

.btn-secondary.is-active:hover {
    background: #1e293b;
    border-color: #1e293b;
}

.sponsor-pack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sponsor-pack__column h3 {
    margin: 0 0 10px;
}

.sponsor-pack__logo img,
.sponsor-pack__hero img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

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

.sponsor-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsor-editor__section {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
}

.sponsor-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sponsor-editor__header--stack {
    align-items: flex-start;
}

.sponsor-step-text {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 880px;
}

.sponsor-ai-build-btn {
    white-space: nowrap;
}

.sponsor-brief-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbe7f5;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    color: #16324f;
    font-size: 14px;
}

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

.sponsor-brief-grid--compact {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-brief-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #d9e2ef;
    background: #f8fafc;
    min-height: 100%;
}

.sponsor-brief-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.sponsor-brief-card__hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.sponsor-brief-card textarea,
.sponsor-brief-card select {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
    padding: 11px 12px;
    font: inherit;
    color: #0f172a;
}

.sponsor-brief-card textarea {
    resize: vertical;
    min-height: 132px;
}

.sponsor-brief-card textarea:focus,
.sponsor-brief-card select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.sponsor-theme-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.sponsor-theme-card {
    border: 1px solid #cbd5f5;
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    background: #f8fafc;
}

.sponsor-theme-card input {
    display: none;
}

.sponsor-theme-card__name {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.sponsor-theme-card.is-active {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.sponsor-theme-card:hover {
    border-color: #93c5fd;
    background: #f1f5ff;
}

.sponsor-builder-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.sponsor-builder-panel__intro {
    margin-bottom: 18px;
}

.sponsor-builder-panel__eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-builder-panel__title {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.sponsor-builder-panel__text {
    margin: 10px 0 0;
    color: #475569;
    max-width: 760px;
}

.sponsor-builder-brand-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    color: #0f172a;
    line-height: 1.6;
}

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

.sponsor-builder-grid--compact {
    margin-bottom: 16px;
}

.sponsor-builder-field {
    display: block;
}

.sponsor-builder-field--full {
    grid-column: 1 / -1;
}

.sponsor-builder-field__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.sponsor-builder-field__helper {
    display: block;
    color: #475569;
    font-size: 14px;
    margin-top: 6px;
}

.sponsor-builder-field input,
.sponsor-builder-field textarea,
.sponsor-builder-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.sponsor-builder-field textarea {
    min-height: 100px;
    resize: vertical;
}

.sponsor-builder-field input:focus,
.sponsor-builder-field textarea:focus,
.sponsor-builder-field select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.sponsor-builder-field--checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.sponsor-design-grid {
    align-items: end;
}

.sponsor-builder-actions {
    margin-top: 22px;
}

.sponsor-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sponsor-choice-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-choice-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.sponsor-choice-chip.is-active {
    background: #0f4c81;
    border-color: #0f4c81;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.18);
}

.sponsor-choice-field .sponsor-builder-field__helper {
    margin-bottom: 6px;
}

.sponsor-builder-actions__text {
    margin: 10px 0 0;
    color: #475569;
    font-size: 14px;
}

.sponsor-flow {
    display: grid;
    gap: 16px;
}

.sponsor-flow-step {
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
}

.sponsor-flow-step--full {
    width: 100%;
}

.sponsor-flow-step__header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sponsor-flow-step__number,
.sponsor-flow-step__number-dot {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #0f4c81;
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.sponsor-flow-step__number-dot {
    width: 10px;
    height: 10px;
    background: #0f4c81;
    margin-top: 8px;
}

.sponsor-flow-step__title {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.sponsor-flow-step__text {
    margin: 4px 0 0;
    color: #475569;
    font-size: 14px;
}

.sponsor-profile-autofill {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.sponsor-profile-autofill__item {
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.sponsor-profile-autofill__item strong,
.sponsor-profile-autofill__item span {
    display: block;
}

.sponsor-profile-autofill__item span {
    margin-top: 4px;
    color: #475569;
    font-size: 13px;
}

.sponsor-builder-field--slider input[type="range"] {
    padding: 0;
}

.sponsor-slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
}

.sponsor-slider-meta strong {
    color: #0f172a;
}

.sponsor-auto-package-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #e0f2ff;
    color: #0f172a;
}

.sponsor-optional-block > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #0f172a;
}

.sponsor-optional-block > summary::-webkit-details-marker {
    display: none;
}

.sponsor-optional-block__summary {
    margin-bottom: 14px;
}

.sponsor-next-step-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sponsor-result {
    display: grid;
    gap: 20px;
}

.sponsor-result__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
}

.sponsor-result__eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-result__title,
.sponsor-result__section-title,
.sponsor-result__package h4,
.sponsor-result__panel h4,
.sponsor-result__card h4,
.sponsor-result__package h5 {
    margin-top: 0;
    color: #0f172a;
}

.sponsor-result__lead {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.6;
}

.sponsor-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sponsor-result__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sponsor-result__panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

.sponsor-result__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.sponsor-result__pill {
    display: inline-block;
    background: #e2e8f0;
    color: #0f172a;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.sponsor-result__package {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
}

.sponsor-result__package + .sponsor-result__package {
    margin-top: 16px;
}

.sponsor-result__package-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.sponsor-result__price {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.sponsor-result__prompt {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 14px;
    border-radius: 12px;
    white-space: pre-wrap;
}

.sponsor-matching-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sponsor-matching-results {
    margin-top: 20px;
}

.sponsor-matching-card__score {
    min-width: 92px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sponsor-matching-card__score strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #0f172a;
}

.sponsor-matching-card__score span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.sponsor-matching-card__breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.sponsor-matching-page {
    padding: 30px 0;
}

.sponsor-matching-page__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.sponsor-matching-page__hero,
.sponsor-matching-filters-card,
.sponsor-matching-summary-card,
.sponsor-matching-results-card,
.sponsor-matching-detail-page {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.sponsor-matching-page__eyebrow {
    margin: 0 0 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-matching-page__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-page__lead {
    margin: 12px 0 0;
    max-width: 820px;
    color: #334155;
    line-height: 1.6;
}

.sponsor-matching-page__error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 16px;
    padding: 14px 16px;
}

.sponsor-matching-filters-card__head,
.sponsor-matching-summary-card__head,
.sponsor-matching-results-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.sponsor-matching-filters-card__title,
.sponsor-matching-summary-card__title,
.sponsor-matching-results-card__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-filters-card__hint {
    margin: 0;
    color: #64748b;
}

.sponsor-matching-filters-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.sponsor-matching-field {
    display: grid;
    gap: 8px;
}

.sponsor-matching-field span {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.sponsor-matching-field input,
.sponsor-matching-field select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
}

.sponsor-matching-field--action {
    align-self: stretch;
}

.sponsor-matching-filters-form__submit {
    min-height: 48px;
    width: 100%;
}

.sponsor-matching-summary-card__text {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.7;
    font-size: 16px;
}

.sponsor-matching-summary-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sponsor-matching-summary-card__stat {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    gap: 6px;
}

.sponsor-matching-summary-card__stat span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-summary-card__stat strong {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
}

.sponsor-matching-summary-card__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sponsor-matching-summary-card__quick-btn {
    min-height: 42px;
}

.sponsor-matching-results-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-matching-results-list {
    display: grid;
    gap: 12px;
}

.sponsor-matching-company-card {
    border: 1px solid #d9e2ef;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    gap: 14px;
}

.sponsor-matching-company-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.sponsor-matching-company-card__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-company-card__meta {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #475569;
}

.sponsor-matching-company-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sponsor-matching-company-card__reason {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.sponsor-matching-company-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sponsor-matching-shell {
    padding: 30px 0;
}

.sponsor-matching-shell__container {
    max-width: 1280px;
    margin: 0 auto;
}

.sponsor-matching-simple-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sponsor-matching-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: min(100%, 420px);
}

.sponsor-matching-summary__item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 6px;
}

.sponsor-matching-summary__item span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-summary__item strong {
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

.sponsor-matching-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.sponsor-matching-list-card--simple {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sponsor-matching-list-card,
.sponsor-matching-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.sponsor-matching-list-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.sponsor-matching-list-card__title,
.sponsor-matching-detail-card__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-list-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sponsor-matching-list-card__help {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.sponsor-matching-list {
    display: grid;
    gap: 10px;
}

.sponsor-matching-list--simple {
    gap: 10px;
}

.sponsor-matching-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sponsor-matching-list-item--simple {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px 18px;
    cursor: default;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sponsor-matching-list-item--simple:hover {
    border-color: #bfd2ea;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.08);
    transform: none;
}

.sponsor-matching-list-item__name {
    display: flex;
    align-items: center;
    min-height: 48px;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.sponsor-matching-list-item__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sponsor-matching-list-item__summary {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.sponsor-matching-list-item__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #0f4c81;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.18);
}

.sponsor-matching-list-item__open:hover {
    background: #0b3b64;
}

.sponsor-matching-list-item__open:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sponsor-matching-detail-page {
    display: grid;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.sponsor-matching-detail-page__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.sponsor-matching-detail-page__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-detail-page__lead {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.6;
    max-width: 820px;
}

.sponsor-matching-detail-page__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sponsor-matching-detail-page__facts div,
.sponsor-matching-detail-page__card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sponsor-matching-detail-page__facts span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-detail-page__facts strong {
    display: block;
    color: #0f172a;
    line-height: 1.45;
}

.sponsor-matching-detail-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sponsor-matching-detail-page__card h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.sponsor-matching-detail-page__card p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.sponsor-matching-detail-page__card p + p {
    margin-top: 12px;
}

.sponsor-matching-detail-page__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #334155;
}

.sponsor-matching-detail-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sponsor-matching-list-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sponsor-matching-list-item.is-active {
    border-color: #0f4c81;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.06), rgba(255, 255, 255, 1));
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.sponsor-matching-list-item__main,
.sponsor-matching-list-item__meta,
.sponsor-matching-list-item__side {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sponsor-matching-list-item__main strong {
    font-size: 17px;
    line-height: 1.2;
}

.sponsor-matching-list-item__main span,
.sponsor-matching-list-item__meta span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.sponsor-matching-list-item__side {
    justify-items: end;
}

.sponsor-matching-list-item__score {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.sponsor-matching-list-item__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-matching-list-item__status.is-success {
    background: #ecfdf3;
    color: #166534;
}

.sponsor-matching-detail-card {
    display: grid;
    gap: 18px;
}

.sponsor-matching-detail-card__empty {
    color: #64748b;
}

.sponsor-matching-detail-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.sponsor-matching-detail-card__lead {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.55;
}

.sponsor-matching-detail-card__score {
    min-width: 110px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sponsor-matching-detail-card__score strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: #0f172a;
}

.sponsor-matching-detail-card__score span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-detail-card__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sponsor-matching-detail-card__facts div,
.sponsor-matching-detail-card__panel {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sponsor-matching-detail-card__facts span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-detail-card__facts strong {
    display: block;
    color: #0f172a;
    line-height: 1.4;
}

.sponsor-matching-detail-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sponsor-matching-detail-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sponsor-matching-detail-card__panel h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.sponsor-matching-detail-card__reasons {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #334155;
}

.sponsor-matching-detail-card__info {
    margin: 0;
    display: grid;
    gap: 12px;
}

.sponsor-matching-detail-card__info div {
    display: grid;
    gap: 4px;
}

.sponsor-matching-detail-card__info dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-matching-detail-card__info dd {
    margin: 0;
    color: #0f172a;
    line-height: 1.5;
}

.sponsor-matching-shell__eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.sponsor-matching-shell__title {
    margin: 0;
    color: #0f172a;
}

.sponsor-matching-shell__lead {
    margin: 12px 0 18px;
    color: #334155;
}

.sponsor-matching-shell__button {
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.sponsor-matching-simple-error {
    margin-top: 16px;
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
}

@media (max-width: 860px) {
    .sponsor-builder-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-profile-autofill {
        grid-template-columns: 1fr;
    }

    .sponsor-result__grid {
        grid-template-columns: 1fr;
    }

    .sponsor-result__package-head {
        flex-direction: column;
    }

    .sponsor-matching-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-matching-filters-form,
    .sponsor-matching-summary-card__stats,
    .sponsor-matching-detail-page__facts,
    .sponsor-matching-detail-page__grid {
        grid-template-columns: 1fr;
    }

    .sponsor-matching-filters-card__head,
    .sponsor-matching-summary-card__head,
    .sponsor-matching-results-card__head,
    .sponsor-matching-company-card__head,
    .sponsor-matching-detail-page__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-matching-summary,
    .sponsor-matching-workspace,
    .sponsor-matching-detail-page__facts,
    .sponsor-matching-detail-page__grid,
    .sponsor-matching-detail-card__facts,
    .sponsor-matching-detail-card__grid {
        grid-template-columns: 1fr;
    }

    .sponsor-matching-detail-page__head,
    .sponsor-matching-list-item {
        grid-template-columns: 1fr;
    }

    .sponsor-matching-detail-page__head {
        display: grid;
    }

    .sponsor-matching-list-item__side {
        justify-items: start;
    }

    .sponsor-matching-list-item--simple {
        grid-template-columns: 1fr;
    }
}

.sponsor-page-list {
    display: grid;
    gap: 16px;
}

.sponsor-page-card {
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.sponsor-page-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sponsor-page-card__number-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.sponsor-page-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sponsor-page-title {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.sponsor-page-title:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background: #ffffff;
}

.sponsor-page-card__ai {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    justify-content: center;
}

.sponsor-page-card__ai .btn-secondary {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.sponsor-page-card__ai [data-ai="sponsor"] {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
}

.sponsor-page-card__ai [data-ai="evenemang"] {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.sponsor-page-card__ai [data-ai="custom"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.sponsor-page-card__ai .btn-secondary:hover {
    filter: brightness(0.98);
}

.sponsor-page-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.sponsor-page-card__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fff1f2;
}

.sponsor-page-card__remove svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sponsor-doc-workspace {
    margin-top: 16px;
}

.sponsor-doc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.sponsor-doc-card-panel,
.sponsor-doc-chat-panel {
    min-height: 100%;
}

.sponsor-doc-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sponsor-doc-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sponsor-doc-library {
    margin-top: 14px;
}

.sponsor-doc-library__list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.sponsor-doc-library__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sponsor-doc-library__item strong,
.sponsor-doc-library__item span {
    display: block;
}

.sponsor-doc-library__item span {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.sponsor-doc-library__item:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sponsor-doc-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sponsor-doc-card strong,
.sponsor-doc-card span,
.sponsor-doc-card p {
    display: block;
}

.sponsor-doc-card span {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.sponsor-doc-card p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #334155;
}

.sponsor-doc-card:hover,
.sponsor-doc-card.is-active {
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.sponsor-doc-chat {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding-right: 4px;
}

.sponsor-doc-message {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.sponsor-doc-message--assistant {
    background: #f8fafc;
    border: 1px solid #d9e2ef;
    color: #0f172a;
}

.sponsor-doc-message--user {
    margin-left: auto;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.sponsor-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sponsor-doc-mode-card {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.sponsor-doc-mode-card:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.sponsor-doc-mode-card--secondary {
    margin-top: 18px;
}

.sponsor-doc-mode-card:first-of-type .btn-primary[data-improve-from-document] {
    display: none;
}

.sponsor-doc-meta {
    margin-top: 12px;
}

.sponsor-doc-status--error {
    color: #b91c1c;
}

@media (max-width: 900px) {
    .sponsor-doc-grid {
        grid-template-columns: 1fr;
    }
}

.sponsor-page-card__remove:hover {
    background: #fee2e2;
}

.sponsor-page-card.is-loading {
    opacity: 0.75;
}

.sponsor-page-card.is-loading::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid rgba(59, 130, 246, 0.25);
    border-top-color: #3b82f6;
    animation: sponsorSpin 0.9s linear infinite;
}

.sponsor-page-card.is-loading::after {
    content: 'AI skriver...';
    position: absolute;
    top: 8px;
    right: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #e0f2fe;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

@keyframes sponsorSpin {
    to {
        transform: rotate(360deg);
    }
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.rich-toolbar button {
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
}

.rich-toolbar button:hover {
    background: #eef2ff;
}

.rich-editor {
    min-height: 200px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.rich-editor:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background: #ffffff;
}

.rich-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.sponsor-template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-add-page {
    margin-top: 12px;
}

.pdf-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d7e3f5;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff6ea 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.pdf-ready__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-ready__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #ecfdf3;
    color: #15803d;
    width: fit-content;
}

.pdf-ready__title {
    margin: 0;
    font-size: 18px;
}

.pdf-ready__meta {
    font-size: 13px;
    color: var(--text-muted);
}

.pdf-ready__note {
    font-size: 13px;
    color: var(--text-main);
}

.pdf-ready__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-ready__status {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sponsor PDF: monochrome step UI */
.sponsor-step-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #111827;
}

.sponsor-extra-page-title {
    margin: 20px 0 12px;
}

.sponsor-pdf-page .btn-primary {
    background: #111827;
    border-color: #111827;
    color: #f9fafb;
}

.sponsor-pdf-page .btn-primary:hover {
    background: #0b1220;
    border-color: #0b1220;
}

.sponsor-pdf-page .btn-secondary {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.sponsor-pdf-page .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sponsor-pdf-page .btn-soft-blue {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #111827;
}

.sponsor-pdf-page .btn-soft-blue:hover {
    background: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.sponsor-pdf-page .agreement-archive__search-input {
    max-width: 520px;
    border: 1px solid #9ca3af;
    background: #f9fafb;
}

.sponsor-pdf-page .agreement-archive__search-input.is-searching {
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.archive-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.archive-switch {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 12px;
}

.archive-switch__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.archive-switch__tab:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.archive-switch__tab.is-active {
    background: #111827;
    border-color: #111827;
    color: #f9fafb;
}

.archive-panel {
    width: 100%;
}

.archive-search__label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.archive-search-status {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 3px 8px;
}

.pdf-list-table .grants-row {
    grid-template-columns: 160px minmax(0, 1fr);
}

.pdf-list-table .grants-row--empty .grants-cell {
    grid-column: 1 / -1;
}

.pdf-list-name-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdf-doc-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pdf-doc-icon {
    width: 24px;
    height: 24px;
    color: #4b5563;
    flex-shrink: 0;
}

.pdf-doc-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke-width: 1.7;
}

.pdf-doc-title {
    font-weight: 600;
    color: #111827;
}

.pdf-doc-subtitle {
    margin-top: 1px;
    font-size: 12px;
    color: #6b7280;
}

.pdf-doc-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pdf-doc-delete-form {
    margin: 0;
}

.pdf-doc-btn {
    padding: 4px 8px;
    font-size: 12px;
    min-height: 26px;
    line-height: 1.1;
}

.pdf-doc-btn--danger {
    border-color: #d1d5db;
    color: #111827;
}

.agreement-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-file-row__delete-form {
    margin: 0;
    flex-shrink: 0;
}

.agreement-file-row__delete-btn {
    padding: 4px 8px;
    min-height: 26px;
    font-size: 12px;
}

@media (max-width: 820px) {
    .pdf-list-table .grants-row {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-areas: none;
    }

    .pdf-list-table .grants-row .grants-cell {
        grid-area: auto !important;
    }

    .pdf-list-name-cell {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sponsor-editor__section {
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.sponsor-theme-grid {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sponsor-theme-card {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    justify-content: flex-start;
    background: #f9fafb;
    transform: none;
    box-shadow: none;
}

.sponsor-theme-card__name {
    color: #111827;
    font-weight: 600;
}

.sponsor-theme-card:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.sponsor-theme-card.is-active {
    border-color: #111827;
    background: #111827;
    box-shadow: none;
    transform: none;
}

.sponsor-theme-card.is-active .sponsor-theme-card__name {
    color: #f9fafb;
}

.sponsor-page-card {
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.sponsor-page-title {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.sponsor-page-title:focus {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.sponsor-page-card__ai {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.sponsor-page-card__ai .btn-secondary,
.sponsor-page-card__ai [data-ai="sponsor"],
.sponsor-page-card__ai [data-ai="evenemang"],
.sponsor-page-card__ai [data-ai="custom"] {
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    padding: 10px 12px;
    justify-content: flex-start;
    background: #e5e7eb;
    transform: none;
    box-shadow: none;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.sponsor-page-card__ai .btn-secondary:hover {
    background: #d1d5db;
    border-color: #6b7280;
    box-shadow: none;
    transform: none;
}

.sponsor-page-card__remove {
    color: #111827;
    border-color: #d1d5db;
    background: #f3f4f6;
}

.sponsor-page-card__remove:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sponsor-page-card.is-loading::before {
    border: 4px solid rgba(107, 114, 128, 0.26);
    border-top-color: #374151;
}

.sponsor-page-card.is-loading::after {
    color: #111827;
    background: #f3f4f6;
    box-shadow: none;
}

.rich-toolbar button {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.rich-toolbar button:hover {
    background: #f3f4f6;
}

.rich-editor {
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.rich-editor:focus {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.pdf-ready {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    box-shadow: none;
}

.pdf-ready__badge {
    background: #111827;
    color: #f9fafb;
}

.sponsor-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.sponsor-card .form-field label {
    font-size: 12px;
    color: var(--text-muted);
}

.sponsor-card input,
.sponsor-card textarea {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.sponsor-card textarea {
    resize: vertical;
}

@media (max-width: 820px) {
    .grants-row {
        grid-template-columns: 1.6fr 1fr;
        grid-template-areas:
            "name status"
            "date actions";
    }
    .grants-row .grants-cell:nth-child(1) { grid-area: name; }
    .grants-row .grants-cell:nth-child(2) { grid-area: date; }
    .grants-row .grants-cell:nth-child(3) { grid-area: status; }
    .grants-row .grants-cell:nth-child(4) { grid-area: actions; text-align: left; }

    .grant-match-summary__body,
    .grant-result-card__summary,
    .grant-result-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .grant-result-card__toggle {
        margin-top: 4px;
    }

    .grant-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 1180px) {
    .app-layout-with-sidebar {
        grid-template-columns: 230px 1fr;
        gap: 18px;
    }
}

@media (max-width: 980px) {
    .app-layout {
        padding: 0 16px 28px;
    }

    .app-layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .client-sidebar {
        position: relative;
        top: 0;
        min-height: auto;
        border-radius: 14px;
    }

    .grant-plan {
        grid-template-columns: 1fr;
    }

    .sponsor-pack {
        grid-template-columns: 1fr;
    }

    .sponsor-brief-grid,
    .sponsor-brief-grid--compact {
        grid-template-columns: 1fr;
    }

    .sponsor-editor__header--stack {
        flex-direction: column;
    }

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

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

    .training-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-summary__schedule {
        grid-template-columns: 1fr;
    }

    .field-plan-board {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .field-plan-toolbar {
        width: 100%;
        justify-content: center;
    }

    .field-plan-toolbar__select {
        min-width: 150px;
    }

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

    .team-sync-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .training-week {
        grid-template-columns: 1fr;
    }

    .training-week.is-compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .coach-row {
        grid-template-columns: 1fr 1fr;
    }

    .coach-row .coach-remove {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .training-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "time time"
            "field team"
            "length actions";
    }

    .training-row .training-cell:nth-child(1) { display: none; }
    .training-row .training-cell:nth-child(2) { grid-area: time; }
    .training-row .training-cell:nth-child(3) { grid-area: team; }
    .training-row .training-cell:nth-child(4) { grid-area: field; }
    .training-row .training-cell:nth-child(5) { grid-area: length; }
    .training-row .training-cell:nth-child(6) { grid-area: actions; }

    .training-week.is-free-view .training-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "time actions"
            "field actions";
    }

    .training-week.is-free-view .training-row .training-cell:nth-child(1) {
        display: block;
        grid-area: time;
    }

    .training-week.is-free-view .training-row .training-cell:nth-child(2) {
        grid-area: field;
    }

    .training-week.is-free-view .training-row .training-cell:nth-child(3) {
        grid-area: actions;
    }

    .pdf-ready {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-ready__actions {
        width: 100%;
    }
}

/* För mycket små skärmar - ytterligare justeringar för bättre mobilupplevelse */
@media (max-width: 480px) {
    /* Förhindra horisontell scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .app-layout {
        padding: 0 8px 20px;
    }

    .app-header {
        padding: 12px 16px;
    }

    .app-main {
        min-width: 0; /* Ta bort den problematiska min-width */
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-overview {
        padding: 16px 8px;
    }

    .dashboard-overview__container {
        max-width: none;
    }

    .dashboard-overview__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .dashboard-overview__subtitle {
        font-size: 14px;
        max-width: none;
    }

    .dashboard-overview__hero--primary {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .dashboard-overview__hero-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .dashboard-overview__hero-highlight {
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
    }

    .dashboard-overview__card {
        padding: 16px;
    }

    .client-sidebar {
        display: none; /* Dölj sidebar helt på mycket små skärmar */
    }

    /* Fixa problematiska min-width värden */
    .sponsor-match-finder__hero-side {
        min-width: 0;
        width: 100%;
    }

    .sponsor-match-finder__hero-button {
        min-width: 0;
        width: 100%;
    }

    .field-plan-columns {
        grid-auto-columns: minmax(120px, 1fr);
    }

    .field-plan-column {
        min-width: 120px;
    }

    .sponsor-doc-grid {
        grid-template-columns: 1fr;
    }

    .btn-secondary,
    .btn-primary {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Justera tabeller och grids för små skärmar */
    .grants-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .grants-row .grants-cell {
        grid-column: 1 / -1;
        text-align: left;
        min-width: 0;
        word-break: break-word;
    }

    .training-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
    }

    .training-row .training-cell {
        grid-column: 1 / -1;
        text-align: left;
        min-width: 0;
        word-break: break-word;
    }

    /* Justera formulär */
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px; /* Förhindrar zoom på iOS */
        width: 100%;
        box-sizing: border-box;
    }

    /* Justera modaler och paneler */
    .swap-modal__card {
        width: calc(100vw - 16px);
        margin: 8px;
        padding: 16px;
        max-width: none;
    }

    .kanslia-widget-panel {
        width: calc(100vw - 16px);
        right: 8px;
        bottom: 80px;
        max-width: none;
    }

    /* Fixa andra potentiella problem */
    .sponsor-matching-summary,
    .sponsor-matching-workspace,
    .sponsor-matching-detail-page__facts,
    .sponsor-matching-detail-page__grid,
    .sponsor-matching-detail-card__facts,
    .sponsor-matching-detail-card__grid {
        grid-template-columns: 1fr;
    }

    .sponsor-matching-list-item {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .sponsor-matching-list-item__side {
        justify-items: start;
        margin-top: 8px;
    }

    /* Förhindra overflow i alla riktningar */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fixa specifika komponenter */
    .grant-plan {
        grid-template-columns: 1fr;
    }

    .sponsor-pack {
        grid-template-columns: 1fr;
    }

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

/* =========
   MAIN / FOOTER
   ========= */
.app-main {
    margin: 0 auto;
    min-width: 760px;
    padding: 0 0 20px 0;
}

.app-footer {
    background: #fff;
}

.kanslia-widget-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.kanslia-widget-button__toggle {
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.kanslia-widget-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 360px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    z-index: 9999;
    overflow: hidden;
}

.kanslia-widget-panel__header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.kanslia-widget-panel__subhead {
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
}

.kanslia-widget-panel__messages {
    padding: 16px;
    max-height: 320px;
    overflow: auto;
    font-size: 14px;
}

.kanslia-widget-panel__message {
    margin-bottom: 12px;
}

.kanslia-widget-panel__message.is-user {
    text-align: right;
}

.kanslia-widget-panel__footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.kanslia-widget-panel__composer {
    display: flex;
    gap: 8px;
}

.kanslia-widget-panel__composer input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
}

.kanslia-widget-panel__composer button {
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.kanslia-widget-panel__quick-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kanslia-widget-panel__quick-actions button {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}

/* =========
   WIZARD – HUVUDSTRUKTUR
   ========= */

/* ==== OVERRIDE: gör wizard-rutan centrerad och minst 1500px bred ==== */

/* Se till att själva wizard-containern centreras */
.wizard {
    width: 100%;
}

/* Själva kortet på översiktssidan */
.wizard-card.mail-card.email-preview-card {
    width: 100%;
    /* fyll upp om viewporten är smalare */
}


.wizard-header {
    margin-bottom: 20px;
    padding-inline: 4px;
}

.wizard-step-indicator {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 6px;
}

.wizard-title {
    font-size: 28px;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.wizard-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* =========
   WIZARD CARD
   ========= */
.wizard-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 40px 22px 22px;
    min-height: 300px;
    box-shadow: var(--wizard-shadow);
}

.wizard-card.white {
    background: none;
    border: none;
    box-shadow: none;
}

/* Övre färglist */
.wizard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 4px;
    background: linear-gradient(90deg, #0b6bdc, #22c55e);
    border-radius: 10px 10px 0 0;
}

/* Wizard-innehåll */
.wizard-content {
    position: relative;
    min-height: 260px;
}

/* =========
   STEG / ANIMATIONER
   ========= */
.wizard-step {
    display: none;
}

.wizard-step-active {
    display: block;
}

/* =========
   FORMULÄR
   ========= */
.form-grid {
    display: grid;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 16px;
    font-weight: 500;
    margin: 5px 0 5px 5px;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="time"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 11px;
    border-radius: var(--radius-field);
    border: 1px solid var(--border-strong);
    background: white;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.16s border-color, 0.16s background, 0.16s box-shadow;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(11, 107, 220, 0.24);
}



.field-error {
    font-size: 12px;
    max-height: 18px;
    color: var(--danger);
    margin-top: 2px;
}

.input-error {
    border-color: #f97373 !important;
    background-color: #fef2f2 !important;
}

/* =========
   CHIP-KNAPPAR
   ========= */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    gap: 6px;
    border-radius: var(--radius-field);
    border: 1px solid var(--border-subtle);
    background: #f3f4f6;
    font-size: 13px;
    cursor: pointer;
    transition: .16s background, .16s border-color;
}

.chip input {
    display: none;
}

.chip:hover {
    background: #e5e7eb;
    border-color: var(--border-strong);
}

.chip:has(input:checked) {
    background: #e5e7eb;
    border-color: var(--border-strong);
}

.chip.is-selected {
    background: #e5e7eb;
    border-color: var(--border-strong);
}

.chip input:checked+span {
    color: var(--accent);
    font-weight: 600;
}

/* =========
   COMPANY CARDS (wizard steg 1)
   ========= */
.company-results-title {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
}

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

.company-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.company-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #f9fafb;
    transition: .16s border-color, .16s background, .16s box-shadow;
}

.company-card:hover {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.company-card--locked {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.company-card--locked:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    box-shadow: none;
}

.company-card input[type=checkbox] {
    width: 18px;
    height: 18px;
}

.company-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
}

.company-type-inline {
    font-weight: 500;
    color: #4b5563;
}

.company-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.company-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--accent-soft);
    color: #1d4ed8;
    border-radius: 12px;
}

.company-meta-contacts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.company-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.company-badge--locked {
    background: #e5e7eb;
    color: #374151;
}

.company-contact-line {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========
   WIZARD ACTIONS
   ========= */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.wizard-actions--search-actions {
    justify-content: flex-start;
}

.wizard-actions--search-actions .btn-secondary {
    order: 1;
}

.wizard-actions--search-actions .btn-primary {
    order: 2;
}

.js-length-custom{
    margin-top: 6px;;
}

.wizard-actions-bottom {
    justify-content: flex-end;
    margin-top: 16px;
}

/* =========
   KNAPPAR
   ========= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.btn-primary {
    background: #111827;
    color: white;
}

.btn-primary:hover {
    background: #020617;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn.ghost {
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    font-size: 12px;
}

.btn.ghost:hover {
    background: #e5e7eb;
}

/* =========
   MAIL-KORT (wizard steg 2)
   ========= */
.mail-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mail-card {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15 23 42 / 0.12);
    overflow: hidden;
}

.mail-card-header {
    padding: 14px 18px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-subtle);
}

.mail-card-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.mail-card-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Email “to / subject” area */
.email-preview-header {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    margin-top: 8px;
}

.email-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.email-meta-label {
    width: 70px;
    font-size: 12px;
    color: var(--text-muted);
}

.email-meta-value {
    font-size: 13px;
}

.email-meta-value-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.email-subject-input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    padding: 6px 8px;
    font-size: 14px;
}

.email-subject-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(11 107 220 / .22);
}

/* Toolbar w/ copy buttons */
.email-toolbar {
    padding: 10px 18px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.email-category-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-pill-bg);
    color: var(--accent-pill-text);
}

/* Body textarea */
.email-body-wrapper {
    margin-top: 8px;
    padding: 0 18px 14px;
}

.email-body-textarea {
    width: 100%;
    min-height: 200px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.email-body-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(11, 107, 220, 0.24);
}

/* Footer */
.mail-footer {
    padding: 12px 18px;
    background: #f9fafb;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

/* Klickbar mejladress */
.email-address-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--text-link);
    cursor: pointer;
}

.email-address-btn:hover {
    text-decoration: underline;
}

/* =========
   LOADING OVERLAY
   ========= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-out;
    z-index: 999;
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.loading-card {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0 0 0 / .25);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.spinner {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid rgba(0 0 0 / .1);
    border-top-color: #2563eb;
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========
   OVERSIKT (index.php) – FÖRETAGSKORT
   ========= */
.overview-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    font-size: 13px;
}

.overview-table th,
.overview-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.overview-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
}

.overview-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Lista med företag */
.planned-company-list {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.planned-company-board {
    display: block;
    margin-top: 18px;
}

.company-view--board .planned-company-board {
    display: block;
}

.company-view--board .planned-company-list {
    display: none;
}

.planned-company-board__toggle {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.planned-company-board__toggle svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.planned-company-board__header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.planned-company-board__header > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    border-right: 1px solid rgba(148, 163, 184, 0.3);
    width: 100%;
}

.planned-company-board__header svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

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

.planned-company-board__column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px;
    border-radius: 12px;
    background: #f9f9f9;
    border: 1px solid #f1f1f1;
    min-height: 56px;
}

.planned-company-board__column.is-drag-over {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(37, 99, 235, 0.9);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.28);
}

.planned-company-board__header > div:last-child,
.planned-company-board__column:last-child {
    border-right: none;
}

.planned-company-board__header-archived,
.planned-company-board__column--archived {
    display: none;
}

.planned-company-board__header-archived[hidden],
.planned-company-board__column--archived[hidden] {
    display: none !important;
}

.planned-company-board.is-archived-visible .planned-company-board__header {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.planned-company-board.is-archived-visible .planned-company-board__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.planned-company-board.is-archived-visible .planned-company-board__header-archived,
.planned-company-board.is-archived-visible .planned-company-board__column--archived {
    display: flex;
}

.company-view--hide-archived .planned-company-card[data-status="4"] {
    display: none;
}

.company-view--board .planned-company-card {
    border-radius: 12px;
    padding: 12px;
    min-height: 0;
    aspect-ratio: auto;
}

.company-view--board .planned-company-main {
    padding: 0;
    gap: 8px;
}

.company-view--board .planned-company-meta,
.company-view--board .planned-company-contact-chips,
.company-view--board .planned-company-name-category,
.company-view--board .planned-company-name-new {
    display: block;
}

.company-view--board .planned-company-contact-chips {
    display: flex;
}

.company-view--board .planned-company-name-category {
    display: inline-flex;
}

.company-view--board .planned-company-status-column {
    align-items: flex-start;
}

.company-view--board .status-toggle-btn {
    font-size: 0;
    padding: 6px;
    min-width: 0;
}

/* Själva kortet */
.planned-company-card {
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.8);
    transition: box-shadow 0.2s ease, transform 0.15s ease, background-color 0.3s ease;
    margin-bottom: 10px;
}

/* Status-baserad bakgrund */
.planned-company-card.status-1 {
    background: #ffffff;
}

.planned-company-card.status-2 {
    background: #fef9c3;
}

.planned-company-card.status-3 {
    background: #dcfce7;
}

.planned-company-card.status-4 {
    background: #fee2e2;
}

/* Nya bolag: vit bakgrund utan särskild kant */
.planned-company-card-new {
    background: #ffffff;
}

.planned-company-card:hover {
    background-image: linear-gradient(rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.03));
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}

.planned-company-card.is-dragging {
    opacity: 0.6;
}

.planned-company-card.is-removing {
    opacity: 0;
    transform: translateY(-3px);
}

/* Inre layout */
.planned-company-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    width: 100%;
    padding: 0 10px;
    flex: 1;
}

.company-view--board .planned-company-main {
    cursor: grab;
}

.company-view--board .planned-company-main:active {
    cursor: grabbing;
}

.company-view--board .planned-company-main a,
.company-view--board .planned-company-main button {
    cursor: pointer;
}

.planned-company-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.planned-company-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* Namn + NY-label i samma rad */
.planned-company-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
    width: 100%;
}

.planned-company-name {
    font-weight: 600;
    font-size: 1rem;
    color: #15803d;
    letter-spacing: 0.01em;
    display: inline-block;
    width: 100%;
}

/* NY-label */
.planned-company-new-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

/* Kategori som underrubrik */
.planned-company-category-subtitle {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 0.8rem;
    color: #1e3a8a;
    background: #dbeafe;
    border-radius: 12px;
    padding: 2px 10px;
    border: 1px solid #bfdbfe;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planned-company-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.planned-company-meta.small {
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Kontaktchips (hemsida / telefon) */
.planned-company-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    transition: color 0.15s ease;
}

.contact-link svg {
    width: 13px;
    height: 13px;
    stroke-width: 1.7;
}

.contact-link:hover {
    color: #1d4ed8;
}

.contact-link-phone {
    color: #047857;
}

.contact-link-phone:hover {
    color: #0f766e;
}

.contact-link-followup {
    display: none;
    color: #111827;
    font-weight: 600;
}

.contact-link-followup:hover {
    color: #111827;
    opacity: 0.78;
}

.planned-company-card.status-2 .contact-link-followup {
    display: inline-flex;
}

.planned-company-card:not(.status-2) .planned-company-contact-chips--followup-only {
    display: none;
}

/* Statusknappar till höger */
.planned-company-status-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

.status-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: background-color 0.15s ease, border-color 0.15s ease,
        transform 0.05s ease, box-shadow 0.15s ease;
}

.status-toggle-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 1.8;
}

.status-toggle-btn:hover {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    transform: translateY(-0.5px);
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* Aktiva status-knappar */
.status-toggle-btn.is-active.status-contacted {
    background: #eab308;
    border-color: #ca8a04;
    color: #fefce8;
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.35);
}

.status-toggle-btn.is-active.status-sponsored {
    background: #22c55e;
    border-color: #16a34a;
    color: #f0fdf4;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.status-toggle-btn.is-active.status-notinterested {
    background: #ef4444;
    border-color: #b91c1c;
    color: #fef2f2;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.status-toggle-btn.is-active svg {
    stroke: currentColor;
}

/* Footer i företagskortet: säljhjälp / mail */
.planned-company-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.planned-company-footer-left {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
}

.planned-company-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
}

.planned-company-card.status-3 .planned-company-footer-actions {
    display: none;
}

.planned-company-footer-label {
    margin-top: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
}

.planned-company-card.status-2 .planned-company-footer {
    display: none;
}

.planned-company-action-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.planned-company-action-btn {
    width: 50px;
    height: 25px;
    border-radius: 999px;
    padding: 0;
}

.planned-company-action-btn svg {
    width: 16px;
    height: 16px;
}

.company-view--archived-visible .planned-company-footer-actions {
    display: none;
}

/* Mjuka knappar för säljhjälp / mail */
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease,
        transform 0.05s ease, border-color 0.15s ease;
}

.btn-soft svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.btn-soft-mail,
.btn-soft-phone,
.btn-soft-sales,
.btn-soft-followup {
    background: #111827;
    color: #f9fafb;
    border-color: #020617;
}

.btn-soft-mail:hover,
.btn-soft-phone:hover,
.btn-soft-sales:hover,
.btn-soft-followup:hover {
    background: #020617;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    transform: translateY(-0.5px);
}

/* =========
   RESPONSIV
   ========= */
@media (max-width: 768px) {
    .wizard-content {
        max-width: 100%;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wizard-actions--search-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .company-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .planned-company-main {
        padding: 0;
    }

    .grant-match-summary__body {
        flex-direction: column;
    }

    .grant-match-summary__stats {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .planned-company-board__header,
    .planned-company-board__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .planned-company-board__header,
    .planned-company-board__columns {
        grid-template-columns: 1fr;
    }
}

.email-modal-subject {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f4ff;
    border: 1px solid #e0e7ff;
    margin-bottom: 4px;
    word-break: break-word;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.email-modal-subject-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-modal-copy-subject-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.email-modal-copy-subject-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.7;
}

.email-modal-copy-subject-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transform: translateY(-0.5px);
}

/* Ikoner i kontrollknapparna i botten */
.email-modal-controls .btn-small svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.7;
    margin-right: 6px;
}

/* Radie-fältet: 50% mindre än tidigare (från 40% till 20%), selecten fyller hela fältet */
.radius-field {
    max-width: 20%;
}

.radius-select {
    border-radius: var(--radius-field);
    border: 1px solid var(--border-strong);
    width: 100%;
    padding: 12px;
    background: white;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.16s border-color, 0.16s background, 0.16s box-shadow;
}

#step1-form #location_query {
    width: 50%;
}

@media (max-width: 860px) {
    #step1-form .radius-field {
        max-width: 100%;
    }

    #step1-form #location_query,
    #step1-form .radius-select {
        width: 100%;
    }
}

/* Knapparna ska täcka hela framen, responsivt */
.chip-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.chip {
    width: 100%;
}

#step1-form .chip-group {
    grid-template-columns: repeat(3, 160px);
    justify-content: flex-start;
    gap: 0.55rem;
}

#step1-form .chip {
    padding: 5px 10px;
    font-size: 12px;
}

#step1-form .chip-content {
    gap: 0.4rem;
}

#step1-form .chip-svg {
    width: 1.7em;
    height: 1.7em;
}

@media (max-width: 860px) {
    #step1-form .chip-group {
        grid-template-columns: repeat(2, 160px);
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    #step1-form .chip-group {
        grid-template-columns: 160px;
        justify-content: flex-start;
    }
}

.chip-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Extra om du vill försäkra dig om att ikonerna följer textstorleken */
.chip-svg {
    width: 2em;
    height: 2em;
}

/* Styles for sponsor dashboard: email modal, phone modal, overview layout */

.email-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;
}

.email-modal-overlay.visible {
    display: flex;
}

.email-modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 720px;
    width: 92%;
    max-height: 80vh;
    padding: 24px 24px 20px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.email-modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.email-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 999px;
}

.email-modal-close:hover {
    background: #f3f4f6;
}

.email-modal-subject {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f4ff;
    border: 1px solid #e0e7ff;
    margin-bottom: 4px;
    word-break: break-word;
}

.email-modal-body {
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    position: relative;
    min-height: 80px;
}

.email-modal-body.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4b5563;
    font-size: 0.95rem;
}

.email-modal-body.loading::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid #e5e7eb;
    border-top-color: #4f46e5;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.email-modal-controls {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Telefonmodal (egen overlay) */
.phone-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 75;
}

.phone-modal-overlay.visible {
    display: flex;
}

.phone-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 360px;
    width: 92%;
    padding: 20px 18px 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.phone-modal-number {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    text-align: center;
    color: #111827;
}

.phone-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-phone svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.7;
}

.btn-phone-copy {
    background: #eef2ff;
    color: #312e81;
    border-color: #c7d2fe;
}

.btn-phone-copy:hover {
    background: #e0e7ff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
    transform: translateY(-0.5px);
}

.btn-phone-call {
    background: #22c55e;
    color: #f0fdf4;
    border-color: #16a34a;
}

.btn-phone-call:hover {
    background: #16a34a;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    transform: translateY(-0.5px);
}

/* Wizard-rutan (översikten): bredd styrs globalt, här bara full width i sin container */
.wizard-card.mail-card.email-preview-card {
    width: 100%;
}

/* === Namnrad: kategori & Ny i rubriken === */
.planned-company-name-category {
    font-weight: 500;
    color: #374151;
}

.planned-company-name-new {
    font-weight: 600;
    color: #eab308;
    /* guldig färg */
}

.planned-company-saved-date {
    margin-top: 2px;
    font-size: 0.76rem;
    color: #6b7280;
}

/* === Översikt-header med filter till höger === */
.overview-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
}

.email-preview-card[data-company-view-root] .overview-title {
    color: #eab308;
}

.login-box {
    max-width: 380px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
}

.login-box h1 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 18px;
}

.login-box .field {
    margin-bottom: 14px;
}

.login-box label {
    font-size: 0.85rem;
    color: #374151;
}

.login-box input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.login-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 10px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.login-button:hover {
    background: #4338ca;
}

.login-meta-link {
    margin-top: 12px;
    text-align: center;
}

.login-meta-link a {
    color: #374151;
    font-size: 0.85rem;
    text-decoration: underline;
}

/* public/assets/css/wizard.css */

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.loading-overlay.visible {
    display: flex;
}

.loading-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid #e5e7eb;
    border-top-color: #4f46e5;
    animation: wizardSpin 0.8s linear infinite;
}

@keyframes wizardSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.95rem;
    color: #111827;
}

/* Bottom bar (step 1) */
.wizard-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.12);
    justify-content: center;
}

/* public/assets/css/landing.css */

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f1f1;
    margin: 0;
    padding: 0;
}

.lp-section {
    width: 100%;
    padding: 40px 5vw;
    box-sizing: border-box;
}

.lp-inner {
    margin: 0 auto;
    width: min(1120px, 100%);
}

/* HERO */
.lp-hero {
    background: #7ed957;
    color: #ffffff;
    padding-top: 48px;
    padding-bottom: 48px;
    box-shadow: 0 20px 40px rgba(3, 26, 12, 0.5);
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.5fr);
    gap: 32px;
    align-items: center;
}

.lp-hero-title {
    font-size: clamp(2.2rem, 3vw, 2.7rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 12px;
}

.lp-hero-subtitle {
    font-size: 0.98rem;
    max-width: 460px;
    opacity: 0.9;
    margin-bottom: 22px;
}

.lp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.lp-hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(3, 26, 12, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    line-height: 1.35;
}

.lp-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #7ed957;
}

.lp-dot-orange {
    background: #ff751f;
}

.lp-dot-pink {
    background: #db80a1;
}

.lp-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.lp-btn-hero-primary {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #7ed957;
    color: #031A0C;
    box-shadow: 0 14px 30px rgba(126, 217, 87, 0.5);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-btn-hero-primary span {
    transform: translateY(1px);
}

.lp-btn-hero-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(126, 217, 87, 0.7);
}

.lp-btn-hero-secondary {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.lp-btn-hero-secondary:hover {
    background: rgba(3, 26, 12, 0.7);
}

.lp-hero-footnote {
    font-size: 0.78rem;
    opacity: 0.85;
}

.lp-hero-footnote--teaser {
    margin-bottom: 10px;
    opacity: 1;
}

.lp-hero-footnote--teaser a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* FEATURES */
.lp-features {
    background: #ffffff;
}

.lp-section-eyebrow {
    font-size: 0.78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #082b59;
    font-weight: 600;
    margin-bottom: 6px;
}

.lp-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #031A0C;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 4px;
}

.lp-section-subtitle {
    font-size: 0.92rem;
    color: #4b5563;
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 0;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
    align-items: stretch;
}

.lp-feature {
    padding: 4px 4px 0;
}

.lp-feature-card {
    padding: 18px 18px 16px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    height: 100%;
    box-sizing: border-box;
}

.lp-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.lp-icon-green {
    background: rgba(126, 217, 87, 0.25);
    color: #031A0C;
}

.lp-icon-pink {
    background: rgba(219, 128, 161, 0.25);
    color: #7d123b;
}

.lp-icon-orange {
    background: rgba(255, 117, 31, 0.2);
    color: #7a3400;
}

.lp-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #031A0C;
    line-height: 1.3;
    margin-bottom: 4px;
}

.lp-feature-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}

.lp-section-eyebrow--light {
    color: #cba589;
}

.lp-section-title--light {
    color: #ffffff;
}

.lp-section-subtitle--light {
    color: rgba(249, 250, 251, 0.88);
}

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

.lp-potential-grid {
    align-items: start;
}

.lp-potential-showcase {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.lp-potential-showcase__intro {
    display: grid;
    gap: 8px;
}

.lp-potential-showcase__intro .lp-step-text {
    margin: 0;
    max-width: 72ch;
}

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

.lp-potential-showcase__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 12px;
    align-items: stretch;
}

.lp-potential-actions {
    margin-top: 18px;
}

.lp-potential-section .lp-step-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-step--potential,
.lp-step--cost {
    min-height: 100%;
}

.lp-step--potential {
    border-left-color: #7ed957;
}

.lp-step--total {
    background: rgba(8, 43, 89, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.lp-step--cost {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #cba589;
    box-shadow: inset 0 0 0 1px rgba(203, 165, 137, 0.18);
}

.lp-pricing-section {
    background: #ffffff;
}

.lp-pricing-grid {
    grid-template-columns: minmax(0, 420px);
}

.lp-pricing-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.lp-bottom-cta-title {
    line-height: 1.2;
}

.lp-btn-cta-secondary,
.lp-btn-hero-secondary {
    text-align: center;
    line-height: 1.35;
}

/* STEPS */
.lp-steps {
    background: #031A0C;
    color: #f9fafb;
}

.lp-steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: flex-start;
}

.lp-steps-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lp-steps-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 14px;
}

.lp-steps-callout {
    font-size: 0.85rem;
    background: rgba(8, 43, 89, 0.8);
    border-left: 3px solid #cba589;
    padding: 10px 12px;
}

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

.lp-step {
    font-size: 0.84rem;
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 12px 12px;
    border-left: 3px solid #7ed957;
    height: 100%;
    box-sizing: border-box;
}

.lp-step-number {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #7ed957;
    margin-bottom: 4px;
}

.lp-step-title {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.lp-step-text {
    opacity: 0.9;
    line-height: 1.55;
    margin-bottom: 0;
}

/* BOTTOM CTA */
.lp-bottom-cta {
    background: linear-gradient(135deg, #ff751f, #7ed957);
    color: #031A0C;
}

.lp-bottom-cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.lp-bottom-cta-text {
    max-width: 520px;
}

.lp-bottom-cta-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.lp-bottom-cta-sub {
    font-size: 0.9rem;
    line-height: 1.6;
}

.lp-bottom-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lp-btn-cta-primary {
    background: #031A0C;
    color: #ffffff;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.9rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lp-btn-cta-primary:hover {
    background: #082b59;
}

.lp-btn-cta-secondary {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.86rem;
    border: 1px solid rgba(3, 26, 12, 0.4);
    background: rgba(255, 255, 255, 0.75);
    color: #031A0C;
    text-decoration: none;
}

.lp-btn-cta-secondary:hover {
    background: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .lp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp-problem-grid,
    .lp-detail-grid,
    .lp-potential-section .lp-step-cards {
        grid-template-columns: 1fr;
    }

    .lp-steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-step-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lp-section {
        padding-inline: 16px;
    }

    .lp-hero-title {
        font-size: 2rem;
    }
}

/* Sponsor agreements */
.agreement-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agreement-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-invert {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff;
}

.btn-invert:hover {
    background: #111827;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.btn-invert.is-highlight {
    animation: archiveBlink 1.1s ease-in-out 3;
}

.agreement-actions .btn-soft-sponsor {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
    box-shadow: 0 8px 14px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.agreement-actions .btn-soft-other {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
    box-shadow: 0 8px 14px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.agreement-actions .btn-secondary:hover {
    transform: translateY(-1px);
}

.agreement-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.agreement-company-row {
    min-height: 18px;
}

.agreement-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.agreement-select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    font-size: 14px;
}

.agreement-company-label {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.agreement-archive {
    margin-top: 24px;
}

.agreement-archive__search {
    margin: 0 0 10px;
}

.agreement-archive__search-input {
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    background: #ffffff;
}

.agreement-archive__empty {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.agreement-archive__header {
    margin-bottom: 10px;
}

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

.agreement-archive__grid--single {
    grid-template-columns: 1fr;
}

.agreement-archive__group h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.agreement-archive__card {
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    padding: 14px;
}

.agreement-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agreement-file-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agreement-file-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.agreement-file-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.agreement-file-card__icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.agreement-file-card__title {
    font-weight: 700;
    color: #0f172a;
}

.agreement-file-card__meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.agreement-file-card__excerpt {
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

.agreement-file-card__cta {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agreement-file-card__cta svg {
    width: 14px;
    height: 14px;
}

.agreement-view {
    padding: 20px;
    max-width: 960px;
    width: 100%;
}

.agreement-view__body {
    color: #0f172a;
    line-height: 1.6;
}

@keyframes archiveBlink {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.0);
        transform: translateY(0);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0.18);
        transform: translateY(-1px);
    }
    70% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.0);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.0);
        transform: translateY(0);
    }
}

.agreement-card {
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.agreement-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.agreement-card__title {
    font-weight: 700;
    color: #0f172a;
}

.agreement-card__date {
    font-size: 12px;
    color: #64748b;
}

.agreement-card__company {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.agreement-card__body {
    color: #0f172a;
}

.agreement-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.agreement-modal.is-open {
    display: flex;
}

.agreement-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.agreement-modal__card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    width: min(560px, 92vw);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.agreement-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agreement-modal__close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #475569;
}

.agreement-modal__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agreement-modal__row label {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    display: block;
}

.agreement-modal__row textarea,
.agreement-modal__row select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    font-size: 14px;
    background: #f8fafc;
}

.agreement-modal__loading {
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
}

.agreement-modal.is-loading .agreement-modal__loading {
    display: flex;
}
.agreement-modal__spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.25);
    border-top-color: #3b82f6;
    animation: spin 0.8s linear infinite;
}

.agreement-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 900px) {
    .agreement-archive__grid {
        grid-template-columns: 1fr;
    }
}

.kanslia-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.kanslia-home {
    padding: 30px 0;
}

.kanslia-home__container {
    max-width: 1100px;
    margin: 0 auto;
}

.kanslia-home__hero,
.kanslia-home__section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}

.kanslia-home__eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.kanslia-home__title {
    margin: 0 0 12px;
    color: #0f172a;
}

.kanslia-home__greeting,
.kanslia-home__lead {
    margin: 0 0 10px;
    color: #334155;
}

.kanslia-home__section-title {
    margin: 0 0 12px;
    color: #0f172a;
}

.kanslia-home__focus-list {
    margin: 0;
    padding-left: 20px;
}

.kanslia-home__focus-list li {
    margin-bottom: 8px;
}

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

.kanslia-home__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

.kanslia-home__card h3 {
    margin: 0 0 10px;
    color: #0f172a;
}

.kanslia-home__card p {
    margin: 0 0 14px;
    color: #475569;
}

.kanslia-home__button {
    display: inline-block;
    margin-top: 10px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
}

.kanslia-dashboard {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.kanslia-dashboard__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kanslia-dashboard__focus {
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
}

.kanslia-dashboard__focus h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

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

.kanslia-dashboard__card {
    display: block;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kanslia-dashboard__card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.kanslia-dashboard__card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.kanslia-dashboard__card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.kanslia-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanslia-side__card {
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px;
    background: #f8fafc;
}

.kanslia-side__card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #0f172a;
}

.kanslia-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanslia-suggestion {
    text-align: left;
}

.kanslia-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.kanslia-chat__messages {
    min-height: 460px;
    max-height: 68vh;
    overflow: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanslia-message {
    max-width: min(760px, 88%);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.kanslia-message--assistant {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #dbe4ee;
}

.kanslia-message--user {
    align-self: flex-end;
    background: #0f172a;
    color: #ffffff;
}

.kanslia-message__role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    opacity: 0.75;
}

.kanslia-message__body {
    line-height: 1.6;
    white-space: normal;
}

.kanslia-chat__composer {
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
}

.kanslia-chat__composer textarea {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    resize: vertical;
    min-height: 120px;
    background: #f8fafc;
}

.kanslia-chat__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

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

    .kanslia-home__grid {
        grid-template-columns: 1fr;
    }

    .kanslia-dashboard__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .kanslia-dashboard__cards {
        grid-template-columns: 1fr;
    }

    .kanslia-message {
        max-width: 100%;
    }

    .kanslia-chat__actions {
        flex-direction: column;
    }
}

.kanslia-workspace__hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.kanslia-context-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.kanslia-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #e8eef6;
    color: #0f172a;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.kanslia-focus-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f3;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

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

.kanslia-focus-card__head h2 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.kanslia-focus-card__list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.7;
}

.kanslia-workspace__grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.kanslia-thread-panel,
.kanslia-main-panel,
.kanslia-side-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kanslia-thread-panel__head,
.kanslia-side-card__head,
.kanslia-thread-shell__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.kanslia-thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanslia-thread-list__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 15px;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kanslia-thread-list__item strong {
    font-size: 15px;
}

.kanslia-thread-list__item span {
    color: #64748b;
    font-size: 12px;
}

.kanslia-thread-list__item:hover,
.kanslia-thread-list__item.is-active {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.kanslia-action-grid {
    display: grid;
    gap: 12px;
}

.kanslia-action-card {
    width: 100%;
    text-align: left;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kanslia-action-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.kanslia-action-card span {
    display: block;
    color: #475569;
    line-height: 1.55;
}

.kanslia-action-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.kanslia-thread-shell {
    min-height: 620px;
}

.kanslia-thread-shell__status {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
}

.kanslia-thread-shell__status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.kanslia-message-stream {
    min-height: 340px;
    max-height: 60vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 4px;
}

.kanslia-message__body {
    white-space: normal;
}

.kanslia-composer {
    margin-top: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px;
}

.kanslia-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.kanslia-suggestion-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.kanslia-suggestion-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.kanslia-composer textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    resize: vertical;
    min-height: 120px;
    background: #ffffff;
}

.kanslia-composer__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.kanslia-attachment-button {
    position: relative;
    overflow: hidden;
}

.kanslia-attachment-list,
.kanslia-workitem-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanslia-attachment-card,
.kanslia-workitem-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 15px;
}

.kanslia-attachment-card strong,
.kanslia-workitem-card strong {
    color: #0f172a;
}

.kanslia-attachment-card span,
.kanslia-workitem-card span {
    color: #64748b;
    font-size: 13px;
}

.kanslia-attachment-card a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: none;
}

.kanslia-attachment-card p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.kanslia-widget-panel {
    width: 380px;
    max-width: calc(100vw - 24px);
}

.kanslia-widget-panel__workspace-link {
    color: #0f4c81;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.kanslia-widget-panel__status {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
}

.kanslia-widget-panel__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.kanslia-widget-panel__upload,
.kanslia-widget-panel__new-thread {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.kanslia-widget-panel__new-thread {
    font: inherit;
}

@media (max-width: 980px) {
    .kanslia-workspace__hero,
    .kanslia-workspace__grid {
        grid-template-columns: 1fr;
    }

    .kanslia-thread-shell__head,
    .kanslia-focus-card__head,
    .kanslia-side-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .kanslia-composer__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.kanslia-page-simple {
    padding: 28px 0 40px;
}

.kanslia-page-simple__container {
    max-width: 1100px;
    margin: 0 auto;
}

.kanslia-page-simple__workspace {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.kanslia-page-simple__workspace--expanded {
    grid-template-columns: minmax(0, 1fr);
}

.kanslia-page-simple__workspace--expanded .kanslia-page-simple__threads-card {
    order: 2;
}

.kanslia-page-simple__workspace--expanded .kanslia-page-simple__chat-card {
    order: 1;
}

.kanslia-page-simple__hero,
.kanslia-page-simple__card,
.kanslia-page-simple__mini-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.kanslia-page-simple__hero,
.kanslia-page-simple__card {
    padding: 24px;
    margin-bottom: 20px;
}

.kanslia-page-simple__eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.kanslia-page-simple__title {
    margin: 0 0 10px;
    color: #0f172a;
}

.kanslia-page-simple__greeting,
.kanslia-page-simple__lead {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.6;
}

.kanslia-page-simple__focus-list {
    margin: 0;
    padding-left: 20px;
}

.kanslia-page-simple__focus-list li {
    margin-bottom: 8px;
}

.kanslia-page-simple__chat-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
}

.kanslia-page-simple__workspace--expanded .kanslia-page-simple__chat-box {
    min-height: 360px;
    max-height: 620px;
}

.kanslia-page-simple__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kanslia-page-simple__section-head h2 {
    margin: 0;
}

.kanslia-page-simple__chat-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.kanslia-page-simple__thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanslia-page-simple__thread-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.kanslia-page-simple__thread-item strong {
    font-size: 14px;
}

.kanslia-page-simple__thread-item span {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.kanslia-page-simple__thread-item.is-active {
    border-color: #16462A;
    background: rgba(22, 70, 42, 0.06);
}

.kanslia-page-simple__empty-state {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
}

.kanslia-page-simple__thread-title {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.kanslia-page-simple__message {
    margin-bottom: 12px;
}

.kanslia-page-simple__message.user {
    text-align: right;
}

.kanslia-page-simple__controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.kanslia-page-simple__controls textarea,
.kanslia-page-simple__controls input[type="file"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.kanslia-page-simple__controls textarea {
    min-height: 120px;
    resize: vertical;
    font: inherit;
    line-height: 1.5;
}

.kanslia-page-simple__workspace--expanded .kanslia-page-simple__controls textarea {
    min-height: 220px;
}

.kanslia-page-simple__controls button {
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.kanslia-page-simple__controls button.secondary,
.kanslia-page-simple__quick-actions button.secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.kanslia-page-simple__minimize-btn {
    white-space: nowrap;
}

.kanslia-page-simple__hint {
    color: #475569;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
}

.kanslia-page-simple__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.kanslia-page-simple__quick-actions button {
    border-radius: 999px;
    padding: 8px 12px;
}

.kanslia-page-simple__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kanslia-page-simple__attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.kanslia-page-simple__draft-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
}

.kanslia-page-simple__draft-panel.is-hidden,
.kanslia-page-simple__draft-subject.is-hidden,
.kanslia-page-simple__copy-btn.is-hidden {
    display: none;
}

.kanslia-page-simple__draft-panel h3 {
    margin: 0;
    color: #031A0C;
}

.kanslia-page-simple__draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.kanslia-page-simple__copy-btn {
    white-space: nowrap;
}

.kanslia-page-simple__draft-subject {
    margin-top: 12px;
}

.kanslia-page-simple__draft-subject label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-page-simple__draft-subject input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.kanslia-page-simple__draft-textarea {
    width: 100%;
    min-height: 220px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}

.kanslia-page-simple__attachment-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7cc;
    color: #7c5a00;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-page-simple__mini-card {
    padding: 18px;
}

.kanslia-page-simple__mini-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
}

.kanslia-page-simple__mini-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.5;
}

.kanslia-page-simple__btn {
    display: inline-block;
    margin-top: 10px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
}

@media (max-width: 760px) {
    .kanslia-page-simple__controls {
        flex-direction: column;
    }

    .kanslia-page-simple__workspace,
    .kanslia-page-simple__grid {
        grid-template-columns: 1fr;
    }
}

.kanslia-page-simple {
    padding: 28px 0 40px;
}

.kanslia-page-simple__container {
    max-width: 1140px;
}

.kanslia-page-simple__hero {
    padding: 28px;
    border-color: rgba(8, 43, 89, 0.12);
    background:
        radial-gradient(circle at right top, rgba(255, 117, 31, 0.10), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.kanslia-page-simple__title {
    max-width: 760px;
    font-size: 38px;
    line-height: 1.05;
}

.kanslia-page-simple__greeting {
    color: #082b59;
    font-weight: 700;
}

.kanslia-page-simple__lead {
    max-width: 760px;
    color: #475569;
    font-size: 17px;
}

.kanslia-page-simple__quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.kanslia-page-simple__quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 138px;
    padding: 18px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.kanslia-page-simple__quick-action strong {
    font-size: 16px;
    line-height: 1.25;
}

.kanslia-page-simple__quick-action span {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.kanslia-page-simple__quick-action:hover {
    border-color: rgba(8, 43, 89, 0.22);
    transform: translateY(-1px);
}

.kanslia-page-simple__status-card {
    background: linear-gradient(180deg, rgba(8, 43, 89, 0.04), rgba(8, 43, 89, 0.01)), #fff;
}

.kanslia-page-simple__status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kanslia-page-simple__status-panel {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.kanslia-page-simple__status-panel h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
}

.kanslia-page-simple__status-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.kanslia-page-simple__status-list li + li {
    margin-top: 8px;
}

.kanslia-page-simple__workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
}

.kanslia-page-simple__chat-card {
    min-width: 0;
}

.kanslia-page-simple__threads-card {
    background: #fbfdff;
}

.kanslia-page-simple__section-label {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kanslia-page-simple__chat-intro {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.kanslia-page-simple__chat-intro p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
}

.kanslia-page-simple__chat-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kanslia-page-simple__chat-shortcuts button {
    border-radius: 999px;
    padding: 8px 12px;
}

.kanslia-page-simple__thread-item {
    background: #ffffff;
}

.kanslia-page-simple__thread-item strong {
    font-size: 13px;
}

.kanslia-page-simple__thread-item span {
    font-size: 12px;
}

.kanslia-page-simple__secondary {
    margin-top: 4px;
}

.kanslia-page-simple__secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kanslia-page-simple__mini-card {
    padding: 18px;
    background: #fff;
}

@media (max-width: 980px) {
    .kanslia-page-simple__quick-actions,
    .kanslia-page-simple__status-grid,
    .kanslia-page-simple__secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kanslia-page-simple__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .kanslia-page-simple__title {
        font-size: 30px;
    }

    .kanslia-page-simple__quick-actions,
    .kanslia-page-simple__status-grid,
    .kanslia-page-simple__secondary-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-overview {
    padding: 24px;
}

.dashboard-overview__container {
    max-width: 1320px;
    margin: 0 auto;
}

.dashboard-overview__hero {
    margin-bottom: 20px;
}

.dashboard-overview__eyebrow {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.1;
}

.dashboard-overview__subtitle {
    margin: 0;
    max-width: 760px;
    color: #475569;
    line-height: 1.6;
}

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

.dashboard-overview__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__card::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.dashboard-overview__card--green {
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 28%);
    border-color: #ccebd7;
}

.dashboard-overview__card--green::before {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.dashboard-overview__card--blue {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 28%);
    border-color: #cfe1ff;
}

.dashboard-overview__card--blue::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.dashboard-overview__card--red {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 28%);
    border-color: #f4cccc;
}

.dashboard-overview__card--red::before {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.dashboard-overview__card--calendar {
    background: linear-gradient(180deg, #fffdf3 0%, #ffffff 28%);
    border-color: #e8e2bf;
}

.dashboard-overview__card--calendar::before {
    background: linear-gradient(90deg, #22c55e 0%, #3b82f6 34%, #ef4444 68%, #facc15 100%);
}

.dashboard-overview__card-eyebrow {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview__card-value {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-overview__card-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
}

.dashboard-overview__card-meta {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.5;
}

.dashboard-overview__breakdown {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.dashboard-overview__breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.dashboard-overview__breakdown-row + .dashboard-overview__breakdown-row {
    border-top: 1px solid #e2e8f0;
}

.dashboard-overview__breakdown-label {
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-overview__breakdown-value {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.dashboard-overview__card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: #0f172a;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.dashboard-overview__card-link:hover {
    opacity: 0.92;
}

.dashboard-overview__card-link--green {
    background: #15803d;
}

.dashboard-overview__card-link--blue {
    background: #1d4ed8;
}

.dashboard-overview__card-link--red {
    background: #b91c1c;
}

.dashboard-overview__card-link--calendar {
    background: #ca8a04;
}

.dashboard-overview__card--green .dashboard-overview__card-eyebrow,
.dashboard-overview__card--green .dashboard-overview__card-value {
    color: #166534;
}

.dashboard-overview__card--blue .dashboard-overview__card-eyebrow,
.dashboard-overview__card--blue .dashboard-overview__card-value {
    color: #1d4ed8;
}

.dashboard-overview__card--red .dashboard-overview__card-eyebrow,
.dashboard-overview__card--red .dashboard-overview__card-value {
    color: #b91c1c;
}

.dashboard-overview__card--calendar .dashboard-overview__card-eyebrow,
.dashboard-overview__card--calendar .dashboard-overview__card-value {
    color: #a16207;
}

.dashboard-overview__preview-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.dashboard-overview__preview-item {
    display: grid;
    grid-template-columns: 12px 84px 1fr;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.dashboard-overview__preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-overview__preview-dot.color-green {
    background: #22c55e;
}

.dashboard-overview__preview-dot.color-blue {
    background: #3b82f6;
}

.dashboard-overview__preview-dot.color-red {
    background: #ef4444;
}

.dashboard-overview__preview-dot.color-yellow {
    background: #facc15;
}

.dashboard-overview__preview-date {
    color: #64748b;
    font-weight: 700;
}

.dashboard-overview__preview-link,
.dashboard-overview__preview-title {
    color: #0f172a;
    line-height: 1.4;
}

.dashboard-overview__preview-link {
    text-decoration: none;
}

.dashboard-overview__preview-link:hover {
    text-decoration: underline;
}

@media (min-width: 1180px) {
    .dashboard-overview {
        padding: 6px 10px 6px;
    }

    .dashboard-overview__container {
        max-width: 100%;
    }

    .dashboard-overview__hero {
        margin-bottom: 8px;
    }

    .dashboard-overview__eyebrow {
        margin-bottom: 2px;
        font-size: 11px;
    }

    .dashboard-overview__title {
        margin-bottom: 2px;
        font-size: 20px;
    }

    .dashboard-overview__subtitle {
        display: none;
    }

    .dashboard-overview__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-overview__card {
        min-width: 0;
        padding: 12px 14px;
        border-radius: 14px;
        overflow: hidden;
    }

    .dashboard-overview__card::before {
        height: 4px;
        margin-bottom: 10px;
    }

    .dashboard-overview__card-eyebrow {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .dashboard-overview__card-value {
        margin-bottom: 6px;
        font-size: 24px;
    }

    .dashboard-overview__card-title {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.18;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dashboard-overview__card-meta {
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dashboard-overview__breakdown {
        margin-bottom: 6px;
        padding: 6px 8px;
        max-height: 92px;
        overflow: auto;
    }

    .dashboard-overview__breakdown-row {
        padding: 2px 0;
    }

    .dashboard-overview__breakdown-label {
        font-size: 11px;
    }

    .dashboard-overview__breakdown-value {
        font-size: 12px;
    }

    .dashboard-overview__preview-list {
        gap: 4px;
        margin-bottom: 6px;
        max-height: 86px;
        overflow: auto;
        padding-right: 2px;
    }

    .dashboard-overview__preview-item {
        grid-template-columns: 8px 62px 1fr;
        gap: 5px;
        font-size: 10px;
    }

    .dashboard-overview__preview-date {
        font-size: 10px;
    }

    .dashboard-overview__preview-link,
    .dashboard-overview__preview-title {
        line-height: 1.22;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dashboard-overview__card-link {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }
}

@media (max-width: 1179px) {
    .dashboard-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-overview__grid {
        grid-template-columns: 1fr;
    }
}

.sponsor-pipeline {
    display: grid;
    gap: 24px;
}

.sponsor-pipeline__insight-metrics,
.sponsor-pipeline__insight-grid {
    width: 100%;
}

.sponsor-pipeline__insight-metrics {
    margin-top: -4px;
}

.sponsor-pipeline__hero,
.sponsor-pipeline__summary,
.sponsor-pipeline__board,
.sponsor-company-card-page__grid {
    width: 100%;
}

.sponsor-pipeline__hero,
.sponsor-company-card-page__panel,
.sponsor-company-card-page__header {
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.sponsor-pipeline__hero,
.sponsor-company-card-page__header {
    padding: 28px;
}

.sponsor-pipeline__hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.sponsor-pipeline__hero-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    flex-shrink: 0;
}

.sponsor-pipeline__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.sponsor-pipeline__title,
.sponsor-company-card-page__title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
}

.sponsor-pipeline__subtitle,
.sponsor-company-card-page__subtitle,
.sponsor-company-card-page__coach-intro {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

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

.sponsor-pipeline__filters {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sponsor-pipeline__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    color: #334155;
    font-size: 14px;
}

.sponsor-pipeline__filter-toggle input {
    margin: 0;
}

.sponsor-pipeline__summary-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5f0;
    border-radius: 16px;
}

.sponsor-pipeline__summary-card--red {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
    border-color: #fecaca;
}

.sponsor-pipeline__summary-card--yellow {
    background: linear-gradient(180deg, #fffbea 0%, #ffffff 100%);
    border-color: #fcd34d;
}

.sponsor-pipeline__summary-card--green {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #86efac;
}

.sponsor-pipeline__summary-label {
    font-size: 13px;
    color: #64748b;
}

.sponsor-pipeline__summary-value {
    font-size: 24px;
    line-height: 1;
    color: #0f172a;
}

.sponsor-pipeline__summary-potential {
    display: grid;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.sponsor-pipeline__summary-potential span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.sponsor-pipeline__summary-potential strong {
    font-size: 16px;
    line-height: 1.2;
    color: #0f172a;
}

.sponsor-pipeline__summary-inline-values {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.sponsor-pipeline__summary-percent {
    margin-left: auto;
    font-size: 16px;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
}

.sponsor-pipeline__goal-form {
    display: grid;
    gap: 8px;
}

.sponsor-pipeline__goal-form--hero {
    width: min(100%, 320px);
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
}

.sponsor-pipeline__goal-summary {
    width: min(100%, 320px);
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
}

.sponsor-pipeline__goal-summary strong {
    font-size: 20px;
    line-height: 1.1;
    color: #0f172a;
}

.sponsor-pipeline__summary-card--total > .sponsor-pipeline__goal-form {
    display: none;
}

.sponsor-pipeline__goal-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.sponsor-pipeline__goal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.sponsor-pipeline__goal-input {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #dbe5f0;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.sponsor-pipeline__goal-btn {
    min-height: 40px;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
}

.sponsor-pipeline__goal-progress {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.sponsor-pipeline__goal-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.sponsor-pipeline__goal-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a 0%, #7ed957 100%);
}

.sponsor-pipeline__goal-progress-text {
    font-size: 12px;
    color: #475569;
}

.sponsor-pipeline__summary-card--red .sponsor-pipeline__summary-label,
.sponsor-pipeline__summary-card--red .sponsor-pipeline__summary-value {
    color: #b91c1c;
}

.sponsor-pipeline__summary-card--yellow .sponsor-pipeline__summary-label,
.sponsor-pipeline__summary-card--yellow .sponsor-pipeline__summary-value {
    color: #92400e;
}

.sponsor-pipeline__summary-card--green .sponsor-pipeline__summary-label,
.sponsor-pipeline__summary-card--green .sponsor-pipeline__summary-value {
    color: #166534;
}

.sponsor-pipeline__board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.sponsor-pipeline__column {
    min-height: 480px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    padding: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sponsor-pipeline__column[data-pipeline-column-status="1"] {
    background: linear-gradient(180deg, #fff5f5 0%, #fffdfd 100%);
    border-color: #fecaca;
}

.sponsor-pipeline__column[data-pipeline-column-status="2"] {
    background: linear-gradient(180deg, #fffbea 0%, #fffef7 100%);
    border-color: #fcd34d;
}

.sponsor-pipeline__column[data-pipeline-column-status="3"] {
    background: linear-gradient(180deg, #f0fdf4 0%, #fbfffc 100%);
    border-color: #86efac;
}

.sponsor-pipeline__column.is-drag-over {
    border-color: #0f172a;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.08);
    background: #eef5ff;
}

.sponsor-pipeline__column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 6px 14px;
}

.sponsor-pipeline__column-header h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.sponsor-pipeline__column-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-pipeline__column[data-pipeline-column-status="1"] .sponsor-pipeline__column-header h2,
.sponsor-pipeline__column[data-pipeline-column-status="1"] .sponsor-pipeline__column-header span {
    color: #b91c1c;
}

.sponsor-pipeline__column[data-pipeline-column-status="1"] .sponsor-pipeline__column-header span {
    background: #fee2e2;
}

.sponsor-pipeline__column[data-pipeline-column-status="2"] .sponsor-pipeline__column-header h2,
.sponsor-pipeline__column[data-pipeline-column-status="2"] .sponsor-pipeline__column-header span {
    color: #92400e;
}

.sponsor-pipeline__column[data-pipeline-column-status="2"] .sponsor-pipeline__column-header span {
    background: #fef3c7;
}

.sponsor-pipeline__column[data-pipeline-column-status="3"] .sponsor-pipeline__column-header h2,
.sponsor-pipeline__column[data-pipeline-column-status="3"] .sponsor-pipeline__column-header span {
    color: #166534;
}

.sponsor-pipeline__column[data-pipeline-column-status="3"] .sponsor-pipeline__column-header span {
    background: #dcfce7;
}

.sponsor-pipeline__column-body {
    display: grid;
    gap: 12px;
}

.sponsor-pipeline__empty {
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.sponsor-pipeline__card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sponsor-pipeline__card:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.sponsor-pipeline__card.is-dragging {
    opacity: 0.7;
}

.sponsor-pipeline__card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sponsor-pipeline__card-title {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.sponsor-pipeline__card-category {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-pipeline__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    color: #64748b;
}

.sponsor-pipeline__card-potential {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
}

.sponsor-pipeline__card-potential span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.sponsor-pipeline__card-potential strong {
    font-size: 18px;
    line-height: 1.1;
    color: #0f172a;
}

.sponsor-pipeline__card-notes {
    margin: 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.sponsor-pipeline__card-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-pipeline__card-signals span,
.sponsor-company-card-page__save-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.sponsor-company-card-page__save-state.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.sponsor-pipeline__card-actions,
.sponsor-company-card-page__status-group,
.sponsor-company-card-page__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card {
    gap: 8px;
    padding: 10px 12px;
}

.sponsor-pipeline__board.is-compact {
    gap: 12px;
}

.sponsor-pipeline__column.is-compact .sponsor-pipeline__column-body {
    gap: 8px;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__column {
    padding: 10px;
}

.sponsor-pipeline__card.is-compact {
    gap: 8px;
    padding: 10px 12px;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-top {
    gap: 0;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-top {
    gap: 0;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-title {
    font-size: 15px;
    line-height: 1.25;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-title {
    font-size: 15px;
    line-height: 1.25;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-meta,
.sponsor-pipeline.is-compact .sponsor-pipeline__card-notes,
.sponsor-pipeline.is-compact .sponsor-pipeline__card-signals,
.sponsor-pipeline.is-compact .sponsor-pipeline__card-actions,
.sponsor-pipeline.is-compact .sponsor-pipeline__card-category {
    display: none;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-meta,
.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-notes,
.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-signals,
.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-actions,
.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-category {
    display: none;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-potential {
    gap: 0;
    padding: 6px 8px;
    border-radius: 10px;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-potential {
    gap: 0;
    padding: 6px 8px;
    border-radius: 10px;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-potential span {
    font-size: 10px;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-potential span {
    font-size: 10px;
}

.sponsor-pipeline.is-compact .sponsor-pipeline__card-potential strong {
    font-size: 14px;
}

.sponsor-pipeline__card.is-compact .sponsor-pipeline__card-potential strong {
    font-size: 14px;
}

.sponsor-pipeline__status-btn,
.sponsor-company-card-page__quick-btn {
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sponsor-pipeline__status-btn:hover,
.sponsor-company-card-page__quick-btn:hover {
    border-color: #0f172a;
}

.sponsor-pipeline__status-btn.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.sponsor-pipeline__status-btn[data-status="1"] {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
}

.sponsor-pipeline__status-btn[data-status="1"]:hover {
    border-color: #ef4444;
    background: #fee2e2;
}

.sponsor-pipeline__status-btn[data-status="1"].is-active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.sponsor-pipeline__status-btn[data-status="2"] {
    border-color: #fcd34d;
    background: #fff8db;
    color: #92400e;
}

.sponsor-pipeline__status-btn[data-status="2"]:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.sponsor-pipeline__status-btn[data-status="2"].is-active {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.sponsor-pipeline__status-btn[data-status="3"] {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.sponsor-pipeline__status-btn[data-status="3"]:hover {
    border-color: #22c55e;
    background: #dcfce7;
}

.sponsor-pipeline__status-btn[data-status="3"].is-active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.sponsor-company-card-page {
    display: grid;
    gap: 24px;
}

.sponsor-company-card-page__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.sponsor-company-card-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.sponsor-company-card-page__main,
.sponsor-company-card-page__coach {
    display: grid;
    gap: 20px;
}

.sponsor-company-card-page__panel {
    padding: 22px;
}

.sponsor-company-card-page__panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.sponsor-company-card-page__panel h2,
.sponsor-company-card-page__panel h3 {
    margin-top: 0;
    color: #0f172a;
}

.sponsor-company-card-page__info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0;
}

.sponsor-company-card-page__info-list div {
    display: grid;
    gap: 4px;
}

.sponsor-company-card-page__info-list dt {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.sponsor-company-card-page__info-list dd {
    margin: 0;
    color: #0f172a;
    line-height: 1.5;
}

.sponsor-company-card-page__potential {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.sponsor-company-card-page__potential-form {
    margin: 0;
}

.sponsor-company-card-page__potential label {
    font-size: 13px;
    color: #64748b;
}

.sponsor-company-card-page__potential select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbe5f0;
    background: #f8fbff;
    color: #0f172a;
    font: inherit;
}

.sponsor-company-card-page__description,
.sponsor-company-card-page__material-text,
.sponsor-company-card-page__coach-history,
.sponsor-company-card-page__notes,
.sponsor-company-card-page__coach-form textarea {
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #f8fbff;
}

.sponsor-company-card-page__description,
.sponsor-company-card-page__material-text {
    margin-top: 18px;
    padding: 16px;
    color: #334155;
    line-height: 1.6;
}

.sponsor-company-card-page__notes,
.sponsor-company-card-page__coach-form textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    resize: vertical;
    font: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.sponsor-company-card-page__material-block + .sponsor-company-card-page__material-block {
    margin-top: 18px;
}

.sponsor-company-card-page__coach-history {
    max-height: 380px;
    overflow: auto;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.sponsor-company-card-page__coach-message {
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    background: #e2e8f0;
    color: #0f172a;
    line-height: 1.6;
}

.sponsor-company-card-page__coach-message--user {
    background: #0f172a;
    color: #fff;
}

.sponsor-company-card-page__coach-message strong {
    display: inline-block;
    margin-right: 6px;
}

.sponsor-company-card-page__coach-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.grant-pipeline-page,
.calendar-page {
    display: grid;
    gap: 24px;
}

.grant-pipeline-page__hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.grant-pipeline-page__title-stat {
    display: grid;
    gap: 4px;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbe5f0;
}

.grant-pipeline-page__title-stat span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.grant-pipeline-page__title-stat strong {
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

.sponsor-pipeline__hero-actions .grant-pipeline-page__title-stat {
    justify-items: end;
}

.grant-pipeline-card {
    min-height: 140px;
}

.calendar-page__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-page__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.calendar-page__legend-item.is-green {
    background: #dcfce7;
    color: #166534;
}

.calendar-page__legend-item.is-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.calendar-page__legend-item.is-red {
    background: #fee2e2;
    color: #991b1b;
}

.calendar-page__legend-item.is-yellow {
    background: #fef3c7;
    color: #92400e;
}

.calendar-page__summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.calendar-page__summary-card {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.calendar-page__summary-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-page__summary-value {
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.calendar-page__summary-value.color-green {
    color: #15803d;
}

.calendar-page__summary-value.color-blue {
    color: #1d4ed8;
}

.calendar-page__summary-value.color-red {
    color: #b91c1c;
}

.calendar-page__summary-value.color-yellow {
    color: #a16207;
}

.calendar-page__switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.calendar-page__mode-tabs,
.calendar-page__view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.calendar-page__mode-tab,
.calendar-page__view-tab,
.calendar-page__calendar-nav-btn,
.calendar-page__calendar-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-page__mode-tab:hover,
.calendar-page__view-tab:hover,
.calendar-page__calendar-nav-btn:hover,
.calendar-page__calendar-today:hover {
    background: #f8fbff;
}

.calendar-page__mode-tab.is-active,
.calendar-page__view-tab.is-active {
    background: linear-gradient(135deg, #082b59 0%, #0b3d77 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(8, 43, 89, 0.22);
}

.calendar-page__calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 720px;
    flex-wrap: wrap;
}

.calendar-page__calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-page__calendar-nav-btn {
    min-width: 38px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
}

.calendar-page__calendar-headline {
    display: grid;
    gap: 4px;
    min-width: 180px;
}

.calendar-page__calendar-headline strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.1;
}

.calendar-page__calendar-headline span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-page__calendar-card {
    padding: 18px;
    overflow: hidden;
}

.calendar-page__dayview {
    display: grid;
    gap: 18px;
}

.calendar-page__dayview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #dbe5f0;
}

.calendar-page__dayview-head.is-today {
    background: linear-gradient(135deg, #082b59 0%, #0b3d77 100%);
    border-color: #082b59;
}

.calendar-page__dayview-head strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.calendar-page__dayview-head span {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.calendar-page__dayview-head.is-today strong,
.calendar-page__dayview-head.is-today span {
    color: #fff;
}

.calendar-page__dayview-body {
    display: grid;
    gap: 12px;
}

.calendar-page__dayview-event {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    border-left: 4px solid #f59e0b;
}

.calendar-page__dayview-event.is-green {
    background: #ecfdf3;
    border-left-color: #22c55e;
}

.calendar-page__dayview-event.is-blue {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.calendar-page__dayview-event.is-red {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.calendar-page__dayview-event.is-yellow {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.calendar-page__dayview-type {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-page__dayview-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.calendar-page__dayview-copy {
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.calendar-page__month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    background: #dbe5f0;
    overflow: hidden;
}

.calendar-page__weekday-head {
    padding: 12px 14px;
    background: #f8fbff;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.calendar-page__day-cell {
    min-height: 148px;
    padding: 12px;
    background: #fff;
    display: grid;
    align-content: start;
    gap: 12px;
}

.calendar-page__day-cell.is-muted {
    background: #f8fafc;
}

.calendar-page__day-cell.is-today {
    background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
}

.calendar-page__day-cell-head {
    display: flex;
    justify-content: flex-end;
}

.calendar-page__day-cell-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.calendar-page__day-cell.is-today .calendar-page__day-cell-head span {
    background: #082b59;
    color: #fff;
}

.calendar-page__day-cell-events {
    display: grid;
    gap: 6px;
}

.calendar-page__day-chip,
.calendar-page__week-event {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    border-left: 4px solid #facc15;
}

.calendar-page__day-chip {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.calendar-page__day-chip.is-green,
.calendar-page__week-event.is-green {
    background: #ecfdf3;
    border-left-color: #22c55e;
}

.calendar-page__day-chip.is-blue,
.calendar-page__week-event.is-blue {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.calendar-page__day-chip.is-red,
.calendar-page__week-event.is-red {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.calendar-page__day-chip.is-yellow,
.calendar-page__week-event.is-yellow {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.calendar-page__day-more {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

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

.calendar-page__week-day {
    min-height: 520px;
    padding: 16px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.calendar-page__week-day.is-today {
    background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
    border-color: #f1c9a4;
}

.calendar-page__week-day-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.calendar-page__week-day-head strong {
    color: #0f172a;
    font-size: 15px;
}

.calendar-page__week-day-head span {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.calendar-page__week-day-body {
    display: grid;
    align-content: start;
    gap: 10px;
}

.calendar-page__week-event-type {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-page__week-event-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.calendar-page__week-event-copy {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.calendar-page__year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.calendar-page__year-month {
    padding: 16px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    display: grid;
    gap: 12px;
}

.calendar-page__year-month-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.calendar-page__year-month-head strong {
    color: #0f172a;
    font-size: 15px;
}

.calendar-page__year-month-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.calendar-page__year-weekdays,
.calendar-page__year-weeks {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-page__year-weekdays span {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.calendar-page__year-day {
    min-height: 38px;
    padding: 4px 2px;
    border-radius: 10px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 3px;
    background: #f8fafc;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.calendar-page__year-day:hover {
    background: #eef5fb;
    transform: translateY(-1px);
}

.calendar-page__year-day.is-muted {
    opacity: 0.38;
}

.calendar-page__year-day.is-today {
    background: #082b59;
}

.calendar-page__year-day.is-today .calendar-page__year-day-number {
    color: #fff;
}

.calendar-page__year-day-number {
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.calendar-page__year-dot-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}

.calendar-page__year-dot {
    display: inline-flex;
    width: 5px;
    height: 5px;
    border-radius: 999px;
}

.calendar-page__year-dot.is-green {
    background: #22c55e;
}

.calendar-page__year-dot.is-blue {
    background: #3b82f6;
}

.calendar-page__year-dot.is-red {
    background: #ef4444;
}

.calendar-page__year-dot.is-yellow {
    background: #f59e0b;
}

.calendar-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.calendar-page__form-card,
.calendar-page__preview-card {
    padding: 22px;
}

.calendar-page__card-head {
    margin-bottom: 18px;
}

.calendar-page__card-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
}

.calendar-page__card-head p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.calendar-page__feedback {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.calendar-page__feedback--success {
    background: #dcfce7;
    color: #166534;
}

.calendar-page__feedback--error {
    background: #fee2e2;
    color: #991b1b;
}

.calendar-page__note-form {
    display: grid;
    gap: 14px;
}

.calendar-page__field {
    display: grid;
    gap: 8px;
}

.calendar-page__field span {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.calendar-page__field input,
.calendar-page__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #f8fbff;
    color: #0f172a;
    font: inherit;
    box-sizing: border-box;
}

.calendar-page__field textarea {
    resize: vertical;
}

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

.calendar-page__mini-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-page__mini-item:last-child {
    border-bottom: 0;
}

.calendar-page__mini-body {
    display: grid;
    gap: 4px;
}

.calendar-page__mini-date {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-page__mini-link,
.calendar-page__mini-title {
    color: #0f172a;
    line-height: 1.5;
}

.calendar-page__mini-link {
    text-decoration: none;
}

.calendar-page__mini-link:hover {
    text-decoration: underline;
}

.calendar-page__timeline {
    display: grid;
    gap: 22px;
}

.calendar-page__day {
    display: grid;
    gap: 14px;
}

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

.calendar-page__day-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
}

.calendar-page__day-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-page__list {
    display: grid;
    gap: 12px;
}

.calendar-page__event {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-page__event:last-child {
    border-bottom: 0;
}

.calendar-page__event-date {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.calendar-page__event-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
}

.calendar-page__event-description {
    margin-top: 6px;
    color: #475569;
    line-height: 1.5;
}

.calendar-page__event-link {
    display: inline-flex;
    margin-top: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.calendar-page__event-link:hover {
    text-decoration: underline;
}

.calendar-page__event-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.calendar-page__event-dot.color-green {
    background: #22c55e;
}

.calendar-page__event-dot.color-blue {
    background: #3b82f6;
}

.calendar-page__event-dot.color-red {
    background: #ef4444;
}

.calendar-page__event-dot.color-yellow {
    background: #facc15;
}

.calendar-page__empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 1100px) {
    .sponsor-pipeline__summary,
    .calendar-page__summary,
    .calendar-page__layout,
    .calendar-page__year-grid,
    .sponsor-pipeline__board,
    .sponsor-company-card-page__grid,
    .sponsor-company-card-page__info-list {
        grid-template-columns: 1fr;
    }

    .sponsor-pipeline__hero,
    .grant-pipeline-page__hero,
    .sponsor-company-card-page__header {
        flex-direction: column;
    }

    .calendar-page__event {
        grid-template-columns: 1fr;
    }

    .calendar-page__week-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .calendar-page__month-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-page__weekday-head {
        display: none;
    }
}

.kanslia-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.kanslia-widget__avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.kanslia-widget__avatar-shell {
    width: 118px;
    height: 118px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    animation: kansliaFloat 4.8s ease-in-out infinite;
}

.kanslia-widget__avatar-shell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.28));
}

.kanslia-widget__avatar-label {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.kanslia-widget__panel {
    width: 620px;
    max-width: calc(100vw - 24px);
    height: 820px;
    max-height: calc(100vh - 140px);
    border: 1px solid #dce3eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}

.kanslia-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 10px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f9fbfd 0%, #f2f7f5 100%);
}

.kanslia-widget__eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.kanslia-widget__title {
    margin: 4px 0 6px;
    font-size: 22px;
    line-height: 1.1;
}

.kanslia-widget__role {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-widget__workspace-link {
    display: none;
}

.kanslia-widget__workspace-link--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.kanslia-widget__workspace-link--button:hover {
    transform: translateY(-1px);
    border-color: #16462A;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.kanslia-widget__intro {
    display: none;
}

.kanslia-widget__scope {
    display: none;
}

.kanslia-widget__scope-item {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.kanslia-widget__daily-prompt {
    display: none;
}

.kanslia-widget__daily-label {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kanslia-widget__daily-text {
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.kanslia-widget__messages {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanslia-widget__message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.kanslia-widget__message--assistant {
    align-self: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.kanslia-widget__message--user {
    align-self: flex-end;
    background: #0f172a;
    color: #ffffff;
}

.kanslia-widget__message-name {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.kanslia-widget__message-text {
    word-break: break-word;
}

.kanslia-widget__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 10px;
}

.kanslia-widget__draft-panel {
    margin: 0 18px 12px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
    flex-shrink: 0;
    max-height: 230px;
    overflow: auto;
}

.kanslia-widget__draft-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.kanslia-widget__draft-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

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

.kanslia-widget__draft-subject {
    margin-top: 10px;
}

.kanslia-widget__draft-subject label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.kanslia-widget__draft-subject input,
.kanslia-widget__draft-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.kanslia-widget__draft-subject input {
    padding: 10px 12px;
}

.kanslia-widget__draft-textarea {
    min-height: 96px;
    max-height: 120px;
    margin-top: 10px;
    padding: 12px;
    line-height: 1.5;
    resize: vertical;
}

.kanslia-widget__attachment {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7cc;
    color: #7c5a00;
    font-size: 12px;
    font-weight: 600;
}

.kanslia-widget__actions {
    display: none;
}

.kanslia-widget__quick-btn,
.kanslia-widget__secondary-btn,
.kanslia-widget__send {
    border: 0;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.kanslia-widget__quick-btn {
    padding: 8px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-widget__quick-btn:hover,
.kanslia-widget__secondary-btn:hover,
.kanslia-widget__send:hover {
    transform: translateY(-1px);
}

.kanslia-widget__composer {
    padding: 14px 18px 18px;
    border-top: 1px solid #eef2f7;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.kanslia-widget__input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.kanslia-widget__input {
    flex: 1;
    min-width: 0;
    border: 1px solid #94a3b8;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
    background: #f8fafc;
    min-height: 48px;
    max-height: 96px;
    resize: vertical;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.kanslia-widget__input::placeholder {
    color: #64748b;
}

.kanslia-widget__input:focus {
    outline: none;
    border-color: #16462A;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 70, 42, 0.14);
}

.kanslia-widget__send {
    padding: 12px 15px;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

.kanslia-widget__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.kanslia-widget__file {
    flex: 1;
    min-width: 0;
    font-size: 12px;
}

.kanslia-widget__secondary-btn {
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-widget__send:disabled,
.kanslia-widget__secondary-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.lp-potential-live {
    margin-top: 20px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-potential-live__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.lp-potential-live__title {
    margin: 6px 0 0;
}

.lp-potential-live__notice,
.lp-potential-live__alert {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.lp-potential-live__notice {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.lp-potential-live__alert {
    background: rgba(255, 117, 31, 0.14);
    color: #fff7ed;
    border: 1px solid rgba(255, 117, 31, 0.32);
}

.lp-potential-live__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.lp-potential-live__field {
    display: grid;
    grid-template-rows: minmax(42px, auto) auto auto;
    gap: 8px;
}

.lp-potential-live__field--wide {
    grid-column: 1 / -1;
}

.lp-potential-live__field span {
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.lp-potential-live__field small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.45;
}

.lp-potential-live__field select,
.lp-potential-live__field input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font: inherit;
}

.lp-potential-live__field select:focus,
.lp-potential-live__field input:focus {
    outline: none;
    border-color: #CBA589;
    box-shadow: 0 0 0 3px rgba(203, 165, 137, 0.25);
}

.lp-potential-live > .lp-potential-live__summary,
.lp-potential-live > .lp-potential-live__results,
.lp-potential-live > .lp-potential-live__lead-cta {
    display: none;
}

.lp-potential-summary-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.lp-potential-summary-panel {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    scroll-margin-top: 120px;
}

.lp-potential-summary-panel__title {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
}

.lp-potential-summary-panel__total {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #ffffff;
    color: #031A0C;
}

.lp-potential-summary-panel__total-label,
.lp-potential-summary-panel__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-potential-summary-panel__total-value {
    margin-top: 8px;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
}

.lp-potential-summary-panel__total-text {
    margin: 10px 0 0;
    color: #334155;
    line-height: 1.55;
}

.lp-potential-summary-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.lp-potential-summary-panel__card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.lp-potential-summary-panel__value {
    margin-top: 8px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

.lp-potential-summary-panel__card p,
.lp-potential-summary-panel__lead,
.lp-potential-summary-panel__empty {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.lp-potential-summary-panel__lead {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.lp-potential-summary-panel__empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.lp-potential-live__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
}

.lp-potential-live__summary {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #ffffff;
    color: #031A0C;
}

.lp-potential-live__summary-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #16462A;
}

.lp-potential-live__summary-value {
    margin-top: 6px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 700;
    color: #031A0C;
}

.lp-potential-live__summary-text {
    margin: 10px 0 0;
    color: #334155;
}

.lp-potential-live__calculated {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    scroll-margin-top: 120px;
}

.lp-potential-live__calculated-head {
    margin-bottom: 14px;
}

.lp-potential-live__calculated-title {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.lp-potential-live__empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.lp-potential-live__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.lp-potential-live__results .lp-step {
    min-width: 0;
}

.lp-potential-live__result-card {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    color: #031A0C;
    min-width: 0;
}

.lp-potential-live__result-card--total {
    background: #16462A;
    color: #ffffff;
}

.lp-potential-live__result-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
    opacity: 0.82;
}

.lp-potential-live__result-value {
    margin-top: 8px;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

.lp-potential-live__result-text {
    margin: 10px 0 0;
    color: inherit;
    opacity: 0.86;
    line-height: 1.5;
}

.lp-potential-live__lead-cta {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.revenue-potential-page {
    padding: 28px 0 40px;
}

.revenue-potential-page__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.revenue-potential-page__hero {
    margin-bottom: 22px;
}

.revenue-potential-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.10);
    color: #0f4c81;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.revenue-potential-page__title {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.revenue-potential-page__subtitle {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.revenue-potential-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.revenue-potential-panel {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    padding: 24px;
    min-width: 0;
}

.revenue-potential-panel__intro {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.revenue-potential-panel__intro h2 {
    margin: 6px 0 0;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.revenue-potential-panel__label {
    color: #0f4c81;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.revenue-potential-panel__notice {
    margin: 0;
    max-width: 230px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
}

.revenue-potential-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.5;
}

.revenue-potential-alert--error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.revenue-potential-form {
    display: grid;
    gap: 14px;
}

.revenue-potential-field {
    display: grid;
    gap: 8px;
}

.revenue-potential-field span {
    font-weight: 600;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.revenue-potential-field select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 0 14px;
    font-size: 0.98rem;
    color: #0f172a;
}

.revenue-potential-field select:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

.revenue-potential-form__actions {
    padding-top: 8px;
}

.revenue-potential-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.revenue-potential-card {
    border-radius: 22px;
    padding: 20px;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
}

.revenue-potential-card--sponsor {
    background: linear-gradient(160deg, rgba(22, 163, 74, 0.14), rgba(240, 253, 244, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.revenue-potential-card--grant {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.13), rgba(239, 246, 255, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.revenue-potential-card--total {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.08), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.revenue-potential-card__label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f4c81;
    overflow-wrap: anywhere;
}

.revenue-potential-card__metric {
    margin-top: 14px;
    font-size: clamp(1.6rem, 2.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.revenue-potential-card__meta {
    margin-top: 10px;
    color: #475569;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.revenue-potential-card__stats {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.revenue-potential-card__stats div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    font-size: 0.95rem;
    min-width: 0;
}

.revenue-potential-card__stats dt {
    color: #475569;
    min-width: 0;
    overflow-wrap: anywhere;
}

.revenue-potential-card__stats dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.revenue-potential-coworker {
    margin-top: 18px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(127, 29, 29, 0.06), rgba(254, 242, 242, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.16);
    min-width: 0;
    overflow: hidden;
}

.revenue-potential-coworker__eyebrow {
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.revenue-potential-coworker h3 {
    margin: 10px 0 10px;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.revenue-potential-coworker p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.revenue-potential-coworker__list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: #334155;
    display: grid;
    gap: 8px;
    overflow-wrap: anywhere;
}

.revenue-potential-coworker__hint {
    margin-top: 14px !important;
    font-weight: 600;
    color: #7f1d1d !important;
    overflow-wrap: anywhere;
}

.revenue-potential-coworker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.revenue-potential-coworker__actions .btn-primary,
.revenue-potential-coworker__actions .btn-secondary {
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.revenue-potential-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #64748b;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 20px;
    background: #f8fafc;
    padding: 20px;
}

@keyframes kansliaFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 720px) {
    .revenue-potential-page {
        padding: 20px 0 32px;
    }

    .revenue-potential-page__container {
        padding: 0 14px;
    }

    .revenue-potential-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .revenue-potential-panel__intro {
        display: block;
    }

    .revenue-potential-panel__notice {
        max-width: none;
        margin-top: 10px;
        text-align: left;
    }

    .revenue-potential-coworker__actions .btn-primary,
    .revenue-potential-coworker__actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .kanslia-widget {
        right: 12px;
        bottom: 12px;
    }

    .kanslia-widget__avatar-shell {
        width: 98px;
        height: 98px;
    }

    .kanslia-widget__panel {
        width: min(620px, calc(100vw - 24px));
        height: min(820px, calc(100vh - 120px));
    }

    .kanslia-widget__toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .lp-potential-live__intro,
    .lp-potential-live__form,
    .lp-potential-live__results {
        grid-template-columns: 1fr;
    }

    .lp-potential-live__intro {
        display: block;
    }

    .lp-potential-live__result-value {
        white-space: normal;
    }

    .lp-potential-summary-panel__grid {
        grid-template-columns: 1fr;
    }

    .lp-potential-summary-panel__total-value,
    .lp-potential-summary-panel__value {
        white-space: normal;
    }

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

    .revenue-potential-results {
        grid-template-columns: 1fr;
    }
}

.revenue-potential-card--total {
    grid-column: 1 / -1;
}

/* =========
   BREDDAFFAREN BRAND OVERRIDES
   ========= */
:root {
    --bg-page: #f6f4ef;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-card: #ffffff;
    --bg-card-alt: #f7f3ed;
    --border-subtle: rgba(22, 70, 42, 0.12);
    --text-main: #031A0C;
    --text-muted: rgba(3, 26, 12, 0.72);
    --text-soft: rgba(3, 26, 12, 0.48);
    --text-link: #16462A;
    --accent: #16462A;
    --accent-soft: rgba(22, 70, 42, 0.1);
    --danger: #c2410c;
}

body,
button,
input,
select,
textarea {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.lp-hero-title,
.lp-section-title,
.lp-feature-title,
.lp-step-title,
.lp-bottom-cta-title {
    font-weight: 700;
}

body {
    background: radial-gradient(circle at top, #ffffff 0, #f6f4ef 56%, #efe8de 100%);
    color: var(--text-main);
}

a,
button {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-header {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(22, 70, 42, 0.12);
}

.brand-logo {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-subtitle--tagline {
    display: block;
    white-space: nowrap;
}

.nav-link {
    background: rgba(22, 70, 42, 0.08);
    color: var(--text-main);
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary,
.lp-btn-hero-primary,
.lp-btn-cta-primary,
.login-button {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(22, 70, 42, 0.2);
}

.btn-primary:hover,
.lp-btn-hero-primary:hover,
.lp-btn-cta-primary:hover,
.login-button:hover {
    background: #082b59;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(8, 43, 89, 0.22);
}

.btn-secondary,
.lp-btn-hero-secondary,
.lp-btn-cta-secondary {
    border-color: rgba(22, 70, 42, 0.24);
    color: var(--accent);
}

.btn-secondary:hover,
.lp-btn-hero-secondary:hover,
.lp-btn-cta-secondary:hover {
    background: rgba(255, 117, 31, 0.1);
    border-color: #ff751f;
    color: #031A0C;
}

.app-footer {
    background: #031A0C;
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
}

.app-footer__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.app-footer__logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.app-footer__logo {
    display: block;
    height: 34px;
    width: auto;
}

.app-footer__brand-text {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lp-hero {
    background: linear-gradient(135deg, #16462A 0%, #031A0C 100%);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(3, 26, 12, 0.28);
}

.lp-hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.lp-hero-badge-dot {
    background: #CBA589;
}

.lp-dot-orange {
    background: #ff751f;
}

.lp-dot-pink {
    background: #DB80A1;
}

.lp-hero-footnote a,
.lp-section a {
    color: #CBA589;
}

.lp-hero-footnote a:hover,
.lp-section a:hover {
    color: #ff751f;
}

.lp-section-eyebrow {
    color: #16462A;
}

.lp-section-title {
    color: #031A0C;
}

.lp-section-subtitle {
    color: rgba(3, 26, 12, 0.72);
}

.lp-feature-card,
.lp-step--potential,
.lp-pricing-card {
    background: #ffffff;
    border: 1px solid rgba(22, 70, 42, 0.1);
    box-shadow: 0 12px 28px rgba(3, 26, 12, 0.06);
}

.lp-feature-icon.lp-icon-green {
    background: rgba(22, 70, 42, 0.12);
    color: #16462A;
}

.lp-feature-icon.lp-icon-orange {
    background: rgba(255, 117, 31, 0.12);
    color: #ff751f;
}

.lp-feature-icon.lp-icon-pink {
    background: rgba(219, 128, 161, 0.16);
    color: #DB80A1;
}

.lp-steps {
    background: #031A0C;
    color: #f8f6f1;
}

.lp-section-eyebrow--light {
    color: #CBA589;
}

.lp-section-subtitle--light,
.lp-step-text,
.lp-steps-callout {
    color: rgba(248, 246, 241, 0.86);
}

.lp-step {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-step--total {
    background: linear-gradient(135deg, rgba(203, 165, 137, 0.18), rgba(219, 128, 161, 0.12));
}

.lp-step--cost {
    background: linear-gradient(135deg, rgba(8, 43, 89, 0.22), rgba(22, 70, 42, 0.2));
}

.lp-bottom-cta {
    background: linear-gradient(135deg, #CBA589 0%, #DB80A1 100%);
    color: #031A0C;
}

.lp-btn-cta-primary {
    background: #031A0C;
}

.lp-btn-cta-primary:hover {
    background: #16462A;
}

.lp-btn-cta-secondary {
    background: rgba(255, 255, 255, 0.84);
}

.lp-potential-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.lp-potential-live {
    order: 1;
}

.lp-potential-cards {
    order: 2;
}

.lp-potential-total {
    order: 3;
}

.lp-potential-compare {
    order: 4;
}

.lp-potential-section .lp-potential-cards,
.lp-potential-section .lp-potential-total,
.lp-potential-section .lp-potential-compare {
    display: none;
}

.lp-potential-showcase .lp-potential-total,
.lp-potential-showcase .lp-potential-compare,
.lp-potential-showcase .lp-potential-showcase__cards {
    display: grid;
}

.lp-potential-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.lp-potential-total {
    text-align: center;
    padding-block: calc(var(--card-padding) + 4px);
}

.lp-potential-total .lp-step-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.lp-potential-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.lp-potential-compare__card .lp-step-number {
    opacity: 0.9;
}

.lp-potential-actions {
    margin-top: var(--space-3);
}

.lp-section {
    padding: 56px 5vw;
}

.lp-hero {
    padding-top: 40px;
    padding-bottom: 42px;
}

.lp-hero .lp-inner {
    width: min(1200px, calc(100% - 40px));
}

.lp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lp-hero-title {
    font-size: clamp(1.9rem, 3.05vw, 2.75rem);
    line-height: 1.05;
    margin-bottom: 12px;
    max-width: 12.5ch;
}

.lp-hero-subtitle {
    max-width: 58ch;
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 16px;
}

.lp-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lp-btn-hero-primary,
.lp-btn-hero-contrast,
.lp-btn-hero-secondary,
.lp-btn-cta-primary,
.lp-btn-cta-secondary {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.lp-btn-hero-primary,
.lp-btn-hero-contrast,
.lp-btn-cta-primary {
    min-height: 46px;
    padding: 11px 20px;
}

.lp-btn-hero-secondary,
.lp-btn-cta-secondary {
    min-height: 46px;
    padding: 12px 20px;
}

.lp-btn-hero-primary,
.lp-btn-hero-contrast {
    flex: 0 0 auto;
}

.lp-btn-hero-contrast {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #10243d;
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(3, 26, 12, 0.16);
    text-decoration: none;
    font-weight: 700;
}

.lp-btn-hero-contrast:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(3, 26, 12, 0.22);
    background: #ffffff;
}

.lp-hero-panel {
    display: grid;
    gap: 12px;
    align-self: start;
    justify-self: end;
    width: min(100%, 365px);
    padding: 17px 17px 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(3, 26, 12, 0.2);
}

.lp-hero-panel__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #CBA589;
    font-weight: 700;
}

.lp-hero-panel__title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
    max-width: 22ch;
}

.lp-hero-panel__items {
    display: grid;
    gap: 10px;
}

.lp-hero-panel__item {
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-hero-panel__item-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.lp-hero-panel__item p,
.lp-hero-panel__footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.42;
    font-size: 0.85rem;
}

.lp-hero-panel__footer {
    padding-top: 2px;
}

.lp-hero-panel__price {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.lp-section-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    margin-bottom: 10px;
}

.lp-section-subtitle {
    max-width: 70ch;
    font-size: 1rem;
    line-height: 1.68;
}

.lp-feature-grid {
    gap: 22px;
    margin-top: 28px;
}

.lp-feature-card {
    padding: 22px 22px 20px;
    border-radius: 20px;
}

.lp-feature-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(22, 70, 42, 0.08);
    color: #16462A;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lp-built-list,
.lp-pricing-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-built-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.lp-built-list li,
.lp-pricing-list li {
    position: relative;
    padding-left: 20px;
    color: #334155;
    line-height: 1.55;
}

.lp-built-list li::before,
.lp-pricing-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #7ed957;
}

.lp-potential-showcase {
    gap: 18px;
    margin-bottom: 30px;
}

.lp-potential-showcase__intro {
    gap: 10px;
}

.lp-potential-summary-panel,
.lp-potential-live {
    border-radius: 26px;
}

.lp-potential-live {
    margin-top: 0;
    padding: 26px;
}

.lp-potential-live__intro {
    margin-bottom: 18px;
}

.lp-potential-live__title {
    font-size: 1.4rem;
}

.lp-potential-live__form {
    gap: 16px;
}

.lp-potential-stack {
    gap: 0;
}

.lp-potential-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.lp-pricing-prelude {
    margin: 0 0 8px;
    color: #16462A;
    font-size: 0.94rem;
    font-weight: 700;
}

.lp-pricing-grid {
    grid-template-columns: minmax(0, 560px);
}

.lp-pricing-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.lp-pricing-actions {
    margin-top: 22px;
}

.lp-bottom-cta-title {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.lp-bottom-cta-sub {
    max-width: 52ch;
}

@media (max-width: 900px) {
    .lp-section {
        padding: 44px 5vw;
    }

    .lp-hero {
        padding-top: 16px;
        padding-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
    }

    .lp-hero .lp-inner {
        width: calc(100% - 10px);
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

    .lp-potential-showcase__cards,
    .lp-potential-showcase__bottom {
        grid-template-columns: 1fr;
    }

    .lp-potential-cards,
    .lp-potential-compare {
        grid-template-columns: 1fr;
    }

    .lp-hero-title {
        max-width: none;
        font-size: clamp(1.9rem, 8vw, 2.55rem);
    }

    .lp-hero-subtitle {
        max-width: none;
    }

    .lp-hero-cta-row {
        align-items: stretch;
    }

    .lp-btn-hero-primary,
    .lp-btn-hero-contrast,
    .lp-btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .lp-hero-panel {
        width: 100%;
        justify-self: stretch;
        padding: 12px;
        border-radius: 20px;
    }

    .lp-hero-panel__items {
        gap: 8px;
    }

    .lp-hero-panel__item {
        padding: 9px 10px;
        border-radius: 14px;
    }
}

.client-sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(22, 70, 42, 0.12);
}

.client-sidebar__link:hover,
.client-sidebar__sublink:hover {
    background: rgba(22, 70, 42, 0.08);
}

.client-sidebar__link.is-open,
.client-sidebar__sublink.is-active {
    background: rgba(22, 70, 42, 0.14);
    color: #16462A;
}

.client-sidebar__icon {
    color: #16462A;
}

.wizard-card,
.swap-modal__card,
.grants-card,
.team-overview-card,
.team-sync-card,
.sponsor-result__card,
.sponsor-page-card,
.kanslia-dashboard__card,
.kanslia-page-simple__card,
.kanslia-page-simple__mini-card,
.dashboard-overview__card,
.login-box {
    border-color: rgba(22, 70, 42, 0.12);
    box-shadow: 0 12px 28px rgba(3, 26, 12, 0.08);
}

.wizard-card::before {
    background: linear-gradient(90deg, #16462A, #CBA589);
}

.grants-title,
.sponsor-company-card-page__title,
.dashboard-overview__card-title,
.kanslia-dashboard__card h3,
.kanslia-page-simple__mini-card h3,
.kanslia-page-simple__card h2,
.team-card__header h2,
.login-box h1 {
    color: #031A0C;
}

.dashboard-overview__card {
    border-color: rgba(22, 70, 42, 0.12);
}

.dashboard-overview__card-link {
    background: #16462A;
}

.dashboard-overview__card-link:hover {
    background: #082b59;
}

.dashboard-overview__card-link--green {
    background: #16462A;
}

.dashboard-overview__card-link--blue {
    background: #082b59;
}

.dashboard-overview__card-link--red {
    background: #DB80A1;
}

.dashboard-overview__card-link--calendar {
    background: #CBA589;
    color: #031A0C;
}

.sponsor-pipeline__summary-card {
    border-color: rgba(22, 70, 42, 0.12);
    box-shadow: 0 10px 24px rgba(3, 26, 12, 0.06);
}

.sponsor-pipeline__summary-card--red {
    background: linear-gradient(180deg, rgba(219, 128, 161, 0.18) 0%, #ffffff 100%);
    border-color: rgba(219, 128, 161, 0.36);
}

.sponsor-pipeline__summary-card--yellow {
    background: linear-gradient(180deg, rgba(203, 165, 137, 0.22) 0%, #ffffff 100%);
    border-color: rgba(203, 165, 137, 0.4);
}

.sponsor-pipeline__summary-card--green {
    background: linear-gradient(180deg, rgba(22, 70, 42, 0.12) 0%, #ffffff 100%);
    border-color: rgba(22, 70, 42, 0.24);
}

.login-box {
    border-color: rgba(22, 70, 42, 0.14);
}

.login-box input:focus {
    border-color: #16462A;
    box-shadow: 0 0 0 3px rgba(22, 70, 42, 0.14);
    outline: none;
}

/* =========
   DESIGN SYSTEM NORMALIZATION
   ========= */
.archive-top-tab {
    border-color: var(--color-border-subtle);
    background: var(--color-surface-subtle);
    color: var(--color-text-main);
}

.archive-top-tab:hover {
    background: rgba(22, 70, 42, 0.08);
    border-color: var(--color-primary);
    color: var(--color-text-main);
}

.archive-top-tab.is-unopened {
    background: rgba(219, 128, 161, 0.18);
    border-color: rgba(219, 128, 161, 0.38);
    color: var(--color-secondary);
}

.archive-top-tab.is-unopened:hover {
    background: rgba(203, 165, 137, 0.28);
    border-color: var(--color-accent-2);
    color: var(--color-secondary);
}

.team-check--weekday.is-active {
    background: rgba(22, 70, 42, 0.12);
    border-color: rgba(22, 70, 42, 0.22);
    color: var(--color-primary);
}

.team-check--weekend.is-active {
    background: rgba(219, 128, 161, 0.16);
    border-color: rgba(219, 128, 161, 0.28);
    color: var(--color-secondary);
}

.team-sync-guidance,
.team-sync-persist {
    border-color: var(--color-border-subtle);
    background: var(--color-surface-subtle);
    color: var(--color-text-main);
}

.team-sync-guidance.is-warning {
    border-color: rgba(203, 165, 137, 0.5);
    background: rgba(203, 165, 137, 0.18);
    color: var(--color-secondary);
}

.team-sync-persist.is-success {
    border-color: rgba(22, 70, 42, 0.26);
    background: rgba(22, 70, 42, 0.1);
    color: var(--color-primary);
}

.team-sync-persist.is-error {
    border-color: rgba(219, 128, 161, 0.34);
    background: rgba(219, 128, 161, 0.12);
    color: var(--color-secondary);
}

.btn-soft-blue,
.btn-soft-orange,
.btn-soft-green {
    border-radius: var(--radius-pill);
    box-shadow: none;
}

.btn-soft-blue {
    border-color: rgba(8, 43, 89, 0.22);
    background: rgba(8, 43, 89, 0.08);
    color: var(--color-accent-4);
}

.btn-soft-blue:hover {
    background: rgba(8, 43, 89, 0.14);
    box-shadow: var(--shadow-card-soft);
}

.btn-soft-orange {
    border-color: rgba(255, 117, 31, 0.26);
    background: rgba(255, 117, 31, 0.1);
    color: var(--color-accent-1);
}

.btn-soft-orange:hover,
.btn-soft-orange.is-active {
    background: rgba(255, 117, 31, 0.16);
}

.btn-soft-green {
    border-color: rgba(22, 70, 42, 0.24);
    background: rgba(22, 70, 42, 0.1);
    color: var(--color-primary);
}

.btn-soft-green:hover {
    background: rgba(22, 70, 42, 0.16);
    box-shadow: var(--shadow-card-soft);
}

.sponsor-page-card__ai .btn-secondary,
.sponsor-page-card__ai [data-ai="sponsor"],
.sponsor-page-card__ai [data-ai="evenemang"],
.sponsor-page-card__ai [data-ai="custom"] {
    border-radius: var(--radius-pill);
}

.sponsor-page-card__ai [data-ai="sponsor"] {
    background: rgba(8, 43, 89, 0.08);
    border-color: rgba(8, 43, 89, 0.22);
    color: var(--color-accent-4);
}

.sponsor-page-card__ai [data-ai="evenemang"] {
    background: rgba(22, 70, 42, 0.1);
    border-color: rgba(22, 70, 42, 0.22);
    color: var(--color-primary);
}

.sponsor-page-card__ai [data-ai="custom"] {
    background: rgba(255, 117, 31, 0.1);
    border-color: rgba(255, 117, 31, 0.24);
    color: var(--color-accent-1);
}

.sponsor-page-card__ai .btn-secondary:hover {
    background: rgba(203, 165, 137, 0.18);
    border-color: var(--color-accent-2);
}

.sponsor-pdf-page .btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.sponsor-pdf-page .btn-primary:hover {
    background: var(--color-accent-4);
    border-color: var(--color-accent-4);
}

.sponsor-pdf-page .btn-secondary,
.sponsor-pdf-page .btn-soft-blue {
    background: var(--color-surface-card);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sponsor-pdf-page .btn-secondary:hover,
.sponsor-pdf-page .btn-soft-blue:hover {
    background: rgba(255, 117, 31, 0.08);
    border-color: var(--color-accent-1);
}

.planned-company-card {
    border-color: var(--color-border-subtle);
    box-shadow: var(--shadow-card-soft);
}

.planned-company-card.status-1,
.planned-company-card-new {
    background: var(--color-surface-card);
}

.planned-company-card.status-2 {
    background: rgba(203, 165, 137, 0.2);
}

.planned-company-card.status-3 {
    background: rgba(22, 70, 42, 0.1);
}

.planned-company-card.status-4 {
    background: rgba(219, 128, 161, 0.14);
}

.planned-company-card:hover {
    background-image: linear-gradient(rgba(22, 70, 42, 0.03), rgba(22, 70, 42, 0.03));
    box-shadow: var(--shadow-card);
}

.contact-link-phone {
    color: var(--color-primary);
}

.contact-link-phone:hover,
.contact-link-followup:hover {
    color: var(--color-accent-4);
}

.status-toggle-btn {
    border-color: var(--color-border-subtle);
    background: var(--color-surface-subtle);
    color: var(--color-text-main);
}

.status-toggle-btn:hover {
    background: rgba(22, 70, 42, 0.08);
    border-color: rgba(22, 70, 42, 0.24);
}

.status-toggle-btn.is-active.status-contacted {
    background: rgba(203, 165, 137, 0.9);
    border-color: var(--color-accent-2);
    color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(203, 165, 137, 0.28);
}

.status-toggle-btn.is-active.status-sponsored {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 12px rgba(22, 70, 42, 0.28);
}

.status-toggle-btn.is-active.status-notinterested {
    background: var(--color-accent-3);
    border-color: var(--color-accent-3);
    color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(219, 128, 161, 0.3);
}

.btn-soft-mail,
.btn-soft-phone,
.btn-soft-sales,
.btn-soft-followup {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.btn-soft-mail:hover,
.btn-soft-phone:hover,
.btn-soft-sales:hover,
.btn-soft-followup:hover {
    background: var(--color-accent-4);
    border-color: var(--color-accent-4);
    box-shadow: var(--shadow-card-soft);
}

.email-modal-overlay,
.phone-modal-overlay {
    background: rgba(3, 26, 12, 0.56);
}

.email-modal-card,
.phone-modal-card {
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 20px 45px rgba(3, 26, 12, 0.22);
}

.email-modal-close:hover,
.email-modal-copy-subject-btn:hover {
    background: rgba(22, 70, 42, 0.08);
}

.email-modal-subject {
    background: rgba(8, 43, 89, 0.08);
    border-color: rgba(8, 43, 89, 0.2);
    color: var(--color-secondary);
}

.email-modal-body,
.phone-modal-number {
    background: var(--color-surface-subtle);
    border-color: var(--color-border-subtle);
    color: var(--color-text-main);
}

.email-modal-body.loading::before {
    border-top-color: var(--color-primary);
}

.agreement-actions .btn-soft-sponsor {
    background: rgba(8, 43, 89, 0.08);
    border-color: rgba(8, 43, 89, 0.24);
    color: var(--color-accent-4);
    box-shadow: none;
}

.agreement-actions .btn-soft-other {
    background: rgba(22, 70, 42, 0.1);
    border-color: rgba(22, 70, 42, 0.24);
    color: var(--color-primary);
    box-shadow: none;
}

.sponsor-builder-panel--simple {
    display: grid;
    gap: 24px;
}

.sponsor-builder-panel--wizard {
    max-width: 980px;
    margin: 0 auto;
}

.sponsor-wizard {
    border-radius: 28px;
    border: 1px solid rgba(8, 43, 89, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.12), transparent 28%),
        linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.sponsor-wizard__frame {
    padding: 32px;
}

.sponsor-wizard__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.sponsor-wizard__stepcount {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(8, 43, 89, 0.08);
    color: #082b59;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sponsor-wizard__progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.sponsor-wizard__progress-dot {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #dbe4ef;
}

.sponsor-wizard__progress-dot.is-active,
.sponsor-wizard__progress-dot.is-complete {
    background: linear-gradient(90deg, #082b59 0%, #ff751f 100%);
}

.sponsor-wizard__step {
    display: none;
}

.sponsor-wizard__step.is-active {
    display: block;
}

.sponsor-wizard__eyebrow {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sponsor-wizard__title {
    margin: 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.05;
}

.sponsor-wizard__text {
    margin: 10px 0 0;
    max-width: 720px;
    color: #475569;
    font-size: 18px;
    line-height: 1.55;
}

.sponsor-wizard__subhead {
    margin: 18px 0 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.sponsor-wizard__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.sponsor-wizard__choice-grid {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

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

.sponsor-wizard__choice-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sponsor-wizard__choice-grid--values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-wizard__choice-grid--values .sponsor-wizard-choice {
    min-height: 116px;
}

.sponsor-wizard__choice-grid--values .sponsor-wizard-choice strong {
    font-size: 18px;
}

.sponsor-wizard-choice {
    display: flex;
    min-height: 136px;
    min-width: 0;
    padding: 20px 18px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    border-radius: 22px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sponsor-wizard-choice__check {
    width: 18px;
    height: 18px;
    margin: 0 0 2px;
    accent-color: #082b59;
    cursor: pointer;
    flex-shrink: 0;
}

.sponsor-wizard-choice strong,
.sponsor-wizard-choice span {
    display: block;
}

.sponsor-wizard-choice strong {
    font-size: 20px;
    line-height: 1.15;
}

.sponsor-wizard-choice span {
    color: #475569;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sponsor-wizard-choice:hover {
    border-color: rgba(8, 43, 89, 0.24);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.sponsor-wizard-choice.is-active,
.sponsor-wizard-choice:has(.sponsor-wizard-choice__check:checked),
.sponsor-wizard-choice--cta {
    border-color: #082b59;
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.18), transparent 34%),
        linear-gradient(145deg, #0b345f 0%, #16486f 100%);
    color: #f8fafc;
}

.sponsor-wizard-choice.is-active span,
.sponsor-wizard-choice:has(.sponsor-wizard-choice__check:checked) span,
.sponsor-wizard-choice--cta span,
.sponsor-wizard-choice.is-active strong,
.sponsor-wizard-choice:has(.sponsor-wizard-choice__check:checked) strong,
.sponsor-wizard-choice--cta strong {
    color: inherit;
}

.sponsor-wizard__hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-wizard__assistant {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(8, 43, 89, 0.12);
    background: rgba(8, 43, 89, 0.05);
}

.sponsor-wizard__assistant--soft {
    background: rgba(255, 117, 31, 0.06);
    border-color: rgba(255, 117, 31, 0.16);
}

.sponsor-wizard__assistant strong {
    color: #082b59;
}

.sponsor-wizard__assistant span {
    color: #334155;
    line-height: 1.5;
}

.sponsor-wizard__package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.sponsor-wizard-package {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.sponsor-wizard-package__top {
    display: grid;
    gap: 6px;
}

.sponsor-wizard-package__tag {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sponsor-wizard-package__top strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.sponsor-wizard-package__price {
    margin: 14px 0 8px;
    color: #082b59;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.sponsor-wizard-package__text {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.sponsor-wizard-package__list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #334155;
}

.sponsor-wizard-package__list li + li {
    margin-top: 6px;
}

.sponsor-wizard__inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.sponsor-wizard__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.sponsor-wizard__footer .btn-primary,
.sponsor-wizard__footer .btn-secondary {
    min-width: 150px;
}

.sponsor-wizard__statusline {
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
}

.sponsor-wizard__empty {
    padding: 24px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
}

.sponsor-advanced-workspace.is-hidden {
    display: none;
}

.sponsor-builder-highlight {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sponsor-builder-highlight__item {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(8, 43, 89, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.18), transparent 38%),
        linear-gradient(145deg, #fff8ef 0%, #f7fbff 100%);
    box-shadow: 0 14px 28px rgba(8, 43, 89, 0.08);
}

.sponsor-builder-highlight__item strong,
.sponsor-builder-highlight__item span {
    display: block;
}

.sponsor-builder-highlight__item strong {
    margin-bottom: 6px;
    color: #082b59;
    font-size: 15px;
}

.sponsor-builder-highlight__item span {
    color: #334155;
    line-height: 1.5;
}

.sponsor-flow-step__eyebrow {
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.sponsor-flow-step--profile {
    background:
        linear-gradient(135deg, rgba(8, 43, 89, 0.04), transparent 55%),
        linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
}

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

.sponsor-choice-grid--single {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sponsor-choice-card {
    min-height: 92px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #d9e2ef;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    text-align: left;
    font: inherit;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sponsor-choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 43, 89, 0.28);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.sponsor-choice-card.is-active {
    border-color: #082b59;
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.18), transparent 35%),
        linear-gradient(145deg, #0b345f 0%, #16486f 100%);
    color: #f8fafc;
    box-shadow: 0 16px 34px rgba(8, 43, 89, 0.22);
}

.sponsor-choice-card__label {
    display: block;
    line-height: 1.4;
}

.sponsor-package-stage-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    margin-bottom: 18px;
    border-radius: 22px;
    border: 1px solid rgba(8, 43, 89, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.18), transparent 32%),
        linear-gradient(140deg, #fffaf4 0%, #f6fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.sponsor-package-stage-card__eyebrow {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.sponsor-package-stage-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
}

.sponsor-package-stage-card__text {
    margin: 10px 0 0;
    max-width: 640px;
    color: #475569;
    line-height: 1.6;
}

.sponsor-package-stage-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sponsor-pdf-page [data-value-proposition-card],
.sponsor-pdf-page [data-matching-card],
.sponsor-pdf-page [data-communication-card] {
    display: none;
}

.sponsor-package-empty-state {
    display: grid;
    gap: 8px;
    padding: 28px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.sponsor-package-empty-state strong {
    color: #0f172a;
}

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

.sponsor-package-card {
    overflow: hidden;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(8, 43, 89, 0.12);
    background: #fff;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.08);
}

.sponsor-package-card__media {
    position: relative;
    min-height: 220px;
    background: linear-gradient(135deg, #103f67 0%, #082b59 45%, #ff751f 120%);
}

.sponsor-package-card__media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sponsor-package-card__media.is-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%);
}

.sponsor-package-card__media-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    color: #fff;
}

.sponsor-package-card__media-copy span,
.sponsor-package-card__media-copy strong {
    display: block;
}

.sponsor-package-card__media-copy span {
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.86;
}

.sponsor-package-card__media-copy strong {
    max-width: 260px;
    font-size: 24px;
    line-height: 1.15;
}

.sponsor-package-card__logo-slot {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #082b59;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.sponsor-package-card__body {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.sponsor-package-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.sponsor-package-card__tag,
.sponsor-package-card__status,
.sponsor-package-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sponsor-package-card__tag {
    background: rgba(8, 43, 89, 0.08);
    color: #082b59;
}

.sponsor-package-card__status {
    background: rgba(255, 117, 31, 0.1);
    color: #9a3412;
}

.sponsor-package-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.sponsor-package-card__title,
.sponsor-package-card__subtitle,
.sponsor-package-card__price,
.sponsor-package-card__list-item span[contenteditable="true"] {
    border-radius: 12px;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sponsor-package-card__title {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
}

.sponsor-package-card__subtitle {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-package-card__price {
    min-width: 140px;
    padding: 14px 16px;
    border: 1px solid rgba(8, 43, 89, 0.14);
    background: linear-gradient(160deg, #fff8ef 0%, #ffffff 100%);
    color: #082b59;
    font-size: 28px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.sponsor-package-card__title[contenteditable="true"]:focus,
.sponsor-package-card__subtitle[contenteditable="true"]:focus,
.sponsor-package-card__price[contenteditable="true"]:focus,
.sponsor-package-card__list-item span[contenteditable="true"]:focus {
    outline: none;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(8, 43, 89, 0.14);
}

.sponsor-package-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-package-card__badge {
    background: #f8fafc;
    color: #334155;
}

.sponsor-package-card__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sponsor-package-card__section {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sponsor-package-card__section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.sponsor-package-card__section-head strong {
    color: #0f172a;
}

.sponsor-package-card__mini-btn,
.sponsor-package-card__remove-item {
    border: 0;
    background: transparent;
    color: #082b59;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.sponsor-package-card__remove-item {
    color: #b91c1c;
}

.sponsor-package-card__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sponsor-package-card__list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.sponsor-package-card__list-item span {
    display: block;
    line-height: 1.5;
    color: #334155;
}

.sponsor-package-card__list-item.is-empty {
    grid-template-columns: 1fr;
}

.sponsor-package-card__list-item.is-empty span {
    color: #64748b;
}

.sponsor-package-card__actions {
    display: flex;
    justify-content: flex-end;
}

.sponsor-archive-card {
    display: grid;
    gap: 16px;
}

.sponsor-archive-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.sponsor-archive-toolbar__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sponsor-archive-toolbar__copy strong {
    color: #0f172a;
}

.sponsor-archive-toolbar__copy span {
    color: #64748b;
    font-size: 14px;
}

.sponsor-archive-toolbar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.sponsor-archive-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.sponsor-archive-toolbar__sort select {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    background: #fff;
    color: #111827;
}

.sponsor-archive-view-toggle {
    display: inline-flex;
    gap: 8px;
}

.sponsor-archive-card[data-archive-view="cards"] .grants-row--head {
    display: none;
}

.sponsor-archive-card[data-archive-view="cards"] .pdf-list-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.12), transparent 34%),
        linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.sponsor-archive-card[data-archive-view="cards"] .pdf-list-row .grants-cell:first-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

@media (max-width: 980px) {
    .sponsor-builder-highlight,
    .sponsor-page-list,
    .sponsor-package-card__columns,
    .sponsor-wizard__package-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-wizard__field-grid,
    .sponsor-wizard__choice-grid--3,
    .sponsor-wizard__choice-grid--values,
    .sponsor-wizard__choice-grid--5 {
        grid-template-columns: 1fr;
    }

    .sponsor-wizard__top,
    .sponsor-wizard__footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 860px) {
    .sponsor-package-stage-card,
    .sponsor-package-card__header,
    .sponsor-archive-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-package-card__price {
        text-align: left;
    }
}

.dashboard-overview {
    padding: 22px 24px 28px;
}

.dashboard-overview__hero--primary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(8, 43, 89, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.14), transparent 30%),
        linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.dashboard-overview__hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.dashboard-overview__hero-highlight {
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(8, 43, 89, 0.10);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__hero-highlight span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview__hero-highlight strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
}

.dashboard-overview__role-setup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(8, 43, 89, 0.12);
    background:
        radial-gradient(circle at top right, rgba(8, 43, 89, 0.08), transparent 36%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__role-setup-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-overview__role-setup-copy {
    margin: 0;
    max-width: 780px;
    color: #475569;
    line-height: 1.6;
}

.dashboard-overview__card-link--ghost {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.18);
}

.dashboard-overview__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-overview__metric-card {
    display: grid;
    grid-template-rows: auto auto minmax(38px, auto) minmax(46px, auto) minmax(82px, auto);
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__metric-card--good {
    background: linear-gradient(160deg, #f2fbf5 0%, #ffffff 100%);
    border-color: #ccebd7;
}

.dashboard-overview__metric-card--opportunity {
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
    border-color: #f2ddb3;
}

.dashboard-overview__metric-card--risk {
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 100%);
    border-color: #f2d0d0;
}

.dashboard-overview__metric-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-overview__metric-value {
    margin-bottom: 6px;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.dashboard-overview__metric-meta {
    min-height: 38px;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-overview__metric-progress {
    margin-top: 12px;
}

.dashboard-overview__metric-progress.is-empty {
    align-content: start;
}

.dashboard-overview__metric-progress-bar {
    height: 9px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.dashboard-overview__metric-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #082b59, #ff751f);
}

.dashboard-overview__metric-progress-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.dashboard-overview__metric-progress-placeholder {
    height: 9px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.7);
}

.dashboard-overview__metric-estimate {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 4px;
}

.dashboard-overview__metric-estimate-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-overview__metric-estimate-value {
    color: #082b59;
    font-size: 22px;
    line-height: 1.1;
}

.dashboard-overview__metric-estimate-meta {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.dashboard-overview__focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.sponsor-overview__metric-card {
    min-height: 214px;
}

.sponsor-overview__focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.sponsor-overview__focus-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sponsor-overview__analysis-copy {
    margin-bottom: 16px;
}

.sponsor-overview__analysis-callout {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: #f8fbff;
}

.sponsor-overview__analysis-callout--risk {
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 100%);
    border-color: #f2d0d0;
}

.sponsor-overview__analysis-callout--opportunity {
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
    border-color: #f2ddb3;
}

.sponsor-overview__analysis-callout--good {
    background: linear-gradient(160deg, #f2fbf5 0%, #ffffff 100%);
    border-color: #ccebd7;
}

.sponsor-overview__analysis-callout h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.sponsor-overview__analysis-callout p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-overview__analysis-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sponsor-overview__analysis-section + .sponsor-overview__analysis-section {
    margin-top: 18px;
}

.sponsor-overview__analysis-stage-list {
    gap: 10px;
    margin-bottom: 12px;
}

.sponsor-overview__analysis-stage {
    padding: 14px 0;
}

.sponsor-overview__analysis-stage-copy {
    display: grid;
    gap: 4px;
}

.sponsor-overview__analysis-stage-copy strong {
    color: #0f172a;
    font-size: 15px;
}

.sponsor-overview__analysis-stage-copy span {
    color: #64748b;
    font-size: 13px;
}

.sponsor-overview__analysis-stage-value {
    color: #0f172a;
    font-size: 15px;
}

.sponsor-overview__analysis-note {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.sponsor-overview__focus-stat--wide {
    grid-column: span 3;
}

.sponsor-overview__forecast-card {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #f2ddb3;
    border-radius: 18px;
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
}

.sponsor-overview__forecast-topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sponsor-overview__forecast-topline span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sponsor-overview__forecast-topline strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.sponsor-overview__forecast-bar {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #fde7c7;
    overflow: hidden;
}

.sponsor-overview__forecast-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
}

.sponsor-overview__forecast-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.sponsor-overview__focus-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-overview__focus-footer {
    margin-top: auto;
}

.dashboard-overview__focus-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #dbe5f0;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.dashboard-overview__focus-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: #dbe5f0;
}

.dashboard-overview__focus-card--sponsor {
    border-color: rgba(255, 117, 31, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 31, 0.18), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fff7f0 100%);
    box-shadow: 0 20px 38px rgba(8, 43, 89, 0.08);
}

.dashboard-overview__focus-card--sponsor::before {
    background: linear-gradient(90deg, #082b59 0%, #ff751f 100%);
}

.dashboard-overview__focus-card--actions {
    border-color: rgba(8, 43, 89, 0.16);
    background:
        radial-gradient(circle at top right, rgba(11, 107, 220, 0.12), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 20px 38px rgba(8, 43, 89, 0.08);
}

.dashboard-overview__focus-card--actions::before {
    background: linear-gradient(90deg, #082b59 0%, #0b6bdc 100%);
}

.dashboard-overview__focus-card--kanslia {
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.10), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fff9f7 100%);
}

.dashboard-overview__focus-card--grant {
    border-color: rgba(11, 107, 220, 0.18);
    background:
        radial-gradient(circle at top right, rgba(11, 107, 220, 0.14), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 20px 38px rgba(11, 107, 220, 0.08);
}

.dashboard-overview__focus-card--grant::before {
    background: linear-gradient(90deg, #0b6bdc 0%, #4338ca 100%);
}

.dashboard-overview__focus-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.dashboard-overview__focus-title {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
    color: #0f172a;
}

.dashboard-overview__focus-copy {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.6;
}

.dashboard-overview__focus-card--sponsor .dashboard-overview__card-eyebrow,
.dashboard-overview__focus-card--sponsor .dashboard-overview__metric-note {
    color: #082b59;
}

.dashboard-overview__focus-card--grant .dashboard-overview__card-eyebrow,
.dashboard-overview__focus-card--grant .dashboard-overview__metric-note {
    color: #0b6bdc;
}

.dashboard-overview__focus-card--actions .dashboard-overview__card-eyebrow,
.dashboard-overview__focus-card--actions .dashboard-overview__metric-note {
    color: #082b59;
}

.dashboard-overview__mini-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    color: #082b59;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-overview__focus-card--sponsor .dashboard-overview__mini-link {
    background: rgba(255, 245, 235, 0.96);
    border-color: rgba(255, 117, 31, 0.24);
    color: #082b59;
}

.dashboard-overview__focus-card--grant .dashboard-overview__mini-link {
    background: #eef2ff;
    border-color: rgba(11, 107, 220, 0.22);
    color: #1d4ed8;
}

.dashboard-overview__focus-card--actions .dashboard-overview__mini-link {
    background: #eff6ff;
    border-color: rgba(8, 43, 89, 0.18);
    color: #082b59;
}

.dashboard-overview__mini-link--cta {
    background: #082b59;
    border-color: #082b59;
    color: #fff;
}

.dashboard-overview__mini-link--button {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-overview__action-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-overview__action-form--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-overview__action-input {
    width: 100%;
    min-height: 68px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.dashboard-overview__action-input:focus {
    outline: none;
    border-color: rgba(239, 68, 68, 0.34);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.dashboard-overview__action-input--large {
    min-height: 132px;
    font-size: 16px;
}

.dashboard-overview__kanslia-shell {
    margin-top: 6px;
}

.dashboard-overview__kanslia-input {
    min-height: 92px;
    max-height: 180px;
    resize: vertical;
}

.dashboard-overview__action-submit {
    min-width: 178px;
    justify-content: center;
}

.dashboard-overview__focus-grid--dashboard {
    grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(260px, 0.9fr));
    align-items: stretch;
}

.dashboard-overview__focus-grid--three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.dashboard-overview__focus-grid--mini {
    gap: 14px;
}

.dashboard-overview__focus-card--hub {
    min-height: 100%;
}

.dashboard-overview__focus-card--compact {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dashboard-overview__focus-card--fullwidth {
    margin-bottom: 6px;
    padding: 26px;
}

.dashboard-overview__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dashboard-overview__topbar--compact {
    margin-bottom: 2px;
}

.dashboard-overview__topbar-copy {
    margin: 0;
    max-width: 720px;
    color: #475569;
    line-height: 1.6;
}

.dashboard-overview__topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.dashboard-overview__shortcut-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-overview__shortcut-card:hover {
    border-color: rgba(8, 43, 89, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.dashboard-overview__shortcut-card strong {
    font-size: 16px;
    line-height: 1.3;
}

.dashboard-overview__shortcut-card span:last-child {
    color: #475569;
    line-height: 1.5;
}

.dashboard-overview__shortcut-group {
    color: #082b59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview__empty-state {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    line-height: 1.6;
}

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

.dashboard-overview__stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(219, 229, 240, 0.9);
}

.dashboard-overview__stat-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dashboard-overview__stat-row span {
    color: #475569;
    font-weight: 600;
}

.dashboard-overview__stat-row strong {
    color: #0f172a;
    font-size: 18px;
}

.dashboard-overview__link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.dashboard-overview__mini-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.dashboard-overview__focus-list-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-overview__focus-card--mini {
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__focus-title--small {
    font-size: 38px;
    line-height: 1;
    margin-top: 8px;
}

.dashboard-overview__focus-copy--compact {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.dashboard-overview__metric-note {
    margin: -2px 0 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-overview__mini-link-grid--compact {
    gap: 8px;
}

.dashboard-overview__quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-overview__quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5f0;
    background: rgba(255, 255, 255, 0.88);
    color: #082b59;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-overview__quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 43, 89, 0.18);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.dashboard-overview__focus-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-overview__focus-stats--summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-overview__focus-stat {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e2e8f0;
}

.dashboard-overview__focus-stat span,
.dashboard-overview__focus-stat strong {
    display: block;
}

.dashboard-overview__focus-stat span {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-overview__focus-stat strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.1;
}

.dashboard-overview__focus-stat--emphasis {
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
    border-color: #f2ddb3;
}

.dashboard-overview__focus-stat--emphasis strong {
    color: #9a3412;
}

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

.dashboard-overview__stage-row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.dashboard-overview__stage-copy strong,
.dashboard-overview__stage-copy span {
    display: block;
}

.dashboard-overview__stage-copy strong {
    color: #0f172a;
    font-size: 14px;
}

.dashboard-overview__stage-copy span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.dashboard-overview__stage-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.kanslia-workspace {
    padding: 28px 0 52px;
}

.kanslia-workspace__container {
    max-width: 1180px;
}

.kanslia-workspace__hero {
    margin-bottom: 18px;
}

.kanslia-workspace__section {
    margin-bottom: 18px;
}

.kanslia-workspace__section-head {
    align-items: flex-end;
    margin-bottom: 18px;
}

.kanslia-workspace__section-copy {
    margin: 0;
    max-width: 380px;
    color: #64748b;
    line-height: 1.55;
    text-align: right;
}

.kanslia-workspace__quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.kanslia-workspace__quick-action {
    min-height: 150px;
    gap: 10px;
    padding: 20px;
}

.kanslia-workspace__quick-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef5fb;
    color: #082b59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.kanslia-workspace__priority-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kanslia-workspace__priority-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    text-align: left;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.kanslia-workspace__priority-card:hover,
.kanslia-workspace__workflow-action:hover,
.kanslia-workspace__ongoing-card:hover {
    transform: translateY(-1px);
}

.kanslia-workspace__priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff4e8;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.kanslia-workspace__priority-card strong,
.kanslia-workspace__ongoing-card strong,
.kanslia-workspace__workflow-summary strong {
    font-size: 17px;
    line-height: 1.3;
}

.kanslia-workspace__priority-card span:last-child,
.kanslia-workspace__workflow-summary span,
.kanslia-workspace__workflow-note span,
.kanslia-workspace__ongoing-card p {
    color: #475569;
    line-height: 1.55;
}

.kanslia-workspace__workflow-list {
    display: grid;
    gap: 14px;
}

.kanslia-workspace__workflow {
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.kanslia-workspace__workflow[open] {
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.kanslia-workspace__workflow-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    cursor: pointer;
    list-style: none;
}

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

.kanslia-workspace__workflow-meta {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #082b59;
    font-size: 13px;
    font-weight: 700;
}

.kanslia-workspace__workflow-body {
    padding: 0 20px 20px;
}

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

.kanslia-workspace__check-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.kanslia-workspace__check-item.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.kanslia-workspace__check-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #dbe5f0;
}

.kanslia-workspace__check-item.is-done .kanslia-workspace__check-indicator {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.kanslia-workspace__check-item strong,
.kanslia-workspace__workflow-note strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.kanslia-workspace__check-item span:last-child {
    color: #64748b;
    line-height: 1.5;
}

.kanslia-workspace__workflow-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 12px;
    margin-top: 16px;
}

.kanslia-workspace__workflow-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.kanslia-workspace__workflow-action {
    align-self: stretch;
    min-width: 160px;
    border-radius: 16px;
}

.kanslia-workspace__ongoing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.kanslia-workspace__ongoing-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.kanslia-workspace__ongoing-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.kanslia-workspace__ongoing-head span,
.kanslia-workspace__ongoing-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.kanslia-workspace__ongoing-progress {
    height: 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.kanslia-workspace__ongoing-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #082b59 0%, #f97316 100%);
}

.kanslia-workspace__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 18px;
}

.kanslia-workspace__chat-card,
.kanslia-workspace__side-card {
    min-width: 0;
}

.kanslia-workspace__chat-intro {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.kanslia-workspace__chat-intro p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.55;
}

.kanslia-workspace__chat-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kanslia-workspace__chat-box {
    min-height: 180px;
    max-height: 320px;
}

.kanslia-workspace__upload-row {
    margin-top: 10px;
}

.kanslia-minimal {
    padding: 56px 0 64px;
}

.kanslia-minimal__container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.kanslia-minimal__container--with-archive {
    max-width: 1260px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.kanslia-minimal__archive {
    position: sticky;
    top: 96px;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.kanslia-minimal__archive-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8eef5;
}

.kanslia-minimal__archive-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.kanslia-minimal__archive-link {
    color: #082b59;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.kanslia-minimal__archive-list {
    display: grid;
}

.kanslia-minimal__archive-item {
    display: grid;
    gap: 6px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef3f8;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.kanslia-minimal__archive-item:hover,
.kanslia-minimal__archive-item.is-active {
    background: #f8fbff;
}

.kanslia-minimal__archive-item strong {
    font-size: 14px;
    line-height: 1.35;
}

.kanslia-minimal__archive-item span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.kanslia-minimal__archive-empty {
    padding: 18px 20px 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.kanslia-minimal__main {
    min-width: 0;
}

.kanslia-minimal__title {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.08;
}

.kanslia-minimal__input-shell {
    margin-top: 20px;
    border: 1px solid #d5e0ec;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kanslia-minimal__input-shell:focus-within {
    border-color: rgba(8, 43, 89, 0.26);
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.08),
        0 0 0 4px rgba(8, 43, 89, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.kanslia-minimal__input {
    width: 100%;
    min-height: 96px;
    max-height: 220px;
    padding: 20px 24px;
    border: none;
    border-radius: 28px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 17px;
    line-height: 1.55;
    resize: vertical;
}

.kanslia-minimal__input::placeholder {
    color: #64748b;
}

.kanslia-minimal__input:focus {
    outline: none;
}

.kanslia-minimal__composer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 18px;
    flex-wrap: wrap;
}

.kanslia-minimal__attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe5f0;
    background: #f8fafc;
    color: #082b59;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.kanslia-minimal__attach:hover {
    border-color: rgba(8, 43, 89, 0.26);
    background: #eff6ff;
}

.kanslia-minimal__file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.kanslia-minimal__file-name {
    min-height: 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.kanslia-minimal__file-name.is-hidden {
    display: none;
}

.kanslia-minimal__response {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid #dbe5f0;
    background: #fff;
    color: #0f172a;
    line-height: 1.7;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.04);
}

.kanslia-minimal__response.is-hidden {
    display: none;
}

.kanslia-minimal__messages {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.kanslia-minimal__messages.is-hidden {
    display: none;
}

.kanslia-minimal__message {
    display: flex;
}

.kanslia-minimal__message--user {
    justify-content: flex-end;
}

.kanslia-minimal__message--assistant {
    justify-content: flex-start;
}

.kanslia-minimal__message-inner {
    max-width: min(100%, 640px);
    padding: 16px 18px;
    border-radius: 22px;
    line-height: 1.7;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid #dbe5f0;
    white-space: normal;
    word-break: break-word;
}

.kanslia-minimal__message--assistant .kanslia-minimal__message-inner {
    background: #fff;
    color: #0f172a;
}

.kanslia-minimal__message--thinking .kanslia-minimal__message-inner {
    display: inline-flex;
    align-items: center;
    min-width: 74px;
}

.kanslia-minimal__message--user .kanslia-minimal__message-inner {
    background: #082b59;
    border-color: #082b59;
    color: #fff;
}

.kanslia-minimal__thinking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}

.kanslia-minimal__thinking-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #94a3b8;
    animation: kansliaThinkingPulse 1.2s ease-in-out infinite;
}

.kanslia-minimal__thinking-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.kanslia-minimal__thinking-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes kansliaThinkingPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.92);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }
}

@media (max-width: 1100px) {
    .kanslia-workspace__quick-actions,
    .kanslia-workspace__ongoing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kanslia-workspace__bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .kanslia-workspace__priority-list,
    .kanslia-workspace__workflow-footer {
        grid-template-columns: 1fr;
    }

    .kanslia-workspace__section-copy {
        max-width: none;
        text-align: left;
    }

    .kanslia-workspace__section-head {
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .kanslia-minimal {
        padding: 36px 0 44px;
    }

    .kanslia-minimal__container--with-archive {
        grid-template-columns: 1fr;
    }

    .kanslia-minimal__archive {
        position: static;
    }

    .kanslia-minimal__title {
        font-size: 30px;
    }

    .kanslia-minimal__input {
        min-height: 90px;
        padding: 18px 18px 19px;
        font-size: 16px;
    }

    .kanslia-workspace__quick-actions,
    .kanslia-workspace__ongoing-grid {
        grid-template-columns: 1fr;
    }

    .kanslia-workspace__check-item {
        grid-template-columns: 1fr;
    }
}

.dashboard-overview__stage-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.dashboard-overview__stage-row--risk .dashboard-overview__stage-bar span {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.dashboard-overview__stage-row--opportunity .dashboard-overview__stage-bar span {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.dashboard-overview__stage-row--good .dashboard-overview__stage-bar span {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.dashboard-overview__stage-amount {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-overview__focus-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

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

.dashboard-overview__action-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.dashboard-overview__action-item--opportunity {
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
    border-color: #f2ddb3;
}

.dashboard-overview__action-item--good {
    background: linear-gradient(160deg, #f2fbf5 0%, #ffffff 100%);
    border-color: #ccebd7;
}

.dashboard-overview__action-item--risk {
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 100%);
    border-color: #f2d0d0;
}

.dashboard-overview__action-copy h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #0f172a;
}

.dashboard-overview__action-copy p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.dashboard-overview__focus-list-title {
    margin: 2px 0 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview__preview-list--summary {
    margin-bottom: 4px;
}

.dashboard-overview__empty-note {
    margin-bottom: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
    line-height: 1.5;
}

.dashboard-overview__grid {
    gap: 14px;
}

.dashboard-overview__grid--nav {
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-overview__grid--choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-overview__card {
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.dashboard-overview__card--nav {
    padding: 16px 16px 14px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-overview__card--nav::before {
    height: 4px;
    margin-bottom: 10px;
}

.dashboard-overview__card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-overview__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.dashboard-overview__card-icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-overview__card-icon--green {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(21, 128, 61, 0.16);
    color: #166534;
}

.dashboard-overview__card-icon--blue {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(29, 78, 216, 0.16);
    color: #1d4ed8;
}

.dashboard-overview__card-icon--calendar {
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(202, 138, 4, 0.18);
    color: #a16207;
}

.dashboard-overview__card-icon--red {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(185, 28, 28, 0.16);
    color: #b91c1c;
}

.dashboard-overview__card--nav .dashboard-overview__card-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
}

.dashboard-overview__card--nav .dashboard-overview__card-value {
    margin-bottom: 8px;
    font-size: 32px;
}

.dashboard-overview__card--nav .dashboard-overview__card-title {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.25;
}

.dashboard-overview__card--nav .dashboard-overview__card-meta {
    min-height: 34px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard-overview__card--nav .dashboard-overview__breakdown {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
}

.dashboard-overview__card--nav .dashboard-overview__breakdown-row {
    padding: 4px 0;
}

.dashboard-overview__card--nav .dashboard-overview__breakdown-label {
    font-size: 13px;
}

.dashboard-overview__card--nav .dashboard-overview__breakdown-value {
    font-size: 14px;
}

.dashboard-overview__card--nav .dashboard-overview__preview-list {
    gap: 8px;
    margin-bottom: 12px;
}

.dashboard-overview__card--nav .dashboard-overview__preview-item {
    grid-template-columns: 10px 78px 1fr;
    gap: 8px;
    font-size: 12px;
}

.dashboard-overview__card--nav .dashboard-overview__card-link {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.dashboard-overview__card--choice .dashboard-overview__card-title {
    margin-bottom: 8px;
}

.dashboard-overview__choice-stat {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}

.dashboard-overview__choice-stat span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-overview__choice-stat strong {
    color: #0f172a;
    font-size: 20px;
    line-height: 1.1;
}

.dashboard-overview__card-value {
    font-size: 42px;
}

.dashboard-overview__card-meta {
    min-height: 44px;
}

@media (min-width: 1180px) {
    .dashboard-overview {
        padding: 10px 10px 18px;
    }

    .dashboard-overview__hero--primary {
        margin-bottom: 14px;
        padding: 18px 20px;
    }

    .dashboard-overview__title {
        font-size: 28px;
    }

    .dashboard-overview__subtitle {
        display: block;
    }

    .dashboard-overview__metrics {
        gap: 10px;
        margin-bottom: 12px;
    }

    .dashboard-overview__metric-card {
        grid-template-rows: auto auto minmax(32px, auto) minmax(42px, auto) minmax(72px, auto);
        padding: 14px 14px 12px;
    }

    .dashboard-overview__metric-value {
        font-size: 28px;
    }

    .dashboard-overview__metric-meta {
        min-height: 32px;
        font-size: 12px;
    }

    .dashboard-overview__metric-estimate {
        margin-top: 10px;
        padding-top: 10px;
    }

    .dashboard-overview__metric-estimate-value {
        font-size: 18px;
    }

    .dashboard-overview__focus-grid {
        gap: 12px;
        margin-bottom: 12px;
    }

    .dashboard-overview__grid--nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 12px;
    }

    .dashboard-overview__grid--choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-overview__card--nav {
        padding: 12px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-value {
        font-size: 24px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-title {
        font-size: 14px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-meta {
        min-height: 28px;
        font-size: 11px;
    }

    .dashboard-overview__card--nav .dashboard-overview__breakdown {
        margin-bottom: 8px;
        padding: 8px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-link {
        min-height: 30px;
        font-size: 11px;
    }

    .dashboard-overview__focus-card {
        padding: 18px;
    }

    .dashboard-overview__focus-title {
        font-size: 20px;
    }

    .dashboard-overview__focus-stats {
        gap: 10px;
        margin-bottom: 14px;
    }

    .dashboard-overview__quick-actions {
        gap: 8px;
    }

    .dashboard-overview__focus-stat {
        padding: 12px;
    }

    .dashboard-overview__focus-stat strong {
        font-size: 20px;
    }

    .dashboard-overview__action-item {
        padding: 14px;
    }
}

@media (min-width: 960px) and (max-width: 1179px) {
    .dashboard-overview__grid--nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-overview__grid--choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-overview__card--nav {
        padding: 13px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-value {
        font-size: 26px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-title {
        font-size: 14px;
    }

    .dashboard-overview__card--nav .dashboard-overview__card-meta {
        min-height: 30px;
        font-size: 11px;
    }
}

@media (max-width: 1080px) {
    .dashboard-overview__metrics,
    .dashboard-overview__focus-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-overview__grid--choices {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__focus-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-overview__forecast-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-overview__focus-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-overview__hero--primary,
    .dashboard-overview__focus-head,
    .dashboard-overview__action-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-overview__hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-overview__hero-highlight {
        width: 100%;
        min-width: 0;
    }

    .dashboard-overview__action-form {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__action-submit {
        width: 100%;
    }

    .dashboard-overview__metrics,
    .dashboard-overview__focus-stats,
    .dashboard-overview__grid {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__card-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

.dashboard-overview__stage-row {
        grid-template-columns: 1fr;
    }
}

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

.dashboard-module {
    min-width: 0;
}

.dashboard-module--full {
    grid-column: 1 / -1;
}

.dashboard-module--wide {
    grid-column: span 6;
}

.dashboard-module--small {
    grid-column: span 4;
}

.dashboard-module__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-module__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-module__title {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.15;
    color: #0f172a;
}

.dashboard-module__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 43, 89, 0.08);
    color: #082b59;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-overview__metrics--module {
    margin-bottom: 0;
}

.dashboard-overview__quick-actions--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-module__shortcut-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-module__shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5f0;
    background: #fff;
    color: #082b59;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.dashboard-module__shortcut--green {
    background: linear-gradient(160deg, #f2fbf5 0%, #ffffff 100%);
    border-color: #ccebd7;
}

.dashboard-module__shortcut--blue {
    background: linear-gradient(160deg, #f5f9ff 0%, #ffffff 100%);
    border-color: #d4e4fb;
}

.dashboard-module__shortcut--calendar {
    background: linear-gradient(160deg, #fff9ef 0%, #ffffff 100%);
    border-color: #f2ddb3;
}

.dashboard-module__shortcut--red {
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 100%);
    border-color: #f2d0d0;
}

.dashboard-module__stat-list {
    display: grid;
    gap: 10px;
}

.dashboard-module__stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.88);
}

.dashboard-module__stat-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-module__stat-row strong {
    color: #0f172a;
    font-size: 15px;
}

.dashboard-customizer {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.dashboard-customizer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dashboard-customizer__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 100%;
    padding: 0;
}

.dashboard-customizer__panel {
    width: min(520px, 100%);
    height: 100vh;
    max-height: 100vh;
    overflow: auto;
    padding: 24px 24px 28px;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(8, 43, 89, 0.12);
    background: #fff;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.16);
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.dashboard-customizer.is-open .dashboard-customizer__backdrop {
    opacity: 1;
}

.dashboard-customizer.is-open .dashboard-customizer__panel {
    transform: translateX(0);
}

.dashboard-customizer__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dashboard-customizer__title {
    margin: 4px 0 8px;
    font-size: 30px;
    line-height: 1.08;
    color: #0f172a;
}

.dashboard-customizer__copy {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.dashboard-customizer__summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    color: #475569;
    font-weight: 600;
}

.dashboard-customizer--simple .dashboard-customizer__section {
    display: none;
}

.dashboard-customizer--simple .dashboard-customizer__summary {
    margin-bottom: 16px;
}

.dashboard-customizer--simple .dashboard-customizer__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-picker-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe5f0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dashboard-picker-card:hover {
    border-color: rgba(8, 43, 89, 0.24);
    transform: translateY(-1px);
}

.dashboard-picker-card.is-active {
    border-color: rgba(8, 43, 89, 0.34);
    background: linear-gradient(160deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 16px 32px rgba(8, 43, 89, 0.08);
}

.dashboard-picker-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dashboard-picker-card__icon,
.dashboard-picker-card__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
}

.dashboard-picker-card__icon {
    background: rgba(8, 43, 89, 0.07);
    color: #082b59;
}

.dashboard-picker-card__icon svg,
.dashboard-picker-card__check svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-picker-card__check {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: transparent;
}

.dashboard-picker-card__check.is-checked {
    border-color: #082b59;
    background: #082b59;
    color: #fff;
}

.dashboard-picker-card__title {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-picker-card__copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.dashboard-picker-card__pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    color: #082b59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.dashboard-picker-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-customizer__section {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: linear-gradient(180deg, rgba(8, 43, 89, 0.03), rgba(255, 255, 255, 0.98));
}

.dashboard-customizer__section-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
}

.dashboard-customizer__copy--tight {
    margin-top: -4px;
}

.dashboard-customizer__role-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dbe5f0;
}

.dashboard-customizer__role-note strong {
    color: #0f172a;
    font-size: 15px;
}

.dashboard-customizer__role-note span {
    color: #475569;
    line-height: 1.5;
}

.dashboard-role-picker {
    display: grid;
    gap: 10px;
}

.dashboard-role-option {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-role-option:hover {
    border-color: rgba(8, 43, 89, 0.26);
    transform: translateY(-1px);
}

.dashboard-role-option.is-selected {
    border-color: #082b59;
    box-shadow: 0 12px 24px rgba(8, 43, 89, 0.10);
}

.dashboard-role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-role-option__title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-role-option__copy {
    color: #475569;
    line-height: 1.5;
}

.dashboard-customizer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #dbe5f0;
    background: #fff;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.dashboard-customizer__list {
    display: grid;
    gap: 12px;
}

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

.dashboard-customizer__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    background: #fff;
}

.dashboard-customizer__item.is-hidden {
    opacity: 0.72;
}

.dashboard-customizer__item-title {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.dashboard-customizer__item-copy {
    margin: 6px 0 0;
    color: #475569;
    line-height: 1.5;
}

.dashboard-customizer__item-main {
    display: grid;
    gap: 8px;
}

.dashboard-customizer__item-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.dashboard-customizer__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #dbe5f0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.dashboard-customizer__mode {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
}

.dashboard-customizer__mode-btn,
.dashboard-customizer__text-btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #dbe5f0;
    background: #fff;
    color: #082b59;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-customizer__mode-btn.is-active,
.dashboard-customizer__text-btn.is-active {
    background: #082b59;
    border-color: #082b59;
    color: #fff;
}

.dashboard-customizer__mode-btn:disabled,
.dashboard-customizer__text-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.dashboard-customizer__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.dashboard-customizer__footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.dashboard-customizer-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .dashboard-overview__focus-grid--three-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-overview__focus-card--hub {
        grid-column: 1 / -1;
    }

    .dashboard-module--wide,
    .dashboard-module--small {
        grid-column: span 6;
    }
}

@media (max-width: 820px) {
    .dashboard-overview__focus-grid--three-up {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__topbar,
    .dashboard-overview__topbar-actions,
    .dashboard-overview__link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-overview__focus-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__role-setup {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-customizer--simple .dashboard-customizer__list {
        grid-template-columns: 1fr;
    }

    .dashboard-overview__module-grid,
    .dashboard-module__shortcut-list {
        grid-template-columns: 1fr;
    }

    .dashboard-module--wide,
    .dashboard-module--small,
    .dashboard-module--full {
        grid-column: 1 / -1;
    }

    .dashboard-overview__quick-actions--compact,
    .dashboard-overview__quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-customizer__item,
    .dashboard-customizer__footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-customizer__item-controls,
    .dashboard-customizer__footer-actions {
        justify-content: flex-start;
    }

    .dashboard-customizer__panel {
        width: 100%;
        padding: 20px 18px 24px;
    }
}

/* Mobile containment pass: keep client pages inside narrow iPhone-like viewports. */
@media (max-width: 980px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-shell,
    .app-layout,
    .app-layout-with-sidebar,
    .app-main,
    .app-main.with-sidebar {
        min-width: 0;
        max-width: 100%;
    }

    .app-layout,
    .app-layout-with-sidebar {
        display: block;
        width: 100%;
        padding: 0 clamp(12px, 4vw, 18px) 28px;
    }

    .app-main,
    .app-main.with-sidebar {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
        padding: 16px 0 20px;
    }

    .client-sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
    }

    .client-sidebar__label,
    .breadcrumb__current,
    .breadcrumb__link {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

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

    .app-main img,
    .app-main svg,
    .app-main canvas,
    .app-main video,
    .app-main iframe {
        max-width: 100%;
    }

    .app-main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .app-main input,
    .app-main select,
    .app-main textarea,
    .app-main button {
        max-width: 100%;
    }

    .app-main h1,
    .app-main h2,
    .app-main h3,
    .app-main p,
    .app-main a,
    .app-main span,
    .app-main strong {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .app-header {
        gap: 12px;
        padding: 10px 14px;
    }

    .brand {
        min-width: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .nav {
        flex-shrink: 0;
    }

    .nav-link {
        padding: 7px 12px;
        white-space: nowrap;
    }

    .nav-link--home,
    .nav-link--admin {
        display: none;
    }

    .lp-hero {
        padding-top: 8px;
        padding-bottom: 24px;
    }

    .lp-hero-grid {
        gap: 12px;
    }

    .lp-hero-panel {
        padding: 10px;
        border-radius: 18px;
    }

    .lp-hero-badges {
        gap: 7px;
        margin-bottom: 16px;
    }

    .lp-hero-badge {
        padding: 6px 9px;
    }

    .breadcrumb {
        margin: 4px 0 12px;
    }

    .breadcrumb__list {
        gap: 4px 6px;
    }

    .kanslia-minimal {
        padding: 28px 0 40px;
    }

    .kanslia-minimal__container,
    .kanslia-minimal__container--with-archive {
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 16px;
    }

    .kanslia-minimal__title {
        margin-bottom: 14px;
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .kanslia-minimal__input-shell,
    .kanslia-minimal__response,
    .kanslia-minimal__message-inner,
    .kanslia-minimal__archive {
        max-width: 100%;
        border-radius: 20px;
    }

    .kanslia-minimal__input {
        min-height: 92px;
        padding: 16px;
        border-radius: 20px;
        font-size: 16px;
    }

    .kanslia-minimal__composer-bar {
        align-items: stretch;
        padding: 0 14px 14px;
    }

    .kanslia-minimal__attach {
        width: 100%;
    }

    .kanslia-minimal__file-name {
        width: 100%;
        overflow-wrap: anywhere;
    }

    .kanslia-widget {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }

    .kanslia-widget__panel {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: min(720px, calc(100vh - 112px));
        max-height: calc(100vh - 112px);
        height: min(720px, calc(100dvh - 112px));
        max-height: calc(100dvh - 112px);
        border-radius: 18px;
    }

    .kanslia-widget__header,
    .kanslia-widget__messages,
    .kanslia-widget__composer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .kanslia-widget__input-row,
    .kanslia-widget__toolbar,
    .kanslia-widget__draft-head {
        flex-wrap: wrap;
    }

    .kanslia-widget__send,
    .kanslia-widget__secondary-btn {
        min-width: 0;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .app-layout,
    .app-layout-with-sidebar {
        padding-left: 0;
        padding-right: 0;
    }

    .app-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .client-sidebar {
        display: block;
    }

    .client-sidebar__scroll {
        padding: 8px;
    }

    .client-sidebar__link {
        gap: 10px;
        padding: 10px;
    }

    .client-sidebar__submenu {
        padding-left: 46px;
    }

    .dashboard-overview__focus-card,
    .dashboard-overview__focus-card--fullwidth {
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-overview__mini-link,
    .dashboard-overview__quick-action,
    .dashboard-overview__action-submit {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .kanslia-minimal__archive-head,
    .kanslia-minimal__archive-item,
    .kanslia-minimal__archive-empty {
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-main{
        padding-top:0;
    }
}
