:root {
      color-scheme: light;
      --page: #f4f6fb;
      --page-glow: #e9efff;
      --paper: #ffffff;
      --raised-surface: #ffffff;
      --subtle-surface: #f8faff;
      --muted-surface: #f1f3f7;
      --strong-surface: #e4e9f2;
      --day-surface: #e9edf5;
      --gap-surface: #f5f7fb;
      --target-surface: #eef3ff;
      --ink: #182235;
      --muted: #667085;
      --secondary-ink: #42526a;
      --time-ink: #596579;
      --inverse-ink: #ffffff;
      --control-ink: #222222;
      --line: #dfe5ef;
      --strong-line: #cbd4e1;
      --control-line: #c7c7c7;
      --accent: #2759c7;
      --accent-hover: #1f49a8;
      --accent-ink: #13213a;
      --accent-soft: #e9efff;
      --focus: #1a73e8;
      --header-start: rgba(12, 34, 77, 0.96);
      --header-end: rgba(39, 89, 199, 0.9);
      --header-base: #17366f;
      --header-secondary: #dbe5ff;
      --header-eyebrow: #bcd0ff;
      --control-surface: #ffffff;
      --control-hover: #f4f4f4;
      --control-active: #e8e8e8;
      --menu-hover: #eeeeee;
      --timetable-heading: #f8faff;
      --time-track: #fbfcff;
      --area-track: #ffffff;
      --midnight-line: #000000;
      --midnight-ink: #000000;
      --midnight-surface: #d7dfed;
      --entry-ink: #000000;
      --entry-mix-base: #ffffff;
      --entry-border-mix: #24334f;
      --neutral-entry-color: #8b95a5;
      --love: #c62828;
      --current-time: #e12838;
      --tag-line: #808080;
      --warning-line: #d7a526;
      --warning-surface: #fff6d8;
      --scrollbar: #aab6ca;
      --floating-shadow: rgba(24, 34, 53, 0.25);
      --panel-shadow: rgba(27, 43, 74, 0.08);
      --filter-shadow: rgba(27, 43, 74, 0.06);
      --card-shadow: rgba(27, 43, 74, 0.12);
      --popup-shadow: rgb(0 0 0 / 35%);
      --emoji-shadow: rgba(255, 255, 255, 0.85);
      --current-time-shadow: rgba(225, 40, 56, 0.45);
      --browser-theme-color: #17366f;
      --time-width: 3.5rem;
      --area-width: 10.575rem;
      --header-height: 2.0rem;
      --slot-height: 2rem;
      --page-inline-padding: clamp(0.75rem, 2vw, 1.5rem);
      font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    }

    :root[data-theme="dark"] {
      color-scheme: dark;
      --page: #0f1420;
      --page-glow: #17243f;
      --paper: #171e2b;
      --raised-surface: #1d2635;
      --subtle-surface: #1b2433;
      --muted-surface: #222c3c;
      --strong-surface: #293548;
      --day-surface: #222c3b;
      --gap-surface: #141b27;
      --target-surface: #243858;
      --ink: #e8edf6;
      --muted: #aab5c7;
      --secondary-ink: #bac5d7;
      --time-ink: #b8c3d3;
      --inverse-ink: #ffffff;
      --control-ink: #e8edf6;
      --line: #303b4f;
      --strong-line: #46536a;
      --control-line: #536078;
      --accent: #8aafff;
      --accent-hover: #acc5ff;
      --accent-ink: #eaf0ff;
      --accent-soft: #273955;
      --focus: #8aafff;
      --header-start: rgba(8, 20, 43, 0.98);
      --header-end: rgba(30, 67, 143, 0.94);
      --header-base: #101c33;
      --header-secondary: #c8d8ff;
      --header-eyebrow: #a9c4ff;
      --control-surface: #202a3a;
      --control-hover: #2a3547;
      --control-active: #334056;
      --menu-hover: #2a3547;
      --timetable-heading: #202a3a;
      --time-track: #151d2a;
      --area-track: #171e2b;
      --midnight-line: #dfe7f5;
      --midnight-ink: #f5f7fb;
      --midnight-surface: #354257;
      --entry-ink: #f3f6fb;
      --entry-mix-base: #263246;
      --entry-border-mix: #c2cde0;
      --neutral-entry-color: #8996aa;
      --love: #ff8a98;
      --current-time: #ff5d6c;
      --tag-line: #7f8ca0;
      --warning-line: #dcb95e;
      --warning-surface: #3a321b;
      --scrollbar: #66758d;
      --floating-shadow: rgba(0, 0, 0, 0.45);
      --panel-shadow: rgba(0, 0, 0, 0.28);
      --filter-shadow: rgba(0, 0, 0, 0.18);
      --card-shadow: rgba(0, 0, 0, 0.32);
      --popup-shadow: rgb(0 0 0 / 55%);
      --emoji-shadow: rgba(0, 0, 0, 0.65);
      --current-time-shadow: rgba(255, 93, 108, 0.45);
      --browser-theme-color: #101c33;
    }

    @media (prefers-color-scheme: dark) {
      :root:not([data-theme]) {
        color-scheme: dark;
        --page: #0f1420;
        --page-glow: #17243f;
        --paper: #171e2b;
        --raised-surface: #1d2635;
        --subtle-surface: #1b2433;
        --muted-surface: #222c3c;
        --strong-surface: #293548;
        --day-surface: #222c3b;
        --gap-surface: #141b27;
        --target-surface: #243858;
        --ink: #e8edf6;
        --muted: #aab5c7;
        --secondary-ink: #bac5d7;
        --time-ink: #b8c3d3;
        --inverse-ink: #ffffff;
        --control-ink: #e8edf6;
        --line: #303b4f;
        --strong-line: #46536a;
        --control-line: #536078;
        --accent: #8aafff;
        --accent-hover: #acc5ff;
        --accent-ink: #eaf0ff;
        --accent-soft: #273955;
        --focus: #8aafff;
        --header-start: rgba(8, 20, 43, 0.98);
        --header-end: rgba(30, 67, 143, 0.94);
        --header-base: #101c33;
        --header-secondary: #c8d8ff;
        --header-eyebrow: #a9c4ff;
        --control-surface: #202a3a;
        --control-hover: #2a3547;
        --control-active: #334056;
        --menu-hover: #2a3547;
        --timetable-heading: #202a3a;
        --time-track: #151d2a;
        --area-track: #171e2b;
        --midnight-line: #dfe7f5;
        --midnight-ink: #f5f7fb;
        --midnight-surface: #354257;
        --entry-ink: #f3f6fb;
        --entry-mix-base: #263246;
        --entry-border-mix: #c2cde0;
        --neutral-entry-color: #8996aa;
        --love: #ff8a98;
        --current-time: #ff5d6c;
        --tag-line: #7f8ca0;
        --warning-line: #dcb95e;
        --warning-surface: #3a321b;
        --scrollbar: #66758d;
        --floating-shadow: rgba(0, 0, 0, 0.45);
        --panel-shadow: rgba(0, 0, 0, 0.28);
        --filter-shadow: rgba(0, 0, 0, 0.18);
        --card-shadow: rgba(0, 0, 0, 0.32);
        --popup-shadow: rgb(0 0 0 / 55%);
        --emoji-shadow: rgba(0, 0, 0, 0.65);
        --current-time-shadow: rgba(255, 93, 108, 0.45);
        --browser-theme-color: #101c33;
      }
    }

    * {
      box-sizing: border-box;
    }

    body {
      min-width: 20rem;
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at top left, var(--page-glow) 0, transparent 34rem),
        var(--page);
      font-size: 1.05rem;
    }

    .page-end-space {
      height: calc(2.75rem + 2rem);
    }

    .scroll-to-top,
    .back-button {
      position: fixed;
      z-index: 10;
      width: 2.75rem;
      height: 2.75rem;
      padding: 0;
      border: 1px solid var(--strong-line);
      border-radius: 50%;
      color: var(--inverse-ink);
      background: var(--accent);
      font: inherit;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 0.2rem 0.6rem var(--floating-shadow);
    }

    .scroll-to-top {
      right: 1rem;
      bottom: 1rem;
    }

    .back-button-slot {
      display: flex;
      flex: 0 0 2.75rem;
      align-items: center;
      height: 2.8rem;
    }

    .back-button {
      display: flex;
      position: static;
      align-items: center;
      justify-content: center;
    }

    .back-button > span {
      transform: translateY(-0.08em);
    }

    .back-button.is-floating {
      position: fixed;
      top: 1rem;
      left: 1rem;
      right: auto;
      bottom: auto;
    }

    .scroll-to-top:hover,
    .back-button:hover {
      background: var(--accent-hover);
    }

    .page-header {
      padding: 1rem var(--page-inline-padding) 0.75rem;
      color: var(--inverse-ink);
      background:
        linear-gradient(118deg, var(--header-start), var(--header-end)),
        var(--header-base);
    }

    .event-header-row {
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }

    .event-header-row h1 {
      min-width: 0;
    }

    .menu-toggle {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--control-line);
      border-radius: 8px;
      color: var(--control-ink);
      background: var(--control-surface);
      box-shadow: 0 1px 5px var(--popup-shadow);
      cursor: pointer;
    }

    .menu-toggle:hover {
      background: var(--control-hover);
    }

    .menu-toggle:active {
      background: var(--control-active);
    }

    .menu-toggle:focus-visible,
    .menu-command:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 2px;
    }

    .menu-icon {
      position: relative;
      width: 22px;
      height: 18px;
    }

    .menu-icon-line {
      position: absolute;
      left: 0;
      width: 22px;
      height: 2px;
      border-radius: 1px;
      background: currentColor;
      transform-origin: center;
    }

    .menu-icon-line:nth-child(1) {
      top: 1px;
    }

    .menu-icon-line:nth-child(2) {
      top: 8px;
    }

    .menu-icon-line:nth-child(3) {
      top: 15px;
    }

    .menu-toggle.is-open .menu-icon-line:nth-child(1),
    .menu-toggle.is-dialog-close .menu-icon-line:nth-child(1) {
      top: 8px;
      transform: rotate(45deg);
    }

    .menu-toggle.is-open .menu-icon-line:nth-child(2),
    .menu-toggle.is-dialog-close .menu-icon-line:nth-child(2) {
      visibility: hidden;
    }

    .menu-toggle.is-open .menu-icon-line:nth-child(3),
    .menu-toggle.is-dialog-close .menu-icon-line:nth-child(3) {
      top: 8px;
      transform: rotate(-45deg);
    }

    .menu-toggle.is-dialog-close {
      position: fixed;
      top: 1rem;
      right: var(--page-inline-padding);
      z-index: 21;
    }

    .menu-popup {
      position: absolute;
      top: calc(100% + 0.75rem);
      right: 0;
      z-index: 10;
      min-width: 190px;
      max-height: calc(100vh - 5rem);
      max-height: calc(100dvh - 5rem);
      padding: 6px 0;
      border: 1px solid var(--control-line);
      border-radius: 8px;
      color: var(--control-ink);
      background: var(--control-surface);
      box-shadow: 0 2px 8px var(--popup-shadow);
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .menu-command {
      display: block;
      width: 100%;
      padding: 11px 16px;
      border: 0;
      color: var(--control-ink);
      background: var(--control-surface);
      font: inherit;
      font-size: 0.95rem;
      line-height: 1.2;
      text-align: left;
      white-space: nowrap;
      cursor: pointer;
    }

    .menu-command:hover,
    .menu-command:active {
      background: var(--menu-hover);
    }

    .settings-command {
      min-width: 0;
      margin: 0;
      padding: 0.45rem 1rem 0.65rem;
      border: 0;
      border-bottom: 1px solid var(--control-line);
    }

    .settings-command legend {
      padding: 0;
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 750;
    }

    .settings-options {
      display: grid;
      gap: 0.15rem;
      margin-top: 0.25rem;
    }

    .settings-option {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      min-height: 2rem;
      padding: 0.2rem 0.35rem;
      border-radius: 0.3rem;
      cursor: pointer;
    }

    .settings-option:hover {
      background: var(--menu-hover);
    }

    .settings-input {
      margin: 0;
      accent-color: var(--accent);
    }

    .settings-input:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 2px;
    }

    body.has-open-dialog {
      overflow: hidden;
    }

    .app-dialog {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: flex;
      flex-direction: column;
      padding-top: 1rem;
      color: var(--ink);
      background:
        radial-gradient(circle at top left, var(--page-glow) 0, transparent 34rem),
        var(--page);
      overscroll-behavior: contain;
    }

    .app-dialog[hidden],
    .dialog-variant[hidden] {
      display: none;
    }

    .dialog-variant {
      display: flex;
      flex: 1 1 auto;
      min-height: 0;
      flex-direction: column;
    }

    .dialog-header {
      display: flex;
      flex: 0 0 auto;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      margin: 0 0 1rem;
      padding: 0 calc(var(--page-inline-padding) + 52px);
      text-align: center;
    }

    .dialog-header h1 {
      margin: 0;
      font-size: 1.5rem;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .dialog-content {
      flex: 1 1 auto;
      min-height: 0;
      padding: 1.25rem var(--page-inline-padding);
      overflow-y: auto;
      color: var(--ink);
      background: var(--paper);
      font-size: 1.05rem;
      line-height: 1.5;
      overscroll-behavior: contain;
    }

    .dialog-page {
      width: min(100%, 60rem);
      margin: 0 auto;
    }

    .dialog-page h2 {
      margin: 1.75rem 0 0.75rem;
      font-size: 1.2rem;
      line-height: 1.3;
    }

    .dialog-page h2:first-child {
      margin-top: 0;
    }

    .dialog-page p {
      margin: 0 0 1rem;
    }

    .dialog-page ol {
      margin: 0 0 1rem;
      padding-left: 1.5rem;
    }

    .dialog-page li + li {
      margin-top: 0.35rem;
    }

    .dialog-page a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 0.15em;
    }

    .install-note {
      padding: 0.75rem 1rem;
      border-left: 4px solid var(--accent);
      color: var(--muted);
      background: var(--subtle-surface);
    }

    .page-header h1 a {
      color: inherit;
      text-decoration: none;
    }

    .page-header h1 a:hover {
      text-decoration: underline;
    }

    .event-subtitle {
      max-width: 60rem;
      margin: 0.3rem 0 0;
      color: var(--header-secondary);
      font-size: 1rem;
      line-height: 1.35;
    }

    .event-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.7rem;
      max-width: 60rem;
      margin-top: 0.4rem;
      font-size: 0.95rem;
      line-height: 1.35;
    }

    .event-links a {
      color: var(--inverse-ink);
      text-decoration: underline;
      text-underline-offset: 0.15em;
    }

    .eyebrow {
      margin: 0 0 0.5rem;
      color: var(--header-eyebrow);
      font-size: 0.75rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    h1 {
      max-width: 60rem;
      margin: 0;
      font-size: 1.8rem;
      line-height: 1.05;
      letter-spacing: -0.035em;
    }


    main {
      width: 100%;
      max-width: none;
      margin: 0 auto;
      padding: var(--page-inline-padding);
    }

    main.is-reading-width {
      max-width: 60rem;
      padding-top: clamp(0.5rem, 1.25vw, 1rem);
    }

    main:not(.is-reading-width) {
      padding-top: clamp(0.5rem, 1.25vw, 1rem);
    }

    main {
      padding-bottom: 0.5rem;
    }

    .tab-bar-wrap {
      border-bottom: 1px solid var(--strong-line);
      background: var(--paper);
    }

    .tab-bar {
      display: flex;
      width: min(100%, 100rem);
      margin: 0 auto;
      padding: 0 var(--page-inline-padding);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .tab-bar::-webkit-scrollbar {
      display: none;
    }

    .tab {
      position: relative;
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      min-height: 2.8rem;
      padding: 0 0.85rem;
      border: 0;
      border-bottom: 3px solid transparent;
      color: var(--secondary-ink);
      background: transparent;
      font: inherit;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
    }

    .tab:first-child {
      margin-left: -0.85rem;
    }

    .tab:hover {
      color: var(--accent);
      background: var(--subtle-surface);
    }

    .tab.is-active {
      border-bottom-color: var(--accent);
      color: var(--accent-ink);
      font-weight: 800;
    }

    .tab:focus-visible {
      z-index: 1;
      border-radius: 0.35rem;
      outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
      outline-offset: -4px;
    }

    .tab-panel[hidden] {
      display: none;
    }

    .filters {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      margin: 0 0 0.5rem;
      padding: 0.5rem;
      border: 1px solid var(--strong-line);
      border-radius: 0.8rem;
      background: var(--paper);
      box-shadow: 0 0.35rem 1rem var(--filter-shadow);
    }

    .filters[hidden] {
      display: none;
    }

    .filter-row,
    .filter-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.4rem;
    }

    .filter-row {
      gap: 0.55rem;
    }

    .filter-row[hidden] {
      display: none;
    }

    .filters-toggle {
      align-self: stretch;
      width: 100%;
      padding: 0;
      border: 0;
      color: var(--muted);
      background: transparent;
      font: inherit;
      font-size: 0.88rem;
      font-weight: 750;
      line-height: 1.15;
      text-align: left;
      cursor: pointer;
    }

    .filters-toggle:focus-visible {
      border-radius: 0.2rem;
      outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
      outline-offset: 2px;
    }

    .system-filter-row .filter-group {
      display: contents;
    }

    .filter-group-name {
      color: var(--muted);
      font-size: 0.95rem;
      font-weight: 750;
    }

    .filter-option {
      position: relative;
      display: inline-flex;
    }

    .filter-input {
      position: absolute;
      inset: 0;
      z-index: 1;
      inline-size: 100%;
      block-size: 100%;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }

    .filter-chip,
    .filter-reset {
      display: inline-flex;
      align-items: center;
      min-height: 2rem;
      padding: 0.2rem 0.4rem;
      border: 1px solid var(--strong-line);
      border-radius: 0.35rem;
      color: var(--secondary-ink);
      background: var(--subtle-surface);
      font: inherit;
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.15;
      cursor: pointer;
    }

    .filter-input:checked + .filter-chip {
      border-color: var(--accent);
      color: var(--accent-ink);
      background: var(--accent-soft);
    }

    .filter-input:focus-visible + .filter-chip {
      outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
      outline-offset: 2px;
    }

    .filter-search {
      gap: 0.35rem;
      cursor: default;
    }

    .filter-search.is-active {
      border-color: var(--accent);
      color: var(--accent-ink);
      background: var(--accent-soft);
    }

    .filter-search-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      color: inherit;
      background: transparent;
      font: inherit;
      line-height: 1;
      cursor: pointer;
    }

    .filter-search-toggle:focus-visible,
    .filter-search-input:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
      outline-offset: 2px;
    }

    .filter-search-input {
      box-sizing: border-box;
      inline-size: 12rem;
      max-inline-size: calc(100vw - 6rem);
      min-inline-size: 0;
      padding: 0.15rem 0.35rem;
      border: 1px solid var(--strong-line);
      border-radius: 0.25rem;
      color: var(--ink);
      background: var(--paper);
      font: inherit;
      font-size: 0.95rem;
    }

    .performer-alphabet .filter-row {
      gap: 0.35rem;
    }

    .performer-alphabet .filter-chip {
      justify-content: center;
      min-width: 2rem;
      text-decoration: none;
    }

    .performer-alphabet .filter-chip:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-soft);
    }

    .performer-alphabet .filter-chip.is-unavailable {
      color: var(--muted);
      background: var(--muted-surface);
      cursor: default;
    }


    .day {
      margin: 0 0 2.25rem;
    }

    .day:last-child {
      margin-bottom: 0;
    }

    .day-heading {
      margin: 0 0 0.65rem;
    }

    .day-heading h2 {
      margin: 0;
      font-size: clamp(1.2rem, 2vw, 1.55rem);
      letter-spacing: -0.02em;
    }


    .table-scroll {
      overflow-x: auto;
      touch-action: pan-x pan-y;
      scrollbar-color: var(--scrollbar) transparent;
    }

    .timetable-header-scroll {
      position: sticky;
      top: 0;
      z-index: 6;
      overflow-x: auto;
      border: 1px solid var(--strong-line);
      border-bottom: 0;
      border-radius: 0.8rem 0.8rem 0 0;
      background: var(--paper);
      box-shadow: 0 0.3rem 0.8rem var(--panel-shadow);
      scrollbar-width: none;
    }

    .timetable-header-scroll::-webkit-scrollbar {
      display: none;
    }

    #days {
      --timetable-zoom: 1;
    }

    .timetable {
      display: grid;
      zoom: var(--timetable-zoom);
      grid-template-columns:
        var(--time-width)
        repeat(var(--area-count), minmax(var(--area-width), 1fr));
      grid-template-rows:
        var(--header-height)
        calc(var(--slot-count) * var(--slot-height));
      width: 100%;
    }

    .timetable-header {
      grid-template-rows: var(--header-height);
    }

    .timetable-body {
      grid-template-rows: calc(var(--slot-count) * var(--slot-height));
      border: 1px solid var(--strong-line);
      border-top: 0;
      border-radius: 0 0 0.8rem 0.8rem;
    }

    .corner,
    .area-heading {
      position: sticky;
      top: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      min-width: 0;
      padding: 0.35rem 0.75rem;
      border-bottom: 1px solid var(--strong-line);
      background: var(--timetable-heading);
      font-size: 0.88rem;
      font-weight: 800;
      line-height: 1.1;
    }

    .corner {
      position: sticky;
      left: 0;
      z-index: 5;
      justify-content: center;
      border-right: 1px solid var(--strong-line);
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .area-heading {
      position: relative;
      border-right: 1px solid var(--line);
    }

    .area-link {
      color: inherit;
      font: inherit;
      font-weight: inherit;
      text-decoration: underline;
      text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
      text-underline-offset: 0.12em;
    }

    .area-link:hover {
      color: var(--accent);
    }

    .area-heading::before {
      width: 0.3rem;
      height: 1rem;
      margin-right: 0.55rem;
      border-radius: 999px;
      background: var(--area-color);
      content: "";
    }

    .time-track,
    .area-track {
      position: relative;
      min-height: 0;
    }

    .time-track {
      position: sticky;
      left: 0;
      z-index: 2;
      border-right: 1px solid var(--strong-line);
      background: var(--time-track);
    }

    .area-track {
      overflow: hidden;
      border-right: 1px solid var(--line);
      background-color: var(--area-track);
      background-image:
        linear-gradient(
          to bottom,
          transparent calc(var(--slot-height) - 1px),
          var(--line) calc(var(--slot-height) - 1px),
          var(--line) var(--slot-height)
        );
      background-size: 100% var(--slot-height);
    }

    .time-label {
      position: absolute;
      left: 0;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      width: 100%;
      height: var(--slot-height);
      padding-top: 0.3rem;
      border-bottom: 1px solid var(--line);
      color: var(--time-ink);
      font-size: 0.88rem;
      font-variant-numeric: tabular-nums;
      line-height: 1.05rem;
      white-space: nowrap;
    }

    .time-label.is-hour {
      color: var(--ink);
      font-weight: 800;
    }

    .time-label.is-midnight {
      padding-top: 0.3rem;
      color: var(--midnight-ink);
      background: var(--midnight-surface);
      font-weight: 900;
      letter-spacing: 0.01em;
    }

    .current-time-line {
      position: relative;
      z-index: 4;
      grid-column: 1 / -1;
      grid-row: 2;
      pointer-events: none;
    }

    .current-time-line::before {
      position: absolute;
      top: var(--current-time-top);
      right: 0;
      left: 0;
      height: 2px;
      background: var(--current-time);
      box-shadow: 0 0 0.3rem var(--current-time-shadow);
      content: "";
    }


    .entry {
      position: absolute;
      right: 0.2rem;
      left: 0.2rem;
      z-index: 1;
      overflow: hidden;
      min-height: 0.7rem;
      padding: 0.22rem 0.38rem;
      border: 1px solid color-mix(in srgb, var(--area-color) 60%, var(--entry-border-mix));
      border-left-width: 0.3rem;
      border-radius: 0.35rem;
      color: var(--entry-ink);
      background:
        linear-gradient(
          105deg,
          color-mix(in srgb, var(--area-color) 18%, var(--entry-mix-base)),
          color-mix(in srgb, var(--area-color) 7%, var(--entry-mix-base))
        );
      box-shadow: 0 1px 2px var(--card-shadow);
      font-size: 0.88rem;
      line-height: 1.08rem;
      cursor: pointer;
    }

    .entry.is-neutral {
      border-color: var(--strong-line);
      background: var(--area-track);
    }

    .entry-title,
    .entry-performers {
      display: block;
      overflow: hidden;
    }

    .performer-link {
      width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      color: inherit;
      background: transparent;
      font: inherit;
      line-height: inherit;
      text-align: left;
      cursor: pointer;
    }

    .performer-link:hover {
      text-decoration: underline;
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.12em;
    }

    .performer-link:focus-visible {
      border-radius: 0.15rem;
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }

    .appearance-link {
      display: inline;
      width: auto;
      margin: 0;
      padding: 0;
      border: 0;
      color: inherit;
      background: transparent;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .area-appearance-link,
    .performer-row .appearance-link {
      text-decoration: none;
    }

    .appearance-link:hover {
      text-decoration: underline;
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.12em;
    }

    .appearance-link:focus-visible {
      border-radius: 0.15rem;
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }

    .performer-link {
      width: auto;
    }

    .entry-title {
      font-weight: 800;
    }

    .entry-subtitle {
      display: block;
      font-style: italic;
      font-weight: 400;
    }

    .entry-performers {
      margin-top: 0.08rem;
      color: var(--entry-ink);
      font-size: 0.82rem;
    }

    .entry-flag-display {
      position: absolute;
      right: 0.25rem;
      bottom: 0.3rem;
      z-index: 2;
      font-size: 0.78rem;
      line-height: 1;
      white-space: nowrap;
      pointer-events: none;
      text-shadow: 0 0 0.15rem var(--emoji-shadow);
    }

    .entry-flag-toggle {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      width: 2rem;
      height: 1.7rem;
      padding: 0.2rem 0.25rem;
      border: 0;
      color: inherit;
      background: transparent;
      font: inherit;
      font-size: 0.78rem;
      line-height: 1;
      cursor: pointer;
      text-shadow: 0 0 0.15rem var(--emoji-shadow);
    }

    .entry-flag-toggle.is-empty {
      opacity: 0.38;
      filter: grayscale(1);
    }

    .entry-flag-toggle:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: -2px;
    }

    .timetable-flag-toggle {
      position: absolute;
      right: 0;
      bottom: 0;
      z-index: 2;
    }

    .appearance-flag-display {
      position: static;
      margin-left: 0;
      font-size: inherit;
      text-shadow: none;
      vertical-align: baseline;
    }

    .appearance-flag-display:not([hidden])::before {
      content: " ";
    }

    .entry.is-loved .entry-title,
    .entry.is-loved .entry-subtitle,
    .entry.is-loved .entry-performers {
      color: var(--love);
    }

    .list-view {
      overflow: hidden;
      border: 1px solid var(--strong-line);
      border-radius: 0.8rem;
      background: var(--paper);
      box-shadow: 0 0.65rem 1.8rem var(--panel-shadow);
    }

    .list-view + .list-view {
      margin-top: 1rem;
    }

    .area-section + .area-section {
      margin-top: 1rem;
    }

    .area-list-heading {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      margin: 0;
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--strong-line);
      background: var(--strong-surface);
      font-size: 1rem;
      letter-spacing: -0.01em;
    }

    .area-description {
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--line);
      color: var(--entry-ink);
      font-size: 0.95rem;
      line-height: 1.45;
    }

    .area-description > :first-child {
      margin-top: 0;
    }

    .area-description > :last-child {
      margin-bottom: 0;
    }

    .area-day + .area-day {
      border-top: 1px solid var(--line);
    }

    .area-day-heading {
      margin: 0;
      padding: 0.65rem 1rem 0.45rem;
      color: var(--muted);
      background: var(--day-surface);
      font-size: 0.84rem;
      font-weight: 800;
    }

    .area-appearance-row {
      display: flex;
      align-items: baseline;
      gap: 0.4rem;
      padding: 0.25rem 1rem;
    }

    .area-appearance-row[hidden] {
      display: none;
    }

    .area-appearance-row + .area-appearance-row {
      margin-top: 0.08rem;
    }

    .area-appearance-link,
    .performer-row .appearance-link {
      border-left: 0.3rem solid var(--area-color);
      padding-left: 0.4rem;
    }

    .area-appearance-link {
      display: block;
      flex: 1 1 auto;
      min-width: 0;
    }

    .area-entry-flag-toggle {
      flex: 0 0 auto;
      font-size: 1rem;
      justify-content: flex-end;
    }

    .area-appearance-link.is-alt,
    .area-appearance-link.is-alt .appearance-time,
    .area-appearance-link.is-alt .appearance-subtitle {
      color: var(--accent);
    }

    .area-appearance-link.is-loved,
    .area-appearance-link.is-loved .appearance-time,
    .area-appearance-link.is-loved .appearance-subtitle {
      color: var(--love);
    }

    .list-day-heading {
      margin: 0;
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--strong-line);
      background: var(--strong-surface);
      font-size: 1rem;
      letter-spacing: -0.01em;
    }

    .schedule-list,
    .performer-list,
    .appearance-list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .schedule-row {
      position: relative;
      padding: 0.8rem 1rem;
      border-left: 0.3rem solid var(--area-color);
      border-bottom: 1px solid var(--line);
    }

    .schedule-row.has-overlap-next {
      z-index: 1;
    }

    .schedule-row.has-overlap-next::after {
      content: '';
      position: absolute;
      z-index: 2;
      left: 50%;
      bottom: 0;
      width: 1rem;
      height: 1rem;
      border: 2px solid var(--paper);
      border-radius: 50%;
      background: var(--accent);
      transform: translate(-50%, 50%);
      pointer-events: none;
    }

    .timetable-body .current-time-line {
      grid-row: 1;
    }

    .schedule-gap {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 2rem;
      padding: 0.35rem 1rem;
      background: var(--gap-surface);
      color: var(--muted);
      font-size: 0.95rem;
      font-variant-numeric: tabular-nums;
    }

    .schedule-row.is-target,
    .performer-row.is-target {
      background: var(--target-surface);
      box-shadow: inset 0.3rem 0 0 var(--accent);
    }

    .schedule-row:last-child,
    .performer-row:last-child {
      border-bottom: 0;
    }

    .schedule-time-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 0.4rem;
      min-width: 0;
    }

    .schedule-time {
      color: var(--entry-ink);
      font-size: 0.95rem;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .schedule-area {
      margin-top: 0.18rem;
      color: var(--entry-ink);
      font-size: 0.95rem;
      font-weight: 650;
    }

    .area-dot {
      flex: 0 0 auto;
      width: 0.55rem;
      height: 0.55rem;
      margin-top: 0.28rem;
      border-radius: 50%;
      background: var(--area-color);
    }

    .schedule-content {
      min-width: 0;
    }

    .schedule-title,
    .performer-name {
      margin: 0;
      color: var(--entry-ink);
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1.3;
    }

    .schedule-title {
      white-space: pre-line;
    }

    .schedule-subtitle {
      margin-top: 0.08rem;
      color: var(--entry-ink);
      font-size: 1.05rem;
      font-style: italic;
      font-weight: 400;
      line-height: 1.3;
    }

    .schedule-performers,
    .performer-description,
    .appearance-list {
      margin-top: 0.25rem;
      color: var(--entry-ink);
      font-size: 0.95rem;
      line-height: 1.4;
    }

    .schedule-description {
      margin-top: 0.45rem;
      color: var(--entry-ink);
      font-size: 0.95rem;
      line-height: 1.45;
    }

    .schedule-description > :first-child {
      margin-top: 0;
    }

    .schedule-description > :last-child {
      margin-bottom: 0;
    }

    .schedule-row.is-loved .schedule-title,
    .schedule-row.is-loved .schedule-subtitle,
    .schedule-row.is-loved .schedule-performers,
    .schedule-row.is-loved .schedule-time,
    .schedule-row.is-loved .schedule-time .appearance-time,
    .schedule-row.is-loved .schedule-area,
    .schedule-row.is-loved .schedule-description {
      color: var(--love);
    }

    .list-entry-flag-toggle {
      flex: 0 0 auto;
      font-size: 1rem;
      justify-content: flex-end;
    }

    .entry-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 0.4rem;
    }

    .entry-tag {
      padding: 0.12rem 0.35rem;
      border: 1px solid var(--tag-line);
      border-radius: 0.35rem;
      font-size: 0.95rem;
      line-height: 1.2;
    }

    .performer-row {
      min-width: 0;
      padding: 1rem;
      border-bottom: 1px solid var(--line);
    }

    .performer-affiliation {
      margin-top: 0.2rem;
      color: var(--entry-ink);
      font-size: 1.05rem;
      font-style: italic;
      font-weight: 400;
      line-height: 1.3;
    }

    .performer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.7rem;
      margin-top: 0.25rem;
      color: var(--entry-ink);
      font-size: 0.95rem;
      line-height: 1.35;
    }

    .performer-links a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 0.15em;
    }

    .performer-see-also {
      margin-top: 0.25rem;
      color: var(--entry-ink);
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1.3;
    }

    .performer-see-also a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 0.12em;
    }

    .appearance-list li + li {
      margin-top: 0.18rem;
    }

    .appearance-time {
      color: var(--entry-ink);
      font-weight: 750;
      font-variant-numeric: tabular-nums;
    }

    .appearance-date {
      font-weight: 750;
    }

    .appearance-subtitle {
      font-style: italic;
      font-weight: 400;
    }

    .appearance-link.is-loved,
    .appearance-link.is-loved .appearance-time,
    .appearance-link.is-loved .appearance-subtitle {
      color: var(--love);
    }

    .empty-state {
      padding: 2rem;
      border: 1px solid var(--strong-line);
      border-radius: 0.8rem;
      color: var(--muted);
      background: var(--paper);
      text-align: center;
    }

    noscript {
      display: block;
      margin: 1rem;
      padding: 1rem;
      border: 1px solid var(--warning-line);
      border-radius: 0.5rem;
      background: var(--warning-surface);
    }

    @media (max-width: 40rem) {
      :root {
        --time-width: 3.5rem;
        --area-width: 9.4rem;
      }

      .page-header {
        padding-top: 1rem;
      }

      .area-appearance-row {
        display: block;
      }

      .area-appearance-link {
        display: inline;
      }

      .area-entry-flag-toggle {
        display: inline-flex;
        justify-content: flex-start;
        margin-left: 0.2rem;
        vertical-align: baseline;
      }

    }

    @media print {
      :root {
        --area-width: 8.1rem;
      }

      body {
        background: #fff;
      }

      .page-header {
        padding: 1rem;
        color: #000;
        background: #fff;
      }

      .eyebrow {
        color: #333;
      }

      main {
        width: 100%;
        padding: 0;
      }

      .tab-bar-wrap {
        display: none;
      }

      .table-scroll {
        overflow: visible;
        box-shadow: none;
      }

      .timetable {
        min-width: 0 !important;
      }

      .day {
        break-after: page;
      }
    }
