    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
    body { font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; background: #fdf2f8; color: #2d1b2e; font-size: 14px; padding-top: 84px; -webkit-text-size-adjust: 100%; }

    .header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: linear-gradient(135deg, #c2185b 0%, #e91e8c 100%); box-shadow: 0 3px 14px rgba(233,30,140,0.32); }
    .header-inner { max-width: 640px; margin: 0 auto; }
    .header-top { display: flex; align-items: center; padding: 10px 14px 4px; }
    .header-title { font-size: 17px; font-weight: 800; color: white; letter-spacing: -0.3px; }
    .header-credit { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.62); white-space: nowrap; }
    .header-actions { display: flex; gap: 6px; padding: 4px 10px 9px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-actions::-webkit-scrollbar { display: none; }
    .act-btn { padding: 5px 13px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,0.42); background: transparent; color: white; font-weight: 700; font-size: 11.5px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
    .act-btn:active { background: rgba(255,255,255,0.24); transform: scale(0.95); }

    .content { max-width: 640px; margin: 0 auto; }

    .section { padding: 20px 14px 8px; }
    .section-badge { display: inline-flex; align-items: center; gap: 5px; background: #fce4ec; color: #c2185b; border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
    .section-badge::before { content: '♥'; font-size: 10px; }
    .prepaid-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .prepaid-bar input[type=number] { width: 92px; padding: 5px 8px; border: 1.5px solid #f8bbd0; border-radius: 8px; font-size: 12.5px; text-align: right; background: #fff8fb; -webkit-appearance: none; appearance: none; }
    .prepaid-bar + .prepaid-bar { margin-top: 8px; }
    .prepaid-kind { width: 36px; font-size: 12px; font-weight: 700; color: #ad1457; flex-shrink: 0; }
    .prepaid-bar input[type=number]:focus { border-color: #e91e8c; outline: none; background: white; }

    .slot-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 4px; }
    .slot-card { background: white; border-radius: 14px; padding: 11px 12px; box-shadow: 0 2px 10px rgba(233,30,140,0.08); border-left: 3px solid #e91e8c; display: flex; align-items: center; gap: 10px; }
    .slot-label { display: flex; align-items: center; gap: 4px; flex-shrink: 0; min-width: 32px; }
    .round-num { width: 20px; height: 20px; border-radius: 50%; background: #e91e8c; color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .round-cha { font-size: 12px; font-weight: 700; color: #ad1457; }
    .slot-inputs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
    .slot-card input[type=number] { width: 100%; padding: 7px 8px; border: 1.5px solid #f8bbd0; border-radius: 8px; font-size: 13px; text-align: right; -webkit-appearance: none; appearance: none; transition: border-color 0.15s; background: #fff8fb; }
    .slot-card input[type=number]:focus { border-color: #e91e8c; outline: none; box-shadow: 0 0 0 2px rgba(233,30,140,0.14); background: white; }
    .host-name-input { width: 100%; padding: 5px 8px; border: 1.5px solid #f8bbd0; border-radius: 7px; font-size: 12px; color: #ad1457; background: #fff8fb; }
    .host-name-input:focus { border-color: #e91e8c; outline: none; }
    .host-name-input::placeholder { color: #f8bbd0; font-size: 11px; }
    .slot-card .chip-label { flex-shrink: 0; }

    .member-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 4px; }
    .member-card { background: white; border-radius: 14px; padding: 12px 12px 10px; box-shadow: 0 2px 10px rgba(233,30,140,0.08); border-left: 3px solid #e91e8c; }
    .mc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
    .mc-name { flex: 1; padding: 6px 8px; border: 1.5px solid #f8bbd0; border-radius: 8px; font-size: 13px; -webkit-appearance: none; appearance: none; }
    .mc-name:focus { border-color: #e91e8c; outline: none; }
    .mc-select { width: 17px; height: 17px; cursor: pointer; accent-color: #e91e8c; flex-shrink: 0; }
    .mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
    .mc-rounds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
    .mc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 3px; border-top: 1px solid #fce4ec; padding-top: 8px; }
    .mc-foot-label { font-size: 11px; color: #bbb; }
    .finalFee { font-size: 15px; font-weight: 800; color: #880e4f; }
    .opsCut { font-size: 10.5px; color: #999; margin-right: 4px; }

    .chip-label { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 14px; border: 1.5px solid #f8bbd0; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: #ad1457; user-select: none; }
    .chip-label:has(input:checked) { background: #e91e8c; border-color: #e91e8c; color: white; }
    .chip-label:has(input:disabled) { opacity: 0.35; cursor: default; border-style: dashed; }
    .chip-label input { display: none; }
    .round-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 14px; border: 1.5px solid #f8bbd0; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: #888; user-select: none; }
    .round-pill:has(input:checked) { background: #e91e8c; border-color: #e91e8c; color: white; }
    .round-pill input { display: none; }

    .card-actions { display: flex; gap: 10px; padding: 8px 14px 4px; }
    .action-card { flex: 1; border-radius: 14px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: all 0.15s; background: transparent; box-shadow: none; }
    .action-add { border: 2px dashed #f8bbd0; }
    .action-add:active { background: rgba(233,30,140,0.06); transform: scale(0.97); }
    .action-del { border: 2px dashed #f06292; }
    .action-del:active { background: rgba(240,98,146,0.08); transform: scale(0.97); }
    .action-icon-add { font-size: 22px; color: #f48fb1; line-height: 1; }
    .action-text-add { font-size: 11px; color: #f48fb1; font-weight: 600; }
    .action-icon-del { font-size: 22px; color: #f06292; line-height: 1; }
    .action-text-del { font-size: 11px; color: #f06292; font-weight: 600; }

    .stats-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 14px 4px; }
    .stats-scroll::-webkit-scrollbar { display: none; }
    .stats-row { display: flex; gap: 10px; min-width: min-content; }
    .stat-chip { background: white; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(233,30,140,0.1); min-width: 110px; display: flex; flex-direction: column; gap: 6px; }
    .stat-chip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
    .stat-slot { font-size: 15px; font-weight: 800; color: #c2185b; }
    .batch-btn { font-size: 10px; padding: 3px 8px; border: 1px solid #f8bbd0; border-radius: 10px; background: transparent; color: #c2185b; cursor: pointer; white-space: nowrap; }
    .batch-btn:active { background: #fce4ec; }
    .stat-count { font-size: 13px; color: #999; }
    .stat-count span { font-weight: 700; color: #2d1b2e; }
    .stat-fee { font-size: 13px; color: #999; }
    .stat-fee span { font-weight: 700; color: #880e4f; }

    .stats-wrap { display: flex; gap: 10px; min-width: min-content; }
    .ops-chip { background: #f5f5f5; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); min-width: 110px; display: none; flex-direction: column; gap: 6px; }
    .ops-chip.visible { display: flex; }
    .ops-chip .stat-slot { color: #757575; }
    .ops-chip .stat-fee span { color: #424242; }

    .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px); background: rgba(44,20,46,0.88); color: white; padding: 9px 18px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 9999; pointer-events: none; }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    #summaryBox { display: none; width: calc(100% - 28px); margin: 16px 14px 4px; height: 240px; padding: 14px 14px 14px 18px; border: 1.5px solid #f48fb1; border-left: 4px solid #e91e8c; border-radius: 0 12px 12px 0; font-size: 12.5px; line-height: 1.65; background: #fff8fb; white-space: pre-wrap; resize: vertical; font-family: inherit; color: #2d1b2e; }

    .share-container { display: none; gap: 10px; padding: 10px 14px 32px; }
    .quick-share-btn { flex: 1; padding: 14px 0; border: none; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; color: white; transition: transform 0.15s; }
    .quick-share-btn:active { transform: scale(0.96); }
    .share-btn-main { background: linear-gradient(135deg, #e91e8c, #f06292); box-shadow: 0 4px 16px rgba(233,30,140,0.35); }
    .copy-btn { background: linear-gradient(135deg, #ad1457, #c2185b); box-shadow: 0 4px 16px rgba(173,20,87,0.28); }

    @media (max-width: 480px) {
      body { padding-top: 80px; }
      .header-title { font-size: 15px; }
      .act-btn { font-size: 11px; padding: 5px 10px; }
    }
    @media (max-width: 360px) {
      .act-btn { font-size: 10px; padding: 4px 8px; }
    }

    .mc-admin-rounds { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; align-items: center; }
    .mc-admin-rounds.visible { display: flex; }
    .admin-round-label { font-size: 11px; color: #7b1fa2; font-weight: 700; margin-right: 2px; }
    .round-pill.admin-round { border-color: #7b1fa2; color: #7b1fa2; }
    .round-pill.admin-round:has(input:checked) { background: #7b1fa2; border-color: #7b1fa2; color: white; }
    .mc-adv-rounds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; align-items: center; }
    .adv-round-label { font-size: 11px; color: #00796b; font-weight: 700; margin-right: 2px; }
    .round-pill.adv-round { border-color: #00796b; color: #00796b; }
    .round-pill.adv-round:has(input:checked) { background: #00796b; border-color: #00796b; color: white; }

    .import-modal { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 16px; }
    .import-modal.open { display: flex; }
    .import-box { background: white; border-radius: 16px; padding: 20px; width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 12px; }
    .import-box h3 { font-size: 15px; font-weight: 800; color: #c2185b; }
    .import-box textarea { width: 100%; height: 220px; border: 1.5px solid #f8bbd0; border-radius: 10px; padding: 10px; font-size: 12px; line-height: 1.6; resize: none; font-family: inherit; }
    .import-box textarea:focus { outline: none; border-color: #e91e8c; }
    .import-actions { display: flex; gap: 8px; justify-content: flex-end; }
    .import-btn { padding: 8px 18px; border-radius: 20px; border: none; font-weight: 700; font-size: 13px; cursor: pointer; }
    .import-btn-cancel { background: #f5f5f5; color: #888; }
    .import-btn-confirm { background: #e91e8c; color: white; }

    @supports (-webkit-touch-callout: none) {
      input[type=number], .mc-name, .host-name-input { font-size: 16px !important; }
    }

