*{box-sizing:border-box}body{margin:0;background:#e8edf4;color:#111827;font:16px Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:1px solid #d6deea;background:transparent;color:#182130;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:500;transition:background .15s,box-shadow .15s}button:hover{background:#edf2f8}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7b9bd0;outline-offset:3px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.layout{display:grid;grid-template-columns:minmax(0,1fr) 448px;gap:14px;padding:14px;min-height:100vh}.workspace{position:relative;overflow:hidden;border-radius:13px;background:#f8faff;min-height:calc(100vh - 28px)}header{height:104px;display:flex;align-items:center;padding:0 40px;gap:42px;background:#fff}.brand{font-size:30px;font-weight:850;letter-spacing:-1px;text-decoration:none;color:#111827}nav{display:flex;align-items:center;gap:14px}nav button{display:flex;align-items:center;gap:10px;border:0;white-space:nowrap;padding:14px 16px;color:#66758d}nav button.active{background:#eaf0fb;color:#152743}nav button.active svg{stroke:#152743}.profile{display:flex;align-items:center;gap:14px;margin-left:auto;color:#66758d}.profile button{border:0;padding:8px}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(#9da9ba,#5f6d81);color:#fff;display:grid;place-items:center;font-size:13px}main{padding:30px 40px}h1{font-size:44px;letter-spacing:-1.7px;margin:0 0 7px;font-weight:750}.subtitle{color:#78869b;margin:0;line-height:1.6}.tabs{margin-top:35px;display:flex;width:394px;border-radius:12px;background:#edf0f6;padding:2px;gap:4px}.tabs button{width:50%;border:0;height:46px;color:#5e6b80}.tabs .active{background:linear-gradient(120deg,#1d2533,#141c2b);color:#fff;box-shadow:0 3px 5px #11182720}.toolbar{display:flex;align-items:center;gap:12px;margin:30px 0 12px}.toolbar button{display:flex;align-items:center;gap:12px;padding:13px 17px}.toolbar span{font-size:12px;color:#75839a}.tablewrap{border:1px solid #e2e7ef;border-radius:11px;overflow:auto}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}th{text-align:left;font-size:13px;font-weight:550;height:55px;background:#f1f4fa}th,td{padding:16px 18px;white-space:nowrap}th:first-child{width:178px}th:nth-child(2){width:195px}th:nth-child(3){width:143px}th:last-child{width:149px}td{height:60px;border-top:1px solid #e5eaf1;color:#516077}tr.selected{background:#e9f2ff}tbody tr{cursor:pointer}tbody tr:hover{background:#eff5fd}td button{font-size:12px;padding:9px 12px;border-radius:8px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.status{display:inline-flex;align-items:center;gap:10px;color:#138552;font-size:13px}.status i,.availability i,.copy-note i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#159956}.status.pending{color:#3478dc;background:#eaf2ff;padding:4px 7px;border-radius:4px}.status.pending i{background:#3584ea}.flag{margin-right:12px;font-size:18px}.copy-note{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8a96a7;font-size:11px;margin-top:26px}.copy-note span{display:flex;align-items:center;gap:7px}.copy-note i{width:6px;height:6px;background:#91a1b6}.copy-note button{border:0;padding:8px;font-size:11px;color:#7d8ca2}.shade{position:absolute;inset:0;background:#56708d26;backdrop-filter:blur(.35px);z-index:2;pointer-events:auto}.picker{position:absolute;z-index:3;width:614px;left:62%;top:187px;transform:translateX(-50%);padding:38px 32px 28px;background:#fff;border:1px solid #edf0f5;border-radius:12px;box-shadow:0 22px 42px #30425f26}.close{position:absolute;right:18px;top:12px;font-size:32px;line-height:1;color:#6f7c91;padding:0 6px;border:0;font-weight:300}.picker h2{font-size:27px;letter-spacing:-.7px;margin:0 0 7px}.picker-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;white-space:nowrap}.picker-sub p{font-size:14px;color:#7c889c;margin:0}.availability{display:flex;gap:6px;align-items:center;font-size:12px;color:#127837;background:#eef9f0;padding:9px;border-radius:7px}.availability b{font-weight:500}.filters{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:25px}.search{display:flex;align-items:center;border:1px solid #d7deea;border-radius:10px;padding:0 14px;height:48px;gap:13px;color:#748198}.search input{border:0;min-width:0;width:100%;outline:0;color:#233047;font-size:14px;background:none}.filters select{min-width:0;border:1px solid #d7deea;border-radius:10px;background:#fff;color:#1c2637;padding:0 15px;font-size:14px}.primary{border:0;background:linear-gradient(110deg,#1c2432,#121b2b);color:#fff;box-shadow:0 3px 8px #18213315}.primary:hover{background:linear-gradient(110deg,#2a3548,#202e44)}.random{margin:18px 0;width:100%;height:54px;display:flex;align-items:center;justify-content:center;gap:18px;font-size:16px}.domain-list{display:grid;gap:10px}.domain-option{display:flex;align-items:center;gap:20px;min-height:63px;padding:10px 14px 10px 18px;border:1px solid #e4e8ef;border-radius:11px}.domain-option strong{font-size:16px;letter-spacing:-.3px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.domain-option small{margin-left:auto;color:#7a879c;font-size:14px}.domain-option button{padding:10px 23px;border:1px solid #182337;box-shadow:0 2px 5px #25344d15;font-weight:600;color:#152034;background:#fff}.domain-option button:hover{background:#eff4fc}.picker footer{text-align:center;border-top:1px solid #e8ecf2;margin-top:50px;padding-top:15px;font-size:12px;color:#8190a6}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:#8390a3;font-size:12px}.pagination button{padding:5px 9px;font-size:12px}.empty{text-align:center;color:#8390a3;padding:30px 10px}.studio-panel{border:1px solid #edf1f6;background:linear-gradient(120deg,#fbfdff,#f7faff);border-radius:13px;padding:28px 30px 44px;display:flex;flex-direction:column}.back{display:flex;align-items:center;gap:16px;color:#7a89a0;font-size:23px;padding:0;border:0;background:none;align-self:flex-start}.back span{font-size:14px}.studio-panel h2{font-size:30px;letter-spacing:-1px;margin:26px 0 5px}.studio-description{margin:0 0 30px;color:#8090a9;font-size:16px;line-height:1.5}.studio-panel form{display:flex;flex-direction:column;flex:1}.field-label{font-weight:600;font-size:16px;margin-bottom:10px}.domain-field{border:1px solid #d4dfec;border-radius:10px;background:#edf3fa;padding:13px 12px;display:flex;align-items:center;gap:4px;margin-bottom:26px;height:48px}.domain-field input{min-width:0;width:100%;border:0;background:none;color:#16223a;font-size:16px;outline:0}.domain-field span{white-space:nowrap;display:flex;align-items:center;gap:7px;border-radius:5px;color:#168653;background:#e0f4ed;font-size:11px;padding:5px 7px}.domain-field svg{width:14px;height:14px;stroke-width:2}.domain-field button{padding:4px;font-size:12px}.company{width:100%;height:50px;border:1px solid #d7dfeb;border-radius:10px;padding:0 16px;background:#fff;color:#19263a;font-size:16px}input::placeholder{color:#8b98ad}.template-label{margin:32px 0 14px}.templates{display:grid;grid-template-columns:1fr 1fr;gap:10px}.template{position:relative;aspect-ratio:182/138;padding:0;border:1px solid #e0e5ed;border-radius:9px;overflow:hidden;background:#fff;box-shadow:0 2px 5px #25334e10}.template.active{outline:2px solid #86a8e2;outline-offset:2px}.template-art{display:block;position:absolute;inset:0;overflow:hidden}.template-art img{position:absolute;max-width:none;width:974.73%;height:auto;pointer-events:none;user-select:none}.template:nth-child(1) img{left:-740.1%;top:-319.56%}.template:nth-child(2) img{left:-847.8%;top:-319.56%}.template:nth-child(3) img{left:-740.1%;top:-428.3%}.template:nth-child(4) img{left:-847.8%;top:-428.3%}.template .check{position:absolute;right:7px;top:7px;background:#347ff0;border:1px solid #fff;color:white;border-radius:50%;width:20px;height:20px;font-size:13px;display:none;place-items:center}.template.active .check{display:grid}.create{width:100%;margin-top:auto;min-height:54px;font-size:16px}.templates{margin-bottom:48px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#172237;color:#fff;padding:16px 24px;border-radius:12px;box-shadow:0 8px 30px #15213725;z-index:10;font-size:14px;max-width:90vw}.site-result{border:1px solid #d7e2ef;background:white;border-radius:12px;padding:24px;margin:20px 0}.site-result h3{font-size:26px;overflow-wrap:anywhere}.site-result .success{color:#138552;font-size:13px}.site-result p{color:#76869b;line-height:1.6}.site-result button{margin-top:10px}.studio-panel:focus{outline:none}@media(min-width:1700px){.layout{grid-template-columns:minmax(0,1fr) 448px}.workspace header{height:104px}}@media(max-width:1550px){.layout{grid-template-columns:minmax(0,1fr) 375px}header{padding:0 25px;gap:24px}nav{gap:2px}nav button{padding:12px 9px;font-size:12px;gap:7px}.profile{gap:7px}main{padding:30px 30px}.picker{width:570px;left:57%;padding:32px 26px}.picker-sub p{font-size:12px}.studio-panel{padding:28px 23px}.domain-field span{font-size:9px;padding:4px}.domain-field input{font-size:13px}th:first-child{width:165px}th:nth-child(2){width:165px}th:nth-child(3){width:125px}th,td{padding:15px 12px}}@media(max-width:1150px){nav button svg{display:none}nav button{font-size:11px}.profile{display:none}.layout{grid-template-columns:minmax(0,1fr) 330px}.picker{width:calc(100% - 40px);left:50%}.picker-sub{flex-wrap:wrap;white-space:normal}.picker-sub p{font-size:13px}.studio-panel{padding:25px 18px}.domain-field{flex-wrap:wrap;height:auto}.domain-field input{font-size:14px}.create{margin-top:18px}.templates{margin-bottom:15px}.tablewrap table{min-width:820px}}@media(max-width:800px){.layout{display:block;padding:8px}.workspace{min-height:780px}header{height:82px;padding:0 18px;gap:15px}.brand{font-size:25px}nav{overflow-x:auto}nav button{font-size:12px}nav button[data-nav=dashboard],nav button[data-nav=finance]{display:none}main{padding:26px 18px}h1{font-size:35px}.subtitle{font-size:14px}.tabs{width:100%;max-width:394px}.toolbar{flex-wrap:wrap}.toolbar button{font-size:12px;padding:10px}.picker{top:186px;width:calc(100% - 24px);padding:28px 18px 20px}.picker h2{font-size:25px}.filters{gap:8px;grid-template-columns:1.7fr 1fr}.picker footer{margin-top:24px}.domain-option{gap:10px;padding:10px}.domain-option strong{font-size:14px}.domain-option button{padding:10px 13px;font-size:12px}.domain-option small{font-size:12px}.studio-panel{margin-top:12px;padding:25px}.templates{max-width:420px}.create{margin-top:28px}.domain-field{flex-wrap:nowrap}.copy-note{align-items:flex-start}.copy-note span{max-width:220px}}

@media(min-width:1551px){header{height:72px!important}main{padding-top:30px}.studio-panel{padding-top:28px}.studio-description{margin-bottom:28px}.templates{margin-bottom:40px}}

.flag{display:inline-block;width:22px;height:15px;vertical-align:middle;position:relative;font-size:10px;text-align:center;line-height:15px}.flag.us{background:repeating-linear-gradient(to bottom,#cf5363 0,#cf5363 1.15px,#fff 1.15px,#fff 2.3px)}.flag.us:before{content:'✦';position:absolute;left:0;top:0;background:#4f6c9c;color:white;font-size:8px;line-height:8px;width:10px;height:8px}.flag.ca{background:linear-gradient(to right,#d94851 27%,white 27%,white 73%,#d94851 73%)}

.picker{top:150px;max-height:calc(100vh - 170px);overflow:auto}.picker .field-label{display:block;margin:20px 0 8px;font-size:13px}.picker footer{margin-top:20px}.picker-sub{white-space:normal}.pagination{display:flex!important}.company-details{margin:20px 0 0}.company-details summary,.mine summary{font-size:13px;color:#677995;cursor:pointer}.company-details .field-label{display:block;margin:14px 0 8px;font-size:13px}textarea{width:100%;min-height:75px;padding:12px;border:1px solid #d7dfeb;border-radius:9px;font:14px Arial;resize:vertical}.template-label{margin-top:24px}.templates{margin-bottom:24px}.studio-panel{min-height:calc(100vh - 28px)}.mine{margin-top:15px}.mine-row{padding:12px 0;border-bottom:1px solid #e4eaf0;font-size:12px;display:flex;gap:12px;align-items:center}.mine-row span{flex:1}.mine-row button{font-size:12px;padding:8px}dialog{border:1px solid #e2e7f0;border-radius:16px;padding:32px;max-width:420px;width:90%}dialog::backdrop{background:#1c2d4860;backdrop-filter:blur(4px)}#loginForm{display:grid;gap:18px}#loginForm label{display:grid;gap:8px}#loginForm input{height:44px;border:1px solid #d7dfeb;border-radius:8px;padding:10px}#loginError{color:#ad3434;font-size:13px}#jobStatus{color:#647991;font-size:13px;line-height:1.5}#sitePreview iframe{border:1px solid #dde4ef;border-radius:10px;width:100%;height:440px;background:white}#sitePreview a{display:inline-block;margin:12px 0;color:#254f84}.toolbar{flex-wrap:wrap}#workSearch{border:1px solid #d7dfeb;border-radius:8px;padding:10px;max-width:170px}.fp-link{width:50%;display:grid;place-items:center;text-decoration:none;color:#5e6b80;font-size:14px}.template .template-caption{position:absolute;bottom:0;left:0;right:0;background:#fffffff0;padding:5px;color:#203249;font-size:10px}.domain-field input{font-size:13px}.busy-bar{height:4px;border-radius:5px;background:linear-gradient(90deg,#dfe7f1,#365071,#dfe7f1);background-size:200% 100%;animation:busy 1.5s linear infinite;margin:12px 0}@keyframes busy{to{background-position:-200% 0}}@media(max-width:800px){.picker{max-height:calc(100vh - 50px);top:18px;position:fixed;left:50%}.studio-panel{min-height:auto}}button:disabled{pointer-events:none}

.studio-mode .workspace main>:not(#studioHub){display:none!important}.studio-kicker{font-size:10px;letter-spacing:2px;color:#758096;font-weight:700}.studio-steps{display:grid;gap:16px;margin-top:30px}.studio-steps article{border:1px solid #dce2ec;border-radius:16px;padding:24px;background:#f8faff}.studio-steps article>span{font-size:12px;color:#8190a5}.studio-steps h2{font-size:22px;margin:10px 0}.studio-steps p{font-size:14px;line-height:1.6;color:#68758b;max-width:540px}.studio-steps button,.studio-steps a{margin:8px 10px 0 0;display:inline-block}.studio-mode .studio-panel .back{display:none}

/* Unified Studio: shared header, compact guidance, full-width editor. */
.studio-mode{background:#f1f4f9}.studio-mode .layout{max-width:1320px;margin:0 auto;padding:20px;display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;min-height:100vh;align-items:start}.studio-mode .workspace{display:contents}.studio-mode .workspace>header{grid-column:1/-1;min-width:0;height:auto!important;min-height:76px;border:1px solid #e0e6ef;border-radius:16px;padding:16px 24px;gap:24px;flex-wrap:wrap}.studio-mode header nav{flex-wrap:wrap;gap:4px}.studio-mode header nav button{font-size:13px;padding:12px}.studio-mode .workspace>main{padding:8px 0;min-width:0}.studio-mode h1{font-size:34px;letter-spacing:-1px}.studio-mode #studioHub>.subtitle{font-size:14px;line-height:1.6}.studio-mode .studio-kicker{font-size:9px;letter-spacing:1.4px;line-height:1.6;margin:0 0 12px}.studio-mode .studio-steps{gap:12px;margin-top:24px}.studio-mode .studio-steps article{padding:20px;background:white;border-radius:14px}.studio-mode .studio-steps h2{font-size:19px;margin:8px 0}.studio-mode .studio-steps p{font-size:13px;margin:10px 0 14px}.studio-mode .studio-steps button{width:100%;margin:6px 0 0;font-size:13px;min-height:42px}.studio-mode .studio-steps a{font-size:12px;line-height:1.5;color:#34567b;text-decoration:none;margin:0}.studio-mode .studio-panel{min-width:0;min-height:0;margin:0;padding:30px 32px;background:#fff;border:1px solid #e0e6ef;border-radius:16px;display:block}.studio-mode .studio-panel h2{margin:0 0 14px;font-size:27px;letter-spacing:-.6px}.studio-mode .studio-panel>p:has(>a){display:none}.studio-mode .studio-description{font-size:14px;line-height:1.6;margin-bottom:24px}.studio-mode .studio-description br{display:none}.studio-mode #jobStatus:empty{display:none}.studio-mode #siteForm{display:flex;gap:0}.studio-mode .field-label{font-size:14px;margin-bottom:9px}.studio-mode .domain-field{height:auto;min-height:50px;gap:12px;flex-wrap:wrap;padding:8px 12px;margin-bottom:22px}.studio-mode .domain-field input{flex:1;min-width:120px;font-size:14px;width:auto}.studio-mode .domain-field button{font-size:13px;padding:9px 16px;min-height:36px;background:white}.studio-mode .domain-field span{font-size:11px;white-space:normal}.studio-mode .company{height:48px;font-size:14px}.studio-mode textarea{min-height:92px;line-height:1.5}.studio-mode .company-details{margin-top:20px}.studio-mode .templates{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;gap:12px;margin-bottom:24px}.studio-mode .template{min-width:0}.studio-mode .create{margin-top:0;min-height:48px}.studio-mode .shade{position:fixed;inset:0;z-index:20}.studio-mode .picker{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(600px,calc(100vw - 32px));max-height:calc(100vh - 40px);z-index:21}.studio-mode #sitePreview{min-width:0}.studio-mode #sitePreview button{margin:8px 8px 0 0}
@media(max-width:1000px){.studio-mode .layout{grid-template-columns:270px minmax(0,1fr);gap:18px;padding:16px}.studio-mode .studio-panel{padding:24px}.studio-mode .templates{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-mode header .profile{display:none}}
@media(max-width:740px){.studio-mode .layout{display:flex;flex-direction:column;padding:12px;gap:16px}.studio-mode .workspace>header,.studio-mode .workspace>main,.studio-mode .studio-panel{width:100%}.studio-mode .workspace>header{padding:15px;gap:12px}.studio-mode header nav{overflow:visible;flex:1}.studio-mode .brand{font-size:24px}.studio-mode .studio-steps{grid-template-columns:1fr}.studio-mode .studio-steps article{padding:16px}.studio-mode .studio-panel{padding:22px 18px}.studio-mode .studio-panel h2{font-size:24px}.studio-mode .domain-field{flex-wrap:wrap}.studio-mode .picker{top:50%;max-height:calc(100dvh - 24px)}.studio-mode h1{font-size:30px}}

.picker-modes{display:flex;gap:8px;padding:5px;background:#edf1f7;border-radius:12px;margin:22px 0 0}.picker-modes button{flex:1;border:0}.picker-modes button.active{background:#fff;box-shadow:0 2px 8px #22344a10;color:#192b46}.picker.manual-picker,.studio-mode .picker.manual-picker{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1100px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:30px;overflow:auto}.picker.manual-picker #random{display:none}.manual-picker .domain-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.manual-picker .domain-option{min-width:0;gap:12px}.manual-picker .domain-option strong{min-width:0;overflow-wrap:anywhere}.manual-picker .domain-option button{padding:10px 16px;flex-shrink:0}.manual-picker .filters{margin-top:18px}.manual-picker .pagination{margin-top:18px}.picker.random-picker #domainList,.picker.random-picker #pagination,.picker.random-picker .search{display:none!important}.picker.random-picker .filters{grid-template-columns:1fr}.random-picker .filters select{height:46px}.random-picker .picker-sub p{max-width:360px}.picker footer{line-height:1.5}.manual-picker .mine-row{padding:14px 0}
@media(max-width:700px){.picker.manual-picker,.studio-mode .picker.manual-picker{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:24px 16px}.manual-picker .domain-list{grid-template-columns:1fr}.picker-modes button{font-size:12px;padding:12px 8px}.manual-picker .filters{grid-template-columns:1fr}.manual-picker .filters select{height:44px}.manual-picker .domain-option strong{font-size:13px}.manual-picker .domain-option small{font-size:11px}}

.toast{z-index:100;white-space:normal;line-height:1.5}.domain-confirm{max-width:540px;padding:28px}.domain-confirm h2{font-size:23px;margin:0 0 16px}.domain-confirm p{line-height:1.6;color:#607086;overflow-wrap:anywhere}.domain-confirm>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}.picker #poolStatus{position:sticky;bottom:0;background:white;padding:14px;box-shadow:0 -5px 12px #fff;z-index:1}

.template-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 14px}.template-heading .field-label{margin:0}.template-heading p{font-size:12px;color:#718097;margin:7px 0 0}.template-arrows{display:flex;gap:8px;flex-shrink:0}.template-arrows button{width:40px;height:40px;padding:0;border-radius:50%;font-size:21px;background:#f5f7fb}.templates.real-templates,.studio-mode .templates.real-templates{display:flex;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bcc8d9 #eef2f7;padding:5px 4px 14px;margin:0;max-width:100%;cursor:grab;touch-action:pan-x pan-y}.real-templates.dragging{cursor:grabbing;user-select:none}.template-card{flex:0 0 240px;min-width:0}.real-templates .template{width:100%;aspect-ratio:auto;padding:0;display:flex;flex-direction:column;align-items:stretch;border:1px solid #dce3ed;background:white;border-radius:12px;box-shadow:none;cursor:inherit;text-align:left;overflow:hidden}.real-templates .template.active{outline:2px solid #3979d1;outline-offset:1px}.real-template-art{display:block;width:238px;height:163px;overflow:hidden;position:relative;border-bottom:1px solid #e1e6ee;background:#f4f5f7;pointer-events:none}.real-template-art iframe{position:absolute;left:0;top:0;width:1200px;height:820px;border:0;transform:scale(.1983333);transform-origin:0 0;pointer-events:none}.real-template-name{font-size:13px;padding:12px 12px 4px;white-space:normal}.real-template-category{font-size:11px;color:#728097;padding:0 12px 13px;min-height:41px;line-height:1.4}.template-card>a{display:block;font-size:12px;color:#365e8c;text-decoration:none;margin:10px 2px 4px}.template-card>a:hover{text-decoration:underline}.template-hint{font-size:12px;color:#768399;line-height:1.5;margin:12px 0 24px}.real-templates .check{z-index:2}.studio-mode .templates.real-templates{grid-template-columns:none}

.template-carousel{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:start;gap:10px;min-width:0}.template-carousel .carousel-arrow{width:40px;height:40px;padding:0;margin-top:66px;border:1px solid #d6e0ed;border-radius:50%;font-size:23px;color:#284665;background:#f7f9fd;box-shadow:0 2px 7px #23374d0a}.template-carousel .carousel-arrow:hover:not(:disabled){background:#eaf0f9;border-color:#9ab2d3}.template-carousel .carousel-arrow:disabled{opacity:.35}.template-carousel .real-templates{min-width:0}.template-heading{margin-bottom:12px}@media(max-width:600px){.template-carousel{grid-template-columns:30px minmax(0,1fr) 30px;gap:5px}.template-carousel .carousel-arrow{width:30px;height:36px;font-size:20px}}

/* Overlay controls on the template rail, without side columns. */
.template-carousel{position:relative;display:block;min-width:0}
.template-carousel .carousel-arrow{position:absolute;top:66px;margin:0;z-index:3;width:40px;height:40px;background:rgba(247,249,253,.88);backdrop-filter:blur(8px);box-shadow:0 2px 10px #23374d18}
.template-carousel #templatePrev{left:8px}
.template-carousel #templateNext{right:8px}
.template-carousel .real-templates{width:100%;box-sizing:border-box}
@media(max-width:600px){.template-carousel .carousel-arrow{width:36px;height:36px;top:68px}.template-carousel #templatePrev{left:5px}.template-carousel #templateNext{right:5px}}

/* Full-height edge hit areas; the visible arrow remains a small circle. */
.template-carousel .carousel-arrow{top:5px!important;bottom:42px;width:58px!important;height:auto!important;border:0;border-radius:0;padding:0;font-size:0!important;background:transparent!important;backdrop-filter:none;box-shadow:none!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
.template-carousel #templatePrev{left:0!important}
.template-carousel #templateNext{right:0!important}
.template-carousel .carousel-arrow::before{content:"\2190";display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border:1px solid #d6e0ed;border-radius:50%;font-size:23px;color:#284665;background:rgba(247,249,253,.88);backdrop-filter:blur(8px);box-shadow:0 2px 10px #23374d18}
.template-carousel #templateNext::before{content:"\2192"}
.template-carousel .carousel-arrow:hover:not(:disabled)::before{background:#eaf0f9;border-color:#9ab2d3}
.template-carousel .carousel-arrow:disabled{pointer-events:none}
.template-carousel .carousel-arrow:focus-visible{outline:2px solid #5689dc;outline-offset:-2px;border-radius:12px}
@media(max-width:600px){.template-carousel .carousel-arrow{width:46px!important}.template-carousel .carousel-arrow::before{width:36px;height:36px;font-size:20px}}

/* Soft shading under carousel edge controls. */
.template-carousel #templatePrev{background:linear-gradient(to right,rgba(20,35,55,.15),rgba(20,35,55,0))!important;border-radius:12px 0 0 12px}
.template-carousel #templateNext{background:linear-gradient(to left,rgba(20,35,55,.15),rgba(20,35,55,0))!important;border-radius:0 12px 12px 0}

/* Clearly bounded click zones for carousel navigation. */
.template-carousel #templatePrev,.template-carousel #templateNext{background:rgba(32,49,71,.18)!important;border-radius:10px;transition:background .16s ease}
.template-carousel #templatePrev{border-right:1px solid rgba(32,49,71,.32)}
.template-carousel #templateNext{border-left:1px solid rgba(32,49,71,.32)}
.template-carousel .carousel-arrow:hover:not(:disabled){background:rgba(32,49,71,.26)!important}
.template-carousel .carousel-arrow:disabled{opacity:0;visibility:hidden}

/* Subtle edge fades retain the wide navigation hit target. */
.template-carousel #templatePrev,.template-carousel #templateNext{border:0;border-radius:0;box-shadow:none!important;transition:opacity .18s ease}
.template-carousel #templatePrev{background:linear-gradient(90deg,rgba(27,42,61,.22) 0%,rgba(27,42,61,.10) 48%,transparent 100%)!important}
.template-carousel #templateNext{background:linear-gradient(270deg,rgba(27,42,61,.22) 0%,rgba(27,42,61,.10) 48%,transparent 100%)!important}
.template-carousel #templatePrev:hover:not(:disabled){background:linear-gradient(90deg,rgba(27,42,61,.29),rgba(27,42,61,.12) 48%,transparent)!important}
.template-carousel #templateNext:hover:not(:disabled){background:linear-gradient(270deg,rgba(27,42,61,.29),rgba(27,42,61,.12) 48%,transparent)!important}
.template-carousel .carousel-arrow::before{width:36px;height:36px;font-size:21px;background:rgba(255,255,255,.94);border:1px solid rgba(210,220,233,.8);box-shadow:0 2px 8px rgba(25,42,65,.10)}

/* Two-row horizontal template library. */
.templates.real-templates,.studio-mode .templates.real-templates{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:240px;column-gap:16px;row-gap:20px;align-items:start}
.real-templates .template-card{width:240px;min-width:0}
.template-carousel .carousel-arrow{bottom:20px}

/* Compact two-row catalogue and always-visible company fields. */
.templates.real-templates,.studio-mode .templates.real-templates{grid-auto-columns:200px;column-gap:12px;row-gap:10px;padding-bottom:8px}
.real-templates .template-card{width:200px}
.real-template-art{width:198px;height:108px}
.real-template-art iframe{transform:scale(.165)}
.real-template-name{font-size:12px;line-height:16px;padding:7px 9px 2px;min-height:32px;box-sizing:content-box}
.real-template-category{font-size:10px;line-height:14px;padding:0 9px 7px;min-height:0}
.template-card>a{font-size:11px;margin:5px 2px 0;line-height:15px}
.template-heading{margin:14px 0 8px}
.template-hint{font-size:11px;margin:6px 0 12px}
.company-details{margin-top:12px}
.company-details textarea{min-height:52px;height:52px}
.company-details .field-label{margin-top:10px;margin-bottom:6px}
.template-carousel .carousel-arrow{bottom:14px}

/* Preview link belongs visually to the same template card. */
.real-templates .template-card{box-sizing:border-box;border:1px solid #dce3ed;border-radius:12px;background:#fff;overflow:hidden}
.real-templates .template-card .template{border:0;border-radius:0;outline:none}
.real-templates .template-card:has(.template.active){outline:2px solid #3979d1;outline-offset:1px}
.real-templates .template-card .template:focus-visible{box-shadow:inset 0 0 0 2px #3979d1}
.real-templates .template-card>a{margin:0;padding:6px 9px 8px;border-top:1px solid #edf0f5;font-size:11px;line-height:15px}
.real-templates .template-card>a:hover{background:#f6f8fc}

/* Saved project details have explicit save and preview actions. */
.studio-mode .project-form-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}
.studio-mode .project-form-actions .create{flex:1;min-width:190px;margin:0}
.project-form-actions>button{min-height:46px;padding:12px 18px}
.project-form-feedback{font-size:13px;line-height:1.6;margin:12px 0 0;overflow-wrap:anywhere}
.project-form-feedback:empty{display:none}
.project-form-feedback[data-tone=success]{color:#217445}
.project-form-feedback[data-tone=error]{color:#a63232}
.project-regenerate{margin-top:18px;border:1px solid #dce5f1;border-radius:12px;padding:18px;background:#f6f8fc}
.project-regenerate strong{font-size:14px}.project-regenerate p{font-size:12px;line-height:1.6;color:#6b7b90;margin:8px 0 14px}
.project-regenerate button{font-size:13px;min-height:42px}.project-reload{align-self:flex-start;margin-top:10px}
.project-fields-note{font-size:12px;line-height:1.6}
@media(max-width:600px){.project-form-actions>button{width:100%}.studio-mode .project-form-actions .create{min-width:0}.project-regenerate{padding:15px}}

/* BM is optional internal metadata, separate from public company details. */
.studio-bm-field{max-width:420px;margin-top:16px}
.studio-bm-field .field-label{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.studio-bm-field .optional-label{font-size:11px;font-weight:400;color:#7b889c}
.studio-bm-field input{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.studio-bm-field .field-help{margin:7px 0 0}
@media(max-width:600px){.studio-bm-field{max-width:none}}

/* The Studio monitor sits on the right; dialogs retain their higher layer. */
body.studio-copy #bmRail{left:auto;right:16px}
body.studio-copy #bmRail[hidden]{display:none!important}
@media(min-width:1101px){body.studio-copy.has-bm-rail{padding-left:0;padding-right:280px}}
@media(min-width:1101px) and (max-width:1500px){body.studio-copy.has-bm-rail.studio-mode .layout{grid-template-columns:240px minmax(0,1fr);gap:20px}}
@media(max-width:1100px){body.studio-copy #bmRail{left:auto;right:12px}}
