* { box-sizing: border-box; }

    body {
      margin: 0;
      padding: 0;
      background-color: #E5DFD5;
      font-family: -apple-system, BlinkMacSystemFont, "맑은 고딕", "Malgun Gothic", sans-serif;
      color: #22252a;
    }

    .app {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .header {
      padding: 14px 16px 10px;
      background: #E5DFD5;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .header-title {
      margin: 0;
      font-size: 20px;
      font-weight: 700;
      color: #33354a;
    }

    .header-sub {
      margin: 4px 0 0;
      font-size: 12px;
      color: #666;
    }

    .main {
      flex: 1;
      padding: 0 12px 80px;
    }

    .section-card {
      background: #f7f3ea;
      border-radius: 14px;
      padding: 14px 12px;
      margin-top: 10px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }

    .section-title {
      margin: 0 0 10px;
      font-size: 15px;
      font-weight: 700;
      color: #33354a;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .section-title span.badge {
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 999px;
      background: #4a4a72;
      color: #fff;
    }

    .field {
      margin-bottom: 10px;
    }

    .field-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 12px;
      color: #444;
    }

    .field-label span.required {
      color: #d9534f;
      font-size: 11px;
      margin-left: 4px;
    }

    .field-small {
      font-size: 11px;
      color: #888;
    }

    input[type="text"],
    input[type="tel"],
    input[type="datetime-local"],
    select,
    textarea {
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid #ccc5b3;
      font-size: 13px;
      outline: none;
      background: #fff;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: #4a4a72;
    }

    textarea {
      resize: vertical;
      min-height: 70px;
    }

    .flex-row {
      display: flex;
      gap: 8px;
    }

    .flex-1 {
      flex: 1;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 12px;
      border-radius: 999px;
      border: none;
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn-ghost {
      background: transparent;
      border: 1px dashed #b3aa99;
      color: #555;
    }

    .btn-danger {
      background: transparent;
      border: 1px solid #d9534f;
      color: #d9534f;
    }

    .btn-full {
      width: 100%;
      border-radius: 999px;
      padding: 11px 0;
      font-size: 15px;
      font-weight: 600;
    }

    .btn-primary {
      background: #4a4a72;
      color: #fff;
      border: none;
    }

    .small-text {
      font-size: 11px;
      color: #777;
      margin-top: 4px;
    }

    /* 사진 업로드 */
    .photo-upload-wrap {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .photo-preview {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      border: 1px dashed #bbb19e;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      color: #999;
      background-size: cover;
      background-position: center;
      background-color: #fff;
      overflow: hidden;
    }

    .photo-preview.has-image {
      border-style: solid;
    }

    .photo-btns {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    /* chip */
    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .chip {
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      border: 1px solid #c0b8a8;
      background: #fff;
      cursor: pointer;
    }

    .chip.active {
      background: #4a4a72;
      border-color: #4a4a72;
      color: #fff;
    }

    .helper-box {
      font-size: 11px;
      padding: 6px 8px;
      border-radius: 10px;
      background: #e5ddcf;
      color: #555;
      margin-top: 4px;
      line-height: 1.4;
    }

    /* 상주 카드 */
    .mourners-wrap {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .mourner-card {
      border-radius: 10px;
      background: #fdfbf7;
      padding: 8px 8px 6px;
      border: 1px solid #ded4c3;
    }

    .mourner-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      margin-bottom: 4px;
    }

    .mourner-header span {
      font-weight: 600;
      color: #33354a;
    }

    /* 하단 버튼 */
    .footer-bar {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      width: 100%;
      max-width: 480px;
      padding: 10px 12px 14px;
      background: linear-gradient(to top, rgba(0,0,0,0.15), transparent 12px), transparent;
      z-index: 20;
    }