body { background:#f3f5ef; }
.commerce-header { min-height:88px; padding:20px 4%; display:flex; align-items:center; gap:30px; border-bottom:1px solid var(--line); background:var(--bg); }
.commerce-header .logo { display:flex; align-items:center; }
.commerce-header .logo img { border-radius:8px; }
.commerce-header-label { padding-left:25px; border-left:1px solid #d7ddcf; letter-spacing:.15em; font-size:9px; color:var(--muted); }
.commerce-header > a:last-child { margin-left:auto; font-size:12px; }
.commerce-loading { padding:70px 6%; color:var(--muted); }
.auth-layout { max-width:1120px; margin:65px auto; display:grid; grid-template-columns:1fr 1fr; border-radius:22px; overflow:hidden; background:var(--bg); border:1px solid var(--line); }
.auth-story { padding:65px 50px; background:var(--green-dark); color:white; display:flex; flex-direction:column; align-items:start; justify-content:space-between; min-height:540px; }
.auth-story .eyebrow { color:#b8ec54; }
.auth-story h1 { font-size:48px; font-weight:500; letter-spacing:-.055em; line-height:1.1; margin:25px 0; }
.auth-story h1 em { color:var(--lime); font-style:normal; }
.auth-story p { color:#c8d2c2; font-size:13px; line-height:1.8; max-width:32ch; }
.auth-story ul { list-style:none; padding:0; font-size:12px; line-height:2.8; }
.auth-story li::before { content:'✓'; color:var(--lime); margin-right:12px; }
.auth-form-panel { padding:45px; }
.auth-form-panel h2 { font-size:27px; letter-spacing:-.04em; margin-bottom:10px; }
.commerce-muted { font-size:12px; color:var(--muted); line-height:1.8; }
.auth-switch { display:flex; border-bottom:1px solid var(--line); margin:25px 0; }
.auth-switch button { border:0; background:none; padding:12px 14px; font:inherit; font-size:12px; cursor:pointer; color:var(--muted); }
.auth-switch button[aria-selected=true] { color:var(--green); border-bottom:2px solid var(--green); font-weight:700; }
.commerce-form { display:grid; gap:18px; margin-top:24px; }
.commerce-field { display:flex; flex-direction:column; gap:7px; font-size:11px; font-weight:700; }
.commerce-field input,.commerce-field select,.commerce-field textarea,.commerce-search { min-width:0; width:100%; border:1px solid #d5ddce; border-radius:7px; padding:12px 13px; background:#fff; color:var(--text); font:inherit; font-size:13px; font-weight:400; }
.commerce-field input:focus,.commerce-field select:focus,.commerce-search:focus { outline:2px solid #759651; outline-offset:2px; }
.commerce-field small { font-size:10px; font-weight:400; color:var(--muted); }
.commerce-form .btn { justify-self:start; cursor:pointer; }
.commerce-form .btn:disabled { opacity:.55; cursor:wait; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .wide { grid-column:1/-1; }
.form-status { font-size:12px; line-height:1.7; color:#8b3026; margin:0; }
.form-status:empty { display:none; }
.workspace { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:calc(100vh - 88px); }
.workspace-nav { background:var(--bg); border-right:1px solid var(--line); padding:35px 22px; display:flex; flex-direction:column; gap:7px; }
.workspace-nav .eyebrow { padding:0 14px; margin:0 0 18px; font-size:9px; }
.workspace-nav button,.workspace-nav a { display:flex; align-items:center; gap:12px; border:0; background:none; color:var(--muted); font:inherit; font-size:12px; border-radius:8px; padding:13px 14px; cursor:pointer; text-align:left; }
.workspace-nav button[aria-current=page] { background:var(--green); color:white; }
.workspace-nav button:hover,.workspace-nav a:hover { background:#e8eddf; color:var(--green-dark); }
.nav-icon { width:18px; font-size:17px; }
.workspace-nav .nav-bottom { margin-top:auto; padding-top:45px; }
.workspace-main { padding:40px clamp(22px,4vw,58px) 70px; min-width:0; }
.workspace-title { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:30px; }
.workspace-title h1 { font-size:34px; font-weight:500; letter-spacing:-.045em; margin:0 0 8px; }
.workspace-title .eyebrow { margin-bottom:12px; font-size:9px; }
.workspace-pill { padding:9px 13px; border:1px solid #d8e0ce; background:#edf2e5; color:#526447; border-radius:30px; font-size:10px; white-space:nowrap; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:28px; }
.metric { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:23px; }
.metric span { display:block; font-size:10px; color:var(--muted); margin-bottom:18px; }
.metric strong { font-size:32px; font-weight:500; letter-spacing:-.05em; }
.metric:last-child { background:var(--green-dark); color:var(--lime); border-color:var(--green-dark); }
.metric:last-child span { color:#d8e5cb; }
.commerce-card { background:var(--bg); border:1px solid var(--line); border-radius:13px; padding:28px; margin-bottom:22px; }
.commerce-card h2 { font-size:19px; letter-spacing:-.02em; margin-bottom:8px; }
.commerce-card h3 { font-size:16px; margin-bottom:10px; }
.commerce-card-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
.commerce-card-head .btn { padding:10px 14px; font-size:11px; }
.commerce-empty { padding:50px 20px; text-align:center; }
.commerce-empty .empty-icon { display:block; font-size:40px; color:#728568; margin-bottom:18px; }
.commerce-empty h2 { margin-bottom:10px; font-size:21px; font-weight:500; }
.commerce-empty .btn { margin-top:22px; }
.commerce-note { border-left:3px solid var(--lime); background:#eaf0e0; padding:15px 18px; border-radius:0 7px 7px 0; font-size:12px; color:#405337; line-height:1.8; }
.commerce-note a { text-decoration:underline; text-underline-offset:3px; }
.commerce-toolbar { display:flex; gap:15px; align-items:center; margin-bottom:22px; }
.commerce-search { max-width:400px; }
.table-scroll { overflow:auto; }
.commerce-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.commerce-table th { color:var(--muted); font-size:9px; letter-spacing:.04em; font-weight:600; padding:0 12px 14px; border-bottom:1px solid var(--line); white-space:nowrap; }
.commerce-table td { padding:18px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.commerce-table tr:last-child td { border-bottom:0; }
.commerce-table td small { display:block; font-size:10px; margin-top:5px; color:var(--muted); }
.text-button { padding:5px 0; border:0; background:none; color:var(--green); text-decoration:underline; text-underline-offset:4px; font:inherit; cursor:pointer; }
.status-chip { display:inline-block; padding:6px 9px; border-radius:5px; font-size:9px; background:#e8eddf; color:#465a36; white-space:nowrap; }
.status-chip[data-status=quote_requested],.status-chip[data-status=awaiting_confirmation] { background:#f5ecd6; color:#7b5f2d; }
.status-chip[data-status=cancelled] { background:#f0e4df; color:#87544a; }
.order-card-id { font-size:11px; font-weight:700; overflow-wrap:anywhere; }
.order-lines { list-style:none; padding:0; margin:22px 0; }
.order-lines li { display:flex; justify-content:space-between; gap:24px; padding:10px 0; border-bottom:1px solid var(--line); font-size:12px; }
.order-lines strong { white-space:nowrap; }
.order-totals { display:grid; gap:10px; margin:20px 0; font-size:12px; }
.order-totals p { display:flex; justify-content:space-between; gap:20px; }
.order-totals p:last-child { border-top:1px solid var(--line); padding-top:12px; font-size:15px; }
.order-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.address-display { font-style:normal; line-height:1.8; font-size:12px; color:var(--muted); }
.cost-split { display:flex; gap:18px; flex-wrap:wrap; padding:15px; border-radius:8px; background:#edf1e7; font-size:11px; }
.cost-split strong { display:block; margin-top:6px; font-size:20px; color:var(--green); }
.checkout-layout { max-width:1100px; padding:48px 24px 70px; margin:auto; }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:25px; align-items:start; }
.product-edit-list { display:grid; gap:12px; }
.product-edit-row { display:grid; grid-template-columns:minmax(180px,1fr) 120px 90px auto; align-items:end; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.product-edit-row h3 { font-size:12px; margin:0 0 8px; }
.product-edit-row .btn { padding:12px; font-size:10px; }
.product-edit-row .form-status { grid-column:1/-1; }
#commerce-toast { position:fixed; bottom:25px; left:50%; transform:translateX(-50%); padding:14px 22px; border-radius:8px; background:var(--green-dark); color:white; font-size:12px; z-index:2000; box-shadow:0 8px 30px #142b2320; max-width:calc(100% - 30px); }
@media(max-width:1050px) { .metrics { grid-template-columns:repeat(2,1fr); } .workspace { grid-template-columns:190px minmax(0,1fr); } .workspace-nav { padding:28px 12px; } .order-grid { grid-template-columns:1fr; gap:0; } }
@media(max-width:760px) { .commerce-header { padding:18px; min-height:74px; gap:10px; } .commerce-header-label { display:none; } .commerce-header .logo__word { font-size:15px; } .commerce-header > a:last-child { font-size:10px; } .auth-layout { margin:22px 16px; grid-template-columns:1fr; } .auth-story { min-height:auto; padding:28px; } .auth-story h1 { font-size:34px; margin:16px 0; } .auth-story ul { display:none; } .auth-form-panel { padding:28px; } .workspace { grid-template-columns:1fr; } .workspace-nav { flex-direction:row; overflow:auto; padding:14px; border-right:0; border-bottom:1px solid var(--line); } .workspace-nav .eyebrow,.workspace-nav .nav-icon { display:none; } .workspace-nav button,.workspace-nav a { white-space:nowrap; padding:10px 13px; font-size:11px; } .workspace-nav .nav-bottom { margin:0; padding:0; display:flex; } .workspace-main { padding:28px 16px 50px; } .workspace-title { align-items:start; } .workspace-title h1 { font-size:28px; } .workspace-pill { display:none; } .metric { padding:18px; } .metric strong { font-size:28px; } .commerce-card { padding:20px; } .checkout-grid { grid-template-columns:1fr; } .checkout-layout { padding:28px 16px; } .form-grid { gap:14px; } .product-edit-row { grid-template-columns:1fr 1fr auto; gap:12px; } .product-edit-row > div:first-child { grid-column:1/-1; } }
