:root {
  --ink: #171a1c;
  --muted: #747b80;
  --line: #dde7e5;
  --line-soft: #eef3f1;
  --line-strong: #7aa8a8;
  --teal: #006573;
  --teal-deep: #00535d;
  --teal-ink: #003f47;
  --msc-yellow: #fff100;
  --gold: #b58a3a;
  --gold-soft: #efe3c8;
  --cinema-one-blue: #0f6f9f;
  --cinema-one-blue-deep: #064866;
  --cinema-two-orange: #cf7921;
  --cinema-two-orange-deep: #97490d;
  --mint: #edf8f6;
  --peach: #fff3ea;
  --navy: #101843;
  --red: #a72e42;
  --paper: #fffefa;
  --wash: #f3f7f6;
  --row-h: 31px;
  --poster-page-w: 210mm;
  --poster-page-h: 297mm;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #eef2f2;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  overflow: hidden;
  background: #eef2f2;
}

button,
input,
select {
  font: inherit;
}

button,
.file-button {
  min-height: 32px;
  border: 1px solid #d5e1df;
  border-radius: 7px;
  background: #ffffff;
  color: var(--teal-ink);
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

button:hover,
.file-button:hover {
  border-color: #9fbebd;
  background: #f8fbfa;
}

button:disabled {
  color: #a0a7a6;
  cursor: not-allowed;
  background: #f2f5f4;
  border-color: #e1e8e6;
}

.primary-action {
  color: #ffffff;
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.primary-action:hover {
  background: var(--teal-ink);
}

.primary-action:disabled {
  color: #91a09f;
  background: #d9e4e2;
  border-color: #d9e4e2;
}

.toolbar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 14px 16px;
  overflow-y: hidden;
  color: var(--ink);
  background: #f7faf9;
  border-right: 1px solid #d4dfdd;
}

.toolbar-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid #e0e9e7;
}

.toolbar-main strong {
  color: var(--teal-ink);
  font-size: 13px;
  line-height: 1.1;
}

.toolbar-main span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.toolbar-controls {
  display: contents;
}

.sidebar-section {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #d8e4e2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 37, 42, 0.035);
}

.sidebar-section-subtle {
  background: #f3f7f6;
  box-shadow: none;
}

.section-title {
  color: #6f7a7d;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.field input {
  height: 32px;
  border: 1px solid #d5e1df;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: #fffefa;
}

.field select {
  height: 32px;
  min-width: 0;
  width: 100%;
  border: 1px solid #d5e1df;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink);
  background: #fffefa;
}

.field select:disabled {
  color: #9aa09f;
  background: #f3f6f5;
}

.file-button input {
  display: none;
}

.toolbar button,
.toolbar .file-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-section-files {
  grid-template-columns: 1fr 1fr;
}

.sidebar-section-files .drop-zone {
  grid-column: 1 / -1;
}

.sidebar-section-date {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-section-edit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sidebar-section-export,
.sidebar-section-utility {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drop-zone {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
  padding: 8px;
  border: 1px dashed #aebfbd;
  border-radius: 7px;
  background: #f8fbfa;
  color: var(--teal-ink);
  box-shadow: none;
}

.drop-zone.is-dragging {
  border-color: var(--teal-deep);
  background: #eef8f6;
}

.drop-zone strong,
.drop-zone span {
  display: block;
}

.drop-zone strong {
  font-size: 12px;
  line-height: 1.25;
}

.drop-zone span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
}

.file-list span {
  max-width: 100%;
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--teal-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
}

.poster-stack {
  display: grid;
  place-items: center;
  gap: 28px;
  padding: 32px 36px;
}

.poster-workspace {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: auto;
}

.poster-page {
  width: var(--poster-page-w);
  height: var(--poster-page-h);
  min-height: var(--poster-page-h);
  max-height: var(--poster-page-h);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "head"
    "strip"
    "schedule"
    "special"
    "footer";
  padding: 7.5mm 9mm 6mm;
  background: var(--paper);
  border: 1px solid #d3dfdc;
  box-shadow: none;
}

.poster-page.no-special {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "head"
    "strip"
    "schedule"
    "footer";
}

.poster-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-deep) 0 21%, var(--msc-yellow) 21% 27%, var(--gold) 27% 27.6%, var(--teal-deep) 27.6% 100%);
}

.poster-head {
  grid-area: head;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 6px;
  padding-top: 3px;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 206px;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 1 auto;
}

.poster-qr-links {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 7px;
  align-items: start;
}

.poster-qr {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  min-width: 0;
  color: var(--teal-ink);
  font-weight: 900;
  text-align: center;
}

.poster-qr img {
  display: block;
  width: 42px;
  height: 42px;
  image-rendering: crisp-edges;
}

.poster-qr figcaption {
  width: 56px;
  margin: 0;
  font-size: 6.4px;
  line-height: 1.08;
  white-space: normal;
  text-wrap: balance;
}

.brand-copy {
  display: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--teal-ink);
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(181, 138, 58, 0.35) inset;
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 14px;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 5px 0 var(--gold);
}

.brand-title {
  display: block;
  color: var(--teal-ink);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  font-family: "Arial", "Helvetica", "Yu Gothic", sans-serif;
}

.brand-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.date-box {
  display: block;
  align-items: start;
  color: var(--teal-ink);
  font-weight: 900;
  white-space: nowrap;
  padding: 2px 0 0;
}

.date-box::before {
  content: none;
}

.date-main {
  font-size: 24px;
  line-height: 1.03;
}

.date-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.cinema-strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding: 5px 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  border-top: 1px solid #e2ebe9;
  border-bottom: 1px solid #cadbd8;
}

.cinema-strip-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 14px 6px;
  color: #ffffff;
  background: var(--cinema-one-blue);
  border: 1px solid var(--cinema-one-blue-deep);
  border-radius: 5px;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  white-space: nowrap;
}

.cinema-main {
  font-size: 24px;
  line-height: 1;
}

.cinema-location {
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  opacity: 0.9;
}

.screen-range {
  min-width: 0;
  color: var(--teal-ink);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0;
}

.file-checklist {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.file-status {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "mark"
    "label";
  row-gap: 3px;
  align-items: center;
  padding: 6px;
  border: 1px solid #d9e5e3;
  border-radius: 7px;
  background: #ffffff;
}

.file-status-mark {
  grid-area: mark;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: fit-content;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #6f7476;
  background: #edf1f0;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
}

.file-status strong {
  grid-area: label;
  min-width: 0;
  color: var(--teal-ink);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
}

.file-status small {
  display: none;
}

.file-status.is-ready {
  border-color: #accdca;
  background: #f5fbfa;
}

.file-status.is-ready .file-status-mark {
  color: #ffffff;
  background: var(--teal-deep);
}

.file-status.is-missing {
  border-color: #efc5cc;
  background: #fff7f8;
}

.file-status.is-missing .file-status-mark {
  color: #ffffff;
  background: var(--red);
}

.file-status.is-optional .file-status-mark {
  color: #47350f;
  background: #f4e7bd;
}

.cinema-2 .cinema-label {
  color: #ffffff;
  background: var(--cinema-two-orange);
  border-color: var(--cinema-two-orange-deep);
  box-shadow: none;
}

.cinema-meta {
  justify-self: end;
  min-width: 108px;
  padding: 7px 13px;
  color: var(--teal-ink);
  background: #f4faf8;
  border: 1px solid #cfe0dd;
  border-left: 3px solid var(--gold);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--cinema-one-blue-deep);
  background: var(--cinema-one-blue);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36) inset;
}

.cinema-2 .cinema-dot {
  border-color: var(--cinema-two-orange-deep);
  background: var(--cinema-two-orange);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36) inset;
}

.schedule {
  grid-area: schedule;
  border: 1.4px solid var(--teal-deep);
  border-radius: 7px;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.schedule-section-label {
  min-height: 17px;
  display: flex;
  align-items: center;
  padding: 3px 12px 2px;
  color: #ffffff;
  background: var(--teal-ink);
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.schedule-section-label.is-new {
  background: var(--red);
  box-shadow: inset 6px 0 0 var(--msc-yellow);
}

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.9fr) 74px minmax(0, 0.96fr) minmax(0, 1.58fr) minmax(0, 0.96fr);
}

.schedule-grid [hidden] {
  display: none !important;
}

.schedule-header {
  min-height: 25px;
  align-items: center;
  color: var(--teal-ink);
  background: #eaf4f2;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.schedule-header > span {
  padding: 6px 6px;
  border-right: 1px solid #d7e5e3;
}

.schedule-header > span:first-child {
  text-align: left;
}

.movie-row {
  height: var(--row-h);
  min-height: var(--row-h);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0.5px solid transparent;
  border-right: 0.5px solid transparent;
  align-items: center;
  background: #fffefa;
  overflow: hidden;
}

.movie-row:last-child {
  border-bottom: 0;
}

.movie-row.is-continuation {
  background: #fbfdfc;
}

.movie-row.is-group-start,
.movie-row.is-continuation {
  border-left-color: rgba(0, 83, 93, 0.12);
  border-right-color: rgba(0, 83, 93, 0.12);
}

.movie-row.is-group-start {
  border-top: 0.5px solid rgba(0, 83, 93, 0.16);
}

.movie-row.is-group-end {
  border-bottom: 0.5px solid rgba(0, 83, 93, 0.16);
}

.movie-row > div {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}

.movie-row > div:last-child,
.schedule-header > span:last-child {
  border-right: 0;
}

.title-cell {
  gap: 5px;
  padding-left: 8px;
  padding-right: 5px;
}

.shochiku-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.shochiku-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eirin-mark {
  height: 15px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 2px;
}

.eirin-mark img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  color: #8d1e2f;
  background: #fff0f2;
  border: 1px solid #efc3cb;
  font-size: 6.8px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.continuation-mark {
  width: 100%;
  height: 1px;
}

.new-badge {
  align-self: flex-start;
  margin-top: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
  flex: 0 0 auto;
}

.movie-title {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 900;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
  color: #171a1c;
}

.movie-title.long {
  font-size: 9.1px;
}

.movie-title.extra-long {
  font-size: 8.4px;
}

.attribute-cell {
  justify-content: center;
}

.attribute-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}

.attribute-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  min-width: 38px;
  max-width: 100%;
  padding: 3px 5px;
  border-radius: 999px;
  color: var(--teal-ink);
  background: var(--mint);
  border: 1px solid #c7dfdd;
  font-size: 7.2px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.attribute-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-2 .attribute-pill {
  color: #82573e;
  background: var(--peach);
  border-color: #ead0bd;
}

.attribute-pill.is-morning-ten,
.cinema-2 .attribute-pill.is-morning-ten {
  color: #2f250e;
  background: #f2dfad;
  border-color: var(--gold);
}

.attribute-pill.is-film,
.cinema-2 .attribute-pill.is-film {
  color: #4b3272;
  background: #f2ecff;
  border-color: #d7c9f1;
}

.attribute-pill.is-dc,
.cinema-2 .attribute-pill.is-dc {
  color: #12496b;
  background: #eaf6ff;
  border-color: #c4e0f0;
}

.attribute-pill.is-at,
.cinema-2 .attribute-pill.is-at {
  color: #624015;
  background: #fff4d8;
  border-color: #dfc781;
}

.attribute-pill.is-formal,
.cinema-2 .attribute-pill.is-formal {
  width: 100%;
  min-width: 0;
  padding-inline: 4px;
  font-size: 6.4px;
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: normal;
  text-overflow: clip;
}

.movie-row > .time-cell {
  display: grid;
  gap: 4px;
  align-items: center;
  justify-items: center;
  align-content: center;
  height: 100%;
  padding-top: 2px;
  padding-bottom: 2px;
}

.morning-cell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afternoon-cell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-row > .time-cell {
  display: grid;
  padding-left: 3px;
  padding-right: 3px;
}

.time-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: 22px;
  padding: 0 1px;
  line-height: 1;
  color: #171a1c;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.time-chip strong {
  display: block;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.time-chip small {
  display: block;
  width: 100%;
  margin-top: 1px;
  color: #7b8589;
  font-size: 6.5px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-chip.late {
  align-items: center;
  min-width: 54px;
  min-height: 0;
  height: 23px;
  padding: 0 1px;
  color: #171a1c;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.time-chip.late small {
  color: #7b8589;
}

.poster-page.is-tight:not(.fit-compact):not(.fit-ultra):not(.fit-micro) .movie-row > .time-cell {
  padding-top: 0;
  padding-bottom: 0;
}

.poster-page.is-tight:not(.fit-compact):not(.fit-ultra):not(.fit-micro) .time-chip {
  height: 18px;
}

.poster-page.is-tight:not(.fit-compact):not(.fit-ultra):not(.fit-micro) .time-chip strong {
  font-size: 9.4px;
}

.poster-page.is-tight:not(.fit-compact):not(.fit-ultra):not(.fit-micro) .time-chip small {
  font-size: 5.5px;
}

.poster-page.is-tight:not(.fit-compact):not(.fit-ultra):not(.fit-micro) .time-chip.late {
  height: 18px;
}

.late-cell {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  justify-items: center;
  place-items: center;
  background: #f6f6fb;
}

.late-cell .time-chip {
  width: auto;
}

.special {
  grid-area: special;
  margin-top: 5px;
  border: 1.5px solid var(--teal-deep);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fffefa;
}

.special-inner {
  width: calc(100% / var(--special-scale, 1));
  transform: scale(var(--special-scale, 1));
  transform-origin: top left;
}

.special.is-scaled {
  height: var(--special-fit-h);
}

.special-head {
  min-height: 23px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}

.special-title {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 23px;
  min-height: 0;
  padding: 0 14px 1px;
  color: #ffffff;
  background: var(--teal-ink);
  border-radius: 0 0 8px 0;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 3px 0 0 var(--msc-yellow);
}

.special-notice {
  min-width: 0;
  padding: 0 9px 0 12px;
  color: #4f595b;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--event-row-h, 44px) - 1px),
      var(--line) calc(var(--event-row-h, 44px) - 1px),
      var(--line) var(--event-row-h, 44px)
    );
}

.event-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 172px);
  position: relative;
  gap: 5px;
  min-height: 44px;
  padding: 5px 7px;
}

.event-card.is-many-times {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
}

.event-card.is-many-times .event-times {
  max-width: 390px;
  justify-content: flex-end;
}

.event-card:not(.is-many-times) {
  border-right: 1px solid var(--line);
}

.event-card.is-many-times {
  border-right: 0;
}

.event-grid.is-single .event-card {
  border-right: 0;
}

.event-copy {
  min-width: 0;
  align-self: center;
  transform: translateY(-1.5px);
}

.event-labels {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-bottom: 3px;
}

.event-kind {
  display: inline-flex;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--mint);
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
}

.event-labels .attribute-pill {
  min-height: 0;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 6.7px;
  line-height: 1;
  white-space: nowrap;
}

.event-labels .attribute-line {
  line-height: 1;
}

.event-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 8.3px;
  line-height: 1.18;
  font-weight: 900;
}

.event-name-line {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.event-name-line .event-name {
  flex: 0 1 auto;
  min-width: 0;
}

.event-name-line .closing-badge {
  font-size: 6.2px;
  padding: 2px 4px;
}

.event-meta {
  color: var(--muted);
  font-size: 6.5px;
  line-height: 1.2;
}

.event-meta:empty {
  display: none;
}

.event-times {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  max-width: 172px;
}

.event-time {
  min-width: 50px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(181, 138, 58, 0.32) inset;
  text-align: center;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
}

.event-time small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 6px;
  font-weight: 700;
}

.poster-footer {
  grid-area: footer;
  align-self: end;
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-top: 3px;
  color: #465255;
  font-size: 6.7px;
  line-height: 1.18;
  font-weight: 800;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.rating-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
}

.rating-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.rating-legend img {
  width: auto;
  height: 9px;
  display: block;
}

.poster-note {
  padding-top: 1px;
  color: #394548;
  font-size: 7.3px;
  line-height: 1.18;
  font-weight: 900;
  text-align: center;
}

.meta-warning {
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #7f3241;
  background: #fff2f4;
  border: 1px solid #f2bdc7;
  font-size: 7px;
  line-height: 1.3;
  text-align: center;
  font-weight: 800;
}

.edit-mode [data-editable] {
  outline: 1px dashed rgba(20, 101, 106, 0.34);
  outline-offset: 1px;
  background: rgba(232, 248, 248, 0.34);
}

.edit-mode [data-editable]:focus {
  outline: 2px solid rgba(20, 101, 106, 0.72);
  background: #ffffff;
}

.edit-mode .schedule {
  overflow: visible;
}

.poster-edit-toolbar,
.row-edit-controls,
.card-edit-controls {
  font-family: inherit;
}

.poster-edit-toolbar {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 16px);
  padding: 5px 6px;
  border: 1px solid rgba(10, 84, 88, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(13, 38, 43, 0.16);
}

.poster-edit-toolbar button,
.row-edit-controls button,
.card-edit-controls button {
  appearance: none;
  border: 1px solid rgba(10, 84, 88, 0.28);
  border-radius: 5px;
  color: var(--teal-ink);
  background: #ffffff;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.poster-edit-toolbar button {
  min-height: 24px;
  padding: 5px 8px;
}

.poster-edit-toolbar button.is-active {
  color: #ffffff;
  background: var(--teal-ink);
  border-color: var(--teal-ink);
}

.edit-toolbar-divider {
  width: 1px;
  align-self: stretch;
  margin-inline: 2px;
  background: rgba(10, 84, 88, 0.18);
}

.edit-toolbar-label {
  color: #5c696a;
  font-size: 9px;
  font-weight: 900;
}

.row-edit-controls,
.card-edit-controls {
  position: absolute;
  z-index: 24;
  display: flex;
  gap: 2px;
}

.row-edit-controls {
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
}

.card-edit-controls {
  right: 4px;
  top: 4px;
}

.row-edit-controls button,
.card-edit-controls button {
  width: 18px;
  height: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(13, 38, 43, 0.12);
}

.row-edit-controls button:last-child,
.card-edit-controls button:last-child {
  color: #9d2437;
  border-color: rgba(157, 36, 55, 0.26);
}

.print-document [data-edit-ui],
body.export-mode [data-edit-ui] {
  display: none !important;
}

.edit-mode .cinema-label[data-editable] {
  color: #ffffff;
  background: var(--cinema-one-blue);
}

.edit-mode .cinema-2 .cinema-label[data-editable] {
  color: #ffffff;
  background: var(--cinema-two-orange);
}

.is-tight {
  --row-h: 29px;
}

.is-ultra-tight {
  --row-h: 24px;
}

.is-tight .movie-title {
  font-size: 9.8px;
}

.is-ultra-tight .movie-title {
  font-size: 9px;
}

.is-tight .movie-title.long {
  font-size: 8.6px;
}

.is-ultra-tight .movie-title.long {
  font-size: 7.9px;
}

.is-tight .movie-title.extra-long {
  font-size: 8px;
}

.is-ultra-tight .movie-title.extra-long {
  font-size: 7.4px;
}

.is-tight .time-chip strong {
  font-size: 10.5px;
}

.is-ultra-tight .time-chip {
  min-height: 18px;
}

.is-ultra-tight .shochiku-mark {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  padding: 1px;
}

.is-ultra-tight .eirin-mark {
  height: 12px;
}

.is-ultra-tight .time-chip strong {
  font-size: 9.5px;
}

.is-ultra-tight .time-chip small {
  margin-top: 1px;
  font-size: 5.9px;
}

.is-ultra-tight .attribute-pill {
  padding: 2px 6px;
  font-size: 6.8px;
}

.is-tight .event-card {
  min-height: 38px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.poster-page.fit-compact {
  --row-h: 26px;
  padding: 7mm 8mm 5mm;
}

.fit-compact .poster-head {
  margin-bottom: 5px;
}

.fit-compact .brand-mark {
  width: 30px;
  height: 30px;
}

.fit-compact .brand-logo {
  width: 186px;
}

.fit-compact .brand-title {
  font-size: 14px;
}

.fit-compact .poster-qr-links {
  grid-template-columns: repeat(2, 42px);
  gap: 5px;
}

.fit-compact .poster-qr img {
  width: 36px;
  height: 36px;
}

.fit-compact .poster-qr figcaption {
  width: 48px;
  font-size: 5.7px;
}

.fit-compact .date-main {
  font-size: 18px;
}

.fit-compact .cinema-strip {
  margin-bottom: 5px;
}

.fit-compact .cinema-label {
  min-height: 28px;
  padding: 4px 12px 5px;
}

.fit-compact .cinema-main {
  font-size: 18px;
}

.fit-compact .screen-range {
  font-size: 18px;
}

.fit-compact .cinema-location {
  font-size: 9px;
}

.fit-compact .cinema-meta {
  min-width: 86px;
  padding: 5px 10px;
  font-size: 11px;
}

.fit-compact .schedule-section-label {
  min-height: 15px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.fit-compact .schedule-header {
  min-height: 20px;
  font-size: 9px;
}

.fit-compact .movie-title {
  font-size: 9.4px;
}

.fit-compact .shochiku-mark {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  padding: 1px;
}

.fit-compact .eirin-mark {
  height: 13px;
}

.fit-compact .time-chip {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 18px;
  min-height: 0;
  padding: 0 1px;
}

.fit-compact .late-cell .time-chip {
  width: auto;
}

.fit-compact .time-chip strong {
  font-size: 9.5px;
}

.fit-compact .time-chip small {
  margin-top: 0;
  font-size: 5.8px;
}

.fit-compact .special {
  margin-top: 4px;
}

.fit-compact .special-head {
  min-height: 18px;
}

.fit-compact .special-notice {
  padding-inline: 9px;
  font-size: 6.6px;
}

.fit-compact .event-card {
  min-height: 36px;
  padding: 3px 5px;
}

.fit-compact .poster-note {
  padding-top: 4px;
  font-size: 7px;
}

.fit-compact .poster-footer {
  gap: 2px;
  padding-top: 3px;
  color: #465255;
  font-size: 6.4px;
  line-height: 1.16;
}

.fit-compact .rating-legend img {
  height: 8.5px;
}

.poster-page.fit-ultra {
  --row-h: 22px;
  padding: 6mm 7mm 4mm;
}

.fit-ultra .poster-head {
  margin-bottom: 4px;
}

.fit-ultra .brand {
  gap: 7px;
}

.fit-ultra .brand-mark {
  width: 26px;
  height: 26px;
}

.fit-ultra .brand-logo {
  width: 178px;
}

.fit-ultra .poster-qr-links {
  grid-template-columns: repeat(2, 36px);
  gap: 4px;
}

.fit-ultra .poster-qr img {
  width: 31px;
  height: 31px;
}

.fit-ultra .poster-qr figcaption {
  width: 40px;
  font-size: 5px;
  line-height: 1.05;
}

.fit-ultra .brand-title {
  font-size: 12.5px;
}

.fit-ultra .brand-subtitle,
.fit-ultra .date-sub {
  display: none;
}

.fit-ultra .date-main {
  font-size: 16px;
}

.fit-ultra .cinema-strip {
  margin-bottom: 3px;
  font-size: 8px;
}

.fit-ultra .cinema-label {
  min-height: 23px;
  padding: 3px 9px 4px;
  border-radius: 5px;
  box-shadow: none;
  gap: 4px;
}

.fit-ultra .cinema-strip-main {
  gap: 7px;
}

.fit-ultra .cinema-main {
  font-size: 15px;
}

.fit-ultra .screen-range {
  font-size: 14px;
}

.fit-ultra .cinema-location {
  font-size: 7px;
}

.fit-ultra .cinema-meta {
  min-width: 78px;
  padding: 4px 8px;
  font-size: 9px;
}

.fit-ultra .schedule-section-label {
  min-height: 13px;
  padding: 1px 9px;
  font-size: 7px;
}

.fit-ultra .schedule-header {
  min-height: 17px;
  font-size: 8px;
}

.fit-ultra .movie-row > div,
.fit-ultra .schedule-header > span {
  padding-left: 4px;
  padding-right: 4px;
}

.fit-ultra .movie-row > .time-cell {
  padding-left: 2px;
  padding-right: 2px;
}

.fit-ultra .movie-title {
  font-size: 8.3px;
  line-height: 1.18;
}

.fit-ultra .movie-title.long {
  font-size: 7.3px;
}

.fit-ultra .movie-title.extra-long {
  font-size: 7px;
}

.fit-ultra .shochiku-mark {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.fit-ultra .eirin-mark {
  height: 11px;
}

.fit-ultra .attribute-pill {
  min-width: 34px;
  padding: 2px 5px;
  font-size: 6.2px;
}

.fit-ultra .attribute-pill.is-formal {
  font-size: 5.5px;
}

.fit-ultra .time-cell {
  gap: 2px;
}

.fit-ultra .time-chip {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 16px;
  min-height: 0;
  padding: 0 1px;
}

.fit-ultra .late-cell .time-chip {
  width: auto;
}

.fit-ultra .time-chip strong {
  font-size: 8.4px;
}

.fit-ultra .time-chip small {
  margin-top: 0;
  font-size: 5px;
}

.fit-ultra .time-chip.late {
  min-width: 43px;
  height: 18px;
  padding: 0 2px;
}

.fit-ultra .special {
  margin-top: 3px;
  border-width: 1px;
}

.fit-ultra .special-head {
  min-height: 17px;
}

.fit-ultra .special-title {
  height: 17px;
  min-height: 0;
  padding: 0 10px 1px;
  font-size: 6.8px;
}

.fit-ultra .special-notice {
  padding-inline: 8px;
  font-size: 6px;
}

.fit-ultra .event-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 138px);
  min-height: 30px;
  padding: 2px 5px;
}

.fit-ultra .event-copy {
  transform: translateY(-1px);
}

.fit-ultra .event-name {
  font-size: 6.8px;
}

.fit-ultra .event-meta,
.fit-ultra .event-kind {
  font-size: 5.8px;
}

.fit-ultra .event-time {
  min-width: 39px;
  padding: 3px 4px;
  font-size: 7px;
}

.fit-ultra .event-times {
  max-width: 138px;
  gap: 2px;
}

.fit-ultra .poster-note {
  display: block;
  color: #394548;
  font-size: 6.4px;
  line-height: 1.12;
}

.fit-ultra .poster-footer {
  gap: 2px;
  padding-top: 2px;
  color: #465255;
  font-size: 6px;
  line-height: 1.12;
}

.fit-ultra .rating-legend {
  gap: 2px 7px;
}

.fit-ultra .rating-legend img {
  height: 7.4px;
}

.poster-page.fit-micro {
  --row-h: 19px;
  padding: 5mm 6mm 3mm;
}

.fit-micro .poster-head {
  margin-bottom: 3px;
}

.fit-micro .brand-mark,
.fit-micro .brand-subtitle,
.fit-micro .date-sub,
.fit-micro .poster-note {
  display: none;
}

.fit-micro .poster-footer {
  gap: 0;
  padding-top: 1px;
  color: #465255;
  font-size: 5.8px;
  line-height: 1.08;
}

.fit-micro .rating-legend {
  flex-wrap: nowrap;
  gap: 2px 5px;
}

.fit-micro .rating-legend span {
  gap: 2px;
}

.fit-micro .rating-legend img {
  height: 7px;
}

.fit-micro .brand-logo {
  width: 146px;
}

.fit-micro .poster-qr-links {
  grid-template-columns: repeat(2, 32px);
  gap: 3px;
}

.fit-micro .poster-qr img {
  width: 28px;
  height: 28px;
}

.fit-micro .poster-qr figcaption {
  width: 34px;
  font-size: 4.4px;
  line-height: 1;
}

.fit-micro .brand-title {
  font-size: 11px;
}

.fit-micro .date-main {
  font-size: 14px;
}

.fit-micro .cinema-strip {
  margin-bottom: 2px;
  font-size: 7px;
}

.fit-micro .cinema-label {
  min-height: 19px;
  padding: 2px 7px 3px;
  border-radius: 4px;
  box-shadow: none;
  gap: 3px;
}

.fit-micro .cinema-main {
  font-size: 12px;
}

.fit-micro .screen-range {
  font-size: 12px;
}

.fit-micro .cinema-location {
  font-size: 6px;
}

.fit-micro .cinema-meta {
  min-width: 68px;
  padding: 3px 7px;
  font-size: 7.8px;
}

.fit-micro .schedule-grid {
  grid-template-columns: minmax(0, 2.72fr) 62px minmax(0, 0.9fr) minmax(0, 1.45fr) minmax(0, 0.85fr);
}

.fit-micro .schedule-section-label {
  min-height: 11px;
  padding: 1px 8px;
  font-size: 6px;
}

.fit-micro .schedule-header {
  min-height: 15px;
  font-size: 6.8px;
}

.fit-micro .movie-row > div,
.fit-micro .schedule-header > span {
  padding-left: 3px;
  padding-right: 3px;
}

.fit-micro .movie-row > .time-cell {
  padding-left: 1px;
  padding-right: 1px;
  padding-top: 0;
  padding-bottom: 0;
}

.fit-micro .movie-title {
  font-size: 7.5px;
  line-height: 1.12;
}

.fit-micro .movie-title.long {
  font-size: 6.6px;
}

.fit-micro .movie-title.extra-long {
  font-size: 6.4px;
}

.fit-micro .shochiku-mark {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.fit-micro .eirin-mark {
  height: 10px;
}

.fit-micro .attribute-pill {
  min-width: 30px;
  padding: 1px 3px;
  font-size: 5.7px;
}

.fit-micro .attribute-pill.is-formal {
  font-size: 5.2px;
}

.fit-micro .time-cell {
  gap: 1px;
}

.fit-micro .time-chip {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 12px;
  min-height: 0;
  padding: 0;
}

.fit-micro .late-cell .time-chip {
  width: auto;
}

.fit-micro .time-chip strong {
  font-size: 7.2px;
}

.fit-micro .time-chip small {
  margin-top: 0;
  font-size: 4.3px;
}

.fit-micro .time-chip.late {
  min-width: 38px;
  height: 13px;
  padding: 0 2px;
}

.fit-micro .special {
  margin-top: 2px;
  border-width: 1px;
}

.fit-micro .special-head {
  min-height: 13px;
}

.fit-micro .special-title {
  height: 13px;
  min-height: 0;
  padding: 0 8px 1px;
  font-size: 6px;
}

.fit-micro .special-notice {
  padding-inline: 6px;
  font-size: 4.9px;
}

.fit-micro .event-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 118px);
  min-height: 26px;
  padding: 2px 4px;
}

.fit-micro .event-copy {
  transform: translateY(-0.5px);
}

.fit-micro .event-name {
  font-size: 6.4px;
}

.fit-micro .event-meta,
.fit-micro .event-kind {
  display: none;
}

.fit-micro .event-time {
  min-width: 34px;
  padding: 2px 3px;
  font-size: 6px;
}

.fit-micro .event-times {
  max-width: 118px;
  gap: 2px;
}

.poster-page.event-fit-dense .event-grid:not(.is-single),
.poster-page.event-fit-ultra .event-grid:not(.is-single),
.poster-page.event-fit-micro .event-grid:not(.is-single) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-page.event-fit-dense .event-grid {
  --event-row-h: 34px;
}

.poster-page.event-fit-dense .event-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 88px);
  min-height: 34px;
  gap: 3px;
  padding: 3px 5px;
}

.poster-page.event-fit-dense .event-card.is-many-times {
  grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
}

.poster-page.event-fit-dense .event-card.is-many-times .event-times {
  max-width: 350px;
}

.poster-page.event-fit-dense .event-name {
  font-size: 7.5px;
  line-height: 1.12;
}

.poster-page.event-fit-dense .event-times {
  max-width: 88px;
  gap: 2px;
}

.poster-page.event-fit-dense .event-time {
  min-width: 38px;
  padding: 2px 3px;
  font-size: 6.8px;
}

.poster-page.event-fit-dense .event-time small {
  margin-top: 1px;
  font-size: 5px;
}

.poster-page.event-fit-ultra .event-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 76px);
  min-height: 29px;
  gap: 2px;
  padding: 2px 4px;
}

.poster-page.event-fit-ultra .event-grid {
  --event-row-h: 29px;
}

.poster-page.event-fit-ultra .event-card.is-many-times {
  grid-template-columns: minmax(0, 1fr) minmax(0, 318px);
}

.poster-page.event-fit-ultra .event-card.is-many-times .event-times {
  max-width: 318px;
}

.poster-page.event-fit-ultra .event-labels {
  margin-bottom: 2px;
}

.poster-page.event-fit-ultra .event-kind,
.poster-page.event-fit-ultra .event-labels .attribute-pill {
  font-size: 5.8px;
  padding: 1px 4px;
}

.poster-page.event-fit-ultra .event-name {
  -webkit-line-clamp: 1;
  font-size: 6.8px;
  line-height: 1.08;
}

.poster-page.event-fit-ultra .event-times {
  max-width: 76px;
  gap: 2px;
}

.poster-page.event-fit-ultra .event-time {
  min-width: 34px;
  padding: 2px 3px;
  border-radius: 4px;
  font-size: 6px;
}

.poster-page.event-fit-ultra .event-time small {
  margin-top: 1px;
  font-size: 4.6px;
}

.poster-page.event-fit-micro .event-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 68px);
  min-height: 24px;
  gap: 2px;
  padding: 1px 3px;
}

.poster-page.event-fit-micro .event-grid {
  --event-row-h: 24px;
}

.poster-page.event-fit-micro .event-card.is-many-times {
  grid-template-columns: minmax(0, 1fr) minmax(0, 292px);
}

.poster-page.event-fit-micro .event-card.is-many-times .event-times {
  max-width: 292px;
}

.poster-page.event-fit-micro .event-labels {
  margin-bottom: 1px;
}

.poster-page.event-fit-micro .event-kind {
  display: none;
}

.poster-page.event-fit-micro .event-labels .attribute-pill {
  font-size: 5px;
  padding: 1px 3px;
}

.poster-page.event-fit-micro .event-name {
  -webkit-line-clamp: 1;
  font-size: 6px;
  line-height: 1.05;
}

.poster-page.event-fit-micro .event-times {
  max-width: 68px;
  gap: 1px;
}

.poster-page.event-fit-micro .event-time {
  min-width: 31px;
  padding: 1px 2px;
  border-radius: 3px;
  font-size: 5.5px;
}

.poster-page.event-fit-micro .event-time small {
  margin-top: 0;
  font-size: 4.2px;
}

body.export-mode {
  background: #ffffff;
  height: auto;
  overflow: visible;
}

body.export-mode .app-shell {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: #ffffff;
}

body.export-mode .toolbar {
  display: none;
}

body.export-mode .drop-zone {
  display: none;
}

body.export-mode .poster-stack {
  display: block;
  padding: 0;
}

body.export-mode .poster-workspace {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.export-mode .poster-page {
  box-shadow: none;
}

body.export-mode .poster-footer {
  background: transparent;
}

body.export-mode .poster-workspace,
body.export-mode .poster-stack,
body.export-mode .poster-page {
  background: #fffefa;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    width: 210mm;
    height: auto;
    margin: 0;
    background: #ffffff;
    overflow: visible;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #ffffff;
  }

  .poster-workspace,
  .poster-stack,
  .poster-page {
    background: #fffefa !important;
  }

  .toolbar {
    display: none;
  }

  .drop-zone {
    display: none;
  }

  [data-edit-ui] {
    display: none !important;
  }

  .poster-stack {
    display: block;
    width: var(--poster-page-w);
    height: auto;
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  .poster-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .poster-page {
    width: var(--poster-page-w) !important;
    height: var(--poster-page-h) !important;
    min-height: var(--poster-page-h) !important;
    max-height: var(--poster-page-h) !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
    grid-template-areas:
      "head"
      "strip"
      "schedule"
      "special"
      "footer" !important;
    box-shadow: none;
    overflow: hidden !important;
    break-before: auto !important;
    page-break-before: auto !important;
    break-after: auto !important;
    page-break-after: auto !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .poster-page + .poster-page {
    break-before: page !important;
    page-break-before: always !important;
  }

  .poster-page.no-special {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    grid-template-areas:
      "head"
      "strip"
      "schedule"
      "footer" !important;
  }

  .schedule {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .special,
  .poster-footer {
    overflow: hidden;
  }

  .poster-footer,
  .rating-legend,
  .rating-legend span,
  .poster-note {
    color: #394548 !important;
    -webkit-text-fill-color: #394548 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .time-chip,
  .time-chip strong,
  .time-chip small,
  .time-chip.late,
  .time-chip.late small {
    color: #171a1c !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #171a1c !important;
  }

  .event-time {
    color: #ffffff !important;
    background: #10163f !important;
    border: 0.4pt solid #10163f !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    -webkit-text-fill-color: #ffffff !important;
  }

  .event-time span,
  .event-time small {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .event-time small {
    opacity: 0.78;
  }
}

@media screen and (max-width: 900px) {
  body {
    height: auto;
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
    background: #eef2f2;
  }

  .toolbar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #d8e2e0;
  }

  .poster-stack {
    align-items: start;
    overflow-x: auto;
    padding: 16px;
  }

  .poster-workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .drop-zone {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .file-list {
    justify-content: flex-start;
  }

  .file-checklist {
    grid-template-columns: 1fr;
  }

  .sidebar-section-files,
  .sidebar-section-date,
  .sidebar-section-edit,
  .sidebar-section-export,
  .sidebar-section-utility {
    grid-template-columns: 1fr;
  }
}
