
@scope (:root) to (.site-head, .foot-stack, .site-foot, a.skip){
.ph-pick:where(:scope,:not(:scope)){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px 24px;align-items:start;margin:6px 0 10px}
.ph-drop:where(:scope,:not(:scope)){position:relative;min-width:0}
.ph-drop__input:where(:scope,:not(:scope)){position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.ph-drop__zone:where(:scope,:not(:scope)){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:168px;aspect-ratio:3/2;padding:20px 16px;border:1.5px dashed var(--ink-3,#6b6780);border-radius:var(--r2,10px);background:var(--surface-2,#faf9fd);color:var(--ink,#17132b);text-align:center;cursor:pointer;transition:background-color 160ms ease,border-color 160ms ease}
.ph-drop__icon:where(:scope,:not(:scope)){color:var(--brand-ink,#4d4286);flex:none}
.ph-drop__title:where(:scope,:not(:scope)){font-weight:650;font-size:16px;color:var(--brand-ink,#4d4286)}
.ph-drop__sub:where(:scope,:not(:scope)){font-size:14px;color:var(--ink-2,#544f6b)}
@media (hover:hover) and (pointer:fine){.ph-drop__zone:hover:where(:scope,:not(:scope)){background:var(--hover,#f3f0fc);border-color:var(--brand,#4d4286)}}
.ph-drop.is-over .ph-drop__zone:where(:scope,:not(:scope)){background:var(--brand-soft,#efecfa);border-color:var(--brand,#4d4286);border-style:solid}
.ph-drop:focus-within .ph-drop__zone:where(:scope,:not(:scope)){outline:2px solid var(--brand,#4d4286);outline-offset:2px}
.ph-drop--compact .ph-drop__zone:where(:scope,:not(:scope)){flex-direction:row;min-height:44px;padding:8px 14px;gap:8px}
.ph-drop--compact .ph-drop__icon:where(:scope,:not(:scope)){width:20px;height:20px}
.ph-drop--compact .ph-drop__title:where(:scope,:not(:scope)){font-size:14px}
.ph-tips:where(:scope,:not(:scope)){min-width:0}
.ph-tips__h:where(:scope,:not(:scope)){font-weight:650;font-size:14px;margin:0 0 8px}
.ph-tips__list:where(:scope,:not(:scope)){margin:0 0 12px;padding-left:18px;display:grid;gap:6px}
.ph-tips__list li:where(:scope,:not(:scope)){margin:0;line-height:1.45}
.ph-tips__list li:where(:scope,:not(:scope))::marker{color:var(--brand-ink,#4d4286)}
.ph-tips .hint:where(:scope,:not(:scope)){margin:0}
.ph-tips svg:where(:scope,:not(:scope)){display:block;width:100%;max-width:220px;height:auto;margin:10px 0 8px;border-radius:4px}
@media (max-width:760px){.ph-pick:where(:scope,:not(:scope)){grid-template-columns:minmax(0,1fr)}
.ph-drop__zone:where(:scope,:not(:scope)){min-height:120px;aspect-ratio:auto}}
.ph-drop--compact .ph-drop__zone:where(:scope,:not(:scope)){aspect-ratio:auto}
@media (prefers-reduced-motion:reduce){.ph-drop__zone:where(:scope,:not(:scope)){transition:none}}
.ph-panel:where(:scope,:not(:scope)){grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.ph-panel.has-photo:where(:scope,:not(:scope)){grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}
.ph-drop.has-photo .ph-drop__zone:where(:scope,:not(:scope)){position:relative;padding:0;border:1px solid var(--line-2,#cfccdc);border-style:solid;background:#1d1838;overflow:hidden;aspect-ratio:3/2;min-height:0}
.ph-drop.has-photo :is(.ph-drop__icon,.ph-drop__title,.ph-drop__sub):where(:scope,:not(:scope)){display:none}
.ph-drop__img:where(:scope,:not(:scope)){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
@media (hover:hover) and (pointer:fine){.ph-drop.has-photo .ph-drop__zone:hover:where(:scope,:not(:scope)){border-color:var(--brand-ink,#4d4286);background:#1d1838}}
.ph-drop__over:where(:scope,:not(:scope)){position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:color-mix(in srgb,var(--brand,#4d4286) 85%,transparent);color:#fff;font-weight:650;font-size:15px}
.ph-drop.has-photo.is-over .ph-drop__over:where(:scope,:not(:scope)){display:flex}
.ph-cut:where(:scope,:not(:scope)){position:absolute;inset:0;display:none;pointer-events:none}
.ph-panel.has-photo:has(.ph-show:checked) .ph-cut:where(:scope,:not(:scope)){display:block}
.ph-cut__trim:where(:scope,:not(:scope)){position:absolute;left:0;right:0;background:repeating-linear-gradient(135deg,rgba(19,14,42,.74) 0 6px,rgba(19,14,42,.56) 6px 12px)}
.ph-cut__trim--t:where(:scope,:not(:scope)){top:0}
.ph-cut__trim--b:where(:scope,:not(:scope)){bottom:0}
.ph-cut__badge:where(:scope,:not(:scope)){position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;background:rgba(44,35,98,.9);box-shadow:inset 0 0 0 2px #fff;border-radius:6px;color:#fff;font:600 12px/1.2 inherit}
.ph-cut__safe:where(:scope,:not(:scope)){position:absolute;border:2px dashed #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);border-radius:4px}
.ph-cut__safe span:where(:scope,:not(:scope)){position:absolute;left:6px;top:6px;background:rgba(19,14,42,.86);color:#fff;font-size:12px;font-weight:600;padding:2px 6px;border-radius:3px}
.ph-side:where(:scope,:not(:scope)){display:grid;gap:14px;align-content:start;min-width:0}
.ph-acts:where(:scope,:not(:scope)){display:flex;flex-wrap:wrap;gap:8px}
.ph-acts .btn:where(:scope,:not(:scope)){cursor:pointer}
.ph-rm:where(:scope,:not(:scope)){color:var(--bad,#ad2318);border-color:transparent;background:transparent}
@media (hover:hover) and (pointer:fine){.ph-rm:hover:where(:scope,:not(:scope)){background:var(--bad-soft,#fbe9e7)}}
.ph-panel:not(.has-photo) :is(.ph-acts,.ph-switch):where(:scope,:not(:scope)){display:none}
.ph-switch:where(:scope,:not(:scope)){display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:400;cursor:pointer;min-height:32px}
.ph-switch input:where(:scope,:not(:scope)){appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:999px;background:var(--ink-3,#6b6780);position:relative;margin:0;flex:none;cursor:pointer;transition:background-color .16s ease}
.ph-switch input:where(:scope,:not(:scope))::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:translate .16s cubic-bezier(.23,1,.32,1)}
.ph-switch input:checked:where(:scope,:not(:scope)){background:var(--brand,#4d4286)}
.ph-switch input:checked:where(:scope,:not(:scope))::after{translate:14px 0}
.ph-switch input:focus-visible:where(:scope,:not(:scope)){outline:2px solid var(--brand-ink,#4d4286);outline-offset:2px}
.ph-removed:where(:scope,:not(:scope)){display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;padding:10px 12px;border:1px solid var(--line-2,#cfccdc);border-radius:var(--r,6px);font-size:13.5px;font-weight:400}
.ph-removed[hidden]:where(:scope,:not(:scope)){display:none}
.ph-tipsfold summary:where(:scope,:not(:scope)){cursor:pointer;font-weight:600;font-size:13px;color:var(--brand-ink,#4d4286);min-height:32px;display:inline-flex;align-items:center}
.ph-panel:not(.has-photo) .ph-tipsfold summary:where(:scope,:not(:scope)){display:none}
.ph-tipsfold .ph-tips:where(:scope,:not(:scope)){margin-top:6px;font-weight:400}
.ph-panel.has-photo .ph-tips svg:where(:scope,:not(:scope)){display:none}
.ph-drop__zone .cphoto-pre:not([hidden]):where(:scope,:not(:scope)){position:absolute;inset:0;margin:0;z-index:1}
.ph-drop__zone .cphoto-pre img:where(:scope,:not(:scope)){width:100%;height:100%;max-width:none;object-fit:cover;margin:0;border:0;border-radius:0;aspect-ratio:auto}
.ph-drop:has(.cphoto-pre:not([hidden])) .ph-drop__zone:where(:scope,:not(:scope)){position:relative;padding:0;border-style:solid;aspect-ratio:3/2;overflow:hidden;background:#1d1838}
@media (max-width:760px){.ph-panel:where(:scope,:not(:scope)),.ph-panel.has-photo:where(:scope,:not(:scope)){grid-template-columns:minmax(0,1fr)}
.ph-drop.has-photo .ph-drop__zone:where(:scope,:not(:scope)),.ph-drop:has(.cphoto-pre:not([hidden])) .ph-drop__zone:where(:scope,:not(:scope)){aspect-ratio:3/2;min-height:0}
.ph-acts .btn:where(:scope,:not(:scope)){flex:1 1 0;min-height:44px}
.ph-switch:where(:scope,:not(:scope)){min-height:44px}
.ph-switch input:where(:scope,:not(:scope)){width:44px;height:26px}
.ph-switch input:where(:scope,:not(:scope))::after{width:22px;height:22px}
.ph-switch input:checked:where(:scope,:not(:scope))::after{translate:18px 0}
.ph-tipsfold summary:where(:scope,:not(:scope)){min-height:44px}}
@media (prefers-reduced-motion:reduce){.ph-switch input:where(:scope,:not(:scope)),.ph-switch input:where(:scope,:not(:scope))::after{transition:none}}
}
.site-head,.foot-stack,.site-foot,a.skip{min-width:0;min-height:0}
