body {
    min-height: 100vh;
    background: var(--bs-body-bg);
    overflow-x: hidden;
}

.eyebrow {
    color: var(--bs-secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-header {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.site-title {
    color: #111827;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
    margin: 0;
    text-transform: none;
}

.site-title-subpage {
    font-size: clamp(1.35rem, 2.5vw, 2.4rem);
    line-height: 1;
}

.user-menu {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(17, 24, 39, 0.06);
    display: grid;
    gap: 2px 12px;
    grid-template-columns: auto auto;
    padding: 10px;
}

.user-name {
    color: #111827;
    font-weight: 800;
    grid-column: 1;
    line-height: 1.1;
}

.user-role {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    grid-column: 1;
    line-height: 1.1;
}

.user-menu .btn {
    align-self: center;
    grid-column: 2;
    grid-row: 1 / span 2;
}

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

.module-button {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 244, 246, 0.82)),
        linear-gradient(90deg, #1f2937, #2563eb 64%, #f59e0b);
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
    color: #111827;
    display: grid;
    gap: 34px;
    min-height: 190px;
    padding: 24px;
    position: relative;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.module-button:hover,
.module-button:focus {
    border-color: rgba(31, 41, 55, 0.3);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
    color: #111827;
    outline: none;
    transform: translateY(-3px);
}

.module-button::before {
    background: linear-gradient(90deg, #1f2937, #2563eb 64%, #f59e0b);
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 24px;
    position: absolute;
    right: 24px;
    top: 20px;
}

.module-button-index {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 18px;
}

.module-button-title {
    align-self: end;
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: none;
}

.module-button-arrow {
    align-items: center;
    background: #1f2937;
    border-radius: 999px;
    bottom: 20px;
    color: #ffffff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 20px;
    width: 36px;
}

.module-back {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
}

.module-navbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.module-shell {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.68), rgba(31, 41, 55, 0.32)),
        url("../img/login-media-bg.png") center / cover no-repeat;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
    color: #ffffff;
    display: flex;
    flex-direction: row;
    gap: 14px;
    height: 66px;
    justify-content: center;
    min-height: 66px;
    padding: 10px 22px;
    text-align: left;
}

.module-shell h2 {
    color: #ffffff;
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
    text-transform: none;
    white-space: nowrap;
}

.module-shell-mark {
    align-items: end;
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
    height: 30px;
    margin-bottom: 0;
}

.module-shell-mark span {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    display: block;
    width: 7px;
}

.module-shell-mark span:nth-child(1) {
    height: 14px;
}

.module-shell-mark span:nth-child(2) {
    background: #2563eb;
    height: 28px;
}

.module-shell-mark span:nth-child(3) {
    background: #f59e0b;
    height: 20px;
}

.events-admin {
    margin-top: 24px;
}

.event-form {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 0.7fr) auto;
    padding: 14px;
}

.event-form textarea {
    grid-column: 1 / span 5;
    resize: vertical;
}

.event-form .btn {
    align-self: stretch;
    grid-column: 6;
    grid-row: 1 / span 2;
}

.event-calendar {
    margin-top: 24px;
}

.calendar-heading {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-heading h3 {
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1;
    margin: 0;
}

.calendar-heading span {
    color: #6b7280;
    font-weight: 800;
}

.calendar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.calendar-actions strong {
    color: #111827;
    font-weight: 800;
    min-width: 54px;
    text-align: center;
}

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

.calendar-month {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
    display: none;
    padding: 14px;
}

.calendar-month.is-active {
    display: block;
}

.calendar-month h4 {
    display: none;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.calendar-week {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 4px;
}

.calendar-week-head {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    min-height: clamp(72px, 9vh, 98px);
    overflow: hidden;
    padding: 5px;
    position: relative;
}

.calendar-day > span {
    color: #374151;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.calendar-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.has-event {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.28);
}

.calendar-day.is-today {
    background: #ffffff;
    border-color: #111827;
    box-shadow: inset 0 0 0 2px #111827, 0 12px 30px rgba(17, 24, 39, 0.08);
}

.calendar-day.is-today > span {
    align-items: center;
    background: #111827;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin-bottom: 5px;
    width: 24px;
}

.calendar-day.is-today::after {
    color: #111827;
    content: "Hoy";
    font-size: 0.64rem;
    font-weight: 800;
    position: absolute;
    right: 6px;
    top: 6px;
    text-transform: uppercase;
}

.event-dot {
    background: #1f2937;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    display: block;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 3px;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 5px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.event-dot:hover {
    background: #111827;
}

.event-drawer {
    background: rgba(17, 24, 39, 0.34);
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.22s ease;
    z-index: 35;
}

.event-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.event-drawer-panel {
    background: #ffffff;
    border-right: 1px solid var(--bs-border-color);
    box-shadow: 28px 0 80px rgba(17, 24, 39, 0.18);
    height: 100vh;
    min-width: 360px;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: 30vw;
}

.event-drawer.is-open .event-drawer-panel {
    transform: translateX(0);
}

.event-drawer-panel h3 {
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 42px 22px 0;
}

.event-drawer .event-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr;
    padding: 0;
}

.event-drawer .event-form .form-label {
    color: #374151;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 8px 0 0;
}

.event-drawer .event-form textarea,
.event-drawer .event-form .btn {
    grid-column: 1;
    grid-row: auto;
}

.event-modal {
    align-items: center;
    background: rgba(17, 24, 39, 0.48);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 30;
}

.event-modal.is-open {
    display: flex;
}

.event-modal-panel {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.25);
    max-width: 520px;
    padding: 28px;
    position: relative;
    width: min(100%, 520px);
}

.event-modal-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: #374151;
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.event-modal-status {
    color: #2563eb;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.event-modal-panel h3 {
    color: #111827;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 0 42px 14px 0;
}

.event-modal-panel p {
    color: #374151;
    font-weight: 700;
    margin: 0 0 10px;
}

.event-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.swal2-popup.central-swal {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.18);
    color: #111827;
    padding: 28px;
}

.swal2-popup.central-swal .swal2-title {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.swal2-popup.central-swal .swal2-html-container {
    color: #6b7280;
    font-weight: 700;
}

.swal2-popup.central-swal .swal2-confirm,
.swal2-popup.central-swal .swal2-cancel {
    border-radius: 8px;
    font-weight: 800;
    padding: 0.72rem 1rem;
}

.swal2-popup.central-swal .swal2-confirm {
    background: #1f2937;
}

.swal2-popup.central-swal .swal2-confirm:focus,
.swal2-popup.central-swal .swal2-cancel:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 41, 55, 0.18);
}

.blog-magazine {
    margin-top: 24px;
}

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

.blog-toolbar h3 {
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1;
    margin: 0 0 6px;
}

.blog-toolbar span {
    color: #6b7280;
    font-weight: 800;
}

.blog-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.blog-filter {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 34px;
    padding: 0 12px;
}

.blog-filter:hover,
.blog-filter.is-active {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.blog-grid {
    display: grid;
    gap: 6px;
}

.blog-result {
    border-bottom: 1px solid var(--bs-border-color);
    display: block;
    padding: 18px 0;
    text-decoration: none;
}

.blog-result span {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-result h4 {
    color: #1a0dab;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.18;
    margin: 5px 0 6px;
}

.blog-result p {
    color: #374151;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 6px;
}

.blog-result small {
    color: #6b7280;
    font-weight: 700;
}

.blog-result:hover {
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
    padding-left: 12px;
    padding-right: 12px;
}

.blog-result:hover h4 {
    color: #111827;
    text-decoration: underline;
}

.blog-loader {
    color: #6b7280;
    font-weight: 800;
    margin: 18px 0 0;
    text-align: center;
}

.blog-sentinel {
    height: 1px;
}

.blog-drawer .event-drawer-panel {
    width: 38vw;
}

.blog-schema-form h4 {
    border-top: 1px solid var(--bs-border-color);
    color: #111827;
    font-size: 1rem;
    margin: 16px 0 4px;
    padding-top: 16px;
}

.blog-schema-form h4:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.post-detail {
    margin-top: 24px;
}

.post-detail-head {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 24px;
}

.post-detail-head span {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post-detail-head h2 {
    color: #111827;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    margin: 10px 0 14px;
}

.post-detail-head p {
    color: #374151;
    font-size: 1.05rem;
    font-weight: 700;
    max-width: 860px;
}

.post-detail-head small {
    color: #6b7280;
    font-weight: 800;
}

.post-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.post-section {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 22px 0;
}

.post-section h3 {
    color: #111827;
    font-size: 1.2rem;
    margin: 0 0 12px;
}

.post-section p {
    color: #374151;
    font-weight: 700;
    line-height: 1.58;
    margin: 0 0 10px;
    max-width: 920px;
}

.post-section dl {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.post-section dt {
    color: #6b7280;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post-section dd {
    color: #111827;
    font-weight: 800;
    margin: 0;
}

.ticket-desk {
    margin-top: 24px;
}

.ticket-intro {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 18px;
}

.ticket-intro p {
    color: #374151;
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
    max-width: 860px;
}

.ticket-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ticket-types span {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    color: #374151;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 10px;
}

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

.ticket-item {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    padding: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ticket-item:hover {
    border-color: rgba(31, 41, 55, 0.24);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
    transform: translateY(-2px);
}

.ticket-item.is-overdue {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 24px 60px rgba(220, 38, 38, 0.12);
}

.ticket-item.is-warning {
    border-color: rgba(245, 158, 11, 0.42);
}

.ticket-item.is-urgent {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 24px 60px rgba(220, 38, 38, 0.1);
}

.ticket-main > span {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-main h3 {
    color: #111827;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 6px 0 8px;
}

.markdown-render,
.ticket-side p {
    color: #374151;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.markdown-render p,
.markdown-render ul,
.markdown-render ol,
.markdown-render blockquote {
    margin: 0 0 8px;
}

.markdown-render ul,
.markdown-render ol {
    padding-left: 20px;
}

.markdown-render a {
    color: #2563eb;
    font-weight: 800;
}

.markdown-render strong {
    color: #111827;
}

.ticket-response {
    background: #f3f4f6;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 10px;
}

.ticket-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ticket-files a {
    background: #f3f4f6;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 10px;
    text-decoration: none;
}

.ticket-side {
    align-content: start;
    display: grid;
    gap: 8px;
    justify-items: start;
}

.ticket-side strong {
    background: #1f2937;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 6px 10px;
}

.ticket-item.is-overdue .ticket-side strong {
    background: #dc2626;
}

.ticket-countdown {
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 10px;
}

.ticket-countdown.is-ok {
    background: #16a34a;
}

.ticket-countdown.is-warning {
    background: #f59e0b;
}

.ticket-countdown.is-urgent,
.ticket-countdown.is-overdue {
    background: #dc2626;
}

.ticket-side small {
    color: #6b7280;
    font-weight: 800;
}

.ticket-drawer .event-drawer-panel {
    width: 34vw;
}

.markdown-form .form-help {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
}

.markdown-form input[readonly] {
    background: #f3f4f6;
    color: #374151;
    cursor: default;
    font-weight: 800;
}

.EasyMDEContainer {
    border-radius: 8px;
    overflow: hidden;
}

.EasyMDEContainer .CodeMirror {
    border-color: var(--bs-border-color);
    color: #111827;
    min-height: 150px;
}

.editor-toolbar {
    border-color: var(--bs-border-color);
}

.editor-toolbar button {
    color: #374151 !important;
    font-size: 0 !important;
    line-height: 1;
}

.editor-toolbar button::before {
    align-items: center;
    color: #374151;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.editor-toolbar button:hover::before,
.editor-toolbar button.active::before {
    color: #111827;
}

.editor-toolbar .cm-md-bold::before {
    content: "B";
}

.editor-toolbar .cm-md-italic::before {
    content: "I";
    font-style: italic;
}

.editor-toolbar .cm-md-heading::before {
    content: "H";
}

.editor-toolbar .cm-md-quote::before {
    content: "\"";
    font-size: 1rem;
}

.editor-toolbar .cm-md-list::before {
    content: "\2022";
    font-size: 1.2rem;
}

.editor-toolbar .cm-md-numbered::before {
    content: "1.";
}

.editor-toolbar .cm-md-link::before {
    content: "@";
}

.editor-toolbar .cm-md-preview::before {
    content: "V";
}

.editor-preview,
.editor-preview-side {
    background: #ffffff;
    color: #374151;
}

.asset-library {
    margin-top: 24px;
}

.asset-toolbar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.asset-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.asset-filter {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 34px;
    padding: 0 12px;
}

.asset-filter:hover,
.asset-filter.is-active {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.folder-grid,
.asset-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.folder-grid {
    margin-bottom: 18px;
}

.folder-card,
.asset-card {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.folder-card {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
}

.folder-card:hover,
.folder-card.is-active,
.asset-card:hover {
    border-color: rgba(31, 41, 55, 0.24);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
    transform: translateY(-2px);
}

.folder-icon {
    background: #f59e0b;
    border-radius: 6px;
    height: 34px;
    position: relative;
    width: 48px;
}

.folder-icon::before {
    background: #fbbf24;
    border-radius: 6px 6px 0 0;
    content: "";
    height: 12px;
    left: 4px;
    position: absolute;
    top: -7px;
    width: 24px;
}

.folder-card h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.folder-card small {
    color: #6b7280;
    font-weight: 800;
}

.asset-card {
    display: grid;
    gap: 12px;
    min-height: 280px;
}

.asset-type-icon {
    align-items: center;
    background: #1f2937;
    border-radius: 8px;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    position: relative;
    width: 54px;
}

.asset-type-icon::after {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.asset-type-icon.is-document::before {
    background: #ffffff;
    border-radius: 2px;
    content: "";
    height: 26px;
    width: 20px;
}

.asset-type-icon.is-document::after {
    content: "DOC";
    position: absolute;
}

.asset-type-icon.is-photo {
    background: #2563eb;
}

.asset-type-icon.is-photo::before {
    border-bottom: 16px solid #ffffff;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    bottom: 13px;
    content: "";
    position: absolute;
}

.asset-type-icon.is-photo::after {
    background: #ffffff;
    border-radius: 999px;
    content: "";
    height: 7px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 7px;
}

.asset-type-icon.is-video {
    background: #16a34a;
}

.asset-type-icon.is-video::before {
    border-bottom: 12px solid transparent;
    border-left: 18px solid #ffffff;
    border-top: 12px solid transparent;
    content: "";
    margin-left: 4px;
}

.asset-copy span {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.asset-copy h3 {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 3px 0;
}

.asset-copy p {
    color: #374151;
    font-weight: 700;
    margin: 0 0 4px;
}

.asset-copy strong {
    color: #111827;
    display: block;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.asset-copy small {
    color: #6b7280;
    font-weight: 800;
}

.asset-card-actions {
    align-items: center;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asset-drawer .event-drawer-panel {
    width: 32vw;
}

.priority-agenda,
.metric-panel {
    margin-top: 24px;
}

.agenda-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.agenda-tab {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0 14px;
}

.agenda-tab:hover,
.agenda-tab.is-active {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.agenda-pane {
    display: none;
}

.agenda-pane.is-active {
    display: block;
}

.agenda-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.agenda-form,
.agenda-item,
.metric-table {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
}

.agenda-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 1.1fr 0.8fr 0.6fr auto;
    margin-bottom: 18px;
    padding: 14px;
}

.agenda-form textarea {
    grid-column: 1 / span 3;
}

.agenda-form .btn {
    align-self: stretch;
    grid-column: 4;
    grid-row: 1 / span 2;
}

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

.agenda-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.agenda-item:hover {
    border-color: rgba(31, 41, 55, 0.24);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
    transform: translateY(-2px);
}

.agenda-item > span {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-item h3 {
    color: #111827;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0;
}

.agenda-item p {
    color: #374151;
    font-weight: 700;
    margin: 0;
}

.agenda-item small,
.agenda-submitted {
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 800;
}

.agenda-submit-form,
.agenda-review-form {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    margin-top: 8px;
}

.agenda-submit-form textarea {
    min-height: 42px;
    resize: vertical;
}

.agenda-submit-form .btn,
.agenda-review-form .btn {
    align-self: stretch;
}

.agenda-review-item a,
.agenda-submitted a {
    color: #2563eb;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.agenda-inline-action {
    justify-self: start;
    margin-top: 4px;
}

.priority-drawer .event-drawer-panel {
    width: 30vw;
}

.priority-drawer input[readonly] {
    background: #f3f4f6;
    color: #374151;
    cursor: default;
    font-weight: 800;
}

.agenda-submitted {
    align-items: center;
    background: #f3f4f6;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.agenda-submitted strong {
    background: #1f2937;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 5px 9px;
}

.agenda-submitted p {
    flex-basis: 100%;
}

.agenda-empty {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: #6b7280;
    font-weight: 800;
    padding: 18px;
}

.metric-table {
    overflow: hidden;
}

.metric-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 1fr;
    padding: 14px 16px;
}

.metric-row + .metric-row {
    border-top: 1px solid var(--bs-border-color);
}

.metric-head {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-row strong {
    color: #111827;
    font-weight: 800;
}

.metric-row span {
    color: #374151;
    font-weight: 800;
}

.metric-row span:last-child {
    align-items: center;
    background: #f3f4f6;
    border-radius: 999px;
    display: flex;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.metric-row span:last-child i {
    background: linear-gradient(90deg, #1f2937, #2563eb);
    display: block;
    height: 100%;
}

.metric-row span:last-child b {
    color: #111827;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.home-hero {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    padding: clamp(20px, 3vw, 32px);
}

.home-hero-copy p {
    color: var(--bs-secondary-color);
    max-width: 760px;
}

.home-principles {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 18px;
}

.home-principles ul,
.module-feature-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-principles li,
.module-feature-list li {
    color: var(--bs-secondary-color);
    font-size: 0.94rem;
    line-height: 1.45;
    padding-left: 18px;
    position: relative;
}

.home-principles li::before,
.module-feature-list li::before {
    background: #1f2937;
    border-radius: 999px;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 0.58rem;
    width: 6px;
}

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

.access-card {
    min-height: 100%;
}

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

.access-list li {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 0.95rem;
    gap: 8px;
}

.access-list li::before {
    background: #d1d5db;
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 6px;
    width: 6px;
}

.access-list .access-parent {
    color: var(--bs-body-color);
    font-weight: 800;
}

.access-list .access-parent::before {
    background: #1f2937;
    height: 8px;
    width: 8px;
}

.access-list .access-child {
    padding-left: 16px;
}

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

.module-card {
    min-height: 100%;
}

.module-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-card h3,
.actor-grid h3 {
    letter-spacing: 0;
    text-transform: none;
}

.evaluation-box {
    background: #f9fafb;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    margin-top: auto;
    padding: 14px;
}

.evaluation-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.evaluation-criteria .badge {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    text-transform: none;
    white-space: normal;
}

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

.login-page {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.55), rgba(31, 41, 55, 0.18) 34%, rgba(250, 250, 250, 0.5) 58%, rgba(250, 250, 250, 0.92) 100%),
        url("../img/login-media-bg.png") center / cover no-repeat;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: clamp(20px, 4vw, 56px);
    position: relative;
    width: 100%;
}

.login-page::before {
    background:
        radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.2), transparent 24%),
        radial-gradient(circle at 42% 80%, rgba(245, 158, 11, 0.16), transparent 20%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.login-stage {
    align-items: center;
    display: grid;
    gap: clamp(28px, 5vw, 80px);
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 440px);
    max-width: 1180px;
    position: relative;
    width: 100%;
}

.login-copy {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0));
    border-left: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
    padding: 48px 32px 32px;
    text-shadow: 0 18px 44px rgba(17, 24, 39, 0.45);
}

.login-copy .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.login-copy h1 {
    color: #ffffff;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0;
    max-width: 720px;
    text-transform: none;
}

.brand-mark {
    align-items: end;
    display: flex;
    gap: 7px;
    height: 44px;
    margin-bottom: 28px;
}

.brand-mark span {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(37, 99, 235, 0.45);
    display: block;
    width: 10px;
}

.brand-mark span:nth-child(1) {
    height: 22px;
}

.brand-mark span:nth-child(2) {
    background: #2563eb;
    height: 38px;
}

.brand-mark span:nth-child(3) {
    background: #f59e0b;
    height: 28px;
}

.login-card-wrap {
    position: relative;
}

.login-card-wrap::before {
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    content: "";
    inset: -18px;
    position: absolute;
    transform: rotate(-2.5deg);
}

.login-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    box-shadow: 0 34px 90px rgba(17, 24, 39, 0.24);
    overflow: hidden;
    position: relative;
    width: min(100%, 440px);
}

.login-card h2,
.login-card .h3 {
    color: #111827;
    letter-spacing: 0;
    text-transform: none;
}

.login-card::before {
    background: linear-gradient(90deg, #1f2937, #2563eb 54%, #f59e0b);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.login-card-kicker {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.status-dot {
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.13);
    display: inline-block;
    height: 9px;
    width: 9px;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    min-height: 50px;
    padding: 0.85rem 1rem;
    text-transform: none;
    width: 100%;
}

.login-card .form-control:focus {
    border-color: #1f2937;
    box-shadow: 0 0 0 0.25rem rgba(31, 41, 55, 0.14);
}

.login-card .form-label {
    color: var(--bs-gray-700);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.login-submit {
    align-items: center;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    min-height: 52px;
    padding-left: 20px;
    padding-right: 18px;
    text-transform: none;
}

.login-footer-line {
    background: linear-gradient(90deg, transparent, rgba(31, 41, 55, 0.18), transparent);
    height: 1px;
    margin-top: 26px;
}

@media (max-width: 900px) {
    .app-header {
        flex-direction: column;
    }

    .event-drawer-panel,
    .blog-drawer .event-drawer-panel,
    .ticket-drawer .event-drawer-panel,
    .asset-drawer .event-drawer-panel,
    .priority-drawer .event-drawer-panel {
        border-right: 0;
        height: 100dvh;
        min-width: 0;
        padding: 24px;
        width: 100vw;
    }

    .event-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-form textarea {
        grid-column: 1 / span 2;
    }

    .event-form .btn {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

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

    .blog-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .blog-actions {
        justify-content: flex-start;
    }

    .ticket-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-item {
        grid-template-columns: 1fr;
    }

    .metric-table {
        background: transparent;
        border: 0;
        box-shadow: none;
        display: grid;
        gap: 12px;
        overflow: visible;
    }

    .metric-head {
        display: none;
    }

    .metric-row {
        background: #ffffff;
        border: 1px solid var(--bs-border-color);
        border-radius: 8px;
        box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .metric-row + .metric-row {
        border-top: 1px solid var(--bs-border-color);
    }

    .metric-row > strong,
    .metric-row > span {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .metric-row > strong::before,
    .metric-row > span::before {
        color: #6b7280;
        content: attr(data-label);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .metric-row span:last-child {
        align-items: stretch;
        display: flex;
        height: 52px;
        justify-content: flex-start;
        margin-top: 4px;
        padding-top: 22px;
        position: relative;
        width: 100%;
    }

    .metric-row span:last-child::before {
        left: 0;
        position: absolute;
        top: 0;
    }

    .metric-row span:last-child i {
        border-radius: 999px;
        height: 30px;
    }

    .metric-row span:last-child b {
        top: 29px;
    }

    .asset-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .folder-grid,
    .asset-grid {
        grid-template-columns: 1fr;
    }

    .agenda-form,
    .agenda-submit-form,
    .agenda-review-form,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .agenda-form textarea,
    .agenda-form .btn {
        grid-column: 1;
        grid-row: auto;
    }

    .module-button-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .login-page {
        background-position: 24% center;
    }

    .login-stage {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .login-copy {
        min-height: auto;
        padding-top: 0;
        padding: 28px;
    }

    .login-copy h1 {
        font-size: clamp(38px, 11vw, 56px);
    }
}

@media (max-width: 560px) {
    .event-form,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .event-form textarea,
    .event-form .btn {
        grid-column: 1;
    }

    .calendar-heading {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .calendar-actions {
        justify-content: flex-start;
    }

    .event-drawer-panel {
        min-width: 0;
        width: 100vw;
    }

    .post-section dl {
        grid-template-columns: 1fr;
    }

    .module-button-grid {
        grid-template-columns: 1fr;
    }

    .module-button {
        min-height: 150px;
    }

    .module-shell {
        gap: 10px;
        height: 66px;
        min-height: 66px;
        padding: 10px 16px;
    }

    .module-shell h2 {
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .module-shell-mark {
        gap: 4px;
        height: 26px;
    }

    .module-shell-mark span {
        width: 6px;
    }

    .module-shell-mark span:nth-child(1) {
        height: 12px;
    }

    .module-shell-mark span:nth-child(2) {
        height: 24px;
    }

    .module-shell-mark span:nth-child(3) {
        height: 17px;
    }

    .login-copy {
        display: none;
    }

    .login-card-wrap::before {
        inset: -10px;
    }

    .login-card {
        border-radius: 18px;
    }
}
