@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap");

:root {
    --ink: #17202a;
    --muted: #607080;
    --line: #d9e1ea;
    --paper: #f6f8fb;
    --panel: #ffffff;
    --brand: #0f6b7b;
    --brand-dark: #084c61;
    --accent: #0f6b7b;
    --accent-strong: #0a4f61;
    --copper: #b66b3d;
    --green: #29745b;
    --shadow: 0 24px 70px rgba(20, 38, 56, 0.14);
    /* Tono unico de hover para las tarjetas de apps (portal y Microsoft). */
    --tile-hover: #eef3fb;
    --tile-hover-border: #d6e0f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(15, 107, 123, 0.12), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(182, 107, 61, 0.16), transparent 30%),
        var(--paper);
}

a { color: inherit; text-decoration: none; }

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(101, 139, 222, 0.36), transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(20, 184, 166, 0.22), transparent 36%),
        linear-gradient(140deg, #0a1634 0%, #102349 52%, #0d2143 100%);
}

.login-panel {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 440px);
    width: min(1120px, 100%);
    min-height: 690px;
    background: var(--panel);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(20, 38, 56, 0.18);
    overflow: hidden;
}

/* Páginas de error (400/403/404/500): reutilizan el fondo y la tarjeta del login. */
.error-card {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 48px);
    background: var(--panel);
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(20, 38, 56, 0.18);
    text-align: center;
}

.error-card .eyebrow {
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 0.82rem;
}

.error-code {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(3.4rem, 12vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #0f6b7b, #0f889d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-card h1 {
    margin: 10px 0 0;
    color: var(--ink);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.4rem, 3.4vw, 1.85rem);
    font-weight: 800;
}

.error-message {
    max-width: 42ch;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.error-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 800;
}

.error-primary {
    color: #fff;
    background: linear-gradient(90deg, #0f6b7b, #0f889d);
    box-shadow: 0 12px 26px rgba(15, 107, 123, 0.24);
}

.error-secondary {
    border: 1px solid var(--line);
    color: var(--accent);
    background: #fff;
    box-shadow: 0 12px 28px rgba(30, 42, 76, 0.05);
}

.error-secondary:hover {
    border-color: rgba(15, 107, 123, 0.4);
}

@media (max-width: 560px) {
    .login-shell.error-shell {
        padding: 18px;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-actions a {
        width: 100%;
    }
}

.brand-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(30px, 4vw, 56px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(6, 32, 45, 0.86), rgba(10, 67, 88, 0.72)),
        radial-gradient(circle at 76% 16%, rgba(123, 189, 206, 0.16), transparent 34%),
        url("../img/login-bg-corporativo.1e9040575084.png") center/cover no-repeat;
}

.brand-pane::before {
    content: "";
    position: absolute;
    inset: auto -10% -20% -12%;
    height: 52%;
    background:
        linear-gradient(0deg, rgba(8, 40, 55, 0.7), rgba(8, 40, 55, 0.2)),
        repeating-linear-gradient(55deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 22px);
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: #0ef2c0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-copy {
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

h1, h2, p { margin-top: 0; }

.brand-pane h1 {
    max-width: 460px;
    margin-bottom: 16px;
    font-size: clamp(3rem, 6vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.lead {
    max-width: 440px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
}

.brand-pillars {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-pillars li {
    display: grid;
    gap: 6px;
    align-content: start;
}

.brand-pillars b {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.brand-pillars small {
    color: rgba(220, 235, 242, 0.9);
    font-size: 0.89rem;
    line-height: 1.3;
}

.pillar-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    color: #15e5c0;
}

.pillar-icon::before,
.pillar-icon::after {
    content: "";
    position: absolute;
    display: block;
}

.pillar-apps::before {
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
}

.pillar-shield::before {
    inset: 0;
    width: 18px;
    height: 20px;
    border: 2px solid currentColor;
    clip-path: polygon(50% 0, 100% 22%, 90% 84%, 50% 100%, 10% 84%, 0 22%);
}

.pillar-cloud::before {
    top: 8px;
    width: 20px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 9px;
}

.pillar-cloud::after {
    top: 2px;
    left: 3px;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    background: transparent;
}

.pillar-users::before {
    top: 4px;
    left: 5px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.pillar-users::after {
    top: 14px;
    left: 1px;
    width: 18px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 2px 2px;
}

.brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.brand-group-logo {
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 0.98;
}

.auth-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3vw, 40px);
    background: linear-gradient(130deg, #ffffff 0%, #f8fafd 100%);
}

.auth-locale {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-end;
    min-height: 34px;
    margin-bottom: 22px;
    padding: 0 12px;
    border: 1px solid #dde3ef;
    border-radius: 8px;
    color: #5d677d;
    background: #fff;
}

.auth-locale small {
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-locale i {
    font-style: normal;
    color: #8b95ac;
    font-size: 0.82rem;
}

.auth-header h2 {
    margin-bottom: 8px;
    font-size: 3rem;
    letter-spacing: 0;
}

.auth-header p,
.hero-strip p,
.empty-state p { color: var(--muted); line-height: 1.55; }

.auth-header {
    margin-bottom: 8px;
}

.auth-header .eyebrow {
    color: #617089;
    font-size: 0.94rem;
}

.microsoft-button,
.login-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}

.microsoft-button {
    margin-top: 14px;
    color: #fff;
    background: #243447;
    border-radius: 6px;
}

.ms-grid {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    gap: 3px;
}

.ms-grid i { width: 9px; height: 9px; background: #fff; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.login-form { display: grid; gap: 14px; }

.login-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    border: 0;
    padding: 0 36px;
    color: var(--ink);
    font: inherit;
    background: transparent;
}

.input-wrap {
    position: relative;
    display: block;
    border: 1px solid #d9e1ee;
    border-radius: 6px;
    background: #f9fbfe;
}

.input-wrap:focus-within {
    border-color: #2a8ea1;
    box-shadow: 0 0 0 4px rgba(15, 107, 123, 0.12);
}

.input-icon {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    color: #94a0b8;
    transform: translateY(-50%);
}

.input-icon::before,
.input-icon::after {
    content: "";
    position: absolute;
    display: block;
}

.input-user {
    left: 12px;
}

.input-user::before {
    left: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.input-user::after {
    top: 9px;
    width: 14px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 3px 3px;
}

.input-lock {
    left: 12px;
}

.input-lock::before {
    top: 7px;
    width: 12px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.input-lock::after {
    left: 3px;
    width: 6px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.input-eye {
    right: 12px;
}

.input-eye::before {
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 12px;
}

.input-eye::after {
    top: 2px;
    left: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.login-form button {
    margin-top: 4px;
    color: #fff;
    border-radius: 6px;
    background: linear-gradient(90deg, #0f6b7b, #0f889d);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f5b73;
    font-size: 0.85rem;
    font-weight: 600;
}

.remember-me input {
    width: 16px;
    min-height: 16px;
    padding: 0;
    accent-color: #0f6b7b;
}

.forgot-link {
    color: #0f7f94;
    font-size: 0.84rem;
    font-weight: 700;
}

.secure-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 22px 0 0;
    color: #7a879d;
    font-size: 0.82rem;
    font-weight: 600;
}

.message,
.form-errors {
    padding: 12px 14px;
    color: #7f1d1d;
    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.news-detail-page {
    margin: 0;
    min-height: 100vh;
    color: #1c2440;
    font-family: "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(15, 107, 123, 0.1), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(182, 107, 61, 0.14), transparent 30%),
        #f7f8fc;
}

.news-detail-main {
    padding: clamp(18px, 3vw, 36px);
}

.news-detail-card {
    width: 100%;
    margin: 0;
    padding: clamp(18px, 2.8vw, 30px);
    border: 1px solid #e3e9f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(30, 42, 76, 0.08);
}

.news-detail-eyebrow {
    margin-bottom: 8px;
    color: var(--news-label-color, #0f6b7b);
}

.news-detail-title {
    margin: 0 0 10px;
    color: #1b2440;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.08;
}

.news-detail-summary {
    margin: 0 0 14px;
    color: #5b6783;
    font-size: 1.06rem;
    line-height: 1.45;
}

.news-detail-date {
    display: block;
    margin-bottom: 18px;
    color: #73809a;
}

.news-detail-image {
    width: 100%;
    max-height: 460px;
    border: 1px solid #e6ebf4;
    border-radius: 12px;
    object-fit: cover;
}

.news-detail-body {
    margin-top: 18px;
    color: #2b3755;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Contenido cargado con el editor enriquecido del admin. */
.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }

.rich-text p {
    margin: 0 0 12px;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 22px 0 8px;
    color: #1a2c51;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 1.25;
}

.rich-text h2 { font-size: 1.24rem; }
.rich-text h3 { font-size: 1.08rem; }
.rich-text h4 { font-size: 0.98rem; }

.rich-text ul,
.rich-text ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.rich-text li {
    margin-bottom: 6px;
}

.rich-text a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text blockquote {
    margin: 16px 0;
    padding: 10px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: #f4f8fb;
    color: #40506e;
}

.rich-text hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.rich-text table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.rich-text th,
.rich-text td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
}

.rich-text th {
    background: #f4f8fb;
    font-weight: 700;
}

.rich-text code {
    padding: 1px 5px;
    border-radius: 5px;
    background: #eef2f8;
    font-size: 0.9em;
}

.rich-text pre {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef2f8;
    overflow-x: auto;
}

.news-detail-actions {
    margin-top: 24px;
}

.news-detail-layout {
    align-items: start;
}

.news-detail-layout .main-column {
    min-width: 0;
}

.news-detail-header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.portal-shell {
    --desktop-sidebar-width: 228px;
    display: grid;
    grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr);
    color: #1c2440;
    background: #f7f8fc;
    position: relative;
}

.mobile-nav-toggle {
    display: none;
}

.sidebar-close-button {
    display: none;
}

.portal-shell .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 12px 8px 14px;
    color: #d9e4ff;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 70% 8%, rgba(77, 101, 185, 0.28), transparent 42%),
        linear-gradient(180deg, #070f24 0%, #0a1735 52%, #0b1a3b 100%);
    box-shadow: 18px 0 40px rgba(7, 18, 42, 0.16);
}

.portal-shell .portal-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -12px -8px 12px;
    min-height: 70px;
    padding: 12px 12px 10px;
    border-bottom: 0;
    background: transparent;
}

.sidebar-group-logo {
    display: block;
    width: min(100%, 186px);
    height: auto;
    object-fit: contain;
}

.portal-shell .portal-logo strong {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.portal-shell .logo-cube {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    font-size: 0.76rem;
    font-weight: 800;
}

.side-nav {
    display: grid;
    gap: 6px;
    padding: 0 6px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(221, 230, 255, 0.88);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
}

.side-nav a span {
    display: grid;
    place-items: center;
    width: 20px;
    color: #aebce2;
    font-size: 1rem;
}

.nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 18px;
    height: 20px;
}

.home-icon::before,
.home-icon::after,
.news-icon::before,
.apps-icon::before,
.fav-icon::before,
.support-icon::before,
.support-icon::after,
.admin-icon::before {
    content: "";
    display: block;
}

.home-icon::before {
    width: 14px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
    transform: translateY(4px);
}

.home-icon::after {
    position: absolute;
    top: 2px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.apps-icon::before {
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 10px 0 currentColor, 0 10px currentColor, 10px 10px currentColor;
    transform: translate(-5px, -5px);
}

.fav-icon::before {
    width: 17px;
    height: 17px;
    background: currentColor;
    clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.support-icon::before {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background: currentColor;
    mask: url("../img/icon-support.071e83caf0d9.svg") center/contain no-repeat;
    -webkit-mask: url("../img/icon-support.071e83caf0d9.svg") center/contain no-repeat;
}

.support-icon::after {
    content: none;
}

.news-icon::before {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("../img/icon-news.42cf9419fdf9.svg") center/contain no-repeat;
    -webkit-mask: url("../img/icon-news.42cf9419fdf9.svg") center/contain no-repeat;
}

.reports-icon::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("../img/icon-reports.0bea570bb365.svg") center/contain no-repeat;
    -webkit-mask: url("../img/icon-reports.0bea570bb365.svg") center/contain no-repeat;
}

.admin-icon::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow:
        0 -8px 0 -6px currentColor,
        0 8px 0 -6px currentColor,
        8px 0 0 -6px currentColor,
        -8px 0 0 -6px currentColor,
        6px 6px 0 -6px currentColor,
        -6px 6px 0 -6px currentColor,
        6px -6px 0 -6px currentColor,
        -6px -6px 0 -6px currentColor;
}

.admin-nav-item {
    justify-content: flex-start;
}

.copilot-icon::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url("../img/icon-copilot.571e7b687403.svg") center/contain no-repeat;
}

.copilot-nav-item {
    position: relative;
    border: 1px solid rgba(160, 190, 255, 0.24);
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.18));
}

.copilot-nav-tag {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.58rem !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    width: auto !important;
}

.side-nav a.copilot-nav-item:hover {
    color: #fff;
    border-color: rgba(180, 200, 255, 0.45);
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.42), rgba(37, 99, 235, 0.36));
    box-shadow: 0 10px 22px rgba(60, 60, 160, 0.34);
}

.side-nav a.active,
.side-nav a:hover {
    color: #fff;
    background: linear-gradient(120deg, #0e7f95, #0d6d86);
    box-shadow: 0 10px 20px rgba(6, 102, 126, 0.34);
}

.sidebar-footer {
    margin-top: 12px;
    padding: 0 8px 10px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.sidebar-account {
    order: 2;
    display: grid;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(166, 182, 220, 0.22);
}

.sidebar-account .user-chip {
    width: 100%;
    min-height: 48px;
    border-color: rgba(145, 166, 219, 0.25);
    background: rgba(17, 35, 73, 0.62);
    position: relative;
    padding-right: 26px;
}

.sidebar-account .user-chip::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #a3b8e6;
    border-bottom: 2px solid #a3b8e6;
    transform: translateY(-50%) rotate(-45deg);
}

.sidebar-account .user-meta strong {
    color: #ecf3ff;
}

.sidebar-account .user-meta small {
    color: #b8c7ea;
}

.sidebar-account .logout-button {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    border-color: rgba(139, 168, 230, 0.2);
    color: #ff6f93;
    background: rgba(18, 35, 72, 0.5);
}

.sidebar-account .logout-button::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 1px;
    background: currentColor;
    mask: url("../img/icon-logout.ab5bcd8fb360.svg") center/contain no-repeat;
    -webkit-mask: url("../img/icon-logout.ab5bcd8fb360.svg") center/contain no-repeat;
}

.status-card {
    order: 1;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    margin-bottom: 14px;
    padding: 10px 2px 0;
    border-top: 1px solid rgba(164, 183, 224, 0.2);
    border-radius: 0;
    background: transparent;
}

.status-app-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    margin-top: 8px;
    border: 1px solid rgba(146, 169, 218, 0.24);
    border-radius: 12px;
    background: rgba(15, 31, 67, 0.38);
    overflow: hidden;
}

.status-app-item {
    padding: 12px 30px 12px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    gap: 3px;
    position: relative;
}

.status-app-item + .status-app-item {
    border-top: 1px solid rgba(146, 169, 218, 0.24);
}

.status-app-item::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #9fb5e2;
    border-bottom: 2px solid #9fb5e2;
    transform: translateY(-50%) rotate(-45deg);
}

.status-app-item strong {
    color: #f2f5ff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.status-app-item small {
    color: #b9caec;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.35;
}

.status-detail-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-detail-line::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 8px;
}

.status-app-item.status-app-operational small {
    color: #72e4bb;
}

.status-app-item.status-app-maintenance small {
    color: #9ed6ff;
}

.status-app-item.status-app-degraded small {
    color: #ffd47a;
}

.status-app-item.status-app-outage small {
    color: #ff9cab;
}

.status-app-empty {
    margin: 0;
    padding: 8px 9px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    color: #b9caec;
    font-size: 0.7rem;
    line-height: 1.3;
}

.status-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #44d0aa;
    background: rgba(44, 222, 170, 0.14);
    position: relative;
}

.status-icon::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 8px;
    width: 12px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 7px 7px 5px 5px;
    clip-path: polygon(50% 0, 100% 18%, 100% 66%, 50% 100%, 0 66%, 0 18%);
}

.status-copy {
    display: grid;
    gap: 2px;
}

.status-copy strong {
    color: #e7eeff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-copy small {
    color: #58d69f;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

.status-card.status-operational .status-icon {
    color: #44d0aa;
    background: rgba(52, 209, 157, 0.16);
}

.status-card.status-operational .status-copy small {
    color: #58d69f;
}

.status-card.status-degraded .status-icon {
    color: #e8ad31;
    background: rgba(232, 173, 49, 0.16);
}

.status-card.status-degraded .status-copy small {
    color: #efc061;
}

.status-card.status-maintenance .status-icon {
    color: #5db0f0;
    background: rgba(93, 176, 240, 0.16);
}

.status-card.status-maintenance .status-copy small {
    color: #7ec1f5;
}

.status-card.status-outage .status-icon {
    color: #ff7f8e;
    background: rgba(255, 127, 142, 0.16);
}

.status-card.status-outage .status-copy small {
    color: #ff9cab;
}

.status-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #a4b5de;
    border-right: 2px solid #a4b5de;
    transform: rotate(45deg);
}

.quality-total-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #c8d6e8;
    border-radius: 999px;
    color: #1f3554;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #ffffff;
    transition: all 0.18s ease;
}

.portal-page-footer {
    margin: 8px clamp(18px, 2.5vw, 32px) 24px;
    padding: 0;
    border-top: 0;
}

.search-empty {
    margin: 14px 0 0;
    color: #5f6f8d;
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.footer-links .quality-total-link {
    margin-top: 0;
}

.quality-total-link:hover {
    color: #0f6b7b;
    border-color: #8fb6d1;
    background: #f2f7fd;
}

.workspace {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 18px;
    min-height: 84px;
    padding: 0 clamp(24px, 3vw, 32px);
    border-bottom: 1px solid #e8ebf3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.portal-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 420px);
    min-height: 42px;
    margin: 0 auto;
    padding: 0 14px;
    border: 1px solid #dfe3ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 43, 74, 0.04);
}

.portal-search span { color: #1f2a44; font-size: 1.2rem; }

.portal-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #1f2a44;
    font: inherit;
    font-size: 0.86rem;
    background: transparent;
}

.hero-greeting {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
}

.hero-greeting-desktop {
    margin: 0;
    min-width: 0;
}

.hero-greeting h1 {
    margin: 0;
    color: #1d2a47;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-greeting p {
    margin: 0;
    color: #6b748b;
    font-size: clamp(0.74rem, 0.95vw, 0.9rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.avatar-card {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 3px solid #eef1f8;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #334155, #0f172a);
    font-weight: 900;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 4px 10px 4px 4px;
    border: 1px solid #dfe5f1;
    border-radius: 999px;
    background: #ffffff;
}

.user-meta {
    display: grid;
    flex: 1 1 auto;
    width: 0;
    gap: 2px;
    min-width: 0;
}

.user-meta strong,
.user-meta small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta strong {
    color: #1f2a44;
    font-size: 0.7rem;
    line-height: 1.2;
}

.user-meta small {
    color: #6b748b;
    font-size: 0.62rem;
    line-height: 1.2;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d3deeb;
    border-radius: 999px;
    color: #0f6b7b;
    background: #f7fbff;
    font-size: 0.68rem;
    font-weight: 800;
}

.logout-button:hover {
    border-color: #b9ccde;
    background: #edf5fb;
}

.last-login-note {
    display: block;
    margin: -2px 4px 0;
    color: rgba(219, 232, 255, 0.72);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    flex: 1 0 auto;
    padding: 24px clamp(18px, 2.5vw, 32px) 34px;
}

.hero-strip {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #132953;
    box-shadow: 0 22px 48px rgba(9, 72, 97, 0.24);
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: clamp(180px, 24vw, 320px);
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    background: #0d2347;
}

.hero-copy { position: relative; z-index: 2; }

.tile-mark {
    display: grid;
    grid-template-columns: repeat(2, 20px);
    gap: 6px;
    width: 46px;
    margin-bottom: 30px;
}

.tile-mark i {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.84);
}

.hero-strip h2 {
    margin-bottom: 18px;
    max-width: 520px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-strip p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 185px;
}

.preview-side {
    position: absolute;
    left: 18px;
    display: grid;
    gap: 15px;
    width: 104px;
    height: 184px;
    padding: 36px 16px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.preview-side span,
.preview-window span {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.preview-window {
    position: relative;
    width: min(270px, 100%);
    min-height: 182px;
    margin-left: 70px;
    padding: 24px 26px;
    border: 8px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 50px rgba(12, 59, 96, 0.2);
}

.preview-window b,
.preview-window span {
    display: block;
    background: #d5e6f8;
}

.preview-window b {
    width: 34px;
    height: 8px;
    margin-bottom: 28px;
    border-radius: 999px;
}

.preview-window span {
    height: 11px;
    margin-bottom: 15px;
    border-radius: 999px;
}

.preview-window div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.preview-window i {
    height: 58px;
    border-radius: 8px;
    background: #eaf3fb;
}

.preview-window i:nth-child(2) { background: #dff7e9; }

.app-section { margin-top: 24px; }

.news-feed-section {
    margin-top: 24px;
}

.news-feed-grid {
    display: grid;
    gap: 14px;
}

.news-feed-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 180px;
    align-items: start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e7eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
}

.news-feed-copy {
    display: grid;
    gap: 6px;
}

.news-feed-copy strong {
    color: #1b2440;
    font-size: 0.95rem;
}

.news-feed-copy p {
    margin: 0;
    color: #5c6883;
    font-size: 0.86rem;
    line-height: 1.45;
}

.news-feed-copy small {
    color: #71809a;
    font-size: 0.76rem;
    line-height: 1.3;
}

.news-feed-body {
    color: #314060;
    font-size: 0.84rem;
    line-height: 1.45;
}

.news-feed-image {
    width: 100%;
    height: 118px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f3;
}

.section-heading,
.mini-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.collapsible-heading {
    margin-bottom: 12px;
}

.collapsible-heading-trigger {
    cursor: pointer;
}

.collapsible-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8fbff, #e9f3ff);
    box-shadow: 0 6px 14px rgba(33, 81, 140, 0.12);
    cursor: pointer;
    position: relative;
}

.collapsible-toggle::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #36567f;
    border-bottom: 2px solid #36567f;
    transform: rotate(45deg);
    transition: transform 140ms ease;
}

.collapsible-card.is-collapsed .collapsible-toggle::before {
    transform: rotate(-135deg);
    top: 13px;
}

.collapsible-card.is-collapsed .collapsible-content {
    display: none;
}

@media (min-width: 761px) {
    .collapsible-toggle {
        display: none;
    }

    .collapsible-heading-trigger {
        cursor: default;
    }

    .collapsible-card .collapsible-content {
        display: block !important;
    }
}

.collapsible-footer-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section-heading h2,
.mini-heading h2,
.side-card h2 {
    margin: 0;
    color: #19223d;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.section-heading a,
.mini-heading a {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(124px, 1fr));
    gap: 18px;
}

.app-search-scope {
    display: grid;
    gap: 16px;
}

.app-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 160px;
    padding: 16px;
    border: 1px solid #e7eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 107, 123, 0.3);
    box-shadow: 0 22px 48px rgba(30, 42, 76, 0.12);
}

.app-card-link {
    display: grid;
    align-content: start;
    min-height: 128px;
}

.app-card > form {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.app-card > form .favorite {
    pointer-events: auto;
}

.favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
}

.favorite::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: #9aa4b8;
    clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.favorite.is-active::before,
.favorite:hover::before {
    background: var(--accent);
}

.app-ai-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    box-shadow: 0 6px 14px rgba(80, 60, 200, 0.28);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    pointer-events: none;
}

.app-card.has-ai .favorite {
    right: 54px;
}

.app-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--accent, #0f6b7b);
    background: #ffffff;
    font-size: 1.05rem;
    font-weight: 950;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-meta {
    display: grid;
    gap: 7px;
}

.app-meta strong {
    color: #1a2340;
    font-size: 0.95rem;
}

.app-meta em {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    color: #6e7890;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-menu {
    justify-self: end;
    margin-top: 12px;
    color: #73809a;
    width: 20px;
    height: 6px;
}

.card-menu::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 7px 0 currentColor, 14px 0 currentColor;
}

.featured-card {
    min-height: 228px;
    padding: 14px 20px 20px;
    border-radius: 14px;
    border: 1px solid #e1e8f5;
    background:
        url("../img/featured-card-bg.4138907475d1.svg") center/cover no-repeat,
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
}

.featured-card-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 18px;
    row-gap: 10px;
    min-height: 174px;
}

.featured-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 10px;
    color: #15708b;
    background: linear-gradient(140deg, #e8f6fb 0%, #eef7ff 100%);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 2;
}

.featured-badge::before {
    content: "✧";
    font-size: 0.86rem;
}

.featured-icon {
    width: 118px;
    height: 118px;
    margin-bottom: 0;
    border-radius: 24px;
    grid-column: 1;
    grid-row: 1 / span 3;
    z-index: 2;
}

.featured-meta {
    grid-column: 2;
    grid-row: 2;
    gap: 10px;
    z-index: 2;
}

.featured-meta strong {
    color: #1d2f57;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.featured-meta em {
    min-height: 0;
    max-width: 520px;
    color: #425880;
    font-size: 1.02rem;
    line-height: 1.48;
    -webkit-line-clamp: 3;
}

.featured-visual {
    display: none;
}

.featured-footer {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7edf8;
    z-index: 2;
}

.featured-type-tag {
    flex: 0 1 auto;
    max-width: calc(100% - 220px);
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(120deg, var(--accent, #0f6b7b), #0f83a8);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    z-index: 3;
}

.featured-cta::after {
    content: "\2192";
    margin-left: 10px;
    font-size: 1rem;
}

.compact-grid .compact-card {
    display: grid;
    align-content: stretch;
    min-height: 140px;
    height: 100%;
    padding: 14px;
    border: 1px solid #e4e9f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(24, 42, 74, 0.07);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.compact-grid .compact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 107, 123, 0.3);
    box-shadow: 0 22px 48px rgba(30, 42, 76, 0.12);
}

.compact-grid .app-card-link {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
    min-height: 112px;
    height: 100%;
}

.compact-grid .app-meta {
    align-content: start;
    min-height: 0;
}

.compact-grid .app-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 13px;
}

.compact-grid .app-meta strong {
    color: #1d2f57;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.compact-grid .app-meta em {
    margin-top: 6px;
    color: #5f6f8c;
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
}

.compact-grid .favorite {
    top: 14px;
    right: 14px;
}

.compact-footer {
    display: flex;
    align-items: center;
    align-self: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2fa;
}

.compact-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: calc(100% - 38px);
    padding: 0 10px;
    border-radius: 9px;
    color: #2f5e95;
    background: #eef4ff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-tag::before {
    content: "•";
    margin-right: 6px;
    color: #3b82f6;
}

.compact-grid .card-menu {
    margin-top: 0;
}

.compact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 4px;
}

.compact-heading h2 {
    margin: 0;
    color: #1a2c51;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.compact-heading a {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 900;
}

.apps-panel {
    display: grid;
    gap: 12px;
    padding: 16px 18px 14px;
    border: 1px solid #e3e8f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
}

.apps-panel-heading h2 {
    margin: 0;
    color: #1a2c51;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
}

.app-tile-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(74px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.app-tile {
    display: grid;
    align-content: start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

.app-tile:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.app-tile .app-card-link {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 5px;
    min-height: 94px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    text-align: center;
    transition: background 150ms ease, transform 150ms ease;
}

.app-tile .app-card-link:hover {
    transform: translateY(-2px);
    background: var(--tile-hover);
}

.app-tile .app-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-radius: 12px;
    font-size: 1rem;
    transition: background 150ms ease, border-color 150ms ease;
}

.app-tile .app-card-link:hover .app-icon {
    border-color: var(--tile-hover-border);
    background: var(--tile-hover);
}

.app-tile .app-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.app-tile strong,
.app-tile small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-tile strong {
    color: #1a2340;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.app-tile small {
    display: -webkit-box;
    min-height: 24px;
    color: #5f6b82;
    font-size: 0.66rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-tile .favorite {
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 150ms ease;
}

.app-tile:hover .favorite,
.app-tile .favorite.is-active,
.app-tile .favorite:focus-visible {
    opacity: 1;
}

.app-tile .favorite::before {
    width: 13px;
    height: 13px;
}

.app-tile .app-ai-badge {
    top: 4px;
    left: 4px;
    right: auto;
    min-width: 0;
    padding: 2px 6px;
    font-size: 0.55rem;
}

.app-tile.has-ai .favorite {
    right: 4px;
}

.microsoft365-section {
    display: grid;
    gap: 12px;
    padding: 16px 18px 12px;
    border: 1px solid #e3e8f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
}

.microsoft365-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.microsoft365-heading h2 {
    margin: 0;
    color: #19223d;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.microsoft365-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(74px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.microsoft365-app {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 5px;
    min-height: 94px;
    padding: 8px 6px 6px;
    border-radius: 10px;
    color: #1d2f57;
    text-align: center;
    transition: background 150ms ease, transform 150ms ease;
}

.microsoft365-app:hover {
    transform: translateY(-2px);
    background: var(--tile-hover);
}

.microsoft365-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #1d2f57;
    background: #ffffff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    transition: background 150ms ease, border-color 150ms ease;
}

.microsoft365-app:hover .microsoft365-icon {
    border-color: var(--tile-hover-border);
    background: var(--tile-hover);
}

.microsoft365-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.microsoft365-app strong,
.microsoft365-app small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.microsoft365-app strong {
    color: #1a2340;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.microsoft365-app small {
    display: -webkit-box;
    min-height: 24px;
    color: #5f6b82;
    font-size: 0.66rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.microsoft365-all-link {
    justify-self: end;
    color: #0e86a7;
    font-size: 0.78rem;
    font-weight: 900;
}

.microsoft365-all-link::after {
    content: "\2192";
    margin-left: 7px;
}

@media (min-width: 761px) {
    .compact-grid {
        grid-template-columns: repeat(4, minmax(124px, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 1180px) and (min-width: 761px) {
    .microsoft365-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.explore-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    min-height: 42px;
    margin: 22px auto 0;
    padding: 0 24px;
    border: 1px solid #e5e8f2;
    border-radius: 10px;
    color: var(--accent);
    background: #fff;
    box-shadow: 0 12px 28px rgba(30, 42, 76, 0.05);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-card {
    padding: 20px;
    border: 1px solid #e8ebf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
}

.news-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px 12px;
    border-radius: 14px;
}

.news-card .mini-heading {
    margin-bottom: 2px;
}

.news-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e8edf7;
    border-left: 4px solid var(--item-color, #6d3df2);
    padding-left: 12px;
}

.news-card-header {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.news-header-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #1082a3;
    background: #eef7ff;
}

.news-header-icon::before {
    content: "";
    width: 19px;
    height: 19px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231082a3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4'/%3E%3Cpath d='M4 10l9-4v12l-9-4'/%3E%3Cpath d='M13 9h2a4 4 0 0 1 0 8h-2'/%3E%3Cpath d='M19 8l2-2'/%3E%3Cpath d='M19 16l2 2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-header-copy {
    display: grid;
    gap: 3px;
}

.news-header-copy small {
    color: #6f7f99;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.28;
}

.news-item-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 9px;
    color: var(--news-label-color, #4f46e5);
    background: color-mix(in srgb, var(--news-label-color, #4f46e5) 14%, #fff);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-item strong {
    color: #1f2e52;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.news-item small {
    grid-column: 1;
    margin: 0;
    color: #607492;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-date {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a8aa5;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-date-icon {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.news-date-icon::before,
.news-date-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

.news-date-icon::before {
    left: 3px;
}

.news-date-icon::after {
    right: 3px;
}

.news-arrow {
    width: 13px;
    height: 13px;
    color: var(--item-color, #6d3df2);
}

.news-arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.news-footer-link {
    display: grid;
    grid-template-columns: 18px 1fr 14px;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    min-height: 38px;
    padding-top: 8px;
    border-top: 1px solid #e8edf7;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 800;
}

.news-footer-icon,
.news-footer-arrow {
    width: 13px;
    height: 13px;
    color: #0e86a7;
}

.news-footer-icon::before {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e86a7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-footer-arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.quick-card {
    display: grid;
    gap: 10px;
}

.quick-card .collapsible-heading,
.category-card .collapsible-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid #e8edf7;
}

.quick-card h2 { margin-bottom: 6px; }

.quick-card a {
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    color: #25304d;
    background: #fbfcff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}

.quick-card a span {
    position: relative;
    width: 18px;
    height: 18px;
    color: var(--item-color, #0f6b7b);
}

.quick-card a span::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.quick-card a .quick-emoji {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #25304d;
    background: color-mix(in srgb, var(--item-color, #0f6b7b) 14%, #fff);
    font-size: 0.95rem;
    line-height: 1;
}

.quick-card a .quick-emoji::before {
    content: none;
}

.quick-card a b {
    position: relative;
    width: 12px;
    height: 12px;
    color: #7b8498;
}

.quick-card a b::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.side-empty {
    margin: 0;
    color: #6e7890;
    font-size: 0.86rem;
    line-height: 1.5;
}

.panel-empty {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 16px;
    border: 1px dashed #dbe4f2;
    border-radius: 10px;
    color: #71809b;
    background: #fbfcff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.news-card .news-empty {
    grid-column: 1 / -1;
}

.quick-card .quick-empty {
    min-height: 128px;
}

.portal-messages {
    padding: 16px clamp(18px, 2.5vw, 32px) 0;
}

.portal-messages .message {
    margin: 0;
    border-radius: 10px;
}

.portal-messages .success {
    color: #14532d;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.support-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    justify-content: stretch;
}

.support-page {
    display: grid;
    gap: 18px;
}

.soon-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 44px 32px 40px;
    border: 1px solid #e3e8f2;
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(124, 58, 237, 0.09) 0%, rgba(124, 58, 237, 0) 62%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 22px 48px rgba(30, 42, 76, 0.08);
    text-align: center;
}

.soon-art {
    width: min(320px, 80%);
}

.soon-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.soon-gear {
    transform-box: fill-box;
    transform-origin: center;
    animation: soon-spin 9s linear infinite;
}

.soon-gear-b {
    animation-duration: 6s;
    animation-direction: reverse;
}

@keyframes soon-spin {
    to {
        transform: rotate(360deg);
    }
}

.soon-badge {
    padding: 5px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(80, 60, 200, 0.24);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.soon-panel h2 {
    margin: 0;
    color: #1a2c51;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.soon-panel p {
    max-width: 52ch;
    margin: 0;
    color: #5b6a86;
    font-size: 0.95rem;
    line-height: 1.6;
}

.soon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.soon-actions a,
.soon-actions button {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.soon-actions a:hover,
.soon-actions button:hover {
    transform: translateY(-1px);
}

.soon-hint {
    margin-top: 6px;
    color: #8b95ac;
    font-size: 0.82rem;
}

.soon-primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    box-shadow: 0 12px 26px rgba(80, 60, 200, 0.26);
}

.soon-secondary {
    color: #2f5e95;
    background: #fff;
    border: 1px solid #dbe3f1;
    box-shadow: 0 10px 24px rgba(30, 42, 76, 0.06);
}

.soon-secondary:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .soon-gear {
        animation: none;
    }
}

.support-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: center;
    min-height: 186px;
    padding: 28px 30px;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.32), transparent 22%),
        radial-gradient(circle at 76% 92%, rgba(91, 225, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #0a1634 0%, #102349 58%, #0f6b7b 100%);
    box-shadow: 0 22px 48px rgba(10, 56, 91, 0.2);
}

.support-hero h2 {
    max-width: 520px;
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.support-hero p:last-child {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    line-height: 1.6;
}

.support-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.support-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 128px;
}

.support-hero-visual::before {
    content: "";
    position: absolute;
    width: 128px;
    height: 128px;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(10px);
    transform: rotate(8deg);
}

.support-hero-visual span {
    position: relative;
    display: block;
    width: 74px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px rgba(255, 255, 255, 0.42), 0 56px rgba(255, 255, 255, 0.28);
}

.support-hero-visual span:nth-child(2),
.support-hero-visual span:nth-child(3) {
    display: none;
}

.support-form {
    padding: 30px;
    border: 1px solid #e8ebf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(30, 42, 76, 0.06);
}

.support-form-header h2 {
    margin-bottom: 10px;
    color: #19223d;
    font-size: 1.45rem;
}

.support-form-header p:last-child {
    margin-bottom: 22px;
    color: #6e7890;
    line-height: 1.55;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.support-form label {
    display: grid;
    gap: 8px;
    color: #25304d;
    font-size: 0.86rem;
    font-weight: 700;
}

.support-form .span-2 { grid-column: 1 / -1; }

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    border: 1px solid #dfe3ee;
    border-radius: 10px;
    padding: 0 14px;
    color: #1f2a44;
    background: #fbfcff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    outline: 0;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: #7a8498;
    font-weight: 400;
}

.support-form input,
.support-form select { min-height: 46px; }

.support-form textarea {
    min-height: 132px;
    padding-block: 12px;
    resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: #0f6b7b;
    box-shadow: 0 0 0 4px rgba(15, 107, 123, 0.12);
}

.file-drop {
    position: relative;
    place-items: center;
    min-height: 128px;
    padding: 22px;
    border: 1px dashed #aab7cb;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 107, 123, 0.08), rgba(182, 107, 61, 0.08));
    text-align: center;
    cursor: pointer;
}

.file-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop .file-icon {
    width: 40px;
    height: 34px;
    border: 2px solid #0f6b7b;
    border-radius: 10px;
}

.file-drop .file-icon::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 8px auto 0;
    border-left: 2px solid #0f6b7b;
    border-top: 2px solid #0f6b7b;
    transform: rotate(45deg);
}

.file-drop strong {
    color: #16213d;
    font-weight: 700;
}

.file-drop small {
    color: #6e7890;
    font-weight: 600;
}

.support-form button {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #0f6b7b;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.support-info-column .side-card {
    position: relative;
    overflow: hidden;
}

.support-status-card {
    display: grid;
    gap: 12px;
}

.support-status-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, #fff);
}

.support-status-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 8px;
    box-shadow: 8px 8px 0 -2px #fff, 8px 8px 0 0 currentColor;
}

.support-status-card p {
    margin: 0;
    color: #6e7890;
    font-size: 0.86rem;
    line-height: 1.5;
}

.support-status-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 2px;
    padding: 0 14px;
    border-radius: 9px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, #fff);
    font-size: 0.84rem;
    font-weight: 900;
}

.category-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.category-pills a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dfe5f3;
    border-radius: 9px;
    color: #25304d;
    background: #fbfcff;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
}

.outlook-card {
    display: grid;
    gap: 10px;
}

.month-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.month-weekday {
    display: grid;
    place-items: center;
    min-height: 20px;
    color: #8b95ac;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.month-day {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 26px;
    border-radius: 8px;
    color: #25304d;
    font-size: 0.78rem;
    font-weight: 600;
}

.month-day.is-muted {
    color: #c3cbdb;
}

.month-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.month-day.is-today {
    color: #fff;
    background: var(--accent);
    font-weight: 800;
}

.month-day.is-today.has-event::after {
    background: #fff;
}

.outlook-events {
    display: grid;
    gap: 8px;
}

.outlook-event {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 8px 6px 6px;
    border: 1px solid #dfe5f3;
    border-radius: 10px;
    color: #25304d;
    background: #fbfcff;
}

.outlook-event.is-disabled {
    pointer-events: none;
}

.outlook-event-date {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 9px;
    color: #0f6b7b;
    background: #e9f7fb;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.outlook-event-date strong {
    font-size: 0.78rem;
    line-height: 1.1;
}

.outlook-event-date small {
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.1;
}

.outlook-event-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.outlook-event-copy strong,
.outlook-event-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outlook-event-copy strong {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.outlook-event-copy small {
    color: #6e7890;
    font-size: 0.68rem;
    font-weight: 650;
}

.calendar-empty {
    min-height: 128px;
}

@media (min-width: 981px) {
    .portal-layout {
        --paired-banner-height: clamp(150px, calc((100vw - var(--desktop-sidebar-width) - (2 * clamp(18px, 2.5vw, 32px)) - 300px) * 0.235294), 320px);
        --paired-featured-height: clamp(180px, 18vw, 228px);
        --paired-secondary-cards-height: var(--paired-secondary-section-height);
        --paired-secondary-inset: 12px;
        --paired-secondary-section-height: calc(var(--paired-featured-height) + (var(--paired-secondary-inset) * 2));
        --paired-row-gap: 18px;
    }

    .main-column {
        display: grid;
        grid-template-rows: var(--paired-banner-height) auto;
        gap: var(--paired-row-gap);
        align-content: start;
    }

    .info-column {
        grid-template-rows: var(--paired-banner-height) var(--paired-row-gap) var(--paired-featured-height) var(--paired-row-gap) var(--paired-secondary-section-height);
        gap: 0;
    }

    .app-section {
        display: grid;
        grid-template-rows: var(--paired-featured-height) var(--paired-secondary-section-height) auto;
        gap: var(--paired-row-gap);
        align-content: start;
        margin-top: 0;
    }

    .app-section > .section-heading {
        display: none;
    }

    .app-search-scope {
        display: contents;
    }

    /* Alinea "Tus aplicaciones" con Accesos rápidos y Microsoft 365 con Agenda Outlook. */
    .apps-panel {
        grid-row: 1;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        align-content: start;
    }

    .microsoft365-section {
        grid-row: 2;
        grid-template-rows: auto auto 1fr;
        height: var(--paired-featured-height);
        min-height: 0;
        align-self: center;
        overflow: hidden;
    }

    .microsoft365-all-link {
        align-self: end;
    }

    .app-tile-grid,
    .microsoft365-grid {
        align-content: start;
        min-height: 0;
        overflow: hidden;
    }

    .explore-button {
        grid-row: 3;
        margin-top: 0;
        justify-self: center;
        align-self: start;
    }

    .hero-strip {
        height: auto;
        display: grid;
        grid-template-rows: auto clamp(50px, 6vw, 78px);
        min-height: 0;
    }

    .hero-banner-image {
        height: var(--paired-banner-height);
        max-width: 100%;
        aspect-ratio: 1360 / 320;
        object-fit: cover;
    }

    .hero-group-strip {
        min-height: 0;
        height: 78px;
    }

    .support-page {
        gap: var(--paired-row-gap);
    }

    .support-hero {
        min-height: 0;
        height: var(--paired-banner-height);
    }

    .support-hero-visual {
        min-height: 0;
        height: 100%;
    }

    .news-card {
        grid-row: 1;
        height: var(--paired-banner-height);
        grid-template-rows: auto minmax(0, 1fr);
        gap: 5px;
        padding: 14px 14px 9px;
        overflow: hidden;
    }

    .news-card .collapsible-heading {
        margin-bottom: 0;
    }

    .news-card .collapsible-content {
        display: grid !important;
        grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
        min-height: 0;
        overflow: hidden;
    }

    .news-card .news-empty {
        grid-row: 1 / span 3;
        min-height: 0;
    }

    .news-card-header {
        gap: 9px;
    }

    .news-header-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .news-header-icon::before {
        width: 16px;
        height: 16px;
    }

    .news-header-copy {
        gap: 1px;
    }

    .news-header-copy h2 {
        font-size: 1rem;
        line-height: 1.12;
    }

    .news-header-copy small {
        font-size: 0.72rem;
        line-height: 1.18;
    }

    .news-item {
        gap: 3px 8px;
        padding: 6px 0 6px 9px;
        border-left-width: 3px;
    }

    .news-item-main {
        gap: 4px 6px;
    }

    .news-badge {
        min-height: 16px;
        padding: 0 6px;
        border-radius: 7px;
        font-size: 0.52rem;
    }

    .news-item strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.78rem;
        line-height: 1.12;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .news-item small {
        font-size: 0.69rem;
        line-height: 1.16;
        -webkit-line-clamp: 1;
    }

    .news-date {
        gap: 6px;
        font-size: 0.69rem;
        line-height: 1.1;
    }

    .news-date-icon {
        width: 12px;
        height: 12px;
        border-width: 1.6px;
        border-radius: 3px;
    }

    .news-date-icon::before,
    .news-date-icon::after {
        top: -3px;
        height: 3px;
    }

    .news-arrow {
        width: 11px;
        height: 11px;
    }

    .news-arrow::before {
        width: 7px;
        height: 7px;
    }

    .news-footer-link {
        grid-template-columns: 15px 1fr 12px;
        gap: 7px;
        min-height: 28px;
        padding-top: 5px;
        font-size: 0.72rem;
    }

    .featured-card,
    .quick-card {
        height: var(--paired-featured-height);
        min-height: var(--paired-featured-height);
        overflow: hidden;
    }

    .featured-card,
    .compact-grid .compact-card {
        grid-template-rows: minmax(0, 1fr);
        align-content: stretch;
    }

    .featured-card-link {
        height: 100%;
        min-height: 0;
        grid-template-rows: 1fr auto auto 1fr auto;
        align-content: stretch;
        row-gap: 6px;
    }

    .featured-badge {
        grid-row: 2;
        align-self: end;
    }

    .featured-icon {
        grid-row: 2 / 5;
        align-self: center;
    }

    .featured-meta {
        grid-row: 3;
        align-self: start;
    }

    .featured-footer {
        grid-row: 5;
        align-self: end;
    }

    .compact-grid {
        height: var(--paired-secondary-cards-height);
        min-height: var(--paired-secondary-cards-height);
        gap: 16px;
        padding: var(--paired-secondary-inset) 0;
        overflow: visible;
        align-self: stretch;
    }

    .compact-grid .compact-card {
        height: 100%;
        min-height: 0;
        padding: 12px 14px;
    }

    .compact-grid .app-card-link {
        display: grid;
        grid-template-rows: 1fr auto auto 1fr auto;
        align-content: stretch;
        min-height: 0;
        height: 100%;
        row-gap: 0;
    }

    .compact-grid .app-icon {
        grid-row: 2;
        align-self: end;
        width: 46px;
        height: 46px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .compact-grid .app-meta {
        grid-row: 3;
        align-self: start;
        gap: 5px;
    }

    .compact-grid .app-meta strong {
        font-size: 1.48rem;
        line-height: 1.08;
    }

    .compact-grid .app-meta em {
        min-height: 0;
        margin-top: 0;
        font-size: 0.88rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .compact-footer {
        grid-row: 5;
        align-self: end;
        margin-top: 9px;
        padding-top: 9px;
    }

    .compact-tag {
        min-height: 24px;
        padding: 0 9px;
        font-size: 0.72rem;
    }

    .category-card {
        height: var(--paired-featured-height);
        min-height: var(--paired-featured-height);
        align-self: center;
        overflow: hidden;
    }

    .quick-card {
        grid-row: 3;
        grid-template-rows: auto minmax(0, 1fr);
        padding: 14px 14px 12px;
        gap: 8px;
    }

    .quick-card .collapsible-content {
        display: grid !important;
        min-height: 0;
    }

    .quick-card .quick-empty {
        min-height: 0;
        height: 100%;
    }

    .quick-card h2 {
        margin-bottom: 2px;
    }

    .quick-card a {
        min-height: 34px;
        font-size: 0.9rem;
    }

    .category-card {
        grid-row: 5;
        padding: 14px 14px 12px;
    }

    .month-card {
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
    }

    .month-grid {
        grid-auto-rows: minmax(0, 1fr);
        align-content: stretch;
        min-height: 0;
    }

    .month-weekday {
        min-height: 0;
    }

    .month-day {
        min-height: 0;
    }

    .outlook-card {
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
    }

    /* La agenda ocupa el lugar y el alto que tenia Novedades. */
    .category-card.outlook-card {
        grid-row: 1;
        height: var(--paired-banner-height);
        min-height: var(--paired-banner-height);
        align-self: stretch;
    }

    .outlook-card .collapsible-content {
        display: grid !important;
        min-height: 0;
    }

    .outlook-events {
        grid-auto-rows: minmax(40px, 1fr);
        align-content: start;
        min-height: 0;
    }

    .outlook-event {
        min-height: 0;
    }

    .outlook-event-date {
        min-height: 36px;
    }

    .outlook-card .calendar-empty {
        min-height: 0;
        height: 100%;
    }

    .category-card .mini-heading {
        margin-bottom: 10px;
    }

    .category-pills a {
        min-height: 34px;
        font-size: 0.76rem;
    }
}

@media (min-width: 981px) and (max-width: 1199px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .info-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 18px;
    }

    .info-column > * {
        grid-row: auto !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

.news-detail-layout .main-column,
.news-detail-layout .info-column {
    display: grid;
    grid-template-rows: none;
    gap: 20px;
    align-content: start;
}

.news-detail-layout .quick-card,
.news-detail-layout .category-card {
    grid-row: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.news-detail-layout .quick-card {
    padding: 16px;
    gap: 10px;
}

.news-detail-layout .category-card {
    padding: 16px;
}

.category-emoji {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--item-color, #0f6b7b) 13%, #fff);
    font-size: 0.82rem;
    line-height: 1;
}

.empty-state {
    padding: 42px;
    border: 1px dashed #cbd4e5;
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 980px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .support-layout {
        grid-template-columns: 1fr;
    }

    .info-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 761px) {
    .portal-shell {
        height: 100vh;
        overflow: hidden;
    }

    .portal-shell .sidebar {
        height: 100vh;
        overflow: hidden;
    }

    .workspace {
        height: 100vh;
        min-height: 0;
        overflow-y: auto;
    }

    .portal-page-footer {
        position: static;
        z-index: auto;
        padding: 0;
        border-top: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) minmax(0, 1fr);
        gap: 24px;
        justify-content: stretch;
    }

    .topbar .hero-greeting-desktop {
        justify-self: start;
    }

    .topbar .portal-search {
        width: 100%;
        margin: 0;
        justify-self: center;
        transform: translateX(calc(var(--desktop-sidebar-width) / -2));
    }

    .main-column > .hero-greeting {
        display: none;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .portal-layout {
        --paired-banner-height: clamp(180px, 22vw, 260px);
    }

    .hero-greeting h1 {
        font-size: clamp(1rem, 1.75vw, 1.3rem);
    }

    .hero-greeting p {
        font-size: clamp(0.72rem, 1.1vw, 0.9rem);
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr) minmax(190px, clamp(220px, 27vw, 320px)) minmax(0, 1fr);
        gap: 14px 18px;
    }

    .topbar .portal-search {
        min-width: 0;
        transform: none;
    }
}

@media (min-width: 761px) and (max-width: 899px) {
    .topbar {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 60px;
        padding: 10px 14px;
    }

    .topbar .hero-greeting-desktop {
        display: none;
    }

    .topbar .portal-search {
        width: min(100%, 360px);
        min-width: 0;
        min-height: 38px;
        margin: 0 auto;
        padding: 0 10px;
        gap: 8px;
        transform: none;
    }

    .main-column > .hero-greeting {
        display: grid;
        margin-bottom: 14px;
    }
}

@media (min-width: 1450px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 340px) minmax(0, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1449px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) minmax(0, 1fr);
        gap: 18px;
    }

    .topbar .portal-search {
        min-width: 0;
        transform: none;
    }
}

@media (min-width: 1024px) {
    .hero-banner-image {
        height: var(--paired-banner-height);
    }

    .hero-group-strip {
        padding: 18px 20px;
    }

    .app-card {
        min-height: 178px;
    }

    .app-card-link {
        min-height: 142px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
        font-size: 1.2rem;
    }

    .app-meta strong {
        font-size: 1rem;
    }

    .app-meta em {
        font-size: 0.86rem;
    }
}

@media (max-width: 970px) {
    .portal-shell {
        --mobile-sidebar-width: min(86vw, 290px);
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: translateX(0);
        transition: transform 220ms ease;
        z-index: 1200;
        display: grid;
        gap: 4px;
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        padding: 8px;
        border: 1px solid #d8e3f1;
        border-radius: 10px;
        background: #fff;
        box-shadow: none;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #1c2b4f;
    }

    .sidebar-close-button {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(205, 218, 239, 0.28);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        color: #dbe8ff;
        cursor: pointer;
    }

    .sidebar-close-button span {
        position: absolute;
        width: 15px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .sidebar-close-button span:first-child {
        transform: rotate(45deg);
    }

    .sidebar-close-button span:last-child {
        transform: rotate(-45deg);
    }

    .portal-shell .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
        width: var(--mobile-sidebar-width);
        min-height: 100vh;
        transform: translateX(-105%);
        transition: transform 220ms ease;
        box-shadow: 24px 0 42px rgba(7, 18, 42, 0.34);
    }

    .portal-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .portal-shell.sidebar-open .mobile-nav-toggle {
        transform: none;
    }

    .portal-shell.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(7, 16, 33, 0.42);
    }

    .side-nav {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas:
            "toggle greeting"
            "search search";
        align-items: center;
        gap: 8px 10px;
        padding: 12px 14px;
        min-height: 60px;
    }

    .mobile-nav-toggle {
        grid-area: toggle;
    }

    .topbar .hero-greeting-desktop {
        grid-area: greeting;
        min-width: 0;
    }

    .topbar .portal-search {
        grid-area: search;
        width: 100%;
        min-width: 0;
        min-height: 34px;
        margin: 0;
        padding: 0 10px;
        gap: 8px;
        transform: none;
    }

    .sidebar-account {
        margin-bottom: 10px;
    }

    .portal-search span {
        font-size: 1rem;
    }

    .portal-search input {
        font-size: 0.72rem;
    }

    .top-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .user-meta strong,
    .user-meta small {
        max-width: 140px;
    }

    .hero-strip {
        grid-template-columns: 1fr;
    }

    .hero-banner-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 1360 / 320;
        object-fit: contain;
        background: #0d2347;
    }

    .hero-preview {
        display: none;
    }
}

@media (max-width: 760px) {
    .login-panel {
        grid-template-columns: 1fr;
    }

    .brand-pane {
        min-height: 380px;
    }

    .brand-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-header h2 {
        font-size: 2.3rem;
    }

    .auth-locale {
        align-self: flex-start;
    }

    .portal-layout {
        padding: 14px;
    }

    .hero-greeting-desktop {
        display: none;
    }

    .portal-page-footer {
        margin: 0 14px 16px;
        padding-top: 12px;
    }

    .app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .featured-card {
        min-height: auto;
        padding: 12px;
    }

    .featured-card-link {
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: stretch;
        column-gap: 12px;
        min-height: auto;
        row-gap: 10px;
        text-align: left;
    }

    .featured-badge,
    .featured-visual {
        display: none;
    }

    .featured-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 46px;
        height: 46px;
        margin-bottom: 0;
        border-radius: 13px;
    }

    .featured-meta {
        grid-column: 2;
        grid-row: 1;
        gap: 4px;
        min-width: 0;
    }

    .featured-meta strong {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .featured-meta em {
        display: none;
    }

    .featured-cta {
        width: 100%;
        min-height: 34px;
        font-size: 0.75rem;
        margin-left: 0;
    }

    .featured-footer {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        padding-top: 0;
        border-top: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
    }

    .featured-type-tag {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
    }

    .compact-grid .app-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
        border-radius: 12px;
    }

    .compact-grid .app-meta strong {
        font-size: 0.98rem;
        line-height: 1.12;
    }

    .compact-grid .compact-card {
        min-height: auto;
        height: auto;
        padding: 10px;
    }

    .compact-grid .app-card-link {
        min-height: auto;
        height: auto;
        grid-template-rows: auto;
    }

    .compact-heading {
        margin: 4px 0;
    }

    .compact-heading h2 {
        font-size: 1rem;
    }

    .compact-footer {
        border-top: 0;
        padding-top: 0;
        width: 100%;
        justify-content: center;
    }

    .compact-tag {
        max-width: 100%;
        min-width: 0;
        font-size: 0.68rem;
    }

    .microsoft365-section {
        padding: 12px;
    }

    .microsoft365-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .microsoft365-app {
        min-height: 82px;
        padding: 6px 4px;
    }

    .microsoft365-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .microsoft365-icon img {
        width: 34px;
        height: 34px;
    }

    .microsoft365-app strong {
        font-size: 0.7rem;
    }

    .microsoft365-app small {
        display: none;
    }

    .microsoft365-all-link {
        justify-self: center;
        font-size: 0.72rem;
    }

    .news-feed-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .news-feed-image {
        grid-column: 2;
        width: min(100%, 260px);
    }

    .app-card {
        min-height: auto;
        padding: 10px;
        border-radius: 10px;
    }

    .app-card-link {
        min-height: auto;
        justify-items: center;
        text-align: center;
    }

    .app-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
        border-radius: 12px;
    }

    .app-meta {
        gap: 4px;
    }

    .app-meta strong {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .app-meta em,
    .card-menu {
        display: none;
    }

    .favorite {
        top: 8px;
        right: 8px;
    }

    .collapsible-card.is-collapsed {
        height: 72px;
        min-height: 72px;
        align-content: center;
        overflow: hidden;
    }

    .collapsible-card.is-collapsed .collapsible-heading {
        min-height: 44px;
        margin-bottom: 0;
    }

    .collapsible-toggle {
        width: 28px;
        height: 28px;
        border-color: #d7e5f4;
        background: #f9fcff;
        box-shadow: 0 5px 12px rgba(33, 81, 140, 0.1);
    }

    .collapsible-toggle::before {
        top: 9px;
        left: 9px;
        width: 7px;
        height: 7px;
        border-width: 1.5px;
        border-color: #517098;
    }

    .collapsible-card.is-collapsed .collapsible-toggle::before {
        top: 11px;
    }

    .info-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 761px) and (max-width: 970px) {
    .topbar {
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas: "toggle search";
        gap: 8px 10px;
        padding: 10px 14px;
        min-height: 60px;
    }

    .mobile-nav-toggle {
        grid-area: toggle;
    }

    .topbar .hero-greeting-desktop {
        display: none;
    }

    .topbar .portal-search {
        grid-area: search;
        width: min(100%, 360px);
        min-width: 0;
        min-height: 38px;
        margin: 0;
        padding: 0 10px;
        gap: 8px;
        transform: none;
    }

    .main-column > .hero-greeting {
        display: grid;
        margin-bottom: 14px;
    }
}

@media (max-width: 560px) {
    .login-shell { padding: 0; }

    .login-panel { min-height: 100vh; border: 0; }

    .brand-pane,
    .auth-pane { padding: 24px; }

    .brand-pillars {
        grid-template-columns: 1fr;
    }

    .brand-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-header h2 {
        font-size: 2rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .side-nav,
    .info-column,
    .category-pills,
    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .app-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 6px;
        border-radius: 11px;
    }

    .featured-card .featured-icon,
    .compact-grid .app-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .featured-cta {
        min-height: 30px;
        font-size: 0.72rem;
    }

    .app-meta strong {
        font-size: 0.82rem;
    }

    .compact-tag {
        justify-content: center;
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.66rem;
    }

    .compact-grid .app-meta strong {
        font-size: 0.92rem;
        line-height: 1.12;
    }

    .support-hero {
        grid-template-columns: 1fr;
    }

    .support-hero-visual {
        display: none;
    }

    .support-form .span-2 {
        grid-column: auto;
    }

    .support-form {
        padding: 22px;
    }

    .portal-shell .portal-logo {
        margin-bottom: 18px;
    }

    .hero-greeting h1 {
        font-size: 1.12rem;
    }

    .hero-greeting p {
        font-size: 0.82rem;
    }

    .hero-strip {
        padding: 0;
    }
}

/* "Mis aplicaciones" (listado completo) no debe usar el layout de escritorio
   pensado para el home. */
@media (min-width: 981px) {
    .app-section.all-apps-view {
        display: block;
        margin-top: 0;
    }

    .app-section.all-apps-view > .section-heading {
        display: flex;
    }

    .app-section.all-apps-view .app-search-scope {
        display: grid;
        gap: 16px;
    }

    .app-section.all-apps-view .app-tile-grid {
        height: auto;
        min-height: 0;
        overflow: visible;
        align-self: auto;
    }

    .app-section.all-apps-view .apps-panel {
        height: auto;
        min-height: var(--paired-featured-height);
        overflow: visible;
    }

    .app-section.all-apps-view .microsoft365-section {
        height: var(--paired-featured-height);
        min-height: var(--paired-featured-height);
        overflow: hidden;
        margin-top: var(--paired-row-gap);
    }
}

/* Segmento "Reportes": tarjetas por unidad de negocio, visibilidad controlada por grupo Entra. */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 4px;
}

.report-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 20px;
    border: 1px solid #e4e9f4;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(24, 42, 74, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.report-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--report-main, #0099db);
}

.report-card::after {
    content: "";
    position: absolute;
    top: -58px;
    right: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--report-tint, #e9f6fc);
    opacity: 0.85;
}

.report-card > * {
    position: relative;
    z-index: 1;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(24, 42, 74, 0.14);
    border-color: var(--report-soft, #7ff3de);
}

.report-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--report-main, #0099db), var(--report-deep, #003c6b));
    color: #fff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(20, 26, 40, 0.18);
}

.report-card h3 {
    margin: 0 0 5px;
    color: #1d2f57;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.report-sub {
    margin: 0;
    color: #6e7890;
    font-size: 0.86rem;
}

.report-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.8rem;
    color: #6e7890;
}

.report-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.report-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--report-main, #0099db);
}

.report-arrow {
    color: var(--report-deep, #003c6b);
    font-weight: 700;
    white-space: nowrap;
}

/* Página de detalle de una unidad de negocio (tabla de reportes). */
.report-detail-layout {
    grid-template-columns: minmax(0, 1fr);
}

.report-page {
    width: 100%;
    margin-top: 18px;
}

.report-back {
    display: inline-block;
    margin-bottom: 14px;
    color: #46587f;
    font-size: 0.86rem;
    font-weight: 700;
}

.report-page-head {
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(120deg, #0a1735 0%, #1f4d8f 100%);
}

.report-page-head h2 {
    margin: 0 0 4px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.4px;
}

.report-page-sub {
    margin: 0 0 16px;
    font-size: 0.86rem;
    opacity: 0.88;
}

.report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-stat {
    min-width: 112px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.report-stat b {
    display: block;
    font-size: 1.35rem;
}

.report-stat span {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.report-tablewrap {
    overflow: auto;
    border: 1px solid #e4e9f4;
    border-radius: 16px;
    background: #fff;
}

.report-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.report-table thead th {
    position: sticky;
    top: 0;
    padding: 12px 14px;
    color: #fff;
    background: #1d2f57;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: left;
    text-transform: uppercase;
}

.report-table tbody td {
    padding: 12px 14px;
    border-top: 1px solid #e7edf8;
    color: #33415e;
    vertical-align: top;
}

.report-table tbody tr:nth-child(even) {
    background: #f6faff;
}

.report-area {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    color: #2f5e95;
    background: #eef4ff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-desc {
    max-width: 320px;
    color: #6e7890;
}

.report-link {
    color: #0e86a7;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #3b82f6;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.report-ext {
    font-size: 0.72rem;
    opacity: 0.7;
}

.report-norep {
    display: block;
    font-weight: 700;
    color: #33415e;
}

.report-nolink {
    display: block;
    color: #9aa4b8;
    font-size: 0.72rem;
    font-style: italic;
}

.report-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.report-badge.ok {
    color: #1f7a3d;
    background: #e8f7ea;
}

.report-badge.dev {
    color: #2b4fa8;
    background: #e9f1ff;
}

.report-badge.warn {
    color: #95601a;
    background: #fff4de;
}

.report-badge.hold {
    color: #5d6b76;
    background: #eef1f4;
}
