/* Редактор фотопечати R-raris (ТЗ №3, раздел 1). Фирменные цвета и шрифты как на главной:
   индиго #3C26AF (шапка), фиолетовый #8E2B87 (основные кнопки), лайм #DCFA41, бирюза #1FA3A3. */

:root {
  --pp-indigo: #3C26AF;
  --pp-indigo-900: #221565;
  --pp-purple: #8E2B87;
  --pp-purple-700: #74216E;
  --pp-teal: #1FA3A3;
  --pp-lime: #DCFA41;
  --pp-ink: #1D1631;
  --pp-muted: #625B78;
  --pp-bg: #F3EEF8;
  --pp-soft: #FAF8FC;
  --pp-line: #E8E1F0;
  --pp-warn: #A35C00;
  --pp-warn-bg: #FFF4DF;
  --pp-danger: #B42318;
  --pp-radius: 14px;
  --pp-shadow: 0 1px 2px rgba(29, 22, 49, .06), 0 10px 30px -14px rgba(29, 22, 49, .25);
  --pp-display: "Unbounded", "Inter", system-ui, sans-serif;
  --pp-top-h: 56px;
  --pp-tile: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.pp {
  font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pp-ink);
  background: var(--pp-bg);
  display: grid;
  grid-template-rows: var(--pp-top-h) minmax(0, 1fr) auto auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-muted { color: var(--pp-muted); }
:focus-visible { outline: 3px solid rgba(60, 38, 175, .45); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.pp-btn:active { transform: translateY(1px); }
.pp-btn:disabled { opacity: .5; cursor: not-allowed; }
.pp-btn-primary { background: var(--pp-purple); color: #fff; box-shadow: 0 6px 18px -8px rgba(142, 43, 135, .7); }
.pp-btn-primary:hover:not(:disabled) { background: var(--pp-purple-700); }
.pp-btn-lime { background: var(--pp-lime); color: var(--pp-indigo-900); }
.pp-btn-lime:hover { background: #cfee2c; }
.pp-btn-ghost { background: #fff; border-color: var(--pp-line); color: var(--pp-ink); }
.pp-btn-ghost:hover { border-color: var(--pp-purple); color: var(--pp-purple); }
.pp-btn-lg { min-height: 50px; padding: 12px 26px; font-size: 16px; }
.pp-icon-btn { display: inline-grid; place-items: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; border: 0; background: transparent; color: inherit; text-decoration: none; }
.pp-icon-btn:hover:not(:disabled) { background: rgba(60, 38, 175, .08); }
.pp-icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Шапка (как на сайте: индиго, логотип) ---------- */
.pp-top { display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--pp-indigo); color: #fff; min-width: 0; }
.pp-logo { display: flex; align-items: center; flex-shrink: 0; }
.pp-logo img { height: 40px; width: auto; display: block; }
.pp-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pp-title b { font-family: var(--pp-display); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.pp-save { font-size: 12px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pp-top .pp-icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.pp-top .pp-btn { min-height: 38px; }

/* ---------- Основная область ---------- */
.pp-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.pp-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 16px; gap: 10px; }
.pp-view { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.pp-frame-wrap { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.pp-frame { position: relative; background: #fff; box-shadow: var(--pp-shadow), 0 0 0 1px rgba(29, 22, 49, .06); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.pp-frame img { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.pp-inner, .pp-cell { position: absolute; overflow: hidden; }
.pp-inner { cursor: grab; }
.pp-inner.is-dragging, .pp-cell.is-dragging { cursor: grabbing; }
.pp-bgblur { position: absolute; inset: -6%; overflow: hidden; }
.pp-cell { background: #ECE7F2; cursor: grab; }
.pp-cell.is-active { box-shadow: inset 0 0 0 3px var(--pp-teal); }
.pp-cell-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pp-muted); font-size: 12px; text-align: center; padding: 6px; }
.pp-frame-label { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(29, 22, 49, .62); color: #fff; font-size: 11.5px; pointer-events: none; }
.pp-stage-tools { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 4px 8px; align-self: center; box-shadow: var(--pp-shadow); max-width: 100%; }
.pp-zoom { display: flex; align-items: center; padding: 0 6px; }
.pp-zoom input { width: 120px; accent-color: var(--pp-purple); }
.pp-ba { display: inline-flex; grid-auto-flow: column; font-size: 12.5px; font-weight: 600; }
.pp-ba[aria-pressed="true"] { background: var(--pp-lime); }
.pp-quality { align-self: center; max-width: 640px; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: var(--pp-warn-bg); color: #7A4500; border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.pp-quality svg { color: var(--pp-warn); margin-top: 1px; }
.pp-quality .pp-q-text { flex: 1; min-width: 200px; }
.pp-link { background: none; border: 0; padding: 0; color: var(--pp-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Пустое состояние */
.pp-empty { flex: 1; display: grid; place-items: center; }
.pp-empty-card { max-width: 480px; text-align: center; background: #fff; border: 2px dashed rgba(60, 38, 175, .25); border-radius: 24px; padding: 32px 24px; }
.pp-empty-card h1 { font-family: var(--pp-display); font-size: 22px; margin: 10px 0 8px; }
.pp-empty-card p { color: var(--pp-muted); margin: 0 0 18px; }
.pp-empty-card .pp-muted { margin: 12px 0 0; font-size: 13px; }
.pp-empty-ico { width: 44px; height: 44px; color: var(--pp-purple); }

/* ---------- Панель настроек ---------- */
.pp-panel { background: #fff; border-left: 1px solid var(--pp-line); display: flex; flex-direction: column; min-height: 0; }
.pp-panel-head { display: flex; align-items: center; border-bottom: 1px solid var(--pp-line); }
.pp-tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--pp-muted); border-bottom: 2.5px solid transparent; min-width: 58px; }
.pp-tabs button.is-active { color: var(--pp-purple); border-bottom-color: var(--pp-purple); }
.pp-sheet-close { display: none; }
.pp-scope { font-size: 12.5px; padding: 8px 16px; background: var(--pp-soft); color: var(--pp-muted); border-bottom: 1px solid var(--pp-line); }
.pp-scope b { color: var(--pp-ink); }
.pp-panel-body { overflow-y: auto; padding: 14px 16px 18px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.pp-field { margin-bottom: 14px; }
.pp-label { display: block; font-size: 12px; font-weight: 600; color: var(--pp-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.pp-label b { color: var(--pp-ink); }
.pp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: end; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips-col { flex-direction: column; flex-wrap: nowrap; }
.pp-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--pp-line); background: #fff; text-align: left; min-height: 40px; }
.pp-chip small { color: var(--pp-muted); font-weight: 500; white-space: nowrap; }
.pp-chip.is-active { border-color: var(--pp-purple); background: rgba(142, 43, 135, .06); }
.pp-chip:disabled { opacity: .45; cursor: not-allowed; }
.pp-chip.is-active b { color: var(--pp-purple); }
.pp-chips:not(.pp-chips-col) .pp-chip { flex: 1 1 auto; justify-content: center; }
.pp-seg { display: flex; background: var(--pp-bg); border-radius: 12px; padding: 3px; gap: 3px; }
.pp-seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 8px; font-size: 12.5px; font-weight: 600; color: var(--pp-muted); min-height: 34px; }
.pp-seg button.is-active { background: #fff; color: var(--pp-purple); box-shadow: 0 1px 3px rgba(29, 22, 49, .12); }
.pp-seg-wide { flex-wrap: wrap; }
.pp-seg-wide button { flex: 1 1 40%; }
.pp-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--pp-line); border-radius: 12px; overflow: hidden; background: #fff; }
.pp-stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; color: var(--pp-purple); }
.pp-stepper input { width: 56px; height: 38px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.pp-stepper input::-webkit-outer-spin-button, .pp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pp-actions .pp-btn { white-space: normal; text-align: center; min-height: 38px; font-size: 13px; }
.pp-hint { font-size: 12.5px; color: var(--pp-muted); margin: 0 0 12px; }
.pp-slider { margin-bottom: 12px; }
.pp-slider-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 2px; }
.pp-slider-head span:last-child { color: var(--pp-muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--pp-purple); height: 26px; }
.pp-filters, .pp-layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pp-filter, .pp-layout { border: 1.5px solid var(--pp-line); border-radius: 12px; background: #fff; padding: 5px; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.pp-filter.is-active, .pp-layout.is-active { border-color: var(--pp-purple); color: var(--pp-purple); }
.pp-filter .pp-fthumb { aspect-ratio: 1; border-radius: 8px; background: var(--pp-bg) center/cover no-repeat; }
.pp-layout .pp-lthumb { position: relative; aspect-ratio: 2 / 3; background: #fff; border: 1px solid var(--pp-line); border-radius: 6px; }
.pp-layout .pp-lthumb i { position: absolute; background: rgba(60, 38, 175, .22); border-radius: 2px; }
.pp-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 190px; overflow-y: auto; }
.pp-picker button { aspect-ratio: 1; border: 2px solid transparent; border-radius: 8px; padding: 0; background: var(--pp-bg) center/cover no-repeat; }
.pp-picker button.is-active { border-color: var(--pp-teal); }
.pp-input { width: 100%; border: 1.5px solid var(--pp-line); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; background: #fff; }
.pp-input:focus { border-color: var(--pp-purple); outline: none; }

/* ---------- Лента фото с эффектом Dock ---------- */
.pp-strip-wrap { background: #fff; border-top: 1px solid var(--pp-line); min-width: 0; }
.pp-strip-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; min-width: 0; }
.pp-strip-count { font-size: 12.5px; color: var(--pp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pp-strip-actions { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.pp-chip-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--pp-bg); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; min-height: 32px; }
.pp-chip-btn svg { width: 16px; height: 16px; }
.pp-chip-btn[aria-pressed="true"] { background: var(--pp-lime); }
.pp-chip-btn.pp-danger { color: var(--pp-danger); }
.pp-chip-btn:disabled { opacity: .4; }
.pp-show-sm { display: none; }
.pp-strip { --pp-lift: calc(var(--pp-tile) * .47); display: flex; align-items: flex-end; gap: 12px; padding: calc(var(--pp-lift) + 6px) 16px 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; scrollbar-width: thin; overscroll-behavior-x: contain; }
.pp-strip-list { display: flex; align-items: flex-end; gap: 12px; }
.pp-tile { position: relative; flex-shrink: 0; width: var(--pp-tile); height: var(--pp-tile); border-radius: 12px; border: 0; padding: 0; background: transparent; transform-origin: 50% 100%; transition: transform .16s cubic-bezier(.2, .8, .2, 1), margin .16s; will-change: transform; }
.pp-strip.is-dragging .pp-tile { transition: none; }
.pp-tile-add { display: grid; place-items: center; background: var(--pp-bg); border: 2px dashed rgba(60, 38, 175, .3); color: var(--pp-purple); }
.pp-tile-add svg { width: 26px; height: 26px; }
.pp-tile-media { position: absolute; inset: 0; display: grid; place-items: center; }
.pp-tile-sheet { position: relative; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(29, 22, 49, .25); border-radius: 3px; }
/* ТЗ №6: миниатюра собирается так же, как сцена — картинки позиционируются абсолютно, без max-width:100%. */
.pp-tile-sheet img { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.pp-tile.is-active .pp-tile-sheet { outline: 3px solid var(--pp-purple); outline-offset: 2px; }
.pp-tile.is-selected .pp-tile-sheet { outline: 3px solid var(--pp-teal); outline-offset: 2px; }
.pp-tile-badge { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--pp-indigo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; z-index: 2; }
.pp-tile-warn { position: absolute; left: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--pp-warn-bg); color: var(--pp-warn); display: grid; place-items: center; z-index: 2; }
.pp-tile-warn svg { width: 13px; height: 13px; }
.pp-tile-check { position: absolute; left: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--pp-teal); z-index: 2; display: none; }
.pp-strip.is-select .pp-tile-check { display: block; }
.pp-tile.is-selected .pp-tile-check { background: var(--pp-teal); box-shadow: inset 0 0 0 2px #fff; }
.pp-tile-label { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font-size: 10px; color: var(--pp-muted); white-space: nowrap; pointer-events: none; }
.pp-tile.is-ghost { opacity: .35; }
.pp-tile-drag { position: fixed; z-index: 60; pointer-events: none; opacity: .9; transform: scale(1.1); transition: none; }
.pp-strip-placeholder { flex-shrink: 0; width: 4px; height: var(--pp-tile); border-radius: 2px; background: var(--pp-purple); }

/* ---------- Итог ---------- */
.pp-foot { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pp-line); min-width: 0; }
.pp-foot-sum { flex: 1; min-width: 0; }
.pp-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border: 0; background: none; padding: 4px 0; text-align: left; min-width: 0; }
.pp-total-n { color: var(--pp-muted); font-size: 13px; }
.pp-total b { font-family: var(--pp-display); font-size: 20px; font-weight: 600; }
.pp-total-more { font-size: 12.5px; color: var(--pp-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-send { min-height: 46px; padding: 10px 22px; font-size: 15px; flex-shrink: 0; }
.pp-details { position: absolute; left: 12px; bottom: calc(100% + 8px); width: min(460px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto; background: #fff; border-radius: var(--pp-radius); box-shadow: 0 20px 50px -18px rgba(29, 22, 49, .45), 0 0 0 1px var(--pp-line); padding: 12px 16px; z-index: 40; }
.pp-details-head { display: flex; align-items: center; justify-content: space-between; }
.pp-details ul { list-style: none; margin: 8px 0; padding: 0; }
.pp-details li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--pp-line); font-size: 13.5px; }
.pp-details li b { white-space: nowrap; }
.pp-details li small { display: block; color: var(--pp-muted); }

/* ---------- Загрузки, перетаскивание, модальные окна ---------- */
.pp-uploads { position: fixed; right: 16px; top: calc(var(--pp-top-h) + 10px); width: min(340px, calc(100vw - 32px)); max-height: 50vh; overflow-y: auto; background: #fff; border-radius: var(--pp-radius); box-shadow: 0 20px 50px -18px rgba(29, 22, 49, .45), 0 0 0 1px var(--pp-line); padding: 10px 12px; z-index: 50; font-size: 13px; }
.pp-up-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 6px; }
.pp-up { padding: 6px 0; border-top: 1px solid var(--pp-line); }
.pp-up-name { display: flex; justify-content: space-between; gap: 8px; }
.pp-up-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pp-up-bar { height: 4px; background: var(--pp-bg); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.pp-up-bar i { display: block; height: 100%; width: 0; background: var(--pp-purple); transition: width .2s; }
.pp-up.is-error { color: var(--pp-danger); }
.pp-up.is-error .pp-up-bar { display: none; }
.pp-up.is-done .pp-up-bar i { background: var(--pp-teal); }
.pp-drop { position: fixed; inset: 0; background: rgba(60, 38, 175, .82); color: #fff; display: grid; place-items: center; z-index: 80; font-family: var(--pp-display); font-size: 22px; text-align: center; padding: 20px; }
.pp-drop div { border: 3px dashed rgba(255, 255, 255, .7); border-radius: 24px; padding: 40px; }
.pp-modal { position: fixed; inset: 0; background: rgba(29, 22, 49, .55); display: grid; place-items: center; z-index: 90; padding: 16px; }
.pp-modal-card { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.pp-modal-card h2 { font-family: var(--pp-display); font-size: 20px; margin: 0 0 10px; }
.pp-modal-card p { color: var(--pp-muted); margin: 0 0 14px; }
.pp-modal-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--pp-lime); display: grid; place-items: center; margin-bottom: 12px; color: var(--pp-indigo-900); }
.pp-modal-ico svg { width: 28px; height: 28px; stroke-width: 2.4; }
.pp-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-modal-actions .pp-btn { flex: 1 1 auto; }
.pp-note { background: var(--pp-warn-bg); color: #7A4500 !important; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.pp-q-msg { font-size: 13px; min-height: 1em; }
.pp-q-msg.is-ok { color: #13797A !important; }
.pp-q-msg.is-error { color: var(--pp-danger) !important; }
.pp-toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--pp-ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 95; font-size: 13.5px; max-width: calc(100vw - 32px); box-shadow: var(--pp-shadow); }
body.is-readonly .pp-stage-tools, body.is-readonly .pp-strip-actions, body.is-readonly .pp-actions { display: none; }
body.is-readonly .pp-panel-body { pointer-events: none; opacity: .7; }

/* ---------- Планшет и телефон: настройки — нижний лист, вызывается по кнопке ---------- */
@media (max-width: 999px) {
  .pp-main { grid-template-columns: minmax(0, 1fr); }
  .pp-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: min(72dvh, 620px); border-left: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -20px rgba(29, 22, 49, .5); transform: translateY(105%); transition: transform .22s ease; padding-bottom: env(safe-area-inset-bottom); }
  .pp-panel.is-open { transform: none; }
  .pp-sheet-close { display: inline-grid; }
  .pp-show-sm { display: inline-flex; }
  .pp-hide-sm { display: none; }
  .pp-stage { padding: 10px; }
}
@media (max-width: 600px) {
  :root { --pp-top-h: 52px; --pp-tile: 58px; }
  .pp-top { gap: 8px; padding: 0 8px; }
  .pp-logo img { height: 32px; }
  .pp-title b { font-size: 13px; }
  .pp-top .pp-btn { padding: 6px 12px; min-height: 36px; font-size: 13px; }
  .pp-top .pp-btn span { display: none; }
  .pp-top .pp-btn::after { content: "Фото"; }
  .pp-strip-actions .pp-chip-btn span { display: none; }
  .pp-chip-btn { padding: 5px 9px; }
  .pp-zoom input { width: 84px; }
  .pp-ba span { display: none; }
  .pp-foot { gap: 8px; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .pp-total b { font-size: 17px; }
  .pp-total { gap: 2px 8px; }
  .pp-send { padding: 8px 14px; font-size: 14px; min-height: 44px; }
  .pp-stage-tools { gap: 0; padding: 2px 4px; }
  .pp-stage-tools .pp-icon-btn { min-width: 36px; }
  .pp-strip { gap: 10px; padding-left: 10px; padding-right: 10px; }
  .pp-strip-list { gap: 10px; }
  .pp-row { grid-template-columns: minmax(0, 1fr); }
  .pp-seg button { padding: 7px 4px; font-size: 12px; min-width: 0; }
  .pp-uploads { top: auto; bottom: 150px; right: 8px; left: 8px; width: auto; max-height: 28vh; padding: 8px 10px; font-size: 12.5px; }
  .pp-up { padding: 4px 0; }
}
@media (max-width: 360px) {
  .pp-title { display: none; }
  .pp-send { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-tile, .pp-panel { transition: none; }
}
