:root {
  color-scheme: light;
  --pf-bg: #F3F7F6;
  --pf-ink: #1C2423;
  --pf-muted: rgba(28,36,35,.62);
  --pf-border: #E3EBE9;
  --pf-surface: #fff;
  --pf-accent: #0B6E6E;
  --pf-danger: #B42318;
}
body {
  margin: 0; background: var(--pf-bg); color: var(--pf-ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
button, input, textarea, select { font: inherit; }
.pf-page { width: min(640px, 100%); margin: 0 auto; padding: 8px 0 28px; }
.pf-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px;
  min-height: 52px; padding: 0 12px 0 52px; background: rgba(243,247,246,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 1100px) { .pf-bar { padding-left: 12px; } }
.pf-bar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.pf-bar .back {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent;
  color: var(--pf-ink); cursor: pointer; display: grid; place-items: center; font-size: 22px;
}
.pf-bar .bar-act {
  height: 36px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--pf-accent); font-weight: 700; font-size: 13px;
}
.pf-card {
  margin: 0 16px 10px; border-radius: 14px; background: var(--pf-surface);
  border: 1px solid var(--pf-border); box-shadow: 0 1px 0 rgba(28,36,35,.03);
  overflow: hidden;
}
.pf-card.pad { padding: 16px; }
.pf-card.pad-lg { padding: 24px; }
.pf-sec-title {
  margin: 0; padding: 14px 16px 4px; font-size: 14px; font-weight: 800;
}
.pf-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px; border: 0; background: transparent; text-align: left;
  color: inherit; cursor: pointer; position: relative;
}
a.pf-item, button.pf-item { display: flex; }
.pf-item:active { background: rgba(15,118,110,.06); }
.pf-item + .pf-item::before {
  content: ''; position: absolute; left: 44px; right: 0; top: 0; height: 1px;
  background: rgba(28,36,35,.08);
}
.pf-item .ico {
  flex: none; width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; line-height: 1;
}
.pf-item .ico svg { width: 12px; height: 12px; display: block; }
.pf-item .ico-lg {
  width: 40px; height: 40px; border-radius: 999px;
}
.pf-item .ico-lg svg { width: 22px; height: 22px; }
.pf-item .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-item .t { display: block; font-weight: 500; font-size: 12px; line-height: 1.3; }
.pf-item .s {
  display: none; color: var(--pf-muted); font-size: 12px; line-height: 1.3;
}
.pf-item.show-sub .s { display: block; }
.pf-item .chev {
  flex: none; color: rgba(28,36,35,.35); width: 16px; height: 16px;
  display: grid; place-items: center;
}
.pf-item .chev svg { width: 16px; height: 16px; }
.pf-header {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 2px 0; border: 0; background: transparent; text-align: left;
  color: inherit; cursor: pointer;
}
.pf-avatar, .pf-avatar img {
  width: 56px; height: 56px; border-radius: 999px; object-fit: cover;
  background: color-mix(in srgb, var(--pf-accent) 14%, #fff);
  color: var(--pf-accent); flex: none;
}
.pf-avatar {
  display: grid; place-items: center; font-weight: 800; font-size: 22px; overflow: hidden;
}
.pf-avatar.lg { width: 80px; height: 80px; font-size: 32px; margin: 0 auto; }
.pf-avatar.lg img { width: 80px; height: 80px; }
.pf-header .name { font-size: 16px; font-weight: 700; }
.pf-header .meta { flex: 1; min-width: 0; }
.pf-logout-wrap { margin: 12px 16px 0; }
.pf-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 14px 16px;
  border: 1px solid #F3B4AE; border-radius: 14px; background: #fff;
  color: var(--pf-danger); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pf-logout svg { width: 18px; height: 18px; }
.pf-logout:disabled { opacity: .45; cursor: default; }
.pf-welcome {
  margin: 0 16px 10px; padding: 24px; border-radius: 14px; background: #fff;
  border: 1px solid var(--pf-border); text-align: center;
}
.pf-welcome h2 {
  margin: 16px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.2px;
}
.pf-welcome p { margin: 0; color: var(--pf-muted); font-size: 14px; line-height: 1.45; }
.pf-welcome .cta {
  display: block; width: 100%; margin-top: 20px; height: 44px; border: 0; border-radius: 12px;
  background: var(--pf-accent); color: #fff; font-weight: 700; cursor: pointer;
}
.guest, .empty, .error, .status {
  margin: 24px 16px; padding: 28px 24px; border-radius: 14px;
  background: #fff; text-align: center; border: 1px solid var(--pf-border);
}
.empty .empty-ico, .error .empty-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 999px;
  display: grid; place-items: center;
}
.empty .empty-ico svg, .error .empty-ico svg { width: 26px; height: 26px; }
.guest h2, .empty h2 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.guest p, .empty p, .error p, .status { margin: 0; color: var(--pf-muted); font-size: 14px; line-height: 1.45; }
.guest .cta, .error .cta, .empty .cta, .pf-btn {
  margin-top: 16px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--pf-accent); color: #fff; font-weight: 700; cursor: pointer;
}
.pf-btn.ghost {
  background: #fff; color: var(--pf-accent); border: 1px solid var(--pf-border);
}
.pf-btn.danger { background: var(--pf-danger); }
.pf-btn:disabled { opacity: .45; cursor: default; }
.skel {
  height: 64px; margin: 0 16px 10px; border-radius: 14px;
  background: linear-gradient(90deg,#eef3f2,#f7fafa,#eef3f2);
  background-size: 200% 100%; animation: pf-shimmer 1.1s linear infinite;
}
@keyframes pf-shimmer { to { background-position: -200% 0; } }
.pf-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.pf-list.in-card { gap: 0; padding: 0; }
.pf-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--pf-border); border-radius: 14px; background: #fff;
  color: inherit; width: 100%; text-align: left; cursor: pointer;
}
.pf-list.in-card .pf-row {
  border: 0; border-radius: 0; border-bottom: 1px solid var(--pf-border);
}
.pf-list.in-card .pf-row:last-child { border-bottom: 0; }
.pf-row .thumb, .pf-row .thumb img {
  width: 48px; height: 48px; border-radius: 999px; object-fit: cover; flex: none;
  background: #eef3f2;
}
.pf-row .thumb.sq, .pf-row .thumb.sq img { border-radius: 12px; }
.pf-row .thumb { display: grid; place-items: center; overflow: hidden; color: var(--pf-muted); }
.pf-row .body { flex: 1; min-width: 0; }
.pf-row .t { font-weight: 700; font-size: 14px; line-height: 1.35; }
.pf-row .s { margin-top: 3px; color: var(--pf-muted); font-size: 12.5px; line-height: 1.35; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--chip, var(--pf-accent)) 12%, #fff);
  color: var(--chip, var(--pf-accent));
}
.pf-tabs {
  display: none; gap: 6px; padding: 0 16px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pf-tab {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pf-border);
  background: #fff; color: var(--pf-muted); font-weight: 700; font-size: 13px; cursor: pointer;
}
.pf-tab.on { background: color-mix(in srgb, var(--pf-accent) 12%, #fff); color: var(--pf-accent); border-color: var(--pf-accent); }
.pf-form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.pf-field input, .pf-field textarea, .pf-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--pf-border);
  background: #fff; color: var(--pf-ink);
}
.pf-field textarea { min-height: 96px; resize: vertical; }
.pf-sheet {
  display: none; position: fixed; inset: 0; z-index: 40;
}
.pf-sheet.is-open { display: flex; align-items: flex-end; justify-content: center; }
.pf-sheet-backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(16,24,23,.35); cursor: pointer;
}
.pf-sheet-panel {
  position: relative; width: min(480px, 100%); max-height: min(78vh, 560px);
  overflow: auto; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: #fff;
  box-shadow: 0 -8px 28px rgba(16,24,23,.12);
}
.pf-sheet-handle {
  display: block; width: 36px; height: 4px; margin: 4px auto 12px; border-radius: 999px;
  background: rgba(28,36,35,.16);
}
.pf-sheet-panel h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.pf-sheet-panel .pf-item.show-sub .s { display: block; font-size: 12px; }
.pf-sheet-panel .pf-item .ico { width: 40px; height: 40px; }
.pf-sheet-panel .pf-item .ico svg { width: 22px; height: 22px; }
.pf-sheet-panel .pf-item .t { font-size: 14px; font-weight: 700; }
.pf-more {
  display: block; width: calc(100% - 32px); margin: 8px 16px 0; height: 44px;
  border-radius: 12px; background: #fff; border: 1px solid var(--pf-border);
  color: rgba(28,36,35,.7); font-weight: 700; cursor: pointer;
}
.pf-legal { padding: 8px 20px 24px; }
.pf-legal h2 { margin: 18px 0 8px; font-size: 16px; font-weight: 800; }
.pf-legal p, .pf-legal li { color: rgba(28,36,35,.78); font-size: 14px; line-height: 1.55; }
.pf-legal ul { padding-left: 1.2em; }
.pf-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--pf-border);
}
.pf-switch:last-child { border-bottom: 0; }
.pf-switch input { width: 44px; height: 26px; }
.pf-bar .menu-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent;
  color: var(--pf-ink); cursor: pointer; display: grid; place-items: center;
}
.pf-bar .menu-btn svg { width: 22px; height: 22px; }
.pf-bar .add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
  cursor: pointer; flex: none;
  background: linear-gradient(135deg, #FFB74D, #F57C00); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .01em;
  box-shadow: 0 4px 10px rgba(245,124,0,.28);
}
.pf-bar .add-btn svg { width: 16px; height: 16px; flex: none; }
.pf-bar .add-btn[hidden] { display: none; }
.pf-prod-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.pf-prod-tile {
  display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #fff;
  border: 1px solid color-mix(in srgb, #F57C00 32%, #fff); color: inherit;
}
.pf-prod-tile .cover, .pf-prod-tile .cover img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none;
  background: #fff7ed;
}
.pf-prod-tile .cover { display: grid; place-items: center; overflow: hidden; color: #F57C00; }
.pf-prod-tile .cover svg { width: 28px; height: 28px; }
.pf-prod-tile .body { flex: 1; min-width: 0; }
.pf-prod-tile .t {
  font-weight: 700; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-prod-tile .price { margin-top: 4px; color: #E65100; font-weight: 800; font-size: 15px; }
.pf-prod-tile .stock { margin-top: 4px; color: rgba(28,36,35,.55); font-size: 12px; }
.pf-prod-tile .stock.oos { color: #C0392B; }
.pf-dialog {
  display: none; position: fixed; inset: 0; z-index: 50;
  align-items: center; justify-content: center; padding: 24px;
}
.pf-dialog.is-open { display: flex; }
.pf-dialog-backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(16,24,23,.4); cursor: pointer;
}
.pf-dialog-panel {
  position: relative; width: min(360px, 100%); padding: 20px;
  border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(16,24,23,.18);
}
.pf-dialog-panel h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.pf-dialog-panel p { margin: 0 0 16px; color: var(--pf-muted); font-size: 14px; line-height: 1.45; }
.pf-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pf-dialog-actions button { margin: 0; height: 40px; padding: 0 14px; }
.pf-legal-block { margin: 0 16px 10px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--pf-border); }
.pf-legal-block h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.pf-legal-block p, .pf-legal-block li { color: rgba(28,36,35,.78); font-size: 14px; line-height: 1.55; }
.pf-legal-block ul { padding-left: 1.2em; margin: 8px 0; }
.pf-step-card {
  margin: 0 16px 10px; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--pf-border);
}
.pf-step-card .step-row { display: flex; gap: 12px; align-items: flex-start; }
.pf-step-card .step-num {
  flex: none; width: 32px; height: 32px; border-radius: 10px; background: #0F766E; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.pf-step-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.pf-step-card p { margin: 0; color: rgba(28,36,35,.82); font-size: 14px; line-height: 1.45; }
.pf-step-card .step-img { margin-top: 12px; width: 100%; border-radius: 12px; display: block; object-fit: cover; }
.pf-guide-detail { margin: 0 16px 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--pf-border); }
.pf-guide-detail h1 { margin: 0 0 12px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.pf-guide-detail .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 12px; }
.pf-guide-detail .summary { margin: 0 0 16px; color: rgba(28,36,35,.65); font-size: 14px; line-height: 1.4; }
.pf-guide-detail .body-md h2, .pf-guide-detail .body-md h3 { margin: 14px 0 8px; font-size: 16px; font-weight: 800; }
.pf-guide-detail .body-md p, .pf-guide-detail .body-md li { color: rgba(28,36,35,.82); font-size: 14px; line-height: 1.55; }
.pf-guide-detail .body-md ul { padding-left: 1.2em; margin: 8px 0; }
.pf-guide-detail .body-md img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.pf-guide-detail .body-md a { color: #0F766E; font-weight: 600; }
.pf-drag-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.pf-drag-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid var(--pf-border);
  cursor: grab;
}
.pf-drag-item.locked { opacity: .72; cursor: default; }
.pf-drag-item .handle { color: rgba(28,36,35,.35); font-size: 18px; }
.pf-drag-item .badge {
  margin-left: auto; width: 28px; height: 28px; border-radius: 999px; border: 0;
  display: grid; place-items: center; cursor: pointer; font-weight: 800;
}
