/* Shared Studio design language. Loaded last so every workspace uses the same controls. */
.feedback-entry{padding:22px 0;border-bottom:1px solid var(--line)}.feedback-entry .push-section-heading{margin-bottom:12px}.feedback-entry select{padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text)}.feedback-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;max-width:850px}.feedback-entry small{display:block;line-height:1.8}
.prompt-count{display:block;text-align:right;margin-top:7px;font-variant-numeric:tabular-nums}.prompt-count.is-over-limit{color:#e6a09a}
.style-bulk-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;border:0;background:transparent;text-align:left;color:var(--text);cursor:pointer}.style-bulk-toggle>span{color:var(--muted);font-size:11px}.style-bulk-controls[aria-busy="false"] .button:disabled{cursor:not-allowed!important}.style-bulk-controls[aria-busy="true"] .button:disabled{cursor:progress!important}#style-bulk-panel{padding-top:8px;border-top:1px solid var(--line)}#style-bulk-panel>.muted{font-size:11px;margin:4px 0 12px}
.style-bulk-controls{display:grid;gap:12px;margin-bottom:22px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.style-bulk-controls>div:first-child{display:flex;align-items:center;gap:15px}.style-bulk-controls strong{font-size:12px}.style-bulk-controls .muted{font-size:11px}.style-bulk-actions{display:flex;align-items:start;gap:8px;flex-wrap:wrap}#style-bulk-collections{position:relative}#style-bulk-collections summary{list-style:none;cursor:pointer}#style-bulk-collections summary::-webkit-details-marker{display:none}#style-bulk-collections[open] summary{border-color:#c4a45e}#style-bulk-collection-options{position:absolute;z-index:12;top:48px;left:0;width:270px;max-height:320px;overflow:auto;padding:12px;border:1px solid #5b543d;border-radius:12px;background:#20211e;box-shadow:0 10px 30px #0007}#style-bulk-collection-options label{display:flex;align-items:center;gap:9px;padding:8px;font-size:11px;cursor:pointer}#style-bulk-collection-options input,.style-select-label input{width:16px;height:16px;min-height:16px;padding:0;accent-color:#c4a45e}.style-select-label{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted);cursor:pointer}.style-card.is-bulk-selected{border-color:#c4a45e;box-shadow:0 0 0 1px #c4a45e}.style-card.is-bulk-selected .style-select-label{background:#302b1d;color:#e3c788}
.editor-dialog input[type="checkbox"],.collection-check input[type="checkbox"],.home-toggle{width:16px!important;height:16px!important;min-width:16px;min-height:16px!important;max-width:16px;max-height:16px;padding:0!important;margin:0;flex:0 0 16px;accent-color:#c4a45e}
.editor-dialog label.collection-check{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:9px 11px;background:#232423;border-color:#3b3d37;font-size:11px;font-weight:500;min-height:36px}.checkbox-grid{gap:8px}
#collections-panel .collections-list{max-width:none;width:100%}#collections-panel .collection-head,#collections-panel .collection-row{grid-template-columns:minmax(180px,1fr) 180px 90px 160px;column-gap:16px;padding-left:20px;padding-right:20px}#collections-panel .collection-toolbar select{width:auto;min-width:200px;max-width:280px}#collections-panel .collection-head>span:last-child{text-align:right}#collections-panel .home-control{background:#232423;border-color:#3b3d37;padding:9px 11px;font-size:11px}
@media(max-width:1050px) and (min-width:651px){#collections-panel .collection-head,#collections-panel .collection-row{grid-template-columns:minmax(120px,1fr) 145px 60px 135px;column-gap:10px}}
@media(max-width:650px){#collections-panel .collection-head{display:none}#collections-panel .collection-row{grid-template-columns:minmax(130px,1fr) auto;gap:12px}#collections-panel .collection-row .home-control{grid-column:1;grid-row:2}#collections-panel .collection-row .collection-count{grid-column:2;grid-row:1}#collections-panel .collection-row .collection-actions{grid-column:1/-1;grid-row:3}}
:root{--bg:#101110;--surface:#191a19;--surface2:#242524;--line:#343534;--text:#efeee8;--muted:#a0a29b;--purple:#c4a45e;--purple2:#dfc58a;--green:#9bb39c;--red:#e6a09a;color-scheme:dark}
body{background:var(--bg);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{transition:background .16s,border-color .16s,color .16s,box-shadow .16s}
button:focus-visible,a:focus-visible{outline:2px solid #d6b86f;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #c4a45e;outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.48}.button{min-height:40px;padding:10px 17px;border-radius:10px;font-size:12px;font-weight:650;letter-spacing:.01em}
.button.primary{color:#201b10;background:#d3b574;box-shadow:none}.button.primary:hover{background:#e1c58a;filter:none;transform:none;box-shadow:0 3px 12px #0002}
.button.secondary{color:#d4d6ce;background:#212221;border:1px solid #3b3c3b;box-shadow:none}.button.secondary:hover{background:#2c2d2c;border-color:#626b57}
.delete-button,.button.danger{background:#2c2020;color:#e5aaa3;border:1px solid #63433e;border-radius:8px;box-shadow:none}.delete-button:hover{background:#392724}
.app-shell{grid-template-columns:240px minmax(0,1fr)}.sidebar{background:#151615;border-color:#2d2e2d;padding:28px 16px 18px;gap:3px;overflow-y:auto}.brand{padding:0 10px 34px;gap:10px}.studio-brand-title{width:109px}.studio-word{font-size:9px;letter-spacing:.13em;color:#c9ad70;border-color:#404140}.side-label{color:#7c8277;font-size:9px;padding:2px 13px 12px;letter-spacing:.18em}.side-link{padding:13px 14px;font-size:13px;color:#afb3a8;border:1px solid transparent;border-radius:11px;gap:12px;min-height:46px}.side-link:hover{background:#222322;color:#edece5}.side-link.active{color:#e3c788;background:#2c291f;border-color:#494332}.side-link svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.side-link small{font-size:10px;color:#afb3a5;background:#333433;border-radius:6px;padding:1px 6px}.sidebar>.side-link[data-panel="logs-panel"]{margin-top:auto;margin-bottom:16px}.sidebar>.sidebar-note{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 12px 3px;font-size:10px;color:#92988a;flex-shrink:0}.live-dot,.live-pill i{box-shadow:none;background:#91a386;width:5px;height:5px}.side-logout{padding:10px 13px;font-size:12px;color:#989e90}.side-logout:hover{color:#edece3}
.topbar{height:76px;padding:0 clamp(22px,3vw,46px);background:#131413;border-color:#2e2f2e}.topbar .eyebrow{font-size:9px;color:#89917f;letter-spacing:.13em;margin-bottom:3px}.account-email{font-size:12px;color:#c5c8be}.live-pill{font-size:10px;border-color:#373837;background:#202120;color:#b1b9a7;padding:6px 10px}.icon-button{width:36px;height:36px;background:#222322;border-color:#3b3c3b;color:#c2c9b6;font-size:21px}
.panel-view{max-width:1680px;padding:38px clamp(22px,3vw,46px) 64px}.page-heading{margin-bottom:28px;gap:24px;align-items:center}.page-heading h1{font-size:29px;font-weight:650;letter-spacing:-.035em;line-height:1.2;margin-bottom:9px}.eyebrow,.page-heading .eyebrow{color:#b29d6d;font-size:9px;letter-spacing:.16em;font-weight:650}.page-heading .muted{font-size:12px;line-height:1.7;max-width:720px;color:#a0a59a}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;padding:15px;background:#191a19;border:1px solid var(--line);border-radius:14px;margin-bottom:24px}.search-box{min-width:220px;max-width:none;flex:1 1 230px;height:42px;background:#121312;border-color:#3b3c3b;border-radius:9px;padding:0 13px}.search-box span{color:#9b9279;font-size:21px}.toolbar select{min-width:135px;max-width:220px;background:#202120;border-color:#3b3c3b;border-radius:9px;font-size:11px;padding:10px 12px}.toolbar .muted{font-size:10px;white-space:nowrap}
.stack input,.editor-dialog input,.editor-dialog textarea,.editor-dialog select,.collection-create input,.collection-toolbar select,.logs-toolbar input,.logs-toolbar select,.push-fields input,.push-fields textarea,.push-fields select,.push-sending input,.test-prompt-label textarea,.test-export-controls select,#users-search input,#users-search select,.user-controls input,.user-controls select,.user-controls textarea{background:#121312;border:1px solid #3e3f3e;color:#e6e7de;border-radius:9px;padding:11px 13px;font-size:12px;box-shadow:none;min-height:42px;width:100%;box-sizing:border-box}.push-fields input[type=file]{padding:9px}.push-fields input[type=file]::file-selector-button{border:0;border-radius:6px;padding:6px 10px;margin-right:12px;background:#2f302f;color:#d7ddcc;font:inherit}input::placeholder,textarea::placeholder{color:#7d8574}.field-hint{font-size:10px;line-height:1.65;color:#97a18b}.form-error{color:#e6a09a}.notice{background:#222322;border-color:#4e4f4e;color:#e1d6b0;border-radius:12px;font-size:12px;box-shadow:0 8px 24px #0003}.notice.error{background:#2c201e;border-color:#6a4540;color:#e8b4ab}
.styles-grid{gap:18px}.style-card.website-style-card{background:#1a1b1a;border-color:#393a39;border-radius:16px;box-shadow:none}.style-card:hover{transform:translateY(-2px);border-color:#776b4c;box-shadow:0 8px 20px #0002}.style-body{padding:16px;gap:9px}.style-card-title{font-size:14px;font-weight:600;letter-spacing:-.01em}.style-description{color:#a7ae9e;font-size:11px;line-height:1.65}.style-admin-footer{border-color:#343534;gap:8px}.style-id{color:#96a089!important}.style-collection-pill{background:#11150fd9;border-color:#a2af8b35;font-size:10px;padding:5px 9px}.verification-badge{font-size:8px;font-weight:600}.verification-badge.is-verified{background:#262726;border-color:#4f504f;color:#b6c8a9}.verification-badge.is-unverified{background:#2b291c;border-color:#635b36;color:#cbbd83}.edit-button,.text-button{color:#d7bc80}.chip{font-size:9px;background:#252625;border-color:#424342;color:#cfbf8c}
.collection-create,.logs-toolbar,#users-search{padding:18px 20px;background:#191a19;border:1px solid var(--line);border-radius:14px;gap:14px}.collection-row{background:#1b1c1b;border-color:#3a3b3a;border-radius:12px;padding:17px 20px}.collection-head{color:#919d84;font-size:9px}.collection-count{color:#a6b199}.collection-toolbar{font-size:11px}.logs-table-wrap{background:#171817;border-color:#3a3b3a;border-radius:14px}.logs-table th{background:#202120;color:#98a58b;font-size:9px;letter-spacing:.1em}.logs-table td{font-size:12px;color:#d9dfd1;padding:15px 18px;border-color:#363736}.log-action{background:#282928;border-color:#575238;color:#d6bf85;font-size:9px}.log-member-email,.log-item-id{color:#99a88a}.logs-pagination{font-size:11px;padding:16px 2px}
.users-table-wrap{background:#171817;border-color:#3a3b3a}.users-table th{background:#202120;color:#98a58b}.users-table td{border-color:#353635}.users-table>tbody>tr:not(#user-detail-row):hover>td{background:#1f201f}.users-table>tbody>tr.is-expanded>td{background:#2c2c20}.user-status{font-size:9px;font-weight:500}.user-credit-count{font-size:16px}table.users-table>tbody>tr#user-detail-row>td{background:#121312;padding:18px 22px 24px}table.users-table>tbody>tr#user-detail-row #user-details{background:#1c1d1c;border-color:#625b3d;border-radius:16px;box-shadow:none;padding:24px}.user-summary>div{background:#232423;border-color:#414241}.user-controls{background:#1a1b1a;border-color:#434443;padding:20px}.user-controls h3{font-size:13px}.user-history-tabs .is-active{background:#343321;border-color:#a18e56;color:#e2c788}#user-history .logs-table-wrap{background:#191a19}#user-history .logs-table th{background:#262726}#user-history .logs-table td{color:#d8e0cd}
.push-workspace{gap:22px;grid-template-columns:minmax(0,1fr) 300px}.push-history,.push-editor{border-radius:16px;background:#1a1b1a;border-color:#3d3e3d;padding:24px}.push-history{position:sticky;top:22px}.push-section-heading{margin-bottom:22px}.push-section-heading h2{font-size:17px;letter-spacing:-.02em;font-weight:600}.push-section-heading p{font-size:11px}.push-fields{gap:19px}.push-fields label,.push-sending label{font-size:11px;font-weight:550;color:#cfd7c2}.push-status{font-size:9px;background:#272827;border-color:#5a5834;color:#cfc18a;padding:3px 8px}.push-campaign{background:#232423;border-color:#444544;border-radius:12px;padding:15px;gap:7px}.push-campaign:hover,.push-campaign.is-selected{background:#333022;border-color:#9d8c51}.push-campaign strong{font-size:12px;font-weight:600}.push-campaign small{font-size:10px;color:#a1ac94}.push-card-clear{background:transparent;border-color:#5c443a;color:#cba896}.push-recent{border-color:#414241}.push-recent h3{font-size:9px;letter-spacing:.12em}.push-phone-preview{max-width:480px;background:#272827;border-color:#565756;border-radius:15px;box-shadow:none;margin:24px 0;padding:19px}.push-phone-preview strong{font-size:14px}.push-phone-preview p{font-size:12px;color:#cbd4bf}.push-app-name{color:#b9ad80;font-size:10px}.push-sending{padding-top:20px;border-color:#434443}.push-editor h3{font-size:13px;font-weight:600}.push-metrics>div{background:#232423;border-color:#434443;border-radius:12px}.push-metrics strong{color:#d9bd7e;font-size:24px}.push-banner{width:fit-content;max-width:100%;font-size:11px;padding:9px 13px;background:#28271b;border-color:#5c5331;color:#cdbb87;border-radius:9px;margin-bottom:20px}.push-empty{padding:16px;border:1px dashed #4a4b4a;border-radius:12px;color:#99a888;font-size:11px}.push-log-table th,.push-log-table td{border-color:#424342}
.prompt-test-layout,.prompt-test-controls,.prompt-test-result{border-color:#3d3e3d;background:#1b1c1b;border-radius:16px}.prompt-test-result{background:#151615}.test-image-picker,.style-example-upload{background:#202120;border-color:#444544;border-radius:12px}.test-image-icon,.test-empty-state>span{color:#cbb477}.test-prompt-label,.test-export-controls>label{color:#c8d3bc}.test-cost-note{color:#9aa987}.test-export-controls output,.test-generation-progress p,.test-nav-status{color:#cfbb87!important}.generation-orbit{border-color:#474847;border-top-color:#d2b875;border-right-color:#a8b88d}.generation-orbit i{border-color:#6d7e54;box-shadow:0 0 20px #a3b07822 inset}.generation-progress-track{background:#383938}.generation-progress-track i{background:linear-gradient(90deg,#6d7951,#d6ba75)}.verification-control{background:#232423;border-color:#464746}.verification-control small{color:#a0b18e}.verification-check{color:#ceddbf}.style-id-preview{background:#161716;border-color:#464746;color:#cbb477}.style-example-preview{background:#141514}
.editor-dialog{background:#1b1c1b;border-color:#484948;border-radius:18px;box-shadow:0 25px 90px #0008}.editor-dialog::backdrop{background:#050704b8;backdrop-filter:blur(4px)}.dialog-header,.dialog-footer{border-color:#3f403f}.login-card{background:#1a1b1a;border-color:#414241;box-shadow:0 20px 70px #0004}.login-card h1{letter-spacing:-.035em;font-size:28px}
@media(max-width:1250px){.styles-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.push-workspace{grid-template-columns:minmax(0,1fr) 270px}.toolbar select{flex:1 1 140px;max-width:none}.toolbar .search-box{flex-basis:100%}}
@media(max-width:1000px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:24px 12px 16px}.brand{gap:7px}.studio-brand-title{width:94px}.studio-word{font-size:8px;padding-left:7px}.push-workspace{grid-template-columns:1fr}.push-history{position:static}.styles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 22px}}
@media(max-width:760px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:16px}.brand{grid-column:1/-1;padding:0 0 14px}.side-link{font-size:11px;padding:10px;gap:7px;min-height:42px}.side-link svg{width:15px;height:15px}.sidebar>.side-link[data-panel="logs-panel"]{margin:0}.side-logout{right:16px;top:14px}.sidebar>.sidebar-note{display:none}.side-label{display:none}.topbar{height:63px;padding:0 18px}.topbar .eyebrow{display:none}.panel-view{padding:26px 18px 42px}.page-heading{gap:12px;align-items:flex-start}.page-heading h1{font-size:25px}.page-heading .muted{font-size:11px}.page-heading .button{padding:10px 12px;font-size:11px}.push-editor,.push-history{padding:18px}.push-two-fields{grid-template-columns:1fr}.toolbar{padding:12px}.styles-grid{gap:12px}.style-body{padding:13px}.style-card-title{font-size:13px}.collection-row{padding:14px}.user-summary{grid-template-columns:1fr 1fr}.top-actions{gap:8px}.live-pill{display:none}}
@media(max-width:420px){.side-link{font-size:10px;padding:8px;gap:5px}.side-link small{padding:1px 4px}.styles-grid{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}.page-heading>.button{margin-top:4px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}

/* Long diagnostic references wrap without stretching the user history panel. */
.generation-diagnostics { white-space: pre-line; min-width: 260px; max-width: 420px; overflow-wrap: anywhere; }

/* Editor attribution stays at the lower left, actions stay at the right. */
.style-editor-footer { flex-wrap: wrap; }
.style-editor-footer .style-last-editor { margin-right: auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; color: var(--muted); font-weight: 400; }
.style-editor-footer .form-error:empty { display: none; }
@media (max-width: 600px) { .style-editor-footer .style-last-editor { flex-basis: 100%; } }
