/* Advanced fields share the existing Plattio Forms design tokens.
 * The core six-column form grid is intentionally left untouched so adding an
 * extended field can never alter the layout of existing fields. */
.plattio-form-address{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plattio-form-address-stacked{grid-template-columns:1fr}.plattio-form-address-part{display:grid;gap:6px;min-width:0;font-size:.9em}.plattio-form-address-part>span{font-weight:600}.plattio-form-address-address_1,.plattio-form-address-address_2,.plattio-form-address-country{grid-column:1/-1}
.plattio-form-field-multi_select select[multiple]{min-height:132px;padding-block:6px}.plattio-form-field-multi_select select[multiple] option{padding:6px 8px;border-radius:3px}
.plattio-form-image-upload{display:grid;gap:10px}.plattio-form-upload-label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:18px;border:1px dashed var(--plattio-form-border,#c3c4c7);border-radius:var(--plattio-form-field-radius,4px);background:var(--plattio-form-surface-subtle,#f6f7f7);color:inherit;cursor:pointer}.plattio-form-upload-label:hover{border-color:var(--plattio-form-primary)}.plattio-form-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(1px,1px,1px,1px)!important}.plattio-form-file-input:focus-visible+.plattio-form-image-preview,.plattio-form-image-upload:focus-within .plattio-form-upload-label{outline:2px solid var(--plattio-form-primary);outline-offset:2px}.plattio-form-image-preview{position:relative;max-width:320px}.plattio-form-image-preview img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:var(--plattio-form-field-radius,4px)}.plattio-form-image-preview button{margin-top:7px}
.plattio-form-address-fieldset,.plattio-form-rating,.plattio-form-nps,.plattio-form-matrix,.plattio-form-terms,.plattio-form-ranking{min-inline-size:0;min-width:0;margin:0!important;padding:0!important;border:0!important}.plattio-form-address-fieldset>.plattio-form-label,.plattio-form-rating>.plattio-form-label,.plattio-form-nps>.plattio-form-label,.plattio-form-matrix>.plattio-form-label,.plattio-form-terms>.plattio-form-label,.plattio-form-ranking>.plattio-form-label{float:none;width:100%;max-width:100%;margin:0 0 7px;padding:0;border:0}.plattio-form-rating-options{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:3px}.plattio-form-rating-options input{position:absolute;opacity:0;pointer-events:none}.plattio-form-rating-options label{display:inline-grid;place-items:center;width:38px;height:38px;margin:0;color:#a7aaad;cursor:pointer}.plattio-form-rating-options label span:first-child:before{font-family:dashicons;font-size:30px;line-height:1;content:"\f155"}.plattio-form-rating[data-rating-icon=heart] label span:first-child:before{content:"\f487"}.plattio-form-rating[data-rating-icon=circle] label span:first-child:before{content:"●";font-family:inherit;font-size:25px}.plattio-form-rating-options input:checked~label,.plattio-form-rating-options label:hover,.plattio-form-rating-options label:hover~label{color:var(--plattio-form-primary)}.plattio-form-rating-options input:focus-visible+label{outline:2px solid var(--plattio-form-primary);outline-offset:1px;border-radius:4px}.plattio-form-scale-labels{display:flex;justify-content:space-between;gap:12px;margin-top:5px;color:var(--plattio-form-muted,#646970);font-size:.82em}
.plattio-form-nps-options{display:grid;grid-template-columns:repeat(11,minmax(30px,1fr));gap:4px}.plattio-form-nps-options input{position:absolute;opacity:0;pointer-events:none}.plattio-form-nps-options label{display:grid;place-items:center;min-height:38px;margin:0;border:1px solid var(--plattio-form-border,#dcdcde);border-radius:4px;background:#fff;cursor:pointer}.plattio-form-nps-options input:checked+label{border-color:var(--plattio-form-primary);background:var(--plattio-form-primary);color:#fff}.plattio-form-nps-options input:focus-visible+label{outline:2px solid var(--plattio-form-primary);outline-offset:2px}
.plattio-form-matrix-scroll{max-width:100%;overflow:auto;border-radius:var(--plattio-field-option-radius,var(--plattio-field-border-radius,var(--plattio-form-field-radius,4px)))}.plattio-form-matrix table{width:100%;min-width:520px;border-collapse:separate;border-spacing:0;background:#fff}.plattio-form-matrix th,.plattio-form-matrix td{padding:9px;border:0;text-align:center}.plattio-form-matrix th:first-child{text-align:start}.plattio-form-matrix thead th{background:var(--plattio-form-surface-subtle,#f6f7f7);font-size:.86em}.plattio-form-matrix input{width:auto!important;margin:0}.plattio-form-matrix-border-rows thead th,.plattio-form-matrix-border-rows tbody tr:not(:last-child)>*{border-bottom:var(--plattio-field-border-width,1px) var(--plattio-field-border-type,solid) var(--plattio-field-option-border,var(--plattio-field-border-color,var(--plattio-form-border,#dcdcde)))}.plattio-form-matrix-border-grid .plattio-form-matrix-scroll{border:var(--plattio-field-border-width,1px) var(--plattio-field-border-type,solid) var(--plattio-field-option-border,var(--plattio-field-border-color,var(--plattio-form-border,#dcdcde)))}.plattio-form-matrix-border-grid th,.plattio-form-matrix-border-grid td{border-inline-end:var(--plattio-field-border-width,1px) var(--plattio-field-border-type,solid) var(--plattio-field-option-border,var(--plattio-field-border-color,var(--plattio-form-border,#dcdcde)));border-bottom:var(--plattio-field-border-width,1px) var(--plattio-field-border-type,solid) var(--plattio-field-option-border,var(--plattio-field-border-color,var(--plattio-form-border,#dcdcde)))}.plattio-form-matrix-border-grid tr>*:last-child{border-inline-end:0}.plattio-form-matrix-border-grid tbody tr:last-child>*{border-bottom:0}.plattio-form-matrix-border-none .plattio-form-matrix-scroll,.plattio-form-matrix-border-none th,.plattio-form-matrix-border-none td{border:0!important}.plattio-form-field-custom-border-none .plattio-form-matrix-scroll,.plattio-form-field-custom-border-none .plattio-form-matrix th,.plattio-form-field-custom-border-none .plattio-form-matrix td{border:0!important}
.plattio-form-password{display:grid;gap:10px}.plattio-form-password-control{position:relative}.plattio-form-password-control input{padding-inline-end:48px!important}.plattio-form-password-control button{position:absolute;inset-block:0;inset-inline-end:0;display:grid;place-items:center;width:44px;margin:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none;cursor:pointer}.plattio-form-password-confirm{display:grid;gap:6px;font-size:.9em}.plattio-form-password-confirm>span{font-weight:600}.plattio-form-password-strength{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.plattio-form-password-strength>span{height:5px;border-radius:999px;background:linear-gradient(90deg,#d63638 0 25%,#dba617 25% 50%,#72aee6 50% 75%,#00a32a 75%);clip-path:inset(0 100% 0 0);transition:clip-path .15s ease}.plattio-form-password-strength[data-score="1"]>span{clip-path:inset(0 75% 0 0)}.plattio-form-password-strength[data-score="2"]>span{clip-path:inset(0 50% 0 0)}.plattio-form-password-strength[data-score="3"]>span{clip-path:inset(0 25% 0 0)}.plattio-form-password-strength[data-score="4"]>span{clip-path:inset(0 0 0 0)}.plattio-form-password-strength small{color:var(--plattio-form-muted,#646970)}
.plattio-form-terms{display:grid;gap:10px}.plattio-form-terms-content{overflow:auto;padding:14px;border:1px solid var(--plattio-form-border,#dcdcde);border-radius:var(--plattio-form-field-radius,4px);background:var(--plattio-form-surface-subtle,#f6f7f7)}.plattio-form-terms-content>:first-child{margin-top:0}.plattio-form-terms-content>:last-child{margin-bottom:0}.plattio-form-terms-check{display:flex;align-items:flex-start;gap:8px}.plattio-form-terms-check input{flex:0 0 auto;margin-top:.2em}
.plattio-form-rich-text{overflow:hidden;border:1px solid var(--plattio-form-border,#8c8f94);border-radius:var(--plattio-form-field-radius,4px);background:#fff}.plattio-form-rich-text:focus-within{border-color:var(--plattio-form-primary);box-shadow:0 0 0 1px var(--plattio-form-primary)}.plattio-form-rich-text-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:5px;border-bottom:1px solid var(--plattio-form-border,#dcdcde);background:var(--plattio-form-surface-subtle,#f6f7f7)}.plattio-form-rich-text-toolbar button{display:grid;place-items:center;width:34px;height:32px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;box-shadow:none;cursor:pointer}.plattio-form-rich-text-toolbar button:hover,.plattio-form-rich-text-toolbar button:focus-visible{border-color:var(--plattio-form-border,#c3c4c7);background:#fff}.plattio-form-rich-text-editor{padding:12px;overflow:auto;outline:0}.plattio-form-rich-text-editor:empty:before{content:attr(data-placeholder);color:var(--plattio-form-muted,#646970)}
.plattio-form-chained-select{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.plattio-form-chained-select label{display:grid;gap:6px}.plattio-form-chained-select label>span{font-size:.9em;font-weight:600}
.plattio-form-range{display:grid;gap:5px}.plattio-form-range input[type=range]{width:100%;padding:0;border:0;background:transparent;box-shadow:none}.plattio-form-range>div{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--plattio-form-muted,#646970);font-size:.82em}.plattio-form-range output{min-width:48px;padding:3px 8px;border-radius:999px;background:var(--plattio-form-surface-subtle,#f6f7f7);color:inherit;text-align:center;font-weight:700}
.plattio-form-ranking ol{display:grid;gap:7px;margin:0;padding:0;list-style:none}.plattio-form-ranking li{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 8px 7px 11px;border:1px solid var(--plattio-form-border,#dcdcde);border-radius:var(--plattio-form-field-radius,4px);background:#fff;cursor:grab}.plattio-form-ranking li.is-dragging{opacity:.5}.plattio-form-ranking li>span:nth-child(2){flex:1}.plattio-form-ranking-actions{display:flex}.plattio-form-ranking-actions button{display:grid;place-items:center;width:32px;height:30px;margin:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none;cursor:pointer}
.plattio-form-color{display:flex;align-items:center;gap:10px}.plattio-form-color input[type=color]{flex:0 0 54px;width:54px!important;height:44px;padding:4px}.plattio-form-color output{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.plattio-form-section-group,.plattio-form-tabs{display:grid;grid-column:1/-1;min-width:0}.plattio-form-section-group{border:1px solid var(--plattio-form-border,#dcdcde);border-radius:var(--plattio-form-field-radius,4px);background:#fff}.plattio-form-section-group>.plattio-form-field-accordion{margin:0}.plattio-form-section-marker{display:grid}.plattio-form-section-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;margin:0;padding:11px 14px;border:0;border-radius:inherit;background:var(--plattio-form-surface-subtle,#f6f7f7);color:inherit;font:inherit;font-weight:700;text-align:start;box-shadow:none;cursor:pointer}.plattio-form-section-trigger .dashicons{transition:transform .15s ease}.plattio-form-section-trigger[aria-expanded=true] .dashicons{transform:rotate(180deg)}.plattio-form-section-marker>p{margin:0;padding:0 14px 10px;background:var(--plattio-form-surface-subtle,#f6f7f7);color:var(--plattio-form-muted,#646970);font-size:.9em}.plattio-form-section-panel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 16px;padding:16px}.plattio-form-tab-list{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--plattio-form-border,#dcdcde)}.plattio-form-tab-list .plattio-form-section-trigger{width:auto;border-radius:4px 4px 0 0;background:transparent}.plattio-form-tab-list [role=tab][aria-selected=true]{background:var(--plattio-form-surface-subtle,#f6f7f7);color:var(--plattio-form-primary);box-shadow:inset 0 -2px 0 var(--plattio-form-primary)}.plattio-form-tab-list .dashicons{display:none}.plattio-form-tab-panels>.plattio-form-section-panel{padding-inline:0}
.plattio-form-field-shortcode,.plattio-form-field-action_hook{grid-column:1/-1}
@media(max-width:640px){.plattio-form-address{grid-template-columns:1fr}.plattio-form-address-part{grid-column:1/-1}.plattio-form-nps-options{grid-template-columns:repeat(6,minmax(36px,1fr))}.plattio-form-section-panel{grid-template-columns:1fr}.plattio-form-tab-list{overflow:auto;flex-wrap:nowrap}.plattio-form-tab-list .plattio-form-section-trigger{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.plattio-form-password-strength>span,.plattio-form-section-trigger .dashicons{transition:none}}
.plattio-form input[type=datetime-local]{box-sizing:border-box;width:100%;max-width:none;border:1px solid #8c8f94;border-radius:var(--plattio-form-field-radius);background:#fff;color:#1d2327;font:inherit;line-height:1.4}.plattio-form-size-small input[type=datetime-local]{padding:8px 10px}.plattio-form-size-medium input[type=datetime-local]{padding:11px 12px}.plattio-form-size-large input[type=datetime-local]{padding:14px}.plattio-form input[type=datetime-local]:focus{outline:0;border-color:var(--plattio-form-primary);box-shadow:0 0 0 1px var(--plattio-form-primary)}
/* Extended field styling parity (2.3.30)
 * Custom controls use the same field-size, border, radius, shadow, colour,
 * hover and focus tokens as native inputs. The original default appearance is
 * untouched until advanced form styling is active. */
.plattio-form-advanced .plattio-form-field{
	--pf-ext-field-background:var(--plattio-field-background,var(--plattio-form-field-background,#fff));
	--pf-ext-field-border:var(--plattio-field-border-color,var(--plattio-form-field-border-color,#8c8f94));
	--pf-ext-field-border-type:var(--plattio-field-border-type,var(--plattio-form-field-border-type,solid));
	--pf-ext-field-border-width:var(--plattio-field-border-width,var(--plattio-form-field-border-width,1px));
	--pf-ext-field-radius:var(--plattio-field-border-radius,var(--plattio-form-field-radius,4px));
	--pf-ext-field-text:var(--plattio-field-text-color,var(--plattio-form-input-text,#1d2327));
	--pf-ext-field-min-height:var(--plattio-field-min-height,var(--pf-control-height,46px));
	--pf-ext-field-padding-y:var(--plattio-field-padding-y,var(--pf-control-pad-y,11px));
	--pf-ext-field-padding-x:var(--plattio-field-padding-x,var(--pf-control-pad-x,12px));
	--pf-ext-field-hover-background:var(--plattio-form-field-hover-background,#fff);
	--pf-ext-field-hover-border:var(--plattio-form-field-hover-border,#646970);
	--pf-ext-field-focus-background:var(--plattio-field-focus-background,var(--plattio-form-focus-background,#fff));
	--pf-ext-field-focus-border:var(--plattio-field-focus-border,var(--plattio-form-focus-border,#2271b1));
	--pf-ext-field-focus-ring:var(--plattio-field-focus-ring,var(--plattio-form-focus-ring,#2271b1));
	--pf-ext-field-focus-ring-width:var(--plattio-form-focus-ring-width,1px);
	--pf-ext-field-focus-ring-offset:var(--plattio-form-focus-ring-offset,0px);
}

.plattio-form-advanced .plattio-form-field :where(
	.plattio-form-upload-label,
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color,
	.plattio-form-calculation,
	.plattio-form-shortcode,
	.plattio-form-action-hook
){
	box-sizing:border-box!important;
	min-width:0;
	min-height:var(--pf-ext-field-min-height)!important;
	border-color:var(--pf-ext-field-border)!important;
	border-style:var(--pf-ext-field-border-type)!important;
	border-width:var(--pf-ext-field-border-width)!important;
	border-radius:var(--pf-ext-field-radius)!important;
	background-color:var(--pf-ext-field-background)!important;
	color:var(--pf-ext-field-text)!important;
	transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,outline-color .16s ease!important;
}

.plattio-form-advanced .plattio-form-upload-label{
	min-height:calc(var(--pf-control-height,46px) + var(--pf-control-height,46px))!important;
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x)!important;
}
.plattio-form-advanced .plattio-form-rating-options,
.plattio-form-advanced .plattio-form-nps-options,
.plattio-form-advanced .plattio-form-range,
.plattio-form-advanced .plattio-form-color,
.plattio-form-advanced .plattio-form-calculation,
.plattio-form-advanced .plattio-form-shortcode,
.plattio-form-advanced .plattio-form-action-hook{
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x)!important;
}
.plattio-form-advanced .plattio-form-terms-content{
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x)!important;
}
.plattio-form-advanced .plattio-form-rich-text-editor{
	min-height:max(90px,var(--pf-ext-field-min-height));
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x)!important;
}
.plattio-form-advanced .plattio-form-rich-text-toolbar{
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x);
	border-bottom-color:var(--pf-ext-field-border)!important;
	background:color-mix(in srgb,var(--pf-ext-field-background) 88%,var(--pf-ext-field-border) 12%)!important;
}
.plattio-form-advanced .plattio-form-rating-options label{
	width:var(--pf-control-height,46px);
	height:var(--pf-control-height,46px);
	border-radius:min(var(--pf-ext-field-radius),8px);
}
.plattio-form-advanced .plattio-form-nps-options label{
	min-height:var(--pf-control-height,46px);
	border-color:var(--plattio-field-option-border,var(--pf-ext-field-border))!important;
	border-style:var(--pf-ext-field-border-type)!important;
	border-width:var(--pf-ext-field-border-width)!important;
	border-radius:var(--plattio-field-option-radius,var(--pf-ext-field-radius))!important;
	background:var(--plattio-field-option-background,var(--pf-ext-field-background))!important;
}
.plattio-form-advanced .plattio-form-ranking li{
	min-height:var(--pf-ext-field-min-height)!important;
	padding:var(--pf-ext-field-padding-y) var(--pf-ext-field-padding-x)!important;
}
.plattio-form-advanced .plattio-form-color input[type=color]{
	flex-basis:calc(var(--pf-control-height,46px) + 8px);
	width:calc(var(--pf-control-height,46px) + 8px)!important;
	height:var(--pf-control-height,46px)!important;
	padding:4px!important;
	border:0!important;
	border-radius:min(var(--pf-ext-field-radius),8px)!important;
	background:transparent!important;
	box-shadow:none!important;
}
.plattio-form-advanced .plattio-form-range input[type=range]{
	min-height:max(20px,calc(var(--pf-control-height,46px) - 20px));
	accent-color:var(--plattio-field-accent,var(--plattio-form-primary,#2271b1));
}
.plattio-form-advanced .plattio-form-calculation{
	display:flex;
	align-items:center;
	gap:.35em;
}

/* Matrix topology remains controlled by the Matrix Border setting. Global field
 * controls provide its colour, width, type, radius, background and shadow. */
.plattio-form-advanced .plattio-form-matrix-scroll{
	box-sizing:border-box;
	border-radius:var(--pf-ext-field-radius)!important;
	background:var(--pf-ext-field-background)!important;
	color:var(--pf-ext-field-text)!important;
	transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,outline-color .16s ease!important;
}
.plattio-form-advanced .plattio-form-matrix table,
.plattio-form-advanced .plattio-form-matrix th,
.plattio-form-advanced .plattio-form-matrix td{
	background:var(--pf-ext-field-background)!important;
	color:var(--pf-ext-field-text)!important;
}
.plattio-form-advanced .plattio-form-matrix th,
.plattio-form-advanced .plattio-form-matrix td{
	padding:max(7px,var(--pf-ext-field-padding-y)) max(7px,var(--pf-ext-field-padding-x));
}
.plattio-form-advanced .plattio-form-matrix thead th{
	background:color-mix(in srgb,var(--pf-ext-field-background) 88%,var(--pf-ext-field-border) 12%)!important;
}
.plattio-form-advanced .plattio-form-matrix-border-rows thead th,
.plattio-form-advanced .plattio-form-matrix-border-rows tbody tr:not(:last-child)>*{
	border-bottom:var(--pf-ext-field-border-width) var(--pf-ext-field-border-type) var(--plattio-field-option-border,var(--pf-ext-field-border))!important;
}
.plattio-form-advanced .plattio-form-matrix-border-grid .plattio-form-matrix-scroll{
	border:var(--pf-ext-field-border-width) var(--pf-ext-field-border-type) var(--plattio-field-option-border,var(--pf-ext-field-border))!important;
}
.plattio-form-advanced .plattio-form-matrix-border-grid th,
.plattio-form-advanced .plattio-form-matrix-border-grid td{
	border-inline-end:var(--pf-ext-field-border-width) var(--pf-ext-field-border-type) var(--plattio-field-option-border,var(--pf-ext-field-border))!important;
	border-bottom:var(--pf-ext-field-border-width) var(--pf-ext-field-border-type) var(--plattio-field-option-border,var(--pf-ext-field-border))!important;
}
.plattio-form-advanced .plattio-form-matrix-border-grid tr>*:last-child{border-inline-end:0!important}
.plattio-form-advanced .plattio-form-matrix-border-grid tbody tr:last-child>*{border-bottom:0!important}
.plattio-form-advanced .plattio-form-matrix-border-none .plattio-form-matrix-scroll,
.plattio-form-advanced .plattio-form-matrix-border-none th,
.plattio-form-advanced .plattio-form-matrix-border-none td{border:0!important}

/* Accordion/Tabs are generated around their marker field, so form-level tokens
 * are applied directly to the generated group. */
.plattio-form-advanced .plattio-form-section-group{
	box-sizing:border-box;
	border-color:var(--plattio-form-field-border-color,#8c8f94)!important;
	border-style:var(--plattio-form-field-border-type,solid)!important;
	border-width:var(--plattio-form-field-border-width,1px)!important;
	border-radius:var(--plattio-form-field-radius,4px)!important;
	background:var(--plattio-form-field-background,#fff)!important;
	color:var(--plattio-form-input-text,#1d2327)!important;
	transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,outline-color .16s ease!important;
}
.plattio-form-advanced .plattio-form-section-trigger{
	min-height:var(--pf-control-height,46px);
	padding:var(--pf-control-pad-y,11px) var(--pf-control-pad-x,12px);
	background:var(--plattio-form-field-background,#fff)!important;
	color:var(--plattio-form-input-text,#1d2327)!important;
}
.plattio-form-advanced .plattio-form-section-trigger:hover{
	background:var(--plattio-form-field-hover-background,#fff)!important;
}
.plattio-form-advanced .plattio-form-section-marker>p{
	padding-inline:var(--pf-control-pad-x,12px);
	background:var(--plattio-form-field-background,#fff)!important;
}

/* Hover state parity. */
.plattio-form-advanced .plattio-form-field :where(
	.plattio-form-upload-label,
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color,
	.plattio-form-calculation,
	.plattio-form-shortcode,
	.plattio-form-action-hook
):hover:not(:focus-within){
	border-color:var(--pf-ext-field-hover-border)!important;
	background-color:var(--pf-ext-field-hover-background)!important;
}
.plattio-form-advanced .plattio-form-matrix-scroll:hover:not(:focus-within),
.plattio-form-advanced .plattio-form-matrix-scroll:hover:not(:focus-within) :where(table,th,td){
	background:var(--pf-ext-field-hover-background)!important;
}
.plattio-form-advanced .plattio-form-matrix-border-grid .plattio-form-matrix-scroll:hover:not(:focus-within){
	border-color:var(--pf-ext-field-hover-border)!important;
}
.plattio-form-advanced .plattio-form-matrix-border-rows .plattio-form-matrix-scroll:hover:not(:focus-within) :where(thead th,tbody tr:not(:last-child)>*){
	border-bottom-color:var(--pf-ext-field-hover-border)!important;
}
.plattio-form-advanced .plattio-form-section-group:hover:not(:focus-within){
	border-color:var(--plattio-form-field-hover-border,#646970)!important;
}

/* Focus state parity. */
.plattio-form-advanced .plattio-form-field :where(
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-matrix-scroll,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color
):focus-within{
	border-color:var(--pf-ext-field-focus-border)!important;
	background-color:var(--pf-ext-field-focus-background)!important;
	outline:var(--pf-ext-field-focus-ring-width) solid var(--pf-ext-field-focus-ring)!important;
	outline-offset:var(--pf-ext-field-focus-ring-offset)!important;
	box-shadow:none!important;
}
.plattio-form-advanced .plattio-form-matrix-border-grid .plattio-form-matrix-scroll:focus-within{
	border-color:var(--pf-ext-field-focus-border)!important;
}
.plattio-form-advanced .plattio-form-matrix-border-rows .plattio-form-matrix-scroll:focus-within :where(thead th,tbody tr:not(:last-child)>*){
	border-bottom-color:var(--pf-ext-field-focus-border)!important;
}
.plattio-form-advanced .plattio-form-image-upload:focus-within .plattio-form-upload-label{
	border-color:var(--pf-ext-field-focus-border)!important;
	background-color:var(--pf-ext-field-focus-background)!important;
	outline:var(--pf-ext-field-focus-ring-width) solid var(--pf-ext-field-focus-ring)!important;
	outline-offset:var(--pf-ext-field-focus-ring-offset)!important;
	box-shadow:none!important;
}
.plattio-form-advanced .plattio-form-section-group:focus-within{
	border-color:var(--plattio-form-focus-border,#2271b1)!important;
	background:var(--plattio-form-focus-background,#fff)!important;
	outline:var(--plattio-form-focus-ring-width,1px) solid var(--plattio-form-focus-ring,#2271b1)!important;
	outline-offset:var(--plattio-form-focus-ring-offset,0px)!important;
	box-shadow:none!important;
}

/* Form-level border topology. Matrix keeps its dedicated Rows/Grid/None mode. */
.plattio-form-advanced .plattio-form-border-underline .plattio-form-field :where(
	.plattio-form-upload-label,
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color,
	.plattio-form-calculation,
	.plattio-form-shortcode,
	.plattio-form-action-hook
){
	border-width:0 0 var(--pf-ext-field-border-width)!important;
	border-radius:0!important;
}
.plattio-form-advanced .plattio-form-border-none .plattio-form-field :where(
	.plattio-form-upload-label,
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color,
	.plattio-form-calculation,
	.plattio-form-shortcode,
	.plattio-form-action-hook
){border-width:0!important}
.plattio-form-advanced .plattio-form-border-underline .plattio-form-field :where(
	.plattio-form-rating-options,
	.plattio-form-nps-options,
	.plattio-form-terms-content,
	.plattio-form-rich-text,
	.plattio-form-range,
	.plattio-form-ranking li,
	.plattio-form-color
):focus-within,
.plattio-form-advanced .plattio-form-border-underline .plattio-form-image-upload:focus-within .plattio-form-upload-label{
	border-color:var(--pf-ext-field-focus-border)!important;
	outline:0!important;
	outline-offset:0!important;
	box-shadow:inset 0 calc(0px - var(--pf-ext-field-focus-ring-width)) 0 var(--pf-ext-field-focus-ring)!important;
}
.plattio-form-advanced .plattio-form-border-underline .plattio-form-section-group{
	border-width:0 0 var(--plattio-form-field-border-width,1px)!important;
	border-radius:0!important;
}
.plattio-form-advanced .plattio-form-border-none .plattio-form-section-group{border-width:0!important}
.plattio-form-advanced .plattio-form-border-underline .plattio-form-section-group:focus-within{
	outline:0!important;
	box-shadow:inset 0 calc(0px - var(--plattio-form-focus-ring-width,1px)) 0 var(--plattio-form-focus-ring,#2271b1)!important;
}

/* A per-field border selection always wins over the form-level topology. */
.plattio-form-advanced .plattio-form-field-custom-border-boxed :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color,
	.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook
){
	border-width:var(--pf-ext-field-border-width)!important;
	border-radius:var(--pf-ext-field-radius)!important;
}
.plattio-form-advanced .plattio-form-field-custom-border-underline :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color,
	.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook
){
	border-width:0 0 var(--pf-ext-field-border-width)!important;
	border-radius:0!important;
}
.plattio-form-advanced .plattio-form-field-custom-border-none :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color,
	.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook
){border-width:0!important}
.plattio-form-advanced .plattio-form-field-custom-border-underline :where(
	.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color
):focus-within,
.plattio-form-advanced .plattio-form-field-custom-border-underline .plattio-form-image-upload:focus-within .plattio-form-upload-label{
	outline:0!important;
	box-shadow:inset 0 calc(0px - var(--pf-ext-field-focus-ring-width)) 0 var(--pf-ext-field-focus-ring)!important;
}
.plattio-form-advanced .plattio-form-field-custom-border-none :where(
	.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color
):focus-within{
	outline:0!important;
	box-shadow:none!important;
}
.plattio-form-advanced .plattio-form-field-custom-border-none .plattio-form-image-upload:focus-within .plattio-form-upload-label{
	outline:0!important;
	box-shadow:none!important;
}

/* Field shadow parity, including an explicit no-shadow state that wins over
 * themes and earlier presets. */
.plattio-form-advanced .plattio-form-field-shadow-small :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-matrix-scroll,
	.plattio-form-terms-content,.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,
	.plattio-form-color,.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook,
	.plattio-form-section-group
){box-shadow:0 2px 7px rgba(15,23,42,.07)!important}
.plattio-form-advanced .plattio-form-field-shadow-medium :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-matrix-scroll,
	.plattio-form-terms-content,.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,
	.plattio-form-color,.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook,
	.plattio-form-section-group
){box-shadow:0 7px 20px rgba(15,23,42,.11)!important}
.plattio-form-advanced .plattio-form-field-shadow-none :where(
	.plattio-form-upload-label,.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-matrix-scroll,
	.plattio-form-terms-content,.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,
	.plattio-form-color,.plattio-form-calculation,.plattio-form-shortcode,.plattio-form-action-hook,
	.plattio-form-section-group
){box-shadow:none!important}


/* Focus feedback remains visible when Shadow is None. */
.plattio-form-advanced .plattio-form-field-shadow-none.plattio-form-border-underline .plattio-form-field :where(
	.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color
):focus-within,
.plattio-form-advanced .plattio-form-field-shadow-none.plattio-form-border-underline .plattio-form-image-upload:focus-within .plattio-form-upload-label,
.plattio-form-advanced .plattio-form-field-shadow-none.plattio-form-border-underline .plattio-form-section-group:focus-within,
.plattio-form-advanced .plattio-form-field-shadow-none .plattio-form-field-custom-border-underline :where(
	.plattio-form-rating-options,.plattio-form-nps-options,.plattio-form-terms-content,
	.plattio-form-rich-text,.plattio-form-range,.plattio-form-ranking li,.plattio-form-color
):focus-within,
.plattio-form-advanced .plattio-form-field-shadow-none .plattio-form-field-custom-border-underline .plattio-form-image-upload:focus-within .plattio-form-upload-label{
	outline:0!important;
	box-shadow:inset 0 calc(0px - var(--pf-ext-field-focus-ring-width)) 0 var(--pf-ext-field-focus-ring)!important;
}

@supports not (color:color-mix(in srgb,#fff 50%,#000 50%)){
	.plattio-form-advanced .plattio-form-rich-text-toolbar,
	.plattio-form-advanced .plattio-form-matrix thead th{background:var(--plattio-form-surface-subtle,#f6f7f7)!important}
}


/* Layout and spacing parity (2.3.30).
 * Compound controls now consume the same form tokens as the core grid. Option
 * collections use Choice gap, while button-like rows use Button area gap. */
.plattio-form-advanced .plattio-form-address,
.plattio-form-advanced .plattio-form-chained-select,
.plattio-form-advanced .plattio-form-section-panel{
	row-gap:var(--plattio-form-row-gap,18px);
	column-gap:var(--plattio-form-column-gap,16px)
}
.plattio-form-advanced .plattio-form-image-upload,
.plattio-form-advanced .plattio-form-password,
.plattio-form-advanced .plattio-form-terms,
.plattio-form-advanced .plattio-form-range{
	row-gap:var(--plattio-form-row-gap,18px)
}
.plattio-form-advanced .plattio-form-rating-options,
.plattio-form-advanced .plattio-form-nps-options,
.plattio-form-advanced .plattio-form-ranking ol,
.plattio-form-advanced .plattio-form-terms-check,
.plattio-form-advanced .plattio-form-tab-list{
	gap:var(--plattio-form-choice-gap,8px)
}
.plattio-form-advanced .plattio-form-scale-labels,
.plattio-form-advanced .plattio-form-password-strength,
.plattio-form-advanced .plattio-form-range>div,
.plattio-form-advanced .plattio-form-color,
.plattio-form-advanced .plattio-form-calculation{
	column-gap:var(--plattio-form-column-gap,16px)
}
.plattio-form-advanced .plattio-form-section-trigger{
	gap:var(--plattio-form-action-gap,12px)
}
