@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

@font-face {
  /* 출처: 카페24, 카페24 아네모네 */
  font-family: 'Cafe24 Ohsquare Logo';
  src: url('../fonts/Cafe24Ohsquare-logo.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --green-50: #f5faf6;
  --green-100: #eaf5ed;
  --green-200: #d5e9da;
  --green-300: #b8d8c1;
  --green-400: #8fbd9c;
  --green-500: #609771;
  --green-600: #3c7654;
  --green-700: #2f6044;
  --green-800: #244b36;
  --green-900: #183426;
  --ink: #171a18;
  --ink-soft: #6d7871;
  --line: #e2e8e4;
  --bg: #fbfcf9;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(24, 52, 38, 0.04), 0 10px 30px rgba(24, 52, 38, 0.06);
  --shadow-lg: 0 18px 44px rgba(24, 52, 38, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 5% 2%, rgba(234, 245, 237, .9) 0%, transparent 30%),
    radial-gradient(circle at 94% 0%, rgba(213, 233, 218, .62) 0%, transparent 28%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 20px 8px;
  max-width: 700px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 4.5px;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--green-800);
  letter-spacing: -0.055em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Hero */
.hero {
  text-align: center;
  padding: 36px 8px 12px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.32;
}
.hero h1 span { color: var(--green-600); }
.hero .eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 22px;
}
.card + .card { margin-top: 18px; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin-left: 6px;
}

input[type="text"], input[type="password"], input[type="date"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fbfcfb;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(145, 171, 151, .2);
}
input::placeholder { color: #a5aea8; }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 시간 단위 선택 (개설 페이지) - 가로 카드 3개 */
.choice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.choice-item {
  position: relative;
  display: flex;
  padding: 12px 12px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfb;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.choice-item:hover { border-color: var(--green-300); }
.choice-item:has(input:checked) {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(96, 151, 113, .14);
}
.choice-item:has(input:focus-visible) {
  outline: 3px solid rgba(96, 151, 113, .34);
  outline-offset: 2px;
}
.choice-item input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-item::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s, transform .16s;
}
.choice-item:has(input:checked)::after {
  opacity: 1;
  transform: scale(1);
}
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 14px;
}
.choice-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.choice-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.sub-options {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--green-300);
  border-radius: var(--radius-md);
  background: var(--green-50);
}
.sub-options-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--green-700);
  font-weight: 600;
}

.block-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.block-check {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.block-check:hover { border-color: var(--green-300); }
.block-check:has(input:checked) {
  border-color: var(--green-500);
  background: var(--green-100);
}
.block-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--green-600);
  cursor: pointer;
}
.block-check .bc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.block-check small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
}

select {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(145, 171, 151, .2);
}

.time-range-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.time-select-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.time-select-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0;
}
.time-select-group select { width: 100%; }
.time-range-sep {
  padding-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}
.time-range-row.compact {
  align-items: center;
  flex: 1;
}
.time-range-row.compact .time-range-sep { padding-bottom: 0; }
.time-range-row.compact select { flex: 1; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  width: 100%;
  color: white;
  background: var(--green-600);
  box-shadow: 0 7px 16px rgba(60, 118, 84, .2);
}
.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 9px 20px rgba(60, 118, 84, .25);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.btn-secondary:hover { background: var(--green-100); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13.5px;
}
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible,
.tab:focus-visible,
.cal-nav-btn:focus-visible,
.cal-dot:focus-visible,
.cal-cell.selectable:focus-visible {
  outline: 3px solid rgba(96, 151, 113, .34);
  outline-offset: 2px;
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.share-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}
.share-bar .url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--green-800);
  font-weight: 600;
}
.share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.btn-kakao {
  border-color: #efd800;
  background: #fee500;
  color: #191919;
}
.btn-kakao:hover {
  border-color: #e6cf00;
  background: #f5dc00;
  color: #191919;
}

/* Event header */
.event-head { margin-top: 8px; }
.event-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}
.event-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.event-head .range {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
}
.event-head .range-sub {
  color: var(--green-700);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 3px;
}
.expiry-notice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff8e7;
  color: #765b22;
  font-size: 12.5px;
  font-weight: 600;
}
.badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-manager {
  background: var(--green-700);
  color: var(--white);
}


.section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-desc {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 16px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  background: var(--green-100);
  padding: 5px;
  border-radius: 12px;
  margin: 22px 0 0;
}
.tab {
  border: 0;
  background: transparent;
  font-family: inherit;
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.tab.active {
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--shadow);
}

/* Calendar */
.cal-month { display: flex; flex-direction: column; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}
.cal-nav-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--green-200);
  background: var(--white);
  color: var(--green-700);
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
  padding: 0;
}
.cal-nav-btn:hover:not(:disabled) {
  background: var(--green-100);
  border-color: var(--green-300);
}
.cal-nav-btn:active:not(:disabled) { transform: scale(.92); }
.cal-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}
.cal-month-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  min-width: 132px;
  text-align: center;
}
.cal-dots {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 2px 0 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--green-300) transparent;
}
.cal-dot {
  min-width: 82px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.cal-dot.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #77827b;
  padding: 11px 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal-dow:first-child { color: #b76b65; }
.cal-dow:nth-child(7) { color: #657eae; }
.cal-dow:nth-child(7n) { border-right: 0; }
.cal-grid > .cal-cell:nth-child(7n) {
  border-right: 0;
}
.cal-cell {
  appearance: none;
  min-width: 0;
  aspect-ratio: 1 / .88;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}
.cal-cell.empty {
  visibility: visible;
  background: #fcfdfc;
}
.cal-cell.disabled {
  color: #c5ccc7;
  background: #fbfcfb;
}
.cal-cell.selectable {
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  transition: background .14s, box-shadow .14s;
}
.cal-cell.selectable:hover {
  background: var(--green-50);
  box-shadow: inset 0 0 0 2px var(--green-300);
}
.cal-cell.selected {
  z-index: 1;
  background: var(--green-300);
  color: var(--green-900);
  box-shadow: inset 0 0 0 3px var(--green-600);
}
.cal-cell .day-number {
  line-height: 1;
}
.selected-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

/* heatmap cells */
.cal-cell.heat {
  cursor: default;
  color: var(--ink);
  font-weight: 700;
}
.cal-cell .count-dot {
  position: absolute;
  left: 9px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: inherit;
  opacity: .88;
}
.cal-cell.rank1 {
  z-index: 1;
  box-shadow: inset 0 0 0 3px var(--green-700);
}
.rank-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
}

/* Name input row */
.name-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}
.name-row input { flex: 1; }
.name-row input.input-error {
  border-color: #c76c65;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(199, 108, 101, .12);
}
.name-error {
  min-height: 18px;
  margin: 6px 0 12px;
  color: #aa514b;
  font-size: 12px;
  font-weight: 600;
}
.credential-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compact-field { margin-bottom: 0; }
.permission-chip {
  display: flex;
  align-items: center;
  min-height: 46px;
  align-self: end;
  padding: 10px 14px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 700;
}
/* 시간표 그리드 (참여/결과 페이지) */
.section-title-sm {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.tt-section { margin-top: 18px; }
.tt-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tt-section-head .hint {
  font-size: 12px;
  color: var(--ink-soft);
}
.tt-empty {
  margin: 0;
  padding: 18px 14px;
  border: 1px dashed var(--green-300);
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.tt-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--green-300) transparent;
}
.tt-grid {
  display: grid;
  grid-template-columns: var(--tt-head, 56px) repeat(var(--tt-cols), minmax(var(--tt-colw, 58px), 1fr));
  min-width: min-content;
}
.tt-blocks { --tt-head: 52px; --tt-colw: 68px; }
.tt-corner,
.tt-colhead {
  border-bottom: 1px solid var(--line);
  background: var(--green-50);
}
.tt-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  appearance: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}
.tt-select .tt-corner { cursor: pointer; }
.tt-select .tt-corner:hover { background: var(--green-100); color: var(--green-700); }
.tt-colhead {
  appearance: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 4px;
  font-family: inherit;
}
.tt-col-date {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}
.tt-col-dow {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.tt-rowhead {
  appearance: none;
  margin: 0;
  border: 0;
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 5px;
  background: var(--green-50);
  border-top: 1px solid transparent;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.tt-rowhead.hour { border-top-color: var(--line); }
.tt-blocks .tt-rowhead span { font-size: 12px; color: var(--ink); }
.tt-select .tt-colhead,
.tt-select .tt-rowhead {
  cursor: pointer;
  touch-action: none;
}
.tt-select .tt-colhead:hover,
.tt-select .tt-rowhead:hover { background: var(--green-100); }
.tt-cell {
  min-height: 24px;
  border-left: 1px solid var(--line);
  border-top: 1px solid #edf2ee;
  background: var(--white);
}
.tt-cell.hour { border-top-color: var(--line); }
.tt-blocks .tt-cell { min-height: 48px; }
.tt-cell.paintable {
  cursor: pointer;
  touch-action: none;
}
.tt-cell.paintable:hover {
  background: var(--green-50);
  box-shadow: inset 0 0 0 2px var(--green-300);
}
.tt-cell.on {
  background: var(--green-300);
  box-shadow: inset 0 0 0 2px var(--green-600);
}
.tt-heat .tt-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}
.tt-cell.active { box-shadow: inset 0 0 0 2px var(--green-700); }
.tt-detail {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.tt-actions .hint {
  font-size: 12px;
  color: var(--ink-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.form-actions .btn-primary { flex: 1; }

.organizer-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.organizer-login-form {
  justify-content: flex-start;
}
.organizer-login-form input {
  flex: 1;
  min-width: 0;
}
.organizer-signed-in {
  color: var(--green-800);
  font-size: 13px;
}
.organizer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.management-note {
  color: var(--ink-soft);
  font-size: 12.5px;
}
.organizer-login-error {
  margin-bottom: 0;
}

/* Best list */
.best-list { display: flex; flex-direction: column; gap: 10px; }
.best-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  border: 1px solid var(--green-100);
}
.best-item .medal { font-size: 22px; width: 28px; text-align: center; }
.best-item .info { flex: 1; }
.best-item .date {
  font-weight: 800;
  font-size: 15px;
}
.best-item .people {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.best-item .count {
  font-weight: 800;
  color: var(--green-700);
  font-size: 15px;
}

/* Participant list */
.plist { display: flex; flex-direction: column; gap: 8px; }
.pitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  font-size: 13.5px;
}
.pitem .pname { font-weight: 700; }
.pitem .pcount { color: var(--ink-soft); }
.participant-info,
.participant-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.participant-side {
  justify-content: flex-end;
}
.password-state {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f2f1;
  color: #8a928d;
  font-size: 10px;
  font-weight: 700;
}
.password-state.protected {
  background: var(--green-100);
  color: var(--green-700);
}
.participant-actions {
  display: flex;
  gap: 5px;
}
.btn-xs {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11.5px;
}
.btn-danger {
  border: 1px solid #efd8d5;
  background: #fffafa;
  color: #a84f48;
}
.btn-danger:hover { background: #fbeeed; }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 30px 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footnote {
  text-align: center;
  color: #919b95;
  font-size: 11.5px;
  margin-top: 30px;
  line-height: 1.6;
}

.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-soft);
  justify-content: flex-end;
  margin-bottom: 10px;
}
.legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.legend .selected-swatch {
  background: var(--green-300);
  box-shadow: inset 0 0 0 2px var(--green-600);
}

@media (max-width: 480px) {
  .topbar { padding-top: 18px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .card { padding: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .share-bar { align-items: stretch; flex-direction: column; }
  .share-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-actions .btn { width: 100%; }
  .credential-fields { grid-template-columns: 1fr; }
  .organizer-access,
  .organizer-login-form { align-items: stretch; flex-direction: column; }
  .organizer-access .btn { width: 100%; }
  .organizer-actions { flex-direction: column; align-items: stretch; }
  .pitem { align-items: flex-start; gap: 10px; }
  .participant-info,
  .participant-side { align-items: flex-start; flex-direction: column; }
  .participant-actions { width: 100%; }
  .cal-nav { gap: 10px; }
  .cal-month-title { min-width: 116px; font-size: 15px; }
  .cal-dot { min-width: 68px; min-height: 44px; }
  .cal-cell { padding: 6px; font-size: 11.5px; }
  .selected-check { top: 5px; right: 5px; width: 18px; height: 18px; font-size: 10px; }
  .cal-cell .count-dot { left: 6px; bottom: 5px; font-size: 8.5px; }
  .block-checks { flex-direction: column; }
  .block-check { min-width: 0; }
  .choice-list { gap: 6px; }
  .choice-item { padding: 10px 9px; }
  .choice-title { font-size: 12px; }
  .choice-desc { font-size: 10.5px; }
  .choice-body { padding-right: 8px; }
  .choice-item::after { top: 6px; right: 6px; width: 15px; height: 15px; font-size: 9px; }
  .tt-grid { --tt-colw: 46px; --tt-head: 46px; }
  .tt-blocks { --tt-colw: 58px; }
  .tt-actions { align-items: stretch; flex-direction: column; }
  .tt-actions .btn { width: 100%; }
}
