:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-dark: #2f2f31;
  --surface-dark-2: #3a3a3d;
  --text: #1d1d1f;
  --text-light: #ffffff;
  --muted: #6f6f73;
  --border: #ddd;
  --primary: #2f6fed;
  --success: #197a41;
  --error: #a22836;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar, .public-header {
  background: #2f2f31;
  color: var(--text-light);
  padding: 16px 22px;
}
.topbar h1, .public-header h1 { margin: 0; font-size: 32px; }
.topbar p, .public-header p { margin: 4px 0 0; color: #d9d9dd; }
.topnav {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.topnav a { color: #fff; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.public-container { max-width: 1380px; }
.public-body { background: #fff; }
.app-shell { min-height: 100vh; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.narrow { max-width: 520px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
textarea { resize: vertical; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.flash-success { background: #e6f5eb; color: var(--success); }
.flash-error { background: #fbeaec; color: var(--error); }
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  vertical-align: top;
}

.sort-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.sort-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.sort-link.active {
  color: var(--primary);
}

.plan-table select { min-width: 180px; }
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.check input { width: auto; }
/* Stabilere Checkbox-Darstellung im Speisenformular.
   Die globale Input-Gestaltung darf nicht auf Checkboxen angewendet bleiben. */
input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  accent-color: var(--primary);
  cursor: pointer;
}

.dish-flags {
  border: 0;
  margin: 0;
  padding: 0;
}

.dish-flags legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-weight: 600;
}

.option-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
}

.option-check:hover {
  background: #f3f3f3;
}

.option-check .check-input {
  flex: 0 0 auto;
}

.option-check .check-label {
  display: inline;
  gap: 0;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.link-list {
  margin: 0;
  padding-left: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link-danger { color: var(--error); }
.muted-action { color: var(--muted); }
.public-title-block {
  margin: 18px 0 28px;
}
.public-title-block h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.public-title-block p { color: var(--muted); margin: 0; }
.day-block { margin-bottom: 34px; }
.day-block h3 { font-size: 22px; margin-bottom: 18px; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.single-slot { max-width: 420px; }
.menu-card {
  background: var(--surface-dark-2);
  color: #fff;
  border-radius: 4px;
  padding: 22px;
  min-height: 200px;
}
.menu-card h3, .menu-card h4 {
  margin: 0 0 18px;
  font-size: 20px;
}
.menu-card p {
  white-space: pre-line;
  line-height: 1.55;
  font-size: 18px;
}
.line {
  height: 2px;
  background: rgba(255,255,255,.9);
  margin-bottom: 22px;
}
@media (max-width: 800px) {
  .topbar h1, .public-header h1 { font-size: 26px; }
  .container { padding: 18px; }
  .menu-card { min-height: auto; }
}

.plan-entry-name { margin-bottom: 10px; line-height: 1.45; }
.plan-entry-empty { margin-bottom: 10px; color: var(--muted); }
.plan-compose-link { display: inline-block; margin-top: 4px; font-weight: 600; }

.public-brand-text { font-size: 24px; font-weight: 700; line-height: 1; }

.no-header-view { margin-top: 0; }

.single-day-view { padding-top: 0; }
.single-day-view .menu-grid { grid-template-columns: 1fr; }
.single-day-view .menu-card { min-height: auto; }

.today-page-shell {
  background: #3a3a3a;
  min-height: 100vh;
  color: #fff;
  padding: 0;
}
.today-page-shell .today-day-block {
  margin: 0;
  padding: 16px 14px 20px;
}
.today-page-shell .menu-grid.single-slot {
  display: grid;
  grid-template-columns: 1fr;
}
.today-page-shell .menu-card {
  background: #3a3a3a;
  color: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0 10px 14px;
  min-height: calc(100vh - 30px);
}
.today-page-shell .menu-card .line {
  margin: 20px 0 26px;
}
.today-page-shell .menu-card p {
  margin-bottom: 22px;
}

.today-slot-body {
  background: var(--surface-dark-2);
  color: #fff;
}
.today-slot-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.today-single-grid {
  display: block;
  max-width: none;
}
.today-slot-card {
  width: 100%;
  min-height: 100vh;
  background: var(--surface-dark-2);
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
}
.today-slot-card p {
  margin: 0 0 24px;
}

.screen-body {
  margin: 0;
  background: #fff;
  color: #152333;
  overflow: hidden;
}
.screen-container {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.screen-menu-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}
.screen-menu-inner {
  width: calc(100vw - 120px);
  max-width: 1800px;
  height: calc(100vh - 120px);
  max-height: 960px;
  margin: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.screen-menu-header {
  width: 100%;
  height: 100px;
  flex: 0 0 100px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 60px;
}
.screen-menu-title {
  justify-self: start;
  font-size: clamp(56px, 4vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #152333;
}
.screen-menu-logo {
  justify-self: end;
  display: block;
  width: min(320px, 24vw);
  max-height: 100px;
  object-fit: contain;
}
.screen-menu-separator {
  width: 100%;
  height: 120px;
  flex: 0 0 120px;
  display: flex;
  align-items: center;
}
.screen-menu-separator::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #d5dce3;
}
.screen-menu-list {
  width: 100%;
  display: grid;
  row-gap: clamp(42px, 4.2vh, 70px);
}
.screen-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: clamp(24px, 3vw, 72px);
  min-height: clamp(56px, 8.4vh, 112px);
}
.screen-menu-name {
  font-size: clamp(42px, 3.18vw, 68px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.screen-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, .9vw, 18px);
  min-width: 0;
  flex-wrap: wrap;
}
.screen-badge {
  --badge-color: #4f8f47;
  --badge-bg: #eef8ec;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, .6vw, 12px);
  min-height: clamp(44px, 2.9vw, 58px);
  padding: clamp(5px, .35vw, 8px) clamp(10px, .8vw, 16px) clamp(5px, .35vw, 8px) clamp(7px, .45vw, 10px);
  border: 1.5px solid var(--badge-color);
  border-radius: 999px;
  background: #fff;
  color: #173047;
  box-shadow: 0 2px 8px rgba(16, 38, 56, .08);
  flex: 0 0 auto;
}
.screen-badge-icon {
  width: clamp(28px, 1.9vw, 38px);
  height: clamp(28px, 1.9vw, 38px);
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.screen-badge-icon svg {
  width: 68%;
  height: 68%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.screen-badge-label {
  display: inline-block;
  font-size: clamp(11px, .88vw, 18px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.screen-badge-regional {
  --badge-color: #2f6da7;
  --badge-bg: #edf5fd;
}
.screen-badge-vegetarian {
  --badge-color: #7cae31;
  --badge-bg: #f3f9e7;
}
.screen-badge-vegan {
  --badge-color: #2f8d4c;
  --badge-bg: #eaf8ef;
}
.screen-badge-glutenfree {
  --badge-color: #af8422;
  --badge-bg: #fbf4e4;
}
.screen-badge-lactosefree {
  --badge-color: #4a82b7;
  --badge-bg: #edf4fb;
}
.screen-badge-bio {
  --badge-color: #5b8f3c;
  --badge-bg: #eef7e8;
}


.screen-day-body {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.screen-day-container {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 18px;
}
.screen-day-page {
  width: 100%;
  height: 100%;
}
.screen-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  height: 100%;
}
.screen-day-card {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: clamp(14px, 1.7vw, 22px);
  display: flex;
  flex-direction: column;
}
.screen-day-card h4 {
  font-size: clamp(24px, 2.9vw, 36px);
  margin: 0 0 clamp(8px, 1.1vh, 14px);
  flex: 0 0 auto;
}
.screen-day-card .line {
  margin-bottom: clamp(32px, 4.4vh, 56px);
  flex: 0 0 auto;
}
.screen-day-card p {
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.26;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-height: 936px) {
  .screen-day-container {
    padding: 12px;
  }
  .screen-day-grid {
    gap: 12px;
  }
  .screen-day-card {
    padding: 14px;
  }
  .screen-day-card h4 {
    font-size: clamp(23px, 2.65vw, 31px);
    margin-bottom: 6px;
  }
  .screen-day-card .line {
    margin-bottom: 24px;
  }
  .screen-day-card p {
    font-size: clamp(18px, 2.1vw, 26px);
    line-height: 1.16;
  }
}
@media (max-height: 760px) {
  .screen-day-card p {
    font-size: clamp(17px, 1.85vw, 24px);
    line-height: 1.12;
  }
}
@media (max-width: 760px) {
  .screen-day-body {
    overflow: auto;
  }
  .screen-day-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .screen-day-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .screen-day-card {
    min-height: 220px;
  }
}

.screen-empty {
  padding: 32px;
  font-size: clamp(34px, 3vw, 58px);
  line-height: 1.2;
}
@media (min-width: 1600px) {
  .screen-menu-list {
    row-gap: 58px;
  }
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.card-title-row h2 {
  margin: 0 0 6px;
}
.section-subtitle {
  margin: 0;
  color: var(--muted);
}
.dashboard-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.dashboard-day-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  background: #fafafa;
  min-height: 180px;
}
.dashboard-day-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.dashboard-day-card h3 span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.dashboard-menu-entry {
  border-top: 1px solid #e8e8e8;
  padding-top: 12px;
  margin-top: 12px;
}
.dashboard-menu-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.dashboard-menu-entry strong {
  display: block;
  margin-bottom: 6px;
}
.dashboard-menu-entry p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.45;
}
.dashboard-empty {
  margin: 0;
  color: var(--muted);
}


.public-week-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 28px;
}
.public-week-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
.public-week-logo {
  display: block;
  width: min(280px, 34vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.public-week-separator {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  margin: -18px 0 28px;
}
.public-week-separator::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #d5dce3;
}
@media (max-width: 800px) {
  .public-week-separator {
    height: 34px;
    margin: -8px 0 22px;
  }
}

@media (max-width: 800px) {
  .public-week-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-week-logo {
    order: 1;
    width: min(240px, 62vw);
  }
  .public-week-title {
    order: 2;
  }
}


.dish-search-form label {
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}
.table-empty {
  color: var(--muted);
  font-style: italic;
}


.form-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.closure-public-block {
  margin-bottom: 34px;
}
.closure-public-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.closure-public-card p {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.25;
}

.screen-day-closure-wrap {
  width: 100%;
  height: 100%;
  display: grid;
}
.screen-day-closure-card {
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.screen-day-closure-card p {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.15;
  margin: 0;
}
@media (max-height: 936px) {
  .screen-day-closure-card p {
    font-size: clamp(30px, 4.4vw, 62px);
    line-height: 1.1;
  }
}


.preannouncement-banner {
  margin: -8px 0 28px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff8df;
  border: 1px solid #ead58f;
  color: #3b2f05;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  line-height: 1.35;
  font-size: clamp(17px, 1.6vw, 22px);
}
.preannouncement-banner strong,
.screen-day-preannouncement strong,
.screen-preannouncement-footer strong {
  margin-right: .35em;
}
.screen-day-page {
  display: flex;
  flex-direction: column;
}
.screen-day-grid {
  flex: 1 1 auto;
  min-height: 0;
}
.screen-day-preannouncement {
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff8df;
  border: 1px solid #ead58f;
  color: #3b2f05;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.2;
  text-align: center;
}
.screen-menu-page.has-preannouncement {
  padding: 0;
}
.screen-preannouncement-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: clamp(12px, 1.6vh, 22px) clamp(18px, 2.2vw, 34px);
  background: #fff8df;
  border-top: 2px solid #ead58f;
  color: #3b2f05;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 -4px 14px rgba(0,0,0,.08);
}
@media (max-height: 936px) {
  .screen-day-preannouncement {
    margin-top: 8px;
    padding: 8px 14px;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.12;
  }
}

.preannouncement-banner-bottom {
  margin-top: 18px;
  margin-bottom: 18px;
}


.field-hint {
  color: var(--muted);
  font-weight: 400;
  font-size: .92em;
}
.dish-image-current {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.dish-image-current img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f4f4f4;
}

.screen-menu-page {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.screen-menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1165fr) minmax(0, 575fr);
  gap: 60px;
  width: 100%;
  max-width: 1800px;
  height: 740px;
  flex: 0 0 740px;
  margin-top: 0;
}
.screen-menu-content {
  width: 100%;
  height: 740px;
  overflow: hidden;
}
.screen-menu-layout .screen-menu-list {
  height: 100%;
  width: 100%;
  align-content: start;
}
.screen-menu-image-panel {
  width: 100%;
  max-width: 575px;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 575px;
  align-self: start;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-menu-image-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform-origin: center center;
}
@media (max-width: 1200px) {
  .screen-menu-inner {
    width: calc(100vw - 64px);
    height: calc(100vh - 64px);
    margin: 32px;
  }
  .screen-menu-header {
    gap: 32px;
  }
  .screen-menu-separator {
    height: 64px;
    flex-basis: 64px;
  }
  .screen-menu-layout {
    gap: 32px;
    max-width: 100%;
  }
}


.dish-image-fields {
  display: grid;
  gap: 10px;
}
.dish-image-remove {
  margin-left: auto;
  white-space: nowrap;
}


.dish-crop-editor {
  display: grid;
  gap: 10px;
  max-width: 430px;
}
.dish-crop-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.dish-crop-stage {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: #e9e9e9;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 999px rgba(0,0,0,.04), var(--shadow);
}
.dish-crop-stage.is-dragging {
  cursor: grabbing;
}
.dish-crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform-origin: center center;
}
.dish-crop-stage::before,
.dish-crop-stage::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto 0;
  border-top: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 calc(33.333% * 2) 0 rgba(255,255,255,.75);
  pointer-events: none;
}
.dish-crop-stage::after {
  inset: 0 auto 0 33.333%;
  border-top: 0;
  border-left: 1px solid rgba(255,255,255,.75);
  box-shadow: calc(33.333% * 2) 0 0 rgba(255,255,255,.75);
}
.dish-crop-frame-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.dish-crop-values {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}


.text-muted {
  color: var(--muted);
}
.placeholder-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}
.placeholder-card h2 {
  margin-bottom: 8px;
}
.placeholder-crop-editor {
  display: grid;
  gap: 10px;
}
.placeholder-crop-stage {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: #e9e9e9;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: var(--shadow);
}
.placeholder-crop-stage.is-dragging {
  cursor: grabbing;
}
.placeholder-crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform-origin: center center;
}
.placeholder-crop-stage::before,
.placeholder-crop-stage::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto 0;
  border-top: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 calc(33.333% * 2) 0 rgba(255,255,255,.75);
  pointer-events: none;
}
.placeholder-crop-stage::after {
  inset: 0 auto 0 33.333%;
  border-top: 0;
  border-left: 1px solid rgba(255,255,255,.75);
  box-shadow: calc(33.333% * 2) 0 0 rgba(255,255,255,.75);
}
.screen-placeholder-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.screen-placeholder-fill img,
.screen-slot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
}
.screen-day-card {
  position: relative;
}
.screen-slot-placeholder {
  width: 100%;
  max-width: 1800px;
  height: 800px;
  margin-top: 60px;
  overflow: hidden;
  background: #fff;
}


.today-slot-closure-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.today-slot-closure-card p {
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.18;
  max-width: 1200px;
}


.image-scale-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.image-scale-control input[type="range"] {
  width: min(100%, 330px);
}
.placeholder-crop-editor .image-scale-control input[type="range"] {
  width: min(100%, 420px);
}

.screen-menu-inner > .screen-empty {
  width: 100%;
  max-width: 1800px;
  height: 740px;
  flex: 0 0 740px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}


.screen-full-placeholder-page {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: 60px;
  background: #fff;
  overflow: hidden;
}
.screen-full-placeholder-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
}


.announcement-line + .announcement-line {
  margin-top: .35em;
}
.screen-preannouncement-footer .announcement-line + .announcement-line,
.screen-day-preannouncement .announcement-line + .announcement-line {
  margin-top: .25em;
}
.screen-full-placeholder-page.has-announcement-footer {
  padding-bottom: clamp(72px, 9vh, 118px);
}


.dashboard-notice-grid {
  margin-top: 22px;
}
.dashboard-notice-list {
  display: grid;
  gap: 14px;
}
.dashboard-notice-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.dashboard-notice-item strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--text);
}
.dashboard-notice-item p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.35;
}
.dashboard-notice-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.dashboard-notice-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff8df;
  border: 1px solid #ead58f;
  color: #3b2f05;
  font-weight: 700;
}


.screen-day-white-body {
  background: #fff;
  color: #000;
}
.screen-day-white-body .screen-day-container {
  background: #fff;
}
.screen-day-white-body .screen-day-card {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}
.screen-day-white-body .screen-day-card h4,
.screen-day-white-body .screen-day-card p {
  color: #000;
}
.screen-day-white-body .screen-day-card .line {
  background: #000;
}
.screen-day-white-body .screen-day-preannouncement {
  background: #fff;
  border-color: #000;
  color: #000;
  box-shadow: none;
}
.screen-day-white-body .screen-day-preannouncement strong,
.screen-day-white-body .screen-day-preannouncement span {
  color: #000;
}
.screen-day-white-body .screen-day-closure-card {
  background: #fff;
  color: #000;
  border-color: #000;
}


.today-slot-body {
  background: #fff;
  color: #000;
}
.today-slot-container {
  background: #fff;
}
.today-slot-body .today-slot-card {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}
.today-slot-body .today-slot-card h4,
.today-slot-body .today-slot-card p {
  color: #000;
}
.today-slot-body .today-slot-card .line {
  background: #000;
}
.today-slot-body .today-slot-closure-card {
  background: #fff;
  color: #000;
  border-color: #000;
}


.screen-day-body {
  background: #fff;
  color: #000;
}
.screen-day-body .screen-day-container {
  background: #fff;
}
.screen-day-body .screen-day-card {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}
.screen-day-body .screen-day-card h4,
.screen-day-body .screen-day-card p {
  color: #000;
}
.screen-day-body .screen-day-card .line {
  background: #000;
}


.screen-day-placeholder-card {
  padding: 0;
  overflow: hidden;
}
.screen-day-placeholder-card .screen-placeholder-fill {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
}
.screen-day-placeholder-card .screen-placeholder-fill img {
  width: 100%;
  height: 100%;
  display: block;
}


.today-slot-placeholder-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.today-slot-placeholder-card .screen-placeholder-fill {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}
.today-slot-placeholder-card .screen-placeholder-fill img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: block;
}

.statistics-header-card {
  overflow: hidden;
}
.statistics-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.statistics-header-row h2 {
  margin-top: 0;
}
.statistics-period-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.statistics-period-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}
.statistics-period-tab:hover {
  text-decoration: none;
  border-color: var(--primary);
}
.statistics-period-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.statistics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.statistics-kpi {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #f7f9fd);
  border: 1px solid #e5e9f1;
  box-shadow: 0 6px 18px rgba(27, 49, 82, .07);
}
.statistics-kpi-label,
.statistics-kpi-note {
  display: block;
}
.statistics-kpi-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.statistics-kpi-value {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}
.statistics-kpi-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.statistics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.statistics-chart-card {
  min-width: 0;
}
.statistics-chart-card h2 {
  margin-bottom: 6px;
}
.statistics-bar-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.statistics-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(120px, 1.8fr) 48px;
  align-items: center;
  gap: 12px;
}
.statistics-bar-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.statistics-bar-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.statistics-bar-track,
.statistics-slot-track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}
.statistics-bar-track {
  height: 18px;
}
.statistics-bar {
  width: var(--bar-width);
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  transition: width .3s ease;
}
.statistics-bar-menu {
  background: linear-gradient(90deg, #2f6fed, #6b9cff);
}
.statistics-bar-dish {
  background: linear-gradient(90deg, #198754, #65bb8a);
}
.statistics-bar-value {
  text-align: right;
  font-size: 15px;
}
.statistics-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.statistics-slot-card {
  padding: 16px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: #fbfcfe;
}
.statistics-slot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.statistics-slot-track {
  height: 10px;
}
.statistics-slot-bar {
  width: var(--bar-width);
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}
.statistics-slot-menu1 { background: #2f6fed; }
.statistics-slot-menu2 { background: #6f42c1; }
.statistics-slot-menu3 { background: #d97706; }
.statistics-slot-tageshit { background: #198754; }
.statistics-table td:first-child {
  min-width: 280px;
}
.statistics-table th:not(:first-child),
.statistics-table td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .statistics-kpi-grid,
  .statistics-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statistics-chart-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .statistics-kpi-grid,
  .statistics-slot-grid {
    grid-template-columns: 1fr;
  }
  .statistics-bar-row {
    grid-template-columns: 1fr 44px;
  }
  .statistics-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .statistics-bar-value {
    grid-column: 2;
    grid-row: 1;
  }
}

.statistics-custom-range-form {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e5e9f1;
}
.statistics-custom-range-form .btn {
  min-height: 42px;
}
.statistics-range-error {
  margin-top: 16px;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .statistics-custom-range-form {
    grid-template-columns: 1fr;
  }
  .statistics-custom-range-form .btn {
    width: 100%;
  }
}

.statistics-menu-chart {
  margin-top: 24px;
  padding: 18px 18px 14px;
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
}
.statistics-menu-chart-plot {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(10, minmax(28px, 1fr));
  align-items: end;
  gap: clamp(6px, 1vw, 14px);
  padding: 18px 8px 8px;
  border-bottom: 1px solid #cfd7e3;
  background-image: linear-gradient(to top, rgba(47,111,237,.08) 1px, transparent 1px);
  background-size: 100% 25%;
}
.statistics-menu-chart-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 6px;
}
.statistics-menu-chart-value {
  font-size: 12px;
  white-space: nowrap;
}
.statistics-menu-chart-bar-wrap {
  width: min(100%, 44px);
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.statistics-menu-chart-bar {
  width: 100%;
  height: var(--chart-height);
  min-height: 4px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #6b9cff 0%, #2f6fed 100%);
  box-shadow: 0 5px 12px rgba(47,111,237,.22);
}
.statistics-menu-chart-number {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eefb;
  color: #244d9c;
  font-size: 12px;
  font-weight: 700;
}
.statistics-menu-chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.statistics-menu-chart-legend li {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.statistics-menu-chart-legend-number {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eefb;
  color: #244d9c;
  font-weight: 700;
}
.statistics-menu-ranking-list {
  margin-top: 26px;
}
@media (max-width: 760px) {
  .statistics-menu-chart {
    overflow-x: auto;
  }
  .statistics-menu-chart-plot {
    min-width: 620px;
  }
  .statistics-menu-chart-legend {
    min-width: 620px;
    grid-template-columns: 1fr;
  }
}

.login-body {
  min-height: 100vh;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.login-container {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.login-container .flash {
  width: min(100%, 520px);
}
.login-card {
  width: min(100%, 520px);
  margin: 0;
}
@media (max-width: 560px) {
  .login-container {
    padding: 16px;
  }
}
@media (max-height: 620px) {
  .login-container {
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    overflow-y: auto;
  }
}
