.honor-main {
    max-width: 1920px;
    padding: 32px 28px 44px;
    margin: 0 auto;
}

.honor-page[hidden],
.honor-page [hidden] {
    display: none !important;
}

#honor-section .honor-main {
    padding: 12px 0 28px;
}

.honor-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.honor-heading h1 {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.5px;
    margin: 10px 0;
}

.honor-heading h1 span {
    color: #b49570;
}
.honor-heading > div > p:last-child {
    color: var(--muted);
    font-size: 13px;
}
.honor-summary {
    display: flex;
    gap: 28px;
    padding: 17px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffffa6;
}
.honor-summary > div {
    display: grid;
    gap: 5px;
}
.honor-summary > div + div {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}
.honor-summary strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.honor-summary span {
    color: var(--muted);
    font-size: 10px;
}
.honor-notice {
    min-height: 30px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
}
.honor-workspace {
    --honor-board-height: clamp(520px, calc(100vh - 290px), 760px);
    display: grid;
    grid-template-columns: 202px minmax(0, 1fr) 286px;
    gap: 16px;
    align-items: stretch;
}
.honor-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    min-width: 0;
    height: var(--honor-board-height);
    overflow: hidden;
    box-shadow: 0 5px 20px #243e2b03;
}
.honor-panel-heading {
    padding: 22px 18px 17px;
    flex-shrink: 0;
}
.honor-panel h2 {
    margin: 9px 0 14px;
    font-size: 22px;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}
.honor-search {
    display: block;
}
.honor-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.honor-filter {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 14px 0 0;
    font-size: 10px;
    color: var(--muted);
}
.honor-filter input {
    accent-color: var(--green);
}
.honor-country-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: #c8d3c6 transparent;
}
.honor-country-button {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 1px solid transparent;
    background: none;
    color: var(--ink);
    text-align: left;
    padding: 11px 10px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}
.honor-country-button:hover {
    background: #f2f6ef;
}
.honor-country-button[aria-pressed='true'] {
    background: #e8f2ed;
    border-color: #d3e6dc;
    color: #235545;
    font-weight: 600;
}
.honor-country-count {
    flex-shrink: 0;
    font-size: 10px;
    color: #7c946c;
    font-weight: 500;
}
.honor-map-panel {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    height: var(--honor-board-height);
    border: 1px solid #d2c8b6;
    border-radius: 18px;
    isolation: isolate;
    background-color: #eeece3;
    background-image: radial-gradient(ellipse at center, #f4f3e9, #e4e4d5);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 5px #fff6;
}
.honor-map-heading {
    position: absolute;
    top: 17px;
    left: 21px;
    right: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
    z-index: 1;
}
.honor-map-caption {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #3e5a49;
}
.honor-map-caption span {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #78806a;
}
.honor-map-caption strong {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.honor-map-focus {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid #849a7e38;
    border-radius: 9px;
    background: #fbfcf5dd;
    color: #496b54;
    font-size: 10px;
    box-shadow: 0 2px 6px #6e593b08;
    transition: background 0.2s ease;
}
.honor-map-focus svg {
    height: 14px;
    width: 14px;
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
    stroke-linejoin: round;
}
.honor-map-focus:hover,
.honor-map-focus.is-needed {
    background: #eef7ec;
}
#honor-map {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}
.honor-country {
    stroke: #fafbf2;
    stroke-width: 0.65px;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 0.25s ease;
}
.honor-map-panel .map-country-outline {
    fill: none;
    stroke: #348779;
    stroke-width: 1.05px;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
}
.honor-frame {
    cursor: pointer;
    animation: honor-frame-appear 0.22s ease-out;
}
.honor-frame:focus {
    outline: none;
}
.honor-frame-border {
    fill: #7d8464;
    stroke: #576e53;
    stroke-width: 0.65px;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease;
}
.honor-frame:hover .honor-frame-border {
    fill: #366a54;
}
.honor-frame.is-selected .honor-frame-border,
.honor-frame:focus-visible .honor-frame-border {
    fill: #328679;
    stroke: #1e6a59;
    stroke-width: 0.85px;
}
.honor-frame-mat {
    fill: #faf8ee;
}
.honor-frame-fallback {
    fill: #537460;
    font-family: Georgia, serif;
    pointer-events: none;
}
.honor-frame-count {
    fill: #315b46;
}
.honor-frame-count-text {
    fill: white;
    font-weight: 600;
    pointer-events: none;
}
.honor-map-controls {
    position: absolute;
    right: 17px;
    bottom: 46px;
    display: flex;
    align-items: center;
    border-radius: 11px;
    overflow: hidden;
    background: #fffff5f0;
    border: 1px solid #b8bba477;
    box-shadow: 0 4px 14px #59463112;
}
.honor-map-controls > span {
    min-width: 48px;
    text-align: center;
    color: #70816b;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    border-right: 1px solid #dce3d4;
}
.honor-map-controls button {
    height: 36px;
    width: 34px;
    border: none;
    background: none;
    color: #345d4c;
    font-size: 19px;
    cursor: pointer;
    transition: background 0.18s ease;
}
.honor-map-controls button:hover {
    background: #e6f0e5;
}
.honor-map-hint {
    position: absolute;
    bottom: 13px;
    left: 21px;
    right: 21px;
    margin: 0;
    color: #52614e;
    font-size: 10px;
    line-height: 1.6;
    pointer-events: none;
    text-wrap: pretty;
}
.honor-muted {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
.honor-favorites .button.primary {
    width: 100%;
    justify-content: center;
    min-height: 40px;
}
.honor-note-list {
    padding: 0 14px;
    min-height: 0;
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8d3c6 transparent;
}
.honor-note-card {
    border: 1px solid #e4e9de;
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 13px;
    background: #fff;
    transition: border-color 0.2s ease;
}
.honor-note-card:hover {
    border-color: #c3d5c2;
}
.honor-note-preview {
    display: grid;
    place-items: center;
    width: 100%;
    height: 128px;
    padding: 16px;
    color: #6c7d64;
    font:
        17px Georgia,
        serif;
    background: #f2f4eb;
    border: 0;
    cursor: zoom-in;
}
.honor-note-preview:disabled {
    opacity: 1;
    cursor: default;
}
.honor-note-preview img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.honor-note-preview:not(:disabled):hover img {
    transform: scale(1.025);
}
.honor-note-body {
    padding: 14px;
}
.honor-note-body h3 {
    font-size: 14px;
    margin: 7px 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.honor-note-meta {
    font-size: 10px;
    color: var(--muted);
    margin: 7px 0;
}
.honor-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 13px;
    align-items: center;
}
.honor-favorite-choice {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    color: var(--ink);
}
.honor-favorite-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #348779;
    cursor: pointer;
}
.honor-note-card.is-favorite {
    border-color: #348779;
    box-shadow: inset 0 0 0 1px #348779;
}
.honor-picker-count {
    font-weight: 600;
}
.honor-picker #picker-message[data-state='empty'] {
    position: static;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--paper);
}
.honor-picker .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
}
.honor-star-button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 31px;
    border-radius: 7px;
    background: #f8faf5;
    font-weight: 500;
}
.honor-note-actions .text-button {
    font-size: 10px;
    color: #487958;
}
.honor-cover-badge {
    display: inline-block;
    color: #4d7559;
    background: #eaf2e7;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 9px;
}
.honor-empty {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    padding: 12px 18px;
}
.honor-private-note {
    padding: 10px 18px;
    margin-top: auto;
    font-size: 10px;
    line-height: 1.7;
    color: var(--muted);
}
.honor-picker {
    width: min(880px, calc(100vw - 32px));
    max-width: 880px;
    padding: 26px;
}
.honor-picker::backdrop {
    background: #19372c42;
    backdrop-filter: blur(5px);
}
.honor-picker > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.honor-picker .dialog-header h2 {
    font-size: 25px;
    margin: 6px 0;
}
.honor-candidate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.honor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 11px;
}
.honor-main .sr-only,
.honor-picker .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@keyframes honor-frame-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
:root[data-theme='dark'] .honor-page {
    --ink: #edf5ef;
    --muted: #b6cbbb;
    --line: #445d4d;
    --paper: #192c21;
    color: var(--ink);
}
:root[data-theme='dark'] .honor-page .eyebrow {
    color: #bed1b4;
}
:root[data-theme='dark'] .honor-country-count {
    color: #bdd5aa;
}
:root[data-theme='dark'] .honor-page .button.secondary {
    background: #294b3d;
    color: #edf5ef;
    border-color: #486556;
}
:root[data-theme='dark'] .honor-page .icon-btn {
    color: var(--ink);
}
:root[data-theme='dark'] .honor-page .icon-btn:hover {
    background: #31523f;
}
:root[data-theme='dark'] .honor-page .text-button {
    color: #c4dcbc;
}
:root[data-theme='dark'] .honor-page .dialog {
    background: var(--paper);
    color: var(--ink);
}
:root[data-theme='dark'] .honor-page .dialog .note-form {
    background: #22372b;
}
:root[data-theme='dark'] .honor-page .dialog .field-label {
    color: var(--muted);
}
:root[data-theme='dark'] .honor-page .dialog textarea {
    background: #1c3024;
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark'] .honor-panel,
:root[data-theme='dark'] .honor-note-card,
:root[data-theme='dark'] .honor-summary {
    background: #24372b;
}
:root[data-theme='dark'] .honor-note-preview {
    background: #1e2e23;
    color: #b7c7ae;
}
:root[data-theme='dark'] .honor-note-card {
    border-color: #3b4d3e;
}
:root[data-theme='dark'] .honor-map-panel {
    filter: brightness(0.85);
}
:root[data-theme='dark'] .honor-country-button:hover {
    background: #2a4233;
}
:root[data-theme='dark'] .honor-country-button[aria-pressed='true'] {
    background: #315449;
    color: #c6ebdd;
    border-color: #446756;
}
:root[data-theme='dark'] .honor-cover-badge {
    background: #344b38;
    color: #c4d8b1;
}
:root[data-theme='dark'] .honor-note-actions .text-button {
    color: #b0cfb3;
}
@media (min-width: 1700px) {
    .honor-workspace {
        grid-template-columns: 236px minmax(0, 1fr) 324px;
        gap: 20px;
    }
}
@media (max-width: 1150px) {
    .honor-main {
        padding: 26px 18px;
    }
    .honor-workspace {
        grid-template-columns: 176px minmax(0, 1fr) 246px;
        gap: 12px;
    }
    .honor-panel-heading {
        padding: 18px 12px;
    }
    .honor-map-heading {
        left: 15px;
        right: 12px;
    }
}
@media (max-width: 920px) {
    .honor-workspace {
        grid-template-columns: 182px minmax(0, 1fr);
    }
    .honor-favorites {
        grid-column: 1 / -1;
        height: auto;
    }
    .honor-note-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        max-height: none;
        flex: none;
    }
    .honor-favorites .button.primary {
        width: auto;
    }
    .honor-map-panel,
    #honor-map {
        min-height: 470px;
    }
    .honor-summary {
        gap: 18px;
        padding: 15px;
    }
    .honor-summary > div + div {
        padding-left: 18px;
    }
}
@media (max-width: 600px) {
    .honor-main {
        padding: 24px 14px;
    }
    .honor-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }
    .honor-summary {
        width: 100%;
        justify-content: space-between;
    }
    .honor-summary > div {
        flex: 1;
    }
    .honor-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .honor-country-list {
        height: 150px;
        max-height: none;
        flex: none;
    }
    .honor-countries {
        height: auto;
    }
    .honor-map-panel {
        min-height: 390px;
        height: 57vh;
    }
    #honor-map {
        min-height: 0;
        height: 100%;
    }
    .honor-note-list,
    .honor-candidate-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .honor-picker {
        padding: 18px;
    }
    .honor-map-heading {
        left: 16px;
        right: 16px;
    }
    .honor-map-caption span {
        font-size: 7px;
    }
    .honor-map-hint {
        font-size: 9px;
    }
    .honor-map-controls {
        bottom: 55px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .honor-main *,
    .honor-picker * {
        animation: none !important;
        transition: none !important;
    }
}
