:root {
  --shift-bg: #fffaf2;
  --shift-card: #fff;
  --shift-text: #2b201b;
  --shift-muted: #76675f;
  --shift-line: #ded6ce;
  --shift-green: #2f6f52;
  --shift-green-soft: #eaf4ee;
  --shift-sun: #fde7e9;
  --shift-sat: #e8f0fe;
  --shift-wish: #1a73e8;
  --shift-paid: #9a6700;
}

.shift-drawer-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: #4d392f;
  background: #fff7e8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.shift-page {
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--shift-text);
  background: var(--shift-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.shift-panel {
  min-width: 0;
  padding: 10px;
  border-top: 1px solid var(--shift-line);
  border-bottom: 1px solid var(--shift-line);
  background: var(--shift-card);
  box-shadow: 0 1px 3px rgba(60, 64, 67, .15);
}

.shift-monthbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.shift-month-nav {
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #f2eee8;
  color: var(--shift-green);
  font-size: 17px;
  font-weight: 900;
}

.shift-month-nav:active { background: #e7dfd6; }
.shift-month-title { text-align: center; color: var(--shift-text); font-size: 16px; font-weight: 900; }

.shift-summary {
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid #cfe2d6;
  background: var(--shift-green-soft);
  color: #234d3c;
  font-size: 12px;
}

.shift-summary-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  min-height: 20px;
}

.shift-summary-row span { font-weight: 900; }
.shift-summary-row strong { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.shift-guide { margin-bottom: 7px; color: var(--shift-muted); font-size: 10px; text-align: center; }

.shift-week,
.shift-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--shift-line);
}

.shift-week { border-top: 1px solid var(--shift-line); }
.shift-week div {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--shift-line);
  border-bottom: 1px solid var(--shift-line);
  background: #f8f7f5;
  color: var(--shift-muted);
  font-size: 11px;
  font-weight: 900;
}

.shift-week .sun { color: #c62828; background: var(--shift-sun); }
.shift-week .sat { color: #1565c0; background: var(--shift-sat); }

.shift-calendar { border-bottom: 1px solid var(--shift-line); }
.shift-day,
.shift-blank {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--shift-line);
  background: #fff;
}

.shift-day {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--shift-text);
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.shift-day.sun,
.shift-day.holiday { background: var(--shift-sun); }
.shift-day.sat { background: var(--shift-sat); }
.shift-day.saving { opacity: .5; pointer-events: none; }
.shift-day:disabled { cursor: default; opacity: .62; }
.shift-day-number { position: absolute; top: 4px; left: 5px; font-size: 10px; line-height: 1; }
.shift-day.sun .shift-day-number,
.shift-day.holiday .shift-day-number { color: #c62828; font-weight: 900; }
.shift-day.sat .shift-day-number { color: #1565c0; font-weight: 900; }
.shift-day-mark { font-size: 15px; font-weight: 900; line-height: 1; }
.shift-day.is-wish .shift-day-mark { color: var(--shift-wish); }
.shift-day.is-paid .shift-day-mark { color: var(--shift-paid); }
.shift-day.is-rest .shift-day-mark { color: #c62828; }

.shift-status {
  min-height: 18px;
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid var(--shift-line);
  background: #fff;
  color: var(--shift-muted);
  font-size: 10px;
}

.shift-status.is-warning {
  border-color: #d8a84e;
  background: #fff8df;
  color: #805c12;
  font-weight: 900;
}

.shift-status.is-closed {
  border-color: #d8ccc4;
  background: #f2eee9;
  color: #594a42;
  font-weight: 900;
  line-height: 1.45;
}

@media (min-width: 641px) {
  .shift-panel { padding: 12px; }
  .shift-monthbar { grid-template-columns: 60px minmax(0, 1fr) 60px; }
  .shift-month-title { font-size: 20px; }
  .shift-day-mark { font-size: 18px; }
}
