:root {
    --navy: #142b45;
    --navy-dark: #0c1c2e;
    --ink: #20334a;
    --muted: #697787;
    --line: #e3e8ee;
    --bg: #f4f6f8;
    --gold: #bda171;
    --white: #fff;
    --radius: 14px;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}
* {
    box-sizing: border-box;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body {
    margin: 0;
    background: var(--bg);
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 2rem;
    line-height: 1.4;
    letter-spacing: -0.055em;
    margin-bottom: 10px;
}
h2 {
    font-size: 1.18rem;
    letter-spacing: -0.035em;
    line-height: 1.5;
    margin-bottom: 18px;
}
h3 {
    font-size: 1rem;
}
p {
    margin-bottom: 16px;
}
small,
.small {
    font-size: 0.8125rem;
}
.muted {
    color: var(--muted);
}
.accent {
    color: var(--gold);
}
.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 12px;
}
.button {
    border: 1px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.15s,
        box-shadow 0.15s;
}
.button:hover {
    background: #234463;
    box-shadow: 0 4px 12px #10233a12;
}
.button.secondary {
    background: white;
    color: var(--ink);
    border-color: #d6dee7;
}
.button.secondary:hover {
    background: #edf2f7;
}
.button.light {
    background: white;
    color: var(--navy);
    border-color: white;
}
.button.danger {
    color: #ad3d43;
    background: #fff6f5;
    border-color: #ebcbcd;
}
.button.full {
    width: 100%;
}
.small-button {
    min-height: 36px;
    padding: 6px 14px;
}
.text-button {
    background: none;
    border: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    padding: 10px;
}
.sidebar {
    width: 242px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    background: var(--navy);
    color: #dce4ed;
    display: flex;
    flex-direction: column;
    padding: 38px 24px 28px;
    overflow-y: auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: white;
}
.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff0b;
    border: 1px solid #ffffff35;
    width: 45px;
    height: 48px;
    border-radius: 12px;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.13em;
    padding-right: 6px;
}
.brand-symbol span {
    color: var(--gold);
}
.brand small {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    font-weight: 400;
    color: #b0c0d0;
    margin-top: 1px;
}
.nav-label {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    color: #91a5ba;
    margin: 39px 13px 13px;
}
.nav-link {
    padding: 12px 14px;
    display: flex;
    gap: 13px;
    align-items: center;
    border-radius: 8px;
    font-size: 0.875rem;
    margin: 3px 0;
    color: #c1cedb;
}
.nav-link > span {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
}
.nav-link.active {
    background: #ffffff12;
    color: #fff;
    box-shadow: inset 3px 0 var(--gold);
}
.nav-link:hover {
    background: #ffffff0c;
    color: white;
}
.sidebar-bottom {
    margin-top: auto;
    padding: 40px 12px 0;
    color: #9aacc0;
}
.private-label {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}
.sidebar-bottom p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 16px 0 20px;
}
.sidebar-bottom small {
    font-size: 0.7rem;
    color: #8298ae;
}
.workspace {
    margin-left: 242px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 88px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    gap: 20px;
}
.breadcrumb {
    color: var(--muted);
    font-size: 0.8125rem;
}
.breadcrumb > span {
    padding: 0 12px;
    color: #b4bdc8;
}
.account {
    display: flex;
    align-items: center;
    gap: 22px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.profile small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--muted);
}
.avatar {
    border-radius: 50%;
    background: #e8edf3;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.avatar.pale {
    background: #edf2f5;
}
.main {
    width: 100%;
    max-width: 1440px;
    padding: 38px 42px 48px;
    margin: 0 auto;
    flex: 1;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}
.page-heading p:last-child {
    margin-bottom: 0;
    font-size: 0.875rem;
}
.date-label {
    font-size: 0.875rem;
    white-space: nowrap;
}
.date-label span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: right;
}
.welcome-band {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 30px 36px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.welcome-band:after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: 190px;
    top: -150px;
    border: 1px solid #ffffff10;
    border-radius: 50%;
    pointer-events: none;
}
.welcome-band h2 {
    font-size: 1.45rem;
    margin: 16px 0 6px;
}
.welcome-band p {
    font-size: 0.875rem;
    margin: 0;
    color: #b6c7d7;
}
.pill {
    border: 1px solid #ffffff30;
    display: inline-block;
    border-radius: 5px;
    font-size: 0.56rem;
    letter-spacing: 0.15em;
    padding: 4px 8px;
    color: #d3c1a3;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0 28px;
}
.stats.three {
    grid-template-columns: repeat(3, 1fr);
}
.stat {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 21px 24px;
}
.stat > span {
    font-size: 0.875rem;
    color: var(--muted);
}
.stat strong {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1.3;
    margin: 9px 0;
}
.stat small {
    font-size: 0.6875rem;
    color: var(--muted);
}
.stat:hover {
    border-color: #aebed0;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    min-width: 0;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
}
.section-heading h2 {
    margin: 0;
}
.section-heading > a {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}
.section-heading > span {
    font-size: 0.8125rem;
}
.feed-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f3;
}
.feed-row:last-child {
    border: 0;
}
.feed-text {
    flex: 1;
    min-width: 0;
}
.feed-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
}
.feed-text small {
    color: var(--muted);
    font-size: 0.6875rem;
    display: block;
    margin-top: 5px;
}
.feed-row time {
    font-size: 0.75rem;
    color: #778593;
}
.feed-row:hover strong {
    color: #526f90;
}
.tag {
    font-size: 0.6875rem;
    background: #edf2f7;
    color: #496280;
    border-radius: 4px;
    padding: 4px 8px;
    white-space: nowrap;
}
.tag.pending {
    background: #fbf0d9;
    color: #816229;
}
.tag.approved {
    background: #e6f2ed;
    color: #2f6c58;
}
.tag.suspended {
    background: #f8e8e9;
    color: #9d444b;
}
.event-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f3;
}
.event-row:last-child {
    border: 0;
}
.event-row > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.event-row strong {
    font-size: 0.875rem;
}
.event-row small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 3px;
}
.date-tile {
    background: #f1f4f8;
    border-radius: 9px;
    padding: 8px 14px;
    text-align: center;
    min-width: 58px;
    flex-shrink: 0;
}
.date-tile small {
    font-size: 0.625rem;
    margin: 0;
}
.date-tile strong {
    font-size: 1.4rem;
    font-family: Georgia, serif;
    font-weight: 400;
}
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 10px;
}
.mini-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.mini-gallery strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 7px;
}
.empty {
    text-align: center;
    padding: 70px 24px;
}
.empty > span {
    font-size: 2rem;
    color: #a0b0c1;
    display: block;
    margin-bottom: 12px;
}
.empty h2,
.empty h3 {
    margin-bottom: 8px;
}
.empty p {
    font-size: 0.875rem;
    color: var(--muted);
}
.empty > a:not(.button) {
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.empty.compact {
    padding: 32px 10px;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.empty.compact > span {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.empty.compact h3 {
    font-size: 0.875rem;
    font-weight: 500;
}
.empty.compact p {
    font-size: 0.75rem;
    margin-bottom: 12px;
}
.footer {
    padding: 20px 42px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #82909e;
    font-size: 0.6875rem;
    border-top: 1px solid var(--line);
}
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.list-toolbar > span {
    color: var(--muted);
}
.list-toolbar strong {
    color: var(--ink);
}
.search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.search input {
    max-width: 260px;
    font-size: 0.8125rem;
}
.search .button {
    min-height: 42px;
}
.search > a {
    white-space: nowrap;
    font-size: 0.8125rem;
}
.post-list {
    padding: 4px 26px;
}
.post-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.post-row:last-child {
    border: 0;
}
.post-row > div {
    flex: 1;
    min-width: 0;
}
.post-row h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}
.post-row p {
    color: var(--muted);
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.post-number {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    color: #93a1af;
    min-width: 30px;
}
.post-meta {
    font-size: 0.8125rem;
    text-align: right;
    flex-shrink: 0;
}
.post-meta small {
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    margin-top: 5px;
}
.gallery-grid {
    display: grid;
    gap: 24px;
}
.gallery-grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-grid.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.gallery-grid.grid-5 .photo-card > div {
    padding: 14px;
}
.view-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.view-switch .view-button {
    min-height: 40px;
    padding: 9px 14px;
    gap: 7px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.8125rem;
    background: #fff;
    box-shadow: 0 2px 7px rgba(29, 40, 48, 0.05);
}
.view-switch .view-button:hover {
    color: var(--ink);
    border-color: #aab4ac;
}
.view-switch .view-button.active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 4px 10px rgba(29, 40, 48, 0.16);
}
.view-switch .view-button span {
    font-size: 1rem;
    line-height: 1;
}
.gallery-list-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.gallery-list-row:last-child {
    border-bottom: 0;
}
.gallery-list-row img {
    width: 110px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}
.gallery-list-row h2,
.gallery-list-row p {
    margin: 0;
}
.gallery-list-row p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.8125rem;
}
.calendar-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.event-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    min-width: 735px;
}
.calendar-weekday {
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.calendar-day {
    min-height: 125px;
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.calendar-day:nth-child(7n) {
    border-right: 0;
}
.calendar-day.outside {
    background: #f7f8f8;
    color: #aab0b5;
}
.calendar-event {
    display: block;
    margin-top: 7px;
    padding: 6px 7px;
    border-radius: 6px;
    background: #eef3ee;
    color: var(--ink);
    font-size: 0.7rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.calendar-event time {
    color: var(--muted);
    margin-right: 3px;
}
.article-gallery figure {
    margin: 0;
}
.article-gallery figcaption {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}
.error-reference {
    font-family: ui-monospace, monospace;
}
.photo-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.photo-card > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.photo-card > div {
    padding: 20px;
}
.photo-card h2 {
    font-size: 1rem;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}
.photo-card p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--muted);
}
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 12px;
}
.month-nav h2 {
    margin: 0;
    font-size: 1.4rem;
}
.month-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.month-picker input[type="month"] {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.calendar-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.calendar-title h2 {
    margin: 0;
    font-size: 1.25rem;
}
.calendar-title span {
    color: var(--muted);
    font-size: 0.75rem;
}
.event-row.large {
    padding: 24px 0;
}
.event-row.large h2 {
    margin-bottom: 6px;
}
.event-row.large p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}
.event-row.large .date-tile {
    padding: 10px 20px;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 0.875rem;
}
.back-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.article {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px;
}
.article-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
}
.article-heading h1 {
    margin-top: 18px;
    overflow-wrap: anywhere;
}
.article-heading p {
    font-size: 0.8125rem;
    margin: 0;
}
.article-body {
    padding: 30px 0;
    line-height: 1.95;
    min-height: 150px;
    overflow-wrap: anywhere;
}
.article-image {
    display: block;
    max-width: 100%;
    max-height: 900px;
    margin: 28px auto 0;
    border-radius: 8px;
}
.event-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 24px;
    background: #f4f7fa;
    border-radius: 10px;
    margin-top: 28px;
}
.event-info small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 7px;
}
.event-info strong {
    font-size: 0.875rem;
    font-weight: 500;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.stack > label,
label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 0.875rem;
    font-weight: 500;
}
input,
textarea,
select {
    display: block;
    width: 100%;
    border: 1px solid #d5dee7;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    border-radius: 7px;
    min-width: 0;
    font-weight: 400;
    font-size: 1rem;
}
textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.8;
}
input::placeholder,
textarea::placeholder {
    color: #95a1ae;
    font-size: 0.875rem;
}
input[readonly] {
    background: #f1f4f7;
    color: var(--muted);
}
:focus-visible {
    outline: 3px solid #7b9abd;
    outline-offset: 3px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.field-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin: -12px 0 0;
    font-weight: 400;
}
.editor {
    max-width: 960px;
    margin: auto;
    padding: 34px;
}
.upload-area {
    border: 1px dashed #b4c1cf;
    border-radius: 9px;
    background: #f8fafc;
    padding: 24px;
}
.upload-area .field-hint {
    margin: 12px 0 0;
}
.attachment-editor {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.attachment-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: opacity 0.15s, border-color 0.15s;
}
.attachment-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.attachment-item span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 400;
}
.attachment-item input {
    width: auto;
    margin: 0;
}
.attachment-item.marked-delete {
    opacity: 0.45;
    border-color: #ad3d43;
}
.image-count {
    font-size: 0.8125rem;
    color: var(--muted);
}
.editor-label {
    display: block;
}
.editor-label > .note-editor {
    margin-top: 9px;
    font-weight: 400;
}
.note-editor.note-frame {
    border-color: #d5dee7;
    border-radius: 8px;
    overflow: hidden;
}
.note-toolbar {
    background: #f7f9fb;
}
.note-editable {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
}
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.article-gallery .article-image {
    width: 100%;
    height: 100%;
    max-height: 680px;
    margin: 0;
    object-fit: cover;
}
.edit-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    margin-bottom: 18px;
}
.form-panel {
    max-width: 630px;
}
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}
.alert.error {
    color: #9a313d;
    background: #fbe9ea;
    border: 1px solid #efcdd1;
}
.alert.success {
    background: #e6f2ec;
    color: #2f6a50;
    border: 1px solid #cbe2d6;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-tabs a {
    font-size: 0.875rem;
    padding: 8px 17px;
    border-radius: 7px;
    color: var(--muted);
}
.filter-tabs a.selected {
    background: var(--navy);
    color: white;
}
.result-count {
    margin: -10px 0 16px;
    color: var(--muted);
    font-size: 0.8125rem;
}
.error-log-list {
    display: grid;
    gap: 16px;
}
.error-log-card {
    padding: 24px;
}
.error-log-card.resolved {
    opacity: 0.78;
}
.error-log-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.error-log-card header h2 {
    margin: 9px 0 0;
    font-size: 1rem;
}
.error-log-card header time {
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
}
.error-code {
    display: inline-block;
    margin-right: 8px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.error-message {
    padding: 14px 16px;
    border-radius: 8px;
    background: #fbe9ea;
    color: #8b2c37;
    overflow-wrap: anywhere;
}
.error-meta {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}
.error-meta div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}
.error-meta dt {
    color: var(--muted);
    font-size: 0.75rem;
}
.error-meta dd {
    margin: 0;
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}
.error-trace summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.8125rem;
}
.error-trace pre {
    max-height: 320px;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: #172331;
    color: #e7edf3;
    font-size: 0.75rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.table-wrap {
    overflow-x: auto;
    padding: 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.875rem;
    white-space: nowrap;
}
th,
td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}
tbody tr:last-child td {
    border: 0;
}
td small {
    display: block;
    font-size: 0.6875rem;
    color: var(--muted);
    margin-top: 5px;
}
.admin-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.admin-content-grid > a {
    background: #f5f7fa;
    border-radius: 9px;
    padding: 23px;
}
.admin-content-grid span {
    font-size: 0.875rem;
}
.admin-content-grid strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 12px;
    font-weight: 500;
}
.admin-content-grid small {
    font-size: 0.8125rem;
    color: var(--muted);
}
.admin-content-grid p {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 6px 0 0;
}
.admin-note {
    margin-top: 24px;
}
.admin-note > p {
    font-size: 0.875rem;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    list-style: none;
    margin: 25px 0;
}
.steps strong {
    font-size: 0.9375rem;
}
.steps p {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 10px;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}
.admin-form-grid .panel > p {
    font-size: 0.875rem;
}
.danger-panel {
    margin-top: 24px;
    border-color: #eed8d9;
}
.auth {
    background: #fff;
}
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 100vh;
}
.auth-shell > .alert {
    grid-column: 1/-1;
    margin: 0;
    border-radius: 0;
}
.auth-story {
    background: var(--navy);
    color: #fff;
    padding: 52px 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-story:before {
    content: '';
    width: 540px;
    height: 540px;
    border: 1px solid #ffffff0c;
    border-radius: 50%;
    position: absolute;
    bottom: -190px;
    right: -130px;
    pointer-events: none;
}
.auth-story:after {
    content: '';
    width: 420px;
    height: 420px;
    border: 1px solid #ffffff09;
    border-radius: 50%;
    position: absolute;
    bottom: -130px;
    right: -70px;
    pointer-events: none;
}
.auth-copy {
    margin: auto 0;
    padding: 70px 0;
}
.auth-copy .eyebrow {
    color: #bfa881;
    font-size: 0.625rem;
    margin-bottom: 28px;
}
.auth-copy h1 {
    font-size: 3.05rem;
    line-height: 1.5;
    letter-spacing: -0.065em;
    font-weight: 500;
    margin-bottom: 28px;
}
.auth-copy > p:last-child {
    color: #b5c5d5;
    line-height: 1.9;
    font-size: 0.9375rem;
}
.auth-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #95aabf;
}
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 48px;
}
.auth-form-inner {
    width: 100%;
    max-width: 365px;
}
.auth-form h2 {
    font-size: 1.9rem;
    margin: 16px 0 13px;
    letter-spacing: -0.06em;
}
.auth-form .muted {
    font-size: 0.8125rem;
}
.auth-form .stack {
    margin-top: 36px;
    gap: 22px;
}
.auth-form .button {
    margin-top: 5px;
    min-height: 50px;
}
.auth-note {
    background: #f5f7fa;
    border-radius: 9px;
    padding: 22px;
    margin-top: 30px;
}
.auth-note strong {
    font-size: 0.8125rem;
    font-weight: 600;
}
.auth-note p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.9;
    margin: 8px 0 0;
}
.auth-form .small {
    font-size: 0.6875rem;
    margin: 20px 0 0;
}
.connection-error {
    max-width: 650px;
    margin: 15vh auto;
    padding: 40px;
}
.skip {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #fff;
    padding: 15px;
    z-index: 100;
}
.skip:focus {
    top: 10px;
}
@media (min-width: 1600px) {
    .auth-story {
        padding: 70px 90px;
    }
    .auth-copy h1 {
        font-size: 3.6rem;
    }
    .auth-form-inner {
        max-width: 400px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 210px;
        padding: 32px 17px;
    }
    .workspace {
        margin-left: 210px;
    }
    .topbar {
        padding: 0 28px;
    }
    .main {
        padding: 30px 28px;
    }
    .stats {
        gap: 12px;
    }
    .stat {
        padding: 18px;
    }
    .stat small {
        font-size: 0.65rem;
    }
    .dashboard-grid {
        gap: 18px;
    }
    .panel {
        padding: 22px;
    }
    .table-wrap {
        padding: 0;
    }
    .auth-story {
        padding: 40px;
    }
    .auth-copy h1 {
        font-size: 2.6rem;
    }
    .admin-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 960px) {
    .sidebar {
        width: 190px;
        padding: 30px 12px;
    }
    .workspace {
        margin-left: 190px;
    }
    .brand {
        font-size: 1.2rem;
    }
    .brand-symbol {
        width: 38px;
        height: 42px;
    }
    .nav-link {
        font-size: 0.8125rem;
        padding: 11px 12px;
        gap: 7px;
    }
    .main {
        padding: 28px 22px;
    }
    .topbar {
        padding: 0 22px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat small {
        font-size: 0.75rem;
    }
    .gallery-grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid.grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb {
        display: none;
    }
    .topbar {
        justify-content: flex-end;
    }
    .welcome-band {
        padding: 25px;
    }
    .page-heading .date-label {
        display: none;
    }
    .auth-story {
        padding: 34px;
    }
    .auth-copy h1 {
        font-size: 2.25rem;
    }
    .auth-form {
        padding: 45px 32px;
    }
    .auth-form h2 {
        font-size: 1.65rem;
    }
    .auth-foot {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 20px 20px 12px;
        overflow: visible;
        display: block;
    }
    .sidebar .brand {
        font-size: 1.3rem;
    }
    .sidebar nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        margin-top: 20px;
        padding-bottom: 5px;
    }
    .nav-label,
    .sidebar-bottom {
        display: none;
    }
    .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        flex-shrink: 0;
    }
    .nav-link > span {
        display: none;
    }
    .nav-link.active {
        box-shadow: inset 0 -2px var(--gold);
    }
    .workspace {
        margin-left: 0;
    }
    .topbar {
        height: 69px;
        padding: 0 20px;
    }
    .account {
        width: 100%;
        justify-content: space-between;
    }
    .profile small {
        font-size: 0.7rem;
    }
    .main {
        padding: 26px 20px 38px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 24px;
    }
    .page-heading h1 {
        font-size: 1.65rem;
    }
    .page-heading > .button {
        padding: 9px 13px;
        font-size: 0.8125rem;
        min-height: 42px;
    }
    .page-heading p:last-child {
        font-size: 0.8125rem;
    }
    .eyebrow {
        font-size: 0.625rem;
    }
    .welcome-band {
        padding: 24px;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
    .welcome-band h2 {
        font-size: 1.25rem;
    }
    .welcome-band p {
        font-size: 0.8125rem;
    }
    .welcome-band .button {
        min-height: 40px;
        font-size: 0.8125rem;
    }
    .stats {
        gap: 12px;
        margin-top: 20px;
    }
    .stats.three {
        grid-template-columns: 1fr;
    }
    .stats.three .stat {
        display: grid;
        grid-template-columns: 1fr auto;
    }
    .stats.three .stat strong {
        grid-column: 2;
        grid-row: 1/3;
        margin: 0;
    }
    .stat {
        padding: 18px;
    }
    .stat strong {
        font-size: 2rem;
    }
    .stat small {
        font-size: 0.625rem;
    }
    .panel {
        padding: 22px 18px;
    }
    .section-heading h2 {
        font-size: 1.05rem;
    }
    .section-heading > a {
        font-size: 0.75rem;
    }
    .footer {
        padding: 20px;
    }
    .list-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .search {
        width: 100%;
    }
    .search input {
        max-width: none;
        flex: 1;
        width: 100px;
    }
    .post-list {
        padding: 0 18px;
    }
    .post-row {
        gap: 14px;
    }
    .post-number {
        display: none;
    }
    .post-row h2 {
        font-size: 0.9375rem;
    }
    .post-meta {
        font-size: 0.75rem;
        max-width: 82px;
    }
    .gallery-grid {
        gap: 14px;
    }
    .gallery-grid.grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-list-row {
        grid-template-columns: 84px minmax(0, 1fr);
    }
    .gallery-list-row img {
        width: 84px;
    }
    .gallery-list-row .post-meta {
        display: none;
    }
    .photo-card > div {
        padding: 15px;
    }
    .photo-card h2 {
        font-size: 0.875rem;
    }
    .photo-card p {
        font-size: 0.6875rem;
    }
    .photo-card p span {
        display: block;
    }
    .month-nav h2 {
        font-size: 1.2rem;
    }
    .month-nav .button {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .month-nav {
        flex-wrap: wrap;
    }
    .month-picker {
        width: 100%;
        order: -1;
    }
    .month-picker label {
        flex: 1;
    }
    .month-picker input[type="month"] {
        width: 100%;
    }
    .article {
        padding: 24px 20px;
    }
    .article-heading h1 {
        font-size: 1.5rem;
    }
    .event-info {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        justify-content: stretch;
    }
    .form-actions > .button {
        flex: 1;
    }
    .editor {
        padding: 24px 20px;
    }
    .attachment-editor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-gallery {
        grid-template-columns: 1fr;
    }
    .table-wrap {
        padding: 0;
    }
    th,
    td {
        padding: 16px;
    }
    .admin-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .admin-content-grid > a {
        padding: 16px;
    }
    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .steps p {
        margin-bottom: 0;
    }
    .section-heading {
        flex-wrap: wrap;
    }
    .event-row.large {
        gap: 12px;
    }
    .event-row.large h2 {
        font-size: 1rem;
    }
    .event-row.large p {
        font-size: 0.75rem;
    }
    .event-row.large .date-tile {
        padding: 10px 13px;
    }
    .event-row.large > .tag {
        display: none;
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-story {
        padding: 26px 28px;
    }
    .auth-story .brand {
        font-size: 1.3rem;
    }
    .auth-copy {
        padding: 40px 0 8px;
    }
    .auth-copy h1 {
        font-size: 2rem;
        margin-bottom: 0;
    }
    .auth-copy .eyebrow {
        margin-bottom: 16px;
    }
    .auth-copy > p:last-child,
    .auth-foot {
        display: none;
    }
    .auth-form {
        padding: 35px 28px 45px;
    }
    .auth-form-inner {
        max-width: 440px;
    }
    .auth-form h2 {
        font-size: 1.7rem;
    }
    .auth-form .stack {
        margin-top: 28px;
    }
    .auth-note {
        margin-top: 25px;
    }
    .auth-form .small {
        font-size: 0.75rem;
    }
    .connection-error {
        margin: 8vh auto;
        padding: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
