:root{
	--bg:#f4f6f8;--panel:#fff;--ink:#121820;--muted:#687382;--line:#e1e6eb;
	--sidebar:#0f141b;--sidebar2:#1a222d;--accent:#1565d8;--accent-soft:#eaf3ff;
	--ok:#1d7a46;--ok-soft:#e9f7ef;--warn:#a66200;--warn-soft:#fff4dd;--danger:#b42318;
	--shadow:0 12px 35px rgba(20,32,50,.08)
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a{color:inherit}
.portal-shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}
.portal-sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:#fff;padding:20px 14px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:10px;padding:4px 4px 24px;font-size:17px}
.brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;color:#10161e;font-weight:900}
.portal-sidebar nav{display:grid;gap:5px}
.portal-sidebar nav a,.sidebar-logout{display:block;border:0;background:transparent;color:#b9c3d0;text-align:left;border-radius:9px;padding:11px 12px;text-decoration:none;box-sizing:border-box}
.portal-sidebar nav a:hover,.portal-sidebar nav a.active{background:var(--sidebar2);color:#fff}
.nav-icon{display:inline-grid;width:24px}
.portal-sidebar nav em{float:right;min-width:20px;text-align:center;padding:1px 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-style:normal}
.sidebar-spacer{flex:1}
.sidebar-help{border:1px solid #2a3542;border-radius:12px;padding:14px;margin:12px 0;color:#d6deea}
.sidebar-help p{font-size:12px;line-height:1.5;color:#95a4b6;margin:7px 0 0}
.sidebar-logout{display:block;width:100%;box-sizing:border-box;text-decoration:none;cursor:pointer}
.portal-main{min-width:0}
.portal-header{height:82px;padding:18px 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.portal-header small{color:var(--muted)}
.portal-header .site-name{position:relative;color:var(--muted);font-size:12px;line-height:1.25}
.portal-header h1{margin:2px 0 0;font-size:24px}
.header-actions{display:flex;align-items:center;gap:9px}
.header-actions a,.header-actions button,.btn,.small-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 13px;text-decoration:none;color:var(--ink)}
.primary{background:var(--sidebar)!important;border-color:var(--sidebar)!important;color:#fff!important}
.save-state{font-size:12px;color:var(--muted);min-width:66px;text-align:right}
.save-state.saving{color:var(--warn)}
.save-state.saved{color:var(--ok)}
.portal-view{padding:28px}
.notice{margin:0;padding:12px 28px;background:var(--ok-soft);color:var(--ok);border-bottom:1px solid #cdebd9}
.notice.error{background:#fff1f0;color:var(--danger);border-bottom-color:#f2b8b5}
.status-banner{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:15px 18px;border-radius:12px;background:var(--warn-soft);border:1px solid #f1d7a4;margin-bottom:18px}
.status-banner.ok{background:var(--ok-soft);border-color:#c9e9d6}
.status-banner p{margin:3px 0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.card{grid-column:span 4;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 1px 0 rgba(10,20,30,.02)}
.span3{grid-column:span 3}.span4{grid-column:span 4}.span5{grid-column:span 5}.span6{grid-column:span 6}.span7{grid-column:span 7}.span8{grid-column:span 8}.span12{grid-column:span 12}
.card h2,.card h3,.card h4{margin-top:0}.muted{color:var(--muted)}.stat{font-size:32px;font-weight:800;letter-spacing:-.02em}
.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#edf1f5;color:#4e5a68;font-size:12px}
.pill.ok{background:var(--ok-soft);color:var(--ok)}.pill.warn{background:var(--warn-soft);color:var(--warn)}
.kpi-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.kpi{min-width:120px}.kpi b{display:block;font-size:22px}.kpi small{color:var(--muted)}
.website-summary{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(180px,.7fr);gap:18px;align-items:center}
.website-thumb{height:220px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#eef2f6}.website-thumb iframe{width:100%;height:100%;border:0;pointer-events:none}
.quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.release-row,.lead-row,.dns-row,.mailbox-row,.page-row,.block-row,.asset-row,.version-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:11px 0}
.release-row:last-child,.lead-row:last-child,.dns-row:last-child,.mailbox-row:last-child,.page-row:last-child,.block-row:last-child,.asset-row:last-child,.version-row:last-child{border-bottom:0}
.page-row,.block-row{cursor:grab}.page-row.dragging,.block-row.dragging{opacity:.45}
.row-main{flex:1;min-width:0}.row-main b{display:block}.row-main small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-shell{display:grid;grid-template-columns:260px minmax(420px,1fr) 320px;gap:14px;height:calc(100vh - 138px)}
.editor-column,.preview-column{background:#fff;border:1px solid var(--line);border-radius:14px;min-height:0;overflow:auto}
.editor-column{padding:14px}.preview-column{overflow:hidden;position:relative}.preview-column iframe{width:100%;height:100%;border:0;background:#fff}
.editor-toolbar{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-bottom:10px}.editor-toolbar h3{margin:0}
.editor-tabs{display:flex;gap:5px;padding:6px;border-bottom:1px solid var(--line);background:#fafbfc;position:sticky;top:0;z-index:4}
.editor-tabs button{border:0;background:transparent;padding:8px 10px;border-radius:7px}.editor-tabs button.active{background:#fff;box-shadow:0 1px 4px #0001;color:var(--accent)}
.panel-section{padding:13px 0;border-bottom:1px solid var(--line)}.panel-section:last-child{border-bottom:0}
label{display:grid;gap:6px;margin:12px 0;font-weight:650;font-size:13px}
input,textarea,select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;color:var(--ink)}
textarea{min-height:92px;resize:vertical}
.component-card{border:1px solid var(--line);border-radius:10px;padding:10px;margin:8px 0}.component-card h4{margin:0}.component-actions{display:flex;gap:6px;align-items:center}
.component-actions select{min-width:0}
.template-grid{display:grid;grid-template-columns:1fr;gap:8px}.template-card{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;text-align:left}.template-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.template-card b{display:block}.template-card small{color:var(--muted)}
.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.asset-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;position:relative}.asset-card.selected{outline:3px solid var(--accent-soft);border-color:var(--accent)}.asset-preview{aspect-ratio:1;background:#eef2f6;display:grid;place-items:center;overflow:hidden}.asset-preview img{width:100%;height:100%;object-fit:cover}.asset-preview.document{font-size:32px}.asset-meta{padding:8px}.asset-meta b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-drop{border:2px dashed #cad2dc;border-radius:12px;padding:20px;text-align:center;background:#fbfcfd}.upload-drop input{margin-top:10px}
.inline-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:3;background:#10161edd;color:#fff;padding:7px 11px;border-radius:999px;font-size:12px;pointer-events:none}
.enquiry-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px}.enquiry-list,.enquiry-detail{background:#fff;border:1px solid var(--line);border-radius:14px}.enquiry-list{padding:8px}.enquiry-detail{padding:20px}.lead-row{padding:12px;border-radius:9px;cursor:pointer}.lead-row.active{background:var(--accent-soft)}.lead-row.unread b:after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-left:7px}
.empty-state{text-align:center;padding:52px 20px;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);font-size:18px;margin-bottom:7px}
.dns-table{display:grid;gap:2px}.dns-row{display:grid;grid-template-columns:70px minmax(130px,.6fr) minmax(200px,1fr);align-items:start}.dns-row code{overflow-wrap:anywhere}
.nameservers{display:grid;gap:8px}.nameservers code,.code-block{display:block;background:#f5f7f9;padding:9px;border-radius:8px;overflow-wrap:anywhere}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.security-list{display:grid;gap:8px}.security-item{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px}
.billing-plan{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.addon-list{display:grid;gap:9px}.addon{padding:11px;border:1px solid var(--line);border-radius:9px}
.modal-backdrop{position:fixed;inset:0;background:rgba(9,14,20,.56);display:grid;place-items:center;padding:24px;z-index:100}.modal-backdrop[hidden]{display:none}.portal-modal{width:min(860px,100%);max-height:90vh;background:#fff;border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:20px}.icon-btn{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:20px}.modal-body{padding:20px;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--line)}
.link-type-tabs{display:flex;gap:7px;flex-wrap:wrap}.link-type-tabs button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px}.link-type-tabs button.active{background:var(--accent-soft);border-color:#b8d3fb;color:#135bbd}
.crop-stage{position:relative;display:inline-block;max-width:100%;user-select:none}.crop-stage img{display:block;max-width:100%;max-height:58vh}.crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.52);cursor:move;min-width:40px;min-height:40px}.crop-handle{position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--accent);right:-9px;bottom:-9px;cursor:nwse-resize}.crop-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.small-btn{padding:7px 9px;font-size:12px}.danger{color:var(--danger)}.right{margin-left:auto}
@media(max-width:1200px){.editor-shell{grid-template-columns:230px minmax(360px,1fr)}.editor-shell>.editor-column:last-child{grid-column:1/-1;height:auto}.asset-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.portal-shell{grid-template-columns:1fr}.portal-sidebar{position:relative;height:auto;display:block}.portal-sidebar nav{grid-template-columns:repeat(4,1fr)}.sidebar-help,.sidebar-spacer{display:none}.portal-header{position:relative}.grid{grid-template-columns:1fr}.card,.span3,.span4,.span5,.span6,.span7,.span8,.span12{grid-column:1}.editor-shell{grid-template-columns:1fr;height:auto}.preview-column{height:70vh}.enquiry-layout,.account-grid,.website-summary{grid-template-columns:1fr}.asset-grid{grid-template-columns:repeat(2,1fr)}}


/* Website submenu. */
.nav-group{display:grid}
.nav-caret{float:right}
.nav-submenu{display:grid;gap:3px;margin:1px 0 5px 26px;padding-left:8px;border-left:1px solid #2a3542}
.nav-submenu a{font-size:12px!important;padding:7px 9px!important}
.nav-submenu a.active{background:#24303d!important}

/* Reuse the actual builder style-choice visual language. */
.design-choice-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:0 0 .85rem}
.design-choice-heading h2{font-size:1rem;margin:0}
.design-choice-heading p{margin:.2rem 0 0;color:#667085;font-size:.82rem}
.theme-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.theme-choice{position:relative;border:2px solid #e2e7ec;border-radius:14px;background:#fff;padding:.7rem;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s;text-align:left}
.theme-choice:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(22,35,50,.09)}
.theme-choice.selected{border-color:#1165e8;box-shadow:0 0 0 3px rgba(17,101,232,.12)}
.theme-choice input{position:absolute;opacity:0;pointer-events:none}
.choice-check{position:absolute;right:.55rem;top:.55rem;width:23px;height:23px;border-radius:50%;background:#1165e8;color:#fff;display:none;place-items:center;font-size:.75rem;font-weight:800;z-index:3}
.theme-choice.selected>.choice-check{display:grid}
.recommend-chip{position:absolute;left:.55rem;top:.55rem;z-index:3;border-radius:999px;background:#eaf3ff;color:#0d58be;padding:.23rem .45rem;font-size:.63rem;font-weight:800}
.theme-mini{display:grid;grid-template-columns:1.05fr .95fr;grid-template-rows:9px 14px 8px 24px;gap:4px;height:72px;margin-bottom:.6rem;padding:6px;border:1px solid #dce3eb;border-radius:9px;background:#f8fafc;overflow:hidden}
.theme-mini i{display:block;border-radius:3px;background:#dce3eb}
.theme-mini .mini-nav{grid-column:1/-1;background:#182238}
.theme-mini .mini-title{grid-column:1;background:#75839a}
.theme-mini .mini-copy{grid-column:1;background:#c4ccd7}
.theme-mini .mini-image{grid-column:2;grid-row:2/5;background:#aeb9c7}
.theme-mini .mini-card{background:#e4e9ef}
.theme-choice strong,.theme-choice small,.theme-choice p{display:block}
.theme-choice small{color:#667085;margin-top:2px}
.theme-choice p{color:#667085;font-size:.75rem;line-height:1.4;margin:.4rem 0 0}

/* Page settings and gallery. */
.website-section-bar{display:flex;gap:6px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none}
.website-section-bar::-webkit-scrollbar{display:none}
.website-section-bar button{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px}
.website-section-bar button.active{background:var(--sidebar);color:#fff;border-color:var(--sidebar)}
.page-settings-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.page-settings-card:last-child{border-bottom:0}
.social-image-preview{width:140px;aspect-ratio:1.91/1;border-radius:9px;border:1px solid var(--line);background:#eef2f6;display:grid;place-items:center;overflow:hidden}
.social-image-preview img{width:100%;height:100%;object-fit:cover}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.gallery-view .asset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.mobile-edit-note{display:none}

/* Touch/mobile-first editing. */
@media(max-width:767px){
	.portal-shell{display:block;padding-bottom:68px}
	.portal-sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;height:64px;z-index:80;padding:5px 7px;background:var(--sidebar);display:block;overflow:visible}
	.brand,.sidebar-help,.sidebar-spacer,.sidebar-logout{display:none}
	.portal-sidebar nav{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;height:54px}
	.portal-sidebar nav::-webkit-scrollbar{display:none}
	.portal-sidebar nav>a,.portal-sidebar .nav-group>a{min-width:72px;height:54px;display:grid;place-items:center;align-content:center;gap:1px;padding:4px 6px!important;text-align:center;font-size:10px;border-radius:8px}
	.nav-icon{width:auto;font-size:16px}
	.nav-caret{display:none}
	.nav-group{position:static;display:block}
	.nav-submenu{display:none!important}
	.portal-header{height:auto;min-height:64px;padding:10px 12px;gap:8px;position:sticky;top:0}
	.portal-header h1{font-size:18px}
	.portal-header small{font-size:11px}
	.header-actions{gap:5px}
	.header-actions a,.header-actions button{padding:8px 9px;font-size:12px}
	.save-state{display:none}
	.portal-view{padding:12px}
	.website-section-bar{position:sticky;top:64px;z-index:15;background:var(--bg);padding:7px 0;margin:-4px 0 10px}
	.editor-shell{display:flex;flex-direction:column;height:auto;gap:10px}
	.editor-shell>.editor-column:first-child{order:2}
	.preview-column{order:1;height:62vh;min-height:440px}
	.editor-shell>.editor-column:last-child{order:3}
	.editor-column{padding:10px}
	.mobile-edit-note{display:block;margin:0 0 8px;padding:9px 10px;border-radius:9px;background:var(--accent-soft);color:#194f91;font-size:12px}
	.inline-hint{top:8px;font-size:10px;max-width:90%;text-align:center}
	.theme-choice-grid{grid-template-columns:1fr}
	.gallery-view .asset-grid,.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.portal-modal{width:100%;max-height:92vh;border-radius:18px 18px 0 0;position:absolute;bottom:0}
	.modal-backdrop{align-items:end;padding:0}
	.modal-head{padding:14px 15px}
	.modal-body{padding:14px}
	.modal-actions{position:sticky;bottom:0;background:#fff;padding:10px 14px}
	.crop-stage img{max-height:45vh}
	.crop-controls{grid-template-columns:repeat(2,1fr)}
	.page-settings-card{grid-template-columns:1fr}
	.social-image-preview{width:100%}
}

.sidebar-logout-form{margin:0;padding:0}.sidebar-logout-form .sidebar-logout{display:block;width:100%;box-sizing:border-box;text-decoration:none;cursor:pointer}


/* Professional TradeBuild login - works with the existing login.html markup */
body.portal-login-page{
	margin:0;
	min-height:100vh;
	background:#0d151d;
	color:#101820;
}
.portal-login-page main.login{
	width:100%;
	min-height:100vh;
	display:grid;
	grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);
	margin:0;
	padding:0;
	background:#0d151d;
}
.portal-login-page .portal-login-visual{
	position:relative;
	box-sizing:border-box;
	min-height:100vh;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	padding:44px 50px;
	overflow:hidden;
	color:#fff;
	background:
		linear-gradient(180deg,rgba(7,16,24,.08),rgba(7,16,24,.72)),
		radial-gradient(circle at 18% 15%,rgba(255,255,255,.14),transparent 30%),
		linear-gradient(135deg,#142534,#2d5e72 58%,#172632);
}
.portal-login-page .portal-login-visual:after{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	background:
		linear-gradient(120deg,rgba(255,255,255,.08),transparent 38%),
		radial-gradient(circle at 82% 26%,rgba(255,255,255,.08),transparent 22%);
}
.portal-login-page .portal-login-brand,
.portal-login-page .portal-login-visual-copy{
	position:relative;
	z-index:1;
}
.portal-login-page .portal-login-brand{
	display:flex;
	align-items:center;
	gap:13px;
}
.portal-login-page .portal-login-mark{
	width:44px;
	height:44px;
	display:grid;
	place-items:center;
	border-radius:12px;
	background:#fff;
	color:#111821;
	font-weight:900;
	letter-spacing:-.04em;
	box-shadow:0 12px 32px rgba(0,0,0,.2);
}
.portal-login-page .portal-login-brand strong{
	display:block;
	font-size:18px;
}
.portal-login-page .portal-login-brand small,
.portal-login-page .portal-login-brand span{
	display:block;
	margin-top:2px;
	color:rgba(255,255,255,.68);
	font-size:12px;
}
.portal-login-page .portal-login-visual-copy{
	max-width:620px;
	padding-bottom:7vh;
}
.portal-login-page .portal-login-visual-copy>span{
	display:block;
	margin-bottom:12px;
	color:rgba(255,255,255,.67);
	font-size:12px;
	font-weight:800;
	letter-spacing:.11em;
	text-transform:uppercase;
}
.portal-login-page .portal-login-visual-copy h2{
	max-width:590px;
	margin:0 0 18px;
	color:#fff;
	font-size:clamp(40px,4.4vw,68px);
	line-height:.98;
	letter-spacing:-.055em;
}
.portal-login-page .portal-login-visual-copy p{
	max-width:540px;
	margin:0;
	color:rgba(255,255,255,.78);
	font-size:17px;
	line-height:1.65;
}
.portal-login-page .login-card{
	width:auto;
	max-width:none;
	min-height:100vh;
	box-sizing:border-box;
	display:flex;
	flex-direction:column;
	justify-content:center;
	margin:0;
	padding:64px clamp(42px,7vw,96px);
	border:0;
	border-radius:0;
	background:#f7f8fa;
	box-shadow:none;
}
.portal-login-page .login-card>.logo{
	display:none;
}
.portal-login-page .login-card h1{
	max-width:440px;
	margin:0 0 12px;
	color:#101820;
	font-size:36px;
	line-height:1.08;
	letter-spacing:-.04em;
}
.portal-login-page .login-card>p{
	max-width:440px;
	margin:0 0 32px;
	color:#687582;
	font-size:15px;
	line-height:1.6;
}
.portal-login-page #loginForm{
	width:100%;
	max-width:440px;
	display:grid;
	gap:18px;
}
.portal-login-page #loginForm label{
	display:grid;
	gap:8px;
	margin:0;
	color:#27323d;
	font-size:13px;
	font-weight:750;
}
.portal-login-page #loginForm input{
	width:100%;
	min-height:52px;
	box-sizing:border-box;
	margin:0;
	padding:0 15px;
	border:1px solid #d4dae1;
	border-radius:10px;
	background:#fff;
	color:#101820;
	font:inherit;
	font-size:15px;
	outline:none;
	transition:border-color .15s,box-shadow .15s;
}
.portal-login-page #loginForm input:focus{
	border-color:#1d6fc2;
	box-shadow:0 0 0 4px rgba(29,111,194,.1);
}
.portal-login-page #loginForm .primary,
.portal-login-page #loginForm .portal-login-submit{
	width:100%;
	min-height:52px;
	margin:2px 0 0;
	border:0;
	border-radius:10px;
	background:#111821;
	color:#fff;
	font:inherit;
	font-weight:800;
	cursor:pointer;
}
.portal-login-page #loginForm .primary:disabled,
.portal-login-page #loginForm .portal-login-submit:disabled{
	opacity:.58;
	cursor:wait;
}
.portal-login-page #emailAccess{
	width:auto;
	justify-self:center;
	margin:0;
	padding:2px 4px;
	border:0;
	background:transparent;
	color:#336a9d;
	font:inherit;
	font-size:13px;
	font-weight:700;
	cursor:pointer;
}
.portal-login-page #loginError{
	min-height:20px;
	margin:0;
	color:#b42318;
	font-size:13px;
	text-align:center;
}
.portal-login-page .cf-turnstile{
	margin:0;
}
@media(max-width:800px){
	.portal-login-page main.login{
		display:block;
		min-height:100vh;
		padding:18px;
		box-sizing:border-box;
		background:
			linear-gradient(135deg,#142534,#2d5e72 58%,#172632);
	}
	.portal-login-page .portal-login-visual{
		display:none;
	}
	.portal-login-page .login-card{
		min-height:calc(100vh - 36px);
		padding:34px 22px;
		border-radius:20px;
		justify-content:center;
	}
	.portal-login-page .login-card>.logo{
		display:grid;
		width:40px;
		height:40px;
		margin:0 0 42px;
		place-items:center;
		border-radius:11px;
		background:#111821;
		color:#fff;
		font-weight:900;
	}
	.portal-login-page .login-card h1{
		font-size:31px;
	}
}


/* Login refinements */
.portal-login-page .portal-password-wrap{
	position:relative;
}
.portal-login-page .portal-password-wrap input{
	padding-right:48px!important;
}
.portal-login-page .portal-password-toggle{
	position:absolute;
	top:50%;
	right:9px;
	width:36px;
	height:36px;
	display:grid;
	place-items:center;
	transform:translateY(-50%);
	border:0;
	border-radius:8px;
	background:transparent;
	color:#667380;
	cursor:pointer;
}
.portal-login-page .portal-password-toggle:hover{
	background:#eef1f4;
	color:#17212b;
}
.portal-login-page .portal-password-toggle:focus-visible{
	outline:2px solid #1d6fc2;
	outline-offset:2px;
}
.portal-login-page .portal-password-toggle svg{
	width:19px;
	height:19px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.portal-login-page #loginError[hidden]{
	display:none;
}
.portal-login-page #loginError:not([hidden]){
	padding:10px 12px;
	border:1px solid #f1c7c4;
	border-radius:9px;
	background:#fff4f2;
	color:#b42318;
	text-align:left;
}


/* Signup carry-through / customer identity */
.portal-sidebar .brand span.customer-logo{
	overflow:hidden;
	padding:0;
	background:#fff;
}
.portal-sidebar .brand span.customer-logo img{
	width:100%;
	height:100%;
	display:block;
	object-fit:contain;
	object-position:center;
}
#siteName .site-demo-url,
#siteName small.site-demo-url{
	display:block;
	margin-top:3px;
	font-size:11px;
	font-weight:500;
	color:#7b8793;
}
.signup-summary{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:12px;
	margin-top:18px;
}
.signup-summary>div{
	min-width:0;
	padding:13px 14px;
	border:1px solid #e1e6eb;
	border-radius:10px;
	background:#fafbfc;
}
.signup-summary small{
	display:block;
	margin-bottom:5px;
	color:#778491;
	font-size:11px;
	font-weight:700;
	text-transform:uppercase;
	letter-spacing:.04em;
}
.signup-summary b{
	display:block;
	overflow-wrap:anywhere;
	font-size:14px;
	line-height:1.4;
}
.billing-actions{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	justify-content:flex-end;
}
.billing-history{
	display:grid;
	gap:8px;
}
.billing-history-row{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto auto;
	align-items:center;
	gap:16px;
	padding:12px 0;
	border-bottom:1px solid #e4e8ec;
}
.billing-history-row:last-child{
	border-bottom:0;
}
.billing-history-links{
	display:flex;
	gap:6px;
}
@media(max-width:800px){
	.signup-summary{
		grid-template-columns:1fr;
	}
	.billing-history-row{
		grid-template-columns:1fr auto;
	}
	.billing-history-links{
		grid-column:1/-1;
	}
	.billing-actions{
		justify-content:flex-start;
	}
}


/* v10 editor scrolling + page settings */
.preview-column{
	min-height:0;
	overflow:hidden;
}
.preview-column iframe#previewFrame{
	width:100%;
	height:100%;
	min-height:640px;
	border:0;
	pointer-events:auto;
	overscroll-behavior:contain;
	touch-action:pan-y;
}
.page-settings-layout{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:22px 28px;
}
.page-settings-fields{
	min-width:0;
}
.field-hint{
	margin:-8px 0 8px;
	font-size:12px;
	line-height:1.35;
}
.field-hint.good{color:#228b57}
.field-hint.bad{color:#b23b3b}
.social-drop{
	min-height:126px;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:14px;
	padding:16px;
	border:1px dashed #bfc9d5;
	border-radius:12px;
	background:#fbfcfd;
	text-align:left;
}
.social-drop img{
	width:100%;
	max-height:160px;
	object-fit:cover;
	border-radius:8px;
}
.social-drop span,
.social-drop small{
	display:block;
	margin-top:3px;
	color:#65717e;
}
.social-drop-icon{
	font-size:30px;
}
.search-preview-panel{
	grid-column:1/-1;
	padding:16px;
	border:1px solid #dfe5ea;
	border-radius:12px;
	background:#fff;
}
.search-preview-panel h4{
	margin:0 0 12px;
}
.result-tabs{
	display:flex;
	gap:0;
	border-bottom:1px solid #dfe5ea;
}
.result-tabs button{
	padding:9px 14px;
	border:0;
	border-bottom:2px solid transparent;
	background:transparent;
}
.result-tabs button.active{
	border-bottom-color:#1769d2;
	color:#1769d2;
}
.result-preview-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:18px;
	padding-top:14px;
}
.google-result-preview,
.ai-result-preview{
	min-height:120px;
	padding:14px;
	border:1px solid #dfe5ea;
	border-radius:10px;
}
.google-result-preview small{
	display:block;
	color:#43515e;
}
.google-result-preview strong{
	display:block;
	margin:8px 0 4px;
	color:#1a0dab;
	font-size:18px;
	font-weight:500;
}
.google-result-preview p,
.ai-result-preview p{
	margin:0;
	line-height:1.45;
}
.ai-result-preview{
	display:grid;
	grid-template-columns:auto 1fr;
	gap:10px;
}
.ai-result-preview span{
	grid-column:2;
	justify-self:start;
	padding:6px 9px;
	border:1px solid #dfe5ea;
	border-radius:7px;
}
.page-usage-banner{
	display:flex;
	justify-content:space-between;
	gap:12px;
	padding:12px;
	margin:12px 0;
	border:1px solid #dfe5ea;
	border-radius:10px;
	background:#f8fafb;
}
@media(max-width:800px){
	.page-settings-layout,
	.result-preview-grid{
		grid-template-columns:1fr;
	}
	.search-preview-panel{
		grid-column:1;
	}
	.page-settings-fields{
		display:block;
	}
	.preview-column iframe#previewFrame{
		min-height:70vh;
	}
}


/* v11 streamlined website editor */
.website-section-bar{
	display:none!important;
}
.page-tree-column{
	padding-top:0;
}
.page-tree-group{
	border-bottom:1px solid #e5e9ed;
}
.page-tree-group:last-child{
	border-bottom:0;
}
.page-tree-group .page-row{
	border-bottom:0;
}
.page-component-tree{
	margin:0 0 10px 28px;
	padding:3px 0 3px 9px;
	border-left:1px solid #d8e0e7;
}
.page-component-row{
	display:flex;
	align-items:center;
	gap:8px;
	min-width:0;
	margin:2px 0;
	padding:7px 8px;
	border:1px solid transparent;
	border-radius:8px;
	cursor:pointer;
}
.page-component-row:hover{
	background:#f5f7f9;
}
.page-component-row.active{
	border-color:#b7cee6;
	background:#edf5fc;
}
.page-component-row .drag-handle{
	flex:0 0 auto;
	color:#7d8995;
	cursor:grab;
}
.page-component-row .row-main{
	min-width:0;
}
.page-component-row .row-main b{
	display:block;
	text-transform:capitalize;
}
.page-component-row .row-main small{
	display:block;
	overflow:hidden;
	color:#7b8793;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.page-component-add{
	width:calc(100% - 4px);
	margin:5px 0 2px;
	padding:7px 9px;
	border:1px dashed #cbd4dc;
	border-radius:8px;
	background:#fff;
	color:#35414c;
	text-align:left;
	cursor:pointer;
}
.page-component-add:hover{
	border-color:#8ca9c4;
	background:#f8fafc;
}
.component-inspector-heading{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:12px;
	margin-bottom:18px;
}
.component-inspector-heading h3{
	margin:2px 0 5px;
	text-transform:capitalize;
}
.component-inspector-heading code{
	display:block;
	max-width:100%;
	overflow:hidden;
	color:#73808c;
	font-size:11px;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.component-field-list{
	margin-top:18px;
}
.component-inspector-empty{
	padding-top:4px;
}
.preview-column iframe,
.website-thumb iframe,
#previewFrame{
	pointer-events:auto!important;
}
@media(max-width:800px){
	.page-component-tree{
		margin-left:19px;
	}
}


/* v12 page component insertion / context controls */
.page-component-insert{
	display:block;
	width:auto;
	margin:5px 8px 7px 21px;
	padding:5px 7px;
	border:0;
	background:transparent;
	color:#667482;
	font:inherit;
	font-size:12px;
	text-align:left;
	cursor:pointer;
}
.page-component-insert:hover{
	color:#111821;
	text-decoration:underline;
}
.page-component-row.hidden-component{
	opacity:.62;
}
.page-component-row.hidden-component .row-main b{
	color:#6e5b42;
}
.page-component-row .row-main em{
	display:inline-block;
	margin-left:5px;
	padding:1px 5px;
	border-radius:999px;
	background:#f4eadb;
	color:#79572b;
	font-size:9px;
	font-style:normal;
	font-weight:800;
	text-transform:uppercase;
	vertical-align:1px;
}
.component-hidden-note{
	margin:10px 0 16px;
	padding:10px 11px;
	border:1px solid #e5c995;
	border-radius:8px;
	background:#fff8e8;
	color:#684a20;
	font-size:12px;
	line-height:1.45;
}
.component-context-menu{
	position:fixed;
	z-index:2147483646;
	min-width:210px;
	padding:5px;
	border:1px solid #d9dfe5;
	border-radius:10px;
	background:#fff;
	box-shadow:0 16px 40px rgba(20,29,38,.18);
}
.component-context-menu button{
	display:block;
	width:100%;
	padding:9px 10px;
	border:0;
	border-radius:7px;
	background:transparent;
	color:#202a34;
	font:inherit;
	font-size:13px;
	text-align:left;
	cursor:pointer;
}
.component-context-menu button:hover{
	background:#f2f5f7;
}

/* Current search/AI result preview treatments.
   These are representative UI previews, not guarantees of placement. */
.result-preview-stack{
	padding-top:14px;
}
.result-preview{
	display:none;
}
.result-preview.active{
	display:block;
}
.google-serp-preview,
.chatgpt-answer-preview,
.claude-answer-preview,
.gemini-answer-preview{
	max-width:760px;
	min-height:155px;
	box-sizing:border-box;
	padding:17px 18px;
	border:1px solid #dfe4e8;
	border-radius:14px;
	background:#fff;
}
.google-site-line{
	display:flex;
	align-items:center;
	gap:10px;
	margin-bottom:9px;
}
.google-site-line>div{
	flex:1;
	min-width:0;
}
.google-site-line b{
	display:block;
	color:#202124;
	font-size:14px;
	font-weight:400;
}
.google-site-line small{
	display:block;
	overflow:hidden;
	color:#4d5156;
	font-size:12px;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.google-favicon{
	width:28px;
	height:28px;
	display:grid;
	place-items:center;
	border:1px solid #e5e8eb;
	border-radius:50%;
	color:#4285f4;
	font-weight:800;
}
.google-more{
	color:#5f6368;
	font-size:18px;
}
.google-serp-preview>strong{
	display:block;
	margin:4px 0;
	color:#1a0dab;
	font-size:20px;
	font-weight:400;
	line-height:1.3;
}
.google-serp-preview>p{
	margin:0;
	color:#4d5156;
	font-size:14px;
	line-height:1.55;
}
.preview-caption{
	max-width:760px;
	margin-top:7px;
	color:#7a8792;
	font-size:11px;
	line-height:1.45;
}
.chatgpt-answer-preview{
	background:#fff;
	color:#0d0d0d;
}
.ai-answer-copy{
	max-width:660px;
	font-size:15px;
	line-height:1.6;
}
.ai-answer-copy p,
.claude-answer-preview p,
.gemini-answer-preview p{
	margin:0 0 10px;
}
.ai-muted-copy{
	color:#666;
	font-size:13px;
}
.source-chip-row,
.gemini-source-row{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px;
	margin-top:14px;
}
.source-chip{
	display:inline-flex;
	align-items:center;
	gap:7px;
	max-width:100%;
	padding:6px 9px;
	border:1px solid #e4e4e4;
	border-radius:999px;
	background:#fafafa;
	color:#333;
	font-size:12px;
}
.source-chip i{
	width:20px;
	height:20px;
	display:grid;
	place-items:center;
	border-radius:50%;
	background:#ececec;
	font-style:normal;
	font-weight:700;
}
.sources-button{
	padding:7px 10px;
	border:1px solid #dedede;
	border-radius:999px;
	background:#fff;
	color:#333;
	font:inherit;
	font-size:12px;
	font-weight:650;
}
.claude-answer-preview{
	display:grid;
	grid-template-columns:auto 1fr;
	gap:13px;
	background:#fbfaf7;
	color:#292621;
}
.claude-mark{
	width:32px;
	height:32px;
	display:grid;
	place-items:center;
	border-radius:9px;
	background:#ede7dc;
	color:#6b5c4e;
	font-size:10px;
	font-weight:800;
}
.claude-citation-row{
	display:inline-flex;
	align-items:center;
	gap:7px;
	margin-top:5px;
	padding:6px 9px;
	border:1px solid #e1ddd5;
	border-radius:8px;
	background:#fff;
	color:#60594f;
	font-size:12px;
}
.citation-pill{
	width:20px;
	height:20px;
	display:grid;
	place-items:center;
	border-radius:5px;
	background:#eee8df;
	font-size:10px;
	font-weight:800;
}
.gemini-answer-preview{
	display:grid;
	grid-template-columns:auto 1fr;
	gap:13px;
	background:#fff;
	color:#202124;
}
.gemini-spark{
	width:32px;
	height:32px;
	display:grid;
	place-items:center;
	color:#4285f4;
	font-size:23px;
}
.gemini-source-card{
	display:inline-block;
	padding:8px 10px;
	border:1px solid #dfe3ea;
	border-radius:9px;
	background:#f8fafd;
	color:#3c4043;
	font-size:12px;
}
@media(max-width:800px){
	.result-tabs{
		overflow-x:auto;
		white-space:nowrap;
	}
	.google-serp-preview,
	.chatgpt-answer-preview,
	.claude-answer-preview,
	.gemini-answer-preview{
		min-height:0;
		padding:14px;
		border-radius:11px;
	}
}


/* v13 editor polish */
.page-row{
	align-items:flex-start;
}
.page-row .row-main{
	padding-top:3px;
}
.page-title-line{
	display:flex;
	align-items:center;
	min-height:28px;
}
.page-row-actions{
	display:flex;
	align-items:center;
	gap:3px;
	margin-left:auto;
}
.icon-btn{
	width:32px;
	height:32px;
	display:grid;
	flex:0 0 32px;
	place-items:center;
	padding:0;
	border:1px solid transparent;
	border-radius:8px;
	background:transparent;
	color:#566472;
	cursor:pointer;
}
.icon-btn:hover,
.icon-btn.active{
	border-color:#d7dfe6;
	background:#f5f7f9;
	color:#111821;
}
.icon-btn svg,
.field-icon-button svg{
	width:17px;
	height:17px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.page-slug-edit[hidden]{
	display:none!important;
}
.page-slug-edit{
	display:flex;
	align-items:center;
	gap:3px;
	margin-top:1px;
	color:#75828f;
	font-size:11px;
}
.page-slug-input{
	min-width:0;
	width:100%;
	height:25px;
	padding:2px 5px;
	border:1px solid #d7dfe6;
	border-radius:5px;
	background:#fff;
	color:#475461;
	font:inherit;
	font-size:11px;
}
.page-component-tree{
	margin-top:0;
}
.page-component-row .component-name{
	display:block;
	color:#4b5966;
	font-size:12px;
	font-weight:650;
	line-height:1.25;
	text-transform:capitalize;
}
.page-component-row.active .component-name{
	color:#18222c;
}
.page-component-row .row-main b{
	font-size:inherit;
}
.component-inspector-heading h3{
	font-size:17px;
}
.component-inspector-heading code{
	display:none!important;
}

/* Keep right tabs outside the scrolling inspector. */
.editor-shell>.editor-column:last-child{
	display:flex;
	flex-direction:column;
	overflow:hidden;
}
.editor-shell>.editor-column:last-child .editor-tabs{
	position:relative;
	top:auto;
	flex:0 0 auto;
	z-index:5;
}
#editorControls{
	min-height:0;
	flex:1 1 auto;
	overflow:auto;
	padding-top:10px;
	overscroll-behavior:contain;
}

/* Input + embedded action icon */
.field-icon-control{
	position:relative;
}
.field-icon-control input{
	width:100%;
	box-sizing:border-box;
	padding-right:43px!important;
}
.field-icon-button{
	position:absolute;
	top:50%;
	right:5px;
	width:34px;
	height:34px;
	display:grid;
	place-items:center;
	transform:translateY(-50%);
	padding:0;
	border:0;
	border-left:1px solid #dce2e7;
	border-radius:0 7px 7px 0;
	background:#f8fafb;
	color:#4e5d6b;
	cursor:pointer;
}
.field-icon-button:hover{
	background:#eef3f6;
	color:#111821;
}
.field-icon-button:focus-visible,
.icon-btn:focus-visible{
	outline:2px solid #1769d2;
	outline-offset:2px;
}

/* The old standalone insertion row is no longer used. */
.page-component-insert,
.page-component-add{
	display:none!important;
}


/* v14 page settings accessibility / compactness */
.field-title-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin-top:13px;
	margin-bottom:6px;
}
.field-title-row:first-child{
	margin-top:0;
}
.field-title-row label{
	margin:0!important;
}
.field-title-actions{
	display:flex;
	align-items:center;
	gap:3px;
}
.field-help,
.field-open-url{
	width:27px;
	height:27px;
	display:grid;
	place-items:center;
	flex:0 0 27px;
	padding:0;
	border:1px solid transparent;
	border-radius:7px;
	background:transparent;
	color:#667584;
	cursor:pointer;
}
.field-help:hover,
.field-help.active,
.field-open-url:hover{
	border-color:#d9e0e6;
	background:#f2f6f9;
	color:#1261a0;
}
.field-help svg,
.field-open-url svg,
.social-camera svg{
	width:17px;
	height:17px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.field-guidance[hidden]{
	display:none!important;
}
.field-guidance{
	display:grid;
	gap:4px;
	margin:6px 0 8px;
	padding:8px 9px;
	border-radius:8px;
	font-size:11px;
	line-height:1.35;
}
.guidance-item{
	display:flex;
	align-items:flex-start;
	gap:6px;
}
.guidance-symbol{
	width:17px;
	height:17px;
	display:grid;
	flex:0 0 17px;
	place-items:center;
	border-radius:50%;
	font-size:11px;
	font-weight:900;
}
.guidance-good{
	color:#205d8a;
}
.guidance-good .guidance-symbol{
	background:#e8f3fb;
	color:#17699f;
}
.guidance-bad{
	color:#8b541d;
}
.guidance-bad .guidance-symbol{
	background:#fff0df;
	color:#a35e18;
}
.social-title-row{
	margin-top:12px;
}
.social-drop{
	min-height:128px;
	padding:14px;
	text-align:center;
}
.social-drop-content{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:4px;
}
.social-camera{
	width:42px;
	height:42px;
	display:grid;
	place-items:center;
	margin-bottom:3px;
	border:0;
	color:#33495b;
}
.social-camera svg{
	width:32px;
	height:32px;
}
.social-drop-content b{
	font-size:14px;
}
.social-drop-content span{
	margin:0!important;
}
.social-drop-content small{
	margin-top:5px!important;
}

/* Visual layout picker */
.layout-picker>label{
	display:block;
	margin-bottom:8px;
	font-weight:700;
}
.layout-option-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:8px;
}
.layout-option{
	min-width:0;
	padding:7px;
	border:1px solid #dde3e8;
	border-radius:12px;
	background:#fff;
	color:#26323d;
	text-align:left;
	cursor:pointer;
}
.layout-option:hover{
	border-color:#aebdca;
	background:#fafcfd;
}
.layout-option.active{
	border-color:#6ea3cf;
	box-shadow:0 0 0 2px rgba(66,132,185,.12);
	background:#f4f9fd;
}
.layout-option img{
	width:100%;
	height:auto;
	display:block;
	margin-bottom:6px;
	border-radius:9px;
	background:#f7f8fa;
}
.layout-option span{
	display:block;
	overflow:hidden;
	font-size:11px;
	font-weight:700;
	line-height:1.25;
	text-overflow:ellipsis;
}
.component-purpose{
	margin:2px 0 0!important;
	font-size:12px;
	line-height:1.4;
}
@media(max-width:800px){
	.layout-option-grid{
		grid-template-columns:1fr 1fr;
	}
}


/* v16 foundation editor */
.pages-toolbar{
	padding-top:20px;
	align-items:center;
}
.pages-toolbar h3{margin:0}
.page-add-big{
	position:relative;
	width:34px;
	height:34px;
	min-width:34px;
	max-width:34px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 34px;
	padding:0;
	border:1px solid #d7dfe6;
	border-radius:10px;
	background:#fff;
	color:#17212b;
	font-size:0;
	line-height:0;
	cursor:pointer;
	touch-action:manipulation;
}
.page-add-big::before,
.page-add-big::after{
	content:"";
	position:absolute;
	left:50%;
	top:50%;
	width:13px;
	height:2px;
	border-radius:2px;
	background:currentColor;
	transform:translate(-50%,-50%);
}
.page-add-big::after{transform:translate(-50%,-50%) rotate(90deg)}
.page-add-big:hover{background:#f4f7f9}
.editor-help-tip{
	display:flex;
	align-items:flex-start;
	gap:8px;
	margin:2px 12px 12px;
	padding:9px 10px;
	border:1px solid #dbe5ed;
	border-radius:9px;
	background:#f5f9fc;
	color:#4c6070;
	font-size:11px;
	line-height:1.45;
}
.editor-help-tip span{flex:1}
.editor-help-tip button{
	width:24px;height:24px;flex:0 0 24px;border:0;border-radius:6px;
	background:transparent;color:#627380;font-size:17px;line-height:1;cursor:pointer
}
.editor-help-tip button:hover{background:#e9f0f5;color:#17212b}
.page-row .drag-handle{align-self:center}
.page-title-line{gap:7px}
.page-state{
	width:9px;height:9px;display:inline-block;flex:0 0 9px;
	border:2px solid currentColor;border-radius:50%;color:#83909c
}
.page-state.published{background:#3f83b7;color:#3f83b7}
.page-state.draft{background:transparent;color:#d18734}
.page-state.hidden{background:#fff;color:#8e9aa5}
.page-state.redirect{
	border-radius:2px;background:#7d6cab;color:#7d6cab;transform:rotate(45deg)
}
.page-tree-group[data-parent-page]:not([data-parent-page=""])>.page-row{padding-left:26px}
.field-label-row{
	display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px
}
.field-label-row label{margin:0!important}
.field-visibility{
	width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;
	padding:0;border:1px solid transparent;border-radius:7px;background:transparent;
	color:#657482;cursor:pointer
}
.field-visibility:hover,.field-visibility.is-hidden{
	border-color:#d8e0e6;background:#f2f6f8;color:#304c63
}
.field-visibility svg{
	width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;
	stroke-linecap:round;stroke-linejoin:round
}
.field-is-hidden{opacity:.68}
.field-is-hidden input,.field-is-hidden textarea{background:#f7f8f9}


/* Account completion after verified email access */
.portal-login-page #loginError:empty{display:none!important}
.portal-password-setup-page #setupPasswordForm{width:100%;max-width:440px;display:grid;gap:18px}
.portal-password-setup-page #setupPasswordForm label{display:grid;gap:8px;margin:0;color:#27323d;font-size:13px;font-weight:750}
.portal-password-setup-page #setupPasswordForm input{width:100%;min-height:52px;box-sizing:border-box;margin:0;padding:0 15px;border:1px solid #d4dae1;border-radius:10px;background:#fff;color:#101820;font:inherit;font-size:15px;outline:none;transition:border-color .15s,box-shadow .15s}
.portal-password-setup-page #setupPasswordForm input:focus{border-color:#1d6fc2;box-shadow:0 0 0 4px rgba(29,111,194,.1)}
.portal-password-setup-page #setupPasswordForm .primary{width:100%;min-height:52px;margin:2px 0 0;border:0;border-radius:10px;background:#111821;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.portal-password-setup-page .portal-setup-email{max-width:440px;margin:-18px 0 28px;color:#687582;font-size:14px;line-height:1.55}
.portal-password-setup-page .portal-setup-email strong{color:#27323d}
.portal-password-setup-page .portal-password-hint{margin:-8px 0 0;color:#687582;font-size:12px;line-height:1.5}
.portal-password-setup-page .portal-auth-error{max-width:440px;box-sizing:border-box;padding:10px 12px;border:1px solid #f1c7c4;border-radius:9px;background:#fff4f2;color:#b42318;font-size:13px;line-height:1.45}

/* Canonical multi-site portal selection. */
.portal-sites-shell{min-height:100vh;display:grid;place-items:center;padding:32px}
.portal-sites-card{width:min(640px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:var(--shadow)}
.portal-sites-card h1{margin:12px 0 8px;font-size:32px}
.portal-sites-card>p{color:var(--muted);margin:0 0 22px}
.portal-site-choices{display:grid;gap:10px}
.portal-site-choice{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:15px 16px;border:1px solid var(--line);border-radius:11px;text-decoration:none;background:#fff}
.portal-site-choice:hover{border-color:#b8c6d8;background:#f8fafc}
.portal-site-choice strong{display:block}
.portal-site-choice span{color:var(--muted);font-size:13px;text-align:right;overflow-wrap:anywhere}
.portal-sites-signout{display:inline-block;margin-top:22px;color:var(--accent);text-decoration:none;font-weight:700}
.site-switcher{position:relative;display:inline-block;max-width:min(420px,55vw)}
.site-current-row{display:flex;align-items:center;gap:5px;min-width:0}
.site-current-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.site-demo-url{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.2;white-space:nowrap}
.site-switch-toggle{width:22px;height:22px;flex:0 0 22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font:700 15px/22px inherit;cursor:pointer}
.site-switch-toggle:hover,.site-switch-toggle[aria-expanded="true"]{background:#eef3f8;color:var(--text)}
.site-switch-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:80;width:min(330px,80vw);padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 36px rgba(16,24,40,.16)}
.site-switch-menu[hidden]{display:none}
.site-switch-option{display:grid;gap:2px;padding:9px 10px;border-radius:7px;color:var(--text);text-decoration:none}
.site-switch-option:hover{background:#f3f6f9}
.site-switch-option strong{font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-switch-option span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:640px){.portal-sites-shell{padding:18px}.portal-sites-card{padding:22px}.portal-site-choice{align-items:flex-start;flex-direction:column}.portal-site-choice span{text-align:left}}

/* Pages: public URL shown as a secondary external link beneath page title. */
.page-settings-main{min-width:0}
.page-settings-title{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.page-settings-title .muted{font-size:12px}
.page-live-url{display:inline-flex;align-items:center;gap:5px;margin-top:5px;color:var(--muted);font-size:13px;text-decoration:none;max-width:100%;overflow-wrap:anywhere}
.page-live-url:hover{color:var(--ink);text-decoration:underline}
.page-live-url-icon{font-size:12px;line-height:1;text-decoration:none}


/* Unpublished website state. */
.nav-group>a{display:flex!important;align-items:center}
.nav-group>a .nav-caret{margin-left:auto}
.nav-draft-badge{margin-left:auto;margin-right:6px;padding:2px 6px;border-radius:999px;background:#fff1d6;color:#a85b00;font-size:10px;font-style:normal;font-weight:750;line-height:1.4}
.nav-draft-badge[hidden]{display:none!important}
.site-current-draft{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#fff1d6;color:#a85b00;font-size:10px;font-weight:750;white-space:nowrap}
.site-unpublished-dot{display:inline-block;width:7px;height:7px;margin-left:6px;border-radius:50%;background:#e99b20;vertical-align:1px}
.site-switch-draft{display:block!important;color:#a85b00!important;font-size:10px!important;font-weight:700}
#previewBtn.has-unpublished{border-color:#e8b559;background:#fff9ed;color:#8a4b00}

/* PHP-routed page settings. */
.page-settings-header{display:flex;align-items:flex-start;gap:18px;margin:0 0 18px}
.page-settings-header h2{margin:0 0 4px}
.back-link{display:inline-flex;align-items:center;min-height:34px;color:var(--muted);text-decoration:none;font-size:13px;white-space:nowrap}
.back-link:hover{color:var(--text)}
.page-settings-form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.page-settings-section{display:grid;gap:14px}
.page-settings-section h3{margin:0}
.page-settings-section label{display:grid;gap:6px;font-size:13px;font-weight:650}
.page-settings-section input,.page-settings-section textarea,.page-settings-section select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font:inherit;padding:10px 11px}
.page-settings-section textarea{resize:vertical}
.form-grid{display:grid;gap:14px}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid .span2{grid-column:1/-1}
.slug-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.slug-field>span{padding:0 0 0 11px;color:var(--muted)}
.slug-field input{border:0!important;border-radius:0!important;padding-left:3px!important;outline:0}
.checkbox-label{display:flex!important;align-items:center;gap:8px!important;align-self:end;min-height:42px;font-weight:500!important}
.checkbox-label input{width:auto!important;margin:0}
.settings-live-url{margin-top:0}
.page-settings-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-bottom:28px}
.portal-form-error,.portal-form-success{grid-column:1/-1;padding:12px 14px;border-radius:9px;font-size:13px}
.portal-form-error{border:1px solid #f2b8b5;background:#fff1f0;color:#a61b1b}
.portal-form-success{border:1px solid #b7dfc4;background:#effaf2;color:#176b35}
@media(max-width:720px){.form-grid.two{grid-template-columns:1fr}.form-grid .span2{grid-column:auto}.page-settings-header{display:block}.back-link{margin-bottom:8px}}

/* Billing: server-rendered subscription summary and Stripe management. */
.billing-page{display:grid;gap:16px}
.billing-page .card{margin:0}
.billing-kicker{display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.billing-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px}
.billing-hero h2{margin:0 0 4px;font-size:25px}
.billing-hero p{margin:0;color:var(--muted)}
.billing-status-wrap{display:grid;justify-items:end;gap:9px;text-align:right}
.billing-status-wrap>strong{font-size:19px}
.billing-status{font-size:11px}
.billing-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.billing-summary-card{display:grid;gap:5px;min-width:0}
.billing-summary-card>span{color:var(--muted);font-size:12px;font-weight:700}
.billing-summary-card>strong{font-size:16px;overflow-wrap:anywhere}
.billing-summary-card>small{color:var(--muted);font-size:11px;line-height:1.4}
.billing-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}
.billing-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}
.billing-section-head h3,.billing-payment-card h3,.billing-manage-card h3,.billing-invoices h3{margin:0}
.billing-reference{color:var(--muted);font-size:11px;white-space:nowrap}
.billing-package-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}
.billing-package-row:first-of-type{border-top:0}
.billing-package-row>div{display:grid;gap:3px;min-width:0}
.billing-package-row small{color:var(--muted);line-height:1.35}
.billing-package-row>b{white-space:nowrap;font-size:13px}
.billing-package-addon strong:before{content:'+';display:inline-block;margin-right:7px;color:var(--muted)}
.billing-package-domain strong:before{content:'⌁';display:inline-block;margin-right:7px;color:var(--muted)}
.billing-payment-card{display:grid;align-content:start;gap:16px}
.billing-payment-method{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.billing-payment-method small{color:var(--muted)}
.billing-payment-card p{margin:0;line-height:1.5}
.billing-manage-card{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px 24px}
.billing-manage-card>div:first-child{max-width:780px}
.billing-manage-card p{margin:7px 0 0;line-height:1.55}
.billing-manage-actions{display:grid;gap:8px;min-width:220px}
.billing-manage-actions .btn{justify-content:center;text-align:center}
.billing-cancel{border-color:#e1b6b2!important;color:#9b2c26!important;background:#fff!important}
.billing-cancel:hover{background:#fff6f5!important}
.billing-invoice-head,.billing-invoice-row{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(80px,.7fr) minmax(90px,.7fr) minmax(170px,1.3fr);gap:14px;align-items:center}
.billing-invoice-head{padding:10px 0;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line)}
.billing-invoice-row{padding:14px 0;border-bottom:1px solid var(--line)}
.billing-invoice-row:last-child{border-bottom:0}
.billing-invoice-row>div:first-child{display:grid;gap:3px}
.billing-invoice-row small{color:var(--muted)}
.billing-invoice-status{font-size:12px;text-transform:capitalize}
.billing-invoice-links{font-size:12px;line-height:1.6}
.billing-invoice-links a{color:var(--accent);text-decoration:none;white-space:nowrap}
.billing-invoice-links a:hover{text-decoration:underline}
@media(max-width:900px){.billing-summary-grid{grid-template-columns:1fr}.billing-main-grid{grid-template-columns:1fr}.billing-manage-card{align-items:flex-start;flex-direction:column}.billing-manage-actions{width:100%;min-width:0}.billing-invoice-head{display:none}.billing-invoice-row{grid-template-columns:1fr auto}.billing-invoice-row>b,.billing-invoice-links{grid-column:2}.billing-invoice-links{text-align:right}}
@media(max-width:640px){.billing-hero{align-items:flex-start;flex-direction:column}.billing-status-wrap{justify-items:start;text-align:left}.billing-package-row{align-items:flex-start}.billing-invoice-row{grid-template-columns:1fr}.billing-invoice-row>b,.billing-invoice-links{grid-column:auto;text-align:left}}

/* Entitlement lifecycle / portable backups */
.billing-lifecycle{display:grid;gap:18px}
.billing-lifecycle-row{display:grid;grid-template-columns:minmax(180px,.8fr) repeat(3,minmax(180px,1fr));gap:0;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}
.billing-lifecycle-row>div{padding:16px 18px;border-left:1px solid #edf0f3}
.billing-lifecycle-row>div:first-child{border-left:0;background:#f8fafc}
.billing-lifecycle-row strong{display:block;font-size:15px;color:#18202b}
.billing-lifecycle-row span,.billing-lifecycle-row b{display:block;font-size:12px;color:#6b7280;margin-top:4px}
.billing-lifecycle-row p{margin:6px 0 0;color:#4b5563;font-size:13px;line-height:1.45}
.billing-backup-callout,.versions-download{display:flex;align-items:center;justify-content:space-between;gap:28px}
.billing-backup-callout>div,.versions-download>div{max-width:760px}
.versions-page{display:grid;gap:18px}
.versions-page .version-row{padding:13px 0;border-bottom:1px solid #edf0f3}
.versions-page .version-row:last-child{border-bottom:0}
.btn.disabled{opacity:.55;pointer-events:none}
@media(max-width:980px){.billing-lifecycle-row{grid-template-columns:1fr}.billing-lifecycle-row>div{border-left:0;border-top:1px solid #edf0f3}.billing-lifecycle-row>div:first-child{border-top:0}.billing-backup-callout,.versions-download{align-items:flex-start;flex-direction:column}}
.service-banner{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:12px 16px;border-radius:12px;font-size:13px}
.service-banner strong{white-space:nowrap}.service-banner span{flex:1}.service-banner a{font-weight:700;text-decoration:none;white-space:nowrap}
.service-banner-warning{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.service-banner-warning a{color:#9a3412}
.service-banner-danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.service-banner-danger a{color:#991b1b}
@media(max-width:760px){.service-banner{align-items:flex-start;flex-wrap:wrap}.service-banner span{flex-basis:100%}}


/* Compact server-rendered media library. Keep previews deliberately small on desktop and mobile. */
.gallery-view .media-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
	gap:12px;
	align-items:start;
}
.gallery-view .asset-card{
	min-width:0;
	max-width:300px;
	border:1px solid var(--line);
	border-radius:10px;
	background:#fff;
	overflow:hidden;
	display:flex;
	flex-direction:column;
}
.gallery-view .asset-preview{
	width:100%;
	max-width:150px;
	height:100px;
	aspect-ratio:auto;
	margin:10px auto 0;
	border-radius:8px;
	background:#eef2f6;
	display:grid;
	place-items:center;
	overflow:hidden;
}
.gallery-view .asset-preview img{
	display:block;
	width:100%;
	height:100%;
	max-width:150px;
	object-fit:cover;
}
.gallery-view .asset-preview.document{font-size:24px;color:var(--muted)}
.gallery-view .asset-card-meta{
	min-width:0;
	padding:9px 10px 5px;
}
.gallery-view .asset-card-meta strong{
	display:block;
	font-size:12px;
	line-height:1.35;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.gallery-view .asset-card-meta small{
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	margin-top:4px;
	font-size:11px;
	line-height:1.35;
	color:var(--muted);
}
.gallery-view .asset-card-actions{
	display:flex;
	gap:6px;
	padding:5px 10px 10px;
	margin-top:auto;
}
.gallery-view .asset-card-actions .small-btn{
	padding:5px 8px;
	font-size:11px;
}
@media(max-width:767px){
	.gallery-view .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
	.gallery-view .asset-card{max-width:none}
	.gallery-view .asset-preview{width:96px;max-width:96px;height:72px;margin-top:8px}
	.gallery-view .asset-preview img{max-width:96px}
	.gallery-view .asset-card-meta{padding:7px 8px 4px}
	.gallery-view .asset-card-actions{padding:4px 8px 8px;gap:4px}
}
@media(max-width:380px){
	.gallery-view .media-grid{grid-template-columns:1fr 1fr}
	.gallery-view .asset-preview{width:82px;max-width:82px;height:62px}
	.gallery-view .asset-preview img{max-width:82px}
}

/* Page settings: server-rendered search / AI previews */
.page-settings-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.page-settings-section-head h3{margin:0 0 4px}
.page-settings-section-head p{margin:0;max-width:820px}
.page-settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.page-settings-fields label{margin:0}
.field-hint{display:block;margin-top:6px;color:#6f7b86;font-size:12px;line-height:1.45;font-weight:400}
.field-hint b{color:#3f4b55}
.page-search-preview{margin-top:2px}
.page-search-preview .result-tabs button{cursor:pointer;font-weight:650}
.page-search-preview .result-tabs button:focus-visible{outline:2px solid #1769d2;outline-offset:2px}
.page-search-preview .sources-button[disabled]{opacity:.72;cursor:default}
.page-search-preview .google-serp-preview,
.page-search-preview .chatgpt-answer-preview,
.page-search-preview .claude-answer-preview,
.page-search-preview .gemini-answer-preview{max-width:none}
.page-search-preview .preview-caption{max-width:none}
@media(max-width:800px){
	.page-settings-fields{grid-template-columns:1fr}
	.page-settings-section-head{display:block}
}

/* Social image picker / fixed social crop. */
.social-image-field{display:grid;gap:10px;margin-top:18px}.social-image-label{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.social-image-label small{color:var(--muted);font-weight:400}.social-image-picker{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}.social-image-preview{position:relative;width:min(300px,100%);aspect-ratio:1200/630;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#f6f8fa;display:flex;align-items:center;justify-content:center}.social-image-preview>img{display:block;width:100%;height:100%;object-fit:cover}.social-image-empty{display:grid;place-items:center;text-align:center;gap:4px;padding:14px;color:var(--muted)}.social-image-empty>span{font-size:28px;line-height:1}.social-image-empty strong{color:var(--text);font-size:13px}.social-image-empty small{font-size:11px;max-width:220px}.social-image-empty.is-error>span{color:#b42318}.social-image-detach{position:absolute;top:7px;right:7px;width:28px;height:28px;border:0;border-radius:999px;background:rgba(10,18,28,.82);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center;z-index:2}.social-image-detach[hidden]{display:none}.social-image-actions{display:flex;gap:8px;flex-wrap:wrap}.social-upload-button{cursor:pointer}.social-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.social-gallery-toolbar p{margin:4px 0 0}.social-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:52vh;overflow:auto;padding:2px}.social-media-card{appearance:none;border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px;text-align:left;cursor:pointer;display:grid;gap:7px;min-width:0}.social-media-card:hover{border-color:#9ca9b8}.social-media-card.selected{outline:2px solid var(--accent);outline-offset:1px}.social-media-card.is-unavailable{opacity:.62;cursor:not-allowed}.social-media-thumb{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;background:#f3f5f7;border-radius:7px;overflow:hidden}.social-media-thumb img{display:block;width:100%;height:100%;object-fit:cover}.social-media-thumb i{font-style:normal;font-weight:800;color:#b42318;font-size:24px}.social-media-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.social-media-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.social-crop-intro{margin-bottom:12px}.social-crop-intro p{margin:4px 0 0}.social-crop-stage{display:block;max-width:900px;margin:0 auto}.social-crop-stage img{width:auto;max-width:100%;max-height:58vh;margin:0 auto}.social-crop-box{aspect-ratio:1200/630}
@media(max-width:700px){.social-image-preview{width:min(100%,300px)}.social-image-picker{display:grid;grid-template-columns:1fr}.social-gallery-toolbar{align-items:flex-start;flex-direction:column}.social-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.social-image-actions{width:100%}.social-image-actions .btn{flex:1}.social-crop-stage img{max-height:45vh}}

/* Reusable media cropper + gallery actions */
.btn.danger,.small-btn.danger{border-color:#d92d20;color:#b42318;background:#fff}.btn.danger:hover,.small-btn.danger:hover{background:#fff1f0;border-color:#b42318}.gallery-view .asset-card-actions{flex-wrap:wrap}.gallery-view .asset-card-actions .danger{margin-left:auto}.crop-intro{margin-bottom:12px}.crop-intro p{margin:4px 0 0}.reusable-crop-stage{display:block;max-width:900px;margin:0 auto}.reusable-crop-stage img{width:auto;max-width:100%;max-height:58vh;margin:0 auto}.crop-ratio-note{margin:8px 0 0;color:var(--muted);font-size:12px}.crop-controls input[readonly]{background:#f6f8fa}.media-details-preview{width:min(300px,100%);max-height:220px;margin:0 0 16px;border:1px solid var(--line);border-radius:10px;background:#f4f6f8;overflow:hidden;display:grid;place-items:center}.media-details-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain}.media-details-preview.document{height:150px;font-weight:800;color:var(--muted)}.media-details-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0 0 18px}.media-details-facts>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.media-details-facts dt{font-size:12px;color:var(--muted)}.media-details-facts dd{margin:0;font-size:12px;min-width:0;overflow-wrap:anywhere}.media-details-facts .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.field-help{display:block;color:var(--muted);font-weight:400;margin:4px 0 6px}.delete-media-warning{border:1px solid #fecdca;background:#fff6f5;border-radius:10px;padding:14px}.delete-media-warning b{color:#912018}.delete-media-warning p{margin:6px 0 0;color:#5f2a25}.modal-actions .btn.danger{margin-right:auto}
@media(max-width:700px){.reusable-crop-stage img{max-height:45vh}.crop-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.media-details-facts{grid-template-columns:1fr}.gallery-view .asset-card-actions .danger{margin-left:0}.modal-actions .btn.danger{margin-right:0}}

/* Media usage + replace-everywhere */
.media-usage-panel{margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.media-usage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}.media-usage-head h3,.replacement-toolbar h3{margin:0;font-size:15px}.media-usage-head p,.replacement-toolbar p{margin:3px 0 0;color:var(--muted);font-size:12px}.usage-count{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:#fff;font-size:11px;font-weight:700}.media-usage-list{display:grid;gap:6px}.media-usage-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1.2fr) auto;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}.media-usage-row:first-child{border-top:0}.media-usage-row>div{min-width:0}.media-usage-row b,.media-usage-row strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-usage-row small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-usage-empty,.media-usage-loading{padding:10px 0;color:var(--muted);font-size:12px}.media-usage-empty b{color:var(--text)}.media-usage-empty p{margin:3px 0 0}.media-usage-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.media-usage-actions small{color:var(--muted);font-size:11px}.replace-everywhere-intro{display:grid;grid-template-columns:140px 1fr;gap:16px;align-items:start;margin-bottom:14px}.replace-everywhere-intro .media-details-preview{width:140px;height:100px;margin:0}.replace-everywhere-intro p{margin:5px 0 0;color:var(--muted);font-size:12px}.replace-usage-summary{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:0 10px;margin-bottom:16px}.replacement-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.media-replacement-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;max-height:42vh;overflow:auto;padding:2px}.media-replacement-card{appearance:none;border:1px solid var(--line);border-radius:10px;background:#fff;padding:7px;text-align:left;cursor:pointer;min-width:0}.media-replacement-card:hover{border-color:#9aa8b8}.media-replacement-card.selected{outline:2px solid var(--accent);outline-offset:1px}.media-replacement-card span{display:block;width:100%;aspect-ratio:4/3;border-radius:7px;overflow:hidden;background:#eef2f6;margin-bottom:6px}.media-replacement-card img{display:block;width:100%;height:100%;object-fit:cover}.media-replacement-card b,.media-replacement-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-replacement-card b{font-size:11px}.media-replacement-card small{font-size:10px;color:var(--muted);margin-top:2px}
@media(max-width:700px){.media-usage-row{grid-template-columns:1fr auto}.media-usage-row>div:nth-child(2){grid-column:1/2}.replace-everywhere-intro{grid-template-columns:96px 1fr}.replace-everywhere-intro .media-details-preview{width:96px;height:76px}.replacement-toolbar{align-items:flex-start;flex-direction:column}.media-replacement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Compact media details modal. */
.media-details-summary{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}.media-details-summary .media-details-preview{width:180px;height:132px;max-height:none;margin:0;border-radius:12px}.media-details-summary .media-details-preview img{width:100%;height:100%;max-height:none;object-fit:contain}.media-details-summary .media-details-preview.document{height:132px}.media-details-summary .media-details-facts{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.media-details-summary .media-details-facts>div{grid-template-columns:86px minmax(0,1fr);padding:7px 0}.media-details-summary .media-details-facts dt,.media-details-summary .media-details-facts dd{font-size:12px}.media-usage-panel{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.media-usage-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:10px}.media-usage-head h3{margin:0 0 3px;font-size:15px}.media-usage-head p{margin:0;color:var(--muted);font-size:12px}.usage-count{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}.media-usage-list{display:grid;gap:6px}.media-usage-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.media-usage-row b,.media-usage-row strong{display:block;font-size:12px}.media-usage-row small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.media-usage-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.media-usage-actions small{color:var(--muted)}.media-usage-empty,.media-usage-loading{padding:10px;border-radius:9px;background:#fff;font-size:12px}.media-usage-empty p{margin:3px 0 0;color:var(--muted)}
@media(max-width:700px){.media-details-summary{grid-template-columns:1fr}.media-details-summary .media-details-preview{width:min(180px,100%);height:120px}.media-details-summary .media-details-facts{grid-template-columns:1fr}.media-usage-head{align-items:center}.media-usage-row{grid-template-columns:1fr}.media-usage-row .small-btn{justify-self:start}.media-usage-actions{align-items:flex-start;flex-direction:column}}


/* Media details modal: keep form help text distinct from the editor help-icon control. */
.media-details-fields{display:grid;gap:14px;margin-top:2px}
.media-details-fields>label{display:grid;gap:6px;margin:0;font-size:13px;font-weight:650;min-width:0}
.media-field-help{display:block;width:auto;height:auto;margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.45}
.media-details-fields input,.media-details-fields textarea{min-width:0}
.media-details-fields textarea{min-height:92px}
.media-public-url{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:#f7f9fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modalBody:has(.media-details-summary){padding:18px 20px 20px}
#modalBody:has(.media-details-summary) .media-usage-panel{margin-top:0}
@media(max-width:700px){
  #modalBody:has(.media-details-summary){padding:14px}
  .media-details-fields{gap:12px}
}

/* Gallery media dialogs: view-specific templates use these shared component styles. */
.media-details-fields{display:grid;grid-template-columns:1fr;gap:14px;margin-top:4px}
.media-details-fields>label{display:block;width:100%;min-width:0;margin:0;font-weight:700}
.media-details-fields>label>input,.media-details-fields>label>textarea{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:7px}
.media-details-fields>label>textarea{min-height:86px;resize:vertical}
.media-field-help{display:block!important;width:auto!important;height:auto!important;place-items:initial!important;padding:0!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important;margin:4px 0 0!important;cursor:default!important}
.media-public-url{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-details-summary{align-items:stretch}
.media-details-summary .media-details-facts{align-content:start}
.media-details-summary .media-details-facts>div{min-width:0}
.media-details-summary .media-details-facts dd{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.media-details-fields{gap:12px}.media-details-summary{gap:12px}.media-details-summary .media-details-preview{margin-inline:auto}}

/* Gallery asset families + compact icon actions. */
.gallery-view .asset-family{
	grid-column:span 2;
	min-width:0;
	padding:8px;
	border:1px solid #d9e2ec;
	border-radius:12px;
	background:#f8fafc;
}
.gallery-view .asset-family-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	min-height:22px;
	padding:0 2px 7px;
	font-size:11px;
	color:var(--muted);
}
.gallery-view .asset-family-head b{color:var(--ink)}
.gallery-view .asset-family-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
	gap:8px;
}
.gallery-view .asset-family .asset-card{max-width:none}
.gallery-view .asset-card{position:relative}
.gallery-view .asset-card.is-derived{border-style:dashed}
.gallery-view .asset-derived-badge{
	position:absolute;
	top:15px;
	left:15px;
	display:inline-flex;
	align-items:center;
	height:20px;
	padding:0 7px;
	border-radius:999px;
	background:rgba(10,18,28,.82);
	color:#fff;
	font-size:10px;
	font-weight:700;
	line-height:1;
	pointer-events:none;
}
.gallery-view .asset-card-actions{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:6px;
	padding:6px 10px 10px;
	margin-top:auto;
	flex-wrap:nowrap;
}
.gallery-view .asset-card-actions .danger{margin-left:0}
.gallery-view .asset-action-btn{
	appearance:none;
	width:31px;
	height:31px;
	padding:0;
	border:1px solid var(--line);
	border-radius:8px;
	background:#fff;
	color:var(--ink);
	display:grid;
	place-items:center;
	cursor:pointer;
}
.gallery-view .asset-action-btn:hover{background:#f5f7f9;border-color:#aeb9c5}
.gallery-view .asset-action-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gallery-view .asset-action-btn svg{
	width:16px;
	height:16px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.gallery-view .asset-action-btn.danger{color:#b42318;border-color:#f3b4ad}
.gallery-view .asset-action-btn.danger:hover{background:#fff1f0;border-color:#d92d20}
@media(max-width:767px){
	.gallery-view .asset-family{grid-column:1/-1;padding:7px}
	.gallery-view .asset-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
	.gallery-view .asset-card-actions{gap:5px;padding:5px 8px 8px}
	.gallery-view .asset-action-btn{width:30px;height:30px}
}

/* Gallery logical folders */
.gallery-library{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start}
.media-folders{position:sticky;top:18px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:9px;min-width:0}
.media-folders-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 4px 8px;font-size:12px}
.media-folder-add{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:20px;line-height:1;display:grid;place-items:center;cursor:pointer}
.media-folder-add:hover{background:#f1f4f7;border-color:#aeb9c5}
.media-folder-list{display:grid;gap:3px}
.media-folder-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:3px;align-items:center}
.media-folder{appearance:none;width:100%;min-width:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);padding:7px 7px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:7px;align-items:center;text-align:left;cursor:pointer;font-size:12px}
.media-folder>span:nth-of-type(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-folder>b{min-width:20px;color:var(--muted);font-size:10px;text-align:right;font-weight:700}
.media-folder:hover{background:#eef3f7}
.media-folder.active{background:#e7edf3;border-color:#d6dee7;font-weight:700}
.media-folder.is-drop-target{background:#e8f2ff;border-color:#7ba7da;box-shadow:inset 0 0 0 1px #7ba7da}
.media-folder-icon{width:17px;height:17px;display:grid;place-items:center;color:#65758a}
.media-folder-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.media-folder-menu{width:28px;height:28px;border:0;background:transparent;color:var(--muted);border-radius:7px;cursor:pointer;opacity:.35;line-height:1}
.media-folder-row:hover .media-folder-menu,.media-folder-menu:focus-visible{opacity:1;background:#eef3f7}
.media-folder-help{margin:10px 5px 2px;color:var(--muted);font-size:10px;line-height:1.35}
.gallery-library-main{min-width:0}
.gallery-folder-title{display:flex;align-items:baseline;gap:9px;min-height:28px;margin:0 0 8px}
.gallery-folder-title>b{font-size:13px}
.gallery-folder-title .muted{font-size:11px}
.gallery-view .asset-card[draggable="true"]{cursor:grab}
.gallery-view .asset-card.is-dragging{opacity:.45;cursor:grabbing}
.media-folder-form{display:grid;gap:9px}.media-folder-form p{margin:0}.media-folder-form input{width:100%}
@media(max-width:900px){.gallery-library{grid-template-columns:150px minmax(0,1fr);gap:12px}.media-folder-help{display:none}}
@media(max-width:700px){.gallery-library{display:block}.media-folders{position:static;margin-bottom:12px;padding:7px}.media-folders-head{padding-bottom:5px}.media-folder-list{display:flex;gap:5px;overflow-x:auto;padding-bottom:2px}.media-folder-row{display:flex;flex:0 0 auto}.media-folder{width:auto;min-width:92px;grid-template-columns:16px minmax(0,1fr) auto;padding:6px 8px}.media-folder-menu{opacity:1}.gallery-folder-title{margin-top:4px}}

/* Domain management */
.domain-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:16px}
.domain-summary{grid-column:1}
.domain-nameservers{grid-column:2}
.domain-dns{grid-column:1/-1}
.domain-summary-head,.domain-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.domain-summary-head h2,.domain-card-head h3{margin:2px 0 0}
.domain-kicker,.domain-section-label{display:block;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.domain-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.domain-facts>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.domain-facts small{display:block;color:var(--muted);margin-bottom:4px}
.domain-status-message{margin:14px 0 0}
.domain-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.domain-ns-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}
.domain-ns-list{display:grid;gap:7px;margin-top:8px}
.domain-ns-list code{display:block;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);overflow-wrap:anywhere}
.domain-instruction{margin-top:18px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.domain-instruction p{margin:6px 0 0;color:var(--muted)}
.domain-record-count{white-space:nowrap;font-size:12px;font-weight:700;color:var(--muted);padding-top:4px}
.domain-dns-table{display:grid;margin-top:16px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.domain-dns-row{display:grid;grid-template-columns:72px minmax(160px,.75fr) minmax(240px,1.5fr);gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
.domain-dns-row:last-child{border-bottom:0}
.domain-dns-row>b{font-size:12px}
.domain-dns-row code,.domain-dns-row span{overflow-wrap:anywhere}
.domain-dns-row code{font-size:12px}
.domain-dns-row span{font-size:13px}
.domain-review-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.domain-confirm{display:flex;align-items:flex-start;gap:9px;max-width:760px}
.domain-confirm input{margin-top:3px}
.pill.error{background:#fff0f0;color:#a31b1b;border-color:#efb7b7}
@media(max-width:900px){
	.domain-layout{grid-template-columns:1fr}
	.domain-summary,.domain-nameservers,.domain-dns{grid-column:1}
	.domain-ns-columns{grid-template-columns:1fr}
	.domain-dns-row{grid-template-columns:58px 1fr}
	.domain-dns-row span{grid-column:1/-1}
	.domain-review-actions{align-items:stretch;flex-direction:column}
}
@media(max-width:620px){
	.domain-facts{grid-template-columns:1fr}
	.domain-summary-head,.domain-card-head{flex-direction:column}
}
/* TradeBuild portal editor tree refinements.
 * Append to /assets/css/portal.css (or load after it).
 */

/* Left page/component tree: reduce visual weight and keep a tighter rhythm. */
.page-tree-column{
	padding-left:14px;
	padding-right:14px;
}

.page-tree-column .pages-toolbar{
	min-height:48px;
	padding:8px 0 7px;
	align-items:center;
}

.page-tree-column .pages-toolbar h3{
	margin:0;
	font-size:20px;
	line-height:1.2;
	font-weight:700;
}

/* More proportionate add-page control: smaller box, clearer centred glyph. */
.page-tree-column .page-add-big{
	width:34px;
	height:34px;
	min-width:34px;
	padding:0;
	border-radius:10px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:20px;
	line-height:1;
	font-weight:500;
}

/* Help copy aligns exactly with the usable tree width. */
.page-tree-column .editor-help-tip{
	position:relative;
	box-sizing:border-box;
	width:100%;
	max-width:none;
	margin:7px 0 14px;
	padding:10px 28px 10px 10px;
	font-size:12px;
	line-height:1.45;
}

.page-tree-column .editor-help-tip button{
	position:absolute;
	top:5px;
	right:5px;
	width:20px;
	height:20px;
	min-width:20px;
	padding:0;
	border:0;
	background:transparent;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:15px;
	line-height:1;
}

/* Pages: one compact row, normal label weight except the selected page. */
.page-tree-column .page-tree-item,
.page-tree-column .page-row{
	margin:0;
}

.page-tree-column .page-row{
	box-sizing:border-box;
	min-height:36px;
	padding:5px 0;
	gap:7px;
	align-items:center;
}

.page-tree-column .page-row .row-main{
	min-width:0;
	font-size:14px;
	line-height:1.25;
}

.page-tree-column .page-row .row-main b,
.page-tree-column .page-row .row-main strong{
	font-weight:400;
}

.page-tree-column .page-row.active .row-main b,
.page-tree-column .page-row.active .row-main strong{
	font-weight:700;
}

/* Keep the row actions understated, evenly spaced and vertically centred. */
.page-tree-column .page-row .row-actions{
	display:flex;
	align-items:center;
	gap:6px;
	margin-left:auto;
}

.page-tree-column .page-row .icon-btn{
	width:20px;
	height:20px;
	min-width:20px;
	padding:1px;
	border:0;
	border-radius:5px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:14px;
	line-height:1;
}

.page-tree-column .page-row .icon-btn svg{
	width:14px;
	height:14px;
}

.page-tree-column .page-row .drag-handle{
	width:10px;
	min-width:10px;
	font-size:12px;
	line-height:1;
}

/* Component list: intentionally borderless and compact. */
.page-tree-column .page-component-tree{
	margin:0;
	padding:0 0 3px 18px;
	border:0;
}

.page-tree-column #blockList{
	margin:0;
	padding:0;
	border:0;
}

.page-tree-column .page-component-row{
	box-sizing:border-box;
	min-height:36px;
	margin:0;
	padding:7px 0;
	border:0;
	border-radius:0;
	gap:7px;
	background:transparent;
	box-shadow:none;
	font-size:13px;
	line-height:1.3;
}

.page-tree-column .page-component-row + .page-component-row{
	margin-top:0;
}

.page-tree-column .page-component-row .row-main{
	min-width:0;
}

.page-tree-column .page-component-row .component-name{
	font-weight:400;
}

.page-tree-column .page-component-row.active .component-name{
	font-weight:600;
}

.page-tree-column .page-component-row .drag-handle{
	width:10px;
	min-width:10px;
	font-size:11px;
	line-height:1;
	opacity:.65;
}

/* Avoid old card/list rules re-introducing separators or large spacing. */
.page-tree-column .page-component-row::before,
.page-tree-column .page-component-row::after{
	box-shadow:none;
}

@media (max-width:1100px){
	.page-tree-column{
		padding-left:12px;
		padding-right:12px;
	}

	.page-tree-column .pages-toolbar h3{
		font-size:19px;
	}
}

.page-tree-column .page-add-big{
	box-sizing:border-box;
	width:34px;
	height:34px;
	min-width:34px;
	max-width:34px;
	flex:0 0 34px;
	padding:0 0 2px;
	border-radius:10px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:20px;
	line-height:.8;
	font-weight:600;
}
/* TradeBuild portal editor tree refinements.
 * Append to /assets/css/portal.css (or load after it).
 */

/* Left page/component tree: reduce visual weight and keep a tighter rhythm. */
.page-tree-column{
	padding-left:14px;
	padding-right:14px;
}

.page-tree-column .pages-toolbar{
	min-height:48px;
	padding:8px 0 7px;
	align-items:center;
}

.page-tree-column .pages-toolbar h3{
	margin:0;
	font-size:20px;
	line-height:1.2;
	font-weight:700;
}

/* More proportionate add-page control: smaller box, clearer centred glyph. */
.page-tree-column .page-add-big{
	width:34px;
	height:34px;
	min-width:34px;
	padding:0;
	border-radius:10px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:20px;
	line-height:1;
	font-weight:500;
}

/* Help copy aligns exactly with the usable tree width. */
.page-tree-column .editor-help-tip{
	position:relative;
	box-sizing:border-box;
	width:100%;
	max-width:none;
	margin:7px 0 14px;
	padding:10px 28px 10px 10px;
	font-size:12px;
	line-height:1.45;
}

.page-tree-column .editor-help-tip button{
	position:absolute;
	top:5px;
	right:5px;
	width:20px;
	height:20px;
	min-width:20px;
	padding:0;
	border:0;
	background:transparent;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:15px;
	line-height:1;
}

/* Pages: one compact row, normal label weight except the selected page. */
.page-tree-column .page-tree-item,
.page-tree-column .page-row{
	margin:0;
}

.page-tree-column .page-row{
	box-sizing:border-box;
	min-height:36px;
	padding:5px 0;
	gap:7px;
	align-items:center;
}

.page-tree-column .page-row .row-main{
	min-width:0;
	font-size:14px;
	line-height:1.25;
}

.page-tree-column .page-row .row-main b,
.page-tree-column .page-row .row-main strong{
	font-weight:400;
}

.page-tree-column .page-row.active .row-main b,
.page-tree-column .page-row.active .row-main strong{
	font-weight:700;
}

/* Keep the row actions understated, evenly spaced and vertically centred. */
.page-tree-column .page-row .row-actions{
	display:flex;
	align-items:center;
	gap:6px;
	margin-left:auto;
}

.page-tree-column .page-row .icon-btn{
	width:20px;
	height:20px;
	min-width:20px;
	padding:1px;
	border:0;
	border-radius:5px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:14px;
	line-height:1;
}

.page-tree-column .page-row .icon-btn svg{
	width:14px;
	height:14px;
}

.page-tree-column .page-row .drag-handle{
	width:10px;
	min-width:10px;
	font-size:12px;
	line-height:1;
}

/* Component list: intentionally borderless and compact. */
.page-tree-column .page-component-tree{
	margin:0;
	padding:0 0 3px 18px;
	border:0;
}

.page-tree-column #blockList{
	margin:0;
	padding:0;
	border:0;
}

.page-tree-column .page-component-row{
	box-sizing:border-box;
	min-height:36px;
	margin:0;
	padding:7px 0;
	border:0;
	border-radius:0;
	gap:7px;
	background:transparent;
	box-shadow:none;
	font-size:13px;
	line-height:1.3;
}

.page-tree-column .page-component-row + .page-component-row{
	margin-top:0;
}

.page-tree-column .page-component-row .row-main{
	min-width:0;
}

.page-tree-column .page-component-row .component-name{
	font-weight:400;
}

.page-tree-column .page-component-row.active .component-name{
	font-weight:600;
}

.page-tree-column .page-component-row .drag-handle{
	width:10px;
	min-width:10px;
	font-size:11px;
	line-height:1;
	opacity:.65;
}

/* Avoid old card/list rules re-introducing separators or large spacing. */
.page-tree-column .page-component-row::before,
.page-tree-column .page-component-row::after{
	box-shadow:none;
}

@media (max-width:1100px){
	.page-tree-column{
		padding-left:12px;
		padding-right:12px;
	}

	.page-tree-column .pages-toolbar h3{
		font-size:19px;
	}
}
.editor-tabs{
	display:flex;
	align-items:flex-end;
	gap:0;
	border-bottom:1px solid #d7dde5;
}

.editor-tabs button{
	appearance:none;
	background:none;
	border:0;
	border-radius:0;
	padding:10px 11px 9px;
	font-size:15px;
	line-height:1;
	font-weight:400;
	color:#6b7280;
	cursor:pointer;
	white-space:nowrap;
}

.editor-tabs button.active{
	color:#111827;
	font-weight:600;
	border-bottom:2px solid #111827;
}

/* Page panel URL: the URL itself is the external link; keep the icon small and inline. */
.page-url-value{
	display:inline-flex;
	align-items:center;
	gap:5px;
	max-width:100%;
}
.page-url-value svg{
	width:14px;
	height:14px;
	flex:0 0 14px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}

/* 2026-09-01 editor alignment corrections. */

/* Draw one geometric plus only; do not combine the text glyph with pseudo-elements. */
.page-tree-column .page-add-big,
.addPageComponentPanel.page-add-big{
	position:relative;
	font-size:0!important;
	line-height:0!important;
	padding:0!important;
}
.page-tree-column .page-add-big::before,
.page-tree-column .page-add-big::after,
.addPageComponentPanel.page-add-big::before,
.addPageComponentPanel.page-add-big::after{
	content:"";
	position:absolute;
	left:50%;
	top:50%;
	width:12px;
	height:2px;
	border-radius:2px;
	background:currentColor;
	transform:translate(-50%,-50%);
}
.page-tree-column .page-add-big::after,
.addPageComponentPanel.page-add-big::after{
	transform:translate(-50%,-50%) rotate(90deg);
}

/* Page heading action: conventional, deliberately small external-link control. */
.page-settings-panel .panel-heading-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}
.page-settings-panel .panel-heading-row h3{margin:0;}
.page-settings-panel .panel-open-url{
	width:28px;
	height:28px;
	flex:0 0 28px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border:1px solid transparent;
	border-radius:7px;
	color:#657382;
	text-decoration:none;
}
.page-settings-panel .panel-open-url:hover{
	border-color:var(--line);
	background:#f5f7f9;
	color:var(--ink);
}
.page-settings-panel .panel-open-url svg{
	display:block;
	width:15px;
	height:15px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}

/* URL text is itself clickable; no second inline icon is required. */
.page-settings-panel .page-url-value{
	display:block;
	max-width:100%;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.page-settings-panel .page-url-value svg{display:none!important;}

/* Override the global grid-label/input rules for a normal checkbox row. */
.page-settings-panel label.page-menu-toggle{
	display:flex!important;
	align-items:center!important;
	justify-content:flex-start!important;
	gap:8px!important;
	margin:14px 0!important;
	font-weight:600;
}
.page-settings-panel .page-menu-toggle input[type="checkbox"]{
	box-sizing:border-box;
	width:16px!important;
	height:16px!important;
	min-width:16px;
	flex:0 0 16px;
	margin:0!important;
	padding:0!important;
}
.page-settings-panel .page-menu-toggle span{
	display:block;
	line-height:1.25;
}

/* 2026-09-01 routed editor: fixed tabs with independently scrollable PHP-rendered panels. */
.editor-shell>.editor-column:last-child>[data-editor-panel]{
	min-height:0;
	flex:1 1 auto;
	overflow-y:auto;
	overflow-x:hidden;
	padding-top:10px;
	overscroll-behavior:contain;
	scrollbar-gutter:stable;
}
.editor-shell>.editor-column:last-child>[data-editor-panel][hidden]{
	display:none!important;
}

/* Component appearance controls */
.component-appearance{
	margin:16px 0;
	padding:14px 0;
	border-top:1px solid var(--border,#d9e0e7);
	border-bottom:1px solid var(--border,#d9e0e7);
}
.component-appearance-heading{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	gap:10px;
	margin-bottom:8px;
}
.component-appearance-heading>label{font-weight:700}
.component-appearance>select{width:100%;margin:0}
.component-background-fields{margin-top:12px}
.component-background-fields[hidden]{display:none!important}
.colour-field{
	display:grid;
	grid-template-columns:42px minmax(0,1fr);
	gap:8px;
	align-items:center;
	margin-top:5px;
}
.colour-field input[type="color"]{
	width:42px;
	height:38px;
	padding:3px;
	border:1px solid var(--border,#d9e0e7);
	border-radius:8px;
	background:#fff;
}
.appearance-gradient-preview{
	height:62px;
	border:1px solid var(--border,#d9e0e7);
	border-radius:9px;
	margin-bottom:10px;
}
.appearance-two-colours,
.appearance-image-options{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:8px;
}
.appearance-two-colours label,
.appearance-image-options label{min-width:0}
.appearance-two-colours input[type="color"]{
	display:block;
	width:100%;
	height:38px;
	margin-top:5px;
	padding:3px;
	border:1px solid var(--border,#d9e0e7);
	border-radius:8px;
	background:#fff;
}
.appearance-gradient-angle{width:calc(100% - 48px);vertical-align:middle}
.appearance-angle-value{display:inline-block;width:42px;text-align:right;font-variant-numeric:tabular-nums}
.component-background-fields .field-icon-control{margin-bottom:8px}
.component-background-fields .small-btn{margin-top:8px}

/* 2026-09-02 component inspector field rhythm + scrollbar clearance. */
.editor-shell>.editor-column:last-child>[data-editor-panel]{
	box-sizing:border-box;
	padding-right:15px;
}

.component-field-list{
	box-sizing:border-box;
	padding-right:0;
}

.component-field-list>.field{
	box-sizing:border-box;
	margin:0;
	padding:12px 0 0;
}

.component-field-list>.field:last-child{
	padding-bottom:12px;
}

.component-field-list .field-label-row{
	box-sizing:border-box;
	min-height:20px;
	margin:0 0 4px;
	padding:0;
	align-items:center;
}

.component-field-list .field-label-row label{
	display:block;
	min-width:0;
	margin:0!important;
	padding:0;
	font-size:13px;
	line-height:20px;
}

.component-field-list .field-visibility{
	box-sizing:border-box;
	width:20px;
	height:20px;
	min-width:20px;
	flex:0 0 20px;
	margin:0;
	padding:0;
	border-radius:5px;
}

.component-field-list .field-visibility svg{
	width:14px;
	height:14px;
}

.component-field-list input,
.component-field-list textarea,
.component-field-list select,
.component-field-list .field-icon-control{
	box-sizing:border-box;
	max-width:100%;
	margin:0;
}

.component-field-list textarea{
	display:block;
}

/* Repeater editor grouping ------------------------------------------------- */
.component-inspector .repeater-group{
	margin:16px 0;
	border:1px solid #d9e0e8;
	border-radius:10px;
	background:#f8fafc;
	overflow:hidden;
}
.component-inspector .repeater-group-heading{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	padding:10px 10px 9px;
	border-bottom:1px solid #d9e0e8;
	background:#eef2f6;
}
.component-inspector .repeater-group-heading>div{
	display:grid;
	grid-template-columns:auto auto;
	align-items:baseline;
	gap:2px 7px;
	min-width:0;
}
.component-inspector .repeater-group-heading small{
	grid-column:1/-1;
	font-size:10px;
	line-height:1.2;
	font-weight:600;
	letter-spacing:.04em;
	text-transform:uppercase;
	color:#667085;
}
.component-inspector .repeater-group-heading strong{
	font-size:13px;
	line-height:1.3;
	color:#111827;
}
.component-inspector .repeater-group-heading span{
	font-size:11px;
	color:#7a8492;
}
.component-inspector .repeater-group-heading .repeaterAdd{
	flex:0 0 auto;
	padding:6px 9px;
}
.component-inspector .repeater-items{
	padding:8px;
}
.component-inspector .repeater-item{
	margin:0 0 8px;
	padding:0 10px 12px;
	border:1px solid #dce2e9;
	border-radius:9px;
	background:#fff;
}
.component-inspector .repeater-item:last-child{margin-bottom:0}
.component-inspector .repeater-item-heading{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	min-height:42px;
	margin:0 -2px 2px;
	padding:7px 2px 6px;
	border-bottom:1px solid #edf0f3;
}
.component-inspector .repeater-item-heading>div:first-child{
	display:flex;
	flex-direction:column;
	min-width:0;
}
.component-inspector .repeater-item-heading small{
	font-size:10px;
	line-height:1.2;
	color:#7a8492;
}
.component-inspector .repeater-item-title{
	overflow:hidden;
	font-size:12px;
	line-height:1.35;
	font-weight:600;
	color:#18202a;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.component-inspector .repeater-item-actions{
	display:flex;
	align-items:center;
	gap:3px;
	flex:0 0 auto;
}
.component-inspector .repeater-item-actions button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:25px;
	height:25px;
	padding:0;
	border:1px solid #d8dee6;
	border-radius:6px;
	background:#fff;
	color:#4b5563;
	font-size:13px;
	line-height:1;
	cursor:pointer;
}
.component-inspector .repeater-item-actions button:last-child{color:#b42318}
.component-inspector .repeater-item-actions button:disabled,
.component-inspector .repeater-group-heading button:disabled{
	opacity:.35;
	cursor:default;
}
.component-inspector .repeater-item-fields>.field:first-child{margin-top:12px}
.component-inspector .repeater-item-fields>.field:last-child{margin-bottom:0}
.component-inspector .repeater-managed-note{
	margin:0;
	padding:9px 10px;
	border-bottom:1px solid #d9e0e8;
	font-size:11px;
	line-height:1.45;
	color:#667085;
}
.component-inspector .repeater-group.is-managed .repeater-items{display:none}

/* 2026-09-02 compact component header + collapsed layout/background blocks. */
.component-inspector-heading{
	align-items:center;
	margin:0;
}
.component-title-copy{min-width:0}
.component-inspector-heading .component-title-copy h3{
	margin:0;
	font-size:17px;
	line-height:1.25;
}
.component-inspector-heading .component-title-copy small{
	display:block;
	margin-top:2px;
	font-size:11px;
	line-height:1.25;
}
.component-purpose{
	width:100%;
	margin:8px 0 10px;
	font-size:12px;
	line-height:1.45;
}
.component-settings-block{
	margin:0;
	border-top:1px solid #dce2e8;
}
.component-settings-block:last-of-type{border-bottom:1px solid #dce2e8}
.component-settings-toggle{
	display:grid;
	grid-template-columns:auto minmax(0,1fr) 24px;
	align-items:center;
	gap:8px;
	width:100%;
	min-height:42px;
	padding:8px 0;
	border:0;
	background:transparent;
	color:#111827;
	text-align:left;
	cursor:pointer;
}
.component-settings-toggle>span{font-weight:700}
.component-settings-toggle>small{
	overflow:hidden;
	color:#6b7280;
	font-size:11px;
	text-align:right;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.component-settings-toggle svg{
	width:16px;
	height:16px;
	justify-self:end;
	transition:transform .15s ease;
}
.component-settings-block:not(.is-collapsed) .component-settings-toggle svg{transform:rotate(180deg)}
.component-settings-content{padding:0 0 12px}
.component-settings-content[hidden]{display:none!important}
.component-settings-block .layout-picker,
.component-settings-block .component-appearance{
	margin:0;
	padding:0;
	border:0;
}
.component-settings-block .component-appearance-heading{display:none}
.component-settings-block .component-field-list{margin-top:0}
.component-field-list{margin-top:8px}

/* Button controls within repeaters. */
.button-editor-options{
	margin:12px 0 0;
	padding:10px;
	border:1px solid #dce2e9;
	border-radius:8px;
	background:#f8fafc;
}
.button-editor-heading{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin-bottom:8px;
}
.button-editor-heading strong{font-size:12px}
.button-editor-heading .small-btn{padding:5px 8px;font-size:11px}
.button-editor-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:8px;
}
.button-editor-grid label{display:block;margin:0}
.button-editor-grid label>span{
	display:block;
	margin:0 0 4px;
	font-size:11px;
	font-weight:600;
	color:#4b5563;
}
.button-editor-grid select{width:100%;margin:0}
.button-action-note{
	display:block;
	margin-top:8px;
	color:#6b7280;
	font-size:10px;
}

/* 2026-09-02 component inspector top-area compaction. */
.component-panel-toolbar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin:0 0 8px;
}
.component-panel-toolbar h3{
	margin:0;
	font-size:18px;
	line-height:1.2;
}
.component-panel-toolbar .addPageComponentPanel{
	flex:0 0 34px;
	width:34px;
	height:34px;
	min-width:34px;
	margin:0;
}
.component-inspector-heading{
	align-items:flex-start;
	gap:8px;
	margin:0;
}
.component-inspector-heading .component-title-copy{
	flex:1 1 auto;
	min-width:0;
}
.component-inspector-heading .component-title-copy h3{
	margin:0;
	font-size:17px;
	line-height:1.2;
}
.component-inspector-heading .component-title-copy small{
	margin-top:2px;
	font-size:10.5px;
	line-height:1.2;
}
.component-inspector-heading .removeBlock{
	flex:0 0 auto;
	margin-top:0;
}
.component-purpose{
	margin:5px 0 8px;
	font-size:12px;
	line-height:1.4;
}
.component-settings-toggle{
	min-height:38px;
	padding:6px 0;
	gap:7px;
}
.component-settings-toggle>small{
	font-size:10px;
	line-height:1.2;
}
.component-settings-toggle svg{
	width:14px;
	height:14px;
}
.component-settings-content{
	padding-bottom:10px;
}


/* 2026-09-02 explicit editor action icons.
   Use real SVGs rather than pseudo-element glyphs so controls survive cascade changes. */
.page-add-big::before,
.page-add-big::after,
.page-tree-column .page-add-big::before,
.page-tree-column .page-add-big::after,
.addPageComponentPanel.page-add-big::before,
.addPageComponentPanel.page-add-big::after{
	content:none!important;
}
.page-add-big svg{
	display:block;
	width:17px;
	height:17px;
	fill:none;
	stroke:currentColor;
	stroke-width:2;
	stroke-linecap:round;
	stroke-linejoin:round;
	pointer-events:none;
}
.component-settings-toggle svg{
	display:block;
	width:14px;
	height:14px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
	pointer-events:none;
}
/* Component inspector image preview: passive, fixed-ratio media frame. */
#componentControls .field-image{
	width:100%;
	max-width:100%;
	box-sizing:border-box;
	min-width:0;
}

#componentControls .field-image-preview{
	display:block;
	width:100%;
	max-width:100%;
	aspect-ratio:16 / 9;
	box-sizing:border-box;
	overflow:hidden;
	border:1px solid #d7dde5;
	border-radius:8px;
	background:#f7f8fa;
}

#componentControls .field-image-preview img{
	display:block;
	width:100%;
	height:100%;
	max-width:100%;
	object-fit:cover;
	object-position:center;
}

#componentControls .field-image-empty{
	display:flex;
	width:100%;
	height:100%;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	gap:6px;
	color:#718096;
}

#componentControls .field-image-empty svg{
	width:22px;
	height:22px;
}

#componentControls .field-image-actions{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px;
	margin-top:8px;
}

/* ==========================================================================
   MOBILE-FIRST PORTAL LAYOUT
   Mobile is the base state. Desktop/tablet enhancements use min-width only.
   This layer intentionally sits last while the older layout rules are phased
   out; it is authoritative for the portal shell/navigation/overview layout.
   ========================================================================== */

/* Mobile shell */
.portal-shell{
	display:block;
	min-height:100vh;
	padding-bottom:68px;
}

.portal-main{
	min-width:0;
	width:100%;
}

/* Mobile bottom navigation */
.portal-sidebar{
	position:fixed;
	z-index:80;
	left:0;
	right:0;
	bottom:0;
	top:auto;
	width:100%;
	height:64px;
	padding:5px 7px;
	background:var(--sidebar);
	color:#fff;
	display:block;
	overflow:hidden;
}

.portal-sidebar .brand,
.portal-sidebar .sidebar-help,
.portal-sidebar .sidebar-spacer,
.portal-sidebar .sidebar-logout-form,
.portal-sidebar > .sidebar-logout{
	display:none;
}

.portal-sidebar nav{
	display:flex;
	width:100%;
	height:54px;
	gap:2px;
	overflow-x:auto;
	overflow-y:hidden;
	scrollbar-width:none;
	-webkit-overflow-scrolling:touch;
}

.portal-sidebar nav::-webkit-scrollbar{
	display:none;
}

.portal-sidebar nav > a,
.portal-sidebar .nav-group > a{
	display:grid;
	flex:0 0 72px;
	min-width:72px;
	height:54px;
	place-items:center;
	align-content:center;
	gap:1px;
	padding:4px 6px!important;
	border-radius:8px;
	text-align:center;
	font-size:10px;
	text-decoration:none;
	color:#b9c3d0;
}

.portal-sidebar nav > a:hover,
.portal-sidebar nav > a.active,
.portal-sidebar .nav-group > a:hover,
.portal-sidebar .nav-group > a.active{
	background:var(--sidebar2);
	color:#fff;
}

.portal-sidebar .nav-icon{
	display:block;
	width:auto;
	font-size:16px;
	line-height:1;
}

.portal-sidebar .nav-caret,
.portal-sidebar .nav-submenu{
	display:none!important;
}

.portal-sidebar .nav-group{
	display:block;
	flex:0 0 auto;
}

/* Mobile header/content */
.portal-header{
	position:sticky;
	z-index:20;
	top:0;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	width:100%;
	height:auto;
	min-height:64px;
	padding:10px 12px;
	background:#fff;
	border-bottom:1px solid var(--line);
}

.portal-header h1{
	margin:2px 0 0;
	font-size:18px;
}

.portal-header small{
	font-size:11px;
	color:var(--muted);
}

.portal-header .site-name{
	font-size:11px;
}

.header-actions{
	display:flex;
	align-items:center;
	gap:5px;
}

.header-actions a,
.header-actions button{
	padding:8px 9px;
	font-size:12px;
}

.save-state{
	display:none;
}

.portal-view{
	padding:12px;
}

.notice{
	padding:12px;
}

.status-banner{
	align-items:flex-start;
	flex-direction:column;
	gap:9px;
}

/* Mobile content grids */
.grid{
	display:grid;
	grid-template-columns:1fr;
	gap:12px;
}

.card,
.span3,
.span4,
.span5,
.span6,
.span7,
.span8,
.span12{
	grid-column:1;
}

.card{
	padding:16px;
}

.website-summary,
.account-grid,
.enquiry-layout{
	display:grid;
	grid-template-columns:1fr;
	gap:12px;
}

.website-thumb{
	height:190px;
}

.asset-grid,
.gallery-view .asset-grid{
	grid-template-columns:repeat(2,minmax(0,1fr));
}

/* Mobile editor */
.editor-shell{
	display:flex;
	flex-direction:column;
	height:auto;
	gap:10px;
}

.editor-shell > .editor-column:first-child{
	order:2;
}

.preview-column{
	order:1;
	height:62vh;
	min-height:440px;
}

.editor-shell > .editor-column:last-child{
	order:3;
}

.editor-column{
	padding:10px;
}

/* Tablet / desktop shell */
@media (min-width:768px){
	.portal-shell{
		display:grid;
		grid-template-columns:230px minmax(0,1fr);
		min-height:100vh;
		padding-bottom:0;
	}

	.portal-sidebar{
		position:sticky;
		top:0;
		left:auto;
		right:auto;
		bottom:auto;
		width:auto;
		height:100vh;
		padding:20px 14px;
		display:flex;
		flex-direction:column;
		overflow:hidden;
	}

	.portal-sidebar .brand{
		display:flex;
	}

	.portal-sidebar .sidebar-spacer{
		display:block;
		flex:1 1 auto;
	}

	.portal-sidebar .sidebar-help{
		display:block;
	}

	.portal-sidebar .sidebar-logout-form{
		display:block;
		flex:0 0 auto;
	}

	.portal-sidebar nav{
		display:grid;
		width:auto;
		height:auto;
		gap:5px;
		overflow-y:auto;
		overflow-x:hidden;
		min-height:0;
	}

	.portal-sidebar nav > a,
	.portal-sidebar .nav-group > a{
		display:block;
		min-width:0;
		width:100%;
		height:auto;
		padding:11px 12px!important;
		text-align:left;
		font-size:inherit;
	}

	.portal-sidebar .nav-icon{
		display:inline-grid;
		width:24px;
		font-size:inherit;
	}

	.portal-sidebar .nav-group{
		display:grid;
	}

	.portal-sidebar .nav-caret{
		display:block;
	}

	.portal-sidebar .nav-submenu{
		display:grid!important;
	}

	.portal-header{
		height:82px;
		min-height:82px;
		padding:18px 28px;
		gap:12px;
	}

	.portal-header h1{
		font-size:24px;
	}

	.portal-header small{
		font-size:inherit;
	}

	.portal-header .site-name{
		font-size:12px;
	}

	.header-actions{
		gap:9px;
	}

	.header-actions a,
	.header-actions button{
		padding:9px 13px;
		font-size:inherit;
	}

	.save-state{
		display:block;
	}

	.portal-view{
		padding:28px;
	}

	.notice{
		padding:12px 28px;
	}

	.status-banner{
		align-items:center;
		flex-direction:row;
		gap:18px;
	}

	.grid{
		grid-template-columns:repeat(12,minmax(0,1fr));
		gap:16px;
	}

	.card{
		grid-column:span 4;
		padding:20px;
	}

	.span3{grid-column:span 3}
	.span4{grid-column:span 4}
	.span5{grid-column:span 5}
	.span6{grid-column:span 6}
	.span7{grid-column:span 7}
	.span8{grid-column:span 8}
	.span12{grid-column:span 12}

	.website-summary{
		grid-template-columns:minmax(240px,1.5fr) minmax(180px,.7fr);
		gap:18px;
	}

	.account-grid{
		grid-template-columns:repeat(2,minmax(0,1fr));
		gap:16px;
	}

	.enquiry-layout{
		grid-template-columns:330px minmax(0,1fr);
		gap:14px;
	}

	.website-thumb{
		height:220px;
	}

	.asset-grid{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}

	.gallery-view .asset-grid{
		grid-template-columns:repeat(5,minmax(0,1fr));
	}

	.editor-shell{
		display:grid;
		grid-template-columns:230px minmax(360px,1fr);
		height:calc(100vh - 138px);
		gap:14px;
	}

	.editor-shell > .editor-column:first-child,
	.preview-column,
	.editor-shell > .editor-column:last-child{
		order:initial;
	}

	.preview-column{
		height:auto;
		min-height:0;
	}

	.editor-column{
		padding:14px;
	}

	.editor-shell > .editor-column:last-child{
		grid-column:1/-1;
		height:auto;
	}
}

/* Full desktop editor */
@media (min-width:1201px){
	.editor-shell{
		grid-template-columns:260px minmax(420px,1fr) 320px;
	}

	.editor-shell > .editor-column:last-child{
		grid-column:auto;
		height:auto;
	}

	.asset-grid{
		grid-template-columns:repeat(3,minmax(0,1fr));
	}
}

/* Contextual editor refactor: view owns the two-column structure. */
.editor-shell-contextual{
	display:flex;
	flex-direction:column;
	height:auto;
	gap:10px;
}
.editor-shell-contextual .contextual-editor{
	order:2;
	min-width:0;
	padding:10px;
	overflow:auto;
}
.editor-shell-contextual .editor-preview-column{
	order:1;
	height:62vh;
	min-height:440px;
	min-width:0;
}
.editor-context-head{
	display:flex;
	align-items:center;
	gap:8px;
	min-height:50px;
	padding:4px 0 8px;
	border-bottom:1px solid var(--line);
}
.editor-context-head h3{
	min-width:0;
	flex:1 1 auto;
	margin:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.editor-context-actions{
	display:flex;
	align-items:center;
	gap:6px;
}
.editor-context-back,
.editor-row-next{
	display:grid;
	place-items:center;
	text-decoration:none;
	color:inherit;
}
.editor-context-back{
	width:30px;
	height:34px;
	font-size:28px;
	line-height:1;
}
.editor-row-next{
	width:28px;
	height:32px;
	margin-left:auto;
	font-size:22px;
}
.editor-context-list .page-row,
.editor-context-list .page-component-row{
	display:flex;
	align-items:center;
	min-height:42px;
	gap:8px;
	padding:4px 0;
	border-bottom:1px solid var(--line);
	cursor:pointer;
}
.editor-context-list .row-main{
	min-width:0;
	flex:1 1 auto;
}
.editor-context-list .row-main b,
.editor-context-list .component-name{
	font-weight:500;
}
.sticky-editor-head{
	position:sticky;
	top:0;
	z-index:5;
	background:#fff;
}
.page-settings-drawer{
	padding:10px 0 12px;
	border-bottom:1px solid var(--line);
}
.contextual-editor-controls{
	padding-top:8px;
}

@media (min-width:768px){
	.editor-shell-contextual{
		display:grid;
		grid-template-columns:300px minmax(0,1fr)!important;
		height:calc(100vh - 138px);
		gap:14px;
	}
	.editor-shell-contextual .contextual-editor{
		order:initial;
		height:auto;
		min-height:0;
		padding:14px;
		overflow:auto;
	}
	.editor-shell-contextual .editor-preview-column{
		order:initial;
		height:auto;
		min-height:0;
	}
}

@media (min-width:1201px){
	.editor-shell-contextual{
		grid-template-columns:330px minmax(520px,1fr)!important;
	}
}

.editor-accordion{
	border-bottom:1px solid var(--line);
}
.editor-accordion summary{
	list-style:none;
	cursor:pointer;
	padding:13px 0;
	font-weight:700;
}
.editor-accordion summary::-webkit-details-marker{display:none}
.editor-accordion summary:after{
	content:'›';
	float:right;
	font-size:18px;
	line-height:1;
	transform:rotate(0deg);
	transition:transform .15s ease;
}
.editor-accordion[open] summary:after{transform:rotate(90deg)}
.editor-accordion-body{padding:0 0 14px}
.contextual-component-inspector .component-purpose{margin:2px 0 10px}

/* ========================================================================
   TradeBuild contextual editor — PHP/view-controlled two-column shell
   Keep these rules last so the legacy three-column editor cannot reappear.
   ======================================================================== */
.editor-shell-contextual{
	display:flex;
	flex-direction:column;
	height:auto;
	gap:10px;
}
.editor-shell-contextual>.page-tree-column{
	order:2;
	min-width:0;
}
.editor-shell-contextual>.preview-column{
	order:1;
	height:62vh;
	min-height:440px;
	min-width:0;
}
.editor-shell-contextual .contextual-toolbar{
	display:grid;
	grid-template-columns:auto minmax(0,1fr) auto;
	align-items:center;
	gap:8px;
}
.editor-shell-contextual .contextual-toolbar h3{
	min-width:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.editor-context-actions{
	display:flex;
	align-items:center;
	gap:6px;
}
.editor-context-back,
.editor-row-next{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	text-decoration:none;
	color:inherit;
}
.editor-context-back{
	width:28px;
	height:28px;
	font-size:24px;
	line-height:1;
}
.editor-row-next{
	width:28px;
	height:28px;
	margin-left:auto;
	font-size:20px;
}
.editor-shell-contextual .page-row,
.editor-shell-contextual .page-component-row{
	cursor:pointer;
}
.editor-shell-contextual .page-component-tree{
	padding-left:0;
}
.page-settings-drawer{
	margin:0 0 10px;
}
.sticky-editor-head{
	position:sticky;
	top:0;
	z-index:5;
	background:var(--card,#fff);
}
.editor-accordion{
	border-bottom:1px solid var(--line,#d9dee5);
}
.editor-accordion>summary{
	list-style:none;
	cursor:pointer;
	padding:13px 0;
	font-weight:700;
}
.editor-accordion>summary::-webkit-details-marker{display:none}
.editor-accordion>summary:after{
	content:'›';
	float:right;
	transform:rotate(90deg);
	transition:transform .15s ease;
}
.editor-accordion:not([open])>summary:after{transform:rotate(0deg)}
.editor-accordion-body{padding:0 0 14px}
.contextual-editor-controls{min-width:0}

@media (min-width:768px){
	.editor-shell-contextual{
		display:grid;
		grid-template-columns:minmax(240px,300px) minmax(0,1fr)!important;
		height:calc(100vh - 138px);
		gap:14px;
	}
	.editor-shell-contextual>.page-tree-column,
	.editor-shell-contextual>.preview-column{
		order:initial;
		grid-column:auto!important;
		height:auto;
		min-height:0;
	}
	.editor-shell-contextual>.page-tree-column{
		overflow-y:auto;
	}
	.editor-shell-contextual>.preview-column{
		overflow:hidden;
	}
}

@media (min-width:1201px){
	.editor-shell-contextual{
		grid-template-columns:300px minmax(0,1fr)!important;
	}
}


/* ========================================================================
   TradeBuild unified editor UX — scoped additions only.
   The portal header/sidebar/footer rules above remain authoritative.
   ======================================================================== */
.portal-php-editor .editor-mode-tabs{
	display:flex;
	align-items:stretch;
	gap:4px;
	margin:0 0 10px;
	padding:4px;
	border:1px solid var(--line);
	border-radius:11px;
	background:#fff;
	overflow:visible;
}
.portal-php-editor .editor-mode-tabs > button,
.portal-php-editor .editor-mode-tabs > a,
.portal-php-editor .editor-mode-more-toggle{
	display:grid;
	grid-template-columns:1fr;
	place-items:center;
	align-content:center;
	gap:2px;
	min-width:58px;
	height:48px;
	padding:4px 8px;
	border:0;
	border-radius:8px;
	background:transparent;
	color:var(--text);
	font:inherit;
	font-size:10px;
	line-height:1.1;
	text-decoration:none;
	cursor:pointer;
}
.portal-php-editor .editor-mode-tabs svg{
	width:18px;
	height:18px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.7;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.portal-php-editor .editor-mode-tabs > button:hover,
.portal-php-editor .editor-mode-tabs > a:hover,
.portal-php-editor .editor-mode-more-toggle:hover{background:#f3f6f9}
.portal-php-editor .editor-mode-tabs > .active{
	background:var(--sidebar);
	color:#fff;
}
.portal-php-editor .editor-mode-more{
	position:relative;
	margin-left:auto;
}
.portal-php-editor .editor-mode-more-toggle{
	position:relative;
	padding-right:18px;
}
.portal-php-editor .editor-mode-more-chevron{
	position:absolute;
	right:4px;
	bottom:7px;
	width:10px!important;
	height:10px!important;
}
.portal-php-editor .editor-mode-more-menu{
	position:absolute;
	top:calc(100% + 6px);
	right:0;
	z-index:70;
	min-width:180px;
	padding:6px;
	border:1px solid var(--line);
	border-radius:10px;
	background:#fff;
	box-shadow:0 14px 36px rgba(16,24,40,.16);
}
.portal-php-editor .editor-mode-more-menu[hidden]{display:none!important}
.portal-php-editor .editor-mode-more-menu a,
.portal-php-editor .editor-mode-more-menu button{
	display:block;
	width:100%;
	padding:9px 10px;
	border:0;
	border-radius:7px;
	background:transparent;
	color:var(--text);
	font:inherit;
	font-size:12px;
	text-align:left;
	text-decoration:none;
	cursor:pointer;
}
.portal-php-editor .editor-mode-more-menu a:hover,
.portal-php-editor .editor-mode-more-menu button:hover{background:#f3f6f9}

/* One contextual sidebar; all states are server-rendered and JS only moves them. */
.editor-shell-contextual .contextual-editor{
	position:relative;
	overflow:hidden;
}
.editor-context-stack{
	position:relative;
	width:100%;
	height:100%;
	min-height:0;
	overflow:hidden;
}
.editor-context-view{
	position:absolute;
	inset:0;
	display:flex;
	flex-direction:column;
	min-width:0;
	min-height:0;
	overflow:hidden;
	background:#fff;
	opacity:0;
	pointer-events:none;
	transform:translateX(100%);
	transition:transform .22s ease,opacity .16s ease;
	will-change:transform;
}
.editor-context-view.is-active{
	z-index:2;
	opacity:1;
	pointer-events:auto;
	transform:translateX(0);
}
.editor-context-view.is-enter-right{z-index:3;opacity:1;transform:translateX(100%)}
.editor-context-view.is-enter-left{z-index:3;opacity:1;transform:translateX(-100%)}
.editor-context-view.is-exit-left{z-index:1;opacity:1;transform:translateX(-100%)}
.editor-context-view.is-exit-right{z-index:1;opacity:1;transform:translateX(100%)}
.editor-context-view .contextual-editor-scroll{
	flex:1 1 auto;
	min-height:0;
	overflow-y:auto;
	overflow-x:hidden;
}
.editor-context-view .page-settings-drawer{
	flex:0 0 auto;
	max-height:55%;
	overflow:auto;
}
.editor-context-view .editor-context-back{
	border:0;
	background:transparent;
	cursor:pointer;
}

/* Inline component catalogue: type -> description -> 2-up SVG layouts -> add. */
.editor-inline-add{
	padding:12px;
}
.editor-inline-add > .muted{
	margin:0 0 10px;
}
.component-type-list{
	display:grid;
	gap:8px;
}
.component-type-item{
	border:1px solid var(--line);
	border-radius:11px;
	background:#fff;
	overflow:hidden;
}
.component-type-toggle{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	align-items:center;
	gap:10px;
	width:100%;
	padding:12px;
	border:0;
	background:#fff;
	color:var(--text);
	font:inherit;
	text-align:left;
	cursor:pointer;
}
.component-type-toggle:hover{background:#f8fafb}
.component-type-copy{
	display:block;
	min-width:0;
}
.component-type-copy b{
	display:block;
	margin-bottom:3px;
	font-size:13px;
}
.component-type-copy small{
	display:block;
	color:var(--muted);
	font-size:11px;
	line-height:1.4;
}
.component-type-chevron{
	font-size:21px;
	line-height:1;
	transition:transform .16s ease;
}
.component-type-item.is-open .component-type-chevron{transform:rotate(90deg)}
.component-type-body{
	padding:0 10px 12px;
	border-top:1px solid #edf0f2;
}
.component-type-body[hidden]{display:none!important}
.component-type-body .layout-option-grid{
	padding-top:10px;
}
.component-layout-card{
	position:relative;
	display:block;
}
.component-layout-card input{
	position:absolute;
	op:8px;
	right:8px;
	z-index:2;
	margin:0;
}
.component-layout-card .component-layout-title{
	padding-right:18px;
}
.component-layout-card small{
	display:block;
	margin-top:4px;
	color:var(--muted);
	font-size:10px;
	line-height:1.35;
}
.component-layout-card em{
	display:inline-block;
	margin-top:5px;
	padding:2px 5px;
	border-radius:999px;
	background:#f2f4f7;
	color:#667085;
	font-size:9px;
	font-style:normal;
	font-weight:700;
	text-transform:capitalize;
}
.component-layout-card.active{
	border-color:#6ea3cf;
	box-shadow:0 0 0 2px rgba(66,132,185,.12);
	background:#f4f9fd;
}
.component-type-body .inlineComponentAdd{
	width:100%;
	margin-top:10px;
	justify-content:center;
}
.editor-inline-choice .inline-add-choice{
	display:grid;
	gap:12px;
	padding:16px;
}
.editor-inline-choice .btn{width:100%;justify-content:center}

/* Mobile portal nav: four primaries + More. Secondary links live in More. */
.mobile-portal-more{display:none}
@media(max-width:767px){
	.portal-sidebar .mobile-nav-secondary{display:none!important}
	.portal-sidebar nav{overflow:visible}
	.mobile-portal-more{
		display:block;
		position:relative;
		flex:0 0 72px;
		min-width:72px;
	}
	.mobile-portal-more-toggle{
		display:grid;
		place-items:center;
		align-content:center;
		gap:1px;
		width:100%;
		height:54px;
		padding:4px 6px;
		border:0;
		border-radius:8px;
		background:transparent;
		color:#dce5ee;
		font:inherit;
		font-size:10px;
		cursor:pointer;
	}
	.mobile-portal-more-toggle:hover,
	.mobile-portal-more-toggle[aria-expanded="true"]{
		background:var(--sidebar2);
		color:#fff;
	}
	.mobile-portal-more-menu{
		position:absolute;
		right:0;
		bottom:calc(100% + 8px);
		z-index:95;
		width:190px;
		padding:6px;
		border:1px solid #d9e0e7;
		border-radius:10px;
		background:#fff;
		box-shadow:0 14px 36px rgba(0,0,0,.2);
	}
	.mobile-portal-more-menu[hidden]{display:none!important}
	.mobile-portal-more-menu a{
		display:block;
		padding:10px;
		border-radius:7px;
		color:var(--text);
		font-size:12px;
		text-align:left;
		text-decoration:none;
	}
	.mobile-portal-more-menu a:hover{background:#f3f6f9}

	.portal-php-editor .editor-mode-tabs{
		position:sticky;
		top:64px;
		z-index:35;
		margin:0 0 8px;
		padding:4px;
	}
	.portal-php-editor .editor-mode-desktop-extra{display:none!important}
	.portal-php-editor .editor-mode-more{display:block}
	.portal-php-editor .editor-mode-tabs > button,
	.portal-php-editor .editor-mode-tabs > a,
	.portal-php-editor .editor-mode-more-toggle{
		min-width:54px;
		flex:1 1 0;
	}
	.editor-shell-contextual .contextual-editor,
	.editor-context-stack{min-height:58vh}
}
@media(min-width:768px){
	.portal-php-editor .editor-mode-more{display:none}
}



/* ========================================================================
   2026-09-04 editor regression corrections — scoped, no shell rewrites.
   ======================================================================== */
/* Site chooser must sit above the sticky editor toolbar. */
.portal-header{z-index:100}
.site-switcher{z-index:1}
.site-switch-menu{z-index:130}

/* Page state is shown by the row itself, not a restored status dot. */
.editor-context-view[data-editor-context-view="pages"] .page-state{display:none!important}
.editor-context-view[data-editor-context-view="pages"] .page-row{
	--page-row-state:#7f8b96;
	position:relative;
	padding-left:11px;
	border-radius:7px;
}
.editor-context-view[data-editor-context-view="pages"] .page-row::before{
	content:"";
	position:absolute;
	left:0;
	top:7px;
	bottom:7px;
	width:3px;
	border-radius:3px;
	background:var(--page-row-state);
}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-published{--page-row-state:#3f83b7}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-draft{--page-row-state:#d18734}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-hidden{--page-row-state:#8e9aa5}
.editor-context-view[data-editor-context-view="pages"] .page-row:hover{background:#f7f9fb}

/* Explicit SVG plus icons are the authoritative add control. */
.editor-shell-contextual .page-add-big svg{
	display:block!important;
	width:17px;
	height:17px;
	fill:none;
	stroke:currentColor;
	stroke-width:2;
	stroke-linecap:round;
	stroke-linejoin:round;
}

/* Mobile hierarchy: preview first, contextual editor beneath it. */
@media(max-width:767px){
	.editor-shell.editor-shell-contextual{
		display:flex!important;
		flex-direction:column!important;
	}
	.editor-shell.editor-shell-contextual>.preview-column{
		order:1!important;
		height:58vh!important;
		min-height:390px!important;
	}
	.editor-shell.editor-shell-contextual>.contextual-editor{
		order:2!important;
	}
}


/* ========================================================================
   2026-09-04 visual baseline lock — keep established portal styling stable.
   New editor behaviour is scoped below; header/footer/site switcher remain
   visually consistent with the approved compact portal treatment.
   ======================================================================== */

/* Compact publication status used in the approved header. */
.publication-status{
	display:inline-flex;
	align-items:center;
	gap:4px;
	white-space:nowrap;
	font-size:11px;
	font-weight:700;
	line-height:1.2;
}
.publication-queued{color:#b56800}
.publication-live{color:#168052}
.publication-separator{color:#98a2ad;font-weight:400}

/* Editor mode bar: inactive grey, restrained hover, dark active state. */
.portal-php-editor .editor-mode-tabs{
	background:#f7f9fb;
	border-color:#dce3e9;
	box-shadow:none;
}
.portal-php-editor .editor-mode-tabs > button,
.portal-php-editor .editor-mode-tabs > a,
.portal-php-editor .editor-mode-more-toggle{
	color:#596675;
	background:transparent;
	transition:background .14s ease,color .14s ease;
}
.portal-php-editor .editor-mode-tabs > button:hover,
.portal-php-editor .editor-mode-tabs > a:hover,
.portal-php-editor .editor-mode-more-toggle:hover{
	background:#e9eef3;
	color:#17212b;
}
.portal-php-editor .editor-mode-tabs > .active{
	background:#101823;
	color:#fff;
}

/* Edit is the default: the preview owns the canvas until a context is opened. */
.editor-shell-contextual{
	transition:grid-template-columns .22s ease;
}
.editor-shell-contextual.context-closed > .contextual-editor{
	pointer-events:none;
	visibility:hidden;
	opacity:0;
	transform:translateX(-18px);
}
.editor-shell-contextual > .contextual-editor{
	transition:opacity .16s ease,transform .22s ease;
}

/* Page status uses the row background itself; no dots/edge markers. */
.editor-context-view[data-editor-context-view="pages"] .page-row{
	padding-left:7px;
	border-radius:7px;
}
.editor-context-view[data-editor-context-view="pages"] .page-row::before{display:none!important}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-published{background:#f3f8fc}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-draft{background:#fff8ec}
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-hidden{background:#f3f5f7}
.editor-context-view[data-editor-context-view="pages"] .page-row:hover{background:#eaf0f5}

/* Site switcher remains over the editor bar and menus. */
.portal-header{z-index:110}
.site-switch-menu{z-index:160}
.portal-php-editor .editor-mode-tabs{z-index:40}

@media(max-width:767px){
	/* Exact compact mobile header hierarchy from the approved baseline. */
	.portal-header{
		min-height:72px;
		padding:9px 12px;
		align-items:center;
	}
	.portal-header .site-name{
		font-size:10px;
		line-height:1.35;
		color:#647386;
	}
	.portal-header h1{
		margin:3px 0 0;
		font-size:20px;
		line-height:1.05;
		font-weight:750;
		color:#0d141c;
	}
	.header-actions{
		gap:5px;
	}
	.header-actions .publication-status{
		font-size:10px;
	}
	.header-publish{
		padding:8px 10px!important;
		font-size:11px!important;
	}

	/* Preview is the Edit screen. Pages/Blocks are genuinely off-canvas until opened. */
	.editor-shell.editor-shell-contextual.context-closed > .preview-column{
		order:1!important;
		height:calc(100vh - 224px)!important;
		min-height:430px!important;
	}
	.editor-shell.editor-shell-contextual.context-closed > .contextual-editor{
		position:absolute!important;
		left:-110vw!important;
		width:calc(100vw - 24px)!important;
		height:0!important;
		min-height:0!important;
		overflow:hidden!important;
	}
	.editor-shell.editor-shell-contextual.context-open > .preview-column{
		order:1!important;
		height:46vh!important;
		min-height:330px!important;
	}
	.editor-shell.editor-shell-contextual.context-open > .contextual-editor{
		order:2!important;
		position:relative!important;
		left:auto!important;
		width:auto!important;
		height:auto!important;
		min-height:58vh!important;
		visibility:visible;
		opacity:1;
		transform:none;
		pointer-events:auto;
	}
}

@media(min-width:768px){
	.editor-shell-contextual.context-closed{
		grid-template-columns:minmax(0,1fr)!important;
	}
	.editor-shell-contextual.context-closed > .contextual-editor{
		display:none!important;
	}
	.editor-shell-contextual.context-open{
		grid-template-columns:300px minmax(0,1fr)!important;
	}
}

/* ========================================================================
   2026-09-04 editor interaction lock v6
   - grey active editor mode
   - mobile contextual editor overlays/slides over preview
   - page rows are discrete white buttons, not persistent selected fills
   ======================================================================== */

/* Approved horizontal editor navigation: grey selected state, not black. */
.portal-php-editor .editor-mode-tabs > .active{
	background:#e7edf3!important;
	color:#17212b!important;
}
.portal-php-editor .editor-mode-tabs > button:hover,
.portal-php-editor .editor-mode-tabs > a:hover,
.portal-php-editor .editor-mode-more-toggle:hover{
	background:#f0f3f6!important;
	color:#17212b!important;
}

/* Pages are choices, not simultaneously selected states. */
.editor-context-view[data-editor-context-view="pages"] .editor-context-list{
	display:grid;
	gap:6px;
	padding:8px 0;
}
.editor-context-view[data-editor-context-view="pages"] .page-row,
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-published,
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-draft,
.editor-context-view[data-editor-context-view="pages"] .page-row.page-status-hidden{
	margin:0!important;
	padding:8px 9px!important;
	min-height:40px;
	border:1px solid var(--line,#dce3e9)!important;
	border-radius:8px!important;
	background:#fff!important;
	box-shadow:none!important;
}
.editor-context-view[data-editor-context-view="pages"] .page-row:hover{
	border-color:#cbd4dd!important;
	background:#f7f9fb!important;
}
.editor-context-view[data-editor-context-view="pages"] .page-row::before{
	display:none!important;
}

@media(max-width:767px){
	/* The shell begins immediately below the horizontal editor menu, so using
	   it as the positioning context preserves the carefully tuned top edge. */
	.editor-shell.editor-shell-contextual{
		position:relative!important;
		display:block!important;
		height:calc(100vh - 224px)!important;
		height:calc(100dvh - 224px)!important;
		min-height:430px!important;
		overflow:hidden!important;
	}
	.editor-shell.editor-shell-contextual > .preview-column,
	.editor-shell.editor-shell-contextual.context-open > .preview-column,
	.editor-shell.editor-shell-contextual.context-closed > .preview-column{
		position:relative!important;
		z-index:1!important;
		width:100%!important;
		height:100%!important;
		min-height:0!important;
		margin:0!important;
	}

	/* Pages / Blocks / Block editor are one sliding drawer over the preview.
	   It no longer enters normal flow underneath the iframe. */
	.editor-shell.editor-shell-contextual > .contextual-editor,
	.editor-shell.editor-shell-contextual.context-open > .contextual-editor,
	.editor-shell.editor-shell-contextual.context-closed > .contextual-editor{
		position:absolute!important;
		z-index:30!important;
		top:0!important;
		bottom:0!important;
		left:0!important;
		right:auto!important;
		width:100%!important;
		height:100%!important;
		min-height:0!important;
		margin:0!important;
		padding:10px!important;
		box-sizing:border-box!important;
		overflow-y:auto!important;
		overflow-x:hidden!important;
		background:var(--bg,#f5f7f9)!important;
		transition:transform .24s ease,visibility 0s linear .24s!important;
	}
	.editor-shell.editor-shell-contextual.context-closed > .contextual-editor{
		visibility:hidden!important;
		opacity:1!important;
		transform:translateX(-102%)!important;
		pointer-events:none!important;
	}
	.editor-shell.editor-shell-contextual.context-open > .contextual-editor{
		visibility:visible!important;
		opacity:1!important;
		transform:translateX(0)!important;
		pointer-events:auto!important;
		transition:transform .24s ease,visibility 0s!important;
	}

	/* Keep the contextual header visually anchored while its list scrolls. */
	.editor-shell-contextual .sticky-editor-head{
		top:0!important;
		z-index:4!important;
	}
}


/* ========================================================================
   2026-09-04 interaction polish v7
   - white editor navigation surface
   - Forms remains visible beside More on compact layouts
   - restore the persistent Editing: Page context line
   ======================================================================== */
.portal-php-editor .editor-mode-tabs{
    background:#fff!important;
}
.portal-php-editor .editor-editing-line{
    display:flex;
    align-items:center;
    gap:4px;
    min-height:28px;
    margin:-2px 2px 6px;
    padding:0 6px;
    color:#6b7785;
    font-size:10px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.portal-php-editor .editor-editing-line strong{
    color:#25313d;
    font:inherit;
    font-weight:800;
}
@media(max-width:767px){
    .portal-php-editor .editor-mode-desktop-extra.editor-mode-forms{
        display:grid!important;
        min-width:54px;
        flex:1 1 0;
    }
    .portal-php-editor .editor-mode-tabs{
        background:#fff!important;
    }
    .portal-php-editor .editor-editing-line{
        margin:-1px 2px 6px;
        min-height:24px;
    }
}


/* ========================================================================
   2026-09-04 contextual panel consistency v8
   Preserve the approved editor shell; only normalise the drawer internals.
   ======================================================================== */

/* The contextual drawer itself is a white editing surface. */
.editor-shell-contextual > .contextual-editor,
.editor-shell-contextual .editor-context-stack,
.editor-shell-contextual .editor-context-view,
.editor-context-view .contextual-editor-scroll{
    background:#fff!important;
}

/* Give scrollable editor content breathing room so the scrollbar never
   collides with controls, fields or row chevrons. */
.editor-context-view .contextual-editor-scroll,
.editor-context-view .contextual-editor-controls{
    box-sizing:border-box;
    padding-right:14px!important;
    scrollbar-gutter:stable;
}

/* Pages and block rows use the same discrete bordered-button language. */
.editor-context-view[data-editor-context-view="pages"] #pageList,
.editor-context-view[data-editor-context-view^="page:"] .block-list{
    display:grid;
    gap:7px;
}
.editor-context-view[data-editor-context-view^="page:"] .page-component-tree{
    margin:0!important;
    padding:8px 0!important;
    border:0!important;
}
.editor-context-view[data-editor-context-view^="page:"] .page-component-row{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    margin:0!important;
    padding:8px 9px!important;
    border:1px solid var(--line,#dce3e9)!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
}
.editor-context-view[data-editor-context-view^="page:"] .page-component-row:hover{
    border-color:#cbd4dd!important;
    background:#f7f9fb!important;
}

/* Back and settings controls use the same bounded icon-button treatment. */
.editor-shell-contextual .editor-context-back,
.editor-shell-contextual .page-settings-toggle,
.editor-shell-contextual .removeBlock{
    box-sizing:border-box;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    border:1px solid var(--line,#dce3e9)!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#425466!important;
    line-height:1!important;
    cursor:pointer;
}
.editor-shell-contextual .editor-context-back:hover,
.editor-shell-contextual .page-settings-toggle:hover,
.editor-shell-contextual .removeBlock:hover{
    border-color:#c5ced7!important;
    background:#f5f7f9!important;
    color:#17212b!important;
}
.editor-shell-contextual .editor-context-back .editor-back-icon{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.editor-shell-contextual .removeBlock{
    font-size:22px!important;
    font-weight:400!important;
}
.editor-shell-contextual .removeBlock:hover{
    border-color:#e6b8b5!important;
    background:#fff6f5!important;
    color:#b42318!important;
}

/* Settings and Fields are horizontal bordered rows, matching page/block rows.
   Closed = down chevron; open = up chevron. */
.contextual-editor-controls{
    display:grid;
    gap:8px;
    padding-top:10px!important;
}
.contextual-editor-controls .component-purpose{
    margin:0 0 2px!important;
}
.editor-accordion{
    margin:0!important;
    border:1px solid var(--line,#dce3e9)!important;
    border-radius:8px!important;
    background:#fff!important;
    overflow:hidden;
}
.editor-accordion > summary{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    min-height:42px;
    box-sizing:border-box;
    padding:9px 11px!important;
    border:0!important;
    background:#fff!important;
    list-style:none;
    cursor:pointer;
}
.editor-accordion > summary:hover{
    background:#f7f9fb!important;
}
.editor-accordion > summary::after{
    content:'⌄'!important;
    float:none!important;
    margin-left:auto;
    font-size:18px;
    line-height:1;
    transform:none!important;
}
.editor-accordion[open] > summary::after{
    content:'⌃'!important;
    transform:none!important;
}
.editor-accordion[open] > summary{
    border-bottom:1px solid var(--line,#dce3e9)!important;
}
.editor-accordion-body{
    padding:12px!important;
}

/* Optional field visibility is an eye control, not a radio. */
.component-field-list .field-visibility{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    flex:0 0 28px!important;
    border:1px solid transparent!important;
    border-radius:7px!important;
}
.component-field-list .field-visibility:hover,
.component-field-list .field-visibility.is-hidden{
    border-color:#d8e0e6!important;
    background:#f2f6f8!important;
}
.component-field-list .field-visibility svg{
    width:16px!important;
    height:16px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round;
    stroke-linejoin:round;
}

@media(max-width:767px){
    .editor-shell.editor-shell-contextual > .contextual-editor,
    .editor-shell.editor-shell-contextual.context-open > .contextual-editor,
    .editor-shell.editor-shell-contextual.context-closed > .contextual-editor{
        background:#fff!important;
    }
    .editor-context-view .contextual-editor-scroll,
    .editor-context-view .contextual-editor-controls{
        padding-right:14px!important;
    }
}

/* v9 inline Add Page: keep page creation inside the Pages contextual panel. */
.editor-context-view[data-editor-context-view="pages"] .page-inline-add{
	box-sizing:border-box;
	margin:0 0 12px;
	padding:14px;
	border:1px solid var(--line);
	border-radius:10px;
	background:#fff;
}
.editor-context-view[data-editor-context-view="pages"] .page-inline-add[hidden]{display:none!important}
.page-inline-add-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin-bottom:10px;
}
.page-inline-add-head strong{font-size:16px}
.page-inline-add{
	display:grid;
	gap:11px;
}
.page-inline-add label{
	display:grid;
	gap:6px;
	font-size:13px;
	font-weight:650;
}
.page-inline-add input{
	box-sizing:border-box;
	width:100%;
	padding:10px 11px;
	border:1px solid var(--line);
	border-radius:8px;
	background:#fff;
	color:var(--text);
	font:inherit;
}
.page-inline-add .page-usage-banner{margin:0}
.page-inline-add-actions{
	display:flex;
	justify-content:flex-end;
	gap:8px;
	padding-top:2px;
}

/* v10 page settings: one contained panel, Settings + page-specific History. */
.portal-php-editor .page-settings-drawer{
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	overflow-x:hidden;
	background:#fff;
}
.portal-php-editor .page-settings-subpanel{
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	padding:10px;
	background:#f5f7f9;
	border-top:1px solid var(--line);
	border-bottom:1px solid var(--line);
	overflow-x:hidden;
}
.portal-php-editor .page-settings-tabs{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:6px;
	margin:0 0 10px;
	padding:4px;
	border:1px solid var(--line);
	border-radius:10px;
	background:#fff;
}
.portal-php-editor .page-settings-tabs button{
	min-width:0;
	padding:9px 10px;
	border:0;
	border-radius:7px;
	background:transparent;
	color:var(--muted);
	font:inherit;
	font-size:13px;
	font-weight:500;
	cursor:pointer;
}
.portal-php-editor .page-settings-tabs button:hover{background:#f3f5f7;color:var(--text)}
.portal-php-editor .page-settings-tabs button.active{background:#e9eef3;color:var(--text)}
.portal-php-editor .inline-page-settings{
	display:grid;
	gap:10px;
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	overflow-x:hidden;
}
.portal-php-editor .page-settings-group{
	display:grid;
	gap:10px;
	box-sizing:border-box;
	width:100%;
	min-width:0;
	padding:12px;
	border:1px solid var(--line);
	border-radius:10px;
	background:#fff;
}
.portal-php-editor .page-settings-group-title{
	font-size:12px;
	font-weight:700;
	color:var(--muted);
	text-transform:uppercase;
	letter-spacing:.04em;
}
.portal-php-editor .page-settings-group label{
	display:grid;
	gap:5px;
	min-width:0;
	font-size:12px;
	font-weight:650;
}
.portal-php-editor .page-settings-group input,
.portal-php-editor .page-settings-group select,
.portal-php-editor .page-settings-group textarea{
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	min-width:0;
	margin:0;
	padding:9px 10px;
	border:1px solid var(--line);
	border-radius:8px;
	background:#fff;
	color:var(--text);
	font:inherit;
	font-size:13px;
	font-weight:400;
}
.portal-php-editor .page-settings-group textarea{resize:vertical}
.portal-php-editor .page-slug-field{
	display:grid;
	grid-template-columns:auto minmax(0,1fr);
	align-items:center;
	gap:5px;
	min-width:0;
	width:100%;
}
.portal-php-editor .page-slug-field input{min-width:0}
.portal-php-editor .page-menu-toggle{
	display:flex!important;
	align-items:center;
	gap:8px;
	font-weight:500!important;
}
.portal-php-editor .page-menu-toggle input{width:auto;flex:0 0 auto}
.portal-php-editor .page-history-panel{
	display:grid;
	gap:8px;
	box-sizing:border-box;
	width:100%;
	max-width:100%;
	overflow-x:hidden;
}
.portal-php-editor .page-history-panel[hidden]{display:none!important}
.portal-php-editor .page-history-row{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	align-items:center;
	gap:10px;
	padding:10px;
	border:1px solid var(--line);
	border-radius:9px;
	background:#fff;
}
.portal-php-editor .page-history-row .row-main{min-width:0}
.portal-php-editor .page-history-row b,
.portal-php-editor .page-history-row small,
.portal-php-editor .page-history-row span{display:block}
.portal-php-editor .page-history-row small,
.portal-php-editor .page-history-row span{margin-top:2px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* ========================================================================
   2026-09-04 v11 editor interaction fixes
   Keep the v10 visual baseline intact; only correct accordion, catalogue and
   page-history behaviour requested in the component/page contextual panels.
   ======================================================================== */

/* Proper SVG chevrons for vertical disclosure controls. */
.portal-php-editor .editor-accordion > summary::after{
    content:none!important;
    display:none!important;
}
.portal-php-editor .editor-accordion > summary .editor-accordion-chevron,
.portal-php-editor .component-type-chevron svg{
    width:17px;
    height:17px;
    flex:0 0 17px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .16s ease;
}
.portal-php-editor .editor-accordion[open] > summary .editor-accordion-chevron{
    transform:rotate(180deg);
}
.portal-php-editor .component-type-chevron{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.portal-php-editor .component-type-item.is-open .component-type-chevron{
    transform:none!important;
}
.portal-php-editor .component-type-item.is-open .component-type-chevron svg{
    transform:rotate(180deg);
}

/* Settings and Fields start collapsed. Each section opens downwards and the
   settings body gets its own scroll region, so layouts can never hide the
   Background control below the fold. */
.portal-php-editor .editor-accordion-settings .editor-accordion-body{
    box-sizing:border-box;
    max-height:min(54vh,520px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:14px!important;
    scrollbar-gutter:stable;
}
.portal-php-editor .editor-accordion-settings .layout-option-grid{
    min-height:0;
}
.portal-php-editor .editor-accordion-body{
    min-width:0;
}

/* The catalogue radio is state only. Selection is communicated by the card
   border/background; the whole card remains the click target. */
.portal-php-editor .component-layout-card input[name="inlineComponentTemplate"]{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    margin:0!important;
    padding:0!important;
    opacity:0!important;
    pointer-events:none!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    overflow:hidden!important;
    white-space:nowrap!important;
}
.portal-php-editor .component-layout-card .component-layout-title{
    padding-right:0!important;
}

/* Settings and History are exclusive page-settings views. */
.portal-php-editor .page-settings-drawer [data-editor-tab-panel][hidden]{
    display:none!important;
}
.portal-php-editor .page-settings-drawer [data-editor-tab-panel].active{
    display:block;
}

/* Keep scrollbars clear of cards/controls in the block inspector. */
.portal-php-editor .editor-context-view[data-editor-context-view^="block:"] .contextual-editor-controls{
    padding-right:16px!important;
    scrollbar-gutter:stable;
}

/* ========================================================================
   2026-09-04 v12 component settings accordion sizing
   Compact outer accordions; Layout and Background are independent disclosures.
   Only the layout catalogue scrolls when open.
   ======================================================================== */
.portal-php-editor .contextual-editor-controls{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    min-height:0!important;
}
.portal-php-editor .editor-accordion{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
}
.portal-php-editor .editor-accordion:not([open]){
    height:auto!important;
    min-height:0!important;
}
.portal-php-editor .editor-accordion > .editor-accordion-body{
    min-height:0!important;
}

/* The outer Settings section itself does not scroll. */
.portal-php-editor .editor-accordion-settings > .editor-accordion-body{
    max-height:none!important;
    overflow:visible!important;
    padding:8px 10px 10px!important;
    scrollbar-gutter:auto!important;
}

/* Layout / Background use the same compact disclosure-row language. */
.portal-php-editor .editor-setting-accordion{
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    margin:0 0 8px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    overflow:hidden;
}
.portal-php-editor .editor-setting-accordion:last-child{margin-bottom:0}
.portal-php-editor .editor-setting-accordion > summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:42px;
    padding:10px 12px;
    list-style:none;
    cursor:pointer;
    color:var(--text);
    font-size:13px;
    font-weight:700;
}
.portal-php-editor .editor-setting-accordion > summary::-webkit-details-marker{display:none}
.portal-php-editor .editor-setting-accordion > summary::marker{content:""}
.portal-php-editor .editor-setting-accordion > summary:hover{background:#f6f8fa}
.portal-php-editor .editor-setting-accordion > summary .editor-accordion-chevron{
    width:16px;
    height:16px;
    flex:0 0 16px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .16s ease;
}
.portal-php-editor .editor-setting-accordion[open] > summary .editor-accordion-chevron{transform:rotate(180deg)}
.portal-php-editor .editor-setting-body{
    box-sizing:border-box;
    min-width:0;
    padding:10px 12px 12px;
    border-top:1px solid var(--line);
    background:#fff;
}

/* Only the layout choices scroll; Background remains a normal-height panel. */
.portal-php-editor .editor-layout-scroll{
    max-height:min(44vh,430px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:14px;
    scrollbar-gutter:stable;
}
.portal-php-editor .editor-layout-scroll .layout-option-grid{
    min-height:0;
    margin:0;
}
.portal-php-editor .editor-setting-background .editor-setting-body{
    max-height:none;
    overflow:visible;
}
.portal-php-editor .editor-setting-background .editor-setting-row{
    display:flex;
    align-items:center;
    min-height:36px;
    margin:0;
    padding:0;
    border:0;
    background:transparent;
}

/* ========================================================================
   2026-09-04 v13 mobile contextual editor viewport fit
   Keep the sliding Pages / Blocks / Component drawer clear of the fixed
   mobile navigation so the document itself does not need to scroll just to
   reach the bottom of the contextual panel.
   ======================================================================== */
@media(max-width:767px){
	.portal-php-editor .editor-shell.editor-shell-contextual{
		height:calc(100vh - 246px)!important;
		height:calc(100dvh - 246px)!important;
		min-height:390px!important;
	}
}


/* ========================================================================
   2026-09-04 v15 nested disclosure chevron correction
   Older broad `.editor-accordion summary::after` rules also matched the
   nested Layout/Background summaries. Suppress that inherited pseudo icon
   and keep the single SVG disclosure control at the far right.
   ======================================================================== */
.portal-php-editor .editor-accordion .editor-setting-accordion > summary::after,
.portal-php-editor .editor-setting-accordion > summary::after{
    content:none!important;
    display:none!important;
}
.portal-php-editor .editor-setting-accordion > summary .editor-accordion-chevron{
    margin-left:auto!important;
    order:2;
}
.portal-php-editor .editor-setting-accordion > summary{
    justify-content:flex-start!important;
}


/* v17 sign-in view: view-owned structure, scoped to login only. */
.portal-login-page .portal-login-heading{
	display:flex;
	align-items:center;
	gap:12px;
	width:100%;
	max-width:440px;
	margin:0 0 8px;
}
.portal-login-page .portal-login-heading .logo{
	display:grid;
	flex:0 0 40px;
	width:40px;
	height:40px;
	margin:0;
	place-items:center;
	border-radius:11px;
	background:#111821;
	color:#fff;
	font-weight:900;
}
.portal-login-page .portal-login-heading h1{
	min-width:0;
	margin:0;
	font-size:34px;
	line-height:1.08;
}
.portal-login-page .login-card .portal-login-intro{
	max-width:440px;
	margin:0 0 30px;
	color:#687582;
	font-size:15px;
	line-height:1.55;
}
.portal-login-page .portal-login-form{
	width:100%;
	max-width:440px;
	display:grid;
	gap:16px;
}
.portal-login-page .portal-login-form label{
	display:grid;
	gap:7px;
	margin:0;
	color:#27323d;
	font-size:13px;
	font-weight:750;
}
.portal-login-page .portal-login-form input{
	width:100%;
	min-height:52px;
	box-sizing:border-box;
	margin:0;
	padding:0 15px;
	border:1px solid #d4dae1;
	border-radius:10px;
	background:#fff;
	color:#101820;
	font:inherit;
	font-size:15px;
	outline:none;
}
.portal-login-page .portal-login-form input:focus{
	border-color:#1d6fc2;
	box-shadow:0 0 0 4px rgba(29,111,194,.1);
}
.portal-login-page .portal-password-wrap{
	position:relative;
	display:block;
	width:100%;
}
.portal-login-page .portal-password-wrap input{
	padding-right:52px!important;
}
.portal-login-page .portal-password-toggle{
	position:absolute;
	top:50%;
	right:8px;
	z-index:2;
	display:grid;
	place-items:center;
	width:36px;
	height:36px;
	min-width:36px;
	padding:0;
	transform:translateY(-50%);
	border:0;
	border-radius:8px;
	background:transparent;
	color:#667380;
	box-shadow:none;
	cursor:pointer;
}
.portal-login-page .portal-password-toggle:hover{background:#eef1f4;color:#17212b}
.portal-login-page .portal-password-toggle svg{
	display:block;
	width:19px;
	height:19px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.8;
	stroke-linecap:round;
	stroke-linejoin:round;
}
.portal-login-page .portal-login-form .portal-login-submit{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	min-height:50px;
	margin:2px 0 0;
	padding:0 18px;
	border:1px solid #111821;
	border-radius:10px;
	background:#111821;
	color:#fff;
	font:inherit;
	font-weight:800;
	cursor:pointer;
}
.portal-login-page .portal-login-form .portal-login-submit:hover{background:#202a35;border-color:#202a35}
.portal-login-page .portal-login-form #emailAccess{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	min-height:48px;
	margin:0;
	padding:0 16px;
	border:1px solid #d4dae1;
	border-radius:10px;
	background:#fff;
	color:#25313c;
	font:inherit;
	font-size:13px;
	font-weight:700;
	cursor:pointer;
}
.portal-login-page .portal-login-form #emailAccess:hover{border-color:#b9c2cb;background:#f1f3f5}
@media(max-width:800px){
	.portal-login-page .portal-login-heading h1{font-size:29px}
	.portal-login-page .login-card .portal-login-intro{margin-bottom:26px}
}

/* ========================================================================
   2026-09-04 v18 sign-in finishing pass
   Keep the logo/title pair visible, force the password visibility control to
   render above the input, and neutralise native button appearance on the
   secondary recovery action.
   ======================================================================== */
.portal-login-page .portal-login-heading .portal-login-mobile-logo{
	display:grid!important;
	visibility:visible!important;
	opacity:1!important;
	flex:0 0 40px!important;
	width:40px!important;
	height:40px!important;
	margin:0!important;
}
.portal-login-page .portal-password-wrap{
	position:relative!important;
	display:block!important;
	width:100%!important;
}
.portal-login-page .portal-password-wrap #loginPassword{
	padding-right:54px!important;
}
.portal-login-page .portal-password-toggle{
	display:grid!important;
	visibility:visible!important;
	opacity:1!important;
	appearance:none!important;
	-webkit-appearance:none!important;
	position:absolute!important;
	top:50%!important;
	right:8px!important;
	z-index:5!important;
	width:36px!important;
	height:36px!important;
	min-width:36px!important;
	min-height:36px!important;
	margin:0!important;
	padding:0!important;
	transform:translateY(-50%)!important;
	border:0!important;
	border-radius:8px!important;
	background:transparent!important;
	color:#667380!important;
	box-shadow:none!important;
}
.portal-login-page .portal-password-toggle:hover{
	background:#eef1f4!important;
	color:#17212b!important;
}
.portal-login-page .portal-password-toggle svg{
	display:block!important;
	width:19px!important;
	height:19px!important;
}
.portal-login-page .portal-login-form #emailAccess{
	appearance:none!important;
	-webkit-appearance:none!important;
	display:flex!important;
	align-items:center!important;
	justify-content:center!important;
	box-sizing:border-box!important;
	width:100%!important;
	min-height:48px!important;
	margin:0!important;
	padding:0 16px!important;
	border:1px solid #d4dae1!important;
	border-radius:10px!important;
	background:#fff!important;
	color:#25313c!important;
	box-shadow:none!important;
	font:inherit!important;
	font-size:13px!important;
	font-weight:700!important;
	line-height:1.2!important;
	text-decoration:none!important;
}
.portal-login-page .portal-login-form #emailAccess:hover{
	border-color:#b9c2cb!important;
	background:#f1f3f5!important;
}

/* ========================================================================
   v20 block background controls
   Background options are driven by the selected template's declared
   data-tb-background capabilities. Keep this scoped to the block inspector.
   ======================================================================== */
.editor-setting-background .editor-setting-body{
	display:block;
	padding:10px 12px 12px;
}
.editor-background-empty{
	padding:9px 2px;
	font-size:12px;
	line-height:1.45;
}
.background-option-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:8px;
}
.background-option{
	display:flex;
	align-items:center;
	gap:8px;
	min-width:0;
	min-height:42px;
	padding:8px 10px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:8px;
	background:#fff;
	color:inherit;
	font:inherit;
	font-size:12px;
	font-weight:650;
	text-align:left;
	cursor:pointer;
}
.background-option:hover{
	background:#f7f9fb;
	border-color:#bcc7d2;
}
.background-option.active{
	border-color:#6ea8e5;
	background:#f3f8fd;
	box-shadow:0 0 0 1px rgba(57,125,194,.08);
}
.background-option-swatch{
	position:relative;
	display:block;
	flex:0 0 28px;
	width:28px;
	height:24px;
	border:1px solid #d7dee6;
	border-radius:6px;
	background:#fff;
	overflow:hidden;
}
.background-option-default{
	background:linear-gradient(135deg,#fff 0 48%,#eef2f6 48% 52%,#fff 52% 100%);
}
.background-option-colour{
	background:#dfe6ed;
}
.background-option-gradient{
	background:linear-gradient(135deg,#eef2f6,#79899a);
}
.background-option-image::before{
	content:'';
	position:absolute;
	inset:5px;
	border-radius:3px;
	background:linear-gradient(145deg,#cad4de 45%,#e8edf2 46% 100%);
}
.background-config{
	display:grid;
	gap:10px;
	margin-top:10px;
	padding:10px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:8px;
	background:#f8fafc;
}
.background-config[hidden]{display:none!important}
.background-config label{
	display:grid;
	gap:5px;
	min-width:0;
	font-size:12px;
	font-weight:650;
}
.background-config input[type="url"],
.background-config input[type="number"],
.background-config select{
	box-sizing:border-box;
	width:100%;
	min-width:0;
	padding:8px 9px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:7px;
	background:#fff;
	color:inherit;
	font:inherit;
	font-weight:400;
}
.background-config input[type="color"]{
	box-sizing:border-box;
	width:100%;
	height:38px;
	padding:3px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:7px;
	background:#fff;
	cursor:pointer;
}
.background-gradient-config,
.background-image-row{
	grid-template-columns:repeat(2,minmax(0,1fr));
}
.background-gradient-config label:last-child{
	grid-column:1/-1;
}
@media(max-width:420px){
	.background-gradient-config,
	.background-image-row{grid-template-columns:1fr}
}

/* ========================================================================
   v21 background picker: theme colours, CSS colour values and media selector
   ======================================================================== */
.background-colour-control{
	display:grid;
	gap:8px;
	min-width:0;
}
.background-colour-control>label{
	font-size:12px;
	font-weight:650;
}
.background-control-caption{
	display:block;
	margin-bottom:5px;
	color:var(--muted,#687584);
	font-size:11px;
	font-weight:600;
}
.background-theme-colours>div{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
}
.background-theme-colour{
	display:inline-flex;
	align-items:center;
	gap:6px;
	min-height:32px;
	padding:5px 8px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:7px;
	background:#fff;
	color:inherit;
	font:inherit;
	cursor:pointer;
}
.background-theme-colour:hover{background:#f3f6f9}
.background-theme-colour>span{
	width:18px;
	height:18px;
	border:1px solid rgba(0,0,0,.12);
	border-radius:5px;
}
.background-theme-colour small{
	font-size:11px;
	font-weight:600;
}
.background-manual-colour{
	display:grid;
	grid-template-columns:minmax(0,1fr) 42px;
	gap:7px;
}
.background-config .background-manual-colour input[type="text"]{
	box-sizing:border-box;
	width:100%;
	min-width:0;
	padding:8px 9px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:7px;
	background:#fff;
	color:inherit;
	font:inherit;
	font-weight:400;
}
.background-config .background-manual-colour input[type="color"]{
	width:42px;
	height:38px;
	padding:3px;
}
.background-gradient-config{
	display:grid;
	grid-template-columns:1fr;
}
.background-gradient-config>.background-colour-control{
	padding-bottom:9px;
	border-bottom:1px solid var(--line,#d9e0e7);
}
.background-gradient-config>label:last-child{
	grid-column:auto;
}
.background-image-preview{
	display:grid;
	place-items:center;
	min-height:112px;
	border:1px dashed #c9d3dd;
	border-radius:8px;
	background:#fff;
	overflow:hidden;
	color:var(--muted,#687584);
	font-size:12px;
}
.background-image-preview img{
	display:block;
	width:100%;
	height:150px;
	object-fit:cover;
}
.background-image-actions{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
}
.background-image-actions .btn{
	padding:7px 9px;
	font-size:12px;
}
.background-image-picker{
	max-height:260px;
	overflow:auto;
	padding:7px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:8px;
	background:#fff;
}
.background-image-picker[hidden]{display:none!important}
.background-picker-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:7px;
}
.background-picker-card{
	display:grid;
	gap:5px;
	min-width:0;
	padding:5px;
	border:1px solid var(--line,#d9e0e7);
	border-radius:7px;
	background:#fff;
	color:inherit;
	font:inherit;
	text-align:left;
	cursor:pointer;
}
.background-picker-card:hover{
	border-color:#8ca9c4;
	background:#f7f9fb;
}
.background-picker-card>span{
	display:block;
	aspect-ratio:4/3;
	border-radius:5px;
	overflow:hidden;
	background:#eef2f6;
}
.background-picker-card img{
	width:100%;
	height:100%;
	object-fit:cover;
}
.background-picker-card small{
	display:block;
	overflow:hidden;
	font-size:10px;
	font-weight:600;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.background-picker-loading,.background-picker-empty{padding:10px}
.background-url-field[hidden]{display:none!important}


/* v23 portal nav polish: no empty badge line; stack Website icon above label on mobile. */
.portal-sidebar nav em:empty{display:none!important;}
@media(max-width:767px){
	.portal-sidebar .nav-group > a{
		display:grid!important;
		grid-template-columns:1fr;
		grid-auto-flow:row;
		justify-items:center;
		align-content:center;
		gap:2px;
	}
	.portal-sidebar .nav-group > a .nav-icon,
	.portal-sidebar .nav-group > a .nav-label{
		display:block;
		width:auto;
		margin:0;
		line-height:1;
	}
	.portal-sidebar .nav-group > a .nav-icon{font-size:16px;}
	.portal-sidebar .nav-group > a .nav-label{font-size:10px;}
	.portal-sidebar .nav-group > a .nav-caret{display:none!important;}
}

/* v24 forms manager regression fix: restore the Forms route visual contract. */
.forms-manager{display:grid;gap:12px;min-width:0}
.forms-manager *{box-sizing:border-box}
.forms-manager svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.forms-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;align-items:start}
.forms-list-panel,.forms-editor-panel,.forms-preview-panel{min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.forms-list-panel,.forms-editor-panel{padding:14px}
.forms-list-toolbar{margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.forms-list-toolbar h3,.forms-preview-toolbar h3,.form-editor-title h2,.form-fields-heading h3{margin:0}
.forms-list{display:grid;gap:8px}
.form-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}
.form-list-row:hover,.form-list-row.active{background:#f7f9fb}
.form-list-row.active{border-color:#c9d4df}
.form-list-select{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:10px 6px 10px 11px;color:inherit;text-decoration:none}
.form-list-main{min-width:0}.form-list-main strong,.form-list-main small{display:block}.form-list-main strong{font-size:13px}.form-list-main small{margin-top:2px;color:var(--muted);font-size:11px}
.form-list-usage{flex:0 0 auto;color:var(--muted);font-size:11px;white-space:nowrap}
.form-list-actions{display:flex;align-items:center;gap:3px;padding-right:6px}.form-list-actions form{margin:0}
.form-list-icon{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);text-decoration:none;cursor:pointer}
.form-list-icon:hover{border-color:var(--line);background:#fff;color:var(--text)}
.forms-purpose-help{position:relative;margin-top:12px;padding:12px 34px 12px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}
.forms-purpose-help h4{margin:0 0 8px}.forms-purpose-item{display:grid;gap:2px;margin-top:8px}.forms-purpose-item span{color:var(--muted);font-size:11px;line-height:1.4}
.forms-help-dismiss{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;background:transparent;font-size:18px;cursor:pointer}
.forms-preview-panel{padding:0}.forms-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.forms-preview-toolbar .muted{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.forms-preview-toolbar h3{margin-top:2px;font-size:15px}
.forms-preview-stage{padding:14px;background:#f3f6f9}.forms-preview-card{max-width:680px;margin:0 auto;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.tb-form-preview-instance{display:grid;gap:12px}.tb-form-preview-instance label{display:grid;gap:5px;font-size:12px;font-weight:650}.tb-form-preview-instance input,.tb-form-preview-instance textarea,.tb-form-preview-instance select{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);font:inherit}.tb-form-preview-instance button{justify-self:start}
.form-editor-heading{margin-bottom:10px}.form-editor-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-editor-title h2{font-size:18px}.form-editor-heading-actions{display:flex;gap:6px}.form-editor-heading-actions form{margin:0}
.form-editor-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:12px;padding:4px;border:1px solid var(--line);border-radius:9px;background:#f5f7f9}
.form-editor-tabs button{padding:8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer}.form-editor-tabs button.is-active{background:#fff;color:var(--text);box-shadow:0 1px 2px rgba(15,23,42,.08)}
.form-editor-section[hidden]{display:none!important}.form-editor-section{min-width:0}.form-settings{display:grid;gap:12px}.form-builder-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.form-builder-grid label,.form-add-field-grid label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:650}.form-builder-grid label small{font-weight:400;color:var(--muted)}
.form-builder-grid input,.form-builder-grid textarea,.form-builder-grid select,.form-add-field-grid input,.form-add-field-grid select,.form-option-row input{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);font:inherit}
.form-active-toggle,.form-notify-toggle,.form-inline-check{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.form-active-toggle span,.form-notify-toggle span{display:grid;gap:2px}.form-active-toggle small,.form-notify-toggle small{color:var(--muted);font-size:11px;font-weight:400}.form-active-toggle input,.form-notify-toggle input,.form-inline-check input{width:auto}
.form-advanced{border:1px solid var(--line);border-radius:8px;background:#fff}.form-advanced summary{padding:10px 12px;cursor:pointer;font-size:12px;font-weight:650}.form-advanced-body{padding:0 12px 12px}.form-advanced-body label{display:grid;gap:5px;font-size:12px;font-weight:650}
.form-fields-heading,.form-options-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-fields-heading{margin-bottom:10px}.form-fields-heading p{margin:3px 0 0;font-size:11px}.form-fields-list{display:grid;gap:8px}
.form-field-card{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.form-field-card.is-hidden-field{opacity:.72}.form-field-card-head{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}.form-field-drag-handle{padding-left:9px;color:var(--muted);font-size:11px;cursor:grab}.form-field-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px;border:0;background:transparent;text-align:left;cursor:pointer}.form-field-summary{display:grid;gap:2px}.form-field-summary strong{font-size:12px}.form-field-summary small{color:var(--muted);font-size:10px}.form-field-chevron{flex:0 0 16px;transition:transform .18s ease}.form-field-toggle[aria-expanded="true"] .form-field-chevron{transform:rotate(180deg)}
.form-field-card-body{padding:0 10px 10px}.form-field-editor{display:grid;gap:10px}.form-field-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.form-field-actions form{margin:0}
.form-options-field{padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.form-options-list{display:grid;gap:6px;margin-top:8px}.form-option-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.form-option-remove{width:34px;padding:0}
.form-add-field-wrap{margin-bottom:10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}.form-add-field-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.form-add-field-actions{display:flex;gap:7px;margin-top:8px}.form-add-field-bottom{width:100%;margin-top:10px}
.portal-form-error,.portal-form-success{grid-column:1/-1}
@media(min-width:680px){.form-builder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-builder-grid .span2{grid-column:1/-1}.form-add-field-grid{grid-template-columns:1fr 160px}}
@media(min-width:1100px){.forms-workspace{grid-template-columns:260px minmax(340px,1fr) 380px}.forms-list-panel,.forms-editor-panel{max-height:calc(100vh - 190px);overflow:auto}.forms-preview-panel{position:sticky;top:96px}.forms-preview-stage{min-height:520px}}
@media(max-width:767px){.forms-manager{gap:8px}.forms-workspace{gap:8px}.forms-list-panel,.forms-editor-panel{padding:10px}.forms-preview-stage{padding:10px}.forms-preview-card{padding:12px}.form-editor-heading-actions .small-btn{padding:7px 8px;font-size:10px}}

/* v28 forms preview: align checkbox fields and restore submit button styling. */
.forms-preview-card .tb-form-preview-instance .tb-form-field--checkbox{
	display:grid;
	grid-template-columns:18px minmax(0,1fr);
	column-gap:9px;
	row-gap:3px;
	align-items:center;
}
.forms-preview-card .tb-form-preview-instance .tb-form-field--checkbox input[type="checkbox"]{
	grid-column:1;
	grid-row:1;
	width:18px;
	height:18px;
	min-width:18px;
	margin:0;
	padding:0;
	align-self:center;
}
.forms-preview-card .tb-form-preview-instance .tb-form-field--checkbox > span{
	grid-column:2;
	grid-row:1;
	min-width:0;
	line-height:1.3;
}
.forms-preview-card .tb-form-preview-instance .tb-form-field--checkbox > small{
	grid-column:2;
	grid-row:2;
	margin:0;
	color:var(--muted);
	font-size:11px;
	font-weight:400;
	line-height:1.35;
}
.forms-preview-card .tb-form-preview-instance .tb-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:40px;
	padding:9px 14px;
	border:1px solid #0e1722;
	border-radius:8px;
	background:#0e1722;
	color:#fff;
	font:inherit;
	font-size:13px;
	font-weight:700;
	line-height:1.2;
	text-decoration:none;
	cursor:pointer;
	box-shadow:none;
}
.forms-preview-card .tb-form-preview-instance .tb-btn:hover{
	background:#1b2735;
	border-color:#1b2735;
}
.forms-preview-card .tb-form-preview-instance .tb-btn:focus-visible{
	outline:2px solid #1769d2;
	outline-offset:2px;
}

/* v29: mobile footer More is a viewport popover, not content-positioned. */
@media(max-width:767px){
	.portal-sidebar nav{overflow:visible}
	.mobile-portal-more-menu{
		position:fixed;
		right:8px;
		bottom:72px;
		z-index:220;
		width:190px;
		max-width:calc(100vw - 16px);
		box-shadow:0 16px 40px rgba(0,0,0,.28);
	}
}

/* v30: align editor More chevron and keep footer More items fully legible. */
.portal-php-editor .editor-mode-more-chevron{
	top:50%;
	right:5px;
	bottom:auto;
	transform:translateY(-50%);
}
@media(max-width:767px){
	.mobile-portal-more-menu a{
		color:#111827!important;
		opacity:1!important;
	}
	.mobile-portal-more-menu a:visited,
	.mobile-portal-more-menu a:hover,
	.mobile-portal-more-menu a:focus{
		color:#111827!important;
	}
}

/* v31: footer More popover uses the same restrained light-grey hover as the editor More menu. */
@media(max-width:767px){
	.mobile-portal-more-menu a,
	.mobile-portal-more-menu a:visited{
		background:#fff!important;
		color:#111827!important;
	}
	.mobile-portal-more-menu a:hover,
	.mobile-portal-more-menu a:focus-visible{
		background:#f3f6f9!important;
		color:#111827!important;
		outline:none;
	}
}


/* v33 forms workflow: unlimited library + in-context help/create + preview/settings/fields. */
.forms-list-toolbar-actions{display:flex;align-items:center;gap:7px}
.forms-info-toggle{font:700 15px/1 Georgia,serif}
.forms-info-toggle>span{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;font-size:12px;font-family:Georgia,serif;font-style:italic}
.form-create-inline{margin:0 0 10px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}
.form-create-inline form{display:grid;gap:10px}.form-create-inline label{display:grid;gap:6px;font-size:12px;font-weight:700}.form-create-inline input{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit}.form-create-actions{display:flex;gap:7px;justify-content:flex-end}
.forms-effective-help{margin:0 0 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;overflow:hidden}
.forms-effective-help-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid var(--line)}
.forms-effective-help-head h4{margin:2px 0 0}.forms-help-close{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:18px;cursor:pointer}
.forms-effective-help details{border-bottom:1px solid var(--line);background:#fff}.forms-effective-help details:last-of-type{border-bottom:0}
.forms-effective-help summary{position:relative;padding:11px 34px 11px 12px;font-weight:700;cursor:pointer;list-style:none}.forms-effective-help summary::-webkit-details-marker{display:none}.forms-effective-help summary::after{content:'›';position:absolute;right:13px;top:50%;transform:translateY(-50%) rotate(90deg);font-size:18px}.forms-effective-help details[open] summary::after{transform:translateY(-50%) rotate(-90deg)}
.forms-effective-help details p{margin:0;padding:0 12px 12px;color:var(--muted);font-size:12px;line-height:1.5}.forms-effective-link{margin:0;padding:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.45}.forms-effective-link a{color:var(--ink);font-weight:700}
.forms-workspace{grid-template-columns:minmax(0,1fr)}
.forms-detail-panel{padding:0!important;overflow:hidden!important}
.form-editor-heading{padding:14px 14px 10px}.form-editor-title-row{align-items:center}.form-editor-title .muted{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.form-editor-title h2{margin-top:2px}
.form-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 14px 12px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#eef2f5}
.form-view-tabs button{min-height:38px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:700 12px/1 inherit;cursor:pointer}.form-view-tabs button:hover{background:#e3e8ed;color:var(--ink)}.form-view-tabs button.is-active{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(18,29,42,.08)}
.forms-detail-panel .form-editor-section{padding:0 14px 14px}.forms-detail-panel .form-editor-section[data-form-editor-panel="preview"]{padding:0}.forms-detail-panel .forms-preview-toolbar{border-top:1px solid var(--line)}
.forms-detail-panel .forms-preview-stage{border-radius:0 0 12px 12px}
.form-field-actions{align-items:center;flex-wrap:wrap}
.enquiry-guides{margin-top:12px}.enquiry-guides-head h3{margin:2px 0 4px}.enquiry-guide-links{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.enquiry-guide-links a{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--ink);font-size:12px;font-weight:700;text-decoration:none}.enquiry-guide-links a:hover{background:#eef2f5}.enquiry-guide-articles{display:grid;gap:10px}.enquiry-guide-articles article{padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff}.enquiry-guide-articles h4{margin:0 0 6px}.enquiry-guide-articles p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
@media(min-width:900px){.forms-workspace{grid-template-columns:280px minmax(0,1fr)}.forms-list-panel{position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto}.forms-detail-panel{min-height:520px}.forms-detail-panel .forms-preview-card{max-width:760px}.enquiry-guide-articles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.form-view-tabs{position:sticky;top:0;z-index:4}.forms-detail-panel .forms-preview-stage{padding:10px}.forms-effective-help summary{font-size:12px}}

/* v34 compact global header: site context + view site + publication state. */
.portal-header.portal-header-compact{
	height:58px;
	min-height:58px;
	padding:8px 18px;
	gap:12px;
}
.portal-header-compact .site-name{min-width:0;flex:0 1 auto}
.portal-header-compact .site-switcher-compact .site-current-row{
	display:flex;
	align-items:center;
	gap:4px;
	min-height:34px;
	padding:0 9px;
	border:1px solid var(--line);
	border-radius:9px;
	background:#fff;
}
.portal-header-compact .site-switcher-compact .site-current-label{
	max-width:190px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	font-size:11px;
	color:#536273;
}
.portal-header-compact .site-switcher-compact .site-switch-toggle{
	position:static;
	width:22px;
	height:22px;
	padding:3px;
	border:0;
	background:transparent;
}
.portal-header-compact .header-actions{margin-left:auto;gap:7px;min-width:0}
.header-view-site{
	display:inline-flex;
	align-items:center;
	gap:4px;
	min-height:34px;
	padding:0 4px!important;
	border:0!important;
	background:transparent!important;
	color:#536273!important;
	font-size:11px!important;
	white-space:nowrap;
}
.header-view-site:hover,.header-view-site:focus-visible{color:#111827!important;text-decoration:underline}
.header-view-site svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-site-warning,.nav-warning{display:inline-flex;align-items:center;justify-content:center;color:#b96c00;font-size:12px;line-height:1}
.nav-warning{margin-left:4px}
.header-publish{
	min-height:34px;
	padding:0 12px!important;
	border-radius:9px!important;
	font-size:11px!important;
	font-weight:750!important;
	white-space:nowrap;
	transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.header-publish.has-changes{
	border-color:#e0a72d!important;
	background:#f3c75d!important;
	color:#2b210b!important;
	cursor:pointer;
}
.header-publish.has-changes:hover{background:#ecc052!important}
.header-publish.is-publishing{
	border-color:#1769d2!important;
	background:#1769d2!important;
	color:#fff!important;
	cursor:wait;
}
.header-publish.is-current{
	border-color:#d5dce4!important;
	background:#e9edf1!important;
	color:#7a8794!important;
	cursor:default;
}
.header-publish.is-failed{
	border-color:#c73939!important;
	background:#c73939!important;
	color:#fff!important;
}
.portal-header-compact .publication-status[hidden],
.portal-header-compact .save-state[hidden]{display:none!important}

@media(max-width:767px){
	.portal-header.portal-header-compact{
		height:54px;
		min-height:54px;
		padding:7px 10px;
		gap:6px;
	}
	.portal-header-compact .site-switcher-compact .site-current-row{
		min-height:32px;
		padding:0 7px;
	}
	.portal-header-compact .site-switcher-compact .site-current-label{
		max-width:112px;
		font-size:10px;
	}
	.portal-header-compact .header-actions{gap:5px}
	.header-view-site{min-height:32px;padding:0 2px!important;font-size:10px!important}
	.header-view-site svg{width:12px;height:12px}
	.header-publish{min-height:32px;padding:0 9px!important;font-size:10px!important}
	.nav-warning{font-size:10px;margin-left:2px}
}
.portal-page-title{margin:0;font-size:20px;line-height:1.15;font-weight:760;color:var(--ink)}
@media(max-width:767px){.portal-page-title{font-size:18px}}

/* ========================================================================
   v35 block editor hierarchy/actions and local-image background flow
   ======================================================================== */
.portal-php-editor .block-actions-menu{position:relative}
.portal-php-editor .block-actions-menu .blockActionsToggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-php-editor .block-actions-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:180;width:210px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(20,32,45,.14)}
.portal-php-editor .block-actions-popover[hidden]{display:none!important}
.portal-php-editor .block-actions-popover button{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:#fff;color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.portal-php-editor .block-actions-popover button:hover,.portal-php-editor .block-actions-popover button:focus-visible{background:#f2f4f6;outline:0}
.portal-php-editor .block-editor-footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px;padding:10px 0 2px}
.portal-php-editor .block-editor-footer-actions .btn{min-height:42px}
.portal-php-editor .block-editor-footer-actions .btn.danger{border-color:#f0c5c5;background:#fff;color:#a12626}
.portal-php-editor .block-editor-footer-actions .btn.danger:hover{background:#fff5f5}
.portal-php-editor .block-hidden-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;color:#74808c}
.portal-php-editor .block-hidden-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-php-editor .page-component-row.hidden-component{opacity:.72}
.portal-php-editor .field-icon-button.chooseLink{display:grid;place-items:center;min-width:40px}
.portal-php-editor .field-icon-button.chooseLink svg{width:17px;height:17px}
.portal-php-editor .background-image-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
.portal-php-editor .background-image-row label{min-width:0}
.portal-php-editor .background-image-actions{display:flex;flex-wrap:wrap;gap:8px}
.portal-php-editor .backgroundUploadImage{position:relative;cursor:pointer}
.portal-php-editor .block-add-status{margin:0 0 10px}
.portal-php-editor .editor-context-view[data-editor-context-view^="block:"] > .contextual-editor-controls > .editor-setting-accordion,
.portal-php-editor .editor-context-view[data-editor-context-view^="block:"] > .contextual-editor-controls > .editor-accordion-fields{flex:0 0 auto!important;margin:0!important}
@media(max-width:420px){.portal-php-editor .background-image-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}


/* v36: grouped block catalogue. */
.portal-php-editor .component-catalogue-groups{
    display:grid;
    gap:18px;
}
.portal-php-editor .component-catalogue-group{
    display:grid;
    gap:8px;
}
.portal-php-editor .component-catalogue-heading{
    margin:0;
    padding:2px 2px 1px;
    color:var(--text);
    font-size:14px;
    font-weight:800;
    line-height:1.25;
}
.portal-php-editor .component-catalogue-group + .component-catalogue-group{
    padding-top:2px;
    border-top:1px solid var(--line);
}
.portal-php-editor .component-catalogue-group + .component-catalogue-group .component-catalogue-heading{
    padding-top:14px;
}

/* v37: block editor typography/actions + compact header spacing. */
.portal-php-editor .editor-setting-accordion > summary,
.portal-php-editor .editor-accordion-fields > summary{
    font-size:15px!important;
    font-weight:700!important;
}
.portal-php-editor .block-editor-footer-actions .removeBlock{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:42px!important;
    padding:0 14px!important;
    border:1px solid #e1b6b6!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#a12626!important;
    font:inherit!important;
    font-weight:700!important;
    text-decoration:none!important;
    cursor:pointer!important;
}
.portal-php-editor .block-editor-footer-actions .removeBlock:hover,
.portal-php-editor .block-editor-footer-actions .removeBlock:focus-visible{
    background:#fff5f5!important;
    border-color:#d99090!important;
    outline:0!important;
}
.portal-header-compact .header-actions{
    gap:20px!important;
}
@media(max-width:767px){
    .portal-header-compact .header-actions{gap:20px!important}
}

/* v39 — site theme settings, account refinement and guide cards. */
.portal-guides-desktop{margin-top:auto}

.theme-settings-page{display:grid;gap:14px}
.theme-settings-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.theme-settings-intro h1{margin:.15rem 0 .45rem;font-size:26px}
.theme-settings-intro p{max-width:760px;margin:0}
.theme-settings-layout{display:grid;grid-template-columns:minmax(320px,520px) minmax(420px,1fr);gap:14px;align-items:start}
.theme-settings-controls{display:grid;gap:20px}
.theme-settings-controls label{font-weight:600;color:#17202a}
.theme-settings-controls label small{display:block;font-weight:400;color:#64748b;margin-top:6px;line-height:1.45}
.theme-settings-section{display:grid;gap:12px;padding-top:18px;border-top:1px solid #dce4ec}
.theme-settings-section-head h2{font-size:18px;margin:0 0 4px}.theme-settings-section-head p{margin:0}
.theme-colour-control{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px;align-items:end}
.theme-colour-input{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;margin-top:6px}
.theme-colour-input input[type=color]{width:48px;height:42px;padding:3px;border:1px solid #d6e0e8;border-radius:9px;background:#fff}
.theme-token-reset{width:38px;height:42px;border:1px solid #d6e0e8;background:#fff;border-radius:9px;font-size:18px;cursor:pointer}.theme-token-reset:hover{background:#f3f6f9}
.theme-font-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-settings-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:4px}.theme-save-message{font-size:13px;color:#526273}
.theme-preview-card{position:sticky;top:12px;padding:14px;overflow:hidden}.theme-preview-label{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 4px 12px}.theme-preview-label span{font-size:10px;letter-spacing:.08em}.theme-preview-label strong{font-size:13px}
.theme-specimen{font-family:var(--tb-font-body);background:var(--tb-colour-bg);color:var(--tb-colour-text);border-radius:var(--tb-theme-card-radius,12px);overflow:hidden;border:1px solid var(--tb-colour-border,rgba(18,24,32,.12));transition:background .18s,color .18s}
.theme-specimen-header{min-height:64px;padding:0 20px;display:flex;align-items:center;gap:18px;background:var(--tb-colour-surface);border-bottom:1px solid var(--tb-colour-border)}
.theme-specimen-header>strong{font-family:var(--tb-font-heading);font-size:18px}.theme-specimen-header nav{display:flex;gap:14px;margin-left:auto}.theme-specimen-header nav a{font-size:12px;text-decoration:none;color:var(--tb-colour-text)}
.theme-specimen-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:var(--tb-theme-button-radius,8px);border:1px solid var(--tb-colour-primary);background:var(--tb-colour-primary);color:var(--tb-colour-primary-contrast);font:600 12px var(--tb-font-body);text-decoration:none;cursor:default}
.theme-specimen-button.secondary{background:transparent;color:var(--tb-colour-text);border-color:var(--tb-colour-secondary)}
.theme-specimen-hero{padding:42px 28px;max-width:760px}.theme-specimen-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--tb-colour-accent)}
.theme-specimen h2,.theme-specimen h3{font-family:var(--tb-font-heading);font-weight:var(--tb-theme-heading-weight,700);letter-spacing:var(--tb-theme-heading-tracking,0);color:var(--tb-colour-text)}
.theme-specimen h2{font-size:clamp(28px,4vw,44px);line-height:1.04;margin:8px 0 12px}.theme-specimen p{line-height:1.58;color:var(--tb-colour-text-muted)}
.theme-specimen-actions{display:flex;gap:8px;margin-top:18px}.theme-specimen-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 28px 28px}
.theme-specimen-grid article{padding:18px;border-radius:var(--tb-theme-card-radius,12px);background:var(--tb-colour-surface);border:var(--tb-theme-card-border,1px solid var(--tb-colour-border));box-shadow:var(--tb-theme-card-shadow,none)}
.theme-specimen-grid article.accent{border-top:4px solid var(--tb-colour-accent)}.theme-specimen-grid h3{margin:8px 0 4px}.theme-specimen-grid p{font-size:13px;margin:0 0 8px}.theme-specimen-grid a{font-size:12px;color:var(--tb-colour-primary);font-weight:700}.theme-specimen-icon{width:32px;height:32px;border-radius:var(--tb-theme-icon-radius,50%);display:grid;place-items:center;background:var(--tb-colour-accent);color:var(--tb-colour-white)}

.account-business-details>label,.account-business-details .account-service-areas,.account-security-card label{font-weight:400}
.account-business-details>label{display:grid;gap:6px}.account-business-details>label>input,.account-business-details>label>select{font-weight:400}
.account-service-areas{display:grid;gap:8px}.account-service-areas-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.account-service-areas-head>div{display:grid;gap:3px}.account-service-areas-head>div>span{font-size:13px}.account-service-areas-head small{color:#64748b;line-height:1.4}
.service-area-list{display:flex;flex-wrap:wrap;gap:7px;min-height:4px}.service-area-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 8px;border:1px solid #d6e0e8;border-radius:9px;background:#fff;font-size:13px;cursor:grab}.service-area-pill.dragging{opacity:.45}.service-area-drag{color:#91a0af;font-size:11px}.service-area-pill button{border:0;background:transparent;padding:0 2px;color:#64748b;font-size:17px;line-height:1;cursor:pointer}.service-area-pill button:hover{color:#c24141}

.security-inline-panel{border:1px solid #dce4ec;border-radius:10px;background:#fff;overflow:hidden}.security-inline-panel>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 14px;cursor:pointer}.security-inline-panel>summary::-webkit-details-marker{display:none}.security-change-label{border:1px solid #d6e0e8;border-radius:8px;padding:6px 10px;font-size:12px;background:#fff}.security-inline-panel[open] .security-change-label{background:#f3f6f9}
.security-password-form{display:grid;gap:12px;padding:14px;border-top:1px solid #dce4ec}.security-password-form label{display:grid;gap:6px}.security-password-form label>small{color:#64748b}.security-password-wrap{position:relative}.security-password-wrap input{padding-right:44px;width:100%}.security-password-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;border-radius:7px;display:grid;place-items:center;cursor:pointer}.security-password-eye:hover{background:#f3f6f9}.security-password-eye svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.security-password-eye .eye-hide{display:none}.security-password-eye[aria-pressed="true"] .eye-show{display:none}.security-password-eye[aria-pressed="true"] .eye-hide{display:block}.security-password-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.security-password-actions span{font-size:12px;color:#526273}

.enquiry-guide-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}.enquiry-guide-cards>a{display:grid!important;grid-template-columns:92px minmax(0,1fr);gap:10px;align-items:center;padding:8px!important;border:1px solid #dce4ec!important;border-radius:11px!important;background:#fff!important;text-decoration:none!important;color:#17202a!important}.enquiry-guide-cards img{width:92px;height:64px;object-fit:cover;border-radius:7px}.enquiry-guide-cards span{display:grid;gap:3px}.enquiry-guide-cards strong{font-size:12px;line-height:1.25}.enquiry-guide-cards small{font-size:10px;line-height:1.35;color:#64748b;font-weight:400}

@media(max-width:900px){
	.theme-settings-layout{grid-template-columns:1fr}.theme-preview-card{position:static}.theme-preview-card{order:-1}.enquiry-guide-cards{grid-template-columns:1fr!important}
}
@media(max-width:700px){
	.portal-guides-desktop{display:none!important}
	.theme-settings-page{gap:10px}.theme-settings-intro{padding:16px}.theme-settings-intro h1{font-size:22px}.theme-settings-controls{padding:14px}.theme-font-grid{grid-template-columns:1fr}.theme-specimen-header{padding:0 14px;gap:10px}.theme-specimen-header nav{display:none}.theme-specimen-hero{padding:30px 18px}.theme-specimen-grid{grid-template-columns:1fr;padding:0 18px 18px}.theme-specimen-actions{flex-wrap:wrap}
	.account-service-areas-head{align-items:flex-start}.security-password-actions .btn{flex:1 1 auto}
}
@media(min-width:701px){.mobile-portal-more-menu a[href="/guides/"]{display:none}}

/* 2026-09-06 domain customer journey: keep customer actions separate from provider diagnostics. */
.domain-layout{grid-template-columns:1fr!important}
.customer-domain-summary,.domain-connection-choice,.domain-checklist,.domain-nameservers,.domain-dns,.domain-empty{grid-column:1!important}
.domain-customer-notice{margin-top:16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.domain-customer-notice p{margin:5px 0 0;color:var(--muted)}
.domain-customer-notice.ok{background:#f6fbf7}
.domain-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.domain-choice{display:block;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.domain-choice h3,.domain-choice b{margin:0}
.domain-choice p{margin:8px 0 0;color:var(--muted)}
.domain-choice ul{margin:10px 0 0 18px;padding:0;color:var(--muted)}
.domain-choice li+li{margin-top:5px}
.domain-choice-select .domain-choice{display:flex;align-items:flex-start;gap:11px;cursor:pointer}
.domain-choice-select .domain-choice>input[type="radio"]{width:16px;height:16px;min-width:16px;min-height:16px;margin:3px 0 0;padding:0;flex:0 0 16px}
.domain-choice-select .domain-choice>span{display:block;min-width:0;flex:1}
.domain-choice-select .domain-choice small{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:11px;font-weight:600}
.domain-choice-select .domain-choice:has(input:checked){border-color:#8ba7bf;box-shadow:0 0 0 2px rgba(76,112,143,.08)}
.domain-choice-actions{display:flex;justify-content:flex-end;margin-top:14px}
.domain-question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.domain-question{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.domain-question>b{display:block;margin-bottom:10px}
.domain-question-options{display:flex;flex-wrap:wrap;gap:12px}
.domain-question-options label{display:inline-flex;align-items:center;gap:5px;font-weight:400}
.domain-notes{display:grid;gap:7px;margin-top:14px}
.domain-notes textarea{width:100%;resize:vertical}
.domain-instruction ol{margin:9px 0 0 20px;padding:0}
.domain-instruction li+li{margin-top:5px}
.domain-temporary{display:flex;flex-direction:column;gap:4px;margin-top:16px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
@media(max-width:767px){.domain-choice-grid,.domain-question-grid{grid-template-columns:1fr}.domain-choice-actions{justify-content:stretch}.domain-choice-actions .btn{width:100%;justify-content:center}}

/* 2026-09-06 domain connection choice: plain-language copy with optional technical detail. */
.domain-choice-select .domain-choice{font-weight:400}
.domain-choice-select .domain-choice>span{font-weight:400}
.domain-choice-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.domain-choice-title>b{font-weight:650;color:var(--text)}
.domain-choice-select .domain-choice p,
.domain-choice-select .domain-choice ul,
.domain-choice-select .domain-choice li{font-weight:400;line-height:1.5}
.domain-choice-select .domain-choice p{font-size:14px}
.domain-choice-select .domain-choice ul{font-size:13px}
.domain-tech-info{position:relative;margin-left:auto}
.domain-tech-info>summary{list-style:none;width:20px;height:20px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}
.domain-tech-info>summary::-webkit-details-marker{display:none}
.domain-tech-info[open]>summary{background:var(--soft);color:var(--text)}
.domain-tech-info>div{position:absolute;right:0;top:28px;z-index:30;width:min(340px,75vw);padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12);font-weight:400}
.domain-tech-info>div>b{display:block;margin-bottom:5px;font-size:12px}
.domain-tech-info>div p{margin:0!important;font-size:12px!important;line-height:1.45!important;color:var(--muted)}
@media(max-width:767px){.domain-tech-info{margin-left:0}.domain-tech-info>div{left:0;right:auto}}

/* v45: progressive existing-domain setup — only show the questions needed for the chosen route. */
.domain-checklist[hidden],.domain-question-branch[hidden]{display:none!important}
.domain-question-title{display:flex;align-items:flex-start;gap:8px}
.domain-question-title>b{font-weight:650;color:var(--text);line-height:1.35}
.domain-question-info{margin-left:auto;flex:0 0 auto}
.domain-checklist .domain-card-head h3{margin-bottom:4px}
.domain-checklist .domain-card-head p,.domain-question-options label,.domain-notes,.domain-notes span{font-weight:400}
.domain-question{background:#fff}
.domain-question-grid-short{grid-template-columns:repeat(2,minmax(0,1fr))}
.domain-ns-columns-single{grid-template-columns:1fr}
.domain-connection-choice .domain-choice>span>p{color:var(--muted);font-weight:400}
@media(max-width:767px){.domain-question-grid-short{grid-template-columns:1fr}}

/* 2026-09-06: DNS inventory refresh stays secondary to the records themselves. */
.domain-record-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.domain-refresh-dns{padding:6px 9px;font-size:12px;min-height:0}
