:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716d;
  --paper: #fff;
  --canvas: #f4f5f1;
  --forest: #14231f;
  --green: #2b765f;
  --orange: #f27345;
  --line: #dfe4df;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box }
html { min-height: 100%; background: var(--canvas) }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas) }
button, input, select { font: inherit }
button { cursor: pointer }
a { color: inherit }
[hidden] { display: none !important }

.shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; background: var(--canvas) }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 10px; color: #fff; background: var(--forest) }
.brand { display: flex; flex: 1 1 0; align-items: center; gap: 9px; min-width: 0; color: #fff; text-decoration: none }
.brand-logo { display: block; flex: none; width: 42px; height: 42px; padding: 2px; border-radius: 7px; object-fit: contain; background: #fff }
.brand-title { overflow: hidden; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap }
.update-tag { flex: none; max-width: 126px; overflow: hidden; padding: 5px 8px; border: 1px solid #ffffff2b; border-radius: 999px; color: #cbd4d0; background: #ffffff0d; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap }
.home-site-header { padding-top: 14px; padding-bottom: 13px }

.search-wrap { position: relative; z-index: 3; margin: 8px 12px 0 }
.search-box { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 4px 14px; border: 1px solid #e2e6e1; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px #14231f0c }
.search-box svg { flex: none; color: #78827e }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px }
.search-box input::placeholder { color: #9aa39f }
.search-suggestions { position: absolute; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; border: 1px solid #dce3de; border-radius: 13px; background: #fff; box-shadow: 0 14px 36px #14231f24 }
.search-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 13px; border-top: 1px solid #edf0ed; text-decoration: none }
.search-suggestion:first-child { border-top: 0 }
.search-suggestion:hover, .search-suggestion:focus-visible { background: #f1f6f3 }
.search-suggestion span { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap }
.search-suggestion small { flex: none; color: var(--muted); font-size: 9px; font-weight: 700 }

.toolbar { position: sticky; top: 0; z-index: 2; padding: 8px 12px 7px; background: #f4f5f1e8; backdrop-filter: blur(16px) }
.filter-triggers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.filter-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #4f5c56; background: #fff; font-size: 11px; font-weight: 800 }
.filter-trigger[aria-expanded="true"] { border-color: var(--forest); color: var(--forest); background: #f9fbf8 }
.filter-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.filter-trigger svg { flex: none; transition: transform .18s }
.filter-trigger[aria-expanded="true"] svg { transform: rotate(180deg) }
.inline-filter-panel { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 8px 20px #14231f0d }
.filter-option { min-height: 30px; padding: 0 11px; border: 1px solid #e1e6e2; border-radius: 9px; color: #52605a; background: #f8faf8; font-size: 10px; font-weight: 750 }
.filter-option.active { border-color: var(--forest); color: #fff; background: var(--forest) }
.filter-trigger:focus-visible, .filter-option:focus-visible, .load-more:focus-visible, .calendar-screen button:focus-visible, .calendar-screen select:focus-visible, a:focus-visible { outline: 3px solid #d7f06c; outline-offset: 2px }

main { padding: 2px 12px 36px }
.home-heading { margin: 6px 2px 0; font-size: 16px; line-height: 1.4 }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 2px 9px }
.list-head h1, .list-head h2 { display: inline; margin: 0; font-size: 16px; letter-spacing: -.025em }
.list-head p { display: inline; margin: 0 0 0 8px; color: var(--muted); font-size: 10px }
.history-toggle { display: inline-flex; flex: none; align-items: center; gap: 5px; color: #53615b; font-size: 10px; font-weight: 750; white-space: nowrap }
.history-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--green) }
.history-toggle:has(input:disabled) { color: #8b9490 }
.search-threshold-hint { margin: 8px 2px 10px; color: var(--muted); font-size: 10px }
.sort-label { color: var(--green); font-size: 12px; font-weight: 800 }
.events { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none }
[data-home-preview-actions]:empty { display: none }
.event-row { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff }
.event-row-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; min-height: 78px; padding: 11px }
.schedule-column { --schedule-tail: 36px; grid-column: 1; display: grid; align-content: start; gap: 7px; min-width: 0 }
.schedule-date, .session-link { display: grid; grid-template-columns: minmax(0, 1fr) var(--schedule-tail); gap: 5px; align-items: baseline }
.schedule-date { color: #27322e; font-size: 11px; font-weight: 900; line-height: 1.25 }
.schedule-day, .schedule-weekday { overflow: hidden; white-space: nowrap }
.schedule-day { font-variant-numeric: tabular-nums }
.schedule-weekday { text-align: start }
.row-time { box-sizing: border-box; padding-left: calc(100% - var(--schedule-tail)); color: #1f2b27; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap }
.row-time.unknown { color: #8a938f; font-size: 9px; line-height: 1.35 }
.session-times { display: grid; gap: 5px }
.session-link { min-height: 32px; align-items: center; border-radius: 7px; text-decoration: none }
.session-link strong { font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums }
.session-link small { overflow: hidden; color: #5f6b66; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap }
.session-link:hover strong, .session-link:hover small { color: var(--green) }
.row-main-link { grid-column: 2; display: block; min-width: 0; text-decoration: none }
.same-day-sessions { margin: 16px 0; padding: 14px; border: 1px solid #b9cac1; border-radius: 12px; background: #f3f8f5 }
.same-day-sessions h2 { margin: 0 0 10px; font-size: 14px; color: var(--green) }
.same-day-session-links { display: flex; flex-wrap: wrap; gap: 8px }
.same-day-session-links a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #b9cac1; border-radius: 8px; color: var(--green); background: #fff; text-decoration: none; overflow-wrap: anywhere }
.same-day-session-links a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff }
.same-day-session-links small { font-size: 10px }
.same-day-session-links time { font-variant-numeric: tabular-nums }
.row-main { min-width: 0 }
.row-title-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0 }
.event-title { display: -webkit-box; flex: 1 1 auto; min-width: 0; overflow: hidden; margin: 0; font-size: 15px; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2 }
.status { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--green); font-size: 9px; font-weight: 850 }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #47a47f; box-shadow: 0 0 0 3px #47a47f17 }
.event-row.is-history .status { color: #747e79 }
.event-row.is-history .status::before { background: #a1aaa6; box-shadow: none }
.status-cancelled, .status-postponed { color: #9a4c31 }
.status-cancelled::before, .status-postponed::before { background: var(--orange) }
.event-subtitle { margin: 2px 0 0; color: #69736f; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; white-space: normal }
.event-meta { display: flex; align-items: center; gap: 5px; overflow: hidden; margin-top: 4px; color: #4b5752; font-size: 9px; white-space: nowrap }
.event-meta svg { flex: none; color: #8a948f }
.event-meta-text { overflow: hidden; text-overflow: ellipsis }
.event-type { flex: none; color: #78817d }
.mode-exception { flex: none; padding: 2px 5px; border-radius: 5px; color: #8b4b34; background: #fff0e9; font-size: 8px; font-weight: 800 }
.row-main-link:hover .event-title { color: var(--green) }
.event-title .event-status-badge { display: inline-block; margin-right: 6px; padding: 1px 5px; border: 1px solid #a5c9ba; border-radius: 4px; color: #235e4b; background: #eaf5ef; font-size: 11px; font-weight: 850; line-height: 1.4; letter-spacing: 0; vertical-align: 1px; white-space: nowrap }
.event-title .event-status-badge.status-cancelled { border-color: #e6aa99; color: #94341c; background: #fff0eb }
.event-title .event-status-badge.status-postponed { border-color: #e2c278; color: #78521a; background: #fff7df }
.event-title .event-status-badge.status-unknown { border-color: #bfc7c2; color: #52615a; background: #f0f3f1 }
.event-title:has(.event-status-badge) { text-wrap: wrap }
.load-more { width: 100%; min-height: 50px; margin-top: 16px; border: 1px solid #dce2dd; border-radius: 15px; color: var(--forest); background: #fff; font-size: 13px; font-weight: 850 }
.hint, .empty { margin: 10px 0; padding: 13px 14px; border: 1px solid #eadfc7; border-radius: 12px; color: #6b5b3f; background: #fff8e5; font-size: 11px }
.empty { border-color: #ced5d0; color: var(--muted); background: #fff }
.unverified-section { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--line) }
.unverified-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.unverified-card { padding: 12px 14px; border: 1px dashed #c8d0cb; border-radius: 12px; background: #fff }
.unverified-card h3 { margin: 0; font-size: 14px }
.unverified-card a { text-underline-offset: 3px }
.unverified-card p { margin: 6px 0 0; color: var(--muted); font-size: 10px }

footer { padding: 22px 14px 28px; border-top: 1px solid var(--line); color: #7c8681; font-size: 10px; line-height: 1.6; text-align: center }
footer p { margin: 0 }
.footer-meta { display: flex; justify-content: center; gap: 5px }
.footer-meta time { display: inline; font-variant-numeric: tabular-nums }
.footer-link { display: inline-block; margin-top: 5px; color: #596660; font-weight: 750; text-underline-offset: 3px }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 11px; margin-top: 5px }
.footer-links a { color: #596660; font-weight: 750; text-underline-offset: 3px }
.home-footer-release { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; margin-top: 12px; color: #8a948f; font-size: 9px; text-align: right }
.home-footer-release time, .home-footer-version { font-variant-numeric: tabular-nums; white-space: nowrap }
.home-footer-version { color: #9da6a2; font-size: 8px }

body.calendar-open { overflow: hidden }
.calendar-screen { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; width: min(100%, 720px); min-height: 100dvh; margin: 0 auto; color: var(--ink); background: var(--canvas) }
.calendar-header { display: grid; grid-row: 1; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 56px; padding: max(4px, env(safe-area-inset-top)) 8px 4px; color: #fff; background: var(--forest) }
.calendar-close, .calendar-clear { min-height: 42px; border: 0; color: inherit; background: transparent; font-weight: 800 }
.calendar-close { font-size: 30px; line-height: 1 }
.calendar-title { overflow: hidden; font-size: 15px; text-align: center; text-overflow: ellipsis; white-space: nowrap }
.calendar-clear { font-size: 11px }
.calendar-jump-panel { display: grid; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff }
.calendar-jump-panel label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 10px }
.calendar-jump-panel select { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff }
.calendar-weekdays { display: grid; grid-row: 3; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; text-align: center }
.calendar-scroll { grid-row: 4; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 24px }
.calendar-month { padding: 18px 0 5px; scroll-margin-top: 8px }
.calendar-month h2 { margin: 0 0 10px; font-size: 14px; text-align: center }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 5px }
.calendar-day, .calendar-blank { min-height: 42px }
.calendar-day { position: relative; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-variant-numeric: tabular-nums }
.calendar-day.is-weekend { color: #205b9b; background: #e8f0fa; font-weight: 800 }
.calendar-day.is-holiday { color: #b23b43; background: #fbeaec; font-weight: 800 }
.calendar-day.is-adjusted-workday { color: #8a5900; background: #fff0d4; font-weight: 800 }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px #9ab7aa }
.calendar-day.is-in-range { border-radius: 0; background: #dfede6 }
.calendar-day.is-start, .calendar-day.is-end { border-radius: 10px; color: #fff; background: var(--green); font-weight: 850 }
.calendar-instruction { grid-row: 5; min-height: 48px; margin: 0; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #fff; background: var(--forest); font-size: 11px; font-weight: 800; text-align: center }

.home-footer-description { max-width: 520px; margin: 0 auto 12px; color: var(--muted); font-size: 12px; line-height: 1.6 }

.breadcrumbs { margin: 0 0 10px; color: #68756f; font-size: 10px }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 5px; color: #9aa49f }
.breadcrumbs a { color: var(--green); text-underline-offset: 3px }

.detail-main { padding-top: 18px }
.detail-state { margin: 0 }
.event-detail { overflow: hidden; border: 1px solid #b9cac1; border-radius: 16px; background: var(--paper); box-shadow: 0 14px 36px #173f3512 }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff 55%, #edf5f0) }
.detail-title h1 { margin: 0; font-size: 21px; line-height: 1.35 }
.detail-title .status { margin: 0 }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; background: var(--line) }
.detail-row { display: grid; align-content: start; gap: 4px; min-height: 74px; padding: 12px 14px; background: var(--paper) }
.detail-row-wide { grid-column: 1 / -1 }
.detail-row dt, .detail-row dd { margin: 0 }
.detail-row dt { color: #61716b; font-size: 9px; font-weight: 700 }
.detail-row dd { color: var(--ink); font-size: 12px; font-weight: 620; line-height: 1.55 }
.entity-link { color: var(--green); font-weight: 750; text-underline-offset: 3px }
.detail-section { margin: 0; padding: 17px 18px; border-top: 1px solid var(--line) }
.detail-section h2 { margin: 0 0 8px; color: var(--green); font-size: 14px }
.detail-section p { margin: 5px 0; color: #30413b; font-size: 12px; line-height: 1.7 }
.detail-section strong { color: var(--ink); font-weight: 700 }
.detail-section .detail-empty { color: var(--muted) }
.detail-section a { color: var(--green); text-underline-offset: 3px }
.detail-link-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none }
.detail-link-tags li { border: 1px solid #d4dfd9; border-radius: 999px; background: #f7faf8; font-size: 11px }
.detail-link-tags a { display: block; padding: 7px 11px; font-weight: 750; line-height: 1; text-decoration: none }
.detail-link-tags li:hover { border-color: #a9c0b5; background: #eef5f1 }
.detail-organizers li { border-color: #bdd2c7; background: #edf6f1 }
.detail-organizer-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none }
.detail-organizer-list > li { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; min-height: 30px }
.detail-organizer-name { color: var(--ink); font-size: 12px; line-height: 1.45 }
.detail-ticket-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.detail-ticket-list > li { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-height: 32px; padding: 9px 10px; border: 1px solid #d8e2dd; border-radius: 10px; background: #f8fbf9 }
.ticket-platform { color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.35; text-decoration: none }
.ticket-detail { color: #52635d; font-size: 11px; line-height: 1.45 }
.ticket-status { margin-left: auto; padding: 4px 7px; border-radius: 999px; background: #e5f3ec; color: var(--green); font-size: 10px; font-weight: 800; line-height: 1 }
.verification-panel { border-left: 3px solid #d6a600 }
.status-unverified { color: #765400 }
.status-unverified::before { background: #d6a600 }
.home-button { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 30px; padding: 7px 10px; border: 1px solid #ffffff35; border-radius: 9px; color: #fff; background: #ffffff0d; font-size: 10px; font-weight: 750; line-height: 1; text-align: center; text-decoration: none; white-space: nowrap }
.header-actions { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap }

.personal-card-controls { display: flex; justify-content: center; min-width: 0 }
.event-row.has-personal-action .schedule-column { grid-template-columns: minmax(0, 1fr) var(--schedule-tail); gap: 5px; align-items: center }
.event-row.has-personal-action .schedule-date { grid-column: 1 / -1 }
.event-row.has-personal-action .row-time { grid-column: 2; grid-row: 2; padding-left: 0 }
.personal-card-controls.is-single { grid-column: 1; grid-row: 2; justify-content: flex-start; width: 100%; margin: 0 }
.personal-card-controls.is-single .personal-action-hint { display: none }
.personal-card-controls.is-single .personal-action,
.session-personal-action .personal-action { min-height: 27px; padding: 0 10px; font-size: 9px }
.personal-action-wrap { display: inline-flex; align-items: center; gap: 7px; min-width: 0 }
.personal-action { min-height: 29px; padding: 0 11px; border: 1px solid #b8cec3; border-radius: 999px; color: var(--green); background: #f3f8f5; font-size: 10px; font-weight: 850 }
.personal-action:hover, .personal-action:focus-visible { border-color: var(--forest); outline: 2px solid #d7f06c; outline-offset: 2px }
.personal-action.is-active { border-color: var(--forest); color: #fff; background: var(--forest) }
.personal-action.is-readonly:not(button) { cursor: default }
.personal-action-hint, .personal-state-text { color: var(--muted); font-size: 9px }
.personal-record-error { color: #9a4c31; font-size: 9px }
.personal-session-picker { width: 100%; border-top: 1px solid #edf0ed; padding-top: 7px }
.personal-session-picker summary { color: var(--green); font-size: 10px; font-weight: 850; text-align: right; cursor: pointer; list-style-position: inside }
.personal-session-list { display: grid; gap: 7px; margin-top: 8px; padding: 8px; border-radius: 10px; background: #f6f8f6 }
.personal-session-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; color: #52605a; font-size: 10px; font-weight: 750 }
.personal-detail-section { margin-top: 10px }
.event-title-main { min-width: 0; flex: 1 }
.detail-title.event-detail-title { display: flex; align-items: flex-start }
.detail-title.event-detail-title .status { flex-shrink: 0; margin-top: 0 }
.personal-detail-section .personal-action { min-height: 40px; min-width: 56px; padding: 8px 14px; font-size: 12px }
.personal-detail-section > div { display: flex; justify-content: flex-start }

.personal-page { display: grid; gap: 14px; padding-top: 14px }
.personal-page #changes-error:empty, .personal-page #recommended-state:empty, .personal-page #calendar-state:empty { display: none }
.personal-page-head { padding: 19px 18px; border: 1px solid #b9cac1; border-radius: 16px; background: var(--paper) }
.personal-page-head h1 { margin: 0; font-size: 23px }
.personal-page-head > p:last-child { margin: 8px 0 0; color: #52605a; font-size: 11px; line-height: 1.7 }
.personal-list-section { min-width: 0 }
.personal-event-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none }
.personal-event-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff }
.personal-event-card > a { display: grid; gap: 3px; min-width: 0; text-decoration: none }
.personal-event-card time { color: var(--green); font-size: 10px; font-weight: 850; font-variant-numeric: tabular-nums }
.personal-event-card strong, .personal-event-card span, .personal-event-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.personal-event-card strong { font-size: 14px }
.personal-event-card span { color: #69736f; font-size: 10px }
.personal-event-card small { color: var(--muted); font-size: 9px }
.personal-event-card-action { display: grid; justify-items: end; gap: 6px }
.personal-event-card-action .personal-record-state { color: var(--muted); font-size: 9px }
.personal-event-card .personal-event-title { white-space: normal; overflow-wrap: anywhere }
.personal-event-card .personal-event-status { display: inline-block; margin-right: 6px; padding: 2px 6px; border: 1px solid #e6aa99; border-radius: 4px; color: #94341c; background: #fff0eb; font-size: 11px; font-weight: 850; vertical-align: middle }
.personal-event-card .personal-event-status.status-postponed { border-color: #e2c278; color: #78521a; background: #fff7df }
.personal-event-card-action .personal-action-wrap { overflow: visible; white-space: normal; flex-wrap: wrap; justify-content: flex-end }
.personal-clear-action { border-color: var(--line); color: var(--muted); background: #fff }
.personal-data-tools { padding: 18px; border: 1px solid #cfd8d2; border-radius: 14px; background: #fff }
.personal-data-tools > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none }
.personal-data-tools > summary::-webkit-details-marker { display: none }
.personal-data-tools > summary::after { content: '展开'; color: var(--muted); font-size: 10px; flex: none }
.personal-data-tools[open] > summary::after { content: '收起' }
.personal-data-tools > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 3px }
.personal-data-tools strong { display: block; color: var(--green); font-size: 14px }
#personal-data-summary { display: block; margin-top: 7px; color: var(--muted); font-size: 10px }
.personal-tool-buttons { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 13px }
.personal-tool-buttons button { min-height: 34px; padding: 0 7px; border: 1px solid #d7ded9; border-radius: 9px; color: var(--forest); background: #f7faf8; font-size: 10px; font-weight: 800; white-space: nowrap }
.personal-tool-buttons .danger-button { border-color: #e5c2b5; color: #8e432d; background: #fff6f2 }

.entity-main { display: grid; gap: 22px }
.entity-title { align-items: end }
.organizer-title { display: grid; grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) auto; align-items: center }
.organizer-logo { display: block; width: 100%; height: 64px; object-fit: contain; object-position: center; border-radius: 8px; background: #fff }
.entity-kind { flex: none; padding: 4px 8px; border-radius: 999px; color: var(--green); background: #eaf3ee; font-size: 9px; font-weight: 850 }
.entity-facts:empty { display: none }
.organizer-social-row { grid-column: 1 / -1; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; column-gap: 18px; min-height: 0; padding: 10px 14px }
.organizer-social-row dt { font-size: 11px; white-space: nowrap }
.organizer-social-row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; min-width: 0 }
.organizer-social-row a { display: inline-flex; align-items: center; min-height: 28px; color: var(--green); text-underline-offset: 3px; white-space: nowrap }
.entity-events { min-width: 0 }
.entity-list-head { margin-bottom: 8px }
.entity-sort { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px }
.entity-sort[hidden] { display: none }
.entity-event-preview { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none }
.entity-event-preview > li { display: grid; grid-template-columns: minmax(88px, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 9px 11px; border: 1px solid #dfe6e1; border-radius: 9px; font-size: 12px; overflow-wrap: anywhere }
.entity-event-preview time { color: var(--green); font-weight: 750; font-variant-numeric: tabular-nums }
.entity-event-preview a { color: var(--ink); font-weight: 750; text-underline-offset: 3px }
.entity-event-preview small { display: block; margin-top: 3px; color: var(--muted) }
.entity-preview-sessions { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px }
[data-entity-personal]:not(:empty) { margin-inline-start: 6px }
.entity-relations, .entity-relationships { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none }
.entity-relations li, .entity-relationships li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #dfe6e1; border-radius: 9px; background: #f7faf8; font-size: 11px }
.entity-relations a, .entity-relationships a { color: var(--green); font-weight: 750; text-underline-offset: 3px }
.entity-relations small { color: var(--muted); font-size: 9px }

.about-main { padding-top: 18px }
.about-card { overflow: hidden; padding: 24px 20px; border: 1px solid #b9cac1; border-radius: 16px; background: var(--paper); box-shadow: 0 14px 36px #173f3512 }
.about-kicker { margin: 0 0 5px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .16em }
.about-card h1 { margin: 0; font-size: 23px; line-height: 1.35 }
.about-intro { margin: 13px 0 0; color: #30413b; font-size: 13px; line-height: 1.85 }
.about-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line) }
.about-section h2 { margin: 0 0 10px; color: var(--green); font-size: 14px }
.about-section p { margin: 5px 0; color: #4b5c56; font-size: 12px }
.about-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.about-links a { display: block; padding: 11px 12px; border: 1px solid #d9e3de; border-radius: 9px; color: #385f52; background: #f7faf8; font-size: 11px; font-weight: 700; text-decoration: none }
.about-links a:hover { border-color: #adc5ba; background: #f0f6f2 }

.directory-main { padding-top: 18px }
.event-directory-links { display: grid; gap: 8px; margin: 0 0 16px }
.event-directory-links div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px }
.event-directory-links h2 { flex-basis: 100%; margin: 0; color: var(--ink); font-size: 13px }
.event-directory-links a { padding: 4px 0; color: var(--green); font-size: 13px; text-underline-offset: 3px }
.directory-card { overflow: hidden; padding: 22px 18px; border: 1px solid #b9cac1; border-radius: 16px; background: var(--paper); box-shadow: 0 14px 36px #173f3512 }
.directory-card h1 { margin: 0; font-size: 22px; line-height: 1.35 }
.directory-intro { margin: 10px 0 0; color: #43534d; font-size: 12px; line-height: 1.7 }
.directory-count { margin: 8px 0 15px; color: var(--green); font-size: 11px; font-weight: 800 }
.directory-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none }
.directory-list a { display: grid; grid-template-columns: minmax(88px, auto) minmax(0, 1fr); gap: 12px; padding: 10px 11px; border: 1px solid #dfe6e1; border-radius: 10px; color: var(--ink); background: #f9fbfa; text-decoration: none }
.directory-list a:hover { border-color: #aec4b9; background: #f0f6f2 }
.directory-list time, .directory-list strong { color: var(--green); font-size: 11px; font-weight: 800 }
.directory-list span { overflow: hidden; color: #53615b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap }

@media (min-width: 721px) {
  body { padding: 24px; background: #dde2dc }
  .shell { overflow: hidden; border-radius: 28px; box-shadow: 0 30px 90px #14231f28 }
}

@media (max-width: 420px) {
  .brand-logo { width: 38px; height: 38px }
  .brand-title { font-size: 14px }
  .update-tag { max-width: 88px }
  .event-row-body { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 9px }
  .schedule-date { font-size: 10px }
  .schedule-date, .session-link { gap: 4px }
  .event-title { font-size: 14px }
  .status { font-size: 8px }
  .detail-title { display: block }
  .organizer-logo { width: min(120px, 100%); margin-bottom: 12px }
  .detail-title .status { margin-top: 10px }
  .detail-facts { grid-template-columns: 1fr }
  .detail-row { min-height: auto }
  .directory-list a { grid-template-columns: 1fr; gap: 4px }
  .header-actions { gap: 4px }
  .header-actions .home-button { padding: 6px 8px; font-size: 9px }
  .personal-event-card { grid-template-columns: minmax(0, 1fr) auto }
  .personal-event-card-action .personal-action-wrap { flex-direction: column; align-items: flex-end; gap: 4px }
}
/* Shared card rows: date/title, first session/artist, second session/venue */
html:root .event-row-body {
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
}
html:root .schedule-column {
  grid-row: 1 / 4;
  grid-template-rows: subgrid;
  align-self: stretch;
  align-content: normal;
  row-gap: 3px;
}
html:root .schedule-date { grid-row: 1; align-self: start; padding-top: 1px }
html:root .schedule-date[data-exhibition="true"] { grid-template-columns: 1fr; gap: 2px }
html:root .schedule-date[data-exhibition="true"] .schedule-weekday { font-size: inherit; color: inherit; white-space: normal }
html:root .row-main-link {
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
  align-self: stretch;
}
html:root .row-main { display: contents }
html:root .row-title-line { grid-row: 1 }
html:root .event-subtitle { grid-row: 2; display: block; align-self: center; margin: 0; line-height: 1.4 }
html:root .event-meta { grid-row: 3; align-self: center; margin-top: 0; min-height: 17px; line-height: 1.4 }
html:root .event-row .row-time,
html:root .personal-card-controls.is-single { grid-row: 2 / 4; align-self: center }
html:root .row-time { font-size: 12px }
html:root .event-row:not(.multi-session) .schedule-column { grid-template-rows: auto 27px 1fr; row-gap: 6px }
html:root .event-row:not(.multi-session) .row-time,
html:root .event-row:not(.multi-session) .personal-card-controls.is-single { grid-row: 2; align-self: center }
html:root .multi-session .session-times {
  grid-row: 2 / 4;
  display: grid;
  grid-template-rows: subgrid;
  align-self: stretch;
  gap: 3px;
}
html:root .multi-session .session-action-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--schedule-tail); column-gap: 5px; align-items: center; min-height: 27px }
html:root .multi-session .session-link { display: flex; align-items: center; min-height: 27px; justify-content: flex-start }
.session-personal-action { min-width: 0 }
.session-personal-action .personal-action-wrap { max-width: 100% }
.session-detail-label { font-size: 10px; color: var(--green) }
html:root .multi-session:has(.session-action-row:nth-child(3)) .session-times {
  grid-template-rows: none;
  align-content: start;
}
html:root .multi-session:has(.session-action-row:nth-child(3)) .row-main-link {
  grid-template-rows: max-content max-content max-content;
  align-content: start;
  row-gap: 3px;
  align-items: start;
}
:root { --update-border: #d8dfda; }
.home-results-heading { display:flex; align-items:baseline; gap:8px; min-width:0 }
.home-results-heading #result-count { margin:0 }
.updates-summary { display:inline; margin:0; font-size:10px; color:var(--green); text-decoration:none; white-space:nowrap; flex:none }
.updates-page { padding:24px 16px 32px; }
.update-tabs { display:flex; gap:24px; margin:20px 0; }
.update-day { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; padding:14px 0; border-bottom:1px solid var(--update-border); font-size:14px; }
.update-day time { color:#596860; }
.update-tabs a { color:inherit; padding-bottom:6px; }
.update-tabs a[aria-current="page"] { font-weight:700; border-bottom:2px solid currentColor; }
.update-card { padding:18px 0; border-bottom:1px solid var(--update-border); overflow-wrap:anywhere; }
.update-card h2, .update-card h3 { font-size:18px; margin:8px 0; }
.update-card a { color:inherit; }
.update-card p, .update-card li { line-height:1.65; }
.update-card small, .update-card time { color:#596860; }
.update-version { color:#596860; font-size:12px; margin-inline-end:8px; white-space:nowrap; }
.calendar-tools { margin:18px 0; }
.calendar-tools summary, .update-card summary { cursor:pointer; padding:10px 0; }
.calendar-tools > summary { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:9px 16px; border:1px solid var(--forest); border-radius:8px; color:#fff; background:var(--green); font-size:13px; font-weight:800; list-style:none }
.calendar-tools > summary::-webkit-details-marker { display:none }
.calendar-tools > summary::before { content:'▦'; font-size:18px; line-height:1 }
.calendar-tools > summary:focus-visible { outline:3px solid #d7f06c; outline-offset:2px }
.calendar-tools[open] > summary { background:var(--forest) }
.calendar-choice { display:flex; align-items:flex-start; gap:10px; padding:10px 0; line-height:1.5; }
.calendar-choice input { margin-top:5px; flex-shrink:0; }
#calendar-download, #updates-more { padding:10px 16px; margin:14px 0; }
#changes-error { color:#8c3b22; }
