.fc-layer{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden;border-radius:inherit}
.fc-block{position:absolute;box-sizing:border-box;width:max-content;overflow:hidden;overflow-wrap:anywhere;pointer-events:none;color:white;line-height:1.35}
.fc-block .fd-label{width:auto;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.fc-block .fd-label-title+.fd-label-description{padding-top:0!important}
.fc-block .fd-photo-meta{white-space:normal;padding:8px;line-height:1.35}
.fc-block .fd-photo-meta .fd-label{display:inline;padding:0!important;white-space:normal}
.fc-block .fd-photo-meta .fd-label-counter{white-space:nowrap}
.fc-block .fd-more,.fc-overflow-more{pointer-events:auto}
.fc-overflow-more{position:absolute;bottom:0;right:0;max-width:100%;background:#181818;color:white;font:inherit;border:0;padding:6px}
.fc-editing .fc-layer{z-index:12}
.fc-editing .fc-block{pointer-events:auto;touch-action:none;user-select:none;cursor:grab;outline:2px dashed #fff;outline-offset:-2px}
.fc-editing .fc-block:focus-visible{outline:3px solid #78c6ff;outline-offset:-3px}
.fc-editing .fc-block.fc-dragging{cursor:grabbing;outline-color:#78c6ff}
.fc-launch{position:absolute;top:6px;right:6px;z-index:10;border:1px solid #fff8;border-radius:6px;background:#181818dd;color:white;font:13px/1.3 sans-serif;padding:6px 8px;min-height:32px;max-width:65%;cursor:pointer}
dialog>.fc-launch{top:76px;right:16px}
.fc-editing>.fc-launch{display:none!important}
.fc-panel{position:fixed;z-index:100000;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(540px,calc(100vw - 16px));max-height:45dvh;overflow:auto;box-sizing:border-box;background:#222;color:#fff;border:1px solid #a88868;border-radius:10px;padding:10px;box-shadow:0 4px 24px #0008;font:14px/1.4 sans-serif;touch-action:pan-y}
.fc-panel p{margin:6px 0}.fc-panel button,.fc-panel select{font:inherit;min-height:36px;padding:6px;margin:3px;color:#fff;background:#3d322a;border:1px solid #a88868;border-radius:5px;cursor:pointer}.fc-panel select{max-width:100%}.fc-panel button:disabled{opacity:.5;cursor:default}.fc-corners{display:flex;flex-wrap:wrap}.fc-status:empty,.fc-confirm:empty{display:none}.fc-panel [hidden]{display:none!important}
.fc-editing-page .fw-controls,.fc-editing .fw-view-arrow,.fc-editing .fw-view-dots{pointer-events:none}
.fc-layer [hidden]{display:none!important}
@media(max-width:600px){.fc-panel button,.fc-panel select{min-height:44px}}

.fw-card{position:relative}
.fc-block .fd-photo-meta{padding:0}
.fc-editing-page .fw-controls button,.fc-editing .fw-view-toolbar button:not(:last-child){pointer-events:none}

/* Author controls are opt-in through the WordPress + menu. */
.fw-preview .fw-card>.fc-launch,dialog.fw-lightbox>.fc-launch{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;max-width:none;padding:0;border:1px solid #ffffffa0;border-radius:50%;background:#181818cc;color:#fff;line-height:1;box-shadow:0 1px 4px #0004;cursor:pointer}
.fc-pencil{font:24px/1 Arial,sans-serif}
@media(max-width:600px){.fw-preview .fw-card>.fc-launch,dialog.fw-lightbox>.fc-launch{width:44px;height:44px;min-width:44px;min-height:44px}}

/* Compact movable panel: the handle becomes the only button when collapsed. */
.fc-panel{width:min(330px,calc(100vw - 8px));max-height:none;overflow:visible;padding:6px;font:13px/1.2 Arial,sans-serif}
.fc-panel button,.fc-panel select{box-sizing:border-box;min-height:36px;margin:0;padding:5px;font:inherit}
.fc-panel .fc-panel-handle{display:block;width:100%;height:32px;min-height:32px;margin:0 0 5px;touch-action:none;user-select:none;cursor:move;font-size:18px}
.fc-tools{display:flex;gap:4px}.fc-tools .fc-select{width:62px;min-width:0}.fc-corners{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.fc-corners button{font-size:22px}
.fc-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:5px}.fc-actions>button:last-child{grid-column:1/-1}
.fc-panel.fc-collapsed{width:max-content;max-width:calc(100vw - 8px);padding:0;border:0;box-shadow:none;background:transparent}
.fc-panel.fc-collapsed>:not(.fc-panel-handle){display:none!important}
.fc-panel.fc-collapsed .fc-panel-handle{width:auto;height:auto;min-height:40px;margin:0;padding:8px 12px;font-size:13px;white-space:normal}
.fc-confirm{display:flex;flex-wrap:wrap;gap:4px}.fc-status{overflow-wrap:anywhere}

.fc-tools{align-items:start}.fc-corners{grid-template-columns:repeat(13,minmax(0,1fr));gap:2px}.fc-tools .fc-select{width:48px}.fc-panel .fc-slot{height:34px;min-height:34px;padding:2px}.fc-slot-icon{display:block;position:relative;width:100%;height:21px;border:1px solid #bda991;border-radius:3px;box-sizing:border-box}.fc-slot-icon::after{content:'';position:absolute;width:4px;height:4px;left:var(--slot-x);top:var(--slot-y);transform:translate(-50%,-50%);background:currentColor;border-radius:1px}.fc-slot[aria-pressed=true]{background:#246f9c;border-color:#8acfff}
.fc-edge-shade{position:absolute;pointer-events:none;z-index:0}.fc-block{z-index:1}.fc-snap-guide{position:absolute;display:grid;grid-template-columns:repeat(13,1fr);grid-template-rows:1fr 1fr;pointer-events:none;z-index:3}.fc-snap-guide i{border:1px dashed #ffffff60}.fc-snap-guide .fc-target{background:#248bd540;outline:2px solid #8ad7ff;outline-offset:-2px}

.fc-groups{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:5px}
.fc-panel .fc-group{min-width:0;min-height:36px;font:13px/1.2 Arial,sans-serif;white-space:normal;overflow-wrap:anywhere}
.fc-panel button,.fc-panel button:focus,.fc-panel button:focus-visible,.fc-panel button:active{outline:none!important;box-shadow:none!important;border-width:1px!important}
.fc-panel .fc-group[aria-pressed=true],.fc-panel button:focus-visible{border-color:#8acfff!important;background-color:#245574}
.fc-panel button:focus-visible{text-decoration:underline}
.fc-tools>.fc-corners{width:100%}

.fc-alignments{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:5px}
.fc-panel .fc-align[aria-pressed=true]{border-color:#8acfff!important;background:#245574}
.fc-align-icon{display:flex;flex-direction:column;gap:3px;width:24px;margin:auto}
.fc-align-icon i{height:2px;width:100%;background:currentColor}
.fc-align-icon i:nth-child(even){width:65%}
.fc-align[data-align=center] i{align-self:center}.fc-align[data-align=right] i{align-self:flex-end}
.fc-block .fd-label{padding:0!important;min-width:0}

.fc-panel .fc-default[aria-pressed=true]{border-color:#8acfff!important;background:#245574}
.fc-block[data-standard]{background:transparent;overflow:visible}

/* Side tools are positioned independently: existing panel rows do not move. */
.fc-style-dock{position:absolute;left:-40px;top:0;width:34px;z-index:2}
.fc-style-rail{display:grid;gap:4px;background:#222;border:1px solid #a88868;border-radius:6px;padding:2px}
.fc-panel .fc-style-rail button{width:30px;min-height:34px;padding:2px;font-size:16px}
.fc-panel .fc-style-rail button[aria-pressed=true],.fc-panel .fc-swatches button[aria-pressed=true]{border-color:#8acfff!important;box-shadow:inset 0 0 0 2px #245574!important}
.fc-style-controls{position:absolute;top:0;width:164px;box-sizing:border-box;padding:6px;background:#222;color:#fff;border:1px solid #a88868;border-radius:6px;font:13px/1.3 Arial,sans-serif}
.fc-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:5px 0}
.fc-panel .fc-swatches button{min-height:28px;width:100%;padding:0;border-color:#aaa}
.fc-style-controls input[type=color]{width:100%;height:30px;box-sizing:border-box;padding:1px}
.fc-style-controls input[type=range]{width:100%;margin:8px 0;accent-color:#8acfff;box-sizing:border-box}
.fc-size-steps{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;text-align:center;gap:3px;margin:6px 0}
.fc-style-note{font-size:11px}.fc-style-reset{margin-top:5px;text-align:right}
.fc-panel .fc-style-reset button{min-height:28px;padding:2px 8px}

/* Keep the three style tools within the shared panel. */
.fc-panel-content{padding-left:38px;box-sizing:border-box}
.fc-style-dock{left:6px;top:43px;width:32px}
.fc-style-rail{border:0;padding:0;background:transparent}
.fc-caption-pending .fd-label,.fc-caption-pending .fd-photo-meta,.fc-caption-pending .fw-caption,.fc-caption-pending h3,.fc-caption-pending .fd-card-shade,.fc-caption-pending .fd-full-shade,.fc-caption-pending .fc-layer{visibility:hidden!important}

/* Background is a sibling below both original labels and editor clones. */
.fc-shade-layer{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden;border-radius:inherit}

/* Read-only device indicator in the existing left gutter. */
.fc-panel .fc-device-indicator{position:absolute;left:6px;bottom:10px;width:30px;min-height:34px;margin:0;padding:5px;cursor:default;color:#ccc;background:#303030;border-color:#777}
.fc-device-indicator svg{display:block;width:18px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.fc-device-indicator:focus-visible{outline:0;border-color:#8acfff!important;box-shadow:inset 0 0 0 1px #8acfff}
.fc-device-tooltip{position:absolute;bottom:48px;left:6px;right:6px;padding:10px;background:#111;color:#fff;border:1px solid #888;border-radius:6px;z-index:5;font-size:13px;line-height:1.4;pointer-events:none}
.fc-collapsed .fc-device-indicator,.fc-collapsed .fc-device-tooltip{display:none!important}
.fc-layer.fc-device-pending .fc-block{pointer-events:none}
@media(max-width:600px){.fc-panel .fc-device-indicator{min-height:44px}}

/* Independent close control, including the compact collapsed panel. */
.fc-panel-header{display:flex;gap:4px;margin-bottom:5px;align-items:stretch}
.fc-panel .fc-panel-header .fc-panel-handle{flex:1;min-width:0;width:auto;margin:0}
.fc-panel .fc-panel-close{flex:0 0 32px;width:32px;min-height:32px;padding:0;font-size:22px;cursor:pointer}
.fc-panel.fc-collapsed>.fc-panel-header{display:flex!important;margin:0}
.fc-panel.fc-collapsed .fc-panel-close{min-height:40px}
.fc-panel.fc-collapsed .fc-panel-handle{padding:8px 12px}
.fc-panel .fc-review-toggle{position:absolute;left:6px;bottom:60px;width:30px;min-height:30px;height:30px;margin:0;padding:3px;font-size:18px}
.fc-review-toggle[aria-pressed=true]{background:#216c39!important;border-color:#7ad697!important;color:#fff!important}
.fc-collapsed .fc-review-toggle{display:none!important}
.fc-reviewed .fc-pencil{display:none}
.fc-reviewed-badge{display:block;width:28px;height:28px;pointer-events:none}
@media(max-width:600px){.fc-reviewed-badge{width:32px;height:32px}}
.fc-vertical-tools{display:grid;grid-template-rows:1fr 1fr;gap:4px;flex:0 0 28px}
.fc-panel .fc-vertical{width:28px;min-height:30px;padding:0;font-size:20px;touch-action:none}


/* Keep thirteen positions usable: stagger the six new slots between the old seven on narrow screens. */
.fc-panel:not(.fc-collapsed){width:min(620px,calc(100vw - 8px))}
@media(max-width:600px){
 .fc-corners{grid-template-columns:repeat(14,minmax(0,1fr));row-gap:3px}
 .fc-panel .fc-corners .fc-slot{grid-column:var(--fc-grid-column)/span 2;grid-row:var(--fc-grid-row);min-width:0}
 .fc-panel .fc-corners .fc-slot[data-row="1"]{border-top-color:#d7bb98}
}

.fw-video-zoomed .fd-photo-meta,.fw-video-zoomed .fc-block[data-group="meta"]{visibility:hidden!important;pointer-events:none!important}
.fw-video-scene.fw-reset{transition:none!important}

/* Presets reuse the movable editor; they do not affect caption geometry. */
.fc-panel .fc-presets{grid-column:1/-1;margin-top:8px;border-top:1px solid #a38c73;padding-top:8px;min-width:0}
.fc-panel .fc-presets summary{cursor:pointer;min-height:44px;display:flex;align-items:center;list-style:inside}
.fc-panel .fc-preset-body{display:grid;gap:8px;min-width:0}
.fc-panel .fc-preset-body label{display:grid;gap:4px;min-width:0;color:inherit}
.fc-panel .fc-preset-body :is(select,input){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;color:#fff;background:#382f29;border:1px solid #a38c73;border-radius:4px;padding:6px}
.fc-panel .fc-preset-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.fc-panel .fc-preset-actions button,.fc-panel .fc-preset-confirm button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.fc-panel :is(.fc-preset-note,.fc-preset-status,.fc-preset-confirm p){margin:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;color:inherit}
.fc-panel .fc-preset-confirm{display:flex;flex-wrap:wrap;gap:6px}
.fc-panel .fc-preset-confirm p{flex-basis:100%}
.fc-panel .fc-presets :focus-visible{outline:2px solid #fff;outline-offset:2px}

/* Compact preset header: quick save remains outside the disclosure control. */
.fc-panel .fc-presets-wrap{position:relative;min-width:0;grid-column:1/-1}
.fc-panel .fc-presets{margin-top:4px;padding-top:4px}
.fc-panel .fc-presets>summary{padding-right:48px;gap:6px;font-size:12px}
.fc-panel .fc-preset-chosen{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:normal}
.fc-panel .fc-preset-quick{position:absolute;right:0;top:9px;width:44px;min-height:44px;display:grid;place-items:center;padding:4px}
.fc-panel .fc-preset-body{gap:4px}
.fc-panel .fc-preset-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:0}
.fc-panel .fc-preset-manage{min-width:0}
.fc-panel .fc-preset-manage summary{font-size:12px}
.fc-panel .fc-preset-actions{margin-top:4px;gap:4px}
.fc-panel .fc-preset-status:empty,.fc-panel .fc-preset-confirm:empty{display:none}
.fc-panel .fc-preset-status:not(:empty),.fc-panel .fc-preset-confirm:not(:empty){margin-top:4px}
.fc-panel .fc-presets-wrap :focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:600px){.fc-panel .fc-preset-fields{grid-template-columns:1fr}}

.fc-panel .fc-preset-body>button{min-height:44px}

/* Bound the editor to the visible viewport; scroll its body, never its drag header. */
.fc-panel:not(.fc-collapsed){display:flex;flex-direction:column;max-height:var(--fc-visible-height,calc(100dvh - 16px));overflow:visible}
.fc-panel-header{flex-shrink:0}
.fc-panel-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;padding:2px;scrollbar-width:thin}
.fc-caption-settings{position:relative;margin-left:-38px;padding-left:38px;min-width:0}
.fc-caption-settings>summary{margin-left:-38px}
.fc-panel summary{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer;list-style:none}
.fc-panel summary::-webkit-details-marker{display:none}
.fc-disclosure-arrow{width:16px;height:16px;flex:0 0 16px}
.fc-panel details[open]>summary>.fc-disclosure-arrow{transform:rotate(90deg)}
.fc-panel summary:focus-visible{outline:2px solid white;outline-offset:-2px}
.fc-caption-settings .fc-style-dock{left:0!important;top:44px!important}
.fc-caption-settings .fc-default{width:100%;margin:4px 0;min-height:44px}
.fc-panel .fc-persistent-tools{display:flex;align-items:center;gap:6px;margin-top:4px}
.fc-panel .fc-persistent-tools :is(.fc-device-indicator,.fc-review-toggle){position:static;width:44px;height:44px;min-height:44px}
.fc-panel .fc-panel-close,.fc-panel .fc-panel-header .fc-panel-handle{min-height:44px}
.fc-panel .fc-style-controls{z-index:10;box-sizing:border-box}
.fc-panel .fc-actions{margin-top:4px}

.fc-panel .fc-actions>button:last-child{grid-column:auto}
.fc-panel .fc-actions>button{min-height:44px}
