/* A focused editor, with persistent primary actions. */
.compact-photo main{padding-bottom:120px!important}
.compact-photo .page-head{margin-bottom:12px}
.compact-photo .page-head h1{font-size:24px}
.compact-photo .page-head p{font-size:12px;margin:4px 0}
.editor-toolbar{display:flex;gap:6px;overflow-x:auto;padding:8px 0 12px;scrollbar-width:none}
.editor-toolbar button{white-space:nowrap;border:0;background:#eaece9;border-radius:12px;padding:10px 16px;color:#59645e;font-size:13px}
.editor-toolbar button.active{background:#243c35;color:#fff}
.compact-editor{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,1fr);gap:18px;height:calc(100dvh - 245px);min-height:480px}
.compact-stage{background:#e9ebe8;border-radius:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;overflow:auto;padding:20px;position:relative}
.compact-stage .main-photo-preview{border:0;padding:0;margin:0;width:min(100%,480px)}
.compact-stage .main-photo-preview .section-title{margin-bottom:8px}
.compact-stage .main-photo-preview h3{font-size:13px;margin:0}
.compact-stage .main-photo-preview .section-title span{display:none}
.compact-stage .main-photo-preview p{font-size:10px;line-height:1.5;margin:8px 0 0}
.compact-stage #main-photo-canvas{width:100%;max-height:55vh;margin:auto}
.editor-empty{font-size:12px;color:#66756d;margin-bottom:12px}
.compact-dock{min-width:0;overflow:auto;overscroll-behavior:contain;border-radius:18px;background:white;padding:16px}
.compact-dock [hidden],.compact-photo [hidden]{display:none!important}
.compact-dock .card{box-shadow:none;border:0;padding:0;margin:0!important}
.compact-dock h2{font-size:16px;margin:0 0 12px}
.compact-dock h3{font-size:14px}
.compact-dock input,.compact-dock select,.compact-dock textarea{font-size:13px;padding:9px 10px;min-height:40px}
.compact-dock .field{font-size:12px;margin:10px 0}
.compact-dock .photo-source-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible}
.compact-dock .photo-source-grid img{height:80px;object-fit:contain}
.compact-dock .photo-source-grid span{font-size:10px}
.compact-dock .photo-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.compact-dock .photo-template-grid button{font-size:11px}
.compact-dock .photo-checks{font-size:12px}
.compact-dock .photo-slider{font-size:12px;margin:12px 0}
.compact-dock .photo-slider input{padding:0;min-height:24px}
.compact-dock .photo-fields{gap:10px}
.compact-dock details{padding:10px;border:1px solid #e2e7e2;border-radius:10px;margin:12px 0}
.compact-dock summary{cursor:pointer;font-size:13px;font-weight:600}
.editor-actionbar{position:fixed;left:280px;right:0;bottom:0;z-index:28;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #e0e5df;padding:12px 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.editor-actionbar .actions{display:flex;gap:8px;margin:0;margin-left:auto}
.editor-actionbar button{min-height:44px;border-radius:12px}
.editor-actionbar>span{font-size:12px;color:#657368}
.editor-actionbar #photo-error{margin:0;width:100%;font-size:12px;max-height:40px;overflow:auto}
.editor-actionbar #photo-error:empty{display:none}
.compact-photo #assistant{bottom:150px!important}
.compact-home{max-width:1180px;margin:auto}
.home-welcome{display:flex;align-items:center;justify-content:space-between;padding:24px 0}
.home-welcome h1{font-size:30px;margin:8px 0}
.home-welcome small{font-size:10px;letter-spacing:2px;color:#8a928b}
.home-welcome p{font-size:13px;color:#788079;margin:0}
.home-welcome img{width:62px;height:62px;object-fit:cover;border-radius:18px}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-metrics button{border:0;background:#fff;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px;color:#48564e}
.home-metrics b{font-size:25px;color:#273e33}.home-metrics span{font-size:12px}
.home-section-title{font-size:17px;margin:24px 0 12px}
.home-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-feature-grid button{text-align:left;border:1px solid #edf0eb;border-radius:18px;background:#fff;padding:20px;display:flex;flex-direction:column;gap:10px;color:#303c35;transition:transform .18s,box-shadow .18s}
.home-feature-grid button:hover{transform:translateY(-3px);box-shadow:0 8px 24px #243c3512}
.home-feature-grid i{display:grid;place-items:center;width:44px;height:44px;background:#eff3ed;color:#497257;border-radius:14px}
.home-feature-grid svg{width:24px;height:24px}
.home-feature-grid button:nth-child(2) i{background:#f3edff;color:#8761be}
.home-feature-grid strong{font-size:16px}.home-feature-grid small{font-size:12px;color:#899087}
.home-feature-grid button>span{font-size:11px;color:#7b897d}
.home-order-summary{display:flex;align-items:center;justify-content:space-between;background:#eef2eb;border-radius:18px;padding:20px;margin-top:20px;gap:12px}
.home-order-summary h2{font-size:16px;margin:0}.home-order-summary p{font-size:12px;margin:6px 0;color:#7a8278}
@media(max-width:1000px) and (min-width:701px){.compact-editor{grid-template-columns:1fr;min-height:0;height:auto}.compact-stage{max-height:380px}.compact-dock{max-height:440px}.editor-actionbar{left:0}}
@media(max-width:700px){
 .compact-photo .shell>header{height:52px!important;min-height:52px!important}
 .compact-photo .shell>header #crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
 .compact-photo .shell>header>div>button{display:none}
 .compact-photo main{padding:10px 12px 170px!important}
 .compact-photo .page-head{display:none}
 .editor-toolbar{position:sticky;top:52px;z-index:12;background:#f6f6f6;margin:0 -12px;padding:8px 10px}
 .editor-toolbar button{padding:9px 12px;font-size:12px;flex:0 0 auto}
 .compact-editor{display:flex;flex-direction:column;gap:10px;height:auto;min-height:0}
 .compact-stage{padding:10px;min-height:0;flex-shrink:0;height:clamp(175px,29dvh,265px)}
 .compact-stage .main-photo-preview{width:100%;display:flex;flex-direction:column;align-items:center}
 .compact-stage .main-photo-preview .section-title{display:none}
 .compact-stage #main-photo-canvas{width:auto!important;height:clamp(135px,22dvh,210px);max-width:100%;max-height:210px}
 .compact-stage .main-photo-preview p{font-size:9px;text-align:center;max-width:330px;margin:6px 0 0}
 .editor-empty{font-size:11px;margin-bottom:3px}
 .compact-dock{height:clamp(210px,32dvh,360px);padding:12px;border-radius:15px}
 .compact-dock .photo-source-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .compact-dock .photo-source-grid img{height:64px}
 .compact-dock .photo-upload{padding:8px;margin:8px 0;font-size:12px}
 .compact-dock .photo-upload input{width:100%;font-size:11px;padding:0}
 .compact-dock .workflow-tabs{margin-bottom:8px}
 .compact-dock .workflow-tabs button{padding:7px;font-size:11px}
 .editor-actionbar{left:0;bottom:calc(65px + env(safe-area-inset-bottom,0px));padding:9px 12px;gap:6px}
 .editor-actionbar .actions{gap:6px}.editor-actionbar button{font-size:12px;padding:10px 18px}
 .compact-photo #assistant{bottom:calc(145px + env(safe-area-inset-bottom,0px))!important;width:38px;height:38px;right:8px}
 .compact-photo #floating-cart{display:none!important}
 .compact-home .home-welcome{padding:8px 0 18px}.home-welcome h1{font-size:25px}.home-welcome img{width:52px;height:52px}
 .home-metrics{gap:8px}.home-metrics button{padding:14px 8px}.home-metrics b{font-size:23px}.home-metrics span{font-size:11px}
 .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-feature-grid button{padding:16px 12px;gap:8px}
 .home-feature-grid strong{font-size:14px}.home-feature-grid small{font-size:10px}.home-feature-grid i{width:38px;height:38px}
 .home-section-title{margin-top:20px}.home-order-summary{padding:16px}
 body aside .workspace{display:none!important}body aside .brand{padding-bottom:16px}
 body aside #nav button{min-height:44px;font-size:13px;margin:0}
 body aside .workspace-nav-section{margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){.home-feature-grid button{transition:none}}
@media print{.editor-actionbar,.editor-toolbar{display:none!important}}
@media(max-width:700px){
 .compact-dock .photo-sources>.section-title{margin-bottom:8px}
 .compact-dock .photo-sources>.section-title h2{font-size:14px;margin:0}
 .compact-dock .photo-sources>.field{font-size:0;margin:6px 0}
 .compact-dock .photo-sources>.field input{font-size:12px}
 .compact-dock .photo-upload{position:relative;min-height:40px;justify-content:center}
 .compact-dock .photo-upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;left:0;bottom:0}
 .compact-dock #photo-upload-status:empty{display:none}
 .editor-toolbar button[aria-selected=false]{color:#59645e}
}

body aside .brand>b{background:transparent!important;padding:0!important;overflow:hidden;box-shadow:none!important}body aside .brand>b img.custom-ui-icon,body aside .brand>b img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:12px}
