/* Pressroom India designer v4 — original, keyboard-friendly interface */
body.pd-mode{overflow:hidden;background:#f6f7fa}
body.pd-mode>header,body.pd-mode>footer{display:none!important}
body.pd-mode main#app{width:100%;max-width:none;margin:0;padding:0}
.pd-shell{height:100dvh;min-height:460px;display:flex;flex-direction:column;background:#f4f6f8;color:#172032;font:14px/1.43 "DM Sans",Arial,sans-serif;--pd-ink:#16213b;--pd-line:#dbe1ea;--pd-blue:#167ca8;--pd-strong:#073665}
.pd-shell *{box-sizing:border-box}
.pd-shell button,.pd-shell select,.pd-shell input,.pd-shell textarea{font:inherit}
.pd-shell button{border:0;cursor:pointer}
.pd-shell button:focus-visible,.pd-gallery button:focus-visible{outline:3px solid #23a4d0;outline-offset:2px}
.pd-shell button:disabled{opacity:.4;cursor:not-allowed}
.pd-shell input,.pd-shell select,.pd-shell textarea{border:1px solid #d1dae5;border-radius:6px;background:#fff;color:#192538;padding:9px;width:100%;min-width:0}
.pd-shell input[type=color]{padding:2px;height:38px;width:42px;border:1px solid #c5d0dc;border-radius:6px;cursor:pointer}
.pd-shell input[type=range]{padding:0;border:0;accent-color:#168bb7}
.pd-topbar{height:68px;flex:none;background:#fff;display:grid;grid-template-columns:minmax(225px,1fr) auto minmax(260px,1fr);align-items:center;padding:0 16px;gap:16px;border-bottom:1px solid #dde3ec;box-shadow:0 1px 2px #090f2010;z-index:6}
.pd-top-product{display:flex;align-items:center;gap:9px;min-width:0}
.pd-top-product>div{min-width:0;display:grid;gap:2px}
.pd-top-product strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}
.pd-top-product small{color:#607086;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-back{border:1px solid #e4e9ed!important;border-radius:7px;padding:6px 9px;font-size:22px;line-height:1;text-decoration:none}
.pd-top-brand{border-radius:50%;background:linear-gradient(135deg,#154e86,#12abb0);color:#fff;width:29px;height:29px;display:grid;place-items:center;font-size:17px}
.pd-toolbar{display:flex;align-items:center;gap:4px;border-radius:10px;background:#f5f7fa;padding:5px}
.pd-toolbar button{background:transparent;color:#3e536a;min-width:34px;height:33px;border-radius:6px;font-size:21px}
.pd-toolbar button:hover,.pd-toolbar button.active{background:#dceefa;color:#095f91}
.pd-toolbar-divider{width:1px;background:#d6dee7;height:22px;margin:0 4px}
.pd-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.pd-save-state{font-size:11px;color:#728198;white-space:nowrap;max-width:115px;overflow:hidden;text-overflow:ellipsis}
.pd-button{border-radius:8px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px!important;font-size:12px!important;font-weight:750!important;white-space:nowrap}
.pd-button.primary,.pd-gal-primary{background:linear-gradient(115deg,#093a7b,#148cad);color:#fff;border:0}
.pd-button.secondary{background:#fff;border:1px solid #c8d4df;color:#23415d}
.pd-button:hover,.pd-gal-primary:hover{filter:brightness(.95)}
.pd-body{display:grid;grid-template-columns:76px 298px minmax(0,1fr) 270px;flex:1;min-height:0}
.pd-rail{background:linear-gradient(#050f34,#10417e 72%,#167f9e);display:flex;flex-direction:column;gap:4px;padding:8px 5px;overflow-y:auto;scrollbar-width:thin;z-index:2}
.pd-rail button{background:transparent;color:#fff;padding:9px 2px;border-radius:9px;display:flex;align-items:center;flex-direction:column;gap:2px;min-height:60px}
.pd-rail button span{font:27px/1.1 Georgia,serif;min-height:30px}
.pd-rail button small{color:inherit;font-size:10px;font-weight:700}
.pd-rail button.active,.pd-rail button:hover{color:#0e679b;background:#fff}
.pd-left,.pd-right{background:#fff;min-width:0;display:flex;flex-direction:column;border-right:1px solid #e1e6ed}
.pd-right{border-left:1px solid #dce3ec;border-right:0}
.pd-panel-title{height:52px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 19px;border-bottom:1px solid #e1e7ef}
.pd-panel-title strong{font-size:15px}
.pd-panel-title button{color:#6b8497;background:#f1f5f8;padding:4px 9px;border-radius:7px;font-size:20px}
.pd-tab-body,#pd-properties{overflow-y:auto;overscroll-behavior:contain;padding:17px;min-height:0;flex:1;scrollbar-width:thin}
.pd-stack{display:grid;gap:12px;align-content:start}
.pd-stack h4{font-size:13px;margin:12px 0 0;border-bottom:1px solid #ebeff4;padding-bottom:6px}
.pd-muted{font-size:12px;color:#7b8795;margin:2px 0 8px}
.pd-stack label,#pd-properties label{display:grid;gap:5px;font-size:11px;color:#4e5d6d;font-weight:700}
.pd-add-type{border-radius:8px!important;border:1px solid #d4dde5!important;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f9fbfd;padding:13px 11px;text-align:left;color:#15263e}
.pd-add-type:hover{border-color:#45b0c6!important;background:#eefbff}
.pd-add-type span{font-size:16px;font-weight:700}
.pd-add-type .h1{font-size:26px}.pd-add-type .h2{font-size:19px;font-family:Georgia,serif}
.pd-add-type small{font-size:10px;color:#647789}
.pd-suggest-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pd-suggest-grid button{background:#f6f7f9;border:1px solid #d9dfe5!important;min-height:88px;padding:8px;text-align:center;color:#243146;font:700 13px/1.2 Georgia,serif;word-break:break-word;border-radius:6px}
.pd-suggest-grid button:hover{background:#e5f7fc;border-color:#2e95b9!important}
.pd-drop{border:1px dashed #8eb7d2!important;border-radius:10px!important;background:#f3f8fc;min-height:174px;padding:22px;display:flex!important;justify-content:center;align-items:center;gap:9px;text-align:center;cursor:pointer;position:relative}
.pd-drop span{font-size:36px;color:#1893b9}.pd-drop strong{font-size:13px;color:#1b5075}.pd-drop small{color:#7b8b9b;font-size:11px}.pd-drop.dragging{background:#cceffd}
.pd-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%}
.pd-asset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pd-asset-grid button{aspect-ratio:1;background:#f4f7fa;border:1px solid #dfe6ec!important;border-radius:7px;overflow:hidden;padding:3px}
.pd-asset-grid img{width:100%;height:100%;object-fit:cover}
.pd-template-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.pd-template-tiles button{padding:4px;border:1px solid #d8e0e8!important;background:#fff;border-radius:8px;text-align:left;min-width:0}
.pd-template-tiles button:hover{border-color:#228fac!important}
.pd-template-tiles button[hidden]{display:none}
.pd-template-swatch{height:74px;display:grid;place-items:center;border-radius:5px;margin-bottom:6px;position:relative;overflow:hidden}
.pd-template-swatch:before{content:'';background:#fff2;position:absolute;left:66%;width:35%;height:100%}
.pd-template-swatch em{font-style:normal;font-weight:850;font-size:14px;text-align:center;position:relative;overflow:hidden}
.pd-template-tiles strong{font-size:11px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 5px}
.pd-template-tiles small{font-size:10px;color:#69798a;display:block;margin:0 5px 4px}
.pd-clip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pd-clip-grid button{background:#f6f8fa;padding:8px;border-radius:7px;border:1px solid #dee4e9!important;display:grid;justify-items:center;gap:4px;min-height:82px}
.pd-clip-grid button:hover{border-color:#1581a2!important}
.pd-clip-grid button span{font-size:33px;line-height:1.2;color:#192e48}
.pd-clip-grid button small{font-size:9px;color:#667587}
.pd-tip{background:#eef7fa;border:1px solid #d2e8ed;border-radius:8px;padding:12px;font-size:11px;color:#48687d}
.pd-color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}
.pd-color-grid button{aspect-ratio:1;border:1px solid #bac7d0!important;border-radius:50%;box-shadow:0 0 0 2px #fff inset}
.pd-pattern-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.pd-pattern-grid button{padding:10px 2px;background:#f3f6f8;border:1px solid #d9e2eb!important;border-radius:7px;text-transform:capitalize}
.pd-pattern-grid button.active{background:#d9eef7;color:#075d84;border-color:#69bedb!important}
.pd-layer-actions{display:flex;gap:6px}.pd-layer-actions button{flex:1;padding:9px 5px;border-radius:6px;background:#e8eef4;font-size:11px}
.pd-layer-row{display:flex;align-items:center;border:1px solid #e1e6ed;border-radius:6px;margin:5px 0}
.pd-layer-row.active{background:#eff9fd;border-color:#80c8e2}
.pd-layer-row button{background:transparent;padding:9px 5px;font-size:12px;white-space:nowrap}
.pd-layer-row [data-select]{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis}
.pd-workspace{background:#e9edf2;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.pd-work-controls{flex:none;height:42px;background:#fbfcfd;border-bottom:1px solid #d8dfe9;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.pd-work-controls>div{display:flex;align-items:center;gap:10px;font-size:11px;color:#2a6d90}
.pd-work-controls input[type=color]{height:28px;width:28px}
.pd-work-controls label{display:flex;align-items:center;gap:5px;font-size:11px}
.pd-work-controls select{width:77px;padding:3px 6px;font-size:11px}
.pd-mini{background:#fff;border:1px solid #d8e0e6!important;padding:5px 9px!important;border-radius:6px;font-size:11px;color:#28526c}
.pd-mini:hover,.pd-mini.active{background:#e2f3fa;border-color:#74bcd6!important}
.pd-work-scroll{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;display:grid;place-items:center;padding:34px;scrollbar-width:thin}
.pd-canvas-grid{display:grid;grid-template-areas:"corner rh" "rv art";align-items:stretch;justify-items:stretch;box-shadow:0 7px 30px #20324a25}
.pd-ruler-corner{grid-area:corner;background:#f7f8fa;border-bottom:1px solid #dee3e8;border-right:1px solid #dee3e8}
.pd-ruler-h{grid-area:rh;background:#f7f8fa}
.pd-ruler-v{grid-area:rv;background:#f7f8fa}
.pd-art{grid-area:art;position:relative;box-shadow:0 4px 12px #253a5129;background:#fff;line-height:0}
.pd-art #pd-canvas{display:block;width:100%;height:100%;object-fit:fill;touch-action:none;cursor:default}
.pd-trim,.pd-safe,.pd-selection-guide{position:absolute;pointer-events:none;display:none}
.pd-art.pd-show-guides .pd-trim{display:block;inset:var(--pd-trim-y) var(--pd-trim-x);border:1.5px dashed #e74c5a}
.pd-art.pd-show-guides .pd-safe{display:block;inset:var(--pd-safe-y) var(--pd-safe-x);border:1.5px dashed #35b277}
.pd-bottom{height:83px;flex:none;background:#fdfefe;border-top:1px solid #d7dfe7;display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,1fr) minmax(150px,1fr);align-items:center;padding:7px 16px;gap:12px}
.pd-zoom{display:flex;align-items:center;gap:7px}.pd-zoom button{background:#e8eff5;color:#225477;border-radius:50%;height:27px;width:27px;font-weight:800}
.pd-zoom input{max-width:110px}.pd-zoom output{font-size:11px;color:#3b5163;width:40px}
.pd-page-tabs{display:flex;gap:10px;align-items:center;justify-content:center}
.pd-page-tabs button{background:transparent;border:2px solid transparent!important;border-radius:5px;padding:3px;display:grid;gap:0;text-align:center;min-width:66px}
.pd-page-tabs button.active{border-color:#148abe!important;background:#e8f7ff}
.pd-page-tabs canvas{display:block;width:60px;height:39px;object-fit:contain;box-shadow:0 1px 5px #13355028;background:#fff}
.pd-page-tabs small{font-size:10px;color:#31526b}
.pd-foot-note{text-align:right;font-size:11px;color:#7b8793}
.pd-properties-main{display:grid;gap:13px;align-content:start}
.pd-prop-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9edf1;padding:0 0 10px;text-transform:capitalize}
.pd-prop-heading>div{display:flex;gap:4px}.pd-prop-heading button{background:#ecf3f7;border-radius:6px;padding:5px;font-size:14px}
.pd-prop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pd-properties-main label>textarea{min-height:80px}
.pd-prop-actions{display:flex;gap:8px}.pd-prop-actions button{flex:1;padding:9px;border-radius:6px;background:#ebf1f5;color:#344a65}
.pd-prop-empty{text-align:center;color:#7a8795;padding:32px 8px}.pd-prop-empty>span{font-size:42px;color:#a6bac8}.pd-prop-empty p{font-size:13px}
.pd-prop-empty .pd-name-label{text-align:left;margin-top:30px}
.pd-preflight{flex:none;background:#f7fafc;border-top:1px solid #e1e6ec;padding:12px 14px;max-height:185px;overflow:auto}
.pd-preflight strong{font-size:12px}.pd-preflight p{font-size:11px;color:#60738c;margin:4px 0}
.pd-preflight .ok{color:#176748}.pd-preflight .warn{color:#9a5e10}.pd-preflight small{display:block;color:#8090a0;font-size:10px}
.pd-alert{position:fixed;z-index:80;bottom:105px;left:50%;transform:translateX(-50%);padding:10px 18px;border-radius:10px;box-shadow:0 9px 26px #09122d38;background:#152a43;color:white;max-width:85vw;text-align:center}
.pd-alert[hidden]{display:none}
.pd-proof-modal,.pd-preview-dialog{border:0!important;border-radius:12px!important;overflow:hidden!important;width:min(1060px,94vw);max-width:94vw!important;max-height:93vh;box-shadow:0 30px 100px #0c1726a8;padding:0!important;background:#fff;color:#142c46}
.pd-proof-modal::backdrop,.pd-preview-dialog::backdrop{background:#071225c9}
.pd-proof-top,.pd-preview-head{display:flex;align-items:center;justify-content:space-between;padding:16px 23px;border-bottom:1px solid #d9e4ed;background:#fff}
.pd-proof-top>div,.pd-preview-head>div{display:grid;gap:2px}.pd-proof-top strong,.pd-preview-head strong{font-size:17px}.pd-proof-top small,.pd-preview-head small{font-size:11px;color:#8090a3}
.pd-proof-top button,.pd-preview-head button{background:#eef3f7;border-radius:50%;font-size:26px;width:35px;height:35px}
.pd-proof-content{height:min(65vh,650px);display:grid;place-items:center;background:#e6e9ee;padding:20px;overflow:auto}
.pd-proof-content canvas{display:block;object-fit:contain;max-height:100%;max-width:100%;height:auto;width:auto;box-shadow:0 4px 22px #1a284b31}
.pd-proof-foot{padding:13px 18px;display:flex;gap:10px;justify-content:flex-end;align-items:center}
.pd-proof-sides{margin-right:auto;display:flex;gap:7px}
.pd-proof-sides button{background:#f2f5f8;border:1px solid #cbdce8;border-radius:6px;padding:9px 14px;font-size:12px}.pd-proof-sides button.active{background:#d6eef9;color:#126b98}
.pd-left-hidden .pd-left,.pd-right-hidden .pd-right{display:none}
.pd-left-hidden .pd-body{grid-template-columns:76px minmax(0,1fr) 270px}
.pd-right-hidden .pd-body{grid-template-columns:76px 298px minmax(0,1fr)}
.pd-left-hidden.pd-right-hidden .pd-body{grid-template-columns:76px minmax(0,1fr)}
/* Browse design gallery */
.pd-gallery{padding:36px 0 60px;max-width:1300px;margin:auto;color:#182538}
.pd-gallery-hero{border-radius:16px;background:linear-gradient(115deg,#eff7fc,#f6f3ed);padding:34px 40px;margin-bottom:28px;position:relative}
.pd-gallery-back{display:inline-block;margin-bottom:26px;color:#2b698d;font-size:12px;font-weight:750}
.pd-kicker{display:block;font-size:11px;letter-spacing:2px;color:#527e9f;font-weight:800}
.pd-gallery-hero h2{font-size:clamp(34px,5vw,62px);margin:6px 0 8px}
.pd-gallery-hero p{font-size:15px;color:#53667b;max-width:650px;margin:0 0 22px}
.pd-gal-primary{display:inline-flex;align-items:center;justify-content:center;padding:12px 17px;border-radius:7px;text-decoration:none;font-weight:800;font-size:12px}
.pd-gallery-controls{display:flex;align-items:end;gap:12px;margin:20px 0 18px}.pd-gallery-controls strong{font-size:22px;margin-right:auto}
.pd-gallery-controls label{font-size:12px;color:#5b697b;display:grid;gap:3px}.pd-gallery-controls select,.pd-gallery-controls input{height:39px;min-width:150px;border:1px solid #d0dae4;border-radius:7px;padding:8px}
.pd-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.pd-gallery-card{border:1px solid #e0e5ec;border-radius:10px;overflow:hidden;background:#fff;min-width:0}
.pd-gallery-card[hidden]{display:none}
.pd-gallery-preview{display:block;width:100%;background:#edf1f5;padding:12px 14px;border:0;position:relative;cursor:pointer}
.pd-gallery-preview canvas{width:100%;display:block;aspect-ratio:1.77;object-fit:cover;border-radius:4px;box-shadow:0 2px 8px #12192e21}
.pd-gallery-preview>span{position:absolute;bottom:18px;right:20px;padding:5px 8px;border-radius:5px;background:#fff;color:#1e4059;font-size:10px;font-weight:750;opacity:0;transition:opacity .2s}
.pd-gallery-preview:hover>span{opacity:1}
.pd-gallery-card>div{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:7px}
.pd-gallery-card strong{display:block;font-size:12px}.pd-gallery-card small{display:block;font-size:11px;color:#8090a0}
.pd-gallery-card a{font-size:11px;color:#11799e;font-weight:800;white-space:nowrap}
#pd-gallery-empty{padding:30px;text-align:center;color:#8b98a5}
.pd-preview-dialog>canvas{width:min(920px,90vw);height:auto;display:block;margin:25px auto;box-shadow:0 4px 24px #1822382b}
.pd-preview-foot{display:flex;align-items:center;gap:8px;justify-content:flex-end;border-top:1px solid #e0e6ee;padding:15px 19px}
.pd-preview-foot [data-side]{padding:9px 14px;border-radius:6px;background:#eff3f7;color:#28516e;border:1px solid #d2e3ef}
.pd-preview-foot [data-side].active{background:#d9f1fb;color:#116989}
.pd-preview-foot .pd-gal-primary{margin-left:auto}
@media(max-width:1350px){.pd-body{grid-template-columns:66px 260px minmax(0,1fr) 230px}.pd-left-hidden .pd-body{grid-template-columns:66px minmax(0,1fr) 230px}.pd-right-hidden .pd-body{grid-template-columns:66px 260px minmax(0,1fr)}.pd-topbar{gap:8px}.pd-top-actions .pd-save-state{display:none}.pd-bottom{grid-template-columns:1fr 1fr}.pd-foot-note{display:none}}
@media(max-width:1030px){.pd-body{grid-template-columns:62px 250px minmax(0,1fr)}.pd-right{display:none}.pd-left-hidden .pd-body,.pd-right-hidden .pd-body{grid-template-columns:62px 1fr}.pd-topbar{grid-template-columns:minmax(180px,1fr) auto}.pd-toolbar{display:none}.pd-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.pd-topbar{padding:7px 9px;height:61px;grid-template-columns:1fr auto}.pd-top-brand{display:none}.pd-top-product strong{font-size:11px}.pd-top-product small{font-size:9px}.pd-top-actions .secondary{display:none}.pd-top-actions .primary{padding:9px!important}.pd-body{grid-template-columns:55px minmax(0,1fr)}.pd-rail{padding:5px 2px}.pd-rail button{min-height:54px}.pd-rail button span{font-size:21px}.pd-rail button small{font-size:9px}.pd-left{position:absolute;left:55px;top:61px;bottom:0;width:min(285px,calc(100vw - 60px));z-index:10;box-shadow:7px 0 20px #152a4327}.pd-left-hidden .pd-left{display:none}.pd-work-controls{height:41px;padding:3px}.pd-work-controls>div{gap:3px}.pd-work-controls label{display:none}.pd-work-scroll{padding:16px}.pd-bottom{grid-template-columns:1fr 1fr;padding:3px 6px;height:72px}.pd-zoom input{max-width:75px}.pd-gallery{padding:14px 0 35px}.pd-gallery-hero{padding:22px 18px}.pd-gallery-controls{align-items:stretch;flex-wrap:wrap}.pd-gallery-controls strong{width:100%}.pd-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pd-gallery-card>div{display:grid;gap:6px}.pd-proof-foot{flex-wrap:wrap}.pd-proof-foot .pd-button{font-size:11px!important}.pd-preflight{display:none}}

/* Phase 4: Pressroom Studio Pro — original Ink/Mint/Coral UI system */
.pd-shell{--pd-ink:#142b36;--pd-blue:#087a81;--pd-strong:#163945;background:#f4f5f2;color:#18333e;font-family:Inter,"Segoe UI",Arial,sans-serif}
.pd-topbar{height:72px;border-bottom:1px solid #dce7e4;box-shadow:0 1px 10px #1d37430e;background:#fff}
.pd-top-brand{background:#092d35;width:36px;height:36px;border-radius:11px;font-size:19px;font-weight:850;letter-spacing:-1px;box-shadow:0 3px 10px #0c343325}
.pd-top-brand span{color:#73dac7;font-size:14px;align-self:start;margin-top:4px;letter-spacing:-2px}
.pd-top-product strong{font-size:14px;color:#122a35;font-weight:850}
.pd-top-product small{color:#72838b}
.pd-toolbar{border:1px solid #e3eae8;background:#f7faf9;border-radius:12px;padding:4px}
.pd-toolbar button{color:#315360}
.pd-toolbar button:hover,.pd-toolbar button.active{background:#def4ed;color:#08796e}
.pd-button.primary,.pd-gal-primary{background:#0c5059;color:white;border-radius:9px!important;box-shadow:0 3px 9px #143c4520}
.pd-button.primary:hover,.pd-gal-primary:hover{background:#10777c;filter:none}
.pd-button.secondary{color:#27434b;border-color:#d9e4e2;background:#fff}
.pd-save-state{color:#198270;font-weight:700}
.pd-rail{background:linear-gradient(180deg,#102c39 0%,#173b49 56%,#0f686b 100%);padding:9px 6px;gap:5px}
.pd-rail button{min-height:63px;border:1px solid transparent;border-radius:10px;padding:8px 3px}
.pd-rail button span{font:24px/1.15 "Segoe UI",Arial,sans-serif}
.pd-rail button small{font-size:10px;letter-spacing:.1px}
.pd-rail button:hover,.pd-rail button.active{background:#e5f6f0;color:#07554f;border-color:#b9e2d5}
.pd-panel-title{background:#fbfdfc;border-bottom:1px solid #e4edeb;height:54px}
.pd-panel-title strong{font-size:14px;font-weight:850;letter-spacing:-.2px;color:#18343e}
.pd-pro-tag{display:inline-block;font-size:9px;letter-spacing:1.2px;margin-left:7px;padding:2px 5px;border-radius:4px;background:#d2f0e4;color:#06675c;vertical-align:middle}
.pd-left,.pd-right{border-color:#dbe8e5}
.pd-workspace{background:radial-gradient(circle at 50% 30%,#f6f9f8 0%,#e9eeed 60%,#e1e8e7 100%)}
.pd-work-controls{background:#fdfefd;border-color:#e1eae7}
.pd-work-controls>div{color:#3b706b}
.pd-mini{border:1px solid #dce7e4!important;border-radius:7px;color:#315b5d}
.pd-mini:hover,.pd-mini.active{background:#dff4eb;border-color:#84cbbb!important}
.pd-art{box-shadow:0 10px 33px #12313824,0 1px 3px #1c434930}
.pd-bottom{background:#fff;border-color:#e3ebe9}
.pd-page-tabs button.active{background:#e5f5ef;border-color:#159583!important}
.pd-page-tabs small{color:#446968}
.pd-zoom input{accent-color:#0a8c83}
.pd-zoom button{background:#e6f1ee;color:#0b645f}
.pd-shell input:focus,.pd-shell select:focus,.pd-shell textarea:focus{outline:2px solid #a6dfd2;outline-offset:1px;border-color:#3b9e8b}
.pd-stack h4,.pd-inspector-section h4{color:#2e5f61;letter-spacing:.15px}
.pd-inspector-section{display:grid;gap:11px;align-content:start;padding:0 0 17px;margin-bottom:3px;border-bottom:1px solid #e7efed}
.pd-inspector-section h4{margin:0;font-size:12px;letter-spacing:.25px;font-weight:850}
.pd-properties-main{gap:13px}
.pd-prop-heading{padding-bottom:12px}
.pd-prop-heading strong{font-size:13px;color:#113c42}
.pd-prop-heading button{background:#eef5f2;color:#235b61}
.pd-prop-heading button:hover{background:#daf4e8}
.pd-prop-grid{gap:9px}
.pd-check{display:flex!important;align-items:center;gap:8px!important;min-height:32px;background:#f4f8f6;border-radius:7px;padding:6px 9px!important;color:#365b5b!important;font-size:11px!important}
.pd-check input{width:16px!important;height:16px;flex:none;accent-color:#0c8f7b;margin:0}
.pd-check span{line-height:1.2}
.pd-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.pd-swatches button{height:28px!important;width:100%;background:var(--sw);border:2px solid #fff!important;outline:1px solid #c9d5d0;border-radius:7px!important;box-shadow:0 1px 3px #102b2b16}
.pd-swatches button:hover{outline:2px solid #0b8f7d}
.pd-align-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.pd-align-controls button{background:#edf5f2;color:#16645e;font-size:18px;font-weight:900;height:34px;border-radius:7px}
.pd-align-controls button:hover{background:#ccefe1}
.pd-replace-image{display:grid!important;position:relative;overflow:hidden;background:#e2f5ed;border:1px dashed #66a898!important;border-radius:8px;padding:10px;text-align:center;color:#09685f!important;cursor:pointer}
.pd-replace-image input{font-size:10px;padding:4px}
.pd-mini-check{padding:8px 12px;border:1px solid #dfe9e5;border-radius:9px;text-align:left;font-size:11px;color:#2f7770;background:#f4faf7}
.pd-prop-empty{padding:14px 0;text-align:left}
.pd-prop-empty>span{display:grid;place-items:center;width:53px;height:53px;background:#e2f7ec;border-radius:14px;font-size:29px;color:#0e7b67}
.pd-prop-empty h3{font-size:16px;margin:20px 0 5px;color:#183942}
.pd-prop-empty p{font-size:12px;line-height:1.6}
.pd-prop-empty .pd-name-label{margin:20px 0}
.pd-preflight{border-color:#e0eae7;background:#f7fbf9}
.pd-preflight strong{color:#0a6159;font-size:12px}
.pd-preflight .ok{color:#13806b}
.pd-preflight .warn{color:#a36f29}
.pd-prop-actions button{background:#e9f3ef;color:#195c5a}
.pd-prop-actions button:hover{background:#d8eee4}
.pd-layer-row.active{background:#e9f6f0;border-color:#96d9c1}
.pd-alert{background:#132e3b;border:1px solid #365f61;box-shadow:0 10px 25px #091f284a}
.pd-proof-modal,.pd-preview-dialog{border-radius:17px!important}
.pd-proof-top,.pd-preview-head{background:#f8fcfa}
.pd-proof-content{background:#e7edea}
.pd-proof-sides button.active{background:#e3f3e8;color:#0a6d61}
.pd-gallery-hero{background:linear-gradient(115deg,#e9f5ec,#faf4e9);border:1px solid #e1ebe3}
.pd-gallery-back,.pd-kicker{color:#126c63}
.pd-gallery-card{border-color:#e4ece6;box-shadow:0 3px 14px #1e443a0a}
.pd-gallery-card a{color:#087b70}
.pd-gallery-preview:hover{background:#e4f4ed}
.pd-settings-dialog{border:0;border-radius:15px;width:min(480px,94vw);max-width:94vw;max-height:85vh;padding:0!important;box-shadow:0 27px 90px #0a232b70;background:white;color:#14323a}
.pd-settings-dialog::backdrop{background:#081c29b8}
.pd-settings-head{padding:18px 21px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e1eae6}
.pd-settings-head>div{display:grid;gap:3px}.pd-settings-head strong{font-size:17px}.pd-settings-head small{color:#6e827f}
.pd-settings-head button{border-radius:7px;width:30px;height:30px;font-size:22px;color:#557577;background:#ecf3ef}
.pd-settings-content{padding:15px 21px 22px;display:grid;gap:7px;overflow:auto}
.pd-settings-content>button{background:#f3f8f5;border-radius:8px;padding:12px;display:flex;justify-content:space-between;text-align:left;font-size:13px;color:#224d4e}
.pd-settings-content>button:hover{background:#e2f2e9}
.pd-settings-content>button span{color:#0d7867;font-size:12px;font-weight:800}
.pd-shortcuts{padding:14px;background:#f9faf6;border:1px solid #e4eee5;border-radius:8px;margin-top:10px}
.pd-shortcuts p{color:#56736e;font-size:12px;line-height:1.5}
.pd-no-rulers .pd-ruler-h,.pd-no-rulers .pd-ruler-v,.pd-no-rulers .pd-ruler-corner{opacity:.08;pointer-events:none}
@media(max-width:1300px){.pd-topbar{gap:8px}.pd-top-brand{display:none}}
@media(max-width:1030px){.pd-shell:not(.pd-right-hidden) .pd-right{display:flex;position:absolute;z-index:22;right:0;top:72px;bottom:0;width:275px;box-shadow:-8px 0 28px #123c3b24}.pd-shell.pd-right-hidden .pd-right{display:none}}

/* Phase4 enhancements: mobile inspector and page mirroring controls */
.pd-copy-side{font-size:11px!important;margin-right:7px;padding:6px 10px!important}
.pd-no-rulers .pd-ruler-h,.pd-no-rulers .pd-ruler-v{visibility:hidden}
@media(max-width:720px){.pd-shell:not(.pd-right-hidden) .pd-right{top:61px;width:min(270px,calc(100vw - 58px));}.pd-copy-side{max-width:130px;white-space:normal;padding:5px 7px!important;font-size:10px!important}.pd-top-actions{gap:5px}.pd-top-actions .pd-button{padding:8px!important}.pd-bottom{height:75px}}

/* Phase 4.1 — stable work area and print-accurate ruler layout */
.pd-shell,.pd-shell .pd-body,.pd-shell .pd-workspace{min-width:0;min-height:0}
.pd-shell .pd-work-scroll{display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:0 8px 0 0!important;overflow:auto!important;scrollbar-gutter:stable}
.pd-shell .pd-canvas-grid{flex:0 0 auto!important;min-width:0;min-height:0;margin:0 auto!important;position:relative;grid-template-areas:"corner rh" "rv art";grid-template-rows:26px auto;max-width:none!important}
.pd-shell .pd-ruler-corner{width:26px;height:26px;font-size:9px;text-align:center;line-height:26px;color:#3f6872;font-weight:700}
.pd-shell .pd-ruler-h{grid-area:rh;display:block;height:26px;max-width:none!important}
.pd-shell .pd-ruler-v{grid-area:rv;display:block;width:26px;max-height:none!important}
.pd-shell .pd-art{grid-area:art;flex:none!important;overflow:hidden;transform:none!important;rotate:none!important;max-width:none!important;max-height:none!important}
.pd-shell .pd-art #pd-canvas{width:100%!important;height:100%!important;transform:none!important;rotate:none!important;max-width:none!important;max-height:none!important}
.pd-shell .pd-work-controls{flex-wrap:wrap;min-height:42px;height:auto;padding:5px 12px}
.pd-shell .pd-work-controls>div{flex-wrap:wrap}
.pd-quickedit{background:#f1faf7;border:1px solid #bfded3;border-radius:12px;padding:12px;display:grid;gap:10px}
.pd-quick-title{display:grid;gap:2px;padding-bottom:8px;border-bottom:1px solid #d6e9e1}
.pd-quick-title strong{font-size:13px;color:#0e625e}
.pd-quick-title small{font-size:11px;color:#58766e}
.pd-shell .pd-quick-row{display:grid;gap:5px;color:#284c4d;font-size:11px;font-weight:750}
.pd-shell .pd-quick-row textarea{resize:vertical;min-height:53px;max-height:155px;background:#fff;line-height:1.4;font-weight:500}
.pd-shell .pd-quick-row textarea:focus{border-color:#159481;box-shadow:0 0 0 2px #cdeee4;outline:0}
.pd-shell .pd-prop-empty{padding:18px 0}
@media(max-width:1050px){.pd-shell .pd-work-scroll{padding:16px!important}}
@media(max-width:720px){.pd-shell .pd-work-scroll{padding:12px!important}}
/* Constrain the implicit grid row: otherwise tall portrait artwork stretches the entire editor beyond the viewport. */
.pd-shell .pd-body{grid-template-rows:minmax(0,1fr)!important;height:auto;overflow:hidden}
.pd-shell .pd-workspace{height:100%;overflow:hidden}

.pd-reflow{background:#fff!important;border:1px solid #a9d6c8!important;padding:8px!important;border-radius:8px;font-size:11px;font-weight:750;color:#116e66;text-align:left}
.pd-reflow:hover{background:#e3f8f0!important}

/* Pressroom Studio 4.2 — stable artboard, persistent panel recovery and side chooser */
.pd-shell{overflow:hidden!important}
.pd-shell .pd-body{position:relative;flex:1 1 0!important;height:0!important;min-height:0!important;overflow:hidden!important;grid-template-rows:minmax(0,1fr)!important}
.pd-shell .pd-rail,.pd-shell .pd-left,.pd-shell .pd-right,.pd-shell .pd-workspace{min-height:0;max-height:100%;overflow:hidden}
.pd-shell .pd-work-scroll{overflow-anchor:none!important;min-height:0!important;overscroll-behavior:contain}
.pd-shell .pd-canvas-grid{overflow-anchor:none!important;align-self:safe center;justify-self:safe center}
.pd-shell .pd-art,.pd-shell #pd-canvas{overflow-anchor:none!important}
.pd-shell .pd-inspector-reopen{display:none;position:absolute;right:12px;top:12px;z-index:40;background:#07595b;color:#fff;padding:10px 13px;border-radius:9px;box-shadow:0 4px 14px #083a482c;font-size:12px;font-weight:750}
.pd-shell.pd-right-hidden .pd-inspector-reopen{display:inline-flex;align-items:center;gap:5px}
.pd-shell .pd-inspector-toggle{background:#e6f5f0;border:1px solid #b7d9d0;color:#075e5b;font-size:20px;line-height:1}
.pd-shell.pd-right-hidden .pd-inspector-toggle{background:#c5ebde;box-shadow:0 0 0 2px #a4dacd inset}
.pd-shell .pd-page-tabs button{min-width:74px;cursor:pointer}
.pd-shell .pd-page-tabs button.pd-side-add{border:1px dashed #70aaa7!important;background:#f2fbf7;color:#0d7169}
.pd-shell .pd-page-tabs button.pd-side-add small{font-weight:750;color:#087769}
.pd-shell .pd-proof-sides button[hidden]{display:none!important}
.pd-shell .pd-copy-side[hidden]{display:none!important}
@media(max-width:1030px){.pd-shell .pd-inspector-reopen{right:10px;top:10px}}
@media(max-width:720px){.pd-shell .pd-inspector-reopen{font-size:11px;padding:8px 10px}.pd-shell .pd-page-tabs button{min-width:60px}}
@media(max-width:1030px){.pd-shell:not(.pd-right-hidden) .pd-right{bottom:82px!important}}


/* Pressroom Studio v4.3 — persistent edge handles on both collapsible panels. */
.pd-shell{--pd-rail-edge-width:76px;--pd-tools-edge-width:298px;--pd-props-edge-width:270px}
.pd-shell .pd-body{position:relative}
.pd-shell .pd-panel-edge{
  position:absolute;top:50%;transform:translateY(-50%);z-index:35;
  display:flex;align-items:center;justify-content:center;
  width:25px;height:84px;min-width:25px;padding:0!important;
  background:linear-gradient(165deg,#031740,#07538e 60%,#0980a1);
  border:1px solid #1d638f!important;color:#fff!important;
  box-shadow:1px 2px 9px #10273b42;
  font-size:24px;font-weight:600;line-height:1;
  transition:background-color .15s,box-shadow .15s;
  touch-action:manipulation;cursor:pointer;
}
.pd-shell .pd-panel-edge:hover{background:linear-gradient(165deg,#07528a,#1094ac);box-shadow:0 3px 15px #0a305b5e}
.pd-shell .pd-panel-edge:focus-visible{outline:3px solid #5fe5d7;outline-offset:3px}
.pd-shell .pd-panel-edge-left{
  left:calc(var(--pd-rail-edge-width) + var(--pd-tools-edge-width) - 1px);
  border-radius:0 15px 15px 0;
}
.pd-shell.pd-left-hidden .pd-panel-edge-left{left:calc(var(--pd-rail-edge-width) - 1px)}
.pd-shell .pd-panel-edge-right{
  right:calc(var(--pd-props-edge-width) - 1px);
  border-radius:15px 0 0 15px;
  box-shadow:-1px 2px 9px #10273b42;
}
.pd-shell.pd-right-hidden .pd-panel-edge-right{right:0}
/* Edge tabs are the primary affordance; avoid redundant tiny panel-header chevrons. */
.pd-shell .pd-panel-title>button[data-act="collapse-left"],
.pd-shell .pd-panel-title>button[data-act="collapse-right"]{display:none}
/* Retire v4.2 floating chip; persistent edge handle is always visible instead. */
.pd-shell .pd-inspector-reopen{display:none!important}
@media(max-width:1350px){.pd-shell{--pd-rail-edge-width:66px;--pd-tools-edge-width:260px;--pd-props-edge-width:230px}}
@media(max-width:1030px){.pd-shell{--pd-rail-edge-width:62px;--pd-tools-edge-width:250px;--pd-props-edge-width:275px}}
@media(max-width:720px){
  .pd-shell{--pd-rail-edge-width:55px;--pd-tools-edge-width:min(285px,calc(100vw - 60px));--pd-props-edge-width:min(270px,calc(100vw - 58px))}
  .pd-shell .pd-panel-edge{width:21px;min-width:21px;height:68px;font-size:21px}
}
