/* Cheap Tech Phase 6 — responsive client commerce workspace. No table-based listings. */
:root{--ct6-bg:#fff;--ct6-text:#102b4c;--ct6-muted:#4b6079;--ct6-border:#d4e1ed;--ct6-soft:#f0f7fc;--ct6-brand:#0759a7;--ct6-teal:#087e70;--ct6-shadow:0 16px 45px rgba(11,39,80,.055)}
.ct6-panel,.ct6-card,.ct6-metric,.ct6-shortcut,.ct6-switch{background:var(--ct6-bg);border:1px solid var(--ct6-border);color:var(--ct6-text);border-radius:21px;box-shadow:var(--ct6-shadow)}
.ct6-panel{padding:clamp(19px,3vw,30px);margin-bottom:23px;min-width:0}.ct6-panel h2{display:flex;align-items:center;gap:10px;font-size:clamp(19px,2vw,24px);color:var(--ct6-text);line-height:1.3;margin:0 0 18px}.ct6-panel h3{font-size:16px;margin:13px 0 5px}.ct6-panel p{color:var(--ct6-muted);line-height:1.65;overflow-wrap:anywhere}
.ct6-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-bottom:22px}.ct6-dashboard-grid>.ct6-panel{margin-bottom:0}.ct6-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:17px 0 30px}.ct6-card{padding:23px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}.ct6-card h2{font-size:20px;line-height:1.3;letter-spacing:-.025em;word-break:break-word;margin:2px 0;color:var(--ct6-text)}.ct6-card p{font-size:14px;color:var(--ct6-muted);line-height:1.5;margin:0;overflow-wrap:anywhere}.ct6-card a.btn,.ct6-card form{margin-top:auto}.ct6-card .ct6-action-row{margin-top:auto;width:100%}
.ct6-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:8px 0 24px}.ct6-metric{display:flex;flex-direction:column;align-items:flex-start;padding:19px;gap:8px}.ct6-metric strong{font-size:clamp(26px,3vw,38px);line-height:1.1;color:var(--ct6-text)}.ct6-metric>span:last-child{font-size:13px;font-weight:650;color:var(--ct6-muted)}
.ct6-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ct6-row>h2{margin:0}.ct6-row>a{font-size:13px;display:inline-flex;align-items:center;gap:4px;color:var(--ct6-brand);font-weight:750}.ct6-list{display:flex;flex-direction:column;gap:9px}.ct6-item{display:flex;align-items:center;gap:13px;padding:13px 10px;border:1px solid var(--ct6-border);border-radius:13px;min-width:0;color:var(--ct6-text);text-decoration:none;flex-wrap:wrap}.ct6-item:hover{background:var(--ct6-soft);border-color:#9fc3e0}.ct6-item strong{color:var(--ct6-text);overflow-wrap:anywhere}.ct6-grow{flex:1;min-width:145px}.ct6-grow small{display:block;line-height:1.5;font-weight:450;color:var(--ct6-muted);overflow-wrap:anywhere}.ct6-icon{width:42px;height:42px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:var(--ct6-soft);color:var(--ct6-brand);flex:none}.ct6-icon svg{width:21px;height:21px}.ct6-pill{display:inline-flex;gap:4px;align-items:center;padding:7px 10px;border-radius:99px;background:#dff5f1;color:#07564c;font-size:12px;font-weight:800;line-height:1.3;word-break:break-word}.ct6-icon-btn{display:inline-grid;place-items:center;width:39px;height:39px;border-radius:11px;border:1px solid var(--ct6-border);background:var(--ct6-soft);color:var(--ct6-brand);cursor:pointer}.ct6-icon-btn svg{width:19px;height:19px}.ct6-action-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ct6-action-row form{margin:0}
.ct6-empty{border:1px dashed #aac2d8;background:var(--ct6-soft);color:var(--ct6-muted);border-radius:16px;padding:26px;text-align:center;margin:10px 0}.ct6-empty svg{width:30px;height:30px;display:block;margin:0 auto 12px}.ct6-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:24px}.ct6-shortcut{display:flex;align-items:center;gap:9px;padding:16px;color:var(--ct6-text);text-decoration:none}.ct6-shortcut strong{flex:1;font-size:13px}.ct6-shortcut svg{width:18px;height:18px;color:var(--ct6-brand)}.ct6-switch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:25px;padding:15px}.ct6-switch label{font-weight:750}.ct6-switch select{flex:1;min-width:150px}.ct6-switch small{width:100%;color:var(--ct6-muted)}
.ct6-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:8px 0 4px}.ct6-form>label{font-size:13px;font-weight:750;color:var(--ct6-text);display:flex;flex-direction:column;gap:7px;min-width:0}.ct6-form>label>small{font-weight:450;color:var(--ct6-muted)}.ct6-form input,.ct6-form select,.ct6-form textarea,.ct6-switch select,.ct6-item select{display:block;width:100%;max-width:100%;border:1px solid #a8bed1;background:#fff;color:#152e49;padding:12px 13px;min-height:43px;border-radius:11px;font:inherit;font-size:14px}.ct6-form input:focus,.ct6-form select:focus,.ct6-form textarea:focus,.ct6-switch select:focus{outline:3px solid #a5dcfa;outline-offset:1px}.ct6-form .ct6-full,.ct6-full{grid-column:1/-1}.ct6-divider{border-top:1px solid var(--ct6-border);padding-top:17px;margin-top:20px}.ct6-editor{margin-bottom:22px}.ct6-editor>summary{display:flex;gap:10px;align-items:center;cursor:pointer;font-weight:800;color:var(--ct6-text)}.ct6-editor[open]>summary{margin-bottom:17px}.ct6-editor>summary svg{width:21px;height:21px}.ct6-form .btn{justify-self:start}.ct6-form textarea{resize:vertical;line-height:1.5}
.ct6-money{font-weight:800;font-size:clamp(19px,2.2vw,26px);color:var(--ct6-brand)}.ct6-line-card{display:grid;grid-template-columns:2fr 1fr .6fr 1fr;gap:12px;border:1px solid var(--ct6-border);padding:13px;margin:11px 0;border-radius:14px;background:var(--ct6-soft)}.ct6-line-card label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.ct6-line-items{margin-bottom:12px}.ct6-totals{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--ct6-border);padding-top:18px;margin-top:20px}.ct6-totals>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.ct6-totals>div>span{color:var(--ct6-muted)}.ct6-totals>div>strong{color:var(--ct6-text)}.ct6-totals .ct6-total{border-top:1px solid var(--ct6-border);padding-top:13px;font-size:18px}.ct6-totals p{font-size:12px}.ct6-prose{border-top:1px solid var(--ct6-border);margin-top:18px;padding-top:12px}.ct6-prose p{white-space:normal;overflow-wrap:anywhere}.ct6-facts{display:flex;align-items:start;gap:18px;flex-wrap:wrap;margin:12px 0}.ct6-facts>div{display:flex;flex-direction:column;gap:4px}.ct6-facts small{font-size:12px;color:var(--ct6-muted)}.ct6-facts strong{color:var(--ct6-text)}.ct6-onboarding{padding:15px;border:1px solid var(--ct6-border);border-radius:14px;min-width:0}.ct6-onboarding p{margin:10px 0}.ct6-onboarding blockquote{background:var(--ct6-soft);margin:10px 0;padding:12px 16px;border-left:3px solid var(--ct6-teal);word-break:break-word}.ct6-helper{background:#e8f4fe;border-left:4px solid #0c5fa3;border-radius:7px;padding:12px 15px;color:#1a4265!important}.ct6-summary{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:22px}.ct6-summary>.ct6-grow{min-width:160px}.ct6-progress{height:8px;background:#d9e5f2;border-radius:99px;width:100%;overflow:hidden;margin:4px 0}.ct6-progress>div{background:linear-gradient(90deg,#0b70c4,#05b8a7);height:100%;border-radius:99px}.ct6-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.ct6-sr-only{position:absolute!important;height:1px;width:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1100px){.ct6-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ct6-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct6-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.ct6-dashboard-grid,.ct6-card-grid,.ct6-metrics,.ct6-shortcuts{grid-template-columns:1fr}.ct6-panel{padding:18px}.ct6-card{padding:18px}.ct6-form{grid-template-columns:1fr}.ct6-line-card{grid-template-columns:1fr 1fr}.ct6-row{align-items:flex-start}.ct6-shortcut{min-height:56px}.ct6-item{align-items:flex-start}}
@media(max-width:390px){.ct6-line-card{grid-template-columns:1fr}.ct6-item .btn{width:100%}.ct6-action-row .btn{flex:1}}
html[data-theme="dark"]{--ct6-bg:#10263f;--ct6-text:#f0f7ff;--ct6-muted:#c9dced;--ct6-border:#3d5872;--ct6-soft:#173854;--ct6-brand:#82d8ff;--ct6-teal:#3ee3c4;--ct6-shadow:0 14px 32px rgba(0,0,0,.16)}
html[data-theme="dark"] .ct6-pill{background:#174e52;color:#ccfff6}html[data-theme="dark"] .ct6-form input,html[data-theme="dark"] .ct6-form textarea,html[data-theme="dark"] .ct6-form select,html[data-theme="dark"] .ct6-switch select,html[data-theme="dark"] .ct6-item select{background:#142e4a;color:#f4f9ff;border-color:#64829f}html[data-theme="dark"] .ct6-helper{background:#1a3956;color:#e4f4ff!important}html[data-theme="dark"] .ct6-progress{background:#38516c}html[data-theme="dark"] .ct6-empty{background:#183450;color:#dae9f5;border-color:#54738c}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]){--ct6-bg:#10263f;--ct6-text:#f0f7ff;--ct6-muted:#c9dced;--ct6-border:#3d5872;--ct6-soft:#173854;--ct6-brand:#82d8ff;--ct6-teal:#3ee3c4;--ct6-shadow:0 14px 32px rgba(0,0,0,.16)}html:not([data-theme="light"]) .ct6-pill{background:#174e52;color:#ccfff6}html:not([data-theme="light"]) .ct6-form input,html:not([data-theme="light"]) .ct6-form select,html:not([data-theme="light"]) .ct6-form textarea,html:not([data-theme="light"]) .ct6-switch select,html:not([data-theme="light"]) .ct6-item select{background:#142e4a;color:#f4f9ff;border-color:#64829f}}

.ct6-inline-edit{padding:8px 12px 12px;border:1px solid var(--ct6-border);border-radius:12px;margin:10px 0 15px;background:var(--ct6-soft)}.ct6-inline-edit>summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--ct6-brand);font-weight:750;font-size:13px;padding:8px}.ct6-inline-edit>summary svg{width:17px;height:17px}.ct6-inline-edit>.ct6-form{padding:8px 2px}.ct6-inline-edit input:focus-visible,.ct6-inline-edit button:focus-visible{outline:3px solid #75c8f6;outline-offset:3px}

/* Stage 4: native progress meters are CSP-safe and accessible, with no inline width styles. */
progress.ct6-progress{appearance:none;-webkit-appearance:none;display:block;border:0;width:100%;height:8px;overflow:hidden;border-radius:99px;background:#d9e5f2;color:#0b70c4}
progress.ct6-progress::-webkit-progress-bar{background:#d9e5f2;border-radius:99px}
progress.ct6-progress::-webkit-progress-value{background:linear-gradient(90deg,#0b70c4,#05b8a7);border-radius:99px}
progress.ct6-progress::-moz-progress-bar{background:linear-gradient(90deg,#0b70c4,#05b8a7);border-radius:99px}
html[data-theme="dark"] progress.ct6-progress,html[data-theme="dark"] progress.ct6-progress::-webkit-progress-bar{background:#38516c}
