/* Keep the closing artwork unchanged except for the explicit historical-order route. */
#orders:target { display: block; }
body:has(#orders:target) > .closing-page,
body.history-open > .closing-page { display: none; }
.history-page { box-sizing: border-box; max-width: 1040px; margin: 0 auto; padding: 24px 28px 48px; color: #203c34; font: 16px/1.65 Arial, "Microsoft YaHei", sans-serif; overflow-wrap: anywhere; }
.history-page *, .history-page *::before, .history-page *::after { box-sizing: border-box; }
.history-page a { color: #235f4d; text-underline-offset: 3px; }
.history-nav, .history-toolbar, .history-dialog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.history-nav { padding-bottom: 22px; border-bottom: 1px solid #d4dfd5; }
.history-eyebrow { font-size: 14px; color: #587565; margin: 28px 0 4px; }
.history-page h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
.history-page h2 { font-size: 20px; margin: 0; }
.history-toolbar { justify-content: flex-start; margin: 22px 0 12px; }
.history-page button { font: inherit; color: #fff; background: #285d49; border: 1px solid #285d49; border-radius: 6px; padding: 9px 15px; min-height: 44px; cursor: pointer; }
.history-page button:disabled { opacity: .6; cursor: wait; }
.history-page :focus-visible { outline: 3px solid #a4731a; outline-offset: 3px; }
.history-page [hidden] { display: none; }
.history-order { background: #fff; padding: 22px; margin: 18px 0; border: 1px solid #d4dfd5; border-radius: 10px; }
.history-order-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.history-tag { background: #e9f1e9; border-radius: 4px; padding: 3px 9px; align-self: flex-start; }
.history-items { list-style: none; padding: 0; }
.history-items li { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.history-items img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; }
.history-page dl { margin: 18px 0; }
.history-page dt { color: #657b70; font-size: 14px; }
.history-page dd { margin: 0 0 10px; white-space: pre-wrap; }
.history-page details { margin-top: 18px; }
.history-page summary { cursor: pointer; min-height: 36px; }
.history-card { white-space: pre-wrap; background: #f6f8f1; padding: 16px; border-radius: 6px; }
.history-support { margin-top: 28px; border-top: 1px solid #d4dfd5; padding-top: 20px; font-size: 14px; color: #5d7266; }
.history-page dialog { color: inherit; border: 1px solid #d4dfd5; border-radius: 10px; padding: 22px; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; }
.history-page dialog::backdrop { background: #142d2480; }
.history-events { padding-left: 24px; }
.history-events li { margin: 18px 0; }
.history-events time { display: block; color: #657b70; font-size: 14px; }
@media (max-width: 600px) { .history-page { padding: 18px 16px 32px; } .history-page h1 { font-size: 26px; } .history-order { padding: 16px; } .history-page dialog { padding: 16px; } }
