:root {
  --shift-ink: #232845;
  --shift-heading: #545477;
  --shift-muted: #858ca8;
  --shift-line: #dfe4ee;
  --shift-soft: #f5f7fb;
  --shift-nav: #eef1f7;
  --shift-primary: #545477;
  --shift-accent: #ef898f;
  --shift-mint: #35aaa0;
  --shift-warning: #d4881f;
  --shift-danger: #d94a57;
  --shift-event: #6f63b5;
  --shift-event-soft: #f3f1ff;
}

.shift-page {
  min-width: 0;
  padding: 0 30px 64px;
  color: var(--shift-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.shift-page *, .shift-page *::before, .shift-page *::after { box-sizing: border-box; }
/* font ショートハンドは font-weight まで巻き戻すため使わない(.shift-ghost 等の 700 が効かなくなる) */
.shift-page button, .shift-page input, .shift-page select, .shift-page textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
.shift-page button { cursor: pointer; }

.shift-shell { width: min(100%, 1580px); margin: 0 auto; }
.shift-page-head {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid #edf1f5;
}
.shift-page-head h1 { margin: 0; color: var(--shift-heading); font-size: 34px; line-height: 1.35; letter-spacing: 0; }
.shift-page-head__actions { display: flex; align-items: center; gap: 10px; }
.shift-save, .shift-primary, .shift-secondary, .shift-ghost, .shift-danger-button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
}
.shift-save, .shift-primary { color: #fff; background: #5645a8; }
.shift-save { min-width: 112px; }
.shift-secondary { color: var(--shift-heading); background: #fff; border-color: #cfd6e4; }
.shift-ghost { color: var(--shift-heading); background: transparent; border-color: #d7ddea; font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 700; line-height: 1; }
.shift-danger-button { color: var(--shift-danger); background: #fff; border-color: #efc7cc; }
.shift-save:hover, .shift-primary:hover { background: #473892; }
.shift-secondary:hover, .shift-ghost:hover { background: #f5f6fa; }
.shift-save[disabled] { opacity: .55; cursor: default; }

.shift-nav {
  display: flex;
  gap: 3px;
  margin: 28px 0;
  padding: 5px;
  overflow-x: auto;
  background: var(--shift-nav);
  border-radius: 7px;
  scrollbar-width: thin;
}
.shift-nav a {
  flex: 1 0 130px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 5px;
  color: var(--shift-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.shift-nav a:hover { background: rgba(255,255,255,.7); }
.shift-nav a.is-active { color: #fff; background: var(--shift-primary); }

.shift-section { margin-top: 28px; }
.shift-section + .shift-section { margin-top: 38px; }
.shift-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.shift-section-head p { margin: 0 0 4px; color: var(--shift-muted); font-size: 12px; font-weight: 700; }
.shift-section-head h2 { margin: 0; color: var(--shift-heading); font-size: 22px; line-height: 1.45; letter-spacing: 0; }
.shift-section-head__tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.shift-help { margin: 5px 0 0; color: #737b99; font-size: 13px; line-height: 1.7; }

.shift-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  border: 1px solid var(--shift-line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.shift-summary__item { min-height: 98px; padding: 19px 20px; border-right: 1px solid var(--shift-line); }
.shift-summary__item:last-child { border-right: 0; }
.shift-summary__item span { display: block; color: var(--shift-muted); font-size: 12px; font-weight: 700; }
.shift-summary__item strong { display: block; margin-top: 7px; font-family: Lato, "Noto Sans JP", sans-serif; font-size: 27px; line-height: 1; }
.shift-summary__item em { margin-left: 4px; font-size: 13px; font-style: normal; color: var(--shift-muted); }
.shift-summary__item.is-alert strong { color: var(--shift-danger); }
.shift-summary__item.is-unread strong { color: #5645a8; }

.shift-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .7fr); align-items: start; gap: 24px; }
.shift-panel { border: 1px solid var(--shift-line); border-radius: 7px; background: #fff; }
.shift-check-panel { min-width: 0; overflow: hidden; }
.shift-check-panel .shift-table-wrap { border: 0; border-radius: 0; }
.shift-overview-grid .shift-status-chart { min-height: 0; grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 22px 20px; }
.shift-overview-grid .shift-status-donut { width: 118px; height: 118px; }
.shift-overview-grid .shift-status-donut::before { inset: 15px; }
.shift-overview-grid .shift-status-legend { width: 100%; }
.shift-panel__head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--shift-line); }
.shift-panel__head h3 { margin: 0; color: var(--shift-heading); font-size: 17px; letter-spacing: 0; }
.shift-panel__head a { color: #5645a8; font-size: 13px; font-weight: 700; text-decoration: none; }
.shift-panel__date { display: block; margin-top: 3px; color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-event-overview {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border: 1px solid #d9d4f2;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.shift-event-overview__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--shift-event-soft);
}
.shift-event-overview__icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--shift-event);
  font-size: 11px;
}
.shift-event-overview h2, .shift-event-overview p { margin: 0; letter-spacing: 0; }
.shift-event-overview h2 { color: var(--shift-heading); font-size: 15px; }
.shift-event-overview p { margin-top: 3px; color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-event-overview__list { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shift-event-overview__list a {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 2px 10px;
  padding: 10px 16px;
  border-left: 1px solid var(--shift-line);
  color: var(--shift-heading);
  text-decoration: none;
}
.shift-event-overview__list a:hover { background: #faf9ff; }
.shift-event-overview__list span, .shift-event-overview__list em { color: var(--shift-muted); font-size: 10px; font-style: normal; font-weight: 700; }
.shift-event-overview__list strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.shift-event-overview__list em { grid-column: 2; grid-row: 1; color: var(--shift-event); }
.shift-event-overview__list b { grid-column: 2; grid-row: 2; align-self: center; color: var(--shift-event); font-size: 20px; line-height: 1; }
.shift-event-table-row th {
  height: 30px !important;
  min-height: 30px;
  padding: 3px !important;
  border-bottom: 0;
  background: #fff !important;
}
.shift-event-table-row .shift-event-table-label {
  color: var(--shift-event);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}
.shift-event-table-row .shift-event-table-cell,
.shift-event-table-row .shift-event-table-empty {
  width: auto !important;
  min-width: 0 !important;
}
.shift-event-table-bar,
.shift-event-table-more {
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid #cfc8ee;
  border-left: 4px solid var(--shift-event);
  border-radius: 4px;
  color: var(--shift-event);
  background: var(--shift-event-soft);
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
}
.shift-event-table-bar:hover { border-color: var(--shift-event); background: #ebe7fc; }
.shift-event-table-bar > span { flex: 0 0 auto; font-size: 7px; }
.shift-event-table-bar strong {
  min-width: 0;
  overflow: hidden;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shift-event-table-more { justify-content: center; border-left-width: 1px; font-weight: 700; }
.shift-schedule-table thead .shift-event-table-row th,
.shift-staffing-table thead .shift-event-table-row th { top: 49px; z-index: 5; }
.shift-schedule-table thead .shift-event-table-row.is-lane-2 th,
.shift-staffing-table thead .shift-event-table-row.is-lane-2 th { top: 79px; }
.shift-schedule-table thead .shift-event-table-row.is-overflow th,
.shift-staffing-table thead .shift-event-table-row.is-overflow th { top: 109px; }
.shift-schedule-table thead .shift-event-table-row th:first-child,
.shift-staffing-table thead .shift-event-table-row th:first-child { z-index: 7; }
.shift-event-detail {
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid #d9d4f2;
  border-left: 4px solid var(--shift-event);
  border-radius: 7px;
  background: var(--shift-event-soft);
}
.shift-event-detail__title { display: flex; align-items: center; gap: 8px; color: var(--shift-event); font-size: 12px; }
.shift-event-detail__title span { font-size: 9px; }
.shift-event-detail ul { margin: 9px 0 0; padding: 0; list-style: none; }
.shift-event-detail li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid #e2def5; }
.shift-event-detail li + li { margin-top: 7px; }
.shift-event-detail li strong { min-width: 0; color: var(--shift-heading); font-size: 13px; line-height: 1.5; }
.shift-event-detail li span { flex: 0 0 auto; color: var(--shift-muted); font-size: 10px; font-weight: 700; }

@media (max-width: 768px) {
  .shift-event-overview { grid-template-columns: 1fr; }
  .shift-event-overview__list { grid-template-columns: 1fr; }
  .shift-event-overview__list a { border-top: 1px solid var(--shift-line); border-left: 0; }
  .shift-event-detail li { align-items: flex-start; flex-direction: column; gap: 2px; }
}


.shift-shortage-summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--shift-line);
  background: #fff6f7;
  color: var(--shift-heading);
  font-size: 13px;
}
.shift-shortage-summary strong, .shift-shortage-summary span { font-weight: 700; }
.shift-shortage-summary b { color: var(--shift-danger); font-family: Lato, "Noto Sans JP", sans-serif; font-size: 21px; }
.shift-shortage-list { padding: 0 18px; }
.shift-shortage-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 74px 88px 88px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e9ecf2;
  font-size: 12px;
}
.shift-shortage-row:last-child { border-bottom: 0; }
.shift-shortage-row time { color: var(--shift-heading); font-size: 14px; font-weight: 700; }
.shift-shortage-row span { color: var(--shift-muted); }
.shift-shortage-row span b { color: var(--shift-ink); font-size: 14px; }
.shift-shortage-row > strong { color: var(--shift-danger); font-size: 14px; }
.shift-shortage-row .shift-danger-button { min-height: 34px; padding: 0 13px; }
.shift-shortage-more { margin: 0; padding: 12px 0; color: var(--shift-muted); font-size: 12px; text-align: center; }
.shift-shortage-empty { min-height: 210px; display: grid; align-content: center; justify-items: center; padding: 28px; text-align: center; }
.shift-shortage-empty strong { color: #27877e; font-size: 16px; }
.shift-shortage-empty span { margin-top: 7px; color: var(--shift-muted); font-size: 12px; }
.shift-week-panel { min-width: 0; overflow: hidden; }
.shift-week-panel__head { align-items: center; }
.shift-week-actions, .shift-week-nav { display: flex; align-items: center; }
.shift-week-actions { gap: 14px; }
.shift-week-nav { gap: 4px; }
.shift-week-nav button {
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border: 1px solid #d7dce8;
  border-radius: 4px;
  background: #fff;
  color: var(--shift-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.shift-week-nav button:nth-child(2) { font-size: 11px; }
.shift-week-nav button:hover { border-color: #858bab; background: #f7f8fb; }

.shift-week-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--shift-line);
  background: #fafbfe;
}
.shift-week-metrics > div {
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border-right: 1px solid var(--shift-line);
}
.shift-week-metrics > div:last-child { border-right: 0; }
.shift-week-metrics span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-week-metrics strong {
  margin-top: 5px;
  color: var(--shift-heading);
  font-family: Lato, "Noto Sans JP", sans-serif;
  font-size: 23px;
  line-height: 1;
}
.shift-week-metrics strong em { margin-left: 3px; color: var(--shift-muted); font-size: 11px; font-style: normal; }
.shift-week-metrics .is-alert strong { color: var(--shift-danger); }
.shift-week-metrics b {
  min-width: 0;
  margin-top: 6px;
  overflow: hidden;
  color: var(--shift-heading);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-week-summary-wrap { max-width: 100%; overflow-x: auto; }
.shift-week-summary-table {
  width: 100%;
  min-width: 660px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--shift-ink);
  font-size: 12px;
}
.shift-week-summary-table th {
  height: 42px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--shift-line);
  color: var(--shift-muted);
  background: #f5f6fa;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.shift-week-summary-table td {
  height: 49px;
  padding: 8px 16px;
  border-bottom: 1px solid #e8ebf1;
  background: #fff;
  vertical-align: middle;
  white-space: nowrap;
}
.shift-week-summary-table tbody tr:last-child td { border-bottom: 0; }
.shift-week-summary-table tbody tr:hover td { background: #fbfbfd; }
.shift-week-summary-table td:first-child strong { color: var(--shift-heading); font-size: 13px; }
.shift-week-summary-table td b { margin-right: 3px; color: var(--shift-heading); font-family: Lato, "Noto Sans JP", sans-serif; font-size: 14px; }
.shift-week-summary-table tr.is-short td:nth-child(3) b,
.shift-week-summary-table tr.is-short td:nth-child(4) b { color: var(--shift-danger); }
.shift-week-summary-table .is-right { text-align: right; }
.shift-week-summary-table a.shift-ghost {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  text-decoration: none;
}
.shift-week-status {
  display: inline-flex;
  min-width: 62px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #27877e;
  background: #eaf8f5;
  font-size: 10px;
  font-weight: 700;
}
tr.is-short .shift-week-status { color: #d94350; background: #fff0f2; }
.shift-status-chart {
  min-height: 304px;
  display: grid;
  grid-template-columns: 148px minmax(150px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px 24px;
}
.shift-status-donut {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #35aaa0 0 var(--confirmed-end),
    #d4881f var(--confirmed-end) var(--adjusting-end),
    #7a81a6 var(--adjusting-end) var(--submitted-end),
    #ef898f var(--submitted-end) 100%
  );
}
.shift-status-donut::before {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: #fff;
}
.shift-status-donut > div { position: relative; z-index: 1; text-align: center; }
.shift-status-donut strong { display: block; color: var(--shift-heading); font-family: Lato, "Noto Sans JP", sans-serif; font-size: 29px; line-height: 1; }
.shift-status-donut span { display: block; margin-top: 6px; color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-status-legend { min-width: 0; margin: 0; }
.shift-status-legend > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding-left: 18px;
  border-bottom: 1px solid #e9ecf2;
}
.shift-status-legend > div:last-child { border-bottom: 0; }
.shift-status-legend > div::before { content: ""; position: absolute; left: 0; width: 9px; height: 9px; border-radius: 2px; }
.shift-status-legend .is-confirmed::before { background: #35aaa0; }
.shift-status-legend .is-adjusting::before { background: #d4881f; }
.shift-status-legend .is-submitted::before { background: #7a81a6; }
.shift-status-legend .is-unsubmitted::before { background: #ef898f; }
.shift-status-legend dt { color: var(--shift-heading); font-size: 12px; font-weight: 700; }
.shift-status-legend dd { margin: 0; color: var(--shift-ink); font-family: Lato, "Noto Sans JP", sans-serif; font-size: 15px; font-weight: 700; }

.shift-progress-list { margin: 0; padding: 0; list-style: none; }
.shift-progress-list li { display: grid; grid-template-columns: 108px 1fr 72px; align-items: center; gap: 16px; min-height: 55px; padding: 11px 18px; border-bottom: 1px solid #edf0f5; }
.shift-progress-list li:last-child { border-bottom: 0; }
.shift-progress-list time { font-weight: 700; }
.shift-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #eceff5; }
.shift-progress span { display: block; height: 100%; border-radius: inherit; background: var(--shift-mint); }
.shift-progress-list b { text-align: right; font-size: 13px; }
.shift-progress-list b.is-short { color: var(--shift-danger); }

.shift-action-list { margin: 0; padding: 0; list-style: none; }
.shift-action-list li + li { border-top: 1px solid #edf0f5; }
.shift-action-list a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 18px; color: var(--shift-ink); text-decoration: none; }
.shift-action-list strong, .shift-action-list span { display: block; }
.shift-action-list span { margin-top: 3px; color: var(--shift-muted); font-size: 12px; line-height: 1.55; }
.shift-action-list b { align-self: center; color: var(--shift-heading); font-size: 20px; }

.shift-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--shift-line);
  border-radius: 7px;
  background: var(--shift-soft);
}
.shift-toolbar__filters, .shift-toolbar__actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.shift-field { display: flex; flex-direction: column; gap: 6px; color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-input, .shift-select, .shift-textarea {
  min-height: 42px;
  border: 1px solid #ccd4e3;
  border-radius: 5px;
  background: #fff;
  color: var(--shift-ink);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.shift-input, .shift-select { padding: 0 12px; }
.shift-input:focus, .shift-select:focus, .shift-textarea:focus { border-color: #7770aa; box-shadow: 0 0 0 3px rgba(84,84,119,.12); }
.shift-search { width: 240px; }
.shift-textarea { width: 100%; min-height: 88px; padding: 11px 12px; resize: vertical; }
.shift-date-control { display: flex; align-items: center; gap: 6px; }
.shift-date-control strong { min-width: 190px; text-align: center; color: var(--shift-heading); font-size: 16px; }
.shift-icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid #ccd4e3; border-radius: 5px; background: #fff; color: var(--shift-heading); font-size: 22px; line-height: 1; }
.shift-icon-button:hover { background: #f2f4f8; }

.shift-segmented { display: inline-flex; padding: 3px; border-radius: 6px; background: #e8ebf2; }
.shift-segmented button { min-width: 76px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; color: var(--shift-muted); background: transparent; font-weight: 700; }
.shift-segmented button.is-active { color: var(--shift-heading); background: #fff; box-shadow: 0 1px 3px rgba(35,40,69,.12); }

.shift-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--shift-line); border-radius: 7px; background: #fff; scrollbar-color: #a9afbd #eef0f4; }
.shift-table-wrap--schedule { max-height: 650px; }
.shift-table-wrap--submissions { max-height: 660px; }
.shift-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.shift-table th { height: 49px; padding: 10px 13px; color: #717996; background: #f3f5f9; border-bottom: 1px solid var(--shift-line); font-size: 12px; text-align: left; white-space: nowrap; }
.shift-table td { height: 54px; padding: 10px 13px; border-bottom: 1px solid #e7eaf0; background: #fff; vertical-align: middle; }
.shift-table tbody tr:last-child td { border-bottom: 0; }
.shift-table tbody tr:hover td { background: #fbfbfd; }
.shift-table .is-center { text-align: center; }
.shift-table .is-right { text-align: right; }
.shift-table .is-muted { color: var(--shift-muted); }
.shift-table-action { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; }

.shift-table button.shift-row-button { padding: 0; border: 0; color: var(--shift-heading); background: transparent; font-weight: 700; text-align: left; }
.shift-table button.shift-row-button:hover { color: #5645a8; text-decoration: underline; }

.shift-schedule-table { width: max-content; min-width: 100%; table-layout: fixed; }
.shift-schedule-table th, .shift-schedule-table td { width: 166px; min-width: 166px; }
.shift-schedule-table th:first-child, .shift-schedule-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 190px;
  min-width: 190px;
  border-right: 1px solid var(--shift-line);
  box-shadow: 5px 0 8px rgba(40,45,72,.04);
}
.shift-schedule-table thead th { position: sticky; top: 0; z-index: 3; text-align: center; }
.shift-schedule-table thead th:first-child { z-index: 6; text-align: left; }
.shift-schedule-table .shift-day--sun { color: #d94a57; }
.shift-schedule-table .shift-day--sat { color: #3b72b8; }
.shift-cast-cell strong { display: block; color: var(--shift-ink); font-size: 14px; }
.shift-cast-cell span { display: block; margin-top: 3px; color: var(--shift-muted); font-size: 11px; }
.shift-cell-button { width: 100%; min-height: 58px; padding: 7px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; }
.shift-cell-button:hover { border-color: #c9d0df; background: #f7f8fb; }
.shift-cell-button strong { display: block; font-size: 13px; }
.shift-cell-button span { display: block; margin-top: 4px; color: var(--shift-muted); font-size: 10px; }
.shift-cell-button.is-requested { border-left: 3px solid #7ba8d4; background: #f2f7fc; }
.shift-cell-button.is-adjusting { border-left: 3px solid var(--shift-warning); background: #fff8ed; }
.shift-cell-button.is-confirmed { border-left: 3px solid var(--shift-mint); background: #effaf8; }
.shift-cell-button.is-change { border-left: 3px solid var(--shift-danger); background: #fff2f3; }
.shift-cell-button.is-unsubmitted { color: #a2a8ba; }

.shift-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 9px; border: 1px solid #d8deea; border-radius: 999px; color: #6f7793; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.shift-badge--submitted { color: #347a75; border-color: #bce3df; background: #eefaf8; }
.shift-badge--adjusting { color: #a46a14; border-color: #f2d29e; background: #fff8eb; }
.shift-badge--confirmed { color: #fff; border-color: #41a89f; background: #41a89f; }
.shift-badge--change { color: #c43f4d; border-color: #efc4c9; background: #fff1f3; }
.shift-badge--draft { color: #6f7793; background: #f2f4f8; }
.shift-badge--unsubmitted { color: #8d94a8; background: #fff; }

.shift-drawer-layer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.shift-drawer-layer.is-open { pointer-events: auto; }
.shift-drawer-overlay { position: absolute; inset: 0; border: 0; background: rgba(28,32,50,.35); opacity: 0; transition: opacity .2s ease; }
.shift-drawer-layer.is-open .shift-drawer-overlay { opacity: 1; }
.shift-drawer { position: absolute; top: 0; right: 0; width: min(520px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -8px 0 26px rgba(30,35,60,.14); transform: translateX(100%); transition: transform .24s ease; }
.shift-drawer-layer.is-open .shift-drawer { transform: translateX(0); }
.shift-drawer__head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--shift-line); }
.shift-drawer__head h2 { margin: 0; color: var(--shift-heading); font-size: 20px; }
.shift-drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.shift-drawer__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--shift-line); background: #fff; }
.shift-detail-block + .shift-detail-block { margin-top: 22px; }
.shift-detail-block h3 { margin: 0 0 10px; color: var(--shift-heading); font-size: 14px; }
.shift-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shift-detail-note { padding: 12px; border-left: 3px solid #92a0be; background: #f5f7fa; font-size: 13px; line-height: 1.7; }
.shift-time-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.shift-time-pair > span { padding-bottom: 11px; color: var(--shift-muted); }
.shift-use-requested { min-height: 34px; padding: 0 12px; font-size: 11px; }
.shift-time-picker-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.shift-time-picker__field { min-width: 0; }
.shift-time-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 5px; }
.shift-time-picker .shift-select { width: 100%; min-width: 0; padding: 0 8px; color: var(--shift-heading); font-size: 14px; font-weight: 700; text-align: center; }
.shift-time-picker b { color: var(--shift-muted); font-size: 16px; }
.shift-time-arrow { padding-bottom: 11px; color: var(--shift-muted); font-size: 16px; }
.shift-duration { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin-top: 12px; padding: 9px 12px; border: 1px solid #dfe4ee; border-radius: 5px; background: #f7f8fb; }
.shift-duration span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-duration strong { color: var(--shift-heading); font-size: 13px; }
.shift-duration.is-error { border-color: #efc7cc; background: #fff7f8; }
.shift-duration.is-error strong { color: var(--shift-danger); }
.shift-inline-check { display: flex; align-items: center; gap: 8px; min-height: 42px; font-size: 13px; font-weight: 700; }
.shift-inline-check input { width: 18px; height: 18px; accent-color: var(--shift-accent); }

.shift-toolbar-mode { display: flex; flex-direction: column; gap: 6px; }
.shift-toolbar-mode > span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }

.shift-staffing-table { width: max-content; min-width: 100%; table-layout: fixed; }
.shift-staffing-table th, .shift-staffing-table td { width: 148px; min-width: 148px; }
.shift-staffing-table th:first-child, .shift-staffing-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 88px;
  min-width: 88px;
  border-right: 1px solid var(--shift-line);
}
.shift-staffing-table thead th { position: sticky; top: 0; z-index: 4; text-align: center; }
.shift-staffing-table thead th:first-child { z-index: 6; }
.shift-staffing-table tbody th { padding: 12px; color: var(--shift-heading); background: #f7f8fb; font-size: 13px; text-align: center; }
.shift-staffing-cell-wrap { padding: 6px !important; }
.shift-staffing-cell {
  width: 100%;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f3f5f8;
}
.shift-staffing-cell strong { font-size: 14px; }
.shift-staffing-cell span { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-staffing-cell em { color: #c83e4c; font-size: 10px; font-style: normal; font-weight: 800; }
.shift-segmented button:disabled { color: #a7adbd; cursor: not-allowed; opacity: .62; }
.shift-staffing-cell.is-short { color: #c83e4c; border-color: #f0c7cc; background: #fff1f3; }
.shift-staffing-cell.is-even { color: #59617d; border-color: #dde2eb; background: #f5f6f9; }
.shift-staffing-cell.is-over { color: #237a73; border-color: #bfe3df; background: #eef9f7; }
.shift-staffing-cell:hover { border-color: var(--shift-heading); box-shadow: 0 2px 6px rgba(35,40,69,.1); }
.shift-staffing-mode-note {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dfe4ee;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f5f6f9;
}
.shift-staffing-mode-note.is-setting { border-color: #cbcfe8; background: #f5f5fb; }
.shift-staffing-mode-note strong { flex: 0 0 auto; color: var(--shift-heading); font-size: 12px; }
.shift-staffing-mode-note span { color: var(--shift-muted); font-size: 11px; line-height: 1.6; }
.shift-staffing-mode-note + .shift-table-wrap { border-radius: 0 0 7px 7px; }

.shift-required-cell { padding: 8px !important; background: #fff !important; }
.shift-required-cell label { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--shift-muted); cursor: text; }
.shift-required-cell__label { font-size: 10px; font-weight: 700; }
.shift-required-cell__input { display: inline-flex; align-items: center; gap: 5px; }
.shift-required-cell__input b { color: var(--shift-muted); font-size: 11px; }
.shift-required-cell input {
  width: 70px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #bfc7d8;
  border-radius: 5px;
  color: var(--shift-heading);
  background: #fff;
  font-family: Lato, "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}
.shift-required-cell small { display: block; color: #858ca8; font-size: 9px; font-weight: 700; white-space: nowrap; }
.shift-required-cell input:focus { border-color: #7770aa; box-shadow: 0 0 0 3px rgba(84,84,119,.12); outline: 0; }

.shift-staffing-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--shift-line);
  border-radius: 6px;
}
.shift-staffing-detail > div { min-height: 88px; padding: 15px; border-right: 1px solid var(--shift-line); background: #f7f8fb; }
.shift-staffing-detail > div:last-child { border-right: 0; }
.shift-staffing-detail span { display: block; color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-staffing-detail strong { display: block; margin-top: 8px; color: var(--shift-heading); font-size: 17px; }
.shift-staffing-detail.is-short > div:last-child { background: #fff1f3; }
.shift-staffing-detail.is-short > div:last-child strong { color: var(--shift-danger); }
.shift-staffing-detail.is-over > div:last-child { background: #eef9f7; }
.shift-staffing-detail.is-over > div:last-child strong { color: #237a73; }
.shift-number-stepper { display: flex; align-items: center; gap: 8px; }
.shift-number-stepper button { width: 42px; height: 42px; border: 1px solid #ccd4e3; border-radius: 5px; color: var(--shift-heading); background: #fff; font-size: 20px; font-weight: 700; }
.shift-number-stepper input { width: 90px; text-align: right; }
.shift-number-stepper > span { color: var(--shift-muted); font-size: 13px; font-weight: 700; }
.shift-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shift-detail-title h3 { margin: 0; }
.shift-detail-title > span { color: var(--shift-muted); font-size: 12px; font-weight: 700; }
.shift-confirmed-casts { max-height: 310px; margin: 0; padding: 0; overflow-y: auto; border: 1px solid var(--shift-line); border-radius: 5px; list-style: none; }
.shift-confirmed-casts li { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-bottom: 1px solid #e9ecf2; }
.shift-confirmed-casts li:last-child { border-bottom: 0; }
.shift-confirmed-casts .shift-avatar { width: 34px; height: 34px; font-size: 10px; }
.shift-confirmed-casts strong, .shift-confirmed-casts small { display: block; }
.shift-confirmed-casts strong { font-size: 13px; }
.shift-confirmed-casts small { margin-top: 2px; color: var(--shift-muted); font-size: 10px; }
.shift-confirmed-casts li.is-empty { justify-content: center; min-height: 100px; color: var(--shift-muted); font-size: 12px; }
.shift-staffing-breakdown { overflow: hidden; border: 1px solid var(--shift-line); border-radius: 6px; }
.shift-staffing-breakdown__row { width: 100%; min-height: 46px; display: grid; grid-template-columns: 64px 1fr 1fr 82px; align-items: center; gap: 8px; padding: 8px 11px; border: 0; border-bottom: 1px solid #e9ecf2; color: var(--shift-heading); background: #fff; font-family: Lato, "Noto Sans JP", sans-serif; text-align: left; }
.shift-staffing-breakdown__row:last-child { border-bottom: 0; }
.shift-staffing-breakdown__row:hover { background: #f7f8fb; }
.shift-staffing-breakdown__row.is-selected { background: #f2f1fa; box-shadow: inset 3px 0 0 var(--shift-heading); }
.shift-staffing-breakdown__row strong { font-size: 13px; }
.shift-staffing-breakdown__row span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-staffing-breakdown__row b { justify-self: end; font-size: 11px; }
.shift-staffing-breakdown__row.is-short b { color: var(--shift-danger); }
.shift-staffing-breakdown__row.is-over b { color: #237a73; }
.shift-stat-table td.is-short { color: var(--shift-danger); font-weight: 700; background: #fff5f6; }
.shift-stat-table td.is-enough { color: #27877e; font-weight: 700; background: #f0faf8; }
.shift-stat-table input[type="number"] { width: 70px; min-height: 34px; padding: 0 7px; border: 1px solid #cfd6e3; border-radius: 4px; text-align: right; }
.shift-heat { display: inline-flex; min-width: 48px; justify-content: center; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.shift-heat.is-short { color: #c83e4c; background: #fdecee; }
.shift-heat.is-even { color: #65708d; background: #f0f2f6; }
.shift-heat.is-over { color: #237a73; background: #e8f8f5; }

.shift-talk { height: clamp(480px, calc(100vh - 320px), 690px); display: grid; grid-template-columns: 300px minmax(380px, 1fr) 280px; grid-template-rows: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--shift-line); border-radius: 7px; background: #fff; }
.shift-talk__rooms, .shift-talk__detail { min-width: 0; min-height: 0; background: #fbfcfe; }
.shift-talk__rooms { display: flex; flex-direction: column; border-right: 1px solid var(--shift-line); }
.shift-talk__detail { display: flex; flex-direction: column; border-left: 1px solid var(--shift-line); }
.shift-talk__pane-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--shift-line); }
.shift-talk__pane-head h2, .shift-talk__pane-head h3 { margin: 0; color: var(--shift-heading); font-size: 16px; }
.shift-talk__search { padding: 12px; border-bottom: 1px solid var(--shift-line); }
.shift-talk__search .shift-input { width: 100%; }
.shift-room-list { min-height: 0; height: auto; flex: 1; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.shift-room-button { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; padding: 13px 12px; border: 0; border-bottom: 1px solid #e9ecf2; background: transparent; text-align: left; }
.shift-room-button:hover, .shift-room-button.is-active { background: #f0f1f7; }
.shift-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #777c9b; font-size: 13px; font-weight: 900; }
.shift-avatar.is-group { background: #4b9c95; }
.shift-avatar.is-all { background: #ef898f; }
.shift-room-button strong, .shift-room-button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-room-button .shift-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  overflow: hidden;
  text-align: center;
  line-height: 1;
}
.shift-room-button strong { font-size: 13px; }
.shift-room-button span { margin-top: 4px; color: var(--shift-muted); font-size: 11px; }
.shift-unread { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #5645a8; font-size: 10px; }
.shift-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.shift-chat__head { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--shift-line); }
.shift-chat__head strong { display: block; color: var(--shift-heading); }
.shift-chat__head span { color: var(--shift-muted); font-size: 11px; }
.shift-chat__messages { min-height: 0; flex: 1; overflow-y: auto; padding: 20px; background: #f6f7fa; }
.shift-message { max-width: 74%; margin-bottom: 15px; }
.shift-message.is-mine { margin-left: auto; }
.shift-message__meta { margin: 0 4px 4px; color: var(--shift-muted); font-size: 10px; }
.shift-message.is-mine .shift-message__meta { text-align: right; }
.shift-message__bubble { padding: 10px 13px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(30,35,60,.08); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.shift-message.is-mine .shift-message__bubble { color: #fff; background: var(--shift-primary); }
.shift-chat__composer { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; padding: 12px; border-top: 1px solid var(--shift-line); background: #fff; }
.shift-chat__composer textarea { min-height: 44px; max-height: 110px; padding: 10px 12px; resize: none; }
.shift-chat__composer .shift-primary { width: 76px; min-height: 44px; padding: 0 16px; }
.shift-member-list { min-height: 0; flex: 1; margin: 0; padding: 10px 15px; list-style: none; overflow-y: auto; }
.shift-member-list li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #eceff4; font-size: 12px; }
.shift-member-list .shift-avatar { width: 30px; height: 30px; font-size: 10px; }
.shift-room-view { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px 12px 0; padding: 3px; border-radius: 5px; background: #e9ecf3; }
.shift-room-view button { min-width: 0; min-height: 34px; padding: 0 7px; border: 0; border-radius: 4px; color: var(--shift-muted); background: transparent; font-size: 11px; font-weight: 700; }
.shift-room-view button.is-active { color: var(--shift-heading); background: #fff; box-shadow: 0 1px 2px rgba(30,35,60,.08); }
.shift-room-view b { display: inline-grid; min-width: 19px; height: 19px; margin-left: 3px; place-items: center; border-radius: 999px; background: rgba(84,84,119,.09); font-size: 9px; }
.shift-room-copy { min-width: 0; }
.shift-room-button .shift-room-title { display: flex; align-items: center; gap: 6px; margin: 0; overflow: visible; }
.shift-room-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-room-button .shift-room-state, .shift-chat__head .shift-room-state { flex: 0 0 auto; display: inline-flex; width: auto; height: 20px; align-items: center; justify-content: center; margin: 0; padding: 0 7px; overflow: visible; border-radius: 999px; color: #257a72; background: #e7f7f4; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.shift-room-button .shift-room-state.is-filled, .shift-chat__head .shift-room-state.is-filled { color: #3e716d; background: #e7f1f0; }
.shift-room-button .shift-room-state.is-closed, .shift-chat__head .shift-room-state.is-closed { color: #777d91; background: #eceef3; }
.shift-room-list__empty { padding: 34px 18px; color: var(--shift-muted); text-align: center; }
.shift-room-list__empty strong, .shift-room-list__empty span { display: block; }
.shift-room-list__empty strong { margin-bottom: 5px; color: var(--shift-heading); font-size: 13px; }
.shift-room-list__empty span { font-size: 11px; line-height: 1.6; }
.shift-chat__head > div { min-width: 0; }
.shift-chat__head > div > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-chat__head .shift-chat__meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.shift-chat-closed { flex: 0 0 auto; padding: 13px 16px; border-top: 1px solid var(--shift-line); background: #f1f3f7; text-align: center; }
.shift-chat-closed strong, .shift-chat-closed span { display: block; }
.shift-chat-closed strong { color: var(--shift-heading); font-size: 12px; }
.shift-chat-closed span { margin-top: 3px; color: var(--shift-muted); font-size: 10px; }
.shift-room-info { margin: 12px 15px 0; padding: 12px; border: 1px solid #d8e8e5; border-radius: 5px; background: #f1faf8; }
.shift-room-info span, .shift-room-info strong, .shift-room-info small { display: block; }
.shift-room-info span { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-room-info strong { margin-top: 3px; color: var(--shift-heading); font-size: 12px; }
.shift-room-info small { margin-top: 3px; color: #2b7f77; font-size: 10px; font-weight: 700; }
.shift-reply-permission { margin: 12px 15px 0; padding: 13px; border: 1px solid #dfe4ec; border-radius: 6px; background: #fff; }
.shift-reply-permission__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shift-reply-permission__head strong { color: var(--shift-heading); font-size: 13px; }
.shift-reply-permission__head span { color: var(--shift-muted); font-size: 9px; font-weight: 700; }
.shift-reply-permission__choices { display: grid; gap: 7px; margin-top: 11px; }
.shift-reply-option { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; min-height: 56px; padding: 10px; border: 1px solid #dfe3eb; border-radius: 6px; background: #f9fafc; cursor: pointer; }
.shift-reply-option:has(input:checked) { border-color: #65cdb9; background: #eefaf7; box-shadow: inset 3px 0 0 #4bbca7; }
.shift-reply-option:focus-within { outline: 2px solid rgba(86,69,168,.28); outline-offset: 2px; }
.shift-reply-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shift-reply-option__marker { width: 17px; height: 17px; margin-top: 1px; border: 1px solid #b8becb; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.shift-reply-option input:checked + .shift-reply-option__marker { border-color: #43b99f; background: #43b99f; }
.shift-reply-option strong, .shift-reply-option small { display: block; }
.shift-reply-option strong { color: var(--shift-heading); font-size: 12px; }
.shift-reply-option small { margin-top: 3px; color: var(--shift-muted); font-size: 10px; line-height: 1.45; }
.shift-reply-permission > p { margin: 9px 0 0; color: var(--shift-muted); font-size: 9px; line-height: 1.5; }
.shift-member-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 15px 5px; color: var(--shift-heading); font-size: 12px; }
.shift-member-heading span { color: var(--shift-muted); font-size: 10px; }
.shift-room-actions { flex: 0 0 auto; display: grid; gap: 7px; padding: 12px 15px; border-top: 1px solid var(--shift-line); background: #fff; }
.shift-room-actions button { width: 100%; min-height: 36px; }
.shift-ghost.is-danger { color: var(--shift-danger); }
.shift-talk-mobile-tabs { display: none; }

.shift-settings { max-width: 980px; }
.shift-period-context { display: flex; align-items: center; gap: 22px; margin: 0 0 14px; padding: 13px 16px; border: 1px solid #d9ddea; border-left: 4px solid #8178bc; border-radius: 6px; background: #fff; }
.shift-period-context > div:first-child { min-width: 260px; }
.shift-period-context > div:first-child > span { display: block; margin-bottom: 3px; color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-period-context > div:first-child > strong { display: flex; align-items: center; gap: 8px; color: var(--shift-heading); font-size: 14px; }
.shift-period-context dl { flex: 1; display: flex; align-items: center; gap: 28px; margin: 0; }
.shift-period-context dl div { min-width: 0; }
.shift-period-context dt { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-period-context dd { margin: 3px 0 0; color: var(--shift-heading); font-size: 12px; font-weight: 700; }
.shift-period-phase { display: inline-flex; align-items: center; min-height: 22px; margin-right: 7px; padding: 0 8px; border-radius: 11px; color: #564f86; background: #eeeefa; font-size: 10px; font-weight: 700; vertical-align: middle; }
.shift-period-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid #dce1ea; border-radius: 11px; color: #7e8499; background: #f7f8fa; font-size: 10px; font-weight: 700; white-space: nowrap; }
.shift-period-status--open { border-color: #afe4da; color: #267d73; background: #eaf9f5; }
.shift-period-selector { min-width: 330px; }
.shift-phase-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 720px; margin-top: 14px; }
.shift-phase-cycle[hidden] { display: none; }
.shift-phase-segment { min-height: 58px; padding: 10px 12px; border: 1px solid #e0e4ec; border-radius: 6px; background: #f8f9fb; }
.shift-phase-segment span, .shift-phase-segment strong { display: block; }
.shift-phase-segment span { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-phase-segment strong { margin-top: 4px; color: var(--shift-heading); font-size: 12px; }
.shift-phase-segment.is-current { border-color: #a39dcc; box-shadow: inset 3px 0 0 #6e679e; background: #f7f7fc; }
.shift-period-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin-top: 18px; }
.shift-period-preview-card { padding: 14px 16px; border: 1px solid #dfe4ee; border-radius: 6px; background: #fff; }
.shift-period-preview-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.shift-period-preview-card__head > span { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-period-preview-card__head > div { display: flex; align-items: center; }
.shift-period-preview-card > strong { display: block; color: var(--shift-heading); font-size: 15px; }
.shift-period-preview-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #edf0f5; }
.shift-period-preview-card dt { color: var(--shift-muted); font-size: 9px; font-weight: 700; }
.shift-period-preview-card dd { margin: 3px 0 0; color: var(--shift-heading); font-size: 10px; font-weight: 700; line-height: 1.45; }
.shift-settings-group { padding: 24px 0; border-top: 1px solid var(--shift-line); }
.shift-settings-group:first-child { border-top: 0; padding-top: 0; }
.shift-settings-group h2 { margin: 0 0 7px; color: var(--shift-heading); font-size: 19px; }
.shift-settings-group > p { margin: 0 0 18px; color: var(--shift-muted); font-size: 13px; line-height: 1.7; }
.shift-settings-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding: 13px 0; }
.shift-settings-row > strong { padding-top: 10px; color: var(--shift-heading); font-size: 13px; }
.shift-settings-fields { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.shift-settings-fields .shift-field { min-width: 170px; }
.shift-settings-fields .shift-input, .shift-settings-fields .shift-select { width: 100%; }
.shift-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.shift-settings-heading h2 { margin-bottom: 7px; }
.shift-settings-heading p { margin: 0; color: var(--shift-muted); font-size: 13px; line-height: 1.7; }
.shift-period-count { min-width: 88px; display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 10px 12px; border: 1px solid #dfe4ee; border-radius: 6px; background: #f6f7fa; }
.shift-period-count strong { color: var(--shift-heading); font-family: Lato, "Noto Sans JP", sans-serif; font-size: 24px; }
.shift-period-count span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-period-calendar { display: grid; grid-template-columns: minmax(220px, 1fr) 42px minmax(220px, 1fr); align-items: center; gap: 12px; max-width: 780px; }
.shift-date-arrow { color: #8d94aa; font-size: 24px; font-weight: 700; text-align: center; }
.shift-date-card { display: block; min-width: 0; cursor: pointer; }
.shift-date-card__label { display: block; margin-bottom: 7px; color: var(--shift-heading); font-size: 12px; font-weight: 700; }
.shift-date-card__input { position: relative; display: flex; align-items: center; min-height: 58px; overflow: hidden; border: 1px solid #cbd3e2; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.shift-date-card__input:focus-within { border-color: #7770aa; box-shadow: 0 0 0 3px rgba(84,84,119,.12); }
.shift-date-card__input img { width: 22px; height: 22px; margin-left: 15px; object-fit: contain; }
.shift-date-card__input input { position: relative; width: 100%; min-width: 0; height: 56px; padding: 0 14px 0 12px; border: 0; outline: 0; color: var(--shift-ink); background: transparent; font-family: Lato, "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; }
.shift-date-card__input input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.shift-date-flow { display: grid; grid-template-columns: minmax(190px, 1fr) 44px minmax(190px, 1fr) 44px minmax(190px, 1fr); align-items: center; max-width: 1040px; }
.shift-date-flow__step { position: relative; min-width: 0; padding-left: 40px; }
.shift-date-flow__number { position: absolute; top: 27px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--shift-heading); font-family: Lato, sans-serif; font-size: 13px; font-weight: 700; }
.shift-date-flow__line { height: 1px; margin: 26px 8px 0; background: #cfd5e1; }
.shift-schedule-note { margin: 12px 0 0 40px !important; color: #27877e !important; font-size: 12px !important; font-weight: 700; }
.shift-schedule-note.is-error { color: var(--shift-danger) !important; }
.shift-choice-group { display: grid; grid-template-columns: repeat(2, minmax(220px, 320px)); gap: 12px; }
.shift-choice { position: relative; min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid #dfe4ee; border-radius: 6px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.shift-choice:hover { border-color: #b8bfd1; background: #fafbfc; }
.shift-choice:has(input:checked) { border-color: #c7cae7; background: #f7f7fc; }
.shift-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shift-choice__mark { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #dee0f4; }
.shift-choice__mark::after { content: ""; position: absolute; inset: 7px 5px; display: none; background: url("../images/ic_check.svg") no-repeat center / contain; }
.shift-choice input:checked + .shift-choice__mark::after { display: block; }
.shift-choice > span:last-child { min-width: 0; }
.shift-choice strong, .shift-choice small { display: block; }
.shift-choice strong { color: var(--shift-heading); font-size: 14px; }
.shift-choice small { margin-top: 4px; color: var(--shift-muted); font-size: 10px; line-height: 1.5; }
.shift-fixed-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; max-width: 900px; }
.shift-fixed-rules > div { min-height: 104px; padding: 15px 16px; border: 1px solid #dfe4ee; border-radius: 6px; background: #f8f9fb; }
.shift-fixed-rules span, .shift-fixed-rules strong, .shift-fixed-rules small { display: block; }
.shift-fixed-rules span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-fixed-rules strong { margin-top: 5px; color: var(--shift-heading); font-size: 16px; }
.shift-fixed-rules small { margin-top: 6px; color: var(--shift-muted); font-size: 10px; line-height: 1.55; }
.shift-error { min-height: 18px; margin-top: 5px; color: var(--shift-danger); font-size: 11px; }

.shift-empty { min-height: 220px; display: grid; place-items: center; padding: 30px; color: var(--shift-muted); text-align: center; }
.shift-empty strong { display: block; margin-bottom: 6px; color: var(--shift-heading); font-size: 16px; }
.shift-toast { position: fixed; right: 28px; bottom: 28px; z-index: 180; max-width: min(390px, calc(100vw - 40px)); padding: 13px 18px; border-radius: 5px; color: #fff; background: #3f4260; box-shadow: 0 8px 24px rgba(30,35,55,.22); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.shift-toast.is-visible { opacity: 1; transform: translateY(0); }
.shift-modal { position: fixed; inset: 0; z-index: 160; display: none; place-items: center; padding: 20px; background: rgba(28,32,50,.4); }
.shift-modal.is-open { display: grid; }
.shift-modal__box { width: min(560px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; border-radius: 7px; background: #fff; box-shadow: 0 14px 40px rgba(25,30,55,.22); }
.shift-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--shift-line); }
.shift-modal__head h2 { margin: 0; color: var(--shift-heading); font-size: 19px; }
.shift-modal__body { padding: 20px; }
.shift-modal__footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--shift-line); }
.shift-group-modal__body { display: grid; gap: 18px; }
.shift-group-name .shift-input { width: 100%; }
.shift-member-selector { min-width: 0; }
.shift-member-selector__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.shift-member-selector__head h3 { margin-bottom: 3px; }
.shift-member-selector__head span { color: var(--shift-muted); font-size: 11px; font-weight: 700; }
.shift-member-actions { display: flex; gap: 8px; }
.shift-member-actions .shift-secondary { min-height: 34px; padding: 0 12px; font-size: 11px; }
.shift-member-checks { max-height: 330px; overflow-y: auto; border: 1px solid var(--shift-line); border-radius: 5px; }
.shift-member-checks label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-bottom: 1px solid #edf0f5; font-size: 13px; cursor: pointer; }
.shift-member-checks label:hover { background: #fafbfc; }
.shift-member-checks label:last-child { border-bottom: 0; }
.shift-member-checks input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shift-member-checkbox { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #dee0f4; border-radius: 4px; background: #fff; }
.shift-member-checkbox::after { content: ""; position: absolute; inset: 5px 3px; display: none; background: url("../images/ic_check.svg") no-repeat center / contain; }
.shift-member-checks input:checked + .shift-member-checkbox { background: #dee0f4; }
.shift-member-checks input:checked + .shift-member-checkbox::after { display: block; }
.shift-member-checks input:focus-visible + .shift-member-checkbox { outline: 2px solid #8f8ab7; outline-offset: 2px; }
.shift-member-checks__name { min-width: 0; color: var(--shift-heading); font-weight: 700; }

@media (max-width: 1280px) {
  .shift-summary { grid-template-columns: repeat(3, 1fr); }
  .shift-summary__item:nth-child(3) { border-right: 0; }
  .shift-summary__item:nth-child(-n+3) { border-bottom: 1px solid var(--shift-line); }
  .shift-talk { grid-template-columns: 260px minmax(340px, 1fr) 240px; }
}

@media (max-width: 1020px) {
  .shift-overview-grid { grid-template-columns: 1fr; }
  .shift-overview-grid .shift-status-chart { max-width: 520px; grid-template-columns: 124px minmax(130px, 1fr); justify-items: stretch; }
  .shift-overview-grid .shift-status-donut { width: 124px; height: 124px; }
  .shift-overview-grid .shift-status-donut::before { inset: 16px; }
  .shift-toolbar { align-items: stretch; flex-direction: column; }
  .shift-talk { grid-template-columns: 250px minmax(340px, 1fr); }
  .shift-talk__detail { display: none; }
}

@media (max-width: 768px) {
  .shift-page { padding: 0 14px 42px; }
  .shift-page-head { min-height: 94px; }
  .shift-page-head h1 { font-size: 26px; }
  .shift-page-head__actions .shift-secondary { display: none; }
  .shift-save { min-width: 86px; min-height: 40px; padding: 0 14px; }
  .shift-nav { margin: 18px 0; }
  .shift-nav a { flex-basis: 116px; font-size: 13px; }
  .shift-summary { grid-template-columns: repeat(2, 1fr); }
  .shift-summary__item { min-height: 84px; padding: 15px; border-bottom: 1px solid var(--shift-line); }
  .shift-summary__item:nth-child(2n) { border-right: 0; }
  .shift-summary__item:nth-last-child(-n+2) { border-bottom: 0; }
  .shift-summary__item:nth-child(3) { border-right: 1px solid var(--shift-line); }
  .shift-summary__item strong { font-size: 23px; }
  .shift-section-head { align-items: flex-start; flex-direction: column; }
  .shift-toolbar__filters, .shift-toolbar__actions { width: 100%; }
  .shift-search { width: 100%; }
  .shift-field { flex: 1 1 140px; }
  .shift-toolbar__actions .shift-secondary, .shift-toolbar__actions .shift-primary { flex: 1; }
  .shift-toolbar-mode { flex: 1 1 100%; }
  .shift-toolbar-mode .shift-segmented { display: grid; grid-template-columns: 1fr 1fr; }
  .shift-toolbar-mode .shift-segmented button { min-width: 0; }
  .shift-staffing-table th, .shift-staffing-table td { width: 132px; min-width: 132px; }
  .shift-staffing-table th:first-child, .shift-staffing-table td:first-child { width: 74px; min-width: 74px; }
  .shift-staffing-mode-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  .shift-staffing-detail { grid-template-columns: 1fr; }
  .shift-staffing-detail > div { min-height: 66px; border-right: 0; border-bottom: 1px solid var(--shift-line); }
  .shift-staffing-detail > div:last-child { border-bottom: 0; }
  .shift-date-control { width: 100%; justify-content: space-between; }
  .shift-date-control strong { min-width: 0; font-size: 14px; }
  .shift-progress-list li { grid-template-columns: 80px 1fr 58px; padding: 10px 13px; gap: 10px; }
  .shift-shortage-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .shift-shortage-list { padding: 0 13px; }
  .shift-shortage-row { grid-template-columns: 62px 1fr 1fr auto; gap: 8px; padding: 10px 0; }
  .shift-shortage-row > strong { grid-column: 2 / 4; grid-row: 2; }
  .shift-shortage-row .shift-danger-button { grid-column: 4; grid-row: 1 / 3; }
  .shift-status-chart { min-height: 0; grid-template-columns: 124px minmax(130px, 1fr); gap: 18px; padding: 24px 18px; }
  .shift-status-donut { width: 124px; height: 124px; }
  .shift-status-donut::before { inset: 16px; }
  .shift-status-donut strong { font-size: 25px; }
  .shift-detail-grid { grid-template-columns: 1fr; }
  .shift-settings-row { grid-template-columns: 1fr; gap: 6px; }
  .shift-period-context { align-items: flex-start; flex-direction: column; gap: 10px; }
  .shift-period-context > div:first-child { min-width: 0; }
  .shift-period-context dl { width: 100%; gap: 20px; }
  .shift-period-selector { width: 100%; min-width: 0; }
  .shift-phase-cycle { grid-template-columns: 1fr; }
  .shift-period-preview { grid-template-columns: 1fr; }
  .shift-period-preview-card dl { grid-template-columns: 1fr; }
  .shift-settings-row > strong { padding-top: 0; }
  .shift-settings-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .shift-period-count { align-self: flex-start; }
  .shift-period-calendar { grid-template-columns: 1fr; gap: 10px; }
  .shift-date-arrow { transform: rotate(90deg); font-size: 20px; }
  .shift-date-flow { grid-template-columns: 1fr; gap: 10px; }
  .shift-date-flow__step { padding-left: 38px; }
  .shift-date-flow__line { width: 1px; height: 20px; margin: 0 0 0 14px; }
  .shift-schedule-note { margin-left: 38px !important; }
  .shift-choice-group { grid-template-columns: 1fr; }
  .shift-talk { height: calc(100vh - 315px); height: calc(100svh - 315px); min-height: 360px; max-height: none; grid-template-columns: 1fr; }
  .shift-talk__rooms, .shift-chat, .shift-talk__detail { display: none; border: 0; }
  .shift-talk[data-mobile-pane="rooms"] .shift-talk__rooms,
  .shift-talk[data-mobile-pane="chat"] .shift-chat,
  .shift-talk[data-mobile-pane="detail"] .shift-talk__detail { display: flex; flex-direction: column; }
  .shift-talk__rooms .shift-room-list { flex: 1; height: auto; }
  .shift-talk-mobile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 9px; padding: 3px; border-radius: 6px; background: #e9ecf3; }
  .shift-talk-mobile-tabs button { min-height: 38px; border: 0; border-radius: 4px; color: var(--shift-muted); background: transparent; font-weight: 700; }
  .shift-talk-mobile-tabs button.is-active { color: var(--shift-heading); background: #fff; }
  .shift-chat__messages { min-height: 0; }
  .shift-message { max-width: 88%; }
}

@media (max-width: 768px) {
  .shift-week-panel__head { align-items: flex-start; flex-direction: column; }
  .shift-week-actions { width: 100%; justify-content: space-between; }
  .shift-week-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-week-metrics > div { min-height: 66px; padding: 11px 13px; }
  .shift-week-metrics > div:nth-child(2) { border-right: 0; }
  .shift-week-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--shift-line); }
  .shift-week-summary-table { min-width: 620px; }
}
@media (max-width: 430px) {
  .shift-summary { grid-template-columns: 1fr; }
  .shift-summary__item, .shift-summary__item:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--shift-line); }
  .shift-summary__item:last-child { border-bottom: 0; }
  .shift-schedule-table th:first-child, .shift-schedule-table td:first-child { width: 150px; min-width: 150px; }
  .shift-schedule-table th, .shift-schedule-table td { width: 150px; min-width: 150px; }
  .shift-talk { min-height: 360px; }
}

/* 休みセル(キャスト申請の休み希望を未提出と区別して可視化) */
.shift-cell-button.is-off { background: #f1f2f6; border-color: #e3e5ee; }
.shift-cell-button.is-off strong, .shift-cell-button.is-off span { color: #8a8aa3; }
.shift-badge--off { background: #f1f2f6; color: #8a8aa3; }
/* 週間シフトの店舗メモ表示 */
.shift-cell-note { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: #b08a2e; }

/* 設定ページのセレクトを日付カードと同じ見た目に統一 */
.shift-date-card__input--select select { width: 100%; height: 56px; padding: 0 14px; border: 0; outline: 0; color: var(--shift-heading); background: transparent; font-family: Lato, "Noto Sans JP", sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.shift-offset-preview { display: block; margin-top: 7px; color: var(--shift-muted); font-size: 12px; font-weight: 700; }

/* 練習モード */
.is-practice-mode .shift-page {
  min-height: 100vh;
  background: #fffcf6;
  box-shadow: inset 0 0 0 3px #d59a2a;
}
.shift-page-head h1 { display: flex; align-items: center; gap: 12px; }
.shift-practice-title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e3b75f;
  border-radius: 999px;
  color: #8b5c08;
  background: #fff8e8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.shift-practice-bar {
  position: sticky;
  top: 8px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #e3b75f;
  border-left: 5px solid #b87918;
  border-radius: 7px;
  color: #5d470f;
  background: #fff8e8;
  box-shadow: 0 5px 18px rgba(91, 67, 12, .1);
}
.shift-practice-bar.is-complete { border-color: #7ac5ac; border-left-color: #2f9c7d; background: #f0fbf7; }
.shift-practice-bar__identity, .shift-practice-bar__course { display: flex; align-items: center; gap: 10px; }
.shift-practice-bar__identity strong { color: #79520c; font-size: 14px; }
.shift-practice-bar__identity span { color: #776847; font-size: 11px; font-weight: 700; }
.shift-practice-bar__course { padding-left: 18px; border-left: 1px solid #e4c98f; }
.shift-practice-bar__course span { color: #776847; font-size: 11px; font-weight: 700; }
.shift-practice-bar__course strong { color: #5d470f; font-family: Lato, "Noto Sans JP", sans-serif; font-size: 15px; }
.shift-practice-bar__actions { display: flex; gap: 7px; }
.shift-practice-bar__actions button {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #d9b66e;
  border-radius: 5px;
  color: #6b4b0d;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.shift-practice-bar__actions button:last-child { color: #b34e59; border-color: #e6bdc1; }
.shift-practice-bar__actions button:hover { background: #fffdf7; }

.shift-practice-exit-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 18px;
  border: 1px solid #9c650d;
  border-radius: 6px;
  color: #fff;
  background: #9b650e;
  box-shadow: 0 8px 22px rgba(91, 67, 12, .22);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s, opacity .15s;
}
.shift-practice-exit-fab:hover { background: #805108; box-shadow: 0 10px 26px rgba(91, 67, 12, .28); transform: translateY(-1px); }
.shift-practice-exit-fab:focus-visible { outline: 3px solid rgba(213, 154, 42, .35); outline-offset: 3px; }
body:has(.shift-modal.is-open) .shift-practice-exit-fab,
body:has(.shift-drawer-layer.is-open) .shift-practice-exit-fab { visibility: hidden; opacity: 0; pointer-events: none; }
.is-practice-mode .shift-toast { bottom: 84px; }

.shift-practice-guide {
  margin: -2px 0 22px;
  border: 2px solid #dd8a00;
  border-radius: 7px;
  background: #fff9e8;
  box-shadow: 0 8px 22px rgba(185, 105, 0, .16);
}
.shift-practice-guide__head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 15px;
  background: #ffd66f;
}
.shift-practice-guide__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shift-practice-guide__title span, .shift-practice-guide.is-empty .shift-practice-guide__head span {
  color: #754500;
  font-size: 11px;
  font-weight: 700;
}
.shift-practice-guide__title strong, .shift-practice-guide.is-empty .shift-practice-guide__head strong {
  display: block;
  color: var(--shift-heading);
  font-size: 15px;
}
.shift-practice-guide.is-empty .shift-practice-guide__head > div { display: grid; gap: 3px; }
.shift-practice-guide__head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.shift-practice-guide__head-actions .shift-secondary, .shift-practice-guide.is-empty .shift-secondary { min-height: 36px; padding: 0 13px; font-size: 11px; }
.shift-practice-guide__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e6bd63;
}
.shift-practice-guide__body > div { min-width: 0; padding: 13px 15px; border-right: 1px solid #ead092; }
.shift-practice-guide__body > div:last-child { border-right: 0; }
.shift-practice-guide__body span { color: #754500; font-size: 10px; font-weight: 700; }
.shift-practice-guide__body p { margin: 5px 0 0; color: #343952; font-size: 12px; font-weight: 700; line-height: 1.65; }
.shift-practice-guide.is-collapsed .shift-practice-guide__head { background: #ffd66f; }
.is-practice-target { outline: 3px solid #d59a2a; outline-offset: 4px; border-radius: 7px; }

.shift-practice-goal {
  padding: 14px 15px 15px;
  border-top: 2px solid #dd8a00;
  background: #fff;
}
.shift-practice-goal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shift-practice-goal__head > div { display: grid; gap: 3px; }
.shift-practice-goal__head span, .shift-practice-goal--single span {
  color: #b46400;
  font-size: 10px;
  font-weight: 700;
}
.shift-practice-goal__head strong, .shift-practice-goal--single strong {
  color: var(--shift-heading);
  font-size: 14px;
}
.shift-practice-goal__head b, .shift-practice-goal--single > b {
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #744600;
  background: #ffe8aa;
  font-family: Lato, "Noto Sans JP", sans-serif;
  font-size: 13px;
  text-align: center;
}
.shift-practice-goal ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.shift-practice-goal li {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #ead39b;
  border-radius: 6px;
  background: #fffaf0;
}
.shift-practice-goal li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #d89a24;
  border-radius: 50%;
  color: #9a6500;
  background: #fff;
  font-family: Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.shift-practice-goal li strong { color: #424760; font-size: 11px; line-height: 1.55; }
.shift-practice-goal li em { color: #a07725; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.shift-practice-goal li.is-done { border-color: #8ed1bd; background: #f0fbf7; }
.shift-practice-goal li.is-done > span { border-color: #37a78a; color: #fff; background: #37a78a; }
.shift-practice-goal li.is-done em { color: #278c72; }
.shift-practice-goal--single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shift-practice-goal--single > div { display: grid; gap: 3px; }

.shift-practice-store { display: none; }
.is-practice-mode .shift-practice-store {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e3b75f;
  border-radius: 5px;
  color: #79520c;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.is-practice-mode .page-header__store-select,
.is-practice-mode .page-header__store > select,
.is-practice-mode .page-header__store .select2-container { display: none !important; }

.shift-modal__box--practice { width: min(940px, 100%); max-height: min(820px, calc(100vh - 40px)); }
.shift-modal__box--confirm { width: min(520px, 100%); }
.shift-practice-kicker { display: block; margin-bottom: 3px; color: #9a741f; font-size: 10px; font-weight: 700; }
.shift-practice-intro {
  padding: 16px;
  border: 1px solid #ead6a9;
  border-radius: 7px;
  background: #fffaf0;
}
.shift-practice-intro > strong { display: block; color: var(--shift-heading); font-size: 15px; line-height: 1.65; }
.shift-practice-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid #eadfca; border-radius: 6px; background: #fff; overflow: hidden; }
.shift-practice-facts > div { min-width: 0; padding: 11px 12px; border-right: 1px solid #eadfca; }
.shift-practice-facts > div:last-child { border-right: 0; }
.shift-practice-facts span, .shift-practice-facts b { display: block; }
.shift-practice-facts span { color: #8c8068; font-size: 10px; font-weight: 700; }
.shift-practice-facts b { margin-top: 4px; color: #5c536e; font-size: 12px; }
.shift-practice-storage-note { margin: 11px 0 0; color: #756b58; font-size: 10px; font-weight: 700; line-height: 1.65; }
.shift-practice-browser-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e3b75f; border-radius: 6px; background: #fff8e8; }
.shift-practice-browser-alert strong, .shift-practice-browser-alert span { display: block; }
.shift-practice-browser-alert strong { flex: 0 0 auto; color: #7a4e00; font-size: 12px; }
.shift-practice-browser-alert span { color: #776847; font-size: 10px; font-weight: 700; line-height: 1.6; }
.shift-practice-lock-copy strong { display: block; color: var(--shift-heading); font-size: 14px; line-height: 1.65; }
.shift-practice-lock-copy p { margin: 9px 0 0; color: var(--shift-muted); font-size: 12px; line-height: 1.75; }
.shift-practice-menu-footer { align-items: center; flex-wrap: wrap; }
.shift-practice-menu-footer__spacer { flex: 1 1 auto; }
.shift-practice-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cfd4e2;
  border-radius: 7px;
  background: #f7f8fb;
}
.shift-practice-resume > div { display: grid; gap: 2px; }
.shift-practice-resume span, .shift-practice-resume small { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-practice-resume strong { color: var(--shift-heading); font-size: 14px; }
.shift-practice-resume .shift-primary { flex: 0 0 auto; }
.shift-practice-section-title { margin: 22px 0 10px; }
.shift-practice-section-title h3 { margin: 0; color: var(--shift-heading); font-size: 16px; }
.shift-practice-section-title p { margin: 4px 0 0; color: var(--shift-muted); font-size: 11px; }
.shift-practice-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shift-practice-mode-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dfe3ec;
  border-radius: 7px;
  background: #fff;
}
.shift-practice-mode-card.is-active { border-color: #b3acd5; background: #f8f7fc; }
.shift-practice-mode-card span { display: inline-flex; margin-bottom: 7px; color: #9a741f; font-size: 10px; font-weight: 700; }
.shift-practice-mode-card h3 { margin: 0; color: var(--shift-heading); font-size: 16px; }
.shift-practice-mode-card p { min-height: 42px; margin: 7px 0 0; color: var(--shift-muted); font-size: 11px; line-height: 1.65; }
.shift-practice-mode-card small { display: block; margin-top: 9px; color: #7d8298; font-size: 10px; font-weight: 700; }
.shift-practice-mode-card button { width: 100%; min-height: 38px; font-size: 11px; }
.shift-practice-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 6px;
  background: #eceff5;
}
.shift-practice-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--shift-muted);
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.shift-practice-mode-switch button.is-active { color: #fff; background: #545477; }
.shift-practice-menu-note { margin: 10px 0 16px; color: var(--shift-muted); font-size: 11px; }
.shift-practice-task-groups { display: grid; gap: 18px; }
.shift-practice-task-group { min-width: 0; }
.shift-practice-task-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.shift-practice-task-group__head h3 { margin: 0; padding-left: 9px; border-left: 3px solid #73cdbc; color: var(--shift-heading); font-size: 14px; }
.shift-practice-task-group__head span { color: var(--shift-muted); font-size: 10px; font-weight: 700; }
.shift-practice-task-list { border: 1px solid #dfe3ec; border-radius: 6px; overflow: hidden; }
.shift-practice-task {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #e8ebf1;
  color: var(--shift-heading);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.shift-practice-task:last-child { border-bottom: 0; }
.shift-practice-task:hover, .shift-practice-task.is-current { background: #f8f7fc; }
.shift-practice-task.is-current { box-shadow: inset 3px 0 #545477; }
.shift-practice-task__state { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d8ddea; border-radius: 50%; color: #6f7590; font-family: Lato, sans-serif; font-size: 10px; font-weight: 700; }
.shift-practice-task.is-done .shift-practice-task__state { border-color: #5bbda7; color: #fff; background: #5bbda7; }
.shift-practice-task > span:nth-child(2) { min-width: 0; }
.shift-practice-task strong, .shift-practice-task small { display: block; }
.shift-practice-task strong { font-size: 12px; }
.shift-practice-task small { margin-top: 3px; color: var(--shift-muted); font-size: 10px; line-height: 1.5; }
.shift-practice-task em { color: #797f98; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.shift-practice-end-copy { margin: 0; color: #545a72; font-size: 13px; font-weight: 700; line-height: 1.8; }
.shift-practice-end-footer { flex-wrap: wrap; }
.shift-practice-end-footer button { flex: 0 1 auto; }

@media (max-width: 1020px) {
  .shift-practice-bar { grid-template-columns: 1fr auto; }
  .shift-practice-bar__course { grid-column: 2; grid-row: 1; }
  .shift-practice-bar__actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 9px; border-top: 1px solid #e4c98f; }
  .shift-practice-guide__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-practice-guide__body > div:nth-child(2) { border-right: 0; }
  .shift-practice-guide__body > div:nth-child(-n+2) { border-bottom: 1px solid #eee2c8; }
}

@media (max-width: 768px) {
  .shift-practice-exit-fab { display: none; }
  .is-practice-mode .shift-toast { bottom: 28px; }
  .shift-practice-browser-alert { align-items: flex-start; flex-direction: column; gap: 5px; }
  .shift-practice-end-footer { display: grid; grid-template-columns: 1fr 1fr; }
  .shift-practice-end-footer button { width: 100%; }
  .shift-practice-end-footer .shift-danger-button { grid-column: 1 / -1; }
  .shift-practice-menu-footer { justify-content: stretch; }
  .shift-practice-menu-footer__spacer { display: none; }
  .shift-practice-menu-footer button { flex: 1 1 calc(50% - 9px); }
  .shift-page-head__actions .shift-practice-entry { display: inline-flex; min-height: 40px; padding: 0 11px; font-size: 11px; }
  .shift-practice-title-badge { min-height: 24px; padding: 0 8px; font-size: 10px; }
  .shift-practice-bar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 10px 0 14px;
    padding: 11px;
  }
  .shift-practice-bar__identity { align-items: flex-start; flex-direction: column; gap: 2px; }
  .shift-practice-bar__course { grid-column: auto; grid-row: auto; justify-content: space-between; padding: 8px 0 0; border-top: 1px solid #e4c98f; border-left: 0; }
  .shift-practice-bar__actions { grid-column: auto; justify-content: stretch; padding-top: 8px; }
  .shift-practice-bar__actions button { flex: 1; padding: 0 7px; }
  .shift-practice-guide__head { align-items: flex-start; flex-direction: column; }
  .shift-practice-guide__head-actions { width: 100%; }
  .shift-practice-guide__head-actions .shift-secondary { flex: 1; }
  .shift-practice-guide__body { grid-template-columns: 1fr; }
  .shift-practice-guide__body > div { border-right: 0; border-bottom: 1px solid #eee2c8; }
  .shift-practice-guide__body > div:last-child { border-bottom: 0; }
  .shift-practice-goal ol { grid-template-columns: 1fr; }
  .shift-practice-goal li { grid-template-columns: 26px minmax(0, 1fr); }
  .shift-practice-goal li em { grid-column: 2; }
  .shift-practice-goal--single { align-items: flex-start; flex-direction: column; }
  .shift-modal:has(.shift-modal__box--practice) { padding: 0; }
  .shift-modal__box--practice { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .shift-modal__box--practice .shift-modal__head { position: sticky; top: 0; z-index: 2; background: #fff; }
  .shift-modal__box--practice .shift-modal__footer { position: sticky; bottom: 0; background: #fff; }
  .shift-practice-facts, .shift-practice-modes { grid-template-columns: 1fr; }
  .shift-practice-facts > div { display: flex; justify-content: space-between; gap: 12px; border-right: 0; border-bottom: 1px solid #eadfca; }
  .shift-practice-facts > div:last-child { border-bottom: 0; }
  .shift-practice-facts b { margin-top: 0; }
  .shift-practice-resume { align-items: stretch; flex-direction: column; }
  .shift-practice-mode-card { flex-direction: row; align-items: flex-end; }
  .shift-practice-mode-card > div { min-width: 0; flex: 1; }
  .shift-practice-mode-card p { min-height: 0; }
  .shift-practice-mode-card button { width: auto; flex: 0 0 auto; }
}

@media (max-width: 430px) {
  .shift-practice-menu-footer button { flex-basis: 100%; }
  .shift-practice-end-footer { grid-template-columns: 1fr; }
  .shift-page-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .shift-page-head__actions { width: 100%; }
  .shift-page-head__actions .shift-practice-entry, .shift-page-head__actions .shift-save { flex: 1; }
  .shift-practice-mode-card { align-items: stretch; flex-direction: column; }
  .shift-practice-mode-card button { width: 100%; }
  .shift-practice-mode-switch button { font-size: 10px; }
  .shift-practice-task { grid-template-columns: 26px minmax(0, 1fr); }
  .shift-practice-task em { display: none; }
}
