.trc-wrap { max-width: 900px; margin: 0 auto; }
.trc-section { margin: 34px 0; }
.trc-heading { margin: 0 0 8px; font-size: 1.35rem; }
.trc-help { margin: 0 0 16px; color: #666; font-size: .95rem; }
.trc-empty, .trc-loading { margin: 0; color: #666; }
.trc-error { margin: 0; color: #b42318; }
.trc-notice { margin: 0 0 20px; padding: 12px 14px; border-left: 4px solid #2e7d32; background: #edf7ed; border-radius: 4px; }
#calendar { max-width: 900px; margin: 20px auto; }
.trc-calendar-shell { position: relative; max-width: 900px; margin: 0 auto; }
.trc-calendar-month-nav { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 42px; margin: 0 0 4px; }
.trc-calendar-month-nav button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; padding: 0; border: 1px solid #517664; border-radius: 7px; background: #517664; color: #fff; -webkit-text-fill-color: #fff; font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; }
.trc-calendar-month-nav button:hover,
.trc-calendar-month-nav button:focus-visible { background: #365947; outline: 2px solid #8db4a0; outline-offset: 2px; }
.trc-calendar-month-title { min-width: 116px; color: #27323a; font-size: 1.35rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; }
.trc-calendar-current-row { min-height: 0; margin: 0 0 5px; text-align: center; }
.trc-calendar-current-row button { padding: 4px 10px; border: 1px solid #9eaaa3; border-radius: 999px; background: #fff; color: #496153; -webkit-text-fill-color: #496153; font-size: .78rem; cursor: pointer; }
.trc-calendar-current-row button[hidden] { display: none !important; }
.trc-calendar-swipe-overlay { position: absolute; top: 50%; left: 50%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; width: max-content; max-width: calc(100% - 36px); padding: 12px 18px; transform: translate(-50%, -50%); border-radius: 10px; background: rgba(35,45,40,.76); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
.trc-calendar-swipe-overlay.is-visible { opacity: 1; visibility: visible; }
.trc-calendar-swipe-icon { font-size: 28px; line-height: 1; }
.fc .fc-daygrid-day.fc-day-today { background: #edf6f0 !important; box-shadow: inset 0 0 0 3px #517664; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 27px; margin: 3px; border-radius: 50%; background: #517664; color: #fff; font-weight: 700; }
.fc-daygrid-day:not(.is-closed) { cursor: pointer; }
.fc-daygrid-day.is-closed { background: repeating-linear-gradient(-45deg,#f6f6f6,#f6f6f6 8px,#ececec 8px,#ececec 16px); opacity: .75; cursor: pointer; }
.fc-col-header-cell-cushion { color: #222; text-decoration: none; font-weight: 700; }
.trc-card-list, .trc-upcoming-list { display: grid; gap: 12px; }
.trc-my-card, .trc-day-card { padding: 16px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.trc-my-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.trc-my-card-main { min-width: 0; flex: 1; }
.trc-my-card-primary { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.trc-my-card-primary .trc-status-badge { margin: 0; }
.trc-card-date { font-weight: 700; }
.trc-card-time { margin-top: 3px; }
.trc-card-comment { margin-top: 8px; color: #555; font-size: .92rem; }
.trc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.trc-button { display: inline-block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font: inherit; font-size: .9rem; line-height: inherit; cursor: pointer; }
.trc-button-sub { border: 1px solid #777; color: #333; background: #fff; }
.trc-button-danger { border: 1px solid #c62828; color: #c62828; background: #fff; }
.trc-day-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.trc-participant-list { display: grid; gap: 10px; }
.trc-participant { padding: 10px 0; border-top: 1px solid #eee; }
.trc-participant:first-child { border-top: 0; padding-top: 0; }
.trc-participant-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.trc-participant-name { font-weight: 700; }
.trc-participant-time { white-space: nowrap; color: #444; }
.trc-participant-comment { margin-top: 4px; color: #666; font-size: .9rem; }
.trc-modal-bg { display: none; position: fixed; inset: 0; padding: 24px 12px; background: rgba(0,0,0,.55); z-index: 99999; overflow-y: auto; }
.trc-modal { position: relative; width: min(100%, 480px); margin: 3vh auto; padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.trc-modal-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 1px solid #d8dce1; border-radius: 50%; background: #f5f6f7; color: #2f3439; font-size: 30px; font-weight: 500; line-height: 1; cursor: pointer; }
.trc-modal-close:hover, .trc-modal-close:focus-visible { background: #e9ecef; border-color: #b9c0c7; outline: 2px solid #0073aa; outline-offset: 2px; }
.trc-modal-title { margin: 0 52px 4px 0; font-size: 1.35rem; }
.trc-modal-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap-reverse;
}
.trc-modal-user { margin: 0; color: #666; }
.trc-event-detail-link {
  margin-left: auto;
  color: #1677c8;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: underline;
  white-space: nowrap;
}
.trc-event-detail-link[hidden] { display: none; }
.trc-event-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000001;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(0, 0, 0, .58);
}
.trc-event-detail-modal.is-open { display: flex; align-items: center; justify-content: center; }
.trc-event-detail-dialog {
  position: relative;
  width: min(760px, 100%);
  height: min(88vh, 900px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
}
.trc-event-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 64px 10px 14px;
  border-bottom: 1px solid #ddd;
}
.trc-event-detail-header h2 { margin: 0; font-size: 1.1rem; }
.trc-event-detail-loading { margin: auto; padding: 20px; color: #666; }
.trc-event-detail-content { flex: 1; min-height: 0; padding: 18px 22px 28px; overflow-y: auto; line-height: 1.8; background: #fff; }
.trc-event-detail-content[hidden] { display: none; }
.trc-event-article { width: 100%; max-width: none; margin: 0; }
.trc-event-page-title { margin: 0 0 1em; font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.4; }
.trc-event-detail-content img { max-width: 100%; height: auto; }
.trc-event-detail-content iframe { display: block; width: 100%; max-width: 100%; min-height: 320px; border: 0; }
.trc-event-detail-content h2:first-child,
.trc-event-detail-content h3:first-child { margin-top: 0; }
.trc-event-detail-content table { max-width: 100%; }
.trc-event-detail-content a { overflow-wrap: anywhere; }
.trc-event-article > h2:not(.tsuna-schedule-event-title) {
  margin: 2em 0 1em;
  padding: 12px 18px;
  border: 0;
  background: #38ad58;
  color: #fff;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.45;
}
.trc-event-article .marker-halfYellow {
  background: linear-gradient(transparent 60%, #fff799 60%);
}
.trc-event-article .tsuna-schedule-event-title {
  margin: 0 0 20px;
  padding: 12px 18px;
  border: 0;
  background: #38ad58;
  color: #fff;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.45;
}
.trc-event-article .tsuna-schedule-image { margin: 0 0 18px; }
.trc-event-article .tsuna-schedule-image img { display: block; width: 100%; height: auto; }
.trc-event-article .tsuna-schedule-highlight { margin: 0 0 22px; }
.trc-event-article .tsuna-schedule-label {
  display: table;
  margin: 20px 0 12px;
  padding: 5px 12px;
  border-radius: 5px;
  background: #b40000;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4;
}
.trc-event-article .tsuna-schedule-overview { margin: 0 0 10px; line-height: 1.9; }
.trc-event-article .tsuna-schedule-info-row { margin: 13px 0 4px; line-height: 1.85; }
.trc-event-article .tsuna-schedule-note { margin: 2px 0 8px 18px; font-size: .92em; line-height: 1.7; }
.trc-event-article .tsuna-schedule-map { width: 100%; margin: 18px 0 24px; }
.trc-event-article .tsuna-schedule-map iframe { height: 360px; }
.trc-event-article .tsuna-schedule-timetable table { width: 100%; margin: 5px 0 10px; border-collapse: collapse; }
.trc-event-article .tsuna-schedule-timetable th,
.trc-event-article .tsuna-schedule-timetable td { padding: 10px 12px; border: 1px solid #ddd; vertical-align: top; }
.trc-event-article .tsuna-schedule-timetable td:first-child,
.trc-event-article .tsuna-schedule-timetable th:first-child { width: 20%; text-align: center; vertical-align: middle; white-space: nowrap; }
@media (max-width: 600px) {
  .trc-event-detail-modal { padding: 14px 10px; }
  .trc-event-detail-dialog { height: 90vh; border-radius: 9px; }
  .trc-event-detail-content { padding: 16px 14px 24px; }
  .trc-event-article > h2:not(.tsuna-schedule-event-title),
  .trc-event-article .tsuna-schedule-event-title { padding: 10px 12px; font-size: 1.15em; }
  .trc-event-article .tsuna-schedule-map iframe { height: 260px; min-height: 260px; }
  .trc-event-article .tsuna-schedule-timetable td:first-child,
  .trc-event-article .tsuna-schedule-timetable th:first-child { width: 30%; white-space: normal; }
}
.trc-selected-participants { margin-bottom: 20px; padding: 14px; background: #f7f8fa; border-radius: 8px; }
.trc-selected-participants h3 { margin: 0 0 10px; font-size: 1rem; }
.trc-extra-participants-manager { margin: 0 0 20px; padding: 14px; border: 1px solid #d8c57a; border-radius: 8px; background: #fffbea; }
.trc-extra-participants-manager[hidden] { display: none !important; }
.trc-extra-participants-manager h3 { margin: 0 0 5px; font-size: 1rem; }
.trc-extra-participants-manager > p { margin: 0 0 10px; color: #666; font-size: .88rem; }
.trc-extra-participants-controls { display: flex; align-items: center; gap: 8px; }
.trc-extra-participants-controls button { min-height: 40px; padding: 7px 13px; border: 1px solid #9aa4ad; border-radius: 6px; background: #fff; color: #27323a; -webkit-text-fill-color: #27323a; font-weight: 700; cursor: pointer; }
.trc-extra-participants-controls #trc-extra-minus,
.trc-extra-participants-controls #trc-extra-plus { display: inline-flex; align-items: center; justify-content: center; width: 42px; padding: 0; background: #edf1f4; color: #27323a !important; -webkit-text-fill-color: #27323a; font-size: 25px; font-weight: 800; line-height: 1; }
.trc-extra-participants-controls button:last-child { margin-left: auto; border-color: #517664; background: #517664; color: #fff; -webkit-text-fill-color: #fff; }
.trc-extra-participants-controls input { box-sizing: border-box; width: 68px; min-height: 40px; padding: 7px; border: 1px solid #aaa; border-radius: 6px; text-align: center; font-size: 1rem; }
.trc-extra-status { min-height: 1.3em; margin: 8px 0 0 !important; color: #365947 !important; }
.trc-status-extra { padding: 10px 0; border-top: 1px solid #ddd; }
.trc-status-extra h4 { margin: 0; color: #5b6470; font-size: .95rem; }
.trc-compact-extra { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: #505966; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.trc-label { display: block; margin: 13px 0 6px; font-weight: 700; }
.trc-label span { font-weight: 400; color: #666; font-size: .85rem; }
.trc-input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #bbb; border-radius: 6px; background: #fff; }
.trc-textarea { min-height: 88px; resize: vertical; }
.trc-submit { width: 100%; margin-top: 18px; padding: 12px 16px; border: 0; border-radius: 7px; background: #0073aa; color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }
.trc-modal-delete-form { margin: 10px 0 0; }
.trc-modal-delete-button { width: 100%; padding: 11px 16px; border: 2px solid #c62828; border-radius: 7px; background: #fff; color: #b71c1c; font-size: 1rem; font-weight: 700; cursor: pointer; }
.trc-modal-delete-button:hover, .trc-modal-delete-button:focus-visible { background: #fff3f3; }
.trc-modal-bottom-close { width: 100%; margin-top: 10px; padding: 11px 16px; border: 1px solid #b8bec5; border-radius: 7px; background: #f5f6f7; color: #30363d; font-size: 1rem; font-weight: 700; cursor: pointer; }
.trc-modal-bottom-close:hover, .trc-modal-bottom-close:focus-visible { background: #e9ecef; }
.trc-submit:disabled, .trc-modal-delete-button:disabled { opacity: .6; cursor: wait; }
body.trc-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .trc-my-card { align-items: center; }
  .trc-my-card .trc-actions { width: auto; }
  .trc-my-card .trc-button { flex: 0 0 auto; padding: 7px 9px; text-align: center; }
  .trc-modal { padding: 20px 16px; }
  .fc .fc-toolbar { gap: 8px; flex-wrap: wrap; }
  .fc .fc-toolbar-title { font-size: 1.15rem; }
  .trc-calendar-month-nav { gap: 9px; }
  .trc-calendar-month-nav button { width: 38px; height: 38px; font-size: 15px; }
  .trc-calendar-month-title { min-width: 105px; font-size: 1.18rem; }
  .trc-extra-participants-controls { flex-wrap: wrap; }
  .trc-extra-participants-controls button:last-child { margin-left: 0; flex: 1; }
}

.trc-business-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f8fc;
  border: 1px solid #d6e7f2;
  font-weight: 700;
  line-height: 1.6;
}

.trc-business-info[hidden] {
  display: none !important;
}

.trc-business-info-title + .trc-business-info-title {
  margin-top: 4px;
}

.fc-daygrid-day.is-past {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
}

.fc-daygrid-day.is-closed {
  background: repeating-linear-gradient(-45deg,#f6f6f6,#f6f6f6 8px,#ececec 8px,#ececec 16px);
  opacity: .82;
}

.trc-internal-event-notice {
  margin-top: 8px;
  font-weight: 500;
}

.trc-closed-notice {
  margin-top: 8px;
  color: #b42318;
}

.trc-external-events {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.trc-external-events[hidden],
.trc-back-normal[hidden],
#reservation-form[hidden],
.trc-selected-participants[hidden] {
  display: none !important;
}

.trc-external-event-card {
  padding: 14px;
  border: 1px solid #e0c46c;
  border-radius: 9px;
  background: #fffaf0;
}

.trc-external-event-label {
  margin-bottom: 3px;
  color: #8a5a00;
  font-size: .8rem;
  font-weight: 700;
}

.trc-external-event-title {
  font-weight: 700;
}

.trc-external-event-time {
  margin-top: 3px;
}

.trc-external-reserve-button,
.trc-back-normal {
  margin-top: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.trc-external-reserve-button {
  width: 100%;
  background: #8a5a00;
  color: #fff;
}

.trc-back-normal {
  margin: 0 0 14px;
  background: #f1f1f1;
  color: #333;
}

.trc-card-event,
.trc-participant-event {
  margin-top: 5px;
  font-size: .9rem;
  font-weight: 700;
  color: #8a5a00;
}

.trc-card-event-time {
  font-size: .88rem;
  color: #555;
}


.trc-reservation-choice {
  margin: 18px 0 6px;
}

.trc-reservation-choice[hidden] {
  display: none !important;
}

.trc-choice-help {
  margin: 0 0 12px;
  color: #555;
}

.trc-choice-options {
  display: grid;
  gap: 10px;
}

.trc-choice-button {
  width: 100%;
  padding: 14px;
  border: 1px solid #c8d8e4;
  border-radius: 9px;
  background: #f7fbfe;
  color: #183247;
  text-align: left;
  cursor: pointer;
}

.trc-choice-button strong {
  display: block;
  font-size: 1rem;
}

.trc-choice-button span {
  display: block;
  margin-top: 4px;
  color: #555;
  font-size: .9rem;
}

.trc-choice-button.is-external {
  border-color: #e0c46c;
  background: #fffaf0;
}

.fc-event.trc-event-marker {
  cursor: pointer;
}

/* カレンダーの「イベント有」表示 */
.fc-event.trc-event-marker .fc-daygrid-event-dot {
  display: none !important;
}

.fc-event.trc-event-marker,
.fc-event.trc-event-marker .fc-event-main,
.fc-event.trc-event-marker .fc-event-main-frame,
.fc-event.trc-event-marker .fc-event-title-container,
.fc-event.trc-event-marker .fc-event-title {
  min-width: 0;
  white-space: nowrap !important;
  overflow: hidden;
  word-break: keep-all;
}

.fc-event.trc-event-marker .fc-event-title {
  line-height: 1.25;
  font-size: 9px;
  letter-spacing: -.35px;
  text-align: center;
}

/* 参加者プロフィール画像 */
.trc-participant-person {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.trc-participant-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 50%;
  text-decoration: none;
}

.trc-participant-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #f2f2f2;
  object-fit: cover;
}

.trc-participant-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 直近予約の日付から予約画面を開く */
.trc-upcoming-date-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: -4px 0 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: #f4f7f9;
  color: #222;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.trc-upcoming-date-button:hover { background: #eaf1f5; }
.trc-upcoming-open { flex: 0 0 auto; color: #0073aa; font-size: .85rem; }
.trc-day-card.is-today { border-color: #78aeca; background: #f5fbff; }
.trc-day-card.is-today .trc-upcoming-date-button { background: #dff2fc; }
.trc-reservation-group + .trc-reservation-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ddd; }
.trc-reservation-group h4 { margin: 0 0 9px; font-size: .98rem; }
.trc-group-time { margin: -4px 0 8px; color: #555; font-size: .88rem; }
@media (max-width: 420px) {
  .trc-upcoming-date-button { align-items: flex-start; }
  .trc-upcoming-open { white-space: nowrap; }
}


/* 「あなたの登録状況」の今日を強調 */
.trc-my-card.is-today {
  border-color: #78aeca;
  background: #f5fbff;
}
.trc-my-card.is-today .trc-card-date {
  color: #075985;
}

/* 一覧内の営業時間 */
.trc-list-business-info {
  margin-top: 5px;
  color: #334155;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}
.trc-list-business-info[hidden] {
  display: none !important;
}
.trc-list-internal-events {
  margin-top: 4px;
  color: #7c3f00;
  font-size: .84rem;
  line-height: 1.4;
}
.trc-list-internal-events[hidden] { display: none !important; }
.trc-list-internal-events span { color: #64748b; }
.trc-upcoming-date-button + .trc-list-business-info {
  margin: -5px 10px 12px;
}

/* プロフィール画像を丸枠内へ確実に収める */
.trc-participant-avatar-link {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f2f2f2;
  box-sizing: border-box;
}
.trc-participant-avatar {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  object-fit: cover !important;
  object-position: center center;
}


/* 一覧内の到着予定・備考ラベル */
.trc-detail-label {
  font-weight: 700;
  color: #475569;
}

/* 掲示板プロフィール画像に合わせた角丸正方形 */
.trc-participant-avatar-link {
  border-radius: 8px;
}
.trc-participant-avatar {
  border-radius: 7px !important;
}


/* 直近予約の備考を到着予定と同じ右側へ揃える */
.trc-day-card .trc-participant-comment {
  width: 100%;
  margin-left: auto;
  text-align: right;
}

/* 「あなたの登録状況」アコーディオン */
.trc-my-reservations-accordion { padding: 0; overflow: hidden; }
.trc-my-reservations-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}
.trc-my-reservations-summary::-webkit-details-marker { display: none; }
.trc-my-reservations-summary::after { content: "＋"; margin-left: 4px; color: #0073aa; font-weight: 700; }
.trc-my-reservations-accordion[open] .trc-my-reservations-summary::after { content: "−"; }
.trc-my-reservations-summary .trc-heading { margin: 0; }
.trc-my-reservations-count { margin-left: auto; color: #64748b; font-size: .9rem; font-weight: 700; }
.trc-my-reservations-content { padding: 0 16px 12px; }
.trc-my-reservations-content .trc-card-list { display: block; border-top: 1px solid #dfe3e8; }
.trc-my-reservations-content .trc-my-card {
  min-height: 54px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.trc-my-reservations-content .trc-my-card:last-child { border-bottom: 0; }
.trc-my-reservations-content .trc-my-card.is-today { border-color: #e5e7eb; background: transparent; }
.trc-my-reservations-content .trc-my-card.is-today:last-child { border-bottom: 0; }
.trc-my-reservations-content .trc-card-event,
.trc-my-reservations-content .trc-card-event-time,
.trc-my-reservations-content .trc-card-time,
.trc-my-reservations-content .trc-card-comment,
.trc-my-reservations-content .trc-list-business-info,
.trc-my-reservations-content .trc-list-internal-events { margin-top: 4px; font-size: .84rem; line-height: 1.4; }
.trc-my-reservations-content .trc-actions { gap: 5px; }
.trc-my-reservations-content .trc-button { padding: 5px 8px; border-radius: 5px; font-size: .8rem; line-height: 1.35; }

/* 「直近7日間の予約状況」簡略表示 */
.trc-compact-group h4 { margin-bottom: 9px; }
.trc-compact-participants { display: flex; align-items: center; gap: 6px; min-height: 38px; overflow: hidden; }
.trc-compact-avatar { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden; border: 1px solid #d5dbe1; border-radius: 8px; background: #f2f2f2; }
.trc-compact-avatar img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; }
.trc-compact-more { flex: 0 0 auto; color: #475569; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.trc-compact-empty { color: #64748b; font-size: .9rem; }
.trc-upcoming-group-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 7px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trc-upcoming-group-button:hover strong { text-decoration: underline; }

/* v3.1.0：登録状況と7日間一覧 */
.trc-my-summary-main { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.trc-my-nearest { color: #334155; font-size: .92rem; font-weight: 700; line-height: 1.4; }
.trc-my-remaining { color: #64748b; font-size: .82rem; }
.trc-my-reservations-accordion[open] .trc-my-nearest,
.trc-my-reservations-accordion[open] .trc-my-remaining { display: none; }

.trc-upcoming-date-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 8px; padding: 8px 10px; border-radius: 7px; background: #f4f7f9; font-weight: 700; }
.trc-day-card { cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.trc-day-card:not(.is-closed):hover { border-color: #94b8cc; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.trc-day-card:not(.is-closed):focus-visible { outline: 2px solid #0073aa; outline-offset: 2px; }
.trc-day-card.is-today .trc-upcoming-date-row { background: #dff2fc; }
.trc-day-card.is-closed { cursor: default; background: #f3f4f6; border-color: #d7dbe0; color: #64748b; }
.trc-day-card.is-closed .trc-upcoming-date-row { background: #e5e7eb; }
.trc-day-closed { padding: 14px 10px 8px; font-weight: 700; color: #64748b; }
.trc-day-closed[hidden], .trc-day-open-content[hidden] { display: none !important; }
.trc-list-business-info + .trc-day-closed { margin-top: 4px; }

.trc-compact-confirmed-row { display: flex; align-items: center; gap: 10px; }
.trc-compact-confirmed-row > strong { flex: 0 0 auto; font-size: .92rem; }
.trc-compact-other-statuses { margin-top: 4px; color: #64748b; font-size: .86rem; }
.trc-external-group-heading { margin-bottom: 7px; }
.trc-external-group-heading span { color: #64748b; font-size: .85rem; }
.trc-external-group { cursor: pointer; }

.fc-daygrid-day-frame { position: relative; }
.fc-event.trc-reservation-calendar-event { cursor: pointer; }
.fc-event.trc-reservation-calendar-event.is-normal { background: #dc2626 !important; border-color: #dc2626 !important; }
.fc-event.trc-reservation-calendar-event.is-external { background: #6d28d9 !important; border-color: #6d28d9 !important; }
.fc-event.trc-reservation-calendar-event .fc-event-main,
.fc-event.trc-reservation-calendar-event .fc-event-main-frame,
.fc-event.trc-reservation-calendar-event .fc-event-title-container { width: 100%; min-width: 0; color: #fff !important; }
.fc-event.trc-reservation-calendar-event .trc-reservation-marker-title { box-sizing: border-box; display: block; width: 100%; padding: 1px 2px; overflow: hidden; color: #fff; font-size: 9px; font-weight: 700; line-height: 1.25; text-align: center !important; white-space: nowrap; }
.fc-daygrid-day.is-closed { cursor: not-allowed; }

@media (max-width: 480px) {
  .trc-compact-confirmed-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .trc-upcoming-date-row { align-items: flex-start; }
  .trc-my-reservations-count { display: none; }
  .fc-event.trc-reservation-calendar-event.is-external .trc-reservation-marker-title { line-height: 1.1; white-space: normal; }
  .fc-event.trc-reservation-calendar-event.is-external .trc-reservation-marker-title span { display: block; }
}

/* 参加状況 */
.trc-participation-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.trc-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 7px 0;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.trc-status-option input { margin: 0; }
.trc-status-badge {
  display: inline-block;
  margin: 6px 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.trc-status-confirmed .trc-status-badge,
.trc-status-badge.trc-status-confirmed { background: #e9f7ed; color: #166534; }
.trc-status-undecided .trc-status-badge,
.trc-status-badge.trc-status-undecided { background: #fff4d8; color: #92400e; }
.trc-status-if_someone .trc-status-badge,
.trc-status-badge.trc-status-if_someone { background: #eaf2ff; color: #1d4ed8; }
.trc-popup-status-group {
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
}
.trc-popup-status-group h4,
.trc-status-group h4 { margin: 0 0 8px; }
