/* Commerce workspace: shared tokens, readable controls, stable store identity. */
:root{--paper:#f5f6f8;--paper-2:#eef0f5;--ink:#20242c;--muted:#687183;--line:#e2e5eb;--line-dark:#c8cfdd;--blue:#4355db;--forest-2:#4355db;--forest:#20242c;--mint:#eef0ff}
body{font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:disabled{opacity:.5}.primary-action,.secondary-action{font-size:13px;min-height:36px;border-radius:6px;padding:8px 14px;box-shadow:none}.primary-action{background:var(--blue)}
.agent-app{display:block}.rail{width:176px;padding:20px 12px;background:#fafbfe;align-items:stretch;gap:8px}.rail-brand{width:auto;height:44px;display:flex;gap:10px;align-items:center;margin:0 8px 24px}.rail-brand img{width:32px;height:32px}.rail-brand strong{font-size:22px;color:var(--ink)}.rail-brand small{display:block;font-size:11px;color:var(--muted)}.rail-action{width:100%;min-height:44px;flex-direction:row;justify-content:flex-start;gap:12px;padding:10px;border-radius:6px;font-size:14px;color:var(--ink)}.rail-action.active{background:#edf0ff;color:var(--blue);box-shadow:none}.rail-action:hover{transform:none}.rail-note{font-size:11px;color:var(--muted);padding:10px}.shop-avatar{margin:0 8px}
.workspace{margin-left:176px;padding-top:86px}.workspace-head{left:176px;height:86px;background:#fff;padding:12px 24px;box-shadow:none;gap:16px}.store-control{min-width:0;flex:1}.store-control-identity{min-width:0}.store-control-avatar{background:#f3f5f9;border-radius:9px;color:var(--ink)}.shop-context>strong{font-size:16px}.shop-context p{font-size:12px}.store-kicker{font-size:11px}.connection-pill{background:#edf8f2;color:#23835b;font-size:11px}.store-control-divider,.store-sync-state{display:none}.store-control-actions{margin-left:auto}.write-policy{font-size:11px}.head-actions{gap:12px}.new-thread{display:none}.admin-link{white-space:nowrap;font-size:13px}.connect-control,.sync-control{font-size:13px;height:36px;border-radius:6px}.workspace .view{min-height:calc(100dvh - 86px)}
.home-shell{width:min(1180px,calc(100% - 48px));padding:22px 0 0}.home-intro{margin-bottom:20px}.home-intro h1{font-size:28px;font-weight:650;line-height:1.35;letter-spacing:-.02em;margin:10px 0 8px}.home-intro p{font-size:14px;line-height:1.7;max-width:76ch}.app-breadcrumb{color:var(--muted);font-size:12px}.workflow-steps{list-style:none;padding:0;margin:0 0 24px;display:flex;max-width:760px;gap:28px}.workflow-steps li{display:flex;align-items:center;gap:12px;flex:1;font-size:14px;white-space:nowrap}.workflow-steps li:not(:last-child):after{content:"";height:1px;background:var(--line-dark);flex:1;margin-left:14px}.workflow-steps b{width:28px;height:28px;border:1px solid #b6beeb;color:var(--blue);border-radius:50%;display:grid;place-items:center;font-weight:500}
.repair-board{border-radius:8px;box-shadow:none;margin:0 0 20px}.repair-board-head{min-height:0;padding:18px 20px 8px;align-items:center}.repair-board-head h2{font-size:17px;margin:0}.repair-board-head p{font-size:12px;margin:5px 0 0}.repair-types{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 20px 18px;gap:0}.repair-types button,.repair-types button:nth-child(odd),.repair-types button:nth-child(even){min-height:68px;padding:0 24px;display:grid;grid-template-columns:1fr auto;gap:6px;border:0;border-right:1px solid var(--line);border-radius:0}.repair-types button:first-child{padding-left:0}.repair-types button:last-child{border:0}.repair-types button>span strong{font-size:13px;font-weight:500}.repair-types button>span small{display:none}.repair-types button>b{grid-column:1;font-size:25px;font-weight:600;line-height:1.2}.repair-types button>svg{grid-column:2;grid-row:2;width:16px}.repair-assurance{background:#fbfcfe;padding:9px 20px;min-height:0;gap:20px;font-size:11px}.repair-assurance span,.repair-assurance strong{font-size:11px}.repair-assurance b{font-weight:500}
.product-panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.product-panel>header{padding:16px 20px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.product-panel h2{font-size:17px;margin:0;margin-right:auto}.product-panel input[type=search]{width:240px;height:36px;border:1px solid var(--line-dark);border-radius:6px;padding:0 10px;background:#fff;min-width:0}.product-panel #product-selection{font-size:12px;color:var(--muted)}.product-table-wrap{overflow:auto}.product-table{width:100%;border-collapse:collapse;text-align:left}.product-table th{background:#f8f9fc;color:var(--muted);font-weight:500;padding:12px 16px;font-size:12px;white-space:nowrap}.product-table td{border-top:1px solid var(--line);padding:14px 16px;font-size:13px;vertical-align:middle}.product-table th:first-child,.product-table td:first-child{width:40px;padding-left:20px;padding-right:0}.product-cell{display:flex;align-items:center;gap:12px;min-width:180px;max-width:360px}.product-cell strong{font-size:13px;font-weight:500}.product-thumb{width:42px;height:46px;flex-shrink:0;object-fit:cover;border-radius:4px;background:#f1f3f6;display:grid;place-items:center;color:#8793a8}.field-chip{display:inline-block;padding:3px 6px;border-radius:4px;background:#f2f4f8;color:#647086;font-size:11px;margin:2px 3px 2px 0}.product-table .row-actions{white-space:nowrap}.row-actions a{padding:8px}.product-table .table-empty{text-align:center;color:var(--muted);padding:44px 20px}.product-panel>footer{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);flex-wrap:wrap}.product-panel>footer>div{display:flex;align-items:center;gap:12px}.product-panel footer button{font-size:11px;min-height:28px;padding:4px 8px}
.home-view{padding-bottom:32px}.home-composer-wrap{position:static;padding:18px 0 0;background:none;width:min(1180px,calc(100% - 48px));margin:0 auto}.home-composer{box-shadow:none;border-radius:8px;padding:14px 16px}.home-composer textarea{font-size:14px}.home-composer>div>span{font-size:11px}.home-composer .send-button{width:32px;height:32px;border-radius:6px}.composer-shortcuts{justify-content:flex-start}.diagnosis-trigger{font-size:12px;background:transparent;border:0}.diagnosis-trigger strong{font-size:12px}.diagnosis-trigger small{font-size:11px}.diagnosis-trigger kbd{display:none}
.settings-shell{width:min(1050px,calc(100% - 48px));margin:24px auto 60px}.settings-shell>header{margin-bottom:24px}.settings-shell h1{font-size:26px;margin:12px 0 8px;letter-spacing:-.02em}.settings-shell p{font-size:14px;color:var(--muted);max-width:80ch;line-height:1.7}.settings-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;margin-bottom:20px}.settings-panel h2{font-size:18px;margin:0 0 12px}.settings-panel footer{display:flex;align-items:center;gap:12px;margin-top:20px}.learning-consent{display:flex;gap:12px;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid var(--line)}.learning-consent input{margin-top:5px}.learning-consent strong{font-size:15px}.learning-consent small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.field-preference{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.field-preference label{font-size:12px;color:var(--muted);display:grid;gap:6px}.field-preference select{border:1px solid var(--line-dark);border-radius:5px;padding:8px;background:#fff;color:var(--ink);width:100%}.learning-table{width:100%;border-collapse:collapse}.learning-table td,.learning-table th{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);font-size:13px}.learning-table th{font-weight:500;color:var(--muted)}.prompt-version{padding:16px 0;border-top:1px solid var(--line)}.prompt-version p{font-size:13px;white-space:pre-wrap}.billing-price{font-size:32px;font-weight:600;margin:8px 0}.billing-price small{font-size:13px;font-weight:400;color:var(--muted)}.billing-usage{margin:20px 0;display:grid;gap:8px}.billing-usage progress{width:100%;height:10px;accent-color:var(--blue)}.billing-actions{display:flex;gap:10px;flex-wrap:wrap}.billing-test{display:inline-block;background:#fff5de;color:#875c16;padding:4px 8px;border-radius:4px;font-size:12px}
.ledger-head h1{font-size:28px;max-width:none;letter-spacing:-.02em}.ledger-head p{font-size:14px}.history-shell{width:min(1050px,calc(100% - 48px));padding-top:30px}.history-copy h2{font-size:15px}.history-copy p{font-size:12px}.history-copy>div{flex-wrap:wrap}.history-entry>time{font-size:12px}.history-copy details{font-size:12px;margin-top:10px}.history-copy details p{overflow-wrap:anywhere}.composer-wrap{left:176px}.task-context{top:86px}.task-mode .conversation{padding-top:20px}.conversation{width:min(850px,calc(100% - 48px))}.result-summary p{font-size:14px}.fix-main>strong{font-size:14px}.fix-main>small{font-size:12px}.diff del,.diff ins{font-size:13px;max-width:none;white-space:normal;overflow-wrap:anywhere}.fix-row{padding:16px 14px;grid-template-columns:18px minmax(0,1fr) auto}.fix-row .product-art{display:none}.inspect-fix{font-size:12px}.approval-head h3{font-size:18px}.risk-tag{font-size:11px}.selection-count{font-size:12px}.approval-card{border-radius:8px}.evidence-strip{font-size:11px}.task-toolbar{font-size:13px}.field-audit-item strong{font-size:12px}.field-audit-item small{font-size:11px}.sheet-panel{width:min(580px,100%);background:#fff}.sheet-panel h2{font-size:18px}.sheet-body{padding:24px}.compare-block>span,.compare-block>label{font-size:13px}.compare-block p{font-size:14px;white-space:pre-wrap}.fact-proof strong{font-size:13px}.fact-proof p{font-size:12px}.sheet-panel textarea{display:block;width:100%;margin:12px 0 8px;padding:12px;border:1px solid var(--line-dark);border-radius:6px;resize:vertical;line-height:1.7;min-height:180px}.sheet-panel small{font-size:12px;color:var(--muted)}.guard-list div{font-size:12px}.toast strong{font-size:14px}.toast p{font-size:12px}.toast{max-width:520px}.status-error{color:#b42318;font-size:13px}
@media(max-width:1150px){.write-policy{display:none}.head-actions{display:none}.product-panel input[type=search]{width:190px}.store-control-actions{margin-left:auto}.rail{width:156px}.workspace{margin-left:156px}.workspace-head,.composer-wrap{left:156px}.task-context{width:260px}.agent-view.active.task-mode{grid-template-columns:minmax(0,1fr) 260px}.agent-view.task-mode .composer-wrap{right:260px}}
@media(max-width:880px){.task-context{display:none}.agent-view.active.task-mode{display:block}.agent-view.task-mode .composer-wrap{right:0}.product-panel header h2{width:100%}.product-panel input[type=search]{flex:1}.workflow-steps{gap:12px}.workflow-steps li{font-size:12px;gap:8px}.workflow-steps li:not(:last-child):after{margin-left:4px}}
@media(max-width:620px){.rail{width:100%;height:64px;inset:auto 0 0;flex-direction:row;padding:4px 6px;gap:0;z-index:40}.rail-brand,.rail-spacer,.rail-note,.shop-avatar{display:none}.rail-action{flex:1;min-width:0;min-height:54px;flex-direction:column;font-size:10px;gap:4px;padding:4px}.workspace{margin:0;padding-top:84px;padding-bottom:64px}.workspace-head{left:0;height:84px;padding:10px 14px}.workspace .view{min-height:calc(100dvh - 148px)}.shop-context>strong{font-size:14px}.shop-context p{display:block;font-size:10px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-kicker{display:none}.connection-pill{font-size:10px}.store-control-actions .sync-control,.store-control-actions .connect-control{width:38px}.home-shell,.home-composer-wrap,.settings-shell,.history-shell{width:calc(100% - 28px)}.home-shell{padding-top:18px}.home-intro h1{font-size:23px}.home-intro p{font-size:12px}.workflow-steps{gap:10px;justify-content:space-between;margin-bottom:18px}.workflow-steps li{flex:initial;font-size:11px;gap:6px}.workflow-steps li:not(:last-child):after{display:none}.workflow-steps b{width:24px;height:24px}.repair-board-head{padding:14px 14px 8px;flex-wrap:wrap;gap:12px}.repair-board-head h2{font-size:15px}.repair-board-head p{font-size:11px}.repair-types{grid-template-columns:1fr 1fr;padding:10px 14px;row-gap:16px}.repair-types button,.repair-types button:nth-child(odd),.repair-types button:nth-child(even){padding:0 14px;min-height:54px;border:0}.repair-types button:nth-child(odd){padding-left:0;border-right:1px solid var(--line)}.repair-types button>span strong{font-size:12px}.repair-types button>b{font-size:22px}.repair-assurance{padding:10px 14px;gap:10px}.repair-assurance strong{width:auto;margin:0}.product-panel>header{padding:14px;gap:10px}.product-panel input[type=search]{width:100%;flex:auto}.product-panel #product-selection{margin-right:auto}.product-table{min-width:680px}.product-table td{padding-top:12px;padding-bottom:12px}.product-panel>footer{padding:12px 14px}.home-composer-wrap{padding-top:14px}.home-composer textarea{font-size:13px}.settings-panel{padding:16px}.settings-shell h1{font-size:23px}.settings-shell p{font-size:12px}.field-preference{grid-template-columns:1fr 1fr;gap:12px}.field-preference>strong{grid-column:1/-1}.learning-table{min-width:420px}#learning-summary{overflow:auto}.composer-wrap,.agent-view.task-mode .composer-wrap{left:0;right:0;bottom:64px}.sheet-panel{bottom:0;z-index:51}.sheet-panel>header{padding:16px}.sheet-panel h2{font-size:16px}.sheet-body{padding:16px}.fix-row{grid-template-columns:18px minmax(0,1fr)}.inspect-fix{display:block;grid-column:2;justify-self:start;margin-top:8px}.conversation{width:calc(100% - 24px)}.approval-actions{flex-direction:column}.approval-actions>div{width:100%;flex-direction:row;justify-content:space-between}.toast{bottom:78px}.sheet-panel>footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}.history-copy>div>span:not(.risk-tag){font-size:11px}}
.approval-destination{padding:12px 18px;background:#f0f3ff;color:#394aa3;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.workspace{background:var(--paper)}.repair-types button>b{background:transparent;border-radius:0;width:auto;min-width:0;height:auto;justify-self:start;color:var(--ink)}.repair-board-head{background:#fff}.sheet-panel{box-shadow:none}.side-sheet.open .sheet-panel{box-shadow:-12px 0 36px rgba(32,36,44,.14)}.home-composer{max-width:none}.home-composer-wrap>.composer-shortcuts{max-width:none}.store-control.is-connected .sync-control{background:#f5f6ff;border-color:#c7cef5;color:var(--blue);box-shadow:none}
