.crew-workspace-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 26px 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eee9e3;
}

.crew-google-login {
  display: flex;
  min-height: 52px;
  padding: 12px 17px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7d1ca;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(48, 35, 30, .08);
}

.crew-google-login > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f6f8fd;
  color: #4285f4;
  font-size: 15px;
  font-weight: 900;
}

.crew-google-login b {
  margin-left: auto;
}

.crew-login-methods {
  display: grid;
  gap: 0;
}

.google-login-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--wine);
  text-align: center;
  font-size: 11px;
}

.member-auth-status {
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid #b9d1bd;
  border-radius: 13px;
  background: #eef6ef;
  color: #365b3d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

/* 연동 설정 — 계정 줄의 칩과 접힌 패널. 본문에는 상시 노출하지 않는다. */
.crew-account-tools {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.crew-account-tools > button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
}

.crew-account-tools > .crew-connection-chip {
  display: inline-flex;
  padding: 9px 12px 9px 10px;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.crew-connection-chip[aria-expanded="true"] {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(115, 52, 68, .12);
}

.crew-connection-marks {
  display: flex;
  gap: 3px;
}

.crew-connection-marks img {
  width: 15px;
  height: 15px;
}

.crew-connection-chip[data-connected="none"] .crew-connection-marks img,
.crew-connection-chip[data-connected="google"] .crew-connection-marks img:last-child,
.crew-connection-chip[data-connected="slack"] .crew-connection-marks img:first-child {
  opacity: .4;
  filter: grayscale(1);
}

.crew-connection-count {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #f3ece2;
  color: #8a6a3c;
  font-size: 9px;
  font-weight: 900;
}

.crew-connection-chip[data-connected="none"] .crew-connection-count {
  background: #f7e8e4;
  color: #b85855;
}

.crew-connection-chip[data-connected="both"] .crew-connection-count {
  background: #e2efe6;
  color: #315e40;
}

.crew-connections {
  position: absolute;
  z-index: 12;
  top: calc(100% + 9px);
  right: 0;
  width: 346px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(48, 35, 30, .16);
}

.crew-connections h3 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.crew-connections-copy {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.crew-connection-row {
  padding: 11px 0;
}

.crew-connection-row + .crew-connection-row {
  border-top: 1px solid var(--line);
}

.crew-google-account,
.crew-connection-title {
  display: grid;
  align-items: center;
  gap: 10px;
}

.crew-google-account {
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.crew-connection-title {
  grid-template-columns: 18px minmax(0, 1fr);
}

.crew-connection-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.crew-connection-row[data-connected="false"] img {
  opacity: .4;
  filter: grayscale(1);
}

.crew-connection-row strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
}

.crew-connection-row span,
#crew-slack-form small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.crew-google-account a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.crew-google-account[data-connected="false"] a {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

#crew-slack-form {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin-top: 9px;
}

#crew-slack-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.crew-slack-controls {
  display: flex;
  min-width: 0;
  gap: 6px;
}

#crew-slack-user-id {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.crew-slack-controls button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

#crew-slack-remove {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

#crew-slack-status {
  min-height: 13px;
  margin: 0;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
}

/* 미연결일 때만 나타나는 안내 줄. 둘 다 연결되면 렌더링하지 않는다. */
.crew-connections-nag {
  display: flex;
  margin-top: 14px;
  padding: 11px 15px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1c2bb;
  border-radius: 999px;
  background: #fff9f7;
  font-size: 11.5px;
  line-height: 1.5;
}

.crew-nag-mark {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f7e8e4;
  color: #b85855;
  font-size: 11px;
  font-weight: 900;
}

#crew-connections-nag-open {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: #b85855;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.crew-login-divider {
  display: flex;
  margin: 15px 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .member-login-card select,
  .member-login-card input {
    font-size: 16px;
  }

  .crew-account-tools {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .crew-connections {
    position: static;
    flex: 1 0 100%;
    width: auto;
    margin-top: 9px;
  }

  .crew-connections-nag {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  #crew-connections-nag-open {
    margin-left: 29px;
  }

  #crew-slack-user-id {
    font-size: 16px;
  }
}

.crew-login-divider::before,
.crew-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.crew-pin-login > strong {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
}

.crew-pin-login form {
  margin: 0;
}

.crew-workspace-tabs button,
.gift-ledger-tabs button {
  min-height: 43px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.crew-workspace-tabs button.active,
.gift-ledger-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(40, 27, 23, .1);
}

.crew-workspace-panel {
  padding-top: 6px;
}

.crew-panel-heading,
.gift-list-head,
.gift-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.crew-panel-heading h3,
.gift-list-head h3,
.gift-entry-form h3,
.gift-breakdown-card h3,
.gift-export-card h3 {
  margin: 0;
  font: 400 23px/1.35 var(--serif);
}

.crew-panel-heading > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eee8e2;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.crew-panel-copy {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.crew-assigned-schedules {
  display: grid;
  gap: 10px;
}

.crew-schedule-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 14px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}

.crew-schedule-card:hover {
  border-color: #aa8890;
  box-shadow: 0 8px 24px rgba(66, 39, 42, .08);
  transform: translateY(-1px);
}

.crew-schedule-card.past {
  opacity: .68;
}

.crew-schedule-card.today {
  border-color: #a98189;
  box-shadow: 0 8px 24px rgba(91, 43, 52, .08);
}

.crew-schedule-card.practice {
  border-color: #9db6c8;
  background: linear-gradient(135deg, #f7fbfd, #fff 68%);
  box-shadow: 0 8px 24px rgba(40, 75, 102, .08);
}

.crew-schedule-card.practice:hover {
  border-color: #6287a3;
  box-shadow: 0 10px 28px rgba(40, 75, 102, .12);
}

.crew-schedule-card.practice .crew-schedule-date {
  background: #e7f0f6;
  color: #284b66;
}

.crew-schedule-card.practice .crew-schedule-date strong {
  font-family: var(--sans);
}

.crew-schedule-card.practice .crew-schedule-open {
  background: #284b66;
  color: #fff;
}

.crew-schedule-card.practice .crew-schedule-open.locked {
  background: #dfeaf1;
  color: #284b66;
}

.crew-schedule-date {
  display: grid;
  min-height: 72px;
  padding: 8px;
  place-items: center;
  border-radius: 14px;
  background: #f2e8ea;
  color: var(--wine);
}

.crew-schedule-date strong {
  font: 700 25px/1 var(--serif);
}

.crew-schedule-date span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.crew-schedule-year-group {
  position: sticky;
  z-index: 2;
  top: -2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 -2px;
  padding: 6px 2px;
  background: #fff;
}

.crew-schedule-year-group:first-child {
  margin-top: 0;
}

.crew-schedule-year-group strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.crew-schedule-year-group span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f2e8ea;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
}

.crew-schedule-year-group:after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.crew-schedule-info strong,
.crew-schedule-info span,
.crew-schedule-info small {
  display: block;
}

.crew-schedule-info .crew-live-status {
  display: flex;
  margin-top: 9px;
  flex-wrap: wrap;
  gap: 5px;
}

.crew-schedule-info .crew-calendar-invitation {
  display: flex;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.crew-calendar-invitation .crew-calendar-chip {
  display: inline-flex;
  margin: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2efe9;
  color: #776d66;
  font-size: 9px;
  font-weight: 800;
}

.crew-calendar-invitation .crew-calendar-chip.status-accepted {
  background: #e2efe6;
  color: #315e40;
}

.crew-calendar-invitation .crew-calendar-chip.status-declined {
  background: #fae8e5;
  color: #98443d;
}

.crew-calendar-invitation a {
  color: #3d623f;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crew-schedule-info .crew-status-chip {
  display: inline-flex;
  margin: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1efec;
  color: #746c66;
  font-size: 9px;
  font-weight: 800;
}

.crew-schedule-info .crew-status-chip.status-arrived {
  background: #e5f1e9;
  color: #356247;
}

.crew-schedule-info .crew-status-chip.status-ready {
  background: #e8edf7;
  color: #435d8c;
}

.crew-schedule-info .crew-status-chip.status-confirmed {
  background: #e2efe6;
  color: #315e40;
}

.crew-schedule-info .crew-status-chip.status-late,
.crew-schedule-info .crew-status-chip.status-unavailable {
  background: #fae9e5;
  color: #9a453e;
}

.crew-schedule-info strong {
  font-size: 15px;
}

.crew-schedule-info span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.crew-schedule-info small {
  margin-top: 6px;
  color: #938981;
  font-size: 10px;
}

.crew-schedule-open {
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.crew-schedule-open.locked {
  background: #eee8e2;
  color: #7d6d63;
}

.crew-schedule-open.ready {
  background: #315441;
}

.crew-schedule-open.confirm {
  background: var(--wine);
}

.crew-schedule-open.confirmed {
  background: #e2efe6;
  color: #315e40;
}

.crew-schedule-open.closed {
  background: #eeeae6;
  color: #8a817a;
}

.crew-empty-schedules {
  padding: 38px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #f7f4f0;
  text-align: center;
}

.crew-empty-schedules strong,
.crew-empty-schedules span {
  display: block;
}

.crew-empty-schedules strong {
  font: 400 19px var(--serif);
}

.crew-empty-schedules span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.crew-inline-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--wine);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.gift-ledger {
  --side-color: #a44b68;
  --side-pale: #f7e8ee;
  --side-deep: #722d46;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.gift-ledger[data-side="groom"] {
  --side-color: #3f6583;
  --side-pale: #e7f0f6;
  --side-deep: #284b66;
}

.gift-ledger-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.gift-side-heading {
  text-align: center;
}

.gift-side-heading .eyebrow {
  margin-top: 12px;
  color: var(--side-color);
}

.gift-side-heading h2 {
  margin: 0;
  color: var(--side-deep);
  font: 400 clamp(28px, 4vw, 38px)/1.25 var(--serif);
}

.gift-side-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.gift-side-badge {
  display: inline-flex;
  min-height: 32px;
  padding: 7px 15px;
  align-items: center;
  border-radius: 999px;
  background: var(--side-color);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gift-back-button,
.gift-change-side,
.gift-form-heading button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.gift-side-warning {
  display: flex;
  margin: 22px 0 16px;
  padding: 13px 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--side-color) 35%, white);
  border-radius: 13px;
  background: var(--side-pale);
  color: var(--side-deep);
  font-size: 11px;
}

.gift-side-warning strong {
  font-size: 12px;
}

.gift-ledger-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 999px;
  background: #ece8e3;
}

.gift-entry-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(340px, 1.18fr);
  gap: 14px;
  align-items: start;
}

.gift-entry-form,
.gift-list-card,
.gift-breakdown-card,
.gift-export-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.gift-entry-form label,
.gift-amount-fieldset legend,
.gift-banknote-fieldset legend,
.gift-age-fieldset legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-required,
.field-optional {
  margin-left: 3px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.field-required {
  color: var(--side-color);
}

.field-optional {
  color: #a39a93;
}

.gift-entry-form input[type="text"],
.gift-entry-form input[type="number"] {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

.gift-name-field {
  display: block;
  margin-top: 20px;
}

.gift-meta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 17px;
}

.gift-amount-fieldset {
  min-width: 0;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.gift-banknote-fieldset {
  min-width: 0;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.gift-banknote-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 136px minmax(82px, auto);
  min-height: 66px;
  margin-top: 8px;
  padding: 8px 10px 8px 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f6f3;
}

.gift-banknote-row > div strong,
.gift-banknote-row > div small {
  display: block;
}

.gift-banknote-row > div strong {
  color: var(--ink);
  font-size: 14px;
}

.gift-banknote-row > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.gift-banknote-row > b {
  color: var(--side-deep);
  text-align: right;
  font-size: 12px;
}

.gift-banknote-stepper {
  display: grid;
  grid-template-columns: 38px 60px 38px;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.gift-banknote-stepper button {
  border: 0;
  background: var(--side-pale);
  color: var(--side-deep);
  font-size: 17px;
  font-weight: 900;
}

.gift-banknote-stepper input {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  appearance: textfield;
}

.gift-banknote-total {
  display: flex;
  min-height: 54px;
  margin-top: 9px;
  padding: 11px 14px;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  background: var(--side-pale);
  color: var(--side-deep);
}

.gift-banknote-total span {
  font-size: 11px;
  font-weight: 800;
}

.gift-banknote-total strong {
  font-size: 19px;
}

.gift-amount-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.gift-amount-presets button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8f6f3;
  font-size: 14px;
  font-weight: 800;
}

.gift-amount-presets button.selected {
  border-color: var(--side-color);
  background: var(--side-color);
  color: #fff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--side-color) 22%, transparent);
}

.gift-custom-amount {
  position: relative;
  display: block;
  margin-top: 8px;
}

.gift-custom-amount span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

.gift-custom-amount input {
  padding-right: 58px !important;
}

.gift-custom-amount b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--side-deep);
  font-size: 14px;
  font-weight: 800;
}

.gift-age-fieldset {
  min-width: 0;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.gift-age-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.gift-age-options button {
  min-width: 0;
  min-height: 43px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f6f3;
  font-size: 11px;
  font-weight: 800;
}

.gift-age-options button.selected {
  border-color: var(--side-color);
  background: var(--side-pale);
  color: var(--side-deep);
  box-shadow: inset 0 0 0 1px var(--side-color);
}

.gift-ticket-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.gift-ticket-field,
.gift-note-field { display: block; }

.gift-note-field { margin-top: 17px; }

.gift-ticket-stepper {
  display: grid;
  grid-template-columns: 40px minmax(40px, 1fr) 40px;
  overflow: hidden;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gift-ticket-stepper button {
  border: 0;
  background: #f1ede8;
  font-size: 17px;
}

.gift-ticket-stepper input {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  appearance: textfield;
}

.gift-submit,
.gift-export-card > button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 13px 18px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  background: var(--side-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.gift-list-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.gift-list-head > strong {
  color: var(--side-deep);
  font-size: 12px;
}

.gift-list-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-list-tools strong {
  color: var(--side-deep);
  font-size: 12px;
}

.gift-list-tools button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.gift-entry-list {
  display: grid;
  max-height: 568px;
  overflow: auto;
}

.gift-entry-row {
  display: grid;
  grid-template-columns: 30px minmax(80px, 1fr) minmax(82px, auto) 50px auto;
  padding: 13px 2px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee9e4;
}

.gift-entry-row > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--side-pale);
  color: var(--side-deep);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.gift-entry-person strong,
.gift-entry-person small {
  display: block;
}

.gift-entry-person strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-entry-person small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-entry-amount {
  text-align: right;
  font-size: 12px;
  font-weight: 900;
}

.gift-entry-tickets {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}

.gift-row-actions {
  display: flex;
  gap: 4px;
}

.gift-row-actions button {
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
}

.gift-row-actions button:last-child {
  color: #a23f58;
}

.gift-list-empty {
  padding: 70px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.gift-stats-search-card,
.gift-stats-results-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.gift-stats-search-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.gift-stats-search-card > label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.gift-stats-search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  padding: 0 9px 0 14px;
  border: 1px solid #d9d1cc;
  border-radius: 999px;
  background: #faf8f6;
}

.gift-stats-search-control > span {
  color: var(--side-deep);
  font-size: 23px;
  line-height: 1;
  transform: rotate(-15deg);
}

.gift-stats-search-control input {
  min-width: 0;
  padding: 11px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.gift-stats-search-control input::-webkit-search-cancel-button {
  display: none;
}

.gift-stats-search-control:focus-within {
  border-color: var(--side-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--side-color) 14%, transparent);
}

.gift-stats-search-control button {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: #ece6e1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.gift-stats-search-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.gift-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gift-stats-grid article {
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.gift-stats-grid span,
.gift-stats-grid strong,
.gift-stats-grid small {
  display: block;
}

.gift-stats-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.gift-stats-grid strong {
  overflow: hidden;
  margin-top: 14px;
  color: var(--side-deep);
  font: 700 clamp(20px, 2.5vw, 29px)/1.1 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-stats-grid small {
  margin-top: 9px;
  color: #a19891;
  font-size: 9px;
}

.gift-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.gift-stats-results-card {
  margin-top: 12px;
}

.gift-stats-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.gift-stats-results-head h3 {
  margin: 0;
  font: 400 21px/1.35 var(--serif);
}

.gift-stats-results-head > strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1e9e7;
  color: var(--side-deep);
  font-size: 10px;
}

.gift-stats-results {
  display: block;
  max-height: 360px;
  margin-top: 13px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.gift-stats-result-columns,
.gift-stats-result-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(110px, .6fr) minmax(64px, .35fr) minmax(220px, 2fr);
  align-items: center;
}

.gift-stats-result-columns {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f3eeea;
  color: #655a55;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.gift-stats-result-columns > span,
.gift-stats-result-row > * {
  min-width: 0;
  padding: 14px 16px;
}

.gift-stats-result-columns > span + span,
.gift-stats-result-row > * + * {
  border-left: 1px solid #e7ddd7;
}

.gift-stats-result-row {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.gift-stats-result-row:last-child {
  border-bottom: 0;
}

.gift-stats-result-row:nth-child(odd) {
  background: #fcfaf8;
}

.gift-stats-result-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-stats-result-row .gift-entry-amount {
  color: var(--side-deep);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.gift-stats-result-row .gift-entry-tickets {
  color: #514743;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.gift-stats-result-columns > span:nth-child(2) {
  text-align: right;
}

.gift-stats-result-columns > span:nth-child(3) {
  text-align: center;
}

.gift-stats-result-note {
  overflow: hidden;
  color: #5f5550;
  font-size: 14px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gift-amount-breakdown,
#gift-age-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.gift-breakdown-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 45px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.gift-breakdown-row i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eee9e4;
}

.gift-breakdown-row i:after {
  content: "";
  display: block;
  width: var(--ratio);
  height: 100%;
  border-radius: inherit;
  background: var(--side-color);
}

.gift-breakdown-row strong {
  text-align: right;
}

.gift-export-card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 45px);
  text-align: center;
}

.gift-export-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.gift-export-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.gift-export-summary span {
  padding: 15px 8px;
  border-right: 1px solid var(--line);
  color: var(--side-deep);
  font-size: 12px;
  font-weight: 900;
}

.gift-export-summary span:last-child {
  border-right: 0;
}

.gift-side-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.gift-side-dialog::backdrop {
  background: rgba(30, 22, 20, .6);
  backdrop-filter: blur(4px);
}

.gift-side-dialog form {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  background: #fbfaf7;
}

.gift-side-dialog h2 {
  margin: 0;
  font: 400 29px/1.35 var(--serif);
}

.gift-side-dialog form > p:not(.eyebrow) {
  margin: 11px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.gift-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.gift-side-options {
  display: grid;
  gap: 9px;
}

.gift-side-options > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 75px;
  padding: 13px 16px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-align: left;
}

.gift-side-options i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e7f0f6;
  color: #284b66;
  font-style: normal;
  font-weight: 900;
}

.gift-side-options [data-side-choice="bride"] i {
  background: #f7e8ee;
  color: #722d46;
}

.gift-side-options strong,
.gift-side-options small {
  display: block;
}

.gift-side-options strong {
  font-size: 14px;
}

.gift-side-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 760px) {
  .gift-entry-layout {
    grid-template-columns: 1fr;
  }

  .gift-entry-form {
    position: static;
  }

  .gift-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gift-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .gift-stats-search-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gift-stats-search-card > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .gift-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gift-stats-grid article:first-child {
    grid-column: 1 / -1;
  }

  .crew-workspace-tabs {
    margin: 20px 0 17px;
  }

  .crew-workspace-tabs button,
  .gift-ledger-tabs button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 10px;
  }

  .crew-schedule-card {
    grid-template-columns: 61px minmax(0, 1fr);
    min-height: 94px;
    padding: 11px;
    gap: 11px;
  }

  .crew-schedule-date {
    min-height: 65px;
  }

  .crew-schedule-open {
    grid-column: 1 / -1;
    padding: 9px;
    text-align: center;
  }

  .gift-ledger {
    padding: 15px 11px 24px;
    border-radius: 19px;
  }

  .gift-ledger-head {
    grid-template-columns: auto 1fr auto;
    gap: 7px;
  }

  .gift-back-button,
  .gift-change-side {
    padding: 8px;
    font-size: 9px;
  }

  .gift-side-heading .eyebrow {
    display: none;
  }

  .gift-side-heading h2 {
    margin-top: 7px;
    font-size: 23px;
  }

  .gift-side-heading > p:last-child {
    grid-column: 1 / -1;
    font-size: 10px;
  }

  .gift-side-badge {
    min-height: 27px;
    padding: 5px 12px;
    font-size: 10px;
  }

  .gift-side-warning {
    display: grid;
    gap: 3px;
    margin-top: 17px;
    text-align: center;
  }

  .gift-entry-form,
  .gift-list-card,
  .gift-breakdown-card,
  .gift-export-card {
    padding: 16px 13px;
    border-radius: 16px;
  }

  .gift-amount-presets {
    grid-template-columns: 1fr 1fr;
  }

  .gift-amount-presets button {
    min-height: 51px;
    font-size: 15px;
  }

  .gift-banknote-row {
    grid-template-columns: minmax(78px, 1fr) 128px;
    padding: 9px 9px 9px 11px;
  }

  .gift-banknote-row > b {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .gift-banknote-stepper {
    grid-template-columns: 36px 56px 36px;
  }

  .gift-ticket-fields { gap: 7px; }

  .gift-ticket-stepper {
    grid-template-columns: 34px minmax(36px, 1fr) 34px;
  }

  .gift-meta-fields {
    grid-template-columns: 1fr;
  }

  .gift-age-options button {
    min-height: 48px;
    font-size: 12px;
  }

  .gift-submit {
    position: static;
    min-height: 56px;
    box-shadow: 0 8px 24px rgba(54, 33, 33, .24);
  }

  .gift-entry-list {
    max-height: none;
  }

  .gift-entry-row {
    grid-template-columns: 28px minmax(70px, 1fr) auto;
    gap: 7px;
  }

  .gift-entry-tickets {
    grid-column: 2;
    text-align: left;
  }

  .gift-row-actions {
    grid-column: 3;
    grid-row: 2;
  }

  .gift-stats-grid article {
    padding: 18px 13px;
  }

  .gift-stats-search-card,
  .gift-stats-results-card {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .gift-stats-search-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gift-stats-search-card > p {
    grid-column: auto;
    white-space: normal;
  }

  .gift-stats-search-control {
    min-height: 49px;
  }

  .gift-stats-result-row {
    grid-template-columns: minmax(90px, 1fr) 104px 88px;
  }

  .gift-stats-result-columns {
    grid-template-columns: minmax(90px, 1fr) 104px 88px;
  }

  .gift-stats-result-columns > span,
  .gift-stats-result-row > * {
    padding-right: 11px;
    padding-left: 11px;
  }

  .gift-stats-result-name {
    font-size: 14px;
  }

  .gift-stats-result-row .gift-entry-amount {
    font-size: 14px;
  }

  .gift-stats-result-row .gift-entry-tickets {
    font-size: 13px;
    white-space: normal;
  }

  .gift-stats-result-note-heading {
    display: none;
  }

  .gift-stats-result-note {
    grid-column: 1 / -1;
    padding-top: 11px;
    padding-bottom: 13px;
    border-top: 1px dashed #e9dfda;
    border-left: 0 !important;
    font-size: 13px;
    white-space: normal;
  }

  .gift-stats-result-note::before {
    margin-right: 8px;
    color: var(--side-deep);
    font-size: 11px;
    font-weight: 800;
    content: "메모";
  }

  .gift-export-summary span {
    padding: 13px 4px;
    font-size: 10px;
  }

  .gift-side-dialog form {
    padding: 26px 18px 20px;
  }

  .gift-side-dialog h2 {
    font-size: 25px;
  }
}


.crew-login-region-picker,.crew-login-member-picker{min-width:0;margin:0;padding:0;border:0}
.crew-login-region-picker legend,.crew-login-member-picker legend{margin-bottom:7px;color:var(--muted);font-size:11px;font-weight:700}
.crew-login-region-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.crew-login-region-options button,.crew-login-member-options button{min-height:40px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:11px;font-weight:800}
.crew-login-region-options button.active,.crew-login-member-options button.active{border-color:var(--wine);background:var(--wine);color:#fff}
.crew-login-member-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#crew-login-member-empty{margin:4px 0 0;color:var(--muted);font-size:12px}
@media(max-width:560px){.crew-login-member-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
