/* SOL117. Approved SOL115 editor composition, on the existing working controls. */
.ff-panel .ff-editor { padding-top:22px!important;padding-bottom:36px!important; }
.ff-panel .ff-editor-header { align-items:flex-start!important;gap:18px!important;padding-bottom:24px!important; margin-bottom:28px!important; }
.ff-panel .ff-editor-header h1 { flex-basis:100%!important;font:400 clamp(34px,3.8vw,48px)/1.08 var(--ff-serif)!important;letter-spacing:-.015em; }
.ff-panel .ff-editor-header h1 em { font-weight:400; }
.ff-panel .ff-editor-header h1>div { margin-top:12px!important; }
.ff-panel .ff-editor-header>button { padding:8px 0!important;border:0!important;color:var(--ff-muted)!important;font:13px/1.5 var(--ff-sans)!important; }
.ff-panel .ff-editor-layout { grid-template-columns:320px minmax(0,1fr);gap:24px; }
.ff-panel .ff-editor-settings { display:flex;flex-direction:column;gap:18px;padding:0!important;min-width:0; }
.ff-panel .ff-editor-setting-card,.ff-panel .ff-editor-collection { min-width:0;max-width:100%;width:100%;padding:24px;border:1px solid var(--ff-line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--ff-gold) 4%,var(--ff-card)),var(--ff-card));box-shadow:0 5px 20px #0002; }
.ff-panel .ff-editor-section-title { display:flex;align-items:center;gap:11px;margin:0 0 22px; }
.ff-panel .ff-editor-section-title>span { display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid var(--ff-line);border-radius:50%;color:var(--ff-gold-light);font:11px/1 var(--ff-sans); }
.ff-panel .ff-editor-section-title h2 { margin:0;font:400 29px/1.12 var(--ff-serif);color:var(--ff-ink);overflow-wrap:anywhere; }
.ff-panel .ff-setting-field>label { color:var(--ff-ink)!important;font-size:13px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important; }
.ff-panel .ff-setting-field input { background:var(--ff-bg)!important;border:1px solid var(--ff-line)!important;border-radius:8px!important;min-height:46px;padding:11px 12px!important;line-height:1.45; }
.ff-panel .ff-setting-field input[inputmode="numeric"] { font:22px/1.2 var(--ff-sans)!important;letter-spacing:8px!important;width:180px!important;max-width:100%!important; }
.ff-panel .ff-setting-field:last-child { margin-bottom:0!important; }
.ff-panel .ff-setting-field p { color:var(--ff-muted)!important;line-height:1.75!important; }
.ff-panel .ff-setting-field>button { white-space:normal;text-align:left;padding:11px 12px!important;font:13px/1.6 var(--ff-sans)!important; }
.ff-panel .ff-language-choices { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important; }
.ff-panel .ff-language-choices button { min-width:0;font-size:11px!important;line-height:1.4;padding:10px 4px!important;overflow-wrap:anywhere; }
.ff-panel .ff-published-link { background:var(--ff-bg)!important;border-color:var(--ff-line)!important; }
.ff-panel .ff-editor-media { display:flex;flex-direction:column;gap:18px; }
.ff-panel .ff-editor-upload-heading>label { font:400 34px/1.15 var(--ff-serif)!important;color:var(--ff-ink)!important;text-transform:none!important;letter-spacing:0!important;margin:0 0 18px!important; }
.ff-panel .ff-gallery-dropzone { border:1px dashed var(--ff-line)!important;background:var(--ff-bg)!important;border-radius:12px!important;min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column; }
.ff-panel .ff-gallery-dropzone:hover,.ff-panel .ff-gallery-dropzone:focus-visible { border-color:var(--ff-gold)!important; }
.ff-panel .ff-gallery-dropzone.has-photos { min-height:86px;padding:16px!important;display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 14px;text-align:left!important; }
.ff-panel .ff-gallery-dropzone.has-photos>svg { width:25px;height:25px;grid-row:1/3;color:var(--ff-gold); }
.ff-panel .ff-gallery-dropzone.has-photos p { margin:0!important;font:13px/1.6 var(--ff-sans)!important; }
.ff-panel .ff-gallery-dropzone.has-photos p:last-child { font-size:11px!important;color:var(--ff-muted)!important; }
.ff-panel .ff-editor-collection>p { font:13px/1.75 var(--ff-sans)!important;color:var(--ff-muted)!important;margin:0 0 14px!important; }
.ff-panel .ff-editor-collection .ff-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important; }
.ff-panel .ff-editor-photo { border:1px solid var(--ff-line)!important;background:var(--ff-card)!important;box-shadow:0 5px 18px #0002; }
.ff-panel .ff-editor-photo-image { aspect-ratio:auto!important;height:220px;background:var(--ff-bg); }
.ff-panel .ff-editor-photo-image>img { object-fit:contain!important; }
.ff-panel .ff-editor-photo-badges { display:flex;flex-wrap:wrap;gap:5px;position:absolute;left:9px;right:9px;top:9px;pointer-events:none; }
.ff-panel .ff-editor-photo-badges>span { display:inline-flex;align-items:center;gap:5px;font:11px/1.5 var(--ff-sans);padding:4px 8px;color:#f2d99e;background:#17170ff0;border:1px solid #b99a58;border-radius:20px;box-shadow:0 2px 7px #0004; }
.ff-panel .ff-editor-photo-footer { display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--ff-line);padding:14px!important; }
.ff-panel .ff-editor-photo-footer>span { color:var(--ff-muted);font:12px/1.6 var(--ff-sans)!important;overflow-wrap:anywhere; }
.ff-panel .ff-editor-photo-tools { display:flex;align-items:center;flex-wrap:wrap;gap:7px; }
.ff-panel .ff-editor-photo-tools .ff-photo-action { position:static!important;inset:auto!important;flex:0 0 44px;width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;border:1px solid var(--ff-line)!important;border-radius:7px!important;background:var(--ff-raised)!important;color:var(--ff-gold)!important;font-size:17px; }
.ff-panel .ff-editor-photo-tools .ff-photo-action[aria-pressed="true"] { background:color-mix(in srgb,var(--ff-gold) 18%,var(--ff-card))!important;border-color:var(--ff-gold)!important; }
.ff-panel .ff-editor-photo-tools .ff-photo-action:last-child:not([disabled]):has(svg) { color:var(--ff-muted); }
.ff-panel .ff-editor-photo-tools .ff-photo-action:disabled { opacity:.4;cursor:default; }
.ff-panel .ff-editor-selection-summary { margin:0!important;padding:18px;border:1px solid var(--ff-line);border-radius:12px;background:color-mix(in srgb,var(--ff-gold) 8%,var(--ff-card)); }
.ff-panel .ff-editor-selection-summary h2 { font:400 29px/1.15 var(--ff-serif)!important;color:var(--ff-ink)!important; }
.ff-panel .ff-editor-selection-summary .ls-sel-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.ff-panel .ff-delivery-workbench { min-width:0; }
.ff-panel .ff-delivery-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px;margin:0 0 20px;background:var(--ff-bg);border:1px solid var(--ff-line);border-radius:12px; }
.ff-panel .ff-delivery-tabs button { display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-width:0;min-height:54px;background:none;border:1px solid transparent;border-radius:8px;padding:10px;color:var(--ff-muted);font:13px/1.5 var(--ff-sans);cursor:pointer; }
.ff-panel .ff-delivery-tabs button[aria-selected="true"] { background:color-mix(in srgb,var(--ff-gold) 12%,var(--ff-card));border-color:var(--ff-gold);color:var(--ff-ink); }
.ff-panel .ff-delivery-tabs small { display:grid;place-items:center;min-width:24px;height:24px;padding:2px 6px;border-radius:12px;background:var(--ff-raised);color:var(--ff-gold-light);font:11px/1 var(--ff-sans); }
.ff-panel .ff-delivery-workbench>[hidden] { display:none!important; }
.ff-panel .ff-upload-box,.ff-panel .ff-video-section { padding:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--ff-gold) 4%,var(--ff-card)),var(--ff-card));border-radius:14px; }
.ff-panel .ff-upload-box h3,.ff-panel .ff-video-section h3 { font:400 34px/1.12 var(--ff-serif)!important; }
.ff-panel .ff-upload-box .ff-media-grid,.ff-panel .ff-video-section .ff-media-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important; }
.ff-panel .ff-upload-box .ff-media-grid>div,.ff-panel .ff-video-section .ff-media-grid>div { aspect-ratio:4/3!important;border:1px solid var(--ff-line);border-radius:9px!important;background:var(--ff-bg)!important; }
.ff-panel .ff-video-section .ff-media-grid img { object-fit:contain!important; }
.ff-panel .ff-editor-actions { position:sticky;bottom:12px;left:auto;transform:none;width:100%;max-width:none!important;margin-top:28px;justify-content:flex-end;border:1px solid var(--ff-line);border-radius:14px;background:color-mix(in srgb,var(--ff-card) 96%,transparent);padding:18px 22px calc(18px + env(safe-area-inset-bottom));backdrop-filter:blur(12px);box-shadow:0 10px 28px #0004;z-index:250; }
.ff-panel .ff-editor-save-copy { flex:1 1 200px;min-width:0;margin-right:auto;font:13px/1.6 var(--ff-sans);color:var(--ff-gold-light); }
.ff-panel .ff-editor-save-copy strong { display:block;font-weight:500; }
.ff-panel .ff-editor-save-copy>span { display:block;margin-top:4px;font-size:12px;color:var(--ff-muted); }
.ff-panel .ff-editor-actions button { border-radius:24px!important; }
html[data-panel-theme="mechanika"] .ff-editor-setting-card,html[data-panel-theme="mechanika"] .ff-editor-collection,html[data-panel-theme="mechanika"] .ff-upload-box,html[data-panel-theme="mechanika"] .ff-video-section { border-radius:8px;border-color:#836641;background:linear-gradient(135deg,#303031,#171718 55%,#242222);box-shadow:inset 0 0 0 3px var(--ff-bg),inset 0 0 0 4px var(--ff-line),0 7px 22px #0003; }
html[data-panel-theme="mechanika"] .ff-editor-section-title>span { border-color:var(--ff-gold-light);background:radial-gradient(circle at 35% 20%,var(--ff-raised),var(--ff-bg) 75%);box-shadow:inset 0 0 0 2px var(--ff-bg); }
html[data-panel-theme="mechanika"] .ff-editor-photo { border-radius:7px!important; }
html[data-panel-theme="mechanika"] .ff-editor-photo-footer { background:#1b1919; }
html[data-panel-theme="mechanika"] .ff-editor-photo-badges>span { border-radius:4px;color:#efdbb6;background:#151211ec;border-color:#c6a16d; }
html[data-panel-theme="mechanika"] .ff-editor-actions { border-radius:8px!important;background:#1b1919f5;border-color:#836641; }
html[data-panel-theme="mechanika"] .ff-editor-actions button { border-radius:6px!important; }
html[data-panel-theme="mechanika"] .ff-delivery-tabs { border-radius:8px; }
html[data-ff-color-mode="light"] .ff-editor-section-title>span,html[data-ff-color-mode="light"] .ff-editor-save-copy,html[data-ff-color-mode="light"] .ff-delivery-tabs small { color:var(--ff-ink); }
@media(max-width:1200px) { .ff-panel .ff-editor-collection .ff-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; } .ff-panel .ff-editor-layout { grid-template-columns:290px minmax(0,1fr);gap:20px; } }
@media(max-width:900px) { .ff-panel .ff-editor-layout { grid-template-columns:minmax(0,1fr); } .ff-panel .ff-editor-settings { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;padding:0!important; } .ff-panel .ff-editor-collection .ff-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; } .ff-panel .ff-editor-photo-image { height:210px; } }
@media(max-width:620px) { .ff-panel .ff-editor { padding:20px 17px 24px!important; } .ff-panel .ff-editor-settings { display:flex;align-items:stretch; } .ff-panel .ff-editor-setting-card,.ff-panel .ff-editor-collection { padding:20px; } .ff-panel .ff-editor-header h1 { font-size:36px!important; } .ff-panel .ff-editor-collection .ff-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important; } .ff-panel .ff-editor-photo-image { height:175px; } .ff-panel .ff-editor-photo-footer { padding:10px!important;gap:10px; } .ff-panel .ff-editor-photo-tools { gap:4px; } .ff-panel .ff-editor-photo-tools .ff-photo-action { flex-basis:44px; } .ff-panel .ff-editor-actions { bottom:8px;margin-top:20px;gap:8px!important;padding:14px; } .ff-panel .ff-editor-save-copy { flex-basis:100%; } .ff-panel .ff-editor-save-copy>span { display:none; } .ff-panel .ff-editor-actions button { font-size:13px!important;padding:10px 14px!important; } .ff-panel .ff-upload-box,.ff-panel .ff-video-section { padding:20px; } .ff-panel .ff-upload-box .ff-media-grid,.ff-panel .ff-video-section .ff-media-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; } .ff-panel .ff-delivery-tabs { gap:4px;padding:4px; } .ff-panel .ff-delivery-tabs button { padding:8px 4px;font-size:11px; } .ff-panel .ff-editor-selection-summary .ls-sel-grid { grid-template-columns:1fr; } }
@media(max-width:360px) { .ff-panel .ff-editor { padding-left:12px!important;padding-right:12px!important; } .ff-panel .ff-editor-collection .ff-gallery-grid { grid-template-columns:1fr!important; } .ff-panel .ff-editor-photo-image { height:230px; } .ff-panel .ff-editor-setting-card,.ff-panel .ff-editor-collection { padding:18px; } }

.ff-panel .ff-editor-photo-tools .ff-photo-delete { color:#d99889!important; }
html[data-ff-color-mode="light"] .ff-panel .ff-editor-photo-tools .ff-photo-delete { color:#9f3636!important; }

@media(max-width:600px){.ff-panel .ff-editor-collection .ff-gallery-grid{grid-template-columns:1fr!important;gap:18px!important}.ff-panel .ff-editor-photo-image{height:clamp(220px,65vw,340px)}.ff-panel .ff-editor-photo-footer{padding:14px!important}.ff-panel .ff-editor-photo-tools{gap:8px}.ff-panel .ff-delivery-tabs button{min-height:80px;flex-direction:column;font-size:13px}.ff-panel .ff-upload-box .ff-media-grid,.ff-panel .ff-video-section .ff-media-grid{grid-template-columns:1fr!important}}

/* SOL120: Atelier surfaces only. Destructive actions keep their existing red treatment. */
html[data-panel-theme="atelier"] .ff-panel :is(.ff-editor-setting-card, .ff-editor-collection, .ff-upload-box, .ff-video-section) {
  background: linear-gradient(135deg, #29231d66, #1a1613);
  border-color: #b6a36135;
  box-shadow: inset 0 1px #e5d3a414, 0 8px 20px #0002;
}
html[data-panel-theme="atelier"] .ff-panel .ff-editor-photo-badges > span {
  color: #e7d29c; background: #181612f0; border-color: #ceb073;
}
html[data-panel-theme="atelier"] .ff-panel .ff-editor-actions { border-color: #b6a36150; }

/* SOL128: Editorial on the existing gallery/delivery controls.
   Paper frames, burgundy selection, unchanged grids, touch areas and handlers. */
html[data-panel-theme="editorial"] .ff-panel :is(.ff-editor-setting-card,.ff-editor-collection,.ff-upload-box,.ff-video-section) {
  border:1px solid #d8cec1; border-radius:5px; background:#fffcf6;
  box-shadow:0 5px 20px #27232108;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-header h1 { color:#272321; letter-spacing:-.035em; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-section-title>span { color:#7a3546; border-color:#d8cec1; background:#f4f0e8; }
html[data-panel-theme="editorial"] .ff-panel .ff-setting-field input {
  border-color:#d8cec1!important; background:#fffcf6!important; color:#272321!important;
  color-scheme:light; border-radius:4px!important;
}
html[data-panel-theme="editorial"] .ff-panel .ff-setting-field input::placeholder { color:#70665f; opacity:1; }
html[data-panel-theme="editorial"] .ff-panel .ff-setting-field :is(input:disabled,input[readonly]) {
  background:#eee6dc!important; color:#70665f!important;
}
html[data-panel-theme="editorial"] .ff-panel .ff-published-link { border-radius:4px!important; }
html[data-panel-theme="editorial"] .ff-panel .ff-gallery-dropzone { border-color:#bba99c!important; background:#f4f0e8!important; border-radius:4px!important; }
html[data-panel-theme="editorial"] .ff-panel .ff-gallery-dropzone:hover { border-color:#7a3546!important; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo {
  border-color:#d8cec1!important; background:#fffcf6!important; border-radius:4px!important; box-shadow:0 5px 18px #2723210a;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-image { padding:8px; background:#fffcf6; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-image>img { background:#eee6dc; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-badges>span {
  color:#7a3546; background:#fffcf6f5; border-color:#d8cec1; border-radius:4px; box-shadow:0 2px 7px #27232118;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-footer { background:#fffcf6; border-color:#d8cec1; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-tools .ff-photo-action {
  border-radius:4px!important; background:#f4f0e8!important; color:#7a3546!important; border-color:#d8cec1!important;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-tools .ff-photo-action[aria-pressed="true"] {
  background:#7a3546!important; color:#fffcf6!important; border-color:#7a3546!important;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-photo-tools .ff-photo-delete { color:#9a293c!important; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-selection-summary { border-radius:4px; border-color:#d8cec1; background:#f1e8e5; }
html[data-panel-theme="editorial"] .ff-panel .ff-delivery-tabs { border-color:#d8cec1; background:#f4f0e8; border-radius:4px; }
html[data-panel-theme="editorial"] .ff-panel .ff-delivery-tabs button { border-radius:3px; }
html[data-panel-theme="editorial"] .ff-panel .ff-delivery-tabs button[aria-selected="true"] { background:#fffcf6; border-color:#7a3546; color:#7a3546; }
html[data-panel-theme="editorial"] .ff-panel .ff-delivery-tabs small { background:#eee6dc; color:#7a3546; }
html[data-panel-theme="editorial"] .ff-panel :is(.ff-upload-box,.ff-video-section) .ff-media-grid>div {
  padding:6px; border-color:#d8cec1; border-radius:4px!important; background:#fffcf6!important;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-actions {
  background:#fffcf6f5; border-color:#d8cec1; border-radius:5px; box-shadow:0 8px 24px #27232114;
}
html[data-panel-theme="editorial"] .ff-panel .ff-editor-actions button { border-radius:4px!important; }
html[data-panel-theme="editorial"] .ff-panel .ff-editor-save-copy { color:#7a3546; }

/* SOL131: porcelain and blue editor surfaces. Upload, reorder and publish remain unchanged. */
html[data-panel-theme="kobalt"] .ff-panel :is(.ff-editor-setting-card,.ff-editor-collection,.ff-upload-box,.ff-video-section){border:1px solid #c5d1e5;background:#fff;border-radius:12px;box-shadow:0 8px 25px -18px #294c8a35}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-header h1{font:600 clamp(30px,3.6vw,44px)/1.15 var(--ff-sans)!important;letter-spacing:-.04em;font-style:normal!important}
html[data-panel-theme="kobalt"] .ff-panel :is(.ff-editor-section-title h2,.ff-editor-upload-heading>label,.ff-upload-box h3,.ff-video-section h3,.ff-editor-selection-summary h2){font-family:var(--ff-sans)!important;font-size:25px!important;font-weight:600!important;letter-spacing:-.035em;color:#142348!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-section-title>span{background:#f3f7ff;border-color:#aec4ed;color:#1749dc}
html[data-panel-theme="kobalt"] .ff-panel .ff-setting-field input{background:#fbfcff!important;border-color:#bccde8!important;color:#142348!important;border-radius:8px!important;color-scheme:light}
html[data-panel-theme="kobalt"] .ff-panel .ff-setting-field input::placeholder{color:#68758c;opacity:1}
html[data-panel-theme="kobalt"] .ff-panel .ff-setting-field :is(input:disabled,input[readonly]){background:#edf2fe!important;color:#5e6b86!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-gallery-dropzone{background:#f7faff!important;border-color:#a9bfe8!important;border-radius:10px!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-gallery-dropzone:hover{border-color:#1749dc!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo{background:#fff!important;border-color:#bfceea!important;border-radius:10px!important;box-shadow:0 6px 17px -10px #345b9f30}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-image{background:#edf2fe}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-badges>span{color:#1749dc;background:#fffffff2;border-color:#bed0ee;border-radius:6px;box-shadow:0 2px 7px #14234812}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-footer{background:#fff;border-color:#c5d1e5}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-tools .ff-photo-action{background:#f3f7ff!important;border-color:#c5d1e5!important;color:#1749dc!important;border-radius:8px!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-tools .ff-photo-action[aria-pressed="true"]{background:#1749dc!important;border-color:#1749dc!important;color:#fff!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-photo-tools .ff-photo-delete{color:#b3314a!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-selection-summary{background:#edf3ff;border-color:#c6d3ea;border-radius:10px}
html[data-panel-theme="kobalt"] .ff-panel .ff-delivery-tabs{background:#f7f9ff;border-color:#c5d1e5;border-radius:10px}
html[data-panel-theme="kobalt"] .ff-panel .ff-delivery-tabs button{border-radius:8px}
html[data-panel-theme="kobalt"] .ff-panel .ff-delivery-tabs button[aria-selected="true"]{background:#e8efff;border-color:#9fb8ed;color:#1749dc}
html[data-panel-theme="kobalt"] .ff-panel .ff-delivery-tabs small{background:#fff;color:#1749dc}
html[data-panel-theme="kobalt"] .ff-panel :is(.ff-upload-box,.ff-video-section) .ff-media-grid>div{background:#edf2fe!important;border-color:#c5d1e5;border-radius:9px!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-actions{background:#f7fafff5;border-color:#c6d3ea;border-radius:12px;box-shadow:0 8px 24px #294d8814}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-actions button{border-radius:8px!important}
html[data-panel-theme="kobalt"] .ff-panel .ff-editor-save-copy{color:#1749dc}
@media(max-width:600px){html[data-panel-theme="kobalt"] .ff-panel :is(.ff-editor-section-title h2,.ff-editor-upload-heading>label,.ff-upload-box h3,.ff-video-section h3){font-size:23px!important}}

/* SOL142: Riviera ceramics and linen; photographs keep contain framing and original colours. */
html[data-panel-theme="riviera"] .ff-panel :is(.ff-editor-setting-card,.ff-editor-collection,.ff-upload-box,.ff-video-section) { border:1px solid #dcc6b4;background:linear-gradient(135deg,#fffbf5,#fff8ef);border-radius:14px;box-shadow:0 5px 20px #38291f0a; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-header h1 { font:500 clamp(34px,3.8vw,48px)/1.08 var(--ff-serif)!important;letter-spacing:-.015em; }
html[data-panel-theme="riviera"] .ff-panel :is(.ff-editor-section-title h2,.ff-editor-upload-heading>label,.ff-upload-box h3,.ff-video-section h3,.ff-editor-selection-summary h2) { font-family:var(--ff-serif)!important;font-size:30px!important;font-weight:500!important;color:#38291f!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-section-title>span { background:#f3e4d4;border-color:#dcc6b4;color:#a7431d; }
html[data-panel-theme="riviera"] .ff-panel .ff-setting-field input { background:#fffdf8!important;border-color:#cdb295!important;color:#38291f!important;border-radius:9px!important;color-scheme:light; }
html[data-panel-theme="riviera"] .ff-panel .ff-setting-field input::placeholder { color:#8b7563;opacity:1; }
html[data-panel-theme="riviera"] .ff-panel .ff-setting-field :is(input:disabled,input[readonly]) { background:#f1e4d4!important;color:#756253!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-gallery-dropzone { background:#fbf3e8!important;border-color:#ac8a70!important;border-radius:12px!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-gallery-dropzone:hover { border-color:#a7431d!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo { background:#fff8ef!important;border-color:#dcc6b4!important;border-radius:12px!important;box-shadow:0 5px 15px #38291f0b; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-image { background:#f1e4d4; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-badges>span { color:#a7431d;background:#fff8eff2;border-color:#dcc6b4;border-radius:6px;box-shadow:0 2px 7px #38291f12; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-footer { background:#fff8ef;border-color:#dcc6b4; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-tools .ff-photo-action { background:#fff8ef!important;border-color:#ac8a70!important;color:#a7431d!important;border-radius:6px!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-tools .ff-photo-action[aria-pressed="true"] { background:#a7431d!important;border-color:#a7431d!important;color:#fff!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-photo-tools .ff-photo-delete { color:#9f3636!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-selection-summary { background:#fbf3e8;border-color:#dcc6b4;border-radius:12px; }
html[data-panel-theme="riviera"] .ff-panel .ff-delivery-tabs { background:#fbf3e8;border-color:#dcc6b4;border-radius:9px; }
html[data-panel-theme="riviera"] .ff-panel .ff-delivery-tabs button { border-radius:6px; }
html[data-panel-theme="riviera"] .ff-panel .ff-delivery-tabs button[aria-selected="true"] { background:#a7431d;border-color:#a7431d;color:#fff; }
html[data-panel-theme="riviera"] .ff-panel .ff-delivery-tabs small { background:#efddc8;color:#a7431d; }
html[data-panel-theme="riviera"] .ff-panel .ff-delivery-tabs button[aria-selected="true"] small { background:#fff8ef; }
html[data-panel-theme="riviera"] .ff-panel :is(.ff-upload-box,.ff-video-section) .ff-media-grid>div { background:#fff8ef!important;border-color:#dcc6b4;border-radius:9px!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-actions { background:#fff8eff5;border-color:#ac8a70;border-radius:10px;box-shadow:0 7px 24px #38291f0f; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-actions button { border-radius:9px!important; }
html[data-panel-theme="riviera"] .ff-panel .ff-editor-save-copy { color:#38291f; }
@media(max-width:600px) { html[data-panel-theme="riviera"] .ff-panel .ff-editor-header h1 { font-size:36px!important; } }
@media(max-width:420px) { html[data-panel-theme="riviera"] .ff-panel .ff-editor-header h1 { font-size:34px!important; } }

/* SOL168: wspólny wybór rozmiaru, pełne kadry do identyfikacji zdjęć. */
.ff-panel .ff-selection-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px; }
.ff-panel .ff-selection-heading h2 { margin:0!important; }
.ff-panel .ff-selection-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--ff-selection-width)),1fr));gap:12px;align-items:start; }
.ff-panel .ff-selection-card { min-width:0; }
.ff-panel .ff-selection-card>img { width:100%;height:var(--ff-selection-width);aspect-ratio:auto!important;object-fit:contain!important;background:var(--ff-bg); }
.ff-panel .ff-selection-copy { min-width:0;padding:10px!important; }
.ff-panel .ff-selection-copy p { font-size:14px!important; }
.ff-panel .ff-selection-copy button { min-width:44px;min-height:44px;justify-content:center; }
.ff-panel .ff-selection-grid[data-view="lista"] { grid-template-columns:minmax(0,1fr); }
/* SOL169: stała miniatura z lewej, tekst wyznacza wysokość wiersza. */
.ff-panel .ff-selection-card[data-view="lista"] { display:grid;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:14px;padding:12px; }
.ff-panel .ff-selection-card[data-view="lista"]>img { display:block;width:80px;height:96px;border-radius:5px;object-position:left top; }
.ff-panel .ff-selection-card[data-view="lista"]>.ff-selection-copy { padding:0!important;min-width:0;align-self:center; }
.ff-panel .ff-selection-filename { margin:0;color:var(--ff-gold-light);font-weight:600;line-height:1.5;overflow-wrap:anywhere; }
.ff-panel .ff-selection-comment { margin:6px 0 0;color:var(--ff-ink);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere; }
@media(max-width:600px) {
 .ff-panel .ff-selection-grid[data-view="duze"] { grid-template-columns:minmax(0,1fr); }
 .ff-panel .ff-selection-grid[data-view="srednie"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ff-panel .ff-selection-grid[data-view="male"] { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
 .ff-panel .ff-selection-card:not([data-view="lista"])>img { height:auto;aspect-ratio:3/4!important; }
 .ff-panel .ff-selection-card[data-view="male"] .ff-selection-copy { padding:5px!important; }
 .ff-panel .ff-selection-card[data-view="male"] .ff-selection-copy p { font-size:12px!important; }
}
