﻿body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #fffbeb;
}
.oden-gradient {
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
}
.oden-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
/* Toggle Switch CSS */
.toggle-checkbox:checked { right: 0; border-color: #f97316; }
.toggle-checkbox:checked + .toggle-label { background-color: #f97316; }
.toggle-checkbox { right: 0; z-index: 1; border-color: #e2e8f0; transition: all 0.3s; }
.toggle-label { background-color: #e2e8f0; transition: all 0.3s; }

/* 曜日チェックボックス用デザイン */
.day-cb:checked + label {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
}

/* スタッフ用ボード管理：カード一覧プレビュー（グリッド表示・子ども用ボードの column レイアウトとは別） */
.staff-daily-board-preview .b-card {
    margin-bottom: 0;
    break-inside: auto;
}
.staff-daily-board-preview .staff-preview-card:hover {
    transform: scale(1.02);
}

/* 子ども用ボード：今日以外の予定ボード（閲覧専用・縦スクロール） */
.board-container.child-daily-board-preview {
    column-width: auto;
    column-count: 1;
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overflow-x: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 2.5rem;
    box-sizing: border-box;
}
.child-daily-board-preview-inner {
    width: 100%;
    padding-bottom: 1.5rem;
}
.child-daily-board-preview .b-card {
    margin-bottom: 0;
    break-inside: auto;
}
.child-daily-board-preview .child-preview-card {
    cursor: default;
}

/* 子ども用ボード：今日の dailyBoards 予定（閲覧専用・受注なし） */
.child-today-daily-board-preview {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto 1.25rem;
    padding: 1rem 0.75rem 1.25rem;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 2px solid #bae6fd;
    border-radius: 1.25rem;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.08);
    box-sizing: border-box;
}

.child-today-daily-board-preview-header {
    text-align: center;
    margin-bottom: 1rem;
}

.child-today-daily-board-preview-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.child-today-daily-board-preview-lead {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.55;
}

.child-today-daily-board-section {
    margin-bottom: 1rem;
}

.child-today-daily-board-section:last-child {
    margin-bottom: 0;
}

.child-today-daily-board-section-title {
    font-size: 0.875rem;
    font-weight: 900;
    color: #334155;
    text-align: center;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.child-today-daily-board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .child-today-daily-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .child-today-daily-board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.child-today-daily-board-project-group {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e0f2fe;
    border-radius: 1rem;
    padding: 0.875rem;
}

.child-today-daily-board-project-heading {
    font-size: 0.9375rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid;
}

.child-today-daily-board-empty {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.65);
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
}

.child-today-daily-board-card {
    margin-bottom: 0;
    break-inside: auto;
    cursor: default;
    border-top-width: 4px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.child-today-daily-board-card:hover {
    transform: none;
}

.child-today-daily-board-badge {
    font-size: 0.625rem;
    font-weight: 900;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.child-today-daily-board-time {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}



.child-board-card-topline,
.child-presentation-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.child-presentation-card-head {
    margin-bottom: 0.35rem;
}

.child-presentation-card-head .child-presentation-label {
    margin-bottom: 0;
}

.child-board-recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    border: 2px solid #f97316;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.3rem 0.56rem;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.2);
}

.child-board-task-project-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.child-board-task-project-label i {
    flex: 0 0 auto;
    opacity: 0.85;
}

.child-today-daily-board-card--recommended,
.child-preview-card--recommended,
.child-board-task-card--recommended,
.child-presentation-card--recommended {
    border-color: #f97316 !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.24), 0 12px 28px rgba(245, 158, 11, 0.22);
    background: linear-gradient(180deg, #fff4e6 0%, #fffaf0 52%, #ffffff 100%);
}

.child-preview-card--recommended:hover,
.child-preview-card--recommended:focus-visible,
.child-board-task-card--recommended:hover,
.child-board-task-card--recommended:focus-visible,
.child-presentation-card--recommended:hover,
.child-presentation-card--recommended:focus-visible {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.32), 0 14px 30px rgba(245, 158, 11, 0.26);
}

.child-today-daily-board-time--anytime {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.child-today-daily-board-title {
    font-size: 1.05em;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 0.375rem;
    word-break: break-word;
}

.child-today-daily-board-project {
    font-size: 0.75em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.child-today-daily-board-deadline {
    font-size: 0.72em;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 0.25rem;
}

.oden-deadline-date-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72em;
    font-weight: 800;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    line-height: 1.4;
}

.oden-deadline-legacy-label {
    font-size: 0.72em;
    font-weight: 700;
    color: #b45309;
}

.oden-deadline-event-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9a3412;
    list-style: none;
}

.oden-deadline-event-label {
    color: #c2410c;
    font-weight: 800;
    flex-shrink: 0;
}

.oden-deadline-event-title {
    min-width: 0;
    word-break: break-word;
}

.staff-project-detail-list--deadlines {
    margin-bottom: 0.5rem;
}

.staff-project-upcoming-deadline {
    flex-shrink: 0;
}

.child-event-card--deadline {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.child-event-deadline-badge {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    margin-bottom: 0.5rem;
}

.parent-schedule-card--deadline {
    border-color: #fed7aa;
    background: #fffbeb;
}

.parent-deadline-event-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    margin-bottom: 0.35rem;
}

.parent-mobile-day-row-event--deadline {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.parent-mobile-day-row-event--recurring {
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
}

.child-today-daily-board-meta {
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.25rem;
    line-height: 1.45;
}

.child-today-daily-board-desc {
    font-size: 0.8em;
    font-weight: 600;
    color: #475569;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 子ども用ボード：イベントカレンダー（閲覧専用・1カラム中央寄せ） */
.board-container.child-event-calendar-preview {
    display: block;
    columns: unset;
    column-width: unset;
    column-count: unset;
    column-gap: unset;
    height: auto;
    max-height: calc(100vh - 280px);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px 20px;
    box-sizing: border-box;
}

#board-view-section {
    overflow-x: hidden;
    max-width: 100%;
}

#board-view-section.board-view-events-mode {
    overflow-x: hidden;
}

.child-event-calendar-shell,
.child-event-calendar-layout,
.child-event-calendar-card,
#child-event-calendar-wrap,
#child-event-list-root {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.child-event-calendar-shell {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0.25rem 1.5rem;
    box-sizing: border-box;
}

.child-event-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .child-event-section {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

.child-event-calendar-intro {
    text-align: center;
    margin-bottom: 1.25rem;
}

.child-event-section-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.child-event-section-title--detail {
    margin-bottom: 1rem;
}

.child-event-section-desc {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.5;
}

.child-event-calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.child-event-calendar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .child-event-calendar-card {
        padding: 1.125rem 1.25rem;
    }
}

.child-event-calendar-card--list {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #bae6fd;
}

.child-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.child-cal-btn {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.child-cal-btn:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    color: #0369a1;
}

.child-cal-btn--today {
    color: #c2410c;
    background: #ffedd5;
    border-color: #fdba74;
}

.child-cal-btn--today:hover {
    background: #fed7aa;
    border-color: #fb923c;
}

.child-event-month-label {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1e293b;
    min-width: 6.5rem;
    text-align: center;
}

.child-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.child-cal-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.375rem 0;
    color: #64748b;
}

.child-cal-weekday--sun { color: #ef4444; }
.child-cal-weekday--sat { color: #3b82f6; }

.child-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.child-cal-cell-empty {
    min-height: 3rem;
}

.child-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 4.5rem;
    padding: 0.35rem 0.25rem 0.3rem;
    border-radius: 0.5rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 400px) {
    .child-cal-cell {
        min-height: 5rem;
        padding: 0.4rem 0.3rem 0.35rem;
    }
}

.child-cal-cell-daynum--sun,
.child-cal-cell-daynum--sun:hover {
    color: #dc2626;
}

.child-cal-cell-daynum--sat {
    color: #2563eb;
}

.child-cal-cell:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.child-cal-cell--selected {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0c4a6e;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.child-cal-cell--today:not(.child-cal-cell--selected) {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

.child-cal-cell--today:not(.child-cal-cell--selected):hover {
    background: #fef3c7;
}

.child-cal-cell--has-events:not(.child-cal-cell--selected):not(.child-cal-cell--today) {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.child-cal-cell-daynum {
    font-size: 1.375rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    color: inherit;
}

@media (min-width: 400px) {
    .child-cal-cell-daynum {
        font-size: 1.5rem;
    }
}

.child-cal-cell-badges {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    margin-top: 0.05rem;
}

.child-cal-badge {
    font-size: 0.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.child-cal-badge--today { color: #b45309; }
.child-cal-badge--selected { color: #0369a1; }

.child-cal-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.05rem;
    margin-top: 0.1rem;
    width: 100%;
    min-width: 0;
}

.child-cal-event-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #047857;
    line-height: 1.25;
    padding: 0 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.child-cal-more {
    font-size: 0.625rem;
    font-weight: 900;
    color: #059669;
    padding: 0 0.1rem;
}

.child-cal-deadline-label {
    color: #c2410c;
    font-weight: 900;
}

.child-cal-recurring-label {
    color: #6d28d9;
    font-weight: 900;
}

.child-schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.child-schedule-time-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.child-schedule-time {
    flex: 0 0 5.5rem;
    min-width: 5.5rem;
    padding-top: 0.65rem;
    font-size: 0.85rem;
    font-weight: 900;
    color: #0f766e;
    line-height: 1.3;
    text-align: right;
}

.child-schedule-item {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.child-schedule-type-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.child-schedule-item--event .child-schedule-type-badge {
    color: #0369a1;
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.child-schedule-item--recurring .child-schedule-type-badge {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: #c4b5fd;
}

.child-schedule-item--card .child-schedule-type-badge {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}

.child-schedule-item-body {
    min-width: 0;
    width: 100%;
}

.child-schedule-item-body .b-card,
.child-schedule-item-body .child-event-card {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.child-schedule-untimed-section {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .child-schedule-time-row {
        flex-direction: column;
        gap: 0.35rem;
    }
    .child-schedule-time {
        flex-basis: auto;
        min-width: 0;
        text-align: left;
        padding-top: 0;
        font-size: 0.8rem;
    }
}

.child-cal-project-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.15rem;
    width: 100%;
    min-height: 1.25rem;
}

.child-cal-project-icon {
    font-size: 0.875rem;
    line-height: 1;
}

@media (min-width: 400px) {
    .child-cal-project-icon {
        font-size: 1rem;
    }
}

.child-event-project-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.child-event-selected-row {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.child-event-selected-row strong {
    color: #0284c7;
    font-weight: 900;
}

.child-event-list-title {
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.child-event-empty {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.child-event-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
}

.child-event-calendar-preview .child-event-card {
    margin-bottom: 0;
    cursor: default;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* 保護者向けページ（閲覧専用・公開データのみ） */
.parent-page {
    background: linear-gradient(180deg, #fffbeb 0%, #fef9e8 45%, #fff7ed 100%);
    color: #1e293b;
    overflow-x: hidden;
}

.parent-app-container {
    width: min(94vw, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem max(0.75rem, 3vw) 2.5rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .parent-app-container {
        padding: 1.5rem max(1rem, 3vw) 3rem;
    }
}

@media (min-width: 768px) {
    .parent-app-container {
        width: min(94vw, 1280px);
    }
}

.parent-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.parent-header-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.parent-header-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .parent-header-title {
        font-size: 1.875rem;
    }
}

.parent-header-lead {
    margin-top: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.65;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.parent-header-lead-note {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}

.parent-header-today {
    margin-top: 0.75rem;
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    padding: 0.35rem 0.875rem;
}

.parent-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .parent-section {
        padding: 1.25rem 1.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.parent-section--events {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #bae6fd;
}

.parent-section--board {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-color: #fed7aa;
    scroll-margin-top: 1rem;
}

.parent-section-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.parent-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.parent-cal-btn {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.75rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.parent-cal-btn:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    color: #0369a1;
}

.parent-cal-btn--today {
    color: #c2410c;
    background: #ffedd5;
    border-color: #fdba74;
}

.parent-cal-btn--today:hover {
    background: #fed7aa;
    border-color: #fb923c;
}

.parent-month-label {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1e293b;
    min-width: 7rem;
    text-align: center;
}

.parent-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.parent-cal-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.375rem 0;
    color: #64748b;
}

.parent-cal-weekday--sun { color: #ef4444; }
.parent-cal-weekday--sat { color: #3b82f6; }

.parent-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.parent-cal-cell-empty {
    min-height: 4rem;
}

.parent-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 4.5rem;
    padding: 0.35rem 0.25rem 0.3rem;
    border-radius: 0.625rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 400px) {
    .parent-cal-cell {
        min-height: 5rem;
        padding: 0.4rem 0.3rem 0.35rem;
    }
}

.parent-cal-cell:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.parent-cal-cell--today {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

.parent-cal-cell--today:not(.parent-cal-cell--selected):hover {
    background: #fef3c7;
}

.parent-cal-cell--selected {
    background: #e0f2fe;
    border-color: #0ea5e9;
    border-width: 2px;
    color: #0c4a6e;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.parent-cal-cell-daynum {
    font-size: 0.9375rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}

.parent-cal-cell-daynum--weekday {
    color: #334155;
}

.parent-cal-cell-daynum--sun {
    color: #ef4444;
}

.parent-cal-cell-daynum--sat {
    color: #3b82f6;
}

.parent-cal-cell-badges {
    display: flex;
    justify-content: center;
    gap: 0.15rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.parent-cal-badge {
    font-size: 0.5625rem;
    font-weight: 900;
    line-height: 1.1;
    padding: 0.05rem 0.2rem;
    border-radius: 0.25rem;
}

.parent-cal-badge--today {
    color: #b45309;
    background: #fef3c7;
}

.parent-cal-badge--selected {
    color: #0369a1;
    background: #e0f2fe;
}

.parent-cal-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.15rem;
    margin-top: 0.2rem;
    width: 100%;
    min-width: 0;
}

.parent-cal-event-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #047857;
    line-height: 1.25;
    padding: 0 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.parent-cal-more {
    font-size: 0.625rem;
    font-weight: 900;
    color: #059669;
    padding: 0 0.1rem;
}

.parent-cal-deadline-label {
    color: #c2410c;
    font-weight: 900;
}

.parent-cal-recurring-label {
    color: #6d28d9;
    font-weight: 900;
}

.parent-cal-desktop-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.parent-mobile-schedule-wrap {
    display: none;
}

.parent-mobile-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parent-mobile-day-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.parent-mobile-day-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.parent-mobile-day-row-date {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #334155;
    flex-shrink: 0;
}

.parent-mobile-day-row-date--sun {
    color: #ef4444;
}

.parent-mobile-day-row-date--sat {
    color: #3b82f6;
}

.parent-mobile-day-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.parent-mobile-day-row--selected {
    background: #e0f2fe;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.parent-mobile-day-row-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.parent-mobile-day-row-event {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #047857;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.parent-mobile-day-row-event--board-hint {
    color: #64748b;
    font-weight: 800;
}

.parent-mobile-day-row-holiday {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 0.375rem;
    padding: 0.1rem 0.35rem;
}

.parent-mobile-selected-footer {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.875rem;
}

.parent-mobile-selected-footer strong {
    color: #0284c7;
    font-weight: 900;
}

.parent-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.parent-schedule-day-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.parent-schedule-day-group--selected .parent-schedule-day-heading {
    color: #0369a1;
    border-color: #7dd3fc;
    background: #e0f2fe;
}

.parent-schedule-day-heading {
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.parent-schedule-day-heading:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.parent-schedule-card {
    width: 100%;
    border-radius: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.parent-schedule-card-time {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #0369a1;
    margin-bottom: 0.35rem;
}

.parent-schedule-card-project {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.parent-schedule-card-title {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.parent-schedule-card-deadline {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 0.35rem;
}

.parent-schedule-card-desc {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 767px) {
    .parent-cal-desktop-wrap {
        display: none;
    }

    .parent-mobile-schedule-wrap {
        display: block;
    }

    .parent-section--detail {
        display: block;
    }
}

@media (min-width: 768px) {
    .parent-cal-grid {
        gap: 0.375rem;
        width: 100%;
    }

    .parent-cal-cell {
        min-height: 6.75rem;
        padding: 0.5rem 0.35rem 0.4rem;
    }

    .parent-cal-cell-daynum {
        font-size: 1rem;
    }

    .parent-cal-event-label {
        font-size: 0.75rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.25;
    }
}

.parent-cal-footer {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.75rem;
}

.parent-cal-footer strong {
    color: #0284c7;
    font-weight: 900;
}

.parent-event-card {
    background: #ffffff;
    border: 2px solid #bae6fd;
    border-radius: 1.25rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
    cursor: default;
}

.parent-event-card-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.625rem;
    line-height: 1.35;
    word-break: break-word;
}

.parent-event-card-meta {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.parent-event-card-project {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.parent-event-card-desc {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

.parent-event-card-btn {
    width: 100%;
    min-height: 3rem;
    font-size: 0.9375rem;
    font-weight: 900;
    color: #c2410c;
    background: #fff7ed;
    border: 2px solid #fdba74;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.parent-event-card-btn:hover {
    background: #ffedd5;
    border-color: #fb923c;
}

.parent-event-card-btn:active {
    transform: scale(0.99);
}

.parent-board-summary {
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: 1.25rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
    margin-bottom: 1.25rem;
}

.parent-board-summary-title {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.375rem;
    word-break: break-word;
}

.parent-board-summary-desc {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.625rem;
}

.parent-board-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    cursor: default;
    word-break: break-word;
}

.parent-board-card:hover {
    transform: none;
    border-color: #fdba74;
}

.parent-board-card-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.parent-board-card-meta {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ea580c;
    margin-bottom: 0.25rem;
}

.parent-board-card-project {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.parent-board-card-desc {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.6;
    white-space: pre-wrap;
}

.parent-board-group {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.parent-board-group-title {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #fde68a;
}

.parent-board-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .parent-board-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.parent-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .parent-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.parent-memo-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.parent-memo-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 0.375rem;
    letter-spacing: 0.03em;
}

.parent-memo-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.parent-empty-state {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.parent-empty-state-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #64748b;
    line-height: 1.6;
}

.parent-empty-state-sub {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.55;
}

.parent-loading {
    text-align: center;
    padding: 4rem 1rem;
}

.parent-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border: 3px solid #fde68a;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: parent-spin 0.8s linear infinite;
}

@keyframes parent-spin {
    to { transform: rotate(360deg); }
}

.parent-loading-text {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}

.parent-error-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.parent-error-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #be123c;
    line-height: 1.65;
}

.parent-footer {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.parent-subsection-label {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #334155;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.parent-monthly-recurring-wrap {
    margin-bottom: 1rem;
}

.parent-monthly-recurring-wrap.hidden {
    display: none;
}

.parent-recurring-section {
    border: 2px solid #ede9fe;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 0.875rem 1rem;
}

.parent-recurring-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parent-recurring-item {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: #5b21b6;
    line-height: 1.45;
}

.parent-recurring-item-icon {
    flex-shrink: 0;
}

.parent-recurring-item-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.parent-schedule-card--weekly {
    border-color: #ddd6fe;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.parent-schedule-card-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 900;
    color: #6d28d9;
    background: #ede9fe;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    margin-bottom: 0.375rem;
}

.parent-schedule-card-title--weekly {
    color: #5b21b6;
}

.parent-event-card,
.parent-board-card {
    cursor: default;
}

/* スタッフ画面・保護者公開タブ（横はみ出し防止） */
#admin-parent-public-panel,
#admin-parent-public-root {
    max-width: 100%;
    overflow-x: hidden;
}

#admin-parent-public-root textarea,
#admin-parent-public-root input[type="date"],
#admin-parent-public-root input[type="text"] {
    max-width: 100%;
    box-sizing: border-box;
}

#admin-parent-public-root .grid,
#admin-parent-public-root .flex {
    min-width: 0;
}

#admin-parent-public-root ul,
#admin-parent-public-root article {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* スタッフ画面・イベントカレンダー（中央寄せ・1カラム・横はみ出し防止） */
#admin-event-calendar-panel,
#staff-event-calendar-root {
    max-width: 100%;
    overflow-x: hidden;
}

.staff-event-calendar-shell,
.staff-event-calendar-layout,
.staff-event-calendar-card,
#staff-event-calendar-wrap,
#staff-event-list-root {
    min-width: 0;
    max-width: 100%;
}

.staff-event-calendar-shell {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 1rem 2rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .staff-event-calendar-shell {
        padding: 2rem 1.5rem 2.5rem;
    }
}

.staff-event-calendar-intro {
    margin-bottom: 1.25rem;
}

.staff-event-calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-event-calendar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .staff-event-calendar-card {
        padding: 1.25rem;
    }
}

.staff-event-calendar-card--list {
    background: #ffffff;
    border: 2px solid #ede9fe;
}

.staff-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.staff-cal-btn {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-cal-btn:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
}

.staff-cal-btn--today {
    color: #6d28d9;
    background: #ede9fe;
    border-color: #c4b5fd;
}

.staff-cal-btn--today:hover {
    background: #ddd6fe;
    border-color: #a78bfa;
}

.staff-event-month-label {
    font-size: 1.0625rem;
    font-weight: 900;
    color: #1e293b;
    min-width: 6.5rem;
    text-align: center;
}

.staff-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.staff-cal-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.375rem 0;
    color: #64748b;
}

.staff-cal-weekday--sun { color: #ef4444; }
.staff-cal-weekday--sat { color: #3b82f6; }

.staff-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.staff-cal-cell-empty {
    min-height: 3.75rem;
}

.staff-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 4rem;
    padding: 0.35rem 0.25rem 0.3rem;
    border-radius: 0.5rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 400px) {
    .staff-cal-cell {
        min-height: 4.75rem;
        padding: 0.4rem 0.3rem 0.35rem;
    }
}

.staff-cal-cell:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
}

.staff-cal-cell--selected {
    background: #e0f2fe;
    border-color: #0ea5e9;
    border-width: 2px;
    color: #0c4a6e;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.staff-cal-cell--today:not(.staff-cal-cell--selected) {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

.staff-cal-cell--today:not(.staff-cal-cell--selected):hover {
    background: #fef3c7;
}

.staff-cal-cell-daynum {
    font-size: 0.9375rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}

.staff-cal-cell-daynum--weekday {
    color: #334155;
}

.staff-cal-cell-daynum--sun {
    color: #ef4444;
}

.staff-cal-cell-daynum--sat {
    color: #3b82f6;
}

.staff-cal-cell-badges {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    margin-top: 0.05rem;
}

.staff-cal-badge {
    font-size: 0.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.staff-cal-badge--today { color: #b45309; }
.staff-cal-badge--selected { color: #6d28d9; }

.staff-cal-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.12rem;
    margin-top: 0.15rem;
    width: 100%;
    min-width: 0;
}

.staff-cal-event-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #5b21b6;
    line-height: 1.2;
    padding: 0 0.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.staff-cal-more {
    font-size: 0.6875rem;
    font-weight: 900;
    color: #7c3aed;
    padding: 0 0.05rem;
}

@media (min-width: 768px) {
    .staff-cal-grid {
        gap: 0.375rem;
    }

    .staff-cal-cell {
        min-height: 6rem;
    }

    .staff-cal-cell-daynum {
        font-size: 1rem;
    }

    .staff-cal-event-label {
        font-size: 0.75rem;
    }
}

.staff-event-selected-row {
    font-size: 0.875rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.75rem;
}

.staff-event-selected-row strong {
    color: #7c3aed;
    font-weight: 900;
}

.staff-event-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.staff-event-list-title {
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.staff-event-add-btn {
    font-size: 0.875rem;
    font-weight: 900;
    color: #ffffff;
    background: #8b5cf6;
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
    transition: background 0.15s;
    flex-shrink: 0;
}

.staff-event-add-btn:hover {
    background: #7c3aed;
}

.staff-event-empty {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.staff-event-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.staff-event-item {
    background: #ffffff;
    border: 2px solid #ede9fe;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.06);
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ボード用スタイル */
#board-view-section {
    background-color: #fffbeb;
    color: #1e293b;
    min-height: 100vh;
    padding: 20px 20px 2.5rem;
    overflow-x: hidden;
    overflow-y: visible;
}
.board-container {
    display: block;
    column-width: unset;
    column-count: unset;
    column-gap: unset;
    padding-bottom: 10px;
    height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* v102: 当日分以外は .board-container 本体より後に置き、ページ全体の縦スクロールに任せる */
.board-container.child-daily-board-preview {
    height: auto;
    max-height: none;
    overflow: visible;
    overflow-y: visible;
    overflow-x: hidden;
    padding-bottom: 3rem;
}
/* v104: 児童統合予定画面（カレンダー→イベント→活動予定）もページ全体の縦スクロールに任せる */
.board-container.child-unified-schedule-preview {
    display: block;
    columns: unset;
    column-width: unset;
    column-count: unset;
    column-gap: unset;
    height: auto;
    max-height: none;
    overflow: visible;
    overflow-y: visible;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px 3rem;
    box-sizing: border-box;
}
#board-view-section.board-view-unified {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 5rem;
}
.child-unified-schedule-shell {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.25rem 2rem;
    box-sizing: border-box;
}

/* PC: カレンダーセルを高くし、予定名をより多く表示 */
@media (min-width: 900px) {
    .child-cal-cell {
        min-height: 6.5rem;
        padding: 0.4rem 0.35rem 0.35rem;
    }
    .child-cal-event-label {
        font-size: 0.75rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .child-cal-grid {
        gap: 0.35rem;
    }
}
#child-activity-schedule-root.child-activity-schedule-today.board-today-all,
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .child-board-timed-section,
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .child-board-untimed-section,
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .board-today-section {
    max-width: 100%;
    min-width: 0;
}
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .child-board-timed-content,
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .child-board-untimed-content {
    column-width: auto;
    column-gap: 0;
    max-width: 100%;
    min-width: 0;
}
#child-activity-schedule-root.child-activity-schedule-today.board-today-all .project-section {
    break-inside: auto;
}
#board-view-section.board-view-daily-nontoday {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 5rem;
}
body.oden-board-mode {
    overflow-y: auto;
}
body.oden-board-mode #main-content {
    display: block;
}
.board-container::-webkit-scrollbar { width: 8px; }
.board-container::-webkit-scrollbar-track { background: #fef3c7; }
.board-container::-webkit-scrollbar-thumb { background: #f97316; border-radius: 4px; }

/* 児童用ボード：今日は時間指定あり・なしを一画面表示（タブ廃止） */
.board-container.board-today-all {
    column-width: auto;
    column-gap: 0;
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.board-container.board-today-all .child-board-timed-section,
.board-container.board-today-all .child-board-untimed-section,
.board-container.board-today-all .board-today-section {
    max-width: 100%;
    min-width: 0;
}

.board-container.board-today-all .child-board-timed-content,
.board-container.board-today-all .child-board-untimed-content {
    column-width: auto;
    column-gap: 0;
    max-width: 100%;
    min-width: 0;
}

.board-container.board-today-all .project-section {
    break-inside: auto;
}

/* 児童用ボード：縦スクロール + レスポンシブ複数列（横スクロールなし） */
.board-today-grid,
.child-daily-board-cards-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    justify-content: center;
    box-sizing: border-box;
}

.child-daily-board-cards-stack {
    gap: 0.75rem;
}

.board-today-grid > *,
.child-daily-board-cards-stack > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .board-today-grid,
    .child-daily-board-cards-stack {
        grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
        justify-content: center;
    }

    .board-today-grid > *,
    .child-daily-board-cards-stack > * {
        max-width: 340px;
    }
}

.board-today-grid .b-card {
    margin-bottom: 0;
    box-sizing: border-box;
}

.board-today-grid .b-card > .flex.justify-between {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.pool-list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.pool-list-filter-btn {
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.pool-list-filter-btn:hover {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}
.pool-list-filter-btn--active {
    border-color: #f97316;
    background: #ffedd5;
    color: #c2410c;
    box-shadow: 0 1px 2px rgba(249, 115, 22, 0.18);
}
.pool-list-filter-btn:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}

.pool-master-body {
    min-width: 0;
}

.pool-master-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pool-master-toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.pool-master-list-title {
    font-size: 0.875rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
}

.pool-new-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border-radius: 0.75rem;
    border: none;
    background: #f97316;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 900;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(249, 115, 22, 0.25);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.pool-new-open-btn:hover {
    background: #ea580c;
}
.pool-new-open-btn:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}

.pool-master-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.pool-master-count-badge {
    font-weight: 800;
}

.pool-master-filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pool-master-filter-label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.02em;
}

.pool-list-filter--prominent {
    gap: 10px 12px;
}
.pool-list-filter--prominent .pool-list-filter-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.8125rem;
}
.pool-list-filter--prominent .pool-list-filter-btn--active {
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.22);
    transform: translateY(-1px);
}

.admin-pool-list-wrap {
    width: 100%;
    min-width: 0;
}

#admin-pool-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}

.pool-project-empty {
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 1rem;
}

.pool-project-group {
    background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 48%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pool-project-group-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #ffedd5;
}

.pool-project-group-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 900;
    color: #334155;
    line-height: 1.35;
}

.pool-project-group-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: 9999px;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
}

.pool-project-group-grid {
    width: 100%;
}

.job-template-project-group {
    max-width: 100%;
    min-width: 0;
}

.job-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    justify-content: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 639px) {
    .job-template-grid {
        grid-template-columns: 1fr;
    }
    .pool-project-group {
        padding: 0.875rem;
    }
}

.job-template-grid > * {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.job-template-row {
    display: flex;
    flex-direction: column;
}

.job-template-row-actions {
    width: 100%;
}

.job-template-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.job-template-action-btn--edit {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.job-template-action-btn--edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.job-template-action-btn--delete {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.job-template-action-btn--delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

.job-template-action-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.job-template-legacy-board {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
}

.job-template-legacy-board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
}

.job-template-legacy-label {
    font-size: 0.625rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.job-template-legacy-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #c2410c;
}

.job-template-legacy-btn {
    align-self: flex-start;
    max-width: 100%;
    min-height: 32px;
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1.35;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 9999px;
    cursor: pointer;
    white-space: normal;
    text-align: left;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.job-template-legacy-btn:hover {
    color: #475569;
    background: #f1f5f9;
    border-color: #94a3b8;
}

.job-template-legacy-btn:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.b-card {
    background: #ffffff;
    border-top: 5px solid #94a3b8;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    break-inside: avoid;
    margin-bottom: 15px;
}
.b-card:hover { transform: scale(1.03); box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.12); }

.border-kikaku { border-color: #dc2626; }
.border-koho { border-color: #16a34a; }
.border-movie { border-color: #7c3aed; }
.border-boardgame { border-color: #0d9488; }
.border-youtube { border-color: #ea580c; }
.border-music { border-color: #db2777; }
.border-study { border-color: #475569; }
.border-rec { border-color: #ca8a04; }
.border-default { border-color: #64748b; }

.project-section {
    break-inside: avoid;
    margin-bottom: 15px;
    background: rgba(255, 251, 235, 0.85);
    padding: 12px;
    border-radius: 15px;
    border: 1px solid #fde68a;
}
.project-section-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}
.title-kikaku { border-bottom-color: #dc2626; color: #dc2626; }
.title-koho { border-bottom-color: #16a34a; color: #16a34a; }
.title-movie { border-bottom-color: #7c3aed; color: #7c3aed; }
.title-boardgame { border-bottom-color: #0d9488; color: #0d9488; }
.title-youtube { border-bottom-color: #ea580c; color: #ea580c; }
.title-music { border-bottom-color: #db2777; color: #db2777; }
.title-study { border-bottom-color: #475569; color: #475569; }
.title-rec { border-bottom-color: #ca8a04; color: #ca8a04; }
.title-default { border-bottom-color: #64748b; color: #64748b; }

/* 児童画面：今日のODEN作戦 */
.child-plan-project {
    padding-bottom: 12px;
    border-bottom: 1px dashed #fde68a;
}
.child-plan-project:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.child-plan-project-name {
    font-size: 1.05em;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 6px;
}
.child-plan-line {
    font-size: 0.88em;
    line-height: 1.5;
    margin-bottom: 2px;
}
.child-plan-line:last-child {
    margin-bottom: 0;
}
.child-plan-label {
    font-weight: 800;
    color: #92400e;
}
.child-plan-value {
    color: #475569;
    font-weight: 600;
    white-space: pre-wrap;
}

/* プロジェクト活動メタ（クエストボード見出し下） */
.project-meta-block {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 0.78em;
    line-height: 1.45;
}
.project-meta-row {
    display: flex;
    gap: 6px;
    margin-bottom: 3px;
}
.project-meta-row:last-child {
    margin-bottom: 0;
}
.project-meta-label {
    flex-shrink: 0;
    font-weight: 800;
    color: #92400e;
    min-width: 4.8em;
}
.project-meta-value {
    color: #475569;
    font-weight: 600;
    white-space: pre-wrap;
}
.tl-pgroup .project-meta-block {
    margin-left: 2px;
    margin-bottom: 8px;
}

.b-time-badge {
    font-size: 1.0em;
    color: #2563eb;
    font-weight: bold;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    letter-spacing: 0.5px;
    border: 1px solid #bfdbfe;
}
.b-den-badge {
    background: #f97316;
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}
.b-active-users {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.b-user-icon {
    width: 28px; height: 28px;
    background: #fff7ed;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid #ffffff;
    margin-right: -8px;
    position: relative;
    z-index: 1;
}
.b-user-icon:hover { z-index: 10; transform: translateY(-2px); }

/* ===== クエストボード 時間指定あり（時刻見出し→プロジェクト→カード） ===== */
/* 時間指定ありタブはメイソンリー列を無効化し、時刻順に縦積みする */
.board-grouped {
    column-width: auto;
    column-gap: 0;
}
/* 1つの時刻見出しブロック */
.tl-time-block {
    margin-bottom: 26px;
}
/* 時刻見出し（ブロックの先頭に大きく表示） */
.tl-time-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px dashed #fde68a;
}
.tl-time-text {
    font-size: 1.15em;
    font-weight: 800;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* 進行中／もうすぐ の強調バッジ */
.tl-now-badge {
    font-size: 0.8em;
    font-weight: 800;
    color: #fff;
    background: #f97316;
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.45);
    white-space: nowrap;
    animation: tl-now-pulse 1.6s ease-in-out infinite;
}
.tl-time-heading-now .tl-time-text {
    color: #ea580c;
}
.tl-time-heading-now {
    border-bottom-color: #f97316;
}
/* 時刻見出しの中のプロジェクト小見出しグループ */
.tl-pgroup {
    margin: 0 0 12px 6px;
}
.tl-pgroup-title {
    font-size: 1.05em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 2px solid;
}
/* プロジェクト内のカード群（フル幅カードを横に並べて折り返す） */
.tl-pcards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* リスト形式のカード（既存 .b-card の見た目を流用・読みやすい固定幅） */
.tl-pcards .tl-list-card {
    width: 300px;
    flex: 0 0 300px;
    margin-bottom: 0;
}
/* 現在時刻に該当するカードのハイライト */
.tl-now-card {
    box-shadow: 0 0 0 3px #f97316, 0 4px 12px rgba(249, 115, 22, 0.25);
}
@keyframes tl-now-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ===== 時刻ボタン選択UI（共通コンポーネント） ===== */
.time-picker {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 8px;
}
.tp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.tp-current {
    font-size: 1.05em;
    font-weight: 800;
    color: #94a3b8;
    min-width: 56px;
}
.tp-current.tp-current-set {
    color: #ea580c;
}
.tp-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tp-adj, .tp-clear {
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 0.5rem;
    padding: 4px 8px;
    transition: background-color 0.15s, color 0.15s;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.tp-adj:hover { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.tp-clear { color: #94a3b8; }
.tp-clear:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.tp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 160px;
    overflow-y: auto;
}
.tp-slot {
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 0.5rem;
    padding: 5px 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.tp-slot:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}
.tp-slot.tp-slot-active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

/* スタッフ：プロジェクト管理タブ（カード一覧） */
.staff-project-tab-date-root {
    margin-bottom: 12px;
}
.staff-project-tab-date-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}
.staff-project-tab-date-label-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9a3412;
    min-width: 0;
}
.staff-project-tab-date-prefix {
    font-weight: 800;
    color: #c2410c;
}
.staff-project-tab-date-full,
.staff-project-tab-date-compact {
    font-weight: 900;
    color: #c2410c;
}
.staff-project-tab-date-compact {
    display: none;
}
.staff-project-tab-date-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.staff-project-tab-date-input {
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #fdba74;
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 44px;
    background: #fff;
    color: #334155;
}
.staff-project-tab-date-input:focus {
    outline: none;
    border-color: #f97316;
}
.staff-project-tab-date-btn {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.staff-project-tab-date-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}
.staff-project-tab-date-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.staff-project-tab-date-btn--today {
    color: #c2410c;
    background: #ffedd5;
    border-color: #fdba74;
}
.staff-project-tab-date-btn--today:hover {
    background: #fed7aa;
    border-color: #fb923c;
    color: #9a3412;
}
@media (max-width: 480px) {
    .staff-project-tab-date-full {
        display: none;
    }
    .staff-project-tab-date-compact {
        display: inline;
    }
    .staff-project-tab-date-actions {
        width: 100%;
    }
    .staff-project-tab-date-input {
        flex: 1 1 8rem;
        min-width: 0;
    }
    .staff-project-tab-date-btn {
        flex: 1 1 auto;
    }
}
.staff-project-tab-scroll {
    overflow: visible;
    padding: 2px;
}
.staff-project-tab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
}

.staff-project-axis {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.staff-project-axis-sidebar,
.staff-project-axis-detail {
    min-width: 0;
}

.staff-project-axis-sidebar {
    position: sticky;
    top: 0.75rem;
    display: grid;
    gap: 8px;
    max-height: min(72vh, 760px);
    overflow: auto;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.staff-project-axis-heading {
    margin: 0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 900;
}

.staff-project-axis-nav {
    display: grid;
    gap: 6px;
}

.staff-project-axis-nav-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    background: #fff;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
}

.staff-project-axis-nav-item:hover,
.staff-project-axis-nav-item:focus-visible,
.staff-project-axis-nav-item.is-selected {
    border-color: #93c5fd;
    background: #eff6ff;
    outline: none;
}

.staff-project-axis-nav-icon {
    font-size: 1.1rem;
    line-height: 1.2;
}

.staff-project-axis-nav-body {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.staff-project-axis-nav-name {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.35;
}

.staff-project-axis-nav-counts {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.35;
}

.staff-project-axis-detail .staff-project-card {
    margin: 0;
}

.staff-project-axis-info {
    display: grid;
    gap: 10px;
}

.staff-project-axis-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.staff-project-axis-mobile {
    display: none;
}

@media (max-width: 980px) {
    .staff-project-axis {
        grid-template-columns: minmax(0, 1fr);
    }
    .staff-project-axis-sidebar {
        position: static;
        max-height: none;
    }
    .staff-project-axis-lanes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .staff-project-axis--mobile {
        display: block;
    }

    .staff-project-axis-mobile {
        display: grid;
        gap: 8px;
        min-width: 0;
    }

    .staff-project-axis-mobile-group {
        min-width: 0;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 0.9rem;
        background: #fff;
    }

    .staff-project-axis-mobile-group.is-open {
        border-color: #93c5fd;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .staff-project-axis-mobile-toggle {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        min-width: 0;
        min-height: 56px;
        gap: 10px;
        padding: 10px 12px;
        border: 0;
        background: #fff;
        color: #1e293b;
        text-align: left;
        cursor: pointer;
    }

    .staff-project-axis-mobile-toggle:hover,
    .staff-project-axis-mobile-toggle:focus-visible,
    .staff-project-axis-mobile-toggle.is-open {
        background: #eff6ff;
        outline: none;
    }

    .staff-project-axis-mobile-toggle:focus-visible {
        box-shadow: inset 0 0 0 2px #3b82f6;
    }

    .staff-project-axis-mobile-chevron {
        color: #64748b;
        font-size: 0.85rem;
        transition: transform 0.16s ease;
    }

    .staff-project-axis-mobile-toggle.is-open .staff-project-axis-mobile-chevron {
        transform: rotate(180deg);
    }

    .staff-project-axis-mobile-panel {
        min-width: 0;
        border-top: 1px solid #dbeafe;
        background: #fff;
    }

    .staff-project-axis-mobile-panel > .staff-project-card {
        margin: 0;
        padding: 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .staff-project-axis-mobile-detail-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .staff-project-axis-mobile-detail-label {
        color: #475569;
        font-size: 0.75rem;
        font-weight: 900;
    }

    .staff-project-axis-mobile-panel .staff-project-axis-lanes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 640px) {
    .staff-project-tab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.staff-project-tab-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.6;
}
.staff-project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.staff-project-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.staff-project-card-detail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.staff-project-card-detail-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}
.staff-project-card-detail-toggle.is-open {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}
.staff-project-card-detail-toggle-icon {
    font-size: 0.625rem;
    transition: transform 0.15s;
}
.staff-project-card-detail-toggle.is-open .staff-project-card-detail-toggle-icon {
    transform: rotate(180deg);
}
.staff-project-card-detail {
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 12px;
}
.staff-project-card-detail-block + .staff-project-card-detail-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.staff-project-card-detail-block--highlight {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 10px;
    animation: staffProjectDetailBlockHighlight 2.2s ease;
}
@keyframes staffProjectDetailBlockHighlight {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    12%, 45% {
        background-color: rgba(251, 146, 60, 0.1);
        box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.28);
    }
}
.staff-project-card-detail-block[data-project-detail-block="events"].staff-project-card-detail-block--highlight {
    animation-name: staffProjectDetailEventsHighlight;
}
@keyframes staffProjectDetailEventsHighlight {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    12%, 45% {
        background-color: rgba(47, 143, 87, 0.12);
        box-shadow: 0 0 0 2px rgba(47, 143, 87, 0.28);
    }
}
.staff-project-card-detail-heading {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.02em;
}
.staff-project-detail-empty {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.4;
}
.staff-project-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.staff-project-detail-schedule-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.staff-project-detail-schedule-btn:hover {
    background: #fff7ed;
    border-color: #fdba74;
}
.staff-project-detail-schedule-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.staff-project-detail-item--event {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
}
.staff-project-detail-event-row {
    list-style: none;
}
.staff-project-detail-event-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.staff-project-detail-event-btn:hover {
    border-color: #9ed8b0;
    background: #f1fbf4;
}
.staff-project-detail-event-btn:focus-visible {
    outline: 2px solid #2f8f57;
    outline-offset: 2px;
}
.staff-project-detail-event-edit-icon {
    margin-left: auto;
    font-size: 0.6875rem;
    color: #9ed8b0;
    flex-shrink: 0;
}
.staff-project-detail-event-btn:hover .staff-project-detail-event-edit-icon {
    color: #2f8f57;
}
.staff-project-detail-time {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
}
.staff-project-detail-title {
    flex: 1 1 8rem;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.staff-project-detail-chevron {
    margin-left: auto;
    font-size: 0.625rem;
    color: #cbd5e1;
    flex-shrink: 0;
}
.staff-project-detail-edit-icon,
.staff-project-upcoming-edit-icon {
    margin-left: auto;
    font-size: 0.6875rem;
    color: #fdba74;
    flex-shrink: 0;
}
.staff-project-detail-schedule-btn:hover .staff-project-detail-edit-icon,
.staff-project-upcoming-btn:hover .staff-project-upcoming-edit-icon {
    color: #ea580c;
}
.staff-project-detail-schedule-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.staff-project-detail-schedule-row .staff-project-detail-schedule-btn {
    flex: 1 1 auto;
    min-width: 0;
}
.staff-project-detail-manage-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.6875rem;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.staff-project-detail-manage-link:hover {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.staff-project-detail-schedule-btn:hover .staff-project-detail-chevron {
    color: #fb923c;
}
.staff-project-card-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.staff-project-card-detail-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.staff-project-card-detail-add-btn {
    flex: 1 1 calc(50% - 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.staff-project-card-detail-add-btn--schedule-create,
.staff-project-card-detail-add-btn--schedule-template {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}
.staff-project-card-detail-add-btn--schedule-create:hover,
.staff-project-card-detail-add-btn--schedule-template:hover {
    background: #ffedd5;
    border-color: #fb923c;
}
.staff-project-card-detail-add-btn--schedule {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}
.staff-project-card-detail-add-btn--schedule:hover {
    background: #ffedd5;
    border-color: #fb923c;
}
.staff-project-card-detail-add-btn--event {
    flex: 1 1 100%;
    color: #5b21b6;
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.staff-project-card-detail-add-btn--event:hover {
    background: #ede9fe;
    border-color: #a78bfa;
}
@media (max-width: 480px) {
    .staff-project-card-detail-add-btn {
        flex: 1 1 100%;
    }
}
.staff-project-card-identity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.staff-project-card-heading {
    min-width: 0;
    flex: 1 1 auto;
}
.staff-project-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.staff-project-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 10px;
    line-height: 1.3;
    max-width: 100%;
}
.staff-project-card-pill--empty {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #f1f5f9;
}
.staff-project-card-pill-label {
    font-weight: 800;
    color: #64748b;
    flex-shrink: 0;
}
.staff-project-card-pill--empty .staff-project-card-pill-label {
    color: #cbd5e1;
}
.staff-project-card-pill-value {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-project-card-section {
    min-width: 0;
}
.staff-project-card-section--schedule {
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
}
.staff-project-card-section--events {
    padding: 10px 12px;
    background: #f1fbf4;
    border: 1px solid #9ed8b0;
    border-radius: 12px;
    margin-top: 8px;
}
.staff-project-card-section--plan {
    padding: 10px 12px;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    margin-top: 8px;
}
.staff-project-plan-summary {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #5b21b6;
    line-height: 1.5;
}
.staff-project-plan-progress,
.staff-project-plan-target {
    margin: 0;
}
.staff-project-plan-meta-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}
.staff-project-plan-meta-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #6d28d9;
}
.staff-project-plan-meta-input,
.staff-project-plan-meta-textarea {
    width: 100%;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    background: #fff;
}
.staff-project-plan-primary-btn,
.staff-project-plan-secondary-btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.staff-project-plan-primary-btn {
    background: #7c3aed;
    color: #fff;
}
.staff-project-plan-primary-btn:hover {
    background: #6d28d9;
}
.staff-project-plan-secondary-btn {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}
.staff-project-plan-secondary-btn:hover {
    background: #ddd6fe;
}
.staff-project-plan-actions {
    margin-top: 8px;
}
.staff-project-plan-status-group + .staff-project-plan-status-group {
    margin-top: 10px;
}
.staff-project-plan-status-heading {
    margin: 0 0 4px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #6d28d9;
    letter-spacing: 0.02em;
}
.staff-project-plan-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-project-plan-task-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
}
.staff-project-plan-task-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.staff-project-plan-task-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: #1e293b;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}
.staff-project-plan-task-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6d28d9;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.staff-project-plan-task-due {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
}
.staff-project-plan-task-due--overdue {
    color: #dc2626;
}
.staff-project-plan-task-due--soon {
    color: #d97706;
}
.staff-project-plan-task-due--done {
    color: #16a34a;
}
.staff-project-plan-task-assignee {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
}
.staff-project-plan-task-memo {
    margin: 4px 0 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
.staff-project-plan-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-project-plan-task-btn {
    min-height: 36px;
    min-width: 3.5rem;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #c4b5fd;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}
.staff-project-plan-task-btn:hover {
    background: #ede9fe;
}
.staff-project-plan-task-btn--done {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}
.staff-project-plan-task-btn--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.staff-project-plan-task-related {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}
.staff-project-plan-task-related--missing {
    background: #fff7ed;
    border-color: #fdba74;
}
.staff-project-plan-task-related-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0369a1;
}
.staff-project-plan-task-related--missing .staff-project-plan-task-related-label {
    color: #c2410c;
}
.staff-project-plan-task-btn--card {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
    align-self: flex-start;
}
.staff-project-card-block-empty {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.4;
}
.staff-project-card-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.staff-project-card-quick-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-content: start;
    min-width: 0;
}
.staff-project-card-quick-btn {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.staff-project-card-quick-btn--schedule,
.staff-project-card-quick-btn--schedule-master,
.staff-project-card-quick-btn--template {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}
.staff-project-card-quick-btn--schedule:hover,
.staff-project-card-quick-btn--schedule-master:hover,
.staff-project-card-quick-btn--template:hover {
    background: #ffedd5;
    border-color: #fb923c;
}
.staff-project-card-quick-btn--event {
    color: #5b21b6;
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.staff-project-card-quick-btn--event-master {
    color: #6d28d9;
    background: #faf5ff;
    border-color: #d8b4fe;
}
.staff-project-card-quick-btn--event:hover,
.staff-project-card-quick-btn--event-master:hover {
    background: #ede9fe;
    border-color: #a78bfa;
}
.daily-board-template-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.daily-board-template-picker-edit-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 900;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.daily-board-template-picker-edit-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
@media (max-width: 720px) {
    .staff-project-card-quick-actions {
        grid-template-columns: 1fr;
    }
}
.staff-project-card--other {
    background: #f1f5f9;
    border-style: dashed;
    border-color: #cbd5e1;
}
.staff-project-card--render-error {
    border-color: #fecaca;
    background: #fef2f2;
}
.staff-project-card-top--other {
    margin-bottom: 4px;
}
.staff-project-card-other-note {
    margin: 4px 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.35;
}
.staff-project-card-section[data-project-detail-block].staff-project-card-detail-block--highlight {
    animation: staffProjectDetailBlockHighlight 2.2s ease;
}
.staff-project-card-section[data-project-detail-block="events"].staff-project-card-detail-block--highlight {
    animation-name: staffProjectDetailEventsHighlight;
}
.staff-project-card-detail--empty {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f0f9ff;
    border: 1px dashed #93c5fd;
    border-radius: 12px;
}
.staff-project-card-section-label {
    margin: 0 0 8px;
    font-size: 0.625rem;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 0.04em;
}
.staff-project-card-section-hint {
    font-size: 0.5625rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0;
    margin-left: 4px;
}
.staff-project-event-date {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #2f8f57;
    white-space: nowrap;
}
.staff-project-event-weekly-label {
    font-size: 0.6875rem;
    font-weight: 900;
    color: #2f8f57;
    white-space: nowrap;
}
.staff-project-detail-event-row--weekly .staff-project-detail-event-btn {
    border-color: #b8e6c8;
    background: #f1fbf4;
}
.staff-project-detail-event-row--weekly .staff-project-detail-event-btn:hover {
    border-color: #9ed8b0;
    background: #ecfdf3;
}
.staff-project-card-events-more {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.staff-project-card-events-more:hover {
    color: #2f8f57;
    border-color: #9ed8b0;
    background: #ecfdf3;
}
.staff-project-card-events-more--collapse {
    color: #94a3b8;
}
.staff-project-card-section--actions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.staff-project-card-section--supplement-empty {
    padding: 0 2px;
}
.staff-project-card-supplement-empty-note {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #cbd5e1;
    line-height: 1.4;
}
.staff-project-card-supplement {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.staff-project-card-admin {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}
.staff-project-card-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.staff-project-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.staff-project-card-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 12rem;
}
.staff-project-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.staff-project-card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
}
.staff-project-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.staff-project-card-btn {
    font-size: 0.625rem;
    font-weight: 900;
    border-radius: 0.375rem;
    padding: 0.35rem 0.55rem;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}
.staff-project-card-btn--edit {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.staff-project-card-btn--edit:hover {
    background: #fef3c7;
    color: #92400e;
}
.staff-project-card-btn--icon {
    color: #94a3b8;
    padding: 0.35rem 0.45rem;
    min-width: 36px;
    min-height: 36px;
}
.staff-project-card-btn--muted {
    color: #94a3b8;
}
.staff-project-card-btn--muted:hover {
    color: #3b82f6;
}
.staff-project-card-btn--danger-muted {
    color: #cbd5e1;
}
.staff-project-card-btn--danger-muted:hover {
    color: #ef4444;
}
.staff-project-card-btn--icon:hover {
    color: #3b82f6;
}
.staff-project-card-btn--danger:hover {
    color: #ef4444;
}
.staff-project-card-stats-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}
.staff-project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.staff-project-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.staff-project-card-stat--link {
    cursor: pointer;
    font: inherit;
    min-height: 44px;
    padding: 8px 12px;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.staff-project-card-stat--link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}
.staff-project-card-stat--link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.staff-project-card-stat i {
    color: #94a3b8;
    font-size: 0.625rem;
}
.staff-project-card-stat strong {
    font-weight: 900;
    color: #334155;
}
.staff-project-card-add-board-btn {
    flex: 1 1 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #c2410c;
    background: #fff7ed;
    border: 2px solid #fdba74;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    box-shadow: 0 1px 2px rgba(249, 115, 22, 0.12);
}
.staff-project-card-add-board-btn:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}
.staff-project-card-add-board-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.staff-project-card-add-board-btn i {
    font-size: 0.75rem;
}
.staff-project-upcoming {
    margin-bottom: 0;
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}
.staff-project-upcoming-heading {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 900;
    color: #9a3412;
}
.staff-project-upcoming-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 8px;
    margin-bottom: 8px;
}
.staff-project-upcoming-day {
    font-size: 0.6875rem;
    font-weight: 900;
    color: #c2410c;
    white-space: nowrap;
}
.staff-project-upcoming-empty {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}
.staff-project-upcoming-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.staff-project-upcoming-list > li {
    margin: 0;
    padding: 0;
}
.staff-project-upcoming-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.staff-project-upcoming-btn::before {
    content: '・';
    color: #94a3b8;
    flex-shrink: 0;
}
.staff-project-upcoming-btn:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}
.staff-project-upcoming-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.staff-project-upcoming-chevron {
    margin-left: auto;
    font-size: 0.625rem;
    color: #cbd5e1;
    flex-shrink: 0;
}
.staff-project-upcoming-btn:hover .staff-project-upcoming-chevron {
    color: #fb923c;
}
.staff-project-upcoming-date {
    font-weight: 900;
    color: #c2410c;
    white-space: nowrap;
}
.staff-project-upcoming-time {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.staff-project-upcoming-title {
    flex: 1 1 8rem;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.staff-project-filter-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e40af;
}
.staff-project-filter-banner--info-only {
    justify-content: flex-start;
}
.staff-board-filter-clear-wrap {
    margin-top: 12px;
}
.staff-board-filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #fff;
    border: 2px solid #93c5fd;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.35;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.staff-board-filter-clear-btn:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e3a8a;
}
.staff-board-filter-clear-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.staff-board-filter-clear-btn i {
    font-size: 0.875rem;
}
.staff-board-add-target-context,
.daily-board-add-target-context {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9a3412;
    line-height: 1.4;
}
.daily-board-add-target-context {
    margin-bottom: 0;
}
.staff-board-add-target-date,
.daily-board-add-target-date-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}
.staff-board-add-target-date strong,
.daily-board-add-target-date-line strong {
    font-weight: 900;
    color: #c2410c;
}
.staff-board-add-target-date-compact,
.daily-board-add-target-date-compact {
    display: none;
}
.staff-board-add-target-project,
.daily-board-add-target-project {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #1e40af;
}
.staff-board-add-target-project strong,
.daily-board-add-target-project strong {
    font-weight: 900;
    color: #1d4ed8;
}
.staff-board-add-target-hint {
    margin: 4px 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #b45309;
}
@media (max-width: 480px) {
    .staff-board-add-target-date-full,
    .daily-board-add-target-date-full {
        display: none;
    }
    .staff-board-add-target-date-compact,
    .daily-board-add-target-date-compact {
        display: inline;
    }
}
.staff-project-filter-banner-text strong {
    font-weight: 900;
}
.staff-project-filter-banner-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.staff-project-filter-banner-hint {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.35;
}
.staff-project-filter-clear-btn {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #fff;
    border: 1px solid #93c5fd;
    border-radius: 9999px;
    padding: 6px 12px;
    min-height: 36px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s;
}
.staff-project-filter-clear-btn:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}
.staff-project-filter-clear-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.staff-project-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-project-card-field {
    display: grid;
    grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    font-size: 0.75rem;
    line-height: 1.45;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}
@media (max-width: 380px) {
    .staff-project-card-field {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
.staff-project-card-field-label {
    font-weight: 800;
    color: #64748b;
    flex-shrink: 0;
}
.staff-project-card-field-value {
    font-weight: 700;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}
.staff-project-card-field-value.is-empty {
    color: #cbd5e1;
    font-weight: 700;
}

/* v85: legacy staff tabs / pool UI — v118 で DOM 削除済み。hide 関数は no-op 互換のため残す */

.child-event-subsection-label {
    font-size: 0.85rem;
    font-weight: 900;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.child-event-card--weekly {
    border-style: dashed;
}

.child-event-weekly-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 900;
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.5rem;
}


/* v93: プロジェクトカード セクション色分け */
.staff-project-card-detail .staff-project-card-section-label {
    color: #1d4ed8;
}
.staff-project-card-detail .staff-project-card-field {
    background: #fff;
    border-color: #bfdbfe;
}
.staff-project-card-detail .staff-project-card-field-label {
    color: #1e40af;
}
.staff-project-card-detail--empty .staff-project-card-supplement-empty-note {
    color: #60a5fa;
}
.staff-project-card-section--schedule .staff-project-card-section-label {
    color: #c2410c;
}
.staff-project-card-section--schedule .staff-project-card-block-empty {
    color: #ea580c;
}
.staff-project-card-section--schedule .staff-project-detail-schedule-btn {
    border-color: #fed7aa;
    background: #fff;
}
.staff-project-card-section--schedule .staff-project-detail-schedule-btn:hover {
    background: #ffedd5;
    border-color: #fb923c;
}
.staff-project-card-section--events .staff-project-card-section-label {
    color: #2f8f57;
}
.staff-project-card-section--events .staff-project-card-block-empty {
    color: #3d9968;
}
.staff-project-card-section--events .staff-project-card-events-more {
    background: #ecfdf3;
    border-color: #b8e6c8;
    color: #2f8f57;
}
.staff-project-card-section--events .staff-project-card-events-more:hover {
    background: #dcf5e6;
    border-color: #9ed8b0;
    color: #267a47;
}

/* v94 児童ページ「今日のODEN」進捗のみ表示 */
.child-oden-today-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.child-oden-progress-item {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.child-oden-progress-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.child-oden-progress-icon {
    font-size: 1.15em;
    line-height: 1;
    flex-shrink: 0;
}
.child-oden-progress-name {
    font-size: 0.95em;
    font-weight: 800;
    color: #c2410c;
    line-height: 1.3;
}
.child-oden-progress-text {
    font-size: 0.86em;
    line-height: 1.45;
    color: #475569;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.child-oden-today-empty {
    margin: 0;
    text-align: center;
}

/* v94 予定セット */
.staff-schedule-sets-root {
    margin-bottom: 12px;
}
.staff-schedule-sets-panel {
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    overflow: hidden;
}
.staff-schedule-sets-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: none;
    cursor: pointer;
    text-align: left;
}
.staff-schedule-sets-toggle-label {
    font-size: 0.8125rem;
    font-weight: 900;
    color: #166534;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.staff-schedule-sets-toggle-hint {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #4ade80;
    margin-left: auto;
}
.staff-schedule-sets-toggle-icon {
    font-size: 0.625rem;
    color: #16a34a;
    transition: transform 0.15s;
}
.staff-schedule-sets-toggle-icon.is-open {
    transform: rotate(180deg);
}
.staff-schedule-sets-body {
    padding: 10px 12px 12px;
    border-top: 1px solid #bbf7d0;
}
.staff-schedule-sets-intro {
    margin: 0 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.45;
}
.staff-schedule-sets-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.staff-schedule-sets-day-clear {
    margin: 0.75rem 0 0;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.staff-schedule-sets-day-clear-info {
    min-width: 0;
    flex: 1 1 12rem;
}
.staff-schedule-sets-day-clear-title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 900;
    color: #991b1b;
}
.staff-schedule-sets-day-clear-count {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
}
.staff-schedule-sets-day-clear-note {
    margin: 4px 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #b45309;
    line-height: 1.4;
}
.staff-schedule-set-btn--clear-day {
    flex-shrink: 0;
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff;
}
.staff-schedule-set-btn--clear-day:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
}
.staff-schedule-set-btn--clear-day:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.staff-schedule-sets-applied {
    margin: 0.75rem 0 0;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #86efac;
    border-radius: 12px;
}
.staff-schedule-sets-applied-title {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #166534;
}
.staff-schedule-sets-applied-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-schedule-set-applied-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.staff-schedule-set-applied-info {
    min-width: 0;
    flex: 1 1 10rem;
}
.staff-schedule-set-applied-name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 900;
    color: #14532d;
    line-height: 1.35;
}
.staff-schedule-set-applied-count {
    margin: 2px 0 0;
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
}
.staff-schedule-set-btn--remove-applied {
    color: #b91c1c;
    background: #fff;
    border-color: #fecaca;
    flex-shrink: 0;
}
.staff-schedule-set-btn--remove-applied:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}
.staff-schedule-sets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-schedule-sets-empty {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.45;
}
.staff-schedule-set-card {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}
.staff-schedule-set-card--dim {
    opacity: 0.72;
}
.staff-schedule-set-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.staff-schedule-set-card-name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 900;
    color: #14532d;
}
.staff-schedule-set-badge {
    font-size: 0.5625rem;
    font-weight: 900;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.3;
}
.staff-schedule-set-badge--match {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}
.staff-schedule-set-badge--weekday,
.staff-schedule-set-badge--period {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
}
.staff-schedule-set-card-meta {
    margin: 0 0 8px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.staff-schedule-set-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-schedule-set-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}
.staff-schedule-set-btn--apply {
    color: #fff;
    background: #16a34a;
    border-color: #15803d;
}
.staff-schedule-set-btn--apply:hover {
    background: #15803d;
}
.staff-schedule-set-btn--new {
    color: #166534;
    background: #ecfdf5;
    border-color: #86efac;
}
.staff-schedule-set-btn--save-day {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}
.staff-schedule-set-btn--save-day:hover {
    background: #dbeafe;
}

.pss-save-day-mode-option input[type="radio"] {
    accent-color: #10b981;
}
.pss-save-day-mode-option:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}

.dbc-modal-propagate-option input[type="radio"],
.dbc-modal-propagate-option input[type="checkbox"] {
    accent-color: #3b82f6;
}
.dbc-modal-propagate-option--fixed {
    cursor: default;
}
.dbc-modal-propagate-option:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}
.staff-schedule-set-instance-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.staff-project-upcoming-set {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
}

/* 予定クエストモーダル：フッターとスクロール領域のクリックずれ防止 */
#daily-board-card-modal .dbc-modal-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(90vh, 100%);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
#daily-board-card-modal .dbc-modal-header {
    position: relative;
    z-index: 2;
    background: #ffffff;
}
#daily-board-card-modal .dbc-modal-body {
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#daily-board-card-modal .dbc-modal-footer {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: #f8fafc;
    isolation: isolate;
    pointer-events: auto;
}
#daily-board-card-modal .dbc-modal-footer-actions,
#daily-board-card-modal .dbc-modal-footer button {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
}

.staff-schedule-set-btn--master {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #5eead4;
}
.staff-schedule-set-modal-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.staff-schedule-set-btn--edit {
    color: #334155;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.staff-schedule-set-btn--delete {
    color: #b91c1c;
    background: #fff;
    border-color: #fecaca;
}
.staff-schedule-set-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.staff-schedule-set-field-label {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #475569;
}
.staff-schedule-set-input {
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    color: #334155;
    background: #fff;
}
.staff-schedule-set-textarea {
    resize: vertical;
    min-height: 56px;
}
.staff-schedule-set-weekdays {
    border: none;
    margin: 0 0 8px;
    padding: 0;
}
.staff-schedule-set-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.staff-schedule-set-weekdays-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #334155;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.staff-schedule-set-period-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.staff-schedule-set-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.staff-schedule-set-item-row {
    padding: 10px;
    border: 1px dashed #86efac;
    border-radius: 12px;
    background: #f8fafc;
}
.staff-schedule-set-item-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.staff-schedule-set-item-row-label {
    font-size: 0.6875rem;
    font-weight: 900;
    color: #166534;
}
.staff-schedule-set-item-remove {
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    min-width: 32px;
    min-height: 32px;
}
.staff-schedule-set-item-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr 88px;
    gap: 8px;
}
@media (max-width: 640px) {
    .staff-schedule-set-period-row,
    .staff-schedule-set-item-time-row {
        grid-template-columns: 1fr;
    }
    .staff-schedule-set-weekdays-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .staff-schedule-sets-toolbar .staff-schedule-set-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
    .staff-schedule-set-modal-item-actions {
        width: 100%;
    }
    .staff-schedule-set-modal-item-actions .staff-schedule-set-btn {
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
    }
}

.therapy-quick-activity-preset {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.therapy-quick-activity-preset:hover,
.therapy-quick-activity-preset:focus-visible {
    background: #f5f3ff;
    border-color: #c4b5fd;
    outline: none;
}

.therapy-quick-memo-textarea {
    min-height: 9rem;
    font-size: 1rem;
}

.therapy-quick-action-btn {
    min-height: 48px;
}

.therapy-quick-input {
    min-height: 48px;
}

.therapy-daily-service-input,
.therapy-daily-service-action-btn {
    min-height: 48px;
}

.therapy-daily-service-memo-textarea {
    min-height: 9rem;
    font-size: 1rem;
}

.therapy-daily-service-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 右下フローティング。body の flex で横伸びしないよう width/left/flex を明示 */
.back-to-top-button {
    position: fixed;
    left: auto;
    right: 24px;
    bottom: 24px;
    top: auto;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: auto;
    max-width: max-content;
    min-width: 72px;
    min-height: 48px;
    padding: 10px 16px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: #ff7a1a;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    flex: 0 0 auto;
    align-self: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.back-to-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-button:hover {
    background: #ea580c;
}

.back-to-top-button:active {
    background: #c2410c;
    transform: translateY(1px);
}

@media (max-width: 640px) {
    .back-to-top-button {
        right: 16px;
        bottom: 16px;
        min-width: 64px;
        min-height: 44px;
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
}

/* ===== ODEN OS 第1段階: プロジェクト基本情報 ===== */
.staff-project-os-basics {
    margin: 0 0 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.staff-project-os-basics-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.staff-project-os-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}
.staff-project-os-edit-btn:hover {
    background: #2563eb;
}
.staff-project-os-block {
    margin-top: 10px;
}
.staff-project-os-block--goal {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}
.staff-project-os-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.staff-project-os-value {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.staff-project-os-value--goal {
    font-size: 15px;
    font-weight: 900;
    color: #065f46;
}
.staff-project-os-value.is-empty,
.staff-project-os-empty {
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px;
}
.staff-project-os-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-project-os-tag {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
}
.staff-project-os-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}
@media (min-width: 640px) {
    .staff-project-os-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.staff-project-os-meta-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    min-width: 0;
}
.staff-project-os-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 420px) {
    .staff-project-os-check-grid {
        grid-template-columns: 1fr;
    }
}
.staff-project-os-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    min-width: 0;
}
.staff-project-os-check input {
    margin-top: 2px;
    flex-shrink: 0;
}
.staff-project-os-check span {
    min-width: 0;
    word-break: break-word;
}
.staff-project-card-detail--legacy {
    margin-top: 12px;
}

/* ===== ODEN OS 第3段階: 今日やること ===== */
.staff-today-dash {
    padding: 0;
}
.staff-today-dash-header {
    padding: 16px 18px 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.staff-today-dash-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.staff-today-dash-sub {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.4;
}
.staff-today-dash-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 16px 12px;
}
@media (min-width: 768px) {
    .staff-today-dash-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}
.staff-today-dash-summary-card {
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}
.staff-today-dash-summary-card.is-active,
.staff-today-dash-summary-card:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}
.staff-today-dash-summary-card--overdue {
    background: #fef2f2;
    border-color: #fecaca;
}
.staff-today-dash-summary-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #78716c;
}
.staff-today-dash-summary-count {
    display: block;
    margin-top: 2px;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1e293b;
}
.staff-today-dash-summary-unit {
    font-size: 0.75rem;
    margin-left: 2px;
    color: #64748b;
}
.staff-today-dash-summary-reset {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 900;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
}
.staff-today-dash-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px;
    align-items: stretch;
}
.staff-today-dash-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
@media (min-width: 900px) {
    .staff-today-dash-sections {
        flex-direction: row;
        align-items: flex-start; /* 左右の高さを揃えない */
    }
    .staff-today-dash-col {
        flex: 1 1 0;
    }
}
.staff-today-dash-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    min-width: 0;
}
.staff-today-dash-section.is-filtered-out {
    display: none;
}
.staff-today-dash-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}
.staff-today-dash-section-title {
    font-size: 13px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 8px;
}
.staff-today-dash-section-head .staff-today-dash-section-title {
    margin-bottom: 0;
}
.staff-today-schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.staff-today-schedule-bulk-btn {
    font-size: 11px;
    font-weight: 900;
    color: #0369a1;
    background: transparent;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.staff-today-schedule-bulk-btn:hover {
    color: #0c4a6e;
}
.staff-today-schedule-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.staff-today-schedule-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}
.staff-today-schedule-toggle {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    text-align: left;
    padding: 10px 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-weight: 900;
    color: #1e293b;
}
.staff-today-schedule-toggle:hover,
.staff-today-schedule-group.is-open .staff-today-schedule-toggle {
    background: #f1f5f9;
}
.staff-today-schedule-chevron {
    flex-shrink: 0;
    width: 1em;
    color: #64748b;
    font-size: 12px;
}
.staff-today-schedule-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    word-break: break-word;
}
.staff-today-schedule-toggle-count {
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
}
.staff-today-schedule-toggle-time {
    font-size: 11px;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 6px;
    padding: 2px 6px;
    flex-shrink: 0;
}
.staff-today-schedule-panel {
    padding: 0 10px 10px;
    border-top: 1px solid #e2e8f0;
}
.staff-today-schedule-panel[hidden] {
    display: none !important;
}
.staff-today-schedule-panel .staff-today-dash-list {
    margin-top: 8px;
}
@media (max-width: 640px) {
    .staff-today-schedule-bulk-btn {
        font-size: 10px;
        padding: 4px 2px;
    }
}
.staff-today-dash-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-today-dash-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
}
.staff-today-dash-card-project {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    word-break: break-word;
    margin-bottom: 8px;
}
.staff-today-dash-time {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
}
.staff-today-dash-label {
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 2px;
}
.staff-today-dash-value {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.staff-today-dash-value.is-empty {
    color: #94a3b8;
    font-size: 12px;
}
.staff-today-dash-card-field + .staff-today-dash-card-field {
    margin-top: 8px;
}
.staff-today-dash-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.staff-today-dash-card-actions {
    margin-top: 10px;
}
.staff-today-dash-detail-btn {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}
.staff-today-dash-detail-btn:hover {
    background: #1d4ed8;
}
.staff-today-dash-empty,
.staff-today-dash-loading,
.staff-today-dash-error {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    padding: 8px 2px;
}
.staff-today-dash-error {
    color: #dc2626;
}
.staff-today-dash-paused {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 900;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    padding: 2px 8px;
}
@media (max-width: 640px) {
    .staff-today-dash-priority-4,
    .staff-today-dash-priority-6,
    .staff-today-dash-priority-7 {
        /* スマホでも文字は残すが優先度の低い行は少し小さく */
        font-size: 10px;
    }
}

/* ===== ODEN OS 第2段階: マイルストーン ===== */
.staff-project-os-card-summary {
    margin: 0 12px 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 6px;
}
.staff-project-os-card-summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.staff-project-os-card-summary-label {
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
}
.staff-project-os-card-summary-value {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.staff-project-os-card-summary-value.is-empty {
    color: #94a3b8;
}
.staff-project-os-due--today { color: #b45309; }
.staff-project-os-due--overdue { color: #b91c1c; }
.staff-project-os-due--future { color: #047857; }
.staff-project-os-due--unset { color: #94a3b8; }

.staff-project-os-position,
.staff-project-os-milestones,
.staff-project-os-current-detail {
    margin: 0 0 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.staff-project-os-position-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.staff-project-os-position-arrow {
    text-align: center;
    color: #94a3b8;
    font-weight: 900;
}
.staff-project-os-position-step {
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.staff-project-ms-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-project-os-edit-btn--secondary {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.staff-project-os-edit-btn--secondary:hover {
    background: #eff6ff;
}
.staff-project-ms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.staff-project-ms-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}
.staff-project-ms-row.is-current {
    border-color: #a7f3d0;
    background: #ecfdf5;
}
.staff-project-ms-row.is-done {
    opacity: 0.85;
}
.staff-project-ms-row-main {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    min-width: 0;
}
.staff-project-ms-mark {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
    color: #64748b;
    flex-shrink: 0;
}
.staff-project-ms-row.is-current .staff-project-ms-mark { color: #059669; }
.staff-project-ms-row.is-done .staff-project-ms-mark { color: #2563eb; }
.staff-project-ms-body {
    min-width: 0;
    flex: 1;
}
.staff-project-ms-title {
    font-size: 13px;
    font-weight: 900;
    color: #1e293b;
    word-break: break-word;
}
.staff-project-ms-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.staff-project-ms-here {
    color: #047857;
    font-weight: 900;
}
.staff-project-ms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.staff-project-ms-btn {
    font-size: 10px;
    font-weight: 900;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.staff-project-ms-btn--primary {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
.staff-project-ms-btn--danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff1f2;
}
@media (max-width: 640px) {
    .staff-project-os-card-summary,
    .staff-project-os-position,
    .staff-project-os-milestones,
    .staff-project-os-current-detail {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===== ODEN OS 第4段階: 定例会議 ===== */
.staff-today-dash-header-actions {
    flex-shrink: 0;
}
.staff-today-dash-meeting-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.staff-today-dash-meeting-btn:hover {
    background: #bae6fd;
}
body.staff-meeting-open {
    overflow: hidden;
}
.staff-meeting-shell {
    min-height: 0;
}
.staff-meeting-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f0f9ff;
}
.staff-meeting-close-x {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
}
.staff-meeting-close-x:hover {
    background: #e2e8f0;
}
.staff-meeting-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
@media (min-width: 700px) {
    .staff-meeting-summary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.staff-meeting-summary-card {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    min-width: 0;
}
.staff-meeting-summary-card--red {
    background: #fef2f2;
    border-color: #fecaca;
}
.staff-meeting-summary-card--overdue {
    background: #fff7ed;
    border-color: #fed7aa;
}
.staff-meeting-summary-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
}
.staff-meeting-summary-count {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-top: 2px;
}
.staff-meeting-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.staff-meeting-filter-btn {
    font-size: 11px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
}
.staff-meeting-filter-btn.is-active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}
.staff-meeting-section-label {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 6px;
}
.staff-meeting-participants {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.staff-meeting-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.staff-meeting-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    min-width: 0;
}
.staff-meeting-check input {
    flex-shrink: 0;
}
.staff-meeting-note-wrap {
    margin-bottom: 14px;
}
.staff-meeting-note-hint {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 6px;
    line-height: 1.4;
}
.staff-meeting-note {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}
.staff-meeting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.staff-meeting-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    min-width: 0;
}
.staff-meeting-card.is-checked {
    border-color: #86efac;
    background: #f0fdf4;
}
.staff-meeting-card.is-paused {
    border-style: dashed;
}
.staff-meeting-card-head {
    margin-bottom: 8px;
}
.staff-meeting-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
}
.staff-meeting-card-icon {
    font-size: 18px;
}
.staff-meeting-card-name {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    word-break: break-word;
}
.staff-meeting-badge {
    font-size: 10px;
    font-weight: 900;
    border-radius: 6px;
    padding: 2px 6px;
}
.staff-meeting-badge--paused {
    background: #fef3c7;
    color: #92400e;
}
.staff-meeting-badge--checked {
    background: #dcfce7;
    color: #166534;
}
.staff-meeting-card-health {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 900;
}
.staff-meeting-card-health--green { color: #047857; }
.staff-meeting-card-health--yellow { color: #b45309; }
.staff-meeting-card-health--red { color: #b91c1c; }
.staff-meeting-card-health--unset { color: #64748b; }
.staff-meeting-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 8px;
}
.staff-meeting-card-block {
    margin-bottom: 8px;
    min-width: 0;
}
.staff-meeting-card-label {
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 2px;
}
.staff-meeting-card-value {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.45;
    word-break: break-word;
}
.staff-meeting-muted {
    color: #94a3b8;
    font-weight: 700;
}
.staff-meeting-due--today { color: #b45309; }
.staff-meeting-due--overdue { color: #b91c1c; }
.staff-meeting-due--future { color: #047857; }
.staff-meeting-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.staff-meeting-btn {
    font-size: 12px;
    font-weight: 900;
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.staff-meeting-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.staff-meeting-btn--primary {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}
.staff-meeting-btn--secondary {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}
.staff-meeting-btn--check {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
.staff-meeting-btn--ghost {
    background: transparent;
    color: #64748b;
}
.staff-meeting-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    position: sticky;
    bottom: 0;
    background: #fff;
}
.staff-meeting-loading,
.staff-meeting-empty,
.staff-meeting-error,
.staff-meeting-warn {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    padding: 8px 0;
}
.staff-meeting-error { color: #b91c1c; }
.staff-meeting-warn { color: #b45309; }
.staff-meeting-history {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.staff-meeting-history-title {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px;
}
.staff-meeting-history-sub,
.staff-meeting-history-empty {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 10px;
}
.staff-meeting-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-meeting-history-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.staff-meeting-history-toggle {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
}
.staff-meeting-history-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}
.staff-meeting-history-row--meta {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}
.staff-meeting-history-detail {
    padding: 10px 12px 12px;
    border-top: 1px solid #e2e8f0;
}
.staff-meeting-history-detail-block {
    margin-bottom: 10px;
}
.staff-meeting-history-ul {
    margin: 4px 0 0;
    padding-left: 1.2em;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}
@media (max-width: 640px) {
    .staff-today-dash-meeting-btn {
        font-size: 11px;
        padding: 7px 10px;
        width: 100%;
        justify-content: center;
    }
    .staff-meeting-card-block--priority .staff-meeting-card-value {
        font-size: 14px;
    }
    .staff-meeting-footer {
        flex-direction: column-reverse;
    }
    .staff-meeting-footer .staff-meeting-btn {
        width: 100%;
        text-align: center;
    }
}


/* ===== Phase 5: 活動振り返り ===== */
.staff-today-dash-reflect-btn {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}
.staff-today-dash-reflect-btn:hover {
    background: #059669;
}
.staff-project-os-position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.staff-project-activity-add-btn {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.staff-project-activity-add-btn:hover {
    background: #059669;
}
/* Shell */
.staff-reflect-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 2px solid #d1fae5;
    background: #f0fdf4;
    flex-shrink: 0;
}
.staff-reflect-shell-body {
    overflow-y: auto;
    overflow-x: hidden;
}
/* Context block */
.staff-reflect-ctx {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #064e3b;
}
.staff-reflect-ctx-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.staff-reflect-ctx-label {
    font-size: 11px;
    color: #6b7280;
    min-width: 80px;
    flex-shrink: 0;
}
/* General */
.staff-reflect-section {
    margin-bottom: 18px;
}
.staff-reflect-label {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.staff-reflect-required {
    font-size: 11px;
    color: #ef4444;
    margin-left: 4px;
    font-weight: 800;
}
.staff-reflect-muted {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}
.staff-reflect-textarea {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}
.staff-reflect-textarea:focus {
    outline: none;
    border-color: #10b981;
}
.staff-reflect-textarea--sm {
    font-size: 12px;
    padding: 7px;
    rows: 2;
}
.staff-reflect-select, .staff-reflect-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
}
.staff-reflect-select:focus, .staff-reflect-input:focus {
    outline: none;
    border-color: #10b981;
}
/* Experience categories */
.staff-reflect-exp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.staff-reflect-exp-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}
.staff-reflect-exp-check input[type="checkbox"] {
    accent-color: #10b981;
}
/* Carry */
.staff-reflect-carry {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}
.staff-reflect-carry-label {
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 4px;
}
.staff-reflect-carry-body {
    font-size: 12px;
    color: #78350f;
    white-space: pre-wrap;
    max-height: 80px;
    overflow-y: auto;
}
.staff-reflect-carry-mini {
    font-size: 11px;
    color: #78350f;
    background: #fefce8;
    border-radius: 6px;
    padding: 5px 8px;
    margin-top: 6px;
}
/* Child accordion */
.staff-reflect-child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-reflect-child-toolbar {
    display: flex;
    gap: 6px;
}
.staff-reflect-sm-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
    white-space: nowrap;
}
.staff-reflect-sm-btn:hover {
    background: #e2e8f0;
}
.staff-reflect-child-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    overflow: hidden;
}
.staff-reflect-child-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    transition: background 0.1s;
}
.staff-reflect-child-toggle:hover {
    background: #f1f5f9;
}
.staff-reflect-child-chevron {
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}
.staff-reflect-child-name {
    flex: 1;
}
.staff-reflect-child-badge--has {
    font-size: 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 800;
}
.staff-reflect-child-badge--none {
    font-size: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 700;
}
.staff-reflect-child-panel {
    padding: 10px 12px 12px;
    border-top: 1px solid #e2e8f0;
    position: relative;
}
.staff-reflect-child-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.staff-reflect-sm-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 2px;
    display: block;
}
.staff-reflect-child-therapy-row {
    margin-top: 4px;
}
.staff-reflect-remove-child-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.staff-reflect-remove-child-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}
.staff-reflect-add-child-row {
    margin-top: 8px;
}
/* Confirm step */
.staff-reflect-confirm-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.staff-reflect-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.staff-reflect-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}
.staff-reflect-radio input[type="radio"] {
    accent-color: #10b981;
}
.staff-reflect-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
.staff-reflect-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}
.staff-reflect-therapy-list {
    margin: 6px 0;
    padding-left: 1.4em;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
/* Footer */
.staff-reflect-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 0 4px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}
.staff-reflect-btn {
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}
.staff-reflect-btn--primary {
    background: #10b981;
    color: #fff;
}
.staff-reflect-btn--primary:hover {
    background: #059669;
}
.staff-reflect-btn--primary:disabled {
    background: #a7f3d0;
    cursor: not-allowed;
}
.staff-reflect-btn--cancel {
    background: #f1f5f9;
    color: #475569;
}
.staff-reflect-btn--cancel:hover {
    background: #e2e8f0;
}
.staff-reflect-btn--link {
    background: #eff6ff;
    color: #1d4ed8;
}
.staff-reflect-btn--link:hover {
    background: #dbeafe;
}
/* Done */
.staff-reflect-done {
    text-align: center;
    padding: 30px 20px;
}
.staff-reflect-done-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.staff-reflect-done-title {
    font-size: 18px;
    font-weight: 900;
    color: #065f46;
    margin-bottom: 8px;
}
.staff-reflect-done-msg {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}
.staff-reflect-done-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Activity history */
.staff-project-activity-history {
    padding: 12px 0 4px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}
.staff-activity-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.staff-activity-history-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.staff-activity-history-btn {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    transition: background 0.1s;
}
.staff-activity-history-btn:hover {
    background: #f1f5f9;
}
.staff-activity-history-date {
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
}
.staff-activity-history-preview {
    flex: 1;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-activity-history-therapy {
    font-size: 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 800;
    flex-shrink: 0;
}
.staff-activity-record-detail {
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}
.staff-activity-record-detail-inner {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.staff-activity-detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.staff-activity-detail-label {
    font-size: 11px;
    color: #6b7280;
    min-width: 100px;
    flex-shrink: 0;
}
.staff-activity-detail-result {
    white-space: pre-wrap;
    color: #1e293b;
    flex: 1;
}
.staff-activity-detail-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.staff-activity-detail-child {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 8px 12px;
}
.staff-activity-detail-child-name {
    font-size: 13px;
    font-weight: 900;
    color: #065f46;
    margin-bottom: 4px;
}
.staff-activity-detail-child-field {
    font-size: 12px;
    color: #334155;
    margin-top: 2px;
}
.staff-activity-detail-child-label {
    color: #6b7280;
    font-size: 11px;
}
.staff-activity-detail-therapy-badge {
    font-size: 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 800;
    display: inline-block;
    margin-top: 4px;
}
.staff-activity-detail-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}
/* Mobile */
@media (max-width: 640px) {
    .staff-reflect-row-2col {
        grid-template-columns: 1fr;
    }
    .staff-reflect-exp-grid {
        gap: 6px 8px;
    }
    .staff-reflect-footer {
        flex-direction: column-reverse;
    }
    .staff-reflect-footer .staff-reflect-btn {
        width: 100%;
        text-align: center;
    }
    .staff-reflect-child-toolbar {
        width: 100%;
        justify-content: flex-end;
    }
    .staff-activity-history-btn {
        flex-direction: column;
        gap: 4px;
    }
    .staff-activity-history-preview {
        white-space: normal;
    }
}

/* ===== Phase 6: therapy view nav & growth (v159) ===== */
.therapy-view-nav {
    display: flex;
    gap: 4px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.therapy-view-nav-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    border-radius: 12px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
}
.therapy-view-nav-btn:hover { background: #e2e8f0; color: #334155; }
.therapy-view-nav-btn.active { background: #7c3aed; color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.25); }
.therapy-growth-card { transition: box-shadow 0.1s; }
.therapy-growth-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.growth-log-toggle-btn { background: transparent; border: none; cursor: pointer; width: 100%; text-align: left; }
.therapy-growth-period-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    transition: all 0.1s;
    user-select: none;
}
.therapy-growth-period-label:has(input:checked) { background: #ede9fe; border-color: #7c3aed; color: #5b21b6; }
.therapy-growth-period-label input[type="radio"] { display: none; }
.therapy-growth-month-group + .therapy-growth-month-group { padding-top: 8px; }
.growth-exp-chip { transition: all 0.1s; cursor: pointer; }
#therapy-edit-modal > div,
#therapy-activity-record-modal > div { max-height: calc(100vh - 64px); overflow-y: auto; }
@media (max-width: 640px) {
    .therapy-view-nav { border-radius: 12px; padding: 3px; }
    .therapy-view-nav-btn { font-size: 11px; padding: 7px 6px; min-width: 70px; }
    .therapy-growth-period-label { font-size: 11px; padding: 3px 9px; }
}

/* ===== Phase 8: AI下書き支援 (v161) ===== */
#sr-ai-panel {
    overflow: hidden;
}
#sr-ai-draft-btn {
    transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
#sr-ai-draft-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.sr-ai-field-card {
    transition: border-color 0.15s, background 0.15s;
}
.sr-ai-field-textarea {
    min-height: 64px;
    font-size: 12px;
}
#therapy-support-review-ai-confirm-modal > div,
#therapy-support-review-ai-result-modal > div {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
@media (max-width: 640px) {
    #sr-ai-panel { padding: 8px; }
    .sr-ai-field-card { padding: 10px; }
    #therapy-support-review-ai-result-modal { padding: 8px; }
}

/* ===== Phase 7: 支援の振り返り (v160) ===== */
.therapy-support-review-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 14px;
    border-radius: 12px;
    border: 2px solid #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}
.therapy-support-review-create-btn:hover { background: #ede9fe; border-color: #8b5cf6; }
.sr-review-card {
    transition: background 0.1s, box-shadow 0.1s;
}
.sr-review-card:hover { box-shadow: 0 2px 8px rgba(124,58,237,0.1); }
.sr-compose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.sr-log-scroll { max-height: 360px; }
.sr-selected-scroll { max-height: 200px; }
.sr-log-card { user-select: none; }
.sr-review-textarea { min-height: 72px; }
#therapy-support-review-modal > div,
#therapy-support-review-detail-modal > div { max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 700px) {
    .sr-compose-grid { grid-template-columns: 1fr; }
    .sr-log-scroll { max-height: 260px; }
    .sr-selected-scroll { max-height: 160px; }
}

/* ===== Carry-over reward patterns (v162) ===== */
.child-carry-over-reward {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.child-carry-over-reward .child-result-patterns-preview {
  margin-top: 0;
}

/* ===== Admin test-delete modal (v164) ===== */
#admin-test-delete-modal,
#therapy-admin-test-delete-modal {
  overflow-x: hidden;
}
.staff-activity-detail-admin-actions {
  max-width: 100%;
}

/* スタッフ管理タブナビ */
.staff-admin-tabs {
  row-gap: 0;
}
.staff-admin-tab {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .staff-admin-tab {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== プロジェクト管理: 表示日スケジュール / 保留・やりかけ折りたたみ (v168) ===== */
.staff-pm-day-schedule-root {
  margin: 0 0 14px;
}
.staff-pm-day-schedule {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
}
.staff-pm-day-schedule-heading {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 900;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.staff-pm-day-schedule-count {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}
.staff-pm-day-schedule-empty {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}
.staff-pm-day-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-pm-day-schedule-item {
  display: grid;
  grid-template-columns: 4.75rem auto 1fr auto;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}
.staff-pm-day-schedule-time {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}
.staff-pm-day-schedule-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.staff-pm-day-schedule-badge--event {
  background: #dbeafe;
  color: #1d4ed8;
}
.staff-pm-day-schedule-badge--recurring {
  background: #ede9fe;
  color: #6d28d9;
}
.staff-pm-day-schedule-badge--card {
  background: #ffedd5;
  color: #c2410c;
}
.staff-pm-day-schedule-title {
  min-width: 0;
  font-weight: 800;
  color: #1e293b;
  overflow-wrap: anywhere;
}
.staff-pm-day-schedule-project {
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-align: right;
  overflow-wrap: anywhere;
}
.staff-admin-collapsible-toggle {
  cursor: pointer;
  border: none;
  appearance: none;
  transition: background 0.15s ease;
}
.staff-admin-collapsible-toggle:hover {
  filter: brightness(0.98);
}
.staff-admin-collapsible-body {
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
  .staff-pm-day-schedule-item {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .staff-pm-day-schedule-time {
    font-size: 0.8125rem;
  }
  .staff-pm-day-schedule-badge {
    justify-self: start;
  }
  .staff-pm-day-schedule-project {
    text-align: left;
  }
}



/* イベント関連予定（スタッフ） */
.evt-related-plan-row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}
.evt-related-plan-date {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.75rem;
    min-width: 2.75rem;
}
.evt-related-plan-title {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    font-size: 0.8125rem;
    font-weight: 800;
}

/* 保護者向け: このイベントに向けた取り組み */
.parent-related-plans {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}
.parent-related-plans-heading {
    font-size: 0.8125rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.65rem;
}
.parent-related-plan-item {
    margin-bottom: 0.7rem;
}
.parent-related-plan-item:last-child {
    margin-bottom: 0;
}
.parent-related-plan-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0369a1;
    margin: 0 0 0.15rem;
    word-break: break-word;
}
.parent-related-plan-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.parent-related-plan-desc {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin: 0.2rem 0 0;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* チャレンジ募集（内部IDは presentation 系を維持） */
.child-presentation-section-head { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; margin-bottom:0.75rem; }
.child-presentation-list-link { font-size:0.75rem; font-weight:900; color:#92400e; background:#fffbeb; border:1px solid #fde68a; border-radius:0.6rem; padding:0.35rem 0.7rem; }
.child-presentation-empty--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}
.child-presentation-grid,
.child-presentation-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  justify-content: center;
  box-sizing: border-box;
  align-items: stretch;
}
@media (min-width: 640px) {
  .child-presentation-grid,
  .child-presentation-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    justify-content: center;
  }
}
.child-presentation-card, .parent-presentation-card {
  background:#fff; border:1px solid #fde68a; border-radius:1rem; padding:0.9rem 1rem; margin-bottom:0.75rem;
}
.child-presentation-card--compact {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.child-presentation-card--compact:hover,
.child-presentation-card--compact:focus-visible {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  outline: none;
}
@media (min-width: 640px) {
  .child-presentation-grid > .child-presentation-card--compact,
  .child-presentation-list-grid > .child-presentation-card--compact {
    max-width: 340px;
  }
}
.child-presentation-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.child-presentation-label, .parent-presentation-label { font-size:0.7rem; font-weight:900; color:#b45309; margin:0 0 0.35rem; }
.child-presentation-event, .parent-presentation-event { font-size:0.75rem; font-weight:700; color:#64748b; margin:0 0 0.25rem; word-break:break-word; }
.child-presentation-title, .parent-presentation-title {
  font-size:1rem; font-weight:900; color:#0f172a; margin:0 0 0.4rem; word-break:break-word; overflow-wrap:anywhere;
}
.child-presentation-card--compact .child-presentation-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}
.child-presentation-desc, .parent-presentation-desc {
  font-size:0.82rem; font-weight:600; color:#475569; margin:0 0 0.45rem; line-height:1.45; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.child-presentation-card--compact .child-presentation-desc {
  -webkit-line-clamp: 3;
  min-height: 3.6em;
}
.child-presentation-meta, .parent-presentation-meta { font-size:0.78rem; font-weight:700; color:#334155; margin:0.15rem 0; word-break:break-word; }
.child-presentation-meta span, .parent-presentation-meta span { color:#64748b; }
.child-presentation-reward-detail,
.parent-presentation-reward-detail {
  margin: 0.55rem 0;
  font-size: 0.82rem;
  color: #334155;
}
.child-presentation-reward-detail p,
.parent-presentation-reward-detail p { margin: 0.2rem 0; }
.child-presentation-reward-detail ul,
.parent-presentation-reward-detail ul {
  display: grid;
  margin: 0.25rem 0 0;
  padding: 0;
  gap: 0.25rem;
  list-style: none;
}
.child-presentation-reward-detail li,
.parent-presentation-reward-detail li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.child-presentation-den, .parent-presentation-den { margin:0.4rem 0; }
.child-presentation-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0.35rem 0 0.15rem;
}
.child-presentation-applicant-count {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 850;
}
.challenge-challengers-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0.1rem;
  min-height: 2rem;
}
.challenge-challengers-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  color: #92400e;
}
.challenge-challengers-avatars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.challenge-challenger-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #fcd34d;
  background: #fff7ed;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.challenge-challenger-avatar--static {
  cursor: default;
  pointer-events: none;
}
.challenge-challenger-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.challenge-challenger-avatar-emoji {
  font-size: 0.95rem;
  line-height: 1;
}
.challenge-challenger-avatar-initial {
  font-size: 0.72rem;
  font-weight: 900;
  color: #9a3412;
  line-height: 1;
}
.challenge-challenger-more {
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.challenge-challenger-name-bubble {
  position: fixed;
  z-index: 120;
  max-width: min(70vw, 14rem);
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}
.challenge-challengers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.challenge-challengers-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid #f1f5f9;
}
.challenge-challengers-list-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 900;
  color: #0f172a;
  font-size: 0.9rem;
}
.challenge-challengers-list-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.parent-presentation-challengers {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: #92400e;
}
.child-presentation-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.55rem;
}
.child-presentation-detail-btn {
  width: 100%;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
  font-size: 0.78rem;
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #fde68a;
}
.child-presentation-apply-btn {
  width:100%; margin-top:0; background:#f97316; color:#fff; font-weight:900; font-size:0.9rem;
  border-radius:0.85rem; padding:0.7rem 1rem; border:none;
}
.child-presentation-apply-btn:disabled,
.child-presentation-apply-btn.is-applied {
  background: #cbd5e1;
  color: #475569;
  cursor: not-allowed;
  opacity: 1;
}
.child-presentation-applied { display:inline-block; margin-top:0.4rem; font-weight:900; color:#0369a1; background:#e0f2fe; border-radius:999px; padding:0.4rem 0.85rem; font-size:0.8rem; }
.child-presentation-status-chip {
  display:inline-block; margin:0 0 0.4rem; font-size:0.7rem; font-weight:900; color:#92400e;
  background:#fffbeb; border:1px solid #fde68a; border-radius:999px; padding:0.2rem 0.55rem;
}
.child-presentation-desc--full {
  display:block; -webkit-line-clamp:unset; overflow:visible; min-height: 0;
}
.child-presentation-show-all { width:100%; margin-top:0.25rem; font-weight:900; font-size:0.8rem; color:#92400e; background:#fffbeb; border:1px dashed #fcd34d; border-radius:0.75rem; padding:0.65rem; }
.child-presentation-card--detail { margin-bottom: 0; }
.child-my-challenges-section { margin-top:0.25rem; }
.child-my-challenges-card {
  background:#fff; border:1px solid #bfdbfe; border-radius:1rem; padding:0.9rem 1rem; margin-bottom:0.75rem;
}
.child-my-challenges-card--missing { border-color:#cbd5e1; background:#f8fafc; }
.child-my-challenges-label { font-size:0.7rem; font-weight:900; color:#1d4ed8; margin:0 0 0.35rem; }
.child-my-challenges-title { font-size:1rem; font-weight:900; color:#0f172a; margin:0 0 0.4rem; word-break:break-word; overflow-wrap:anywhere; }
.child-my-challenges-desc {
  font-size:0.82rem; font-weight:600; color:#475569; margin:0 0 0.45rem; line-height:1.45;
  word-break:break-word; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.child-my-challenges-meta { font-size:0.78rem; font-weight:700; color:#334155; margin:0.15rem 0; word-break:break-word; }
.child-my-challenges-meta span { color:#64748b; }
.child-my-challenges-den { margin:0.4rem 0; }
.child-my-challenges-status {
  display:inline-block; margin-top:0.15rem; font-size:0.75rem; font-weight:900; color:#1e40af;
  background:#eff6ff; border:1px solid #bfdbfe; border-radius:999px; padding:0.25rem 0.65rem;
}
.child-my-challenges-empty {
  font-size:0.85rem; font-weight:700; color:#64748b; text-align:center; line-height:1.55;
  padding:1rem 0.75rem; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:0.85rem;
}
.child-my-challenges-empty--compact { padding:0.65rem 0.75rem; margin-bottom:0.5rem; }
.child-my-challenges-past-wrap { margin-top:0.25rem; }
.child-my-challenges-past-toggle {
  width:100%; font-weight:900; font-size:0.78rem; color:#475569; background:#f1f5f9;
  border:1px solid #cbd5e1; border-radius:0.75rem; padding:0.55rem 0.75rem;
}
.staff-project-card-quick-btn--challenge,
.staff-project-card-quick-btn--challenge-master {
  color:#92400e; background:#fffbeb; border-color:#fde68a;
}
.challenge-admin-filter-btn {
  font-size:0.75rem; font-weight:900; color:#64748b; background:#f8fafc;
  border:1px solid #cbd5e1; border-radius:999px; padding:0.35rem 0.75rem;
}
.challenge-admin-filter-btn.is-active {
  color:#92400e; background:#fffbeb; border-color:#fcd34d;
}
.staff-challenge-admin-grid {
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0.75rem;
}
.staff-challenge-admin-row, .staff-presentation-admin-row {
  background:#fff; border:1px solid #fde68a; border-radius:0.85rem; padding:0.85rem 0.95rem;
}
.staff-challenge-admin-project {
  font-size:1rem; font-weight:900; color:#0f172a; line-height:1.25; margin-bottom:0.25rem;
}
.staff-challenge-admin-statusline {
  display:flex; flex-wrap:wrap; align-items:center; gap:0.35rem; font-size:0.72rem; margin:0.2rem 0 0.35rem;
}
@media (max-width: 860px) {
  .staff-challenge-admin-grid { grid-template-columns:1fr; }
}
.dbc-related-challenge-item {
  background:#fff; border:1px solid #bae6fd; border-radius:0.75rem; padding:0.65rem 0.75rem;
}
.presentation-apply-modal-panel { min-height: 0; }
.presentation-apply-group-label {
  font-size:0.7rem; font-weight:900; color:#64748b; margin:0.65rem 0 0.35rem; letter-spacing:0.02em;
}
.presentation-apply-group-label:first-child { margin-top:0; }
.presentation-apply-empty { font-size:0.85rem; font-weight:700; color:#64748b; text-align:center; padding:1.25rem 0.5rem; }
.presentation-apply-child-option {
  width:100%; display:flex; align-items:center; gap:0.65rem; text-align:left;
  min-height:3.1rem; padding:0.75rem 0.85rem; border-radius:0.9rem;
  border:2px solid #e2e8f0; background:#fff; color:#0f172a;
  font-weight:800; font-size:0.95rem; transition: border-color .15s, background .15s;
}
.presentation-apply-child-option.is-selected { border-color:#f97316; background:#fff7ed; }
.presentation-apply-child-option.is-applied,
.presentation-apply-child-option:disabled {
  opacity:0.72; cursor:not-allowed; background:#f8fafc; border-color:#e2e8f0; color:#64748b;
}
.presentation-apply-child-radio {
  width:1.15rem; height:1.15rem; border-radius:999px; border:2px solid #94a3b8; flex-shrink:0;
  background:#fff; box-shadow: inset 0 0 0 0 #f97316;
}
.presentation-apply-child-option.is-selected .presentation-apply-child-radio {
  border-color:#ea580c; box-shadow: inset 0 0 0 0.28rem #ea580c;
}
.presentation-apply-child-emoji { flex-shrink:0; font-size:1.15rem; line-height:1; }
.presentation-apply-child-name { flex:1; min-width:0; word-break:break-word; }
.presentation-apply-applied-badge {
  flex-shrink:0; font-size:0.7rem; font-weight:900; color:#0369a1;
  background:#e0f2fe; border-radius:999px; padding:0.25rem 0.55rem;
}
.presentation-apply-modal-actions { gap:0.6rem; }
.presentation-apply-cancel-btn,
.presentation-apply-confirm-btn {
  flex:1; min-height:3rem; border-radius:0.9rem; font-weight:900; font-size:0.9rem; padding:0.75rem 0.5rem;
}
.presentation-apply-cancel-btn { background:#fff; border:2px solid #cbd5e1; color:#475569; }
.presentation-apply-confirm-btn { background:#f97316; border:2px solid #ea580c; color:#fff; }
.presentation-apply-confirm-btn:disabled { background:#fdba74; border-color:#fdba74; color:#fff7ed; cursor:not-allowed; }
.dbc-den-presets { display:flex; flex-wrap:wrap; gap:0.45rem; position:relative; z-index:1; }
.dbc-den-preset-btn {
  min-height:2.5rem; padding:0.45rem 0.7rem; border-radius:0.75rem; border:2px solid #e2e8f0;
  background:#fff; color:#334155; font-size:0.8rem; font-weight:900; line-height:1.2;
  position:relative; z-index:2; pointer-events:auto; cursor:pointer;
}
.dbc-den-preset-btn.is-selected {
  border-color:#f97316; background:#fff7ed; color:#c2410c;
}
.challenge-den-option.is-selected {
  border-color:#ea580c;
  background:#f97316;
  color:#fff;
  box-shadow: 0 0 0 1px #c2410c inset;
}
.challenge-den-option.is-selected::after {
  content: " ✓";
  font-weight: 900;
}
.dbc-den-custom-row input[type="number"] { -moz-appearance:textfield; }
.dbc-den-custom-row input[type="number"]::-webkit-outer-spin-button,
.dbc-den-custom-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.evt-presentation-row { display:flex; flex-direction:column; gap:0.15rem; }
.evt-presentation-badge { font-size:0.65rem; font-weight:900; color:#b45309; }
.staff-presentation-admin-row { border:1px solid #fde68a; border-radius:0.85rem; padding:0.75rem; margin-bottom:0.5rem; background:#fffbeb55; }
.parent-presentation-section { margin-top:1rem; }
.parent-presentation-grid { display:flex; flex-direction:column; gap:0.5rem; }
.parent-event-presentations { margin-top:0.85rem; padding-top:0.75rem; border-top:1px solid rgba(251,191,36,0.45); }
.parent-event-presentations-heading { font-size:0.8125rem; font-weight:900; color:#0f172a; margin:0 0 0.65rem; }
.parent-event-presentation-item { margin-bottom:0.65rem; }
.parent-den-badge, .parent-presentation-den-inline { display:inline-block; background:#fff7ed; color:#ea580c; font-weight:900; font-size:0.75rem; border-radius:999px; padding:0.2rem 0.55rem; }
@media (max-width:640px) {
  .child-presentation-apply-btn { font-size:0.95rem; }
  .presentation-apply-child-option { min-height:3.35rem; font-size:1rem; }
  .presentation-apply-cancel-btn,
  .presentation-apply-confirm-btn { min-height:3.25rem; font-size:0.95rem; }
}

/* c134aaa hosting bundle compatibility */
/* Ver.1 project list anchor flash */
.project-management-list,
#project-manage-tab-list.staff-project-tab-grid {
    scroll-margin-top: 110px;
}
.project-management-list--flash {
    animation: staff-pm-date-flash 1.2s ease;
}

/* Ver.1 project challenge card styles */
.staff-project-card-section--challenges {
    margin-top: 0.65rem;
    padding: 0.65rem 0.7rem 0.7rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.85rem;
}
.staff-project-card-section-label--challenges,
.staff-project-card-section--challenges .staff-project-card-section-label {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.staff-project-card-section--challenges .staff-project-card-block-empty,
.staff-project-challenge-empty {
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.15rem 0 0;
    padding: 0;
}
.staff-project-challenge-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.staff-project-challenge-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    color: #78350f;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.staff-project-challenge-btn:hover {
    background: #fef3c7;
    border-color: #fbbf24;
}
.staff-project-challenge-status {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 900;
    line-height: 1.2;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.staff-project-challenge-status--pending {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fdba74;
}
.staff-project-challenge-status--progress {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
}
.staff-project-challenge-status--open {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}
.staff-project-challenge-status--draft {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.staff-project-challenge-status--closed,
.staff-project-challenge-status--completed,
.staff-project-challenge-status--other {
    color: #57534e;
    background: #f5f5f4;
    border-color: #d6d3d1;
}
.staff-project-challenge-title {
    flex: 1 1 8rem;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1c1917;
}
.staff-project-challenge-meta {
    flex: 1 1 100%;
    font-size: 0.625rem;
    font-weight: 700;
    color: #a16207;
}
.staff-project-card-challenges-more {
    margin-top: 0.4rem;
    width: 100%;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}
.staff-project-card-challenges-more:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

/* v94 児童ページ「今日のODEN」進捗のみ表示 */

/* Ver.1 project management calendar styles */
.staff-pm-month-calendar-root {
  margin: 0 0 1rem;
  min-width: 0;
  max-width: 100%;
}

.project-date-section,
.staff-pm-day-schedule-root.project-date-section {
  scroll-margin-top: 100px;
}

.staff-pm-cal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.875rem 0.75rem 1rem;
  box-sizing: border-box;
}

.staff-pm-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.staff-pm-cal-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.staff-pm-cal-filter-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.staff-pm-cal-filter-select {
  min-width: 10rem;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.4rem 0.65rem;
  min-height: 2.25rem;
}

.staff-pm-cal-collapse-btn {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.staff-pm-cal-collapse-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.staff-pm-cal-body[hidden] {
  display: none !important;
}

.staff-pm-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.staff-pm-cal-weekday {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 900;
  color: #64748b;
  padding: 0.2rem 0;
}

.staff-pm-cal-weekday--sun { color: #ef4444; }
.staff-pm-cal-weekday--sat { color: #3b82f6; }

.staff-pm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.staff-pm-cal-cell-empty {
  min-height: 2.5rem;
}

.staff-pm-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 4.25rem;
  padding: 0.3rem 0.2rem 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
  box-sizing: border-box;
}

.staff-pm-cal-cell:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.staff-pm-cal-cell--today {
  background: #fffbeb;
  border-color: #fbbf24;
}

.staff-pm-cal-cell--today:hover {
  background: #fef3c7;
}

.staff-pm-cal-cell--selected,
.project-calendar-day.is-selected {
  border-color: #0ea5e9;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.22);
}

.staff-pm-cal-cell--today.staff-pm-cal-cell--selected,
.project-calendar-day.is-selected.staff-pm-cal-cell--today {
  background: #fffbeb;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.28);
}

.staff-pm-cal-cell--selected:not(.staff-pm-cal-cell--today) {
  background: #e0f2fe;
  color: #0c4a6e;
}

.staff-pm-cal-cell-daynum {
  font-size: 0.875rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.staff-pm-cal-cell-daynum--weekday { color: #334155; }
.staff-pm-cal-cell-daynum--sun { color: #ef4444; }
.staff-pm-cal-cell-daynum--sat { color: #3b82f6; }

.staff-pm-cal-cell-badges {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.staff-pm-cal-badge--today {
  font-size: 0.5rem;
  font-weight: 900;
  color: #b45309;
}

.staff-pm-cal-has-dot {
  display: none;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #0ea5e9;
  margin: 0.1rem auto 0;
}

.staff-pm-cal-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.08rem;
  margin-top: 0.1rem;
  min-width: 0;
}

.staff-pm-cal-item-btn {
  display: block;
  width: 100%;
  font-size: 0.625rem;
  font-weight: 800;
  color: #334155;
  line-height: 1.2;
  padding: 0.05rem 0.1rem;
  border: none;
  background: transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.staff-pm-cal-item-btn:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #0c4a6e;
}

.staff-pm-cal-item-btn--event {
    border-left-color: #8b5cf6;
    color: #5b21b6;
}

.staff-pm-cal-more {
  font-size: 0.625rem;
  font-weight: 900;
  color: #0369a1;
  padding: 0 0.1rem;
}

.staff-pm-date-section,
#projectSelectedDateEvents {
  margin-bottom: 1rem;
  padding: 0.85rem 0.9rem 1rem;
  background: #fff;
  border: 2px solid #e0f2fe;
  border-radius: 1rem;
  scroll-margin-top: 120px;
}

.staff-pm-date-section--flash {
  animation: staff-pm-date-flash 1.4s ease;
}

@keyframes staff-pm-date-flash {
  0%, 100% { box-shadow: none; border-color: #e0f2fe; }
  25% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35); border-color: #0ea5e9; }
  60% { box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); }
}

.staff-pm-date-section-heading {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.staff-pm-date-empty {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

.staff-pm-date-project-group {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.staff-pm-date-project-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.staff-pm-date-project-name {
  font-size: 0.9375rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 0.4rem;
  padding-left: 0.45rem;
  border-left: 3px solid #94a3b8;
}

.staff-pm-date-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.staff-pm-date-item {
  margin: 0;
}

.staff-pm-date-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.staff-pm-date-item-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.schedule-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 3.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.schedule-type-badge.is-schedule {
  color: #c75e00;
  background: #fff1df;
  border: 1px solid #f3c38a;
}

.schedule-type-badge.is-event {
  color: #6d47d9;
  background: #f1ebff;
  border: 1px solid #c8b6ff;
}

.schedule-type-badge.is-challenge {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.staff-pm-date-item-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.project-selected-date-item-title {
  cursor: pointer;
}

.project-selected-date-item-title:hover .staff-pm-date-item-title-text {
  text-decoration: underline;
}

.project-selected-date-item-title:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.staff-pm-date-item-btn--flash,
.staff-project-upcoming-btn--flash,
.staff-project-detail-event-btn--flash,
[data-pm-focus-target].staff-pm-focus-flash {
  animation: staff-pm-item-flash 1.6s ease;
}

@keyframes staff-pm-item-flash {
  0%, 100% { box-shadow: none; }
  20% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.45); background: #fff7ed; }
  55% { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25); }
}

.staff-pm-date-item-time {
  font-variant-numeric: tabular-nums;
  color: #0369a1;
  flex-shrink: 0;
}

.staff-pm-date-item-icon {
  flex-shrink: 0;
}

.staff-pm-date-item-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-pm-date-item-project {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  overflow-wrap: anywhere;
}

.staff-pm-open-from-detail-btn {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.staff-pm-open-from-detail-btn:hover {
  background: #bae6fd;
}

@media (max-width: 767px) {
  .staff-pm-date-item-row {
    align-items: stretch;
  }
  .staff-pm-date-item-btn {
    flex-basis: 100%;
  }
  .staff-pm-date-item-project {
    margin-left: auto;
  }
  .schedule-type-badge {
    min-width: 3rem;
    padding-inline: 0.5rem;
    font-size: 0.6875rem;
  }
  .staff-pm-cal-cell {
    min-height: 3.25rem;
    padding: 0.2rem 0.1rem;
  }
  .staff-pm-cal-item-btn {
    font-size: 0.55rem;
  }
  .staff-pm-cal-more {
    font-size: 0.55rem;
  }
  .staff-pm-cal-has-dot.is-visible {
    display: block;
  }
  .staff-pm-cal-events--mobile-sparse .staff-pm-cal-item-btn:nth-child(n+2) {
    display: none;
  }
}

@media (min-width: 768px) {
  .staff-pm-cal-cell {
    min-height: 5.5rem;
    padding: 0.35rem 0.3rem;
  }
  .staff-pm-cal-cell-daynum {
    font-size: 0.9375rem;
  }
  .staff-pm-cal-item-btn {
    font-size: 0.6875rem;
  }
  .staff-pm-cal-more {
    font-size: 0.6875rem;
  }
}



/* イベント関連予定（スタッフ） */

/* Challenge child card styles used by c134aaa DOM */
.child-presentation-empty {
  margin: 0;
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #78716c;
  text-align: center;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 0.85rem;
}
.child-presentation-empty--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}
.child-presentation-grid,
.child-presentation-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  justify-content: center;
  box-sizing: border-box;
  align-items: stretch;
}
@media (min-width: 640px) {
  .child-presentation-grid,
  .child-presentation-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    justify-content: center;
  }
}
.child-presentation-card, .parent-presentation-card {
  background:#fff; border:1px solid #fde68a; border-radius:1rem; padding:0.9rem 1rem; margin-bottom:0.75rem;
}
.child-presentation-card--compact {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.child-presentation-card--compact:hover,
.child-presentation-card--compact:focus-visible {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  outline: none;
}
@media (min-width: 640px) {
  .child-presentation-grid > .child-presentation-card--compact,
  .child-presentation-list-grid > .child-presentation-card--compact {
    max-width: 340px;
  }
}
.child-presentation-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.child-presentation-label, .parent-presentation-label { font-size:0.7rem; font-weight:900; color:#b45309; margin:0 0 0.35rem; }
.child-presentation-event, .parent-presentation-event { font-size:0.75rem; font-weight:700; color:#64748b; margin:0 0 0.25rem; word-break:break-word; }
.child-presentation-title, .parent-presentation-title {
  font-size:1rem; font-weight:900; color:#0f172a; margin:0 0 0.4rem; word-break:break-word; overflow-wrap:anywhere;
}
.child-presentation-card--compact .child-presentation-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}
.child-presentation-desc, .parent-presentation-desc {
  font-size:0.82rem; font-weight:600; color:#475569; margin:0 0 0.45rem; line-height:1.45; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.child-presentation-card--compact .child-presentation-desc {
  -webkit-line-clamp: 3;
  min-height: 3.6em;
}
.child-presentation-meta, .parent-presentation-meta { font-size:0.78rem; font-weight:700; color:#334155; margin:0.15rem 0; word-break:break-word; }
.child-presentation-meta span, .parent-presentation-meta span { color:#64748b; }
.child-presentation-reward-detail,
.parent-presentation-reward-detail {
  margin: 0.55rem 0;
  font-size: 0.82rem;
  color: #334155;
}
.child-presentation-reward-detail p,
.parent-presentation-reward-detail p { margin: 0.2rem 0; }
.child-presentation-reward-detail ul,
.parent-presentation-reward-detail ul {
  display: grid;
  margin: 0.25rem 0 0;
  padding: 0;
  gap: 0.25rem;
  list-style: none;
}
.child-presentation-reward-detail li,
.parent-presentation-reward-detail li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.child-presentation-den, .parent-presentation-den { margin:0.4rem 0; }
.child-presentation-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0.35rem 0 0.15rem;
}
.child-presentation-applicant-count {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 850;
}
.challenge-challengers-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0.1rem;
  min-height: 2rem;
}
.challenge-challengers-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  color: #92400e;
}
.challenge-challengers-avatars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.challenge-challenger-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #fcd34d;
  background: #fff7ed;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.challenge-challenger-avatar--static {
  cursor: default;
  pointer-events: none;
}
.challenge-challenger-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.challenge-challenger-avatar-emoji {
  font-size: 0.95rem;
  line-height: 1;
}
.challenge-challenger-avatar-initial {
  font-size: 0.72rem;
  font-weight: 900;
  color: #9a3412;
  line-height: 1;
}
.challenge-challenger-more {
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.challenge-challenger-name-bubble {
  position: fixed;
  z-index: 120;
  max-width: min(70vw, 14rem);
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}
.challenge-challengers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.challenge-challengers-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid #f1f5f9;
}
.challenge-challengers-list-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 900;
  color: #0f172a;
  font-size: 0.9rem;
}
.challenge-challengers-list-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.parent-presentation-challengers {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: #92400e;
}
.child-presentation-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.55rem;
}
.child-presentation-detail-btn {
  width: 100%;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
  font-size: 0.78rem;
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #fde68a;
}
.child-presentation-apply-btn {
  width:100%; margin-top:0; background:#f97316; color:#fff; font-weight:900; font-size:0.9rem;
  border-radius:0.85rem; padding:0.7rem 1rem; border:none;
}
.child-presentation-apply-btn:disabled,
.child-presentation-apply-btn.is-applied {
  background: #cbd5e1;
  color: #475569;
  cursor: not-allowed;
  opacity: 1;
}
.child-presentation-applied { display:inline-block; margin-top:0.4rem; font-weight:900; color:#0369a1; background:#e0f2fe; border-radius:999px; padding:0.4rem 0.85rem; font-size:0.8rem; }
.child-presentation-status-chip {
  display:inline-block; margin:0 0 0.4rem; font-size:0.7rem; font-weight:900; color:#92400e;
  background:#fffbeb; border:1px solid #fde68a; border-radius:999px; padding:0.2rem 0.55rem;
}
.child-presentation-desc--full {
  display:block; -webkit-line-clamp:unset; overflow:visible; min-height: 0;
}
.child-presentation-card--detail { margin-bottom: 0; }
.child-my-challenges-section { margin-top:0.25rem; }
.child-my-challenges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .child-my-challenges-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
.child-my-challenges-card {
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  height: 100%;
  background:#fff; border:1px solid #bfdbfe; border-radius:1rem; padding:0.85rem 0.9rem;
  cursor: pointer;
  text-align: left;
}
.child-my-challenges-card:focus-visible {
  outline: 2px solid #38bdf8; outline-offset: 2px;
}
.child-my-challenges-card--missing { border-color:#cbd5e1; background:#f8fafc; cursor: default; }
.child-my-challenges-card-top { margin-bottom: 0.35rem; }
.child-my-challenges-card-mid { flex: 1 1 auto; min-height: 0; }
.child-my-challenges-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.35rem;
}
.child-my-challenges-foot-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}
.child-my-challenges-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  flex: 0 0 auto;
  max-width: 11.5rem;
}
.child-my-challenges-title {
  font-size:0.95rem; font-weight:900; color:#0f172a; margin:0 0 0.25rem;
  word-break:break-word; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.child-my-challenges-project {
  margin:0; font-size:0.75rem; font-weight:800; color:#64748b;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.child-my-challenges-desc {
  font-size:0.8rem; font-weight:600; color:#475569; margin:0 0 0.35rem; line-height:1.4;
  word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.child-my-challenges-deadline {
  margin:0; font-size:0.75rem; font-weight:800; color:#b45309;
}
.child-my-challenges-meta { font-size:0.78rem; font-weight:700; color:#334155; margin:0.15rem 0; word-break:break-word; }
.child-my-challenges-meta span { color:#64748b; }
.child-my-challenges-status {
  display:inline-block; margin-top:0.15rem; font-size:0.75rem; font-weight:900; color:#1e40af;
  background:#eff6ff; border:1px solid #bfdbfe; border-radius:999px; padding:0.25rem 0.65rem;
}
.child-my-challenges-empty {
  font-size:0.85rem; font-weight:700; color:#64748b; text-align:center; line-height:1.55;
  padding:1rem 0.75rem; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:0.85rem;
}
.child-my-challenges-empty--compact { padding:0.65rem 0.75rem; margin-bottom:0.5rem; }
.child-my-challenges-past-wrap { margin-top:0.85rem; }
.child-my-challenges-past-root { margin-top:0.65rem; }
.child-my-challenges-past-toggle {
  width:100%; font-weight:900; font-size:0.78rem; color:#475569; background:#f1f5f9;
  border:1px solid #cbd5e1; border-radius:0.75rem; padding:0.55rem 0.75rem;
}
.child-my-challenges-report-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; min-width:7.5rem; white-space:nowrap;
  font-weight:900; font-size:0.75rem;
  color:#fff; background:#0ea5e9; border:none; border-radius:0.7rem; padding:0.55rem 0.7rem;
}
.child-my-challenges-report-btn:active { background:#0284c7; }
.child-my-challenges-link-btn {
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:900; font-size:0.7rem; color:#c2410c; background:#fff7ed;
  border:1px solid #fdba74; border-radius:0.65rem; padding:0.4rem 0.55rem; white-space:nowrap;
}
.child-my-challenges-hide-btn {
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:900; font-size:0.72rem; color:#475569; background:#f8fafc;
  border:1px solid #cbd5e1; border-radius:0.65rem; padding:0.45rem 0.65rem; white-space:nowrap;
}
.child-my-challenges-waiting {
  margin:0; font-size:0.75rem; font-weight:800; color:#92400e;
  background:#fffbeb; border:1px solid #fde68a; border-radius:0.65rem; padding:0.4rem 0.55rem;
}
.child-my-challenges-state-note {
  margin:0; font-size:0.72rem; font-weight:900; color:#c2410c;
}
.child-my-challenges-done-block { margin:0; }
.child-my-challenges-done-title {
  margin:0 0 0.1rem; font-size:0.82rem; font-weight:900; color:#047857;
}
.child-my-challenges-done-den {
  margin:0; font-size:0.78rem; font-weight:800; color:#065f46;
}
.child-my-challenges-return-box {
  margin-top:0.55rem; background:#fff7ed; border:1px solid #fdba74; border-radius:0.75rem; padding:0.65rem 0.75rem;
}
.child-my-challenges-return-title { margin:0 0 0.25rem; font-size:0.78rem; font-weight:900; color:#c2410c; }
.child-my-challenges-return-reason { margin:0; font-size:0.82rem; font-weight:700; color:#9a3412; white-space:pre-wrap; }
@media (max-width: 639px) {
  .child-my-challenges-card-foot {
    flex-wrap: wrap;
  }
  .child-my-challenges-actions {
    max-width: none;
    width: 100%;
  }
  .child-my-challenges-report-btn,
  .child-my-challenges-hide-btn,
  .child-my-challenges-link-btn {
    width: 100%;
  }
}
.challenge-admin-pending-count {
  display:inline-flex; align-items:center; justify-content:center; min-width:1.25rem; height:1.25rem;
  margin-left:0.25rem; padding:0 0.35rem; border-radius:999px; font-size:0.68rem; font-weight:900;
  color:#fff; background:#ea580c; vertical-align:middle;
}
.staff-challenge-delete-btn {
  font-size:0.625rem; font-weight:900; padding:0.25rem 0.5rem; border-radius:0.5rem;
  color:#9f1239; background:#fff1f2; border:1px solid #fecdd3;
}
.staff-challenge-admin-row--archived {
  border-color:#cbd5e1; background:#f8fafc;
}
.staff-challenge-pending-badge {
  display:inline-block; font-size:0.68rem; font-weight:900; color:#9a3412;
  background:#ffedd5; border:1px solid #fdba74; border-radius:999px; padding:0.15rem 0.5rem;
}
.staff-challenge-applicant-card {
  background:#fff; border:1px solid #e2e8f0; border-radius:0.85rem; padding:0.75rem 0.85rem; margin-bottom:0.65rem;
}
.staff-challenge-app-report {
  margin-top:0.45rem; background:#f8fafc; border:1px solid #e2e8f0; border-radius:0.65rem; padding:0.55rem 0.65rem;
}

/* Challenge admin sort styles */
.challenge-admin-sort-wrap {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.75rem; font-weight:800; color:#78716c;
}
.challenge-admin-sort-label {
  white-space:nowrap;
}
.challenge-admin-sort-select {
  min-width:10.5rem; max-width:100%;
  font-size:0.75rem; font-weight:800; color:#44403c;
  background:#fffbeb; border:1px solid #fcd34d; border-radius:0.65rem;
  padding:0.35rem 0.55rem;
}
@media (max-width: 640px) {
  .challenge-admin-sort-wrap {
    width:100%;
    margin-left:0 !important;
  }
  .challenge-admin-sort-select {
    flex:1 1 auto;
    min-width:0;
  }
}

/* Member management integrated table */
.member-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 11rem;
}

.member-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    font-size: 1.4rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.member-attendance-toggle {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    background: #e2e8f0;
    color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-attendance-toggle.is-present {
    background: #10b981;
    border-color: #059669;
    color: #fff;
}

.member-condition-inputs,
.member-condition-recorded {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.member-condition-unrecorded,
.member-condition-empty {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 0.6rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: #64748b;
    background: #f1f5f9;
}

.member-condition-empty {
    color: #94a3b8;
    background: transparent;
}

.member-condition-temp-input,
.member-condition-time-input {
    border: 2px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #fff;
    font-weight: 900;
    color: #334155;
    text-align: center;
    outline: none;
}

.member-condition-temp-input {
    width: 5.2rem;
    padding: 0.45rem 0.5rem;
}

.member-condition-time-input {
    width: 5.8rem;
    padding: 0.35rem 0.4rem;
}

.member-condition-record-btn {
    border-radius: 0.75rem;
    padding: 0.5rem 0.8rem;
    background: #f97316;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.member-condition-record-btn:hover {
    background: #ea580c;
}

.member-condition-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 900;
    color: #94a3b8;
}

.member-condition-temp {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 2px solid #bbf7d0;
    background: #ecfdf5;
    color: #059669;
    border-radius: 0.75rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.member-condition-recorded--fever .member-condition-temp {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

@media (max-width: 720px) {
    .member-name-cell {
        min-width: 9rem;
    }

    .member-condition-inputs,
    .member-condition-recorded {
        justify-content: flex-start;
    }
}
/* Header child selector: this controls only the child page, not the public board. */
.child-selector-shell {
    position: static;
    display: block;
    width: 0;
    height: 0;
    overflow: visible;
    flex: 0 0 0;
}

.child-selector-button {
    display: none;
    grid-template-columns: auto minmax(8.5rem, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.05rem;
    min-width: 13.5rem;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.48rem 0.7rem;
    border-radius: 1rem;
    border: 2px solid rgba(251, 146, 60, 0.56);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(124, 45, 18, 0.14);
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.child-selector-button:hover,
.child-selector-button:focus-visible {
    border-color: #fb923c;
    box-shadow: 0 10px 22px rgba(124, 45, 18, 0.2), 0 0 0 3px rgba(251, 146, 60, 0.2);
    outline: 0;
    transform: translateY(-1px);
}

.child-selector-button-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.child-selector-button-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.15;
}

.child-selector-label-small {
    font-size: 0.68rem;
    font-weight: 900;
    color: #c2410c;
}

#child-selector-current-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    color: #111827;
}

.child-selector-chevron {
    color: #c2410c;
    font-size: 0.8rem;
}

.child-selector-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.child-selector-popover {
    position: fixed;
    top: 50dvh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 90;
    width: min(34rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    border-radius: 1.25rem;
    border: 2px solid #fed7aa;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
}

.child-selector-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0.2rem 0.65rem;
    color: #111827;
    font-size: 0.95rem;
}

.child-selector-popover-close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.child-selector-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.child-selector-group-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 900;
    color: #64748b;
}

.child-selector-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.child-selector-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.9rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #1f2937;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}

.child-selector-card:hover,
.child-selector-card:focus-visible {
    border-color: #fb923c;
    background: #fff7ed;
    outline: 0;
}

.child-selector-card.is-selected {
    border-color: #f97316;
    background: #ffedd5;
    color: #9a3412;
}

.child-selector-card-emoji {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 1.2rem;
}

.child-selector-card-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-selector-card-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-selector-empty {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 900;
    text-align: center;
}

.child-selector-shell.is-hidden {
    display: none;
}

@media (max-width: 640px) {
    .child-selector-shell {
        width: 0;
        height: 0;
    }

    .child-selector-button {
        display: none;
        width: 0;
        min-width: 0;
    }

    .child-selector-popover {
        width: min(34rem, calc(100vw - 1rem));
    }

    #mode-tab-shell {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #mode-tab-shell > button {
        justify-content: center;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

.activity-page-body {
    background: #fff7ed;
    color: #1e293b;
}

.activity-page-shell {
    width: min(86rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.activity-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    color: #c2410c;
}

.activity-page-date-card,
.activity-page-status,
.activity-work-section,
.activity-side-card {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.activity-page-date-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1rem;
}

.activity-page-date-card label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 900;
    color: #9a3412;
}

.activity-page-date-card input,
.activity-page-date-card select {
    width: min(18rem, 100%);
    border: 2px solid #fed7aa;
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
    font-weight: 900;
    background: #fff;
}

.activity-page-status {
    margin-bottom: 1rem;
}

.activity-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 3fr);
    gap: 1rem;
    align-items: start;
}

.activity-main-list,
.activity-side-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-work-section,
.activity-side-card {
    overflow: hidden;
}

.activity-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ffedd5;
    background: #fff7ed;
}

.activity-section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #9a3412;
}

.activity-section-head span {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #c2410c;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 900;
}

.activity-work-list,
.activity-sushida-list {
    display: flex;
    flex-direction: column;
}

.activity-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-work-row:last-child,
.activity-sushida-row:last-child {
    border-bottom: 0;
}

.activity-work-project {
    margin: 0 0 0.2rem;
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 900;
}

.activity-work-title {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.35;
}

.activity-work-meta {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.activity-work-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 7rem;
}

.activity-work-child,
.activity-work-time {
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 900;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ffedd5;
}

.activity-course-tab {
    border: 1px solid #fed7aa;
    background: #fff;
    color: #9a3412;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 900;
}

.activity-course-tab.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.activity-sushida-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-sushida-rank {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 0.8rem;
    font-weight: 900;
}

.activity-sushida-name {
    margin: 0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.activity-sushida-meta {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
}

.activity-sushida-score {
    color: #334155;
    font-size: 0.85rem;
    font-weight: 900;
    white-space: nowrap;
}

.activity-page-empty,
.activity-page-error {
    padding: 1.25rem;
    text-align: center;
    font-weight: 900;
    color: #64748b;
}

.activity-page-empty--compact {
    padding: 1rem;
    text-align: left;
}

.activity-page-error {
    color: #be123c;
    background: #fff1f2;
}

@media (max-width: 820px) {
    .activity-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-page-layout {
        grid-template-columns: 1fr;
    }

    .activity-work-row {
        grid-template-columns: 1fr;
    }

    .activity-work-side {
        align-items: flex-start;
        min-width: 0;
    }
}

.activity-sushida-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.activity-sushida-child-select {
    display: grid;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 900;
    color: #9a3412;
}

.activity-sushida-child-select select {
    width: 100%;
    border: 2px solid #fed7aa;
    border-radius: 0.9rem;
    padding: 0.7rem 0.85rem;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
}

.activity-sushida-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.activity-sushida-stat {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    border-radius: 0.9rem;
    padding: 0.7rem;
    min-width: 0;
}

.activity-sushida-stat-label {
    display: block;
    color: #9a3412;
    font-size: 0.7rem;
    font-weight: 900;
}

.activity-sushida-stat-value {
    display: block;
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
    word-break: keep-all;
}

@media (max-width: 520px) {
    .activity-sushida-stats {
        grid-template-columns: 1fr;
    }
}

.activity-sushida-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    border: 1px solid #fed7aa;
    background: #fffaf3;
    border-radius: 1rem;
    padding: 0.75rem;
}

.activity-sushida-form label {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 900;
}

.activity-sushida-form input,
.activity-sushida-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid #fed7aa;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 900;
    box-sizing: border-box;
}

.activity-sushida-form-memo,
.activity-sushida-save-button {
    grid-column: 1 / -1;
}

.activity-sushida-save-button {
    border: 0;
    border-radius: 0.85rem;
    background: #f97316;
    color: #fff;
    padding: 0.7rem 0.9rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

.activity-sushida-save-button:hover {
    background: #ea580c;
}

@media (max-width: 520px) {
    .activity-sushida-form {
        grid-template-columns: 1fr;
    }
}

.activity-page-title-card {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}

.activity-page-title-card .activity-page-title {
    margin: 0;
}

/* Unified top navigation: keep child, board, and activity tabs aligned across pages. */
#mode-tab-shell > a,
#mode-tab-shell > span,
#mode-tab-shell > button {
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 640px) {
    #mode-tab-shell > a,
    #mode-tab-shell > span,
    #mode-tab-shell > button {
        justify-content: center;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

#app-version-stale-banner {
    display: none !important;
}
#main-header > .container {
    max-width: 72rem;
}

#main-header .header-control-cluster {
    min-height: 3.55rem;
}

#cloud-status-badge {
    min-height: 2.25rem;
}
/* Unified V1 header refinements */
#main-header > .container {
    max-width: 72rem;
}
#main-header .header-control-cluster {
    min-height: 3.55rem;
}
#cloud-status-badge {
    min-height: 2.25rem;
}
#app-version-stale-banner {
    display: none !important;
}

/* Centered child picker modal */
.child-selector-popover {
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100dvh - 2rem));
    padding: 1rem;
}
.child-selector-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.child-selector-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-height: 3.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.95rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1f2937;
    text-align: left;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}
.child-selector-option:hover,
.child-selector-option:focus-visible {
    border-color: #fb923c;
    background: #fff7ed;
    outline: 0;
}
.child-selector-option.is-selected {
    border-color: #f97316;
    background: #ffedd5;
    color: #9a3412;
}
.child-selector-avatar {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.child-selector-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.child-selector-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-page-shell {
    width: min(72rem, calc(100vw - 2rem));
}
.activity-sushida-child-select select,
.activity-sushida-form select,
.activity-page-date-card select {
    min-height: 3rem;
    font-size: 1rem;
    line-height: 1.25;
    padding: 0.8rem 0.95rem;
}
.activity-sushida-form input {
    min-height: 3rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .child-selector-popover {
        width: min(32rem, calc(100vw - 1rem));
        max-height: calc(100dvh - 1rem);
    }
    .child-selector-picker-list {
        grid-template-columns: 1fr;
    }
    .child-selector-option {
        min-height: 3.9rem;
    }
}

/* Unified top navigation final polish */
#main-header {
    min-height: 5.45rem;
}
#main-header > .container {
    width: min(72rem, calc(100vw - 2rem));
    max-width: 72rem;
    padding-left: 0;
    padding-right: 0;
}
#main-header .header-control-cluster {
    min-height: 3.45rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: rgba(124, 45, 18, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
#mode-tab-shell {
    min-height: 2.75rem;
    align-items: center;
}
#mode-tab-shell > a,
#mode-tab-shell > span,
#mode-tab-shell > button {
    min-height: 2.25rem;
    min-width: 6.25rem;
    justify-content: center;
    border-radius: 0.8rem;
    line-height: 1;
    white-space: nowrap;
}
#cloud-status-badge {
    min-height: 2.25rem;
    min-width: 7.75rem;
    justify-content: center;
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

/* Child picker final layout */
.child-selector-popover {
    width: min(36rem, calc(100vw - 2rem));
    max-height: min(40rem, calc(100dvh - 2rem));
    padding: 1rem;
    border-radius: 1.35rem;
}
.child-selector-popover-head {
    min-height: 2.5rem;
    padding: 0 0.15rem 0.75rem;
}
.child-selector-popover-head strong {
    font-size: 1.05rem;
}
.child-selector-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.child-selector-option {
    min-height: 3.55rem;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
    line-height: 1.2;
}
.child-selector-avatar {
    width: 2.35rem;
    height: 2.35rem;
}
.child-selector-popover-close {
    min-width: 2.25rem;
    min-height: 2.25rem;
}

@media (max-width: 760px) {
    #main-header > .container {
        width: min(100%, calc(100vw - 1rem));
    }
    #main-header .header-control-cluster {
        width: 100%;
        justify-content: center;
    }
    #mode-tab-shell {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #mode-tab-shell > a,
    #mode-tab-shell > span,
    #mode-tab-shell > button {
        min-width: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    #cloud-status-badge,
    #app-version-badge {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .child-selector-popover {
        width: min(32rem, calc(100vw - 1rem));
        max-height: calc(100dvh - 1rem);
    }
    .child-selector-picker-list {
        grid-template-columns: 1fr;
    }
}

/* Unified header: staff access is hidden behind the ODEN logo triple click. */
#btn-admin-view,
#btn-admin-view.hidden {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#mode-tab-shell {
  width: auto;
  flex: 0 0 auto;
}

/* Activity records inside the unified V1 shell. */
.activity-embedded-host {
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
}

.activity-embedded-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 7.5rem);
  border: 0;
  background: transparent;
}

html.activity-embedded body.activity-page-body {
  background: transparent;
  min-height: 0;
}

html.activity-embedded #main-header {
  display: none !important;
}

html.activity-embedded .activity-page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}

html.activity-embedded .activity-page-title-card {
  margin-top: 0;
}

/* Keep the unified V1 tabs visually still when switching views. */
#main-header,
#main-content,
#board-view-section,
#activity-view-section {
  transition: none !important;
}

#main-content {
  width: min(88rem, calc(100vw - 2rem)) !important;
  max-width: 88rem !important;
  padding: 1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#board-view-section {
  width: min(88rem, calc(100vw - 2rem)) !important;
  max-width: 88rem !important;
  margin: 0 auto !important;
  padding: 1rem 0 2.5rem !important;
  min-height: auto !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.activity-embedded-host {
  width: min(88rem, calc(100vw - 2rem)) !important;
  max-width: 88rem !important;
  padding: 1rem 0 2.5rem !important;
  box-sizing: border-box !important;
}

#board-view-section .board-container,
.activity-embedded-frame {
  max-width: 100% !important;
}

/* Board recruitment sorting controls */
.child-presentation-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}
.child-presentation-sort-control select {
  min-height: 2.25rem;
  border: 1px solid #fcd34d;
  border-radius: 0.7rem;
  background: #fffdf5;
  color: #78350f;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.35rem 2rem 0.35rem 0.7rem;
}
@media (max-width: 520px) {
  .child-presentation-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .child-presentation-sort-control {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .child-presentation-sort-control select {
    flex: 1 1 auto;
    max-width: 12rem;
  }
}


/* ボード：プロジェクト別アコーディオン */
.child-board-project-accordion-list {
  display: grid;
  gap: 12px;
  width: 100%;
}
.child-board-project-accordion {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.child-board-project-accordion--recommended {
  border-color: #fb923c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 68%);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.16);
}
.child-board-project-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
  list-style: none;
  user-select: none;
}
.child-board-project-summary::-webkit-details-marker { display: none; }
.child-board-project-summary::after {
  content: '開く';
  flex: 0 0 auto;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 10px;
  color: #c2410c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}
.child-board-project-accordion[open] > .child-board-project-summary::after { content: '閉じる'; }
.child-board-project-summary-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.child-board-project-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}
.child-board-project-panel {
  border-top: 1px solid #e2e8f0;
  padding: 14px;
}
.child-presentation-accordion-root {
  display: block;
  width: 100%;
}
.child-presentation-project-accordion-list .child-presentation-grid {
  margin: 0;
}
@media (max-width: 640px) {
  .child-board-project-summary {
    align-items: flex-start;
    padding: 11px 12px;
  }
  .child-board-project-panel {
    padding: 10px;
  }
}
