/* ==========================================================================
   발달장애인 디지털 출석관리 시스템 - Airbnb Design System Stylesheet
   ========================================================================== */

:root {
  --primary: #FF385C;
  --primary-dark: #E00B41;
  --primary-light: #FFF0F2;
  --ink: #222222;
  --muted-text: #717171;
  --muted-bg: #F7F7F7;
  --surface: #FFFFFF;
  --surface-muted: #F2F2F2;
  --border: #DDDDDD;
  --border-soft: #EBEBEB;
  
  --success: #038026;
  --success-bg: #E6F6E9;
  --warning: #B75F00;
  --warning-bg: #FFF4E5;
  --error: #C13515;
  --error-bg: #FFF0ED;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(255, 56, 92, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--muted-bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   Airbnb Style Base Components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.4);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background-color: #FAFAFA;
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted-text);
}

.btn-ghost:hover {
  background-color: var(--surface-muted);
  color: var(--ink);
}

.btn-success {
  background-color: var(--success);
  color: #FFFFFF;
}

.btn-success:hover {
  background-color: #02661e;
}

/* ==========================================================================
   Airbnb Community Pill Tabs
   ========================================================================== */

.community-tabs-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: none;
}

.community-tabs-container::-webkit-scrollbar {
  display: none;
}

.community-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  color: var(--muted-text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: var(--shadow-sm);
}

.community-tab-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.community-tab-btn.active {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   참여자 큰 카드 그리드 (발달장애인 맞춤형 큰 터치 영역 & 대형 사진)
   ========================================================================== */

.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

@media (min-width: 768px) {
  .participant-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
  }
}

.participant-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 3px solid transparent;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.participant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(255, 56, 92, 0.18);
  border-color: #FF385C;
}

.participant-card:active {
  transform: scale(0.96);
}

.participant-card.attended {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FDF6 100%);
  border-color: #038026;
  box-shadow: 0 6px 20px rgba(3, 128, 38, 0.15);
}

.participant-card.attended .attended-badge {
  display: flex;
}

/* 대형 사진 / 아바타 프레임 */
.participant-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border: 4px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  font-weight: 800;
  color: #FFFFFF;
  transition: transform 0.25s ease;
}

@media (min-width: 768px) {
  .participant-avatar-wrap {
    width: 175px;
    height: 175px;
    font-size: 64px;
  }
}

.participant-card:hover .participant-avatar-wrap {
  transform: scale(1.04);
}

.participant-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-name-btn {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: #F7F7F7;
  border: 1px solid #EBEBEB;
  width: 100%;
  max-width: 220px;
  transition: all 0.2s ease;
}

.participant-card:hover .participant-name-btn {
  background-color: #FFF0F2;
  color: #FF385C;
  border-color: #FFD0D7;
}

.attended-badge {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--success);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(3, 128, 38, 0.35);
  align-items: center;
  gap: 6px;
  z-index: 10;
}

/* ==========================================================================
   출석 완료 모달 / 팝업 애니메이션 (안전한 숨김/표시)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0) scale(1);
}

.attendance-success-animation {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: popSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popSuccess {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   관리자 사이드바 & 테이블 스타일
   ========================================================================== */

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-nav-item:hover {
  background-color: var(--surface-muted);
  color: var(--ink);
}

.admin-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.admin-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-custom th {
  background-color: #FAFAFA;
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table-custom td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.table-custom tr:hover td {
  background-color: #FAFBFD;
}

/* 커뮤니티 배지 */
.badge-comm {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background-color: #F0F2F5;
  color: #333;
}

/* 상태 배지 */
.badge-status-attend { background-color: var(--success-bg); color: var(--success); }
.badge-status-late { background-color: var(--warning-bg); color: var(--warning); }
.badge-status-absent { background-color: var(--error-bg); color: var(--error); }
.badge-status-cancel { background-color: #EEE; color: #777; }

/* Custom Form Styles */
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background-color: #FFF;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.15);
}

/* Toast 알림 */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #222222;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes slideToast {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile accessibility: large two-column cards, no nested scrolling. */
.mobile-attendance-nav, .mobile-attendance-summary {display:none;}
.mobile-hidden {display:none !important;}
@media (max-width: 767px) {
  #participant-view {padding:12px;gap:12px;}
  .mobile-attendance-nav {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .mobile-main-tab {min-height:58px;border:2px solid #ddd;border-radius:14px;background:#fff;font-size:17px;font-weight:800;color:#333;touch-action:manipulation;}
  .mobile-main-tab.active {background:#222;color:#fff;border-color:#222;}
  .mobile-attendance-summary:not([hidden]) {display:block;}
  .mobile-summary-overall {padding:16px;border-radius:14px;background:#f4f4f4;font-weight:800;font-size:18px;margin-bottom:10px;}
  .mobile-summary-groups {display:grid;grid-template-columns:1fr;gap:10px;}
  .mobile-summary-card {border:1px solid #ddd;border-radius:14px;padding:14px;background:white;}
  .mobile-summary-card-head {display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:16px;}
  .mobile-summary-card-head span {font-size:14px;white-space:nowrap;}
  .mobile-summary-missing-label {font-size:13px;color:#555;margin-top:10px;}
  .mobile-summary-names {font-size:16px;font-weight:700;line-height:1.55;overflow-wrap:anywhere;margin:4px 0 12px;}
  .mobile-summary-jump {min-height:48px;padding:10px 14px;border:1px solid #ccc;border-radius:10px;font-weight:700;width:100%;background:#fff;}
  .mobile-summary-note {font-size:12px;color:#666;margin-top:12px;line-height:1.5;}
  .community-tabs-container {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;}
  .community-tab-btn {border-radius:14px;min-height:62px;padding:10px;justify-content:center;flex-wrap:wrap;gap:6px;font-size:17px;touch-action:manipulation;}
  .participant-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;max-height:none;}
  .participant-card {min-width:0;min-height:185px;padding:14px 7px;touch-action:manipulation;cursor:pointer;}
  .participant-avatar-wrap {width:96px;height:96px;max-width:100%;}
  .participant-name-btn {min-height:44px;white-space:normal;overflow-wrap:anywhere;}
}

/* PC 출석 화면: 별도 조작 없이 선택 커뮤니티 미출석 이름 표시 */
.desktop-missing-summary { display: none; }
@media (min-width: 768px) {
  .desktop-missing-summary { display: block; padding: 14px 18px; background: #fff7f8; border: 1px solid #f6d8df; border-radius: 16px; }
  .desktop-missing-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #292929; }
  .desktop-missing-header strong { font-size: 15px; font-weight: 800; }
  .desktop-missing-count { background: #fff; border: 1px solid #f4cbd4; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; color: #a52342; }
  .desktop-missing-names { font-size: 14px; line-height: 1.8; margin-top: 7px; font-weight: 650; color: #333; overflow-wrap: anywhere; }
  .desktop-missing-note { font-size: 11px; color: #777; margin-top: 4px; }
}

/* 관리자 표의 상태와 관리 버튼을 일정한 높이로 정렬 */
.admin-table-actions {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:230px}
.admin-table-actions .btn {white-space:nowrap;flex-shrink:0}
/* 출석 본인 확인 - 넓은 터치 영역과 명확한 색 대비 */
.identity-confirm-sheet {max-width:430px;width:calc(100% - 32px)}
.identity-avatar {display:flex;justify-content:center;margin:8px auto}
.identity-avatar .participant-avatar-wrap {width:154px;height:154px;max-width:100%;border-radius:22px;overflow:hidden}
.identity-actions {display:grid;grid-template-columns:1fr;gap:12px}
.identity-yes,.identity-no {min-height:78px;border-radius:18px;font-size:clamp(21px,5vw,27px);font-weight:900;color:#fff;touch-action:manipulation}
.identity-yes {background:#087c2c}.identity-no {background:#c52424}
.identity-yes:focus-visible,.identity-no:focus-visible {outline:4px solid #1d4ed8;outline-offset:3px}

/* 개인별 요일 출석률: 짧고 읽기 쉬운 5개 가로 막대 */
.weekday-rate-chart { display:flex; flex-direction:column; gap:14px; padding:14px 2px 8px; }
.weekday-rate-row { display:grid; grid-template-columns:28px minmax(0,1fr) 72px; gap:12px; align-items:center; }
.weekday-rate-day { font-size:15px; font-weight:800; color:#30353e; }
.weekday-rate-track { height:22px; border-radius:999px; background:#edf0f3; overflow:hidden; }
.weekday-rate-fill { height:100%; background:#17a85b; border-radius:999px; transition:width .2s ease; }
.weekday-rate-value { font-size:15px; font-weight:800; color:#176d41; text-align:right; font-variant-numeric:tabular-nums; }
@media(max-width:480px){.weekday-rate-row{gap:8px;grid-template-columns:24px minmax(0,1fr) 62px}.weekday-rate-value{font-size:13px}}

/* 사진 위치 조정: 확대 시 가로·세로 translate가 정확히 반영되도록 통일 */
.participant-avatar-img,
#part-photo-preview img,
.identity-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  max-width: none;
  max-height: none;
}
#part-photo-preview { position: relative; overflow: hidden; }

/* === 접근성: 커뮤니티별 사용자 지정 색상 및 고대비 전환 === */
.participant-contrast-toggle {
  display:flex;align-items:center;justify-content:center;gap:10px;
  align-self:flex-end;min-width:174px;min-height:56px;
  background:#111;color:#fff;border:3px solid #111;border-radius:14px;
  padding:10px 16px;font-weight:800;font-size:18px;line-height:1.2;
  cursor:pointer;touch-action:manipulation;
}
.participant-contrast-toggle:focus-visible {outline:4px solid #E7B700;outline-offset:3px}
.attendance-high-contrast .participant-contrast-toggle {background:#FFE500;color:#111}
#participant-view .community-tab-btn {
 background:var(--comm-normal-bg,#F0F2F5)!important;
 color:var(--comm-normal-text,#222)!important;
 border:2px solid var(--comm-normal-text,#222)!important;
 box-shadow:none;
 font-weight:800;
}
#participant-view .community-tab-btn.active {border-width:4px!important;outline:2px solid #111;outline-offset:2px}
#participant-view .community-count-pill {background:rgba(255,255,255,.75);color:#111;font-weight:800}
.attendance-high-contrast #participant-view .community-tab-btn {
 background:var(--comm-high-bg,#111)!important;
 color:var(--comm-high-text,#fff)!important;
 border-color:var(--comm-high-text,#fff)!important;
 font-size:clamp(18px,2vw,22px);
}
.attendance-high-contrast #participant-view .community-tab-btn.active {outline:4px solid #111;outline-offset:2px}
.attendance-high-contrast #participant-view .community-count-pill {background:#fff;color:#111}
.community-color-field {display:flex;flex-direction:column;gap:5px;color:#333;font-size:12px;font-weight:700}
.community-color-field input[type=color] {width:100%;height:45px;padding:3px;border:2px solid #a1a1aa;border-radius:9px;background:white;cursor:pointer}
.community-color-preview {margin-top:5px;border-radius:12px;min-height:65px;display:flex;align-items:center;justify-content:center;padding:8px;font-size:18px;font-weight:900;border:2px solid #242424}
@media(max-width:767px){.participant-contrast-toggle{min-width:160px;font-size:18px;min-height:56px}}

/* 관리자 일괄 편집 */
.bulk-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px;padding:12px;background:#eef3fa;border:1px solid #ced9ec;border-radius:12px}.bulk-toolbar span{font-size:12px;color:#445}.bulk-open-btn{border:2px solid #111;background:#111;color:#fff;font-weight:800;border-radius:10px;padding:12px 16px;cursor:pointer}.bulk-mask{position:fixed;inset:0;z-index:200000;background:#0009;display:flex;align-items:center;justify-content:center;padding:12px}.bulk-dialog{background:#fff;color:#222;width:min(1250px,100%);max-height:94vh;overflow:auto;border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:12px}.bulk-dialog h2{font-size:21px;font-weight:850}.bulk-dialog>p{font-size:13px;color:#555}.bulk-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.bulk-actions button,.bulk-table button{border:1px solid #555;background:#fff;color:#111;padding:9px 12px;border-radius:8px;font-weight:700;cursor:pointer}.bulk-actions button:last-child:not(:disabled){background:#101010;color:#fff}.bulk-actions button:disabled{opacity:.35}.bulk-actions input[type=file]{font-size:13px;max-width:260px}.bulk-message{background:#fff7da;padding:12px;border-radius:8px;font-size:14px;min-height:42px;overflow-wrap:anywhere}.bulk-table-wrap{overflow:auto;min-height:150px;max-height:55vh;border:1px solid #ddd}.bulk-table{border-collapse:collapse;min-width:max-content;width:100%;font-size:13px}.bulk-table th{background:#ebeff4;position:sticky;top:0;z-index:1;white-space:nowrap;text-align:left}.bulk-table th,.bulk-table td{border:1px solid #ddd;padding:7px}.bulk-table input{width:145px;padding:7px;border:1px solid #aaa;border-radius:5px;background:white;color:#111}.bulk-table input[readonly]{background:#e9e9e9;color:#555}

/* 폭 조정: 관리 버튼을 작게, 프로그램과 영역명은 넓게 */
.compact-admin-programs,.compact-admin-areas,.compact-admin-attendances{width:100%;table-layout:auto}
.compact-admin-programs th,.compact-admin-programs td,.compact-admin-areas th,.compact-admin-areas td,.compact-admin-attendances th,.compact-admin-attendances td{padding:10px 9px}
.admin-table-actions-tight{min-width:0!important;gap:4px!important;flex-wrap:nowrap!important}
.admin-table-actions-tight .btn{padding:5px 6px!important;font-size:11px!important}
.compact-admin-programs .actions-narrow,.compact-admin-programs td:last-child,.compact-admin-areas td:last-child{width:160px;min-width:145px}
.compact-admin-programs .status-narrow,.compact-admin-attendances .status-narrow{width:105px}
.compact-admin-attendances .date-narrow{width:108px;min-width:108px}
.compact-admin-attendances .person-wide{min-width:110px}
.compact-admin-attendances .community-wide{min-width:120px}
.compact-admin-attendances .program-wide{min-width:240px;width:35%}
.compact-admin-attendances .actions-narrow{width:105px;min-width:100px}
.staff-assignment-chip{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;margin:0 0 6px;padding:6px;text-align:center}
.staff-assignment-title{font-size:11px;font-weight:700;line-height:1.4}
.staff-assignment-time{font-size:11px;color:#526173;margin-top:4px;line-height:1.4;font-weight:650}
.project-roster-badge{font-size:12px;color:#784400;background:#fff4d8;border:1px solid #e7c46b;border-radius:8px;padding:5px 7px;margin-bottom:8px;font-weight:700}
.project-panel{background:white;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin-bottom:18px}
.project-panel h3{font-size:18px;font-weight:800;margin-bottom:10px}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}
.project-grid label{display:flex;flex-direction:column;font-weight:700;font-size:12px;gap:4px}
.project-grid input,.project-grid select{border:1px solid #d1d5db;border-radius:8px;padding:9px;background:#fff;min-height:40px;width:100%;font-size:14px}
.project-person-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:5px;max-height:260px;overflow-y:auto;border:1px solid #eee;border-radius:10px;padding:10px}
.project-person-list label{display:flex;align-items:center;gap:8px;font-size:13px;padding:5px}
.project-status-table{width:100%;border-collapse:collapse}
.project-status-table td,.project-status-table th{border-bottom:1px solid #eee;padding:8px;text-align:left}
.project-status-table select{border:1px solid #ccc;border-radius:8px;padding:7px}
.project-notice{font-size:13px;color:#865300;background:#fff6df;padding:10px;border-radius:10px;margin:10px 0}
@media print{.project-panel button{display:none}}

/* 프로젝트 참여자 명단: 검색/커뮤니티 필터/선택 목록 */
.project-roster-ui { margin-top: 14px; border: 1px solid #e1e5eb; border-radius: 16px; background: #fafbfd; padding: 14px; }
.project-roster-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.project-roster-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.project-roster-filter { border: 1px solid #d8dce4; border-radius: 999px; background: #fff; color: #414958; font-size: 13px; font-weight: 700; padding: 8px 12px; min-height: 37px; }
.project-roster-filter.active { background: #222; color: white; border-color: #222; }
.project-roster-searchline { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.project-roster-search { flex: 1 1 230px; min-width: 0; border: 1px solid #cbd1d9; border-radius: 10px; padding: 10px 12px; min-height: 43px; background: white; }
.project-roster-searchline .btn { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.project-roster-columns { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(220px,1fr); gap: 14px; }
.project-roster-available,.project-roster-picked { min-width: 0; border: 1px solid #e1e5eb; border-radius: 12px; background: #fff; overflow: hidden; }
.project-roster-section-head { padding: 13px 14px; background: #f4f6f9; border-bottom: 1px solid #e1e5eb; font-size: 14px; font-weight: 800; }
.project-panel .project-person-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: 355px; overflow-y: auto; padding: 12px; border: none; border-radius: 0; }
.project-panel .project-person-list .project-roster-person { display: flex; align-items: center; gap: 10px; border: 1px solid #e7eaf0; border-radius: 10px; padding: 10px; font-size: 13px; cursor: pointer; min-width: 0; }
.project-roster-person.chosen { border-color: #f59aab!important; background: #fff3f6; }
.project-roster-person input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #ff385c; }
.project-roster-person-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.project-roster-person-info strong { font-size: 14px; line-height: 1.35; word-break: keep-all; }
.project-roster-person-info small { font-size: 11px; color: #667085; line-height: 1.25; }
.project-roster-picked-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; max-height: 355px; overflow-y: auto; }
.project-roster-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f3f5f8; padding: 7px 9px 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.project-roster-chip span { min-width: 0; overflow-wrap: anywhere; }
.project-roster-chip-remove { border: none; border-radius: 7px; background: #fff; font-weight: 900; font-size: 19px; width: 29px; height: 29px; flex: 0 0 29px; }
.project-roster-empty { color: #7b8491; font-size: 13px; padding: 18px 10px; }
@media (max-width: 760px) { .project-roster-columns { grid-template-columns: 1fr; }.project-panel .project-person-list {grid-template-columns: 1fr;} .project-roster-picked-list {max-height: 180px;} }

/* 프로젝트 등록 버튼을 입력폼 아래 오른쪽 끝으로 정렬 */
.project-register-actions{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-top:12px;}
.project-register-actions .btn{min-height:42px;padding:9px 20px;}

/* 이용인용 프로젝트 출석: 넓은 선택 버튼과 본인 확인 */
.project-kiosk{background:white;border:1px solid #ddd;border-radius:18px;padding:20px;margin:4px 0}
.project-kiosk-header h3{font-size:21px;font-weight:850;color:#171717}
.project-kiosk-header p{font-size:13px;color:#5c626d;margin:7px 0 12px}
.project-kiosk-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}
.project-kiosk-tab{border:1px solid #b6bdc9;background:#f9fafb;border-radius:11px;padding:13px 16px;font-size:15px;font-weight:750}
.project-kiosk-tab.active{background:#1f2937;color:white}
.project-kiosk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.project-kiosk-person{border:2px solid #b8c1cf;background:white;border-radius:14px;padding:18px 10px;min-height:72px;font-size:19px;font-weight:850;color:#202020}
.project-kiosk-person.attended{border-color:#15803d;background:#ecfdf3;color:#166534;opacity:1}
.project-kiosk-message{margin-top:12px;font-size:14px;font-weight:700;color:#135b35}.project-kiosk-message.error{color:#b91c1c}
.project-confirm-backdrop{position:fixed;inset:0;z-index:999999;background:#000a;display:flex;justify-content:center;align-items:center;padding:16px}
.project-confirm-card{background:white;border-radius:22px;max-width:450px;width:100%;padding:28px;text-align:center;box-shadow:0 8px 32px #0005}
.project-confirm-card h3{font-size:27px;font-weight:900}
.project-confirm-avatar{background:#f56565;color:white;font-size:80px;font-weight:900;width:150px;height:150px;border-radius:50%;margin:18px auto;display:flex;justify-content:center;align-items:center;overflow:hidden}
.project-confirm-avatar img{width:100%;height:100%;object-fit:cover}
.project-confirm-name{font-size:27px;font-weight:900}.project-confirm-project{font-size:15px;margin-top:8px;color:#4b5563}
.project-confirm-actions{display:grid;gap:12px;margin-top:22px}.project-confirm-actions button{font-size:21px;font-weight:850;border-radius:15px;min-height:72px;color:white}
.project-confirm-yes{background:#087d30}.project-confirm-no{background:#be2525}
@media(max-width:560px){.project-kiosk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-kiosk{padding:14px}.project-kiosk-person{font-size:17px}}

/* 이용인 카드의 프로젝트명 안내가 길어져도 읽기 쉽게 정렬 */
.project-roster-badge {line-height:1.5;overflow-wrap:anywhere;text-align:left;}

/* 오늘의 프로젝트 버튼을 커뮤니티 바로 아래 표시. 전환은 로컬 상태 변경만 사용 */
.project-community-nav {margin-top:15px;padding-top:12px;border-top:1px solid #e5e7eb;}
.project-community-label {font-size:13px;font-weight:750;color:#52525b;margin-bottom:9px;}
.project-community-buttons {display:flex;flex-wrap:wrap;gap:10px;}
.project-community-button {border:2px solid #475569;border-radius:999px;background:#f1f5f9;color:#1e293b;padding:12px 22px;min-height:52px;font-size:16px;font-weight:800;}
.project-community-button.active {background:#1e293b;color:white;border-color:#1e293b;box-shadow:0 0 0 3px #cbd5e1;}
#participant-view.project-selected-view > section:not(:first-child):not(#project-participant-kiosk) {display:none !important;}
#participant-view.project-selected-view .desktop-missing-summary {display:none !important;}
.project-kiosk {margin:0;padding:22px;}
.project-kiosk-count {font-size:14px;font-weight:700;color:#666;margin:12px 0;}
.project-kiosk-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px;}
.project-photo-card {min-height:270px;width:100%;padding:20px 12px;appearance:none;text-align:center;}
.project-photo-card:disabled {cursor:default;opacity:1;}
.project-photo-card:disabled:hover {transform:none;}
.project-photo-holder {display:flex;justify-content:center;}
.project-photo-card .participant-name-btn {display:block;font-size:22px;}
.project-absence-label {color:#b91c1c;font-size:13px;font-weight:750;}
.project-confirm-avatar .participant-avatar-wrap {width:154px;height:154px;}
@media(max-width:767px){.project-kiosk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-photo-card{min-height:200px;padding:12px 7px}.project-photo-card .participant-avatar-wrap{width:96px;height:96px}.project-photo-card .participant-name-btn{font-size:17px}.project-community-button{font-size:15px;padding:10px 14px}}
