:root {
    --council-primary: #0d47a1;
    --council-primary-dark: #093170;
    --council-accent: #ff5722;
    --council-bg: #f5f7fb;
    --council-text: #1f2937;
    --council-muted: #6b7280;
    --radius-md: 14px;
    --radius-sm: 10px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
}

html,
body {
    font-family: "Roboto", sans-serif;
    background: var(--council-bg);
    color: var(--council-text);
    overflow-x: hidden;
}

.main-content {
    padding-top: 7.2rem;
}

.council-navbar {
    background: linear-gradient(120deg, var(--council-primary), #1459c2, var(--council-primary-dark));
    background-size: 220% 220%;
    animation: navbarGradient 14s ease infinite;
}

.council-navbar.scrolled {
    box-shadow: 0 10px 30px rgba(2, 22, 52, 0.35) !important;
}

.brand-subtitle {
    font-size: 0.62rem;
    line-height: 1.25;
    max-width: 16rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    white-space: normal;
}

.header-council-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.98);
    padding: 2px;
    box-shadow: 0 4px 14px rgba(2, 22, 52, 0.2);
}

.council-top-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 22, 52, 0.35);
    backdrop-filter: blur(4px);
    font-size: 0.76rem;
    color: #e8f0ff;
    padding: 0.35rem 0;
}

.council-top-strip strong {
    color: #fff;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--council-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* NOTE(cursor): Beautiful Login dropdown for Central / State / Admin portals */
.login-dropdown-menu,
.knowledge-dropdown-menu,
.directory-dropdown-menu {
    min-width: 260px;
    padding: 0.55rem;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(9, 49, 112, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.login-dropdown-menu .dropdown-header,
.knowledge-dropdown-menu .dropdown-header,
.directory-dropdown-menu .dropdown-header {
    color: var(--council-primary-dark);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem 0.35rem;
}

.login-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    white-space: normal;
}

.login-dropdown-item:hover,
.login-dropdown-item:focus {
    background: linear-gradient(120deg, rgba(13, 71, 161, 0.1), rgba(255, 87, 34, 0.08));
}

.login-dd-title {
    color: var(--council-primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.login-dd-sub {
    color: var(--council-muted);
    font-size: 0.78rem;
}

.header-highlight-links {
    margin-left: auto;
    margin-right: 0.85rem;
    gap: 0.5rem;
    align-items: center;
}

.header-highlight-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-highlight-link:hover,
.header-highlight-link.active {
    transform: translateY(-1px);
    opacity: 0.96;
}

.header-highlight-about {
    background: linear-gradient(135deg, #2f80ed, #185ec0);
    box-shadow: 0 8px 18px rgba(31, 113, 220, 0.3);
}

.header-highlight-committee {
    background: linear-gradient(135deg, #ff7f50, #ff5722);
    box-shadow: 0 8px 18px rgba(255, 87, 34, 0.3);
}

.header-highlight-admin {
    background: linear-gradient(135deg, #0b2e63, #093170);
    box-shadow: 0 8px 18px rgba(2, 22, 52, 0.34);
}

.header-main-nav {
    width: 100%;
    margin-top: 0.35rem;
}

.nav-main-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.2rem;
}

.nav-main-links .nav-link {
    border-radius: 9px;
    padding: 0.48rem 0.72rem;
    white-space: nowrap;
}

.nav-main-links .nav-link:hover,
.nav-main-links .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-highlight-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-highlight-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.68rem;
}

.hero-section {
    background: linear-gradient(115deg, rgba(13, 71, 161, 0.95), rgba(9, 49, 112, 0.9));
    color: #fff;
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 3.5rem);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.home-news-highlight-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    max-width: 100%;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #ff7043 0%, #ff5722 45%, #e64a19 100%);
    box-shadow: 0 12px 28px rgba(230, 74, 25, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: newsHighlightPulse 2.8s ease-in-out infinite;
}

.home-news-highlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(230, 74, 25, 0.42);
    color: #fff !important;
}

.home-news-highlight-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-news-highlight-sub {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 500;
}

@keyframes newsHighlightPulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(230, 74, 25, 0.35); }
    50% { box-shadow: 0 14px 34px rgba(230, 74, 25, 0.5); }
}

/* NOTE(cursor): Homepage inauguration commemorative banner (dialog removed after ceremony). */
.inaug-home-banner {
    position: relative;
    margin: 0 0 var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background:
        linear-gradient(125deg, rgba(7, 31, 74, 0.98) 0%, rgba(13, 71, 161, 0.94) 48%, rgba(9, 49, 112, 0.97) 100%);
    box-shadow:
        0 16px 36px rgba(7, 31, 74, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
    animation: inaugHomeIn 0.7s ease both;
}

.inaug-home-banner-glow {
    position: absolute;
    inset: -20% auto auto 55%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.35), transparent 68%);
    pointer-events: none;
}

.inaug-home-banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.15rem 1.4rem;
    align-items: center;
    padding: clamp(1.15rem, 2.4vw, 1.75rem) clamp(1.15rem, 2.6vw, 1.9rem);
}

.inaug-home-banner-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff8e1, #f5e6b8 55%, #c9a227);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 10px 22px rgba(0, 0, 0, 0.22);
    animation: inaugLogoPulse 3.2s ease-in-out infinite;
}

.inaug-home-banner-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.inaug-home-banner-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #071f4a;
    background: linear-gradient(120deg, #f8e7a0, #c9a227);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.inaug-home-banner-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.inaug-home-banner-text {
    margin: 0;
    max-width: 52rem;
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.inaug-home-banner-text strong {
    color: #ffe9a8;
    font-weight: 800;
}

@keyframes inaugHomeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes inaugLogoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 10px 22px rgba(0, 0, 0, 0.22); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 5px rgba(255, 233, 168, 0.28), 0 12px 26px rgba(201, 162, 39, 0.28); }
}

@media (max-width: 700px) {
    .inaug-home-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .inaug-home-banner-text {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inaug-home-banner,
    .inaug-home-banner-logo-wrap {
        animation: none;
    }
}

/* NOTE(cursor): Full-width banking news portal + article reader */
/* NOTE(cursor): Structured banking news — featured, horizontal strip, vertical feed */
.bn-shell {
    width: 100%;
    background: linear-gradient(180deg, #eef3fb 0%, var(--council-bg) 42%, #f8fafc 100%);
    padding: 1.1rem 0 2.5rem;
}

.bn-wrap {
    width: min(1240px, calc(100% - 1.5rem));
    margin: 0 auto;
}

.bn-header {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.15rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(125deg, #093170, #0d47a1);
    color: #fff;
    box-shadow: 0 12px 28px rgba(9, 49, 112, 0.2);
}

.bn-eyebrow,
.bn-section-label {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bn-eyebrow {
    color: #ffccbc;
}

.bn-section-label {
    color: var(--council-accent);
}

.bn-header h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.bn-subtitle {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
}

.bn-chips,
.bn-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bn-filters {
    justify-content: flex-end;
}

.bn-chip,
.bn-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.bn-chip-link:hover,
.bn-filter:hover,
.bn-filter.is-active {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.bn-panel {
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.1rem;
}

.bn-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.bn-section-head h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--council-text);
}

.bn-muted {
    color: var(--council-muted);
    font-size: 0.86rem;
}

.bn-empty {
    text-align: center;
    padding: 2rem 1.25rem;
}

.bn-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
}

.bn-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    align-items: center;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--council-muted);
}

.bn-read {
    margin-left: auto;
    font-weight: 700;
    color: var(--council-accent);
}

/* Media: fixed ratio only — never fill parent height */
.bn-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #e8eef8;
    flex-shrink: 0;
}

.bn-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bn-media.is-placeholder {
    background: linear-gradient(135deg, #0d47a1, #093170);
}

.bn-media.is-placeholder img {
    object-fit: contain;
    padding: 0.45rem;
}

/* Top layout: featured + spotlight */
.bn-top {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1.1rem;
    align-items: start;
    margin-bottom: 0.15rem;
}

.bn-featured {
    display: grid;
    grid-template-columns: minmax(220px, 46%) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.bn-featured:hover {
    color: inherit;
}

.bn-featured-media {
    aspect-ratio: 16 / 10;
}

.bn-featured-body h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.3;
    color: var(--council-text);
}

.bn-featured-body p {
    margin: 0;
    color: var(--council-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-featured:hover .bn-featured-body h2 {
    color: var(--council-primary);
}

/* Vertical list items */
.bn-vlist {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bn-vitem {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bn-vitem:hover {
    color: inherit;
    border-color: rgba(13, 71, 161, 0.28);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.bn-vmedia {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.bn-vmedia-sm {
    aspect-ratio: 1 / 1;
}

.bn-vitem-compact {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.55rem;
}

.bn-vbody {
    min-width: 0;
}

.bn-vbody h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--council-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-vbody p {
    margin: 0;
    color: var(--council-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-vitem-compact .bn-vbody h3 {
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
}

/* Horizontal rail */
.bn-hrail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 280px);
    gap: 0.95rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.55rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bn-hrail:focus-visible {
    outline: 2px solid rgba(13, 71, 161, 0.35);
    outline-offset: 3px;
}

.bn-hcard {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bn-hcard:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.bn-hmedia {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.bn-hbody {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 0.9rem 0.95rem;
    flex: 1;
}

.bn-hbody h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--council-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-hbody p {
    margin: 0;
    color: var(--council-muted);
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Bottom: vertical feed + guide */
.bn-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
    gap: 1.1rem;
    align-items: start;
}

.bn-guide-list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--council-muted);
    font-size: 0.92rem;
}

.bn-guide-list li {
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.bn-guide-list strong {
    color: var(--council-text);
}

.bn-guide-note {
    border-top: 1px solid rgba(13, 71, 161, 0.1);
    padding-top: 0.85rem;
}

.bn-guide-note p {
    margin: 0.35rem 0 0;
    color: var(--council-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Article reader */
.bn-reader {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bn-back {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.08);
    text-decoration: none;
}

.bn-back:hover {
    background: rgba(13, 71, 161, 0.14);
}

.bn-article {
    padding: 0;
    overflow: hidden;
}

.bn-article-media {
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border-radius: 0;
}

.bn-article-content {
    padding: clamp(1.15rem, 2.5vw, 2rem);
    max-width: 820px;
    margin: 0 auto;
}

.bn-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--council-muted);
    font-size: 0.85rem;
}

.bn-article-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    color: var(--council-text);
}

.bn-article-summary {
    margin: 0 0 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
    color: var(--council-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.bn-article-body p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--council-text);
}

.bn-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 71, 161, 0.1);
}

@media (max-width: 991.98px) {
    .bn-header,
    .bn-top,
    .bn-bottom,
    .bn-featured {
        grid-template-columns: 1fr;
    }

    .bn-filters {
        justify-content: flex-start;
    }

    .bn-read {
        margin-left: 0;
    }

    .bn-vitem {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .bn-article-media {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .bn-wrap {
        width: min(100% - 1rem, 1240px);
    }

    .bn-vitem,
    .bn-vitem-compact {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .bn-hrail {
        grid-auto-columns: minmax(230px, 78vw);
    }
}


.section-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid rgba(13, 71, 161, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.inspiration-item {
    text-align: center;
}

.inspiration-item img {
    width: 130px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid var(--council-primary);
    transition: transform 0.25s ease;
}

.inspiration-item:hover img {
    transform: scale(1.05);
}

.quote-showcase {
    background: linear-gradient(155deg, #ffffff, #f5f9ff 45%, #eef5ff);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.quote-rotator-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(13, 71, 161, 0.15);
    background: linear-gradient(140deg, rgba(13, 71, 161, 0.08), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    padding: clamp(0.95rem, 2vw, 1.25rem);
    overflow: hidden;
}

.quote-rotator-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.14), transparent 68%);
}

.quote-symbol {
    position: absolute;
    left: 0.8rem;
    top: 0.3rem;
    font-size: 2.8rem;
    line-height: 1;
    color: rgba(13, 71, 161, 0.2);
    font-weight: 700;
}

.quote-text {
    margin-left: 1.55rem;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.6;
    color: #0f172a;
    font-weight: 600;
}

.quote-author {
    margin-left: 1.55rem;
    color: #0d47a1;
    font-weight: 700;
    font-size: 0.92rem;
}

.quote-explanation {
    margin-left: 1.55rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quote-progress {
    margin-left: 1.55rem;
    width: min(320px, 92%);
    height: 5px;
    border-radius: 999px;
    background: rgba(13, 71, 161, 0.13);
    overflow: hidden;
}

.quote-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1459c2, #ff5722);
    animation: quoteProgressRun 10s linear infinite;
}

.quote-rotator-card.is-exiting {
    animation: quoteCardExit 0.24s ease forwards;
}

.quote-rotator-card.is-entering {
    animation: quoteCardEnter 0.35s ease forwards;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
}

.gallery-figure {
    display: inline-block;
    margin: 0 0 1rem;
    width: 100%;
    break-inside: avoid;
}

.gallery-grid a,
.gallery-figure a {
    display: block;
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    background: #0b3a7a;
}

.gallery-grid a:hover,
.gallery-figure a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.gallery-grid img,
.gallery-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-figure a:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 0.75rem 0.7rem;
    background: linear-gradient(180deg, rgba(6, 30, 70, 0) 0%, rgba(6, 30, 70, 0.88) 55%, rgba(6, 30, 70, 0.96) 100%);
    color: #fff;
}

.gallery-caption-date {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 0.2rem;
}

.gallery-caption-text {
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 600;
}

.quick-link-card {
    border-left: 5px solid var(--council-accent);
}

/* NOTE(cursor): Home service tiles — interactive hub; replaces plain quick-link boxes. */
.home-services {
    margin-bottom: var(--space-lg);
}

.home-services-head {
    margin-bottom: 1.1rem;
}

.home-services-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--council-primary);
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.home-service-tile {
    --tile-accent: var(--council-primary);
    --tile-soft: rgba(13, 71, 161, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1.15rem 1.1rem 1rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 71, 161, 0.12);
    background:
        linear-gradient(155deg, #ffffff 0%, #f7faff 58%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    /* NOTE(cursor): Always visible by default — prior opacity:0 hid tiles when IntersectionObserver lagged. */
    opacity: 1;
    transform: translateY(0);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}

/* NOTE(cursor): Animate on load without depending on IntersectionObserver (avoids blank tiles). */
.home-services .home-service-tile {
    animation: homeServiceEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--tile-i, 0) * 55ms);
}

@keyframes homeServiceEnter {
    from {
        opacity: 0.35;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-service-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--tile-accent);
    transition: width 0.3s ease;
}

.home-service-tile::after {
    content: "";
    position: absolute;
    right: -18%;
    top: -28%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tile-soft) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.home-service-tile:hover,
.home-service-tile:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(13, 71, 161, 0.28);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    outline: none;
}

.home-service-tile:hover::before,
.home-service-tile:focus-visible::before {
    width: 6px;
}

.home-service-tile:hover::after,
.home-service-tile:focus-visible::after {
    transform: scale(1.25) translate(-8%, 10%);
}

.home-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 12px;
    background: var(--tile-soft);
    color: var(--tile-accent);
    transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.home-service-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.home-service-tile:hover .home-service-icon,
.home-service-tile:focus-visible .home-service-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: inset 0 0 0 1px rgba(13, 71, 161, 0.12);
}

.home-service-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.home-service-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--council-text);
}

.home-service-text {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--council-muted);
}

.home-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tile-accent);
}

.home-service-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.home-service-tile:hover .home-service-arrow,
.home-service-tile:focus-visible .home-service-arrow {
    transform: translateX(4px);
}

.home-service-tile.tone-blue {
    --tile-accent: #0d47a1;
    --tile-soft: rgba(13, 71, 161, 0.1);
}

.home-service-tile.tone-indigo {
    --tile-accent: #1a3a8a;
    --tile-soft: rgba(26, 58, 138, 0.1);
}

.home-service-tile.tone-sky {
    --tile-accent: #1565c0;
    --tile-soft: rgba(21, 101, 192, 0.1);
}

.home-service-tile.tone-teal {
    --tile-accent: #0b6e6a;
    --tile-soft: rgba(11, 110, 106, 0.1);
}

.home-service-tile.tone-navy {
    --tile-accent: #093170;
    --tile-soft: rgba(9, 49, 112, 0.11);
}

.home-service-tile.tone-accent {
    --tile-accent: var(--council-accent);
    --tile-soft: rgba(255, 87, 34, 0.12);
    background: linear-gradient(155deg, #ffffff 0%, #fff8f5 55%, #ffffff 100%);
}

@media (max-width: 991.98px) {
    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-service-tile {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-service-tile,
    .home-service-icon,
    .home-service-arrow,
    .home-service-tile::before,
    .home-service-tile::after {
        transition: none !important;
    }

    .home-services .home-service-tile {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.update-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.update-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
}

.update-card-body {
    padding: 0.9rem;
}

.update-card-date {
    color: #0d47a1;
    font-weight: 600;
}

.council-activities-section {
    background: linear-gradient(160deg, #ffffff, #f6faff);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.activity-feature-card {
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.activity-feature-primary {
    border-color: rgba(255, 87, 34, 0.42);
}

.activity-feature-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
}

.activity-feature-body {
    padding: 0.95rem;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-us-panel {
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.committee-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.committee-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(228, 239, 255, 0.88));
    border-bottom: 1px solid rgba(13, 71, 161, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
}

.committee-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.committee-card-body {
    padding: 0.95rem;
}

.committee-designation {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b2e63;
    background: rgba(13, 71, 161, 0.1);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.committee-link {
    color: #0d47a1;
    text-decoration: none;
}

.committee-link:hover {
    text-decoration: underline;
}

.committee-role-section {
    scroll-margin-top: 6.5rem;
}

.committee-role-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}

.committee-card .text-secondary {
    word-break: break-word;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.contact-label {
    color: #0d47a1;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-value {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: #0f172a;
}

.contact-link {
    color: #0d47a1;
    text-decoration: none;
    word-break: break-word;
}

.contact-link:hover {
    text-decoration: underline;
}

.form-card {
    max-width: 950px;
    margin-inline: auto;
}

.book-cover-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

/* NOTE(cursor): Dedicated book tiles — avoid nested .section-card + fade-in hiding content. */
.books-page-panel {
    /* Keep panel visible without waiting on IntersectionObserver. */
    opacity: 1;
    transform: none;
}

.book-card {
    height: 100%;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 71, 161, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.objective-accordion .accordion-item {
    border: 1px solid rgba(13, 71, 161, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.objective-accordion .accordion-button {
    font-weight: 700;
    color: var(--council-primary-dark);
    background: rgba(13, 71, 161, 0.06);
}

.objective-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(90deg, var(--council-primary), var(--council-primary-dark));
}

.objective-accordion .accordion-body {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
}

.professional-form-card {
    border: 1px solid rgba(13, 71, 161, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.form-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.15), rgba(255, 87, 34, 0.12));
    color: var(--council-primary-dark);
    border: 1px solid rgba(13, 71, 161, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
}

.form-section-title {
    margin: 0.2rem 0 0;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(13, 71, 161, 0.14);
    font-size: 1.02rem;
    color: var(--council-primary-dark);
    font-weight: 700;
}

.professional-form .form-label {
    color: #0b2e63;
    font-weight: 600;
}

.professional-form .form-control,
.professional-form .form-select,
.professional-form textarea {
    border: 1px solid rgba(13, 71, 161, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(2, 22, 52, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* NOTE(cursor): Membership / Grievance selects styled like nav Login dropdown (navy gradient theme). */
.professional-form .form-select {
    min-height: 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 71, 161, 0.2);
    background-color: #ffffff;
    background-image:
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230d47a1' d='M1.5 5.5L8 12l6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 0.85rem center;
    background-size: auto, 12px 12px;
    padding-right: 2.4rem;
    color: #0b3a7a;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(9, 49, 112, 0.1);
    appearance: none;
    -webkit-appearance: none;
}

.professional-form .form-select:hover {
    border-color: rgba(13, 71, 161, 0.4);
    box-shadow: 0 12px 28px rgba(9, 49, 112, 0.14);
}

.professional-form .form-select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.18), 0 12px 28px rgba(9, 49, 112, 0.12);
    background-image:
        linear-gradient(180deg, #ffffff 0%, #eef5ff 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230d47a1' d='M1.5 5.5L8 12l6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 0.85rem center;
    background-size: auto, 12px 12px;
    color: #093170;
}

.professional-form .form-select:disabled {
    color: #64748b;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: none;
    opacity: 1;
}

.professional-form .form-select option {
    color: #0b3a7a;
    font-weight: 600;
    background: #ffffff;
    padding: 0.55rem 0.75rem;
}

.professional-form .form-control:focus,
.professional-form textarea:focus {
    border-color: var(--council-accent);
    box-shadow: 0 0 0 0.18rem rgba(255, 87, 34, 0.18);
    transform: translateY(-1px);
}

/* NOTE(cursor): Keep select focus on navy nav theme (do not inherit orange input focus). */
.professional-form .form-select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.18), 0 12px 28px rgba(9, 49, 112, 0.12);
    transform: none;
}

.professional-form .btn-primary {
    border: none;
    background: linear-gradient(90deg, var(--council-primary), #1459c2);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.professional-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.3);
}

.grievance-upload-hint {
    color: var(--council-muted, #6c757d);
    line-height: 1.5;
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
}

.theme-preset-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-preset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.12);
}

.theme-preset-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-preset-card:has(input:checked) {
    border-color: var(--council-primary);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.12);
}

.theme-preset-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    min-height: 42px;
}

.theme-preset-preview span {
    border-radius: 8px;
    min-height: 42px;
}

.theme-preset-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--council-text);
}

.theme-live-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.theme-live-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.theme-live-preview-chip[data-theme-preview="primary"] {
    background: var(--council-primary);
}

.theme-live-preview-chip[data-theme-preview="accent"] {
    background: var(--council-accent);
}

.theme-live-preview-chip[data-theme-preview="bg"] {
    background: var(--council-bg);
    color: var(--council-text);
    border: 1px solid rgba(31, 41, 55, 0.12);
}

.form-animate-item {
    opacity: 0;
    transform: translateY(14px);
    animation: fieldFadeUp 0.45s ease forwards;
}

@keyframes fieldFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swal2-popup.council-alert-popup {
    border-radius: 18px !important;
    border: 1px solid rgba(13, 71, 161, 0.2);
    box-shadow: 0 18px 40px rgba(2, 22, 52, 0.25) !important;
}

.council-alert-show {
    animation: councilAlertEnter 0.28s ease;
}

.council-alert-hide {
    animation: councilAlertExit 0.2s ease;
}

@keyframes councilAlertEnter {
    0% { opacity: 0; transform: translateY(18px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes councilAlertExit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.fee-pill {
    background: rgba(13, 71, 161, 0.12);
    color: var(--council-primary-dark);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
}

.signature-wrap {
    border: 1px dashed rgba(13, 71, 161, 0.45);
    border-radius: var(--radius-sm);
    background: #ffffff;
    min-height: 190px;
    overflow: hidden;
}

.signature-canvas {
    width: 100%;
    height: 190px;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.footer {
    background: linear-gradient(135deg, #08285b, #0b377e, #051a3d);
    background-size: 220% 220%;
    animation: navbarGradient 16s ease infinite;
    color: #dbeafe;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-link {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-contact-panel {
    border: 1px solid rgba(219, 234, 254, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border-radius: 14px;
    padding: 0.72rem 0.85rem;
    box-shadow: 0 10px 24px rgba(3, 16, 40, 0.28);
}

.footer-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.footer-contact-chip {
    text-decoration: none;
    color: #f3f8ff;
    border: 1px solid rgba(219, 234, 254, 0.38);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-contact-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
}

.footer-nav-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    padding-bottom: 0.15rem;
}

.footer-nav-full {
    width: 100%;
}

.footer-nav-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e4eeff;
    border: 1px solid rgba(219, 234, 254, 0.32);
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer-nav-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.footer-muted {
    color: #d0dcf3;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, 0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-icon {
    width: clamp(104px, 12vw, 132px);
    height: clamp(104px, 12vw, 132px);
    animation: chakraRotateClockwise 1.1s linear infinite;
    filter: drop-shadow(0 8px 18px rgba(13, 71, 161, 0.28));
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes navbarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes chakraRotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* <360dp */
@media (max-width: 359px) {
    .main-content {
        padding-top: 5rem;
    }

    .hero-section {
        border-radius: var(--radius-sm);
        padding: 1.1rem;
    }

    .hero-section .display-6 {
        font-size: 1.5rem;
    }

    .section-card {
        padding: 0.9rem;
    }

    .inspiration-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .inspiration-item img {
        width: 110px;
    }

    .signature-wrap,
    .signature-canvas {
        min-height: 160px;
        height: 160px;
    }
}

/* 360-480dp */
@media (min-width: 360px) and (max-width: 480px) {
    .main-content {
        padding-top: 5rem;
    }

    .hero-section .display-6 {
        font-size: 1.7rem;
    }

    .section-card {
        padding: 1rem;
    }
}

/* 480-720dp */
@media (max-width: 720px) {
    .main-content {
        padding-top: 5.4rem;
    }

    .council-top-strip {
        font-size: 0.68rem;
    }

    .gallery-grid {
        column-count: 2;
    }

    .inspiration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-us-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .contact-info-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .quote-text,
    .quote-author,
    .quote-explanation,
    .quote-progress {
        margin-left: 1.25rem;
    }
}

/* <480dp */
@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .header-council-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .brand-subtitle {
        display: none;
    }

    .quote-symbol {
        left: 0.55rem;
        top: 0.2rem;
        font-size: 2.2rem;
    }

    .quote-text,
    .quote-author,
    .quote-explanation,
    .quote-progress {
        margin-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .header-main-nav {
        margin-top: 0.6rem;
    }

    .nav-main-links {
        justify-content: flex-start;
    }

    .nav-main-links .nav-link {
        padding-inline: 0.25rem;
    }
}

@media (min-width: 992px) {
    .header-main-nav {
        display: flex !important;
        flex-basis: 100%;
        margin-top: 0.35rem;
    }

    .nav-main-links {
        justify-content: center;
    }
}

@keyframes quoteProgressRun {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes quoteCardExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes quoteCardEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Knowledge pages */
.knowledge-hero {
    background:
        linear-gradient(120deg, rgba(9, 49, 112, 0.96), rgba(13, 71, 161, 0.88)),
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.22), transparent 42%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: clamp(1.35rem, 3vw, 2.5rem);
    margin-bottom: var(--space-xl);
}

.knowledge-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 46rem;
}

/* NOTE(cursor): Badges on filled dark heroes need solid light pill + dark text for contrast (login + dashboards + public). */
.knowledge-hero .form-hero-badge {
    background: #ffffff;
    color: #0b3a7a;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.auth-theme-state .knowledge-hero .form-hero-badge,
.dash-theme-state .knowledge-hero .form-hero-badge {
    color: #065f46;
}

.auth-theme-central .knowledge-hero .form-hero-badge,
.dash-theme-central .knowledge-hero .form-hero-badge {
    color: #071f4a;
}

.auth-theme-admin .knowledge-hero .form-hero-badge,
.dash-theme-admin .knowledge-hero .form-hero-badge {
    color: #7c2d12;
}

.knowledge-hero h1 {
    color: #ffffff;
}

.knowledge-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
}

.circular-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.circular-filter-card {
    border: 1px solid rgba(13, 71, 161, 0.12);
}

.circular-filter-intro h2 {
    color: var(--council-primary-dark);
    font-weight: 800;
}

.circular-result-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--council-primary-dark);
    background: rgba(13, 71, 161, 0.08);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.circular-empty-state {
    text-align: center;
    padding: 1.5rem 1.1rem;
}

.circular-card {
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.circular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.12);
}

.circular-card h3 {
    color: var(--council-primary-dark);
    font-weight: 700;
    line-height: 1.4;
}

.circular-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.circular-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--council-muted);
}

.circular-meta {
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--council-text);
    margin-bottom: 0.9rem;
}

.circular-actions {
    margin-top: auto;
}

.rights-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rights-nav-chip {
    text-decoration: none;
    color: var(--council-primary);
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.14);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.rights-nav-chip:hover {
    color: #fff;
    background: var(--council-primary);
}

.rights-stack {
    display: grid;
    gap: 1rem;
}

.rights-card {
    scroll-margin-top: 6.5rem;
}

.rights-card-header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 1rem;
}

.rights-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--council-primary), var(--council-primary-dark));
}

.rights-points {
    margin: 0;
    padding-left: 1.2rem;
}

.rights-points li {
    margin-bottom: 0.55rem;
    color: var(--council-text);
    line-height: 1.55;
}

.zone-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.zone-stat-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(13, 71, 161, 0.1);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.zone-stat-card strong {
    font-size: 1.25rem;
    color: var(--council-primary);
}

.zone-stat-card span {
    color: var(--council-muted);
    font-size: 0.86rem;
}

.zone-select-panel .form-select-lg {
    min-height: 3.1rem;
}

.zone-empty-state {
    text-align: center;
    padding: 2rem 1.25rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.zone-selected-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(13, 71, 161, 0.1), rgba(255, 87, 34, 0.08));
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

.zone-selected-label {
    letter-spacing: 0.06em;
    color: var(--council-primary);
    font-weight: 700;
    font-size: 0.72rem;
}

.zone-selected-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--council-primary);
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.office-bearer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.office-bearer-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
    padding: 1.15rem 1.1rem 1.05rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    min-height: 100%;
}

.office-bearer-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--council-primary);
}

.office-bearer-card.role-state-president::before,
.office-bearer-card.role-zonal-president::before {
    background: linear-gradient(180deg, var(--council-primary), #1459c2);
}

.office-bearer-card.role-state-secretary::before,
.office-bearer-card.role-zonal-secretary::before {
    background: linear-gradient(180deg, var(--council-accent), #e64a19);
}

.office-bearer-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
    margin-bottom: 0.7rem;
}

.office-bearer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--council-text);
    margin: 0 0 0.85rem;
    line-height: 1.35;
    word-break: break-word;
}

.state-rep-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
    padding: 1.2rem 1.15rem 1.1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    min-height: 100%;
}

.state-rep-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--council-primary);
}

.state-rep-card.role-state-president::before {
    background: linear-gradient(180deg, var(--council-primary), #1459c2);
}

.state-rep-card.role-state-secretary::before {
    background: linear-gradient(180deg, var(--council-accent), #e64a19);
}

.state-rep-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
    margin-bottom: 0.7rem;
}

.state-rep-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--council-text);
    margin: 0 0 0.95rem;
    line-height: 1.35;
    word-break: break-word;
}

.state-rep-details {
    display: grid;
    gap: 0.7rem;
}

.state-rep-row {
    display: grid;
    gap: 0.18rem;
}

.state-rep-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--council-muted);
}

.state-rep-row a,
.state-rep-row span:not(.state-rep-label) {
    color: var(--council-text);
    font-weight: 600;
    word-break: break-word;
}

.state-rep-row a {
    color: var(--council-primary);
    text-decoration: none;
}

.state-rep-row a:hover {
    text-decoration: underline;
}

.office-bearer-contacts {
    display: grid;
    gap: 0.55rem;
}

.office-contact-row {
    display: grid;
    gap: 0.15rem;
}

.office-contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--council-muted);
}

.office-contact-row a {
    color: var(--council-primary);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.office-contact-row a:hover {
    text-decoration: underline;
}

.zonal-stack {
    display: grid;
    gap: 1rem;
}

.zonal-block {
    margin-bottom: 0;
}

.zonal-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.zonal-account-chip a {
    font-size: 0.82rem;
    color: var(--council-primary);
    text-decoration: none;
    font-weight: 600;
}

.zonal-account-chip a:hover {
    text-decoration: underline;
}

.zone-directory-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
    gap: 1rem;
    align-items: start;
}

.zone-state-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 70vh;
    overflow: auto;
}

.zone-state-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--council-text);
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #f8fbff;
}

.zone-state-link:hover,
.zone-state-link.active {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(13, 71, 161, 0.04));
    border-color: rgba(13, 71, 161, 0.28);
    color: var(--council-primary);
}

.zone-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.1);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.zone-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.zone-info-card {
    border: 1px solid rgba(13, 71, 161, 0.1);
    border-radius: 12px;
    padding: 0.9rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.zone-info-card a {
    color: var(--council-primary);
    word-break: break-word;
}

.tracker-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tracker-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    font-size: 0.86rem;
}

.tracker-status-badge.status-pending {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6d00;
}

.tracker-status-badge.status-under_review {
    background: rgba(13, 110, 253, 0.14);
    color: #0b4fbf;
}

.tracker-status-badge.status-resolved {
    background: rgba(25, 135, 84, 0.14);
    color: #146c43;
}

.tracker-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    font-size: 0.95rem;
}

.tracker-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.tracker-step {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.85rem;
    position: relative;
}

.tracker-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: -1rem;
    width: 2px;
    background: rgba(13, 71, 161, 0.15);
}

.tracker-dot {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    border-radius: 50%;
    border: 3px solid rgba(13, 71, 161, 0.25);
    background: #fff;
}

.tracker-step.is-done .tracker-dot,
.tracker-step.is-current .tracker-dot {
    border-color: var(--council-primary);
    background: var(--council-primary);
}

.tracker-step.is-upcoming {
    opacity: 0.65;
}

@media (max-width: 991.98px) {
    .circular-grid,
    .zone-directory-layout,
    .zone-card-grid,
    .tracker-details,
    .zone-stats,
    .office-bearer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .rights-card-header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rights-icon {
        width: 48px;
        height: 48px;
    }
}

/* NOTE(cursor): Distinct State / Central / Admin login cards + small text cards */
.auth-login-page {
    padding-bottom: 1.5rem;
}

.auth-login-hero.knowledge-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.1rem;
    padding: clamp(1.1rem, 2.4vw, 1.75rem) clamp(1.1rem, 2.4vw, 2rem);
    box-shadow: 0 20px 44px rgba(9, 49, 112, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-login-hero .lead {
    font-size: 0.95rem !important;
    max-width: 40rem;
}

.auth-login-hero h1 {
    font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
}

.auth-text-card-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.auth-text-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(13, 71, 161, 0.05);
    padding: 0.95rem 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.auth-text-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(13, 71, 161, 0.14);
}

.auth-text-card .auth-text-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.45rem;
}

.auth-text-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--council-primary-dark);
    line-height: 1.35;
}

.auth-text-card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748b;
}

.auth-login-card-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.auth-login-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(13, 71, 161, 0.14);
    box-shadow:
        0 30px 60px rgba(9, 49, 112, 0.24),
        0 12px 24px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 1.65rem 1.55rem 1.45rem;
    overflow: hidden;
    z-index: 1;
}

.auth-login-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8px;
}

.auth-login-card-head {
    text-align: center;
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.auth-login-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.55rem;
}

.auth-login-card-head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--council-primary-dark);
}

.auth-login-card-head p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
}

.auth-login-card .form-label {
    color: #0b2e63;
    font-weight: 700;
    font-size: 0.84rem;
}

.auth-login-card .form-control {
    min-height: 3rem;
    border: 1px solid rgba(13, 71, 161, 0.2);
    border-radius: 12px;
    background: #fbfdff;
    box-shadow: 0 3px 10px rgba(2, 22, 52, 0.04);
}

.auth-login-card .form-control:focus {
    background: #fff;
    border-color: rgba(13, 71, 161, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.12);
}

.auth-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.auth-login-card .btn-primary {
    border: 0;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.72rem 1.2rem;
}

.auth-login-card .btn-outline-primary {
    border-radius: 12px;
    font-weight: 700;
}

.auth-secure-bar {
    margin-top: 1rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(13, 71, 161, 0.1);
}

/* State login card — classic council blue */
.auth-login-card--state::before {
    background: linear-gradient(90deg, #0d47a1, #1976d2, #0d47a1);
}
.auth-login-card--state .auth-login-card-badge {
    color: #0d47a1;
    background: rgba(13, 71, 161, 0.1);
    border: 1px solid rgba(13, 71, 161, 0.16);
}
.auth-login-card--state .btn-primary {
    background: linear-gradient(120deg, #0d47a1, #093170);
    box-shadow: 0 12px 26px rgba(13, 71, 161, 0.32);
}
.auth-theme-state .auth-text-card .auth-text-label {
    color: #0d47a1;
    background: rgba(13, 71, 161, 0.09);
}

/* Central login card — deep navy + warm accent */
.auth-login-card--central {
    box-shadow:
        0 30px 60px rgba(7, 32, 74, 0.28),
        0 12px 24px rgba(15, 23, 42, 0.12);
}
.auth-login-card--central::before {
    background: linear-gradient(90deg, #071f4a, #c9a227, #071f4a);
}
.auth-login-card--central .auth-login-card-badge {
    color: #071f4a;
    background: rgba(201, 162, 39, 0.16);
    border: 1px solid rgba(201, 162, 39, 0.35);
}
.auth-login-card--central .btn-primary {
    background: linear-gradient(120deg, #071f4a, #0d47a1);
    box-shadow: 0 12px 26px rgba(7, 32, 74, 0.35);
}
.auth-theme-central .auth-login-hero.knowledge-hero {
    background:
        linear-gradient(120deg, rgba(7, 32, 74, 0.97), rgba(13, 71, 161, 0.88)),
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.28), transparent 42%);
}
.auth-theme-central .auth-text-card .auth-text-label {
    color: #071f4a;
    background: rgba(7, 32, 74, 0.08);
}

/* Admin login card — blue + orange accent */
.auth-login-card--admin::before {
    background: linear-gradient(90deg, #0d47a1, #ff5722, #0d47a1);
}
.auth-login-card--admin .auth-login-card-badge {
    color: #bf360c;
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.28);
}
.auth-login-card--admin .btn-primary {
    background: linear-gradient(120deg, #0d47a1, #e64a19);
    box-shadow: 0 12px 26px rgba(230, 74, 25, 0.28);
}
.auth-theme-admin .auth-text-card .auth-text-label {
    color: #e64a19;
    background: rgba(255, 87, 34, 0.1);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 4.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    border: 0;
    background: rgba(13, 71, 161, 0.1);
    color: var(--council-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 0.55rem;
    padding: 0.4rem 0.7rem;
    line-height: 1;
    min-width: 3.4rem;
}

.password-toggle:hover,
.password-toggle:focus {
    background: rgba(13, 71, 161, 0.18);
    outline: none;
}

@media (max-width: 991.98px) {
    .auth-text-card-row {
        grid-template-columns: 1fr;
    }

    .auth-login-card {
        max-width: 100%;
    }
}

/* NOTE(cursor): Dashboard styling aligned with login hero + cards */
.dash-page {
    padding-bottom: 1.25rem;
}

.dash-hero.knowledge-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(1.15rem, 2.5vw, 1.85rem) clamp(1.1rem, 2.5vw, 2rem);
    box-shadow: 0 20px 44px rgba(9, 49, 112, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dash-hero.knowledge-hero h1,
.dash-hero.knowledge-hero .lead,
.dash-hero.knowledge-hero p {
    color: #ffffff !important;
}

/* NOTE(cursor): Badge contrast handled globally via .knowledge-hero .form-hero-badge */
.dash-hero .form-hero-badge {
    background: #ffffff;
    color: #0b3a7a;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.dash-hero .lead {
    font-size: 0.92rem !important;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.92) !important;
}

.dash-hero h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
    color: #ffffff !important;
}

.dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-hero .btn-light {
    font-weight: 700;
    color: var(--council-primary-dark);
}

.dash-hero .btn-outline-light {
    font-weight: 700;
}

.dash-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.15rem;
}

.dash-stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 1rem 1.05rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(13, 71, 161, 0.14);
}

.dash-stat-card .auth-text-label {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--council-primary);
    background: rgba(13, 71, 161, 0.08);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.4rem;
}

.dash-stat-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--council-primary-dark);
    font-weight: 800;
}

.dash-stat-card span {
    font-size: 0.78rem;
    color: #64748b;
}

.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.dash-tabs .nav-link {
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--council-primary-dark);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.dash-tabs .nav-link:hover {
    background: rgba(13, 71, 161, 0.06);
    color: var(--council-primary-dark);
}

.dash-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(120deg, var(--council-primary), var(--council-primary-dark));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.28);
}

.dash-theme-central .dash-tabs .nav-link.active {
    background: linear-gradient(120deg, #071f4a, #0d47a1);
}

.dash-theme-admin .dash-tabs .nav-link.active,
.dash-theme-admin .nav-tabs .nav-link.active {
    background: linear-gradient(120deg, #0d47a1, #e64a19);
    border-color: transparent;
    color: #fff;
}

.dash-panel {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.1),
        0 2px 0 rgba(13, 71, 161, 0.04);
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.dash-panel-head {
    background:
        linear-gradient(120deg, rgba(9, 49, 112, 0.96), rgba(13, 71, 161, 0.88)),
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.2), transparent 42%);
    color: #ffffff;
    padding: 0.95rem 1.15rem;
}

.dash-theme-central .dash-panel-head {
    background:
        linear-gradient(120deg, rgba(7, 32, 74, 0.97), rgba(13, 71, 161, 0.88)),
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.25), transparent 42%);
    color: #ffffff;
}

.dash-theme-admin .dash-panel-head {
    background:
        linear-gradient(120deg, rgba(9, 49, 112, 0.96), rgba(13, 71, 161, 0.85)),
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.28), transparent 42%);
    color: #ffffff;
}

.dash-theme-state .dash-panel-head {
    background:
        linear-gradient(120deg, rgba(6, 78, 59, 0.97), rgba(15, 118, 110, 0.9)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 42%);
    color: #ffffff;
    border-bottom: 0;
}

.dash-panel-head h2,
.dash-panel-head h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.dash-panel-head p {
    margin: 0.3rem 0 0;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.8rem;
    line-height: 1.5;
}

.dash-panel-body {
    padding: 1.1rem 1.15rem 1.2rem;
}

.dash-panel-body .form-label {
    font-weight: 700;
    color: #0b2e63;
    font-size: 0.84rem;
}

.dash-dropzone {
    border: 1.5px dashed rgba(13, 71, 161, 0.3);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    background: rgba(13, 71, 161, 0.04);
}

.dash-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.dash-chip.apex {
    background: #fff3cd;
    color: #7a5b00;
}

.dash-chip.urgent {
    background: #fde2e1;
    color: #8a1f1a;
}

.dash-chip.normal {
    background: #e7f1ff;
    color: #0b3d5c;
}

.dash-theme-admin .nav-tabs {
    border: 0;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.dash-theme-admin .nav-tabs .nav-link {
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 999px;
    font-weight: 700;
    color: var(--council-primary-dark);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.dash-theme-admin .nav-tabs .nav-link:hover {
    border-color: rgba(13, 71, 161, 0.25);
}

.dash-theme-admin .section-card {
    border-radius: 18px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.dash-theme-central .dash-hero.knowledge-hero {
    background:
        linear-gradient(120deg, rgba(7, 32, 74, 0.97), rgba(13, 71, 161, 0.88)),
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.28), transparent 42%);
}

.dash-theme-state .dash-hero.knowledge-hero {
    background:
        linear-gradient(120deg, rgba(6, 78, 59, 0.96), rgba(15, 118, 110, 0.88)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 42%);
}

.dash-theme-admin .dash-hero.knowledge-hero {
    background:
        linear-gradient(120deg, rgba(9, 49, 112, 0.96), rgba(13, 71, 161, 0.85)),
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.32), transparent 42%);
}

.dash-theme-state .central-back-arrow,
.dash-theme-state .central-hub-card.tone-teal .central-hub-card-icon {
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.25);
}


.dash-theme-admin .nav-tabs.dash-tabs {
    border: 0;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dash-theme-admin .nav-tabs.dash-tabs .nav-link {
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 999px;
    font-weight: 700;
    color: var(--council-primary-dark);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.dash-theme-admin .nav-tabs.dash-tabs .nav-link:hover {
    border-color: rgba(13, 71, 161, 0.25);
    color: var(--council-primary-dark);
}

.dash-theme-admin .nav-tabs.dash-tabs .nav-link.active {
    background: linear-gradient(120deg, #0d47a1, #e64a19);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 767.98px) {
    .dash-stat-row {
        grid-template-columns: 1fr;
    }
}

/* NOTE(cursor): Polished data tables — bordered, shadowed, animated edge */
.dash-data-table-wrap {
    position: relative;
    border-radius: 14px;
    padding: 1px;
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.55), rgba(255, 87, 34, 0.35), rgba(13, 71, 161, 0.45));
    background-size: 220% 220%;
    animation: dashBorderShift 7s ease infinite;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.12),
        0 2px 0 rgba(13, 71, 161, 0.06);
    overflow: hidden;
}

.dash-theme-central .dash-data-table-wrap {
    background:
        linear-gradient(135deg, rgba(7, 32, 74, 0.65), rgba(201, 162, 39, 0.4), rgba(13, 71, 161, 0.5));
    background-size: 220% 220%;
}

.dash-theme-admin .dash-data-table-wrap {
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.55), rgba(230, 74, 25, 0.45), rgba(9, 49, 112, 0.5));
    background-size: 220% 220%;
}

@keyframes dashBorderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dash-data-table-wrap .table-responsive,
.dash-page .dash-panel-body > .table-responsive {
    border-radius: 13px;
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: auto;
}

.dash-data-table-wrap > .table-responsive {
    margin: 0;
    border: 0;
    border-radius: 13px;
}

.dash-page .dash-panel-body > .table-responsive {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(13, 71, 161, 0.18);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(13, 71, 161, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.dash-page .dash-panel-body > .table-responsive:hover {
    box-shadow:
        0 18px 36px rgba(13, 71, 161, 0.16),
        0 0 0 2px rgba(13, 71, 161, 0.12);
}

.dash-data-table,
.dash-page .dash-panel-body .table {
    --dash-table-border: rgba(13, 71, 161, 0.16);
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.86rem;
}

.dash-data-table thead th,
.dash-page .dash-panel-body .table thead th {
    background: linear-gradient(180deg, #0d47a1, #093170);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.72rem 0.85rem;
    vertical-align: middle;
}

.dash-theme-central .dash-data-table thead th,
.dash-theme-central .dash-panel-body .table thead th {
    background: linear-gradient(180deg, #071f4a, #0d47a1);
}

.dash-theme-admin .dash-data-table thead th,
.dash-theme-admin .dash-panel-body .table thead th {
    background: linear-gradient(180deg, #0d47a1, #c62828);
}

.dash-data-table thead th:last-child,
.dash-page .dash-panel-body .table thead th:last-child {
    border-right: 0;
}

.dash-data-table tbody td,
.dash-page .dash-panel-body .table tbody td {
    border-bottom: 1px solid var(--dash-table-border);
    border-right: 1px solid rgba(13, 71, 161, 0.08);
    padding: 0.7rem 0.85rem;
    vertical-align: middle;
    background: #fff;
    color: #1e293b;
}

.dash-data-table tbody td:last-child,
.dash-page .dash-panel-body .table tbody td:last-child {
    border-right: 0;
}

.dash-data-table.table-striped > tbody > tr:nth-of-type(odd) > *,
.dash-page .dash-panel-body .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(13, 71, 161, 0.035);
    box-shadow: none;
    color: #1e293b;
}

.dash-data-table tbody tr,
.dash-page .dash-panel-body .table tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.dash-data-table tbody tr:hover > *,
.dash-page .dash-panel-body .table tbody tr:hover > * {
    background-color: rgba(13, 71, 161, 0.08) !important;
}

.dash-data-table tbody tr:last-child td,
.dash-page .dash-panel-body .table tbody tr:last-child td {
    border-bottom: 0;
}

.dash-section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.dash-section-meta .dash-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--council-primary-dark);
    background: rgba(13, 71, 161, 0.08);
    border: 1px solid rgba(13, 71, 161, 0.14);
}

.dash-empty-state {
    border: 1.5px dashed rgba(13, 71, 161, 0.22);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    color: #64748b;
    background: rgba(13, 71, 161, 0.03);
}

@media (prefers-reduced-motion: reduce) {
    .dash-data-table-wrap {
        animation: none;
    }
}

/* NOTE(cursor): Animated inauguration welcome dialog on homepage */
body.inaug-dialog-lock {
    overflow: hidden;
}

.inaug-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 193, 7, 0.22), transparent 42%),
        radial-gradient(circle at 80% 85%, rgba(13, 71, 161, 0.35), transparent 45%),
        rgba(7, 24, 56, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.inaug-dialog-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.inaug-dialog-overlay.is-closing {
    opacity: 0;
    visibility: hidden;
}

.inaug-dialog {
    position: relative;
    width: min(520px, 100%);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f4f7fc 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 28px 60px rgba(7, 24, 56, 0.45),
        0 0 0 1px rgba(201, 162, 39, 0.35),
        0 0 40px rgba(201, 162, 39, 0.18);
    transform: translateY(28px) scale(0.92);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.inaug-dialog-overlay.is-open .inaug-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: inaugFloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.inaug-dialog-overlay.is-closing .inaug-dialog {
    transform: translateY(16px) scale(0.96);
    opacity: 0;
}

@keyframes inaugFloatIn {
    0% {
        transform: translateY(36px) scale(0.9) rotate(-0.6deg);
        opacity: 0;
    }
    60% {
        transform: translateY(-6px) scale(1.02) rotate(0.2deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

.inaug-dialog-shine {
    pointer-events: none;
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 48%,
        transparent 62%
    );
    transform: translateX(-60%);
    animation: inaugShine 3.2s ease-in-out 0.5s infinite;
    z-index: 2;
}

@keyframes inaugShine {
    0%, 40% { transform: translateX(-70%); opacity: 0; }
    55% { opacity: 0.7; }
    100% { transform: translateX(70%); opacity: 0; }
}

.inaug-dialog-close {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    z-index: 5;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 24, 56, 0.72);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.inaug-dialog-close:hover,
.inaug-dialog-close:focus-visible {
    background: #c62828;
    transform: scale(1.08);
    outline: none;
}

.inaug-dialog-media {
    position: relative;
    background:
        linear-gradient(120deg, #071832, #0d47a1 55%, #093170);
    min-height: 190px;
    overflow: hidden;
}

.inaug-dialog-banner {
    display: block;
    width: 100%;
    height: clamp(180px, 34vw, 240px);
    object-fit: cover;
    animation: inaugImageZoom 8s ease-in-out infinite alternate;
}

@keyframes inaugImageZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.inaug-dialog-logo {
    position: absolute;
    left: 1rem;
    bottom: 0.9rem;
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 0.35rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 162, 39, 0.55);
    animation: inaugLogoPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes inaugLogoPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.inaug-dialog-body {
    padding: 1.2rem 1.25rem 1.35rem;
    text-align: center;
}

.inaug-dialog-badge {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a5b00;
    background: linear-gradient(120deg, #fff3cd, #ffe08a);
    border: 1px solid rgba(201, 162, 39, 0.45);
    animation: inaugBadgePulse 2.4s ease-in-out infinite;
}

@keyframes inaugBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

.inaug-dialog-body h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    color: #093170;
}

.inaug-dialog-text {
    margin: 0 0 1.15rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #334155;
}

.inaug-dialog-text strong {
    display: inline;
    color: #0d47a1;
    font-weight: 800;
}

.inaug-dialog-role {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #b45309;
}

.inaug-dialog-ok {
    min-width: 11rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    box-shadow: 0 10px 22px rgba(13, 71, 161, 0.28);
}

@media (max-width: 575.98px) {
    .inaug-dialog {
        border-radius: 18px;
    }

    .inaug-dialog-body {
        padding: 1rem 1rem 1.15rem;
    }

    .inaug-dialog-text {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inaug-dialog-overlay,
    .inaug-dialog,
    .inaug-dialog-banner,
    .inaug-dialog-shine,
    .inaug-dialog-logo,
    .inaug-dialog-badge {
        animation: none !important;
        transition: none !important;
    }

    .inaug-dialog-overlay.is-open .inaug-dialog {
        transform: none;
        opacity: 1;
    }
}

/* NOTE(cursor): Ribbon-cut ceremony + scissors mouse experience */
body.inaug-scissors-cursor,
body.inaug-scissors-cursor * {
    cursor: none !important;
}

body.inaug-scissors-cursor .inaug-dialog-close,
body.inaug-scissors-cursor .inaug-dialog-ok {
    cursor: pointer !important;
}

.inaug-scissors {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2100;
    width: 48px;
    height: 48px;
    margin: -8px 0 0 -8px;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
    transition: opacity 0.18s ease;
    will-change: transform;
}

.inaug-scissors.is-visible {
    opacity: 1;
}

.inaug-scissors.is-snipping .inaug-scissors-blades {
    animation: inaugSnip 0.28s ease-in-out 3;
    transform-origin: 32px 30px;
}

@keyframes inaugSnip {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-18deg); }
}

.inaug-ribbon-stage {
    position: relative;
    margin: -1.35rem 0.85rem 0;
    z-index: 4;
    min-height: 78px;
}

.inaug-ribbon-stage.is-done {
    pointer-events: none;
}

.inaug-ribbon {
    position: relative;
    height: 64px;
    display: grid;
    place-items: center;
    outline: none;
    user-select: none;
}

.inaug-ribbon-left,
.inaug-ribbon-right {
    position: absolute;
    top: 50%;
    width: 54%;
    height: 34px;
    margin-top: -17px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18) 0 10px,
            transparent 10px 20px
        ),
        linear-gradient(180deg, #ffe08a 0%, #f59e0b 42%, #b45309 100%);
    border: 1px solid rgba(120, 53, 15, 0.45);
    box-shadow:
        0 10px 18px rgba(120, 53, 15, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.inaug-ribbon-left {
    left: -2%;
    border-radius: 8px 0 0 8px;
    clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%);
}

.inaug-ribbon-right {
    right: -2%;
    border-radius: 0 8px 8px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 50%);
}

.inaug-ribbon-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    animation: inaugRibbonSheen 2.4s linear infinite;
}

@keyframes inaugRibbonSheen {
    from { transform: translateX(-60%); }
    to { transform: translateX(60%); }
}

.inaug-ribbon-knot {
    position: absolute;
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff7d6, #f59e0b 55%, #92400e);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.35);
    display: grid;
    place-items: center;
    animation: inaugKnotPulse 1.6s ease-in-out infinite;
}

.inaug-ribbon-knot span {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(146, 64, 14, 0.55);
}

.inaug-ribbon-knot span:first-child {
    transform: translate(-8px, 2px);
}

.inaug-ribbon-knot span:last-child {
    transform: translate(8px, 2px);
}

@keyframes inaugKnotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.inaug-cut-hint {
    position: absolute;
    z-index: 4;
    top: -1.55rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(7, 24, 56, 0.88);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.25;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    animation: inaugHintBounce 1.4s ease-in-out infinite;
}

.inaug-cut-hint strong {
    display: block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fbbf24;
}

.inaug-cut-hint span {
    opacity: 0.9;
}

@keyframes inaugHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

.inaug-ribbon.is-cut .inaug-ribbon-left {
    transform: translate(-42%, 28px) rotate(-18deg);
    opacity: 0;
}

.inaug-ribbon.is-cut .inaug-ribbon-right {
    transform: translate(42%, 28px) rotate(18deg);
    opacity: 0;
}

.inaug-ribbon.is-cut .inaug-ribbon-knot {
    animation: none;
    transform: scale(0.2);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.inaug-ribbon.is-cut .inaug-cut-hint {
    opacity: 0;
    animation: none;
    transition: opacity 0.25s ease;
}

.inaug-ribbon-stage.is-done {
    min-height: 0;
    margin-top: -0.4rem;
    height: 0;
    overflow: hidden;
    transition: min-height 0.4s ease, margin 0.4s ease, height 0.4s ease;
}

.inaug-cut-status {
    margin: -0.35rem 0 1rem;
    font-size: 0.84rem;
    color: #64748b;
}

.inaug-cut-status.is-success {
    color: #15803d;
    font-weight: 700;
}

.inaug-dialog-ok:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
}

.inaug-dialog-overlay.is-inaugurated .inaug-dialog-badge {
    color: #166534;
    background: linear-gradient(120deg, #dcfce7, #86efac);
    border-color: rgba(22, 101, 52, 0.35);
}

.inaug-confetti {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
}

.inaug-confetti-piece {
    position: absolute;
    top: -12px;
    left: var(--x);
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    transform: rotate(var(--rot));
    animation: inaugConfettiFall 1.35s ease-out var(--delay) forwards;
}

@keyframes inaugConfettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(var(--rot)) scale(0.7);
    }
    15% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translateY(220px) rotate(calc(var(--rot) + 180deg)) scale(1);
    }
}

.inaug-dialog-overlay.is-cutting .inaug-dialog {
    animation: inaugCutShake 0.35s ease;
}

@keyframes inaugCutShake {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(0) scale(1.015) rotate(-0.4deg); }
    60% { transform: translateY(0) scale(0.995) rotate(0.4deg); }
}

@media (max-width: 575.98px) {
    .inaug-cut-hint {
        white-space: normal;
        width: min(240px, 86vw);
        top: -2.1rem;
    }

    .inaug-ribbon-left,
    .inaug-ribbon-right {
        height: 28px;
        margin-top: -14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inaug-ribbon-sheen,
    .inaug-ribbon-knot,
    .inaug-cut-hint,
    .inaug-confetti-piece,
    .inaug-scissors.is-snipping .inaug-scissors-blades {
        animation: none !important;
    }

    body.inaug-scissors-cursor,
    body.inaug-scissors-cursor * {
        cursor: auto !important;
    }

    .inaug-scissors {
        display: none;
    }
}

/* NOTE(cursor): Countdown ceremony + golden logo presentation */
.inaug-dialog--ceremony {
    width: min(560px, 100%);
}

.inaug-dialog-media--logo {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 1.25rem 1rem 0.75rem;
    background:
        radial-gradient(circle at 50% 30%, rgba(251, 191, 36, 0.28), transparent 55%),
        linear-gradient(160deg, #071832 0%, #0d47a1 55%, #093170 100%);
}

.inaug-golden-logo {
    width: min(220px, 58vw);
    height: auto !important;
    max-height: 220px;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
    animation: inaugLogoGlow 2.4s ease-in-out infinite;
}

@keyframes inaugLogoGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 16px 34px rgba(251, 191, 36, 0.45));
    }
}

.inaug-countdown-wrap {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0 0.25rem;
}

.inaug-countdown-ring {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 247, 214, 0.95) 40%, #f59e0b);
    border: 3px solid rgba(146, 64, 14, 0.35);
    box-shadow:
        0 0 0 6px rgba(245, 158, 11, 0.18),
        0 14px 28px rgba(120, 53, 15, 0.25);
    animation: inaugRingPulse 1s ease-in-out infinite;
}

@keyframes inaugRingPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16), 0 14px 28px rgba(120, 53, 15, 0.25); }
    50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.08), 0 16px 32px rgba(120, 53, 15, 0.3); }
}

.inaug-countdown-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #093170;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.inaug-countdown-number.is-pop {
    animation: inaugCountPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.inaug-countdown-number.is-final {
    color: #b45309;
}

@keyframes inaugCountPop {
    0% { transform: scale(0.55); opacity: 0.2; }
    55% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.inaug-countdown-label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.inaug-final-message {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.inaug-final-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.inaug-final-text {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

.inaug-final-text strong {
    display: inline;
}

.inaug-open-hint {
    margin: 0.85rem 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0d47a1;
}

.inaug-dialog-overlay.is-inaugurated .inaug-dialog-media--logo {
    background:
        radial-gradient(circle at 50% 30%, rgba(134, 239, 172, 0.25), transparent 55%),
        linear-gradient(160deg, #071832 0%, #0d47a1 55%, #093170 100%);
}

@media (max-width: 575.98px) {
    .inaug-countdown-ring {
        width: 100px;
        height: 100px;
    }

    .inaug-countdown-number {
        font-size: 2.45rem;
    }

    .inaug-golden-logo {
        max-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inaug-golden-logo,
    .inaug-countdown-ring,
    .inaug-countdown-number.is-pop {
        animation: none !important;
    }
}

/* NOTE(cursor): Flower burst after ribbon cut */
.inaug-flowers {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 4;
}

.inaug-flower {
    position: absolute;
    top: -1.5rem;
    left: var(--x);
    font-size: var(--size);
    line-height: 1;
    opacity: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: inaugFlowerFall var(--dur) ease-out var(--delay) forwards;
}

@keyframes inaugFlowerFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.5);
    }
    12% {
        opacity: 1;
        transform: translate3d(calc(var(--drift) * 0.2), 20px, 0) rotate(20deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift), 260px, 0) rotate(240deg) scale(1.05);
    }
}

.inaug-countdown-wrap.is-visible {
    animation: inaugCountReveal 0.45s ease both;
}

@keyframes inaugCountReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inaug-guest-block .inaug-cut-status.is-success {
    color: #15803d;
    font-weight: 700;
}

.inaug-dialog-overlay.has-scissors .inaug-ribbon {
    cursor: none;
}

@media (prefers-reduced-motion: reduce) {
    .inaug-flower {
        animation: none !important;
        opacity: 0;
    }
}

/* NOTE(cursor): Visible clickable scissors on ribbon — required to start ceremony */
.inaug-scissors-btn {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff8e7, #fbbf24 55%, #b45309);
    box-shadow:
        0 0 0 6px rgba(245, 158, 11, 0.25),
        0 14px 28px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    cursor: pointer;
    animation: inaugScissorsPulse 1.3s ease-in-out infinite;
}

.inaug-scissors-btn:hover,
.inaug-scissors-btn:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    outline: none;
    box-shadow:
        0 0 0 8px rgba(245, 158, 11, 0.35),
        0 16px 32px rgba(0, 0, 0, 0.32);
}

.inaug-scissors-btn:disabled {
    cursor: default;
    pointer-events: none;
}

.inaug-scissors-btn-icon {
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.inaug-scissors-btn-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a3e00;
}

.inaug-scissors-btn.is-snipping .inaug-scissors-btn-icon {
    animation: inaugBtnSnip 0.28s ease-in-out 4;
}

@keyframes inaugScissorsPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.22), 0 14px 28px rgba(0, 0, 0, 0.28); }
    50% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.08), 0 16px 34px rgba(0, 0, 0, 0.32); }
}

@keyframes inaugBtnSnip {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

.inaug-ribbon.is-cut .inaug-scissors-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Disable old floating cursor-none mode for this flow */
body.inaug-scissors-cursor,
body.inaug-scissors-cursor * {
    cursor: auto !important;
}

/* NOTE(cursor): Central compose-email card + rich text toolbar */
.central-media-tile {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    height: 100%;
    position: relative;
}

.central-media-tile img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.gallery-order-tile .gallery-seq-badge,
.central-media-tile .gallery-seq-badge {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.55rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(7, 31, 74, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.central-book-thumb {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.central-mail-card {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%);
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 1.25rem 1.35rem 1.5rem;
}

.central-mail-row {
    margin-bottom: 1rem;
}

.central-mail-row > label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d47a1;
    margin-bottom: 0.35rem;
}

/* NOTE(cursor): Interactive state multi-select — checkbox chips replace native <select multiple>. */
.compose-state-picker {
    border: 1px solid rgba(13, 71, 161, 0.18);
    border-radius: 14px;
    background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 10px 24px rgba(13, 71, 161, 0.08);
    overflow: hidden;
}

.compose-state-picker-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(120deg, #0d47a1, #1565c0 55%, #0f766e);
}

.compose-state-search {
    flex: 1 1 180px;
    min-width: 140px;
    border: 0;
    border-radius: 999px;
    padding: 0.48rem 0.9rem;
    font-size: 0.88rem;
    color: #0f172a;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.compose-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.compose-state-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compose-state-action-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.compose-state-action-btn.is-active {
    background: #fff;
    color: #0d47a1;
    border-color: #fff;
}

.compose-state-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem 0.2rem;
    min-height: 2.4rem;
}

.compose-state-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.55rem 0.28rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0b3a7a;
    background: linear-gradient(120deg, #e8f1ff, #fff4e8);
    border: 1px solid rgba(13, 71, 161, 0.2);
    animation: composeChipIn 0.22s ease;
}

.compose-state-chip button {
    border: 0;
    background: rgba(13, 71, 161, 0.12);
    color: #0d47a1;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.compose-state-chip button:hover {
    background: #0d47a1;
    color: #fff;
}

.compose-state-meta {
    padding: 0 0.85rem 0.45rem;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
}

.compose-state-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem 0.55rem 0.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.compose-state-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.compose-state-option:hover {
    border-color: rgba(13, 71, 161, 0.25);
    box-shadow: 0 6px 14px rgba(13, 71, 161, 0.1);
    transform: translateY(-1px);
}

.compose-state-option.is-checked {
    border-color: rgba(13, 71, 161, 0.35);
    background: linear-gradient(120deg, #eef5ff, #ffffff);
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.12);
}

.compose-state-option.is-hidden {
    display: none;
}

.compose-state-option input {
    margin-top: 0.15rem;
    accent-color: #0d47a1;
    flex-shrink: 0;
}

.compose-state-option-body {
    min-width: 0;
}

.compose-state-option-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.compose-state-option-sub {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compose-state-picker .js-compose-states {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

@keyframes composeChipIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.central-mail-editor-wrap {
    border: 1px solid rgba(13, 71, 161, 0.22);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.central-mail-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
    background: linear-gradient(120deg, #0d47a1 0%, #1565c0 40%, #c2410c 100%);
    border-bottom: 1px solid rgba(13, 71, 161, 0.14);
}

.central-mail-toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    align-items: center;
    padding: 0.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.central-mail-toolbar label.tb-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0.15rem 0 0.2rem;
}

.central-mail-toolbar button,
.central-mail-toolbar select {
    border: 0;
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #0f172a;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.central-mail-toolbar select {
    font-weight: 700;
    color: #0d47a1;
    min-width: 5.5rem;
}

.central-mail-toolbar select[data-mail-cmd="fontSize"],
.central-mail-toolbar select[data-mail-px] {
    min-width: 6.2rem;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
    color: #c2410c;
}

.central-mail-toolbar button:hover,
.central-mail-toolbar select:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.central-mail-toolbar button[data-mail-cmd="bold"] { color: #0d47a1; font-weight: 800; }
.central-mail-toolbar button[data-mail-cmd="italic"] { color: #7c3aed; font-style: italic; }
.central-mail-toolbar button[data-mail-cmd="underline"] { color: #0f766e; text-decoration: underline; }
.central-mail-toolbar button[data-mail-cmd="strikeThrough"] { color: #b91c1c; text-decoration: line-through; }
.central-mail-toolbar button[data-mail-cmd="createLink"] { color: #1d4ed8; font-weight: 700; }
.central-mail-toolbar button[data-mail-cmd="removeFormat"] { color: #64748b; }
.central-mail-toolbar button[data-mail-cmd="insertUnorderedList"],
.central-mail-toolbar button[data-mail-cmd="insertOrderedList"] { color: #b45309; font-weight: 700; }
.central-mail-toolbar button[data-mail-cmd="justifyLeft"],
.central-mail-toolbar button[data-mail-cmd="justifyCenter"],
.central-mail-toolbar button[data-mail-cmd="justifyRight"] { color: #334155; font-weight: 700; }

.central-mail-editor {
    min-height: 220px;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #1e293b;
    outline: none;
}

.central-mail-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.central-mail-signature-preview {
    margin-top: 0.5rem;
}

.central-mail-signature-card {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
    border: 2px solid rgba(13, 71, 161, 0.35);
    border-radius: 12px;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.08);
}

.central-mail-signature-card,
.central-mail-signature-card p,
.central-mail-signature-card a,
.central-mail-signature-card strong {
    color: #0d47a1 !important;
    font-weight: 700 !important;
}

@media (max-width: 767.98px) {
    .compose-state-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .central-mail-card {
        padding: 1rem;
    }

    .central-mail-toolbar {
        gap: 0.28rem;
    }
}

/* NOTE(cursor): Central hub cards + focused workspace chrome — compact 3–4/row grid + illuminated hover */
.central-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.1rem 0 1.35rem;
}

.central-hub-stat {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.central-hub-stat::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.55), rgba(201, 162, 39, 0.45), rgba(13, 71, 161, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.central-hub-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 71, 161, 0.28);
    box-shadow:
        0 14px 28px rgba(13, 71, 161, 0.14),
        0 0 0 1px rgba(13, 71, 161, 0.08),
        0 0 22px rgba(13, 71, 161, 0.18);
}

.central-hub-stat:hover::after {
    opacity: 1;
}

.central-hub-stat strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
    color: #0b3a7a;
    font-weight: 800;
}

.central-hub-stat span {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.central-hub-head {
    margin-bottom: 0.95rem;
}

.central-hub-head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b3a7a;
}

.dash-theme-state .central-hub-head h2 {
    color: #065f46;
}

.central-hub-head p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.central-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.central-hub-card {
    --hub-accent: #0d47a1;
    --hub-glow: rgba(13, 71, 161, 0.45);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 0.95rem 0.95rem 0.85rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease,
        border-color 0.32s ease,
        background 0.32s ease;
}

/* Soft top sheen */
.central-hub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hub-accent);
    opacity: 0.95;
    z-index: 2;
    transition: height 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Illuminating border ring */
.central-hub-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        var(--hub-accent) 0%,
        rgba(201, 162, 39, 0.85) 42%,
        var(--hub-accent) 100%
    );
    background-size: 220% 220%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
    animation: hubBorderShine 2.8s linear infinite;
    animation-play-state: paused;
}

.central-hub-card:hover,
.central-hub-card:focus-visible {
    transform: translateY(-6px) scale(1.015);
    border-color: transparent;
    color: inherit;
    background: linear-gradient(165deg, #ffffff 0%, #f0f6ff 100%);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.12),
        0 0 0 1px color-mix(in srgb, var(--hub-accent) 28%, transparent),
        0 0 28px var(--hub-glow),
        0 0 48px color-mix(in srgb, var(--hub-glow) 45%, transparent);
    outline: none;
}

.central-hub-card:hover::before,
.central-hub-card:focus-visible::before {
    height: 4px;
    box-shadow: 0 0 14px var(--hub-glow);
}

.central-hub-card:hover::after,
.central-hub-card:focus-visible::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes hubBorderShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.central-hub-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--hub-accent);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--hub-accent) 35%, transparent);
    flex-shrink: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.central-hub-card:hover .central-hub-card-icon,
.central-hub-card:focus-visible .central-hub-card-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 20px var(--hub-glow);
}

.central-hub-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
    flex: 1 1 auto;
}

.central-hub-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.central-hub-card-desc {
    font-size: 0.76rem;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.central-hub-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    text-align: left;
    min-width: 0;
}

.central-hub-card-meta strong {
    display: block;
    font-size: 1.05rem;
    color: #0b3a7a;
    font-weight: 800;
    line-height: 1.1;
}

.dash-theme-state .central-hub-card-meta strong {
    color: #065f46;
}

.central-hub-card-meta small {
    display: block;
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
}

.central-hub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.15rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--hub-accent);
    transition: transform 0.28s ease, letter-spacing 0.28s ease;
}

.central-hub-card:hover .central-hub-card-cta,
.central-hub-card:focus-visible .central-hub-card-cta {
    transform: translateX(3px);
    letter-spacing: 0.02em;
}

.dash-theme-state .central-hub-card-cta {
    color: #0f766e;
}

.central-hub-card.tone-navy { --hub-accent: #0d47a1; --hub-glow: rgba(13, 71, 161, 0.42); }
.central-hub-card.tone-crimson { --hub-accent: #b91c1c; --hub-glow: rgba(185, 28, 28, 0.4); }
.central-hub-card.tone-teal { --hub-accent: #0f766e; --hub-glow: rgba(15, 118, 110, 0.4); }
.central-hub-card.tone-indigo { --hub-accent: #4338ca; --hub-glow: rgba(67, 56, 202, 0.4); }
.central-hub-card.tone-blue { --hub-accent: #1d4ed8; --hub-glow: rgba(29, 78, 216, 0.4); }
.central-hub-card.tone-amber { --hub-accent: #b45309; --hub-glow: rgba(180, 83, 9, 0.4); }
.central-hub-card.tone-forest { --hub-accent: #166534; --hub-glow: rgba(22, 101, 52, 0.4); }
.central-hub-card.tone-violet { --hub-accent: #6d28d9; --hub-glow: rgba(109, 40, 217, 0.38); }
.central-hub-card.tone-slate { --hub-accent: #334155; --hub-glow: rgba(51, 65, 85, 0.4); }
.central-hub-card.tone-orange { --hub-accent: #c2410c; --hub-glow: rgba(194, 65, 12, 0.4); }

.central-hub-card.tone-navy .central-hub-card-icon,
.central-hub-card.tone-crimson .central-hub-card-icon,
.central-hub-card.tone-teal .central-hub-card-icon,
.central-hub-card.tone-indigo .central-hub-card-icon,
.central-hub-card.tone-blue .central-hub-card-icon,
.central-hub-card.tone-amber .central-hub-card-icon,
.central-hub-card.tone-forest .central-hub-card-icon,
.central-hub-card.tone-violet .central-hub-card-icon,
.central-hub-card.tone-slate .central-hub-card-icon,
.central-hub-card.tone-orange .central-hub-card-icon {
    background: var(--hub-accent);
}

.central-workspace-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: center;
    margin: 1rem 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(90deg, #eef5ff, #ffffff);
    border: 1px solid rgba(13, 71, 161, 0.14);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.central-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.45rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.central-back-btn:hover {
    background: rgba(13, 71, 161, 0.08);
    color: inherit;
}

.central-back-arrow {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d47a1;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.central-back-btn strong {
    display: block;
    font-size: 0.95rem;
    color: #0b3a7a;
}

.central-back-btn small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
}

.central-workspace-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.45rem 0.7rem 0.45rem 0.45rem;
}

.central-workspace-chip .central-hub-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.central-workspace-chip .central-hub-card-icon.tone-navy { background: #0d47a1; }
.central-workspace-chip .central-hub-card-icon.tone-crimson { background: #b91c1c; }
.central-workspace-chip .central-hub-card-icon.tone-teal { background: #0f766e; }
.central-workspace-chip .central-hub-card-icon.tone-indigo { background: #4338ca; }
.central-workspace-chip .central-hub-card-icon.tone-blue { background: #1d4ed8; }
.central-workspace-chip .central-hub-card-icon.tone-amber { background: #b45309; }
.central-workspace-chip .central-hub-card-icon.tone-forest { background: #166534; }
.central-workspace-chip .central-hub-card-icon.tone-violet { background: #6d28d9; }
.central-workspace-chip .central-hub-card-icon.tone-slate { background: #334155; }
.central-workspace-chip .central-hub-card-icon.tone-orange { background: #c2410c; }

.central-workspace-chip strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.central-workspace-chip small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.central-workspace-content {
    animation: centralWorkspaceIn 0.28s ease;
}

@keyframes centralWorkspaceIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
    .central-hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .central-hub-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .central-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .central-hub-grid {
        grid-template-columns: 1fr;
    }

    .central-hub-card {
        padding: 0.9rem;
    }

    .central-hub-card-meta {
        flex-wrap: wrap;
    }

    .central-hub-card-meta small {
        text-align: left;
    }

    .central-workspace-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .central-hub-card,
    .central-hub-card::before,
    .central-hub-card::after,
    .central-hub-card-icon,
    .central-hub-card-cta,
    .central-hub-stat {
        transition: none !important;
        animation: none !important;
    }

    .central-hub-card:hover,
    .central-hub-card:focus-visible,
    .central-hub-stat:hover {
        transform: none;
    }
}



/* NOTE(cursor): Apex GR Meeting Issues Generator � Central Dashboard */
.gr-meeting-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(13, 71, 161, 0.16);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 24px rgba(9, 49, 112, 0.08);
}

.gr-meeting-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 0.75rem;
}

.gr-attendee-row,
.gr-issue-row {
    background: #fff;
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.gr-issue-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.gr-issue-sr {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: #0d47a1;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.gr-import-box {
    max-height: 220px;
    overflow: auto;
    border: 1px solid rgba(13, 71, 161, 0.18);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: #fff;
}

.gr-import-item {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.4rem 0.2rem;
    border-bottom: 1px dashed rgba(13, 71, 161, 0.12);
    font-size: 0.9rem;
    cursor: pointer;
}

.gr-import-item:last-child {
    border-bottom: 0;
}

.gr-issue-editor-wrap .central-mail-editor {
    min-height: 110px;
}

.gr-meeting-saved .dash-data-table th {
    background: #0d47a1;
    color: #fff;
}
