@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #17202f;
}

body.theme-font-segoe {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.theme-font-georgia {
    font-family: Georgia, "Times New Roman", serif;
}

body.theme-font-verdana {
    font-family: Verdana, Geneva, sans-serif;
}

body.theme-font-trebuchet {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

body.theme-font-tahoma {
    font-family: Tahoma, Geneva, sans-serif;
}

body.theme-font-garamond {
    font-family: Garamond, Baskerville, serif;
}

body.theme-font-courier {
    font-family: "Courier New", Courier, monospace;
}

body.theme-font-palatino {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

a {
    color: var(--brand-accent, #1c5b8c);
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--brand-primary, #17324d) 0%, var(--brand-sidebar, #102538) 100%);
    color: #fff;
    padding: 24px;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.brand-logo {
    display: block;
    width: 148px;
    max-width: 148px;
    min-width: 148px;
    height: 42px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.brand-subtitle {
    color: #9fc4de;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #d8ebfa;
    margin-bottom: 8px;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.content {
    padding: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.page-subtitle {
    margin: 0;
    color: #5d6c7d;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(17, 43, 67, 0.08);
    margin-bottom: 20px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.metric {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary, #17324d);
}

.muted {
    color: #6d7d8e;
}

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

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

th,
td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e6edf3;
    vertical-align: top;
}

th {
    font-size: 0.86rem;
    text-transform: uppercase;
    color: #637789;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ced8e2;
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button,
.button {
    background: var(--brand-primary, #17324d);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.button-secondary {
    background: #e9f0f6;
    color: var(--brand-primary, #17324d);
}

.button-success {
    background: #1f7a45;
    color: #fff;
}

.button-danger {
    background: #a23636;
}

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

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf3fb;
    color: #17324d;
    font-size: 0.84rem;
    font-weight: 700;
}

.badge.success { background: #e7f6ed; color: #17633d; }
.badge.warning { background: #fff3dd; color: #8c5d00; }
.badge.danger { background: #fce9e9; color: #963737; }

.priority-badge.success {
    background: #e7f6ed;
    color: #17633d;
}

.priority-badge.warning {
    background: #fff3dd;
    color: #8c5d00;
}

.priority-badge.danger {
    background: #fce9e9;
    color: #963737;
}

.flash {
    padding: 14px 16px;
    border-radius: 12px;
    background: #e7f6ed;
    color: #17633d;
    margin-bottom: 18px;
}

.errors {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fce9e9;
    color: #8a2828;
    margin-bottom: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-weather-card {
    position: relative;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #d7e4ef;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.78), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #edf4fb 100%);
    padding: 18px;
}

.calendar-weather-card.is-loading {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.78), transparent 28%),
        linear-gradient(135deg, #f4f8fc 0%, #e6eff7 100%);
}

.calendar-weather-card.is-error {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(135deg, #fbf7f4 0%, #f4ece7 100%);
}

.calendar-weather-scene {
    position: relative;
    width: 148px;
    height: 110px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(188, 220, 245, 0.72) 0%, rgba(227, 239, 248, 0.32) 100%);
    overflow: hidden;
}

.calendar-weather-content {
    display: grid;
    gap: 8px;
}

.calendar-weather-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #698195;
    font-weight: 700;
}

.calendar-weather-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #17324d;
}

.calendar-weather-summary {
    line-height: 1.6;
}

.calendar-weather-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.calendar-weather-metric {
    border-radius: 14px;
    border: 1px solid #dbe7f2;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.calendar-weather-metric span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b8092;
    font-weight: 700;
}

.calendar-weather-metric strong {
    color: #17324d;
}

.calendar-event-weather {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid #dbe7f2;
    background: #f8fbff;
    padding: 10px 12px;
}

.user-picker {
    position: relative;
}

.user-picker-shell {
    min-height: 60px;
    padding: 14px 16px 10px;
    border: 1px solid #c9d8e8;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-picker-shell:focus-within {
    border-color: rgba(28, 91, 140, 0.45);
    box-shadow: 0 0 0 4px rgba(28, 91, 140, 0.12);
}

.user-picker-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-picker-placeholder {
    padding: 2px 0 6px;
}

.user-picker-input {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.user-picker-input:focus {
    outline: none;
    box-shadow: none;
}

.user-picker-help {
    margin-top: 8px;
}

.user-picker-dropdown {
    position: absolute;
    z-index: 15;
    left: 0;
    right: 0;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d7e4f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(16, 37, 56, 0.12);
}

.user-picker-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #59758f;
}

.user-picker-options {
    display: grid;
    gap: 8px;
}

.user-picker-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7e4f0;
    border-radius: 16px;
    background: #f9fcff;
    color: #17324d;
    text-align: left;
}

.user-picker-option:hover,
.user-picker-option:focus {
    border-color: rgba(28, 91, 140, 0.4);
    background: #eef6fd;
    outline: none;
}

.user-picker-option-copy,
.user-picker-chip-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.user-picker-option-copy strong,
.user-picker-chip-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-picker-option-copy span,
.user-picker-chip-copy span,
.user-picker-option-meta {
    font-size: 0.84rem;
    color: #6d7d8e;
}

.user-picker-option-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f0f8;
    color: #355a78;
    font-weight: 700;
}

.user-picker-chip {
    display: inline-grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
    min-width: 220px;
    max-width: 100%;
    padding: 8px 8px 8px 10px;
    border: 1px solid #d4e2ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #f4f9fd 0%, #edf5fb 100%);
}

.user-picker-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #57718a;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(16, 37, 56, 0.08);
}

.user-picker-chip-remove:hover,
.user-picker-chip-remove:focus {
    background: #17324d;
    color: #ffffff;
    outline: none;
}

.user-picker-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
    background: #dce8f3;
}

.user-picker-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #17324d;
    background: linear-gradient(180deg, #e8f1f8 0%, #dce9f4 100%);
}

.user-picker-empty {
    padding: 12px 6px 4px;
}

.weather-sun,
.weather-cloud,
.weather-rain-drop,
.weather-snowflake,
.weather-fog,
.weather-lightning {
    position: absolute;
}

.weather-sun {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe7a3 0%, #ffd467 62%, #ffc547 100%);
    top: 16px;
    right: 18px;
    box-shadow: 0 0 22px rgba(255, 206, 92, 0.5);
}

.weather-cloud {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 14px 6px 0 2px rgba(255, 255, 255, 0.9), 28px 2px 0 -2px rgba(255, 255, 255, 0.82);
    height: 18px;
}

.weather-cloud-one {
    width: 42px;
    left: 18px;
    top: 34px;
}

.weather-cloud-two {
    width: 34px;
    left: 54px;
    top: 48px;
}

.weather-rain-drop {
    width: 3px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(91, 150, 205, 0) 0%, #5b96cd 100%);
    opacity: 0;
}

.weather-rain-one { left: 42px; top: 58px; }
.weather-rain-two { left: 64px; top: 62px; }
.weather-rain-three { left: 86px; top: 58px; }

.weather-snowflake {
    color: #ffffff;
    font-size: 0.95rem;
    opacity: 0;
}

.weather-snowflake::before {
    content: '*';
}

.weather-snow-one { left: 46px; top: 64px; }
.weather-snow-two { left: 82px; top: 60px; }

.weather-fog {
    width: 72px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 0;
}

.weather-fog-one { left: 22px; top: 44px; }
.weather-fog-two { left: 38px; top: 62px; }

.weather-lightning {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 5px solid transparent;
    border-top: 24px solid #ffd667;
    left: 68px;
    top: 52px;
    opacity: 0;
    transform: rotate(14deg);
}

.animation-clear .weather-sun {
    animation: weatherSunPulse 3.2s ease-in-out infinite;
}

.animation-clouds .weather-cloud-one,
.animation-clouds .weather-cloud-two,
.animation-rain .weather-cloud-one,
.animation-rain .weather-cloud-two,
.animation-snow .weather-cloud-one,
.animation-snow .weather-cloud-two,
.animation-storm .weather-cloud-one,
.animation-storm .weather-cloud-two,
.animation-fog .weather-cloud-one,
.animation-fog .weather-cloud-two {
    animation: weatherCloudDrift 6s ease-in-out infinite;
}

.animation-rain .weather-rain-drop {
    opacity: 1;
    animation: weatherRainFall 1s linear infinite;
}

.animation-rain .weather-rain-two {
    animation-delay: 0.18s;
}

.animation-rain .weather-rain-three {
    animation-delay: 0.36s;
}

.animation-snow .weather-snowflake {
    opacity: 1;
    animation: weatherSnowFloat 2.8s ease-in-out infinite;
}

.animation-snow .weather-snow-two {
    animation-delay: 0.5s;
}

.animation-fog .weather-fog {
    opacity: 1;
    animation: weatherFogShift 2.6s ease-in-out infinite;
}

.animation-storm .weather-rain-drop {
    opacity: 1;
    animation: weatherRainFall 0.9s linear infinite;
}

.animation-storm .weather-lightning {
    opacity: 1;
    animation: weatherLightningFlash 2.8s ease-in-out infinite;
}

.animation-storm .weather-cloud-one,
.animation-storm .weather-cloud-two {
    filter: brightness(0.92);
}

@keyframes weatherSunPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 22px rgba(255, 206, 92, 0.45); }
    50% { transform: scale(1.08); box-shadow: 0 0 32px rgba(255, 206, 92, 0.7); }
}

@keyframes weatherCloudDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes weatherRainFall {
    0% { transform: translateY(-4px); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

@keyframes weatherSnowFloat {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.3; }
    50% { transform: translate3d(6px, 14px, 0); opacity: 1; }
}

@keyframes weatherFogShift {
    0%, 100% { transform: translateX(0); opacity: 0.34; }
    50% { transform: translateX(10px); opacity: 0.78; }
}

@keyframes weatherLightningFlash {
    0%, 100%, 82% { opacity: 0; }
    84%, 88% { opacity: 1; }
    86% { opacity: 0.35; }
}

.day-cell {
    min-height: 130px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(17, 43, 67, 0.06);
}

.weekend {
    background: #f6f0e8;
}

.event-pill {
    display: block;
    margin-top: 6px;
    padding: 5px 8px;
    background: #edf5fb;
    color: #17324d;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.event-pill--ticket-high {
    background: #fce9e9;
    color: #963737;
}

.event-pill--ticket-normal {
    background: #fff3dd;
    color: #8c5d00;
}

.event-pill--ticket-low {
    background: #e7f6ed;
    color: #17633d;
}

.event-pill--custom {
    background: #e9f2ff;
    color: #1b4f8a;
}

.event-pill--holiday {
    background: #e5f8f8;
    color: #12656e;
}

.event-pill--absence {
    background: #fdeaf2;
    color: #8f2f5f;
}

.calendar-type-badge {
    margin-left: 8px;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, #dbe9f5, #f4f7fb 52%);
}

.auth-card {
    width: min(480px, 92vw);
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(20, 43, 67, 0.14);
}

.portal-auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 70% 22%, rgba(132, 103, 255, 0.18), transparent 18%),
        radial-gradient(circle at 58% 44%, rgba(88, 194, 255, 0.14), transparent 14%),
        linear-gradient(180deg, #080b1a 0%, #090d1f 58%, #060915 100%);
    color: #eef2ff;
}

.portal-auth-shell {
    width: min(1120px, calc(100vw - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(420px, 1fr);
    gap: 22px;
    align-items: center;
    padding: 36px 0;
    position: relative;
}

.portal-auth-shell::before {
    content: "";
    position: absolute;
    left: -220px;
    bottom: 140px;
    width: 520px;
    height: 180px;
    border: 1px solid rgba(145, 172, 255, 0.55);
    border-radius: 62% 38% 68% 32% / 44% 52% 48% 56%;
    opacity: 0.85;
    pointer-events: none;
}

.portal-auth-shell::after {
    content: "";
    position: absolute;
    right: 120px;
    top: 120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(194, 214, 255, 0.3) 36%, rgba(255, 255, 255, 0) 68%);
    filter: blur(18px);
    opacity: 0.42;
    pointer-events: none;
}

.portal-auth-form-shell {
    display: grid;
    gap: 18px;
}

.portal-auth-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: min(220px, 100%);
}

.portal-auth-brand::after {
    content: "";
    display: block;
    width: 86px;
    height: 10px;
    margin-top: 6px;
    border-bottom: 5px solid #6ebdff;
    border-radius: 999px;
    transform: skewX(-20deg);
    box-shadow: 0 0 22px rgba(110, 189, 255, 0.55);
}

.portal-auth-brand img {
    display: block;
    width: 148px;
    max-width: 148px;
    min-width: 148px;
    height: 42px;
    max-height: 42px;
    object-fit: contain;
}

.portal-auth-form-card,
.portal-auth-news {
    background: rgba(17, 20, 39, 0.82);
    border: 1px solid rgba(118, 129, 193, 0.2);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(14px);
}

.portal-auth-form-card {
    display: grid;
    gap: 18px;
    border-radius: 28px;
    padding: 24px 20px 22px;
    overflow-wrap: anywhere;
}

.portal-auth-form-card-wide {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.portal-auth-eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.portal-auth-form-card h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.1vw, 2.3rem);
    line-height: 1.08;
    color: #f8fbff;
    letter-spacing: -0.04em;
}

.portal-auth-form-card .muted {
    color: rgba(214, 223, 255, 0.74);
}

.portal-auth-form label {
    color: #d8e2ff;
    font-size: 0.94rem;
}

.portal-auth-form input {
    border-radius: 16px;
    border: 1px solid rgba(144, 159, 224, 0.28);
    background: rgba(9, 13, 29, 0.82);
    color: #f8fbff;
    min-height: 44px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(11, 15, 31, 0.35);
}

.portal-auth-form input:focus {
    outline: 2px solid rgba(73, 188, 255, 0.16);
    border-color: rgba(73, 188, 255, 0.7);
    box-shadow:
        0 0 0 4px rgba(83, 166, 255, 0.12),
        0 0 24px rgba(88, 194, 255, 0.18);
}

.portal-auth-submit {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #44c2ff 0%, #4d85ff 48%, #7d4dff 100%);
    color: #ffffff;
    font-weight: 800;
    min-height: 48px;
    box-shadow: 0 18px 34px rgba(73, 117, 255, 0.34);
}

.portal-auth-submit:hover {
    filter: brightness(1.04);
}

.portal-auth-link-stack {
    display: grid;
    gap: 10px;
}

.portal-auth-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(144, 159, 224, 0.22);
    background: rgba(20, 25, 46, 0.8);
    color: #dbe7ff;
    font-weight: 700;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    border-radius: 16px;
}

.portal-auth-secondary-link:hover {
    background: rgba(29, 37, 66, 0.92);
    border-color: rgba(110, 189, 255, 0.46);
    transform: translateY(-1px);
}

.portal-auth-note-card {
    border-top: 1px solid rgba(144, 159, 224, 0.18);
    padding-top: 16px;
    color: rgba(214, 223, 255, 0.78);
}

.portal-auth-note-card p {
    margin: 8px 0 0;
    line-height: 1.7;
}

.portal-auth-note-card code {
    font-size: 0.92rem;
}

.portal-auth-legal {
    margin: 0;
    max-width: 360px;
    color: rgba(188, 199, 232, 0.68);
    font-size: 0.88rem;
    line-height: 1.7;
}

.portal-auth-news {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: grid;
    grid-template-rows: minmax(300px, 1fr) auto;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(9, 12, 28, 0.95) 0%, rgba(7, 10, 23, 0.98) 100%);
}

.portal-auth-news::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 56% 32%, rgba(255, 255, 255, 0.58) 0%, rgba(194, 216, 255, 0.18) 10%, transparent 24%),
        radial-gradient(circle at 52% 52%, rgba(120, 109, 255, 0.18) 0%, transparent 22%),
        linear-gradient(180deg, rgba(11, 15, 35, 0.2) 0%, rgba(4, 7, 19, 0.72) 100%);
    pointer-events: none;
}

.portal-auth-news::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: 110px;
    width: 430px;
    height: 140px;
    border: 1px solid rgba(145, 172, 255, 0.6);
    border-radius: 62% 38% 68% 32% / 44% 52% 48% 56%;
    opacity: 0.9;
    transform: rotate(-9deg);
}

.portal-auth-news-hero,
.portal-auth-news-body {
    position: relative;
    z-index: 1;
}

.portal-auth-news-hero {
    display: grid;
    align-content: end;
    gap: 16px;
    padding: 40px 44px 34px;
    color: #f8fafc;
}

.portal-auth-news-kicker {
    width: fit-content;
    padding: 7px 12px;
    background: rgba(32, 39, 74, 0.72);
    border: 1px solid rgba(136, 149, 226, 0.18);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e9ff;
    border-radius: 999px;
}

.portal-auth-news-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.02;
    max-width: 520px;
}

.portal-auth-news-hero p {
    margin: 0;
    max-width: 500px;
    color: rgba(248, 250, 252, 0.92);
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(226, 232, 255, 0.72);
}

.portal-auth-news-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-auth-news-cta span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(18, 24, 49, 0.78);
    border: 1px solid rgba(136, 149, 226, 0.18);
    color: #f8fafc;
    font-weight: 700;
    border-radius: 16px;
}

.portal-auth-news-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 24px 24px;
}

.portal-auth-news-card {
    min-height: 180px;
    padding: 18px 16px 20px;
    background: rgba(20, 25, 46, 0.72);
    border: 1px solid rgba(136, 149, 226, 0.16);
    color: #f8fafc;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.portal-auth-news-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.35;
}

.portal-auth-news-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.65;
    font-size: 0.94rem;
}

.portal-auth-news-card,
.portal-auth-news-hero,
.shell-topbar-copy,
.page-subtitle,
.muted {
    overflow-wrap: anywhere;
}

.portal-auth-field-grid {
    display: grid;
    gap: 14px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.camera-preview {
    width: 100%;
    background: #0c1620;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.profile-avatar-preview {
    display: block;
    width: 148px;
    height: 148px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid #dbe7f2;
    box-shadow: 0 10px 24px rgba(17, 43, 67, 0.08);
}

.company-logo-preview {
    display: block;
    max-width: 240px;
    max-height: 108px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #dbe7f2;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(17, 43, 67, 0.06);
}

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

.settings-block {
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.settings-block h3 {
    margin-bottom: 8px;
}

.settings-block p {
    margin-top: 0;
}

.color-control-grid {
    display: grid;
    grid-template-columns: 120px repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.color-preview-chip {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d1deeb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.font-preview {
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    color: #324557;
}

.settings-inline-note {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #5f7286;
}

.settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-weight: 600;
}

.settings-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

@media (max-width: 960px) {
    .color-control-grid {
        grid-template-columns: 1fr;
    }
}

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

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e6edf3;
}

.compact-button {
    width: auto;
    padding: 9px 14px;
}

.wrap-actions {
    flex-wrap: wrap;
}

.metric-card {
    background: #f8fbff;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    padding: 16px;
}

.interactive-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef5fb 0%, #e3edf7 100%);
    border: 1px solid #d3e0ec;
}

.resource-form-chipset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-form-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4fa;
    color: #536578;
    border: 1px solid #d3e0ec;
    font-size: 0.9rem;
    font-weight: 600;
}

.resource-form-chip.active {
    background: var(--brand-primary, #17324d);
    color: #fff;
    border-color: var(--brand-primary, #17324d);
}

.resource-showcase {
    align-items: start;
}

.resource-showcase-tool {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.resource-filter-card {
    margin: 16px 0 18px;
}

.resource-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px)) auto;
    gap: 14px;
    align-items: end;
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid #cbd9e6;
    color: var(--brand-primary, #17324d);
    background: #f8fbff;
    text-decoration: none;
    font-weight: 600;
}

.resource-3d-card {
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    margin-bottom: 16px;
}

.resource-3d-avatar-card {
    margin-bottom: 0;
}

.resource-card-avatar-shell {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: min(860px, 58%);
    height: auto;
    z-index: 1;
    pointer-events: auto;
}

.resource-card-avatar-shell::before {
    content: '';
    position: absolute;
    inset: -10% -36% -10% -4%;
    background: linear-gradient(270deg, rgba(248, 251, 255, 0.9) 0%, rgba(248, 251, 255, 0.62) 42%, rgba(248, 251, 255, 0.06) 100%);
    z-index: 1;
    pointer-events: none;
}

.resource-card-content {
    position: relative;
    z-index: 2;
}

.resource-primary-column {
    position: relative;
    min-height: 320px;
    padding-left: min(620px, 46vw);
}

.resource-primary-column-tool {
    padding-left: min(560px, 41vw);
}

.resource-3d-viewer {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    border: 0;
}

.resource-3d-viewer canvas {
    display: block;
    width: 100%;
    height: 280px;
}

.resource-card-avatar-shell .resource-card-avatar-viewer {
    width: 100%;
    min-height: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    overflow: visible;
}

.resource-card-avatar-shell .resource-card-avatar-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.resource-3d-avatar {
    min-height: 220px;
}

.resource-3d-avatar canvas {
    height: 220px;
}

.resource-3d-status {
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #4e6174;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed #b8cbdd;
    border-radius: 14px;
    padding: 16px;
    z-index: 2;
}

.resource-meta-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.resource-tool-column {
    display: grid;
    align-content: start;
}

.resource-tool-details-card {
    margin-bottom: 0;
}

.resource-card-hero {
    position: relative;
    min-height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #dbe7f2;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
    isolation: isolate;
}

.resource-card-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 251, 255, 0.95) 0%, rgba(248, 251, 255, 0.82) 40%, rgba(248, 251, 255, 0.34) 100%);
    z-index: 1;
    pointer-events: none;
}

.resource-card-hero-viewer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.resource-card-hero-viewer .resource-card-avatar-viewer,
.resource-card-hero-viewer .resource-card-avatar-viewer canvas {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.resource-card-hero-viewer .resource-card-avatar-viewer {
    overflow: hidden;
    background: transparent;
    transform: scale(1.12);
    transform-origin: center center;
}

.resource-card-hero-overlay {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: space-between;
    min-height: 400px;
    padding: 24px;
}

.resource-card-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.resource-delete-form {
    margin: 0;
}

.resource-card-hero-grid {
    align-items: end;
}

.resource-card-hero-grid-tool {
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
}

.resource-card-hero-copy {
    display: grid;
    align-content: end;
    max-width: 460px;
}

.resource-card-hero-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(219, 231, 242, 0.8);
}

.resource-meta-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
}

.resource-meta-list-compact {
    margin-top: 0;
}

.resource-primary-column-secondary {
    min-height: 0;
    padding-left: 0;
}

.resource-visual-card {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .resource-filter-form {
        grid-template-columns: 1fr;
    }

    .resource-showcase-tool {
        grid-template-columns: 1fr;
    }

    .resource-card-hero,
    .resource-card-hero-overlay,
    .resource-card-hero-viewer .resource-card-avatar-viewer,
    .resource-card-hero-viewer .resource-card-avatar-viewer canvas {
        min-height: 340px;
    }

    .resource-card-hero-grid,
    .resource-card-hero-grid-tool {
        grid-template-columns: 1fr;
    }

    .resource-card-hero-actions {
        justify-content: flex-start;
    }

    .resource-card-avatar-shell {
        position: relative;
        top: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 220px;
        margin-bottom: 16px;
    }

    .resource-card-avatar-shell::before {
        inset: 0;
        background: linear-gradient(180deg, rgba(248, 251, 255, 0.08) 0%, rgba(248, 251, 255, 0.02) 100%);
    }

    .resource-card-avatar-viewer,
    .resource-card-avatar-viewer canvas {
        height: 220px;
        min-height: 220px;
    }

    .resource-primary-column {
        min-height: 0;
        padding-left: 0;
    }
}

.resource-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid #dbe7f2;
    object-fit: cover;
    max-height: 320px;
}

.resource-image-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #6d7d8e;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fa 100%);
}

.resource-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.inline-record {
    padding: 12px 0;
    border-bottom: 1px solid #e6edf3;
}

.requirement-note {
    border-left: 4px solid #17324d;
    padding-left: 12px;
    color: #445567;
    margin-bottom: 14px;
}

.map-card {
    margin-top: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    padding: 14px;
    background: #f8fbff;
}

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

.map-frame {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #dbe7f2;
    background: #d8e7f5;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 260px;
    border: 0;
}

.workflow-page {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
}

.workflow-sidebar,
.workflow-main {
    min-width: 0;
}

.chip-palette {
    display: grid;
    gap: 12px;
}

.palette-chip {
    border: 1px dashed #97b5ce;
    border-radius: 16px;
    padding: 14px;
    background: #f7fbff;
    cursor: grab;
}

.palette-chip strong,
.palette-chip span {
    display: block;
}

.palette-chip span {
    color: #6d7d8e;
    margin-top: 4px;
    font-size: 0.92rem;
}

.workflow-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.workflow-canvas-shell {
    position: relative;
    border-radius: 20px;
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #f9fbfd 0%, #eef5fa 100%);
    overflow: hidden;
}

.workflow-drop-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #4d6276;
    font-size: 0.82rem;
}

.workflow-canvas {
    position: relative;
    min-height: 760px;
    overflow: auto;
    background-image:
        linear-gradient(rgba(23, 50, 77, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 50, 77, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

#workflow-edges {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.workflow-edge {
    fill: none;
    stroke: #2d6c9c;
    stroke-width: 3;
    stroke-linecap: round;
}

#workflow-canvas-nodes {
    position: relative;
    min-height: 760px;
}

.workflow-node {
    position: absolute;
    width: 250px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe7f2;
    box-shadow: 0 14px 36px rgba(17, 43, 67, 0.12);
    overflow: hidden;
}

.workflow-node.selected {
    outline: 3px solid rgba(28, 91, 140, 0.28);
}

.workflow-node.type-start { border-top: 6px solid #24495b; }
.workflow-node.type-task { border-top: 6px solid #1c5b8c; }
.workflow-node.type-travel { border-top: 6px solid #2c7a52; }
.workflow-node.type-wait { border-top: 6px solid #8d6a1c; }
.workflow-node.type-buffer { border-top: 6px solid #7f4f95; }
.workflow-node.type-multiplier { border-top: 6px solid #924444; }

.node-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 14px 10px;
    cursor: move;
}

.node-header span {
    display: block;
    color: #6d7d8e;
    font-size: 0.76rem;
    margin-top: 4px;
}

.node-ports {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
}

.port {
    width: auto;
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e6f0f8;
    color: #17324d;
}

.node-body {
    padding: 0 14px 14px;
}

.node-body label {
    font-size: 0.82rem;
    margin-top: 10px;
}

.node-body textarea {
    min-height: 76px;
}

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

.warning-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4df;
    color: #7b5912;
    border: 1px solid #f2d59a;
}

@media (max-width: 1200px) {
    .workflow-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-weather-card {
        grid-template-columns: 1fr;
    }

    .calendar-weather-scene {
        width: 100%;
    }

    .user-picker-option {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .user-picker-option-meta {
        grid-column: 2;
        justify-self: start;
    }

    .user-picker-chip {
        min-width: 100%;
    }

    .map-card-header,
    .workflow-toolbar,
    .list-item,
    .resource-card-summary,
    .resource-card-summary-main,
    .resource-card-summary-meta,
    .phase-card-summary,
    .phase-summary-meta {
        flex-direction: column;
    }

    .compact-button {
        width: 100%;
    }

    .resource-card-summary,
    .resource-card-summary-main,
    .resource-card-summary-meta,
    .phase-card-summary,
    .phase-summary-meta {
        align-items: flex-start;
    }

    .resource-card-summary-label {
        max-width: 100%;
        white-space: normal;
    }
}

.resource-card {
    position: relative;
    overflow: hidden;
}

.resource-card-details {
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e1eaf3;
}

.resource-card-details > summary {
    list-style: none;
}

.resource-card-details > summary::-webkit-details-marker {
    display: none;
}

.resource-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.resource-card-summary:hover {
    background: #f8fbff;
}

.resource-card-details[open] .resource-card-summary {
    background: linear-gradient(180deg, #f9fcff 0%, #f4f8fc 100%);
    border-bottom: 1px solid #e1eaf3;
}

.resource-card-summary-main,
.resource-card-summary-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.resource-card-summary-main {
    flex: 1 1 auto;
}

.resource-card-summary-main strong {
    font-size: 1.02rem;
    color: #132b42;
}

.resource-card-summary-label {
    color: #5e7185;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(38vw, 520px);
}

.resource-card-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d4e0eb;
    color: #17324d;
    font-size: 0.84rem;
    font-weight: 700;
}

.resource-card-summary-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    margin-top: -2px;
}

.resource-card-details[open] .resource-card-summary-toggle::after {
    transform: rotate(225deg);
    margin-top: 2px;
}

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

.resource-card-head,
.phase-card-head,
.status-stack {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.status-stack {
    flex-direction: column;
    align-items: stretch;
}

.ticket-state-summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ticket-state-summary__badges,
.ticket-state-summary__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ticket-state-summary__actions form {
    display: inline-flex;
}

.resource-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #dbe7f2;
    background: #edf4fb;
}

.resource-image-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: #6d7d8e;
    font-weight: 600;
}

.resource-meta-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.section-card {
    background: #f8fbff;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    padding: 16px;
}

.inline-record,
.history-item {
    padding: 12px 0;
    border-bottom: 1px solid #e6edf3;
}

.phase-grid {
    display: grid;
    gap: 18px;
}

.phase-card {
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    padding: 18px;
    background: #fbfdff;
}

.phase-card-details {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.phase-card-details > summary {
    list-style: none;
}

.phase-card-details > summary::-webkit-details-marker {
    display: none;
}

.phase-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.phase-card-details[open] .phase-card-summary {
    border-bottom: 1px solid #dbe7f2;
}

.phase-summary-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.phase-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d4e0eb;
    background: #edf4fb;
    color: #17324d;
    font-size: 0.84rem;
    font-weight: 700;
}

.phase-summary-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    margin-top: -2px;
}

.phase-card-details[open] .phase-summary-toggle::after {
    transform: rotate(225deg);
    margin-top: 2px;
}

.phase-card-body {
    padding: 18px;
}

.phase-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.proof-slot {
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.phase-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.phase-status-pill-pending {
    background: #eef3f8;
    color: #516476;
}

.phase-status-pill-started {
    background: #fff4df;
    color: #8c5d00;
}

.phase-status-pill-completed {
    background: #e7f6ed;
    color: #17633d;
}

.proof-log-meta {
    display: grid;
    gap: 6px;
    margin: 12px 0 14px;
}

.proof-media-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.proof-media-card {
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.proof-file-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed #b7cae0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #17324d;
    text-decoration: none;
}

.proof-file-card-preview {
    margin-top: 8px;
}

.status-journey-card {
    margin-top: 14px;
}

.status-journey-map {
    width: 100%;
    min-height: 220px;
}

.status-journey-map.leaflet-container {
    font: inherit;
}

.status-journey-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.status-journey-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dbe7f2;
    background: rgba(255, 255, 255, 0.84);
    color: #35506a;
    font-size: 0.84rem;
    font-weight: 600;
    width: auto;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.status-journey-legend-item:hover,
.status-journey-legend-item:focus-visible {
    transform: translateY(-1px);
    border-color: #b9cfe3;
    box-shadow: 0 10px 22px rgba(17, 43, 67, 0.08);
    outline: none;
}

.status-journey-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--status-color, #1c5b8c);
    box-shadow: 0 0 0 3px rgba(28, 91, 140, 0.14);
}

.status-journey-marker-shell {
    background: transparent;
    border: none;
}

.status-journey-marker {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--marker-color, #1c5b8c);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(17, 43, 67, 0.18);
}

.status-journey-marker.is-active {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(28, 91, 140, 0.16), 0 10px 24px rgba(17, 43, 67, 0.18);
}

.approval-decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.review-summary-card {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.review-summary-card h3 {
    margin: 0;
}

.review-evidence-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.review-evidence-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.review-evidence-meta {
    display: grid;
    gap: 4px;
}

.tracking-page {
    align-items: start;
}

.tracking-hero-card {
    display: grid;
    gap: 18px;
}

.tracking-hero-head,
.tracking-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tracking-hero-head h2,
.tracking-table-head h2 {
    margin-bottom: 6px;
}

.tracking-hero-map-card {
    margin-top: 0;
}

.realtime-tracking-map {
    width: 100%;
    min-height: 680px;
}

.tracking-hero-map-note {
    margin-top: 10px;
}

.tracking-focus-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tracking-focus-bar[hidden] {
    display: none !important;
}

.tracking-history-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tracking-history-panel[hidden] {
    display: none !important;
}

.tracking-history-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-layer-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracking-layer-pill {
    width: auto;
    min-width: 108px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d1deeb;
    background: #f7fbff;
    color: #35506a;
    font-weight: 700;
}

.tracking-layer-pill.is-active {
    background: #17324d;
    color: #ffffff;
    border-color: #17324d;
}

.tracking-group-grid {
    display: grid;
    gap: 14px;
}

.tracking-group-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tracking-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-group-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracking-group-member-chip {
    display: inline-flex;
    width: auto;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d7e4f0;
    background: #f8fbff;
    color: #35506a;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tracking-group-member-chip:hover,
.tracking-group-member-chip.is-active {
    transform: translateY(-1px);
    border-color: #8fb6dc;
    background: #17324d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 50, 77, 0.12);
}

.tracking-roster {
    display: grid;
    gap: 14px;
}

.tracking-person-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tracking-person-card:hover,
.tracking-person-card.is-active {
    transform: translateY(-2px);
    border-color: #9dc0e1;
    box-shadow: 0 16px 32px rgba(23, 50, 77, 0.1);
}

.tracking-person-card.is-active {
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
}

.tracking-person-card:focus-visible {
    outline: 3px solid rgba(28, 91, 140, 0.28);
    outline-offset: 2px;
}

.tracking-person-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tracking-person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #dbe7f2;
}

.tracking-person-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #e8f1f8 0%, #dce9f4 100%);
    color: #17324d;
    font-weight: 800;
}

.tracking-person-meta {
    display: grid;
    gap: 6px;
}

.tracking-marker-shell {
    background: transparent;
    border: none;
}

.tracking-marker {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f78d1 0%, #184f86 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 12px 24px rgba(17, 43, 67, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
}

.tracking-marker.is-stale {
    background: linear-gradient(180deg, #b89c4d 0%, #8f6f1f 100%);
}

.tracking-performance-table {
    min-width: 1180px;
}

.tracking-history-table {
    min-width: 860px;
}

.tracking-history-table td,
.tracking-history-table th,
.tracking-performance-table td {
    line-height: 1.5;
}

@media (max-width: 900px) {
    .tracking-hero-head,
    .tracking-table-head {
        flex-direction: column;
    }

    .realtime-tracking-map {
        min-height: 460px;
    }
}

.approval-decision-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.approval-decision-field {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.approval-decision-textarea {
    flex: 1;
    min-height: 220px;
}

.ticket-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 6px;
}

.ticket-board-column {
    display: grid;
    gap: 14px;
    min-width: 260px;
}

.ticket-board-column-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ticket-board-column-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.ticket-board-dropzone {
    display: grid;
    gap: 12px;
    min-height: 280px;
    padding: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(69, 133, 194, 0.1), transparent 44%),
        linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ticket-board-dropzone-active {
    border-color: #5f8fbe;
    box-shadow: 0 16px 36px rgba(26, 51, 77, 0.12);
    transform: translateY(-2px);
}

.ticket-board-empty {
    padding: 18px 10px;
    text-align: center;
    border: 1px dashed #c8d7e7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.ticket-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(23, 50, 77, 0.06);
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(23, 50, 77, 0.1);
    border-color: #c7d9ea;
}

.ticket-card-dragging {
    opacity: 0.45;
    transform: rotate(1deg) scale(0.98);
    cursor: grabbing;
}

.ticket-card-locked {
    cursor: default;
    opacity: 0.92;
}

.ticket-card-locked:hover {
    transform: none;
}

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

.ticket-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ticket-card-title {
    display: inline-block;
    margin-bottom: 4px;
    color: #17324d;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.ticket-card-title:hover {
    text-decoration: underline;
}

.ticket-card-meta {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: #35506a;
}

.ticket-move-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(14, 25, 39, 0.46);
    backdrop-filter: blur(6px);
}

.ticket-move-overlay[hidden] {
    display: none !important;
}

.ticket-move-modal {
    width: min(760px, 100%);
    max-height: min(90vh, 980px);
    overflow-y: auto;
}

.modal-open {
    overflow: hidden;
}

.proof-media-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #536578;
    margin-bottom: 10px;
}

.proof-image-placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #6d7d8e;
    border: 1px dashed #c7d6e5;
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px;
}

.proof-image {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid #dbe7f2;
    display: block;
}

.evidence-capture-shell {
    display: grid;
    gap: 14px;
}

.evidence-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.evidence-mode-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid #c9d8e8;
    border-radius: 999px;
    background: #f7fbff;
    overflow: hidden;
}

.evidence-mode-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.evidence-mode-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    font-weight: 600;
    color: #4d6580;
    transition: background 0.18s ease, color 0.18s ease;
}

.evidence-mode-pill input:checked + span {
    background: #17324d;
    color: #ffffff;
}

.evidence-upload-panel,
.evidence-camera-panel {
    display: grid;
    gap: 10px;
}

.evidence-upload-panel[hidden],
.evidence-camera-panel[hidden],
.evidence-inline-preview[hidden] {
    display: none !important;
}

@media (max-width: 1280px) {
    .ticket-board {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .ticket-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-move-overlay {
        padding: 16px;
    }
}

.proof-geo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    background: #fbfdff;
}

.requirement-note {
    margin: 8px 0 12px;
    color: #8c5d00;
    font-size: 0.92rem;
}

.approval-panel {
    border: 1px solid #f0d39c;
    background: #fffaf0;
}

.diagnostics-box {
    margin-top: 10px;
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fbff;
}

.diagnostics-box pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 10px 0 0;
    font-size: 0.82rem;
}

.capture-feedback {
    margin-top: -4px;
    margin-bottom: 4px;
    min-height: 40px;
}

.ai-recommendation-output {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.65;
    color: #203345;
}

.ai-chat-window {
    display: grid;
    gap: 14px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 6px;
}

.ai-chat-message {
    display: grid;
    gap: 8px;
}

.ai-chat-role {
    font-size: 0.82rem;
    color: #6d7d8e;
    font-weight: 700;
}

.ai-chat-bubble {
    border-radius: 16px;
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    padding: 14px;
}

.ai-chat-message-error .ai-chat-bubble {
    background: #fff5f5;
    border-color: #f0c5c5;
}

.ai-option-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.ai-advisor-selector {
    display: grid;
    gap: 18px;
}

.ai-advisor-selector-copy {
    display: grid;
    gap: 6px;
}

.ai-advisor-selector-actions {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ai-advisor-tab {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    color: #17324d;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ai-advisor-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 43, 67, 0.08);
    border-color: #c9d9e8;
}

.ai-advisor-tab span {
    font-size: 1rem;
    font-weight: 800;
}

.ai-advisor-tab small {
    color: #607285;
    font-size: 0.84rem;
}

.ai-advisor-tab.active {
    border-color: rgba(23, 50, 77, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 32%),
        linear-gradient(135deg, #17324d 0%, #1d4d73 54%, #2d6c9c 100%);
    color: #f4f9ff;
    box-shadow: 0 16px 32px rgba(17, 43, 67, 0.16);
}

.ai-advisor-tab.active small {
    color: rgba(244, 249, 255, 0.8);
}

.flottly-method-note {
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    padding: 14px 16px;
    color: #203345;
    line-height: 1.6;
}

.flottly-score-shell {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.flottly-overall-card {
    border-radius: 22px;
    padding: 22px;
    color: #f5fbff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%),
        linear-gradient(135deg, #0f2f45 0%, #174766 54%, #1f6288 100%);
}

.flottly-overall-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.flottly-overall-score {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 800;
}

.flottly-overall-label {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 700;
}

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

.flottly-snapshot-item {
    border-radius: 16px;
    border: 1px solid #dbe7f2;
    background: #fbfdff;
    padding: 14px;
    display: grid;
    gap: 8px;
}

.flottly-snapshot-item strong {
    font-size: 1.2rem;
    color: #16324a;
}

.flottly-pillar-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.flottly-pillar-card,
.flottly-list-card {
    border: 1px solid #dbe7f2;
    border-radius: 18px;
    background: #fbfdff;
    padding: 16px;
}

.flottly-metric-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.flottly-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: #f3f8fc;
    padding: 12px 14px;
}

.flottly-metric-score {
    min-width: 52px;
    text-align: right;
    font-weight: 800;
    color: #17324d;
}

.flottly-bullet-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.flottly-bullet-item {
    border-left: 3px solid #1c5b8c;
    padding-left: 12px;
}

.booking-pill {
    background: #efe8ff;
    color: #5a2da0;
}

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

.occupancy-table {
    min-width: 1200px;
}

.occupancy-table th,
.occupancy-table td {
    min-width: 54px;
}

.occupancy-cell {
    background: #fbfdff;
}

.occupancy-cell.occupied {
    background: #f4efff;
}

.occupancy-chip {
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 8px;
    background: #e8defd;
    color: #5a2da0;
    font-size: 0.74rem;
    line-height: 1.3;
}

.section-block {
    margin-bottom: 28px;
}

.section-head {
    margin-bottom: 18px;
}

.clickable-day {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 43, 67, 0.12);
}

.collapsible-card {
    border: 1px solid #dbe7f2;
}

.employee-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.employee-card {
    border: 1px solid #dbe7f2;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(17, 43, 67, 0.08);
}

.employee-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.employee-card-avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid #dbe7f2;
    flex-shrink: 0;
}

.employee-card-avatar-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #e8f1f8 0%, #dce9f4 100%);
    color: #17324d;
    font-size: 1.8rem;
    font-weight: 700;
}

.employee-card-title {
    min-width: 0;
}

.employee-card-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #132b42;
}

.employee-card-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.employee-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.employee-data-grid strong {
    color: #274058;
}

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

@media (max-width: 720px) {
    .employee-card-head,
    .employee-data-grid,
    .employee-metric-grid {
        grid-template-columns: 1fr;
    }

    .employee-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.help-page {
    background:
        radial-gradient(circle at top left, rgba(28, 91, 140, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(23, 50, 77, 0.08), transparent 22%),
        #f4f7fb;
}

.help-shell {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 24px;
    margin-bottom: 28px;
}

.help-hero__content,
.help-hero__panel,
.help-card,
.help-table-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d8e5f0;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(17, 43, 67, 0.08);
}

.help-hero__content {
    padding: 32px;
}

.help-hero__content h1 {
    margin: 10px 0 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: #17324d;
}

.help-hero__content p {
    max-width: 860px;
    margin: 0;
    color: #47627a;
    font-size: 1.03rem;
    line-height: 1.7;
}

.help-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f1fa;
    color: #1c5b8c;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.help-action,
.auth-link-button {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    text-align: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.help-action:hover,
.auth-link-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 50, 77, 0.12);
}

.help-action--primary {
    background: linear-gradient(135deg, #17324d, #245886);
    color: #fff;
}

.help-action--secondary {
    background: #e9f0f6;
    color: #17324d;
    border: 1px solid #c8d8e9;
}

.ticket-card-actions form {
    display: inline-flex;
}

.help-hero__panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    align-content: start;
}

.help-mini-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
    border: 1px solid #d7e4ef;
}

.help-mini-card strong {
    color: #17324d;
}

.help-mini-card span {
    color: #587188;
    line-height: 1.55;
}

.help-section {
    margin-bottom: 28px;
}

.help-section__head {
    margin-bottom: 16px;
}

.help-section__head h2 {
    margin: 0 0 8px;
    color: #17324d;
    font-size: 1.5rem;
}

.help-grid {
    display: grid;
    gap: 20px;
}

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

.help-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.help-card {
    padding: 22px;
}

.help-card--compact {
    padding: 18px 20px;
}

.help-card--wide {
    padding: 26px;
}

.help-card h3,
.help-pillar h3 {
    margin: 0 0 10px;
    color: #17324d;
}

.help-card p,
.help-pillar p {
    margin: 0;
    color: #506a82;
    line-height: 1.7;
}

.help-list,
.help-ordered-list {
    margin: 0;
    padding-left: 18px;
    color: #506a82;
    line-height: 1.7;
}

.help-list li + li,
.help-ordered-list li + li {
    margin-top: 8px;
}

.help-pillar {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbe7f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.help-table-card {
    padding: 0;
    overflow: hidden;
}

.help-matrix-table {
    min-width: 1060px;
}

.help-matrix-table td {
    line-height: 1.65;
}

.auth-links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.auth-card-wide {
    width: min(960px, 94vw);
}

.lead-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

.lead-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.lead-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lead-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #d7e4ef;
    background: #ffffff;
    color: #17324d;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(17, 43, 67, 0.06);
}

.lead-tab.active {
    border-color: rgba(23, 50, 77, 0.12);
    background: linear-gradient(135deg, #17324d 0%, #245886 100%);
    color: #ffffff;
}

.lead-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f1fa;
    color: #1c5b8c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-strip {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.summary-strip .card {
    margin-bottom: 0;
}

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

.detail-grid > div {
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    background: #f9fcff;
    padding: 14px 16px;
}

.detail-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #17324d;
}

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

.pricing-card {
    display: grid;
    gap: 18px;
    height: 100%;
    border: 1px solid #dbe7f2;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 22px;
    box-shadow: 0 16px 36px rgba(17, 43, 67, 0.08);
}

.pricing-card-highlight {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%),
        linear-gradient(135deg, #17324d 0%, #1d4d73 54%, #2d6c9c 100%);
    color: #f5fbff;
}

.pricing-card-highlight .muted,
.pricing-card-highlight .pricing-feature-list li {
    color: rgba(245, 251, 255, 0.86);
}

.pricing-card-highlight .button-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

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

.invoice-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    background: #fbfdff;
    padding: 14px 16px;
}

@media (max-width: 720px) {
    .lead-topbar,
    .lead-topbar-actions {
        flex-direction: column;
    }

    .lead-tab {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .portal-auth-shell {
        width: min(100vw - 32px, 1120px);
        grid-template-columns: 1fr;
        align-items: start;
        padding: 24px 0 32px;
    }

    .portal-auth-news {
        min-height: 0;
    }

    .portal-auth-news-body {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .portal-auth-shell {
        width: min(100vw - 20px, 1120px);
    }

    .portal-auth-form-card,
    .portal-auth-news-hero,
    .portal-auth-news-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .portal-auth-field-grid {
        grid-template-columns: 1fr;
    }

    .portal-auth-form-card-wide {
        max-height: none;
        overflow: visible;
    }

    .help-shell {
        padding: 20px 16px 36px;
    }

    .help-hero__content,
    .help-hero__panel,
    .help-card,
    .help-card--wide {
        padding: 20px;
    }

    .help-hero__actions {
        flex-direction: column;
    }

    .help-action,
    .auth-link-button {
        width: 100%;
    }
}

/* Flottly editorial refresh */
:root {
    --ui-bg: #f8f9fd;
    --ui-bg-soft: #f1f4fb;
    --ui-surface: rgba(255, 255, 255, 0.92);
    --ui-surface-strong: #ffffff;
    --ui-border: #dce3f0;
    --ui-border-strong: #ced8e7;
    --ui-text: #132a63;
    --ui-text-soft: #617095;
    --ui-kicker: #ff6e51;
    --ui-accent: #ff6e51;
    --ui-accent-strong: #ff5a3f;
    --ui-accent-soft: #fff0ec;
    --ui-highlight: #fff4d8;
    --ui-shadow: 0 20px 48px rgba(22, 42, 90, 0.08);
    --ui-shadow-soft: 0 12px 28px rgba(22, 42, 90, 0.06);
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 110, 81, 0.09), transparent 24%),
        radial-gradient(circle at top right, rgba(19, 42, 99, 0.07), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
    color: var(--ui-text);
}

body.theme-font-segoe {
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--ui-text);
}

.app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    min-height: calc(100vh - 48px);
    padding: 28px 22px;
    border: 1px solid var(--ui-border);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 249, 255, 0.92) 100%);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 8px;
    color: var(--ui-text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    color: var(--ui-text-soft);
    font-size: 0.85rem;
    margin-bottom: 24px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--ui-text-soft);
    font-weight: 700;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    border-color: rgba(255, 110, 81, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #fff6f2 100%);
    color: var(--ui-text);
    box-shadow: 0 10px 20px rgba(255, 110, 81, 0.08);
}

.content {
    padding: 0 0 24px;
}

.shell-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.shell-topbar-copy {
    display: grid;
    gap: 8px;
}

.shell-topbar-kicker {
    color: var(--ui-kicker);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shell-topbar-caption {
    margin: 0;
    color: var(--ui-text-soft);
    max-width: 620px;
    line-height: 1.7;
}

.shell-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--ui-shadow-soft);
}

.shell-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #132a63 0%, #203f8d 100%);
    color: #ffffff;
    font-weight: 800;
}

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

.shell-user-copy strong {
    color: var(--ui-text);
    font-size: 0.96rem;
}

.shell-user-copy span {
    color: var(--ui-text-soft);
    font-size: 0.83rem;
}

.shell-user-pill form {
    margin: 0;
}

.shell-logout-button {
    width: auto;
    min-width: 102px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%);
    color: var(--ui-text);
    font-weight: 800;
    box-shadow: none;
}

.shell-logout-button:hover {
    border-color: rgba(255, 110, 81, 0.25);
    background: #fff7f3;
}

.page-header {
    margin-bottom: 28px;
}

.page-title,
.portal-auth-form-card h1,
.help-hero__content h1,
.lead-hero h1,
.card h2,
.card h3 {
    color: var(--ui-text);
    letter-spacing: -0.05em;
}

.page-title {
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.06;
}

.page-subtitle,
.muted,
.detail-grid div,
.help-card p,
.help-pillar p,
.portal-auth-form-card .muted,
.portal-auth-news-hero p,
.portal-auth-news-card p {
    color: var(--ui-text-soft);
}

.card,
.metric-card,
.section-card,
.history-item,
.list-item,
.employee-card,
.help-hero__content,
.help-hero__panel,
.help-card,
.help-table-card,
.pricing-card,
.invoice-item,
.portal-auth-form-card,
.portal-auth-news,
.portal-auth-note-card {
    border: 1px solid var(--ui-border);
    border-radius: 28px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(8px);
}

.card,
.metric-card,
.section-card,
.history-item,
.list-item,
.employee-card,
.pricing-card,
.invoice-item {
    margin-bottom: 20px;
}

.metric,
.pricing-price,
.employee-card-name,
.portal-auth-news-hero h2,
.help-section__head h2,
.help-card h3,
.help-pillar h3 {
    color: var(--ui-text);
}

.metric-card {
    border-radius: 24px;
}

.metric-card .metric {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.flash,
.errors {
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

.flash {
    background: #f5fbff;
    color: var(--ui-text);
}

.errors {
    background: #fff4ef;
    color: #8e3b2f;
}

table {
    background: transparent;
}

th,
td {
    border-bottom: 1px solid #e7ecf4;
}

th,
.shell-topbar-kicker,
.portal-auth-eyebrow,
.help-kicker,
.lead-kicker {
    color: var(--ui-kicker);
    letter-spacing: 0.14em;
}

label {
    color: var(--ui-text);
    font-size: 0.95rem;
}

input,
select,
textarea,
button {
    border-radius: 18px;
    border: 1px solid var(--ui-border-strong);
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ui-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 110, 81, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 110, 81, 0.12);
    background: #ffffff;
}

button,
.button,
.portal-auth-submit,
.help-action--primary {
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-strong) 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(255, 110, 81, 0.22);
}

button:hover,
.button:hover,
.portal-auth-submit:hover,
.help-action--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(255, 110, 81, 0.26);
}

.button-secondary,
.help-action--secondary,
.portal-auth-secondary-link,
.auth-link-button,
.compact-button,
.lead-tab {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ui-text);
    border: 1px solid var(--ui-border);
    box-shadow: none;
}

.button-secondary:hover,
.help-action--secondary:hover,
.portal-auth-secondary-link:hover,
.auth-link-button:hover,
.compact-button:hover,
.lead-tab:hover {
    background: #fff8f4;
    border-color: rgba(255, 110, 81, 0.24);
}

.button-success {
    background: linear-gradient(135deg, #1d8e63 0%, #15744f 100%);
    box-shadow: 0 14px 28px rgba(29, 142, 99, 0.18);
}

.button-danger {
    background: linear-gradient(135deg, #c9483b 0%, #aa3024 100%);
    box-shadow: 0 14px 28px rgba(201, 72, 59, 0.18);
}

.badge,
.lead-kicker,
.portal-auth-news-cta span {
    border: 1px solid rgba(255, 110, 81, 0.16);
    background: var(--ui-accent-soft);
    color: var(--ui-text);
    font-weight: 800;
}

.badge.success,
.priority-badge.success {
    background: #ebf8f2;
    color: #1d7d57;
}

.badge.warning,
.priority-badge.warning {
    background: #fff5de;
    color: #946500;
}

.badge.danger,
.priority-badge.danger {
    background: #fff0ee;
    color: #ab4336;
}

.section-card,
.history-item,
.list-item,
.detail-grid > div,
.help-mini-card {
    background: rgba(255, 255, 255, 0.88);
}

.portal-auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 110, 81, 0.09), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
}

.portal-auth-shell {
    width: min(1240px, calc(100vw - 40px));
    gap: 26px;
    align-items: stretch;
    padding: 28px 0 40px;
}

.portal-auth-shell::before,
.portal-auth-shell::after,
.portal-auth-news::before,
.portal-auth-news::after {
    display: none;
}

.portal-auth-brand {
    color: var(--ui-text);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.portal-auth-brand::after {
    background: linear-gradient(90deg, var(--ui-accent) 0%, transparent 100%);
}

.portal-auth-form-card,
.portal-auth-news {
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
}

.portal-auth-form-card-wide {
    max-height: min(88vh, 980px);
}

.portal-auth-eyebrow,
.portal-auth-news-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-auth-form input {
    background: #ffffff;
}

.portal-auth-news {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.92) 100%);
}

.portal-auth-news-hero,
.portal-auth-news-card {
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
}

.portal-auth-news-hero {
    min-height: 0;
}

.portal-auth-note-card code {
    color: var(--ui-text);
    background: #f5f7fd;
}

.help-page,
.lead-shell {
    background: transparent;
}

.help-shell,
.lead-shell {
    max-width: 1480px;
}

.help-kicker,
.lead-kicker {
    background: transparent;
    padding-left: 0;
    border: 0;
}

.help-action {
    border-radius: 18px;
}

.lead-tab.active,
.pricing-card-highlight {
    background: linear-gradient(135deg, #132a63 0%, #25499d 100%);
    border-color: rgba(19, 42, 99, 0.15);
    color: #ffffff;
}

.pricing-card-highlight .button-secondary,
.lead-tab.active {
    color: #ffffff;
}

.pricing-card-highlight .button-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.summary-strip .card:last-child {
    background: linear-gradient(135deg, rgba(255, 244, 216, 0.95) 0%, rgba(255, 250, 237, 0.95) 100%);
}

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

    .sidebar {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .app-shell {
        padding: 16px;
        gap: 16px;
    }

    .shell-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shell-user-pill {
        justify-content: space-between;
        border-radius: 28px;
    }
}

/* Global readability hardening for the light Flottly theme */
::selection {
    background: rgba(37, 73, 157, 0.18);
    color: var(--ui-text);
}

.card,
.metric-card,
.section-card,
.history-item,
.list-item,
.employee-card,
.invoice-item,
.help-card,
.help-mini-card,
.help-table-card,
.portal-auth-form-card,
.portal-auth-news,
.portal-auth-note-card,
.shell-user-pill,
.detail-grid > div,
.table-wrap {
    color: var(--ui-text);
}

.card p,
.section-card p,
.history-item p,
.list-item p,
.employee-card p,
.invoice-item p,
.help-card p,
.help-mini-card p,
.help-mini-card span,
.portal-auth-note-card p,
.shell-topbar-caption,
.page-subtitle,
.muted,
.portal-auth-form-card .muted,
.portal-auth-news-hero p,
.portal-auth-news-card p,
.detail-grid > div,
.detail-grid > div span,
.resource-card-summary-label,
.user-picker-placeholder {
    color: var(--ui-text-soft);
}

.card h1,
.card h2,
.card h3,
.card h4,
.section-card h1,
.section-card h2,
.section-card h3,
.section-card h4,
.history-item strong,
.list-item strong,
.employee-card-name,
.detail-grid strong,
.help-mini-card strong,
.shell-user-copy strong,
th,
td,
label,
.portal-auth-form label,
.portal-auth-legal,
.portal-auth-secondary-link,
.auth-link-button,
.compact-button {
    color: var(--ui-text);
}

input,
select,
textarea,
.portal-auth-form input,
.portal-auth-form select,
.portal-auth-form textarea,
.user-picker-input {
    color: var(--ui-text);
    caret-color: var(--ui-text);
    -webkit-text-fill-color: var(--ui-text);
}

input::placeholder,
select::placeholder,
textarea::placeholder,
.user-picker-input::placeholder {
    color: #8795b7;
    opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ui-text);
    caret-color: var(--ui-text);
    box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-out 0s;
}

select option,
select optgroup {
    color: var(--ui-text);
    background: #ffffff;
}

.flash,
.flash div {
    color: var(--ui-text);
}

.errors,
.errors div {
    color: #8e3b2f;
}
