body { font-family: system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif; margin: 0; padding: 16px; background: #fafaf7; color: #222; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
h1 { font-size: 1.25rem; margin: 0; flex: 1; }
#refresh, #import-reserve, #publish, .detail button { font-size: 1rem; padding: 8px 16px; border-radius: 6px; border: 1px solid #2f7d4f; background: #2f7d4f; color: #fff; cursor: pointer; }
#refresh:disabled, #publish:disabled, #import-reserve.busy { opacity: .6; cursor: wait; }
#import-reserve, #publish { background: #fff; color: #2f7d4f; }
#status { font-size: .85rem; color: #555; width: 100%; }
#status .error, #status .skipped { color: #b3261e; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: baseline; }
#calendar { background: #fff; padding: 8px; border-radius: 8px; max-width: 1100px; }
.fc-event { cursor: pointer; }
.fc-event.draft, .fc-event.reserve_day { opacity: .85; }

body.detail { max-width: 720px; }
.detail h1 { font-size: 1.4rem; margin: 16px 0; }
.detail .back { color: #2f7d4f; }
.detail table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 8px; }
.detail th, .detail td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e0; vertical-align: top; }
.detail th { width: 6em; color: #555; font-weight: 600; white-space: nowrap; }
.detail td a { overflow-wrap: anywhere; }
.detail h2 { font-size: 1rem; margin: 24px 0 8px; color: #555; }
.detail pre { white-space: pre-wrap; background: #fff; padding: 12px; border-radius: 8px; font-size: .85rem; }

/* Time-of-day bars: a day cell spans 08:00 (left) to 17:00 (right). */
.legend-note { font-size: .8rem; color: #666; width: 100%; }
.fc .fc-daygrid-event { margin: 1px 2px 0; padding: 0; border: 0; background: transparent; }
.time-event { padding: 1px 0 3px; }
.time-track { position: relative; height: 8px; background: #ebebe4; border-radius: 3px; overflow: hidden; }
.time-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--bar-color); border-radius: 3px; }
.time-bar.unknown {
  opacity: .55;
  background: repeating-linear-gradient(135deg, var(--bar-color) 0 6px, transparent 6px 10px);
}
.time-label {
  padding: 0 2px 1px; line-height: 16px; font-size: .78rem; color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid var(--bar-color); padding-left: 4px;
}
.fc-list .time-track { background: transparent; }
.detail .time-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 12px; }
.detail .time-form input { font-size: .95rem; padding: 2px 4px; }
.detail .time-form button { font-size: .85rem; padding: 4px 10px; }
.detail button.secondary { background: #fff; color: #2f7d4f; }
.detail .note { font-size: .85rem; color: #555; }

/* Public site (app/public) */
.disclaimer { font-size: .9rem; color: #7a4a00; background: #fff6e0; border: 1px solid #f0d9a0; border-radius: 6px; padding: 6px 10px; width: 100%; }
.updated { font-size: .8rem; color: #666; width: 100%; }
