@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  --ink: #111111;
  --muted: #666666;
  --line: #dddddd;
  --paper: #ffffff;
  --popup: #f1f1f1;
  --accent: #b84b00;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; --frame: 640px; }
body.is-entry { --frame: 500px; }
body.is-member { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header, main, .entry-footer { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: 20px; }
.site-header { padding-block: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
main { padding-block: 16px 24px; }
.entry-main { padding-top: 12px; }
h1, h2 { font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; margin: 0 0 12px; }
p { font-size: 16px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; margin: 0 0 16px; }
.emphasis, strong, b { font-size: 17px; font-weight: 700; }
.screen-head { margin-bottom: 20px; }
.screen-head > :last-child { margin-bottom: 0; }
.eyebrow { color: var(--accent); font-size: 14px; margin-bottom: 6px; }
.full { display: block; width: 100%; text-align: center; }
.primary, .secondary, .kakao, .text-button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; max-width: 100%; border: 1px solid transparent; border-radius: 7px;
  padding: 10px 16px; font-size: 16px; line-height: 1.5; font-weight: 700;
  text-decoration: none; overflow-wrap: anywhere;
}
.full { display: flex; }
.primary, .icon-button { background: var(--ink); color: #ffffff; }
.secondary, .text-button { background: var(--muted); color: #ffffff; }
.kakao { background: #fee500; color: #191919; }
.signup-entry { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.signup-entry > p:first-child { margin-bottom: 12px; }
.pending-actions { display: grid; gap: 8px; margin-top: 20px; }
#photo-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-top: 12px; border: 1px solid var(--line); border-radius: 7px; touch-action: none; cursor: grab; }
.crop-controls { margin: 12px 0; }
.crop-controls label { margin: 8px 0 0; font-size: 14px; }
.crop-controls input[type=range] { min-height: 44px; padding: 0; border: 0; accent-color: var(--ink); }
#photo-preview { margin-top: 12px; }
#photo-crop .primary { margin-top: 12px; }
.text-button, .icon-button { min-height: 44px; padding: 9px 12px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; min-height: 44px; margin: 4px 0; width: fit-content; }
.check input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
label { display: block; font-size: 16px; font-weight: 700; margin: 0 0 8px; }
label > .muted, label > .required { font-size: 14px; font-weight: 400; margin-left: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; font-size: 16px; line-height: 1.5; border: 1px solid #bbbbbb; border-radius: 6px; background: var(--paper); color: var(--ink); }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=file] { padding: 8px !important; overflow: hidden; }
input[type=file]::file-selector-button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; background: var(--muted); color: #ffffff; font: inherit; margin-right: 8px; }
.field { margin-bottom: 16px; }
.profile-form > .primary { margin-top: 20px; }
.muted, .field-hint { color: var(--muted); }
.field-hint { font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.field > .field-hint { margin-top: 6px; }
.required { color: var(--accent); }
.entry-footer { padding-block: 0 24px; }
.feedback, .error { padding: 8px 0 8px 12px; border-left: 2px solid var(--accent); margin-bottom: 16px; }
.error { color: var(--accent); }
.meeting-card { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.meeting-card p:not(.eyebrow) { color: var(--muted); }
.meeting-card > :last-child, .past-meetings > :last-child { margin-bottom: 0; }
.past-meetings { padding-top: 4px; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 56px; max-width: 160px; flex: 1; font-size: 16px; padding: 8px 4px; }
.logout { margin-top: 16px; }
.member-list { display: grid; }
.member-row { min-width: 0; border-bottom: 1px solid var(--line); }
.member-row summary { cursor: pointer; min-height: 52px; padding: 14px 0; line-height: 1.5; overflow-wrap: anywhere; }
.member-row summary small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.member-row[open] summary { margin-bottom: 4px; }
.user-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge { color: #ffa35b; font-weight: 700; font-size: 14px; }
.profile-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 7px; display: block; margin: 0 0 16px; }
dialog { width: min(calc(100% - 32px), 500px); max-height: calc(100dvh - 32px); border: 0; border-radius: 7px; padding: 20px; background: var(--popup); color: var(--ink); overflow-y: auto; overflow-x: hidden; }
.positions-field { padding: 0; border: 0; min-width: 0; }
.positions-field legend { padding: 0; font-size: 16px; font-weight: 700; }
.positions-field legend .muted { font-size: 14px; font-weight: 400; margin-left: 4px; }
.position-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 8px; }
.position-options .check { width: 100%; margin: 0; }
.position-options .check:last-child { grid-column: 1 / -1; }
.position-other { margin-top: 12px; }
.member-positions { margin-bottom: 12px; }
dialog::backdrop { background: #00000066; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-header h2 { margin: 4px 0 0; min-width: 0; flex: 1; }
.dialog-header button { flex-shrink: 0; white-space: nowrap; }
dialog p { margin-bottom: 12px; }
dialog .field-hint { margin-top: 8px; }
dialog > :last-child { margin-bottom: 0; }
dialog > .primary, dialog > .secondary { margin-top: 16px; }
.notice-list { list-style: none; margin: 0 0 16px; padding: 0; }
.notice-list li { padding: 12px 0; border-bottom: 1px solid #cccccc; line-height: 1.5; font-size: 16px; }
.notice-list a { display: inline-block; min-height: 44px; padding-block: 10px; }
.dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); margin-left: 6px; }
.browser-banner, .install-card { width: calc(100% - 40px); max-width: calc(var(--frame) - 40px); margin: 0 auto 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.browser-banner p, .install-card p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--muted); }
.browser-banner button { margin-top: 10px; }
.install-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.install-card button { flex-shrink: 0; }
#browser-choice h2 { margin-bottom: 12px; }
#browser-choice .full { margin-top: 12px; }
#site-address { font-size: 14px; margin-top: 8px; }
#external-help { margin-top: 12px; border-top: 1px solid #cccccc; }
#external-help summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-size: 14px; }
#external-instructions, #install-instructions { font-size: 14px; }
#install-instructions { padding-top: 12px; border-top: 1px solid #cccccc; }
#copy-result:empty, #install-status:empty { display: none; }
@media (max-width: 360px) {
  .install-card { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) { button, a { transition: background-color .15s; } }

.admin-nav { display: flex; gap: 16px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.admin-nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.admin-nav a[aria-current] { font-weight: 700; border-bottom: 2px solid var(--ink); }
.admin-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.meeting-info { margin: 0 0 16px; }
.meeting-info div { display: flex; gap: 12px; margin-bottom: 8px; }
.meeting-info dt { flex: 0 0 32px; color: var(--muted); }
.meeting-info dd { margin: 0; overflow-wrap: anywhere; }
.attendance-people { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 16px; }
.attendance-people summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.attendance-people ul { padding-left: 20px; margin: 8px 0; }
.attendance-people li { padding: 4px 0; }
.meeting-detail-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.meeting-list { padding-left: 20px; }
.meeting-list li a { display: flex; min-height: 48px; align-items: center; padding: 8px 0; }
.attendance-action, .field-hint + button, .field-hint + a.primary, .field-hint + a.secondary { margin-top: 16px; }

.attendance-admin-form fieldset { border: 0; padding: 0; min-width: 0; }
.admin-nav { flex-wrap: wrap; }
.plain-fieldset { border: 0; padding: 0; min-width: 0; }
.song-section, .song-form-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.song-list, .song-slots, .song-files, .song-file-list { list-style: none; padding: 0; margin: 16px 0; }
.song-list li, .song-slots li, .song-file-list li, .song-files li { border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.song-list > li { border: 0; padding: 0; margin-bottom: 12px; }
.song-list-button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; box-shadow: none; padding: 16px; min-height: 48px; gap: 8px; }
.song-list-button strong { font-size: 22px; line-height: 1.5; }
.song-list-button span { color: var(--muted); font-weight: 400; font-size: 16px; line-height: 1.5; }
.song-list-button .song-state.is-recruiting { color: var(--accent); font-weight: 700; animation: recruitment-pulse 1.8s ease-in-out infinite; }
@keyframes recruitment-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .song-list-button .song-state.is-recruiting { animation: none; } }
.song-slots p { margin-bottom: 12px; }
.song-slots form { margin-top: 16px; }
.song-files a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; }
.song-file-list li { display: flex; gap: 12px; align-items: center; }
.song-file-list span { flex: 1; min-width: 0; }
.song-file-list button { flex-shrink: 0; }
.song-cancel { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.song-cancel summary { min-height: 44px; cursor: pointer; }
.song-dialog audio, .song-files audio { display: block; width: 100%; margin-top: 12px; }
.decline-effects { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.decline-effects[hidden] { display: none; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.action-row > a, .action-row > button { flex: 1; }
.song-form-section + .check, #song-form > button[type="submit"] { margin-top: 20px; }
.song-dialog h3, .member-main h3 { font-size: 17px; line-height: 1.5; margin: 20px 0 12px; }
#song-form[data-kind-selected="no"] > :not(.song-kind-choice):not([type="hidden"]) { display: none; }
.song-kind-choice legend { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.song-kind-choice .check { border-bottom: 1px solid var(--line); padding: 16px 0; align-items: flex-start; width: 100%; }
.song-kind-choice { margin-top: 20px; }
.song-kind-choice small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.prepared-members { margin-bottom: 20px; }
.prepared-members summary { min-height: 44px; padding-block: 12px; cursor: pointer; }
#private-details-toggle { margin: 0 0 20px; }
.song-dialog .check + button, .member-main form .check + button { margin-top: 12px; }
.own-part-options { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.own-part-options .check { margin: 0; width: auto; min-height: 44px; }
.own-part-options { margin-bottom: 12px; }
#song-description-help { margin: 0 0 8px; }
.recruitment-part-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recruitment-part-row label { margin: 0; min-width: 0; }
.recruitment-part-row select { width: 132px; min-height: 48px; flex-shrink: 0; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.meeting-song-total { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 20px 0 0; }
.participation-cancel summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.cancellation-form { margin-top: 16px; }
.cancellation-form .check { align-items: flex-start; }
.cancellation-form > button { margin-top: 16px; }
.cancellation-form legend { font-weight: 700; margin-bottom: 8px; }
.song-discussion { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.comment-list { list-style: none; padding: 0; margin: 16px 0; }
.comment-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.comment-meta { margin-bottom: 8px; }
.comment-actions { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.comment-actions summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.comment-actions details { min-width: 0; max-width: 100%; }
.comment-form { margin-top: 20px; }
.comment-form > button[type=submit] { margin-top: 16px; }
#song-edit-form > button[type=submit] { margin-top: 16px; }
