.moodle-table-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 12px rgba(215,169,35,0.04);
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    display: block;
}
.moodle-table-compact {
    width: 100%;
    min-width: 600px;
    max-width: 100%;
    table-layout: fixed;
}
.moodle-table-compact th, .moodle-table-compact td {
    padding: 2px 5px;
    font-size: 0.96em;
    line-height: 1.1;
    height: 32px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.moodle-actions-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 140px;
    white-space: nowrap;
}
.button-icon-mini {
    border-radius: 6px;
    font-size: 1.1em;
    padding: 3px 7px;
    min-width: 28px;
    min-height: 28px;
    box-shadow: none;
    font-weight: 500;
    border: 1px solid #e6d7a2;
    background: #fff9df;
    color: var(--ink);
    transition: background 0.18s, color 0.18s, border 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}
.button-icon-mini:hover {
    background: #f6dc78;
    color: #fff;
    border-color: var(--sun-300);
}
.icon-edit {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%235b4312" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14.85 2.15a2.5 2.5 0 0 1 3.54 3.54l-1.29 1.3-3.54-3.54 1.29-1.3zm-2 2l3.54 3.54-9.19 9.19a2 2 0 0 1-.88.51l-3.18.8a.5.5 0 0 1-.61-.62l.8-3.18a2 2 0 0 1 .51-.88l9.19-9.19z"/></svg>') no-repeat center/contain;
}
.icon-delete {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23b00" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6 7v7a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7H6zm2-3a1 1 0 0 0-1 1v1h6V5a1 1 0 0 0-1-1H8zm9 3v1a1 1 0 0 1-1 1h-1v7a4 4 0 0 1-4 4H9a4 4 0 0 1-4-4V7H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3V3a3 3 0 0 1 6 0v1h3a1 1 0 0 1 1 1z"/></svg>') no-repeat center/contain;
}
.icon-blank {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%2373561a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 11H9v-1h2v1zm0-3H9V7h2v3z"/></svg>') no-repeat center/contain;
}
/* --- Tabla de usuarios Moodle compacta y profesional --- */
.moodle-table-compact th, .moodle-table-compact td {
    padding: 2px 5px;
    font-size: 0.96em;
    line-height: 1.1;
    height: 32px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moodle-actions-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    min-width: 180px;
    max-width: 220px;
    white-space: nowrap;
}
.button-edit-mini, .button-delete-mini, .button-blank-mini {
    border-radius: 7px;
    font-size: 0.93em;
    padding: 3px 10px;
    min-width: 60px;
    max-width: 90px;
    min-height: 0;
    box-shadow: none;
    font-weight: 500;
    border: 1px solid #e6d7a2;
    background: #fff9df;
    color: var(--ink);
    transition: background 0.18s, color 0.18s, border 0.18s;
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.button-edit-mini {
    background: linear-gradient(135deg, var(--sun-300), var(--sun-100));
    color: #5b4312;
    border: 1px solid #efc94c;
}
.button-edit-mini:hover {
    background: linear-gradient(135deg, var(--sun-400), var(--sun-200));
    color: #fff;
}
.button-delete-mini {
    background: #fff;
    color: #73561a;
    border: 1px solid #f3e7c2;
}
.button-delete-mini:hover {
    background: #ffe7e7;
    color: #b00;
    border-color: #fbb;
}
.button-blank-mini {
    background: #fff;
    color: #73561a;
    border: 1px solid #f3e7c2;
}
.button-blank-mini:hover {
    background: #f6dc78;
    color: #fff;
    border-color: var(--sun-300);
}
.moodle-table-compact th, .moodle-table-compact td {
    padding: 4px 7px;
    font-size: 0.98em;
    line-height: 1.2;
}
.moodle-actions-inline {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}
.button-edit-mini, .button-delete-mini, .button-blank-mini {
    border-radius: 12px;
    font-size: 0.97em;
    padding: 4px 12px;
    min-width: 0;
    min-height: 0;
    box-shadow: none;
    font-weight: 600;
    border: 1px solid #e6d7a2;
    background: #fff9df;
    color: var(--ink);
    transition: background 0.18s, color 0.18s, border 0.18s;
}
.button-edit-mini {
    background: linear-gradient(135deg, var(--sun-300), var(--sun-100));
    color: #5b4312;
    border: 1px solid #efc94c;
}
.button-edit-mini:hover {
    background: linear-gradient(135deg, var(--sun-400), var(--sun-200));
    color: #fff;
}
.button-delete-mini {
    background: #fff;
    color: #b00;
    border: 1px solid #f3e7c2;
}
.button-delete-mini:hover {
    background: #ffe7e7;
    color: #fff;
    border-color: #fbb;
}
.button-blank-mini {
    background: #fff;
    color: #73561a;
    border: 1px solid #f3e7c2;
}
.button-blank-mini:hover {
    background: #f6dc78;
    color: #fff;
    border-color: var(--sun-300);
}
/* --- Tabla de usuarios Moodle --- */
.moodle-table-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 12px rgba(215,169,35,0.04);
    margin: 0;
    width: 100%;
    max-width: 100%;
}
.moodle-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.04em;
    background: #fff;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}
.moodle-table th, .moodle-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #f3e7c2;
    vertical-align: middle;
    background: #fff;
    word-break: break-word;
}
.moodle-table th {
    background: #fff9df;
    font-weight: 700;
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 2;
}
.moodle-table tr:last-child td {
    border-bottom: none;
}
.moodle-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    justify-content: flex-start;
}
.button-edit {
    background: linear-gradient(135deg, var(--sun-400), var(--sun-200));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 18px;
    padding: 6px 18px;
    box-shadow: 0 2px 8px rgba(215,169,35,0.08);
}
.button-edit:hover {
    background: linear-gradient(135deg, var(--sun-500), var(--sun-300));
}
.button-delete {
    background: #fff;
    color: var(--ink);
    border: 1px solid #f3e7c2;
    border-radius: 18px;
    padding: 6px 16px;
}
.button-delete:hover {
    background: #ffe7e7;
    color: #b00;
    border-color: #fbb;
}
.button-blank {
    background: #fff;
    color: var(--ink);
    border: 1px solid #f3e7c2;
    border-radius: 18px;
    padding: 6px 16px;
}
.button-blank:hover {
    background: #f6dc78;
    color: #73561a;
    border-color: var(--sun-300);
}
/* --- Fin tabla usuarios Moodle --- */
/* --- MODALES ADMIN USUARIOS --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 251, 234, 0.82);
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}
.modal-content {
    margin: auto;
    /* ...resto igual... */
}
.modal-content {
    background: var(--panel);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 98vw;
    position: relative;
    border: 1px solid var(--line);
    animation: modalPop 0.18s cubic-bezier(.7,-0.2,.5,1.4);
}
.modal-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--ink-soft);
    font-size: 1.6em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-close:hover {
    opacity: 1;
}
@keyframes modalPop {
    0% { transform: scale(0.92) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* --- FIN MODALES --- */
/* Estilo personalizado para input file en backup admin */
.admin-backup-upload input[type="file"] {
    display: none;
}
.admin-backup-upload .custom-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-backup-upload .custom-file-label:hover {
    background: rgba(255,255,255,0.95);
    color: var(--sun-400);
    box-shadow: 0 2px 8px rgba(215,169,35,0.08);
}
.admin-backup-upload .custom-file-label.selected {
    background: var(--sun-100);
    color: var(--ink);
    border-color: var(--sun-300);
}
.admin-backup-upload .custom-file-filename {
    margin-left: 12px;
    font-size: 0.98em;
    color: var(--ink-soft);
    font-weight: 400;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:root {
    --sun-50: #fff9df;
    --sun-100: #fff1b8;
    --sun-200: #f6dc78;
    --sun-300: #efc94c;
    --sun-400: #d7a923;
    --sun-500: #b98816;
    --ink: #5b4312;
    --ink-soft: #73561a;
    --olive: #7a6d2a;
    --panel: rgba(255, 251, 234, 0.84);
    --line: rgba(138, 113, 34, 0.18);
    --shadow: 0 18px 40px rgba(122, 92, 18, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(circle at 10% 14%, rgba(239, 201, 76, 0.26), transparent 18%),
        radial-gradient(circle at 85% 10%, rgba(246, 220, 120, 0.22), transparent 20%),
        radial-gradient(circle at 80% 78%, rgba(215, 169, 35, 0.14), transparent 18%),
        linear-gradient(135deg, #fffdf4 0%, #fff5cd 48%, #fdf1b2 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 36rem;
    height: 36rem;
    pointer-events: none;
    opacity: 0.24;
    filter: blur(1px);
    z-index: 0;
}

body::before {
    top: -7rem;
    right: -8rem;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.78) 0 14%, transparent 15%),
        radial-gradient(circle at 30% 50%, rgba(239, 201, 76, 0.72) 0 17%, transparent 18%),
        radial-gradient(circle at 70% 50%, rgba(239, 201, 76, 0.72) 0 17%, transparent 18%),
        radial-gradient(circle at 50% 30%, rgba(246, 220, 120, 0.72) 0 17%, transparent 18%),
        radial-gradient(circle at 50% 70%, rgba(246, 220, 120, 0.72) 0 17%, transparent 18%);
    transform: rotate(18deg);
}

body::after {
    bottom: -10rem;
    left: -9rem;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.84) 0 14%, transparent 15%),
        radial-gradient(circle at 32% 45%, rgba(246, 220, 120, 0.72) 0 18%, transparent 19%),
        radial-gradient(circle at 68% 45%, rgba(246, 220, 120, 0.72) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 28%, rgba(239, 201, 76, 0.68) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 72%, rgba(239, 201, 76, 0.68) 0 18%, transparent 19%);
    transform: rotate(-22deg);
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
.card,
.stat,
.panel,
.roadmap,
.notice {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 240ms ease, color 180ms ease;
}

a:focus,
button:focus {
    outline: 3px solid rgba(215, 169, 35, 0.5);
    outline-offset: 4px;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(120deg, rgba(255, 250, 232, 0.85), rgba(255, 245, 207, 0.78));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.brand-mark {
    display: block;
    width: 172px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(215, 169, 35, 0.18));
}

.hero h2,
.section-title,
.panel h3,
.notice h3,
.roadmap h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

.menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    padding: 10px 14px;
    cursor: pointer;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav a {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(91, 67, 18, 0.82);
}

.nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(215, 169, 35, 0.28);
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.nav .cta,
.button-primary {
    background: linear-gradient(135deg, var(--sun-500), var(--sun-300));
    color: white;
    box-shadow: 0 12px 24px rgba(215, 169, 35, 0.2);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    padding: 56px 0 28px;
}

.hero-single {
    grid-template-columns: minmax(0, 1fr);
}

.hero-copy.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visual {
    display: grid;
    place-items: center;
    border-radius: 36px;
    padding: 28px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.94), rgba(255, 243, 198, 0.86) 55%, rgba(249, 214, 103, 0.42) 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero-visual.bloom {
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), rgba(255, 246, 214, 0.88) 46%, rgba(247, 211, 94, 0.54) 100%);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 10%;
    background:
        radial-gradient(circle at 20% 40%, rgba(255,255,255,0.52) 0 6%, transparent 7%),
        radial-gradient(circle at 80% 22%, rgba(255,255,255,0.58) 0 4%, transparent 5%),
        radial-gradient(circle at 72% 68%, rgba(255,255,255,0.44) 0 5%, transparent 6%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    pointer-events: none;
}

.hero-visual.bloom::after {
    content: "";
    position: absolute;
    inset: 14% 16%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0 12%, transparent 13%),
        radial-gradient(circle at 30% 50%, rgba(246,220,120,0.82) 0 18%, transparent 19%),
        radial-gradient(circle at 70% 50%, rgba(246,220,120,0.82) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 28%, rgba(239,201,76,0.82) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 72%, rgba(239,201,76,0.82) 0 18%, transparent 19%);
    opacity: 0.48;
}

.hero-logo {
    width: min(100%, 540px);
    position: relative;
    z-index: 1;
}

.hero-copy,
.panel,
.card,
.stat,
.roadmap,
.notice {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-copy {
    border-radius: 36px;
    padding: 34px;
}

.hero-single .hero-copy {
    max-width: 100%;
}

.eyebrow {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(215, 169, 35, 0.26);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow-dark {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff8dd;
}

.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.96;
}

.hero p,
.panel p,
.card p,
.section-header p,
.notice p,
.roadmap ol {
    line-height: 1.8;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
}

.hero h2,
.section-title,
.card h3,
.panel h3,
.notice h3,
.roadmap h2,
.metric-item strong,
.stat strong,
.tag,
.field,
.contact-card-list li {
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero p {
    margin: 0;
    font-size: 1.08rem;
    max-width: 60ch;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
    color: var(--ink);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
}

.button:hover,
.card:hover,
.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(122, 92, 18, 0.14);
}

.button:active {
    transform: translateY(-1px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.stats > *,
.grid > *,
.grid.two-columns > *,
.list-grid > *,
.intro-band > *,
.metric-stack > *,
.contact-wrap > * {
    min-width: 0;
}

.stat {
    border-radius: 26px;
    padding: 20px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    margin-top: 8px;
}

.panel {
    border-radius: 36px;
    padding: 24px;
}

.panel-block {
    border-radius: 28px;
    padding: 22px;
    color: white;
    background: linear-gradient(160deg, #997418, #e0b73d);
}

.panel-block h3 {
    margin: 16px 0 0;
    font-size: 2rem;
    line-height: 1.1;
}

.panel-block p {
    margin: 14px 0 0;
    color: rgba(255, 248, 221, 0.92);
}

.panel ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.panel li {
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.section {
    padding: 18px 0;
}

.section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 18px;
}

.section-title {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.section-intro-copy {
    min-width: 0;
}

.section-lead {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 239, 0.82);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    align-self: end;
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.section-cta {
    padding-top: 0;
    padding-bottom: 30px;
}

.card-cta {
    display: grid;
    gap: 14px;
    border-style: solid;
    border-width: 1px;
    background: linear-gradient(120deg, rgba(255, 252, 238, 0.94), rgba(252, 242, 201, 0.88));
}

.card-cta .button {
    justify-self: start;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    border-radius: 30px;
    padding: 24px;
}

.card .kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}

.card h3 {
    margin: 14px 0 12px;
    font-size: clamp(1.18rem, 1.8vw, 1.45rem);
    line-height: 1.28;
}

.card p {
    margin: 0;
}

.roadmap-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    padding-bottom: 44px;
}

.roadmap,
.notice {
    border-radius: 32px;
    padding: 24px;
}

.roadmap ol {
    margin: 16px 0 0;
    padding-left: 22px;
}

.compact-title {
    font-size: 2.2rem;
    margin-top: 10px;
}

.notice {
    background: linear-gradient(160deg, rgba(98, 73, 12, 0.92), rgba(173, 133, 23, 0.94));
    color: #fff8dd;
}

.notice p {
    margin: 0;
    color: rgba(255, 248, 221, 0.93);
}

.notice-actions {
    margin-top: 18px;
}

.notice-actions .button-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff8dd;
}

.notice-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

.footer {
    padding: 0 0 36px;
}

.footer-bar {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 238, 0.72);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    line-height: 1.7;
}

.footer-copy,
.footer-credit {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.footer-copy {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-credit {
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.footer-credit-line {
    margin: 0;
}

.footer-credit-line a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit-line a:hover {
    text-decoration: underline;
}

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-credit-link span,
.footer-credit-meta {
    overflow-wrap: anywhere;
}

.footer-credit-logo {
    display: block;
    width: 84px;
    height: auto;
    object-fit: contain;
}

.footer-credit-meta {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.72;
}

.page-head {
    padding: 40px 0 20px;
}

.page-head .eyebrow {
    background: rgba(255, 255, 255, 0.88);
}

.page-head h2 {
    margin: 10px 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1;
}

.page-head p {
    margin: 0;
    max-width: 70ch;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.intro-band {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    padding-bottom: 26px;
}

.metric-stack {
    display: grid;
    gap: 12px;
}

.metric-item {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.72);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.metric-item strong {
    display: block;
    margin-top: 6px;
    font-size: 1.6rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 26px;
}

.tag {
    display: inline-flex;
    margin-top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 18px;
    padding-bottom: 32px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(185, 136, 22, 0.75);
    box-shadow: 0 0 0 3px rgba(215, 169, 35, 0.2);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.hint {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.8;
}

.form-feedback {
    margin: 4px 0 0;
    min-height: 1.5em;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-feedback.success {
    color: #2f6a2f;
}

.form-feedback.error {
    color: #a33020;
}

.admin-card {
    display: grid;
    gap: 16px;
}

.admin-login-shell {
    display: flex;
    justify-content: center;
    padding-bottom: 36px;
}

.admin-login-card {
    width: min(100%, 520px);
    margin-inline: auto;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(91, 61, 9, 0.12);
}

.admin-login-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
}

.admin-login-brand img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(128, 93, 20, 0.2));
}

.admin-login-lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.admin-login-form {
    gap: 14px;
}

.admin-login-form .field input {
    min-height: 44px;
}

.admin-login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.admin-login-actions .button {
    width: 100%;
    justify-content: center;
}

.admin-logout {
    margin: 0;
}

.admin-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat {
    border-radius: 18px;
    padding: 16px;
}

.admin-stat-pending {
    border: 1px solid rgba(176, 122, 27, 0.34);
    background: rgba(252, 241, 205, 0.86);
}

.admin-stat-reviewed {
    border: 1px solid rgba(41, 108, 177, 0.3);
    background: rgba(219, 238, 255, 0.86);
}

.admin-stat-resolved {
    border: 1px solid rgba(45, 124, 61, 0.3);
    background: rgba(226, 249, 231, 0.86);
}

.admin-stat strong {
    font-size: 1.7rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

.status-pill-pending {
    color: #7a4f08;
    background: rgba(253, 236, 183, 0.92);
    border-color: rgba(176, 122, 27, 0.3);
}

.status-pill-reviewed {
    color: #184d86;
    background: rgba(214, 233, 255, 0.94);
    border-color: rgba(41, 108, 177, 0.3);
}

.status-pill-resolved {
    color: #1f6a2f;
    background: rgba(218, 245, 222, 0.94);
    border-color: rgba(45, 124, 61, 0.3);
}

.status-arrow {
    display: inline-block;
    margin: 0 8px;
    font-weight: 700;
    color: var(--ink-soft);
}

.admin-trend {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    padding: 16px;
}

.admin-trend h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.admin-trend-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 126px;
}

.admin-bar-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
}

.admin-bar {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, rgba(239, 201, 76, 0.95), rgba(185, 136, 22, 0.92));
    box-shadow: 0 8px 16px rgba(122, 92, 18, 0.16);
}

.admin-bar-item strong {
    font-size: 0.84rem;
}

.admin-bar-item span {
    font-size: 0.74rem;
    color: var(--ink-soft);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(138, 113, 34, 0.14);
    vertical-align: top;
    font-size: 0.92rem;
}

.admin-table th {
    background: rgba(255, 241, 184, 0.6);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-message-cell {
    max-width: 340px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-status-form {
    display: grid;
    gap: 8px;
}

.admin-status-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.82);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.contact-card-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 70ms; }
.delay-2 { transition-delay: 120ms; }
.delay-3 { transition-delay: 180ms; }
.delay-4 { transition-delay: 240ms; }

@media (max-width: 960px) {
    .hero,
    .intro-band,
    .roadmap-wrap,
    .grid,
    .grid.two-columns {
        grid-template-columns: 1fr;
    }

    .list-grid,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .section-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-filters {
        grid-template-columns: 1fr 1fr;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-login-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        align-items: start;
        flex-direction: column;
    }

    .brand-mark {
        width: 144px;
        max-height: 56px;
    }

    .menu-button {
        display: inline-flex;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav.open {
        display: flex;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .panel,
    .card,
    .roadmap,
    .notice,
    .section-lead,
    .footer-bar {
        border-radius: 24px;
    }

    .footer-credit {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-summary-grid,
    .admin-trend-bars {
        grid-template-columns: 1fr;
    }

    .admin-bar {
        max-width: 100%;
    }

    .admin-login-actions {
        grid-template-columns: 1fr;
    }
}