.advent-calendar {
    --fir: #163f36;
    --gold: #e9c88c;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f5ef;
    box-shadow: 0 12px 35px #173e3510;
    color: #294a42;
}
.advent-hero {
    position: relative;
    min-height: 205px;
    padding: 32px 38px;
    background: var(--fir);
    color: #fff;
    overflow: hidden;
}
.advent-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 70%;
}
.advent-eyebrow {
    display: block;
    letter-spacing: 0.17em;
    font-size: 11px;
    font-weight: 700;
    color: #e9c88c;
    text-transform: uppercase;
}
.advent-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #fff;
    font-size: 38px;
    font-weight: 400;
    margin: 10px 0;
}
.advent-hero p {
    font-size: 15px;
    color: #d5e4dc;
    margin-bottom: 17px;
}
.advent-today {
    display: inline-block;
    color: #f4d79f;
    font-size: 13px;
}
.advent-forest {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36%;
    height: 95%;
}
.advent-board-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 24px 28px 16px;
    font-size: 14px;
}
.advent-board-head small {
    color: #65766d;
}
.advent-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    padding: 0 28px 25px;
}
.advent-door {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    border: 1px solid #b7c6b766;
    border-radius: 7px;
    background: #e0e7da;
    color: #315043;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    isolation: isolate;
}
.advent-door:before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid currentColor;
    opacity: 0.2;
    border-radius: 3px;
    pointer-events: none;
}
.advent-door:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px #1c3c3326;
}
.advent-door:focus-visible {
    outline: 3px solid #727cf5;
    outline-offset: 3px;
}
.advent-door:disabled {
    cursor: default;
    opacity: 1;
}
.advent-door-number {
    font-family: Georgia, serif;
    font-size: 39px;
    line-height: 1.2;
}
.advent-door-caption {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}
.advent-door-star {
    position: absolute;
    left: 15px;
    top: 11px;
    font-size: 16px;
    opacity: 0.6;
}
.advent-tone-1 {
    background: #7d343d;
    color: #fae9cb;
    border-color: #7d343d;
}
.advent-tone-2 {
    background: #f0e5d1;
    color: #705d3c;
}
.advent-tone-3 {
    background: #2d4f48;
    color: #eedeb7;
}
.advent-tone-4 {
    background: #33495b;
    color: #e8e9dc;
}
.advent-door.is-past {
    filter: saturate(0.45);
    background: #e9e8e0;
    color: #758078;
    border-color: #d3d9cf;
}
.advent-door.is-today {
    background: #dcb775;
    color: #263e32;
    border: 2px solid #ac7b2a;
    box-shadow: 0 0 0 3px #e5c78c66;
}
.advent-door.is-today .advent-door-caption {
    font-weight: 800;
}
.advent-opened {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 14px;
}
.advent-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 28px;
    border-top: 1px solid #dbe1d6;
    color: #64756a;
    font-size: 12px;
}
.advent-message:not(:empty) {
    background: #ffe3e6;
    color: #9d223b;
    padding: 15px;
    border-radius: 5px;
}
.advent-dialog {
    padding: 0;
    border: 0;
    border-radius: 14px;
    width: min(640px, calc(100vw - 28px));
    max-height: 90vh;
    overflow: auto;
    color: #4b5c69;
    background: #fff;
    box-shadow: 0 20px 100px #102e4455;
}
.advent-dialog::backdrop {
    background: #172c4b88;
}
.advent-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ffffffd9;
    color: #294a42;
    font-size: 25px;
    z-index: 2;
    line-height: 1;
}
.advent-reward-head {
    text-align: center;
    background: #163f36;
    color: #edf4ee;
    padding: 35px 40px 24px;
}
.advent-reward-head h2 {
    font-size: 22px;
    color: #fff;
    margin: 9px 0;
}
.advent-reward-head p {
    margin: 0;
    color: #d0dfd2;
}
.advent-reward-value {
    font-family: Georgia, serif;
    font-size: 54px;
    color: #f0d29a;
    margin-top: 12px;
}
.advent-reward-body {
    padding: 25px 30px;
}
.advent-reward-body h3 {
    font-size: 16px;
}
.advent-description {
    white-space: pre-wrap;
}
.advent-code {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px dashed #a8b9b0;
    background: #f5f8f5;
    padding: 14px;
    border-radius: 7px;
    margin: 18px 0;
}
.advent-code code {
    overflow-wrap: anywhere;
    color: #234b3e;
    font-size: 14px;
}
.advent-code button {
    flex-shrink: 0;
}
.advent-conditions {
    padding-left: 19px;
    font-size: 13px;
    line-height: 1.8;
}
.advent-note {
    padding: 14px;
    background: #f1f3f7;
    border-radius: 6px;
}
.advent-copy-status {
    margin: 12px 0 0;
    font-size: 13px;
    min-height: 1em;
}
.advent-admin-settings {
    padding: 24px;
}
.advent-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.advent-form-grid label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
.advent-form-grid input:not([type='checkbox']),
.advent-form-grid select,
.advent-form-grid textarea {
    width: 100%;
}
.advent-span-2 {
    grid-column: 1/-1;
}
.advent-admin-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.advent-admin-day {
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid #e1e5ed;
    border-radius: 7px;
    padding: 15px;
    background: #fff;
    color: #657181;
    min-height: 140px;
}
.advent-admin-day:hover {
    border-color: #727cf5;
}
.advent-admin-day strong {
    font-size: 24px;
    color: #465574;
}
.advent-admin-day .advent-admin-title {
    font-size: 12px;
    margin: 8px 0;
    flex: 1;
    overflow-wrap: anywhere;
}
.advent-admin-day small {
    font-size: 11px;
}
.advent-admin-day.is-configured {
    border-left: 3px solid #29a47a;
}
.advent-admin-day.is-off {
    opacity: 0.7;
}
.advent-editor {
    padding: 30px;
}
.advent-editor h2 {
    font-size: 23px;
    margin-bottom: 24px;
}
.advent-editor fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.advent-editor .advent-form-grid {
    margin-top: 18px;
}
.advent-editor .form-check {
    margin: 8px 0;
}
.advent-editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}
.advent-product-options {
    max-height: 170px;
    overflow: auto;
    border: 1px solid #dce1e9;
    border-radius: 4px;
    padding: 10px;
}
.advent-preview-dialog {
    width: min(1160px, calc(100vw - 28px));
    padding: 24px;
}
.advent-preview-label {
    font-weight: 600;
    margin: 0 35px 20px 0;
    color: #596480;
}
.advent-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.advent-toolbar .form-select {
    width: auto;
}
.advent-admin-summary {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
}
.advent-help {
    font-size: 12px;
    color: #758396;
}
.advent-editor-error {
    color: #a52b43;
    white-space: pre-wrap;
}
.advent-admin-days button:focus-visible {
    outline: 3px solid #727cf5;
    outline-offset: 2px;
}
@media (max-width: 1100px) {
    .advent-grid,
    .advent-admin-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .advent-hero h1 {
        font-size: 32px;
    }
    .advent-door {
        min-height: 105px;
    }
}
@media (max-width: 650px) {
    .advent-hero {
        padding: 27px 23px;
        min-height: 220px;
    }
    .advent-hero-copy {
        max-width: 100%;
    }
    .advent-hero h1 {
        font-size: 30px;
    }
    .advent-forest {
        opacity: 0.35;
        width: 58%;
    }
    .advent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        padding: 0 15px 20px;
    }
    .advent-door {
        min-height: 100px;
    }
    .advent-door-number {
        font-size: 34px;
    }
    .advent-board-head,
    .advent-footer {
        padding: 17px;
        flex-direction: column;
        gap: 5px;
    }
    .advent-form-grid {
        grid-template-columns: 1fr;
    }
    .advent-span-2 {
        grid-column: auto;
    }
    .advent-admin-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .advent-admin-day {
        padding: 10px;
    }
    .advent-reward-body,
    .advent-editor {
        padding: 22px;
    }
    .advent-code {
        flex-direction: column;
        align-items: stretch;
    }
    .advent-preview-dialog {
        padding: 12px;
    }
    .advent-hero p {
        font-size: 14px;
    }
    .advent-admin-settings {
        padding: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .advent-door {
        transition: none;
    }
    .advent-door:not(:disabled):hover {
        transform: none;
    }
}
