/* ==========================================================================
   MEDIA GRILL · BUILD YOUR PRODUCTION — V3 · PREMIUM UTILITY
   Light. Calm. Precise. No card UI. Typography and spacing carry the system.
   ========================================================================== */
.pu {
  overflow-x: clip;
  --bg: #ffffff;
  --page: #f5f5f7;
  --ink: #0f0f0f;
  --text: #1d1d1f;
  --grey: #6e6e73;
  --line: #ececf0;
  --line-2: #dcdce1;
  --track: #f4f4f6;
  --amber: #ffc300;
  --amber-ink: #0f0f0f;
  --amber-soft: rgba(255, 195, 0, 0.12);
  --danger: #d70015;
  --ok: #15803d;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.pu *, .pu *::before, .pu *::after { box-sizing: border-box; margin: 0; padding: 0; }
.pu button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pu input, .pu textarea, .pu select { font: inherit; color: inherit; }
.pu button:focus-visible, .pu input:focus-visible, .pu textarea:focus-visible, .pu select:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px;
}
.pu [hidden] { display: none !important; }

/* ---------------- context line (internal; global site header is external) ---------------- */
.pu-context {
  text-align: center; padding: 14px 16px 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
}

/* ---------------- progress (quiet text steps) ---------------- */
.pu-progress {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px 12px;
}
.pu-pstep {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 4px; min-height: 34px;
  font-size: 13px; font-weight: 600; color: var(--grey);
  transition: color 0.18s var(--ease);
}
.pu-pnum {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--track); color: var(--grey);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.pu-pstep.is-current { color: var(--ink); }
.pu-pstep.is-current .pu-pnum { background: var(--ink); color: #fff; }
.pu-pstep.is-done { color: var(--ink); }
.pu-pstep.is-done .pu-pnum { background: var(--amber); color: var(--amber-ink); }
.pu-pstep[disabled] { cursor: default; }
.pu-psep { width: 18px; height: 1.5px; background: var(--line-2); border-radius: 1px; }

/* ---------------- layout ---------------- */
.pu-layout {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px 48px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 960px) {
  .pu { background: var(--page); }
  .pu-layout { display: block; padding-top: 24px; }
  .pu-main {
    max-width: 640px; margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 20px;
    padding: 36px 40px 40px;
  }
}

/* one working canvas: builder + gap + Your Production, centered as a unit */
@media (min-width: 1260px) {
  .pu-layout {
    display: grid;
    grid-template-columns: minmax(0, 700px) 320px;
    gap: 56px;
    justify-content: center;
  }
  .pu-main { max-width: none; margin: 0; }
  .pu-rail { display: block; }
  .pu-rail-in { position: sticky; top: 24px; }
}
.pu-stage { animation: pu-in 0.24s var(--ease); }
@keyframes pu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pu-head { margin-bottom: 26px; }
.pu-h1 { font-size: clamp(27px, 4.4vw, 36px); font-weight: 780; letter-spacing: -0.032em; line-height: 1.08; }
.pu-sub { margin-top: 8px; font-size: 15px; color: var(--grey); max-width: 460px; }
.pu-h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.022em; }
.pu-sub2 { margin-top: 5px; font-size: 13.5px; color: var(--grey); }

/* ---------------- deliverable rows (Content) ---------------- */
.pu-list { border-top: 1px solid var(--ink); }
.pu-row { border-bottom: 1px solid var(--line); position: relative; }
.pu-row::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
  background: var(--amber); transform: scaleY(0); transform-origin: top;
  transition: transform 0.22s var(--ease);
}
.pu-row.is-on::before { transform: scaleY(1); }
.pu-row-main {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0;
  padding: 19px 4px 19px 14px; text-align: left;
}
.pu-row-text { flex: 1; min-width: 0; }
.pu-row-title { display: block; font-size: 17px; font-weight: 680; letter-spacing: -0.018em; transition: transform 0.18s var(--ease); }
.pu-row-desc { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.pu-row-hint { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.pu-hint-arrow { color: var(--amber); font-weight: 700; }
.pu-row-main:hover .pu-row-title { transform: translateX(2px); }
.pu-add {
  flex: none; width: 30px; height: 30px; border-radius: 50%; margin-top: 2px;
  border: 1.5px solid #d6d6db; position: relative;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pu-add::before, .pu-add::after {
  content: ""; position: absolute; background: var(--grey); left: 50%; top: 50%;
  transition: background 0.18s var(--ease), height 0.2s var(--ease);
}
.pu-add::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.pu-add::after { width: 1.6px; height: 12px; transform: translate(-50%, -50%); }
.pu-row.is-on .pu-add { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.pu-row.is-on .pu-add::before { background: var(--amber-ink); }
.pu-row.is-on .pu-add::after { height: 0; }

.pu-row-body { padding: 2px 4px 20px 14px; animation: pu-drop 0.22s var(--ease); }
@keyframes pu-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* segmented control */
.pu-seg { display: flex; background: var(--track); border-radius: var(--radius); padding: 3px; gap: 2px; }
.pu-seg button {
  flex: 1; min-width: 0; padding: 9px 6px; border-radius: 9px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--grey); transition: background 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.pu-seg button span { font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.pu-seg button em { font-style: normal; font-size: 11px; font-weight: 600; opacity: 0.75; }
.pu-seg button:hover:not(.is-active) { background: rgba(255, 255, 255, 0.65); color: var(--ink); }
.pu-seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 15, 15, 0.12); }
.pu-seg-3 button span, .pu-seg-4 button span { font-size: 13px; }
.pu-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--grey); padding: 6px 0; transition: color 0.15s; }
.pu-more:hover { color: var(--ink); }
.pu-more.is-active { color: var(--ink); }

/* film rows */
.pu-films { display: grid; gap: 12px; }
.pu-filmrow { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.pu-film-num { flex: none; width: 64px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.pu-films.is-single .pu-film-num, .pu-films.is-single .pu-film-remove { display: none; }
.pu-filmrow .pu-seg { flex: 1 1 auto; min-width: 180px; }
.pu-film-price { flex: none; font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pu-film-remove { flex: none; width: 30px; height: 30px; font-size: 16px; color: var(--grey); display: grid; place-items: center; border-radius: 50%; transition: background 0.14s, color 0.14s; }
.pu-film-remove:hover { background: var(--track); color: var(--danger); }
.pu-film-remove[disabled] { opacity: 0.3; }
.pu-addmore { margin-top: 12px; font-size: 13.5px; font-weight: 650; color: var(--ink); padding: 8px 0; transition: color 0.15s; }
.pu-addmore:hover { color: var(--ink); }
.pu-addmore[disabled] { opacity: 0.4; }

/* steppers */
.pu-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--track); border-radius: 999px; padding: 3px; }
.pu-stepper button {
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; font-weight: 600;
  display: grid; place-items: center; transition: background 0.14s var(--ease), transform 0.12s var(--ease);
}
.pu-stepper button:hover { background: #fff; }
.pu-stepper button:active { transform: scale(0.92); }
.pu-stepper button[disabled] { opacity: 0.3; }
.pu-step-val { min-width: 30px; text-align: center; font-weight: 750; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pu-inrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pu-inrow-note { font-size: 12.5px; color: var(--grey); }

/* chips */
.pu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pu-chips button {
  padding: 9px 15px; border-radius: 999px; background: var(--track);
  font-size: 13px; font-weight: 600; min-height: 40px; color: var(--text);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.pu-chips button:hover { background: #e9e9ee; }
.pu-chips button.is-active { background: var(--ink); color: #fff; }
.pu-chips button[disabled] { opacity: 0.35; }
.pu-chips-quick { margin-top: 9px; }
.pu-chips-quick button { min-height: 38px; padding: 8px 14px; font-size: 12.5px; }

/* labels + notes */
.pu-mini-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin: 16px 0 8px; }
.pu-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pu-field-note { font-size: 12px; color: var(--grey); margin-top: 8px; line-height: 1.55; }
.pu-field-note.is-amber { color: var(--ink); font-weight: 550; }
.pu-sess-note { margin-top: 12px; font-size: 12px; color: var(--grey); line-height: 1.55; }
.pu-sess-note.is-warn { color: var(--ink); font-weight: 600; }

/* accordions (custom, quiet) */
.pu-accord {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-top: 1px solid var(--line); margin-top: 12px;
  font-size: 14px; font-weight: 650; min-height: 46px; text-align: left; color: var(--ink);
}
.pu-accord-val { font-size: 12.5px; color: var(--grey); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pu-accord-val::after { content: ""; width: 6px; height: 6px; border: solid var(--grey); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.18s var(--ease); }
.pu-accord.is-open .pu-accord-val::after { transform: rotate(225deg); }
.pu-accord-body { padding: 4px 4px 16px; animation: pu-drop 0.2s var(--ease); }
.pu-accord-body .pu-seg { margin-bottom: 2px; }

/* checkline */
.pu-checkline { display: flex; align-items: flex-start; gap: 11px; margin-top: 12px; text-align: left; min-height: 40px; }
.pu-check {
  flex: none; width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #d6d6db;
  position: relative; margin-top: 1px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pu-checkline.is-on .pu-check { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.pu-checkline.is-on .pu-check::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid var(--amber-ink); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.pu-check-text { font-size: 13.5px; font-weight: 550; color: var(--text); line-height: 1.5; }

/* something else */
.pu-else { margin-top: 16px; }
.pu-else-link {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 4px; text-align: left; min-height: 46px;
  color: var(--grey); font-size: 13.5px; font-weight: 600;
  transition: color 0.16s var(--ease);
}
.pu-else-link:hover { color: var(--ink); }
.pu-else-list { display: grid; animation: pu-drop 0.2s var(--ease); }
.pu-else-type {
  text-align: left; padding: 13px 4px; min-height: 44px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.18s var(--ease);
}
.pu-else-type:hover { padding-left: 10px; }
.pu-else-type span { display: block; font-weight: 680; font-size: 14.5px; color: var(--ink); letter-spacing: -0.01em; }
.pu-else-type small { color: var(--grey); font-size: 12.5px; }

/* ---------------- Details step (questions) ---------------- */
.pu-q { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.pu-q:first-of-type { border-top: 0; }
.pu-q-label { display: block; font-size: 16px; font-weight: 720; letter-spacing: -0.02em; margin-bottom: 10px; }
.pu-opt-tag { font-weight: 500; color: var(--grey); font-size: 12px; margin-left: 4px; }
.pu-input {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; font-size: 16px; min-height: 46px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pu-input:hover { border-color: var(--line-2); }
.pu-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.05); outline: none; }
.pu-textarea { min-height: 80px; resize: vertical; font-size: 15px; }
.pu-citywrap { position: relative; }
.pu-city-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 15, 15, 0.14); overflow: hidden;
  animation: pu-drop 0.16s var(--ease);
}
.pu-city-opt { width: 100%; text-align: left; padding: 11px 13px; font-size: 14px; min-height: 42px; transition: background 0.12s; }
.pu-city-opt:hover { background: var(--track); }

/* date button + calendar */
.pu-datebtn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; max-width: 300px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; min-height: 46px;
  transition: border-color 0.15s var(--ease);
}
.pu-datebtn:hover { border-color: var(--ink); }
.pu-datebtn-val { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.pu-datebtn-val.is-empty { color: var(--grey); font-weight: 500; }
.pu-datebtn-cal { width: 17px; height: 17px; border: 1.5px solid var(--grey); border-radius: 5px; position: relative; }
.pu-datebtn-cal::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: 3px; height: 1.5px; background: var(--grey); }
.pu-cal {
  margin-top: 8px; width: 100%; max-width: 320px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(15, 15, 15, 0.14);
  padding: 12px; animation: pu-drop 0.18s var(--ease);
}
.pu-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pu-cal-title { font-weight: 700; font-size: 13.5px; }
.pu-cal-nav { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; display: grid; place-items: center; transition: background 0.13s; }
.pu-cal-nav:hover { background: var(--track); }
.pu-cal-nav[disabled] { opacity: 0.3; }
.pu-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pu-cal-dow { font-size: 10px; font-weight: 700; color: var(--grey); text-align: center; padding: 3px 0; text-transform: uppercase; }
.pu-cal-day { aspect-ratio: 1; border-radius: 50%; font-size: 13px; display: grid; place-items: center; transition: background 0.13s var(--ease); }
.pu-cal-day:hover:not([disabled]) { background: var(--track); }
.pu-cal-day[disabled] { color: #d2d2d7; cursor: default; }
.pu-cal-day.is-sel { background: var(--ink); color: #fff; font-weight: 700; }
.pu-cal-clear { margin-top: 8px; width: 100%; padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--grey); border-radius: 8px; transition: background 0.13s, color 0.13s; }
.pu-cal-clear:hover { background: var(--track); color: var(--ink); }

.pu-other-hours { display: flex; align-items: center; gap: 12px; margin-top: 10px; animation: pu-drop 0.18s var(--ease); }
.pu-hours-word { font-size: 13.5px; color: var(--grey); font-weight: 600; }

/* editing banner */
.pu-editing {
  border-left: 3px solid var(--ink); padding: 9px 13px; margin-bottom: 18px;
  font-weight: 650; font-size: 13px; background: var(--track); border-radius: 0 8px 8px 0;
  animation: pu-drop 0.18s var(--ease);
}

/* ---------------- buttons ---------------- */
.pu-actions { margin-top: 24px; display: flex; gap: 10px; }
.pu-actions-split { justify-content: space-between; align-items: center; }
.pu-actions-center { justify-content: center; }
.pu .pu-btn svg { width: 15px; height: 15px; flex: none; }
.pu .pu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  min-height: 46px; border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.17s var(--ease), border-color 0.17s var(--ease), box-shadow 0.17s var(--ease), opacity 0.17s var(--ease);
}
.pu .pu-btn:active { transform: scale(0.98); }
.pu .pu-btn-ink { background: var(--amber); color: var(--amber-ink); }
.pu .pu-btn-ink:hover { background: var(--amber); color: var(--amber-ink); transform: scale(1.025); box-shadow: 0 5px 16px rgba(15, 15, 15, 0.12); }
.pu .pu-btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 2px 12px rgba(255, 195, 0, 0.3); }
.pu .pu-btn-primary:hover { background: var(--amber); color: var(--amber-ink); transform: scale(1.025); box-shadow: 0 5px 16px rgba(15, 15, 15, 0.12); }
.pu .pu-btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(15,15,15,0.03); }
.pu .pu-btn-ghost:hover { transform: scale(1.025); border-color: var(--ink); box-shadow: 0 2px 8px rgba(15,15,15,0.06); }
.pu .pu-btn-danger { background: var(--danger); color: #fff; }
.pu .pu-btn-big { padding: 14px 28px; font-size: 15px; min-height: 52px; }
.pu .pu-btn-block { width: 100%; }
.pu .pu-btn[disabled],
.pu .pu-btn[disabled]:hover,
.pu .pu-btn[disabled]:active {
  opacity: 1; cursor: default; transform: none; box-shadow: none;
  background: #ececf0; color: #8e8e93; border-color: transparent;
}
.pu .pu-btn-ink[disabled], .pu .pu-btn-primary[disabled] { background: #ececf0; color: #8e8e93; }
.pu-subactions { display: flex; gap: 20px; margin-top: 12px; justify-content: center; }
.pu .pu-linkbtn { font-size: 13px; font-weight: 650; color: var(--grey); padding: 8px 4px; min-height: 44px; transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.pu .pu-sharebtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; transition: transform 0.2s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease); }
.pu .pu-sharebtn:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.pu .pu-sharebtn svg { width: 13px; height: 13px; flex: none; }
.pu .pu-linkbtn:hover { color: var(--ink); transform: scale(1.035); }
.pu .pu-linkbtn-danger:hover { color: var(--danger); }

.pu .pu-btn-ghost { min-height: 48px; }
.pu .pu-btn-danger:hover { background: #b90012; color: #fff; transform: scale(1.025); }
.pu .pu-btn:active, .pu .pu-linkbtn:active { transform: scale(0.98); }
.pu .pu-btn:disabled:active { transform: none; }
.pu .pu-btn:focus-visible, .pu .pu-linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.pu .pu-sharelink .pu-copybtn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.pu .pu-copybtn svg { width: 19px; height: 19px; }
.pu .pu-copybtn .pu-copy-check, .pu .pu-copybtn[data-copied="true"] .pu-copy-icon { display: none; }
.pu .pu-copybtn[data-copied="true"] .pu-copy-check { display: block; }
@media (prefers-reduced-motion: reduce) {
  .pu .pu-btn:hover, .pu .pu-btn:active, .pu .pu-linkbtn:hover, .pu .pu-linkbtn:active { transform: none; }
}
.pu-legal { font-size: 11.5px; color: var(--grey); margin-top: 14px; line-height: 1.55; }
.pu-legal-warn { color: var(--danger); font-weight: 600; }

/* ---------------- rail (desktop summary, no card) ---------------- */
@media (max-width: 1259.5px) { .pu-rail { display: none; } }
.pu-rail-in {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.05), 0 14px 36px rgba(15, 15, 15, 0.09);
}

.pu-rail-title { font-size: 18px; font-weight: 780; letter-spacing: -0.02em; color: var(--ink); }
.pu-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pu-rail-dur { display: inline-flex; background: var(--track); border-radius: 999px; padding: 2px; flex: none; }
.pu-rail-dur button { padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--grey); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.pu-rail-dur button.is-active { background: var(--amber); color: var(--amber-ink); }
.pu-rail-durcustom { font-size: 11.5px; color: var(--grey); margin: -8px 0 10px; }
.pu-rail-body { display: grid; gap: 12px; margin-bottom: 14px; }
.pu-sum-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--grey); }
.pu-sum-meta-line strong { color: var(--ink); font-weight: 650; }
.pu-sum-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 5px; }
.pu-sum-lines { list-style: none; display: grid; gap: 7px; }
.pu-sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.pu-sum-line > span:first-child { color: var(--ink); font-weight: 600; min-width: 0; }
.pu-sum-line .sub { display: block; font-size: 11.5px; color: var(--grey); font-weight: 450; margin-top: 1px; line-height: 1.4; }
.pu-sum-line .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pu-sum-line .price .regular { color: var(--grey); font-weight: 450; text-decoration: line-through; margin-right: 6px; }
.pu-sum-line .price.is-free { color: var(--ok); }
.pu-sum-line.is-note { color: var(--grey); font-size: 12.5px; }
.pu-sum-empty { font-size: 13px; color: var(--grey); line-height: 1.5; }
.pu-sum-calc { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.pu-sum-calc .pu-sum-line { font-size: 12px; }
.pu-sum-calc .pu-sum-line > span:first-child { color: var(--grey); font-weight: 550; }
.pu-sum-calc .pu-sum-line .price { font-weight: 650; color: var(--text); }
.pu-rail-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--ink); padding-top: 12px;
}
.pu-rail-total-label { font-size: 10.5px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; }
.pu-rail-total-val { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pu-rail-total-val.is-soft { font-size: 15px; letter-spacing: 0; font-weight: 650; }
.pu-rail-note { font-size: 11.5px; color: var(--grey); margin: 8px 0 13px; line-height: 1.55; }
.pu-rail-note.is-warn { color: var(--ink); font-weight: 600; }
.pu-rail-sub { display: flex; justify-content: center; gap: 20px; margin-top: 6px; }
.pu-tick { animation: pu-tick 0.3s var(--ease); }
.pu-line-in { animation: pu-line-in 0.26s var(--ease); }
@keyframes pu-line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pu-tick { 0% { opacity: 0.35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

/* ---------------- review stage ---------------- */
.pu-review { display: grid; gap: 14px; padding-bottom: 8px; margin-bottom: 20px; }
.pu-enh { margin-bottom: 22px; }
.pu-enh-list { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.pu-enh-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 4px; text-align: left; min-height: 46px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease);
}
.pu-enh-row:hover { background: var(--track); }
.pu-enh-text { flex: 1; min-width: 0; }
.pu-enh-name { font-size: 14.5px; font-weight: 670; color: var(--ink); display: block; letter-spacing: -0.01em; }
.pu-enh-desc { font-size: 12.5px; color: var(--grey); display: block; margin-top: 1px; line-height: 1.45; }
.pu-enh-price { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pu-enh-price .regular { color: var(--grey); font-weight: 450; text-decoration: line-through; margin-right: 6px; }
.pu-enh-price.is-free { color: var(--ok); }
.pu-enh-add {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #d6d6db; position: relative;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.pu-enh-add::before, .pu-enh-add::after { content: ""; position: absolute; background: var(--grey); left: 50%; top: 50%; transition: background 0.16s, height 0.18s var(--ease); }
.pu-enh-add::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.pu-enh-add::after { width: 1.6px; height: 12px; transform: translate(-50%, -50%); }
.pu-enh-row.is-on .pu-enh-add { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.pu-enh-row.is-on .pu-enh-add::before { background: var(--amber-ink); }
.pu-enh-row.is-on .pu-enh-add::after { height: 0; }
.pu-benefits { margin-top: 14px; border-top: 2px solid var(--amber); padding-top: 12px; }
.pu-benefits-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.pu-benefits-list { list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.pu-benefits-list li::before { content: "✓"; color: var(--ink); font-weight: 700; margin-right: 8px; }
.pu-moments { margin-bottom: 22px; }
.pu-moments .pu-accord { border-top: 0; margin-top: 0; padding-top: 4px; }
.pu-moments .pu-textarea { margin-top: 14px; }
.pu-addshoot-wrap { margin-bottom: 24px; }
.pu-undo { margin-top: 8px; font-size: 12.5px; font-weight: 650; color: var(--grey); text-decoration: underline; padding: 8px 0; transition: color 0.14s; }
.pu-undo:hover { color: var(--ink); }

/* shoots list */
.pu-shoots { margin-bottom: 16px; display: grid; border-top: 1px solid var(--line); }
.pu-shoot-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease);
}
.pu-shoot-row.is-active { background: var(--track); }
.pu-shoot-info { flex: 1; min-width: 0; }
.pu-shoot-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.pu-shoot-desc { font-size: 12.5px; color: var(--grey); margin-top: 1px; }
.pu-shoot-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pu-shoot-edit, .pu-shoot-remove { font-size: 12.5px; font-weight: 650; color: var(--grey); padding: 8px 6px; min-height: 34px; transition: color 0.14s; }
.pu-shoot-edit:hover { color: var(--ink); }
.pu-shoot-remove:hover { color: var(--danger); }

/* ---------------- request form ---------------- */
.pu-form-wrap { margin-top: 6px; border-top: 2px solid var(--ink); padding-top: 18px; animation: pu-drop 0.22s var(--ease); }
.pu-form-grid { display: grid; gap: 14px; margin: 16px 0 4px; }
@media (min-width: 700px) {
  .pu-form-grid { grid-template-columns: 1fr 1fr; }
  .pu-ff-full { grid-column: 1 / -1; }
}

/* ---------------- success ---------------- */
.pu-success { text-align: center; padding: 44px 18px 20px; animation: pu-drop 0.26s var(--ease); }
.pu-success-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--amber);
  margin: 0 auto 16px; position: relative;
}
.pu-success-badge::after {
  content: ""; position: absolute; left: 17.5px; top: 14px; width: 12px; height: 20px;
  border: solid var(--amber-ink); border-width: 0 3px 3px 0; transform: rotate(42deg);
  animation: pu-pop 0.28s var(--ease) 0.08s both;
}
.pu-success-ref { font-size: 12.5px; color: var(--grey); margin-top: 9px; font-weight: 600; letter-spacing: 0.04em; }
@keyframes pu-pop { from { transform: scale(0.5) rotate(42deg); opacity: 0; } to { transform: scale(1) rotate(42deg); opacity: 1; } }

/* ---------------- mobile bar ---------------- */
.pu-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 15, 15, 0.05);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1260px) { .pu-bar { display: none; } }
.pu-bar-info { flex: 1; display: grid; min-width: 0; text-align: left; gap: 1px; }
.pu-bar-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.pu-bar-val { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu-bar-val.is-soft { font-size: 13.5px; letter-spacing: 0; white-space: normal; }
.pu-bar .pu-btn { flex: none; padding: 12px 20px; min-height: 46px; }

/* ---------------- sheet / scrim / modal ---------------- */
.pu-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 15, 15, 0.4); animation: pu-fade 0.18s var(--ease); }
@keyframes pu-fade { from { opacity: 0; } to { opacity: 1; } }
.pu-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #fff; border-radius: 16px 16px 0 0;
  max-height: 88dvh; display: flex; flex-direction: column;
  animation: pu-up 0.26s var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes pu-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.pu-sheet-grip { width: 34px; height: 4px; border-radius: 2px; background: #d2d2d7; margin: 10px auto 0; flex: none; }
.pu-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; flex: none; }
.pu-sheet-close { width: 36px; height: 36px; border-radius: 50%; font-size: 19px; color: var(--grey); display: grid; place-items: center; transition: background 0.14s, color 0.14s; }
.pu-sheet-close:hover { background: var(--track); color: var(--ink); }
.pu-sheet-body { overflow-y: auto; padding: 0 18px; display: grid; gap: 12px; -webkit-overflow-scrolling: touch; }
.pu-sheet-foot { flex: none; padding: 10px 18px 12px; border-top: 1px solid var(--line); background: #fff; }
.pu-sheet-foot .pu-rail-total { border-top: 0; padding-top: 0; margin-bottom: 9px; }
.pu-modal {
  position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-height: 86dvh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 16px 48px rgba(15, 15, 15, 0.16);
  animation: pu-popup 0.22s var(--ease);
}
.pu-modal-sm { width: min(380px, calc(100vw - 32px)); }
@keyframes pu-popup { from { opacity: 0; transform: translate(-50%, -47%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.pu-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pu-modal-sub { font-size: 13.5px; color: var(--grey); line-height: 1.55; }
.pu-quote-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pu-quote-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 5px 10px; border-radius: 999px; }
.pu-quote-ref { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.pu-quote-total { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.pu-sharelink { display: flex; gap: 8px; margin-top: 16px; }
.pu-sharelink .pu-input { flex: 1; min-width: 0; font-size: 13px; min-height: 44px; }
.pu-sharelink .pu-btn { padding: 11px 18px; min-height: 44px; flex: none; }

/* ---------------- toast ---------------- */
.pu-toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 90; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 32px rgba(15, 15, 15, 0.2);
  max-width: calc(100vw - 40px); text-align: center;
  animation: pu-toast-in 0.22s var(--ease);
}
@media (min-width: 1260px) { .pu-toast { bottom: 32px; } }
@keyframes pu-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }



/* ---------------- custom brief ---------------- */
.pu-custom-fields { display: grid; gap: 4px; }
.pu-ff { min-width: 0; }
@media (min-width: 700px) { .pu-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }

/* ---------------- print ---------------- */
.pu-print { display: none; }
@media print {
  body.mgpn-pu-printing * { visibility: hidden; }
  body.mgpn-pu-printing .pu-print, body.mgpn-pu-printing .pu-print * { visibility: visible; }
  body.mgpn-pu-printing .pu-print {
    display: block; position: absolute; left: 0; top: 0; width: 100%;
    background: #fff; color: #0f0f0f; padding: 40px;
    font-family: "Inter", -apple-system, sans-serif;
  }
}

/* ---------------- small screens ---------------- */
@media (max-width: 700px) {
  .pu-layout { padding: 8px 16px 40px; }
  .pu-head { margin-bottom: 20px; }
  .pu-row-main { padding: 17px 4px 17px 12px; }
  .pu-row-body { padding: 2px 4px 18px 12px; }
  .pu-filmrow { gap: 9px; }
  .pu-filmrow .pu-seg { min-width: 0; }
  .pu-filmrow .pu-seg button { padding: 8px 4px; min-height: 42px; }
  .pu-filmrow .pu-seg button span { font-size: 12.5px; }
  .pu-filmrow .pu-stepper button { width: 36px; height: 36px; font-size: 17px; }
  .pu-filmrow .pu-step-val { min-width: 26px; font-size: 13.5px; }
  .pu-film-price { font-size: 12.5px; }
  .pu-films:not(.is-single) .pu-filmrow { flex-wrap: wrap; }
  .pu-films:not(.is-single) .pu-filmrow .pu-seg { flex: 1 1 calc(100% - 72px); }
  .pu-actions-split { flex-direction: column-reverse; align-items: stretch; }
  .pu-actions-split .pu-btn { width: 100%; }
  .pu-btn-big { width: 100%; }
}

/* normalize (standalone preview; WordPress integration controls its own page) */
/* The host page retains its own margins. */

/* ---------------- motion preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
  .pu *, .pu *::before, .pu *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

/* Host integration: no styles outside this builder, except its explicit print mode. */
.pu .pu-bar { bottom: var(--mgpn-nav-offset, 0px); }
@media print {
  body.mgpn-pu-printing > :not(#pu-print) { display: none !important; }
  body.mgpn-pu-printing #pu-print { position: static; box-sizing: border-box; width: 100%; }
}

/* rc23: one deliberate end gap; the fixed estimate bar is outside document flow. */
.pu { min-height: 0; padding-bottom: 0; }
.pu .pu-layout { padding-bottom: 32px; }
@media (max-width: 959.5px) {
  .pu .pu-layout { padding-bottom: 28px; }
}
/* Only the WordPress wrapper containing this builder; other pages are unaffected. */
main > .wp-block-group:has(> .entry-content > #pu) { padding-bottom: 0 !important; }
main:has(#pu) + footer.wp-block-template-part { margin-top: 0; }
