:root {
    --ink: #202832;
    --muted: #667085;
    --line: #d8dee6;
    --paper: #ffffff;
    --bg: #f4f6f8;
    --green: #1a4331;
    --green-2: #255f45;
    --gold: #c5a869;
    --dark: #141820;
}

/* Final location layout override: keep the guide page image as a clean full-width banner. */
.location-page-polished .location-visual-card {
    position: relative;
    display: block;
    grid-template-columns: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 430px;
    overflow: hidden;
    background: #eef2f5;
    border: 1px solid #e1e6ee;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.location-page-polished .location-visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-page-polished .location-visual-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: white;
    background: rgba(20, 24, 32, .74);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.location-page-polished .location-visual-caption span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 900;
}

.location-page-polished .location-visual-caption strong {
    color: var(--gold);
    font-size: 14px;
    text-align: right;
}

.location-page-polished .location-note-panel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.location-page-polished .location-note-panel .location-band-link {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .location-page-polished .location-visual-card {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .location-page-polished .location-note-panel {
        grid-template-columns: 1fr;
    }

    .location-page-polished .location-note-panel .location-band-link {
        width: fit-content;
    }
}

@media (max-width: 560px) {
    .location-page-polished .location-visual-caption {
        position: static;
        display: grid;
        gap: 3px;
        color: var(--green);
        background: white;
        border-left: 0;
        border-top: 4px solid var(--gold);
        border-radius: 0;
    }

    .location-page-polished .location-visual-caption strong {
        color: #4b5563;
        text-align: left;
    }
}

/* Final compact tweaks for meal table and paired Korean/Hanja titles. */
.meal-calendar-head {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 52px;
}

.meal-calendar-head a {
    width: 30px;
    height: 30px;
    color: #667085;
    background: transparent;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 800;
}

.meal-calendar-head a:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.meal-block {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    min-height: 170px;
    padding: 24px 28px;
}

.meal-block > strong {
    min-height: 52px;
    font-size: 22px;
}

.meal-block li,
.meal-block p {
    font-size: 18px;
    line-height: 1.5;
}

.history-simple-head h1,
.location-simple-head h1,
.history-hero-panel h1,
.location-intro h1,
.location-lead-panel h1 {
    word-break: keep-all;
}

.history-simple-head h1 span,
.location-simple-head h1 span,
.history-hero-panel h1 span,
.location-intro h1 span,
.location-lead-panel h1 span {
    display: inline-block;
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
    white-space: nowrap;
    vertical-align: baseline;
}

@media (max-width: 700px) {
    .page-main-head {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .page-main-head h1 {
        font-size: 32px;
    }

    .page-main-head h1 span {
        display: inline-block;
        font-size: 15px;
    }

    .page-main-head > p:last-child {
        font-size: 14px;
        line-height: 1.7;
    }

    .meal-page {
        gap: 16px;
    }

    .meal-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meal-tabs span,
    .meal-tabs strong,
    .meal-tabs a {
        min-height: 42px;
        font-size: 13px;
    }

    .meal-tabs span:nth-child(2n),
    .meal-tabs strong:nth-child(2n),
    .meal-tabs a:nth-child(2n) {
        border-right: 0;
    }

    .meal-board-banner {
        gap: 16px;
        margin-right: -12px;
        margin-left: -12px;
        padding: 34px 18px;
    }

    .meal-board-panel {
        width: min(100% - 24px, 960px);
        margin-top: 28px;
        border-radius: 12px;
    }

    .meal-board-benefits {
        grid-template-columns: 1fr;
    }

    .meal-board-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .meal-board-panel p,
    .meal-board-panel li {
        font-size: 14px;
        line-height: 1.7;
    }

    .meal-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .meal-calendar-head {
        min-height: 48px;
    }

    .meal-calendar-head a {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .meal-week span {
        min-height: 30px;
        font-size: 12px;
    }

    .meal-day {
        min-height: 46px;
        padding: 7px 6px;
        font-size: 13px;
    }

    .meal-detail header {
        min-height: 54px;
    }

    .meal-detail h2 {
        font-size: 18px;
    }

    .meal-block {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 16px 14px;
    }

    .meal-block > strong {
        min-height: 42px;
        font-size: 17px;
    }

    .meal-block li,
    .meal-block p {
        font-size: 15px;
        line-height: 1.55;
    }

    .history-simple-head h1 span,
    .location-simple-head h1 span,
    .history-hero-panel h1 span,
    .location-intro h1 span,
    .location-lead-panel h1 span {
        font-size: 15px;
    }
}

.admissions-closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admissions-closing-actions .button {
    white-space: nowrap;
}

.admissions-closing-actions .admissions-apply-button {
    background: var(--gold);
    color: #17211a;
    border: 1px solid #b89546;
}

.admissions-closing-actions .admissions-apply-button:hover {
    background: #d5bb78;
    color: #17211a;
}

.admissions-page .admissions-head {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.admissions-page .admissions-head h1 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.admissions-page .admissions-head h1 span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
}

.admissions-page .admissions-head p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    word-break: keep-all;
}

.admissions-page .admissions-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.admissions-page .admissions-guide article,
.admissions-page .admissions-guide aside {
    padding: 20px;
    background: white;
    border: 1px solid #e6e9ef;
    border-top: 2px solid var(--green);
    border-radius: 4px;
}

.admissions-page .admissions-guide aside {
    display: grid;
    align-content: start;
    gap: 12px;
    border-top-color: var(--gold);
}

@media (max-width: 900px) {
    .admissions-page .admissions-guide {
        grid-template-columns: 1fr;
    }
}

.admissions-page {
    display: grid;
    gap: 24px;
}

.admissions-head {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.admissions-head h1 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.admissions-head h1 span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
}

.admissions-head p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    word-break: keep-all;
}

.admissions-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.admissions-guide article,
.admissions-guide aside {
    padding: 20px;
    background: white;
    border: 1px solid #e6e9ef;
    border-top: 2px solid var(--green);
    border-radius: 4px;
}

.admissions-guide h2 {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 20px;
}

.admissions-guide ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    margin: 0;
    color: #4b5563;
}

.admissions-guide aside {
    display: grid;
    align-content: start;
    gap: 12px;
    border-top-color: var(--gold);
}

.admissions-guide aside strong {
    color: var(--green);
    font-size: 18px;
}

.admissions-guide aside p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
}

.admissions-guide aside a {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 9px 14px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .admissions-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admissions-head h1 span {
        display: block;
        margin: 4px 0 0;
    }

    .admissions-guide article,
    .admissions-guide aside {
        padding: 16px;
    }
}

.location-page-simple {
    display: grid;
    gap: 24px;
}

.location-simple-head {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.location-simple-head h1 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.location-simple-head h1 span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
}

.location-simple-head p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    word-break: keep-all;
}

.location-simple-head strong {
    color: var(--green);
}

.location-simple-photo {
    margin: 0;
    overflow: hidden;
    background: #eef2f5;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
}

.location-simple-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.location-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.location-simple-box {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
    background: white;
    border: 1px solid #e6e9ef;
    border-top: 2px solid var(--green);
    border-radius: 4px;
}

.location-simple-box h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--green);
    font-size: 19px;
}

.location-simple-box h2 span {
    color: var(--gold);
}

.location-simple-box dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.location-simple-box dt {
    color: #202832;
    font-size: 15px;
    font-weight: 900;
}

.location-simple-box dd {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 15px;
}

.location-simple-box small {
    display: block;
    margin-top: 2px;
    color: #667085;
}

.location-simple-box p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    word-break: keep-all;
}

.location-simple-box a {
    color: #2563eb;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.location-simple-link {
    width: fit-content;
}

@media (max-width: 900px) {
    .location-simple-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .location-simple-head h1 span {
        display: block;
        margin: 4px 0 0;
    }

    .location-simple-box {
        padding: 16px;
    }
}

.post-editor img,
.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
}

.editor-toolbar button {
    width: auto;
    min-width: 34px;
}

.location-page-polished .location-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-page-polished .location-apply-card {
    background:
        linear-gradient(135deg, rgba(26, 67, 49, .05), rgba(197, 168, 105, .12)),
        #ffffff;
    border-left: 4px solid var(--gold);
}

.location-page-polished .location-apply-card p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    word-break: keep-all;
}

.location-page-polished .location-apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 9px 14px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.location-page-polished .location-apply-link:hover {
    background: var(--green-2);
}

@media (max-width: 900px) {
    .location-page-polished .location-info-grid {
        grid-template-columns: 1fr;
    }
}

.history-page {
    display: grid;
    gap: 28px;
}

.history-hero-panel {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    display: grid;
    align-items: end;
    padding: clamp(24px, 5vw, 42px);
    color: white;
    background:
        linear-gradient(90deg, rgba(9, 17, 15, .72), rgba(26, 67, 49, .38)),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28)),
        url("/assets/samgyeong.jpg") center/cover;
    border-radius: 4px;
    border-bottom: 4px solid var(--gold);
}

.history-hero-panel > div {
    display: grid;
    gap: 10px;
    max-width: 720px;
}

.history-hero-panel .eyebrow {
    margin: 0;
    color: var(--gold);
}

.history-hero-panel h1 {
    margin: 0;
    color: white;
    font-size: clamp(36px, 7vw, 60px);
    line-height: 1.08;
    text-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.history-hero-panel h1 span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.history-hero-panel p:last-child {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    word-break: keep-all;
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.history-summary-grid article {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: #f8faf9;
    border: 1px solid #e6e9ef;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.history-summary-grid strong {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
}

.history-summary-grid span {
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 24px;
}

.history-timeline::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 82px;
    width: 2px;
    content: "";
    background: linear-gradient(180deg, var(--green), var(--gold));
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.history-item time {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 86px;
    min-height: 48px;
    color: white;
    background: var(--green);
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 900;
}

.history-item > div {
    padding: 24px;
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.history-item h2 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 21px;
}

.history-item ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.history-item li {
    position: relative;
    padding-left: 16px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}

.history-item li::before {
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 999px;
    content: "";
}

.history-closing-panel {
    display: grid;
    gap: 10px;
    padding: 26px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    border-bottom: 4px solid var(--gold);
}

.history-closing-panel h2 {
    margin: 0;
    font-size: 23px;
}

.history-closing-panel p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    word-break: keep-all;
}

@media (max-width: 900px) {
    .history-summary-grid {
        grid-template-columns: 1fr;
    }

    .history-timeline {
        padding-left: 0;
    }

    .history-timeline::before {
        left: 42px;
    }

    .history-item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
    }

    .history-item time {
        width: 76px;
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .history-hero-panel {
        min-height: 250px;
        padding: 22px;
    }

    .history-timeline::before {
        display: none;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-item time {
        justify-self: start;
    }

    .history-item > div,
    .history-closing-panel,
    .history-summary-grid article {
        padding: 18px;
    }
}

.location-page {
    display: grid;
    gap: 28px;
}

.location-intro {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 8px 0 6px;
    text-align: center;
}

.location-intro h1 {
    margin-bottom: 2px;
}

.location-intro h1 span {
    color: var(--gold);
    font-size: 18px;
}

.location-intro h2 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.25;
}

.location-intro p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    word-break: keep-all;
}

.location-intro strong {
    color: var(--green);
}

.location-map-panel {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #d8dee6;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.location-map-panel img,
.location-map-shade {
    position: absolute;
    inset: 0;
}

.location-map-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.location-map-panel:hover img {
    transform: scale(1.035);
}

.location-map-shade {
    background:
        linear-gradient(90deg, rgba(20, 24, 32, .34), rgba(26, 67, 49, .18)),
        linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .22));
}

.location-map-marker {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    height: fit-content;
    max-width: calc(100% - 32px);
    margin: auto;
    padding: 16px 22px;
    color: var(--green);
    background: rgba(255, 255, 255, .94);
    border-bottom: 4px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
}

.location-map-marker span {
    color: var(--gold);
    font-size: 27px;
    line-height: 1;
}

.location-map-marker strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 4vw, 23px);
    line-height: 1.2;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.location-info-card {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.location-info-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-bottom: 12px;
    color: var(--green);
    border-bottom: 1px solid #edf0f4;
    font-size: 19px;
}

.location-info-card h2 span {
    color: var(--gold);
    font-size: 18px;
}

.location-info-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.location-info-card dt {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.location-info-card dd {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 15px;
}

.location-info-card dd small {
    display: block;
    margin-top: 2px;
    color: #7a8595;
    font-size: 12px;
}

.location-info-card a {
    color: #2563eb;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.location-contact-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.location-contact-list li {
    display: grid;
    gap: 3px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-left: 4px solid var(--green);
    border-radius: 4px;
}

.location-contact-list li.blue {
    border-left-color: #2c5282;
}

.location-contact-list li.gold {
    border-left-color: #b7791f;
}

.location-contact-list li.green {
    border-left-color: #276749;
}

.location-contact-list strong {
    color: var(--green);
    font-size: 14px;
}

.location-contact-list span {
    color: #4b5563;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.location-note {
    margin: 0;
    padding: 14px;
    color: #5d6675;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .location-info-grid {
        grid-template-columns: 1fr;
    }

    .location-map-panel {
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    .location-intro {
        justify-items: start;
        text-align: left;
    }

    .location-map-panel {
        min-height: 230px;
    }

    .location-map-marker {
        padding: 13px 16px;
    }

    .location-info-card {
        padding: 18px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.copy-protected {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.copy-protected input,
body.copy-protected textarea,
body.copy-protected select,
body.copy-protected button,
body.copy-protected dialog,
body.copy-protected [contenteditable="true"],
body.copy-protected .rich-editor,
body.copy-protected .editor-toolbar {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.user-watermark {
    position: fixed;
    inset: -12vh -12vw;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 54px 68px;
    align-content: center;
    pointer-events: none;
    opacity: .075;
    overflow: hidden;
    transform: rotate(-24deg);
    mix-blend-mode: multiply;
}

.user-watermark span {
    color: #1a4331;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 700px) {
    .user-watermark {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
        gap: 52px 42px;
        opacity: .07;
    }

    .user-watermark span {
        font-size: 15px;
        letter-spacing: .06em;
    }
}

a {
    color: inherit;
}

.utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px clamp(18px, 4vw, 48px);
    color: #e7eaee;
    background: var(--dark);
    font-size: 12px;
}

.utility-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.utility-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 9px;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.utility-button.primary {
    background: var(--green);
}

.utility-button.secondary {
    background: #344054;
}

.utility-button.system {
    color: #17211a;
    background: var(--gold);
}

.utility-button:hover {
    transform: translateY(-1px);
}

.utility-button.primary:hover {
    background: var(--green-2);
}

.utility-button.secondary:hover {
    background: #475467;
}

.utility-button.system:hover {
    background: #d3b974;
}

.utility-button span {
    font-size: 13px;
    line-height: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 78px;
    padding: 0 clamp(18px, 4vw, 48px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .04);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--green);
    text-decoration: none;
}

.brand-block img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-block span {
    display: grid;
    gap: 2px;
}

.brand-block strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: 0;
}

.brand-block em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 34px);
}

.primary-nav a {
    display: flex;
    align-items: center;
    min-height: 78px;
    border-bottom: 4px solid transparent;
    color: #394150;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.primary-nav a.active,
.primary-nav a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

.site-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 250px;
    overflow: hidden;
    color: white;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    background:
        linear-gradient(90deg, rgba(9, 17, 15, .72), rgba(26, 67, 49, .54)),
        linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .26)),
        url("/assets/samgyeong.jpg") center/cover;
}

.sub-hero {
    min-height: 280px;
}

.site-hero > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    width: min(1120px, calc(100% - 32px));
    justify-items: start;
    text-align: left;
}

.site-hero span {
    width: fit-content;
    padding: 5px 11px;
    color: var(--green);
    background: rgba(255, 255, 255, .9);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 900;
}

.site-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.site-hero p {
    margin: 0;
    color: var(--gold);
    font-weight: 900;
}

.shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.sidebar {
    overflow: hidden;
    align-self: start;
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}

.sidebar h2 {
    margin: 0;
    padding: 20px 18px;
    color: white;
    background:
        linear-gradient(135deg, rgba(26, 67, 49, .95), rgba(37, 95, 69, .92)),
        url("/assets/samgyeong.jpg") center/cover;
    font-size: 25px;
}

.sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--line);
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar a.active,
.sidebar a:hover {
    color: var(--green);
    background: #eef7f2;
    box-shadow: inset 4px 0 0 var(--gold);
}

.sidebar-submenu {
    background: #fbfcfd;
    border-bottom: 1px solid var(--line);
}

.sidebar-submenu a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 9px 16px 9px 36px;
    background: transparent;
    border-bottom: 1px solid #eef1f5;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-submenu a::before {
    width: 8px;
    height: 1px;
    margin-right: 10px;
    background: #98a2b3;
    content: "";
}

.sidebar-submenu a.active,
.sidebar-submenu a:hover {
    color: var(--green);
    background: white;
    box-shadow: inset 3px 0 0 var(--green);
}

.content-panel {
    min-height: 520px;
    padding: 30px;
    background: var(--paper);
    border: 1px solid #e6e9ef;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    position: relative;
}

.content-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--green), var(--gold));
}

.narrow {
    max-width: 560px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    text-align: right;
}

.page h1,
.intro-box h1 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.page h1 {
    color: var(--green);
}

.page p {
    white-space: normal;
}

.home-grid {
    display: grid;
    gap: 18px;
}

.main-home {
    background: white;
}

.main-visual {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #111827;
}

.main-visual-image,
.main-visual-overlay {
    position: absolute;
    inset: 0;
}

.main-visual-image {
    background: url("/assets/samgyeong.jpg") center/cover;
    transform: scale(1.04);
}

.main-visual-overlay {
    background:
        linear-gradient(90deg, rgba(9, 17, 15, .68), rgba(9, 17, 15, .18)),
        linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .36));
}

.main-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 10px 20px;
    color: var(--green);
    background: rgba(255, 255, 255, .92);
    border-bottom: 2px solid var(--green);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    text-align: center;
}

.main-ribbon strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 3vw, 25px);
}

.main-ribbon span {
    color: var(--gold);
    font-weight: 800;
}

.main-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: 500px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 90px 0 70px;
    color: white;
}

.main-copy p {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
}

.main-copy h1 {
    max-width: 680px;
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.08;
}

.main-copy a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 10px 18px;
    color: white;
    background: var(--green);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    font-weight: 900;
    text-decoration: none;
}

.main-popups {
    position: absolute;
    z-index: 3;
    left: max(24px, calc((100vw - 1120px) / 2));
    bottom: 30px;
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.popup-card {
    display: grid;
    align-content: start;
    gap: 7px;
    width: min(290px, calc(50vw - 32px));
    min-height: 148px;
    padding: 17px;
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .24);
    text-decoration: none;
}

.popup-card.light {
    color: var(--ink);
    background: white;
    border-left: 4px solid var(--green);
}

.popup-card.dark {
    color: white;
    background: var(--green);
}

.popup-card.meal-board-popup {
    color: white;
    background: #477c58;
    border-left: 4px solid #c5e3b3;
}

.popup-card.meal-board-popup span {
    color: #d9f8c6;
    background: rgba(255, 255, 255, .12);
}

.popup-card.meal-board-popup strong {
    color: white;
}

.popup-card span {
    width: fit-content;
    padding: 3px 8px;
    background: rgba(197, 168, 105, .18);
    border-radius: 999px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.popup-card strong {
    font-size: 19px;
    line-height: 1.25;
}

.popup-card em {
    color: inherit;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    opacity: .78;
}

.home-boards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 70px;
}

.home-board-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1f2937;
}

.home-board-head h2 {
    margin: 0;
    font-size: 21px;
}

.home-board-head a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-board ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-board li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.home-board li a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #344054;
    text-decoration: none;
}

.home-board li a:hover span {
    color: var(--green);
    text-decoration: underline;
}

.home-board li a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-notice-title {
    color: #b42318 !important;
    font-weight: 900;
}

.home-board li strong {
    flex: none;
    padding: 1px 5px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    font-size: 10px;
}

.home-board time {
    color: #98a2b3;
    font-size: 12px;
}

.home-board-empty {
    display: block;
    color: #8a94ad;
    font-size: 15px;
}

.intro-box {
    padding: 30px;
    background: #f8faf9;
    border-left: 4px solid var(--gold);
}

.intro-box p {
    max-width: 700px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.notice-box {
    padding: 22px;
    border: 1px solid var(--line);
}

.notice-box h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.council-page {
    display: grid;
    gap: 28px;
}

.council-intro {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 30px;
    background: #f8faf9;
    border-left: 4px solid var(--green);
}

.council-mark {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: white;
    background: var(--green);
    border-bottom: 4px solid var(--gold);
    border-radius: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 800;
}

.council-intro h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 25px;
}

.council-intro p:last-child {
    max-width: 760px;
    margin: 0;
    color: #475467;
    font-size: 17px;
    line-height: 1.85;
    word-break: keep-all;
}

.council-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.council-role-grid article {
    padding: 26px;
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.council-role-grid span {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 800;
}

.council-role-grid h3 {
    margin: 8px 0 14px;
    color: var(--green);
    font-size: 21px;
}

.council-role-grid ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.council-role-grid li {
    position: relative;
    padding-left: 18px;
    color: #475467;
    word-break: keep-all;
}

.council-role-grid li::before {
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 999px;
    content: "";
}

.council-principles {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.council-principles h2 {
    margin: 0;
    padding: 22px;
    color: white;
    background: var(--green);
    font-size: 20px;
}

.point-rules-page {
    display: grid;
    gap: 26px;
}

.point-rules-page > h1 {
    margin-bottom: 0;
}

.point-rules-intro {
    padding: 30px;
    background: #f8faf9;
    border-left: 4px solid var(--green);
}

.point-rules-intro h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 26px;
}

.point-rules-intro p:last-child {
    max-width: 760px;
    margin: 0;
    color: #475467;
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
}

.point-rule-sections {
    display: grid;
    gap: 24px;
}

.point-rule-block {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.point-rule-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    background: #f8fafc;
    border-top: 4px solid var(--green);
    border-bottom: 1px solid var(--line);
}

.point-rule-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
}

.point-rule-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    word-break: keep-all;
}

.point-rule-list {
    display: grid;
}

.point-rule-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 22px;
    border-bottom: 1px solid #edf0f3;
}

.point-rule-row:last-child {
    border-bottom: 0;
}

.point-rule-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 3px 10px;
    color: white;
    background: var(--green);
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.point-rule-row span {
    color: #344054;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
}

.point-rule-row.is-emphasis {
    background: #fbfcfd;
}

.point-rule-row.is-emphasis span {
    color: var(--green);
    font-weight: 800;
}

.point-rule-red .point-rule-head {
    border-top-color: #b42318;
}

.point-rule-red .point-rule-row strong {
    background: #b42318;
}

.point-rule-orange .point-rule-head {
    border-top-color: #b7791f;
}

.point-rule-orange .point-rule-row strong {
    background: #b7791f;
}

.point-rule-gold .point-rule-head {
    border-top-color: var(--gold);
}

.point-rule-gold .point-rule-row strong {
    color: #1f2937;
    background: #e7d19b;
}

.point-rule-gray .point-rule-head {
    border-top-color: #475467;
}

.point-rule-gray .point-rule-row strong {
    background: #475467;
}

.school-rules-page {
    display: grid;
    gap: 28px;
}

.school-rules-title {
    padding-bottom: 22px;
    border-bottom: 2px solid #1f2937;
    text-align: center;
}

.school-rules-title h1 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 28px;
    line-height: 1.45;
    word-break: keep-all;
}

.school-rules-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.school-rules-body {
    display: grid;
    gap: 34px;
}

.school-rule-chapter {
    display: grid;
    gap: 18px;
}

.school-rule-chapter h2 {
    width: fit-content;
    margin: 0;
    padding: 8px 14px;
    color: white;
    background: var(--green);
    border-radius: 3px;
    font-size: 18px;
    line-height: 1.2;
}

.school-rule-chapter article {
    padding-left: 14px;
    border-left: 3px solid #e5d4a8;
}

.school-rule-chapter h3 {
    margin: 0 0 7px;
    color: #947a36;
    font-size: 17px;
}

.school-rule-chapter p,
.school-rule-chapter li {
    color: #344054;
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
}

.school-rule-chapter p {
    margin: 0 0 8px;
}

.school-rule-chapter ul {
    display: grid;
    gap: 4px;
    margin: 8px 0 10px;
    padding-left: 22px;
}

.rule-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rule-example-grid div {
    padding: 15px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.rule-example-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-weight: 900;
}

.rule-example-grid p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}

.rule-example-grid b,
.school-rule-chapter li b {
    color: var(--ink);
    margin-right: 6px;
}

.rule-order {
    padding: 12px 14px;
    color: var(--green) !important;
    background: #f1f4f2;
    border-radius: 4px;
    font-weight: 900;
    text-align: center;
}

.rule-alert {
    color: #b42318;
}

.points-guide-page,
.discipline-awards-page {
    display: grid;
    gap: 24px;
}

.points-guide-page > h1,
.discipline-awards-page > h1 {
    margin-bottom: 0;
}

.points-guide-page > .muted,
.discipline-awards-page > .muted {
    margin: 0;
    max-width: 760px;
    line-height: 1.75;
}

.points-guide-summary,
.discipline-awards-lead {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.discipline-awards-lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.points-guide-summary article,
.discipline-awards-lead article,
.points-guide-note,
.award-flow {
    padding: 22px;
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.points-guide-summary span,
.discipline-awards-lead span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 4px 10px;
    color: var(--green);
    background: #eef7f1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.points-guide-summary h2,
.discipline-awards-lead h2,
.award-flow h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 19px;
}

.points-guide-summary p,
.discipline-awards-lead p,
.points-guide-note p,
.award-flow span {
    margin: 0;
    color: #475467;
    line-height: 1.75;
    word-break: keep-all;
}

.points-guide-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 3px solid var(--green);
}

.points-guide-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 18px;
}

.award-flow ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.award-flow li {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
}

.award-flow strong {
    color: var(--green);
    font-size: 17px;
}

.discipline-rule-details {
    display: grid;
    gap: 18px;
}

.discipline-rule-details summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.discipline-rule-details summary::-webkit-details-marker {
    display: none;
}

.discipline-rule-details summary::after {
    margin-left: 10px;
    content: "+";
}

.discipline-rule-details[open] summary::after {
    content: "-";
}

.discipline-rule-details .point-rule-sections {
    margin-top: 18px;
}

.admissions-page {
    display: grid;
    gap: 30px;
}

.admissions-page > h1 {
    margin-bottom: 0;
}

.admissions-hero {
    padding: 34px;
    color: white;
    background: linear-gradient(135deg, #1a4331 0%, #255f45 100%);
    border-bottom: 4px solid var(--gold);
    border-radius: 4px;
}

.admissions-hero .eyebrow {
    color: var(--gold);
}

.admissions-hero h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.35;
    word-break: keep-all;
}

.admissions-hero p:last-child {
    max-width: 780px;
    margin: 0;
    color: #e7eaee;
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
}

.admissions-section {
    display: grid;
    gap: 18px;
}

.admissions-note {
    margin: 0;
    padding: 18px 20px;
    color: #475467;
    background: #f8faf9;
    border-left: 4px solid var(--gold);
    word-break: keep-all;
}

.admissions-hall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admissions-hall-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 4px;
}

.admissions-hall-card.blue {
    border-top-color: #2c5282;
}

.admissions-hall-card.gold {
    border-top-color: #b7791f;
}

.admissions-hall-card.green {
    border-top-color: #276749;
}

.admissions-hall-card h3 {
    margin: 0;
    padding: 18px 18px 4px;
    color: var(--ink);
    font-size: 22px;
}

.admissions-hall-card > span {
    display: block;
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 14px;
}

.admissions-hall-card dl {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
}

.admissions-hall-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #edf0f3;
}

.admissions-hall-card dl div:last-child {
    border-bottom: 0;
}

.admissions-hall-card dt {
    color: #475467;
    font-weight: 700;
}

.admissions-hall-card dd {
    margin: 0;
    color: var(--green);
    font-size: 18px;
    font-weight: 900;
}

.admissions-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0 0;
    color: #475467;
}

.admissions-total strong {
    color: var(--green);
    font-size: 24px;
}

.admissions-criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admissions-criteria article {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.admissions-criteria strong {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.admissions-criteria h3 {
    margin: 8px 0 8px;
    color: var(--green);
    font-size: 21px;
}

.admissions-criteria p {
    margin: 0;
    color: #475467;
    word-break: keep-all;
}

.admissions-process {
    display: grid;
    gap: 0;
    border-top: 2px solid var(--green);
}

.admissions-process article {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.admissions-process article > div {
    display: grid;
    align-content: center;
    gap: 4px;
}

.admissions-process article > div strong {
    color: var(--green);
    font-size: 25px;
    line-height: 1.1;
}

.admissions-process article > div span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admissions-process ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}

.admissions-process li {
    position: relative;
    counter-increment: step;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 13px 6px 7px;
    font-weight: 800;
}

.admissions-process li + li {
    margin-left: 8px;
}

.admissions-process li + li::after {
    position: absolute;
    top: 50%;
    left: -15px;
    width: 14px;
    height: 1px;
    background: #cfd6df;
    content: "";
}

.admissions-process li::before {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: white;
    background: var(--green);
    border-radius: 999px;
    font-size: 12px;
    content: counter(step);
}

.admissions-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 46px;
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.admissions-closing div {
    display: grid;
    gap: 14px;
}

.admissions-closing strong {
    margin: 0;
    max-width: 720px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.55;
    word-break: keep-all;
}

.admissions-closing span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.admissions-closing .button {
    flex: 0 0 auto;
    padding-inline: 34px;
}

.admin-point-rules-page {
    display: grid;
    gap: 16px;
}

.admin-point-rules-page h1 {
    margin-bottom: 0;
}

.admin-point-rules-page > .muted {
    margin: 0;
    max-width: 760px;
    line-height: 1.7;
}

.point-rule-admin-sections {
    display: grid;
    gap: 38px;
}

.point-rule-admin-block {
    padding-top: 20px;
    border-top: 2px solid var(--green);
}

.point-rule-admin-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
}

.point-rule-admin-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.point-rule-admin-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    word-break: keep-all;
}

.point-rule-admin-list {
    display: grid;
}

.point-rule-admin-row {
    display: grid;
    grid-template-columns: 108px minmax(280px, 1fr) 72px 38px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

.point-rule-admin-row:last-child {
    border-bottom: 0;
}

.point-rule-admin-row label,
.point-rule-inline-add-form label {
    display: grid;
    gap: 5px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.point-rule-admin-row input,
.point-rule-admin-row textarea,
.point-rule-inline-add-form input,
.point-rule-inline-add-form textarea {
    width: 100%;
    border: 1px solid #ccd4df;
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fbfcfd;
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.point-rule-admin-row input:focus,
.point-rule-admin-row textarea:focus,
.point-rule-inline-add-form input:focus,
.point-rule-inline-add-form textarea:focus {
    outline: none;
    background: white;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 67, 49, .08);
}

.point-rule-admin-row textarea,
.point-rule-inline-add-form textarea {
    min-height: 40px;
    resize: vertical;
}

.point-rule-admin-row .checkbox-field,
.point-rule-inline-add-form .checkbox-field {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding-top: 16px;
    white-space: nowrap;
}

.point-rule-admin-row .checkbox-field input,
.point-rule-inline-add-form .checkbox-field input {
    width: auto;
}

.point-rule-inline-add {
    margin-top: 8px;
    padding: 14px 0 0;
    border-top: 1px dashed #cfd6df;
}

.point-rule-inline-add-title {
    margin-bottom: 10px;
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
}

.point-rule-inline-add-form {
    display: grid;
    grid-template-columns: 108px minmax(280px, 1fr) 72px 72px;
    gap: 12px;
    align-items: end;
}

.point-rule-inline-add-form button {
    color: white;
    background: var(--green);
    border-color: var(--green);
    white-space: nowrap;
}

.point-rule-inline-add-form button:hover {
    background: var(--green-2);
    border-color: var(--green-2);
}

.admin-point-rules-form > .form-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-hall-activities-page {
    display: grid;
    gap: 16px;
}

.admin-hall-activities-page h1 {
    margin-bottom: 0;
}

.admin-hall-activities-page > .muted {
    margin: 0;
}

.admin-hall-activity-form,
.admin-hall-activity-list {
    display: grid;
    gap: 18px;
}

.admin-hall-activity-row,
.admin-hall-activity-add {
    display: grid;
    gap: 12px;
    padding: 18px 0;
    border-top: 2px solid var(--green);
}

.admin-hall-activity-row + .admin-hall-activity-row {
    border-top-width: 1px;
    border-top-color: var(--line);
}

.admin-hall-activity-add {
    margin-top: 10px;
}

.admin-hall-activity-add h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.admin-hall-activity-main,
.admin-hall-activity-detail {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 38px;
    gap: 12px;
    align-items: end;
}

.admin-hall-activity-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.admin-hall-activity-row label,
.admin-hall-activity-add label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.admin-hall-activity-row input,
.admin-hall-activity-row select,
.admin-hall-activity-row textarea,
.admin-hall-activity-add input,
.admin-hall-activity-add select,
.admin-hall-activity-add textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: #111827;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.admin-hall-activity-row textarea,
.admin-hall-activity-add textarea {
    resize: vertical;
    line-height: 1.55;
}

.admin-hall-activity-form > .form-actions {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.council-principles div {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 20px;
    background: #fbfcfd;
    border-left: 1px solid var(--line);
}

.council-principles strong {
    color: var(--green);
    font-size: 18px;
}

.council-principles span {
    color: #667085;
    font-size: 14px;
    word-break: keep-all;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-links a,
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 4px;
    color: white;
    background: var(--green);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.quick-links a:hover,
.button:hover,
button:hover {
    background: var(--green-2);
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-title h1 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--green);
    font-size: 14px;
}

.board-table th,
.board-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: top;
}

.board-table th {
    color: var(--green);
    background: #f8faf9;
    font-weight: 800;
}

.board-table .title-cell {
    text-align: left;
}

.title-cell strong,
.title-cell span {
    display: block;
}

.title-cell span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.board-page {
    color: #27364a;
}

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.board-head h1 {
    margin: 0;
    color: #1f2937;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
}

.board-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.board-tools p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.board-tools strong {
    color: #1f2937;
}

.board-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-search select,
.board-search input {
    height: 36px;
    padding: 6px 9px;
    border-color: #cfd6df;
    border-radius: 5px;
    font-size: 14px;
}

.board-search select {
    width: 82px;
}

.board-search input {
    width: min(240px, 34vw);
}

.board-search button {
    min-height: 36px;
    padding: 6px 16px;
    background: #4b5563;
    border-radius: 5px;
}

.board-search button:hover {
    background: #374151;
}

.board-write-button {
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 5px;
    gap: 6px;
    white-space: nowrap;
}

.board-write-button::before {
    content: "✎";
    font-size: 15px;
    line-height: 1;
}

.board-view-toggle {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
}

.board-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
}

.board-filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.board-filter-tabs a:hover,
.board-filter-tabs a.active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.board-filter-tabs .hidden-tab {
    color: #7a271a;
    background: #fff7f5;
    border-color: #f0d5d2;
}

.board-filter-tabs .hidden-tab.active,
.board-filter-tabs .hidden-tab:hover {
    color: #fff;
    background: #b42318;
    border-color: #b42318;
}

.public-board-table {
    min-width: 760px;
    border-top: 2px solid #1f2937;
}

.board-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.public-board-table th,
.public-board-table td {
    padding: 13px 14px;
    font-size: 15px;
}

.public-board-table th {
    color: #1f2937;
    background: #f8fafc;
    font-size: 16px;
    font-weight: 800;
}

.public-board-table .col-no {
    width: 86px;
}

.public-board-table .col-date {
    width: 130px;
}

.public-board-table .col-file {
    width: 150px;
}

.public-board-table .col-views {
    width: 84px;
}

.public-board-table .col-manage {
    width: 118px;
    color: #b42318;
}

.public-board-table tbody tr {
    transition: background-color .16s ease;
}

.public-board-table tbody tr:hover {
    background: #f8fafc;
}

.public-board-table tbody tr.is-hidden-post {
    background: #f8fafc;
    opacity: .68;
}

.public-board-table .board-title-cell {
    min-width: 240px;
    text-align: left;
    white-space: nowrap;
}

.board-title-link {
    display: inline-block;
    color: #344054;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
}

.board-title-link:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.board-list-badge {
    margin-right: 8px;
    min-width: 0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    vertical-align: middle;
}

.hidden-post-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 6px;
    color: #667085;
    background: #eef2f6;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 4px 8px;
    color: white;
    background: var(--green);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
}

.board-file-cell {
    color: #98a2b3;
    font-size: 14px;
}

.file-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.file-download-link span {
    color: #1f2937;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.file-download-link:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.file-download-link:hover span {
    color: var(--green);
}

.no-file {
    color: #c3cad5;
}

.board-row-hide,
.board-row-delete {
    display: inline-flex;
    justify-content: center;
    margin: 0;
}

.board-row-hide button,
.board-row-delete button {
    min-height: 28px;
    padding: 4px 8px;
    color: #98a2b3;
    background: transparent;
    border-radius: 4px;
    font-size: 13px;
}

.board-row-hide button:hover {
    color: white;
    background: var(--green);
}

.board-row-delete button:hover {
    color: white;
    background: #b42318;
}

.col-manage {
    white-space: nowrap;
}

.empty-board {
    height: 120px;
    color: var(--muted);
    text-align: center;
}

.post-detail {
    color: #1f2937;
}

.post-detail-head {
    padding-bottom: 22px;
    border-bottom: 2px solid #1f2937;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-detail h1 {
    margin: 0 0 24px;
    color: #1f2937;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.25;
}

.post-manage-actions {
    display: flex;
    gap: 8px;
}

.post-manage-actions form {
    margin: 0;
}

.post-manage-actions .button,
.post-manage-actions button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.post-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border: 1px solid #d8dee8;
    border-width: 1px 0;
}

.post-meta div {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
    border-right: 1px solid #e5e9f0;
}

.post-meta div:last-child {
    border-right: 0;
}

.post-meta dt,
.post-meta dd {
    margin: 0;
    font-size: 14px;
}

.post-meta dt {
    color: #667085;
    font-weight: 700;
}

.post-meta dd {
    color: #344054;
}

.post-body {
    min-height: 160px;
    padding: 26px 0 38px;
    border-bottom: 1px solid #d8dee8;
    color: #27364a;
    font-size: 17px;
    line-height: 1.78;
    white-space: normal;
}

.post-body p,
.post-body div {
    margin: 0 0 8px;
}

.post-body p:empty,
.post-body div:empty {
    display: none;
}

.post-body p:has(> br:only-child),
.post-body div:has(> br:only-child) {
    min-height: 0.7em;
    margin-bottom: 4px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 16px 24px;
}

.post-like-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid #d8dee8;
}

.post-like-panel form {
    margin: 0;
}

.post-like-button,
.post-like-readonly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 14px;
    color: var(--green);
    background: #fff;
    border: 1px solid #cfd8d3;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.post-like-button span,
.post-like-readonly span {
    color: #b42318;
    font-size: 17px;
    line-height: 1;
}

.post-like-button:hover,
.post-like-button.active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.post-like-button:hover span,
.post-like-button.active span {
    color: #fff;
}

.post-like-readonly {
    color: #667085;
    background: #f8fafc;
}

.post-like-panel > strong {
    min-width: 28px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 900;
}

.post-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #d8dee8;
}

.post-file span {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.post-file a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.post-file a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
}

.secondary-button {
    background: #4b5563;
}

.write-page {
    max-width: 820px;
}

.write-head {
    margin-bottom: 26px;
}

.write-head h1 {
    margin: 0;
    color: #123d2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.25;
}

.write-form {
    display: grid;
    gap: 22px;
}

.write-field {
    display: grid;
    gap: 9px;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.write-title-input {
    height: 50px;
    padding: 12px 14px;
    border-color: #cfd6df;
    border-radius: 5px;
    color: #1f2937;
    font-size: 18px;
}

.write-tag-select {
    max-width: 180px;
    height: 44px;
    border-color: #cfd6df;
    border-radius: 5px;
    color: #344054;
    font-size: 16px;
}

.editor-shell {
    overflow: hidden;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    background: white;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 9px;
    background: #f8fafc;
    border-bottom: 1px solid #d8dee8;
}

.editor-toolbar button {
    width: 34px;
    min-height: 34px;
    padding: 0;
    color: #1f2937;
    background: white;
    border: 1px solid #cfd6df;
    border-radius: 4px;
}

.editor-toolbar button:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.editor-toolbar select {
    width: auto;
    min-width: 96px;
    height: 34px;
    padding: 6px 28px 6px 9px;
    border-color: #cfd6df;
    border-radius: 4px;
    background-color: white;
    color: #344054;
    font-size: 14px;
}

.post-editor {
    min-height: 320px;
    padding: 18px;
    color: #27364a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    outline: none;
}

.post-editor:empty::before {
    color: #98a2b3;
    content: attr(data-placeholder);
}

.post-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(18, 61, 43, .12);
}

.post-editor.is-invalid {
    box-shadow: inset 0 0 0 2px rgba(180, 35, 24, .2);
}

.post-editor p,
.post-editor div {
    margin: 0 0 4px;
}

.write-file-input {
    padding: 11px;
    border-color: #cfd6df;
    border-radius: 5px;
    background: white;
}

.current-file {
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.write-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.write-actions .button,
.write-actions button {
    min-width: 104px;
}

.access-denied {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 54px 20px;
    text-align: center;
}

.access-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: white;
    background: #b42318;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 900;
}

.access-denied h1 {
    margin: 0;
    color: #1f2937;
    font-size: 26px;
}

.access-denied p {
    margin: 0 0 12px;
    color: var(--muted);
}

.hall-status-page {
    color: #1f2937;
}

.hall-album-section {
    margin-top: 8px;
}

.hall-year-section {
    margin-top: 30px;
}

.hall-year-section:first-of-type {
    margin-top: 18px;
}

.hall-year-section h3 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 900;
}

.hall-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.hall-album-card {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 290px;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid #d8dee8;
    border-top: 4px solid var(--green);
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    text-align: center;
}

.hall-album-card.blue {
    border-top-color: #315d94;
}

.hall-album-card.gold {
    border-top-color: #bd7c17;
}

.hall-album-card.green {
    border-top-color: #286f4b;
}

.hall-album-card.is-vacant {
    background: #fbfcfe;
    box-shadow: none;
}

.hall-album-card.is-vacant strong,
.hall-album-card.is-vacant span {
    color: #98a2b3;
}

.hall-album-card.is-vacant em {
    color: #667085;
    background: #eef2f6;
}

.hall-album-card.is-vacant .hall-album-symbol {
    opacity: .55;
}

.hall-album-symbol {
    display: grid;
    place-items: center;
    width: min(100%, 170px);
    aspect-ratio: 4 / 5;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 4px;
    overflow: hidden;
}

.hall-album-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-album-card strong {
    color: #1f2937;
    font-size: 20px;
}

.hall-album-card span {
    color: #667085;
    font-size: 14px;
}

.hall-album-card em {
    padding: 4px 10px;
    color: var(--green);
    background: #eef7f2;
    border-radius: 999px;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.hall-album-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.hall-album-card em.has-role {
    color: #b42318;
    background: #fee4e2;
}

.hall-album-card em.council-role {
    color: #1d4ed8;
    background: #eff6ff;
}

.hall-activities-page {
    display: grid;
    gap: 24px;
}

.hall-activities-hero {
    padding: 26px 28px;
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 4px;
}

.hall-activities-hero h1 {
    margin: 0 0 12px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.hall-activities-hero p:last-child {
    max-width: 820px;
    margin: 0;
    color: #475467;
    font-size: 16px;
    line-height: 1.8;
    word-break: keep-all;
}

.hall-activity-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hall-activity-filter button {
    padding: 7px 12px;
    color: #344054;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.hall-activity-filter button:hover {
    transform: translateY(-1px);
}

.hall-activity-filter .all {
    color: var(--green);
    background: #f5faf7;
}

.hall-activity-filter .all.active,
.hall-activity-filter .all:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.hall-activity-filter .blue {
    color: #2c5282;
    background: #eff6ff;
}

.hall-activity-filter .gold {
    color: #8a5a10;
    background: #fff7df;
}

.hall-activity-filter .green {
    color: #276749;
    background: #eef7f1;
}

.hall-activity-filter .blue.active,
.hall-activity-filter .blue:hover {
    color: white;
    background: #2c5282;
    border-color: #2c5282;
}

.hall-activity-filter .gold.active,
.hall-activity-filter .gold:hover {
    color: white;
    background: #b7791f;
    border-color: #b7791f;
}

.hall-activity-filter .green.active,
.hall-activity-filter .green:hover {
    color: white;
    background: #276749;
    border-color: #276749;
}

.hall-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hall-activity-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 128px 1fr;
    background: white;
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.hall-activity-card[hidden] {
    display: none;
}

.hall-activity-cover {
    position: relative;
    display: grid;
    align-content: end;
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}

.hall-activity-card.blue .hall-activity-cover {
    background: linear-gradient(135deg, #2c5282, #17426f);
}

.hall-activity-card.gold .hall-activity-cover {
    background: linear-gradient(135deg, #b7791f, #8a5a10);
}

.hall-activity-card.green .hall-activity-cover {
    background: linear-gradient(135deg, #276749, #1a4331);
}

.hall-activity-cover::after {
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 128px;
    height: 128px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    content: "";
}

.hall-activity-cover span {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 4px 9px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.hall-activity-cover strong {
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(255, 255, 255, .5);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
}

.hall-activity-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.hall-activity-body h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
}

.hall-activity-body p,
.hall-activity-body dd {
    margin: 0;
    color: #475467;
    line-height: 1.7;
    word-break: keep-all;
}

.hall-activity-body p {
    font-size: 14px;
    line-height: 1.6;
}

.hall-activity-inline-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hall-activity-inline-link:hover {
    color: #1d4ed8;
}

.hall-activity-body dd {
    font-size: 13px;
    line-height: 1.5;
}

.hall-activity-body dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.hall-activity-body dl div {
    padding: 11px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 4px;
    min-height: 108px;
}

.hall-activity-body dt {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.hall-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0 34px;
    border: 1px solid #cfd6df;
}

.hall-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px;
    color: #344054;
    background: #f8fafc;
    border: 0;
    border-right: 1px solid #cfd6df;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.hall-tabs button:last-child {
    border-right: 0;
}

.hall-tabs button.active {
    color: white;
    background: #4b5568;
}

.hall-tab-panel[hidden] {
    display: none;
}

.hall-status-section,
.hall-members-section {
    margin-top: 34px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title-row h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
}

.section-title-row span {
    color: #667085;
    font-size: 14px;
}

.hall-status-table-wrap {
    overflow-x: auto;
}

.hall-status-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    border-top: 2px solid #1f2937;
    border-bottom: 2px solid #1f2937;
}

.hall-status-table th,
.hall-status-table td {
    height: 56px;
    padding: 13px 14px;
    border: 1px solid #cfd6df;
    text-align: center;
}

.hall-status-table thead th {
    color: #344054;
    background: #f8fafc;
    font-size: 16px;
}

.hall-status-table tbody th {
    background: #fbfcfe;
    font-size: 16px;
}

.hall-status-table .hall-name.blue {
    color: #1d4f91;
}

.hall-status-table .hall-name.gold {
    color: #a16207;
}

.hall-status-table .hall-name.green {
    color: #166534;
}

.hall-status-table .hall-name span {
    color: inherit;
    opacity: .9;
}

.hall-status-table .total,
.hall-status-table tfoot td:last-child {
    color: var(--green);
    background: #eef2f6;
    font-weight: 900;
}

.hall-status-table tfoot th,
.hall-status-table tfoot td {
    background: #f1f3f7;
    font-size: 17px;
    font-weight: 900;
}

.hall-org-chart {
    position: relative;
    overflow-x: auto;
    padding: 26px 0 8px;
}

.org-root {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    width: 280px;
    margin: 0 auto;
    padding: 20px 24px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    box-shadow: 0 5px 0 rgba(197, 168, 105, .85), 0 10px 18px rgba(31, 41, 55, .12);
    text-align: center;
}

.org-trunk {
    width: 1px;
    height: 40px;
    margin: 5px auto 0;
    background: #cfd6df;
}

.org-root strong {
    font-size: 22px;
}

.org-root span {
    color: #d6bd79;
    font-size: 14px;
}

.org-split {
    position: relative;
    width: min(75%, 760px);
    height: 34px;
    margin: 0 auto;
    border-top: 2px solid #cfd6df;
}

.org-split span {
    position: absolute;
    top: -2px;
    width: 1px;
    height: 34px;
    background: #cfd6df;
}

.org-split span:nth-child(1) {
    left: 0;
}

.org-split span:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
}

.org-split span:nth-child(3) {
    right: 0;
}

.org-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    width: min(75%, 760px);
    min-width: 700px;
    margin: 0 auto;
}

.org-branch {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0;
}

.org-hall-chief,
.org-sub-unit,
.org-members {
    width: min(200px, 100%);
    text-align: center;
}

.org-hall-chief {
    display: grid;
    gap: 7px;
    padding: 15px 16px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 7px 14px rgba(31, 41, 55, .16);
}

.org-hall-chief::after {
    display: block;
    width: 1px;
    height: 32px;
    margin: 15px auto -15px;
    background: #cfd6df;
    content: "";
}

.org-branch.blue .org-hall-chief {
    background: #315d94;
}

.org-branch.gold .org-hall-chief {
    background: #bd7c17;
}

.org-branch.green .org-hall-chief {
    background: #286f4b;
}

.org-hall-chief strong {
    font-size: 19px;
}

.org-hall-chief span {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.org-sub-unit {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px 14px;
    background: white;
    border: 1px solid #cfd6df;
    border-radius: 4px;
}

.org-sub-unit::after {
    display: block;
    width: 1px;
    height: 30px;
    margin: 10px auto -10px;
    background: linear-gradient(#cfd6df 45%, transparent 45%);
    background-size: 1px 8px;
    content: "";
}

.org-sub-unit strong {
    color: #344054;
    font-size: 16px;
}

.org-sub-unit span {
    color: #667085;
    font-size: 13px;
}

.org-members {
    padding: 10px 12px;
    color: #475467;
    background: #fbfcfe;
    border: 1px dashed #98a2b3;
    border-radius: 4px;
    font-size: 14px;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.hall-grid.compact {
    margin-top: 0;
}

.hall-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
}

.hall-card.blue {
    border-top-color: #2563eb;
}

.hall-card.gold {
    border-top-color: var(--gold);
}

.hall-card.green {
    border-top-color: #15803d;
}

.hall-card h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 19px;
}

.hall-card h2 span {
    color: var(--muted);
    font-size: 14px;
}

.hall-card ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hall-card li {
    display: grid;
    grid-template-columns: 64px 1fr 56px;
    gap: 10px;
    align-items: center;
}

.hall-card li span {
    min-height: 30px;
    padding: 5px 8px;
    background: #eef2f6;
    border-radius: 4px;
    color: #475467;
    font-size: 13px;
    text-align: center;
}

.hall-card li span.empty-role {
    background: transparent;
}

.hall-card li strong {
    font-size: 18px;
}

.hall-card li em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    text-align: right;
}

.empty-hall-member {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.calendar-page {
    display: grid;
    gap: 20px;
}

.calendar-event-form {
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr) 130px auto;
    gap: 10px;
    align-items: end;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.calendar-event-form label {
    gap: 5px;
    font-size: 14px;
}

.calendar-event-form input,
.calendar-event-form select {
    height: 36px;
    background: white;
}

.calendar-event-form button {
    height: 36px;
    padding-inline: 13px;
    white-space: nowrap;
}

.calendar {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.calendar-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    padding: 13px;
    color: white;
    background: var(--green);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.calendar-head a {
    display: grid;
    place-items: center;
    min-height: 34px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.calendar-head > a:not(.calendar-head-title) {
    font-size: 30px;
    line-height: 1;
}

.calendar-head a:hover {
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
}

.calendar-head-title {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
}

.calendar-week,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week span {
    padding: 9px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    text-align: center;
}

.calendar-days > div {
    min-height: 82px;
    padding: 8px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.calendar-day-cell {
    cursor: pointer;
}

.calendar-day-cell:focus {
    outline: 2px solid rgba(26, 67, 49, .28);
    outline-offset: -2px;
}

.calendar-days strong,
.calendar-event span {
    display: block;
}

.calendar-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
    margin-top: 5px;
    padding: 3px 5px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 4px;
    font-size: 12px;
}

.calendar-event.important {
    color: #b91c1c;
    background: #fee2e2;
}

.calendar-event.check {
    color: #166534;
    background: #dcfce7;
}

.calendar-event form {
    margin: 0;
}

.calendar-event button {
    min-height: 20px;
    width: 20px;
    padding: 0;
    color: currentColor;
    background: transparent;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
}

.calendar-event button:hover {
    color: white;
    background: rgba(0, 0, 0, .28);
}

.calendar-event-count {
    display: none;
}

.calendar-mobile-list {
    display: grid;
    gap: 8px;
}

.calendar-mobile-list h2 {
    margin: 2px 0 4px;
    color: #1f2937;
    font-size: 18px;
}

.calendar-mobile-list p {
    margin: 0;
    padding: 13px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 13px;
}

.calendar-list-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    background: white;
    border: 1px solid var(--line);
    border-left: 3px solid #60a5fa;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-list-item:focus {
    outline: 2px solid rgba(26, 67, 49, .28);
    outline-offset: 2px;
}

.calendar-list-item.important {
    border-left-color: #ef4444;
}

.calendar-list-item.check {
    border-left-color: #22c55e;
}

.calendar-list-item time {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.calendar-list-item span {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.calendar-list-item form {
    margin: 0;
}

.calendar-list-item button {
    min-height: 28px;
    padding: 4px 8px;
    color: #98a2b3;
    background: transparent;
    font-size: 12px;
}

.calendar-day-modal[hidden] {
    display: none;
}

.calendar-day-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
}

.calendar-day-dialog {
    width: min(420px, 100%);
    padding: 20px;
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 5px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.calendar-day-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e8ef;
}

.calendar-day-dialog-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: 19px;
}

.calendar-day-dialog-body {
    display: grid;
    gap: 8px;
}

.calendar-day-empty {
    margin: 0;
    padding: 12px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
}

.calendar-day-popup-item {
    margin: 0;
    padding: 11px 12px;
    color: #1d4ed8;
    background: #dbeafe;
    border-left: 3px solid #60a5fa;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.calendar-day-popup-item.important {
    color: #b91c1c;
    background: #fee2e2;
    border-left-color: #ef4444;
}

.calendar-day-popup-item.check {
    color: #166534;
    background: #dcfce7;
    border-left-color: #22c55e;
}

.page-main-head {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d8dee8;
}

.page-main-head > p:first-child {
    margin: 0 0 12px;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
}

.page-main-head h1 {
    margin: 0 0 12px;
    color: #23362f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.18;
}

.page-main-head h1 span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.page-main-head > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.75;
    word-break: keep-all;
}

.meal-page {
    display: grid;
    gap: 22px;
}

.meal-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #d8dee8;
    background: #f8fafc;
}

.meal-tabs span,
.meal-tabs strong,
.meal-tabs a {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 10px;
    color: #344054;
    border-right: 1px solid #d8dee8;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.meal-tabs span:last-child,
.meal-tabs a:last-child,
.meal-tabs strong:last-child {
    border-right: 0;
}

.meal-tabs strong {
    color: white;
    background: var(--green);
}

.meal-tabs a:hover {
    color: var(--green);
    background: #eef7f2;
}

.meal-board-page {
    width: min(100%, 1180px);
    max-width: none;
    gap: 0;
}

.meal-board-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 20px;
    margin: 0;
    padding: clamp(38px, 6vw, 58px) 24px;
    color: white;
    background-color: #477c58;
    text-align: center;
}

.meal-board-banner::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,.06) 12%, transparent 12%, transparent 88%, rgba(255,255,255,.06) 88%),
        linear-gradient(120deg, rgba(255,255,255,.045) 12%, transparent 12%, transparent 88%, rgba(255,255,255,.045) 88%);
    background-size: 86px 86px;
    content: "";
    opacity: .55;
}

.meal-board-banner > * {
    position: relative;
    z-index: 1;
}

.meal-board-banner p,
.meal-board-banner span {
    margin: 0;
    max-width: 760px;
    font-size: clamp(15px, 1.9vw, 20px);
    font-weight: 800;
    line-height: 1.55;
    word-break: keep-all;
}

.meal-board-banner h2 {
    margin: 0;
    max-width: 820px;
    color: white;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    word-break: keep-all;
}

.meal-board-page .meal-tabs {
    margin-top: 0;
    border-top: 0;
}

.meal-board-panel {
    display: grid;
    gap: 20px;
    width: min(100% - 64px, 960px);
    margin: 54px auto 0;
    padding: clamp(28px, 5vw, 38px);
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.meal-board-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meal-board-panel-head span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 14px;
    color: #0f7a43;
    background: #e7faef;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.meal-board-panel h2,
.meal-board-panel h3 {
    margin: 0;
    color: #111827;
}

.meal-board-panel h2 {
    font-size: clamp(24px, 4vw, 30px);
}

.meal-board-panel p,
.meal-board-panel li {
    margin: 0;
    color: #344054;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
}

.meal-board-panel strong {
    color: var(--green);
}

.meal-board-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.meal-board-benefits article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 22px;
    background: #f4f1eb;
    border-radius: 12px;
}

.meal-board-benefits article > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 24px;
}

.meal-board-benefits h3,
.meal-board-submit h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.meal-board-benefits p {
    font-size: 14px;
    line-height: 1.7;
}

.meal-board-submit {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.meal-board-submit ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 21px;
}

.meal-suggestions-page {
    width: min(100%, 1180px);
    max-width: none;
}

.meal-suggestion-board {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.meal-suggestion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: white;
    background: #477c58;
}

.meal-suggestion-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-suggestion-head span {
    font-size: 24px;
}

.meal-suggestion-head h2 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.meal-suggestion-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(22, 101, 52, .72);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}

.meal-suggestion-head i {
    width: 8px;
    height: 8px;
    background: #86efac;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, .18);
}

.meal-suggestion-feed {
    display: grid;
    flex: 1;
    gap: 18px;
    align-content: start;
    min-height: 390px;
    padding: 24px;
    background: #f4f1ea;
}

.meal-suggestion-date {
    justify-self: center;
    padding: 5px 12px;
    color: #667085;
    background: rgba(226, 232, 240, .8);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.meal-suggestion-archive {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, .68);
}

.meal-suggestion-archive summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    list-style: none;
}

.meal-suggestion-archive summary::-webkit-details-marker {
    display: none;
}

.meal-suggestion-archive summary span {
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.meal-suggestion-archive summary b {
    padding: 4px 9px;
    color: var(--green);
    background: #f4faf6;
    border: 1px solid #cfe4d8;
    border-radius: 999px;
    font-size: 11px;
}

.meal-suggestion-archive[open] summary b {
    color: #667085;
    background: #f8fafc;
    border-color: #e4e7ec;
}

.meal-suggestion-archive[open] summary b::before {
    content: "접기";
    font-weight: 900;
}

.meal-suggestion-archive[open] summary b {
    font-size: 0;
}

.meal-suggestion-archive[open] summary b::before {
    font-size: 11px;
}

.meal-suggestion-archive-list {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.meal-suggestion-empty {
    justify-self: center;
    padding: 18px 20px;
    color: #667085;
    background: rgba(255, 255, 255, .72);
    border: 1px dashed #cfd6df;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.meal-suggestion-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.meal-suggestion-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
}

.meal-suggestion-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    font-size: 22px;
}

.meal-suggestion-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.meal-suggestion-author em {
    padding: 2px 7px;
    color: #0f7a43;
    background: #e7faef;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
}

.meal-suggestion-time {
    display: inline-flex;
    align-items: center;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.meal-suggestion-time::before {
    content: "·";
    margin-right: 8px;
    color: #c4cad4;
}

.meal-suggestion-bubble {
    width: fit-content;
    max-width: min(620px, 100%);
    padding: 16px;
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 0 18px 18px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}

.meal-suggestion-bubble p {
    margin: 0 0 6px;
    color: #344054;
    font-size: 14px;
    line-height: 1.65;
    word-break: keep-all;
}

.meal-suggestion-bubble p:last-child {
    margin-bottom: 0;
}

.meal-suggestion-bubble strong {
    color: var(--green);
}

.meal-suggestion-details {
    display: grid;
    gap: 10px;
}

.meal-suggestion-details summary {
    display: grid;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.meal-suggestion-details summary::-webkit-details-marker {
    display: none;
}

.meal-suggestion-preview {
    position: relative;
    overflow: hidden;
    max-height: 138px;
}

.meal-suggestion-preview::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 42px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    content: "";
    pointer-events: none;
}

.meal-suggestion-details[open] .meal-suggestion-preview {
    display: none;
}

.meal-suggestion-more-text {
    justify-self: start;
    padding: 4px 9px;
    color: var(--green);
    background: #f4faf6;
    border: 1px solid #cfe4d8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.meal-suggestion-more-text .less,
.meal-suggestion-details[open] .meal-suggestion-more-text .more {
    display: none;
}

.meal-suggestion-details[open] .meal-suggestion-more-text .less {
    display: inline;
}

.meal-suggestion-note {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    color: #667085 !important;
    font-size: 13px !important;
}

.meal-suggestion-delete {
    align-self: flex-end;
    margin: 7px 2px 0 0;
}

.meal-suggestion-delete button {
    min-height: 26px;
    padding: 4px 9px;
    color: #b42318;
    background: transparent;
    border: 1px solid #f0d5d2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.meal-suggestion-delete button:hover {
    color: white;
    background: #b42318;
    border-color: #b42318;
}

.meal-suggestion-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: white;
    border-top: 1px solid #d8dee8;
}

.meal-suggestion-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.meal-suggestion-form input,
.meal-suggestion-form textarea {
    border-color: #cfd6df;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.55;
}

.meal-suggestion-form textarea {
    resize: vertical;
}

.meal-suggestion-menu-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meal-suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.meal-suggestion-actions span {
    color: #98a2b3;
    font-size: 12px;
}

.meal-suggestion-actions button {
    min-height: 40px;
    padding: 9px 24px;
    background: #477c58;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .meal-board-banner {
        gap: 16px;
        padding: 34px 18px;
    }

    .meal-board-panel {
        width: min(100% - 24px, 960px);
        margin-top: 28px;
        border-radius: 12px;
    }

    .meal-board-benefits {
        grid-template-columns: 1fr;
    }

    .meal-board-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .meal-board-panel p,
    .meal-board-panel li {
        font-size: 14px;
        line-height: 1.7;
    }

    .meal-suggestion-board {
        border-radius: 12px;
    }

    .meal-suggestion-head {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 12px 14px;
    }

    .meal-suggestion-head > div {
        min-width: 0;
    }

    .meal-suggestion-head span {
        font-size: 20px;
    }

    .meal-suggestion-head h2 {
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meal-suggestion-head strong {
        flex: 0 0 auto;
        gap: 6px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .meal-suggestion-feed {
        gap: 15px;
        padding: 16px;
    }

    .meal-suggestion-archive summary {
        padding: 10px 12px;
    }

    .meal-suggestion-archive-list {
        gap: 12px;
        padding: 0 12px 12px;
    }

    .meal-suggestion-message {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .meal-suggestion-avatar {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .meal-suggestion-bubble {
        padding: 13px;
    }

    .meal-suggestion-menu-fields {
        grid-template-columns: 1fr;
    }

    .meal-suggestion-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .meal-suggestion-actions button {
        width: 100%;
    }
}

.meal-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.meal-calendar {
    overflow: hidden;
    border: 1px solid #d8dee8;
    background: white;
}

.meal-calendar-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    min-height: 58px;
    background: #dbe4ef;
}

.meal-calendar-head a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    color: white;
    background: #9aa7b8;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

.meal-calendar-head a:hover {
    background: var(--green);
}

.meal-calendar-head strong {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.meal-week,
.meal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.meal-week span {
    display: grid;
    place-items: center;
    min-height: 36px;
    color: #111827;
    background: #f7f8fa;
    border-top: 1px solid #d8dee8;
    border-right: 1px solid #d8dee8;
    font-size: 13px;
    font-weight: 900;
}

.meal-week span:last-child {
    border-right: 0;
}

.meal-day {
    position: relative;
    display: grid;
    place-items: start;
    min-height: 58px;
    padding: 9px 8px;
    color: #111827;
    border-top: 1px solid #d8dee8;
    border-right: 1px solid #d8dee8;
    font-size: 14px;
    text-decoration: none;
}

.meal-day:nth-child(7n) {
    border-right: 0;
}

.meal-day.empty {
    background: #fbfcfd;
}

.meal-day.sun {
    color: #dc2626;
}

.meal-day.sat {
    color: #2563eb;
}

.meal-day:hover,
.meal-day.selected {
    color: white;
    background: var(--green);
}

.meal-day.today::after {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    content: "";
    background: var(--gold);
    border-radius: 999px;
}

.meal-day i {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 999px;
}

.meal-day.selected i,
.meal-day:hover i {
    background: white;
}

.meal-detail {
    overflow: hidden;
    border: 1px solid #d8dee8;
    background: white;
}

.meal-detail header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 68px;
    padding: 14px;
    background: #d9e6fb;
    text-align: center;
}

.meal-detail h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.meal-detail header span {
    padding: 4px 10px;
    color: white;
    background: #f4b400;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.meal-block {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    min-height: 210px;
    padding: 28px 32px;
    border-bottom: 1px solid #d8dee8;
}

.meal-block:last-child {
    border-bottom: 0;
}

.meal-block > strong {
    display: grid;
    place-items: center;
    min-height: 58px;
    color: white;
    background: #ad9d8f;
    border-radius: 6px;
    font-size: 26px;
    font-weight: 900;
}

.meal-block.dinner > strong {
    background: #8aa3ad;
}

.meal-block ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meal-block li,
.meal-block p {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    line-height: 1.45;
    word-break: keep-all;
}

.meal-block p {
    color: #98a2b3;
}

.pledge-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 18px;
}

.page-main-title {
    margin: 0 0 10px;
    color: #23362f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}

.page-main-title span {
    margin-left: 6px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.pledge-card {
    position: relative;
    width: min(100%, 720px);
    overflow: hidden;
    padding: clamp(30px, 5vw, 48px);
    background: #fcfbf7;
    border: 2px solid #e4ddc8;
    box-shadow: inset 0 0 32px rgba(26, 67, 49, .05);
    text-align: center;
}

.pledge-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 67, 49, .18) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .36;
    pointer-events: none;
}

.pledge-card header,
.pledge-lines {
    position: relative;
    z-index: 1;
}

.pledge-card header {
    margin-bottom: 30px;
}

.pledge-card h2 {
    margin: 0 0 6px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 0;
}

.pledge-card header p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
}

.pledge-lines {
    display: grid;
    gap: 22px;
}

.pledge-lines p {
    margin: 0;
}

.pledge-lines strong {
    display: block;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.35;
}

.pledge-lines span {
    display: block;
    margin-top: 4px;
    color: #4b5563;
    font-size: 16px;
}

.text-page-head {
    margin-bottom: 30px;
}

.text-page-head h1 {
    margin: 0 0 6px;
    color: #23362f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.25;
}

.text-flow {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin-bottom: 36px;
}

.text-flow p {
    margin: 0;
    color: #23362f;
    font-size: 18px;
    line-height: 1.8;
    word-break: keep-all;
}

.text-flow strong {
    color: #111827;
}

.motto-section {
    max-width: 760px;
    padding-top: 0;
    border-top: 0;
}

.motto-section h2 {
    margin: 0 0 14px;
    color: #23362f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 800;
}

.motto-section h2 span {
    margin-left: 8px;
    color: #4b5563;
    font-size: .58em;
    font-weight: 700;
}

.motto-section p {
    margin: 0;
    color: #23362f;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.75;
    word-break: keep-all;
}

.about-page {
    display: grid;
    gap: 54px;
}

.about-section h1 {
    margin: 0 0 26px;
    padding-bottom: 12px;
    color: #23362f;
    border-bottom: 2px solid var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}

.about-section h1 span {
    margin-left: 6px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.about-intro-panel {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 36px;
    background: #fbfcfd;
    border: 1px solid #d9e1ea;
    border-radius: 4px;
}

.about-school-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: #f3f6f9;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.about-school-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy {
    display: grid;
    gap: 18px;
    color: #293548;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.9;
    word-break: keep-all;
}

.about-copy p {
    margin: 0;
}

.about-copy strong {
    color: var(--green);
    font-weight: 800;
}

.about-motto-panel {
    padding: 36px;
    background: #fbfcfd;
    border: 1px solid #d9e1ea;
    border-radius: 4px;
}

.about-motto-panel p {
    max-width: 860px;
    margin: 0;
    color: #293548;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.9;
    word-break: keep-all;
}

.symbols-page {
    display: grid;
    gap: 54px;
}

.symbol-section h1 {
    margin: 0 0 26px;
    padding-bottom: 12px;
    color: #23362f;
    border-bottom: 2px solid var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}

.symbol-section h1 span {
    margin-left: 6px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.symbol-emblem-panel {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 36px;
    background: #fbfcfd;
    border: 1px solid #d9e1ea;
    border-radius: 4px;
}

.symbol-emblem {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: white;
    border: 1px solid #edf0f4;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.symbol-emblem img {
    width: 168px;
    height: 168px;
    object-fit: contain;
}

.symbol-copy {
    display: grid;
    gap: 14px;
    color: #293548;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.9;
    word-break: keep-all;
}

.symbol-copy p {
    margin: 0;
}

.symbol-copy strong {
    color: var(--green);
    font-weight: 800;
}

.symbol-note {
    margin-top: 8px !important;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}

.symbol-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.symbol-card {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 26px;
    background: white;
    border: 1px solid #d9e1ea;
    border-radius: 4px;
}

.symbol-card h2 {
    margin: 0;
    padding: 8px 20px;
    color: var(--green);
    background: #eef8f2;
    border-radius: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.symbol-card h2 span {
    margin-left: 4px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.symbol-card figure {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: #f3f6f9;
    border-radius: 4px;
}

.symbol-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.symbol-card p {
    max-width: 430px;
    margin: 0;
    color: #526174;
    font-size: 16px;
    line-height: 1.85;
    text-align: center;
    word-break: keep-all;
}

.symbol-card strong {
    color: var(--ink);
    font-weight: 800;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-editor {
    display: grid;
    gap: 18px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    min-width: 980px;
}

.admin-table input,
.admin-table select {
    min-width: 92px;
    padding: 7px 8px;
    font-size: 13px;
}

.admin-table input[type="number"] {
    min-width: 62px;
}

.admin-table .new-row td {
    background: #f8faf9;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.danger-button {
    min-height: 34px;
    padding: 7px 10px;
    background: #b42318;
    font-size: 13px;
}

.danger-button:hover {
    background: #912018;
}

.ghost-button {
    color: var(--green);
    background: white;
    border: 1px solid var(--green);
}

.ghost-button:hover {
    color: white;
    background: var(--green);
}

.simple-hall-admin {
    display: grid;
    gap: 22px;
}

.hall-admin-page .muted {
    word-break: keep-all;
}

.hall-add-panel {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.hall-add-panel p {
    margin: 6px 0 0;
    font-size: 14px;
}

.hall-admin-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hall-list-wrap {
    overflow-x: auto;
}

.hall-admin-table {
    min-width: 760px;
    border-top-color: #1f2937;
}

.hall-admin-table th {
    color: var(--ink);
    background: #f8fafc;
}

.hall-admin-table td {
    vertical-align: middle;
}

.hall-admin-table input,
.hall-admin-table select {
    min-width: 0;
    padding: 8px 9px;
    font-size: 14px;
}

.hall-admin-table input[type="number"] {
    width: 72px;
}

.hall-admin-table input[type="file"] {
    width: 170px;
    padding: 7px;
    font-size: 13px;
}

.hall-summary-table th,
.hall-summary-table td {
    padding: 14px 12px;
}

.hall-summary-table .hall-photo-preview {
    margin: 0 auto;
}

.hall-member-name {
    color: var(--ink);
    font-weight: 800;
}

.hall-admin-actions {
    display: inline-flex;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.hall-admin-actions .button,
.hall-admin-actions button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.hall-edit-form {
    display: grid;
    gap: 22px;
    margin-top: 26px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.hall-edit-photo {
    display: flex;
    align-items: end;
    gap: 18px;
}

.hall-edit-photo .hall-photo-preview {
    width: 132px;
    height: 165px;
}

.hall-edit-photo label {
    flex: 1;
}

.hall-edit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hall-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hall-admin-card {
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 4px;
    background: #fff;
}

.hall-admin-card.blue {
    border-top-color: #2563eb;
}

.hall-admin-card.gold {
    border-top-color: var(--gold);
}

.hall-admin-card.green {
    border-top-color: #15803d;
}

.hall-admin-card h2 {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
}

.hall-admin-card h2 span {
    color: var(--muted);
    font-size: 14px;
}

.hall-admin-list {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
}

.hall-admin-row {
    display: grid;
    grid-template-columns: 64px repeat(4, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf0f4;
    border-radius: 6px;
    max-width: 100%;
}

.hall-photo-preview {
    align-self: center;
    width: 58px;
    height: 72px;
    overflow: hidden;
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 4px;
}

.hall-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-crop-modal[hidden] {
    display: none;
}

.photo-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 24, 32, .55);
}

.photo-crop-dialog {
    width: min(420px, 100%);
    padding: 22px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
}

.photo-crop-dialog h2 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 20px;
}

.photo-crop-dialog p {
    margin: 0 0 16px;
    color: #667085;
    font-size: 14px;
}

.photo-crop-frame {
    width: min(260px, 100%);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    border-radius: 4px;
}

.photo-crop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.hall-admin-row:last-child {
    border-bottom: 1px solid #edf0f4;
}

.hall-admin-row label,
.add-member-row label {
    gap: 4px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.hall-admin-row input,
.hall-admin-row select,
.add-member-row input,
.add-member-row select {
    min-width: 0;
    padding: 10px 11px;
    background: white;
    font-size: 15px;
}

.hall-admin-row .danger-button {
    min-width: 62px;
}

.add-member-panel {
    padding: 18px;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.add-member-panel h2 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 20px;
}

.add-member-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    align-items: end;
}

@media (max-width: 1100px) {
    .hall-admin-row {
        grid-template-columns: 64px repeat(2, minmax(0, 1fr));
    }

    .hall-admin-row .field-photo {
        grid-column: 2 / span 2;
    }

    .hall-admin-row .danger-button {
        grid-column: 3;
        justify-self: end;
    }

    .add-member-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.role-badge {
    display: inline-flex;
    padding: 3px 8px;
    background: #eef2f6;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.small-note {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.error {
    padding: 10px 12px;
    color: #8a1f1f;
    background: #fff1f1;
    border: 1px solid #f1bcbc;
    border-radius: 4px;
}

.success {
    padding: 10px 12px;
    color: #12633d;
    background: #edfdf4;
    border: 1px solid #b9ebcf;
    border-radius: 4px;
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 34px 16px;
    color: #b8c0cc;
    background: var(--dark);
    border-top: 4px solid var(--green);
    font-size: 13px;
    text-align: center;
}

.site-footer img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
    border-radius: 999px;
}

.site-footer strong {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.site-footer p {
    margin: 0;
}

.admin-users-page h1 {
    margin-bottom: 12px;
}

.admin-users-page .small-note {
    margin-top: -4px;
    font-size: 14px;
}

.admin-create-panel {
    margin: 28px 0;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid #d9e1ea;
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.admin-create-panel h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 20px;
}

.admin-create-form {
    display: grid;
    max-width: 560px;
    gap: 18px;
}

.admin-create-form label {
    display: grid;
    gap: 7px;
    color: #526174;
    font-size: 14px;
    font-weight: 700;
}

.admin-create-form input,
.admin-create-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: white;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font: inherit;
}

.profile-card {
    margin-top: 24px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.profile-card h2 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 20px;
}

.profile-grid,
.profile-password-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-grid input:disabled {
    color: #596579;
    background: #eef2f6;
}

.profile-password-form button {
    grid-column: 1 / -1;
    justify-self: end;
}

.profile-manage-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px 40px 38px;
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 2px;
}

.profile-manage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d7dce4;
}

.profile-manage-head h1 {
    margin: 0;
    color: #2a2f38;
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
}

.profile-manage-head p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 17px;
}

.profile-note {
    margin: 22px 0 0;
    color: #98a2b3;
    font-size: 16px;
    line-height: 1.7;
}

.profile-manage-form,
.profile-photo-form {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 28px 0 34px;
}

.profile-photo-area {
    position: relative;
}

.profile-photo-frame {
    width: 180px;
    height: 225px;
    border-radius: 6px;
    background: #f6f8fb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.profile-photo-button {
    position: absolute;
    right: -12px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    background: #7d8594;
    border: 3px solid white;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.profile-photo-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.profile-photo-save {
    min-height: 36px;
    padding: 7px 18px;
    font-size: 14px;
}

.profile-manage-form .profile-readonly-grid {
    width: 100%;
    margin-top: 16px;
}

.profile-form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #d7dce4;
}

.profile-form-actions button {
    min-width: 132px;
    min-height: 40px;
    padding: 8px 18px;
}

.profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 36px;
}

.profile-readonly-grid label,
.profile-password-form label {
    display: grid;
    gap: 8px;
    color: #2f3743;
    font-size: 16px;
    font-weight: 800;
}

.profile-readonly-grid input,
.profile-password-form input {
    min-height: 44px;
    padding: 10px 13px;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #d9dee8;
    border-radius: 2px;
    font: inherit;
}

.profile-readonly-grid input:disabled {
    color: #475467;
    background: #f4f6f9;
}

.profile-password-panel {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #d7dce4;
}

.profile-password-panel h2 {
    margin: 0 0 18px;
    color: #2a2f38;
    font-size: 20px;
}

.profile-password-panel .profile-password-form {
    align-items: end;
}

.profile-password-panel .profile-password-form button {
    min-height: 44px;
    padding: 9px 28px;
}

.profile-password-modal[hidden] {
    display: none;
}

.profile-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
}

.profile-password-dialog {
    width: min(460px, 100%);
    padding: 24px;
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.profile-password-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e8ef;
}

.profile-password-head h2 {
    margin: 0;
    color: #2a2f38;
    font-size: 20px;
}

.profile-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    grid-column: 1 / -1;
}

.profile-password-actions button {
    min-width: 86px;
}

.first-password-modal[hidden] {
    display: none;
}

.first-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
}

.first-password-dialog {
    width: min(440px, 100%);
    padding: 34px 32px 30px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d8dee8;
    border-top: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
    text-align: center;
}

.first-password-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    color: white;
    background: var(--green);
    border-radius: 999px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.first-password-dialog h2 {
    margin: 0 0 12px;
    color: #123d2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
}

.first-password-dialog p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.8;
}

.first-password-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.first-password-actions .button,
.first-password-actions button {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 14px;
}

.points-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.points-summary article {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.points-summary span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.points-summary strong {
    display: block;
    margin-top: 6px;
    color: var(--green);
    font-size: 26px;
}

.point-rules-page .points-summary {
    gap: 8px;
    margin: 12px 0 18px;
}

.point-rules-page .points-summary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 12px 16px;
}

.point-rules-page .points-summary span {
    font-size: 13px;
}

.point-rules-page .points-summary strong {
    margin-top: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.subsection-title {
    margin: 30px 0 12px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
}

.point-type {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.point-type.good {
    color: #12633d;
    background: #edfdf4;
}

.point-type.bad {
    color: #b42318;
    background: #fff1f1;
}

.point-record-muted {
    color: #98a2b3;
    background: #fbfcfd;
}

.point-record-muted .title-cell {
    color: #667085;
}

.point-status {
    display: inline-flex;
    width: fit-content;
    margin-left: 6px;
    padding: 2px 7px;
    color: #667085;
    background: #eef2f6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mall-order-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.mall-order-status.used {
    color: #12633d;
    background: #edfdf4;
    border: 1px solid #b9ebcf;
}

.mall-order-status.pending {
    color: #8a5a00;
    background: #fff7df;
    border: 1px solid #ead28a;
}

.points-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.points-assign-page {
    display: grid;
    gap: 18px;
}

.points-assign-panel,
.points-history-panel {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.points-assign-panel h2,
.points-history-panel h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 20px;
}

.points-assign-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 120px 110px 150px;
    gap: 12px;
    align-items: end;
}

.points-assign-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.points-assign-form input,
.points-assign-form select {
    min-height: 38px;
    background: #fff;
}

.points-reason-field {
    grid-column: 1 / -2;
}

.points-assign-form button {
    min-height: 38px;
    padding-inline: 16px;
    white-space: nowrap;
}

.points-bulk-form {
    display: grid;
    gap: 12px;
}

.points-bulk-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.points-bulk-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.points-bulk-form button,
.points-bulk-save-form button {
    justify-self: start;
    min-height: 38px;
}

.points-bulk-save-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.point-reset-admin-page,
.mall-admin-page,
.mall-page {
    display: grid;
    gap: 18px;
}

.reset-panel,
.mall-admin-panel,
.mall-cart,
.mall-orders {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.reset-summary,
.mall-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reset-summary article,
.mall-status-grid article {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.reset-summary span,
.mall-status-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.reset-summary strong,
.mall-status-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--green);
    font-size: 22px;
    word-break: break-all;
}

.reset-warning {
    margin-top: 18px;
    padding: 18px;
    background: #f8fafc;
    border-left: 3px solid var(--green);
}

.reset-warning h2,
.mall-admin-panel h2,
.mall-cart h2,
.mall-orders h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 20px;
}

.reset-warning p {
    margin: 6px 0 0;
    color: #475467;
    line-height: 1.65;
}

.reset-form,
.mall-open-form,
.mall-add-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.reset-form label,
.mall-add-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-weight: 800;
}

.toggle-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.toggle-line input {
    width: 18px;
    height: 18px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mall-admin-items {
    display: grid;
    gap: 12px;
}

.mall-admin-item {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.6fr) 110px 90px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.mall-admin-item label,
.mall-add-form {
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.mall-admin-item label {
    display: grid;
    gap: 6px;
}

.mall-admin-item textarea,
.mall-add-form textarea {
    resize: vertical;
    line-height: 1.55;
}

.mall-add-form {
    grid-template-columns: minmax(160px, .9fr) 120px minmax(240px, 1.7fr) auto;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.mall-add-form h3 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ink);
    font-size: 17px;
}

.admin-history-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.admin-history-head h1 {
    margin-bottom: 8px;
}

.history-reset-note {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.history-reset-form {
    flex: 0 0 auto;
}

.history-reset-form button {
    min-height: 38px;
    white-space: nowrap;
}

.history-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.history-table-head h2 {
    margin: 0;
}

.history-table-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-history-table td {
    vertical-align: top;
}

.admin-history-table .point-score-cell {
    font-weight: 900;
    white-space: nowrap;
}

.history-status {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.history-status.active {
    color: #12633d;
    background: #edfdf4;
}

.history-status.muted {
    color: #667085;
    background: #eef2f6;
}

.admin-history-mobile-list {
    display: none;
}

.mall-admin-refined-page {
    gap: 18px;
}

.mall-admin-counts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mall-admin-counts strong {
    color: var(--green);
}

.mall-admin-counts b {
    color: #b42318;
}

.mall-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.mall-admin-layout.mall-admin-list-only {
    grid-template-columns: 1fr;
}

.mall-items-editor {
    display: grid;
    gap: 12px;
}

.mall-admin-item-list {
    display: grid;
    gap: 12px;
}

.mall-admin-item-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.mall-admin-item-card.is-paused {
    background: #fbfcfd;
}

.mall-admin-item-card.is-sold-out {
    border-color: #f2c9c4;
}

.mall-admin-item-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.mall-admin-item-card header span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.mall-admin-item-card header strong {
    color: var(--ink);
    font-size: 17px;
}

.mall-admin-badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.mall-admin-badges em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.mall-admin-badges .good {
    color: #12633d;
    background: #edfdf4;
    border: 1px solid #b9ebcf;
}

.mall-admin-badges .neutral {
    color: #667085;
    background: #eef2f6;
    border: 1px solid #d9dee8;
}

.mall-admin-badges .danger {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #f2c9c4;
}

.mall-sale-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: #12633d;
    background: #edfdf4;
    border: 1px solid #b9ebcf;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.mall-sale-toggle input {
    width: 16px;
    height: 16px;
}

.mall-admin-status-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px 0;
}

.mall-switch-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    color: #12633d;
    background: #fff;
    border: 1px solid #b9ebcf;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mall-switch-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--green);
}

.mall-switch-toggle.soldout-toggle {
    color: #9a3412;
    background: #fff;
    border-color: #fed7aa;
}

.mall-switch-toggle.soldout-toggle input {
    accent-color: #c2410c;
}

.mall-stock-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px 0;
}

.mall-stock-summary span,
.mall-stock-summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.mall-stock-summary strong {
    color: var(--green);
    background: #fff;
}

.mall-admin-item-card.is-paused .mall-sale-toggle {
    color: #667085;
    background: #eef2f6;
    border-color: #d9dee8;
}

.mall-item-field-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 110px 110px;
    gap: 12px;
    padding: 16px;
}

.mall-item-field-grid label,
.mall-add-card label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.mall-item-field-grid .wide-field {
    grid-column: 1 / -1;
}

.mall-item-field-grid textarea,
.mall-add-card textarea {
    resize: vertical;
    line-height: 1.6;
}

.mall-save-actions {
    margin-top: 14px;
}

.mall-admin-side {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
}

.mall-add-card {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.mall-add-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.mall-add-card button {
    width: 100%;
}

.mall-admin-help {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.mall-admin-help strong {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 14px;
}

.mall-admin-help p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
    word-break: keep-all;
}

.mall-admin-simple-list {
    display: grid;
    border-top: 2px solid #1f2937;
}

.mall-admin-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.mall-admin-list-row.is-sold-out {
    background: linear-gradient(90deg, rgba(255, 241, 240, .7), transparent 60%);
}

.mall-admin-row-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.mall-admin-row-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.mall-admin-row-main strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-admin-row-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.mall-admin-row-meta span,
.mall-admin-row-meta strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.mall-admin-row-meta strong {
    color: var(--green);
    background: #fff;
}

.mall-admin-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mall-admin-row-actions .icon-button {
    flex: 0 0 auto;
}

.mall-admin-add-row {
    padding: 0;
    border-bottom: 0;
}

.mall-add-inline-button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 10px 0;
    color: var(--green);
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.mall-add-inline-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--green);
    border-radius: 999px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.mall-add-inline-button strong {
    color: var(--green);
    font-size: 16px;
}

.mall-add-inline-button:hover {
    background: #f8fafc;
}

.mall-admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.mall-admin-modal-backdrop[hidden] {
    display: none;
}

.mall-admin-modal {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.mall-admin-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    min-height: 34px;
    padding: 0;
    color: #475467;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
}

.mall-admin-edit-page .admin-history-head {
    align-items: center;
}

.mall-item-edit-panel {
    display: grid;
    gap: 16px;
}

.mall-item-edit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.mall-item-edit-summary span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.mall-item-edit-summary strong {
    color: var(--ink);
    font-size: 20px;
}

.mall-stock-summary.edit-summary {
    padding: 0;
}

.mall-item-edit-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mall-item-edit-form .wide-field {
    grid-column: 1 / -1;
}

.mall-item-switches {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 4px;
}

.mall-item-switch-title {
    margin-right: 2px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-create-form label.mall-switch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    gap: 6px;
    padding: 5px 9px;
    color: #12633d;
    background: #fff;
    border: 1px solid #b9ebcf;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-create-form label.mall-switch-toggle input[type="checkbox"] {
    width: 14px;
    min-width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
    margin: 0;
    accent-color: var(--green);
}

.admin-create-form label.mall-switch-toggle.soldout-toggle {
    color: #9a3412;
    border-color: #fed7aa;
}

.admin-create-form label.mall-switch-toggle.soldout-toggle input[type="checkbox"] {
    accent-color: #c2410c;
}

.mall-hero {
    display: grid;
    gap: 10px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}

.mall-hero .eyebrow {
    margin: 0;
    color: #9aa3b2;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mall-hero h1 {
    margin: 0;
    color: var(--green);
    font-size: clamp(34px, 5vw, 44px);
    line-height: 1.25;
}

.mall-hero p {
    max-width: 760px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
}

.mall-admin-note {
    margin: 0;
    padding: 12px 14px;
    color: #8a5a00;
    background: #fff8e7;
    border: 1px solid #f2d99b;
    border-radius: 4px;
    font-weight: 800;
}

.mall-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.mall-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mall-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 4px;
}

.mall-card-head {
    display: grid;
    gap: 8px;
}

.mall-card-head span {
    width: fit-content;
    padding: 4px 9px;
    color: var(--green);
    background: #edfdf4;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.mall-card-head strong {
    color: var(--ink);
    font-size: 20px;
}

.mall-card p {
    margin: 0;
    min-height: 74px;
    color: #475467;
    line-height: 1.65;
    word-break: keep-all;
}

.mall-card button,
.mall-cart button,
.mall-open-form button,
.mall-add-form button {
    min-height: 38px;
}

.mall-cart {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
}

.mall-cart-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
}

.mall-cart-row strong,
.mall-cart-row span {
    display: block;
}

.mall-cart-row strong {
    color: var(--ink);
}

.mall-cart-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.mall-cart-row button {
    width: 32px;
    min-height: 32px;
    padding: 0;
    color: #b42318;
    background: #fff;
    border: 1px solid #f2c9c4;
}

.mall-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    color: var(--ink);
    font-weight: 900;
}

.mall-cart-total strong {
    color: var(--green);
}

.mall-cart button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.mypage-page .points-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 900px) {
    .mall-layout {
        grid-template-columns: 1fr;
    }

    .mall-cart {
        position: static;
    }

    .mall-admin-layout {
        grid-template-columns: 1fr;
    }

    .mall-admin-side {
        position: static;
    }

    .mall-admin-item,
    .mall-add-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .reset-panel,
    .mall-admin-panel,
    .mall-cart,
    .mall-orders {
        padding: 16px;
    }

    .reset-summary,
    .mall-status-grid,
    .mall-items {
        grid-template-columns: 1fr;
    }

    .mall-hero .eyebrow {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .mall-hero h1 {
        font-size: 34px;
    }

    .mall-hero p,
    .mall-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .mall-card p {
        min-height: 0;
    }

    .reset-summary strong,
    .mall-status-grid strong {
        font-size: 20px;
    }

    .admin-history-head {
        display: grid;
        align-items: start;
    }

    .history-reset-form button {
        width: 100%;
    }

    .mall-admin-counts {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
        border-radius: 4px;
        white-space: normal;
    }

    .mall-admin-head .eyebrow {
        font-size: 10px;
        letter-spacing: .1em;
    }

    .mall-admin-head h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .mall-admin-refined-page {
        gap: 12px;
    }

    .mall-admin-layout,
    .mall-items-editor,
    .mall-admin-side {
        gap: 10px;
    }

    .mall-admin-panel.mall-items-editor {
        padding: 12px;
    }

    .mall-items-editor .section-title-row {
        margin-bottom: 8px;
    }

    .mall-items-editor .section-title-row h2 {
        margin-bottom: 0;
        font-size: 18px;
    }

    .mall-items-editor .section-title-row .muted,
    .mall-admin-help {
        display: none;
    }

    .mall-admin-item-list {
        gap: 8px;
    }

    .mall-admin-simple-list {
        gap: 8px;
        border-top: 0;
    }

    .mall-admin-list-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 52px;
        padding: 8px 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .mall-admin-row-main {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        align-items: center;
    }

    .mall-admin-row-main strong {
        font-size: 15px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mall-admin-row-meta {
        justify-content: flex-start;
        gap: 5px;
    }

    .mall-admin-row-meta span,
    .mall-admin-row-meta strong {
        min-height: 24px;
        padding: 3px 7px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }

    .mall-admin-row-actions {
        justify-content: flex-end;
        width: auto;
    }

    .mall-admin-row-actions .icon-button {
        width: 34px;
        height: 34px;
    }

    .mall-admin-add-row {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .mall-add-inline-button {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        min-height: 52px;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .mall-add-inline-button strong {
        font-size: 15px;
    }

    .mall-admin-table-list .mall-admin-badges {
        display: none;
    }

    .mall-admin-item-card header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        padding: 9px 10px;
        gap: 8px;
    }

    .mall-admin-item-card header span {
        margin-bottom: 2px;
        font-size: 10px;
    }

    .mall-admin-item-card header strong {
        display: block;
        max-width: none;
        overflow: hidden;
        color: #1f2937;
        font-size: 14px;
        line-height: 1.25;
        text-overflow: clip;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .mall-sale-toggle {
        margin-left: auto;
        padding: 4px 7px;
        gap: 5px;
        font-size: 11px;
    }

    .mall-sale-toggle input {
        width: 14px;
        height: 14px;
    }

    .mall-admin-badges {
        justify-content: flex-end;
        gap: 4px;
        max-width: 92px;
    }

    .mall-admin-badges em {
        min-height: 23px;
        padding: 3px 7px;
        font-size: 10px;
        line-height: 1.1;
    }

    .mall-admin-status-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 8px 10px 0;
    }

    .mall-switch-toggle {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .mall-switch-toggle input {
        width: 14px;
        height: 14px;
    }

    .mall-stock-summary {
        gap: 5px;
        padding: 8px 10px 0;
    }

    .mall-stock-summary span,
    .mall-stock-summary strong {
        min-height: 24px;
        padding: 3px 7px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }

    .mall-item-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .mall-item-field-grid label:first-child,
    .mall-item-field-grid .wide-field {
        grid-column: 1 / -1;
    }

    .mall-item-field-grid label,
    .mall-add-card label {
        gap: 4px;
        font-size: 12px;
    }

    .mall-item-field-grid input,
    .mall-add-card input {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 13px;
        width: 100%;
    }

    .mall-item-field-grid textarea,
    .mall-add-card textarea {
        min-height: 48px;
        max-height: 74px;
        padding: 7px 9px;
        font-size: 13px;
        line-height: 1.45;
    }

    .mall-save-actions {
        margin-top: 10px;
    }

    .mall-save-actions button {
        width: 100%;
        min-height: 36px;
    }

    .mall-add-card {
        gap: 8px;
        padding: 12px;
    }

    .mall-add-card h2 {
        font-size: 17px;
    }

    .mall-add-card button {
        min-height: 36px;
    }

    .mall-admin-edit-page .admin-history-head {
        align-items: start;
    }

    .mall-admin-edit-page .admin-history-head .button {
        width: 100%;
    }

    .mall-item-edit-summary {
        display: grid;
        gap: 10px;
    }

    .mall-item-edit-summary strong {
        font-size: 17px;
        line-height: 1.3;
    }

    .mall-item-edit-form {
        grid-template-columns: 1fr;
    }

    .mall-item-switches {
        gap: 6px;
        padding: 7px 8px;
    }

    .mall-admin-modal-backdrop {
        align-items: end;
        padding: 10px;
    }

    .mall-admin-modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 18px 14px 14px;
        border-radius: 8px 8px 0 0;
    }

    .mall-admin-modal .mall-item-edit-summary {
        padding-right: 42px;
    }

    .mall-admin-modal .admin-create-actions {
        grid-template-columns: 1fr 1fr;
    }

    .admin-history-table {
        display: grid;
        gap: 7px;
        border-top: 0;
        font-size: 13px;
        white-space: normal;
    }

    .admin-history-table thead {
        display: none;
    }

    .admin-point-history-panel {
        padding: 12px;
    }

    .admin-point-history-panel .history-table-head {
        margin-bottom: 10px;
    }

    .admin-history-table tbody {
        display: grid;
        gap: 7px;
    }

    .admin-history-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "student score"
            "date type"
            "reason reason"
            "issuer status";
        gap: 5px 10px;
        width: 100%;
        padding: 11px 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .admin-history-table td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border-bottom: 0;
        text-align: left;
    }

    .admin-history-table td::before {
        content: "";
        display: none;
    }

    .admin-history-table td[data-label="일자"] {
        grid-area: date;
        color: #667085;
        font-size: 12px;
        line-height: 1.35;
    }

    .admin-history-table td[data-label="학생"] {
        grid-area: student;
        color: #1f2937;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.35;
        word-break: keep-all;
    }

    .admin-history-table td[data-label="구분"] {
        grid-area: type;
        justify-self: end;
    }

    .admin-history-table td[data-label="점수"] {
        grid-area: score;
        justify-self: end;
        color: #111827;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.25;
    }

    .admin-history-table td[data-label="사유"] {
        grid-area: reason;
        margin-top: 3px;
        padding-top: 7px;
        color: #344054;
        border-top: 1px solid #eef2f6;
        font-size: 13px;
        line-height: 1.45;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .admin-history-table td[data-label="담당"] {
        grid-area: issuer;
        color: #667085;
        font-size: 12px;
        line-height: 1.5;
    }

    .admin-history-table td[data-label="담당"]::before {
        display: inline;
        color: #98a2b3;
        content: "담당 ";
    }

    .admin-history-table td[data-label="상태"] {
        grid-area: status;
        justify-self: end;
    }

    .admin-history-table .point-type,
    .admin-history-table .history-status {
        padding: 2px 7px;
        font-size: 11px;
        line-height: 1.35;
    }

    .admin-history-table .empty-board {
        display: block;
        grid-column: 1 / -1;
        padding: 18px 10px;
        text-align: center;
    }

    .admin-history-table .empty-board::before {
        content: "";
    }

    .admin-history-table {
        display: none;
    }

    .admin-history-mobile-list {
        display: grid;
        gap: 6px;
    }

    .mobile-history-row {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) auto 42px;
        align-items: center;
        gap: 7px;
        min-height: 38px;
        padding: 7px 9px;
        background: #fff;
        border: 1px solid #e3e8ef;
        border-radius: 4px;
    }

    .mobile-history-row.is-muted {
        background: #fbfcfd;
        opacity: .72;
    }

    .mobile-history-type {
        display: inline-grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-history-type.good {
        color: #12633d;
        background: #edfdf4;
    }

    .mobile-history-type.bad {
        color: #b42318;
        background: #fff1f1;
    }

    .mobile-history-main {
        display: flex;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
        white-space: nowrap;
    }

    .mobile-history-main strong,
    .mobile-history-main em {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.25;
    }

    .mobile-history-main strong {
        flex: 0 1 auto;
        max-width: 58%;
        color: #1f2937;
        font-size: 13px;
        font-style: normal;
        font-weight: 900;
    }

    .mobile-history-main em {
        flex: 1 1 auto;
        color: #667085;
        font-size: 12px;
        font-style: normal;
    }

    .mobile-history-main em::before {
        content: "- ";
    }

    .mobile-history-row b {
        color: #111827;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-history-row time,
    .mobile-history-status {
        justify-self: end;
        color: #98a2b3;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-history-status {
        padding: 4px 6px;
        color: #667085;
        background: #eef2f6;
        border-radius: 999px;
    }
}

.admin-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.shop-page {
    gap: 18px;
}

.shop-standalone-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 28px auto 54px;
}

.shop-standalone-shell .shop-page {
    padding: 0;
}

.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.shop-brand {
    margin: 0 0 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.shop-brand span {
    color: #b58b2b;
}

.shop-topbar h1 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: 0;
}

.shop-topbar p:not(.shop-brand) {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.shop-wallet {
    min-width: 180px;
    padding: 14px 16px;
    text-align: right;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.shop-wallet span,
.shop-promo-points span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.shop-wallet strong {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 24px;
    font-weight: 900;
}

.shop-promo {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 4px;
}

.shop-promo > div:first-child > span {
    color: #9a7a35;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.shop-promo h2 {
    margin: 8px 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.35;
}

.shop-promo p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    word-break: keep-all;
}

.shop-promo-points {
    min-width: 150px;
    align-self: center;
    text-align: right;
}

.shop-promo-points strong {
    display: block;
    margin-top: 3px;
    color: var(--green);
    font-size: 28px;
    font-weight: 900;
}

.shop-promo-points small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 800;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.shop-products {
    display: grid;
    gap: 14px;
}

.shop-products-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.shop-products-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.shop-products-head p,
.shop-products-head span {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shop-product-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
}

.shop-product-visual {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 170px;
    padding: 18px;
    color: #fff;
    background: #235a44;
}

.shop-product-visual::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
}

.shop-product-visual span {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    opacity: .55;
}

.shop-product-visual strong {
    position: relative;
    z-index: 1;
    padding: 6px 10px;
    color: #0f3d2a;
    background: #e7faef;
    border: 1px solid rgba(15, 61, 42, .16);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .14);
}

.shop-product-card.tone-1 .shop-product-visual,
.shop-cart-thumb.tone-1 {
    background: #28598f;
}

.shop-product-card.tone-2 .shop-product-visual,
.shop-cart-thumb.tone-2 {
    background: #b7791f;
}

.shop-product-card.tone-3 .shop-product-visual,
.shop-cart-thumb.tone-3 {
    background: #276749;
}

.shop-product-card.tone-4 .shop-product-visual,
.shop-cart-thumb.tone-4 {
    background: #4a5568;
}

.shop-product-card.tone-5 .shop-product-visual,
.shop-cart-thumb.tone-5 {
    background: #9f1f1f;
}

.shop-product-body {
    display: grid;
    gap: 8px;
    padding: 0 18px;
}

.shop-product-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
}

.shop-product-body p {
    margin: 0;
    min-height: 72px;
    color: #475467;
    line-height: 1.65;
    word-break: keep-all;
}

.shop-product-card form {
    padding: 0 18px 18px;
}

.shop-product-card button {
    width: 100%;
    min-height: 40px;
    color: var(--green);
    background: #fff;
    border: 1px solid var(--green);
    border-radius: 4px;
    font-weight: 900;
}

.shop-product-card button:hover {
    color: #fff;
    background: var(--green);
}

.shop-product-card.is-sold-out {
    opacity: .72;
}

.shop-product-card.is-sold-out .shop-product-visual {
    background: #5b6573;
}

.shop-product-card.is-sold-out .shop-product-visual strong {
    color: #fff;
    background: #344054;
    border-color: rgba(255, 255, 255, .22);
}

.shop-product-card button:disabled {
    color: #98a2b3;
    background: #eef2f6;
    border-color: #d9e1ea;
    cursor: not-allowed;
}

.shop-product-card button:disabled:hover {
    color: #98a2b3;
    background: #eef2f6;
}

.shop-cart {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .08);
}

.shop-cart-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.shop-cart-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
}

.shop-cart-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.shop-cart-head > span {
    color: var(--green);
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.shop-cart-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
}

.shop-empty-cart {
    padding: 26px 14px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cfd6df;
    border-radius: 4px;
}

.shop-empty-cart strong {
    color: var(--ink);
}

.shop-empty-cart p {
    margin: 6px 0 0;
    color: var(--muted);
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}

.shop-cart-thumb {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 4px;
    font-weight: 900;
}

.shop-cart-info strong,
.shop-cart-info span {
    display: block;
}

.shop-cart-info strong {
    color: var(--ink);
}

.shop-cart-info span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.shop-quantity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.shop-quantity form {
    margin: 0;
    padding: 0;
}

.shop-quantity button {
    width: 28px;
    min-height: 28px;
    padding: 0;
    color: #475467;
    background: #fff;
    border: 0;
    font-weight: 900;
}

.shop-quantity b {
    min-width: 18px;
    color: var(--ink);
    text-align: center;
    font-size: 13px;
}

.shop-cart-price {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.shop-cart-price strong {
    color: var(--ink);
    white-space: nowrap;
}

.shop-cart-price form {
    margin: 0;
}

.shop-cart-price button {
    width: 28px;
    min-height: 28px;
    padding: 0;
    color: #b42318;
    background: #fff;
    border: 1px solid #f2c9c4;
    border-radius: 4px;
    font-weight: 900;
}

.shop-checkout {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.shop-checkout > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #475467;
    font-weight: 800;
}

.shop-checkout strong {
    color: var(--green);
}

.shop-checkout button {
    width: 100%;
    min-height: 42px;
    border-radius: 4px;
    font-weight: 900;
}

.shop-checkout button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.mall-receipt-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(2px);
}

.mall-receipt-modal-backdrop[hidden] {
    display: none;
}

.mall-receipt-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow-y: auto;
    padding: 32px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d8dee8;
    border-top: 4px solid var(--green);
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.mall-receipt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.mall-receipt-done {
    text-align: center;
}

.mall-receipt-done > span {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: #8a6a23;
    background: #fff8e7;
    border: 1px solid #ead8a6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    line-height: 1.1;
}

.mall-receipt-done h2 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.35;
}

.mall-receipt-done p {
    max-width: 420px;
    margin: 10px auto 22px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
}

.mall-receipt-ticket {
    padding: 20px;
    background: #fbfcfd;
    border: 1px solid #d8dee8;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.mall-receipt-ticket-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8dee8;
}

.mall-receipt-ticket-head span {
    display: block;
    margin-bottom: 4px;
    color: #8a6a23;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.mall-receipt-ticket-head strong {
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.mall-receipt-ticket-head em {
    color: #4b5563;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mall-receipt-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
    background: white;
    border: 1px solid #d8dee8;
}

.mall-receipt-summary div {
    padding: 12px;
    border-right: 1px solid #d8dee8;
}

.mall-receipt-summary div:last-child {
    border-right: 0;
}

.mall-receipt-summary dt {
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.mall-receipt-summary dd {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.mall-receipt-lines {
    display: grid;
    gap: 8px;
}

.mall-receipt-lines div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 74px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e6e9ef;
}

.mall-receipt-lines span {
    min-width: 0;
    color: #111827;
    font-weight: 800;
}

.mall-receipt-lines b,
.mall-receipt-lines strong {
    color: #111827;
    text-align: right;
    white-space: nowrap;
}

.mall-receipt-ticket-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px solid var(--green);
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.mall-receipt-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.mall-receipt-modal-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    color: #fff;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.mall-receipt-modal-actions .button.secondary {
    color: var(--green);
    background: #fff;
}

.mall-receipt-page {
    max-width: 920px;
    margin: 0 auto;
}

.receipt-hero,
.receipt-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
}

.receipt-empty {
    display: grid;
    justify-items: start;
}

.receipt-hero h1,
.receipt-empty h1 {
    margin: 8px 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
}

.receipt-hero p,
.receipt-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.receipt-stamp {
    display: grid;
    place-items: center;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    color: #12633d;
    background: #edfdf4;
    border: 2px solid #b9ebcf;
    border-radius: 999px;
    transform: rotate(-8deg);
}

.receipt-stamp span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.receipt-stamp strong {
    font-size: 26px;
    font-weight: 900;
}

.receipt-paper {
    margin-top: 22px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .06);
}

.receipt-paper-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid #1f2937;
}

.receipt-paper-head span {
    color: #9a7a35;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.receipt-paper-head h2 {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 24px;
}

.receipt-paper-head strong {
    color: #526174;
    font-size: 14px;
}

.receipt-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
    border: 1px solid var(--line);
}

.receipt-meta div {
    padding: 14px 16px;
    border-right: 1px solid var(--line);
}

.receipt-meta div:last-child {
    border-right: 0;
}

.receipt-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.receipt-meta dd {
    margin: 5px 0 0;
    color: var(--ink);
    font-weight: 900;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #1f2937;
}

.receipt-table th,
.receipt-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.receipt-table th:first-child,
.receipt-table td:first-child {
    text-align: left;
}

.receipt-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 20px 0 10px;
}

.receipt-total span {
    color: var(--muted);
    font-weight: 900;
}

.receipt-total strong {
    color: var(--green);
    font-size: 30px;
    font-weight: 900;
}

.receipt-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    color: #526174;
    background: #f8fafc;
    border-left: 3px solid var(--gold);
    line-height: 1.65;
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.receipt-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    color: #fff;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.receipt-actions .button.secondary {
    color: var(--green);
    background: #fff;
}

.receipt-actions .print-button {
    color: #344054;
    background: #f8fafc;
    border-color: #cfd8e3;
}

@media (max-width: 1100px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-cart {
        position: static;
    }

    .receipt-hero {
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .shop-standalone-shell {
        width: min(100% - 24px, 640px);
        margin: 16px auto 34px;
    }

    .shop-topbar,
    .shop-promo {
        display: grid;
        padding: 16px;
    }

    .shop-topbar h1 {
        font-size: 24px;
    }

    .shop-wallet,
    .shop-promo-points {
        min-width: 0;
        text-align: left;
    }

    .shop-promo h2 {
        font-size: 20px;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-visual {
        min-height: 140px;
    }

    .shop-products-head {
        align-items: start;
        flex-direction: column;
    }

    .shop-cart-list {
        max-height: none;
    }

    .shop-cart-item {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .shop-cart-thumb {
        width: 42px;
        height: 42px;
    }
}

/* Compact mall refinement */
.shop-page {
    gap: 16px;
}

.shop-topbar {
    min-height: 132px;
    padding: 20px 24px;
}

.shop-wallet {
    min-width: 160px;
    padding: 12px 14px;
}

.shop-wallet strong {
    font-size: 22px;
}

.shop-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.shop-product-card {
    gap: 10px;
    box-shadow: none;
}

.shop-product-visual {
    min-height: 0;
    aspect-ratio: 1 / .82;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f7f9fb;
    border-bottom: 1px solid #eef2f6;
}

.shop-product-visual::after {
    right: 12px;
    bottom: 12px;
    width: 58px;
    height: 58px;
    border-color: rgba(255, 255, 255, .35);
}

.shop-product-visual span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    font-size: 24px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 18px;
    opacity: 1;
}

.shop-product-card.tone-1 .shop-product-visual {
    background: #eaf2fb;
}

.shop-product-card.tone-2 .shop-product-visual {
    background: #fff5df;
}

.shop-product-card.tone-3 .shop-product-visual {
    background: #eaf7f0;
}

.shop-product-card.tone-4 .shop-product-visual {
    background: #f0f2f5;
}

.shop-product-card.tone-5 .shop-product-visual {
    background: #fff0ef;
}

.shop-product-card.tone-1 .shop-product-visual span {
    background: #28598f;
}

.shop-product-card.tone-2 .shop-product-visual span {
    background: #b7791f;
}

.shop-product-card.tone-3 .shop-product-visual span {
    background: #276749;
}

.shop-product-card.tone-4 .shop-product-visual span {
    background: #4a5568;
}

.shop-product-card.tone-5 .shop-product-visual span {
    background: #9f1f1f;
}

.shop-product-visual strong {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    color: #0f3d2a;
    background: #ffffff;
    border: 1px solid rgba(15, 61, 42, .18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .16);
    opacity: .98;
}

.shop-product-card.is-sold-out .shop-product-visual strong {
    color: #fff;
    background: #344054;
    border-color: #344054;
}

.shop-product-body {
    gap: 7px;
    padding: 0 14px;
}

.shop-product-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.shop-product-title-row h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.shop-product-title-row strong {
    color: var(--green);
    font-size: 15px;
    white-space: nowrap;
}

.shop-product-body > h3 {
    display: none;
}

.shop-product-body p {
    min-height: 42px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.shop-product-card form {
    padding: 0 14px 14px;
}

.shop-product-card button {
    min-height: 34px;
    font-size: 13px;
}

.shop-cart {
    gap: 12px;
    padding: 16px;
    box-shadow: none;
}

.shop-cart-head {
    padding-bottom: 12px;
}

.shop-cart-head h2 {
    font-size: 18px;
}

.shop-cart-head > span {
    font-size: 20px;
}

.shop-cart-list {
    gap: 10px;
    max-height: 360px;
}

.shop-empty-cart {
    padding: 28px 12px;
}

.shop-cart-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
}

.shop-cart-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
}

.shop-cart-info strong {
    font-size: 14px;
}

.shop-quantity {
    margin-top: 6px;
}

.shop-quantity button {
    width: 24px;
    min-height: 24px;
}

.shop-checkout button {
    min-height: 38px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .shop-topbar {
        min-height: 0;
        gap: 10px;
        padding: 12px;
    }

    .shop-brand {
        margin-bottom: 3px;
        font-size: 10px;
    }

    .shop-topbar h1 {
        font-size: 21px;
    }

    .shop-topbar p:not(.shop-brand) {
        display: none;
    }

    .shop-wallet {
        padding: 8px 10px;
    }

    .shop-wallet span {
        font-size: 11px;
    }

    .shop-wallet strong {
        margin-top: 2px;
        font-size: 18px;
    }

    .shop-products {
        gap: 9px;
    }

    .shop-products-head {
        gap: 2px;
    }

    .shop-products-head h2 {
        font-size: 18px;
    }

    .shop-products-head span {
        display: none;
    }

    .shop-products-head p {
        margin-top: 1px;
        font-size: 12px;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .shop-product-card {
        grid-template-columns: 42px minmax(0, 1fr) 56px;
        grid-template-rows: auto;
        align-items: center;
        gap: 9px;
        padding: 9px;
        border-radius: 4px;
    }

    .shop-product-visual {
        width: 42px;
        height: 42px;
        aspect-ratio: auto;
        padding: 0;
        border: 0;
        border-radius: 10px;
    }

    .shop-product-visual::after {
        display: none;
    }

    .shop-product-visual strong {
        right: -6px;
        bottom: -7px;
        min-height: 18px;
        padding: 3px 6px;
        border-radius: 999px;
        font-size: 10px;
        box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
    }

    .shop-product-visual span {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 14px;
    }

    .shop-product-body {
        gap: 2px;
        min-width: 0;
        padding: 0;
    }

    .shop-product-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        align-items: center;
    }

    .shop-product-title-row h3 {
        overflow: hidden;
        font-size: 14px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-product-title-row strong {
        font-size: 13px;
    }

    .shop-product-body p {
        display: none;
    }

    .shop-product-card form {
        padding: 0;
    }

    .shop-product-card button {
        min-height: 30px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .shop-cart {
        gap: 9px;
        padding: 12px;
    }

    .shop-cart-head {
        padding-bottom: 8px;
    }

    .shop-cart-head h2 {
        font-size: 17px;
    }

    .shop-cart-head p {
        font-size: 12px;
    }

    .shop-cart-head > span {
        font-size: 18px;
    }

    .shop-cart-list {
        gap: 6px;
    }

    .shop-empty-cart {
        padding: 16px 10px;
    }

    .shop-empty-cart p {
        display: none;
    }

    .shop-cart-item {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 0;
    }

    .shop-cart-thumb {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 12px;
    }

    .shop-cart-info strong {
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-cart-info span {
        font-size: 12px;
    }

    .shop-quantity {
        margin-top: 4px;
    }

    .shop-quantity button {
        width: 22px;
        min-height: 22px;
    }

    .shop-quantity b {
        min-width: 18px;
        font-size: 12px;
    }

    .shop-cart-price strong {
        font-size: 13px;
    }

    .shop-cart-price button {
        width: 24px;
        min-height: 24px;
    }

    .shop-checkout {
        gap: 8px;
        padding-top: 8px;
    }

    .shop-checkout > div {
        padding: 8px 0;
    }

    .shop-checkout button {
        min-height: 34px;
        font-size: 13px;
    }

    .mall-receipt-modal-backdrop {
        align-items: start;
        padding: 18px 12px;
    }

    .mall-receipt-modal {
        max-height: calc(100vh - 36px);
        padding: 26px 18px 20px;
        box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
    }

    .mall-receipt-done > span {
        font-size: 25px;
    }

    .mall-receipt-done h2 {
        font-size: 19px;
    }

    .mall-receipt-ticket {
        padding: 14px;
    }

    .mall-receipt-ticket-head {
        display: grid;
    }

    .mall-receipt-summary {
        grid-template-columns: 1fr;
    }

    .mall-receipt-summary div {
        border-right: 0;
        border-bottom: 1px solid #d8dee8;
    }

    .mall-receipt-summary div:last-child {
        border-bottom: 0;
    }

    .mall-receipt-lines div {
        grid-template-columns: minmax(0, 1fr) 42px 64px;
        gap: 8px;
        font-size: 13px;
    }

    .mall-receipt-modal-actions {
        grid-template-columns: 1fr;
    }

    .receipt-hero,
    .receipt-empty,
    .receipt-paper {
        padding: 20px 16px;
    }

    .receipt-hero {
        display: grid;
    }

    .receipt-hero h1,
    .receipt-empty h1 {
        font-size: 30px;
    }

    .receipt-stamp {
        justify-self: start;
        width: 86px;
        height: 86px;
        transform: none;
    }

    .receipt-stamp strong {
        font-size: 20px;
    }

    .receipt-meta {
        grid-template-columns: 1fr;
    }

    .receipt-meta div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .receipt-meta div:last-child {
        border-bottom: 0;
    }

    .receipt-table {
        display: grid;
        border-top: 0;
    }

    .receipt-table thead {
        display: none;
    }

    .receipt-table tbody,
    .receipt-table tr,
    .receipt-table td {
        display: block;
        width: 100%;
    }

    .receipt-table tr {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .receipt-table tr + tr {
        margin-top: 8px;
    }

    .receipt-table td {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 0;
        border-bottom: 0;
        text-align: left;
    }

    .receipt-table td::before {
        color: #667085;
        font-size: 12px;
        font-weight: 900;
        content: attr(data-label);
    }

    .receipt-total {
        justify-content: space-between;
    }

    .receipt-actions .button {
        width: 100%;
    }
}

.admin-create-actions .secondary {
    color: var(--green);
    background: white;
    border: 1px solid var(--green);
}

.admin-user-table {
    width: 100%;
    margin-top: 18px;
    border-top-color: #1f2937;
    font-size: 15px;
    table-layout: fixed;
}

.admin-user-table th:nth-child(1),
.admin-user-table td:nth-child(1) {
    width: 56px;
}

.admin-user-table th:nth-child(5),
.admin-user-table td:nth-child(5) {
    width: 112px;
}

.admin-user-table th:nth-child(6),
.admin-user-table td:nth-child(6) {
    width: 128px;
}

.admin-user-table th:nth-child(7),
.admin-user-table td:nth-child(7) {
    width: 96px;
}

.account-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    margin: 2px 2px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.account-status-badge.is-active {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.account-status-badge.is-inactive {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.account-status-badge.is-superadmin {
    color: #5b3b00;
    background: #fffbeb;
    border-color: #fde68a;
    text-transform: lowercase;
}

.compact-user-table td:nth-child(6) {
    line-height: 1.4;
}

.admin-user-table th {
    color: var(--ink);
    background: #f8fafc;
}

.admin-user-table td {
    vertical-align: middle;
}

.admin-user-id {
    color: #4b5563;
    font-weight: 700;
}

.admin-user-name {
    color: var(--ink);
    font-weight: 800;
}

.compact-user-table th:last-child,
.compact-user-table td:last-child {
    width: 96px;
}

.compact-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    color: #23362f;
    background: white;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
}

.icon-button:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
    text-decoration: none;
}

.icon-button.danger {
    color: #b42318;
}

.icon-button.danger:hover {
    color: white;
    background: #b42318;
    border-color: #b42318;
}

.admin-account-detail {
    background: white;
}

.account-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d9e1ea;
}

.account-detail-head h2 {
    margin-bottom: 4px;
}

.account-detail-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.account-detail-form {
    max-width: 760px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-detail-form label:last-of-type,
.account-detail-form .account-check-field,
.account-detail-form .admin-create-actions {
    grid-column: 1 / -1;
}

.account-detail-form .account-check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-weight: 800;
}

.account-detail-form .account-check-field input {
    width: auto;
    margin-top: 3px;
}

.account-detail-form .account-check-field small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.account-photo-edit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.account-photo-edit img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.account-photo-edit label {
    flex: 1;
    min-width: 0;
}

.account-danger-panel {
    margin-top: 16px;
    background: white;
    border-top-color: #b42318;
}

.account-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.account-danger-actions form {
    flex: 0 1 auto;
}

.account-danger-actions button {
    min-height: 36px;
    padding: 7px 13px;
    white-space: nowrap;
}

.account-mall-panel {
    background: white;
    border-top-color: var(--gold);
}

.account-mall-panel .muted {
    margin: -6px 0 16px;
}

.admin-mall-order-table {
    margin-top: 14px;
}

.admin-mall-order-table form {
    margin: 0;
}

.compact-submit-button {
    min-height: 30px;
    padding: 5px 10px;
    color: white;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.compact-submit-button:hover {
    background: #123829;
}

.admin-board-permission-table {
    margin-top: 22px;
    table-layout: fixed;
}

.admin-board-permission-table td:first-child {
    text-align: left;
}

.admin-board-permission-table td:first-child span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.permission-select {
    width: min(180px, 100%);
    min-height: 38px;
    padding: 7px 10px;
    color: #23362f;
    background: white;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.board-permission-form .form-actions {
    gap: 14px;
    margin-top: 18px;
}

.admin-role-form {
    justify-content: center;
}

.admin-role-form select {
    width: 180px;
    padding: 7px 9px;
    font-size: 14px;
}

.admin-role-form button,
.admin-row-actions button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.admin-row-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.admin-row-actions .danger-button {
    background: #b42318;
}

.role-badge-admin {
    color: #b42318;
    background: #fff1f1;
    border-color: #f4b4ad;
}

.role-badge-council {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.role-badge-student {
    color: #374151;
    background: #f9fafb;
}

.role-badge-guest {
    color: #8a5f1f;
    background: #fff8e7;
    border-color: #e8d2a0;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .utility-bar {
        padding: 8px 14px;
    }

    .utility-actions {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .utility-button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .site-header {
        position: static;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding: 14px;
    }

    .brand-block {
        min-width: 0;
    }

    .brand-block img {
        width: 38px;
        height: 38px;
    }

    .brand-block strong {
        font-size: 22px;
        line-height: 1.15;
    }

    .brand-block em {
        font-size: 10px;
    }

    .primary-nav {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .primary-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: #f8fafc;
        font-size: 14px;
        white-space: nowrap;
    }

    .primary-nav a.active,
    .primary-nav a:hover {
        color: white;
        background: var(--green);
        border-color: var(--green);
    }

    .shell {
        grid-template-columns: 1fr;
        gap: 16px;
        width: min(100% - 20px, 720px);
        padding: 18px 0 44px;
    }

    .sub-hero {
        min-height: 180px;
    }

    .site-hero > div {
        width: min(100% - 28px, 720px);
    }

    .site-hero h1 {
        font-size: 34px;
    }

    .sidebar {
        box-shadow: none;
    }

    .sidebar h2 {
        padding: 14px 16px;
        font-size: 22px;
    }

    .sidebar ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar li {
        min-width: 0;
    }

    .sidebar a {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .sidebar-submenu {
        grid-column: 1 / -1;
    }

    .sidebar-submenu a {
        min-height: 36px;
        padding: 8px 12px 8px 22px;
    }

    .content-panel {
        min-width: 0;
        padding: 22px;
        overflow: hidden;
    }

    .breadcrumb {
        justify-content: flex-start;
        overflow-x: auto;
        text-align: left;
        white-space: nowrap;
    }

    .hall-grid,
    .hall-admin-grid,
    .points-summary,
    .council-role-grid,
    .quick-links,
    .hall-album-grid,
    .home-boards {
        grid-template-columns: 1fr 1fr;
    }

    .main-popups {
        position: relative;
        left: auto;
        bottom: auto;
        flex-wrap: wrap;
        width: min(100% - 32px, 720px);
        margin: -72px auto 0;
    }

    .popup-card {
        flex: 1 1 220px;
        width: auto;
    }
}

@media (max-width: 560px) {
    .utility-bar {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .utility-actions {
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
    }

    .utility-actions span {
        display: none;
    }

    .brand-block strong {
        font-size: 20px;
    }

    .brand-block em {
        display: none;
    }

    .site-hero {
        min-height: 150px;
    }

    .sub-hero {
        min-height: 150px;
    }

    .site-hero span {
        font-size: 12px;
    }

    .site-hero h1 {
        font-size: 30px;
    }

    .site-hero p {
        font-size: 12px;
    }

    .shell {
        width: min(100% - 12px, 540px);
        padding-top: 12px;
    }

    .sidebar ul {
        grid-template-columns: 1fr;
    }

    .content-panel {
        padding: 16px 12px;
    }

    .main-popups {
        flex-direction: column;
    }

    .popup-card {
        flex-basis: auto;
    }

    .page h1,
    .intro-box h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hall-grid,
    .hall-admin-grid,
    .quick-links,
    .hall-album-grid,
    .hall-activity-grid,
    .about-intro-panel,
    .symbol-emblem-panel,
    .symbol-card-grid,
    .home-boards {
        grid-template-columns: 1fr;
    }

    .about-intro-panel,
    .about-motto-panel {
        padding: 24px 18px;
    }

    .about-copy,
    .about-motto-panel p {
        font-size: 16px;
        line-height: 1.75;
    }

    .symbol-emblem-panel {
        gap: 24px;
        padding: 24px 18px;
    }

    .symbol-emblem {
        width: 170px;
        height: 170px;
    }

    .symbol-emblem img {
        width: 130px;
        height: 130px;
    }

    .symbol-copy {
        font-size: 16px;
        line-height: 1.75;
    }

    .symbol-card {
        padding: 20px 16px;
    }

    .hall-activities-page {
        gap: 16px;
    }

    .hall-activities-hero {
        padding: 18px 16px;
    }

    .hall-activities-hero h1 {
        font-size: 26px;
    }

    .hall-activities-hero p:last-child {
        font-size: 14px;
        line-height: 1.7;
    }

    .hall-activity-filter {
        gap: 6px;
    }

    .hall-activity-filter button {
        padding: 6px 9px;
        font-size: 12px;
    }

    .hall-activity-grid {
        gap: 12px;
    }

    .hall-activity-card {
        grid-template-rows: 96px 1fr;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    }

    .hall-activity-cover {
        padding: 14px;
    }

    .hall-activity-cover strong {
        top: 12px;
        right: 14px;
        font-size: 32px;
    }

    .hall-activity-body {
        gap: 10px;
        padding: 15px;
    }

    .hall-activity-body h2 {
        font-size: 18px;
    }

    .hall-activity-body p,
    .hall-activity-body dd {
        font-size: 14px;
        line-height: 1.65;
    }

    .hall-activity-body dl {
        grid-template-columns: 1fr;
    }

    .hall-activity-body dl div {
        min-height: 0;
    }

    .symbol-card h2 {
        font-size: 19px;
    }

    .about-section h1 span,
    .symbol-section h1 span,
    .page-main-title span,
    .symbol-card h2 span {
        display: inline-block;
        font-size: 15px;
    }

    .hall-admin-row,
    .add-member-row,
    .hall-edit-fields,
    .council-intro,
    .council-role-grid,
    .profile-grid,
    .profile-readonly-grid,
    .account-detail-form,
    .profile-password-form {
        grid-template-columns: 1fr;
    }

    .mypage-page .points-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin: 16px 0 18px;
    }

    .mypage-page .points-summary article {
        padding: 12px 8px;
        text-align: center;
    }

    .mypage-page .points-summary span {
        font-size: 12px;
    }

    .mypage-page .points-summary strong {
        margin-top: 4px;
        font-size: 22px;
        line-height: 1.15;
    }

    .point-rules-page .points-summary {
        gap: 6px;
        margin: 10px 0 14px;
    }

    .point-rules-page .points-summary article {
        min-height: 0;
        padding: 9px 11px;
        text-align: left;
    }

    .point-rules-page .points-summary span {
        font-size: 12px;
    }

    .point-rules-page .points-summary strong {
        font-size: 14px;
    }

    .my-points-table {
        display: grid;
        gap: 8px;
        border-top: 0;
        font-size: 13px;
        white-space: normal;
    }

    .my-points-table thead {
        display: none;
    }

    .my-points-table tbody,
    .my-points-table tr,
    .my-points-table td {
        display: block;
        width: 100%;
    }

    .my-points-table tr {
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .my-points-table td {
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 0;
        border-bottom: 0;
        text-align: left;
    }

    .my-points-table td::before {
        color: #667085;
        font-size: 12px;
        font-weight: 800;
        content: attr(data-label);
    }

    .my-points-table .empty-board {
        display: block;
        padding: 18px 10px;
        text-align: center;
    }

    .my-points-table .empty-board::before {
        content: "";
    }

    .admin-mall-order-table {
        display: grid;
        gap: 8px;
        border-top: 0;
        font-size: 13px;
        white-space: normal;
    }

    .admin-mall-order-table thead {
        display: none;
    }

    .admin-mall-order-table tbody,
    .admin-mall-order-table tr,
    .admin-mall-order-table td {
        display: block;
        width: 100%;
    }

    .admin-mall-order-table tr {
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
    }

    .admin-mall-order-table td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 0;
        border-bottom: 0;
        text-align: left;
    }

    .admin-mall-order-table td::before {
        color: #667085;
        font-size: 12px;
        font-weight: 800;
        content: attr(data-label);
    }

    .admin-mall-order-table .empty-board {
        display: block;
        padding: 18px 10px;
        text-align: center;
    }

    .admin-mall-order-table .empty-board::before {
        content: "";
    }

    .point-rules-page {
        gap: 18px;
    }

    .point-rules-intro {
        padding: 20px;
    }

    .point-rules-intro h2 {
        font-size: 22px;
    }

    .point-rules-intro p:last-child {
        font-size: 15px;
        line-height: 1.7;
    }

    .point-rule-sections {
        gap: 16px;
    }

    .point-rule-head {
        display: grid;
        gap: 6px;
        padding: 15px 16px;
    }

    .point-rule-head h2 {
        font-size: 18px;
    }

    .point-rule-head p {
        font-size: 13px;
    }

    .point-rule-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 14px 16px;
    }

    .point-rule-row strong {
        justify-self: start;
        min-height: 26px;
        font-size: 13px;
    }

    .point-rule-row span {
        font-size: 14px;
        line-height: 1.65;
    }

    .school-rules-page {
        gap: 20px;
    }

    .school-rules-title {
        padding-bottom: 16px;
        text-align: left;
    }

    .school-rules-title h1 {
        font-size: 23px;
    }

    .school-rules-body {
        gap: 26px;
    }

    .school-rule-chapter {
        gap: 14px;
    }

    .school-rule-chapter h2 {
        font-size: 16px;
    }

    .school-rule-chapter article {
        padding-left: 10px;
    }

    .school-rule-chapter h3 {
        font-size: 16px;
    }

    .school-rule-chapter p,
    .school-rule-chapter li {
        font-size: 14px;
        line-height: 1.75;
    }

    .rule-example-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .rule-example-grid div {
        padding: 13px;
    }

    .rule-order {
        text-align: left;
    }

    .points-guide-page,
    .discipline-awards-page {
        gap: 16px;
    }

    .points-guide-page > .muted,
    .discipline-awards-page > .muted {
        font-size: 14px;
        line-height: 1.65;
    }

    .points-guide-summary,
    .discipline-awards-lead,
    .award-flow ol {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .points-guide-summary article,
    .discipline-awards-lead article,
    .points-guide-note,
    .award-flow {
        padding: 16px;
    }

    .points-guide-summary h2,
    .discipline-awards-lead h2,
    .award-flow h2 {
        font-size: 17px;
    }

    .points-guide-summary p,
    .discipline-awards-lead p,
    .points-guide-note p,
    .award-flow span {
        font-size: 14px;
        line-height: 1.65;
    }

    .points-guide-note {
        display: grid;
        gap: 12px;
    }

    .points-guide-note .button {
        width: 100%;
    }

    .discipline-rule-details summary {
        min-height: 42px;
        font-size: 14px;
    }

    .admissions-page {
        gap: 20px;
    }

    .admissions-hero {
        padding: 22px 18px;
    }

    .admissions-hero h2 {
        font-size: 23px;
        line-height: 1.45;
    }

    .admissions-hero p:last-child {
        font-size: 15px;
        line-height: 1.7;
    }

    .admissions-section {
        gap: 14px;
    }

    .admissions-section .section-title-row {
        align-items: flex-start;
        gap: 4px;
    }

    .admissions-note {
        padding: 14px 15px;
        font-size: 14px;
    }

    .admissions-hall-grid,
    .admissions-criteria {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admissions-hall-card {
        display: grid;
        grid-template-columns: minmax(92px, .9fr) minmax(0, 1.3fr);
        align-items: stretch;
        border-top-width: 0;
        border-left: 4px solid var(--green);
    }

    .admissions-hall-card.blue {
        border-left-color: #2c5282;
    }

    .admissions-hall-card.gold {
        border-left-color: #b7791f;
    }

    .admissions-hall-card.green {
        border-left-color: #276749;
    }

    .admissions-hall-card h3 {
        display: grid;
        align-content: center;
        padding: 14px 12px 2px;
        font-size: 18px;
        line-height: 1.25;
    }

    .admissions-hall-card > span {
        grid-column: 1;
        padding: 0 12px 14px;
        font-size: 12px;
    }

    .admissions-hall-card dl {
        grid-column: 2;
        grid-row: 1 / span 2;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .admissions-hall-card dl div {
        padding: 9px 12px;
    }

    .admissions-hall-card dt {
        font-size: 13px;
    }

    .admissions-hall-card dd {
        font-size: 16px;
    }

    .admissions-total {
        justify-content: flex-start;
        padding-top: 4px;
    }

    .admissions-total strong {
        font-size: 21px;
    }

    .admissions-criteria article {
        padding: 17px;
    }

    .admissions-criteria strong {
        font-size: 20px;
    }

    .admissions-criteria h3 {
        margin: 4px 0 6px;
        font-size: 18px;
    }

    .admissions-criteria p {
        font-size: 14px;
        line-height: 1.65;
    }

    .admissions-process article {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 9px;
        padding: 11px 0;
    }

    .admissions-process article > div {
        border: 0;
        gap: 2px;
    }

    .admissions-process article > div strong {
        font-size: 17px;
    }

    .admissions-process article > div span {
        font-size: 11px;
    }

    .admissions-process ol {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0;
    }

    .admissions-process li {
        width: auto;
        gap: 5px;
        padding: 4px 8px 4px 5px;
        color: #344054;
        background: #f8fafc;
        border: 1px solid #dbe1e8;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
    }

    .admissions-process li + li {
        margin-left: 0;
    }

    .admissions-process li + li::after {
        display: none;
    }

    .admissions-process li::before {
        display: inline-grid;
        width: 19px;
        height: 19px;
        font-size: 10px;
    }

    .admissions-closing {
        display: grid;
        padding: 22px 18px;
        gap: 12px;
    }

    .admissions-closing div {
        gap: 9px;
    }

    .admissions-closing strong {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.55;
    }

    .admissions-closing span {
        font-size: 13px;
        line-height: 1.65;
    }

    .admissions-closing .button {
        width: 100%;
        padding-inline: 18px;
    }

    .admin-point-rules-page {
        gap: 11px;
    }

    .admin-point-rules-page h1 {
        font-size: 25px;
    }

    .admin-point-rules-page > .muted {
        font-size: 13px;
        line-height: 1.6;
    }

    .admin-point-rules-page .point-rule-admin-sections {
        margin-top: 4px;
    }

    .point-rule-admin-head {
        display: grid;
        padding: 0 0 10px;
    }

    .point-rule-admin-head h2 {
        font-size: 18px;
    }

    .point-rule-admin-row,
    .point-rule-inline-add-form {
        grid-template-columns: minmax(82px, .55fr) minmax(0, 1fr) 42px;
        gap: 8px;
        align-items: end;
    }

    .point-rule-admin-row {
        padding: 10px 0;
    }

    .point-rule-admin-row .rule-text-field,
    .point-rule-inline-add-form .rule-text-field {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .point-rule-admin-row label:not(.rule-text-field):first-of-type,
    .point-rule-inline-add-form label:not(.rule-text-field):first-of-type {
        grid-column: 1;
    }

    .point-rule-admin-row .checkbox-field,
    .point-rule-inline-add-form .checkbox-field {
        grid-column: 2;
        min-height: 34px;
        align-self: end;
        padding-top: 0;
    }

    .point-rule-admin-row input,
    .point-rule-admin-row textarea,
    .point-rule-inline-add-form input,
    .point-rule-inline-add-form textarea {
        padding: 7px 9px;
        font-size: 13px;
    }

    .point-rule-admin-row textarea,
    .point-rule-inline-add-form textarea {
        min-height: 38px;
    }

    .point-rule-admin-row .icon-button {
        grid-column: 3;
        justify-self: end;
    }

    .point-rule-inline-add {
        padding-top: 10px;
    }

    .point-rule-inline-add-title {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .point-rule-inline-add-form button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 34px;
        padding: 7px 10px;
    }

    .admin-hall-activities-page {
        gap: 11px;
    }

    .admin-hall-activities-page h1 {
        font-size: 25px;
    }

    .admin-hall-activities-page > .muted {
        font-size: 13px;
        line-height: 1.6;
    }

    .admin-hall-activity-row,
    .admin-hall-activity-add {
        gap: 10px;
        padding: 14px 0;
    }

    .admin-hall-activity-add h2 {
        font-size: 19px;
    }

    .admin-hall-activity-main,
    .admin-hall-activity-detail {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .admin-hall-activity-main .icon-button {
        justify-self: end;
    }

    .admin-hall-activity-row input,
    .admin-hall-activity-row select,
    .admin-hall-activity-row textarea,
    .admin-hall-activity-add input,
    .admin-hall-activity-add select,
    .admin-hall-activity-add textarea {
        min-height: 36px;
        font-size: 13px;
    }

    .points-assign-panel,
    .points-history-panel {
        padding: 15px;
    }

    .points-assign-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .points-reason-field {
        grid-column: auto;
    }

    .points-assign-form button {
        width: 100%;
    }

    .points-bulk-form button,
    .points-bulk-save-form .button,
    .points-bulk-save-form button {
        width: 100%;
    }

    .account-detail-head {
        flex-direction: column;
    }

    .account-danger-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .account-danger-actions form {
        flex: 1 1 0;
    }

    .account-danger-actions button {
        width: 100%;
        padding-inline: 8px;
        font-size: 12px;
    }

    .profile-manage-card {
        padding: 24px 18px 28px;
    }

    .profile-manage-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-manage-head h1 {
        font-size: 22px;
    }

    .profile-manage-head p {
        font-size: 15px;
    }

    .profile-form-actions {
        flex-direction: row;
    }

    .profile-form-actions button {
        flex: 1 1 0;
        min-width: 0;
    }

    .profile-photo-frame {
        width: 150px;
        height: 188px;
    }

    .council-intro {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        border-left-width: 3px;
    }

    .council-mark {
        width: 42px;
        height: 42px;
        border-bottom-width: 3px;
        font-size: 24px;
    }

    .council-page {
        gap: 18px;
    }

    .council-intro h2 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .council-intro p:last-child {
        font-size: 14px;
        line-height: 1.65;
    }

    .council-role-grid {
        gap: 10px;
    }

    .council-role-grid article {
        padding: 16px;
        border-top-width: 2px;
    }

    .council-role-grid span {
        font-size: 17px;
    }

    .council-role-grid h3 {
        margin: 5px 0 9px;
        font-size: 17px;
    }

    .council-role-grid ul {
        gap: 7px;
    }

    .council-role-grid li {
        padding-left: 14px;
        font-size: 13px;
        line-height: 1.45;
    }

    .council-role-grid li::before {
        width: 5px;
        height: 5px;
    }

    .council-principles h2 {
        padding: 15px 16px;
        font-size: 17px;
    }

    .council-principles {
        grid-template-columns: 1fr;
    }

    .council-principles div {
        gap: 3px;
        padding: 13px 16px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .council-principles strong {
        font-size: 15px;
    }

    .council-principles span {
        font-size: 13px;
        line-height: 1.45;
    }

    .hall-edit-photo {
        align-items: stretch;
        flex-direction: column;
    }

    .main-visual,
    .main-copy {
        min-height: 560px;
    }

    .main-ribbon {
        align-items: center;
        flex-direction: column;
        gap: 2px;
    }

    .main-popups {
        flex-direction: column;
        margin-top: -96px;
    }

    .board-table {
        font-size: 13px;
    }

    .compact-user-table {
        display: table;
        width: 100%;
        table-layout: fixed;
        overflow: visible;
        white-space: normal;
        font-size: 13px;
    }

    .compact-user-table th,
    .compact-user-table td {
        white-space: normal;
        word-break: keep-all;
    }

    .compact-user-table th:nth-child(1),
    .compact-user-table td:nth-child(1) {
        width: 38px;
    }

    .compact-user-table th:nth-child(5),
    .compact-user-table td:nth-child(5) {
        width: 72px;
    }

    .compact-user-table th:nth-child(6),
    .compact-user-table td:nth-child(6) {
        width: 72px;
    }

    .compact-user-table th:nth-child(7),
    .compact-user-table td:nth-child(7) {
        width: 70px;
    }

    .compact-user-table .role-badge {
        padding: 4px 7px;
        font-size: 12px;
    }

    .compact-user-table .account-status-badge {
        min-width: 0;
        padding: 3px 6px;
        font-size: 10px;
    }

    .compact-actions {
        gap: 4px;
    }

    .compact-actions .icon-button {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .board-table th,
    .board-table td {
        padding: 10px 8px;
    }

    .admin-user-table th:nth-child(4),
    .admin-user-table td:nth-child(4) {
        display: none;
    }

    .board-table-wrap {
        max-width: 100%;
        margin-top: 6px;
        overflow-x: auto;
    }

    .public-board-table {
        width: 100%;
        min-width: 680px;
        table-layout: fixed;
    }

    .public-board-table th,
    .public-board-table td {
        font-size: 13px;
    }

    .public-board-table .col-no {
        width: 42px;
    }

    .public-board-table .col-file {
        width: 84px;
    }

    .public-board-table .col-date {
        width: 92px;
    }

    .public-board-table .col-views {
        display: table-cell;
        width: 54px;
    }

    .public-board-table .col-manage {
        width: 86px;
    }

    .public-board-table .board-title-cell {
        width: 260px;
        white-space: nowrap;
    }

    .public-board-table .board-title-link {
        font-size: 13px;
        white-space: nowrap;
    }

    .public-board-table .file-download-link {
        gap: 3px;
        font-size: 12px;
    }

    .public-board-table .file-download-link span {
        font-size: 16px;
    }

    .board-row-hide button,
    .board-row-delete button {
        padding: 4px 5px;
        font-size: 12px;
    }

    .admin-row-actions,
    .hall-admin-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .admin-row-actions .button,
    .admin-row-actions button,
    .hall-admin-actions .button,
    .hall-admin-actions button {
        width: 100%;
    }

    .board-tools,
    .board-search,
    .board-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .board-search input,
    .board-search select {
        width: 100%;
    }

    .post-meta {
        grid-template-columns: 1fr;
    }

    .post-meta div {
        border-right: 0;
        border-bottom: 1px solid #e5e9f0;
    }

    .post-meta div:last-child {
        border-bottom: 0;
    }

    .post-body {
        min-height: 120px;
        padding: 22px 0 30px;
        font-size: 16px;
        line-height: 1.72;
    }

    .post-body p,
    .post-body div {
        margin-bottom: 6px;
    }

    .post-body p:has(> br:only-child),
    .post-body div:has(> br:only-child) {
        min-height: 0.55em;
        margin-bottom: 2px;
    }

    .post-detail-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .post-manage-actions {
        justify-content: flex-end;
    }

    .hall-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 18px 0 24px;
    }

    .hall-tabs button {
        min-height: 44px;
        padding: 8px 6px;
        border-right: 1px solid #cfd6df;
        border-bottom: 0;
        font-size: 13px;
        line-height: 1.25;
        word-break: keep-all;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 10px;
    }

    .section-title-row h2 {
        font-size: 20px;
    }

    .hall-org-chart {
        overflow: visible;
        padding: 14px 0 4px;
    }

    .org-root {
        width: min(220px, 78%);
        padding: 13px 14px;
        border-radius: 3px;
    }

    .org-root strong {
        font-size: 17px;
    }

    .org-root span {
        font-size: 11px;
    }

    .org-trunk {
        display: block;
        height: 24px;
        margin-top: 5px;
    }

    .org-split {
        display: block;
        width: calc(100% - 44px);
        height: 24px;
        border-top-width: 1px;
    }

    .org-split span {
        display: block;
        height: 24px;
    }

    .org-branches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        min-width: 0;
    }

    .org-branch {
        gap: 0;
        padding: 0;
        border: 0;
    }

    .org-hall-chief,
    .org-sub-unit,
    .org-members {
        width: 100%;
    }

    .org-hall-chief {
        gap: 4px;
        padding: 10px 4px;
        border-radius: 3px;
        box-shadow: 0 4px 10px rgba(31, 41, 55, .12);
    }

    .org-hall-chief::after {
        display: block;
        height: 18px;
        margin: 10px auto -10px;
    }

    .org-hall-chief strong {
        font-size: 13px;
    }

    .org-hall-chief span {
        font-size: 10px;
    }

    .org-sub-unit {
        gap: 4px;
        padding: 10px 4px;
        border-radius: 3px;
    }

    .org-sub-unit::after {
        display: block;
        height: 16px;
        margin: 7px auto -7px;
    }

    .org-sub-unit strong {
        font-size: 12px;
    }

    .org-sub-unit span {
        font-size: 10px;
    }

    .org-members {
        padding: 8px 4px;
        border-radius: 3px;
        font-size: 11px;
    }

    .calendar-event-form {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .calendar-event-form label {
        font-size: 13px;
    }

    .calendar-event-form input,
    .calendar-event-form select,
    .calendar-event-form button {
        height: 34px;
        min-height: 34px;
    }

    .calendar {
        border-radius: 3px;
    }

    .calendar-head {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        padding: 10px;
        font-size: 15px;
    }

    .calendar-head a {
        min-height: 30px;
    }

    .calendar-head > a:not(.calendar-head-title) {
        font-size: 26px;
    }

    .calendar-week span {
        padding: 7px 2px;
        font-size: 12px;
    }

    .calendar-days > div {
        min-height: 44px;
        padding: 5px 3px;
    }

    .calendar-days strong {
        font-size: 12px;
    }

    .calendar-day-cell.has-events {
        background: #f8fbff;
    }

    .calendar-day-cell.has-events strong {
        color: var(--green);
        font-weight: 900;
    }

    .calendar-days .calendar-event {
        display: none;
    }

    .calendar-event-count {
        display: inline-grid;
        place-items: center;
        min-width: 17px;
        height: 17px;
        margin: 5px auto 0;
        color: white;
        background: var(--green);
        border-radius: 999px;
        font-size: 10px;
        font-style: normal;
        font-weight: 800;
    }

    .calendar-mobile-list {
        display: grid;
        gap: 8px;
    }

    .calendar-mobile-list h2 {
        margin: 2px 0 4px;
        color: #1f2937;
        font-size: 17px;
    }

    .calendar-mobile-list p {
        margin: 0;
        padding: 13px;
        color: var(--muted);
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 4px;
        font-size: 13px;
    }

    .calendar-list-item {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        padding: 10px;
        background: white;
        border: 1px solid var(--line);
        border-left: 3px solid #60a5fa;
        border-radius: 4px;
    }

    .calendar-list-item.important {
        border-left-color: #ef4444;
    }

    .calendar-list-item.check {
        border-left-color: #22c55e;
    }

    .calendar-list-item time {
        color: #667085;
        font-size: 12px;
        font-weight: 800;
    }

    .calendar-list-item span {
        color: #1f2937;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
    }

    .calendar-list-item form {
        margin: 0;
    }

    .calendar-list-item button {
        min-height: 28px;
        padding: 4px 7px;
        color: #98a2b3;
        background: transparent;
        font-size: 12px;
    }

    .write-page {
        max-width: none;
    }

    .editor-toolbar select {
        flex: 1 1 120px;
    }

    .write-actions {
        flex-direction: column-reverse;
    }

    .write-actions .button,
    .write-actions button {
        width: 100%;
    }

    .admin-create-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .admin-create-actions .button,
    .admin-create-actions button,
    .form-actions .button,
    .form-actions button {
        width: 100%;
    }

    .profile-password-form button {
        justify-self: stretch;
    }

    .main-copy h1 {
        font-size: 34px;
    }
}

/* Final location layout override: keep the guide page image as a clean full-width banner. */
.location-page-polished .location-visual-card {
    position: relative;
    display: block;
    grid-template-columns: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 430px;
    overflow: hidden;
    background: #eef2f5;
    border: 1px solid #e1e6ee;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.location-page-polished .location-visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-page-polished .location-visual-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: white;
    background: rgba(20, 24, 32, .74);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.location-page-polished .location-visual-caption span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 900;
}

.location-page-polished .location-visual-caption strong {
    color: var(--gold);
    font-size: 14px;
    text-align: right;
}

.location-page-polished .location-note-panel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.location-page-polished .location-note-panel .location-band-link {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .location-page-polished .location-visual-card {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .location-page-polished .location-note-panel {
        grid-template-columns: 1fr;
    }

    .location-page-polished .location-note-panel .location-band-link {
        width: fit-content;
    }
}

@media (max-width: 560px) {
    .location-page-polished .location-visual-caption {
        position: static;
        display: grid;
        gap: 3px;
        color: var(--green);
        background: white;
        border-left: 0;
        border-top: 4px solid var(--gold);
        border-radius: 0;
    }

    .location-page-polished .location-visual-caption strong {
        color: #4b5563;
        text-align: left;
    }
}

.location-page-polished {
    gap: 22px;
}

.location-lead-panel {
    display: grid;
    gap: 10px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(26, 67, 49, .08), rgba(197, 168, 105, .12)),
        #fbfcfd;
    border: 1px solid #e6e9ef;
    border-left: 4px solid var(--green);
    border-radius: 4px;
}

.location-lead-panel .eyebrow {
    margin: 0;
    color: var(--gold);
}

.location-lead-panel h1 {
    margin: 0;
    color: var(--green);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.location-lead-panel h1 span {
    color: var(--gold);
    font-size: 18px;
}

.location-lead-panel p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    word-break: keep-all;
}

.location-lead-panel strong {
    color: var(--green);
}

.location-visual-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr);
    gap: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #e1e6ee;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.location-photo-frame {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 10;
    min-height: 330px;
    margin: 0;
    overflow: hidden;
    background: #eef2f5;
}

.location-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-photo-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, .04), rgba(26, 67, 49, .12));
    pointer-events: none;
}

.location-quick-panel {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 32px);
    color: white;
    background:
        linear-gradient(180deg, rgba(26, 67, 49, .96), rgba(22, 54, 41, .98)),
        var(--green);
    border-left: 4px solid var(--gold);
}

.location-label {
    width: fit-content;
    padding: 4px 8px;
    color: var(--gold);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.location-quick-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.12;
}

.location-quick-panel dl {
    display: grid;
    gap: 13px;
    margin: 0;
}

.location-quick-panel dl div {
    display: grid;
    gap: 4px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.location-quick-panel dt {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.location-quick-panel dd {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    word-break: keep-all;
}

.location-band-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 9px 14px;
    color: #17211a;
    background: var(--gold);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.location-page-polished .location-info-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 16px;
}

.location-page-polished .location-info-card {
    padding: 22px;
    box-shadow: none;
}

.location-page-polished .location-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-note-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 20px;
    background: #f8faf9;
    border: 1px solid #e6e9ef;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.location-note-panel strong {
    color: var(--green);
    font-size: 16px;
    white-space: nowrap;
}

.location-note-panel p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    word-break: keep-all;
}

@media (max-width: 900px) {
    .location-visual-card,
    .location-page-polished .location-info-grid,
    .location-note-panel {
        grid-template-columns: 1fr;
    }

    .location-photo-frame {
        min-height: 260px;
    }

    .location-quick-panel {
        border-left: 0;
        border-top: 4px solid var(--gold);
    }

    .location-page-polished .location-contact-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .location-lead-panel,
    .location-page-polished .location-info-card,
    .location-note-panel {
        padding: 16px;
    }

    .location-photo-frame {
        min-height: 210px;
        aspect-ratio: 4 / 3;
    }

    .location-quick-panel {
        padding: 18px;
    }
}

.history-page-simple {
    display: grid;
    gap: 24px;
}

.history-simple-head {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.history-simple-head h1 {
    margin: 0;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.history-simple-head h1 span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 18px;
}

.history-simple-head p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    word-break: keep-all;
}

.history-simple-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-top: 2px solid var(--green);
}

.history-simple-table tr {
    border-bottom: 1px solid #e6e9ef;
}

.history-simple-table th,
.history-simple-table td {
    padding: 18px 16px;
    vertical-align: top;
}

.history-simple-table th {
    width: 136px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.history-simple-table td {
    display: grid;
    gap: 5px;
}

.history-simple-table strong {
    color: #202832;
    font-size: 17px;
}

.history-simple-table span {
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}

@media (max-width: 560px) {
    .history-simple-head h1 span {
        display: block;
        margin: 4px 0 0;
    }

    .history-simple-table th,
    .history-simple-table td {
        display: block;
        width: 100%;
        padding: 12px 10px;
    }

    .history-simple-table th {
        color: #8a6a24;
        font-size: 15px;
        padding-bottom: 0;
    }
}

.location-page-polished .location-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-page-polished .location-apply-card {
    background:
        linear-gradient(135deg, rgba(26, 67, 49, .05), rgba(197, 168, 105, .12)),
        #ffffff;
    border-left: 4px solid var(--gold);
}

.location-page-polished .location-apply-card p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    word-break: keep-all;
}

.location-page-polished .location-apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 9px 14px;
    color: white;
    background: var(--green);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.location-page-polished .location-apply-link:hover {
    background: var(--green-2);
}

@media (max-width: 900px) {
    .location-page-polished .location-info-grid {
        grid-template-columns: 1fr;
    }
}

.location-page-polished .location-visual-card {
    position: relative;
    display: block;
    grid-template-columns: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 430px;
    overflow: hidden;
    background: #eef2f5;
    border: 1px solid #e1e6ee;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.location-page-polished .location-visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-page-polished .location-visual-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: white;
    background: rgba(20, 24, 32, .74);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.location-page-polished .location-visual-caption span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 900;
}

.location-page-polished .location-visual-caption strong {
    color: var(--gold);
    font-size: 14px;
    text-align: right;
}

.location-page-polished .location-note-panel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.location-page-polished .location-note-panel .location-band-link {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .location-page-polished .location-visual-card {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .location-page-polished .location-note-panel {
        grid-template-columns: 1fr;
    }

    .location-page-polished .location-note-panel .location-band-link {
        width: fit-content;
    }
}

@media (max-width: 560px) {
    .location-page-polished .location-visual-caption {
        position: static;
        display: grid;
        gap: 3px;
        color: var(--green);
        background: white;
        border-left: 0;
        border-top: 4px solid var(--gold);
        border-radius: 0;
    }

    .location-page-polished .location-visual-caption strong {
        color: #4b5563;
        text-align: left;
    }
}
