/* Editor chrome stays outside the authored website canvas. */
.pe-workspace {
  --pe-ink:#212825;
  --pe-sub:#54645d;
  --pe-line:#dce2de;
  --pe-accent:#285440;
  --pe-light:#e9f2eb;
  --pe-orange:#b83d1b;
  --pe-rail-width:70px;
  --pe-panel-width:288px;
  background:#edf0ed;
  color:var(--pe-ink);
  font-family:"Instrument Sans","Segoe UI",Arial,sans-serif;
}
.pe-workspace .pe-top, .pe-workspace .pe-bar {position:relative;z-index:4;flex:0 0 auto;flex-wrap:nowrap;gap:12px}
.pe-workspace .pe-top {min-height:58px;padding:7px 20px 7px 14px;background:#fff;border-bottom:1px solid var(--pe-line)}
.pe-workspace .pe-top .pe-identity {min-width:0;gap:14px;flex:1 1 auto}
.pe-workspace .pe-top .pe-back {display:inline-flex;align-items:center;gap:7px;flex:none;padding:5px 4px;min-height:36px;border:0;border-radius:6px;background:transparent;color:var(--pe-ink)}
.pe-workspace .pe-top .pe-title {display:inline-flex;align-items:baseline;gap:3px;font:760 18px/1.1 "Instrument Sans","Segoe UI",sans-serif;letter-spacing:-.08em}
.pe-workspace .pe-title>span {font-weight:450;letter-spacing:-.06em}
.pe-brand-mark {display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);flex:none;width:23px;height:23px;gap:1px}
.pe-brand-mark i {display:block;min-width:0;background:#c74520;border-radius:0 80% 0 80%}
.pe-brand-mark i:nth-child(2),.pe-brand-mark i:nth-child(3) {border-radius:80% 0 80% 0}
.pe-workspace .pe-site-name {display:block;min-width:0;max-width:38vw;flex:0 1 auto;border-left:1px solid var(--pe-line);padding:4px 0 4px 14px;color:#43524c;font-size:13px;font-weight:560}
.pe-workspace .pe-save-state {flex:0 0 auto;color:#516158;font-size:12px;font-weight:550;line-height:1.25;white-space:nowrap}
.pe-workspace .pe-history {gap:0;padding:0 9px 0 0;border:0;border-right:1px solid var(--pe-line)}
.pe-workspace .pe-top .pe-history button {display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;color:#2f4037;font:500 21px/1 Arial,sans-serif}
.pe-workspace .pe-top .pe-history button:disabled {opacity:.3}
.pe-workspace .pe-top .pe-actions {margin:0;gap:7px}
.pe-workspace .pe-top .pe-actions button,.pe-workspace .pe-bar button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border-radius:7px;padding:6px 12px;white-space:nowrap;font-size:13px;font-weight:620;line-height:1.15}
.pe-workspace .pe-top [data-a="preview"] {border-color:transparent;background:transparent}
.pe-workspace .pe-top [data-a="publish"] {padding-inline:17px;background:var(--pe-orange);border-color:var(--pe-orange);color:#fff}
.pe-workspace .pe-top [data-a="publish"]:hover:not(:disabled) {background:#9a3114;border-color:#9a3114}
.pe-workspace .pe-bar {min-height:45px;padding:4px 20px 4px 15px;justify-content:flex-start;gap:12px;background:#fafbf9;border-bottom:1px solid var(--pe-line)}
.pe-current-page {display:flex;min-width:0;align-items:center;gap:6px;color:var(--pe-sub);font-size:12px;font-weight:590}
.pe-workspace .pe-bar .pe-page-select {flex:none;width:auto;max-width:min(24vw,200px);min-width:72px;min-height:31px;margin:0;background:#fff;border-color:#cfd7d0;color:#243b30;padding:3px 6px;font-size:13px;font-weight:620}
.pe-workspace .pe-bar .pe-template-action,.pe-workspace .pe-bar .pe-guides {min-height:31px;padding:5px 8px;color:#394c40;background:transparent;border:1px solid transparent}
.pe-workspace .pe-bar .pe-template-action {border-left:1px solid var(--pe-line);border-radius:0;padding-left:13px}
.pe-workspace .pe-bar .pe-domain-action {min-height:30px;padding:4px 8px;color:#285440;border:1px solid #c8d8cb;background:#f2f7f1;font-size:12px}
.pe-workspace .pe-bar .pe-domain-action[hidden] {display:none}
.pe-workspace .pe-bar .pe-modes {margin-left:auto;gap:2px;flex:none;padding:2px;border:1px solid #d9e1da;border-radius:7px;background:#eef2ee}
.pe-workspace .pe-bar .pe-modes button {gap:5px;min-height:26px;padding:3px 8px;border-radius:5px;font-size:12px}
.pe-workspace .pe-bar .pe-modes button[aria-pressed=true] {color:#1f4931;background:#fff;box-shadow:0 1px 3px #172a1e24}
.pe-workspace .pe-bar .pe-guides[aria-pressed=true] {color:#204b36;background:var(--pe-light);border-color:#abc7b4}
.pe-workspace .pe-canvas-hint {min-width:0;color:#53645c;font-size:12px;line-height:1.3;white-space:nowrap}
.pe-workspace .pe-whole-site {border-top:1px solid var(--pe-line);padding-top:8px;margin-top:12px}
.pe-workspace .pe-whole-site summary {padding:7px 0;color:var(--pe-accent);font-weight:650;cursor:pointer}
.pe-workspace.pe-preview .pe-canvas-hint,.pe-workspace.pe-placing .pe-canvas-hint {display:none}
@media(max-width:1050px),(pointer:coarse) {.pe-workspace .pe-canvas-hint {display:none}}
.pe-workspace .pe-bar .pe-tools,.pe-workspace .pe-place-done[hidden],.pe-workspace.pe-preview .pe-template-action,.pe-workspace.pe-preview .pe-guides {display:none}
.pe-workspace .pe-frame {min-width:0;isolation:isolate}
.pe-workspace .pe-tabs {display:flex;position:relative;z-index:3;flex:0 0 var(--pe-rail-width);width:var(--pe-rail-width);min-width:0;min-height:0;flex-direction:column;align-items:stretch;gap:4px;overflow-y:auto;overscroll-behavior:contain;padding:11px 6px;border:0;border-right:1px solid var(--pe-line);background:#fff;scrollbar-width:thin}
.pe-workspace .pe-tabs .pe-rail-tool {position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;flex-direction:column;gap:5px;width:100%;min-height:52px;margin:0;padding:6px 2px;border:0;border-radius:8px;box-shadow:none;color:#40514a;background:transparent;font:580 11px/1.1 "Instrument Sans","Segoe UI",sans-serif;cursor:pointer}
.pe-workspace .pe-tabs .pe-rail-tool:hover {background:#f0f3ee}
.pe-workspace .pe-tabs .pe-rail-tool[aria-pressed=true] {color:#843419;background:#faeade}
.pe-workspace .pe-rail-tool[aria-pressed=true]::before {content:"";position:absolute;left:-6px;top:12px;bottom:12px;width:3px;border-radius:0 2px 2px 0;background:var(--pe-orange)}
.pe-workspace .pe-rail-tool[data-tool="layers"] {margin-top:7px}
.pe-workspace .pe-panel {position:absolute;inset:0 auto 0 var(--pe-rail-width);display:none;width:var(--pe-panel-width);max-width:min(88vw,380px);min-width:0;min-height:0;background:#fff;box-shadow:5px 0 20px #233a2821;border-right:1px solid var(--pe-line);z-index:2}
.pe-workspace.pe-dock-right .pe-panel {inset:0 0 0 auto;border-left:1px solid var(--pe-line);border-right:0;box-shadow:-5px 0 20px #233a2821}
.pe-workspace.pe-panel-open .pe-panel {display:flex}
.pe-workspace .pe-panel .pe-panel-close {order:2;position:static;display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;width:auto;min-height:36px;margin:4px 12px 9px;padding:3px 10px;border:1px solid #d4dcd5;border-radius:7px;font:400 19px/1 Arial,sans-serif;color:#354b3c;background:#f7f9f6}
.pe-workspace .pe-panel-close::after {content:"Close panel";font:600 12px/1.2 "Instrument Sans","Segoe UI",sans-serif}
.pe-workspace .pe-panel .pe-panel-close:hover {background:#edf3ed}
.pe-workspace .pe-panel-scroll {order:1;min-width:0;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:19px 16px 18px;scrollbar-gutter:stable;scrollbar-width:thin}
.pe-workspace .pe-panel h2 {font-size:22px;line-height:1.15;font-weight:650;letter-spacing:-.045em}
.pe-workspace .pe-note,.pe-workspace .pe-field,.pe-workspace .pe-panel .pe-child .pe-select-layer {font-size:13px}
.pe-workspace .pe-work {min-width:0;min-height:0;position:static}
.pe-workspace .pe-canvas-scroll {position:relative;padding:clamp(14px,2.45vw,38px);background:#ebeeea;scrollbar-gutter:stable}
.pe-workspace .pe-page {position:relative;min-width:0;box-shadow:0 0 0 1px #bfc9c0,0 5px 20px #2d42340f}
.pe-workspace.pe-layout-guides .pe-page::after {content:"";position:absolute;z-index:1;inset:0 5%;pointer-events:none;border-inline:1px dashed #5171ae8c}
.pe-workspace.pe-preview .pe-tabs,.pe-workspace.pe-preview .pe-panel {display:none}
.pe-workspace .pe-status {z-index:7}
@media(min-width:721px) {.pe-workspace.pe-panel-open.pe-dock-right .pe-status {right:calc(var(--pe-panel-width) + 14px)}}
.pe-studio.pe-workspace:not(.pe-preview):not(.pe-placing) .pe-page [data-item]:not([contenteditable]) {touch-action:pan-y pinch-zoom}
.pe-studio.pe-workspace:not(.pe-preview):not(.pe-placing) .pe-page .pe-picked[data-item]:not([contenteditable]) {touch-action:none}

/* Small line icons for editing commands. */
.pe-ui-icon {position:relative;display:inline-block;flex:0 0 20px;width:20px;height:20px;box-sizing:border-box;color:inherit;pointer-events:none}
.pe-ui-icon::before,.pe-ui-icon::after {content:"";position:absolute;box-sizing:border-box}
.pe-icon-add::before {inset:2px;border:1.7px solid currentColor;border-radius:4px}
.pe-icon-add::after {inset:5px;background:linear-gradient(currentColor,currentColor) center/100% 1.6px no-repeat,linear-gradient(currentColor,currentColor) center/1.6px 100% no-repeat}
.pe-icon-sections::before {inset:2px 1px;border:1.6px solid currentColor;border-radius:3px;background:linear-gradient(currentColor,currentColor) 0 38%/100% 1.5px no-repeat}
.pe-icon-sections::after {bottom:3px;top:9px;left:8px;width:1.5px;background:currentColor}
.pe-icon-pages::before {inset:1px 3px 4px 4px;border:1.6px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) center 39%/56% 1.5px no-repeat,linear-gradient(currentColor,currentColor) center 65%/56% 1.5px no-repeat}
.pe-icon-pages::after {inset:5px 6px 1px 1px;border:solid currentColor;border-width:0 0 1.6px 1.6px;border-radius:0 0 0 2px}
.pe-icon-media::before {inset:2px 0;border:1.6px solid currentColor;border-radius:3px;background:radial-gradient(circle at 30% 30%,currentColor 0 1.4px,transparent 1.7px)}
.pe-icon-media::after {width:9px;height:9px;left:8px;top:9px;transform:rotate(45deg);border:solid currentColor;border-width:1.6px 0 0 1.6px}
.pe-icon-layers::before,.pe-icon-layers::after {left:4px;top:2px;width:12px;height:12px;border:1.6px solid currentColor;border-radius:1.5px;transform:rotate(45deg) skew(-13deg,-13deg)}
.pe-icon-layers::after {top:7px;border-width:0 1.6px 1.6px 0}
.pe-icon-edit::before {width:6px;height:15px;top:1px;left:8px;border:1.5px solid currentColor;border-radius:2px 2px 0 0;transform:rotate(41deg)}
.pe-icon-edit::after {bottom:1px;left:2px;right:2px;height:1.5px;background:currentColor}
.pe-icon-site::before {inset:3px 1px;background:repeating-linear-gradient(0deg,currentColor 0 1.4px,transparent 1.4px 6px)}
.pe-icon-site::after {width:3px;height:5px;top:2px;left:5px;background:currentColor;box-shadow:7px 6px 0 currentColor,1px 12px 0 currentColor}
.pe-bar .pe-ui-icon {width:16px;height:16px;flex-basis:16px}
.pe-icon-desktop::before {inset:1px 0 4px;border:1.4px solid currentColor;border-radius:2px}
.pe-icon-desktop::after {height:3px;bottom:1px;left:4px;right:4px;border-bottom:1.4px solid currentColor;background:linear-gradient(currentColor,currentColor) center/1.4px 100% no-repeat}
.pe-icon-mobile::before {inset:0 3.5px;border:1.4px solid currentColor;border-radius:2.5px}
.pe-icon-mobile::after {width:3px;height:1.3px;bottom:2.5px;left:6.5px;background:currentColor}
.pe-icon-guides::before {inset:1px 2px;border-inline:1.5px dashed currentColor}
.pe-icon-guides::after {inset:4px 0;border-block:1.4px solid currentColor}

@media(max-width:920px) {
  .pe-workspace {--pe-panel-width:254px;--pe-rail-width:62px}
  .pe-workspace .pe-top,.pe-workspace .pe-bar {padding-inline:12px}
  .pe-workspace .pe-canvas-scroll {padding:14px}
}
@media(max-width:720px) {
  .pe-workspace {--pe-panel-width:100%}
  .pe-workspace .pe-top {min-height:49px;gap:5px;padding:5px 7px}
  .pe-workspace .pe-top .pe-identity {gap:7px}
  .pe-workspace .pe-top .pe-identity:has(.pe-save-state) {flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
  .pe-workspace .pe-identity:has(.pe-save-state) .pe-back {min-height:23px;padding:0 3px}
  .pe-workspace .pe-save-state {padding-left:3px;font-size:10.5px;line-height:1.2}
  .pe-workspace .pe-top .pe-title {font-size:16px}
  .pe-workspace .pe-site-name {display:none}
  .pe-workspace .pe-top .pe-actions {gap:3px}
  .pe-workspace .pe-top .pe-actions button {min-height:34px;padding:6px 9px;font-size:12px}
  .pe-workspace .pe-history {padding-right:3px}
  .pe-workspace .pe-top .pe-history button {width:26px}
  .pe-workspace .pe-bar {gap:5px;min-height:43px;padding:4px 7px}
  .pe-workspace .pe-bar .pe-tools {display:inline-flex;min-height:32px;padding:5px 8px}
  .pe-workspace .pe-bar .pe-domain-action {display:none}
  .pe-workspace .pe-bar .pe-current-page {flex:0 1 auto;gap:3px}
  .pe-workspace .pe-bar .pe-page-select {width:auto;max-width:21vw;min-width:60px}
  .pe-workspace .pe-bar .pe-template-action {font-size:12px;padding:5px}
  .pe-workspace .pe-bar .pe-modes {margin-left:auto;gap:0}
  .pe-workspace .pe-bar .pe-modes button,.pe-workspace .pe-bar .pe-guides {min-width:26px;padding:3px 5px}
  .pe-workspace .pe-bar .pe-modes button span,.pe-workspace .pe-bar .pe-guides span {display:none}
  .pe-workspace .pe-frame {flex-direction:column}
  .pe-workspace .pe-work {order:0;flex:1 1 0}
  .pe-workspace .pe-tabs {order:1;display:none;position:relative;inset:auto;flex:0 0 auto;flex-direction:row;align-items:stretch;width:100%;box-sizing:border-box;gap:2px;overflow:auto hidden;padding:3px 4px;border:solid var(--pe-line);border-width:1px 0;background:#f7f9f6;scrollbar-width:thin}
  .pe-workspace.pe-panel-open .pe-tabs {display:flex}
  .pe-workspace.pe-panel-open .pe-canvas-grips {display:none}
  .pe-workspace .pe-tabs .pe-rail-tool {flex:1 0 auto;width:auto;min-height:40px;margin:0;padding:4px 6px;gap:2px;border-radius:6px;font-size:11px;white-space:nowrap}
  .pe-workspace .pe-rail-tool .pe-ui-icon {flex:0 0 17px;width:17px;height:17px}
  .pe-workspace .pe-rail-tool[aria-pressed=true]::before {display:none}
  .pe-workspace .pe-panel,.pe-workspace.pe-dock-right .pe-panel {order:2;position:relative;inset:auto;flex:0 0 min(40%,340px);width:100%;max-width:none;box-sizing:border-box;box-shadow:none;border:0}
  .pe-workspace .pe-canvas-scroll {padding:6px}
  .pe-workspace .pe-panel-scroll {padding:14px max(13px,env(safe-area-inset-right)) 14px max(13px,env(safe-area-inset-left))}
  .pe-workspace .pe-panel .pe-panel-close {min-height:36px;margin:3px 12px max(6px,env(safe-area-inset-bottom))}
  .pe-workspace.pe-panel-open .pe-status {bottom:calc(min(40dvh,340px) + 56px)}
  .pe-workspace .pe-field :is(input:not([type=color]),textarea,select) {font-size:16px}
  .pe-workspace.pe-preview .pe-tabs {display:none}
}
@media(max-width:720px) and (max-height:560px) {
  .pe-workspace .pe-tabs .pe-rail-tool {min-height:32px}
  .pe-workspace .pe-rail-tool .pe-ui-icon {display:none}
  .pe-workspace .pe-panel,.pe-workspace.pe-dock-right .pe-panel {flex-basis:38%}
}
@media(max-width:450px) {
  .pe-workspace .pe-top .pe-title>span {display:none}
  .pe-workspace .pe-bar .pe-current-page>span {display:none}
  .pe-workspace .pe-bar .pe-guides {display:none}
  .pe-workspace .pe-bar .pe-template-action {border-left:0}
  .pe-workspace.pe-placing .pe-bar .pe-template-action {display:none}
}
@media(max-width:355px) {
  .pe-workspace .pe-brand-mark {width:19px;height:19px}
  .pe-workspace .pe-top .pe-title {font-size:15px}
  .pe-workspace .pe-top .pe-actions button {padding:5px 6px}
  .pe-workspace .pe-bar .pe-template-action {font-size:11px;white-space:normal;text-align:left;max-width:60px}
}
