html,
body {
    min-height: 100%;
    margin: 0;
}

:root {
    --color-bg: #f3f6fb;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;
    --color-border: #dfe5ef;
    --color-border-strong: #cbd5e1;
    --color-text: #172033;
    --color-muted: #667085;
    --color-heading: #0f172a;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-soft: #dbeafe;
    --color-teal: #0f766e;
    --color-amber: #d97706;
    --sidebar-bg: #0b1220;
    --radius-xs: 7px;
    --radius-sm: 9px;
    --radius-md: 12px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, .12);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, .14);
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--color-text);
    background:
        linear-gradient(180deg, #f8fbff 0, var(--color-bg) 340px),
        var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 252px 1fr;
    background: #f6f7f9;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 18px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, 0) 30%),
        #0f172a;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.app-logo {
    margin: 0 8px 30px;
    letter-spacing: .01em;
}

.app-logo strong,
.app-logo small {
    display: block;
}

.app-logo strong {
    font-size: 22px;
    font-weight: 850;
}

.app-logo small {
    margin-top: 2px;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.app-nav {
    display: grid;
    gap: 6px;
}

.app-nav a {
    padding: 12px 13px;
    color: rgba(226, 232, 240, .76);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 760;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.app-nav a.nav-with-badge {
    justify-content: space-between;
    gap: 10px;
}

.app-nav a.nav-with-badge b {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    color: #fff;
    border-radius: 999px;
    background: #ef4444;
    font-size: 11px;
    font-weight: 950;
}

.app-nav a.active,
.app-nav a:hover {
    color: #fff;
    background: rgba(37, 99, 235, .82);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.app-nav a:hover {
    transform: translateX(1px);
}

.sidebar-account {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-user {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 11px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 850;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user strong {
    font-size: 14px;
}

.sidebar-user small {
    color: rgba(226, 232, 240, .66);
    font-size: 12px;
}

.sidebar-logout {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: #dbeafe;
    text-decoration: none;
    border: 1px solid rgba(147, 197, 253, .24);
    border-radius: 8px;
    background: rgba(37, 99, 235, .14);
    font-weight: 800;
}

.sidebar-logout:hover {
    color: #fff;
    background: rgba(37, 99, 235, .28);
}

.sidebar-owner {
    margin: 12px 0 0;
    color: rgba(226, 232, 240, .48);
    font-size: 11px;
    text-align: center;
}

.sidebar-toggle,
.sidebar-backdrop {
    display: none;
}

.sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #1d2939;
}

.app-main {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 28px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.app-kicker {
    margin: 0 0 4px;
    color: #697386;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.app-topbar h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.btn {
    border-radius: 7px;
    font-weight: 750;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.news-carousel {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #18212b;
}

.news-slide {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 58px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .52)),
        linear-gradient(135deg, #14532d, #0f766e 52%, #f59e0b);
    background-size: cover;
    background-position: center;
}

.news-slide--operations {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .94), rgba(17, 24, 39, .56)),
        linear-gradient(135deg, #1f2937, #2563eb 52%, #22c55e);
}

.news-slide--people {
    background:
        linear-gradient(90deg, rgba(63, 22, 22, .9), rgba(63, 22, 22, .54)),
        linear-gradient(135deg, #991b1b, #db2777 50%, #f97316);
}

.news-slide__content {
    max-width: 680px;
}

.news-slide__flyer {
    width: min(30vw, 310px);
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .34);
}

.news-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
}

.news-slide h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 850;
}

.news-slide p {
    max-width: 580px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.news-slide__highlight,
.news-detail__highlight {
    width: fit-content;
    display: block;
    margin: 0 0 18px;
    padding: 9px 12px;
    color: #fff;
    border-radius: 999px;
    background: var(--news-accent, #2563eb);
    font-size: 13px;
    font-weight: 900;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
}

.info-panel {
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.info-panel--wide {
    grid-row: span 2;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0;
}

.section-heading--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-heading--split a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

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

.announcement-list a {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    text-decoration: none;
    background: #fbfcfd;
}

.announcement-list a:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.announcement-list span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.announcement-list strong {
    color: #111827;
}

.announcement-list p {
    margin: 0;
    color: #667085;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-links a {
    min-height: 74px;
    display: flex;
    align-items: center;
    padding: 14px;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.quick-links a:hover {
    color: #fff;
    background: #1e252c;
}

.agenda-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

.agenda-list li {
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

.agenda-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.agenda-list strong {
    color: #111827;
}

.agenda-list span {
    color: #667085;
}

.activity-mini-list {
    display: grid;
    gap: 10px;
}

.activity-mini-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    background: #fbfcfd;
    border: 1px solid #eef0f3;
    border-radius: 8px;
}

.activity-mini-list a:hover {
    border-color: #93c5fd;
}

.activity-mini-list span,
.activity-mini-list em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
}

.activity-mini-list strong {
    color: #101828;
}

.metric-card {
    min-height: 170px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.metric-card span {
    display: block;
    color: #667085;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 14px 0;
    font-size: 28px;
    color: #111827;
}

.metric-card p {
    margin: 0;
    color: #667085;
}

.users-table td:first-child {
    display: grid;
    gap: 2px;
}

.users-table td:first-child span {
    color: #667085;
    font-size: 13px;
}

.role-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #374151;
    background: #eef0f3;
    font-size: 12px;
    font-weight: 800;
}

.role-badge--admin {
    color: #fff;
    background: #1e252c;
}

.usage-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.usage-pills span {
    display: inline-flex;
    padding: 5px 8px;
    color: #344054;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.user-form {
    width: min(100%, 1180px);
    display: grid;
    gap: 18px;
}

.app-main > .user-form,
.app-main > .info-panel,
.app-main > .home-grid,
.app-main > .admin-grid,
.app-main > .news-list-page,
.app-main > .profile-workspace {
    margin-left: auto;
    margin-right: auto;
}

.app-main > .info-panel,
.app-main > .home-grid,
.app-main > .admin-grid,
.app-main > .news-list-page,
.app-main > .profile-workspace,
.app-main > .ticket-detail-grid {
    width: min(100%, 1180px);
}

.app-main > .news-carousel,
.app-main > .admin-content-grid {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

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

.form-grid label,
.permission-check {
    display: grid;
    gap: 8px;
}

.form-grid label span {
    color: #374151;
    font-weight: 800;
}

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

.permission-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fbfcfd;
}

.permission-check span {
    display: grid;
    gap: 4px;
}

.permission-check small {
    color: #667085;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.image-editor-grid {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
    gap: 16px;
}

.image-editor-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--color-surface-soft);
    border: 1px solid #e6edf6;
    border-radius: var(--radius-md);
}

.image-editor-card label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.image-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #64748b;
    background:
        linear-gradient(135deg, #e0f2fe, #dbeafe);
    background-size: cover;
    background-position: 50% 50%;
    border: 1px solid var(--color-border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.image-preview span {
    font-weight: 900;
    text-transform: uppercase;
}

.image-preview--avatar {
    width: 156px;
    height: 156px;
    justify-self: center;
    border-radius: 50%;
}

.image-preview--cover {
    width: 100%;
    min-height: 220px;
    border-radius: var(--radius-md);
}

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

.image-position-controls label {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.image-position-controls input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
}

.admin-user-photo-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-user-photo-preview p {
    max-width: 420px;
    margin: 0;
    color: var(--color-muted);
}

.form-control-color {
    min-height: 42px;
    width: 100%;
    padding: 6px;
}

.news-builder-preview {
    --news-accent: #2563eb;
    position: relative;
    min-height: 340px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
    gap: 24px;
    align-items: end;
    overflow: hidden;
    padding: 28px;
    color: #fff;
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .52)),
        linear-gradient(135deg, #0f172a, #2563eb 58%, #0f766e);
    box-shadow: var(--shadow-md);
}

.news-builder-preview__bg {
    position: absolute;
    inset: 0;
    opacity: .38;
    background-size: cover;
    background-position: center;
}

.news-builder-preview::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--news-accent);
}

.news-builder-preview__copy,
.news-builder-preview figure {
    position: relative;
    z-index: 1;
}

.news-builder-preview__copy {
    display: grid;
    gap: 10px;
}

.news-builder-preview__copy span {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-builder-preview__copy strong {
    max-width: 680px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
}

.news-builder-preview__copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .80);
    font-size: 17px;
}

.news-builder-preview__copy em {
    width: fit-content;
    min-height: 0;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--news-accent);
    color: #fff;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

.news-builder-preview__copy em:empty {
    display: none;
}

.news-builder-preview figure {
    min-height: 250px;
    display: grid;
    place-items: center;
    margin: 0;
    background: rgba(255, 255, 255, .12);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-md);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .22);
}

.news-builder-preview figure span {
    color: rgba(255, 255, 255, .68);
    font-weight: 900;
    text-transform: uppercase;
}

.news-builder-preview--fresh {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .90), rgba(15, 118, 110, .42)),
        linear-gradient(135deg, #0f766e, #2563eb 58%, #14b8a6);
}

.news-builder-preview--warm {
    background:
        linear-gradient(90deg, rgba(51, 32, 9, .90), rgba(217, 119, 6, .40)),
        linear-gradient(135deg, #92400e, #d97706 56%, #2563eb);
}

.news-builder-preview--dark {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, .96), rgba(15, 23, 42, .66)),
        linear-gradient(135deg, #020617, #1e293b 58%, #2563eb);
}

.news-builder-preview--celebration {
    background:
        linear-gradient(90deg, rgba(76, 29, 149, .90), rgba(219, 39, 119, .44)),
        linear-gradient(135deg, #7c3aed, #db2777 50%, #f59e0b);
}

.filter-bar {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto auto;
    gap: 10px;
    align-items: center;
    margin: 0 auto 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.filter-bar .btn {
    min-height: 38px;
}

.filter-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.filter-pills a {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    font-weight: 800;
    padding: .55rem .9rem;
    text-decoration: none;
}

.filter-pills a.is-active,
.filter-pills a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination-bar {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.pagination-bar span {
    color: var(--color-muted);
    font-size: .84rem;
    font-weight: 800;
}

.pagination-bar .disabled {
    opacity: .45;
    pointer-events: none;
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.executive-grid article {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.executive-grid span {
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 900;
}

.executive-grid strong {
    color: var(--color-primary);
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-top: .45rem;
}

.filter-bar--audit {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(170px, 220px) minmax(160px, 200px) 150px 150px auto auto;
}

.users-table {
    min-width: 860px;
}

.empty-state {
    border-style: dashed;
}

.news-list-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-feature {
    width: min(100%, 1180px);
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
    gap: 0;
    margin: 0 auto 18px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.news-feature__copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(26px, 4vw, 46px);
}

.news-feature__copy small,
.news-card small {
    color: #2563eb;
    font-weight: 850;
    text-transform: uppercase;
}

.news-feature__copy strong {
    color: #101828;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: 0;
}

.news-feature__copy em {
    max-width: 560px;
    color: #667085;
    font-style: normal;
    font-size: 17px;
    line-height: 1.55;
}

.news-feature__copy span:last-child {
    width: fit-content;
    padding: 10px 14px;
    color: #fff;
    border-radius: 8px;
    background: #2563eb;
    font-weight: 850;
}

.news-feature__copy b,
.news-card__content b {
    width: fit-content;
    padding: 7px 10px;
    color: var(--news-accent, #2563eb);
    border-radius: 999px;
    background: color-mix(in srgb, var(--news-accent, #2563eb) 12%, #fff);
    font-size: 12px;
    font-weight: 900;
}

.news-feature__media {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .78), rgba(37, 99, 235, .30)),
        linear-gradient(135deg, #0f172a, #2563eb 54%, #14b8a6);
    background-size: cover;
    background-position: center;
}

.news-feature__media img {
    max-width: min(78%, 360px);
    max-height: 310px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 22px 42px rgba(15, 23, 42, .32);
}

.news-list-page--magazine {
    grid-auto-flow: dense;
}

.news-card {
    min-height: 360px;
    display: grid;
    grid-template-rows: 170px 1fr;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.news-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.news-card__image {
    position: relative;
    display: grid;
    place-items: center;
    padding: 16px;
    background:
        linear-gradient(135deg, #1f2937, #2563eb 52%, #22c55e);
    background-size: cover;
    background-position: center;
}

.news-card::before,
.news-feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--news-accent, #2563eb);
}

.news-card,
.news-feature {
    position: relative;
}

.news-card__image img {
    max-width: 88%;
    max-height: 145px;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .26);
}

.news-card--poster {
    grid-row: span 2;
    grid-template-rows: minmax(330px, .9fr) auto;
}

.news-card--poster .news-card__image img {
    max-height: 300px;
}

.news-card--split {
    grid-column: span 2;
    grid-template-columns: .92fr 1.08fr;
    grid-template-rows: 1fr;
}

.news-card--split .news-card__image {
    min-height: 270px;
}

.news-card--editorial {
    background:
        linear-gradient(180deg, #fff, #f8fbff);
    border-color: #dbeafe;
}

.news-card__content {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
}

.news-tone--fresh .news-card__image,
.news-tone--fresh .news-feature__media,
.news-tone--fresh.news-slide,
.news-tone--fresh .news-detail__hero {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .88), rgba(15, 118, 110, .44)),
        linear-gradient(135deg, #0f766e, #2563eb 58%, #14b8a6);
}

.news-tone--warm .news-card__image,
.news-tone--warm .news-feature__media,
.news-tone--warm.news-slide,
.news-tone--warm .news-detail__hero {
    background:
        linear-gradient(90deg, rgba(51, 32, 9, .88), rgba(217, 119, 6, .38)),
        linear-gradient(135deg, #92400e, #d97706 56%, #2563eb);
}

.news-tone--dark .news-card__image,
.news-tone--dark .news-feature__media,
.news-tone--dark.news-slide,
.news-tone--dark .news-detail__hero {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, .94), rgba(15, 23, 42, .62)),
        linear-gradient(135deg, #020617, #1e293b 58%, #2563eb);
}

.news-tone--celebration .news-card__image,
.news-tone--celebration .news-feature__media,
.news-tone--celebration.news-slide,
.news-tone--celebration .news-detail__hero {
    background:
        linear-gradient(90deg, rgba(76, 29, 149, .88), rgba(219, 39, 119, .42)),
        linear-gradient(135deg, #7c3aed, #db2777 50%, #f59e0b);
}

.news-card strong {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.news-card em {
    color: #667085;
    font-style: normal;
}

.news-detail {
    min-height: 100vh;
    background: #f6f7f9;
}

.news-detail__hero {
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: end;
    padding: clamp(28px, 5vw, 64px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .52)),
        linear-gradient(135deg, #14532d, #0f766e 52%, #f59e0b);
    background-size: cover;
    background-position: center;
}

.news-detail__hero > div {
    max-width: 860px;
}

.news-detail__hero h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 850;
}

.news-detail__hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.news-back {
    display: inline-flex;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .84);
    text-decoration: none;
    font-weight: 800;
}

.news-back:hover {
    color: #fff;
}

.news-detail__flyer {
    width: min(32vw, 360px);
    margin: 0;
    display: none;
}

.news-detail__flyer img,
.news-detail__poster img {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, .28);
}

.news-detail--poster .news-detail__flyer {
    display: block;
}

.news-detail--poster .news-detail__hero {
    min-height: 560px;
}

.news-detail__content {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin: 0 auto;
    padding: 34px 28px 72px;
}

.news-detail--split .news-detail__content,
.news-detail--editorial .news-detail__content {
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    align-items: start;
}

.news-detail__poster {
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.news-detail__body {
    max-width: 860px;
    padding: 30px;
    color: #374151;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.72;
}

.news-detail--editorial .news-detail__body {
    font-size: 19px;
    line-height: 1.8;
}

.news-admin-thumb {
    width: 54px;
    height: 54px;
    display: block;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #dbeafe, #2563eb);
    background-size: cover;
    background-position: center;
}

.feature-switch {
    align-self: end;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.full-field {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.full-field span {
    color: #374151;
    font-weight: 800;
}

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

.admin-card {
    padding: 22px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.admin-card:hover {
    border-color: #c7d2fe;
}

.admin-card span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-card strong {
    display: block;
    margin: 8px 0;
    font-size: 22px;
}

.admin-card p {
    margin: 0;
    color: #667085;
}

.admin-content-grid {
    margin-bottom: 18px;
}

.compact-form {
    display: grid;
    gap: 10px;
}

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

.mini-list span {
    display: grid;
    gap: 2px;
    padding: 10px;
    color: #667085;
    border: 1px solid #eef0f3;
    border-radius: 8px;
}

.mini-list form {
    margin-top: 8px;
}

.mini-list strong {
    color: #111827;
}

.profile-thumb,
.profile-preview {
    object-fit: cover;
    border-radius: 50%;
    background: #e5e7eb;
}

.profile-thumb {
    width: 38px;
    height: 38px;
    margin-right: 8px;
    vertical-align: middle;
}

.profile-preview {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

.profile-page {
    min-height: 100vh;
    background: #f4f6f8;
}

.profile-cover {
    height: 280px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, .08), rgba(17, 24, 39, .36)),
        linear-gradient(135deg, #8ecae6, #457b9d 50%, #1d3557);
    background-size: cover;
    background-position: center;
}

.profile-header {
    min-height: 132px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 0 clamp(24px, 8vw, 96px) 26px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
    width: 148px;
    height: 148px;
    margin-top: -74px;
    display: grid;
    place-items: center;
    border: 6px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar span {
    color: #1e252c;
    font-size: 48px;
    font-weight: 850;
}

.profile-heading h1 {
    margin: 0 0 4px;
    font-size: 30px;
}

.profile-heading p {
    margin: 0 0 10px;
    color: #667085;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #667085;
    font-size: 13px;
}

.profile-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f4f6f8;
}

.profile-content {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px clamp(24px, 8vw, 96px) 48px;
}

.profile-data {
    display: grid;
    gap: 8px;
    margin: 0;
}

.profile-data dt {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-data dd {
    margin: 0 0 10px;
    color: #111827;
}

.profile-main {
    display: grid;
    gap: 24px;
}

.profile-description {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.7;
}

.profile-media-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 28px;
    color: #fff;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .38)),
        linear-gradient(135deg, #38bdf8, #a78bfa 48%, #f59e0b);
}

.profile-media-card h2 {
    margin: 0 0 10px;
    font-size: 34px;
}

.profile-media-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.profile-workspace {
    display: grid;
    gap: 18px;
    align-content: start;
}

.profile-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.profile-workspace .profile-cover {
    height: clamp(210px, 24vw, 310px);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .03), rgba(15, 23, 42, .30)),
        linear-gradient(135deg, #8ecae6, #3f7f9f 48%, #14213d);
    background-size: cover;
    background-position: center;
}

.profile-workspace .profile-header {
    min-height: 118px;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 0 24px 22px;
    border-bottom: 0;
}

.profile-workspace .profile-avatar {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    border-width: 5px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}

.profile-workspace .profile-avatar span {
    font-size: 42px;
}

.profile-workspace .profile-heading h1 {
    font-size: 28px;
}

.profile-workspace .profile-content {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 18px;
    padding: 0;
}

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

.profile-presence-card {
    position: relative;
    margin-bottom: 14px;
    padding: 18px;
    overflow: hidden;
    color: #fff;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(20, 184, 166, .82)),
        #2563eb;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18);
}

.profile-presence-card strong,
.profile-presence-card p {
    position: relative;
    z-index: 1;
}

.profile-presence-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.profile-presence-card p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.presence-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .18);
}

.profile-social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-social-grid article {
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.profile-social-grid span {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-social-grid strong {
    color: #101828;
    font-size: 17px;
}

.people-hero,
.company-people-sections,
.people-grid {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.people-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(37, 99, 235, .58)),
        linear-gradient(135deg, #0f172a, #2563eb 56%, #22c55e);
}

.people-hero h2 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.people-hero p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.company-people-sections {
    display: grid;
    gap: 18px;
}

.company-people-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.person-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.person-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-2px);
}

.person-card__avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: 24px;
    font-weight: 900;
}

.person-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card__body {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.person-card strong,
.person-card em,
.person-card small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card strong {
    color: #101828;
    font-size: 19px;
    line-height: 1.18;
}

.person-card em {
    color: #344054;
    font-style: normal;
    font-weight: 750;
}

.person-card small {
    color: #667085;
}

.presence-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #475467;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 850;
}

.presence-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #98a2b3;
}

.presence-badge--online {
    color: #166534;
    background: #dcfce7;
}

.presence-badge--online::before {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.presence-badge--recent {
    color: #1d4ed8;
    background: #dbeafe;
}

.presence-badge--recent::before {
    background: #2563eb;
}

.presence-badge--away {
    color: #92400e;
    background: #fef3c7;
}

.presence-badge--away::before {
    background: #f59e0b;
}

.profile-workspace .profile-media-card {
    min-height: 190px;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .90), rgba(17, 24, 39, .54)),
        linear-gradient(135deg, #0f766e, #2563eb 52%, #a16207);
}

.profile-workspace .profile-media-card h2 {
    font-size: 30px;
}

.profile-workspace .profile-meta span {
    background: #f2f4f7;
}

.profile-workspace .profile-description {
    font-size: 16px;
}

.ticket-priority {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #344054;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.ticket-priority--high,
.ticket-priority--urgent {
    color: #fff;
    background: #dc2626;
}

.ticket-priority--medium {
    color: #713f12;
    background: #fef3c7;
}

.ticket-priority-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.ticket-priority-guide article {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e6edf6;
    border-radius: var(--radius-sm);
}

.ticket-priority-guide strong {
    display: block;
    margin-bottom: 5px;
    color: #101828;
}

.ticket-priority-guide p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.35;
}

.image-preview-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.image-preview-strip span {
    aspect-ratio: 4 / 3;
    display: block;
    background: #e0f2fe center / cover no-repeat;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin-left: auto;
    margin-right: auto;
}

.ticket-command-center {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 18px;
}

.ticket-command-center article {
    position: relative;
    min-height: 136px;
    display: grid;
    align-content: end;
    gap: 5px;
    overflow: hidden;
    padding: 20px;
    color: #fff;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(37, 99, 235, .72)),
        #0f172a;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}

.ticket-command-center article::before {
    content: "";
    position: absolute;
    right: -28px;
    top: -30px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .09);
}

.ticket-command-center span {
    position: relative;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ticket-command-center strong {
    position: relative;
    font-size: 38px;
    line-height: 1;
}

.ticket-command-center small {
    position: relative;
    color: rgba(255, 255, 255, .78);
}

.ticket-board {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.ticket-list {
    width: min(100%, 1180px);
    display: grid;
    gap: 12px;
    margin: 0 auto;
}

.ticket-row {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(160px, auto) minmax(150px, auto);
    gap: 16px;
    align-items: center;
    padding: 18px 20px 18px 24px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ticket-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #2563eb;
}

.ticket-row--warning::before {
    background: #f59e0b;
}

.ticket-row--breached::before {
    background: #dc2626;
}

.ticket-row--closed::before {
    background: #98a2b3;
}

.ticket-row:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.ticket-requester-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.ticket-requester-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-row__main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ticket-row__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.ticket-row__main strong {
    overflow: hidden;
    color: #101828;
    font-size: 18px;
    line-height: 1.24;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-row__main em {
    color: #667085;
    font-style: normal;
    font-size: 13px;
}

.ticket-row__badges,
.ticket-row__sla {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.ticket-row__badges {
    justify-content: end;
}

.ticket-row__badges .ticket-status,
.ticket-row__badges .ticket-priority {
    width: fit-content;
}

.ticket-row__sla small {
    max-width: 170px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-card {
    min-height: 210px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ticket-board--elevated .ticket-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.ticket-board--elevated .ticket-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #2563eb;
}

.ticket-card--warning::before {
    background: #f59e0b;
}

.ticket-card--breached::before {
    background: #dc2626;
}

.ticket-card--closed::before {
    background: #98a2b3;
}

.ticket-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-2px);
}

.ticket-card__top,
.ticket-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticket-id {
    color: #2563eb;
    font-weight: 900;
}

.ticket-card strong {
    color: #101828;
    font-size: 19px;
    line-height: 1.24;
}

.ticket-card__main {
    display: grid;
    gap: 6px;
}

.ticket-card__main em {
    color: #667085;
    font-style: normal;
    font-size: 13px;
}

.ticket-card__meta,
.ticket-card__footer {
    color: #667085;
    font-size: 13px;
}

.ticket-sla-strip,
.ticket-timeline {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.ticket-sla-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ticket-sla-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.ticket-sla-card span,
.ticket-sla-card small {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.ticket-sla-card strong {
    display: block;
    margin: 8px 0 4px;
    color: #101828;
    font-size: 26px;
}

.ticket-sla-card--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ticket-sla-card--warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.ticket-sla-card--breached {
    border-color: #fecaca;
    background: #fef2f2;
}

.ticket-sla-card--closed {
    background: #f8fafc;
}

.ticket-sla-pill {
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 900;
}

.ticket-sla-pill--warning {
    color: #92400e;
    background: #fef3c7;
}

.ticket-sla-pill--breached {
    color: #991b1b;
    background: #fee2e2;
}

.ticket-sla-pill--closed {
    color: #475467;
    background: #e4e7ec;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 19px;
    width: 2px;
    background: #e4e7ec;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
}

.timeline-item > div {
    padding: 14px;
    background: #fbfcfd;
    border: 1px solid #eef0f3;
    border-radius: 10px;
}

.timeline-item--internal > div {
    border-color: #fde68a;
    background: #fffbeb;
}

.timeline-dot,
.timeline-avatar {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
}

.timeline-dot::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.timeline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item strong,
.timeline-item small {
    display: block;
}

.timeline-item small {
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
}

.timeline-item p {
    margin: 8px 0 0;
    color: #344054;
}

.timeline-comment-form {
    display: grid;
    gap: 10px;
}

.ticket-status {
    padding: 5px 9px;
    border-radius: 999px;
    color: #344054;
    background: #eef2f6;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ticket-status--open {
    color: #1d4ed8;
    background: #dbeafe;
}

.ticket-status--in_progress {
    color: #92400e;
    background: #fef3c7;
}

.ticket-status--resolved {
    color: #047857;
    background: #d1fae5;
}

.ticket-status--closed {
    color: #475467;
    background: #e4e7ec;
}

.ticket-attachments {
    width: min(100%, 1180px);
    margin: 18px auto 0;
}

.ticket-attachment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ticket-attachment-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e4e7ec;
}

.ticket-attachment-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    text-align: center;
    background: #fff;
    border: 1px dashed #b9c7dc;
    border-radius: 10px;
}

.empty-state strong {
    display: block;
    font-size: 22px;
}

.empty-state p {
    margin: 8px auto 18px;
    max-width: 440px;
    color: #667085;
}

.document-hero,
.document-sections,
.document-detail {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.document-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(37, 99, 235, .64)),
        linear-gradient(135deg, #0f172a, #2563eb 58%, #14b8a6);
}

.document-hero h2 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.document-hero p:last-child {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.document-sections {
    display: grid;
    gap: 18px;
}

.document-section {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

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

.folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.folder-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fbfcfd;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.folder-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-2px);
}

.folder-icon {
    --folder-color: #2563eb;
    position: relative;
    width: 74px;
    height: 56px;
    display: block;
    margin-top: 10px;
    border-radius: 8px;
    background: var(--folder-color);
    box-shadow: inset 0 -14px 24px rgba(15, 23, 42, .18);
}

.folder-icon::before {
    content: "";
    position: absolute;
    left: 7px;
    top: -12px;
    width: 34px;
    height: 16px;
    border-radius: 7px 7px 0 0;
    background: var(--folder-color);
}

.folder-icon--large {
    width: 112px;
    height: 84px;
}

.folder-icon--large::before {
    width: 52px;
    height: 22px;
    top: -16px;
}

.folder-card small,
.folder-card em,
.folder-card p {
    display: block;
}

.folder-card small {
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.folder-card strong {
    display: block;
    margin: 7px 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.2;
}

.folder-card em {
    color: #667085;
    font-style: normal;
}

.folder-card p {
    margin: 10px 0 0;
    color: #344054;
    font-weight: 800;
}

.document-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    min-height: 148px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fbfcfd;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.document-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.document-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #2563eb;
    font-weight: 950;
    box-shadow: inset 0 -12px 20px rgba(15, 23, 42, .16);
}

.document-card small,
.document-card em {
    display: block;
}

.document-card small {
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.document-card strong {
    display: block;
    margin: 6px 0;
    color: #101828;
    font-size: 18px;
    line-height: 1.24;
}

.document-card em,
.document-card p {
    color: #667085;
    font-style: normal;
}

.document-card p {
    margin: 8px 0 0;
}

.document-hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.document-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.document-overview-grid article {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.document-overview-grid span,
.policy-log-entry small,
.policy-log-entry em,
.policy-log-meta {
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 800;
}

.document-overview-grid strong {
    color: var(--color-text);
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin: .45rem 0;
}

.document-overview-grid p {
    color: var(--color-muted);
    margin: 0;
}

.policy-log-hero {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(14, 165, 233, .78)),
        radial-gradient(circle at top right, rgba(255, 255, 255, .38), transparent 34%);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.policy-log-hero .app-kicker,
.policy-log-hero p {
    color: rgba(255, 255, 255, .82);
}

.policy-log-hero h2 {
    max-width: 820px;
}

.policy-log {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
}

.policy-log::before {
    background: linear-gradient(var(--color-primary), rgba(37, 99, 235, .08));
    bottom: .75rem;
    content: "";
    left: 1.2rem;
    position: absolute;
    top: .75rem;
    width: 2px;
}

.policy-log-entry {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: inherit;
    display: grid;
    gap: 1rem;
    grid-template-columns: 2.4rem 1fr;
    padding: 1rem;
    position: relative;
    text-decoration: none;
}

.policy-log-entry:hover {
    border-color: rgba(37, 99, 235, .38);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.policy-log-marker {
    align-items: center;
    background: var(--color-primary);
    border: 4px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .24);
    color: #fff;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    height: 2.4rem;
    justify-content: center;
    position: relative;
    width: 2.4rem;
    z-index: 1;
}

.policy-log-marker::before {
    content: var(--policy-step);
}

.policy-log-body {
    display: grid;
    gap: .35rem;
}

.policy-log-body strong {
    color: var(--color-text);
    font-size: 1.05rem;
}

.policy-log-body p {
    color: var(--color-muted);
    margin: 0;
}

.policy-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .35rem;
}

.document-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
}

.folder-open-hero {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    align-items: center;
    margin: 0 auto 18px;
    padding: 28px;
    color: #fff;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(37, 99, 235, .58)),
        linear-gradient(135deg, #0f172a, #2563eb 56%, #14b8a6);
}

.folder-open-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
}

.folder-open-hero p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.document-preview-panel {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.document-preview-panel--reader {
    grid-template-columns: 1fr;
    gap: 18px;
}

.document-reader-header {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.document-reader-header p {
    margin-bottom: 0;
}

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

.document-reader {
    min-height: 520px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, #f8fafc, #eef4ff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.document-reader iframe,
.document-reader img {
    width: 100%;
    height: 100%;
    border: 0;
}

.document-reader iframe {
    min-height: 640px;
    background: #fff;
}

.document-reader img {
    max-height: 680px;
    object-fit: contain;
    padding: 18px;
}

.document-reader-empty {
    max-width: 420px;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 34px;
    text-align: center;
}

.document-reader-empty strong {
    color: var(--color-heading);
    font-size: 22px;
}

.document-reader-empty p {
    margin: 0;
    color: var(--color-muted);
}

.document-icon--large {
    width: 96px;
    height: 120px;
    border-radius: 14px;
    font-size: 34px;
}

.document-preview-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.document-preview-panel p {
    max-width: 720px;
    color: #667085;
    font-size: 17px;
    line-height: 1.6;
}

.search-hero,
.search-summary,
.search-results {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.search-hero {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .62)),
        linear-gradient(135deg, #0f172a, #2563eb 58%, #14b8a6);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}

.search-hero h2 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.06;
}

.search-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
}

.search-box input {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    color: #101828;
    border: 0;
    border-radius: 8px;
    background: #fff;
    outline: none;
}

.search-box .btn {
    min-height: 46px;
    padding-left: 18px;
    padding-right: 18px;
}

.search-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.search-summary strong {
    color: #101828;
}

.search-summary span {
    color: #667085;
}

.search-summary .btn {
    margin-left: auto;
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

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

.search-result-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    background: #fbfcfd;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.search-result-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.search-result-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 14px;
    background: #2563eb;
    font-weight: 950;
}

.search-result-card--people .search-result-icon {
    border-radius: 50%;
}

.search-result-card--documents .search-result-icon {
    background: #0f766e;
}

.search-result-card--news .search-result-icon {
    background: #7c3aed;
}

.search-result-card--tickets .search-result-icon {
    background: #f59e0b;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-card small,
.search-result-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-card small {
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.search-result-card strong {
    display: block;
    overflow: hidden;
    margin: 5px 0;
    color: #101828;
    font-size: 17px;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-card em {
    color: #667085;
    font-style: normal;
    font-size: 13px;
}

.search-empty {
    padding: 18px;
    color: #667085;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.activity-hero,
.activity-timeline {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.activity-hero {
    min-height: 230px;
    display: flex;
    align-items: end;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .55)),
        linear-gradient(135deg, #0f172a, #2563eb 56%, #0f766e);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}

.activity-hero h2 {
    max-width: 760px;
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.activity-hero p:last-child {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.activity-timeline {
    position: relative;
    display: grid;
    gap: 12px;
}

.activity-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 27px;
    width: 2px;
    background: #dbeafe;
}

.activity-card {
    position: relative;
    z-index: 1;
    min-height: 96px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(130px, auto);
    gap: 16px;
    align-items: center;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.activity-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.activity-card__avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #2563eb;
    font-weight: 950;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .16);
}

.activity-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card__body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.activity-card small,
.activity-card em,
.activity-card__actor {
    color: #667085;
}

.activity-card small {
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.activity-card strong {
    overflow: hidden;
    color: #101828;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-card em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-card__actor {
    justify-self: end;
    font-size: 13px;
    font-weight: 800;
}

.notifications-hero,
.notification-list {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.notifications-hero {
    min-height: 210px;
    display: flex;
    align-items: end;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .58)),
        linear-gradient(135deg, #0f172a, #2563eb 54%, #0f766e);
    box-shadow: var(--shadow-md);
}

.notifications-hero h2 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.notifications-hero p:last-child {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

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

.notification-card {
    position: relative;
    min-height: 100px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.notification-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.notification-card--unread {
    border-color: #93c5fd;
    background:
        linear-gradient(90deg, rgba(219, 234, 254, .48), rgba(255, 255, 255, .96)),
        #fff;
}

.notification-card--unread::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--color-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.notification-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .16);
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.notification-body small {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.notification-body strong {
    overflow: hidden;
    color: var(--color-heading);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-body em {
    overflow: hidden;
    color: var(--color-muted);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-new {
    padding: 6px 10px;
    color: #1d4ed8;
    border-radius: 999px;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

/* Global visual polish */
.app-shell {
    background:
        linear-gradient(180deg, rgba(219, 234, 254, .56), rgba(219, 234, 254, 0) 360px),
        var(--color-bg);
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .24), rgba(15, 118, 110, .10) 36%, rgba(15, 23, 42, 0) 78%),
        var(--sidebar-bg);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08), 12px 0 34px rgba(15, 23, 42, .08);
}

.app-logo {
    position: relative;
    padding-left: 14px;
    color: #fff;
}

.app-logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-primary), #14b8a6);
}

.app-nav {
    gap: 5px;
}

.app-nav a {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    color: rgba(226, 232, 240, .72);
    border: 1px solid transparent;
}

.app-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .96), rgba(14, 116, 144, .82));
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .10);
    box-shadow: none;
}

.sidebar-account {
    padding: 16px 0 0;
}

.sidebar-user {
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-avatar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.sidebar-logout {
    border-radius: var(--radius-sm);
}

.app-main {
    padding: 32px;
}

.app-topbar {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.app-kicker {
    color: #64748b;
    letter-spacing: .04em;
}

.app-topbar h1,
.section-heading h2,
.profile-heading h1,
.document-preview-panel h2 {
    color: var(--color-heading);
}

.btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary-dark);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
    box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.btn-outline-secondary {
    color: #344054;
    border-color: var(--color-border-strong);
    background: #fff;
}

.form-control,
.form-select,
input,
select,
textarea {
    border-color: var(--color-border);
    border-radius: var(--radius-xs);
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #93c5fd;
    box-shadow: var(--shadow-focus);
}

.info-panel,
.metric-card,
.admin-card,
.document-section,
.document-preview-panel,
.search-section,
.search-summary,
.ticket-card,
.ticket-row,
.ticket-sla-card,
.activity-card,
.news-feature,
.news-card,
.profile-card,
.empty-state {
    background: rgba(255, 255, 255, .94);
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.info-panel,
.document-section,
.search-section {
    padding: 22px;
}

.admin-card,
.metric-card,
.document-card,
.folder-card,
.search-result-card,
.announcement-list a,
.quick-links a,
.activity-mini-list a,
.mini-list span,
.permission-check {
    background: var(--color-surface-soft);
    border-color: #e6edf6;
}

.admin-card:hover,
.document-card:hover,
.folder-card:hover,
.search-result-card:hover,
.announcement-list a:hover,
.quick-links a:hover,
.activity-mini-list a:hover,
.ticket-card:hover,
.ticket-row:hover,
.activity-card:hover,
.news-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
}

.quick-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, #172033, #1d4ed8);
}

.filter-bar {
    background: rgba(255, 255, 255, .92);
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.news-carousel,
.news-feature,
.profile-cover,
.document-hero,
.folder-open-hero,
.search-hero,
.activity-hero,
.ticket-command-center article,
.profile-workspace .profile-media-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.news-slide,
.document-hero,
.folder-open-hero,
.search-hero,
.activity-hero,
.profile-workspace .profile-media-card {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .58)),
        linear-gradient(135deg, #0f172a, #2563eb 54%, #0f766e);
}

.news-tag,
.ticket-status,
.ticket-priority,
.role-badge,
.presence-badge,
.usage-pills span,
.profile-meta span {
    border: 1px solid rgba(15, 23, 42, .06);
}

.table,
table {
    --bs-table-bg: transparent;
}

table {
    overflow: hidden;
    border-color: var(--color-border);
    border-radius: var(--radius-md);
}

thead th {
    color: #475467;
    background: #f8fafc;
    border-bottom-color: var(--color-border);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

tbody td {
    border-color: #eef2f7;
    vertical-align: middle;
}

tbody tr:hover {
    background: #f8fbff;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.profile-header,
.news-detail__body,
.news-detail__poster,
.ticket-timeline,
.ticket-attachments {
    border-color: var(--color-border);
    box-shadow: var(--shadow-xs);
}

.empty-state {
    border-color: #bfdbfe;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, .34), rgba(255, 255, 255, .96)),
        #fff;
}

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

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(15, 23, 42, .44);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        width: min(82vw, 292px);
        height: 100vh;
        padding: 68px 18px 18px;
        transform: translateX(-102%);
        transition: transform .2s ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-logo {
        margin-bottom: 22px;
    }

    .app-nav {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 72px 18px 22px;
    }

    .news-slide {
        min-height: 420px;
        align-items: flex-end;
        justify-content: flex-end;
        flex-direction: column;
    }

    .news-slide__flyer {
        width: min(76vw, 260px);
        max-height: 220px;
        order: -1;
        align-self: flex-start;
    }

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

    .info-panel--wide {
        grid-row: auto;
    }

    .form-grid,
    .image-editor-grid,
    .image-position-controls,
    .permission-grid,
    .document-overview-grid,
    .executive-grid,
    .filter-bar,
    .search-hero,
    .search-box,
    .search-result-list,
    .news-builder-preview,
    .news-list-page,
    .admin-grid,
    .profile-social-grid,
    .ticket-sla-strip,
    .ticket-command-center,
    .document-grid,
    .folder-grid,
    .document-detail,
    .people-grid,
    .ticket-row,
    .activity-card,
    .notification-card,
    .ticket-priority-guide,
    .ticket-board,
    .ticket-attachment-grid {
        grid-template-columns: 1fr;
    }

    .ticket-row {
        gap: 12px;
        padding: 18px;
    }

    .ticket-row__badges,
    .ticket-row__sla {
        justify-items: start;
    }

    .ticket-row__main strong {
        white-space: normal;
    }

    .image-preview-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-hero {
        min-height: 360px;
        align-items: end;
        padding: 22px;
    }

    .search-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-summary .btn {
        margin-left: 0;
    }

    .search-result-card strong,
    .search-result-card small,
    .search-result-card em {
        white-space: normal;
    }

    .activity-timeline::before {
        display: none;
    }

    .activity-card {
        justify-items: start;
    }

    .activity-card__actor {
        justify-self: start;
    }

    .activity-card strong,
    .activity-card em {
        white-space: normal;
    }

    .notification-body strong,
    .notification-body em {
        white-space: normal;
    }

    .document-preview-panel {
        grid-template-columns: 1fr;
    }

    .document-reader-header {
        grid-template-columns: 1fr;
    }

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

    .document-reader {
        min-height: 360px;
    }

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

    .news-feature,
    .news-card--split,
    .news-detail__hero,
    .news-detail--split .news-detail__content,
    .news-detail--editorial .news-detail__content {
        grid-template-columns: 1fr;
    }

    .news-feature__media {
        min-height: 260px;
        order: -1;
    }

    .news-card--split {
        grid-column: auto;
    }

    .news-card--poster {
        grid-row: auto;
        grid-template-rows: 260px auto;
    }

    .news-detail__hero {
        min-height: 430px;
    }

    .news-detail__flyer {
        width: min(100%, 300px);
    }

    .news-detail__content {
        padding: 20px 18px 40px;
    }

    .news-detail__body {
        padding: 22px;
        font-size: 16px;
    }

    .profile-header {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .profile-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .profile-workspace .profile-header,
    .profile-workspace .profile-content,
    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-workspace .profile-header {
        padding: 0 18px 20px;
    }
}
