:root {
    --brand-primary: #ec008c;
    --brand-primary-strong: #ec008c;
    --brand-primary-soft: #fff1f6;
    --brand-secondary: #5f3c8b;
    --brand-dark: #3c3c3b;
    --ink-strong: #2f3038;
    --ink-main: #444651;
    --ink-muted: #61646f;
    --surface-page: #f7f5f7;
    --surface-card: #ffffff;
    --surface-alt: #fbf9fb;
    --border-soft: #e8e3ea;
    --color-border-tertiary: #e8e3ea;
    --shadow-soft: 0 18px 38px rgba(53, 53, 52, 0.10);
    --shadow-hover: 0 24px 46px rgba(53, 53, 52, 0.16);
    --radius-hero: 34px;
    --radius-card: 10px;
    --radius-pill: 999px;
    --home-shell-gutter: 24px;
    --home-shell-effective-width-subtract: calc(var(--home-shell-gutter) + var(--bs-gutter-x, 1.5rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink-main);
    font-family: var(--layout-font-sans);
    background-color: #c4cacc;
    background-image: url('/images/backgroundautomation.png');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

body.highlight-expiry-modal-open {
    overflow: hidden;
}

body::before {
    display: none;
}

body::after {
    display: none;
}

.dashboard-shell {
    width: calc(100% - var(--home-shell-gutter));
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 0 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    :root {
        --home-shell-gutter: 16px;
    }
}

.dashboard-shell::before,
.dashboard-shell::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.dashboard-shell::before {
    left: -60px;
    bottom: 40px;
    width: 420px;
    height: 220px;
    background:
        radial-gradient(ellipse at center, rgba(53, 53, 52, 0.16), transparent 62%);
    transform: rotate(-10deg);
}

.dashboard-shell::after {
    right: -40px;
    bottom: 40px;
    width: 520px;
    height: 260px;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.14) 0, transparent 8%),
        radial-gradient(circle at 58% 52%, rgba(53, 53, 52, 0.10) 0, transparent 10%),
        radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.12) 0, transparent 7%);
    opacity: .96;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9), transparent 78%);
}

.intranet-welcome {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    min-height: 146px;
    margin-bottom: 16px;
    padding: 12px 20px 42px 20px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(36, 38, 42, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
}

.intranet-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.intranet-welcome::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 52%);
    pointer-events: none;
}

.welcome-copy,
.welcome-brand-panel {
    position: relative;
    z-index: 1;
}

.highlight-expiry-notification {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(340px, calc(100% - 32px));
    padding: 10px 14px;
    border: 0;
    border-radius: var(--radius-card);
    background: rgba(33, 33, 33, 0.76);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
    animation: blink 1.5s ease-in-out infinite;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.highlight-expiry-notification::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: #EC008C;
}

.highlight-expiry-notification i {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: .95rem;
}

.highlight-expiry-notification span {
    min-width: 0;
}

.highlight-expiry-notification:hover,
.highlight-expiry-notification:focus {
    background: rgba(33, 33, 33, 0.88);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.28);
    outline: none;
}

.highlight-expiry-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.highlight-expiry-modal.open {
    display: flex;
}

.highlight-expiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 20, 0.56);
    backdrop-filter: blur(6px);
}

.highlight-expiry-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(232, 227, 234, 0.96);
    box-shadow: 0 28px 60px rgba(19, 19, 20, 0.28);
}

.highlight-expiry-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(60, 60, 59, 0.08);
    color: #3c3c3b;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.highlight-expiry-close:hover,
.highlight-expiry-close:focus {
    background: rgba(236, 0, 140, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.highlight-expiry-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 46px;
}

.highlight-expiry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-strong));
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(236, 0, 140, 0.20);
}

.highlight-expiry-title {
    margin: 0;
    color: #3c3c3b;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.highlight-expiry-subtitle {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: .88rem;
    font-weight: 600;
}

.highlight-expiry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0 4px 2px 0;
    list-style: none;
    overflow-y: auto;
}

.highlight-expiry-item {
    flex: 0 0 auto;
}

.highlight-expiry-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
}

.highlight-expiry-date i {
    color: #CC0077;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-logout {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    margin: 0;
}

.hero-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hero-admin-button {
    position: absolute;
    top: 18px;
    right: 258px;
    z-index: 2;
    min-width: 108px;
    padding: 0 16px;
    cursor: default;
}

.hero-profile-button {
    position: absolute;
    top: 18px;
    right: 140px;
    z-index: 2;
    min-width: 108px;
    padding: 0 16px;
}

.hero-profile-button i {
    font-size: 1.2rem;
    transform: translateY(-1px);
}

.hero-profile-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.hero-admin-button i {
    font-size: 1.5rem;
    transform: translateY(-1px);
}

.hero-admin-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.hero-logout-button i {
    transform: translateY(-1px);
}

.hero-logout-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.hero-logout-button:hover,
.hero-logout-button:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    outline: none;
}

.welcome-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 880px);
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    transform: none;
}

.welcome-greeting {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.02;
}

.welcome-greeting .user-name {
    color: #e6007e !important;
}

.welcome-greeting .welcome-accent-letter {
    color: #e6007e;
}

.welcome-greeting .welcome-accent-word {
    color: #e6007e;
}

.welcome-subtitle {
    margin: 0;
    width: min(620px, 100%);
    padding-top: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(.92rem, .95vw, 1.02rem);
    font-weight: 600;
    line-height: 1.35;
}

.welcome-subtitle strong {
    font-weight: 700;
}

.welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.welcome-meta-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: none;
}

.welcome-calendar {
    align-self: flex-start;
    margin-top: -6px;
}

.welcome-meta-item i {
    color: #ffffff;
    font-size: 1.08rem;
}

.welcome-brand-panel {
    display: none;
}

.welcome-art-panel {
    display: none;
}

.art-shape {
    display: none;
}

.art-shape-back {
    display: none;
}

.art-shape-front {
    display: none;
}

.art-wave {
    display: none;
}

.welcome-art-panel::before {
    content: none;
}

.welcome-art-panel::after {
    content: none;
}

.intranet-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: clamp(360px, 54vh, 560px);
    width: 100%;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-shifts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.notice-board-section,
.shifts-section {
    min-width: 0;
}

.notice-shifts-grid .intra-card,
.shifts-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-card);
}

.shifts-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 0;
    overflow-y: auto;
}

.shift-group {
    overflow: hidden;
    border: 1px solid rgba(232, 227, 234, 0.92);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 18px rgba(53, 53, 52, 0.06);
}

.shift-group-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
    color: #3c3c3b;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

.shift-group-summary::-webkit-details-marker {
    display: none;
}

.shift-group-summary-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.shift-calendar-button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #EC008C;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(236, 0, 140, 0.07);
    border: 1px solid rgba(236, 0, 140, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.shift-calendar-button i {
    color: inherit;
    font-size: 11px;
}

.shift-summary-separator {
    width: 1px;
    height: 16px;
    background: var(--color-border-tertiary);
    margin: 0 12px;
}

.shift-summary-chevron {
    flex: 0 0 auto;
    color: var(--brand-primary);
    font-size: .78rem;
    transition: transform .18s ease;
}

.shift-group[open] .shift-summary-chevron {
    transform: rotate(180deg);
}

.shift-group-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 14px;
}

.shift-subcategory {
    margin-top: 2px;
    color: var(--brand-primary);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shift-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(232, 227, 234, 0.78);
}

.shift-row:first-of-type {
    border-top: 0;
}

.shift-person {
    min-width: 0;
    color: #3c3c3b;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.25;
}

.shift-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #3c3c3b;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(53, 53, 52, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.shift-phone i {
    color: var(--brand-primary);
    font-size: .78rem;
}

.shift-phone:hover,
.shift-phone:focus {
    color: #3c3c3b;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(53, 53, 52, 0.14);
    outline: none;
}

.shift-empty {
    padding: 8px 0 2px;
    color: var(--ink-muted);
    font-size: .84rem;
    font-style: italic;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.macro-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 168px;
    padding: 22px 24px;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        var(--surface-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px) saturate(118%);
    -webkit-backdrop-filter: blur(10px) saturate(118%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.macro-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.macro-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(58% 120% at 70% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0) 64%);
    pointer-events: none;
}

.macro-card:hover,
.macro-card:focus {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 18px 34px rgba(0, 0, 0, 0.26);
    outline: none;
}

.macro-card-icon,
.macro-card-title,
.macro-card-text,
.macro-card-arrow {
    position: relative;
    z-index: 1;
}

.macro-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 18px rgba(0, 0, 0, 0.22);
    font-size: 1.35rem;
}

.macro-card-title {
    font-size: 1.45rem;
    font-weight: 620;
    letter-spacing: -.03em;
}

.macro-card-text {
    max-width: 32ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: .96rem;
    line-height: 1.5;
}

.macro-card-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 700;
}

@media (max-width: 1400px) {
    .macro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.macro-card-utilities {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        var(--surface-card);
}

.macro-card-quality {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        var(--surface-card);
}

.macro-card-projects {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        var(--surface-card);
}

.macro-card-operations {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
        var(--surface-card);
}

.hub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #3c3c3b;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 700;
}

.hub-back-link:hover,
.hub-back-link:focus {
    color: #3c3c3b;
    text-decoration: none;
}

.hub-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hub-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(236, 0, 140, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 20px 40px rgba(53, 53, 52, 0.10);
}

.hub-hero::before,
.hub-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hub-hero::before {
    top: -44px;
    right: -24px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 60, 59, 0.08) 0, rgba(60, 60, 59, 0) 70%);
}

.hub-hero::after {
    left: 36px;
    bottom: -56px;
    width: 280px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(236, 0, 140, 0.10), transparent 72%);
}

.hub-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 28px;
    border-radius: var(--radius-card);
    background:
        linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(53, 53, 52, 0.16);
}

.hub-panel-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hub-panel-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-card);
}

.hub-panel-brand:hover,
.hub-panel-brand:focus {
    text-decoration: none;
}

.hub-panel-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.hub-panel-brand-icon {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    box-shadow: 0 14px 28px rgba(53, 53, 52, 0.20);
    color: #ffffff;
    font-size: 1.6rem;
}

.hub-panel-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.hub-kicker {
    display: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hub-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.04em;
}

.hub-subtitle {
    display: none;
    margin: 0;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.55;
}

.hub-subtitle-visible {
    display: block;
    max-width: 58ch;
    color: var(--ink-main);
}

.hub-kicker-visible {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 0, 140, 0.10);
    color: var(--brand-primary);
    letter-spacing: .10em;
}

.hub-panel-dark {
    position: relative;
    overflow: hidden;
}

.hub-panel-dark::after {
    content: "";
    position: absolute;
    inset: auto -24px -48px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11) 0, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.hub-panel-dark > * {
    position: relative;
    z-index: 1;
}

.hub-panel-copy-tight {
    gap: 8px;
}

.hub-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hub-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(60, 60, 59, 0.08);
    color: var(--ink-strong);
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(53, 53, 52, 0.08);
}

.hub-meta-pill i {
    color: var(--brand-primary);
}

.hub-section-card {
    padding: 24px 26px 26px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 36px rgba(53, 53, 52, 0.10);
}

.hub-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hub-button {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 108px;
    padding: 22px 24px;
    border-radius: var(--radius-card);
    text-decoration: none;
    color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 32px rgba(53, 53, 52, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hub-button:hover,
.hub-button:focus {
    color: var(--ink-strong);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 24px 40px rgba(53, 53, 52, 0.14);
    outline: none;
}

.hub-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    box-shadow: 0 12px 24px rgba(53, 53, 52, 0.18);
    color: #ffffff;
    font-size: 1.35rem;
}

.hub-button-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.hub-button-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hub-button-text {
    color: var(--ink-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.hub-button-arrow {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(236, 0, 140, 0.10);
    color: var(--brand-primary);
    font-size: .92rem;
    flex: 0 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #3c3c3b;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 76px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary));
}

.section-line {
    flex: 1;
    height: 2px;
    background: #3c3c3b;
}

.section-link {
    margin-left: auto;
    color: #3c3c3b;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.section-link:hover {
    color: #3c3c3b;
    text-decoration: none;
}

.utilities-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    margin-top: 14px;
    padding-bottom: 14px;
    position: relative;
}

.utilities-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.utilities-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(59, 59, 58, 0.96);
    color: #ffffff;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(53, 53, 52, 0.14);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.utilities-tab-label i {
    font-size: .92rem;
    line-height: 1;
}

.utilities-tab-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(53, 53, 52, 0.2);
}

.utilities-tab-line {
    position: relative;
    width: calc(100% - 32px);
    height: 4px;
    margin-top: 4px;
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    overflow: hidden;
}

.utilities-tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), #c90075);
    box-shadow: 0 8px 14px rgba(236, 0, 140, 0.18);
    transform: translateX(0);
    transition: transform .28s ease, width .28s ease;
}

.utilities-tab-panels {
    width: 100%;
    margin-top: 18px;
}

.utilities-tabs-static {
    padding-bottom: 0;
}

.utilities-tab-label-static {
    background: linear-gradient(90deg, var(--brand-primary), #c90075);
    cursor: default;
}

.utilities-tab-label-static:hover {
    transform: none;
    box-shadow: 0 12px 22px rgba(53, 53, 52, 0.14);
}

.utilities-tab-label-return {
    background: rgba(59, 59, 58, 0.96);
    color: #ffffff;
    text-decoration: none;
}

.utilities-tab-label-return:hover,
.utilities-tab-label-return:focus {
    color: #ffffff;
    text-decoration: none;
}

.utilities-tab-line-static {
    margin-top: 6px;
}

.utilities-tab-indicator-static {
    width: 152px;
    transform: translateX(0);
}

.utilities-tab-panels-static {
    margin-top: 18px;
}

.utilities-tab-panel {
    display: none;
}

.utilities-tab-panel.utilities-tab-panel-static {
    display: block;
}

#utilities-tab-attivita:checked ~ .utilities-tab-label[for="utilities-tab-attivita"],
#utilities-tab-hr:checked ~ .utilities-tab-label[for="utilities-tab-hr"],
#utilities-tab-corsi:checked ~ .utilities-tab-label[for="utilities-tab-corsi"],
#utilities-tab-documenti:checked ~ .utilities-tab-label[for="utilities-tab-documenti"] {
    background: linear-gradient(90deg, var(--brand-primary), #c90075);
}

#utilities-tab-attivita:checked ~ .utilities-tab-panels .utilities-tab-panel:nth-child(1),
#utilities-tab-hr:checked ~ .utilities-tab-panels .utilities-tab-panel:nth-child(2),
#utilities-tab-corsi:checked ~ .utilities-tab-panels .utilities-tab-panel:nth-child(3),
#utilities-tab-documenti:checked ~ .utilities-tab-panels .utilities-tab-panel:nth-child(4) {
    display: block;
}

.hub-submenu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.hub-submenu-button {
    min-height: 96px;
}

.hub-submenu-group {
    align-items: stretch;
    gap: 16px;
    cursor: default;
}

.hub-submenu-expandable {
    padding: 0;
    overflow: hidden;
}

.hub-submenu-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 96px;
    padding: 18px 20px;
    cursor: pointer;
}

.hub-submenu-summary::-webkit-details-marker {
    display: none;
}

.hub-submenu-overtime {
    padding: 18px 20px;
}

.hub-submenu-overtime-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hub-submenu-group-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hub-submenu-group-caption {
    color: var(--ink-muted);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
}

.hub-submenu-summary-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--ink-strong);
    transition: transform .18s ease, background-color .18s ease;
}

.hub-submenu-expandable[open] .hub-submenu-summary-toggle {
    transform: rotate(180deg);
    background: rgba(236, 0, 140, 0.14);
}

.hub-submenu-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 16px 16px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hub-submenu-overtime-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--ink-strong);
    text-decoration: none;
    font-size: .98rem;
    font-weight: 700;
    transition: background-color .18s ease, padding .18s ease, color .18s ease;
}

.hub-submenu-overtime-link:last-child {
    border-bottom: 0;
}

.hub-submenu-list-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hub-submenu-list-main i {
    width: 18px;
    text-align: center;
    color: var(--brand-primary);
}

.hub-submenu-list-arrow {
    color: rgba(68, 70, 81, 0.52);
    font-size: .82rem;
    transition: transform .18s ease, color .18s ease;
}

.hub-submenu-overtime-link:hover,
.hub-submenu-overtime-link:focus {
    color: var(--ink-strong);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
    padding-left: 18px;
    padding-right: 14px;
    outline: none;
}

.hub-submenu-overtime-link:hover .hub-submenu-list-arrow,
.hub-submenu-overtime-link:focus .hub-submenu-list-arrow {
    color: var(--brand-primary);
    transform: translateX(2px);
}

.hub-submenu-button .hub-button-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-card);
    font-size: 1.2rem;
}

.hub-submenu-button .hub-button-title {
    font-size: 1.02rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

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

.external-home-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 220px;
    padding: 28px;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(236, 0, 140, 0.30), transparent 38%),
        linear-gradient(145deg, rgba(59, 59, 58, 0.98), rgba(36, 38, 42, 0.94));
    box-shadow: 0 18px 34px rgba(53, 53, 52, 0.24);
    overflow: hidden;
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.external-home-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -56px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.external-home-card:hover,
.external-home-card:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 42px rgba(53, 53, 52, 0.30);
}

.external-home-card-icon,
.external-home-card-copy,
.external-home-card-arrow {
    position: relative;
    z-index: 1;
}

.external-home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.external-home-card-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.external-home-card-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.external-home-card-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.12;
}

.external-home-card-desc {
    max-width: 28ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.5;
}

.external-home-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
}

.qa-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 92px;
    padding: 14px 12px 12px;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 26px rgba(53, 53, 52, 0.22);
    overflow: hidden;
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.qa-tile::before {
    content: none;
}

.qa-tile::marker {
    content: none;
}

.qa-tile::after {
    content: none;
}

.qa-tile:hover,
.qa-tile:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(53, 53, 52, 0.28);
}

.qa-icon,
.qa-bg-icon,
.qa-label,
.qa-arrow,
.qa-underline {
    position: relative;
    z-index: 1;
}

.qa-bg-icon {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    transform: none;
    color: #ffffff;
    font-size: 1.95rem;
    line-height: 1;
    pointer-events: none;
}

.qa-bg-icon i {
    filter: none;
    transition: transform .22s ease, filter .22s ease, color .22s ease;
}

.qa-label {
    color: #ffffff;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.15;
}

.qa-arrow {
    display: none;
}

.tile-secondary .qa-arrow {
    color: inherit;
}

.tile-feature-icon .qa-icon,
.tile-feature-icon .qa-label,
.tile-feature-icon .qa-arrow,
.tile-feature-icon .qa-underline {
    z-index: 2;
}

.tile-feature-icon {
    align-items: center;
    justify-content: flex-start;
    padding: 14px 12px 12px;
    position: relative;
}

.tile-feature-icon .qa-label {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    text-align: center;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.tile-dark .qa-arrow {
    color: #3c3c3b;
}

.qa-underline {
    display: none;
}

.qa-decor {
    display: none;
}

.qa-decor-left,
.qa-decor-right,
.qa-decor-soft,
.qa-decor-dark {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 152px;
    height: 112px;
    border-radius: 0 18px 0 92px;
    background:
        radial-gradient(circle at top right, rgba(53, 53, 52, 0.14), rgba(53, 53, 52, 0.06) 42%, transparent 72%);
    opacity: .78;
}

.qa-decor-dots {
    display: none;
}

.qa-decor-dots-left {
    display: none;
}

.qa-decor-wave {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 152px;
    height: 112px;
    background: radial-gradient(circle at top right, rgba(53, 53, 52, 0.10), transparent 68%);
    opacity: .62;
    mask-image: none;
}

.qa-tile:hover .qa-bg-icon i,
.qa-tile:focus .qa-bg-icon i {
    transform: translateY(-1px);
    filter: none;
}

.tile-no-corner-glow .qa-decor-right,
.tile-no-corner-glow .qa-decor-wave,
.tile-no-corner-glow .qa-decor-soft,
.tile-no-corner-glow .qa-decor-dark,
.tile-no-corner-glow .qa-decor-left {
    display: none;
}

.intra-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(232, 227, 234, 0.9);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 34px rgba(53, 53, 52, 0.12);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.intra-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -54px;
    width: 94%;
    height: 90px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(53, 53, 52, 0.16) 0%, rgba(53, 53, 52, 0.08) 46%, rgba(53, 53, 52, 0) 78%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

/*.intra-card:hover,
.intra-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 26px 44px rgba(53, 53, 52, 0.16);
}

.intra-card:hover::before,
.intra-card:focus-within::before {
    opacity: 1;
}*/

.news-card {
    padding: 16px;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    box-shadow: none;
}

.news-card::before {
    content: none;
}

.news-card:hover,
.news-card:focus-within {
    transform: none;
    box-shadow: none;
}

.news-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-item {
    position: relative;
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 0.5px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.news-item-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.news-item + .news-item {
    margin-top: 0;
}

.news-item-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.news-item:hover {
    transform: translateY(-2px);
    background: var(--surface-card);
    border-color: rgba(236, 0, 140, 0.18);
}

.news-item.highlight {
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: none;
}

.news-item::before {
    content: none;
}

.news-item.highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: #EC008C;
}

.news-item.highlight .news-title {
    font-weight: 760;
}

.news-item.highlight .news-excerpt,
.news-item.highlight .news-date {
    font-weight: 650;
}

.news-item.type-info::before {
    background: #3778e3;
}

.news-item.type-it::before {
    background: #2563eb;
}

.news-item.type-success::before {
    background: #19a86f;
}

.news-item.type-events::before {
    background: #0f9f6e;
}

.news-item.type-warn::before {
    background: #d97706;
}

.news-item.type-safety::before {
    background: #ea580c;
}

.news-item.type-quality::before {
    background: #0f766e;
}

.news-item.type-training::before {
    background: #7c3aed;
}

.news-item.type-dark::before {
    background: #4b5563;
}

.news-item.type-docs::before {
    background: #475569;
}

.news-item.type-comms::before {
    background: #dc2626;
}

.news-item.highlight::before {
    background: #EC008C;
}

.news-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 12px 20px rgba(53, 53, 52, 0.12);
}

.badge-info {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.badge-it {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.badge-success {
    background: linear-gradient(145deg, #10b981, #059669);
}

.badge-events {
    background: linear-gradient(145deg, #34d399, #059669);
}

.badge-hr {
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-strong));
}

.badge-warn {
    background: linear-gradient(145deg, #f59e0b, #d97706);
}

.badge-safety {
    background: linear-gradient(145deg, #fb923c, #ea580c);
}

.badge-quality {
    background: linear-gradient(145deg, #2dd4bf, #0f766e);
}

.badge-training {
    background: linear-gradient(145deg, #a78bfa, #7c3aed);
}

.badge-dark {
    background: linear-gradient(145deg, #4b5563, #374151);
}

.badge-docs {
    background: linear-gradient(145deg, #64748b, #475569);
}

.badge-comms {
    background: linear-gradient(145deg, #f87171, #dc2626);
}

.news-body {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #3c3c3b;
    font-size: .78rem;
    font-weight: 600;
}

.news-highlight-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 6px;
    color: #CC0077;
    font-size: 12px;
    font-weight: 900 !important;
    font-family: "Arial Black", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.news-title {
    margin: 0 0 8px;
    color: #3c3c3b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-excerpt {
    margin: 0;
    color: #3c3c3b;
    font-size: .9rem;
    line-height: 1.6;
}

.news-date {
    align-self: center;
    color: #3c3c3b;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    color: #ffffff;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    box-shadow: 0 14px 26px rgba(53, 53, 52, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
    overflow: visible;
}

.link-item::before {
    content: none;
}

.link-item i {
    width: 18px;
    color: #ffffff;
    text-align: center;
    font-size: 1rem;
}

.link-item:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 32px rgba(53, 53, 52, 0.24);
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 22px 20px 20px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    box-shadow: 0 14px 28px rgba(53, 53, 52, 0.22);
}

.auth-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-top: -10px;
    margin-bottom: 2px;
    font-size: 1.5rem;
    color: #e6007e;
    background: linear-gradient(180deg, rgba(230, 0, 126, 0.18), rgba(230, 0, 126, 0.08));
    border: 1px solid rgba(230, 0, 126, 0.28);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 24px rgba(230, 0, 126, 0.16);
}

.auth-card-logo {
    display: block;
    width: min(200px, 74%);
    height: auto;
    margin: -14px auto -12px;
    object-fit: contain;
    clip-path: inset(22% 0 22% 0);
}

.auth-card-title {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.auth-card-text {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: .88rem;
    line-height: 1.45;
}

.auth-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 38px;
    padding: 0 20px;
    border-radius: var(--radius-card);
    background: #ffffff;
    color: #3c3c3b;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-card-button:hover,
.auth-card-button:focus {
    color: #3c3c3b;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 10px 8px max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(53, 53, 52, 1));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 36px rgba(53, 53, 52, 0.22);
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 58px;
    padding: 8px 6px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 700;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.bn-item i {
    font-size: 1.12rem;
}

.bn-item.active,
.bn-item:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intranet-welcome,
.dashboard-section {
    animation: fadeUp .32s ease both;
}

.dashboard-section:nth-of-type(2) {
    animation-delay: .06s;
}

.dashboard-section:nth-of-type(3) {
    animation-delay: .12s;
}

@media (max-width: 1180px) {
    .dashboard-shell {
        width: calc(100% - 20px);
    }

    .intranet-welcome {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .welcome-brand-panel {
        min-height: 180px;
    }

    .art-shape-back,
    .art-shape-front {
        width: 320px;
    }

    .quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-submenu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .notice-shifts-grid {
        grid-template-columns: 1fr;
    }

    .shifts-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .dashboard-shell {
        width: calc(100% - var(--home-shell-gutter));
        padding-top: 12px;
    }

    .intranet-welcome {
        align-items: start;
        min-height: 156px;
        padding: 12px 14px 14px 16px;
        border-radius: var(--radius-card);
    }

    .intranet-welcome::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
    }

    .intranet-welcome::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0) 76%);
    }

    .welcome-copy {
        width: min(100%, 100%);
        gap: 6px;
        padding-top: 0;
        transform: translateY(0px);
    }

    .hero-logout-button {
        height: 42px;
        padding: 0 14px;
        font-size: .86rem;
    }

    .hero-admin-button {
        top: auto;
        bottom: 12px;
        right: 12px;
        width: 42px;
        min-width: 42px;
        padding: 0;
        gap: 0;
    }

    .hero-admin-button i {
        font-size: 1.4rem;
    }

    .hero-admin-button span {
        display: none;
    }

    .hero-profile-button {
        display: none;
    }

    .hero-profile-button span {
        display: none;
    }

    .welcome-greeting {
        max-width: calc(100% - 136px);
        font-size: 1.5rem;
        line-height: 1.04;
    }

    .welcome-calendar {
        margin-top: 0;
        font-size: .8rem;
    }

    .highlight-expiry-notification {
        right: auto;
        bottom: 12px;
        left: 12px;
        max-width: calc(100% - 74px);
        padding: 9px 12px;
        font-size: 12px;
    }

    .highlight-expiry-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .highlight-expiry-dialog {
        max-height: min(86vh, 680px);
        padding: 18px;
        border-radius: var(--radius-card);
    }

    .highlight-expiry-header {
        align-items: flex-start;
        padding-right: 42px;
    }

    .highlight-expiry-title {
        font-size: 1rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .external-home-grid {
        grid-template-columns: 1fr;
    }

    .external-home-card {
        min-height: 180px;
        padding: 24px 20px;
    }

    .external-home-card-title {
        font-size: 1.2rem;
    }

    .external-home-card-desc {
        max-width: none;
        font-size: .92rem;
    }

    .macro-grid {
        grid-template-columns: 1fr;
    }

    .hub-buttons-grid {
        grid-template-columns: 1fr;
    }

    .hub-submenu-grid {
        grid-template-columns: 1fr;
    }

    .hub-panel-header {
        align-items: center;
        gap: 18px;
    }

    .hub-panel-brand {
        width: 64px;
        height: 64px;
        border-radius: var(--radius-card);
    }

    .hub-panel-brand img {
        width: 38px;
        height: 38px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .auth-state {
        min-height: auto;
    }

    .section-line {
        min-width: 100%;
    }

    .news-item {
        flex-wrap: wrap;
    }

    .news-date {
        margin-left: 58px;
    }

}

@media (max-width: 767.98px) {
    .shift-calendar-button {
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
    }

    .shift-calendar-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .shift-summary-separator {
        margin: 0 8px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    .intranet-layout {
        padding-bottom: 24px;
    }

    .intranet-welcome {
        padding-bottom: 52px;
    }

    .welcome-copy {
        align-items: flex-start;
        justify-content: flex-start;
        width: min(100%, 880px);
        text-align: left;
        gap: 6px;
        margin-bottom: 4px;
    }

    .welcome-meta {
        justify-content: flex-start;
    }

    .welcome-calendar {
        align-self: flex-start;
        margin-top: 0;
    }
}

/* Dark theme overrides */
:root {
    --ink-strong: #ffffff;
    --ink-main: #d7d9de;
    --ink-muted: #aeb3bb;
    --surface-page: rgba(8, 10, 14, 0.40);
    --surface-card: rgba(36, 38, 42, 0.72);
    --surface-alt: rgba(44, 46, 50, 0.68);
    --border-soft: rgba(255, 255, 255, 0.14);
    --color-border-tertiary: rgba(255, 255, 255, 0.14);
    --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 22px 40px rgba(0, 0, 0, 0.28);
}

body::before {
    display: block;
}

.highlight-expiry-dialog,
.shift-group,
.shift-phone,
.hub-hero,
.hub-section-card,
.hub-button,
.intra-card {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.highlight-expiry-dialog,
.shift-group,
.hub-section-card,
.hub-button,
.intra-card {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
}

.highlight-expiry-dialog,
.hub-section-card,
.intra-card {
    background: rgba(24, 26, 30, 0.62) !important;
}

.shift-group,
.hub-button {
    background: rgba(36, 38, 42, 0.72) !important;
}

.hub-hero {
    background:
        radial-gradient(circle at top right, rgba(236, 0, 140, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(34, 36, 41, 0.72), rgba(24, 26, 30, 0.62)) !important;
}

.highlight-expiry-close,
.hub-meta-pill,
.shift-phone {
    background: rgba(38, 40, 45, 0.9) !important;
    color: #f5f5f5 !important;
}

.shift-group-summary,
.shift-person,
.hub-back-link,
.hub-button,
.hub-button:hover,
.hub-button:focus,
.hub-button-title,
.hub-button-subtitle {
    color: #f5f5f5 !important;
}

.highlight-expiry-title,
.highlight-expiry-close {
    color: #f5f5f5 !important;
}

.auth-card-button,
.auth-card-button:hover,
.auth-card-button:focus,
.auth-card-button:active,
.auth-card-button:visited {
    color: #3c3c3b !important;
}

.shift-row {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Bacheca aziendale readability */
.news-card {
    background: rgba(24, 26, 30, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.news-item {
    background: rgba(44, 46, 50, 0.68) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.news-item:hover {
    background: rgba(52, 54, 58, 0.74) !important;
    border-color: rgba(236, 0, 140, 0.32) !important;
}

.news-title {
    color: #ffffff !important;
}

.news-excerpt {
    color: #d7d9de !important;
}

.news-date,
.news-meta {
    color: #aeb3bb !important;
}

/* Azioni rapide soft glass */
.qa-tile {
    background: linear-gradient(180deg, rgba(68, 72, 78, 0.82), rgba(48, 52, 58, 0.82)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

.qa-tile:hover,
.qa-tile:focus {
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26) !important;
}

/* Widget titles */
.section-title,
.section-link {
    color: #ffffff !important;
}

.section-line {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* Home glass effect */
.intra-card,
.news-card,
.news-item,
.shift-group,
.hub-section-card,
.hub-button,
.qa-tile,
.link-item,
.auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(36, 38, 42, 0.66) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 30px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
}

.intra-card::after,
.hub-section-card::after,
.hub-button::after,
.qa-tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.qa-icon,
.qa-bg-icon,
.qa-label,
.hub-button-icon,
.hub-button-copy,
.hub-button-arrow {
    position: relative;
    z-index: 1;
}

.news-item:hover,
.hub-button:hover,
.qa-tile:hover,
.link-item:hover {
    border-color: rgba(255, 255, 255, 0.24) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 18px 34px rgba(0, 0, 0, 0.26) !important;
}

/* Keep Bacheca/Reperibili containers natural height (no forced stretch) */
.notice-shifts-grid {
    align-items: start;
}

.notice-shifts-grid .intra-card,
.notice-shifts-grid .shifts-card {
    height: auto !important;
}

@media (min-width: 769px) {
    .shifts-section {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .shifts-section > .shifts-card {
        flex: 1 1 auto;
    }
}
