/* Merchant reference design. Kept separate from functional component styles. */
:root{--page-bg:#f5f5f4;--sidebar-bg:#111211;--shell-bg:#fff;--card-border:#e8e9ec;--line:#eceef0;--ink:#171918;--muted:#858a91;--success:#20a568;--shadow:none;--color-background-primary:#fff;--color-background-secondary:#f7f8f9;--color-text-primary:#171918;--color-text-secondary:#727780;--color-text-tertiary:#92979e;--color-border-tertiary:#e7e9ec;--border-radius-md:5px}
body{background:#f5f5f4;font-family:Arial,"Segoe UI",sans-serif;font-size:12px;line-height:1.5}
h1,h2,h3,h4{font-family:inherit;font-weight:500;letter-spacing:0}
button,input,textarea,select{font-family:inherit;font-size:12px}
.workspace-shell{grid-template-columns:180px minmax(0,1fr);min-height:100vh;max-width:1800px;margin:auto;background:white}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#111211;padding:0;color:#fff;overflow:auto}
.brand-panel{padding:20px 14px;gap:9px;border-bottom:1px solid #262726;min-height:76px}
.brand-mark{width:31px;height:31px;border-radius:8px;font-size:10px;letter-spacing:0;background:radial-gradient(circle at 35% 30%,#e6a5c8,#967fc3 65%,#fff 68%);border:3px solid white;flex-shrink:0}
.sidebar h1{font-size:13px;font-weight:500}.sidebar-label,.sidebar-copy{display:none}
.nav-group-label{font-size:8px;text-transform:uppercase;letter-spacing:1.3px;color:#727570;margin:20px 14px 8px}
.nav-list{gap:3px;display:flex;flex-direction:column}.nav-list .nav-group-label{margin-top:14px}
.nav-button{border:0;border-radius:0;background:transparent;color:#a9ada9;padding:12px 14px;font-size:11px;text-align:left;box-shadow:none;line-height:1.3}
.nav-button:hover{background:#1c1e1c;color:#fff}.nav-button.active{background:#292b29;color:white;box-shadow:inset 2px 0 #ddd}
.sidebar-status{margin:auto 0 0;padding:20px 14px;background:transparent;border:0;border-top:1px solid #282a28;border-radius:0}.sidebar-status-label{font-size:9px}.sidebar-status-value{font-size:10px;overflow-wrap:anywhere}
.workspace-main{padding:0;min-width:0;background:#fff}.topbar{padding:20px 24px;min-height:76px;border-bottom:1px solid var(--line);background:#fff;gap:16px;align-items:center}.topbar .eyebrow{display:none}.topbar h2{font-size:16px;margin:0 0 3px}.topbar-subtitle{font-size:11px;line-height:1.5;margin:0;color:#858a91;max-width:580px}.topbar-actions{gap:9px}.status-pill{font-size:10px;padding:4px 8px;border-radius:4px;background:#effaf2;color:#248c53;border:0}
.main-content{padding:22px 24px;max-width:none}.section-stack{gap:18px}.workspace-card,.metric-card{box-shadow:none;background:#fff;border:1px solid var(--card-border);border-radius:5px;padding:16px}.card-header{margin-bottom:13px;gap:12px}.card-header h3{font-size:12px}.card-eyebrow,.control-group-title,.metric-label{font-size:9px;font-weight:500;letter-spacing:.65px;text-transform:uppercase;color:#7b818a}.card-copy,.empty-copy{font-size:11px;color:#8a8f96;line-height:1.6}.metric-grid{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.metric-value{font-size:26px;font-weight:500;line-height:1.2;margin:8px 0}.metric-badge{background:transparent;color:#22965d;border:0;border-radius:0;padding:0;font-size:10px}.panel-grid{gap:16px}.panel-grid-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
.primary-button,.secondary-button,.ghost-button{border-radius:4px;padding:7px 12px;font-size:11px;min-height:30px;box-shadow:none}.primary-button{background:#171917;color:white;border:1px solid #171917}.secondary-button,.ghost-button{background:white;color:#555b63;border:1px solid #e1e4e8}.primary-button:hover{background:#303530}
.field input,.field select,.field textarea,input:not([type=checkbox]):not([type=color]):not([type=hidden]),select,textarea{border:1px solid #e0e4e9;border-radius:4px;background:#fff;padding:7px 9px;color:#3d4349;max-width:100%}.field label,.field-label{font-size:11px;font-weight:400;color:#666e78}.field-hint{font-size:10px}.form-grid{gap:12px}.section-form{gap:16px}.control-group-title{margin:20px 0 9px}.field textarea{min-height:65px}
.reference-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:-8px 0 22px}.reference-tab{background:none;border:0;border-bottom:2px solid transparent;padding:10px 0;font-size:11px;color:#767c83}.reference-tab.active{color:#161816;border-bottom-color:#161816}
.reference-customizer{display:grid;grid-template-columns:minmax(320px,510px) minmax(260px,1fr);gap:60px;align-items:start}.reference-customizer .workspace-card{border:0;padding:0;border-radius:0}.reference-customizer .sg-subtab{font-size:11px!important;padding:8px 10px!important}.reference-preview{text-align:center;position:sticky;top:24px;padding:0 12px}.reference-preview>.control-group-title{margin-top:0}.reference-devices{display:flex;justify-content:center;gap:3px;margin:8px 0 18px}.reference-devices button{font-size:10px;padding:4px 8px;background:#fff;border:1px solid #e8e9ec;border-radius:3px;color:#727780}.reference-devices button[aria-pressed=true]{background:#e5e6e7;color:#111}.reference-device{margin:0 auto 16px;border:7px solid #181a18;border-radius:13px;background:#fff;min-height:355px;width:100%;max-width:310px;padding:9px;box-shadow:0 0 0 1px #d5d6d5;transition:max-width .2s}.reference-device[data-device=phone]{max-width:230px;min-height:410px}.reference-device[data-device=desktop]{max-width:440px;min-height:280px}.reference-device>div{min-height:315px}.palette-grid{gap:8px}.palette-control{border:0;padding:4px;background:none}.palette-control input[type=color]{width:30px;height:30px;padding:0;border:0;border-radius:50%;overflow:hidden}.palette-control strong{font-size:9px}.palette-control span{font-size:10px}
table{width:100%;border-collapse:collapse;font-size:11px}th{font-size:9px;letter-spacing:.4px;color:#858b94;font-weight:500;text-transform:uppercase}td,th{padding:12px 10px;border-bottom:1px solid #eff0f2;text-align:left}.table-wrap{overflow:auto}.tag,.badge{font-size:10px;border-radius:4px}.toast{border-radius:6px;box-shadow:0 8px 35px #0002}
button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #818c9f;outline-offset:3px}
body[data-section=overview] .workspace-main{background:#f8f8f7}body[data-section=overview] .topbar{background:#fff}
@media(min-width:1400px){.main-content{padding:26px 32px}.reference-customizer{gap:100px}.workspace-shell{grid-template-columns:195px minmax(0,1fr)}}
@media(max-width:1000px){.workspace-shell{grid-template-columns:155px minmax(0,1fr)}.main-content,.topbar{padding:18px}.reference-customizer{grid-template-columns:minmax(250px,1fr) minmax(210px,1fr);gap:22px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{flex-wrap:wrap}.nav-button{padding:11px;font-size:10px}}
@media(max-width:700px){.workspace-shell{display:block}.sidebar{position:relative;height:auto}.brand-panel{padding:12px;min-height:52px}.sidebar>.nav-group-label,.nav-list .nav-group-label,.sidebar-status{display:none}.nav-list{flex-direction:row;overflow-x:auto;padding:0 8px 8px;gap:4px}.nav-button{white-space:nowrap;border-radius:4px}.nav-button.active{box-shadow:none}.reference-customizer{grid-template-columns:minmax(0,1fr);gap:28px}.reference-preview{position:static}.panel-grid,.panel-grid-overview{grid-template-columns:minmax(0,1fr)}.main-content{padding:16px}.topbar-subtitle{max-width:100%}.form-grid{grid-template-columns:1fr}.reference-customizer .sg-subtab{padding:8px 5px!important}.topbar-actions{flex-wrap:wrap}.reference-device{max-width:310px}}
@media(prefers-reduced-motion:reduce){.reference-device{transition:none}}
[hidden]{display:none!important}
body[data-section=care] #careForm{max-width:650px}body[data-section=care] .workspace-card{border:0;padding:0}body[data-section=care] .control-group{background:#fff;border:0;padding:0;margin-bottom:20px}body[data-section=care] .repeater-card{border:1px solid #e7e9ec;border-radius:4px;background:#fafbfc;padding:13px}.repeater-header h4{font-size:12px}
.connected-catalog-grid{display:flex;flex-direction:column;gap:0}.connected-catalog-card{display:flex;align-items:center;gap:14px;border:0;border-bottom:1px solid #eceef0;border-radius:0;padding:12px 0;background:#fff}.connected-catalog-media{width:44px;height:48px;min-height:0;flex:0 0 44px;border-radius:4px;overflow:hidden}.connected-catalog-media img{width:100%;height:100%;object-fit:cover}.connected-catalog-copy{padding:0;flex:1;min-width:0}.connected-catalog-copy strong{font-size:12px}.connected-catalog-copy p{font-size:10px;margin:3px 0}.connected-catalog-meta{font-size:10px;gap:8px}.connected-catalog-links{font-size:10px;margin-top:5px}.catalog-section-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:700px){#sg-charts-section>div[style*="display:grid"]{grid-template-columns:minmax(0,1fr)!important}.builder-kpi-grid,.analytics-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.screen-form-group{margin-bottom:26px}.screen-form-group>.field{margin-bottom:12px}.screen-form-group .control-group-title{margin-top:0}.screen-palette{display:flex;gap:10px}.screen-palette label{text-align:center;font-size:9px;color:#858b92}.screen-palette input{display:block;width:32px;height:32px;border:0;border-radius:50%;padding:0;overflow:hidden;margin-bottom:5px}.screen-tones{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.screen-chat-preview{background:var(--bot-surface,#f9f9f9);color:var(--bot-text,#171717);font-family:var(--preview-body-font,Arial);min-height:340px;text-align:left}.screen-chat-preview header{display:flex;align-items:center;gap:8px;padding:14px;background:var(--bot-primary,#eee);font-size:12px}.screen-chat-preview header>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:9px}.screen-chat-body{padding:20px 13px}.screen-chat-body h3{font-family:var(--preview-heading-font,Georgia);font-size:17px}.screen-chat-body p{font-size:12px;line-height:1.7}.screen-prompt{display:block;padding:9px;margin:8px 0;border:1px solid #ddd;border-radius:5px;background:var(--bot-bubble,#fff);font-size:10px}.screen-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 14px}.screen-toolbar h3{margin:0;font-size:13px}.screen-toolbar small{font-size:10px;color:#92979e}.screen-search{margin-left:auto;font-size:10px;color:#858b92;display:flex;align-items:center;gap:8px}.screen-table-wrap{overflow:auto}.screen-product-table{min-width:680px}.screen-product-name{display:flex;align-items:center;gap:10px;max-width:290px}.screen-product-name img,.screen-product-placeholder{width:36px;height:40px;object-fit:cover;background:#f1f2f2;border-radius:4px;flex-shrink:0}.screen-product-name small{display:block;color:#93989f;font-size:9px;margin-top:3px}.screen-badge{display:inline-block;font-size:9px;border-radius:4px;padding:2px 7px;background:#f0f1f2;color:#686e74;margin:2px;white-space:nowrap}.screen-badge.warning{background:#fff4ce;color:#926e12}.screen-badge.good{background:#e3faed;color:#188a51}.screen-pagination{margin-left:auto;display:flex;gap:6px}.screen-toolbar button[aria-pressed=true]{background:#171917;color:#fff}.screen-empty{padding:42px 20px;border:1px dashed #e0e4e8;border-radius:5px;text-align:center;color:#828992}.screen-empty h3{color:#333;font-size:15px}.screen-look-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.screen-look-card{padding:0;text-align:left;border:1px solid #e5e8eb;border-radius:6px;background:white;overflow:hidden;color:#252925}.screen-look-art{min-height:170px;display:grid;place-items:center;background:linear-gradient(125deg,#e7e1d5,#c8c7b9);margin-top:16px}.screen-look-card .screen-look-art{margin:0}.screen-look-art span{font-family:Georgia,serif;font-size:52px;color:#ffffffb0}.screen-look-art.art-1{background:linear-gradient(125deg,#bbc7cc,#55616b)}.screen-look-art.art-2{background:linear-gradient(125deg,#eddfdc,#bda6a1)}.screen-look-caption{padding:14px}.screen-look-caption h3{font-size:13px;margin:0 0 7px}.screen-look-caption p{font-size:11px;color:#868b92;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px}.screen-look-caption>span:last-child{font-size:10px}.screen-detail{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin-top:24px}.screen-detail aside{align-self:start}.screen-notes{white-space:pre-wrap;color:#727880;line-height:1.8}.screen-knowledge-row{display:flex;align-items:start;justify-content:space-between;gap:24px;border-bottom:1px solid #e7e9ec;padding:17px 0}.screen-knowledge-row h3{font-size:12px;margin:0 0 6px}.screen-knowledge-row p{font-size:11px;color:#7a8189;line-height:1.7}.screen-training-progress{max-width:700px;text-align:center;border:1px solid #e7e9ec;padding:25px;margin:24px 0}.screen-training-progress strong{font-size:36px;font-weight:400}.screen-training-progress progress{width:100%;height:7px;accent-color:#27965b}.screen-list-row{padding:12px 0;display:flex;justify-content:space-between;border-bottom:1px solid #eee}
@media(max-width:1000px){.screen-look-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-detail{grid-template-columns:1fr}}@media(max-width:600px){.screen-look-grid{grid-template-columns:1fr}.screen-search{margin:0;width:100%}.screen-search input{flex:1;min-width:0}.screen-knowledge-row{flex-direction:column}.screen-tones{grid-template-columns:repeat(2,1fr)}}
/* Full-resolution reference proportions: spacious editor and compact overview. */
body{font-family:"Segoe UI",Arial,sans-serif;font-size:14px}.workspace-shell{max-width:none;grid-template-columns:clamp(230px,16.2vw,312px) minmax(0,1fr)}.brand-panel{min-height:118px;padding:22px 24px;gap:16px}.brand-mark{width:56px;height:56px;font-size:17px;border-radius:14px}.sidebar h1{font-size:23px;font-weight:600}.nav-group-label{font-size:11px;margin:18px 15px 12px}.nav-button{padding:21px 15px;font-size:18px;line-height:1.4}.nav-list{gap:0}.sidebar-status{padding:20px 16px}.sidebar-status-label,.sidebar-status-value{font-size:12px}.topbar{min-height:113px;padding:32px 36px 18px;border-bottom:0;align-items:start}.topbar h2{font-size:25px;font-weight:500}.topbar-subtitle{font-size:20px;max-width:800px;line-height:1.4;color:#737b8e}.main-content{padding:0 36px 36px}.reference-tabs{margin:0 -36px 40px;padding:0 36px;gap:70px}.reference-tab{font-size:19px;padding:13px 0 18px;border-bottom-width:4px}.reference-customizer{grid-template-columns:minmax(380px,770px) minmax(300px,1fr);gap:clamp(40px,7vw,140px)}.reference-customizer .section-form{max-width:770px}.screen-form-group{margin-bottom:38px}.screen-form-group>.field{max-width:385px;margin-bottom:13px}.control-group-title{font-size:14px;letter-spacing:0;margin-bottom:9px}.field>span,.field-label{font-size:17px;color:#4b566d}.field input,.field select,.field textarea{padding:10px 12px!important;min-height:43px;font-size:16px;border-color:#cfd5df;border-radius:7px!important}.screen-palette{gap:9px}.screen-palette input{width:48px;height:48px;cursor:pointer}.screen-palette input::-webkit-color-swatch-wrapper{padding:0}.screen-palette input::-webkit-color-swatch{border:0;border-radius:50%}.screen-palette label span{font-size:10px}.screen-typography{grid-template-columns:minmax(200px,385px) minmax(120px,170px);gap:20px}.reference-preview{padding:0;top:28px}.reference-preview>.control-group-title{font-size:15px}.reference-devices{display:inline-flex;border:1px solid #d4d9e2;border-radius:7px;gap:0;margin:0 0 36px;overflow:hidden}.reference-devices button{border:0;border-radius:5px;min-width:62px;height:43px;display:grid;place-items:center;padding:9px}.device-symbol{display:block;border:2px solid #626568;position:relative}.device-symbol-phone{height:24px;width:14px;border-radius:3px}.device-symbol-phone:after{content:"";position:absolute;width:5px;height:2px;background:#626568;bottom:2px;left:3px}.device-symbol-tablet{height:24px;width:19px;border-radius:2px}.device-symbol-desktop{height:18px;width:25px;border-radius:1px}.device-symbol-desktop:after{content:"";position:absolute;left:7px;bottom:-7px;width:8px;height:5px;border-bottom:2px solid #626568;border-left:2px solid #626568}.reference-device{max-width:400px;min-height:510px;border-width:12px;border-top-width:17px;border-radius:22px;padding:0}.reference-device[data-device=phone]{max-width:260px;min-height:490px}.reference-device[data-device=desktop]{max-width:520px;min-height:330px}.screen-chat-preview{min-height:485px}.reference-device[data-device=desktop] .screen-chat-preview{min-height:305px}.screen-chat-preview header{padding:16px}.screen-chat-body{padding:22px 17px}.reference-preview .primary-button{font-size:14px;padding:10px 22px}.topbar-actions{align-items:center}.topbar-actions button{white-space:nowrap}.primary-button,.secondary-button{font-size:13px}.metric-grid{margin-top:20px}.overview-metrics{margin:0;padding:16px 0 24px;gap:24px}.overview-metrics .metric-card{border:0;background:transparent;padding:12px 18px}.overview-metrics .metric-label{font-size:12px;font-weight:600;letter-spacing:.7px;margin:0 0 6px}.overview-metrics .metric-value{font-size:31px;font-weight:300;margin:0}.overview-metrics .card-copy{color:#248747;font-size:13px;margin:2px 0}.overview-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px;align-items:start}.overview-reference-grid>.workspace-card{padding:20px;border-radius:12px;border:1px solid #dedfe2;min-height:270px}.overview-reference-grid>.overview-activity{min-height:130px}.overview-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.overview-panel-heading h3{font-size:14px;text-transform:uppercase;letter-spacing:.5px;font-weight:600;margin:0}.overview-link{border:0;background:none;color:#929292;font-size:14px;padding:0}.overview-health-row{margin-bottom:14px}.overview-health-row>div{display:flex;justify-content:space-between;font-size:15px;color:#555}.overview-health-row strong{color:#171717;font-weight:500}.overview-health-row progress{display:block;width:100%;height:4px;margin-top:5px;accent-color:#292929}.overview-health-row progress::-webkit-progress-bar{background:#ececec;border-radius:4px}.overview-health-row progress::-webkit-progress-value{background:#393939;border-radius:4px}.overview-data-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e4e4e4;font-size:14px;color:#555;gap:12px}.overview-data-row strong{font-weight:500;color:#151515}.overview-data-row small{color:#919191}.overview-count{border-radius:20px;background:#111;color:#fff;padding:2px 9px;font-size:11px}.overview-count.muted{background:#f0f0f0;color:#888;border:1px solid #ddd}.overview-look{display:flex;width:100%;padding:10px 0;gap:12px;align-items:center;border:0;border-bottom:1px solid #e1e1e1;background:#fff;text-align:left}.overview-look-thumb{width:38px;height:46px;border:1px solid #ddd;border-radius:4px;background:#f5f5f5;display:grid;place-items:center;font-size:10px;color:#888;flex-shrink:0}.overview-look strong{font-size:15px;font-weight:500}.overview-look small{display:block;font-size:12px;color:#8e8e8e}.overview-look-arrow{margin-left:auto;color:#888}.overview-activity-row{display:flex;align-items:baseline;gap:12px;color:#666}.overview-activity-row p{font-size:14px;margin:8px 0}.overview-activity-row small{color:#aaa;font-size:11px}.overview-dot{width:8px;height:8px;border-radius:50%;background:#46d680;flex-shrink:0}body[data-section=overview] .topbar{padding:20px 28px;min-height:74px;border-bottom:1px solid #e4e4e4;align-items:center}body[data-section=overview] .topbar-subtitle{display:none}body[data-section=overview] .main-content{padding:18px 28px}body[data-section=overview] .topbar h2{font-size:22px;font-weight:600}
@media(max-width:1400px){.workspace-shell{grid-template-columns:235px minmax(0,1fr)}.sidebar h1{font-size:18px}.nav-button{font-size:15px;padding:17px 14px}.brand-panel{min-height:95px;padding:20px 16px}.brand-mark{width:43px;height:43px}.topbar{padding:25px 26px 15px}.main-content{padding:0 26px 26px}.reference-tabs{margin-left:-26px;margin-right:-26px;padding:0 26px}.reference-customizer{grid-template-columns:minmax(300px,1fr) minmax(250px,1fr);gap:45px}.topbar-subtitle{font-size:16px}.topbar h2{font-size:23px}.reference-tab{font-size:16px}.screen-typography{grid-template-columns:1.5fr 1fr}.field>span{font-size:14px}.field input,.field select,.field textarea{font-size:14px}.reference-device{max-width:330px}}
@media(max-width:900px){.workspace-shell{grid-template-columns:185px minmax(0,1fr)}.nav-button{font-size:13px}.sidebar h1{font-size:15px}.brand-panel{gap:8px}.reference-customizer{grid-template-columns:minmax(0,1fr);gap:35px}.reference-preview{position:static;max-width:450px;margin:auto;width:100%}.overview-reference-grid{grid-template-columns:1fr}.topbar-actions{flex-wrap:wrap}.overview-metrics{gap:6px}.overview-metrics .metric-card{padding:10px}.topbar-subtitle{font-size:15px}}
@media(max-width:700px){.workspace-shell{display:block}.brand-panel{min-height:65px;padding:12px 16px}.sidebar{height:auto}.nav-button{padding:10px}.topbar{padding:20px 18px 10px}.main-content{padding:0 18px 24px}.reference-tabs{margin:0 -18px 26px;padding:0 18px;gap:30px}.reference-tab{font-size:14px}.screen-typography{grid-template-columns:1fr 1fr}.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-reference-grid>.workspace-card{min-height:0}.screen-palette input{width:38px;height:38px}}
