:root {
    --navy: #142b44;
    --navy-deep: #0d2135;
    --blue: #247d99;
    --blue-deep: #185f78;
    --aqua: #70d6cf;
    --cream: #f5f1e8;
    --paper: #fffdfa;
    --paper-muted: #f8faf8;
    --ink: #1b2935;
    --muted: #657481;
    --line: #d9e1e0;
    --line-strong: #b9c9cb;
    --red: #aa4a3b;
    --green: #28755e;
    --soft-blue: #edf7f8;
    --shadow: 0 15px 35px rgba(18, 43, 68, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Serif", Georgia, serif;
    background:
        radial-gradient(circle at 86% -8%, rgba(112, 214, 207, .18), transparent 27rem),
        linear-gradient(110deg, #f7f4ed 0%, var(--cream) 57%, #edf3ef 100%);
    line-height: 1.5;
}

button,
input,
select,
textarea { font: inherit; }

.admin-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 26px 16px 18px;
    overflow-y: auto;
    color: #d9e7ed;
    background:
        linear-gradient(150deg, rgba(112, 214, 207, .15), transparent 14rem),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    color: #fff;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.035em;
    text-decoration: none;
}

.admin-brand-mark {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    color: var(--navy);
    background: var(--aqua);
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    font-family: "Noto Serif", Georgia, serif;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.account {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 28px 2px 24px;
    padding: 15px 6px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.account-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--navy);
    background: #dceeea;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
}

.account p { margin: 0; font-size: .85rem; font-weight: 700; }
.account small { display: block; margin-top: 2px; color: #93b5c4; font-size: .68rem; font-weight: 500; text-transform: capitalize; }
.scope-readonly { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 12px; color: var(--muted); background: var(--soft-blue); border: 1px solid #cfe0e3; border-radius: 6px; font-size: .82rem; }
.scope-readonly i { color: var(--blue-deep); }

.admin-nav { display: grid; gap: 2px; }
.admin-nav-label { margin: 17px 8px 5px; color: #7fa1b1; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-nav-label:first-child { margin-top: 0; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 9px 10px;
    color: #c5d6de;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.admin-nav a i { width: 17px; color: #8bb6c8; font-size: 1rem; text-align: center; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); transform: translateX(2px); }
.admin-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(112, 214, 207, .22), rgba(112, 214, 207, .06)); border-color: rgba(112, 214, 207, .28); box-shadow: inset 3px 0 var(--aqua); }
.admin-nav a.active i { color: var(--aqua); }

.admin-side form { margin-top: auto; padding: 20px 4px 0; }
.admin-side form button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    color: #b7cdd7;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: .8rem;
}
.admin-side form button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.admin-main { width: 100%; max-width: 1540px; padding: 0 48px 58px; }
.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(117, 140, 145, .24);
}
.admin-top-context { display: grid; gap: 1px; }
.admin-top-context span { color: var(--blue); font-size: .63rem; font-weight: 800; letter-spacing: .13em; }
.admin-top-context strong { color: var(--muted); font-size: .78rem; font-weight: 600; }
.portal-preview-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-deep); font-size: .8rem; font-weight: 800; text-decoration: none; }
.portal-preview-link:hover { color: var(--navy); }

.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.admin-main h1,
.form-card h2 { font-family: "Noto Serif", Georgia, serif; }
.admin-main h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.06em; line-height: 1.1; }
.lead { max-width: 760px; margin: 11px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title > div { min-width: 0; }
.page-title .button { flex: 0 0 auto; }

.button,
.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 6px;
    box-shadow: 0 7px 14px rgba(36, 125, 153, .18);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover,
.primary:hover { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 10px 20px rgba(24, 95, 120, .22); transform: translateY(-1px); }
.button:focus-visible,
.primary:focus-visible,
.actions a:focus-visible,
.actions button:focus-visible { outline: 3px solid rgba(112, 214, 207, .6); outline-offset: 2px; }

.flash,
.errors {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 1080px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #b9ded0;
    border-left: 4px solid #398064;
    border-radius: 6px;
    color: #235b49;
    background: #eaf6f0;
    font-size: .85rem;
}
.errors { color: #84392e; background: #fff0ed; border-color: #f0c7c1; border-left-color: var(--red); }
.errors ul { margin: 7px 0 0; padding-left: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.stat-grid article { position: relative; display: grid; gap: 4px; min-height: 124px; padding: 20px; overflow: hidden; background: rgba(255, 253, 250, .88); border: 1px solid rgba(183, 202, 202, .72); border-radius: 9px; box-shadow: var(--shadow); }
.stat-grid article::after { position: absolute; right: -12px; bottom: -19px; width: 70px; height: 70px; border: 14px solid rgba(112, 214, 207, .12); border-radius: 50%; content: ""; }
.stat-grid span { z-index: 1; color: var(--muted); font-size: .75rem; font-weight: 700; }
.stat-grid strong { z-index: 1; color: var(--navy); font-family: "Noto Serif", Georgia, serif; font-size: 2.25rem; letter-spacing: -.05em; }

.list-panel { overflow: hidden; background: rgba(255, 253, 250, .94); border: 1px solid rgba(183, 202, 202, .8); border-radius: 9px; box-shadow: var(--shadow); }
.list-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; color: var(--muted); background: linear-gradient(90deg, #f5fbfa, #fbfcf9); border-bottom: 1px solid var(--line); font-size: .76rem; }
.list-panel-head strong { color: var(--navy); font-size: .88rem; }
.list-panel-head > span { color: #758993; font-size: .72rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th { padding: 12px 19px; color: #687d87; background: #fcfdfb; border-bottom: 1px solid var(--line); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 19px; border-bottom: 1px solid #e5ebea; vertical-align: middle; }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: #f3faf8; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-title { display: grid; gap: 4px; min-width: 220px; }
.row-title strong { color: var(--navy); font-size: .88rem; line-height: 1.35; }
.row-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.row-meta i { color: var(--blue); font-size: .75rem; }
.entity-chip,
.status-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 4px 8px; border-radius: 999px; font-size: .67rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.entity-chip { color: #3e5f6c; background: #eaf2f1; }
.status-badge { color: #497065; background: #e4f2eb; }
.status-badge.is-draft,
.status-badge.is-inactive { color: #86682d; background: #fcf0d8; }
.status-badge.is-video { color: #70569a; background: #eee8f7; }
.status-badge.is-page { color: #386d87; background: #e6f1f7; }

.actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 142px; white-space: nowrap; }
.actions form { margin: 0; }
.actions a,
.actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 5px 8px; color: var(--blue-deep); background: #eef7f7; border: 1px solid #d7e8e8; border-radius: 5px; cursor: pointer; font-size: .72rem; font-weight: 800; text-decoration: none; }
.actions a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.actions button { color: var(--red); background: #fff5f2; border-color: #f2d6d0; }
.actions button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.action-disabled { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 5px 8px; color: #75868b; background: #f3f5f4; border: 1px solid #e0e6e4; border-radius: 5px; cursor: help; font-size: .72rem; font-weight: 800; }

.empty-row td { padding: 0; }
.empty-state { display: grid; justify-items: center; gap: 7px; padding: 42px 20px; color: var(--muted); text-align: center; }
.empty-state i { color: var(--blue); font-size: 1.7rem; }
.empty-state strong { color: var(--navy); font-size: .92rem; }
.empty-state span { max-width: 360px; font-size: .78rem; }
.empty-state .button { margin-top: 7px; }

.form-card { display: grid; gap: 18px; width: min(100%, 880px); padding: 22px; background: rgba(255, 253, 250, .95); border: 1px solid rgba(183, 202, 202, .8); border-radius: 9px; box-shadow: var(--shadow); }
.form-card-wide { width: min(100%, 1100px); }
.form-section { display: grid; gap: 15px; padding: 20px; background: linear-gradient(145deg, #fffefa, #fbfdfb); border: 1px solid #e1e9e7; border-radius: 7px; }
.form-section > h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 1px; color: var(--navy); font-size: 1.02rem; letter-spacing: -.025em; }
.form-section > h2::before { width: 6px; height: 22px; background: var(--aqua); border-radius: 4px; content: ""; }
.form-section:last-of-type { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid > label,
.form-grid > .form-field { align-content: start; }
.form-card label { display: grid; gap: 7px; color: #2d3d48; font-size: .79rem; font-weight: 800; }
.form-card label small { color: var(--muted); font-size: .71rem; font-weight: 500; line-height: 1.5; }
.form-field { display: grid; gap: 7px; }
.form-field-label { color: #2d3d48; font-size: .79rem; font-weight: 800; }
.form-card input,
.form-card textarea,
.form-card select { width: 100%; min-width: 0; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; font-weight: 500; line-height: 1.4; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.form-card input { min-height: 42px; }
.form-card textarea { min-height: 92px; resize: vertical; }
.form-card input:hover,
.form-card textarea:hover,
.form-card select:hover { border-color: #95b6be; }
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 125, 153, .14); outline: 0; }
.form-card input[type="file"] { padding: 7px; background: #f9fbfa; font-size: .76rem; }
.form-card input[type="file"]::file-selector-button { margin-right: 9px; padding: 6px 9px; color: var(--blue-deep); background: #eaf4f4; border: 0; border-radius: 4px; cursor: pointer; font: inherit; font-weight: 800; }
.form-card .check { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 12px; background: #f2f8f6; border: 1px solid #d8e8e4; border-radius: 5px; font-weight: 700; }
.form-card .check input { width: 16px; min-height: auto; margin: 0; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 13px 15px; background: #f4f9f7; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 6px 14px rgba(18, 43, 68, .06); }
.form-actions a { color: #607883; font-size: .8rem; font-weight: 700; text-decoration: none; }
.form-actions a:hover { color: var(--navy); }
.preview { display: block; width: min(100%, 240px); max-height: 155px; margin-top: 2px; object-fit: cover; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 5px 12px rgba(18, 43, 68, .12); }
.editor-help { display: block; margin-top: -7px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.editor-feedback { display: block; margin-top: -7px; color: var(--red); font-size: .76rem; line-height: 1.5; }
.editor-feedback[hidden] { display: none; }
.tag-input-help { display: block; margin-top: -1px; color: var(--muted); font-size: .71rem; font-weight: 500; line-height: 1.45; }
.form-card tags.tagify { --tags-border-color: var(--line-strong); --tags-hover-border-color: #95b6be; --tags-focus-border-color: var(--blue); --tag-bg: #e2f0ee; --tag-hover: #cfe8e5; --tag-text-color: var(--navy); --tag-text-color--edit: var(--navy); width: 100%; min-height: 42px; padding: 3px 5px; border-radius: 5px; box-shadow: none; }
.form-card tags.tagify.tagify--focus { box-shadow: 0 0 0 3px rgba(36, 125, 153, .14); }
.form-card tags.tagify .tagify__tag { margin: 2px; font-size: .73rem; font-weight: 800; }
.form-card tags.tagify .tagify__input { min-width: 150px; margin: 3px 5px; font-size: .78rem; }
.form-card tags.tagify .tagify__input::before { color: #819197; }

.current-assets { margin-top: 20px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-title span { padding: 5px 8px; color: #477066; background: #e6f2ee; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.attachment-list { display: grid; border-top: 1px solid #e4e9e9; }
.attachment-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 1px; border-bottom: 1px solid #e4e9e9; }
.attachment-list > article > i { color: var(--blue); font-size: 1.2rem; }
.attachment-list strong,
.attachment-list small { display: block; }
.attachment-list strong { overflow: hidden; color: var(--navy); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list small { margin-top: 2px; color: var(--muted); font-size: .69rem; }
.attachment-list a { color: var(--blue-deep); font-size: .75rem; font-weight: 800; text-decoration: none; }
.attachment-list form { margin: 0; }
.attachment-list button,
.thumb-list button { padding: 5px 0; color: var(--red); background: transparent; border: 0; cursor: pointer; font-size: .75rem; font-weight: 800; }
.thumb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumb-list > div { padding: 7px; background: #f8fbfa; border: 1px solid #dfe9e7; border-radius: 6px; }
.thumb-list img { display: block; width: 100%; height: 108px; object-fit: cover; border-radius: 4px; }
.hero-slide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-slide-item { padding: 8px; background: #f8fbfa; border: 1px solid #dfe9e7; border-radius: 6px; }
.hero-slide-item img { display: block; width: 100%; aspect-ratio: 16 / 8; margin-bottom: 8px; object-fit: cover; border-radius: 3px; }
.hero-slide-item span { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; }
.hero-slide-item input { width: auto !important; min-height: auto !important; padding: 0 !important; }
.hero-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hero-admin-card { overflow: hidden; background: #fffefa; border: 1px solid #dbe7e5; border-radius: 8px; box-shadow: 0 8px 18px rgba(18, 43, 68, .07); }
.hero-admin-card > img { display: block; width: 100%; aspect-ratio: 1600 / 686; object-fit: cover; background: #e6efef; }
.hero-admin-card__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px; }
.hero-admin-card__body h2 { margin: 7px 0 2px; color: var(--navy); font-family: "Noto Serif", Georgia, serif; font-size: .93rem; line-height: 1.3; }
.hero-admin-card__body p { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 600; }
.hero-admin-card__body .actions { flex: 0 0 auto; min-width: 0; }
.hero-admin-card__body .actions a,
.hero-admin-card__body .actions button { min-height: 29px; padding: 5px 7px; }
.hero-upload-card { width: min(100%, 760px); }
.hero-upload-current img { width: 100%; max-width: 640px; max-height: none; aspect-ratio: 1600 / 686; object-fit: cover; }

.form-card .note-editor.note-frame { border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; box-shadow: none; }
.form-card .note-editor.note-frame:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 125, 153, .14); }
.form-card .note-editor .note-toolbar { padding: 8px; background: var(--soft-blue); border-bottom: 1px solid #cddde1; }
.form-card .note-editor .note-btn-group { margin-right: 5px; }
.form-card .note-editor .note-btn { min-width: 32px; color: var(--navy); background: #fff; border: 1px solid #bed0d5; border-radius: 3px; font-size: .82rem; }
.form-card .note-editor .note-btn:hover,
.form-card .note-editor .note-btn:focus { color: var(--navy); background: #dcecef; border-color: #9ebac3; }
.form-card .note-editor .note-dropdown-menu { border-color: #bed0d5; border-radius: 4px; box-shadow: 0 10px 24px rgba(20, 43, 68, .15); }
.form-card .note-editor .note-editing-area .note-editable { min-height: 300px; padding: 16px; color: var(--ink); background: #fff; font-family: "Noto Serif", Georgia, serif; font-size: .95rem; line-height: 1.7; }
.form-card .note-editor .note-editing-area .note-editable h2,
.form-card .note-editor .note-editing-area .note-editable h3,
.form-card .note-editor .note-editing-area .note-editable h4 { color: var(--navy); font-family: "Noto Serif", Georgia, serif; }
.form-card .note-editor .note-editing-area .note-editable img,
.form-card .note-editor .note-editing-area .note-editable video { max-width: 100%; height: auto; }
.form-card .note-editor .note-editing-area .note-editable iframe { max-width: 100%; }
.form-card .note-editor .note-statusbar { background: #f8fbfb; border-top: 1px solid #e2eaeb; }
.form-card .note-editor .note-statusbar .note-resizebar { border-top: 0; }
.form-card .note-editor.note-editor--summary .note-editing-area .note-editable { min-height: 118px; padding: 12px 14px; font-size: .87rem; line-height: 1.6; }
.form-card .note-editor.note-editor--summary .note-toolbar { padding: 6px 8px; }

/* Guided image and document workspace for article and announcement forms. */
.content-assets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-asset-card { display: grid; gap: 13px; min-width: 0; padding: 17px; background: #f8fcfb; border: 1px solid #d7e8e5; border-radius: 7px; }
.content-asset-card__heading { display: flex; align-items: flex-start; gap: 10px; }
.content-asset-card__heading > div { min-width: 0; }
.content-asset-card__heading strong { display: block; color: var(--navy); font-size: .87rem; }
.content-asset-card__heading p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; font-weight: 500; line-height: 1.45; }
.content-asset-card__icon { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; color: var(--blue-deep); background: #dff1ee; border-radius: 7px; font-size: 1rem; }
.content-upload-zone { padding: 7px; background: #fffefa; border: 1px dashed #a9ccc9; border-radius: 7px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.content-upload-zone.is-dragging { background: #e7f6f3; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 125, 153, .12); }
.content-upload-input { position: absolute; width: 1px !important; min-height: 1px !important; height: 1px; padding: 0 !important; opacity: 0; pointer-events: none; }
.content-upload-picker { display: grid !important; min-height: 124px; place-content: center; justify-items: center; gap: 6px; padding: 17px; color: #4b707b !important; background: linear-gradient(145deg, #fcfffe, #f4fbf9); border-radius: 5px; cursor: pointer; text-align: center; }
.content-upload-picker:hover { color: var(--blue-deep) !important; background: #ecf8f5; }
.content-upload-picker i { color: var(--blue); font-size: 1.55rem; }
.content-upload-picker strong { font-size: .76rem; }
.content-upload-picker span { color: var(--muted); font-size: .67rem; font-weight: 600; }
.content-image-preview { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; padding: 6px; background: #f3f8f7; border: 1px solid #dce9e6; border-radius: 5px; }
.content-image-preview img { display: block; width: 82px; height: 58px; object-fit: cover; border-radius: 3px; }
.content-image-preview strong,
.content-image-preview span { display: block; }
.content-image-preview strong { overflow: hidden; color: var(--navy); font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.content-image-preview span { margin-top: 2px; color: var(--muted); font-size: .63rem; font-weight: 600; }
.content-image-preview button,
.content-document-selection__head button,
.content-document-list button { display: inline-flex; align-items: center; justify-content: center; padding: 4px; color: var(--red); background: transparent; border: 0; cursor: pointer; font-size: .68rem; font-weight: 800; }
.content-image-preview button { width: 24px; height: 24px; border-radius: 50%; background: #fff0ec; }
.content-asset-current { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid #dce9e6; }
.content-asset-current > span { color: #477066; font-size: .67rem; font-weight: 800; }
.content-asset-current img { display: block; width: min(100%, 220px); max-height: 132px; object-fit: cover; border: 3px solid #fff; border-radius: 5px; box-shadow: 0 4px 10px rgba(18, 43, 68, .1); }
.content-document-selection { margin-top: 8px; }
.content-document-selection__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 3px 7px; }
.content-document-selection__head strong,
.content-document-selection__head span { display: block; }
.content-document-selection__head strong { color: var(--navy); font-size: .73rem; }
.content-document-selection__head span { margin-top: 1px; color: var(--muted); font-size: .64rem; font-weight: 600; }
.content-document-selection__head button { padding: 4px 2px; white-space: nowrap; }
.content-document-list { display: grid; gap: 5px; }
.content-document-list article { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px; background: #f3f8f7; border: 1px solid #dce9e6; border-radius: 4px; }
.content-document-list > article > i { color: var(--blue); font-size: .88rem; }
.content-document-list strong,
.content-document-list span { display: block; }
.content-document-list strong { overflow: hidden; color: var(--navy); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.content-document-list span { color: var(--muted); font-size: .59rem; font-weight: 600; }

nav[aria-label="Navigasi halaman"] { margin-top: 20px; }
nav[aria-label="Navigasi halaman"] > div { align-items: center; }
nav[aria-label="Navigasi halaman"] p { margin: 0; color: var(--muted); font-size: .75rem; }
.pagination { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.page-link { display: grid; min-width: 32px; min-height: 32px; place-items: center; padding: 5px 8px; color: var(--blue-deep); background: #fffdfa; border: 1px solid var(--line); border-radius: 5px; font-size: .75rem; font-weight: 800; text-decoration: none; }
.page-item.active .page-link { color: #fff; background: var(--blue); border-color: var(--blue); }
.page-item.disabled .page-link { color: #a2afb1; background: #f1f4f2; }

.login-body { display: grid; min-height: 100vh; place-items: center; background: linear-gradient(135deg, #16334c, #1e728b); }
.login-card { width: min(440px, calc(100% - 35px)); padding: 42px; background: #fffdfa; box-shadow: 0 25px 75px rgba(6, 27, 42, .4); }
.login-card h1 { margin: 0; font-family: "Noto Serif", Georgia, serif; font-size: 2.5rem; letter-spacing: -.06em; }
.login-card p:not(.eyebrow) { color: #657583; }
.login-card form { display: grid; gap: 18px; margin-top: 25px; }
.login-card label { display: grid; gap: 7px; font-size: .85rem; font-weight: 700; }
.login-card input { padding: 11px; border: 1px solid #b7c4c8; }
.login-card .check { display: flex; align-items: center; gap: 8px; }
.login-card .check input { width: auto; }
.back { display: inline-block; margin-bottom: 38px; color: var(--blue); font-size: .83rem; text-decoration: none; }

@media (max-width: 1120px) {
    .admin-shell { grid-template-columns: 238px minmax(0, 1fr); }
    .admin-main { padding: 0 30px 45px; }
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .admin-shell { display: block; }
    .admin-side { position: static; height: auto; padding: 17px 14px 12px; overflow: visible; }
    .admin-brand { padding: 0 4px; }
    .account { margin: 15px 2px; padding: 11px 4px; }
    .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .admin-nav-label { grid-column: 1 / -1; margin: 12px 5px 2px; }
    .admin-nav a { min-height: 39px; padding: 8px; font-size: .73rem; }
    .admin-nav a i { font-size: .9rem; }
    .admin-side form { margin-top: 6px; padding: 11px 3px 0; }
    .admin-main { padding: 0 18px 35px; }
    .admin-top { min-height: 62px; margin-bottom: 25px; }
    .admin-top-context strong { display: none; }
    .page-title { align-items: flex-start; flex-direction: column; gap: 14px; }
    .page-title .button { width: 100%; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-panel-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .table-wrap { overflow: visible; }
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td { display: block; width: 100%; }
    .data-table thead { display: none; }
    .data-table tbody tr:not(.empty-row) { margin: 0; padding: 8px 15px; border-bottom: 1px solid var(--line); }
    .data-table tbody tr:not(.empty-row):last-child { border-bottom: 0; }
    .data-table tbody tr:hover { background: transparent; }
    .data-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border: 0; }
    .data-table td::before { color: #778b94; content: attr(data-label); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .data-table td[data-label="Judul"]::before,
    .data-table td[data-label="Agenda"]::before,
    .data-table td[data-label="Nama"]::before { padding-top: 2px; }
    .data-table .actions { justify-content: flex-start; min-width: 0; }
    .empty-row td { display: block; padding: 0; }
    .empty-row td::before { display: none; }
    .form-card { width: 100%; padding: 13px; }
    .form-section { gap: 13px; padding: 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 13px; }
    .form-actions { padding: 11px; }
    .attachment-list article { grid-template-columns: 24px minmax(0, 1fr) auto; }
    .attachment-list form { grid-column: 2 / -1; }
    .content-assets-grid { grid-template-columns: 1fr; }
    .content-asset-card { padding: 14px; }
    .content-upload-picker { min-height: 108px; }
    .hero-slide-list { grid-template-columns: 1fr; }
    .hero-admin-grid { grid-template-columns: 1fr; }
    .hero-admin-card__body { flex-direction: column; }
    .form-card .note-editor .note-editing-area .note-editable { min-height: 220px; padding: 14px; }
    nav[aria-label="Navigasi halaman"] > div { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
    .admin-nav { grid-template-columns: 1fr; }
    .admin-nav-label { margin-top: 10px; }
    .stat-grid { grid-template-columns: 1fr; }
    .data-table td { grid-template-columns: 78px minmax(0, 1fr); }
    .actions { flex-wrap: wrap; }
}

/* Page-and-menu structure editor */
.menu-structure-panel {
    overflow: hidden;
    background: rgba(255, 253, 250, .95);
    border: 1px solid rgba(183, 202, 202, .85);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.menu-structure-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 19px 22px;
    background: linear-gradient(106deg, #edf8f6 0%, #fbfcf8 68%, #f4f9f6 100%);
    border-bottom: 1px solid var(--line);
}
.menu-structure-head > div:first-child { min-width: 0; }
.menu-structure-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--blue-deep);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .11em;
}
.menu-structure-head strong { display: block; color: var(--navy); font-family: "Noto Serif", Georgia, serif; font-size: 1.05rem; letter-spacing: -.025em; }
.menu-structure-head p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.menu-structure-save {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 6px 9px;
    color: #38705d;
    background: #e5f4ec;
    border: 1px solid #c5e3d4;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}
.menu-structure-save.is-saving { color: #486b79; background: #e7f1f5; border-color: #c9dfe6; }
.menu-structure-save.is-saving i { animation: menu-spin 1s linear infinite; }
.menu-structure-save.is-error { color: #8d4236; background: #fff0ed; border-color: #f2cbc4; }
.menu-structure-canvas { padding: 20px; background-image: radial-gradient(rgba(36, 125, 153, .10) .65px, transparent .65px); background-size: 12px 12px; }
.menu-level-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px 2px; color: var(--navy); font-size: .74rem; font-weight: 800; }
.menu-level-heading span { display: inline-flex; align-items: center; gap: 7px; }
.menu-level-heading span::before { width: 8px; height: 8px; background: var(--aqua); border-radius: 50%; box-shadow: 0 0 0 4px rgba(112, 214, 207, .18); content: ""; }
.menu-level-heading small { color: var(--muted); font-size: .67rem; font-weight: 600; }
.menu-tree-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.menu-tree-item { position: relative; }
.menu-tree-card {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 13px 12px 8px;
    background: #fffefa;
    border: 1px solid #d7e5e3;
    border-radius: 7px;
    box-shadow: 0 4px 11px rgba(20, 43, 68, .05);
    transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}
.menu-tree-card:hover { border-color: #a7c8cd; box-shadow: 0 8px 18px rgba(20, 43, 68, .09); }
.menu-drag-handle {
    display: grid;
    width: 31px;
    height: 42px;
    place-items: center;
    color: #6c929d;
    background: #edf6f5;
    border: 1px solid #d6e7e5;
    border-radius: 5px;
    cursor: grab;
    touch-action: none;
}
.menu-drag-handle:active { cursor: grabbing; }
.menu-drag-handle:hover,
.menu-drag-handle:focus-visible { color: var(--blue-deep); background: #dcefed; border-color: #a8d0d0; outline: 0; }
.menu-tree-card__body { display: grid; min-width: 0; gap: 3px; }
.menu-tree-card__topline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.menu-tree-card__body > strong { overflow: hidden; color: var(--navy); font-size: .86rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.menu-tree-card__path { display: flex; align-items: center; gap: 4px; overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.menu-tree-card__path i { color: var(--blue); }
.menu-type-badge,
.menu-visibility { display: inline-flex; align-items: center; gap: 4px; min-height: 19px; padding: 3px 6px; color: #3d6d85; background: #e7f2f7; border-radius: 999px; font-size: .59rem; font-weight: 800; line-height: 1; text-transform: capitalize; }
.menu-visibility { color: #47705d; background: #e7f3ed; }
.menu-visibility.is-hidden { color: #7a6d49; background: #f8efd9; }
.menu-tree-card .status-badge { min-height: 19px; padding: 3px 6px; font-size: .59rem; }
.menu-tree-card__actions { min-width: auto; }
.menu-submenu { position: relative; margin: 8px 0 0 34px; padding: 10px 0 0 19px; border-left: 1px dashed #abc7ca; }
.menu-submenu::before { position: absolute; top: 24px; left: 0; width: 13px; border-top: 1px dashed #abc7ca; content: ""; }
.menu-submenu__heading { display: flex; align-items: center; gap: 5px; margin: 0 0 7px; color: #668087; font-size: .64rem; font-weight: 800; }
.menu-submenu__heading i { color: var(--blue); }
.menu-tree-children { gap: 7px; }
.menu-tree-item--child .menu-tree-card { grid-template-columns: 30px minmax(0, 1fr) auto; padding-top: 10px; padding-bottom: 10px; background: #fbfdfb; }
.menu-tree-item--child .menu-drag-handle { width: 27px; height: 38px; }
.menu-drop-zone { display: grid; min-height: 44px; place-items: center; padding: 8px 14px; color: #71909a; background: rgba(236, 247, 245, .72); border: 1px dashed #b6d3d1; border-radius: 6px; font-size: .69rem; font-weight: 700; text-align: center; }
.menu-tree-item-ghost { opacity: .35; }
.menu-tree-item-chosen > .menu-tree-card { border-color: var(--aqua); box-shadow: 0 12px 25px rgba(24, 95, 120, .17); }
.menu-tree-item-dragging > .menu-tree-card { transform: rotate(.5deg); }
.menu-structure-panel.is-sorting .menu-drop-zone { color: var(--blue-deep); background: #dff2ef; border-color: var(--aqua); }
@keyframes menu-spin { to { transform: rotate(360deg); } }

/* Gallery upload workspace */
.form-section-lead { margin: -5px 0 1px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.gallery-upload-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(245px, .8fr); gap: 16px; align-items: start; }
.gallery-upload-layout--single { grid-template-columns: minmax(0, 1fr); }
.gallery-primary-upload,
.gallery-video-upload { min-height: 100%; padding: 17px; background: #f8fcfb; border: 1px solid #d7e8e5; border-radius: 7px; }
.gallery-upload-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.gallery-upload-heading > div { min-width: 0; }
.gallery-upload-heading strong { display: block; color: var(--navy); font-size: .87rem; }
.gallery-upload-heading p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.gallery-upload-icon { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; color: var(--blue-deep); background: #dff1ee; border-radius: 7px; font-size: 1rem; }
.gallery-upload-zone { padding: 7px; background: #fffefa; border: 1px dashed #a9ccc9; border-radius: 7px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.gallery-upload-zone.is-dragging { background: #e7f6f3; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 125, 153, .12); }
.gallery-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gallery-upload-picker { display: grid !important; min-height: 124px; place-content: center; justify-items: center; gap: 6px; padding: 17px; color: #4b707b !important; background: linear-gradient(145deg, #fcfffe, #f4fbf9); border-radius: 5px; cursor: pointer; text-align: center; }
.gallery-upload-picker:hover { color: var(--blue-deep) !important; background: #ecf8f5; }
.gallery-upload-picker i { color: var(--blue); font-size: 1.55rem; }
.gallery-upload-picker strong { font-size: .76rem; }
.gallery-upload-picker span { color: var(--muted); font-size: .67rem; font-weight: 600; }
.gallery-upload-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 5px 3px; }
.gallery-upload-selection strong,
.gallery-upload-selection span { display: block; }
.gallery-upload-selection strong { color: var(--navy); font-size: .73rem; }
.gallery-upload-selection span { margin-top: 1px; color: var(--muted); font-size: .64rem; font-weight: 600; }
.gallery-upload-selection button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; color: var(--red); background: transparent; border: 0; cursor: pointer; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.gallery-upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 7px; margin-top: 7px; }
.gallery-upload-preview article { position: relative; min-width: 0; padding: 5px; background: #f3f8f7; border: 1px solid #dce9e6; border-radius: 5px; }
.gallery-upload-preview img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 3px; }
.gallery-upload-preview article > div { display: grid; gap: 1px; padding: 5px 2px 1px; }
.gallery-upload-preview strong { overflow: hidden; color: var(--navy); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.gallery-upload-preview span { color: var(--muted); font-size: .58rem; font-weight: 600; }
.gallery-upload-preview button { position: absolute; top: 8px; right: 8px; display: grid; width: 21px; height: 21px; place-items: center; color: #fff; background: rgba(105, 47, 39, .82); border: 0; border-radius: 50%; cursor: pointer; font-size: .62rem; }
.gallery-upload-existing { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce9e6; }
.gallery-upload-existing__head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.gallery-upload-existing__head strong { color: var(--navy); font-size: .72rem; }
.gallery-upload-existing__head span { padding: 3px 6px; color: #477066; background: #e6f2ee; border-radius: 999px; font-size: .61rem; font-weight: 800; }
.gallery-video-upload { display: grid; gap: 13px; }
.gallery-video-tip { display: flex; gap: 7px; padding: 10px; color: #486b78; background: #e9f4f5; border: 1px solid #cee3e3; border-radius: 5px; font-size: .69rem; font-weight: 600; line-height: 1.45; }
.gallery-video-tip i { color: var(--blue); font-size: .88rem; }

@media (max-width: 800px) {
    .menu-structure-head { align-items: flex-start; flex-direction: column; padding: 16px; gap: 12px; }
    .menu-structure-save { white-space: normal; }
    .menu-structure-canvas { padding: 13px; }
    .menu-level-heading { align-items: flex-start; flex-direction: column; }
    .menu-tree-card { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; padding: 10px; }
    .menu-drag-handle { width: 27px; height: 40px; }
    .menu-tree-card__actions { grid-column: 2; justify-content: flex-start; }
    .menu-submenu { margin-left: 17px; padding-left: 13px; }
    .menu-tree-item--child .menu-tree-card { grid-template-columns: 27px minmax(0, 1fr); }
    .menu-tree-item--child .menu-tree-card__actions { grid-column: 2; }
    .gallery-upload-layout { grid-template-columns: 1fr; }
    .gallery-primary-upload,
    .gallery-video-upload { padding: 14px; }
    .gallery-upload-picker { min-height: 108px; }
    .gallery-upload-preview { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}
