:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --primary: #0f4c81;
    --primary-dark: #0b3458;
    --accent: #f0a128;
    --text: #162436;
    --muted: #6e7c8f;
    --border: #e4ebf3;
    --success-bg: #eaf8ef;
    --success-text: #1c8b55;
    --warning-bg: #fff3df;
    --warning-text: #b56b00;
    --danger-bg: #fdeaea;
    --danger-text: #c23c3c;
    --info-bg: #eef5ff;
    --info-text: #2d65c8;
    --shadow-lg: 0 18px 40px rgba(15, 35, 60, 0.10);
    --shadow-md: 0 10px 24px rgba(15, 35, 60, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --sidebar-width: 290px;
    --topbar-height: 66px;
    --main-pad: clamp(16px, 2.4vw, 32px);
    --app-cursor-default: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKjSURBVEhL7dRdSFNhGAdwo4voMoJg3nbTRVQom98fiRGRElmQ0YVddGUYGBhGZYQpGaiZaYGmMJelFrMPDWc5lXC62ipSc6lHJ1jZ1j7O9p7tnLPz/mNevizTrUt/l+/7PP/nPBfviYvbFItvQZpnE0KF7Pl/sUTpDjORlqcBmL2BavY+Zk5K4w1ecbFLBAwKYBLERrYmJg5CVa9cIlfvobi5IkBPgSFeagOwja2NSnhAryvIVbkVFNt5lC4TtEvAa156DGA7W79hDkpVXb8Jd9kRQtGCF4WcG2cWedQHAb1HfLkM7GR7NsROqUrrJFzJioTj827kz7mRO+PC0WkPqpxA9/fg0EcniWf71i28QauDcGd/iMi1uZA76UaOxY3MMQ8OjfKomAW6FuXx2QDdzfauS3iD5p+EK7SLyLK4cdDkQfawF5kDPFKf88h+5kOZGdBNyV+HF8QDbP8/hQc0LRHu1BcJGUYPsga8yHjBI72HR5rOh6RWP1LuE5T0A1priDNxkobNWJOdUFXTHOFOjodWvzi9x4c0nR8pD/1IaiZQ1wlIqBaQeCOAcx1Ay4j8yzAl57A5fxXeoHFS4AoMCpI7/EhtI6vBmjoBmpog1JUi1BUiEsokqC/KON8CaI2Kd9AiJLNZEYU3uGsNcsf0FOomAnUtgaYmgCItUK4Hyp8CV7uBa0+A64+AWz1Ap1FR3lhoHpsVUXhAw4TI5WuB/VUCNJUBFHcCraOyvf+zdKnPGjrdZ5YL+t/LRwxWmjnwiWr0Y+JeAFvYrIjCL/nOiMQdbgQSr4i40Alo3ynT4za6j62Nio3Q+FqDxJ1oAEp1gHYkZDHZgnvYuqjN++iuB4PSyj0j0GEMvbUt0ehfbSQAtvZOKLd7zWj/MMPH9t/ZtJY/16btZiVeZF8AAAAASUVORK5CYII=") 2 1;
    --app-cursor-pointer: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL3SURBVEhLtZVdSFNhGMcHEYEUKGVCQdFVN5F9r7QMusqLsItuQlD8mIIXSRBEkc7mrETtA7tSykCXKIRsLmU2snkmTSXnF5rJPtzH2dh0Z57N5dx2/nHOkMap2dbqD8/Ne573+Z3nf97nPQLBNjp5f+h0nnRUlC0ePsx/lrKENR9PNShNdoIE7nQvjO0tU+/n56SkSw+1lZ+dQAjA2y80MkqU5/g5KSlHrKkctQN+ALIJCruL5UJ+TkrKrdNUaG1RQNe4B3v+dQe/AIr6z/JzUhIfICjozebnpKRYwCuCjFyWaN9Vdy1orjeNFe0q6j+QJVKcERSq0vj7EtYWgAoBffpV9Ex64WKAR/3GtaqO2cUO3QpE7TOyHIm27ObLydYrjdqL/BrbagvgCAAmLwObHyD9wJQjjBkXQDNA98QqWtV2LK4D4r4la2blYOIDGQswrzEwexkYvQwsNGD1RdeMXsDqB+gI0KP3Ib1UcZ5fJ66E4uHi2A7sfnAAmw8chAWQ6+DAK0FAluxRvlCrkWotEQ5gpBholnyw0Ax05gCmySC+rYRBGPzcGgtIalaEDz7lv1Db1sx01JIlTwRShRGOdaB9hIRy1gM9GUTToJlbSw5QqEq71Tk3bP4OzhbWChbw+L2Js+S11oGBOQpTZBAtquXkAfvKldltI2TIFYx6vwV48hvA078BZIlU57rGKbj/FyCjfOBgg8KwTG6w9vy0qF5u4Iq1aUgoZzzQ24NoHDAlD2B14/l4s44Mc2/MdmGgIpBPeWClAfVXGmPLASy4Q9zHZmeCO6YTVOKAzBLlEanC4HZyXTBx54BboxjOThaQIUoQwOpai65+xAK4NqJdxAsW5tzk7ihneqnyEL9OfBX3ZlXL5qcXfYB7MzrR/HAGAHcYkM8HkN+su8cv8Ucdv/vhRNWbeXWnzgXCBmjtAHt9sMH+TtXGCJ6pre6CFl29QCDewd+foGp35tYQV/Mko6LcOqKCvQSjQVTkSYiSo7eHjvF3xOoHK+hM+GIinWcAAAAASUVORK5CYII=") 3 1;
    --app-cursor-text: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKjSURBVEhL7dRdSFNhGAdwo4voMoJg3nbTRVQom98fiRGRElmQ0YVddGUYGBhGZYQpGaiZaYGmMJelFrMPDWc5lXC62ipSc6lHJ1jZ1j7O9p7tnLPz/mNevizTrUt/l+/7PP/nPBfviYvbFItvQZpnE0KF7Pl/sUTpDjORlqcBmL2BavY+Zk5K4w1ecbFLBAwKYBLERrYmJg5CVa9cIlfvobi5IkBPgSFeagOwja2NSnhAryvIVbkVFNt5lC4TtEvAa156DGA7W79hDkpVXb8Jd9kRQtGCF4WcG2cWedQHAb1HfLkM7GR7NsROqUrrJFzJioTj827kz7mRO+PC0WkPqpxA9/fg0EcniWf71i28QauDcGd/iMi1uZA76UaOxY3MMQ8OjfKomAW6FuXx2QDdzfauS3iD5p+EK7SLyLK4cdDkQfawF5kDPFKf88h+5kOZGdBNyV+HF8QDbP8/hQc0LRHu1BcJGUYPsga8yHjBI72HR5rOh6RWP1LuE5T0A1priDNxkobNWJOdUFXTHOFOjodWvzi9x4c0nR8pD/1IaiZQ1wlIqBaQeCOAcx1Ay4j8yzAl57A5fxXeoHFS4AoMCpI7/EhtI6vBmjoBmpog1JUi1BUiEsokqC/KON8CaI2Kd9AiJLNZEYU3uGsNcsf0FOomAnUtgaYmgCItUK4Hyp8CV7uBa0+A64+AWz1Ap1FR3lhoHpsVUXhAw4TI5WuB/VUCNJUBFHcCraOyvf+zdKnPGjrdZ5YL+t/LRwxWmjnwiWr0Y+JeAFvYrIjCL/nOiMQdbgQSr4i40Alo3ynT4za6j62Nio3Q+FqDxJ1oAEp1gHYkZDHZgnvYuqjN++iuB4PSyj0j0GEMvbUt0ehfbSQAtvZOKLd7zWj/MMPH9t/ZtJY/16btZiVeZF8AAAAASUVORK5CYII=") 2 1;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
    background:
        radial-gradient(circle at top left, rgba(15, 76, 129, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(240, 161, 40, 0.10), transparent 24%),
        var(--bg);
    color: var(--text);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

/* Global cursor theme (native CSS cursor, no JS overlay) */
html,
body,
body * {
    cursor: var(--app-cursor-default), default !important;
    caret-color: transparent !important;
}

a,
button,
[role="button"],
.btn,
.nav-link,
.action-menu-trigger,
summary,
label,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
[onclick],
[data-action],
[data-bs-toggle] {
    cursor: var(--app-cursor-pointer), pointer !important;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
input[type="text"]:hover,
input[type="search"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
textarea:hover,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
input[type="text"]:active,
input[type="search"]:active,
input[type="password"]:active,
input[type="email"]:active,
input[type="number"]:active,
input[type="tel"]:active,
input[type="url"]:active,
input[type="date"]:active,
input[type="time"]:active,
input[type="datetime-local"]:active,
textarea:active {
    cursor: var(--app-cursor-text), text !important;
    caret-color: auto !important;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
}

input[type="password"]::-webkit-contacts-auto-fill-button {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
}

input[type="password"]::-webkit-caps-lock-indicator {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

input[data-password-visual-mask="on"] {
    -webkit-text-security: disc !important;
    text-security: disc !important;
}

input[data-password-visual-mask="off"] {
    -webkit-text-security: none !important;
    text-security: none !important;
}

a {
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-loader{
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #ffffff;
    color: rgba(13, 65, 114, 0.62);
    /* Tint + subtle dual-tone glow (dark blue core + light blue halo) */
    --page-loader-icon-filter:
        brightness(0) saturate(100%) invert(17%) sepia(67%) saturate(1690%) hue-rotate(186deg) brightness(92%) contrast(95%)
        drop-shadow(0 0 8px rgba(56, 189, 248, 0.45))
        drop-shadow(0 0 18px rgba(59, 130, 246, 0.22));
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.page-loader.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner{
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.page-loader-icon{
    width: 54px;
    height: 54px;
    display: block;
    object-fit: contain;
    filter: var(--page-loader-icon-filter, none);
}

.page-loader-text{
    font-size: 13px;
    font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-icon{ filter: none !important; }
}

.app {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

.sidebar {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 26px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: auto;
    overflow: visible;
    min-width: 0;
    z-index: 120;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 100%;
    overflow: hidden; /* prevent brand text from spilling over the topbar on zoom */
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    will-change: auto;
    cursor: default;
}

.brand-icon::before{
    content:"";
    position:absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(147, 197, 253, 0.32), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow:
        0 16px 26px rgba(2, 22, 45, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-origin: 50% 50%;
    animation: logoHeartbeat 1.85s ease-in-out infinite;
    will-change: transform;
    z-index: 0;
}

.brand-icon img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: none;
    animation: none;
    position: relative;
    z-index: 1;
}

@keyframes logoPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
    }
    50% {
        filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.95));
    }
}

@keyframes logoShineSweep {
    0% {
        left: -140%;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    52% {
        left: 145%;
        opacity: 0;
    }
    100% {
        left: 145%;
        opacity: 0;
    }
}

@keyframes logoHeartbeat{
    0%   { transform: scale(1); }
    10%  { transform: scale(1.08); }
    18%  { transform: scale(0.98); }
    28%  { transform: scale(1.05); }
    38%  { transform: scale(1); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-icon img,
    .brand-icon::before { animation-duration: 6.5s !important; }
}

.brand h1 {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-link i {
    width: 18px;
    font-size: 16px;
    opacity: 0.92;
}

.nav-link span {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-float-toggle{
    display:none;
}

/* Sidebar collapse functionality (desktop) */
@media (min-width: 980px) {
    .sidebar-float-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 0;
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.96);
        color: #0d4172;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
        cursor: pointer;
        z-index: 130;
        transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }

    .sidebar-float-toggle i{
        font-size: 12px;
        line-height: 1;
    }

    .sidebar-float-toggle:hover{
        transform: translateY(-50%) scale(1.04);
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
        background: #ffffff;
    }

    .sidebar-float-toggle:active{
        transform: translateY(-50%) scale(0.96);
    }

    .sidebar-float-toggle:focus-visible{
        outline: 2px solid rgba(255,255,255,0.85);
        outline-offset: 3px;
    }

    .app.sidebar-collapsed .sidebar-float-toggle i{
        transform: rotate(180deg);
    }

    .app.sidebar-collapsed{ --sidebar-width: 86px; }
    .app.sidebar-collapsed .sidebar{ padding: 14px 10px; align-items:center; }
    .app.sidebar-collapsed .brand{ width:100%; justify-content:center; }
    .app.sidebar-collapsed .brand-text{ display:none; }
    .app.sidebar-collapsed .nav{ width:100%; align-items:center; gap:8px; }
    .app.sidebar-collapsed .sidebar-main{ overflow: visible; }
    .app.sidebar-collapsed .nav-link{
        width:44px;
        height:44px;
        padding:0;
        justify-content:center;
        border-radius:14px;
        position:relative;
    }
    .app.sidebar-collapsed .nav-link:hover{ transform:none; }
    .app.sidebar-collapsed .nav-link span{ display:none; }
    .app.sidebar-collapsed .nav-link i{ width:auto; font-size:17px; opacity:0.95; }
    .app.sidebar-collapsed .nav-link-icon-img{ width:18px; height:18px; }

    /* Tooltip label when collapsed */
    .app.sidebar-collapsed .nav-link[data-label]::after{
        content: attr(data-label);
        position:absolute;
        left: calc(100% + 10px);
        top:50%;
        transform: translateY(-50%);
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.92);
        color:#fff;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: 0.02em;
        white-space: nowrap;
        opacity: 0;
        pointer-events:none;
        transition: opacity 140ms ease;
        box-shadow: 0 14px 34px rgba(8, 15, 30, 0.28);
        z-index: 999;
    }
    .app.sidebar-collapsed .nav-link:hover::after,
    .app.sidebar-collapsed .nav-link:focus-visible::after{ opacity: 1; }

    .app.sidebar-collapsed .sidebar-footer{ display:none; }
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 0;
}

/* Hide the visual scrollbar in the sidebar while keeping it scrollable */
.nav{
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Legacy Edge/IE */
}
.nav::-webkit-scrollbar{
    width: 0;
    height: 0;
}

.sidebar-footer {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-bottom-actions{
    display:flex;
    justify-content:center;
    margin-top: auto;
    padding: 10px 18px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-bottom-link{
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.92);
    background: transparent;
    border: 0;
    text-decoration:none;
    box-shadow: none;
    padding: 10px 12px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.sidebar-bottom-link:hover{
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(2px);
    text-decoration: none;
}

.sidebar-bottom-link i{
    font-size: 18px;
    line-height: 1;
}

.sidebar-bottom-link span{
    font-weight: 750;
    font-size: 14px;
}

@media (min-width: 980px) {
    .app.sidebar-collapsed .sidebar-bottom-actions{
        padding: 10px 10px 6px;
    }

    .app.sidebar-collapsed .sidebar-bottom-link{
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        justify-content:center;
        border-radius: 18px;
        position: relative;
    }

    .app.sidebar-collapsed .sidebar-bottom-link span{
        display: none;
    }

    .app.sidebar-collapsed .sidebar-bottom-link[data-label]::after{
        content: attr(data-label);
        position:absolute;
        left: calc(100% + 10px);
        top:50%;
        transform: translateY(-50%);
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.92);
        color:#fff;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: 0.02em;
        white-space: nowrap;
        opacity: 0;
        pointer-events:none;
        transition: opacity 140ms ease;
        box-shadow: 0 14px 34px rgba(8, 15, 30, 0.28);
        z-index: 999;
    }

    .app.sidebar-collapsed .sidebar-bottom-link:hover::after,
    .app.sidebar-collapsed .sidebar-bottom-link:focus-visible::after{ opacity: 1; }
}

.sidebar-help-nav {
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-support-card {
    margin-top: 0;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(112, 165, 232, 0.26);
    background:
        radial-gradient(circle at top right, rgba(77, 148, 233, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(10, 48, 96, 0.94) 0%, rgba(8, 38, 76, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-support-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #f4f8ff;
    font-size: 13px;
    font-weight: 800;
}

.sidebar-support-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 11px;
    flex: 0 0 auto;
}

.sidebar-support-meta {
    color: rgba(233, 242, 255, 0.86);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.sidebar-support-link {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
}

.sidebar-support-link:hover {
    color: #d9ebff;
    text-decoration: underline;
}

.nav-link-help {
    align-items: center;
}

.nav-link-help:hover,
.nav-link-help.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: none;
    transform: translateX(2px);
}

.nav-link-help-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: filter 160ms ease, opacity 160ms ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-link:hover i {
    color: inherit;
    opacity: 1;
}

.nav-link-help:hover .nav-link-help-icon,
.nav-link-help.active .nav-link-help-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.nav-link.active:not(.nav-link-help) {
    background: #ffffff;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(13, 65, 114, 0.14);
}

.nav-link.active:not(.nav-link-help) i {
    color: inherit;
    opacity: 1;
}

.nav-link.active:not(.nav-link-help) .nav-link-help-icon {
    filter: none;
    opacity: 1;
}

.nav-link.active:not(.nav-link-help)::before {
    content: none;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.nav-link.is-hidden {
    display: none;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px;
    border-radius: 18px;
}

.sidebar-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
}

.sidebar-card p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 14px;
}

.main {
    grid-column: 2;
    padding: calc(var(--topbar-height) + 8px) var(--main-pad) var(--main-pad);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
    padding-top: calc(var(--topbar-height) + 8px) !important;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.96));
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 80;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 0 !important;
    padding-top: 12px;
}

html,
body,
.app,
.main,
.topbar {
    margin-top: 0 !important;
}

.topbar {
    top: 0 !important;
}

/* Topbar enhancements */
.topbar-left { display:flex; align-items:center; gap:12px; flex: 1 1 auto }
.topbar-left,
.topbar-actions,
.topbar-title,
.brand,
.brand > div {
    min-width: 0;
}

.topbar-system-title{
    display: inline-block;
    font-weight: 950;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(720px, calc(100vw - 420px));
    /* “Shimmer” style sliding gradient */
    background: linear-gradient(
        90deg,
        #0b2f55 0%,
        #0b2f55 44%,
        #38bdf8 50%,
        #0b2f55 56%,
        #0b2f55 100%
    );
    background-size: 420% 100%;
    background-position: 0% 50%;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: topbarTitleSlide 1.8s linear infinite;
    will-change: background-position;
    user-select: none;
}

@keyframes topbarTitleSlide{
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    /* User requested animation even with reduced-motion enabled: keep it, but slow it down */
    .topbar-system-title{ animation-duration: 6.5s !important; }
}

@media (max-width: 700px){
    .topbar-system-title{ display:none; }
}

/* Settings page (account.php) */
.settings-shell{
    display: grid;
    grid-template-columns: clamp(320px, 24vw, 380px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.settings-nav{
    background: linear-gradient(180deg, #0f4c81, #0b2f55);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 20px 44px rgba(2, 18, 40, 0.30);
    position: sticky;
    top: calc(var(--topbar-height) + 18px);
}

.settings-nav-item{
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.88);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease, color 140ms ease;
    text-align: left;
}

.settings-nav-item i{
    width: 18px;
    text-align: center;
    font-size: 16px;
    color: rgba(255,255,255,0.68);
}

.settings-nav-item:hover{
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    transform: translateX(1px);
}

.settings-nav-item.is-active{
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.settings-nav-item.is-active i{ color: #ffffff; }

.settings-nav-item.is-disabled{
    opacity: 0.45;
    cursor: not-allowed;
}
.settings-nav-item.is-disabled:hover{ transform: none; background: transparent; color: rgba(255,255,255,0.88); }

.settings-panel{ display:none; }
.settings-panel.is-active{ display:block; }

/* settings.php: sticky left menu + single stacked content column */
.settings-shell--page .account-layout{
    grid-template-columns: 1fr !important;
}

.settings-shell--page{
    /* Dark-blue theme accents for Settings page */
    --settings-ink: #0b2f55;
    --settings-accent: #0f4c81;
}

.settings-shell--page .settings-section-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    padding: 2px 2px 12px;
    border-bottom: 1px solid rgba(223, 233, 244, 0.92);
    margin-bottom: 12px;
}

.settings-shell--page .settings-section-kicker{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(15, 76, 129, 0.92);
    position: relative;
    padding-bottom: 10px;
}
.settings-shell--page .settings-section-kicker i{
    width: 18px;
    text-align:center;
    font-size: 14px;
    opacity: 0.95;
}
.settings-shell--page .settings-section-kicker::after{
    content:"";
    position:absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.92);
}

.settings-shell--page .settings-status-pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.settings-shell--page .settings-status-pill i{ font-size: 12px; opacity: 0.9; }
.settings-shell--page .settings-status-pill.is-not-submitted{
    background: rgba(255, 140, 60, 0.12);
    border-color: rgba(255, 140, 60, 0.24);
    color: rgba(194, 74, 0, 0.92);
}
.settings-shell--page .settings-status-pill.is-submitted{
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.20);
    color: rgba(22, 163, 74, 0.95);
}

.settings-shell--page .account-settings-icon{
    background: rgba(15, 76, 129, 0.10);
    border-color: rgba(15, 76, 129, 0.18);
    color: var(--settings-accent);
}

.settings-shell--page .account-settings-copy strong{
    color: var(--settings-ink);
}

.settings-stack{
    display: grid;
    gap: 18px;
    min-width: 0;
}

.account-summary-stat-sub{
    display:block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 650;
    color: rgba(15, 23, 42, 0.55);
}

/* Account/Settings cards (shared) */
.account-settings-panel{
    padding: 18px;
    border-radius: 18px;
}
.account-settings-list{
    display: grid;
    border: 1px solid #dfe8f4;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(20, 57, 102, 0.05);
}
.account-settings-item{
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-top: 1px solid #e7eef7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
    color: inherit;
    text-decoration: none;
}
.account-settings-item:first-child{ border-top: 0; }
.account-settings-item:hover{
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7fd 100%);
    text-decoration: none;
}
.account-settings-icon{
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    border: 1px solid #d8e4f6;
    color: #2b5fa5;
}
.account-settings-icon img{ width: 16px; height: 16px; display:block; }
.account-settings-icon i{ font-size: 16px; line-height: 1; }
.account-settings-copy{
    display: grid;
    gap: 4px;
    min-width: 0;
}
.account-settings-copy strong{
    color: #193b67;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block;
}
.account-settings-copy small{
    color: #7a90aa;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block;
}
.account-settings-arrow{
    color: #89a0bb;
    font-size: 13px;
    justify-self: end;
}

@media (max-width: 980px){
    .settings-shell{ grid-template-columns: 1fr; }
    .settings-nav{ position: static; top: auto; display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (min-width: 981px){
    /* Keep aligned with main content padding */
    .settings-shell--page .settings-nav{ margin-left: 0; }
}

/* Breadcrumbs (internal pages) */
.app-breadcrumbs{
    display:flex;
    align-items:center;
    gap:10px;
    margin: -8px calc(var(--main-pad) * -1) 18px;
    padding: 10px var(--main-pad);
    background: rgba(236, 246, 250, 0.95);
    border-bottom: 1px solid rgba(214, 226, 242, 0.95);
    color: #0f4c81;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}
.app-breadcrumbs a{
    color: inherit;
    text-decoration:none;
}
.app-breadcrumbs a:hover{
    text-decoration:underline;
}
.app-breadcrumbs-sep{
    color: rgba(15, 76, 129, 0.45);
    font-size: 11px;
}
.app-breadcrumbs-current{
    color: rgba(15, 23, 42, 0.82);
    font-weight: 900;
}
.app-breadcrumbs-current i{
    margin-right: 8px;
    font-size: 13px;
    color: rgba(15, 76, 129, 0.92);
}
.app-breadcrumbs-home{
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.app-breadcrumbs-home i{
    font-size: 13px;
    line-height: 1;
}
.sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.sidebar-toggle i {
    font-size: 16px;
}

.topbar-mobile-more {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #123a62;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.topbar-mobile-more i {
    font-size: 22px;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
}

.sidebar-edge-close {
    display: none;
}
.topbar-search {
    flex: 1 1 520px;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 35, 60, 0.06);
}

.topbar-search { position: relative; }

.topbar-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.96));
    border: 1px solid rgba(228, 235, 243, 0.95);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 35, 60, 0.18);
    overflow: hidden;
    z-index: 90;
}

.topbar-search-dropdown-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(228, 235, 243, 0.85);
}

.topbar-search-dropdown-head strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.02em;
}

.topbar-search-dropdown-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.topbar-search-dropdown-body {
    max-height: 360px;
    overflow: auto;
}

.search-group {
    padding: 8px 10px 10px;
}

.search-group + .search-group {
    border-top: 1px solid rgba(228, 235, 243, 0.65);
}

.search-group-title {
    padding: 6px 8px 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #73849a;
}

.search-suggest {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    transition: background 140ms ease, transform 140ms ease;
}

.search-suggest:hover {
    background: rgba(15, 76, 129, 0.06);
    transform: translateX(1px);
}

.search-suggest i { color: var(--primary); }

.search-suggest--notif { align-items: flex-start; }

.search-suggest-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
    flex: 0 0 auto;
}

.search-suggest-body { display: grid; gap: 2px; min-width: 0; }
.search-suggest-title { font-weight: 900; line-height: 1.35; }
.search-suggest-sub { color: var(--muted); font-weight: 600; line-height: 1.35; font-size: 12px; }
.search-suggest-meta { color: #73849a; font-size: 11px; font-weight: 700; margin-top: 2px; }
.topbar-search i { color: #8a95a6; font-size: 14px }
.topbar-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}
.topbar-search input::placeholder { color: #8a95a6 }
.topbar-search:focus-within {
    border-color: rgba(15, 76, 129, 0.38);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12), 0 6px 16px rgba(15, 35, 60, 0.06);
}
.topbar-logo { height: 32px; width: auto; display: block }
.brand-link { display:inline-flex; align-items:center }
.brand-logo { height:44px; width:auto; display:block }
.topbar-title h2 { margin:0 }
.topbar-actions { display:flex; gap:10px; align-items:center; margin-left:auto; flex-wrap: wrap }
.topbar-mini-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(228, 235, 243, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #7f8ea3;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.topbar-mini-icon i { font-size: 18px; line-height: 1 }
.topbar-mini-icon:hover {
    color: var(--primary);
    border-color: rgba(15, 76, 129, 0.22);
    background: rgba(15, 76, 129, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 35, 60, 0.10);
}
.topbar-mini-icon:active { transform: translateY(0) }
.topbar-mini-icon:focus-visible {
    outline: 2px solid rgba(15, 76, 129, 0.35);
    outline-offset: 2px;
}
.topbar-mini-icon--notif { position: relative; }
.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 2px #fff, 0 8px 16px rgba(15, 35, 60, 0.18);
}
.notification-badge.is-hidden { display: none; }
.notification-menu { position: relative; }
.topbar-mini-icon.is-updated {
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.10), 0 10px 20px rgba(15, 35, 60, 0.10);
}
.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(360px, 92vw);
    background: #ffffff;
    border: 1px solid rgba(212, 225, 240, 0.9);
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
    z-index: 70;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.notification-dropdown::before {
    content: "";
    position: absolute;
    right: 22px;
    top: -8px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid rgba(212, 225, 240, 0.9);
    border-top: 1px solid rgba(212, 225, 240, 0.9);
    transform: rotate(45deg);
    box-shadow: none;
}
.notification-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(223, 233, 244, 0.92);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96));
}
.notification-head-left{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}
.notification-head-copy{ min-width:0; }
.notification-head-icon{
    width:44px;
    height:44px;
    border-radius: 999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), rgba(235, 243, 253, 0.92));
    border: 1px solid rgba(203, 213, 225, 0.95);
    color:#0f2f54;
    font-size: 18px;
    position:relative;
    flex: 0 0 auto;
}
.notification-head-badge{
    position:absolute;
    top:-8px;
    right:-8px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#1f5fa9;
    color:#fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 0 3px #fff, 0 12px 24px rgba(15, 35, 60, 0.16);
}
.notification-head-badge.is-hidden{ display:none; }
.notification-dropdown-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1a2b40;
    font-weight: 700;
}
.notification-dropdown-head p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #72839a;
    max-width: 32ch;
}
.notification-mark-read {
    border: 1.5px solid rgba(31, 95, 169, 0.55);
    background: rgba(255,255,255,0.92);
    color: #1f5fa9;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    display:inline-flex;
    align-items:center;
    gap:10px;
    box-shadow: 0 18px 36px rgba(12, 38, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.notification-mark-read:hover {
    background: linear-gradient(180deg, rgba(241,247,255,0.98), rgba(255,255,255,0.96));
    color: #0f437e;
    box-shadow:
        0 12px 24px rgba(24, 71, 126, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}
.notification-list {
    max-height: 360px;
    overflow: auto;
    padding: 10px 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 112, 153, 0.45) transparent;
}
.notification-list::-webkit-scrollbar {
    width: 10px;
}
.notification-list::-webkit-scrollbar-track {
    background: transparent;
}
.notification-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, rgba(99, 129, 163, 0.55), rgba(65, 99, 138, 0.7));
    background-clip: padding-box;
}
.notification-list--page {
    max-height: none;
    border: 1px solid rgba(228, 235, 243, 0.95);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.9));
}
.notification-item,
.notification-empty {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
}
.notification-item {
    color: inherit;
    margin-bottom: 10px;
    min-height: 74px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: none;
    transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 160ms ease;
    position:relative;
}
.notification-item:hover {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 14px 26px rgba(16, 47, 84, 0.08);
    transform: translateY(-1px);
}
.notification-item.is-unread {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: none;
}
.notification-item.is-unread::after{
    content:"";
    position:absolute;
    right:16px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background:#1f5fa9;
    box-shadow: 0 0 0 3px rgba(31,95,169,0.10);
}
.notification-item:last-child { margin-bottom: 0; }
.notification-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), rgba(235, 243, 253, 0.92));
    color: rgba(15, 47, 84, 0.75);
    box-shadow: none;
    font-size: 17px;
}

.notification-item.is-unread .notification-item-icon {
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.98), rgba(227, 241, 255, 0.95));
    border-color: rgba(203, 213, 225, 0.95);
    color: #0f2f54;
}
.notification-item-body {
    min-width: 0;
    flex: 1 1 auto;
}
.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #3a516b;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item.is-unread .notification-item-title {
    font-weight: 700;
    color: #0f1f33;
}
.notification-item-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #6b83a1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item.is-unread .notification-item-text {
    color: #4f647c;
    font-weight: 500;
}
.notification-item-time {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #52667d;
    display:flex;
    align-items:center;
    gap:10px;
}
.notification-item-time i{ color:#7a8fa8; }
.notification-empty {
    color: #6f8298;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(246,250,255,0.84));
    border: 1px dashed rgba(196, 213, 232, 0.9);
}
.notification-footer-link {
    display: block;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(223, 233, 244, 0.92);
    font-weight: 800;
    font-size: 16px;
    color: #1f5fa9;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(244,248,253,0.92));
    text-align:center;
    transition: background 160ms ease, color 160ms ease;
    position:relative;
}
.notification-footer-link:hover {
    background: linear-gradient(180deg, rgba(241,247,255,0.96), rgba(249,252,255,0.98));
    color: #124a89;
}
.notification-footer-link::after{
    content: "›";
    position:absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: rgba(31, 95, 169, 0.75);
}
.profile-menu { position:relative }
/* Hover bridge so the dropdown doesn't disappear when moving from the chevron/button to the menu */
.profile-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    z-index: 59;
}
.profile-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #2b3646;
    cursor: pointer;
    font: inherit;
    transition: color 140ms ease, transform 140ms ease;
}
.profile-summary:hover {
    transform: translateY(-1px);
    color: var(--primary);
}
.profile-summary:active { transform: translateY(0) }
.profile-summary:focus-visible { outline: 2px solid rgba(15, 76, 129, 0.35); outline-offset: 2px }
.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(15, 35, 60, 0.06);
    position: relative;
}

.profile-avatar.has-photo {
    color: transparent;
    background: #e8f0fb;
}

.profile-avatar-initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.profile-avatar.has-photo .profile-avatar-initial {
    display: none;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.profile-meta{
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}
.profile-meta strong{
    font-weight: 900;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: #1f2b3a;
    line-height: 1.15;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-meta span{
    font-weight: 800;
    font-size: 11px;
    color: #7a8ba1;
    line-height: 1.1;
}
.profile-label { font-size:15px; font-weight:500; line-height:1 }
.profile-summary .fa-chevron-down { font-size: 14px; color: #7f8ea3; margin-left: 2px; transition: transform 140ms ease, color 140ms ease }
.profile-menu:hover .profile-summary .fa-chevron-down,
.profile-menu:focus-within .profile-summary .fa-chevron-down { transform: rotate(180deg); color: var(--primary) }
.profile-dropdown { position:absolute; right:0; top:calc(100% + 8px); min-width:220px; background: linear-gradient(180deg, #ffffff, #fbfdff); border:1px solid rgba(228, 235, 243, 0.95); border-radius:16px; box-shadow: 0 18px 44px rgba(15, 35, 60, 0.18); padding:8px; z-index:60; opacity:0; visibility:hidden; transform:translateY(8px) scale(0.98); transform-origin: top right; transition:opacity .18s ease, transform .18s ease, visibility .18s ease }
.profile-dropdown::before { content:""; position:absolute; right:16px; top:-7px; width:14px; height:14px; background:#fff; border-left:1px solid rgba(228, 235, 243, 0.95); border-top:1px solid rgba(228, 235, 243, 0.95); transform: rotate(45deg); }
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown { opacity:1; visibility:visible; transform:translateY(0) }
.profile-dropdown-head{ padding: 10px 12px 8px; }
.profile-dropdown-name{ display:block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: #0f172a; }
.profile-dropdown-email{ margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: rgba(15, 76, 129, 0.62); text-transform: none; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.profile-dropdown a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; color:var(--text); font-size:14px; font-weight:600; letter-spacing: 0.01em; transition: background 140ms ease, transform 140ms ease, color 140ms ease }
.profile-dropdown a i { width: 18px; text-align:center; color:#71839a }
.profile-dropdown a:hover { background: rgba(15, 76, 129, 0.06); transform: translateX(1px) }
.profile-dropdown a:focus-visible { outline: 2px solid rgba(15, 76, 129, 0.28); outline-offset: 2px }
.profile-dropdown a.danger { color: var(--danger-text); margin-top: 0; position: relative }
.profile-dropdown a.danger i { color: var(--danger-text) }
.profile-dropdown a.danger::before { content: none }
.profile-dropdown a.danger:hover { background: rgba(194, 60, 60, 0.08) }

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-open {
    overflow: hidden;
}
.confirm-modal.is-open {
    display: flex;
}
.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(58, 106, 168, 0.26), transparent 42%),
        radial-gradient(circle at 80% 80%, rgba(240, 161, 40, 0.20), transparent 38%),
        rgba(8, 18, 34, 0.66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.confirm-modal-dialog {
    position: relative;
    width: min(100%, 520px);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(208, 221, 238, 0.98);
    border-radius: 24px;
    box-shadow: 0 30px 66px rgba(12, 30, 54, 0.32);
    padding: 28px 28px 24px;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}
.confirm-modal.is-open .confirm-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.confirm-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.confirm-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f4f8ff, #e8f0fc);
    border: 1px solid rgba(150, 176, 214, 0.34);
    color: #214a82;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(24, 55, 97, 0.12);
}
.confirm-modal-icon i {
    font-size: 22px;
}
.confirm-modal-copy {
    flex: 1;
}
.confirm-modal-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #5f738d;
}
.confirm-modal-dialog h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #1b2f49;
}
.confirm-modal-text {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #5a6e88;
}
.confirm-modal-divider {
    height: 1px;
    margin: 18px 0 2px;
    background: linear-gradient(90deg, rgba(31, 47, 68, 0.08), rgba(31, 47, 68, 0.24), rgba(31, 47, 68, 0.08));
}


.confirm-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.confirm-modal--menu {
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.confirm-modal--menu .confirm-modal-dialog {
    width: min(100%, 520px);
}
.confirm-modal-actions .btn {
    min-width: 116px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.confirm-modal--success .confirm-modal-icon {
    background: linear-gradient(145deg, #effcf4, #e3f8ea);
    border-color: rgba(120, 199, 146, 0.34);
    color: #1f7a3a;
}

#loginSuccessModal .confirm-modal-dialog.login-success-dialog,
#logoutSuccessModal .confirm-modal-dialog.login-success-dialog {
    width: min(100%, 600px);
    padding: 32px 32px 28px;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 34px 88px rgba(12, 30, 54, 0.38);
    text-align: center;
}

#loginSuccessModal .login-success-head,
#logoutSuccessModal .login-success-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#loginSuccessModal .login-success-icon,
#logoutSuccessModal .login-success-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(132, 195, 65, 0.26), transparent 60%),
        linear-gradient(145deg, #effcf4, #e3f8ea);
    border: 1px solid rgba(120, 199, 146, 0.42);
    color: #1f7a3a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 28px rgba(24, 55, 97, 0.14);
}

#loginSuccessModal .login-success-icon i,
#logoutSuccessModal .login-success-icon i {
    font-size: 28px;
}

#logoutSuccessModal .login-success-icon {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

#loginSuccessModal .login-success-kicker,
#logoutSuccessModal .login-success-kicker {
    margin: 2px 0 0;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
    color: #57708e;
}

#loginSuccessModal .login-success-title,
#logoutSuccessModal .login-success-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #142b46;
}

#loginSuccessModal .login-success-text,
#logoutSuccessModal .login-success-text {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #5a6e88;
}

#loginSuccessModal .login-success-subtext,
#logoutSuccessModal .login-success-subtext {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #7286a3;
}

#loginSuccessModal .login-success-actions,
#logoutSuccessModal .login-success-actions {
    margin-top: 24px;
}

#loginSuccessModal .login-success-ok,
#logoutSuccessModal .login-success-ok {
    min-width: 220px;
    min-height: 56px;
    border-radius: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 16px 32px rgba(15, 76, 129, 0.22);
}

#loginSuccessModal .login-success-ok:hover,
#logoutSuccessModal .login-success-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 76, 129, 0.26);
}

@media (max-width: 560px) {
    #loginSuccessModal .confirm-modal-dialog.login-success-dialog,
    #logoutSuccessModal .confirm-modal-dialog.login-success-dialog {
        width: min(100%, 560px);
        padding: 30px 22px 24px;
        border-radius: 24px;
    }
    #loginSuccessModal .login-success-title,
    #logoutSuccessModal .login-success-title {
        font-size: 40px;
    }
    #loginSuccessModal .login-success-ok,
    #logoutSuccessModal .login-success-ok {
        min-width: 100%;
    }
}
.confirm-btn-cancel {
    border: 2px solid #0f4c81;
    color: #1d3858;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.22);
}
.confirm-btn-cancel:hover {
    background: #edf3fb;
    border-color: #0b3458;
    box-shadow: 0 0 0 1px rgba(11, 52, 88, 0.28);
}
.confirm-btn-logout {
    background: linear-gradient(135deg, #d24b4b, #b63636);
    border-color: #a83131;
    color: #fff;
    box-shadow: 0 10px 20px rgba(168, 49, 49, 0.28);
}
.confirm-btn-logout:hover {
    filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .profile-dropdown,
    .profile-dropdown a,
    .profile-summary { transition: none }
}

@media (max-width: 880px) {
    .confirm-modal--menu {
        align-items: center;
        justify-content: center;
        padding: 16px;
    }
    .confirm-modal-dialog {
        width: min(100%, 440px);
        padding: 22px 20px 18px;
    }
    .confirm-modal-head {
        gap: 12px;
    }
    .confirm-modal-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    .confirm-modal-kicker {
        font-size: 11px;
    }
    .confirm-modal-dialog h2 {
        font-size: 24px;
    }
    .confirm-modal-text {
        font-size: 14px;
    }
    .confirm-modal-divider {
        margin-top: 16px;
    }
    .confirm-modal-actions .btn {
        min-width: 120px;
        min-height: 44px;
        font-size: 14px;
    }
    .topbar-actions { gap:8px }
    .profile-label { display:none }
    .topbar-search { max-width: none }
}

/* Hero image */
.hero-image {
    width: 140px;
    display: block;
    margin-top: 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 880px) {
    .hero-image { width: 96px; margin-top:12px }
}

.eyebrow {
    display: inline-block;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0;
}

.topbar-title { display:flex; flex-direction:column; justify-content:center }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: clamp(14px, 2vw, 20px);
    margin-bottom: clamp(18px, 2.4vw, 24px);
}

.hero-content,
.hero-panel,
.card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.hero-content {
    padding: clamp(16px, 2vw, 24px);
}

.hero-content h3 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    margin: 12px 0 14px;
}

.hero-content p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 820px;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-panel {
    padding: clamp(16px, 2vw, 22px);
    display: grid;
    gap: 14px;
    align-content: start;
}

.metric-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.metric-card strong {
    font-size: 24px;
    color: var(--primary);
}

.grid {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: clamp(18px, 2.4vw, 24px);
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: clamp(18px, 2.4vw, 24px);
}

.card {
    padding: clamp(16px, 2.2vw, 24px);
    min-width: 0;
}

.stat-card span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.stat-card h3 {
    font-size: clamp(24px, 2.8vw, 32px);
    margin: 10px 0 8px;
}

.stat-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-head h3 {
    font-size: clamp(18px, 2.2vw, 22px);
}

.section-head-desc {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.section-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.section-divider {
    display: none;
}

.tag {
    display: inline-block;
    padding: 10px 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eaf2fb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.text-muted {
    color: var(--muted);
    line-height: 1.7;
}

.small-text {
    font-size: 14px;
}

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    margin-bottom: 16px;
}

.notice i {
    margin-top: 2px;
}

.notice--success {
    background: var(--success-bg);
    border-color: rgba(28, 139, 85, 0.18);
    color: var(--success-text);
}

.notice--danger {
    background: var(--danger-bg);
    border-color: rgba(194, 60, 60, 0.22);
    color: var(--danger-text);
}

.notice--success i { color: var(--success-text); }
.notice--danger i { color: var(--danger-text); }

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.password-toggle:hover {
    background: rgba(15, 76, 129, 0.08);
    border-color: rgba(15, 76, 129, 0.18);
}

.caps-indicator {
    margin-top: 6px;
    color: var(--danger-text);
    font-size: 12px;
    font-weight: 700;
}

.strength-meter {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.strength-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 35, 60, 0.10);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 140ms ease;
    background: var(--danger-text);
}

.strength-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.strength-meter.is-0 .strength-fill { background: var(--danger-text); }
.strength-meter.is-1 .strength-fill { background: var(--danger-text); }
.strength-meter.is-2 .strength-fill { background: var(--warning-text); }
.strength-meter.is-3 .strength-fill { background: var(--info-text); }
.strength-meter.is-4 .strength-fill { background: var(--success-text); }

.list {
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card,
.report-card {
    padding: 20px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.feature-card h4,
.report-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.feature-card p,
.report-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input,
.select-input,
.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.form-group textarea { resize: vertical; }

.btn-secondary {
    background: #6e7c8f;
    color: #fff;
}

.btn-secondary:hover {
    filter: brightness(0.95);
}

.btn-danger {
    background: linear-gradient(135deg, #c23c3c, #a33232);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(0.98);
}

.search-input {
    max-width: 320px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}
/* Homepage public tiles */
.homepage-tiles {
    padding: 20px 0 34px;
}
.tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.tile {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 260px;
    text-decoration: none;
}
.tile-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) brightness(0.85);
    transform: scale(1);
    transition: transform 360ms ease, filter 360ms ease;
}
.tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
    background: linear-gradient(180deg, rgba(10,34,64,0.04) 0%, rgba(10,34,64,0.42) 100%);
}
.tile-overlay h3 { margin: 0; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; font-weight:700 }
.tile-overlay p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,0.92) }
.tile:hover .tile-media { transform: scale(1.06); filter: none }

@media (max-width: 900px) {
    .tiles-container { grid-template-columns: repeat(2, 1fr); }
    .tile { height: 200px }
}

@media (max-width: 560px) {
    .tiles-container { grid-template-columns: 1fr }
    .tile { height: 160px }
}


thead th {
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tbody tr:hover {
    background: #fafcff;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status.active,
.status.complete,
.status.submitted,
.status.filed,
.status.approved {
    background: var(--success-bg);
    color: var(--success-text);
}

/* Footer styles */
.site-footer {
    color: #fff;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
}
.footer-top {
    display: flex;
    gap: 48px;
    justify-content: space-between;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 48px 24px 32px;
}
.footer-column {
    flex: 1 1 0;
}
.footer-column.contact {
    max-width: 640px;
}
.footer-column h3 {
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
}
.footer-column .muted {
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
}
.contact-list,
.useful-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li,
.useful-links li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,0.92);
    margin-bottom: 10px;
    font-size: 15px;
}
.contact-list .icon { width: 22px; display:inline-block; text-align:center; color: rgba(255,255,255,0.95) }
.useful-links li { display:flex; align-items:center }
.useful-links .li-icon { margin-right:10px; color: rgba(255,255,255,0.95) }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 26px 20px;
    margin-top: 18px;
    background: rgba(0,0,0,0.06);
}
.brand-center { text-align: center }
.brand-name { letter-spacing: 0.4em; font-weight:700; margin-bottom:8px }
.brand-sub { color: rgba(255,255,255,0.9) }

@media (max-width: 880px) {
    .footer-top { flex-direction: column; gap: 24px; padding: 32px 20px }
    .footer-column.contact { max-width: none }
}

.status.pending,
.status.for-review,
.status.on-leave {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status.missing {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status.probationary {
    background: var(--info-bg);
    color: var(--info-text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1768a7);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-small {
    padding: 10px 14px;
    font-size: 13px;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(119, 160, 18, 0.92) 0%, rgba(98, 145, 19, 0.92) 42%, rgba(9, 91, 38, 0.96) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.12fr minmax(460px, 0.88fr);
    align-items: center;
    gap: 28px;
    padding: 12px 40px;
    overflow: hidden;
}

.login-visual-panel {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 18%, rgba(228, 255, 76, 0.72), rgba(228, 255, 76, 0) 28%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.login-visual-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.login-visual-watermark {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(76vw, 860px);
    transform: translate(-50%, -50%);
    opacity: 0.13;
    filter: sepia(0.45) saturate(1.1) brightness(1.55);
}

.login-visual-watermark img {
    display: block;
    width: 100%;
    height: auto;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.login-visual-logo {
    margin-bottom: 16px;
}

.login-visual-logo img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

.login-visual-content h1 {
    margin: 0;
    font-size: clamp(74px, 8vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    color: #fff;
    font-weight: 700;
}

.login-visual-content p {
    margin: 10px 0 0;
    font-size: clamp(18px, 1.65vw, 28px);
    line-height: 1.08;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.login-visual-content span {
    margin-top: 18px;
    font-size: 16px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-modern {
    width: min(100%, 596px);
    padding: 56px 60px 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.16);
}

.login-card-head h2 {
    margin: 0;
    font-size: clamp(38px, 3.7vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #2a3750;
}

.login-card-head h2 span {
    color: #31bf77;
}

.login-card-head p {
    margin: 16px 0 0;
    max-width: 13ch;
    color: #57657d;
    font-size: 18px;
    line-height: 1.35;
}

.login-role-strip {
    margin: 56px 0 48px;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(39, 64, 106, 0.12);
    border-bottom: 1px solid rgba(39, 64, 106, 0.12);
    text-align: center;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #31bf77;
}

.login-form-modern {
    display: grid;
    gap: 26px;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: #55657b;
    pointer-events: none;
}

.login-input-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.login-input-eye {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: #55657b;
    pointer-events: none;
}

.login-input-eye svg {
    display: block;
    width: 100%;
    height: 100%;
}

.login-form-modern input {
    width: 100%;
    height: 64px;
    padding: 0 50px 0 50px;
    border-radius: 21px;
    border: 1px solid #d9e0ea;
    background: #fff;
    color: #26354d;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-form-modern input::placeholder {
    color: #818b9a;
}

.login-form-modern input:focus {
    border-color: rgba(49, 191, 119, 0.55);
    box-shadow: 0 0 0 4px rgba(49, 191, 119, 0.12);
}

.login-submit-btn {
    height: 66px;
    margin-top: 6px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, #0ec15d, #09b857);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(8, 146, 70, 0.2);
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 34px rgba(8, 146, 70, 0.24);
}

.login-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.login-link-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #7e8da5;
    border-radius: 4px;
    background: #fff;
    color: #54647b;
    font-size: 14px;
    cursor: pointer;
}

.login-card-actions a {
    color: #0dc05b;
    font-size: 15px;
    text-decoration: none;
}

.login-card-modern .alert {
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-actions,
.report-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Account page */
.account-page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.account-page-head {
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
}

.account-subtitle {
    margin-top: 8px;
}

.account-page-head-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98)),
        repeating-linear-gradient(
            90deg,
            rgba(15, 76, 129, 0.03) 0,
            rgba(15, 76, 129, 0.03) 1px,
            transparent 1px,
            transparent 28px
        );
    border-top: 0;
}

.account-page-head-copy {
    min-width: 0;
}

.account-page-head h3 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #16365f;
}

.account-head-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.account-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(43, 95, 165, 0.16);
    color: #36557d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-head-badge i {
    color: #2b5fa5;
}

.account-office-block {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid rgba(43, 95, 165, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 240, 250, 0.92));
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.account-office-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 10px auto;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #163f7a, #2b5fa5);
    color: #fff;
    box-shadow: 0 14px 24px rgba(22, 63, 122, 0.18);
}

.account-office-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.account-office-block strong {
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1.4;
}

.account-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    align-items: start;
}

.account-col {
    display: grid;
    gap: 14px;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px rgba(15, 35, 60, 0.16);
}

.account-avatar.has-photo {
    overflow: hidden;
    background: #e8f0fb;
    color: transparent;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.account-profile-hero {
    position: relative;
    margin: -4px 0 12px;
}

.account-profile-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.account-profile-body .account-summary-meta {
    padding-bottom: 8px;
    padding-top: 10px;
}

.account-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.account-avatar--hero {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 4px solid #ffffff;
    font-size: 30px;
    box-shadow: 0 20px 34px rgba(15, 35, 60, 0.20);
}

.account-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #2b5fa5;
    border: 2px solid rgba(43, 95, 165, 0.16);
    box-shadow: 0 10px 22px rgba(15, 35, 60, 0.16);
    cursor: pointer;
}

.account-avatar-edit:hover {
    background: #f5f9ff;
}

.account-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.account-profile-body .account-name {
    color: #163f7a;
    text-shadow: none;
}

.account-profile-body .account-summary-note {
    color: #6f82a2;
}

.account-summary-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.account-summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.account-photo-form {
    margin-bottom: 18px;
}

.account-photo-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.account-summary-stat {
    padding: 12px 14px;
    border-radius: 13px;
    background: linear-gradient(180deg, #f8fbff, #eef4fc);
    border: 1px solid rgba(43, 95, 165, 0.12);
}

.account-summary-stat-label {
    display: block;
    margin-bottom: 6px;
    color: #5f738d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-summary-stat strong {
    color: #16365f;
    font-size: 19px;
    line-height: 1;
}

.role-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.12), rgba(15, 76, 129, 0.08));
    border: 1px solid rgba(15, 76, 129, 0.16);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-meta {
    display: grid;
    gap: 9px;
}

.account-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff, #f4f8fd);
    border: 1px solid var(--border);
}

.account-meta-key {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.account-meta-value {
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-meta-value--active {
    color: var(--success-text);
}

.account-tip-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.account-tip-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fbfdff, #f4f8fd);
    border: 1px solid rgba(43, 95, 165, 0.10);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(29, 56, 106, 0.04);
}

.account-tip-list i {
    margin-top: 2px;
    color: var(--primary);
}

.account-tip-list span {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.account-helper {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.account-panel--auth {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
}

.account-auth-shell {
    position: relative;
    padding: 22px 22px 24px;
    background:
        radial-gradient(circle at top right, rgba(43, 95, 165, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.account-auth-shell::before {
    content: none;
}

.account-auth-header {
    margin-bottom: 16px;
}

.account-auth-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #17365d;
}

.account-auth-subtitle {
    margin: 8px 0 0;
    max-width: 560px;
    color: #5f738d;
    font-size: 13px;
    line-height: 1.55;
}

.account-auth-form {
    gap: 12px;
}

.account-auth-input-wrap {
    margin: 0;
}

.account-auth-input-wrap .login-input-shell {
    position: relative;
    display: block;
    min-height: 56px;
    padding: 0 18px 0 52px;
    border-radius: 14px;
    border-color: #d7e3f5;
    background: linear-gradient(180deg, #fbfdff, #f4f8ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.account-auth-input-wrap .login-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #2b5fa5;
    pointer-events: none;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.account-auth-input-wrap .login-input-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.account-auth-input-wrap .login-input-icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.account-auth-input-wrap .login-floating-label {
    position: absolute;
    font-size: 15px;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7d93;
}

.account-auth-input-wrap input {
    display: block;
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0;
    padding: 18px 0 6px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
}

.account-auth-form.login-form-modern input {
    height: auto;
    min-height: 54px;
    padding: 18px 0 6px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.account-auth-input-wrap input:focus + .login-floating-label,
.account-auth-input-wrap input:not(:placeholder-shown) + .login-floating-label {
    top: 10px;
    transform: none;
    font-size: 10px;
    color: #2b5fa5;
}

.account-auth-input-wrap--password .login-input-shell input {
    padding-right: 52px;
}

.account-auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #2b5fa5;
    box-shadow: none;
}

.account-auth-password-toggle .login-password-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.account-auth-password-toggle .login-password-icon svg {
    width: 18px;
    height: 18px;
}

.account-auth-password-toggle .login-password-icon-hide {
    display: none;
}

.account-auth-password-toggle:hover {
    background: transparent;
    border-color: transparent;
    color: #9b6200;
    transform: translateY(-50%);
}

.account-auth-password-toggle.is-active {
    background: transparent;
    color: #b67812;
}

.account-auth-password-toggle.is-active .login-password-icon-show {
    display: none;
}

.account-auth-password-toggle.is-active .login-password-icon-hide {
    display: inline-flex;
}

.account-auth-actions {
    margin-top: 2px;
}

.account-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, #163f7a, #2b5fa5);
    letter-spacing: 0.16em;
    box-shadow: 0 12px 24px rgba(22, 63, 122, 0.18);
}

.account-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(22, 63, 122, 0.24);
    filter: saturate(1.03);
}

.account-auth-form > .password-validation-indicator,
.account-auth-form > .account-password-validation-indicator {
    margin-top: 6px;
    padding: 14px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.account-auth-form > .password-validation-indicator.is-hidden,
.account-auth-form > .account-password-validation-indicator.is-hidden {
    display: none;
}

.account-auth-form .password-strength-progress {
    position: relative;
    width: 100%;
    height: 6px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #d7dde5;
    overflow: hidden;
}

.account-auth-form .password-strength-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d92d20, #f59e0b);
    transition: width 220ms ease, background 220ms ease;
}

.account-auth-form .password-strength-progress-bar[data-strength="medium"] {
    background: linear-gradient(90deg, #d49a18, #f0c35a);
}

.account-auth-form .password-strength-progress-bar[data-strength="strong"] {
    background: linear-gradient(90deg, #2e8b57, #6fbe7b);
}

.account-auth-form .password-strength-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #b42318;
}

.account-auth-form .password-strength-alert.is-hidden {
    display: none;
}

.account-auth-form .password-strength-alert::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
}

.account-auth-form .password-strength-alert[data-strength="empty"],
.account-auth-form .password-strength-alert[data-strength="weak"] {
    color: #b42318;
}

.account-auth-form .password-strength-alert[data-strength="medium"] {
    color: #b58112;
}

.account-auth-form .password-strength-alert[data-strength="strong"] {
    color: #2e8b57;
}

.account-auth-form .password-validation-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #163f7a;
    letter-spacing: 0;
    text-transform: none;
}

.account-auth-form .password-validation-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.account-auth-form .password-validation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.account-auth-form .validation-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
    background: transparent;
    border: 2px solid currentColor;
    box-shadow: none;
}

.account-auth-form .validation-icon-invalid {
    color: #b8c0cb;
}

.account-auth-form .validation-icon-valid {
    display: none;
    color: #6fbe7b;
}

.account-auth-form .validation-text {
    padding-top: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #7ebf73;
    font-weight: 700;
}

.account-auth-form .password-validation-item:not(.is-valid) .validation-text {
    color: #95a0ae;
    font-weight: 600;
}

.account-auth-form .password-validation-item.is-valid .validation-icon-invalid {
    display: none;
}

.account-auth-form .password-validation-item.is-valid .validation-icon-valid {
    display: flex;
}

.account-auth-form .password-validation-item.is-valid .validation-text {
    color: #6fbe7b;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-page-head-inner {
        flex-direction: column;
    }

    .account-office-block {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .account-office-icon {
        margin-left: 0;
    }

    .account-auth-title {
        font-size: 24px;
    }

    .account-profile-body {
        padding: 0 18px;
    }
}

@media (max-width: 640px) {
    .account-profile-hero {
        margin-bottom: 16px;
    }

    .account-profile-body {
        gap: 12px;
        margin-top: 0;
        padding: 0;
        align-items: center;
    }

    .account-profile-body .account-summary-meta {
        padding-top: 8px;
    }

    .account-avatar--hero {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }

    .account-auth-shell {
        padding: 18px 16px 18px;
    }

    .account-summary-strip {
        grid-template-columns: 1fr;
    }

    .account-auth-title {
        font-size: 22px;
    }

    .account-auth-input-wrap .login-input-shell {
        min-height: 54px;
        padding: 14px 18px;
        border-radius: 16px;
    }

    .account-auth-submit {
        min-height: 44px;
        border-radius: 14px;
        letter-spacing: 0.16em;
    }
}

/* Generic admin cards (used by dashboards) */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    color: #fff;
}

.admin-card-header i {
    font-size: 20px;
}

.admin-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.admin-card-body {
    padding: 18px 18px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.footer {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1200px) {
    .stats-grid,
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero,
    .two-col {
        grid-template-columns: 1fr;
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .login-visual-panel {
        min-height: 420px;
    }

    .login-card-modern {
        width: min(100%, 620px);
    }
}

/* Responsive sidebar: collapse into an off-canvas drawer on smaller viewports. */
@media (max-width: 980px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: auto;
        width: min(74vw, 280px);
        max-width: 280px;
        z-index: 200;
        border-radius: 0;
        padding: 18px 14px;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        overflow: visible;
    }

    .sidebar-main {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding-right: 0;
    }

    .nav{
        overflow-y: auto;
        padding-right: 2px;
    }

    .sidebar-edge-close { display: none; }

    .sidebar-edge-close i {
        font-size: 12px;
        line-height: 1;
    }

    .sidebar-edge-close:hover {
        transform: translateY(-50%) scale(1.04);
        box-shadow: 0 18px 32px rgba(8, 24, 43, 0.34);
        background: linear-gradient(180deg, #2a6ea9, #145084);
    }

    .sidebar-edge-close:active {
        transform: translateY(-50%) scale(0.96);
    }

    .sidebar-edge-close:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.62);
        outline-offset: 2px;
    }

    .app.sidebar-open .sidebar-edge-close { display: none; }

    .brand {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        font-size: 14px;
        padding: 10px 10px;
        transform: none;
    }

    .nav-link:hover {
        transform: none;
    }

    .nav-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main {
        grid-column: 1;
        --main-pad: clamp(14px, 3.4vw, 20px);
        padding: calc(var(--topbar-height) + 8px) var(--main-pad) var(--main-pad);
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        left: 0;
        padding: 10px 14px;
    }

    .topbar-left {
        width: auto;
        flex: 1 1 auto;
    }

    .sidebar-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #123a62;
    }

    .sidebar-toggle i {
        font-size: 22px;
        line-height: 1;
    }

    .sidebar-toggle span {
        display: none;
    }

    .topbar-actions {
        display: flex;
        position: absolute;
        right: 12px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        z-index: 120;
        margin-left: 0;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 150;
        border: 0;
        background: rgba(9, 24, 44, 0.44);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .app.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .app.sidebar-open .sidebar-toggle i::before {
        content: "\f00d";
    }

    .sidebar-help-nav {
        margin-top: 8px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .feature-grid,
    .stats-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .login-layout {
        padding: 16px;
    }

    .login-visual-panel {
        min-height: 320px;
    }

    .login-visual-logo img {
        width: 96px;
        height: 96px;
    }

    .login-visual-content h1 {
        font-size: clamp(48px, 15vw, 76px);
    }

    .login-visual-content p {
        font-size: 18px;
    }

    .login-visual-content span {
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .login-card-modern {
        padding: 30px 22px 24px;
        border-radius: 24px;
    }

    .login-card-head h2 {
        font-size: 34px;
    }

    .login-card-head p {
        max-width: none;
        font-size: 18px;
    }

    .login-role-strip {
        margin: 28px 0 24px;
        font-size: 17px;
        letter-spacing: 0.18em;
    }

    .login-form-modern input,
    .login-submit-btn {
        height: 58px;
        border-radius: 18px;
    }

    .login-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-link-btn {
        width: 100%;
    }

    .login-card-actions a {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .nav {
        gap: 6px;
    }

    .main {
        --main-pad: 12px;
    }

    .topbar {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .topbar-actions {
        right: 8px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        justify-content: flex-end;
    }

    .notification-dropdown {
        width: min(92vw, 360px);
        right: -8px;
    }

    .card,
    .section-card,
    .panel,
    .hero-content {
        padding: 14px;
    }
}

@media (max-width: 980px) {
    .table-wrap,
    .leave-history-table,
    .data-table-wrap,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table,
    .data-table {
        min-width: 640px;
    }

    .form-grid,
    .grid,
    .stats-grid,
    .report-grid,
    .feature-grid,
    .tools-grid,
    .pds-top-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .two-col {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
    }

    input,
    select,
    textarea,
    .btn {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    :root {
        --topbar-height: 62px;
    }

    .sidebar {
        width: min(88vw, 320px);
    }

    .main {
        --main-pad: 12px;
    }

    .topbar {
        gap: 8px;
        padding: 10px 12px;
    }

    .topbar-actions {
        right: 10px;
        gap: 6px;
    }

    .topbar-search input,
    .dir-input,
    input,
    select,
    textarea {
        min-width: 0;
    }

    .card,
    .hero-content,
    .hero-panel,
    .auth-card {
        border-radius: 16px;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-head-meta {
        width: 100%;
        justify-content: flex-start;
    }

    table,
    .data-table {
        min-width: 560px;
    }
}

/* Modern Hero Section */
.modern-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.modern-hero .hero-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.header-badge {
    animation: fadeInScale 0.6s ease-out 0.1s both;
}

.header-badge--gov {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 26px rgba(15, 35, 60, 0.14);
    border: 1px solid rgba(15, 76, 129, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 12px 26px rgba(15, 35, 60, 0.14);
}

.header-badge--gov i {
    font-size: 26px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header-icon {
    font-size: 40px;
    line-height: 1;
}

/* quick-actions and quick-action-card styles retired
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: none;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transition: left 0.4s ease;
    z-index: 0;
}
*/

.quick-action-card:hover::before {
    left: 100%;
}

.quick-action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.15);
    border-color: rgba(0,0,0,0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #2d65c8, #0f4c81);
    color: #fff;
    border-color: rgba(15, 76, 129, 0.35);
}

.action-icon i {
    font-size: 24px;
    line-height: 1;
}

.stat-icon i {
    font-size: 20px;
}

.action-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.action-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.action-content p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.action-arrow {
    margin-left: auto;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    border: 1px solid #b9d4f8;
    background: #eef5ff;
    color: #2f66cb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.quick-action-card:hover .action-arrow {
    color: #fff;
    border-color: #2f66cb;
    background: linear-gradient(135deg, #3e7be7, #2b63cd);
    transform: none;
    box-shadow: none;
}

.quick-action-primary .action-icon,
.quick-action-blue .action-icon,
.quick-action-success .action-icon,
.quick-action-purple .action-icon,
.quick-action-green .action-icon,
.quick-action-red .action-icon,
.quick-action-dark .action-icon,
.quick-action-orange .action-icon {
    color: #1f5fb9;
    background: #fff;
    border: 1px solid rgba(31, 95, 185, 0.18);
}

.quick-action-primary .action-icon {
    background: #fff;
}

.quick-action-blue .action-icon {
    background: #fff;
}

.quick-action-success .action-icon {
    background: #fff;
}

.quick-action-purple .action-icon {
    background: #fff;
}

.quick-action-primary:hover {
    background: inherit;
}

.modern-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.modern-panel:hover .stat-widget {
    opacity: 0.9;
}

.stat-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.14);
    border-color: rgba(15, 76, 129, 0.15);
}

.stat-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-header--primary {
    background: linear-gradient(135deg, var(--primary), #1768a7);
}

.stat-header--info {
    background: linear-gradient(135deg, #2d65c8, var(--primary));
}

.stat-header--success {
    background: linear-gradient(135deg, #1c8b55, #2fa36a);
}

.stat-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    transition: right 0.4s ease;
}

.stat-widget:hover .stat-header::after {
    right: 100%;
}

.stat-icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.stat-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.stat-body {
    padding: 20px;
    background: linear-gradient(135deg, #fafbff 0%, #f5f7fc 100%);
    position: relative;
}

.stat-body::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
}

.stat-number {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, currentColor, currentColor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number--primary { color: var(--primary); }
.stat-number--success { color: var(--success-text); }

.stat-label {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Add progress indicator for percentage-based metrics */
.stat-widget.has-percentage .stat-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #45a049);
    border-radius: 0 4px 0 0;
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 92%;
    }
}

.quick-action-green:hover {
    background: inherit;
}

.quick-action-success:hover {
    background: inherit;
}

.quick-action-blue:hover {
    background: inherit;
}

.quick-action-orange:hover {
    background: inherit;
}

.quick-action-purple:hover {
    background: inherit;
}

/* Activities Section */
.activities-section {
    margin: 32px 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h3 i {
    color: var(--primary);
    font-size: 22px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.activities-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.activity-item--urgent { border-left-color: #c23c3c; }
.activity-item--warning { border-left-color: #b56b00; }
.activity-item--success { border-left-color: #1c8b55; }
.activity-item--info { border-left-color: var(--primary); }

.activity-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.12);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-icon--urgent { background: linear-gradient(135deg, #c23c3c, #a33232); }
.activity-icon--warning { background: linear-gradient(135deg, #f0a128, #b56b00); }
.activity-icon--success { background: linear-gradient(135deg, #1c8b55, #2fa36a); }
.activity-icon--info { background: linear-gradient(135deg, var(--primary), #1768a7); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.activity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.activity-badge.urgent {
    background: #ffebee;
    color: #c62828;
}

.activity-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.activity-badge.warning {
    background: #fff3e0;
    color: #e65100;
}

.activity-badge.info {
    background: #e3f2fd;
    color: #1565c0;
}

.activity-time {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* Sidebar */
.activities-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.06);
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-card {
    animation: slideInRight 0.6s ease-out forwards;
}

.sidebar-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sidebar-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sidebar-card h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i {
    color: var(--primary);
    font-size: 15px;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text);
}

.alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.urgent-alert .alert-dot {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

.warning-alert .alert-dot {
    background: #ff9800;
}

.info-alert .alert-dot {
    background: #2196f3;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.dept-bar {
    margin-bottom: 8px;
}

.dept-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.dept-progress {
    height: 6px;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sidebar-card:hover .dept-progress {
    opacity: 1;
}

@media (max-width: 1024px) {
    .activities-container {
        grid-template-columns: 1fr;
    }

    .activity-item {
        gap: 12px;
        padding: 14px;
    }

    .activity-time {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .section-title h3 {
        font-size: 20px;
    }

    .activity-item {
        padding: 12px;
    }

    .activities-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-hero .hero-content {
        padding: 20px;
    }

    .hero-header {
        flex-direction: column;
    }

    .hero-header h2 {
        font-size: 28px;
    }

    /* quick-actions mobile layout retired
    .quick-actions {
        grid-template-columns: 1fr;
    }
    */

    .modern-panel {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Enhancements */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.page-header h2 {
    font-size: 28px;
    margin: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card.small {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.card.small h3 {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-weight: 600;
}

.card.small .metric {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

.card.small small {
    color: var(--muted);
    font-size: 12px;
    display: block;
}

.alerts-panel {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

.alerts-panel h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #856404;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.alert-card {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.alert-card p {
    margin: 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.alert-card a {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.alert-card a:hover {
    text-decoration: underline;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.panel h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
    color: var(--text);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--surface-soft);
    border-bottom: 2px solid var(--border);
}

.table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: #f9fbff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Layout and content */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg);
}

.content {
    padding: 28px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .alerts-grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table tbody td {
        padding: 12px 10px;
    }
}

/* Styles from home.php - navbar, header, datetime, main-grid */
body.homepage {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f7f9fb;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 64px;
    justify-content: space-between;
}
.navbar .logo { display:flex; align-items:center }
.navbar .logo img { height:48px; margin-right:16px }
.navbar nav { display:flex; gap:24px }
.navbar nav a { text-decoration:none; color:#222; font-weight:500; padding:8px 0; transition:color 0.2s }
.navbar nav a:hover { color:#0056b3 }
.navbar .search { margin-left:24px }
.navbar .search input { padding:6px 12px; border:1px solid #ccc; border-radius:4px }

.header {
    background: #e3eaf6;
    padding: 32px 0 16px 0;
    text-align: center;
}
.header img { height:64px; margin:0 12px }
.header h1 { margin:16px 0 0 0; font-size:2.2rem; color:#1a237e }
.header .subtext { color:#333; font-size:1.1rem }

.datetime {
    text-align: right;
    padding: 8px 40px 0 0;
    color: #555;
    font-size: 0.95rem;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    min-height: 220px;
    transition: box-shadow 0.2s;
}
.grid-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10) }
.grid-item h2 { margin:0 0 12px 0; font-size:1.3rem; color:#1a237e }
.grid-item p { color:#444; font-size:1rem; margin:0 0 8px 0 }
.grid-item .qr { margin:16px 0 0 0 }

@media (max-width:700px) {
    .main-grid { padding:16px; gap:16px }
    .navbar { flex-direction:column; height:auto; padding:12px }
    .header { padding:16px 0 8px 0 }
}

/* Highlights / News */
.highlights { max-width:1200px; margin: 10px auto 36px; padding: 0 20px }
.highlights .section-title { text-align:center; margin-bottom:20px }
.highlights .section-title h3 { font-family: 'Georgia', serif; color: var(--primary); font-size:28px; letter-spacing:0.02em; position:relative; display:inline-block; padding:0 24px }
.highlights .section-title h3::before,
.highlights .section-title h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1000px;
    height: 3px;
    background: #2b6db3;
}
.highlights .section-title h3::before { right: 100%; margin-right: 18px }
.highlights .section-title h3::after { left: 100%; margin-left: 18px }
.news-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px }
.news-card { background: #fff; border-radius:10px; overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-md) }
.news-card img { width:100%; height:160px; object-fit:cover; display:block }
.news-card .meta { padding:12px 14px }
.news-card .meta .date { color:var(--muted); font-size:13px; margin-bottom:8px }
.news-card .meta h4 { margin:0; font-size:16px; color:var(--text); line-height:1.15 }

.news-card .meta h4 { font-weight:800; text-transform:uppercase }

/* Carousel / banner */
.hero-carousel { width:100%; display:block; margin: 18px 0; }
.hero-carousel .slide { width:100%; height:320px; border-radius:10px; overflow:hidden; background:#ddd; display:block }
.hero-carousel .slide img { width:100%; height:100%; object-fit:cover; display:block }

@media (max-width:880px) {
    .hero-carousel .slide { height:200px }
}

/* Public header and landing page overrides */
.public-header { background: #fff; border-bottom: 1px solid var(--border); }
.public-header-top { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 40px; }
.public-header-top .gov-left img { height:42px }
.public-brand { display:flex; align-items:center; gap:16px }
.public-brand .lto-logo { height:72px }
.public-site-title .small { font-size:12px; color:var(--muted); font-weight:700 }
.public-site-title h1 { margin:0; font-size:22px; color:var(--primary); letter-spacing:0.08em }
.gov-right img { height:48px; margin-left:8px }

.public-nav { display:flex; align-items:center; justify-content:space-between; padding:10px 40px 20px 40px; background: linear-gradient(180deg, rgba(15,76,129,0.03), transparent); }
.public-nav ul { list-style:none; display:flex; gap:18px; align-items:center; margin:0; padding:0 }
.public-nav a { color:var(--text); text-decoration:none; font-weight:600; padding:8px 10px }
.public-nav a.active { color:var(--primary) }
.public-search input { padding:8px 12px; border-radius:8px; border:1px solid var(--border); min-width:200px }

.hero-banner { margin: 18px 0; }
.hero-banner-image { width:100%; height:220px; object-fit:cover; display:block; border-radius:8px }

/* Larger tiles on public homepage */
.tiles-container { grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 18px auto; padding: 0 20px }
.tile { height: 260px; border-radius: 8px }
.tile-overlay { justify-content:flex-end; padding: 20px }

@media (max-width: 980px) {
    .public-header-top { padding: 12px 18px }
    .public-nav { padding: 10px 18px }
    .tiles-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .public-brand .lto-logo { height:54px }
    .tiles-container { grid-template-columns: 1fr }
    .public-nav ul { display:none }
}


@media (max-width: 980px) {
    .news-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr }
}

/* Affiliates blue banner */
.affiliates-banner { background: linear-gradient(90deg,#0f4c81,#1768a7); color:#fff; border-radius:14px; padding:36px 28px; margin: 28px 20px; display:flex; gap:20px; align-items:center }
.affiliates-left { flex:2 }
.affiliates-left h3 { font-size:34px; margin:0 0 12px; letter-spacing:0.08em }
.affiliates-left p { margin:0; opacity:0.95 }
.affiliates-right { flex:1; text-align:right }
.affiliates-right .social { display:flex; gap:8px; justify-content:flex-end }
.affiliates-logos { margin-top:14px; display:flex; gap:12px; justify-content:flex-end; align-items:center }
.affiliates-logos img { height:48px }

@media (max-width:880px) {
    .affiliates-banner { flex-direction:column; text-align:left }
    .affiliates-right { text-align:left }
    .affiliates-logos { justify-content:flex-start }
}

/* GOVPH-style full width header */
.site-header { background:#fff; border-bottom:1px solid #e8e8e8; }
.govph-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 28px; height:56px; gap:12px }
.govph-left { font-weight:700; font-size:18px; color:#222 }
.govph-nav { display:flex; gap:20px; align-items:center }
.govph-nav a { color:#333; text-decoration:none; padding:10px 6px; font-weight:600 }
.govph-nav a:hover { color:var(--primary) }
.govph-right { display:flex; align-items:center; gap:10px }
.govph-search input { padding:8px 10px; border:1px solid #dcdcdc; border-radius:4px }
.access-btn { background:transparent; border:1px solid #ddd; padding:6px 8px; border-radius:999px; cursor:pointer }

.brand-banner { padding:18px 24px; background:#fff }
.brand-banner-inner { display:flex; align-items:center; gap:24px; max-width:1200px; margin:0 auto }
.brand-left img { height:72px }
.brand-center { text-align:center; flex:1 }
.brand-center h1 { margin:0; font-size:14px; color:#666; font-weight:600 }
.brand-center h2 { margin:6px 0 0 0; font-size:18px; color:#222; font-weight:800 }
.brand-main { margin-top:6px; font-size:28px; font-weight:900; letter-spacing:1px; color:#111 }
.brand-right .brand-seal { height:56px }

@media (max-width:900px) {
    .govph-nav { display:none }
    .brand-banner-inner { gap:12px }
    .brand-center .brand-main { font-size:20px }
}


/* Homepage-specific banners */
.homepage { max-width: 1200px; margin: 18px auto 36px; padding: 0 20px; }
.homepage-banner {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(15,76,129,0.9), rgba(23,104,167,0.6));
    padding: 28px;
    box-shadow: 0 8px 28px rgba(15,76,129,0.08);
}
.banner-inner { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: center; width:100%; }
.banner-left { color: #fff; }
.banner-eyebrow { display:inline-block; background: rgba(255,255,255,0.08); padding:6px 10px; border-radius:8px; font-weight:700; font-size:13px; }
.banner-title { font-size:48px; margin:12px 0 4px; letter-spacing:2px; text-transform:uppercase; }
.banner-sub { font-size:20px; margin:0; opacity:0.95 }
.banner-note { margin-top:14px; color: #ffebc6; font-weight:800; }
.banner-right .banner-art { height:200px; border-radius:12px; background-image: linear-gradient(135deg,#111 0%, #333 100%); }

.hotline-banner { margin-top:18px; background: linear-gradient(90deg,#ffffff,#eef6ff); border-radius:12px; padding:18px; border:1px solid var(--border); }
.hotline-inner { display:flex; gap:20px; align-items:center; justify-content:space-between; }
.hotline-left h3 { margin:0; color:var(--primary); font-size:18px; }
.hotline-number { font-size:44px; font-weight:800; color:var(--primary); margin-top:6px; }
.hotline-sub { margin-top:8px; color:var(--muted); }
.hotline-mockup { height:110px; width:auto; border-radius:10px; box-shadow:var(--shadow-md); }

@media (max-width: 980px) {
    .banner-inner { grid-template-columns: 1fr; }
    .banner-right { display:none; }
    .hotline-inner { flex-direction: column; align-items: flex-start; gap:12px; }
    .hotline-mockup { height:84px }
}

/* Password Validation Indicator */
.password-validation-indicator {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    font-size: 14px;
}

.password-validation-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    font-size: 14px;
}

.password-validation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-validation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.validation-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.validation-icon-invalid {
    background: #dc3545;
    color: white;
}

.validation-icon-valid {
    background: #28a745;
    color: white;
    display: none;
}

.validation-text {
    color: #6c757d;
    font-size: 13px;
    transition: color 0.2s ease;
}

/* Valid state styling */
.password-validation-item.is-valid .validation-icon-invalid {
    display: none;
}

.password-validation-item.is-valid .validation-icon-valid {
    display: flex;
}

.password-validation-item.is-valid .validation-text {
    color: #28a745;
    font-weight: 500;
}

/* Hover effects */
.password-validation-item:hover {
    transform: translateX(2px);
}

/* Responsive design for mobile */
@media (max-width: 480px) {
    .password-validation-indicator {
        padding: 12px;
        margin-top: 6px;
    }
    
    .password-validation-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .validation-text {
        font-size: 12px;
    }
}

/* Login Form Validation Styling */
.login-modal-body .alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    animation: slideDown 0.3s ease-out;
}

.login-modal-body .alert-error {
    background-color: #fdeaea;
    border: 1px solid #f5c6cb;
    color: #c23c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-modal-body .alert-error::before {
    content: "\26A0";
    font-size: 16px;
    flex-shrink: 0;
}

.login-modal-body .alert-success {
    background-color: #eaf8ef;
    border: 1px solid #c8e6c9;
    color: #1c8b55;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-modal-body .alert-success::before {
    content: "\2713";
    font-size: 16px;
    flex-shrink: 0;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ltoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lto-spinner {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: -3px;
    animation: ltoSpin 0.9s linear infinite;
}

.notification-empty.is-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-empty.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("assets/img/spinner-icons8.png") center/contain no-repeat;
    animation: ltoSpin 0.9s linear infinite;
    opacity: 0.9;
}

/* Form field validation states */
.login-input-shell input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.login-input-shell.is-error input{
    border-color: inherit;
    box-shadow: none;
}

@media (max-width: 520px) {
    .profile-meta { display: none; }
}
.login-input-shell.is-error .login-floating-label{
    color: #b02a37;
}

/* Avoid aggressive red boxes in public auth modals.
   Limit native :invalid styling to the account auth forms where inputs have borders. */
.account-auth-form .login-input-shell input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: inherit;
}

.login-input-shell input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.login-session-expired{
    margin: 0 0 14px 0;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(252, 201, 201, 0.95);
    background: linear-gradient(180deg, #ffffff, #fdeaea);
    color: #173456;
}
.login-session-expired h3{
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.login-session-expired p{
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.login-pending-actions{
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}
.login-pending-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 129, 0.22);
    background: rgba(15, 76, 129, 0.06);
    color: #0f4c81;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
}
.login-pending-link:hover{
    background: rgba(15, 76, 129, 0.10);
    border-color: rgba(15, 76, 129, 0.30);
}

/* Employee dashboard helpers */
.card-compact {
    padding: 18px;
    border-radius: 16px;
}

.tools-mini {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.tools-mini-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.92));
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.tools-mini-link i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.tools-mini-link:hover {
    transform: translateX(2px);
    background: rgba(15, 76, 129, 0.05);
    border-color: rgba(15, 76, 129, 0.20);
}

.tools-mini-link--seeall {
    justify-content: space-between;
    font-weight: 900;
}

.tools-mini-link--seeall i {
    color: var(--primary);
}

.announcement-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: rgba(248, 251, 255, 0.92);
    margin-top: 12px;
}

.announcement-date {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.announcement-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}

.announcement-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.92));
    box-shadow: 0 10px 22px rgba(15, 35, 60, 0.06);
    color: var(--text);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 76, 129, 0.18);
    box-shadow: 0 18px 36px rgba(15, 35, 60, 0.12);
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.tool-card h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.tool-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.tool-icon--primary { background: linear-gradient(135deg, var(--primary), #1768a7); }
.tool-icon--info { background: linear-gradient(135deg, #2d65c8, var(--primary)); }
.tool-icon--success { background: linear-gradient(135deg, #1c8b55, #2fa36a); }
.tool-icon--warning { background: linear-gradient(135deg, #f0a128, #b56b00); }

.tool-cta {
    margin-top: 6px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    border: 1px solid #b9d4f8;
    background: #eef5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tool-cta::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    color: #7da6dc;
    transition: color 160ms ease;
}

.tool-card:hover .tool-cta {
    border-color: #2f66cb;
    background: linear-gradient(135deg, #3e7be7, #2b63cd);
    transform: none;
    box-shadow: none;
}

.tool-card:hover .tool-cta::before {
    color: #fff;
}

@media (max-width: 1100px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* Checklist page */
.checklist {
    display: grid;
    gap: 10px;
}

.checklist-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.92));
}

.checklist-check {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checklist-check input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.checklist-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(15, 76, 129, 0.22);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 35, 60, 0.06);
}

.checklist-check input:checked + .checklist-box {
    background: linear-gradient(135deg, var(--primary), #1768a7);
    border-color: rgba(15, 76, 129, 0.35);
}

.checklist-check input:checked + .checklist-box::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.checklist-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.checklist-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--text);
    font-size: 14px;
}

.checklist-title i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.checklist-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Global search page */
.search-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
}

.search-block {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.92));
}

.search-title {
    margin: 4px 0 12px;
    font-size: 14px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.02em;
}

.search-links {
    display: grid;
    gap: 8px;
}

.search-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(228, 235, 243, 0.95);
    background: #fff;
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.search-link i {
    color: var(--primary);
}

.search-link:hover {
    transform: translateX(2px);
    background: rgba(15, 76, 129, 0.05);
    border-color: rgba(15, 76, 129, 0.18);
}

@media (max-width: 980px) {
    .search-layout { grid-template-columns: 1fr; }
}

/* PDS page */
.pds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #f2f5f9 100%);
    border: 1px solid rgba(25, 52, 84, 0.10);
    box-shadow:
        0 26px 60px rgba(17, 37, 63, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.pds-header {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 22px;
    padding: 30px 28px 24px;
    background:
        radial-gradient(circle at top left, rgba(214, 167, 74, 0.18), transparent 26%),
        linear-gradient(135deg, #0c3f6d 0%, #114d81 48%, #0f4a79 100%);
    color: #f6f8fb;
    position: relative;
}

.pds-header::after {
    content: "";
    position: absolute;
    inset: auto 24px 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.14));
}

.pds-header-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.pds-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pds-header-agency {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pds-eyebrow {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pds-header-agency strong {
    font-size: 16px;
    font-weight: 1000;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pds-agency-subline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pds-header-copy {
    max-width: 720px;
}

.pds-form-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pds-header-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    letter-spacing: 0.12em;
    color: #14324b;
    background: linear-gradient(160deg, #2c6fa7 0%, #1a558e 55%, #134877 100%);
    box-shadow: 0 10px 20px rgba(6, 24, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.30);
    overflow: hidden;
}

.pds-header-badge img {
    display: block;
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pds-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.05;
}

.pds-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
    font-size: 14px;
}

.pds-header-panel {
    align-self: stretch;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 18px 40px rgba(6, 18, 32, 0.12);
    backdrop-filter: blur(8px);
}

.pds-header-panel-title {
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 14px;
}

.pds-warning-bar {
    margin: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid rgba(160, 36, 36, 0.12);
    border-left: 5px solid #b73d32;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 233, 231, 0.98), rgba(255, 248, 247, 0.98));
    color: #7d1f1f;
    font-size: 12px;
    line-height: 1.6;
    box-shadow: 0 14px 30px rgba(76, 28, 28, 0.06);
}

.pds-warning-bar strong {
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pds-header-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pds-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f8fb;
    font-weight: 800;
    font-size: 12px;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pds-meta-pill i {
    color: #f4cf7b;
}

.pds-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 14px;
    padding: 18px 18px 0;
}

.pds-warning-bar,
.pds-document-note {
    margin: 0;
    padding: 15px 17px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.96));
    box-shadow: 0 10px 24px rgba(15, 35, 60, 0.04);
}

.pds-warning-bar {
    border-color: rgba(171, 57, 48, 0.12);
    background: linear-gradient(180deg, rgba(255, 250, 249, 0.98), rgba(251, 241, 239, 0.96));
    border-left: 4px solid #b73d32;
}

.pds-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
    flex: 0 0 auto;
}

.pds-warning-bar .pds-info-icon {
    background: rgba(183, 61, 50, 0.10);
    color: #b73d32;
}

.pds-info-copy {
    min-width: 0;
}

.pds-info-copy strong,
.pds-document-note-title {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pds-info-copy strong {
    color: #8f261f;
}

.pds-document-note-title {
    color: var(--primary);
}

.pds-info-copy span,
.pds-document-note p {
    margin: 0;
    color: #5e6f82;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 700;
}

.pds-form-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 300px;
    gap: 16px;
    margin: 16px 18px 14px;
    align-items: stretch;
}

.pds-document-actions {
    margin: 16px 18px 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 76, 129, 0.14);
    background: linear-gradient(135deg, rgba(233, 241, 249, 0.96), rgba(255, 255, 255, 0.98));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 14px 30px rgba(15, 35, 60, 0.05);
}

.pds-document-actions-title {
    color: var(--primary);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pds-document-actions-copy p {
    margin: 6px 0 0;
    color: #5f7184;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.pds-document-actions-buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pds-form-intro-main {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(25, 52, 84, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
    box-shadow: 0 14px 32px rgba(15, 35, 60, 0.04);
}

.pds-intro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(25, 52, 84, 0.10);
}

.pds-intro-title {
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}

.pds-intro-caption {
    margin-top: 4px;
    color: #6c7d8f;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 700;
}

.pds-csc-note {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--danger-text);
}

.pds-intro-note {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.03));
    border: 1px solid rgba(15, 76, 129, 0.08);
    color: #4b5d71;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 800;
}

.pds-intro-note i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(15, 76, 129, 0.10);
    color: var(--primary);
    flex: 0 0 auto;
}

.pds-photo-box {
    border: 1px dashed rgba(15, 76, 129, 0.22);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 246, 251, 0.96));
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pds-photo-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
}

.pds-photo-box-title {
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0;
}

.pds-photo-box p {
    margin: 0;
    color: #617487;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 700;
}

.pds-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pds-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.pds-upload-button:hover {
    background: rgba(15, 76, 129, 0.12);
}

.pds-upload-preview {
    width: 100%;
    min-height: 90px;
    border-radius: 14px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.pds-upload-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #fff;
}

.pds-photo-preview {
    min-height: 120px;
}

.pds-upload-box {
    gap: 10px;
    padding: 14px;
    min-height: 180px;
    align-content: start;
}

.pds-upload-error {
    color: var(--danger-text);
    font-size: 12px;
    font-weight: 800;
    padding: 12px;
}

.pds-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 18px 12px;
    background: linear-gradient(180deg, rgba(242, 246, 250, 0.96), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(25, 52, 84, 0.08);
    border-bottom: 1px solid rgba(25, 52, 84, 0.08);
    align-items: start;
}

.pds-nav-item {
    appearance: none;
    border: 1px solid rgba(195, 207, 220, 0.72);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
    padding: 14px 16px;
    font-weight: 900;
    font-size: 12px;
    color: #2b3646;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    text-align: left;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(15, 35, 60, 0.035);
}

.pds-nav-item:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.20);
    background: rgba(15, 76, 129, 0.04);
    box-shadow: 0 14px 28px rgba(15, 35, 60, 0.06);
}

.pds-nav-item.active {
    border-color: rgba(15, 76, 129, 0.28);
    background:
        linear-gradient(180deg, rgba(228, 237, 247, 0.98), rgba(246, 249, 252, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(15, 76, 129, 0.10),
        0 12px 28px rgba(15, 35, 60, 0.07);
}

.pds-step-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 1000;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
    flex: 0 0 auto;
    border: 1px solid rgba(15, 76, 129, 0.10);
}

.pds-nav-item.active .pds-step-num {
    background: linear-gradient(135deg, #0f4c81, #195f9e);
    color: #fff;
    border-color: transparent;
}

.pds-step-text strong {
    display: block;
    font-weight: 1000;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text);
}

.pds-step-text span {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.pds-progress {
    grid-column: 1 / -1;
    margin-top: 6px;
    height: 10px;
    border-radius: 999px;
    background: rgba(205, 215, 228, 0.78);
    overflow: hidden;
}

.pds-progress > div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0f4c81, #d29c31);
    transition: width 180ms ease;
}

.pds-alert {
    margin: 14px 18px 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(194, 60, 60, 0.22);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-weight: 900;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pds-alert i { margin-top: 2px; }

.pds-page {
    display: none;
    padding: 22px 18px 2px;
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0.9), rgba(255, 255, 255, 0));
}

.pds-page.active { display: block; }

.form-section {
    margin-bottom: 16px;
    padding: 20px 20px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 252, 255, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(194, 207, 221, 0.92);
    box-shadow:
        0 18px 36px rgba(15, 35, 60, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    position: relative;
}

.form-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #0f4c81, #1a5a8c, #d5a544);
    border-radius: 18px 0 0 18px;
}

.form-section h4 {
    margin: 0 0 14px;
    padding: 0 0 12px 14px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
    color: var(--text);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pds-subsection-title {
    margin: 10px 0 12px;
    color: #566678;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pds-subsection-tight {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.form-group { min-width: 0; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #445468;
}

.form-group label.required::after {
    content: " *";
    color: var(--danger-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 0;
    border-bottom: 2px solid rgba(166, 182, 200, 0.9);
    border-radius: 0;
    background: rgba(255, 255, 255, 0);
    padding: 10px 2px 8px;
    box-shadow: none;
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.form-group textarea {
    min-height: 76px;
    padding-left: 0;
    padding-right: 0;
    background-image: linear-gradient(to bottom, transparent calc(100% - 1px), rgba(166, 182, 200, 0.55) 1px);
    background-size: 100% 38px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
    box-shadow: 0 10px 18px rgba(15, 76, 129, 0.08);
    background: rgba(15, 76, 129, 0.02);
}

.question-group {
    margin: 14px 0;
    padding: 16px;
    background: linear-gradient(180deg, #fff, rgba(250, 252, 255, 0.96));
    border-radius: 16px;
    border: 1px solid rgba(228, 235, 243, 0.95);
}

.radio-group {
    display: flex;
    gap: 14px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.radio-option { display: inline-flex; align-items: center; gap: 8px; }

.dynamic-list { margin-top: 10px; display: grid; gap: 10px; }

.dynamic-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(218, 227, 236, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, rgba(249, 251, 254, 0.96));
}

.dynamic-item select,
.dynamic-item input {
    width: 100%;
    flex: 1 1 200px;
}

.dynamic-item .pds-remove {
    flex: 0 0 auto;
    align-self: stretch;
}

.pds-remove {
    border-color: rgba(194, 60, 60, 0.25);
    color: var(--danger-text);
}

.pds-remove:hover {
    background: rgba(194, 60, 60, 0.08);
    border-color: rgba(194, 60, 60, 0.35);
}

.pds-add {
    margin-top: 10px;
}

.signature-area {
    text-align: center;
    margin-top: 14px;
    padding: 18px;
    background: linear-gradient(180deg, #fff, rgba(249, 251, 254, 0.98));
    border: 1px dashed rgba(110, 124, 143, 0.55);
    border-radius: 18px;
}

.pds-signature-box {
    border: 2px dashed rgba(123, 139, 157, 0.65);
    min-height: 100px;
    background: linear-gradient(180deg, #fff, rgba(246, 248, 251, 0.98));
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.pds-thumbmark-box {
    width: 100%;
}

.pds-signature-placeholder {
    margin: 0;
    color: #8a98a9;
    font-weight: 700;
    font-size: 12px;
}

.pds-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 18px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(25, 52, 84, 0.08);
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -12px 28px rgba(15, 35, 60, 0.06);
}

.pds-actions-left,
.pds-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pds-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.06);
    border: 1px solid rgba(15, 76, 129, 0.12);
    color: var(--text);
    font-weight: 1000;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .pds-header {
        grid-template-columns: 1fr;
    }

    .pds-header-meta {
        grid-template-columns: 1fr 1fr;
    }

    .pds-top-grid,
    .pds-form-intro {
        grid-template-columns: 1fr;
    }

    .pds-document-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .pds-nav { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pds-actions { flex-wrap: wrap; justify-content: stretch; }
    .pds-actions-left,
    .pds-actions-right { width: 100%; }
    .pds-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
    .pds-header {
        padding: 22px 16px 18px;
    }

    .pds-header h1 {
        font-size: 24px;
    }

    .pds-header-meta {
        grid-template-columns: 1fr;
    }

    .pds-top-grid,
    .pds-page,
    .pds-nav,
    .pds-actions {
        padding-left: 14px;
        padding-right: 14px;
    }

    .form-section,
    .pds-form-intro-main,
    .pds-document-note,
    .pds-warning-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pds-nav {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Global status chip casing */
.status-badge,
.status-pill,
.csc-status-pill {
    text-transform: capitalize !important;
}

.nav-link-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(28%) sepia(16%) saturate(1323%) hue-rotate(169deg) brightness(92%) contrast(91%);
    transition: filter 160ms ease;
}

.nav-link:hover .nav-link-icon-img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(88%) saturate(821%) hue-rotate(177deg) brightness(87%) contrast(92%);
}

.nav-link.active .nav-link-icon-img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(88%) saturate(821%) hue-rotate(177deg) brightness(87%) contrast(92%);
}

input[type="email"] {
    background-image: url("../img/icon-email-blue.svg") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 16px 16px !important;
    padding-left: 34px !important;
}

input[type="password"] {
    background-image: url("../img/icon-lock-blue.svg") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 16px 16px !important;
    padding-left: 34px !important;
}

/* Toasts (global success/info/error handling) */
.lto-toast-root{
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100500;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 36px));
    pointer-events: none;
}
.lto-toast{
    pointer-events: auto;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(205, 223, 245, 0.95);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 43, 70, 0.14);
    color: #1f2b3a;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    opacity: 1;
    animation: ltoToastIn 180ms ease-out;
}

@keyframes ltoToastIn{
    from { transform: translateY(-6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.lto-toast-icon{
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.35);
}
.lto-toast--success{
    border-color: rgba(34, 197, 94, 0.35);
    background: #eaffee;
}
.lto-toast--success .lto-toast-icon{ background: rgba(34, 197, 94, 0.14); color: #16a34a; border-color: rgba(34, 197, 94, 0.40); }

.lto-toast--warning{
    border-color: rgba(245, 158, 11, 0.40);
    background: #fff6d7;
}
.lto-toast--warning .lto-toast-icon{ background: rgba(245, 158, 11, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.40); }

.lto-toast--error{
    border-color: rgba(239, 68, 68, 0.40);
    background: #ffe3e6;
}
.lto-toast--error .lto-toast-icon{ background: rgba(239, 68, 68, 0.14); color: #ef4444; border-color: rgba(239, 68, 68, 0.40); }

.lto-toast--info{
    border-color: rgba(37, 99, 235, 0.35);
    background: #dbeeff;
}

.lto-toast-body{
    display: grid;
    gap: 2px;
    min-width: 0;
}
.lto-toast-title{
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.lto-toast--info .lto-toast-title{ color: #2563eb; }
.lto-toast--success .lto-toast-title{ color: #16a34a; }
.lto-toast--error .lto-toast-title{ color: #ef4444; }
.lto-toast--warning .lto-toast-title{ color: #d97706; }

.lto-toast-message{
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    color: rgba(31, 43, 58, 0.72);
}
.lto-toast-actions{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}
.lto-toast-details{
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(160, 188, 224, 0.75);
    background: #ffffff;
}
.lto-toast-details-pre{
    margin: 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;
    font-size: 12px;
    line-height: 1.35;
    color: #294a70;
}
.lto-toast-link{
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
    padding: 6px 6px;
    cursor: pointer;
}
.lto-toast-link:hover{ text-decoration: underline; }
.lto-toast-close{
    border: 0;
    background: transparent;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: rgba(31, 43, 58, 0.55);
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.lto-toast-close:hover{ background: rgba(255,255,255,0.70); color: rgba(31, 43, 58, 0.78); transform: translateY(-1px); }

#loginModal input[type="email"],
#registerModal input[type="email"],
#forgotPasswordModal input[type="email"] {
    background-image: none !important;
    padding-left: 0 !important;
}

/* Global mobile hardening (prevents hidden overflow + cramped actions) */
@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-header > * {
        width: 100%;
        max-width: 100%;
    }

    .form-actions,
    .report-actions,
    .confirm-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn,
    .report-actions .btn,
    .confirm-modal-actions .btn {
        width: 100%;
    }

    .search-input {
        max-width: 100%;
    }

    .main table,
    .main .table,
    .main .data-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main table th,
    .main table td,
    .main .table th,
    .main .table td,
    .main .data-table th,
    .main .data-table td {
        white-space: nowrap;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

#loginModal input[type="password"],
#registerModal input[type="password"],
#forgotPasswordModal input[type="password"] {
    background-image: none !important;
    padding-left: 0 !important;
}

/* Global table controls + pagination consistency */
.dt-toolbar,
.pds-dt-toolbar,
.form-template-dt-toolbar,
.admin-directory .dir-table-tools {
    gap: 8px !important;
    padding: 6px 8px !important;
}

.dt-length,
.dt-search,
.pds-dt-length,
.pds-dt-search,
.form-template-dt-length,
.form-template-dt-search,
.admin-directory .dir-page-size,
.admin-directory .dir-table-search {
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #123f6b !important;
}

.dt-length select,
.pds-dt-length select,
.form-template-dt-length select,
.admin-directory .dir-page-size select {
    min-width: 62px !important;
    min-height: 28px !important;
    padding: 2px 6px !important;
    border-radius: 0 !important;
    border: 1px solid #b7cce2 !important;
    background: #fff !important;
    color: #123f6b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.dt-search input,
.pds-dt-search input,
.form-template-dt-search input,
.admin-directory .dir-search,
.admin-directory .dir-table-search .dir-search {
    height: 28px !important;
    min-width: 230px !important;
    padding: 2px 8px !important;
    border-radius: 0 !important;
    border: 1px solid #b7cce2 !important;
    background: #fff !important;
    font-size: 12px !important;
}

.log-pagination,
.form-template-pagination-shell,
.admin-directory .dir-table-foot {
    margin-top: 6px !important;
    gap: 8px !important;
}

.pagination-meta,
.form-template-pagination-meta,
.admin-directory .dir-page-info {
    color: #6884a3 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.pds-template-pagination,
.form-template-pagination,
.admin-directory .dir-pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1px solid #c7d3e1 !important;
    background: #eef3f8 !important;
}

.pds-page-link,
.form-template-page-link,
.admin-directory .dir-page-btn {
    min-width: 66px !important;
    height: 30px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-right: 1px solid #c7d3e1 !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    background: #eef3f8 !important;
    color: #4f6f92 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.pds-page-link.is-active,
.form-template-page-link.is-active,
.admin-directory .dir-page-btn.is-active {
    background: #1f4f8a !important;
    color: #fff !important;
    border-right-color: #1f4f8a !important;
}

.pds-template-pagination .pds-page-link:first-child,
.pds-template-pagination .pds-page-link:last-child,
.form-template-pagination .form-template-page-link:first-child,
.form-template-pagination .form-template-page-link:last-child,
.admin-directory .dir-pagination .dir-page-btn:first-child,
.admin-directory .dir-pagination .dir-page-btn:last-child {
    color: #9aacbf !important;
}

.pds-page-link.is-disabled,
.form-template-page-link.is-disabled,
.admin-directory .dir-page-btn:disabled {
    opacity: .7 !important;
}

.admin-directory .dir-page-btn.is-active:disabled {
    opacity: 1 !important;
    background: #1f4f8a !important;
    color: #fff !important;
    border-right-color: #1f4f8a !important;
}

.pds-page-ellipsis,
.admin-directory .dir-page-ellipsis {
    min-width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid #c7d3e1 !important;
    background: #eef3f8 !important;
    color: #7b92ab !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.pds-template-pagination .pds-page-link:last-child,
.pds-template-pagination .pds-page-ellipsis:last-child,
.form-template-pagination .form-template-page-link:last-child,
.admin-directory .dir-pagination .dir-page-btn:last-child,
.admin-directory .dir-pagination .dir-page-ellipsis:last-child {
    border-right: 0 !important;
}

.announcement-flash {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

.announcement-flash--success {
    background: #e9f7ee;
    color: #1f7a4c;
    border: 1px solid #bde5cc;
}

.announcement-flash--error {
    background: #fdeeee;
    color: #a83333;
    border: 1px solid #f4c9c9;
}

.announcement-compose {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

.announcement-compose h4 {
    margin: 0 0 12px;
}

.announcement-compose-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-list {
    display: grid;
    gap: 12px;
}

.announcement-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
}

.announcement-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.announcement-item-head h4 {
    margin: 0;
}

.announcement-audience {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eef4ff;
    color: #2a5cad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.announcement-item p {
    margin: 0;
    color: #304a63;
    line-height: 1.6;
}

.announcement-item-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b8099;
    font-size: 12px;
    font-weight: 700;
}

.notification-center-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-page-links {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c7d3e1;
    background: #eef3f8;
}

.notification-page-link {
    min-width: 76px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #c7d3e1;
    color: #4f6f92;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    padding: 0 10px;
}

.notification-page-link:last-child {
    border-right: 0;
}

.notification-page-link.is-active {
    background: #1f4f8a;
    color: #fff;
}

.notification-page-link.is-disabled {
    color: #9aacbf;
    pointer-events: none;
}

/* Admin announcements redesign */
.ann-admin-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98)),
        linear-gradient(135deg, rgba(11,44,94,0.04), rgba(11,44,94,0));
    border: 1px solid #cfdced;
    border-radius: 0;
    box-shadow:
        0 20px 44px rgba(11, 33, 74, 0.08),
        0 1px 0 rgba(255,255,255,0.9) inset;
}

.ann-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ann-admin-head h2 {
    margin: 0;
    font-size: clamp(28px, 2vw, 38px);
    line-height: 1.04;
    color: #12264c;
}

.ann-admin-head p {
    margin: 8px 0 0;
    color: #4f617f;
    font-size: 14px;
    font-weight: 600;
}

.ann-admin-create-btn {
    min-height: 48px;
    border-radius: 10px;
    background: linear-gradient(180deg, #0e3275, #0a2861);
    border: 0;
    box-shadow: 0 7px 16px rgba(12, 45, 104, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
}

.ann-admin-create-btn.is-open {
    background: linear-gradient(180deg, #143f8f, #0d2f72);
}

.ann-admin-compose {
    margin-top: 10px;
    margin-bottom: 18px;
    border-radius: 14px;
    border-color: #ccd9ea;
    background: #fff;
}

.ann-admin-banner {
    border-radius: 14px;
    margin-bottom: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background:
        radial-gradient(circle at 80% 22%, rgba(92, 134, 222, 0.38), rgba(92, 134, 222, 0) 40%),
        linear-gradient(130deg, #082660 0%, #072459 55%, #081f4b 100%);
    color: #eef5ff;
}

.ann-admin-banner-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ann-admin-banner-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px solid #e6c05d;
    color: #f3cc6c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.ann-admin-banner-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.05;
}

.ann-admin-banner-copy p {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(232, 241, 255, 0.92);
}

.ann-admin-banner-art {
    flex: 0 0 auto;
}

.ann-admin-banner-card {
    position: relative;
    width: 230px;
    min-height: 96px;
    border-radius: 10px;
    border: 1px solid rgba(109, 148, 224, 0.44);
    background: rgba(240, 246, 255, 0.98);
    box-shadow: 0 10px 22px rgba(6, 26, 70, 0.33);
    padding: 18px 16px 16px 50px;
}

.ann-admin-banner-sound {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #dce8ff;
    color: #3a6fd1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ann-admin-banner-lines {
    display: grid;
    gap: 8px;
}

.ann-admin-banner-lines span {
    height: 6px;
    border-radius: 999px;
    background: #c6d8f8;
}

.ann-admin-banner-lines span:nth-child(1) { width: 90%; }
.ann-admin-banner-lines span:nth-child(2) { width: 84%; }
.ann-admin-banner-lines span:nth-child(3) { width: 65%; }

.ann-admin-banner-check {
    position: absolute;
    right: -18px;
    bottom: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4f80d0, #3e67b6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(233, 240, 255, 0.7);
    font-size: 20px;
}

.ann-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ann-admin-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ann-admin-tab {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid #d5ddeb;
    background: #fff;
    color: #445873;
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
}

.ann-admin-tab:focus,
.ann-admin-tab:focus-visible,
.ann-feed-filter:focus,
.ann-feed-filter:focus-visible {
    outline: none;
    box-shadow: none;
}

.ann-admin-tab.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, #123d8a, #0d2f72);
    color: #fff;
}

.ann-admin-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ann-admin-search {
    min-width: 240px;
    border: 1px solid #d7e0ec;
    background: #fff;
    border-radius: 9px;
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6a7f99;
}

.ann-admin-search input {
    border: 0;
    background: transparent;
    width: 100%;
    color: #304a6a;
}

.ann-admin-search input:focus {
    outline: none;
}

.ann-admin-filter {
    border: 1px solid #d7e0ec;
    border-radius: 9px;
    min-height: 40px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #506683;
    font-weight: 700;
    font-size: 13px;
}

.ann-admin-filter select {
    border: 0;
    background: transparent;
    color: #3b4f68;
    font-weight: 700;
    font-size: 12px;
}

.ann-admin-filter select:focus {
    outline: none;
}

.ann-admin-table-wrap {
    border: 1px solid #cfdbeb;
    border-radius: 0;
    overflow: visible;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
        0 12px 28px rgba(15, 40, 82, 0.05),
        0 1px 0 rgba(255,255,255,0.96) inset;
}

.ann-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.ann-admin-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #5f7592;
    background:
        linear-gradient(180deg, #f9fbfe 0%, #f1f6fc 100%);
    border-bottom: 1px solid #d4e0ee;
    padding: 14px 18px;
}

.ann-admin-table tbody td {
    border-bottom: 1px solid #e6edf5;
    padding: 14px 18px;
    vertical-align: middle;
    background: rgba(255,255,255,0.94);
}

.ann-admin-table tbody tr {
    transition: background-color .18s ease, box-shadow .18s ease;
}

.ann-admin-table tbody tr:hover td {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ann-admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.ann-admin-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.ann-admin-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid transparent;
}

.ann-admin-row-icon--blue { background: #e7efff; color: #3f6fc9; border-color: #d5e2fb; }
.ann-admin-row-icon--violet { background: #efe9ff; color: #6b54cb; border-color: #ddd2fa; }
.ann-admin-row-icon--amber { background: #fff2d9; color: #bb8700; border-color: #f2dfbc; }
.ann-admin-row-icon--green { background: #e5f5eb; color: #2f8c58; border-color: #cde9d8; }
.ann-admin-row-icon--red { background: #fde8ea; color: #cf4c58; border-color: #f6d0d5; }

.ann-admin-title-copy h4 {
    margin: 0;
    font-size: 15px;
    color: #1d3155;
}

.ann-admin-title-copy p {
    margin: 4px 0 0;
    color: #62778f;
    font-size: 13px;
}

.ann-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ann-admin-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ann-admin-status--published {
    background: #e8f7ed;
    color: #288554;
}

.ann-admin-status--published .ann-admin-status-dot {
    background: #2fa35f;
}

.ann-admin-status--draft {
    background: #fff4dc;
    color: #8d6500;
}

.ann-admin-status--draft .ann-admin-status-dot {
    background: #d49a00;
}

.ann-admin-visibility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4d617d;
    font-size: 13px;
    font-weight: 700;
}

.ann-admin-date strong {
    display: block;
    color: #2b4163;
    font-size: 13px;
}

.ann-admin-date span {
    color: #6b7f97;
    font-size: 12px;
    font-weight: 700;
}

.ann-admin-actions {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.ann-admin-actions.is-open {
    z-index: 40;
}

.ann-admin-action-trigger {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d7e0ec;
    background: #fdfefe;
    color: #5f728c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ann-admin-action-trigger:hover,
.ann-admin-actions.is-open .ann-admin-action-trigger {
    border-color: #b8c9df;
    background: #f2f7ff;
    color: #2d4f86;
}

.ann-admin-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 8px;
    border: 1px solid #d7e0ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(17, 48, 86, 0.14);
    display: none;
    z-index: 50;
}

.ann-admin-actions.is-open .ann-admin-action-menu {
    display: grid;
    gap: 4px;
}

.ann-admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d7e0ec;
    background: #fdfefe;
    color: #5f728c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ann-admin-action-menu-item {
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    justify-content: flex-start;
    gap: 10px;
    background: transparent;
    color: #2f4665;
    font-size: 13px;
    font-weight: 700;
}

.ann-admin-action-menu-item i {
    width: 16px;
    text-align: center;
    color: #6d829d;
}

.ann-admin-action-btn:hover {
    border-color: #b8c9df;
    background: #f2f7ff;
    color: #2d4f86;
}

.ann-admin-action-menu-item:hover {
    border-color: transparent;
    background: #f2f7ff;
    color: #2d4f86;
}

.ann-admin-action-menu-item:hover i {
    color: inherit;
}

.ann-admin-action-menu-item--danger {
    color: #b7424d;
}

.ann-admin-action-menu-item--danger:hover {
    background: #fff1f3;
    color: #b42335;
}

.ann-admin-action-menu-item--danger i {
    color: inherit;
}

.ann-admin-empty-row td {
    text-align: center;
    color: #6f8299;
    font-weight: 700;
    padding: 24px 14px;
}

.ann-admin-pagination {
    border: 1px solid #cfdbeb;
    border-top: 0;
    border-radius: 0;
    margin-top: -1px;
    padding: 12px 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    box-shadow: 0 10px 24px rgba(15, 40, 82, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ann-admin-pagination-info {
    color: #60758f;
    font-size: 13px;
    font-weight: 700;
}

.ann-admin-pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ann-admin-page-btn {
    min-width: 32px;
    height: 32px;
    border-radius: 0;
    border: 1px solid #d4deeb;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #5c708a;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ann-admin-page-btn.is-active {
    background: #0d3379;
    border-color: #0d3379;
    color: #fff;
}

.ann-admin-page-btn:disabled {
    opacity: 0.45;
}

.ann-admin-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #536782;
    font-size: 12px;
    font-weight: 800;
}

.ann-admin-page-size select {
    min-height: 32px;
    border: 1px solid #d5dfec;
    border-radius: 0;
    padding: 0 10px;
    color: #4b5f7a;
    font-weight: 700;
}

.ann-admin-view-meta {
    color: #4f6583;
    font-size: 12px;
    font-weight: 700;
}

.ann-compose-actions {
    align-items: center;
}

.ann-modal-actions {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ann-feed-card {
    background:
        radial-gradient(circle at 30% 0%, rgba(91, 138, 219, 0.10), transparent 24%),
        linear-gradient(180deg, #f7fafe 0%, #f3f7fc 100%);
    border: 1px solid #dde6f1;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 44px rgba(14, 43, 89, 0.08);
}

.ann-feed-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.ann-feed-head h2 {
    margin: 0;
    color: #12264c;
    font-size: clamp(34px, 2.8vw, 52px);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.ann-feed-head p {
    margin: 12px 0 0;
    color: #5a7092;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    max-width: 560px;
}

.ann-feed-hero-art {
    position: relative;
    min-width: 230px;
    height: 132px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(232, 240, 252, .92));
}

.ann-feed-hero-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 210, 244, 0.42) 0%, rgba(191, 210, 244, 0.08) 60%, transparent 72%);
}

.ann-feed-hero-art i {
    position: relative;
    z-index: 1;
    font-size: 68px;
    color: rgba(103, 147, 227, 0.38);
}

.ann-feed-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ann-feed-filter {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #d7e2f1;
    background: #fff;
    color: #567093;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 43, 87, 0.04);
}

.ann-feed-filter.is-active {
    background: linear-gradient(180deg, #1d67d7, #1151b6);
    border-color: transparent;
    color: #fff;
}

.ann-feed-list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.ann-feed-item,
.ann-feed-empty {
    min-height: 100%;
}

.ann-feed-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px 22px;
    border: 1px solid #e4ebf5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(14, 43, 89, 0.06);
}

.ann-feed-item-media {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.ann-feed-item-media img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dfe9f5;
}

.ann-feed-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ann-feed-item-icon--for-you {
    background: #e9effd;
    color: #1f63d1;
}

.ann-feed-item-icon--company {
    background: #e6f7ef;
    color: #1aa862;
}

.ann-feed-item-body {
    min-width: 0;
}

.ann-feed-item-head {
    align-items: flex-start;
    margin-bottom: 10px;
}

.ann-feed-item-head h4 {
    margin: 10px 0 0;
    color: #162b52;
    font-size: 18px;
    line-height: 1.3;
}

.ann-feed-item p {
    margin: 0;
    color: #567092;
    font-size: 15px;
    line-height: 1.55;
}

.ann-modal-image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dfe8f4;
    margin: 0 0 16px;
}

.ann-upload-help {
    display: block;
    margin-top: 8px;
    color: #6e85a0;
    font-size: 12px;
    font-weight: 600;
}

.ann-edit-image-meta {
    margin-top: 10px;
    color: #47627f;
    font-size: 12px;
    font-weight: 700;
}

.ann-edit-image-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #3f5a78;
    font-size: 13px;
    font-weight: 700;
}

.ann-feed-item-meta {
    margin-top: 18px;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    color: #7c92ae;
}

.ann-feed-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #435d82;
    font-weight: 800;
}

.ann-feed-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #d9e5f8, #bfd1ec);
    color: #284a7b;
    font-size: 11px;
    font-weight: 900;
}

.ann-feed-author-badge {
    color: #1968d9;
    font-size: 12px;
}

.ann-feed-empty {
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e4ebf5;
}

@media (max-width: 1100px) {
    .ann-admin-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ann-admin-banner-art {
        width: 100%;
    }

    .ann-admin-banner-card {
        width: min(100%, 330px);
    }

    .ann-modal-actions {
        justify-content: flex-start;
    }

    .ann-feed-head {
        flex-direction: column;
    }

    .ann-feed-hero-art {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .ann-admin-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ann-admin-create-btn {
        width: 100%;
        justify-content: center;
    }

    .ann-admin-tools {
        width: 100%;
    }

    .ann-admin-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ann-admin-filter {
        flex: 0 0 auto;
    }

    .ann-admin-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
    }

    .ann-admin-table {
        min-width: 760px;
    }

    .ann-feed-card {
        padding: 18px;
        border-radius: 18px;
    }

    .ann-feed-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .ann-feed-item-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 640px) {
    .ann-admin-banner {
        padding: 14px;
        border-radius: 12px;
    }

    .ann-admin-banner-copy h3 {
        font-size: 22px;
    }

    .ann-admin-banner-copy p {
        font-size: 13px;
    }

    .ann-admin-banner-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .ann-admin-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .ann-admin-filter {
        justify-content: space-between;
    }

    .ann-admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .ann-admin-pagination-controls {
        justify-content: center;
    }
}





.lto-dialog {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 24, 45, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100300;
}

.lto-dialog.is-open {
    display: flex;
}

.lto-dialog-backdrop {
    position: absolute;
    inset: 0;
}

.lto-dialog-panel {
    position: relative;
    width: min(480px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(206, 222, 241, 0.95);
    background:
        radial-gradient(circle at top right, rgba(33, 96, 165, 0.13), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 28px 60px rgba(9, 30, 56, 0.28), 0 12px 24px rgba(9, 30, 56, 0.12);
    overflow: hidden;
}

.lto-dialog-accent {
    height: 5px;
    background: linear-gradient(90deg, #0f4c81 0%, #1b6bc1 56%, #f0a128 100%);
}

.lto-dialog-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 24px 18px;
}

.lto-dialog-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #eaf2ff, #d9e8ff);
    color: #1f5fa7;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.lto-dialog.is-confirm .lto-dialog-icon {
    background: linear-gradient(180deg, #fff3df, #ffe5ba);
    color: #b26a0d;
}

.lto-dialog-copy h4 {
    margin: 0 0 6px;
    color: #143f67;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.lto-dialog-copy p {
    margin: 0;
    color: #557593;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;

/* Hide Quick Actions globally since quick actions removed from markup */
.quick-actions { display: none !important; margin: 0 !important; padding: 0 !important; }

}

.lto-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 24px;
}

.lto-dialog-actions .btn {
    min-width: 124px;
}

@media (max-width: 640px) {
    .lto-dialog-panel {
        border-radius: 20px;
    }

    .lto-dialog-head {
        padding: 20px 18px 16px;
    }

    .lto-dialog-actions {
        padding: 0 18px 18px;
        flex-direction: column-reverse;
    }

    .lto-dialog-actions .btn {
        width: 100%;
    }
}
