:root {
  color-scheme: light;
  --bg: #faf9f6;
  --card: #fff;
  --raised: #fff;
  --ink: #30282c;
  --sub: #6c6266;
  --line: #e2ddda;
  --edge: #d9d2d0;
  --tag-line: #ddd6d2;
  --view-line: #dcd5d2;
  --field-line: #cfc9c8;
  --underline: #cfc5c5;
  --placeholder: #776d71;
  --accent: #a8333d;
  --accent-line: #bc4350;
  --on-accent: #fff;
  --tint: #fce9e4;
  --tint-line: #e8b4ab;
  --fill: #f3f0ed;
  --fill-ink: #655b61;
  --label-ink: #65585c;
  --well: #ebe8e5;
  --soon: #875020;
  --today: #a8333d;
  --open: #256f4a;
  --on-open: #fff;
  --focus: #8c4161;
  --note: #fff2d9;
  --tag-ink: #5c5155;
  --tag-on-ink: #8a2534;
  --tag-on-line: #d38982;
  --tag-hover-line: #bd837e;
  --rel-bg: #f8e3df;
  --rel-ink: #97343d;
  --ticket-ink: #843442;
  --ticket-bg: #fff6f2;
  --ticket-line: #edd4cc;
  --hover-line: #c58078;
  --menu-hover: #faf0ed;
  --big-bg: #f5f1ed;
  --poster-base: #fff;
  --thumb-line: #00000012;
  --shadow-soft: #3b20200c;
  --shadow-menu: #47323524;
  --shadow-guide: #38282e29;
  --shadow-dialog: #382d3855;
  --concert: #96404d;
  --fanmeeting: #925022;
  --festival: #306945;
  --musical: #854176;
  --play: #286768;
  --classic: #4a547f;
  --family: #835213;
  --other: #58566d;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171314;
  --card: #221d1f;
  --raised: #2c2629;
  --ink: #f2eceb;
  --sub: #b9aeb1;
  --line: #3b3336;
  --edge: #4d4347;
  --tag-line: #4d4347;
  --view-line: #5a4f53;
  --field-line: #5a4f53;
  --underline: #6a5e62;
  --placeholder: #9e9296;
  --accent: #ff9f98;
  --accent-line: #ff8a82;
  --on-accent: #2b0f12;
  --tint: #4b2529;
  --tint-line: #7d4243;
  --fill: #342d30;
  --fill-ink: #cdc2c5;
  --label-ink: #cdc2c5;
  --well: #0f0c0d;
  --soon: #e5ab6e;
  --today: #ff9f98;
  --open: #7fd3a4;
  --on-open: #0e2418;
  --focus: #f0a3c2;
  --note: #3d3222;
  --tag-ink: #d2c7ca;
  --tag-on-ink: #ffb7b0;
  --tag-on-line: #8d4c4b;
  --tag-hover-line: #a8635f;
  --rel-bg: #4b2529;
  --rel-ink: #ffb7b0;
  --ticket-ink: #ffbbb3;
  --ticket-bg: #3a2325;
  --ticket-line: #6c3d3c;
  --hover-line: #b8716b;
  --menu-hover: #3a2e31;
  --big-bg: #1b1718;
  --poster-base: #221d1f;
  --thumb-line: #ffffff1f;
  --shadow-soft: #00000040;
  --shadow-menu: #00000073;
  --shadow-guide: #00000080;
  --shadow-dialog: #000000b3;
  --concert: #f39aa5;
  --fanmeeting: #e9a573;
  --festival: #80c99d;
  --musical: #dd9bcf;
  --play: #77c6c6;
  --classic: #a9b4e8;
  --family: #ddab63;
  --other: #b7b5cf;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--mast-shown, 80px) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }
button, input, summary { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; top: -80px; left: 12px; z-index: 10; background: var(--card); padding: 10px; }
.skip:focus { top: 6px; }
.masthead { position: sticky; top: calc(0px - var(--mast-hidden, 0px)); z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); }
.mast-inner, main { width: min(100% - 64px, 1080px); margin-inline: auto; }
.mast-inner { min-height: 78px; display: flex; align-items: center; gap: clamp(26px, 5vw, 72px); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.55rem; letter-spacing: -.075em; white-space: nowrap; line-height: 1.1; }
.brand img { display: block; }
.tabs { display: flex; align-self: stretch; align-items: stretch; gap: 20px; }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 2px; background: transparent; border: 0; font-size: .98rem; color: var(--sub); font-weight: 650; white-space: nowrap; }
.tab .count { display: inline-flex; justify-content: center; min-width: calc(2ch + 10px); border-radius: 5px; background: var(--fill); color: var(--fill-ink); padding: 1px 5px; font-size: .75rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { color: var(--accent); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; border-radius: 4px 4px 0 0; background: var(--accent-line); }
.tab[aria-selected="true"] .count { background: var(--tint); color: var(--accent); }
.tab:hover { color: var(--accent); }
.mast-end { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 4px; }
.meta { min-width: 0; display: flex; flex-flow: row-reverse wrap; align-items: baseline; align-content: flex-start; height: 1.55em; overflow: hidden; color: var(--sub); font-size: .8125rem; white-space: nowrap; }
.meta::before { content: "\200b"; order: -3; }
.meta span:first-child { white-space: pre; } 
.meta span + span { order: -1; margin-right: 6px; }
.meta time { order: -2; font-variant-numeric: tabular-nums; font-weight: 650; }
.lamp { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: -7px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.lamp svg { display: block; overflow: visible; }
.lamp-glass { fill: #ffd65c; }
:root[data-theme="dark"] .lamp { color: var(--sub); }
:root[data-theme="dark"] .lamp-glass { fill: none; }
:root[data-theme="dark"] .lamp-rays { display: none; }
@media (hover: hover) and (pointer: fine) { .lamp:hover { background: var(--fill); } }
main { padding-block: 30px 48px; }
main:focus { outline: none; }
.sample-note { margin: 0 0 15px; padding: 10px 16px; background: var(--note); border-radius: 10px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.3; }
#up-count { font-size: .95rem; font-weight: 700; letter-spacing: -.025em; color: var(--accent); vertical-align: middle; white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.search-box { position: relative; display: flex; align-items: center; flex: 1 1 200px; max-width: 340px; min-width: 0; }
.search { min-width: 0; width: 100%; height: 43px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--ink); padding: 8px 12px 8px 39px; font-size: 1rem; }
.search::placeholder { color: var(--placeholder); }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-symbol { position: absolute; left: 15px; width: 13px; height: 13px; border: 1.7px solid var(--sub); border-radius: 50%; pointer-events: none; }
.search-symbol::after { content: ""; position: absolute; bottom: -3px; right: -4px; width: 6px; height: 1.7px; transform: rotate(45deg); background: var(--sub); }
.region-panel { margin-bottom: 17px; padding: 0 15px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.region-panel summary { display: flex; align-items: center; gap: 9px; min-height: 42px; list-style: none; font-size: .9rem; }
.region-panel summary::-webkit-details-marker { display: none; }
.region-panel summary::after { content: ""; flex: none; margin-left: auto; margin-right: 3px; width: 7px; height: 7px; transform: translateY(-2px) rotate(45deg); border: solid var(--sub); border-width: 0 1.7px 1.7px 0; }
.region-panel[open] summary::after { transform: translateY(2px) rotate(225deg); }
.region-hint, #region-selection { color: var(--sub); font-size: .8125rem; }
.region-panel:not([open]) .region-hint, .region-panel[open] #region-selection { display: none; }
.region-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 13px; }
.region-tag { display: inline-flex; gap: 5px; align-items: center; min-height: 35px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--tag-line); background: var(--raised); color: var(--tag-ink); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.region-tag[aria-pressed="true"] { color: var(--tag-on-ink); background: var(--tint); border-color: var(--tag-on-line); }
.region-tag::before { content: ""; box-sizing: border-box; width: 9px; height: 9px; flex: none; background: linear-gradient(currentColor,currentColor) center/9px 1px no-repeat, linear-gradient(currentColor,currentColor) center/1px 9px no-repeat; }
.region-tag[aria-pressed="true"]::before { width: 5px; height: 9px; margin-inline: 2px; background: none; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-1px) rotate(45deg); }
@media (hover: hover) { .region-tag:hover { border-color: var(--tag-hover-line); color: var(--accent); } }
.chips, .ranges, .filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chips { min-width: 0; }
.fav-filter:empty { display: none; } 
.filters:not(:empty) { margin-top: 12px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; padding: 5px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--sub); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: var(--tint-line); background: var(--tint); color: var(--accent); }
.chip:hover { color: var(--accent); }
.chip .n { min-width: 2ch; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; }
.chip svg { flex: none; width: 14px; height: 14px; }
.chip.fav-only[aria-pressed="true"] path { fill: currentColor; }
.fav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: var(--sub); font-size: .8125rem; }
.fav-list-title { margin-right: 2px; font-weight: 700; }
.fav-name { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 10px; border: 1px solid var(--edge); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: .8125rem; }
.fav-name span { color: var(--sub); font-size: 1rem; line-height: 1; }
.fav-name:hover { border-color: var(--hover-line); }
.views { margin-left: auto; display: inline-flex; gap: 2px; background: var(--well); padding: 3px; border-radius: 10px; }
.view { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 5px 10px; color: var(--sub); font-size: .875rem; min-height: 34px; white-space: nowrap; }
.view[aria-pressed="true"] { color: var(--ink); font-weight: 700; background: var(--raised); border-color: var(--view-line); box-shadow: 0 1px 2px var(--shadow-soft); }
#subscribe { position: relative; }
.fit { display: inline-grid; }
.fit > span { grid-area: 1/1; white-space: nowrap; }
.fit > [aria-hidden="true"] { visibility: hidden; }
.list { display: grid; gap: 10px; }
.day-heading { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; margin: 18px 0 2px; font-size: 1.0625rem; font-weight: 720; letter-spacing: -.025em; }
.day-heading::after { content: ""; flex: 1; height: 1px; margin-left: 3px; background: var(--line); }
.day-relative { border-radius: 5px; padding: 1px 7px; font-size: .75rem; background: var(--rel-bg); color: var(--rel-ink); }
.day-count { color: var(--sub); font-size: .8125rem; font-weight: 500; }
#upcoming { margin-top: 5px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 137px; grid-template-areas: "content when"; align-items: start; column-gap: 22px; padding: 21px 25px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.row.has-poster { grid-template-columns: 80px minmax(0, 1fr) 137px; grid-template-areas: "art content when"; }
.row-body { grid-area: content; min-width: 0; }
.row .when { grid-area: when; align-self: stretch; min-width: 0; border-left: 1px dashed var(--line); padding-left: 22px; }
.when .date { color: var(--sub); font-size: .875rem; }
.when .time { color: var(--ink); font-size: 1.8rem; font-weight: 740; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.when .left { margin-top: 4px; color: var(--sub); font-size: .8125rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.today .when .left { color: var(--today); }
.soon .when .left { color: var(--soon); }
.open .when .left { color: var(--open); }
.head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .8125rem; line-height: 1.5; font-weight: 650; }
.kind { color: var(--kind); }
.label { border-radius: 5px; padding: 1px 6px; background: var(--fill); color: var(--label-ink); }
.excl { color: var(--sub); font-size: .75rem; font-weight: 500; }
.head.starred { position: relative; padding-right: 23px; }
.fav { position: absolute; top: calc((1.21875rem + 2px - 36px) / 2); right: -9px; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sub); }
.fav svg { display: block; }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] path { fill: currentColor; }
@media (hover: hover) { .fav:hover { color: var(--accent); } }
.btn.fav { position: static; display: inline-flex; width: auto; height: auto; padding: 5px 11px; border: 1px solid var(--edge); border-radius: 8px; background: var(--raised); color: var(--ink); }
.btn.fav[aria-pressed="true"] { border-color: var(--tint-line); background: var(--tint); color: var(--accent); }
.btn.fav svg { width: 15px; height: 15px; }
.title { font-size: 1.25rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.35; margin: 5px 0 2px; overflow-wrap: anywhere; }
.title-link { font: inherit; text-align: left; background: none; padding: 0; border: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 3px; }
.title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.aka { margin-left: 7px; color: var(--sub); font-size: .875rem; font-weight: 600; }
.full { font-size: .95rem; overflow-wrap: anywhere; }
.info, .foot { color: var(--sub); overflow-wrap: anywhere; }
.info { font-size: .875rem; }
.info.via, .clabel.via { color: var(--accent); }
.foot { margin-top: 8px; font-size: .75rem; }
.foot a { color: inherit; text-underline-offset: 2px; }
.needs-wrap { margin-top: 5px; }
.needs-wrap summary { color: var(--accent); font-size: .875rem; width: fit-content; }
.needs { padding-left: 19px; margin: 5px 0; font-size: .9rem; overflow-wrap: anywhere; }
.needs-site { margin-top: 8px; font-weight: 700; font-size: .8125rem; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 10px; }
.actions .aside { display: flex; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; border: 1px solid var(--edge); border-radius: 8px; background: var(--raised); color: var(--ink); padding: 5px 11px; text-decoration: none; font-size: .875rem; font-weight: 600; }
.actions > a.btn { color: var(--ticket-ink); background: var(--ticket-bg); border-color: var(--ticket-line); }
.btn:hover { color: var(--accent); border-color: var(--hover-line); }
.open .actions > a.btn, .open .actions > a.btn:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
#subscribe .btn { min-height: 38px; }
details.cal { position: relative; }
details.cal summary { list-style: none; }
details.cal summary::-webkit-details-marker { display: none; }
details.cal .btn::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-inline: 3px; }
details.cal[open] .btn::after { transform: translateY(2px) rotate(225deg); }
details.cal .menu { position: absolute; z-index: 4; top: calc(100% + 5px); left: 0; min-width: 200px; display: grid; padding: 5px; border-radius: 11px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 8px 24px var(--shadow-menu); }
#subscribe .menu { left: auto; right: 0; }
details.cal .menu a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
details.cal .menu a:hover { background: var(--menu-hover); }
.sub-help { padding: 6px 10px; color: var(--sub); font-size: .8125rem; }
.empty { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; color: var(--sub); padding: 26px 15px; margin-top: 16px; }
button.link { border: 0; background: none; padding: 5px; color: var(--accent); text-decoration: underline; }
#tba-wrap h2, .past-wrap { margin: 27px 0 12px; }
#tba-wrap h2 { font-size: 1.2rem; }
.past-wrap > summary { font-weight: 650; padding: 6px 0; }
.past-wrap[open] > summary { margin-bottom: 8px; }
.poster { display: block; position: relative; overflow: hidden; aspect-ratio: 5/7; background: color-mix(in srgb, var(--kind, #945c57) 12%, var(--poster-base)); }
.poster img { display: block; height: 100%; width: 100%; object-fit: cover; }
.poster .ph { display: none; }
.poster.none .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; color: var(--kind, var(--sub)); }
.thumb { grid-area: art; width: 100%; border: 0; border-radius: 7px; padding: 0; background: none; cursor: zoom-in; }
.thumb .poster { border-radius: 7px; border: 1px solid var(--thumb-line); }
.list.grid { grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 12px; align-items: start; }
.card { min-width: 0; position: relative; display: block; text-align: left; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.card:hover { border-color: var(--hover-line); }
.card .left { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 5px; color: #fff; background: #3c3034ee; font-size: .8125rem; font-weight: 700; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.card.today .left { background: var(--today); color: var(--on-accent); }
.card.open .left { background: var(--open); color: var(--on-open); }
.card.faved::after { content: "\2605\FE0E"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #3c3034ee; color: #fff; font-size: .75rem; line-height: 1; }
.card.faved .left { max-width: calc(100% - 46px); }
.cbody, .cwhen, .clabel { display: block; }
.cbody { padding: 9px 11px 11px; }
.cwhen { color: var(--accent); font-size: .875rem; font-weight: 650; }
.cname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.05rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.clabel { color: var(--sub); font-size: .8125rem; overflow-wrap: anywhere; }
.card-place { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 36px; font-size: .8125rem; color: var(--sub); }
.notice strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: .875rem; }
.install-reopen { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.install-guide {
  position: sticky;
  z-index: 3;
  bottom: max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  width: min(460px, calc(100% - 16px));
  max-height: 55vh;
  max-height: 55dvh;
  overflow: auto;
  margin: 0 auto max(8px, env(safe-area-inset-bottom));
  padding: 10px 4px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 4px 24px var(--shadow-guide);
}
.install-guide img { margin-top: 2px; }
.install-copy { align-self: center; overflow-wrap: anywhere; }
.install-copy h2 { margin: 0; font-size: .9375rem; line-height: 1.35; }
.install-copy p { margin-top: 3px; font-size: .8125rem; line-height: 1.45; color: var(--sub); }
.install-native { min-height: 44px; margin-top: 7px; padding: 5px 15px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 700; }
.install-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sub); font-size: 1.5rem; line-height: 1; }
.to-top { position: fixed; z-index: 3; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--guide, 0px)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--edge); border-radius: 50%; background: var(--raised); color: var(--ink); box-shadow: 0 3px 14px var(--shadow-guide); }
html:has(dialog[open]) { overflow: hidden; }
dialog.detail { width: min(780px, calc(100% - 24px)); max-width: none; max-height: none; padding: 0; border: none; border-radius: 16px; overflow: hidden; background: var(--card); color: var(--ink); box-shadow: 0 15px 55px var(--shadow-dialog); }
dialog.detail::backdrop { background: #33282d88; }
:root[data-theme="dark"] dialog.detail::backdrop { background: #0b0909b8; }
.sheet { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); max-height: calc(100dvh - 24px); overflow: auto; }
.sheet.no-poster { grid-template-columns: minmax(0, 1fr); }
.big { align-self: start; background: var(--big-bg); }
.big img { display: block; width: 100%; }
.sheet .row { display: flex; flex-direction: column; gap: 14px; border: none; padding: 28px; }
.sheet .when { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 9px; padding: 0 28px 8px 0; border: 0; border-bottom: 1px solid var(--line); }
.sheet .when .left { margin: 0; }
.sheet details.cal .menu { position: static; margin-top: 5px; box-shadow: none; }
dialog.detail .close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: var(--ink); line-height: 1; }
@media (max-width: 840px) {
  .mast-inner, main { width: calc(100% - 40px); }
  .mast-inner { gap: 24px; }
  .tabs { gap: 12px; }
  .toolbar { gap: 8px; }
  .search-box { flex: 1; max-width: none; }
  .views { margin-left: 0; }
}
@media (max-width: 760px) {
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-box { grid-area: 1 / 1; }
  .views { grid-area: 1 / 2; }
  .chips { grid-area: 2 / 1 / 3 / -1; }
}
@media (max-width: 700px) {
  .mast-inner, main { width: calc(100% - 32px); }
  .mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 13px; }
  .brand { font-size: 1.38rem; }
  .brand img { width: 29px; height: 29px; }
  .mast-end { grid-column: 2; grid-row: 1; margin-left: 0; padding-left: 10px; gap: 2px; }
  .meta span + span { margin-right: 4px; }
  .lamp { width: 40px; height: 40px; margin: -6px -9px -6px 0; }
  .tabs { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 0; margin-top: 5px; }
  .tab { min-height: 44px; padding: 0 6px; }
  main { padding-top: 18px; }
  .section-bar { margin-bottom: 10px; }
  .region-panel { padding-inline: 11px; margin-bottom: 12px; }
  .region-tags { gap: 5px; padding-bottom: 10px; }
  .region-tag { min-height: 36px; padding-inline: 9px; }
  .chips, .ranges { gap: 0; }
  .chip { padding-inline: 10px; }
  .row { display: flow-root; padding: 15px 16px; }
  .row .head { margin-top: 6px; }
  .list .show-period { display: none; }
  .row .when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; padding: 0; border: 0; }
  #upcoming:not(.grid) .when .date { display: none; }
  .when .time { font-size: 1.35rem; }
  .when .left { margin: 0; }
  .row .title { font-size: 1.125rem; }
  .row .thumb { float: right; width: 64px; margin: 0 0 5px 12px; }
  .btn { min-height: 38px; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .big img { width: auto; max-width: 100%; max-height: 40dvh; margin-inline: auto; }
  .sheet .row { padding: 18px; }
  .list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions details.cal .menu { position: static; margin-top: 4px; }
}
@media (max-width: 385px) {
  .tab { font-size: .9rem; padding-inline: 2px; gap: 3px; }
  .chip, .view { padding-inline: 7px; }
  .row .thumb { width: 50px; }
}
@media (max-width: 350px) {
  .view-name { display: none; }
}
