/* V4 Studio raw color tokens */
:root{
	--v4studio-color-transparent: transparent;
	--v4studio-color-current: currentColor;
	--v4studio-color-000: #000;
	--v4studio-color-080d15: #080d15;
	--v4studio-color-111: #111;
	--v4studio-color-111821: #111821;
	--v4studio-color-121923: #121923;
	--v4studio-color-f86368: #f86368;
	--v4studio-color-151e2a: #151e2a;
	--v4studio-color-151f2c: #151f2c;
	--v4studio-color-17233a: #17233a;
	--v4studio-color-1c2736: #1c2736;
	--v4studio-color-1d1e27: #1d1e27;
	--v4studio-color-1d2327: #1d2327;
	--v4studio-color-1e8c49: #1e8c49;
	--v4studio-color-202838: #202838;
	--v4studio-color-2145e6: #2145e6;
	--v4studio-color-273144: #273144;
	--v4studio-color-273246: #273246;
	--v4studio-color-2c3338: #2c3338;
	--v4studio-color-303a4d: #303a4d;
	--v4studio-color-33260c: #33260c;
	--v4studio-color-3858e9: #3858e9;
	--v4studio-color-3a2024: #3a2024;
	--v4studio-color-3a465d: #3a465d;
	--v4studio-color-3b3f49: #3b3f49;
	--v4studio-color-3c4658: #3c4658;
	--v4studio-color-3f2e00: #3f2e00;
	--v4studio-color-485465: #485465;
	--v4studio-color-50575e: #50575e;
	--v4studio-color-52617a: #52617a;
	--v4studio-color-556186: #556186;
	--v4studio-color-59657a: #59657a;
	--v4studio-color-5d5a70: #5d5a70;
	--v4studio-color-5f6b76: #5f6b76;
	--v4studio-color-5f6b7d: #5f6b7d;
	--v4studio-color-5f7dff: #5f7dff;
	--v4studio-color-62c98d: #62c98d;
	--v4studio-color-646970: #646970;
	--v4studio-color-68738a: #68738a;
	--v4studio-color-6b5f43: #6b5f43;
	--v4studio-color-6b7280: #6b7280;
	--v4studio-color-6f5319: #6f5319;
	--v4studio-color-6f7a8f: #6f7a8f;
	--v4studio-color-6f8dff: #6f8dff;
	--v4studio-color-73828d: #73828d;
	--v4studio-color-7f8ba0: #7f8ba0;
	--v4studio-color-7fa0ff: #7fa0ff;
	--v4studio-color-83f7ff: #83f7ff;
	--v4studio-color-8a98a4: #8a98a4;
	--v4studio-color-8b94a7: #8b94a7;
	--v4studio-color-8c8f94: #8c8f94;
	--v4studio-color-8fa7ff: #8fa7ff;
	--v4studio-color-9ca0a9: #9ca0a9;
	--v4studio-color-9ca8bc: #9ca8bc;
	--v4studio-color-9f936c: #9f936c;
	--v4studio-color-7a5c00: #7a5c00;
	--v4studio-color-a6adb7: #a6adb7;
	--v4studio-color-a9bdff: #a9bdff;
	--v4studio-color-aeb7c8: #aeb7c8;
	--v4studio-color-b7bdc9: #b7bdc9;
	--v4studio-color-b8c1d3: #b8c1d3;
	--v4studio-color-c2bba1: #c2bba1;
	--v4studio-color-c2cad6: #c2cad6;
	--v4studio-color-c3c4c7: #c3c4c7;
	--v4studio-color-ced0d8: #ced0d8;
	--v4studio-color-d3d8e3: #d3d8e3;
	--v4studio-color-d63638: #d63638;
	--v4studio-color-d8c47a: #d8c47a;
	--v4studio-color-dba617: #dba617;
	--v4studio-color-dce3f0: #dce3f0;
	--v4studio-color-dedee5: #dedee5;
	--v4studio-color-dfe2e9: #dfe2e9;
	--v4studio-color-e4e4e4: #e4e4e4;
	--v4studio-color-e6d58c: #e6d58c;
	--v4studio-color-e6ebf7: #e6ebf7;
	--v4studio-color-e7c763: #e7c763;
	--v4studio-color-e8ebf3: #e8ebf3;
	--v4studio-color-e93a3a: #e93a3a;
	--v4studio-color-eceef3: #eceef3;
	--v4studio-color-f0f0f1: #f0f0f1;
	--v4studio-color-f0f4ff: #f0f4ff;
	--v4studio-color-f2c4c7: #f2c4c7;
	--v4studio-color-f2f4f9: #f2f4f9;
	--v4studio-color-fcf0f1: #fcf0f1;
	--v4studio-color-fcf9e8: #fcf9e8;
	--v4studio-color-ff5c5c: #ff5c5c;
	--v4studio-color-ffd6d8: #ffd6d8;
	--v4studio-color-e8f5ee: #e8f5ee;
	--v4studio-color-18733c: #18733c;
	--v4studio-color-b32d2e: #b32d2e;
	--v4studio-color-fff: #fff;
	--v4studio-color-fff5d6: #fff5d6;
	--v4studio-color-rgb-0-0-0-0p04: rgba(0, 0, 0, 0.04);
	--v4studio-color-rgb-0-0-0-0p12: rgba(0, 0, 0, 0.12);
	--v4studio-color-rgb-0-0-0-0p16: rgba(0, 0, 0, 0.16);
	--v4studio-color-rgb-0-0-0-0p18: rgba(0, 0, 0, 0.18);
	--v4studio-color-rgb-0-0-0-0p22: rgba(0, 0, 0, 0.22);
	--v4studio-color-rgb-0-0-0-0p24: rgba(0, 0, 0, 0.24);
	--v4studio-color-rgb-0-0-0-0p35: rgba(0, 0, 0, 0.35);
	--v4studio-color-rgb-0-0-0-0p38: rgba(0, 0, 0, 0.38);
	--v4studio-color-rgb-0-0-0-0p45: rgba(0, 0, 0, 0.45);
	--v4studio-color-rgb-111-141-255-0p45: rgba(111, 141, 255, 0.45);
	--v4studio-color-rgb-115-130-141-0p24: rgba(115, 130, 141, 0.24);
	--v4studio-color-rgb-120-130-150-0p22: rgba(120, 130, 150, 0.22);
	--v4studio-color-rgb-120-130-150-0p34: rgba(120, 130, 150, 0.34);
	--v4studio-color-rgb-120-130-150-0p36: rgba(120, 130, 150, 0.36);
	--v4studio-color-rgb-120-130-150-0p52: rgba(120, 130, 150, 0.52);
	--v4studio-color-rgb-255-255-255-0p03: rgba(255, 255, 255, 0.03);
	--v4studio-color-rgb-255-255-255-0p08: rgba(255, 255, 255, 0.08);
	--v4studio-color-rgb-255-255-255-0p12: rgba(255, 255, 255, 0.12);
	--v4studio-color-rgb-255-255-255-0p16: rgba(255, 255, 255, 0.16);
	--v4studio-color-rgb-255-255-255-0p18: rgba(255, 255, 255, 0.18);
	--v4studio-color-rgb-255-255-255-0p2: rgba(255, 255, 255, 0.2);
	--v4studio-color-rgb-255-255-255-0p22: rgba(255, 255, 255, 0.22);
	--v4studio-color-rgb-255-92-92-0p12: rgba(255, 92, 92, 0.12);
	--v4studio-color-rgb-29-30-39-0p16: rgba(29, 30, 39, 0.16);
	--v4studio-color-rgb-29-30-39-0p45: rgba(29, 30, 39, 0.45);
	--v4studio-color-rgb-98-201-141-0p14: rgba(98, 201, 141, 0.14);
	--v4studio-color-rgb-0-0-0-0p6: rgba(0, 0, 0, 0.6);
	--v4studio-color-rgb-255-92-92-0p4: rgba(255, 92, 92, 0.4);
	--v4studio-color-rgb-56-88-233-0p08: rgba(56, 88, 233, 0.08);
	--v4studio-color-rgb-56-88-233-0p12: rgba(56, 88, 233, 0.12);
	--v4studio-color-rgb-56-88-233-0p14: rgba(56, 88, 233, 0.14);
	--v4studio-color-rgb-56-88-233-0p18: rgba(56, 88, 233, 0.18);
	--v4studio-color-rgb-56-88-233-0p25: rgba(56, 88, 233, 0.25);
	--v4studio-color-rgb-56-88-233-0p35: rgba(56, 88, 233, 0.35);
	--v4studio-color-rgb-77-111-255-0p45: rgba(77, 111, 255, 0.45);
	--v4studio-color-rgb-80-91-112-0p46: rgba(80, 91, 112, 0.46);
	--v4studio-color-rgb-89-101-122-0p55: rgba(89, 101, 122, 0.55);
	--v4studio-color-rgb-95-125-255-0p35: rgba(95, 125, 255, 0.35);
}
/* End V4 Studio raw color tokens */
:root,
.v4studio-wrap{
	--v4studio-accent: var(--v4studio-color-3858e9);
	/*
	 * Focus ring for menu/popover items that sit on a RAISED surface.
	 *
	 * Owner: dropdown menus on the admin screens that load this stylesheet, and the
	 * info popovers. Deliberately NOT the plugin-wide focus ring: the general rule in
	 * this file still uses --v4studio-accent.
	 *
	 * It exists because --v4studio-accent is defined once, for both themes, and a
	 * single blue cannot carry a focus indicator across surfaces this far apart.
	 * Measured against the actual composited backgrounds (sRGB, WCAG 1.4.11 wants
	 * 3:1 for an indicator carried by colour alone):
	 *
	 *     accent on the light menu (#e6ebf7 focused row)        4.70:1  ok
	 *
	 * On the dark theme's raised surfaces the accent falls well short of that, so the
	 * dark theme sets its own value.
	 */
	--v4studio-menu-focus-ring: var(--v4studio-color-3858e9);
	--v4studio-space-1: 4px;
	--v4studio-space-2: 8px;
	--v4studio-space-3: 12px;
	--v4studio-space-4: 16px;
	--v4studio-space-5: 24px;
	--v4studio-space-6: 32px;
	--v4studio-radius-control: 6px;
	--v4studio-radius-panel: 8px;
	--v4studio-control-height: 40px;
	--v4studio-control-height-compact: 32px;
	/* Shared dropdown and field tokens. Components can opt into compact sizing
	   without duplicating the visual contract for the standard controls. */
	--v4studio-field-height: var(--v4studio-control-height, 40px);
	--v4studio-field-height-compact: var(--v4studio-control-height-compact, 32px);
	--v4studio-field-font-size: 13px;
	--v4studio-field-font-weight: 400;
	--v4studio-field-padding-inline: 12px;
	--v4studio-field-padding-inline-end: 34px;
	--v4studio-field-radius: var(--v4studio-radius-control, 6px);
	--v4studio-icon-size: 18px;
	--v4studio-page-bg: var(--v4studio-color-eceef3);
	--v4studio-panel-bg: var(--v4studio-color-fff);
	--v4studio-surface-bg: var(--v4studio-color-f2f4f9);
	--v4studio-surface-alt: var(--v4studio-color-eceef3);
	--v4studio-nav-active-bg: var(--v4studio-color-e8ebf3);
	--v4studio-border: var(--v4studio-color-dedee5);
	--v4studio-border-strong: var(--v4studio-color-ced0d8);
	--v4studio-preview-track: var(--v4studio-color-dfe2e9);
	--v4studio-preview-fill: var(--v4studio-color-b7bdc9);
	--v4studio-text: var(--v4studio-color-1d1e27);
	--v4studio-text-secondary: var(--v4studio-color-50575e);
	--v4studio-text-muted: var(--v4studio-color-8c8f94);
	/* Tooltips are inverted against the admin theme: dark on light, light on dark. */
	--v4studio-tooltip-bg: var(--v4studio-color-1d2327);
	--v4studio-tooltip-text: var(--v4studio-color-fff);
	/* The tooltip card: the panel colour, a strong border and a soft shadow. */
	--v4studio-tooltip-card-bg: var(--v4studio-panel-bg);
	--v4studio-tooltip-card-border: var(--v4studio-border-strong);
	--v4studio-tooltip-card-text: var(--v4studio-text);
	--v4studio-tooltip-card-shadow: var(--v4studio-color-rgb-0-0-0-0p12);
	--v4studio-tooltip-measure: 220px;
	--v4studio-tooltip-measure-wide: 360px;
	--v4studio-danger: var(--v4studio-color-d63638);
	--v4studio-warning-bg: var(--v4studio-color-fff5d6);
	--v4studio-warning-text: var(--v4studio-color-9f936c);
	/* Warning wording that must read as text (the contrast grades): at least 4.5:1 on the panels. */
	--v4studio-warning-text-strong: var(--v4studio-color-7a5c00);
	--v4studio-warning-border: var(--v4studio-color-e6d58c);
	--v4studio-on-accent: var(--v4studio-color-fff);
	--v4studio-neutral-action: var(--v4studio-color-73828d);
	--v4studio-neutral-action-hover: var(--v4studio-color-5f6b76);
	--v4studio-success: var(--v4studio-color-1e8c49);
	--v4studio-danger-bg: var(--v4studio-color-fcf0f1);
	/* Danger wording and the danger button's border: at least 4.5:1 on the panels. */
	--v4studio-danger-text: var(--v4studio-danger);
	/* Classes card and its Details dialog: pill text 5.3:1 (ok) and 5.7:1 (error) on their tints; links 5.4:1 or better. */
	--v4studio-classes-ok-bg: var(--v4studio-color-e8f5ee);
	--v4studio-classes-ok-text: var(--v4studio-color-18733c);
	--v4studio-classes-error-text: var(--v4studio-color-b32d2e);
	--v4studio-classes-danger-border: var(--v4studio-color-ffd6d8);
	--v4studio-classes-link: var(--v4studio-accent);
	--v4studio-classes-foot-bg: var(--v4studio-surface-bg);
	--v4studio-classes-backdrop: var(--v4studio-color-rgb-29-30-39-0p45);
	--v4studio-classes-dialog-width: 640px;
	--v4studio-media-dark-bg: var(--v4studio-color-1d1e27);
	--v4studio-media-light-bg: var(--v4studio-color-fff);
	--v4studio-shadow-color: var(--v4studio-color-rgb-29-30-39-0p16);
	--v4studio-narrow-nav-gap: 14px;
	--v4studio-narrow-nav-padding: 18px;
	--v4studio-narrow-nav-list-radius: 8px;
	--v4studio-narrow-nav-row-height: 44px;
	--v4studio-narrow-nav-child-row-height: 38px;
	--v4studio-narrow-nav-row-padding: 0 13px;
	--v4studio-narrow-nav-icon-slot: 34px;
	--v4studio-narrow-nav-icon-size: 16px;
	--v4studio-narrow-nav-label-gap: 10px;
	--v4studio-narrow-nav-action-gap: 10px;
	--v4studio-sticky-gap: 24px;
	/* Type, borders and the design-tool layout (Tokens screen). */
	--v4studio-font-size-2xs: 10px;
	--v4studio-font-size-xs: 11px;
	--v4studio-font-size-sm: 12px;
	--v4studio-font-size-xl: 20px;
	--v4studio-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	/* WordPress admin's own text stack, for labels drawn inside a cell that sets another font. */
	--v4studio-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--v4studio-label-spacing: 0.14em;
	--v4studio-border-width: 1px;
	--v4studio-radius-pill: 999px;
	--v4studio-icon-size-sm: 16px;
	--v4studio-admin-bar-height: var(--wp-admin--admin-bar--height, 0px);
	--v4studio-tool-sidebar-min: 280px;
	--v4studio-tool-sidebar-max: 360px;
	--v4studio-tool-field-height: var(--v4studio-control-height);
	--v4studio-tool-icon-cell: 36px;
	--v4studio-tool-accordion-height: 48px;
	--v4studio-tokens-nav-icon: 18px;
	--v4studio-tool-accordion-icon: 10px;
	--v4studio-tool-table-header-height: 54px;
	--v4studio-tool-table-row-height: 100px;
	--v4studio-tool-table-row-height-compact: 64px;
	--v4studio-tool-name-column: 130px;
	--v4studio-tool-measure-column: 306px;
	--v4studio-tool-multiplier-column: 84px;
	--v4studio-tool-section-padding: 18px;
	--v4studio-tool-harmony-select: 138px;
	--v4studio-tool-controls-gap: 14px;
	--v4studio-tool-type-gap: 36px;
	--v4studio-tool-size-name-column: 170px;
	--v4studio-tool-alias-target-column: 150px;
	/* The table Fluid Spacing, Fluid Size, Fluid Radius and Aliases share. It fills its panel: the token column,
	   the Min / Max Size column (a slider track of at least 100px, 1px a px, and its field) and the gaps grow
	   with the panels' width (cqi) between a floor and a cap; Value takes the rest. */
	--v4studio-tool-table-token-column: clamp(140px, 15cqi, 220px);
	--v4studio-tool-table-track: 100px;
	--v4studio-tool-table-measure-min: calc(var(--v4studio-tool-table-track) + var(--v4studio-tool-measure-chrome));
	--v4studio-tool-table-measure-max: 400px;
	--v4studio-tool-table-measure-column: clamp(var(--v4studio-tool-table-measure-min), 28cqi, var(--v4studio-tool-table-measure-max));
	--v4studio-tool-table-gap: clamp(var(--v4studio-space-4), 2.5cqi, var(--v4studio-space-6));
	/* Type Scale's sliders: a 128px track (1px a px, as every slider), and what a slider row adds around
	   its track: the device icon and its gap, the number field and its gap, the control's padding and border. */
	--v4studio-tool-type-track: 128px;
	--v4studio-tool-measure-chrome: 118px;
	/* Body copy beside actions: the narrowest it gets before the actions wrap, and its longest line. */
	--v4studio-copy-min: 20rem;
	--v4studio-copy-measure: 72ch;
	/* The header row of a tab's container card: its space below, the description's longest line, and the
	   small drop that lines the description's first line up with the title. */
	--v4studio-screen-header-space: 18px;
	/* The container card's padding: space-5, one step less on phones (the phone block at the end of the file). */
	--v4studio-screen-card-space: var(--v4studio-space-5);
	--v4studio-screen-header-measure: 720px;
	--v4studio-screen-header-nudge: 2px;
	--v4studio-tool-device-button: 30px;
	--v4studio-tool-device-icon: 20px;
	--v4studio-radius-small: 4px;
	--v4studio-device-icon-color: var(--v4studio-color-a6adb7);
	/* The custom dropdown's measures. */
	--v4studio-select-chevron-size: 5px;
	--v4studio-select-chevron-stroke: 1.5px;
	--v4studio-select-menu-max-height: 320px;
	--v4studio-select-menu-padding: 6px;
	--v4studio-select-menu-shadow: 0 18px 42px var(--v4studio-shadow-color);
	--v4studio-select-menu-layer: 100000;
	/* One step under an open dropdown list, so the list always covers a tooltip, never the other way round. */
	--v4studio-tooltip-layer: calc(var(--v4studio-select-menu-layer) - 1);
	--v4studio-select-option-height: 34px;
	/* The Fluid Radius controls. */
	--v4studio-tool-radius-box: 40px;
	/* The Fonts rows, as the old font variables. */
	--v4studio-tool-font-fallback: 140px;
	--v4studio-tool-font-action: 32px;
	--v4studio-tool-font-preview-size: 24px;
	/* The Layout Width track. */
	--v4studio-tool-width-track-height: 28px;
	--v4studio-tool-width-bar-height: 18px;
	/*
	 * Exact values the admin stylesheets use where no scale token fits (every colour and size
	 * in admin.css and brand-data.css is a token). Named by
	 * value within their group; negative values are calc(var(...) * -1).
	 */
	/* Spacing: margins, paddings, gaps and offsets */
	--v4studio-spacing-0: 0px;
	--v4studio-spacing-1: 1px;
	--v4studio-spacing-2: 2px;
	--v4studio-spacing-3: 3px;
	--v4studio-spacing-5: 5px;
	--v4studio-spacing-6: 6px;
	--v4studio-spacing-7: 7px;
	--v4studio-spacing-9: 9px;
	--v4studio-spacing-10: 10px;
	--v4studio-spacing-11: 11px;
	--v4studio-spacing-14: 14px;
	--v4studio-spacing-18: 18px;
	--v4studio-spacing-20: 20px;
	--v4studio-spacing-22: 22px;
	--v4studio-spacing-26: 26px;
	--v4studio-spacing-28: 28px;
	--v4studio-spacing-34: 34px;
	--v4studio-spacing-48: 48px;
	/* Sizes: widths, heights and other measures */
	--v4studio-size-0: 0px;
	--v4studio-size-1: 1px;
	--v4studio-size-2: 2px;
	--v4studio-size-4: 4px;
	--v4studio-size-6: 6px;
	--v4studio-size-7: 7px;
	--v4studio-size-8: 8px;
	--v4studio-size-10: 10px;
	--v4studio-size-11: 11px;
	--v4studio-size-12: 12px;
	--v4studio-size-14: 14px;
	--v4studio-size-15: 15px;
	--v4studio-size-16: 16px;
	--v4studio-size-17: 17px;
	--v4studio-size-18: 18px;
	--v4studio-size-20: 20px;
	--v4studio-size-22: 22px;
	--v4studio-size-23: 23px;
	--v4studio-size-24: 24px;
	--v4studio-size-28: 28px;
	--v4studio-size-30: 30px;
	--v4studio-size-32: 32px;
	--v4studio-size-34: 34px;
	--v4studio-size-36: 36px;
	--v4studio-size-38: 38px;
	--v4studio-size-40: 40px;
	--v4studio-size-42: 42px;
	--v4studio-size-44: 44px;
	--v4studio-size-46: 46px;
	--v4studio-size-48: 48px;
	--v4studio-size-56: 56px;
	--v4studio-size-58: 58px;
	--v4studio-size-60: 60px;
	--v4studio-size-62: 62px;
	--v4studio-size-70: 70px;
	--v4studio-size-72: 72px;
	--v4studio-size-76: 76px;
	--v4studio-size-96: 96px;
	--v4studio-size-120: 120px;
	--v4studio-size-130: 130px;
	--v4studio-size-132: 132px;
	--v4studio-size-140: 140px;
	--v4studio-size-143: 143px;
	--v4studio-size-150: 150px;
	--v4studio-size-166: 166px;
	--v4studio-size-190: 190px;
	--v4studio-size-200: 200px;
	--v4studio-size-220: 220px;
	--v4studio-size-260: 260px;
	--v4studio-size-280: 280px;
	--v4studio-size-300: 300px;
	--v4studio-size-306: 306px;
	--v4studio-size-320: 320px;
	--v4studio-size-360: 360px;
	--v4studio-size-520: 520px;
	--v4studio-size-560: 560px;
	--v4studio-size-620: 620px;
	--v4studio-size-1920: 1920px;
	/* Radii */
	--v4studio-radius-1: 1px;
	--v4studio-radius-2: 2px;
	--v4studio-radius-3: 3px;
	--v4studio-radius-5: 5px;
	--v4studio-radius-7: 7px;
	--v4studio-radius-12: 12px;
	/* Border and outline widths */
	--v4studio-border-width-2: 2px;
	--v4studio-border-width-4: 4px;
	/* Shadow and filter lengths */
	--v4studio-shadow-1: 1px;
	--v4studio-shadow-4: 4px;
	--v4studio-shadow-8: 8px;
	--v4studio-shadow-12: 12px;
	--v4studio-shadow-18: 18px;
	--v4studio-shadow-24: 24px;
	--v4studio-shadow-28: 28px;
	--v4studio-shadow-32: 32px;
	--v4studio-shadow-38: 38px;
	/* Font sizes */
	--v4studio-font-size-14: 14px;
	--v4studio-font-size-15: 15px;
	--v4studio-font-size-16: 16px;
	--v4studio-font-size-18: 18px;
	--v4studio-font-size-26: 26px;
	--v4studio-font-size-0p875rem: 0.875rem;
	/* Line heights */
	--v4studio-line-height-16: 16px;
}

/*
 * LAYOUT, AND ONLY ON THE WRAPPER.
 *
 * max-width and margin-right used to sit in the token block above, whose selector list is
 * `:root, .v4studio-wrap`. That gave the <html> element a 20px right margin on every admin
 * screen this stylesheet loads on -- the whole document was inset 20px from the right of the
 * viewport, which is why the header divider looked short on that side while measuring flush
 * against its own container. A token block declares custom properties; the moment it declares
 * ordinary layout it also restyles the root element, which is never what is meant.
 *
 * The wrapper keeps both declarations. margin-right is load-bearing: .v4studio-header bleeds
 * outwards by the same amount to reach the edges of WordPress's content area, so zeroing it
 * here would pull the divider in rather than push it out.
 *
 * margin-left is zeroed to match. WordPress core gives .wrap an asymmetric `10px 20px 0 2px`;
 * that stray 2px left the header 2px short of #wpcontent. Doing it here keeps every screen that
 * loads this stylesheet flush without a compensating override.
 */
.v4studio-wrap{
	max-width: none;
	margin-left: 0;
	margin-right: var(--v4studio-spacing-20);
}

html.v4studio-html-dark,
body.v4studio-admin-dark .v4studio-select-menu,
.v4studio-wrap.is-dark{
	--v4studio-page-bg: var(--v4studio-color-080d15);
	--v4studio-panel-bg: var(--v4studio-color-111821);
	--v4studio-surface-bg: var(--v4studio-color-151f2c);
	--v4studio-surface-alt: var(--v4studio-color-121923);
	--v4studio-nav-active-bg: var(--v4studio-color-1c2736);
	--v4studio-border: var(--v4studio-color-273246);
	--v4studio-border-strong: var(--v4studio-color-3a465d);
	--v4studio-preview-track: var(--v4studio-color-1c2736);
	--v4studio-preview-fill: var(--v4studio-color-52617a);
	--v4studio-text: var(--v4studio-color-dce3f0);
	--v4studio-text-secondary: var(--v4studio-color-aeb7c8);
	--v4studio-text-muted: var(--v4studio-color-7f8ba0);
	--v4studio-tooltip-bg: var(--v4studio-color-dce3f0);
	--v4studio-tooltip-text: var(--v4studio-color-111821);
	--v4studio-tooltip-card-bg: var(--v4studio-surface-bg);
	--v4studio-tooltip-card-shadow: var(--v4studio-color-rgb-0-0-0-0p35);
	--v4studio-warning-bg: var(--v4studio-color-33260c);
	--v4studio-warning-text: var(--v4studio-color-e7c763);
	--v4studio-warning-text-strong: var(--v4studio-color-e7c763);
	--v4studio-warning-border: var(--v4studio-color-6f5319);
	--v4studio-on-accent: var(--v4studio-color-fff);
	--v4studio-neutral-action: var(--v4studio-color-73828d);
	--v4studio-neutral-action-hover: var(--v4studio-color-8a98a4);
	--v4studio-success: var(--v4studio-color-62c98d);
	--v4studio-danger-bg: var(--v4studio-color-rgb-255-92-92-0p12);
	--v4studio-danger-text: var(--v4studio-color-f86368);
	/* Classes card: the accent is 3.2:1 on the dark panel, this lighter blue 7.0:1; pills 6.7:1 and 5.2:1 on their tints. */
	--v4studio-classes-ok-bg: var(--v4studio-color-rgb-98-201-141-0p14);
	--v4studio-classes-ok-text: var(--v4studio-success);
	--v4studio-classes-error-text: var(--v4studio-danger-text);
	--v4studio-classes-danger-border: var(--v4studio-color-rgb-255-92-92-0p4);
	--v4studio-classes-link: var(--v4studio-color-7fa0ff);
	--v4studio-classes-foot-bg: var(--v4studio-surface-alt);
	--v4studio-classes-backdrop: var(--v4studio-color-rgb-0-0-0-0p6);
	--v4studio-media-dark-bg: var(--v4studio-color-080d15);
	--v4studio-media-light-bg: var(--v4studio-color-fff);
	--v4studio-shadow-color: var(--v4studio-color-rgb-0-0-0-0p35);
	/* See the light block: the accent blue measures 1.13:1 on the dark menu it
	 * has to sit on, so the ring goes white there. */
	--v4studio-menu-focus-ring: var(--v4studio-color-fff);
}

html.v4studio-pre-dark,
html.v4studio-pre-dark body,
html.v4studio-pre-dark #wpwrap,
html.v4studio-pre-dark #wpcontent,
html.v4studio-pre-dark #wpbody,
html.v4studio-pre-dark #wpbody-content,
body.v4studio-admin-dark{
	background: var(--v4studio-color-080d15);
	color: var(--v4studio-color-dce3f0);
}

html.v4studio-pre-light,
html.v4studio-pre-light body,
html.v4studio-pre-light #wpwrap,
html.v4studio-pre-light #wpcontent,
html.v4studio-pre-light #wpbody,
html.v4studio-pre-light #wpbody-content,
html.v4studio-html-light,
html.v4studio-html-light body,
body.v4studio-admin-light,
body.v4studio-admin-light #wpwrap,
body.v4studio-admin-light #wpcontent,
body.v4studio-admin-light #wpbody,
body.v4studio-admin-light #wpbody-content{
	background: var(--v4studio-color-f0f0f1);
	color: var(--v4studio-color-1d2327);
}

html.v4studio-pre-dark .v4studio-wrap,
.v4studio-wrap.is-dark{
	color: var(--v4studio-color-dce3f0);
}

html.v4studio-pre-dark .v4studio-header,
html.v4studio-pre-dark .v4studio-tool-card{
	border-color: var(--v4studio-color-202838);
	background: var(--v4studio-color-111821);
	color: var(--v4studio-color-dce3f0);
}

html.v4studio-pre-light .v4studio-wrap,
.v4studio-wrap.is-light{
	color: var(--v4studio-color-1d2327);
}

.v4studio-external-notice-dock{
	box-sizing: border-box;
	max-width: none;
	margin: 0 var(--v4studio-spacing-20) var(--v4studio-spacing-14) 0;
	padding: var(--v4studio-space-3) var(--v4studio-spacing-28) 0;
}

.v4studio-external-notice-dock .notice,
.v4studio-external-notice-dock .updated,
.v4studio-external-notice-dock .error{
	display: block;
	max-width: none;
	margin: 0 0 var(--v4studio-spacing-10);
}

/* Docked WordPress notices keep core's light surfaces (white, or the pale warning/error tints) in
 * both admin themes. Core colours only their <p> text, so loose text -- the core update nag's
 * "is available!" -- inherited the dark theme's light text and all but vanished on the pale
 * background. Give the notice itself core's dark text in dark mode too; links keep core's colour.
 * Inline notices that WordPress leaves above the screen, such as the update nag, get the same. */
html.v4studio-html-dark .v4studio-external-notice-dock :is(.notice, .updated, .error, .update-nag),
.v4studio-wrap.is-dark .v4studio-external-notice-dock :is(.notice, .updated, .error, .update-nag){
	color: var(--v4studio-color-1d2327);
}

html.v4studio-html-dark #wpbody-content > :is(.notice, .updated, .error, .update-nag),
html.v4studio-pre-dark #wpbody-content > :is(.notice, .updated, .error, .update-nag){
	color: var(--v4studio-color-1d2327);
}

.v4studio-header{
	display: flex;
	gap: var(--v4studio-space-5);
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	height: auto;
	min-height: var(--v4studio-size-72);
	margin: 0 calc(var(--v4studio-spacing-20) * -1) var(--v4studio-space-5) calc(var(--v4studio-spacing-20) * -1);
	padding: 0 var(--v4studio-spacing-28);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-color-dedee5);
}

.v4studio-brand{
	margin: 0;
}

.v4studio-brand a{
	display: inline-flex;
	align-items: flex-end;
	gap: var(--v4studio-spacing-10);
	color: var(--v4studio-color-1d2327);
	text-decoration: none;
}

.v4studio-wrap.is-light .v4studio-brand a{
	color: var(--v4studio-color-1d2327);
}

.v4studio-brand a:focus{
	box-shadow: none;
	outline: var(--v4studio-border-width) solid var(--v4studio-color-3858e9);
	outline-offset: var(--v4studio-border-width-4);
}

.v4studio-brand img{
	display: block;
	width: var(--v4studio-size-166);
	max-width: 36vw;
	height: auto;
}

.v4studio-header-actions{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--v4studio-spacing-20);
	height: 100%;
}

.v4studio-tabs{
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-spacing-20);
	height: 100%;
	justify-content: flex-end;
	margin: 0;
}

.v4studio-tabs .v4studio-tab.button{
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 100%;
	min-height: var(--v4studio-size-34);
	padding: var(--v4studio-space-1) var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-color-transparent);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-6b7280);
	font-size: var(--v4studio-font-size-15);
	font-weight: 500;
	box-shadow: none;
}

.v4studio-tabs .v4studio-tab.button:hover,
.v4studio-tabs .v4studio-tab.button:focus{
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-3858e9);
	box-shadow: none;
}

.v4studio-tabs .v4studio-tab.button.is-active{
	border-color: var(--v4studio-color-73828d);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-1d2327);
}

.v4studio-tabs .v4studio-tab.button.is-active:hover,
.v4studio-tabs .v4studio-tab.button.is-active:focus{
	border-color: var(--v4studio-color-73828d);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-1d2327);
}

.v4studio-tabs .v4studio-tab.button.is-active::after{
	position: absolute;
	right: var(--v4studio-space-3);
	bottom: 0;
	left: var(--v4studio-space-3);
	display: block;
	height: var(--v4studio-size-2);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-accent, var(--v4studio-color-3858e9));
	content: "";
}

/* The header links, Wireframe Library (primary) and Docs (outline): one group, so a header row that
   spreads its items keeps the pair together, at one size. */
.v4studio-header-links{
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--v4studio-space-3);
}

.v4studio-header-link.button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--v4studio-size-36);
	padding: var(--v4studio-spacing-7) var(--v4studio-space-4);
	border-radius: var(--v4studio-radius-control);
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

/* Docs: the outline buttons' colors (.v4studio-actions .button) at the header size; the dark and
   accent colors join those buttons' rules below. */
.v4studio-header-link.button:not(.button-primary){
	border: var(--v4studio-border-width) solid var(--v4studio-color-3858e9);
	background: var(--v4studio-color-fff);
	color: var(--v4studio-color-3858e9);
	box-shadow: none;
}

.v4studio-header-link.button:not(.button-primary):hover,
.v4studio-header-link.button:not(.button-primary):focus{
	border-color: var(--v4studio-color-2145e6);
	background: var(--v4studio-color-fff);
	color: var(--v4studio-color-2145e6);
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-2145e6);
}

.v4studio-theme-toggle{
	display: inline-flex;
	flex: 0 0 var(--v4studio-size-36);
	align-items: center;
	justify-content: center;
	width: var(--v4studio-size-36);
	height: var(--v4studio-size-36);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-6b7280);
	cursor: pointer;
	box-shadow: none;
}

.v4studio-theme-toggle:hover,
.v4studio-theme-toggle:focus{
	background: var(--v4studio-color-rgb-56-88-233-0p08);
	color: var(--v4studio-color-3858e9);
	outline: none;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-56-88-233-0p35);
}

.v4studio-theme-icon{
	display: block;
	width: var(--v4studio-size-23);
	height: var(--v4studio-size-23);
	fill: var(--v4studio-color-current);
}

.v4studio-theme-icon-sun,
.v4studio-wrap.is-dark .v4studio-theme-icon-moon{
	display: none;
}

.v4studio-wrap.is-dark .v4studio-theme-icon-sun{
	display: block;
}

.v4studio-wrap.is-light .v4studio-theme-icon-moon{
	display: block;
}

.v4studio-panel{
	display: none;
	box-sizing: border-box;
	width: calc(100% - var(--v4studio-size-16));
	max-width: var(--v4studio-size-1920);
	margin-left: auto;
	margin-right: auto;
}

.v4studio-panel.is-active{
	display: block;
}

@keyframes v4studio-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.v4studio-action-status{
	display: inline-flex;
	align-items: center;
	min-height: var(--v4studio-size-24);
	padding: var(--v4studio-spacing-3) var(--v4studio-spacing-10);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-f0f4ff);
	color: var(--v4studio-color-b7bdc9);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 400;
}

.v4studio-action-status.is-dirty{
	background: var(--v4studio-color-fff5d6);
	color: var(--v4studio-color-c2bba1);
}

.v4studio-action-status:empty{
	display: none;
}

.v4studio-color-token-section h3{
	margin: 0;
	color: var(--v4studio-text-secondary, var(--v4studio-color-50575e));
	font-size: var(--v4studio-font-size-2xs);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: var(--v4studio-label-spacing);
	text-transform: uppercase;
}

.v4studio-color-token-heading{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v4studio-spacing-10);
}

.v4studio-color-token-grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--v4studio-spacing-14);
}

.v4studio-tool-swatch{
	position: relative;
	display: grid;
	grid-template-rows: minmax(var(--v4studio-size-96), 1fr) auto;
	gap: 0;
	min-width: 0;
	overflow: visible;
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-color-fff);
}

.v4studio-tool-swatch > span:not(.v4studio-color-control),
.v4studio-tool-swatch .v4studio-color-control,
.v4studio-tool-swatch .v4studio-color-button{
	width: 100%;
}

.v4studio-tool-swatch .v4studio-color-control{
	display: block;
	height: 100%;
}

.v4studio-tool-swatch > span:not(.v4studio-color-control),
.v4studio-tool-swatch .v4studio-color-button{
	height: 100%;
	min-height: var(--v4studio-size-96);
	border: 0;
	border-radius: var(--v4studio-radius-5) var(--v4studio-radius-5) 0 0;
	box-shadow: inset 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-255-255-255-0p16);
}

/* The swatch's inner edge is a dark line in the dark admin: no shadow there is ever a light colour. */
.v4studio-wrap.is-dark .v4studio-tool-swatch > span:not(.v4studio-color-control){
	box-shadow: inset 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-0-0-0-0p35);
}

/* Alpha-carrying tokens (transparent, overlay, backdrop, glass) painted on the card's
 * flat background are unreadable: `transparent` looks like an empty box, white-at-8%
 * is invisible, and 40% vs 65% black look nearly identical. A checkerboard behind the
 * swatch makes the alpha itself legible, which is the whole point of those tokens.
 *
 * Deliberately NOT done with a negative-z-index ::before. Two earlier attempts failed
 * on stacking rules, in opposite directions: isolating the coloured element painted
 * the checkerboard ON TOP of every colour (a stacking context paints its own
 * background before its negative children), and isolating the swatch instead fixed
 * that but trapped the colour picker's `position: fixed` popover inside the card, so
 * later swatches covered it.
 *
 * This version needs no stacking context and no z-index at all. The checkerboard is
 * the ordinary background of the wrapper, and the button's own background paints over
 * it by normal paint order: parent background first, then child. An opaque token hides
 * it completely; only real alpha lets it through. No `overflow` here — the popover is
 * a descendant and clipping it would hide the picker. */
/* Transparency tokens get a reduced picker: lightness and alpha only. Hue and
 * saturation are meaningless for a neutral overlay, and offering them invites a
 * tinted "black" overlay by accident. The controls are hidden rather than removed —
 * the JS forces h/s to 0 on every edit, so the hidden sliders cannot leak a stale
 * hue into the stored value. */
[data-v4studio-color-neutral] .v4studio-color-field,
[data-v4studio-color-neutral] .v4studio-color-slider-row:has( [data-channel="h"] ),
[data-v4studio-color-neutral] .v4studio-color-slider-row:has( [data-channel="s"] ){
	display: none;
}

.v4studio-tool-swatch .v4studio-color-control{
	border-radius: var(--v4studio-radius-5) var(--v4studio-radius-5) 0 0;
	background-image:
		linear-gradient(45deg, var(--v4studio-border) 25%, transparent 25%),
		linear-gradient(-45deg, var(--v4studio-border) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, var(--v4studio-border) 75%),
		linear-gradient(-45deg, transparent 75%, var(--v4studio-border) 75%);
	background-position: 0 0, 0 var(--v4studio-size-6), var(--v4studio-size-6) calc(var(--v4studio-size-6) * -1), calc(var(--v4studio-size-6) * -1) 0;
	background-size: var(--v4studio-size-12) var(--v4studio-size-12);
}

.v4studio-tool-swatch strong{
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: var(--v4studio-size-32);
	padding: var(--v4studio-spacing-7) var(--v4studio-spacing-10);
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: 0 0 var(--v4studio-radius-5) var(--v4studio-radius-5);
	background: var(--v4studio-color-fff);
	color: var(--v4studio-color-1d2327);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	text-align: center;
	white-space: nowrap;
}

.v4studio-tool-swatch code{
	position: absolute;
	z-index: 3;
	top: var(--v4studio-spacing-48);
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
	max-width: calc(100% - var(--v4studio-size-16));
	padding: 0;
	border: 0;
	background: var(--v4studio-color-transparent);
	/*
	 * The FALLBACK ink, used only when the swatch's own colour cannot decide it.
	 * getReadableColorText() bakes an inline colour for every token whose composite reads the
	 * same over both themes' checkerboards — which is every opaque one. It returns '' for a
	 * token so transparent that the checkerboard decides what you see (--color-transparent,
	 * --color-glass), and then this rule applies instead, following the theme the way an inline
	 * style never could. Light checkerboard, so dark ink here; inverted under .is-dark below.
	 */
	color: var(--v4studio-color-1d2327);
	font-size: var(--v4studio-font-size-18);
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
	white-space: nowrap;
}

@media (max-width: 1280px) {
	.v4studio-color-token-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.v4studio-color-token-grid{
		grid-template-columns: 1fr;
	}
}

.v4studio-tool-swatch:hover code,
.v4studio-tool-swatch:focus-within code{
	display: block;
}

.v4studio-radius-preview-box{
	width: var(--v4studio-size-40);
	height: var(--v4studio-size-40);
	margin-left: var(--v4studio-space-4);
	background: var(--v4studio-color-a6adb7);
	box-shadow: inset 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-0-0-0-0p04);
}

.v4studio-tool-size-preview{
	display: grid;
	gap: var(--v4studio-spacing-6);
	min-width: 0;
}

.v4studio-tool-size-preview .v4studio-clamp-row{
	grid-template-columns: var(--v4studio-size-18) minmax(0, 1fr);
	gap: var(--v4studio-space-2);
}

.v4studio-tool-size-preview .v4studio-clamp-value{
	width: var(--v4studio-size-76);
}

.v4studio-tool-size-preview .v4studio-measure-control{
	width: 100%;
}

/* A stacked radius row on a phone: each preview box sits on the row's right edge. */

@media (max-width: 600px) {

	.v4studio-wrap .v4studio-radius-preview-box{
		justify-self: end;
	}

}

.v4studio-color-control{
	position: relative;
	display: inline-flex;
	align-items: center;
}

.v4studio-color-button{
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: var(--v4studio-size-42);
	height: var(--v4studio-size-42);
	padding: 0;
	border: var(--v4studio-border-width) solid var(--v4studio-color-rgb-0-0-0-0p16);
	border-radius: var(--v4studio-radius-small);
	background-clip: border-box;
	box-shadow: none;
	cursor: pointer;
	font-size: 0;
	line-height: 1;
}

.v4studio-color-button:focus{
	outline: var(--v4studio-border-width-2) solid var(--v4studio-color-3858e9);
	outline-offset: var(--v4studio-border-width-2);
}

.v4studio-color-popover{
	position: fixed;
	z-index: 30;
	top: auto;
	right: auto;
	left: auto;
	display: none;
	box-sizing: border-box;
	width: var(--v4studio-size-300);
	padding: var(--v4studio-spacing-9);
	border: var(--v4studio-border-width) solid var(--v4studio-color-c3c4c7);
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-color-fff);
	box-shadow: 0 var(--v4studio-shadow-12) var(--v4studio-shadow-28) var(--v4studio-color-rgb-0-0-0-0p22);
}

.v4studio-color-control.is-open .v4studio-color-popover{
	display: block;
}

.v4studio-color-topline{
	display: grid;
	grid-template-columns: var(--v4studio-size-34) minmax(0, 1fr) var(--v4studio-size-76);
	gap: var(--v4studio-spacing-7);
	align-items: stretch;
	margin-bottom: var(--v4studio-spacing-9);
}

.v4studio-color-chip{
	display: block;
	width: var(--v4studio-size-34);
	height: var(--v4studio-size-34);
	box-sizing: border-box;
	border: var(--v4studio-border-width) solid var(--v4studio-color-8c8f94);
	border-radius: 50%;
}

/* The hex field is a standard field: the field tokens, which already switch with the theme. */
.v4studio-color-value{
	min-height: var(--v4studio-control-height);
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
}

.v4studio-color-mode{
	min-height: var(--v4studio-size-34);
	border: var(--v4studio-border-width) solid var(--v4studio-color-8c8f94);
	border-color: var(--v4studio-color-8c8f94);
	border-radius: var(--v4studio-radius-small);
	font-size: var(--v4studio-font-size-sm);
}

.v4studio-color-mode{
	-webkit-appearance: none;
	appearance: none;
	border-left: var(--v4studio-border-width) solid var(--v4studio-color-8c8f94);
	padding-right: var(--v4studio-spacing-20);
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position:
		calc(100% - var(--v4studio-size-11)) 50%,
		calc(100% - var(--v4studio-size-7)) 50%;
	background-repeat: no-repeat;
	background-size: var(--v4studio-size-4) var(--v4studio-size-4);
}

.v4studio-color-field{
	position: relative;
	display: block;
	height: var(--v4studio-size-143);
	margin-bottom: var(--v4studio-spacing-11);
	border-radius: var(--v4studio-radius-3);
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

.v4studio-color-field-marker{
	position: absolute;
	width: var(--v4studio-size-12);
	height: var(--v4studio-size-12);
	border: var(--v4studio-border-width-2) solid var(--v4studio-color-fff);
	border-radius: 50%;
	box-shadow: 0 var(--v4studio-shadow-1) var(--v4studio-shadow-4) var(--v4studio-color-rgb-0-0-0-0p38);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/*
 * Each row is a LABEL PLUS ITS SLIDER, so the gap above the row has to be clearly larger than
 * the 4px between the label and the slider it names. At 7px against 4px the two were nearly
 * equal, and proximity read the label as belonging to the slider ABOVE it rather than below.
 *
 * Scoped to the popover to WIN, not merely to be tidy. The row is a <label>, and
 * `.v4studio-tool-controls label` (0,1,1) sets `display: grid; gap: 7px; margin: 0;
 * font-weight: 700`, which outranked a bare `.v4studio-color-slider-row` (0,1,0). Any picker
 * rendered inside the tool controls — Color Harmony from Hex is the one that ships there — was
 * therefore laid out as a grid with no row spacing, while the 70 swatch pickers outside that
 * container kept the intended block layout. Same component, two appearances.
 *
 * gap and font-weight are reset explicitly for the same reason: overriding only the margin would
 * leave the row a grid and its label bold.
 */
.v4studio-color-popover .v4studio-color-slider-row{
	display: block;
	gap: 0;
	margin-top: var(--v4studio-space-3);
	font-weight: 400;
}

.v4studio-color-slider-row > span{
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--v4studio-space-1);
	color: var(--v4studio-color-50575e);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	line-height: 1;
}

.v4studio-color-slider-row output{
	font: inherit;
}

.v4studio-color-slider{
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: var(--v4studio-size-15);
	margin: 0;
	border: 0;
	border-radius: var(--v4studio-radius-2);
	cursor: pointer;
}

.v4studio-color-slider::-webkit-slider-thumb{
	-webkit-appearance: none;
	appearance: none;
	width: var(--v4studio-size-14);
	height: var(--v4studio-size-14);
	border: var(--v4studio-border-width-2) solid var(--v4studio-color-fff);
	border-radius: 50%;
	background: var(--v4studio-color-3858e9);
	box-shadow: 0 var(--v4studio-shadow-1) var(--v4studio-shadow-4) var(--v4studio-color-rgb-0-0-0-0p35);
}

.v4studio-color-slider::-moz-range-thumb{
	width: var(--v4studio-size-12);
	height: var(--v4studio-size-12);
	border: var(--v4studio-border-width-2) solid var(--v4studio-color-fff);
	border-radius: 50%;
	background: var(--v4studio-color-3858e9);
	box-shadow: 0 var(--v4studio-shadow-1) var(--v4studio-shadow-4) var(--v4studio-color-rgb-0-0-0-0p35);
}

.v4studio-color-done{
	width: 100%;
	min-height: var(--v4studio-size-30);
	border-color: var(--v4studio-color-3858e9);
	color: var(--v4studio-color-3858e9);
	font-weight: 700;
}

/* Two classes on purpose. The Done button carries WordPress's own `.button`, and core
 * ships `.wp-core-ui .button{ margin: 0 }` at (0,2,0) — which beat the single-class
 * rule above, so the margin-top declared there never applied at all and the button sat
 * flush against the alpha slider. This selector matches that specificity and, loading
 * after core, wins on source order.
 *
 * The channel rows are 7px apart and a range thumb overflows its row box, so the
 * action needs a clearly larger gap to read as separate from the slider stack rather
 * than as one more row in it. */
.v4studio-color-popover .v4studio-color-done{
	margin-top: var(--v4studio-spacing-18);
}

.v4studio-clamp-preview{
	display: inline-grid;
	gap: var(--v4studio-space-1);
	width: 100%;
	min-width: 0;
	max-width: var(--v4studio-size-306);
	vertical-align: middle;
}

.v4studio-clamp-row{
	display: grid;
	grid-template-columns: var(--v4studio-size-18) minmax(0, 1fr);
	gap: var(--v4studio-spacing-6);
	align-items: center;
	min-height: var(--v4studio-size-32);
}

.v4studio-device-icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--v4studio-color-a6adb7);
	line-height: 0;
}

.v4studio-clamp-value{
	box-sizing: border-box;
	display: inline-flex;
	justify-content: flex-start;
	align-items: center;
	gap: var(--v4studio-spacing-2);
	width: var(--v4studio-size-76);
	min-width: var(--v4studio-size-76);
	height: var(--v4studio-size-28);
	padding: var(--v4studio-spacing-5) var(--v4studio-space-1) var(--v4studio-spacing-5) var(--v4studio-spacing-5);
	border: var(--v4studio-border-width) solid var(--v4studio-color-d3d8e3);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-surface-bg, var(--v4studio-color-f2f4f9));
	color: var(--v4studio-color-2c3338);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	line-height: 1.1;
}

.v4studio-clamp-value.is-readonly{
	pointer-events: none;
}

.v4studio-clamp-input{
	box-sizing: border-box;
	flex: 0 0 var(--v4studio-size-44);
	width: var(--v4studio-size-44);
	min-width: 0;
	height: var(--v4studio-size-18);
	min-height: var(--v4studio-size-18);
	max-height: var(--v4studio-size-18);
	border: var(--v4studio-border-width) solid var(--v4studio-color-rgb-120-130-150-0p22);
	border-radius: var(--v4studio-radius-3);
	padding: 0 var(--v4studio-space-1);
	margin: 0;
	background: var(--v4studio-color-fff);
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	line-height: 1;
	text-align: left;
	appearance: textfield;
}

.v4studio-wrap input[type="number"].v4studio-clamp-input{
	width: var(--v4studio-size-44);
	height: var(--v4studio-size-18);
	min-height: var(--v4studio-size-18);
	max-height: var(--v4studio-size-18);
	padding: 0 var(--v4studio-space-1);
	border-color: var(--v4studio-color-rgb-120-130-150-0p22);
	border-radius: var(--v4studio-radius-3);
	box-shadow: none;
	font-size: var(--v4studio-font-size-sm);
	line-height: 1;
}

.v4studio-clamp-input:focus{
	outline: var(--v4studio-border-width) solid var(--v4studio-color-rgb-77-111-255-0p45);
	outline-offset: 0;
}

.v4studio-clamp-input::-webkit-outer-spin-button,
.v4studio-clamp-input::-webkit-inner-spin-button{
	margin: 0;
	appearance: none;
}

.v4studio-clamp-value small{
	background: var(--v4studio-surface-bg, var(--v4studio-color-f2f4f9));
	color: var(--v4studio-color-8c8f94);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 600;
	flex: 0 0 auto;
	line-height: 1;
	margin-left: var(--v4studio-space-1);
}

.v4studio-measure-control{
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--v4studio-size-76);
	gap: var(--v4studio-spacing-6);
	align-items: center;
	width: 100%;
	height: var(--v4studio-size-32);
	padding: var(--v4studio-spacing-3) var(--v4studio-space-1);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-surface-bg);
}

.v4studio-measure-control .v4studio-clamp-value{
	height: var(--v4studio-size-24);
	padding: var(--v4studio-spacing-2) var(--v4studio-spacing-2) var(--v4studio-spacing-2) var(--v4studio-space-1);
	border: 0;
	background: transparent;
}

.v4studio-measure-control .v4studio-clamp-value small{
	background: transparent;
}

.v4studio-clamp-bar-wrap{
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	height: var(--v4studio-size-18);
	overflow: visible;
	border-radius: var(--v4studio-radius-2);
	background: var(--v4studio-preview-track);
}

.v4studio-clamp-bar{
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	width: min(var(--v4studio-measure-size, var(--v4studio-size-1)), 100%);
	min-width: var(--v4studio-size-1);
	height: 100%;
	border-radius: var(--v4studio-radius-2) 0 0 var(--v4studio-radius-2);
	background: var(--v4studio-preview-fill);
	transition: background 150ms ease;
}

.v4studio-measure-marker{
	position: absolute;
	top: 50%;
	left: clamp(var(--v4studio-spacing-1), var(--v4studio-measure-size, var(--v4studio-spacing-1)), calc(100% - var(--v4studio-spacing-1)));
	width: var(--v4studio-size-2);
	height: var(--v4studio-size-24);
	transform: translate(-50%, -50%);
	border-radius: var(--v4studio-radius-1);
	background: var(--v4studio-preview-fill);
	pointer-events: none;
	transition: background 150ms ease;
}

.v4studio-measure-control.is-overflowing .v4studio-clamp-bar{
	width: 100%;
	border-radius: var(--v4studio-radius-2);
}

.v4studio-measure-control.is-overflowing .v4studio-measure-marker{
	top: 50%;
	right: var(--v4studio-spacing-7);
	left: auto;
	width: var(--v4studio-size-6);
	height: var(--v4studio-size-6);
	transform: translateY(-50%) rotate(45deg);
	border-top: var(--v4studio-border-width) solid var(--v4studio-surface-bg);
	border-right: var(--v4studio-border-width) solid var(--v4studio-surface-bg);
	border-radius: 0;
	background: transparent !important;
}

.v4studio-measure-control:not(.is-readonly) .v4studio-clamp-bar-wrap{
	cursor: ew-resize;
	touch-action: none;
}

.v4studio-measure-control:not(.is-readonly):hover .v4studio-clamp-bar,
.v4studio-measure-control:not(.is-readonly):hover .v4studio-measure-marker,
.v4studio-measure-control:not(.is-readonly):focus-within .v4studio-clamp-bar,
.v4studio-measure-control:not(.is-readonly):focus-within .v4studio-measure-marker{
	background: var(--v4studio-accent, var(--v4studio-color-3858e9));
}

.v4studio-measure-control:not(.is-readonly):focus-within{
	border-color: color-mix(in srgb, var(--v4studio-accent) 58%, var(--v4studio-border));
	box-shadow: 0 0 0 var(--v4studio-shadow-1) color-mix(in srgb, var(--v4studio-accent) 18%, transparent);
}

.v4studio-notice{
	margin: var(--v4studio-spacing-14) 0;
}

.v4studio-custom-css,
.v4studio-import-export{
	display: flex;
	flex-direction: column;
	gap: var(--v4studio-spacing-20);
	min-height: max(var(--v4studio-size-520), calc(100vh - var(--v4studio-size-220)));
	padding: 0;
	background: var(--v4studio-color-transparent);
}

.v4studio-tool-card{
	box-sizing: border-box;
	min-height: max(var(--v4studio-size-520), calc(100vh - var(--v4studio-size-220)));
	padding: var(--v4studio-spacing-22);
	border: var(--v4studio-border-width) solid var(--v4studio-color-dedee5);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-color-fff);
}

.v4studio-import-export{
	min-height: 0;
}

.v4studio-import-export .v4studio-tool-card{
	min-height: 0;
}

.v4studio-tool-title{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--v4studio-space-5);
	inline-size: calc(100% + var(--v4studio-size-44));
	box-sizing: border-box;
	margin: 0 calc(var(--v4studio-spacing-22) * -1) var(--v4studio-spacing-18);
	padding: 0 var(--v4studio-spacing-22) var(--v4studio-spacing-18);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-color-dedee5);
}

.v4studio-tool-title h2{
	margin: 0;
	font-size: var(--v4studio-font-size-xl);
	line-height: 1.25;
}

.v4studio-tool-title p{
	max-width: var(--v4studio-size-560);
	margin: var(--v4studio-spacing-2) 0 0;
	color: var(--v4studio-color-50575e);
	line-height: 1.5;
}

.v4studio-tool-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--v4studio-spacing-18);
}

.v4studio-tool-section{
	box-sizing: border-box;
	padding: 0;
	border: 0;
	background: var(--v4studio-color-transparent);
}

.v4studio-tool-section-box{
	box-sizing: border-box;
	min-height: 100%;
	padding: var(--v4studio-spacing-28) var(--v4studio-spacing-34);
	border: var(--v4studio-border-width) solid var(--v4studio-color-dedee5);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-color-f0f0f1);
}

.v4studio-import-export .v4studio-tool-section-box{
	min-height: 0;
	padding: var(--v4studio-spacing-18) var(--v4studio-spacing-20);
}

.v4studio-tool-section-heading h3{
	margin: 0 0 var(--v4studio-spacing-6);
	font-size: var(--v4studio-font-size-26);
	line-height: 1.3;
}

.v4studio-import-export .v4studio-tool-section-heading h3{
	font-size: var(--v4studio-font-size-xl);
}

.v4studio-tool-section-heading p{
	margin: 0 0 var(--v4studio-space-4);
	color: var(--v4studio-color-50575e);
	line-height: 1.5;
}

.v4studio-import-export .v4studio-tool-section-heading p{
	margin-bottom: var(--v4studio-spacing-14);
	font-size: var(--v4studio-field-font-size);
}

.v4studio-choice-list{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--v4studio-spacing-14);
	margin: var(--v4studio-spacing-26) 0 0;
}

.v4studio-import-export .v4studio-choice-list{
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: stretch;
	gap: var(--v4studio-space-2);
	margin-top: var(--v4studio-spacing-14);
}

.v4studio-choice-list label{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-3);
	min-height: var(--v4studio-size-56);
	box-sizing: border-box;
	padding: var(--v4studio-space-3) var(--v4studio-spacing-18);
	border: var(--v4studio-border-width) solid var(--v4studio-color-dedee5);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-color-fff);
	color: var(--v4studio-color-1d2327);
	font-weight: 600;
	font-size: var(--v4studio-font-size-16);
}

.v4studio-import-export .v4studio-choice-list label{
	gap: var(--v4studio-space-2);
	min-height: var(--v4studio-control-height);
	padding: 0 var(--v4studio-space-3);
	font-size: var(--v4studio-field-font-size);
	white-space: nowrap;
}

.v4studio-import-export .v4studio-choice-list input{
	flex: 0 0 var(--v4studio-size-16);
	width: var(--v4studio-size-16);
	height: var(--v4studio-size-16);
}

.v4studio-import-export .v4studio-choice-list input:checked::before{
	width: var(--v4studio-size-20);
	height: var(--v4studio-size-20);
	margin: calc(var(--v4studio-spacing-3) * -1) 0 0 calc(var(--v4studio-space-1) * -1);
}

.v4studio-choice-list input{
	margin: 0;
}

.v4studio-file-field{
	display: flex;
	flex-direction: column;
	gap: var(--v4studio-spacing-6);
	margin: var(--v4studio-spacing-22) 0 0;
	font-weight: 700;
}

.v4studio-import-export .v4studio-file-field{
	margin-top: var(--v4studio-spacing-14);
	font-size: var(--v4studio-field-font-size);
}

.v4studio-file-upload{
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--v4studio-spacing-10);
	box-sizing: border-box;
	width: 100%;
	min-height: var(--v4studio-size-46);
	padding: var(--v4studio-spacing-6);
	border: var(--v4studio-border-width) solid var(--v4studio-color-c3c4c7);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-color-fff);
	color: var(--v4studio-color-1d2327);
	cursor: pointer;
}

.v4studio-import-export .v4studio-file-upload{
	min-height: var(--v4studio-size-38);
	padding: var(--v4studio-space-1);
}

.v4studio-file-upload input{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.v4studio-file-upload-name{
	display: block;
	flex: 1 1 0;
	max-width: 100%;
	min-width: 0;
	color: var(--v4studio-color-50575e);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v4studio-tool-actions{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-spacing-10);
	margin-top: var(--v4studio-spacing-6);
}

.v4studio-import-export .v4studio-tool-actions{
	margin-top: var(--v4studio-space-4);
}

/* Import/Export progress and outcome, written by admin.js below each card's button. Shared by every
   screen that loads this stylesheet; hidden until there is something to say. */
.v4studio-transfer-status{
	margin: var(--v4studio-space-3) 0 0;
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-field-font-size);
	line-height: 1.5;
}

.v4studio-transfer-status:empty{
	display: none;
}

.v4studio-tool-actions .button{
	min-height: var(--v4studio-size-38);
	padding: var(--v4studio-spacing-6) var(--v4studio-space-4);
	border: var(--v4studio-border-width) solid var(--v4studio-color-3858e9);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-3858e9);
	font-weight: 600;
	box-shadow: none;
}

.v4studio-tool-actions .button:hover,
.v4studio-tool-actions .button:focus{
	border-color: var(--v4studio-color-2145e6);
	color: var(--v4studio-color-2145e6);
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-56-88-233-0p25);
}

.v4studio-trash-icon{
	width: var(--v4studio-size-17);
	height: var(--v4studio-size-17);
	fill: var(--v4studio-color-current);
}

.v4studio-wrap input[type="text"],
.v4studio-wrap input[type="email"],
.v4studio-wrap input[type="url"],
.v4studio-wrap input[type="number"],
.v4studio-wrap textarea,
.v4studio-wrap select{
	border-color: var(--v4studio-color-c3c4c7);
	border-radius: var(--v4studio-radius-small);
}

.v4studio-wrap input[type="text"]:focus,
.v4studio-wrap input[type="email"]:focus,
.v4studio-wrap input[type="url"]:focus,
.v4studio-wrap input[type="number"]:focus,
.v4studio-wrap textarea:focus,
.v4studio-wrap select:focus{
	border-color: var(--v4studio-color-c3c4c7);
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-c3c4c7);
	outline: var(--v4studio-border-width-2) solid var(--v4studio-color-transparent);
}

.v4studio-media-field{
	grid-template-columns: var(--v4studio-size-200) var(--v4studio-size-132) var(--v4studio-size-42) var(--v4studio-size-140);
	align-items: center;
}

.v4studio-save-message{
	color: var(--v4studio-color-1e8c49);
	font-weight: 600;
}

.v4studio-wrap.is-dark .v4studio-brand a{
	color: var(--v4studio-color-f2f4f9);
}

.v4studio-wrap.is-dark .v4studio-header{
	border-bottom-color: var(--v4studio-color-202838);
}

.v4studio-wrap.is-dark .v4studio-tabs .v4studio-tab.button{
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-8b94a7);
}

.v4studio-wrap.is-dark .v4studio-tabs .v4studio-tab.button:hover,
.v4studio-wrap.is-dark .v4studio-tabs .v4studio-tab.button:focus{
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-c2cad6);
	box-shadow: none;
}

.v4studio-wrap.is-dark .v4studio-tabs .v4studio-tab.button.is-active{
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-f2f4f9);
}

.v4studio-wrap.is-dark .v4studio-theme-toggle{
	color: var(--v4studio-color-8b94a7);
}

.v4studio-wrap.is-dark .v4studio-tool-card{
	border-color: var(--v4studio-color-202838);
	background: var(--v4studio-color-111821);
	color: var(--v4studio-color-dce3f0);
}

.v4studio-wrap.is-dark .v4studio-tool-section-box{
	border-color: var(--v4studio-color-202838);
	background: var(--v4studio-color-121923);
	color: var(--v4studio-color-dce3f0);
}

.v4studio-wrap.is-dark .v4studio-custom-css,
.v4studio-wrap.is-dark .v4studio-import-export{
	background: var(--v4studio-color-transparent);
}

.v4studio-wrap.is-dark .v4studio-tool-title{
	border-bottom-color: var(--v4studio-color-202838);
}

.v4studio-wrap.is-dark .v4studio-tool-title h2,
.v4studio-wrap.is-dark .v4studio-tool-section-heading h3,
.v4studio-wrap.is-dark .v4studio-file-field{
	color: var(--v4studio-color-f2f4f9);
}

.v4studio-wrap.is-dark .v4studio-tool-title p,
.v4studio-wrap.is-dark .v4studio-tool-section-heading p{
	color: var(--v4studio-color-b8c1d3);
}

.v4studio-wrap.is-dark .v4studio-choice-list label{
	border-color: var(--v4studio-color-202838);
	background: var(--v4studio-color-151f2c);
	color: var(--v4studio-color-dce3f0);
}

.v4studio-wrap.is-dark .v4studio-color-token-section h3{
	color: var(--v4studio-color-9ca8bc);
}

.v4studio-wrap.is-dark .v4studio-tool-swatch{
	border-color: var(--v4studio-color-3a465d);
	background: var(--v4studio-color-121923);
}

.v4studio-wrap.is-dark .v4studio-tool-swatch > span:not(.v4studio-color-control),
.v4studio-wrap.is-dark .v4studio-tool-swatch .v4studio-color-button{
	box-shadow: none;
}

.v4studio-wrap.is-dark .v4studio-tool-swatch strong{
	border-top-color: var(--v4studio-color-3a465d);
	background: var(--v4studio-color-121923);
	color: var(--v4studio-color-f2f4f9);
}

.v4studio-wrap.is-dark .v4studio-tool-swatch code{
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-f2f4f9);
}

.v4studio-wrap.is-dark .v4studio-file-upload{
	border-color: var(--v4studio-color-3a465d);
	background: var(--v4studio-color-111821);
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-file-upload-name{
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-tool-actions .button{
	border-color: var(--v4studio-color-3858e9);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-8fa7ff);
}

.v4studio-wrap.is-dark .v4studio-action-status{
	background: var(--v4studio-color-17233a);
	color: var(--v4studio-color-556186);
}

.v4studio-wrap.is-dark .v4studio-action-status.is-dirty{
	background: var(--v4studio-color-33260c);
	color: var(--v4studio-color-6b5f43);
}

.v4studio-wrap.is-dark .v4studio-header-link.button:not(.button-primary),
.v4studio-wrap.is-dark .v4studio-color-done{
	border-color: var(--v4studio-color-3858e9);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-7fa0ff);
	box-shadow: none;
}

.v4studio-wrap.is-dark .v4studio-header-link.button:not(.button-primary):hover,
.v4studio-wrap.is-dark .v4studio-header-link.button:not(.button-primary):focus{
	border-color: var(--v4studio-color-6f8dff);
	color: var(--v4studio-color-a9bdff);
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-color-rgb-111-141-255-0p45);
}

.v4studio-wrap.is-dark input[type="text"],
.v4studio-wrap.is-dark input[type="email"],
.v4studio-wrap.is-dark input[type="url"],
.v4studio-wrap.is-dark input[type="number"],
.v4studio-wrap.is-dark textarea,
.v4studio-wrap.is-dark select{
	border-color: var(--v4studio-color-202838);
	background-color: var(--v4studio-color-121923);
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark input[type="text"]:focus,
.v4studio-wrap.is-dark input[type="email"]:focus,
.v4studio-wrap.is-dark input[type="url"]:focus,
.v4studio-wrap.is-dark input[type="number"]:focus,
.v4studio-wrap.is-dark textarea:focus,
.v4studio-wrap.is-dark select:focus{
	border-color: var(--v4studio-color-3c4658);
	box-shadow: none;
	outline: var(--v4studio-border-width-2) solid var(--v4studio-color-transparent);
}

.v4studio-wrap.is-dark .v4studio-clamp-value{
	border-color: var(--v4studio-color-3a465d);
	background: var(--v4studio-surface-bg, var(--v4studio-color-151f2c));
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-clamp-value small{
	background: var(--v4studio-surface-bg, var(--v4studio-color-151f2c));
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-clamp-input{
	border-color: var(--v4studio-color-rgb-80-91-112-0p46);
	background: var(--v4studio-color-121923);
	color: var(--v4studio-color-ced0d8);
}

.v4studio-wrap.is-dark input[type="number"].v4studio-clamp-input{
	border-color: var(--v4studio-color-rgb-80-91-112-0p46);
	background: var(--v4studio-color-121923);
	box-shadow: none;
}

.v4studio-wrap.is-dark .v4studio-device-icon{
	color: var(--v4studio-color-a6adb7);
}

.v4studio-wrap.is-dark .v4studio-clamp-bar{
	background: var(--v4studio-preview-fill);
}

.v4studio-wrap.is-dark .v4studio-color-popover{
	border-color: var(--v4studio-color-3a465d);
	background: var(--v4studio-color-121923);
	color: var(--v4studio-color-9ca0a9);
	box-shadow: 0 var(--v4studio-shadow-18) var(--v4studio-shadow-38) var(--v4studio-color-rgb-0-0-0-0p45);
}

.v4studio-wrap.is-dark .v4studio-color-chip,
.v4studio-wrap.is-dark .v4studio-color-mode{
	border-color: var(--v4studio-color-3a465d);
	background-color: var(--v4studio-color-111821);
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-color-mode{
	border-left-color: var(--v4studio-color-3a465d);
	padding-right: var(--v4studio-spacing-18);
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position:
		calc(100% - var(--v4studio-size-10)) 50%,
		calc(100% - var(--v4studio-size-6)) 50%;
	background-size: var(--v4studio-size-4) var(--v4studio-size-4);
}

.v4studio-wrap.is-dark .v4studio-color-slider-row > span{
	color: var(--v4studio-color-9ca0a9);
}

.v4studio-wrap.is-dark .v4studio-color-field-marker,
.v4studio-wrap.is-dark .v4studio-color-slider::-webkit-slider-thumb{
	border-color: var(--v4studio-color-e6ebf7);
}

.v4studio-wrap.is-dark .v4studio-color-slider::-moz-range-thumb{
	border-color: var(--v4studio-color-e6ebf7);
}

.v4studio-wrap.is-dark .v4studio-notice{
	border-color: var(--v4studio-color-3858e9);
	background: var(--v4studio-color-rgb-56-88-233-0p12);
	color: var(--v4studio-color-dce3f0);
}

/* A warning stays a warning in the dark admin (it was painted the info accent, so its meaning changed with the theme). */
.v4studio-wrap.is-dark .v4studio-notice.notice-warning{
	border-color: var(--v4studio-warning-border);
	background: var(--v4studio-warning-bg);
}

/* The rule above colours the notice BOX, and never reached a word inside it.
 *
 * WordPress core ships `.notice p { color: #1e1e1e }`, and a rule that matches the <p> directly
 * beats a colour inherited from an ancestor no matter how specific that ancestor's selector is.
 * So every paragraph in every notice rendered near-black on the dark theme's translucent blue --
 * measured at a 2.97 contrast ratio for the body copy and 1.01 for a .description line, which is
 * invisible rather than merely hard to read. It looked correct in light mode, where core's colour
 * happens to be the right one, so nothing ever flagged it.
 *
 * Matching core's own selector shape is what makes this land; the .v4studio-notice ancestor is
 * what keeps it off every other admin notice on the page. */
.v4studio-wrap.is-dark .v4studio-notice p{
	color: var(--v4studio-color-dce3f0);
}

.v4studio-wrap.is-dark .v4studio-notice p.description{
	color: var(--v4studio-color-b8c1d3);
}

/*
 * The media field (label | Choose Media | preview | remove) stacks only on PHONES.
 *
 * It used to stack from 1280px down. But below 1280px every Brand Data row already collapses to one
 * field per line, so a media field has the whole row to itself -- and stacking it anyway turned one
 * readable line into four, with the preview floating under a button. 782px is WordPress's own
 * mobile admin breakpoint, and the point where the four columns genuinely stop fitting.
 */
@media (max-width: 782px) {

	.v4studio-media-field{
		grid-template-columns: 1fr;
	}

	.v4studio-media-field .button{
		justify-self: start;
		width: auto;
		max-width: 100%;
	}

}

@media (max-width: 1200px) {
	.v4studio-header{
		align-items: flex-start;
		flex-direction: column;
		height: auto;
		margin-inline: calc(var(--v4studio-spacing-20) * -1);
		padding: var(--v4studio-spacing-18) var(--v4studio-spacing-20);
	}

	.v4studio-tabs .v4studio-tab.button.is-active::after{
		bottom: calc(var(--v4studio-spacing-10) * -1);
	}

	.v4studio-header-actions{
		align-items: center;
		justify-content: space-between;
		height: auto;
		width: 100%;
	}

	.v4studio-tabs{
		justify-content: flex-start;
		gap: var(--v4studio-spacing-18);
		height: auto;
	}

	.v4studio-tabs .v4studio-tab.button{
		height: auto;
	}

	.v4studio-tool-title{
		flex-direction: column;
		gap: var(--v4studio-space-2);
	}

	.v4studio-tool-grid{
		grid-template-columns: 1fr;
	}

	.v4studio-tool-section-box{
		padding: var(--v4studio-spacing-22);
	}

	.v4studio-choice-list{
		grid-template-columns: 1fr;
	}

	}

@media (max-width: 1280px) {

	.v4studio-clamp-preview{
		width: 100%;
		min-width: 0;
	}

	.v4studio-clamp-row{
		grid-template-columns: var(--v4studio-size-18) minmax(0, 1fr);
	}

}





@media (max-width: 1200px) {

	.v4studio-import-export .v4studio-choice-list{
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--v4studio-spacing-6);
	}

	.v4studio-import-export .v4studio-choice-list label{
		min-height: var(--v4studio-size-32);
		padding: var(--v4studio-spacing-6) var(--v4studio-spacing-7);
		font-size: var(--v4studio-font-size-sm);
	}
}

@media (max-width: 1200px) {

	.v4studio-tool-size-preview{
		width: 100%;
	}

	.v4studio-tool-size-preview .v4studio-clamp-row{
		grid-template-columns: var(--v4studio-size-18) minmax(0, 1fr);
	}

	.v4studio-tool-size-preview .v4studio-measure-control{
		width: 100%;
	}

}

@media (max-width: 1200px) {

	.v4studio-import-export .v4studio-tool-section-box{
		padding: var(--v4studio-space-4);
	}

	.v4studio-import-export .v4studio-choice-list{
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--v4studio-space-2);
	}
}

@media (max-width: 560px) {

	.v4studio-import-export .v4studio-choice-list{
		grid-template-columns: 1fr;
	}

	.v4studio-import-export .v4studio-choice-list label{
		min-height: var(--v4studio-size-32);
		padding: var(--v4studio-spacing-7) var(--v4studio-space-2);
	}
}

.v4studio-wrap .button.button-primary:not(.v4studio-tab),
.v4studio-wrap .button.button-primary:not(.v4studio-tab):hover,
.v4studio-wrap .button.button-primary:not(.v4studio-tab):focus{
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	background: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	color: var(--v4studio-color-fff) !important;
}

.v4studio-wrap .v4studio-tabs .v4studio-tab.button:hover,
.v4studio-wrap .v4studio-tabs .v4studio-tab.button:focus,
.v4studio-wrap .v4studio-theme-toggle:hover,
.v4studio-wrap .v4studio-theme-toggle:focus,
.v4studio-wrap .v4studio-tool-actions .button:not(.button-primary){
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9));
	color: var(--v4studio-accent, var(--v4studio-color-3858e9));
}

.v4studio-wrap .v4studio-theme-toggle:hover,
.v4studio-wrap .v4studio-theme-toggle:focus{
	background: color-mix(in srgb, var(--v4studio-accent, var(--v4studio-color-3858e9)) 12%, var(--v4studio-color-transparent));
	box-shadow: 0 0 0 var(--v4studio-shadow-1) color-mix(in srgb, var(--v4studio-accent) 35%, var(--v4studio-color-transparent));
}

.v4studio-wrap .v4studio-tabs .v4studio-tab.button.is-active::after{
	position: absolute;
	right: var(--v4studio-space-3);
	bottom: 0;
	left: var(--v4studio-space-3);
	display: block;
	height: var(--v4studio-size-2);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-accent, var(--v4studio-color-3858e9));
	content: "";
}

/* One shared indicator slides and resizes between the active top-level tabs. */
.v4studio-tabs.has-animated-indicator {
	position: relative;
}

.v4studio-tabs.has-animated-indicator::after {
	position: absolute;
	top: var(--v4studio-tab-indicator-y, calc(100% - var(--v4studio-spacing-2)));
	left: 0;
	display: block;
	width: var(--v4studio-tab-indicator-width, var(--v4studio-size-0));
	height: var(--v4studio-size-2);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-accent, var(--v4studio-color-3858e9));
	content: "";
	opacity: var(--v4studio-tab-indicator-opacity, 0);
	pointer-events: none;
	transform: translate3d(var(--v4studio-tab-indicator-x, var(--v4studio-spacing-0)), 0, 0);
	will-change: width, transform;
}

.v4studio-tabs.has-animated-indicator.is-indicator-ready::after {
	transition: width 220ms cubic-bezier(0.2, 0, 0, 1), transform 220ms cubic-bezier(0.2, 0, 0, 1), top 220ms cubic-bezier(0.2, 0, 0, 1);
}

.v4studio-tabs.has-animated-indicator .v4studio-tab.button.is-active::after {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.v4studio-tabs.has-animated-indicator.is-indicator-ready::after {
		transition: none;
	}
}

.v4studio-wrap .v4studio-brand a:focus{
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9));
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-accent);
	outline-color: var(--v4studio-accent, var(--v4studio-color-3858e9));
}

.v4studio-wrap textarea:focus,
.v4studio-wrap input:focus,
.v4studio-wrap select:focus{
	border-color: var(--v4studio-color-c3c4c7);
	box-shadow: none;
	outline: var(--v4studio-border-width-2) solid var(--v4studio-color-transparent);
}

.v4studio-wrap .v4studio-tabs .v4studio-tab.button,
.v4studio-wrap .v4studio-tabs .v4studio-tab.button.button-primary,
.v4studio-wrap .v4studio-tabs .v4studio-tab.button:hover,
.v4studio-wrap .v4studio-tabs .v4studio-tab.button:focus{
	border-color: var(--v4studio-color-transparent) !important;
	background: var(--v4studio-color-transparent) !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

.v4studio-wrap .v4studio-header-link.button:not(.button-primary),
.v4studio-wrap .v4studio-tool-actions .button:not(.button-primary){
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
}

.v4studio-wrap .v4studio-header-link.button:not(.button-primary):hover,
.v4studio-wrap .v4studio-header-link.button:not(.button-primary):focus,
.v4studio-wrap .v4studio-tool-actions .button:not(.button-primary):hover,
.v4studio-wrap .v4studio-tool-actions .button:not(.button-primary):focus{
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-accent) !important;
}

.v4studio-wrap .button.button-primary:not(.v4studio-tab),
.v4studio-wrap .button.button-primary:not(.v4studio-tab):hover,
.v4studio-wrap .button.button-primary:not(.v4studio-tab):focus{
	border-color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	background-color: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	background: var(--v4studio-accent, var(--v4studio-color-3858e9)) !important;
	color: var(--v4studio-color-fff) !important;
}

/* Shared admin design system. Keep page-specific layout above; normalize visuals here. */
.v4studio-wrap,
.v4studio-wrap *,
.v4studio-wrap *::before,
.v4studio-wrap *::after{
	box-sizing: border-box;
}

.v4studio-wrap{
	color: var(--v4studio-text);
}

.v4studio-tool-section-box{
	border-color: var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
}

.v4studio-tool-section-box,
.v4studio-color-token-section,
.v4studio-choice-list label{
	border-color: var(--v4studio-border);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

.v4studio-tool-title h2{
	color: var(--v4studio-text);
	font-size: var(--v4studio-font-size-xl);
	font-weight: 600;
	line-height: 1.3;
}

.v4studio-tool-section-heading h3,
.v4studio-color-token-section h3,
.v4studio-file-field{
	color: var(--v4studio-text);
	font-weight: 600;
}

.v4studio-tool-title p,
.v4studio-tool-section-heading p,
.v4studio-file-upload-name{
	color: var(--v4studio-text-secondary);
}

.v4studio-wrap input[type="text"],
.v4studio-wrap input[type="email"],
.v4studio-wrap input[type="url"],
.v4studio-wrap input[type="number"],
.v4studio-wrap input[type="search"],
.v4studio-wrap textarea,
.v4studio-wrap select,
.v4studio-file-upload{
	min-height: var(--v4studio-control-height);
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
	font-weight: 400;
	box-shadow: none;
}

.v4studio-wrap input[type="search"]::placeholder{
	color: var(--v4studio-text-muted);
	font-size: inherit;
	font-weight: inherit;
	opacity: 1;
}

/* The browser's clear (X) button, recoloured to the muted token the inactive tabs use. The native
 * glyph cannot take a colour, so it is replaced by the same X drawn as a mask over that token. */
.v4studio-wrap input[type="search"]::-webkit-search-cancel-button{
	-webkit-appearance: none;
	appearance: none;
	width: var(--v4studio-size-12);
	height: var(--v4studio-size-12);
	cursor: pointer;
	background-color: var(--v4studio-text-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v4studio-wrap input[type="text"]:focus,
.v4studio-wrap input[type="email"]:focus,
.v4studio-wrap input[type="url"]:focus,
.v4studio-wrap input[type="number"]:focus,
.v4studio-wrap input[type="search"]:focus,
.v4studio-wrap textarea:focus,
.v4studio-wrap select:focus,
.v4studio-file-upload:focus-within{
	border-color: var(--v4studio-border-strong);
	outline: 0;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-border-strong);
}

.v4studio-wrap input[type="radio"]{
	border-color: var(--v4studio-border-strong);
	box-shadow: none;
}

.v4studio-wrap input[type="checkbox"]{
	width: var(--v4studio-size-16) !important;
	min-width: var(--v4studio-size-16) !important;
	max-width: var(--v4studio-size-16) !important;
	height: var(--v4studio-size-16) !important;
	min-height: var(--v4studio-size-16) !important;
	max-height: var(--v4studio-size-16) !important;
	margin: 0;
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong) !important;
	border-radius: var(--v4studio-radius-small) !important;
	background: var(--v4studio-panel-bg, var(--v4studio-color-fff)) !important;
	background-color: var(--v4studio-panel-bg, var(--v4studio-color-fff)) !important;
	box-shadow: none !important;
	color: var(--v4studio-color-fff) !important;
	cursor: pointer;
	transition: opacity .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.v4studio-wrap input[type="checkbox"]:not(:checked):not(:indeterminate){
	border-color: var(--v4studio-border-strong) !important;
	background: var(--v4studio-panel-bg, var(--v4studio-color-fff)) !important;
	background-color: var(--v4studio-panel-bg, var(--v4studio-color-fff)) !important;
}

.v4studio-wrap input[type="checkbox"]:checked,
.v4studio-wrap input[type="checkbox"]:indeterminate{
	border-color: var(--v4studio-accent) !important;
	background: var(--v4studio-accent) !important;
	background-color: var(--v4studio-accent) !important;
	color: var(--v4studio-color-fff) !important;
}

.v4studio-wrap input[type="checkbox"]:checked::before,
.v4studio-wrap input[type="checkbox"]:indeterminate::before{
	filter: brightness(0) invert(1) !important;
	opacity: 1;
}

.v4studio-wrap input[type="checkbox"]:focus{
	border-color: var(--v4studio-border-strong) !important;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-border-strong) !important;
	outline: 0 !important;
}

.v4studio-wrap input[type="checkbox"]:checked:focus{
	border-color: var(--v4studio-accent) !important;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) color-mix(in srgb, var(--v4studio-accent) 42%, transparent) !important;
}

.v4studio-wrap input[type="checkbox"]:indeterminate:focus{
	border-color: var(--v4studio-accent) !important;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) color-mix(in srgb, var(--v4studio-accent) 42%, transparent) !important;
}

.v4studio-wrap input[type="radio"]:checked{
	border-color: var(--v4studio-accent);
	background-color: var(--v4studio-accent);
}

.v4studio-wrap .button,
.v4studio-tool-actions .button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--v4studio-control-height);
	padding: var(--v4studio-spacing-7) var(--v4studio-space-4);
	border-radius: var(--v4studio-radius-control);
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
}

.v4studio-wrap .button.button-primary:not(.v4studio-tab),
.v4studio-wrap .button.button-primary:not(.v4studio-tab):hover,
.v4studio-wrap .button.button-primary:not(.v4studio-tab):focus{
	border-color: var(--v4studio-accent) !important;
	background: var(--v4studio-accent) !important;
	color: var(--v4studio-color-fff) !important;
}

.v4studio-wrap .button:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill){
	border-color: var(--v4studio-border-strong);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text-secondary);
}

.v4studio-wrap .button:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):hover,
.v4studio-wrap .button:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):focus{
	border-color: var(--v4studio-text-muted);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-border);
}

.v4studio-action-status{
	min-height: var(--v4studio-size-24);
	padding: var(--v4studio-spacing-3) var(--v4studio-spacing-10);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text-muted);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 400;
}

.v4studio-action-status.is-dirty{
	background: var(--v4studio-warning-bg);
	color: var(--v4studio-warning-text);
}

.v4studio-wrap .button:disabled,
.v4studio-wrap input:disabled,
.v4studio-wrap select:disabled,
.v4studio-wrap textarea:disabled,
.v4studio-wrap [aria-disabled="true"]{
	opacity: 0.48;
	cursor: not-allowed;
}

.v4studio-wrap .button.is-working{
	cursor: progress;
}

.v4studio-wrap :where(button,
[role="button"],
a,
input,
select,
textarea):focus-visible{
	outline: var(--v4studio-border-width-2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width-2);
}

.v4studio-wrap :where(button,
[role="button"],
a,
input,
select,
textarea):focus:not(:focus-visible){
	outline: 0;
}

.v4studio-theme-toggle{
	color: var(--v4studio-text-muted);
}

.v4studio-theme-toggle:hover,
.v4studio-theme-toggle:focus{
	color: var(--v4studio-accent);
}

.v4studio-wrap :where(textarea,
pre){
	scrollbar-color: color-mix(in srgb, var(--v4studio-text-muted) 45%, var(--v4studio-color-transparent)) var(--v4studio-color-transparent);
	scrollbar-width: thin;
}

.v4studio-wrap :where(textarea,
pre)::-webkit-scrollbar{
	width: var(--v4studio-size-8);
	height: var(--v4studio-size-8);
}

.v4studio-wrap :where(textarea,
pre)::-webkit-scrollbar-track{
	background: var(--v4studio-color-transparent);
}

.v4studio-wrap :where(textarea,
pre)::-webkit-scrollbar-thumb{
	border: var(--v4studio-border-width-2) solid var(--v4studio-color-transparent);
	border-radius: var(--v4studio-radius-pill);
	background: color-mix(in srgb, var(--v4studio-text-muted) 42%, var(--v4studio-color-transparent));
	background-clip: padding-box;
}

@media (max-width: 1200px) {
	.v4studio-header{
		gap: var(--v4studio-space-4);
	}

	.v4studio-tool-grid{
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {

	.v4studio-color-token-grid{
		grid-template-columns: 1fr;
	}

	.v4studio-tabs{
		gap: var(--v4studio-spacing-20);
	}
}

@media (max-width: 700px) {
	.v4studio-header{
		height: auto;
		min-height: var(--v4studio-size-72);
		flex-wrap: wrap;
		gap: var(--v4studio-space-3);
		padding-top: var(--v4studio-spacing-14);
		padding-bottom: var(--v4studio-spacing-14);
	}

	.v4studio-header-actions{
		flex: 1 1 100%;
		width: 100%;
		height: auto;
		gap: var(--v4studio-space-3);
	}

	.v4studio-tabs{
		flex: 1 1 auto;
		height: auto;
		justify-content: flex-start;
		gap: var(--v4studio-space-2) var(--v4studio-space-3);
	}

	.v4studio-tabs .v4studio-tab.button{
		height: var(--v4studio-size-36);
	}

	.v4studio-theme-toggle{
		flex: 0 0 var(--v4studio-size-36);
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.v4studio-wrap *,
.v4studio-wrap *::before,
.v4studio-wrap *::after{
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Dynamic Brand media actions follow the preview and use a quiet remove icon. */
.v4studio-media-field{
	grid-template-columns: var(--v4studio-size-200) var(--v4studio-size-132) var(--v4studio-size-140) var(--v4studio-size-28);
}

.v4studio-wrap.is-dark .v4studio-action-status.is-dirty{
	border: var(--v4studio-border-width) solid var(--v4studio-warning-border);
	background: var(--v4studio-warning-bg);
	color: var(--v4studio-warning-text);
}

/* Phones only -- see the matching note on the 782px media-field rule above. */
@media (max-width: 782px) {
	.v4studio-media-field{
		grid-template-columns: 1fr;
	}
}

/*
 * A native <select> that the custom dropdown has not replaced gets the admin's field size, border,
 * background, colour and font. The replaced ones (.v4studio-native-select) are visually hidden.
 */
.v4studio-wrap select:not(.v4studio-native-select){
	box-sizing: border-box !important;
	height: var(--v4studio-field-height) !important;
	min-height: var(--v4studio-field-height) !important;
	max-height: var(--v4studio-field-height) !important;
	padding: 0 var(--v4studio-field-padding-inline-end) 0 var(--v4studio-field-padding-inline) !important;
	border-width: var(--v4studio-border-width) !important;
	border-radius: var(--v4studio-field-radius) !important;
	background-color: var(--v4studio-panel-bg) !important;
	background-image: none !important;
	color: var(--v4studio-text) !important;
	font-size: var(--v4studio-field-font-size) !important;
	font-weight: var(--v4studio-field-font-weight, 400) !important;
	line-height: 1.2 !important;
	appearance: none !important;
}

.v4studio-wrap.is-dark select:not(.v4studio-native-select){
	background-image: none !important;
}

/*
 * The custom dropdown: the shared component (tokens.js) keeps the native <select>
 * as the value, visually hidden, and shows a button with the value and a chevron, which opens a menu of
 * options. These rules are written from admin tokens. The menu is added
 * to <body>, so the dark token block above names it too.
 */
.v4studio-wrap select.v4studio-native-select{
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
}

.v4studio-select-control{
	display: block;
	width: 100%;
	min-width: 0;
}

.v4studio-wrap .v4studio-select-button{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	height: var(--v4studio-field-height);
	min-height: var(--v4studio-field-height);
	margin: 0;
	padding: 0 var(--v4studio-field-padding-inline);
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-field-radius);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
	font-weight: var(--v4studio-field-font-weight);
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.v4studio-wrap .v4studio-select-button:hover{
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	box-shadow: 0 0 0 var(--v4studio-border-width) var(--v4studio-border-strong);
}

.v4studio-wrap .v4studio-select-button:focus-visible{
	outline: calc(var(--v4studio-border-width) * 2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width);
}

.v4studio-wrap .v4studio-select-button:disabled{
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text-muted);
	cursor: default;
}

.v4studio-select-value{
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v4studio-select-chevron{
	display: block;
	flex: 0 0 auto;
	width: var(--v4studio-select-chevron-size);
	height: var(--v4studio-select-chevron-size);
	margin-left: var(--v4studio-space-3);
	border-right: var(--v4studio-select-chevron-stroke) solid currentColor;
	border-bottom: var(--v4studio-select-chevron-stroke) solid currentColor;
	color: var(--v4studio-text-secondary);
	transform: translateY(calc(var(--v4studio-select-chevron-stroke) * -1.33)) rotate(45deg);
}

.v4studio-select-control.is-open .v4studio-select-chevron{
	transform: translateY(calc(var(--v4studio-select-chevron-stroke) * 1.33)) rotate(-135deg);
}

.v4studio-select-menu{
	position: fixed;
	z-index: var(--v4studio-select-menu-layer);
	box-sizing: border-box;
	max-height: min(var(--v4studio-select-menu-max-height), calc(100dvh - var(--v4studio-space-5)));
	padding: var(--v4studio-select-menu-padding);
	overflow: auto;
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	box-shadow: var(--v4studio-select-menu-shadow);
}

/* A thin line before a different kind of choice, such as an alias's Custom. */
.v4studio-select-divider{
	display: block;
	height: var(--v4studio-border-width);
	margin: var(--v4studio-select-menu-padding) var(--v4studio-space-2);
	background: var(--v4studio-border);
}

.v4studio-select-option{
	display: block;
	width: 100%;
	min-height: var(--v4studio-select-option-height);
	padding: var(--v4studio-select-menu-padding) var(--v4studio-space-2);
	border: 0;
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text);
	font: inherit;
	font-size: var(--v4studio-field-font-size);
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.v4studio-select-option:is(:hover, :focus, .is-selected){
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
	outline: 0;
}

.v4studio-select-option:focus-visible{
	outline: calc(var(--v4studio-border-width) * 2) solid var(--v4studio-menu-focus-ring);
	outline-offset: calc(var(--v4studio-border-width) * -2);
}

/*
 * Every dropdown on the Tokens screen, in the left column and in the tables, has the one size of the
 * rule above (as Color Harmony's): control height, field padding, font size and radius.
 */

.v4studio-tokens-panel .v4studio-tokens-controls-cell .v4studio-select-control,
.v4studio-tokens-fixed .v4studio-select-control{
	flex: 0 0 auto;
	width: auto;
	min-width: var(--v4studio-tool-multiplier-column);
}

/* A Tokens screen menu is at least as wide as its longest option (tokens.js marks it). */
.v4studio-select-menu.v4studio-tokens-select-menu{
	min-width: max-content;
}

/* Final theme surface consistency across admin pages. */
.v4studio-wrap .v4studio-import-export .v4studio-tool-card{
	border-color: var(--v4studio-border);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
}

.v4studio-wrap .v4studio-tool-section-box{
	border-color: var(--v4studio-border);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

.v4studio-wrap .v4studio-choice-list label,
.v4studio-wrap .v4studio-file-upload{
	border-color: var(--v4studio-border-strong);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
}

.v4studio-wrap .v4studio-tool-title{
	border-color: var(--v4studio-border);
}

.v4studio-wrap .v4studio-tool-section-heading p,
.v4studio-wrap .v4studio-tool-title p,
.v4studio-wrap .v4studio-file-upload-name{
	color: var(--v4studio-text-secondary);
}

.v4studio-wrap.is-dark .v4studio-tool-section-box{
	background: var(--v4studio-surface-bg);
}

.v4studio-wrap.is-dark .v4studio-choice-list label,
.v4studio-wrap.is-dark .v4studio-file-upload{
	background-color: var(--v4studio-panel-bg);
}

/*
 * Final field outline consistency: every field and field-like control gets the same border.
 */
.v4studio-wrap :where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="number"],
	input[type="search"],
	input[type="tel"],
	input[type="password"],
	textarea,
	select,
	.v4studio-select-button,
	.v4studio-file-upload,
	.v4studio-choice-list label,
	.v4studio-media-field .button
){
	border-color: var(--v4studio-border-strong) !important;
}

.v4studio-wrap :where(
	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="number"],
	input[type="search"],
	input[type="tel"],
	input[type="password"],
	textarea,
	select,
	.v4studio-select-button,
	.v4studio-file-upload,
	.v4studio-choice-list label,
	.v4studio-media-field .button
):focus,
.v4studio-wrap :where(
	.v4studio-select-control.is-open .v4studio-select-button,
	.v4studio-file-upload:focus-within,
	.v4studio-media-field:focus-within .button
){
	border-color: var(--v4studio-border-strong) !important;
	box-shadow: 0 0 0 var(--v4studio-shadow-1) var(--v4studio-border-strong) !important;
	outline: 0 !important;
}

.v4studio-wrap input[type="radio"]{
	border-color: var(--v4studio-border-strong) !important;
}

.v4studio-icon-button{
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--v4studio-size-24);
	height: var(--v4studio-size-24);
	min-width: var(--v4studio-size-24);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text-secondary);
	cursor: pointer;
}

.v4studio-icon-button:hover,
.v4studio-icon-button:focus{
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
	outline: none;
}

.v4studio-icon-button-glyph{
	display: block;
	width: var(--v4studio-size-16);
	height: var(--v4studio-size-16);
	background: currentColor;
}

.v4studio-icon-button.is-reset .v4studio-icon-button-glyph{
	-webkit-mask: url("data:image/svg+xml,%3Csvg class='v4studio-inline-icon' aria-hidden='true' focusable='false' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6,8.4c1.4-2.7,3.9-4.7,7.1-4.7,4.6,0,8.3,3.7,8.3,8.3s-3.7,8.3-8.3,8.3-6.5-2.1-7.7-5.1' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3Cpath d='M4.1,4.2v4.2h3.9' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg class='v4studio-inline-icon' aria-hidden='true' focusable='false' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6,8.4c1.4-2.7,3.9-4.7,7.1-4.7,4.6,0,8.3,3.7,8.3,8.3s-3.7,8.3-8.3,8.3-6.5-2.1-7.7-5.1' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3Cpath d='M4.1,4.2v4.2h3.9' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v4studio-icon-button.is-info .v4studio-icon-button-glyph{
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.3' fill='none' stroke='currentColor' stroke-width='1.8'/%3E%3Cpath d='M12 11v5.2' fill='none' stroke='currentColor' stroke-linecap='round' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='7.9' r='1.1' fill='currentColor'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.3' fill='none' stroke='currentColor' stroke-width='1.8'/%3E%3Cpath d='M12 11v5.2' fill='none' stroke='currentColor' stroke-linecap='round' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='7.9' r='1.1' fill='currentColor'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Brand Data's sample-values icon: the reset icon's button, size and colours (the same colour as the reset). */
.v4studio-brand-samples{
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.v4studio-brand-samples[hidden]{
	display: none;
}

/* Opened by a tap or Enter (brand-data.js): the tooltip's card, under the icon, at the wide measure. */
.v4studio-brand-samples-pop{
	position: absolute;
	z-index: var(--v4studio-tooltip-layer);
	top: calc(100% + var(--v4studio-space-2));
	right: 0;
	box-sizing: border-box;
	width: max-content;
	max-width: min(var(--v4studio-tooltip-measure-wide), calc(100vw - var(--v4studio-space-6)));
	padding: var(--v4studio-spacing-10) var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-tooltip-card-border);
	border-radius: var(--v4studio-radius-7);
	background: var(--v4studio-tooltip-card-bg);
	color: var(--v4studio-tooltip-card-text);
	font-size: var(--v4studio-font-size-xs);
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	box-shadow: 0 var(--v4studio-shadow-8) var(--v4studio-shadow-24) var(--v4studio-tooltip-card-shadow);
}

.v4studio-brand-samples-pop[hidden]{
	display: none;
}

.v4studio-reset-confirmation{
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--v4studio-spacing-2);
	flex: 0 0 auto;
}

.v4studio-reset-confirmation .v4studio-reset-confirm,
.v4studio-reset-confirmation .v4studio-reset-cancel{
	display: none;
}

.v4studio-reset-confirmation.is-confirming > [data-v4studio-request-reset]{
	display: none;
}

.v4studio-reset-confirmation.is-confirming > .v4studio-reset-confirm,
.v4studio-reset-confirmation.is-confirming > .v4studio-reset-cancel{
	display: inline-grid;
}

.v4studio-reset-confirmation .v4studio-reset-confirm{
	color: var(--v4studio-accent);
}

.v4studio-reset-confirmation .v4studio-reset-cancel{
	color: var(--v4studio-text-muted);
}

.v4studio-reset-confirmation .v4studio-reset-confirm:hover,
.v4studio-reset-confirmation .v4studio-reset-confirm:focus-visible{
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-accent);
}

.v4studio-reset-confirmation .v4studio-reset-cancel:hover,
.v4studio-reset-confirmation .v4studio-reset-cancel:focus-visible{
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-danger);
}

.v4studio-reset-confirmation .dashicons{
	width: var(--v4studio-size-16);
	height: var(--v4studio-size-16);
	font-size: var(--v4studio-font-size-16);
	line-height: var(--v4studio-line-height-16);
}

/* The reset confirmation hangs under the icon that was used, in the tooltip colours, which already
   swap between the light and dark themes (dark pill on light, light pill on dark). */
.v4studio-reset-confirmation{
	position: relative;
}

.v4studio-icon-button[data-tooltip]::after{
	position: absolute;
	z-index: 100;
	right: 0;
	bottom: calc(100% + var(--v4studio-spacing-6));
	display: none;
	width: max-content;
	max-width: var(--v4studio-size-220);
	padding: var(--v4studio-spacing-3) var(--v4studio-spacing-6);
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-tooltip-bg, var(--v4studio-color-1d2327));
	color: var(--v4studio-tooltip-text, var(--v4studio-color-fff));
	font-size: var(--v4studio-font-size-xs);
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	content: attr(data-tooltip);
	pointer-events: none;
}

.v4studio-icon-button[data-tooltip]:hover::after,
.v4studio-icon-button[data-tooltip]:focus-visible::after{
	display: block;
}

/* Embedded interface icons: SVG markup is bundled with the UI instead of requested as files. */
.v4studio-inline-icon { display: block; color: currentColor; }
.v4studio-device-svg{ background: none !important; -webkit-mask: none !important; mask: none !important; }

/*
 * WORDPRESS'S OWN INSET TRANSITION, WHICH IS 782px -- NOT 700px OR 1200px.
 *
 * This block is last in the file on purpose: the header's bleed is also set at max-width:1200px
 * and max-width:700px, and equal-specificity rules are resolved by order, so it has to come
 * after both to win below 782px.
 *
 * Above 782px WordPress gives #wpcontent `padding-left: 20px` and .wrap `margin-right: 20px`,
 * and the header's symmetric -20px bleed lands exactly on the content-area edges. At 782px core
 * changes both numbers -- admin-menu.css drops #wpcontent's padding-left to 10px, common.css
 * drops .wrap's right margin to 12px -- while the header carried on bleeding 20px each way. The
 * left edge therefore landed at -10px: outside the document, a real horizontal overflow rather
 * than a cosmetic gap.
 *
 * So the bleed is asymmetric here, because the gutters it has to cancel are asymmetric. These
 * are core's numbers, not chosen ones; they are duplicated rather than derived because CSS has
 * no way to read another element's used padding.
 */
@media screen and (max-width: 782px) {
	.v4studio-wrap{
		/*
		 * 10px, matching #wpcontent's padding-left at this width -- NOT core's own 12px
		 * right margin. Core is asymmetric here (10 left, 12 right), and inheriting that
		 * asymmetry puts 18px of gutter on one side of the panel and 20px on the other.
		 * Matching the left inset makes the two equal, which is the point of the exercise.
		 */
		margin-right: var(--v4studio-spacing-10);
	}

	.v4studio-header{
		/* Symmetric again, because the gutters it cancels are symmetric again. */
		margin-inline: calc(var(--v4studio-spacing-10) * -1);
	}
}

/* ==========================================================================
   Compact main navigation
   --------------------------------------------------------------------------
   Applied by assets/admin-nav.js when the tab row does not fit on one line.
   Deliberately NOT keyed to a width: the fitting width moves with the number
   of tabs, the WordPress sidebar state, zoom, and translated tab labels.

   Every selector here is a .v4studio-header compound (0,2,0) or deeper, so it
   beats the single-class rules inside the 1200px and 700px blocks above
   regardless of source order.
   ========================================================================== */

/* Hidden until the controller decides the tab row does not fit. This was a grouped rule
   that also hid the section indicator; removing the indicator took the declaration block
   with it and left this selector dangling, so the button rendered at every width. */
.v4studio-nav-toggle{
	display: none;
}

/* Measurement-only, applied for the duration of one synchronous read in admin-nav.js.
   Below 1200px the header stacks into a column, which hands the tab row the FULL width and
   makes it "fit" again -- so the mode flipped back to the stacked header in a band around
   1150-1200px and then back to compact below it. Asking the question in one consistent
   layout at every width makes the answer monotonic. Nothing is painted between the class
   going on and coming off. */
.v4studio-header.is-measuring{
	flex-flow: row nowrap;
}

.v4studio-header.is-measuring .v4studio-header-actions{
	flex: 1 1 auto;
	width: auto;
}

/* The compact header wraps: when the controls (menu, Wireframe Library, Docs, theme) do not fit
   beside the logo, as on a phone, they take their own row under it, right-aligned and at full
   size, instead of sliding over the logo. The controls group keeps its content width
   (min-width: auto) so that it moves down rather than shrinks. On a phone the controls are
   laid out apart instead (the 480px block below). */
.v4studio-header.is-compact{
	position: relative;
	flex-flow: row wrap;
	align-items: center;
	gap: var(--v4studio-space-3);
}

.v4studio-header.is-compact .v4studio-header-actions{
	flex: 1 1 auto;
	width: auto;
	height: auto;
	justify-content: flex-end;
	gap: var(--v4studio-space-3);
	min-width: auto;
}

/*
 * The 700px block gives the theme toggle `margin-left: auto`. That is right for the stacked
 * header it was written for, where the toggle is the only control on its row and has to sit at
 * the far end. In the compact header it is wrong: the auto margin eats ALL the free space
 * INSIDE the control group, so the toggle goes to the right edge and the section name and menu
 * button are left back beside the logo. Measured at 579px before this rule: brand 20-116,
 * actions 128-559, label starting at 128, menu ending at 245, theme at 523 -- a 278px hole
 * between the menu button and the theme button, from a 266px auto margin.
 *
 * The container is already `justify-content: flex-end`; it simply never had any free space to
 * distribute. Cancelling the auto margin hands that space back to the container, which puts the
 * whole group against the padded content edge. No offsets, no spacer, no positioning.
 *
 * margin-left, not margin-inline-start: it has to cancel the same physical property the 700px
 * rule sets, and under RTL the logical property maps to the other side and would not.
 */
.v4studio-header.is-compact .v4studio-theme-toggle{
	margin-left: 0;
}

/* The full-size mark is 166px and, next to the menu button, left the section name about
   66px on a 375px screen -- it rendered as "V...", which indicates nothing. The mark stays
   legible at 120px and the name becomes readable. Compact mode only. */
.v4studio-header.is-compact .v4studio-brand img{
	width: var(--v4studio-size-120);
	max-width: 30vw;
}

.v4studio-header.is-compact .v4studio-nav-toggle{
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--v4studio-spacing-10);
	min-height: var(--v4studio-size-44);
	padding: 0 var(--v4studio-spacing-14);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text, var(--v4studio-color-1d2327));
	font-size: var(--v4studio-font-size-14);
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.v4studio-header.is-compact .v4studio-nav-toggle:focus-visible{
	outline: var(--v4studio-border-width-2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width-2);
}

/* Three bars that become a cross. The middle bar is the element; the outer two are
   its pseudo-elements, so the open/closed state is carried entirely by transforms. */
.v4studio-nav-toggle-bars{
	position: relative;
	display: block;
	width: var(--v4studio-size-18);
	height: var(--v4studio-size-2);
	border-radius: var(--v4studio-radius-2);
	background: currentColor;
}

.v4studio-nav-toggle-bars::before,
.v4studio-nav-toggle-bars::after{
	position: absolute;
	left: 0;
	width: var(--v4studio-size-18);
	height: var(--v4studio-size-2);
	border-radius: var(--v4studio-radius-2);
	background: currentColor;
	content: "";
	transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.v4studio-nav-toggle-bars::before{
	transform: translateY(calc(var(--v4studio-spacing-6) * -1));
}

.v4studio-nav-toggle-bars::after{
	transform: translateY(var(--v4studio-spacing-6));
}

.v4studio-nav-toggle[aria-expanded="true"] .v4studio-nav-toggle-bars{
	background: var(--v4studio-color-transparent);
}

.v4studio-nav-toggle[aria-expanded="true"] .v4studio-nav-toggle-bars::before{
	transform: rotate(45deg);
}

.v4studio-nav-toggle[aria-expanded="true"] .v4studio-nav-toggle-bars::after{
	transform: rotate(-45deg);
}

/* display:none is doing accessibility work, not just visual work: it removes the
   links from the tab order AND from the accessibility tree in one declaration, so
   there is no tabindex or aria-hidden bookkeeping to get out of step. */
.v4studio-header.is-compact .v4studio-tabs{
	display: none;
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs{
	position: absolute;
	z-index: 100;
	top: calc(100% + var(--v4studio-spacing-6));
	right: 0;
	display: flex;
	overflow-y: auto;
	flex-flow: column nowrap;
	align-items: stretch;
	box-sizing: border-box;
	/*
	 * Content width, not a fixed 320px. The panel holds the three tab labels and the Wireframe
	 * Library link -- "Import / Export" is the longest shipped -- so a fixed width left a
	 * wide empty gutter down the right of every item.
	 *
	 * max-content measures the longest label, and the two bounds keep it sane at both ends:
	 * a short translated label is what the floor is for, and the old 320px stays as the
	 * ceiling with the viewport guard intact so a long label cannot push the panel off-screen.
	 *
	 * The floor is 140px because the shipped labels need 138 -- "Import / Export" is 98px of
	 * text plus the item's 24px and the panel's 16px. Measured, so that content width is what
	 * actually governs in the normal case and the floor only rescues a very short label.
	 * An earlier 160px looked content-sized but was really just a smaller fixed width.
	 */
	width: max-content;
	min-width: var(--v4studio-size-140);
	max-width: min(var(--v4studio-size-320), calc(100vw - var(--v4studio-size-24)));
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, var(--v4studio-size-32)) - var(--v4studio-size-120));
	max-height: calc(100dvh - var(--wp-admin--admin-bar--height, var(--v4studio-size-32)) - var(--v4studio-size-120));
	height: auto;
	gap: var(--v4studio-space-1);
	padding: var(--v4studio-space-2);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-12);
	background: var(--v4studio-panel-bg, var(--v4studio-color-fff));
	box-shadow: 0 var(--v4studio-shadow-12) var(--v4studio-shadow-32) var(--v4studio-color-rgb-0-0-0-0p16);
	overscroll-behavior: contain;
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-tab.button{
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: var(--v4studio-size-44);
	padding: var(--v4studio-spacing-10) var(--v4studio-space-3);
	border-radius: var(--v4studio-radius-panel);
	text-align: left;
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-tab.button.is-active{
	border-color: var(--v4studio-border-strong, var(--v4studio-color-73828d));
	background: var(--v4studio-nav-active-bg, var(--v4studio-color-f0f0f1));
}

/*
 * The header's links (Wireframe Library) while the header is compact: not beside the menu
 * button but at the end of the menu, under a divider, in the accent colour (admin-nav.js puts a copy there).
 * Exactly one of the two is shown, so the header is one row and the link is in the menu's tab order.
 */
.v4studio-header:not(.is-compact) [data-v4studio-nav-menu-link],
.v4studio-header.is-compact .v4studio-header-links{
	display: none;
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: var(--v4studio-size-44);
	margin-top: var(--v4studio-space-1);
	padding: var(--v4studio-spacing-10) var(--v4studio-space-3);
	border: 0;
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: 0 0 var(--v4studio-radius-panel) var(--v4studio-radius-panel);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-accent);
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	box-shadow: none;
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button:hover,
.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button:focus-visible{
	background: var(--v4studio-nav-active-bg);
	color: var(--v4studio-accent);
}

.v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button:focus-visible{
	outline: var(--v4studio-border-width-2) solid var(--v4studio-accent);
	outline-offset: calc(var(--v4studio-border-width-2) * -1);
}

/* Dark: the outlined buttons' lighter accent, readable on the dark panel. */
.v4studio-wrap.is-dark .v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button{
	color: var(--v4studio-color-7fa0ff);
}

.v4studio-wrap.is-dark .v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button:hover,
.v4studio-wrap.is-dark .v4studio-header.is-compact.is-nav-open .v4studio-tabs .v4studio-nav-menu-link.button:focus-visible{
	color: var(--v4studio-color-a9bdff);
}

/* The sliding indicator is positioned from coordinates the admin bundles measured for a
   horizontal row; it means nothing in a vertical panel. Suppressed here, and the active
   row is marked by its own background above instead. (0,4,1) and (0,7,1) respectively,
   against the (0,2,1) and (0,4,1) rules that own these pseudo-elements.) */
.v4studio-header.is-compact .v4studio-tabs.has-animated-indicator::after{
	display: none;
}

.v4studio-header.is-compact .v4studio-tabs .v4studio-tab.button.is-active::after{
	display: none;
}

/* The button is icon-only at every compact width, by request. The word "Menu" was visible
   between the compact threshold and 600px, where an earlier revision clipped it only because
   the mark, the section name and the word could not share a 375px row.

   The text stays IN the button and is clipped rather than deleted: it is the accessible
   name, and the bars/cross icon carries no name of its own. An icon-only control with
   nothing for a screen reader to announce would be a defect, not a simplification.

   No width query any more. There is nothing left to trade room against now that the section
   name is gone, so the button looks the same the whole way down. */
.v4studio-header.is-compact .v4studio-nav-toggle-text{
	position: absolute;
	overflow: hidden;
	width: var(--v4studio-size-1);
	height: var(--v4studio-size-1);
	margin: calc(var(--v4studio-spacing-1) * -1);
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

.v4studio-header.is-compact .v4studio-nav-toggle{
	width: var(--v4studio-size-44);
	padding: 0;
	justify-content: center;
}

@media (max-width: 600px) {

	/* Kept from the revision that introduced it, when it bought room for the section name.
	   That reason is gone; this is now just the mark sizing on a narrow screen, and it is
	   left alone rather than changed as a side effect of removing the name. */
	.v4studio-header.is-compact .v4studio-brand img{
		width: var(--v4studio-size-96);
	}

}

@media (prefers-reduced-motion: reduce) {

	.v4studio-nav-toggle-bars::before,
	.v4studio-nav-toggle-bars::after{
		transition: none;
	}

}

/* Coarse pointers only, so nothing about the desktop appearance changes. Measured at 390px
   before this rule: tool tabs 32px tall, theme toggle 36px. The compact menu button was
   already built at 44px. (0,2,0) throughout, which beats the single-class rules that own
   these sizes, including the ones inside the 700px block. */
@media (hover: none) {

	.v4studio-header .v4studio-theme-toggle{
		flex: 0 0 var(--v4studio-size-44);
		width: var(--v4studio-size-44);
		height: var(--v4studio-size-44);
	}

}

/* WordPress footer, scoped to the plugin's screens. */
body:is(.v4studio-admin-light, .v4studio-admin-dark) #wpfooter {
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-field-font-size);
	font-weight: var(--v4studio-field-font-weight);
}

/*
 * The backup-stylesheet notice: a warning card with an icon, the plain-language copy, the reason
 * folded under Technical Details, and both actions held at the right.
 *
 * `.notice.v4studio-notice` is repeated so the card beats the dark theme's blue .v4studio-notice
 * box and its paragraph colour; the warning tokens already swap for dark mode. Below 782px (WP's
 * own admin breakpoint) the actions drop under the copy, lined up with the text.
 */
.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--v4studio-space-3);
	margin: var(--v4studio-space-4) 0;
	padding: var(--v4studio-spacing-14) var(--v4studio-space-4);
	border: var(--v4studio-border-width) solid var(--v4studio-warning-border);
	border-left: var(--v4studio-border-width-4) solid var(--v4studio-color-dba617);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-warning-bg);
	box-shadow: none;
}

/* Dismissible while Verify can help: room for WordPress's cross, drawn in the admin's text colour (dark mode too). */
.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice.is-dismissible-v4 {
	position: relative;
	padding-right: calc(var(--v4studio-space-4) + var(--v4studio-size-28));
}

.v4studio-retirement-notice .notice-dismiss::before {
	color: var(--v4studio-text-secondary);
}

.v4studio-retirement-notice .notice-dismiss:hover::before,
.v4studio-retirement-notice .notice-dismiss:focus::before {
	color: var(--v4studio-text);
}

.v4studio-retirement-notice .v4studio-retirement-icon {
	flex: 0 0 auto;
	width: var(--v4studio-size-20);
	height: var(--v4studio-size-20);
	margin-top: var(--v4studio-spacing-1);
	font-size: var(--v4studio-font-size-xl);
	color: var(--v4studio-color-dba617);
}

.v4studio-retirement-notice .v4studio-retirement-text {
	flex: 1 1 auto;
	min-width: 0;
}

.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice p {
	margin: 0;
	padding: 0;
	font-size: var(--v4studio-field-font-size);
	line-height: 1.5;
	color: var(--v4studio-text-secondary);
}

.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice .v4studio-retirement-title {
	margin-bottom: var(--v4studio-spacing-2);
	font-size: var(--v4studio-font-size-14);
	color: var(--v4studio-text);
}

.v4studio-retirement-notice .v4studio-retirement-details {
	margin-top: var(--v4studio-space-2);
}

.v4studio-retirement-notice .v4studio-retirement-details summary {
	width: fit-content;
	cursor: pointer;
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	color: var(--v4studio-text-secondary);
}

.v4studio-retirement-notice .v4studio-retirement-details ul {
	margin: var(--v4studio-spacing-6) 0 0;
	padding: var(--v4studio-space-2) var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-panel-bg);
	list-style: none;
}

.v4studio-retirement-notice .v4studio-retirement-details li {
	margin: 0;
	font-size: var(--v4studio-font-size-sm);
	line-height: 1.5;
	color: var(--v4studio-text-secondary);
	overflow-wrap: anywhere;
}

.v4studio-retirement-notice .v4studio-retirement-details li + li {
	margin-top: var(--v4studio-space-1);
}

.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice .v4studio-retirement-status {
	margin-top: var(--v4studio-space-2);
	font-weight: 600;
	color: var(--v4studio-text);
}

.v4studio-retirement-notice .v4studio-retirement-status:empty {
	display: none;
}

.v4studio-retirement-notice .v4studio-retirement-action {
	flex: 0 0 auto;
	display: flex;
	gap: var(--v4studio-space-2);
}

@media (max-width: 782px) {
	.v4studio-wrap .v4studio-notice.notice.v4studio-retirement-notice {
		flex-wrap: wrap;
	}

	.v4studio-retirement-notice .v4studio-retirement-text {
		flex-basis: calc(100% - var(--v4studio-size-32));
	}

	.v4studio-retirement-notice .v4studio-retirement-action {
		flex-wrap: wrap;
		padding-left: var(--v4studio-space-6);
	}
}

/* --------------------------------------------------------------------------
   Tokens
   Inside the tab's container card: the header row names the
   open generator (title, hint, reset), then an accordion of generators on the left and the open
   generator's table on the right, starting at its column labels.
   Every colour, size and spacing below comes from the admin UI tokens at the top of this
   file, so dark mode follows the toggle and no value is set here on its own.
   -------------------------------------------------------------------------- */

.v4studio-tokens{
	display: grid;
	grid-template-columns: minmax(var(--v4studio-tool-sidebar-min), var(--v4studio-tool-sidebar-max)) minmax(0, 1fr);
	gap: var(--v4studio-space-5);
	align-items: start;
}

/* Left: the generator accordion */

.v4studio-tokens-nav{
	position: sticky;
	top: calc(var(--v4studio-admin-bar-height) + var(--v4studio-sticky-gap));
	z-index: 2;
	display: grid;
	min-width: 0;
	padding: var(--v4studio-space-5);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

.v4studio-tokens-accordions{
	display: grid;
	gap: var(--v4studio-space-3);
}

.v4studio-tokens-section{
	overflow: hidden;
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-panel-bg);
}

.v4studio-tokens-toggle{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-3);
	width: 100%;
	min-height: var(--v4studio-tool-accordion-height);
	padding: var(--v4studio-space-3) var(--v4studio-space-4);
	border: 0;
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.v4studio-tokens-toggle:hover,
.v4studio-tokens-toggle:focus-visible{
	background: var(--v4studio-surface-bg);
}

.v4studio-tokens-section.is-open > .v4studio-tokens-toggle{
	background: var(--v4studio-nav-active-bg);
	cursor: default;
}

.v4studio-tokens-title{
	flex: 1 1 auto;
	min-width: 0;
}

/* The item's icon (Category_Icons): the label's colour, so it follows light, dark, hover and the open item. */
.v4studio-tokens-nav-icon{
	display: inline-flex;
	flex: none;
	width: var(--v4studio-tokens-nav-icon);
	height: var(--v4studio-tokens-nav-icon);
	color: currentColor;
}

.v4studio-tokens-nav-icon svg{
	width: 100%;
	height: 100%;
}

/*
 * The change count: a pale tint of the accent with accent text, so it hints rather than shouts. The text
 * is the accent's darker shade (the one its hover uses): the plain accent measured 4.0:1 on the open
 * item's header in the light theme, under WCAG AA's 4.5:1 for text this size; this one measures 4.9:1.
 */
.v4studio-tokens-badge{
	padding: 0 var(--v4studio-space-2);
	border-radius: var(--v4studio-radius-pill);
	background: var(--v4studio-color-rgb-56-88-233-0p12);
	color: var(--v4studio-color-2145e6);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.v4studio-wrap.is-dark .v4studio-tokens-badge{
	background: var(--v4studio-color-rgb-56-88-233-0p18);
	color: var(--v4studio-color-a9bdff);
}

.v4studio-tokens-badge[hidden]{
	display: none;
}

/* The plus that turns into a minus, drawn from two bars. */
.v4studio-tokens-toggle i{
	position: relative;
	display: block;
	flex: 0 0 var(--v4studio-tool-accordion-icon);
	width: var(--v4studio-tool-accordion-icon);
	height: var(--v4studio-tool-accordion-icon);
	color: currentColor;
}

.v4studio-tokens-toggle i::before,
.v4studio-tokens-toggle i::after{
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: var(--v4studio-border-width);
	border-radius: var(--v4studio-radius-pill);
	background: currentColor;
	content: '';
	transform: translateY(-50%);
	transition: transform 160ms ease;
}

.v4studio-tokens-toggle i::after{
	transform: translateY(-50%) rotate(90deg);
}

.v4studio-tokens-section.is-open .v4studio-tokens-toggle i::after{
	transform: translateY(-50%) rotate(180deg);
}

.v4studio-tokens-toggle:is(:hover, :focus-visible) i{
	color: var(--v4studio-accent);
}

.v4studio-tokens-body{
	display: grid;
	gap: var(--v4studio-space-3);
	padding: var(--v4studio-space-4);
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
	background: var(--v4studio-surface-bg);
}

.v4studio-tokens-body[hidden],
.v4studio-tokens-fieldset[hidden],
.v4studio-tokens-field[hidden]{
	display: none;
}

.v4studio-tokens-fieldset,
.v4studio-tokens-field{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--v4studio-space-2);
	min-width: 0;
	margin: 0;
}

.v4studio-tokens-fieldset{
	gap: var(--v4studio-space-3);
}

.v4studio-tokens-label{
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-2xs);
	font-weight: 700;
	letter-spacing: var(--v4studio-label-spacing);
	line-height: 1.3;
	text-transform: uppercase;
}

.v4studio-tokens-nav select,
.v4studio-tokens-nav input[type="text"],
.v4studio-tokens-nav input[type="number"]{
	width: 100%;
	max-width: none;
	min-height: var(--v4studio-tool-field-height);
	border-color: var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
}

.v4studio-tokens-nav .button{
	justify-content: center;
	width: 100%;
}

/* A number field with its device icon in a cell of its own. */
.v4studio-tokens-pair{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--v4studio-space-3);
	min-width: 0;
}

.v4studio-tokens-icon-input{
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	min-width: 0;
	height: var(--v4studio-tool-field-height);
	margin: 0;
	overflow: hidden;
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-panel-bg);
}

.v4studio-tokens-icon-input:focus-within{
	border-color: var(--v4studio-accent);
}

/*
 * The View Port row, editable: its fields look like the other number fields. A range the screen
 * cannot use is marked on its field, and the note under the row says why, or that the tokens use
 * more than one View Port.
 */
.v4studio-tokens-icon-input:has(input[aria-invalid="true"]){
	border-color: var(--v4studio-danger);
}

.v4studio-tokens-viewport-note{
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
	line-height: 1.5;
}

.v4studio-tokens-viewport-note:empty{
	display: none;
}

.v4studio-tokens-nav .v4studio-tokens-icon-input input[type="number"]{
	min-width: 0;
	min-height: 0;
	height: 100%;
	margin: 0;
	padding: 0 var(--v4studio-space-3);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
}

.v4studio-tokens-icon-input > i{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--v4studio-tool-icon-cell);
	padding: 0 var(--v4studio-space-2);
	border-left: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
	font-style: normal;
}

.v4studio-tokens .v4studio-device-svg{
	display: block;
	width: var(--v4studio-icon-size-sm);
	height: var(--v4studio-icon-size-sm);
	color: currentColor;
}

.v4studio-tokens .v4studio-device-icon{
	color: var(--v4studio-device-icon-color);
}

.v4studio-tokens .v4studio-device-icon .v4studio-device-svg{
	width: var(--v4studio-tool-device-icon);
	height: var(--v4studio-tool-device-icon);
}

/*
 * Fonts, Layout Width and Aliases hold only their button. While there is nothing to save, and
 * no status to read, that leaves nothing to show, so the open body is not drawn as an empty box.
 */
.v4studio-tokens-section:not(.has-changes) .v4studio-tokens-body:not(:has(.v4studio-tokens-field, .v4studio-tokens-fieldset, [data-v4studio-tokens-status]:not(:empty))){
	display: none;
}

/*
 * The body's padding is the same on all four sides (--v4studio-space-4), so nothing else may add space
 * at its foot: with no change and no status the actions take no row (a hidden button, the disabled Undo
 * and an empty status would still have left a row, its gap and a margin), and an empty status takes no
 * row under the button.
 */
.v4studio-tokens-section-actions{
	display: grid;
	gap: var(--v4studio-space-2);
}

.v4studio-tokens-section:not(.has-changes) .v4studio-tokens-section-actions:has(> [data-v4studio-tokens-status]:empty),
.v4studio-tokens-section-actions > [data-v4studio-tokens-status]:empty{
	display: none;
}

.v4studio-tokens-section-actions .button-link{
	justify-self: start;
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
}

.v4studio-tokens-section-actions .button-link:disabled{
	display: none;
}

.v4studio-tokens-all-actions,
.v4studio-tokens-site-actions{
	display: grid;
	gap: var(--v4studio-narrow-nav-action-gap);
}

/*
 * Add All To Variables (when it shows), then Reset All to Defaults: stacked, full width, one
 * height and shape, with the nav gap under the list and the action gap between buttons. Spacing,
 * not a divider, sets them apart,
 * and what is hidden takes no space: the Add All row shows only with its button or its status.
 */
.v4studio-tokens-accordions{
	margin-bottom: var(--v4studio-narrow-nav-gap);
}

.v4studio-tokens-all-actions:has(> [data-v4studio-tokens-apply-all]:not([hidden]), > [data-v4studio-tokens-all-status]:not(:empty)){
	margin-bottom: var(--v4studio-narrow-nav-action-gap);
}

.v4studio-tokens-all-actions > [data-v4studio-tokens-all-status]:empty{
	display: none;
}

.v4studio-tokens-nav .v4studio-tokens-all-actions .button,
.v4studio-tokens-nav .v4studio-tokens-site-actions .button{
	min-height: var(--v4studio-control-height);
	border-radius: var(--v4studio-radius-control);
	font-weight: 600;
}

/*
 * The primary outlined button (`.v4studio-button-outline`): a section's Add to Variables and Class
 * reference, with the same values as the other tool buttons. The :not() chain matches
 * the neutral-button rule's, which would otherwise outweigh these.
 *
 * Buttons that save edits (`.v4studio-save-button`) are shown only while there is something to save:
 * a section's Add to Variables (outlined), Add All To Variables and Import Selected (filled primary,
 * `.button-primary`). `.v4studio-wrap .button` sets a display, so [hidden] needs saying here.
 */
.v4studio-wrap .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill){
	border: var(--v4studio-border-width) solid var(--v4studio-color-3858e9);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-3858e9);
	box-shadow: none;
}

.v4studio-wrap .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):hover,
.v4studio-wrap .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):focus-visible{
	border-color: var(--v4studio-color-2145e6);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-color-2145e6);
	box-shadow: 0 0 0 var(--v4studio-border-width) var(--v4studio-color-2145e6);
}

.v4studio-wrap .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill)[aria-disabled="true"]{
	border-color: var(--v4studio-border-strong);
	color: var(--v4studio-text-muted);
	box-shadow: none;
	cursor: progress;
}

.v4studio-wrap.is-dark .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill){
	border-color: var(--v4studio-color-3858e9);
	color: var(--v4studio-color-7fa0ff);
}

.v4studio-wrap.is-dark .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):hover,
.v4studio-wrap.is-dark .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):focus-visible{
	border-color: var(--v4studio-color-6f8dff);
	color: var(--v4studio-color-a9bdff);
	box-shadow: 0 0 0 var(--v4studio-border-width) var(--v4studio-color-rgb-111-141-255-0p45);
}

.v4studio-wrap.is-dark .button.v4studio-button-outline:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill)[aria-disabled="true"]{
	border-color: var(--v4studio-border-strong);
	color: var(--v4studio-text-muted);
	box-shadow: none;
}

/* A filled save button while its save runs: muted, in place. The filled rule above uses !important. */
.v4studio-wrap .button.button-primary.v4studio-save-button[aria-disabled="true"],
.v4studio-wrap .button.button-primary.v4studio-save-button:disabled{
	border-color: var(--v4studio-border-strong) !important;
	background: var(--v4studio-surface-bg) !important;
	color: var(--v4studio-text-muted) !important;
	box-shadow: none !important;
	cursor: progress;
}

.v4studio-wrap .button.v4studio-save-button[hidden]{
	display: none;
}

.v4studio-tokens-status{
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
	line-height: 1.5;
}

.v4studio-tokens-status:empty{
	display: none;
}

.v4studio-tokens-status.is-error,
.v4studio-tokens-error{
	color: var(--v4studio-danger);
}

/* Color Harmony from Hex: a round swatch, the hex and the harmony on one row. */
.v4studio-tokens-harmony-row{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(var(--v4studio-tool-harmony-select), 0.85fr);
	gap: var(--v4studio-space-2);
	align-items: start;
}

.v4studio-tokens-hex-control .v4studio-color-control{
	display: grid;
	grid-template-columns: var(--v4studio-control-height) minmax(0, 1fr);
	align-items: center;
	gap: calc(var(--v4studio-space-1) * 1.5);
	width: 100%;
}

.v4studio-tokens-hex-control .v4studio-color-button{
	width: var(--v4studio-control-height);
	height: var(--v4studio-control-height);
	border-radius: 50%;
}

/* Above the theme's generic dark input fill, so the hex field matches every other field. */
.v4studio-wrap .v4studio-tokens-nav .v4studio-tokens-hex-control .v4studio-tokens-hex-value{
	min-height: var(--v4studio-control-height);
	border-color: var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
	text-transform: uppercase;
}

.v4studio-tokens-nav .v4studio-tokens-harmony-row select{
	min-height: var(--v4studio-control-height);
}

.v4studio-tokens-nav .v4studio-tokens-random.button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--v4studio-space-3);
	min-width: 0;
	max-width: 100%;
	white-space: normal;
	border-color: var(--v4studio-accent);
	background: transparent;
	color: var(--v4studio-accent);
}

.v4studio-tokens-random-icon{
	display: inline-flex;
	width: var(--v4studio-icon-size);
}

.v4studio-tokens-random-icon .v4studio-inline-icon{
	width: 100%;
	height: auto;
}

/* Right: the open generator's table */

.v4studio-tokens-panels{
	min-width: 0;
	container-type: inline-size;
}

.v4studio-tokens-panel{
	/* Column tracks shared by the label row and the rows of each table. */
	--v4studio-tokens-grid: minmax(var(--v4studio-tool-name-column), 0.8fr) minmax(0, 2fr) minmax(0, 1.4fr);
	--v4studio-tokens-gap: var(--v4studio-space-4);
	min-width: 0;
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

.v4studio-tokens-panel[hidden]{
	display: none;
}

/*
 * A card of its own under a section's card (Contrast under Colors): the same card
 * component, a header in the table-header style, and padded content. It carries its section's
 * data-v4studio-tokens-panel key, so it is shown and hidden with that section.
 */
.v4studio-tokens-companion{
	margin-top: var(--v4studio-space-4);
}

.v4studio-tokens-card-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v4studio-space-3);
	min-height: var(--v4studio-tool-table-header-height);
	padding: 0 var(--v4studio-space-5);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel) var(--v4studio-radius-panel) 0 0;
	background: var(--v4studio-panel-bg);
}

.v4studio-tokens-card-title{
	margin: 0;
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-2xs);
	font-weight: 700;
	letter-spacing: var(--v4studio-label-spacing);
	line-height: 1.3;
	text-transform: uppercase;
}

.v4studio-tokens-card-body{
	padding: var(--v4studio-space-5);
}

/* Type Scale's sliders stop at 128px (larger sizes are typed), so the font preview gets the room. */
.v4studio-tokens-panel[data-v4studio-tokens-panel="type"]{
	--v4studio-tokens-grid: var(--v4studio-tool-name-column) calc(var(--v4studio-tool-type-track) + var(--v4studio-tool-measure-chrome)) minmax(0, 1fr);
	--v4studio-tokens-gap: var(--v4studio-tool-type-gap);
}

/*
 * Fluid Spacing, Fluid Size, Fluid Radius and Aliases share one table grid, so their
 * labels and controls line up, and it fills the panel: the token column; the second column (Multiplier, or
 * Points To), as wide as the longest "points to" option (tokens.js measures it; the token is the floor);
 * Min / Max Size, the same sliders in every table; and Value, the rest. The columns and gaps grow with the
 * panels' width (the tokens above). Fluid Size has no second column: its token spans both, so its sliders
 * and Value sit where the others' do.
 */
.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="size"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]){
	--v4studio-tokens-grid: var(--v4studio-tool-table-token-column) max(var(--v4studio-tool-alias-target-column), var(--v4studio-tokens-alias-target, var(--v4studio-tool-alias-target-column))) var(--v4studio-tool-table-measure-column) minmax(0, 1fr);
	--v4studio-tokens-gap: var(--v4studio-tool-table-gap);
}

.v4studio-tokens-panel[data-v4studio-tokens-panel="size"] :is(.v4studio-tokens-columns, .v4studio-tokens-row) > :first-child{
	grid-column: span 2;
}

/* The table starts at its column labels; its title, hint and reset are in the container's header row. */
.v4studio-tokens-columns{
	display: grid;
	grid-template-columns: var(--v4studio-tokens-grid);
	gap: var(--v4studio-tokens-gap);
	align-items: center;
	min-height: var(--v4studio-tool-table-header-height);
	padding: 0 var(--v4studio-space-5);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel) var(--v4studio-radius-panel) 0 0;
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-2xs);
	font-weight: 700;
	letter-spacing: var(--v4studio-label-spacing);
	line-height: 1.3;
	text-transform: uppercase;
}

.v4studio-tokens-columns-devices{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-3);
	min-width: 0;
}

.v4studio-tokens-devices{
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: calc(var(--v4studio-space-1) * 1.5);
}

/* The Font Preview device buttons: bare icons, the active one a shade darker. */
.v4studio-tokens-device{
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--v4studio-tool-device-button);
	min-width: var(--v4studio-tool-device-button);
	height: var(--v4studio-tool-device-button);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-small);
	background: transparent;
	color: var(--v4studio-device-icon-color);
	cursor: pointer;
}

.v4studio-tokens-device.is-active{
	color: var(--v4studio-neutral-action);
}

.v4studio-tokens-device:focus-visible{
	outline: var(--v4studio-border-width) solid var(--v4studio-accent);
}

.v4studio-tokens-device .v4studio-device-svg{
	width: var(--v4studio-tool-device-icon);
	height: var(--v4studio-tool-device-icon);
}

.v4studio-tokens-device[data-tooltip]::after{
	position: absolute;
	z-index: 100;
	bottom: calc(100% + var(--v4studio-space-1));
	left: 50%;
	display: none;
	width: max-content;
	padding: var(--v4studio-space-1) var(--v4studio-space-2);
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-tooltip-bg);
	color: var(--v4studio-tooltip-text);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	content: attr(data-tooltip);
	pointer-events: none;
	transform: translateX(-50%);
}

.v4studio-tokens-device[data-tooltip]:is(:hover, :focus-visible)::after{
	display: block;
}

.v4studio-tokens-preview{
	min-width: 0;
	overflow: hidden;
	border-radius: 0 0 var(--v4studio-radius-panel) var(--v4studio-radius-panel);
}

/* Rows */

.v4studio-tokens-rows > .v4studio-tokens-row:nth-child(odd){
	background: var(--v4studio-surface-bg);
}

.v4studio-tokens-rows > .v4studio-tokens-row:nth-child(even){
	background: var(--v4studio-panel-bg);
}

.v4studio-tokens-row{
	display: grid;
	grid-template-columns: var(--v4studio-tokens-grid);
	gap: var(--v4studio-tokens-gap);
	align-items: center;
	min-height: var(--v4studio-tool-table-row-height);
	padding: var(--v4studio-space-4) var(--v4studio-space-5);
	overflow: hidden;
}

.v4studio-tokens-row.is-type{
	padding-right: 0;
}

/* Type steps are named in the row's own bold face. */
.v4studio-tokens-row.is-type .v4studio-tokens-name{
	font-family: inherit;
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	line-height: 1.35;
}

/* The sliders fill the Min / Max Size column, so they are the same length in every table. */
.v4studio-tokens-row.is-scale .v4studio-tool-size-preview,
.v4studio-tokens-rows.is-size .v4studio-tool-size-preview{
	box-sizing: border-box;
	width: 100%;
	max-width: var(--v4studio-tool-table-measure-column);
}

.v4studio-tokens-row.is-alias,
.v4studio-tokens-row.is-font{
	min-height: var(--v4studio-tool-table-row-height-compact);
}

/* Aliases: token, points to, min / max size (the sliders) and value (the CSS the row writes), on the shared table grid. */
.v4studio-tokens-row.is-alias .v4studio-tokens-name{
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}

.v4studio-tokens-alias-target,
.v4studio-tokens-alias-value{
	display: flex;
	align-items: center;
	min-width: 0;
}

.v4studio-tokens-alias-target .v4studio-select-control{
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.v4studio-tokens-alias-value .v4studio-tool-size-preview{
	flex: 0 1 auto;
	width: 100%;
	max-width: var(--v4studio-tool-table-measure-column);
}

/* A row that points at a token shows that token's value, muted; editing it gives the row its own value. */
.v4studio-tokens-row.is-linked .v4studio-clamp-bar,
.v4studio-tokens-row.is-linked .v4studio-measure-marker{
	background: var(--v4studio-border-strong);
}

.v4studio-tokens-row.is-linked .v4studio-clamp-input,
.v4studio-tokens-row.is-linked .v4studio-tokens-fixed input,
.v4studio-tokens-row.is-linked .v4studio-tokens-fixed .v4studio-select-value{
	color: var(--v4studio-text-secondary);
}

/* A changed row: a thin, pale accent line on its left edge. */
.v4studio-tokens-row.is-changed{
	box-shadow: inset calc(var(--v4studio-border-width) * 2) 0 0 var(--v4studio-color-rgb-56-88-233-0p35);
}

.v4studio-wrap.is-dark .v4studio-tokens-row.is-changed{
	box-shadow: inset calc(var(--v4studio-border-width) * 2) 0 0 var(--v4studio-color-rgb-111-141-255-0p45);
}

.v4studio-tokens-row.has-error{
	box-shadow: inset var(--v4studio-space-1) 0 0 var(--v4studio-danger);
}

.v4studio-tokens-name{
	min-width: 0;
	overflow: hidden;
	color: var(--v4studio-text);
	font-family: var(--v4studio-font-mono);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v4studio-tokens-controls-cell{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-space-3);
	min-width: 0;
}

.v4studio-tokens-controls-cell .v4studio-tool-size-preview{
	flex: 1 1 var(--v4studio-tool-name-column);
}

.v4studio-tokens-controls-cell .v4studio-radius-preview-box{
	margin-left: 0;
}

.v4studio-tokens-panel input[type="text"],
.v4studio-tokens-panel input[type="number"]:not(.v4studio-clamp-input),
.v4studio-tokens-panel select{
	min-height: var(--v4studio-control-height-compact);
	border-color: var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background-color: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	/* The field text size every other field uses (13px), not the 12px small text. */
	font-size: var(--v4studio-field-font-size);
}

.v4studio-tokens-code,
.v4studio-tokens-stored{
	min-width: 0;
	padding: 0;
	/* clamp() text wraps at its spaces (after a comma, around +); a word breaks only if it can't fit alone. */
	overflow-wrap: break-word;
	background: transparent;
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
	line-height: 1.5;
}

.v4studio-tokens-multiplier{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-1);
	margin: 0;
}

.v4studio-tokens-multiplier span{
	color: var(--v4studio-text-muted);
	font-size: var(--v4studio-font-size-sm);
}

.v4studio-tokens-panel .v4studio-tokens-multiplier input,
.v4studio-tokens-panel .v4studio-tokens-fixed input{
	width: calc(var(--v4studio-tool-multiplier-column) - var(--v4studio-space-5));
	min-width: 0;
	padding-inline: var(--v4studio-field-padding-inline);
}

/* An expression size or a plain number, typed as text: wide enough for a clamp() at a glance, and no wider than its cell. */
.v4studio-tokens-panel .v4studio-tokens-text{
	flex: 1 1 32ch;
	width: 32ch;
	min-width: 0;
	max-width: 100%;
	padding-inline: var(--v4studio-field-padding-inline);
	font-family: var(--v4studio-font-mono);
}

.v4studio-tokens-fixed{
	/* A fixed value and its unit are compact, like the multiplier field, so one table row has one height. */
	--v4studio-field-height: var(--v4studio-field-height-compact);
	display: inline-flex;
	align-items: center;
	gap: var(--v4studio-space-2);
}

.v4studio-tokens-alias{
	min-width: var(--v4studio-tool-name-column);
}

.v4studio-tokens-row.is-font .v4studio-tokens-controls-cell input{
	flex: 1 1 var(--v4studio-tool-name-column);
	min-width: 0;
}

.v4studio-tokens-type-sample,
.v4studio-tokens-font-sample{
	display: block;
	min-width: 0;
	overflow: hidden;
	color: var(--v4studio-text);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
	text-overflow: clip;
	white-space: nowrap;
}

.v4studio-tokens-type-sample{
	font-size: var(--v4studio-type-sample-size, var(--v4studio-font-size-xl));
}

/* A preview longer than its column fades out at the right edge instead of being cut off. */
.v4studio-tokens-type-sample,
.v4studio-tokens-font-sample{
	-webkit-mask-image: linear-gradient(to right, var(--v4studio-color-000) calc(100% - var(--v4studio-space-6)), transparent);
	mask-image: linear-gradient(to right, var(--v4studio-color-000) calc(100% - var(--v4studio-space-6)), transparent);
}

.v4studio-tokens-font-sample{
	font-size: var(--v4studio-font-size-xl);
	line-height: 1.3;
}

/*
 * Fonts, as the old font-variables rows: the token, the family and fallback dropdowns and the delete
 * action on one line, then, under a quiet divider, a full-width preview in that font, and a quiet note
 * when the font is not available here. The name is centred on the controls line. The add action is in
 * the column label row, over the delete column, so it never makes a controls line taller.
 */
.v4studio-tokens-panel[data-v4studio-tokens-panel="fonts"]{
	--v4studio-tokens-grid: minmax(var(--v4studio-tool-size-name-column), 0.8fr) minmax(0, 2fr) minmax(var(--v4studio-tool-font-fallback), 0.7fr) var(--v4studio-tool-font-action);
}

/* The space under the controls line, down to the preview's divider, is the row's top padding. */
.v4studio-tokens-row.is-font{
	grid-template-columns: var(--v4studio-tokens-grid);
	row-gap: var(--v4studio-space-4);
	align-items: center;
}

.v4studio-tokens-row.is-font > .v4studio-tokens-name{
	align-self: center;
}

/*
 * The preview line, under a quiet divider: the preview text, then, when the font isn't here, an asterisk,
 * which stays in view when the text is cut off.
 */
.v4studio-tokens-row.is-font .v4studio-tokens-font-preview{
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	min-width: 0;
	padding-top: var(--v4studio-space-3);
	padding-bottom: var(--v4studio-space-2);
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
}

/*
 * On the white rows in light mode the divider is the quieter fill token, so it reads as softly as the
 * shared border does on the grey rows (about 1.2:1 against its row either way).
 */
.v4studio-wrap:not(.is-dark) .v4studio-tokens-rows.is-fonts > .v4studio-tokens-row.is-font:nth-child(even) .v4studio-tokens-font-preview{
	border-top-color: var(--v4studio-nav-active-bg);
}

.v4studio-tokens-row.is-font .v4studio-tokens-font-sample{
	flex: 0 1 auto;
	display: block;
	font-size: var(--v4studio-tool-font-preview-size);
	line-height: 1.25;
}

.v4studio-tokens-font-missing{
	flex: none;
	display: inline-grid;
	place-items: start center;
	min-width: var(--v4studio-icon-size-sm);
	min-height: var(--v4studio-icon-size-sm);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-16);
	font-weight: 600;
	line-height: 1;
	cursor: help;
}

.v4studio-tokens-font-missing[hidden]{
	display: none;
}

.v4studio-tokens-font-missing:hover,
.v4studio-tokens-font-missing:focus-visible{
	color: var(--v4studio-text);
}

.v4studio-tokens-font-missing:focus-visible{
	outline: calc(var(--v4studio-border-width) * 2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width);
}

.v4studio-tokens-font-actions{
	display: grid;
	justify-items: center;
}

/* The shipped fonts have no delete action: their fallback dropdown takes its column too. */
.v4studio-tokens-row.is-font.is-shipped [data-v4studio-token-part="generic"] + .v4studio-select-control{
	grid-column: 3 / -1;
}

/* The add action sits in the label row, over the delete column, as the delete actions do in the rows. */
.v4studio-tokens-columns .v4studio-tokens-font-add{
	grid-column: -2;
	justify-self: center;
}

.v4studio-tokens-font-delete,
.v4studio-tokens-font-add{
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--v4studio-tool-device-button);
	height: var(--v4studio-tool-device-button);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-small);
	background: transparent;
	color: var(--v4studio-text-secondary);
	cursor: pointer;
}

.v4studio-tokens-font-delete .v4studio-inline-icon,
.v4studio-tokens-font-add .v4studio-inline-icon{
	width: var(--v4studio-icon-size-sm);
	height: var(--v4studio-icon-size-sm);
	fill: currentColor;
}

.v4studio-tokens-font-delete:hover,
.v4studio-tokens-font-add:hover{
	color: var(--v4studio-accent);
}

.v4studio-tokens-font-delete:focus-visible,
.v4studio-tokens-font-add:focus-visible{
	outline: calc(var(--v4studio-border-width) * 2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width);
}

.v4studio-tokens-font-delete[data-tooltip]::after,
.v4studio-tokens-font-add[data-tooltip]::after{
	position: absolute;
	z-index: 100;
	right: 0;
	bottom: calc(100% + var(--v4studio-space-1));
	display: none;
	width: max-content;
	padding: var(--v4studio-space-1) var(--v4studio-space-2);
	border-radius: var(--v4studio-radius-small);
	background: var(--v4studio-tooltip-bg);
	color: var(--v4studio-tooltip-text);
	font-size: var(--v4studio-font-size-xs);
	line-height: 1.2;
	content: attr(data-tooltip);
	pointer-events: none;
}

.v4studio-tokens-font-delete[data-tooltip]:is(:hover, :focus-visible)::after,
.v4studio-tokens-font-add[data-tooltip]:is(:hover, :focus-visible)::after{
	display: block;
}

/*
 * Fluid Radius: after the multiplier, desktop then mobile, each a device icon, a compact px
 * field and the corner it draws, then the clamp() text. No slider tracks. Each control keeps its natural
 * width (the field with its suffix, then the corner, a gap apart), and the mobile one goes under the
 * desktop one when the column is too narrow for both, so nothing overlaps.
 */
.v4studio-radius-preview-pair{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-space-2) var(--v4studio-space-4);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.v4studio-radius-preview-control{
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--v4studio-space-2);
}

.v4studio-radius-preview-control > *{
	flex: none;
}

/* The fixed radius rows sit on the surface colour. */
.v4studio-tokens-rows > .v4studio-tokens-row.is-radius.is-fixed{
	background: var(--v4studio-surface-bg);
}

.v4studio-radius-preview-control .v4studio-radius-preview-box{
	width: var(--v4studio-tool-radius-box);
	height: var(--v4studio-tool-radius-box);
	margin-left: 0;
}

/*
 * Layout Width: the token, its width fields on the right, and a track under the row that the width fills
 * pixel for pixel. Wider than the track, the fill runs full and the marker becomes an arrow (.is-overflowing);
 * otherwise the marker is not shown.
 */
.v4studio-tokens-panel[data-v4studio-tokens-panel="layout"]{
	--v4studio-tokens-grid: minmax(0, 1fr) auto;
}

.v4studio-tokens-panel[data-v4studio-tokens-panel="layout"] .v4studio-tokens-columns > :last-child{
	justify-self: end;
}

.v4studio-tokens-row.is-layout{
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--v4studio-space-2) var(--v4studio-space-5);
	min-height: 0;
}

.v4studio-tokens-row.is-layout > .v4studio-tokens-controls-cell{
	display: inline-flex;
	align-items: center;
	gap: var(--v4studio-space-2);
	justify-self: end;
}

.v4studio-tokens-width-px{
	color: var(--v4studio-text-muted);
	font-size: var(--v4studio-font-size-xs);
	white-space: nowrap;
}

/*
 * The full row width: scoped to the token rows so the general 306px cap on clamp previews cannot shrink it.
 * Each bar is then drawn at its real width, 1:1 in CSS px, whenever it fits (320 short, 768 longer, ...).
 */
.v4studio-tokens-row .v4studio-tokens-width-track{
	grid-column: 1 / -1;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding-right: 0;
}

/* Wider than the row: the bar fills it and fades out at the right, by the arrow; the tooltip gives the width. */
.v4studio-tokens-width-track .v4studio-measure-control.is-overflowing .v4studio-clamp-bar{
	background: linear-gradient(to right, var(--v4studio-preview-fill) calc(100% - var(--v4studio-space-6)), transparent);
}

/* The arrow sits on the faded end, so it takes the secondary text colour rather than the surface's. */
.v4studio-tokens-width-track .v4studio-measure-control.is-overflowing .v4studio-measure-marker{
	border-top-color: var(--v4studio-text-secondary);
	border-right-color: var(--v4studio-text-secondary);
}

.v4studio-tokens-width-track .v4studio-clamp-row{
	display: block;
	min-height: 0;
}

.v4studio-tokens-width-track .v4studio-measure-control{
	display: block;
	width: 100%;
	height: var(--v4studio-tool-width-track-height);
	padding: var(--v4studio-space-1);
}

.v4studio-tokens-width-track .v4studio-clamp-bar-wrap{
	height: var(--v4studio-tool-width-bar-height);
}

.v4studio-tokens-width-track .v4studio-measure-control:not(.is-overflowing) .v4studio-measure-marker{
	display: none;
}

.v4studio-tokens-empty{
	margin: 0;
	padding: var(--v4studio-space-5);
	color: var(--v4studio-text-secondary);
}

/* Palette: the swatch groups, built from the shared colour control and swatch rules. */

.v4studio-tokens-panel .v4studio-color-token-section{
	display: grid;
	gap: var(--v4studio-space-3);
	min-width: 0;
	padding: var(--v4studio-tool-section-padding);
	border: 0;
	border-radius: 0;
}

.v4studio-tokens-panel .v4studio-color-token-section:nth-child(odd){
	background: var(--v4studio-surface-bg);
}

.v4studio-tokens-panel .v4studio-color-token-section:nth-child(even){
	background: var(--v4studio-panel-bg);
}

.v4studio-tokens-panel .v4studio-color-token-section h3{
	color: var(--v4studio-text-secondary);
	font-weight: 700;
}

.v4studio-tool-swatch.is-changed{
	border-color: var(--v4studio-color-rgb-56-88-233-0p35);
	box-shadow: none;
}

.v4studio-wrap.is-dark .v4studio-tool-swatch.is-changed{
	border-color: var(--v4studio-color-rgb-111-141-255-0p45);
}

.v4studio-tool-swatch.has-error{
	border-color: var(--v4studio-danger);
	box-shadow: 0 0 0 var(--v4studio-border-width) var(--v4studio-danger);
}

.v4studio-tool-swatch .v4studio-tokens-error{
	padding: 0 var(--v4studio-space-2) var(--v4studio-space-2);
	font-size: var(--v4studio-font-size-xs);
}

.v4studio-tokens-row .v4studio-tokens-error{
	grid-column: 1 / -1;
}

@container (max-width: 760px){
	.v4studio-tokens-columns{
		display: none;
	}

	/* Stacked, each field shows its column's label above it, as the table's eyebrow head would (tokens.js). */
	.v4studio-tokens-row > [data-v4studio-column]{
		flex-wrap: wrap;
	}

	.v4studio-tokens-row > [data-v4studio-column]::before{
		content: attr(data-v4studio-column);
		display: block;
		flex: 1 0 100%;
		margin-bottom: var(--v4studio-space-1);
		color: var(--v4studio-text-secondary);
		font-family: var(--v4studio-font-ui);
		font-size: var(--v4studio-font-size-2xs);
		font-weight: 700;
		letter-spacing: var(--v4studio-label-spacing);
		line-height: 1.3;
		text-transform: uppercase;
	}

	.v4studio-tokens-row{
		grid-template-columns: minmax(0, 1fr);
		gap: var(--v4studio-space-3);
		min-height: 0;
	}

	/* Stacked, the label row keeps only the add-font action, at the panel's top right. */
	.v4studio-tokens-columns:has([data-v4studio-font-add]){
		display: flex;
		justify-content: flex-end;
	}

	.v4studio-tokens-columns:has([data-v4studio-font-add]) > :not([data-v4studio-font-add]){
		display: none;
	}

	/* Stacked, an alias's dropdown keeps the shared width rather than the full row. */
	.v4studio-tokens-alias-target{
		max-width: var(--v4studio-tokens-alias-target, var(--v4studio-tool-alias-target-column));
	}

	/*
	 * The shared tables, medium: the token and its multiplier or dropdown on one line, then
	 * the sizes (sliders, or the radius fields and corners) across the row, then the value.
	 */
	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]) .v4studio-tokens-row{
		grid-template-columns: var(--v4studio-tool-table-token-column) minmax(0, 1fr);
		column-gap: var(--v4studio-space-4);
	}

	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="size"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]) .v4studio-tokens-row > :nth-child(n + 3),
	.v4studio-tokens-panel[data-v4studio-tokens-panel="size"] .v4studio-tokens-row > :first-child{
		grid-column: 1 / -1;
	}

	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="size"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]) .v4studio-tool-size-preview{
		max-width: var(--v4studio-tool-table-measure-max);
	}

	/*
	 * Stacked, a Type Scale preview larger than its room wraps to two lines and scales down to fit (11% of the
	 * panels' width), never above its own size, so it still reads as a sentence. A Fonts
	 * preview wraps to two lines too.
	 */
	.v4studio-tokens-type-sample{
		font-size: min(var(--v4studio-type-sample-size, var(--v4studio-font-size-xl)), 11cqi);
	}

	.v4studio-tokens-type-sample,
	.v4studio-tokens-row.is-font .v4studio-tokens-font-sample{
		display: -webkit-box;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	/* Fonts, stacked: the token, the family, the fallback, the delete action if any, then the preview. */
	.v4studio-tokens-row.is-font{
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--v4studio-space-3);
	}

	.v4studio-tokens-row.is-font > *,
	.v4studio-tokens-row.is-font.is-shipped [data-v4studio-token-part="generic"] + .v4studio-select-control{
		grid-column: 1 / -1;
	}

	.v4studio-tokens-row.is-font > .v4studio-tokens-font-actions{
		justify-items: start;
	}

	/* Layout Width, stacked: the name above its width, unit and px hint, so neither is squeezed; a long name may wrap. */
	.v4studio-tokens-row.is-layout{
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--v4studio-space-2);
	}

	.v4studio-tokens-row.is-layout > *{
		grid-column: 1 / -1;
	}

	.v4studio-tokens-row.is-layout > .v4studio-tokens-controls-cell{
		justify-self: start;
	}

	.v4studio-tokens-row.is-layout .v4studio-tokens-name{
		overflow-wrap: anywhere;
		white-space: normal;
	}
}

/*
 * The shared tables, narrow (WordPress's mobile width): each row a compact card, its token, then its
 * multiplier or dropdown, its sizes and its value, one under another. A row with no multiplier skips the
 * empty cell.
 */
@media (max-width: 782px){
	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="size"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]) .v4studio-tokens-row{
		grid-template-columns: minmax(0, 1fr);
		gap: var(--v4studio-space-3);
		padding: var(--v4studio-space-4);
	}

	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="size"], [data-v4studio-tokens-panel="radius"], [data-v4studio-tokens-panel="aliases"]) .v4studio-tokens-row > *{
		grid-column: 1 / -1;
	}

	.v4studio-tokens-panel:is([data-v4studio-tokens-panel="spacing"], [data-v4studio-tokens-panel="radius"]) .v4studio-tokens-multiplier:empty{
		display: none;
	}
}

@media (max-width: 1200px){
	.v4studio-tokens{
		grid-template-columns: minmax(0, 1fr);
	}

	.v4studio-tokens-nav{
		position: static;
	}
}

/* End Tokens */

.v4studio-import-rejected{
	max-height: var(--v4studio-size-220);
	margin: var(--v4studio-space-2) 0 0;
	padding-left: var(--v4studio-spacing-18);
	overflow: auto;
	font-size: var(--v4studio-font-size-sm);
	list-style: disc;
}

.v4studio-import-rejected code{
	padding: 0;
	background: transparent;
	color: inherit;
}

/* Classes card */

/*
 * Compact: icon, title with a status pill,
 * one status line, then the one action the state needs and Details. Everything else is in the Details dialog.
 */
:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-card.v4studio-classes-card{
	margin-top: var(--v4studio-space-5);
	container-type: inline-size;
}

.v4studio-classes-card-row{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-3) var(--v4studio-space-4);
}

.v4studio-classes-card-icon{
	display: inline-grid;
	flex: none;
	place-items: center;
	width: var(--v4studio-tool-icon-cell);
	height: var(--v4studio-tool-icon-cell);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-accent);
}

.v4studio-classes-card-icon svg{
	width: var(--v4studio-tool-device-icon);
	height: var(--v4studio-tool-device-icon);
}

.v4studio-classes-card-main{
	flex: 1 1 auto;
	min-width: 0;
}

.v4studio-classes-card h2{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-space-2);
	margin: 0 0 var(--v4studio-space-1);
	color: var(--v4studio-text);
	font-size: var(--v4studio-font-size-xl);
	font-weight: 600;
	line-height: 1.3;
}

.v4studio-classes-card-line{
	margin: 0;
	color: var(--v4studio-text-secondary);
}

.v4studio-classes-card-undo-inline{
	white-space: nowrap;
}

.v4studio-classes-card-actions{
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: var(--v4studio-space-2);
}

.v4studio-classes-card-actions [hidden]{
	display: none;
}

/* The status pill: a dot and a few words on the state's tint. */
.v4studio-classes-pill{
	display: inline-flex;
	align-items: center;
	gap: var(--v4studio-space-1);
	padding: var(--v4studio-spacing-2) var(--v4studio-space-2);
	border: var(--v4studio-border-width) solid var(--v4studio-color-transparent);
	border-radius: var(--v4studio-radius-pill);
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	line-height: 1.4;
}

.v4studio-classes-pill-dot{
	width: var(--v4studio-space-2);
	height: var(--v4studio-space-2);
	border-radius: 50%;
	background: currentColor;
}

.v4studio-classes-pill.is-ok{
	background: var(--v4studio-classes-ok-bg);
	color: var(--v4studio-classes-ok-text);
}

.v4studio-classes-pill.is-warning{
	border-color: var(--v4studio-warning-border);
	background: var(--v4studio-warning-bg);
	color: var(--v4studio-warning-text-strong);
}

.v4studio-classes-pill.is-error{
	background: var(--v4studio-danger-bg);
	color: var(--v4studio-classes-error-text);
}

.v4studio-classes-card-status,
.v4studio-classes-card-removals,
.v4studio-classes-card-drift{
	margin: var(--v4studio-space-3) 0 0;
	margin-inline-start: calc(var(--v4studio-tool-icon-cell) + var(--v4studio-space-4));
}

.v4studio-classes-card-removals,
.v4studio-classes-card-drift{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--v4studio-space-2);
}

.v4studio-classes-card-removals .button:first-of-type,
.v4studio-classes-card-drift .button:first-of-type{
	margin-inline-start: auto;
}

.v4studio-classes-card-status:empty{
	display: none;
}

/* The Update Changed Classes panel opens under the card's status line with a section gap, not flush against it. */
.v4studio-classes-card .v4studio-class-updates{
	margin-top: var(--v4studio-space-4);
}

.v4studio-wrap .v4studio-classes-card .button-link,
.v4studio-wrap .v4studio-classes-dialog-reference{
	color: var(--v4studio-classes-link);
	font-weight: 600;
	text-decoration: none;
}

.v4studio-wrap .v4studio-classes-card .button-link:hover,
.v4studio-wrap .v4studio-classes-dialog-reference:hover{
	text-decoration: underline;
}

/* The Details dialog: a modal sheet on the panel colour over a dimmed page. */
.v4studio-classes-dialog{
	box-sizing: border-box;
	width: min(var(--v4studio-classes-dialog-width), calc(100vw - var(--v4studio-space-6)));
	max-height: calc(100vh - var(--v4studio-space-6));
	padding: 0;
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
	box-shadow: 0 var(--v4studio-shadow-8) var(--v4studio-shadow-24) var(--v4studio-shadow-color);
}

.v4studio-classes-dialog::backdrop{
	background: var(--v4studio-classes-backdrop);
}

.v4studio-classes-dialog-head{
	display: flex;
	align-items: flex-start;
	gap: var(--v4studio-space-3);
	padding: var(--v4studio-space-4) var(--v4studio-space-5);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-border);
}

.v4studio-classes-dialog-intro{
	flex: 1 1 auto;
	min-width: 0;
}

.v4studio-classes-dialog h2{
	margin: 0 0 var(--v4studio-space-1);
	color: var(--v4studio-text);
	font-size: var(--v4studio-font-size-18);
	font-weight: 600;
}

.v4studio-classes-dialog-intro p{
	margin: 0;
	color: var(--v4studio-text-secondary);
}

.v4studio-wrap .v4studio-classes-dialog-x{
	flex: none;
	width: var(--v4studio-control-height);
	height: var(--v4studio-control-height);
	padding: 0;
	border: 0;
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-color-transparent);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-xl);
	line-height: 1;
	cursor: pointer;
}

.v4studio-wrap .v4studio-classes-dialog-x:hover{
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

.v4studio-classes-dialog-body{
	padding: var(--v4studio-space-2) var(--v4studio-space-5) var(--v4studio-space-4);
}

.v4studio-classes-dialog-section{
	padding: var(--v4studio-space-3) 0;
}

.v4studio-classes-dialog-section + .v4studio-classes-dialog-section{
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
}

.v4studio-classes-dialog h3{
	margin: 0 0 var(--v4studio-space-3);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 600;
	letter-spacing: var(--v4studio-label-spacing);
	text-transform: uppercase;
}

.v4studio-classes-dialog-stats{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--v4studio-space-2);
	margin: 0;
}

.v4studio-classes-dialog-stat{
	padding: var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-control);
}

.v4studio-classes-dialog-stat dd{
	display: flex;
	flex-direction: column;
	gap: var(--v4studio-space-1);
	margin: 0;
}

.v4studio-classes-dialog-stat strong{
	color: var(--v4studio-text);
	font-size: var(--v4studio-font-size-18);
	font-weight: 600;
}

.v4studio-classes-dialog-stat dd > span,
.v4studio-classes-dialog-row-text span{
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-field-font-size);
}

.v4studio-classes-dialog-row{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v4studio-space-3);
	padding: var(--v4studio-space-2) 0;
}

.v4studio-classes-dialog-row .button{
	flex: none;
}

.v4studio-classes-dialog-row-text{
	display: flex;
	flex-direction: column;
	gap: var(--v4studio-space-1);
	min-width: 0;
}

.v4studio-classes-dialog-row-text strong{
	color: var(--v4studio-text);
}

.v4studio-classes-dialog-row-text .v4studio-classes-dialog-missing{
	color: var(--v4studio-warning-text-strong);
}

.v4studio-classes-dialog-danger{
	padding: var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-classes-danger-border);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-danger-bg);
}

.v4studio-classes-dialog-foot{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--v4studio-space-3);
	padding: var(--v4studio-space-3) var(--v4studio-space-5);
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
	background: var(--v4studio-classes-foot-bg);
}

/* A visible ring on every control here, links included. */
.v4studio-wrap :is(.v4studio-classes-card, .v4studio-classes-dialog) :is(a, button):focus-visible{
	outline: var(--v4studio-border-width-2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width-2);
	box-shadow: none;
}

@container (max-width: 760px){
	.v4studio-classes-card-row{
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.v4studio-classes-card-main{
		flex-basis: calc(100% - var(--v4studio-tool-icon-cell) - var(--v4studio-space-4));
	}

	/* The buttons drop under the title and line up with the panel's left edge, not the text's. */
	.v4studio-classes-card-actions{
		flex-basis: 100%;
		justify-content: flex-start;
	}
}

/* The dialog sits in the top layer, so it follows the viewport (WordPress's own 782px breakpoint), not the card. */
@media (max-width: 782px){
	.v4studio-classes-dialog-stats{
		grid-template-columns: minmax(0, 1fr);
	}

	.v4studio-classes-dialog-row{
		flex-wrap: wrap;
	}
}

/*
 * An action that replaces data and asks first (Restore Shipped Classes, the removals'
 * Restore) is the danger variant: danger border and text, no fill.
 */
.v4studio-wrap .button.v4studio-button-danger:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill){
	border-color: var(--v4studio-danger-text);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-danger-text);
}

.v4studio-wrap .button.v4studio-button-danger:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):hover,
.v4studio-wrap .button.v4studio-button-danger:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):focus-visible{
	border-color: var(--v4studio-danger-text);
	background: var(--v4studio-danger-bg);
	color: var(--v4studio-danger-text);
}

.v4studio-wrap .button.v4studio-button-danger:not(.button-primary):not(.v4studio-tab):not(.v4studio-pill):disabled{
	border-color: var(--v4studio-border);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text-muted);
}

/* --------------------------------------------------------------------------
   Screens: shared components
   One container card per tab (Design Tokens, Brand Data, Import / Export) and for the Classes card,
   with one header row: the title on the left, the description and reset on the right. The boxes
   inside (the Tokens accordion and table, the Brand Data rows, the Import / Export panels) share
   one border, radius and background. :is(.v4studio-wrap, .v4studio-wrap.is-dark) gives these rules
   the weight of the older per-screen and dark-theme rules they replace; every value is an admin UI
   token, so both themes follow.
   -------------------------------------------------------------------------- */

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-card{
	box-sizing: border-box;
	min-height: 0;
	padding: var(--v4studio-screen-card-space);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--v4studio-space-2) var(--v4studio-space-5);
	inline-size: auto;
	margin: 0 0 var(--v4studio-screen-header-space);
	padding: 0;
	border: 0;
	background: var(--v4studio-color-transparent);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header[hidden]{
	display: none;
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header h2{
	margin: 0;
	color: var(--v4studio-text);
	font-size: var(--v4studio-font-size-xl);
	font-weight: 600;
	line-height: 1.3;
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header-aside{
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: var(--v4studio-space-2);
	min-width: 0;
	margin-left: auto;
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header-aside p{
	max-width: var(--v4studio-screen-header-measure);
	margin: var(--v4studio-screen-header-nudge) 0 0;
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-field-font-size);
	line-height: 1.45;
	text-align: right;
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header-aside > :is(.v4studio-reset-confirmation, .v4studio-brand-samples){
	margin-top: calc(var(--v4studio-screen-header-nudge) * -1);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-box{
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-panel);
	background: var(--v4studio-surface-bg);
	color: var(--v4studio-text);
}

/*
 * File choosers (Choose Image, Choose JSON File, Choose Media): one quiet control. The chooser box is
 * a control-height field like the dropdowns beside it; its button, and Brand Data's Choose Media, has a
 * subtle fill (the open accordion item's) with the text colour, and an accent ring while it has focus.
 */
:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-file-upload{
	min-height: var(--v4studio-control-height);
	padding: var(--v4studio-space-1);
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	border-radius: var(--v4studio-radius-control);
	background: var(--v4studio-panel-bg);
	color: var(--v4studio-text);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-file-upload:focus-within{
	border-color: var(--v4studio-accent);
	box-shadow: 0 0 0 var(--v4studio-border-width) var(--v4studio-accent);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-file-upload-button{
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0 var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-border-strong);
	background: var(--v4studio-nav-active-bg);
	color: var(--v4studio-text);
	font-size: var(--v4studio-field-font-size);
	font-weight: 600;
	white-space: nowrap;
	box-shadow: none;
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-file-upload-button{
	min-height: calc(var(--v4studio-control-height) - var(--v4studio-space-1) * 2 - var(--v4studio-border-width) * 2);
	border-radius: var(--v4studio-radius-small);
}

:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-file-upload:hover .v4studio-file-upload-button{
	border-color: var(--v4studio-text-muted);
	background: var(--v4studio-nav-active-bg);
	color: var(--v4studio-text);
}

/*
 * Color Palette's three generators (harmony, image, random) are set apart by quiet dividers, as the font
 * previews are, with --v4studio-space-4 above and below each line. The body's row gap is taken out
 * here so it does not add to that; the actions keep the usual gap above them.
 */
.v4studio-tokens-section[data-v4studio-tokens-section="palette"] .v4studio-tokens-body{
	row-gap: 0;
}

.v4studio-tokens-section[data-v4studio-tokens-section="palette"] .v4studio-tokens-field + .v4studio-tokens-field{
	margin-top: var(--v4studio-space-4);
	padding-top: var(--v4studio-space-4);
	border-top: var(--v4studio-border-width) solid var(--v4studio-border);
}

.v4studio-tokens-section[data-v4studio-tokens-section="palette"] .v4studio-tokens-section-actions{
	margin-top: var(--v4studio-space-3);
}

/*
 * The tooltip (admin.js, initBodyTooltips): appended to <body>, above the page's layers, so no row or panel
 * clips it. Every tooltip on V4 Studio's screens is this card: roomy
 * padding, a soft border and shadow, rounded, wrapping at a comfortable width; dark text on light, and the
 * matching dark card in dark mode. It fades in (the pause before a hover opens it is admin.js's). The CSS
 * bubbles on [data-tooltip] stand down where it runs.
 */
.v4studio-tooltip{
	position: fixed;
	z-index: var(--v4studio-tooltip-layer);
	box-sizing: border-box;
	width: max-content;
	max-width: min(var(--v4studio-tooltip-measure), calc(100vw - var(--v4studio-space-4)));
	padding: var(--v4studio-spacing-10) var(--v4studio-space-3);
	border: var(--v4studio-border-width) solid var(--v4studio-tooltip-card-border);
	border-radius: var(--v4studio-radius-7);
	background: var(--v4studio-tooltip-card-bg);
	color: var(--v4studio-tooltip-card-text);
	font-size: var(--v4studio-font-size-xs);
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	white-space: normal;
	overflow-wrap: break-word;
	box-shadow: 0 var(--v4studio-shadow-8) var(--v4studio-shadow-24) var(--v4studio-tooltip-card-shadow);
	pointer-events: none;
	animation: v4studio-tooltip-in 140ms ease backwards;
}

.v4studio-tooltip.is-wide{
	max-width: min(var(--v4studio-tooltip-measure-wide), calc(100vw - var(--v4studio-space-4)));
}

@keyframes v4studio-tooltip-in{
	from{
		opacity: 0;
	}

	to{
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce){
	.v4studio-tooltip{
		animation: none;
	}
}

/* A label that explains itself on hover. */
.v4studio-tokens-column-help,
.v4studio-tokens-field[data-tooltip] > .v4studio-tokens-label{
	cursor: help;
}

/* A column header with help is one keyboard stop; its tooltip opens on focus. It is as wide as its words, so
   its focus ring and its tooltip sit on the label, not on the whole column. */
.v4studio-tokens-column-help{
	justify-self: start;
}

.v4studio-tokens-column-help:focus-visible{
	border-radius: var(--v4studio-radius-small);
	outline: var(--v4studio-border-width) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width-2);
}

html.v4studio-body-tooltips .v4studio-wrap [data-tooltip]::after{
	display: none !important;
}

/* Narrow: the header row stacks, the title then the description and reset, on the left. */
@media (max-width: 1200px){
	:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header{
		display: block;
	}

	:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header-aside{
		justify-content: flex-start;
		margin-top: var(--v4studio-space-2);
	}

	:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-screen-header-aside p{
		max-width: none;
		text-align: left;
	}
}

/*
 * Phones: less nesting and nothing wider than its box. The container card's padding drops
 * one step (space-5 to space-4); the Design Tokens accordion sits straight in the card (its box's padding and
 * border go), which gives the fields about a third more width; Color Harmony's dropdown goes under the swatch
 * and hex; the Classes card's buttons stack, full width.
 */
@media (max-width: 600px){
	.v4studio-wrap{
		--v4studio-screen-card-space: var(--v4studio-space-4);
	}

	.v4studio-tokens{
		gap: var(--v4studio-space-4);
	}

	:is(.v4studio-wrap, .v4studio-wrap.is-dark) .v4studio-tokens-nav.v4studio-screen-box{
		padding: 0;
		border: 0;
		background: var(--v4studio-color-transparent);
	}

	.v4studio-tokens-harmony-row{
		grid-template-columns: minmax(0, 1fr);
	}

}

/*
 * The contrast check: its own card under Colors, closed by default (render_contrast_card()). The header is
 * the toggle, with the same plus/minus as the section list, and a summary of the pairs below AA.
 */
.v4studio-tokens-card-toggle{
	display: flex;
	align-items: center;
	gap: var(--v4studio-space-3);
	width: 100%;
	min-height: var(--v4studio-tool-table-header-height);
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
	cursor: pointer;
}

.v4studio-tokens-card-toggle:focus-visible{
	outline: calc(var(--v4studio-border-width) * 2) solid var(--v4studio-accent);
	outline-offset: var(--v4studio-border-width);
}

.v4studio-tokens-card-title:has(.v4studio-tokens-card-toggle){
	flex: 1 1 auto;
	min-width: 0;
}

.v4studio-contrast-card:not(.is-open) .v4studio-tokens-card-header{
	border-bottom-color: transparent;
	border-radius: var(--v4studio-radius-panel);
}

.v4studio-contrast-summary{
	margin-left: auto;
	color: var(--v4studio-success);
	font-size: var(--v4studio-font-size-sm);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.v4studio-contrast-summary.is-below{
	color: var(--v4studio-warning-text-strong);
}

.v4studio-tokens-card-toggle i{
	position: relative;
	display: block;
	flex: 0 0 var(--v4studio-tool-accordion-icon);
	width: var(--v4studio-tool-accordion-icon);
	height: var(--v4studio-tool-accordion-icon);
	color: var(--v4studio-text-secondary);
}

.v4studio-tokens-card-toggle i::before,
.v4studio-tokens-card-toggle i::after{
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: var(--v4studio-border-width);
	border-radius: var(--v4studio-radius-pill);
	background: currentColor;
	content: '';
	transform: translateY(-50%);
	transition: transform 160ms ease;
}

.v4studio-tokens-card-toggle i::after{
	transform: translateY(-50%) rotate(90deg);
}

.v4studio-tokens-card-toggle[aria-expanded="true"] i::after{
	transform: translateY(-50%) rotate(180deg);
}

.v4studio-tokens-card-toggle:is(:hover, :focus-visible) i{
	color: var(--v4studio-accent);
}

.v4studio-contrast-note{
	margin: 0 0 var(--v4studio-space-4);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-sm);
	line-height: 1.5;
}

.v4studio-contrast-table{
	width: 100%;
	border-collapse: collapse;
	font-size: var(--v4studio-field-font-size);
}

/* Row heads at 600, like the other token tables' names, not the browser's bold. */
.v4studio-contrast-table tbody th{
	font-weight: 600;
}

.v4studio-contrast-table th,
.v4studio-contrast-table td{
	padding: var(--v4studio-space-3) var(--v4studio-space-4);
	border-bottom: var(--v4studio-border-width) solid var(--v4studio-border);
	color: var(--v4studio-text);
	text-align: left;
	vertical-align: middle;
}

.v4studio-contrast-table thead th{
	padding-top: var(--v4studio-space-2);
	padding-bottom: var(--v4studio-space-2);
	color: var(--v4studio-text-secondary);
	font-size: var(--v4studio-font-size-2xs);
	font-weight: 700;
	letter-spacing: var(--v4studio-label-spacing);
	text-transform: uppercase;
}

.v4studio-contrast-table tbody tr:last-child :is(th, td){
	border-bottom: 0;
}

.v4studio-contrast-cell{
	white-space: nowrap;
}

.v4studio-contrast-sample{
	display: inline-block;
	margin-inline-end: var(--v4studio-space-3);
	padding: var(--v4studio-space-1) var(--v4studio-space-2);
	border: var(--v4studio-border-width) solid var(--v4studio-border);
	border-radius: var(--v4studio-radius-control);
	font-weight: 600;
	line-height: 1.2;
}

.v4studio-contrast-ratio{
	margin-inline-end: var(--v4studio-space-3);
	font-variant-numeric: tabular-nums;
}

.v4studio-contrast-cell.is-aaa .v4studio-contrast-grade,
.v4studio-contrast-cell.is-aa .v4studio-contrast-grade{
	color: var(--v4studio-success);
	font-weight: 600;
}

.v4studio-contrast-cell.is-large .v4studio-contrast-grade{
	color: var(--v4studio-warning-text-strong);
	font-weight: 600;
}

.v4studio-contrast-cell.is-fail .v4studio-contrast-grade{
	color: var(--v4studio-danger);
	font-weight: 600;
}

.v4studio-contrast-cell .button.v4studio-contrast-use-shipped{
	min-height: var(--v4studio-control-height-compact);
	margin-inline-start: var(--v4studio-space-3);
	padding: 0 var(--v4studio-space-3);
	font-size: var(--v4studio-font-size-sm);
	white-space: nowrap;
}

.v4studio-contrast-status:empty{
	display: none;
}

.v4studio-contrast-status{
	margin: var(--v4studio-space-3) 0 0;
}

.v4studio-contrast-cell.is-unknown{
	color: var(--v4studio-text-muted);
}
