:root{color-scheme:light;--ink:#303b2c;--muted:#626959;--olive:#49563a;--line:#e2e5d9;--paper:#f7f6f0;--white:#fffefa;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{outline-offset:5px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid var(--olive)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;left:20px;top:-80px;background:white;padding:12px;z-index:99}.skip:focus{top:10px}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#ecefe5;border-right:1px solid var(--line);padding:38px 25px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;font:22px 'Playfair Display',serif;white-space:nowrap}.sun{font:38px Georgia,serif}.brand small{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:6px}.private-label{margin:54px 12px 18px;font-size:9px;letter-spacing:1.7px;color:var(--muted)}.private-label span{color:#657b4d;margin-right:5px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{padding:13px 14px;font-size:13px;border-radius:7px}.sidebar nav a span{margin-right:9px}.sidebar nav .active{background:var(--olive);color:white}.sidebar nav a:not(.active):hover{background:#e0e5d6}.sidebar-foot{margin-top:auto;padding:55px 12px 0}.sidebar-foot p{font:25px/1.45 'Playfair Display',serif;color:#758163}.sidebar-foot a{font-size:12px;display:block;margin-top:40px}main{padding:45px 5%;max-width:1450px;width:100%;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--muted)}h1{font:48px/1.15 'Playfair Display',serif;letter-spacing:-1.5px;margin:17px 0 12px}h1 span{color:#97a482}.heading p:last-child{color:var(--muted);font-size:13px}.secondary{border:1px solid #d3d9ca;border-radius:5px;background:transparent;padding:11px 15px;color:var(--ink);font-size:12px;white-space:nowrap}.secondary:hover{background:#e8ecdf}.setup-note{display:flex;gap:16px;align-items:flex-start;background:#eeeee2;border:1px solid #e0e2d2;padding:20px 22px;border-radius:8px}.note-icon{border:1px solid #7e886c;border-radius:50%;width:21px;min-width:21px;height:21px;text-align:center;font:italic 16px Georgia,serif;margin-top:2px}.setup-note h2{font-size:13px;margin:0 0 7px}.setup-note p{font-size:12px;line-height:1.7;color:#707664;margin:0;max-width:570px}.setup-note .badge{margin-left:auto;flex-shrink:0}.badge{display:inline-block;padding:5px 9px;border-radius:4px;font-size:10px;font-weight:500;white-space:nowrap;background:#eeeee8;color:#707564}.badge.paid{background:#e8efdf;color:#46613b}.badge.pending{background:#f6eecf;color:#796528}.badge.failed,.badge.refunded,.badge.partially_refunded{background:#f6e8e1;color:#8d5145}.badge.shipped{background:#e7edef;color:#4e6570}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:28px 0}.stats article{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:22px}.stats p{font-size:12px;margin:0 0 16px;color:#69725f}.stats strong{display:block;font:38px/1 'Playfair Display',serif;font-weight:400}.stats span{display:block;margin-top:16px;font-size:10px;color:#878d7e}.orders-section{background:var(--white);border:1px solid var(--line);border-radius:9px;overflow:hidden}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 18px}.section-heading h2{font:23px 'Playfair Display',serif;margin:0}.caption{font-size:11px;color:var(--muted)}.tools{display:flex;gap:14px;padding:0 25px 22px}.search{display:flex;flex:1;border:1px solid var(--line);border-radius:5px;overflow:hidden}.search input{width:100%;min-width:0;border:0;background:transparent;padding:12px 13px;font-size:12px;color:var(--ink)}.search button{border:0;border-left:1px solid var(--line);background:#f4f5ee;color:var(--ink);font-size:11px;padding:0 14px}.filter select{border:1px solid var(--line);border-radius:5px;background:transparent;height:42px;padding:0 28px 0 12px;font-size:12px;max-width:100%;color:var(--ink)}.feedback{padding:20px 25px;font-size:13px;color:var(--muted)}.feedback.error{background:#fbefea;color:#894e40}.empty{text-align:center;border-top:1px solid var(--line);padding:40px 20px 42px}.empty-icon{border:1px solid #e1e5d7;border-radius:50%;width:62px;height:62px;background:#f3f5ed;display:grid;place-items:center;font-size:25px;color:#869573;margin:0 auto 20px}.empty h3{font:22px 'Playfair Display',serif;margin:0 0 10px}.empty p{font-size:12px;line-height:1.8;color:var(--muted);max-width:375px;margin:0 auto 21px}.text-link{font-size:12px;border:0;background:none;color:var(--olive);padding:0;text-decoration:underline;text-underline-offset:4px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-weight:500;color:var(--muted);font-size:10px;background:#f6f7f1}th,td{padding:15px 18px;border-top:1px solid var(--line)}td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border-top:1px solid var(--line);font-size:11px}.dashboard-footer{display:flex;justify-content:space-between;gap:20px;margin-top:25px;color:#8a907f;font-size:10px}.dashboard-footer a{text-decoration:underline}dialog{color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:12px;width:min(690px,calc(100% - 24px));max-height:90vh;padding:28px;box-shadow:0 25px 100px #25301e33}dialog::backdrop{background:#25301e66;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.close{background:transparent;border:0;font-size:30px;color:var(--ink);padding:0 8px}.dialog-top .eyebrow{margin:0}dialog h2{font:27px 'Playfair Display',serif;overflow-wrap:anywhere}dialog h3{font-size:13px;margin:0 0 12px}.status-line{display:flex;gap:8px;margin:18px 0 25px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid var(--line);padding:23px 0}.detail-grid p, address{font-size:13px;line-height:1.7;margin:4px 0;overflow-wrap:anywhere}address{font-style:normal;white-space:pre-line;margin-bottom:12px}.order-summary{background:#f4f5ec;padding:18px;border-radius:7px}.order-summary p{font-size:13px}dl{font-size:12px;margin-bottom:0}dl div{display:flex;justify-content:space-between;margin:9px 0}dl div:last-child{border-top:1px solid #dfe3d4;padding-top:12px;font-weight:600}.payment-note,#shipping-info,#detail-message{font-size:12px;line-height:1.65}.ship-form{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.ship-form>label{display:block;font-size:12px}.ship-form input[type=text],#tracking{width:100%;padding:12px;border:1px solid var(--line);border-radius:4px;margin:8px 0 16px}.confirmation{display:flex!important;align-items:flex-start;gap:8px;margin-bottom:20px;line-height:1.6}.confirmation input{accent-color:var(--olive);margin-top:4px}.button{display:inline-block;background:var(--olive);color:white;border:0;border-radius:5px;padding:13px 18px;font-size:12px}.button:hover{background:#36442b}.access{max-width:650px;margin:12vh auto;padding:30px;line-height:1.8}.access h1{font-size:40px}.access .button{margin:20px 15px 0 0}.access>a:last-child{font-size:12px;text-decoration:underline}@media(min-width:1500px){main{padding:55px 70px}}@media(max-width:1050px){.layout{grid-template-columns:195px 1fr}.sidebar{padding:30px 18px}.brand{font-size:18px}.sun{font-size:29px}main{padding:30px}.setup-note{flex-wrap:wrap}.setup-note>div:nth-child(2){flex:1}.setup-note .badge{margin-left:37px}.stats{gap:10px}.stats article{padding:17px}.tools{flex-wrap:wrap}.search{flex-basis:100%}}@media(max-width:720px){.layout{display:block}.sidebar{min-height:0;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{font-size:20px}.private-label{position:absolute;right:20px;top:27px;margin:0;font-size:8px;letter-spacing:1px}.sidebar nav{display:flex;margin-top:20px;gap:7px}.sidebar nav a{font-size:11px;padding:11px 13px}.sidebar-foot{padding:0;position:absolute;top:91px;right:20px}.sidebar-foot p{display:none}.sidebar-foot a{margin:0;font-size:10px}.sidebar-foot a span{display:none}main{padding:28px 18px}.heading{align-items:flex-start;margin-bottom:24px}h1{font-size:39px;margin-top:13px}.heading .eyebrow{font-size:8px;letter-spacing:1.3px}.heading .secondary{margin-top:9px;padding:9px;font-size:10px}.heading p:last-child{font-size:12px;line-height:1.7;max-width:210px}.setup-note{padding:17px;gap:11px}.setup-note p{font-size:11px}.setup-note .badge{margin-left:32px}.stats{gap:7px;margin:22px 0}.stats article{padding:15px 10px}.stats p{font-size:10px;line-height:1.5;min-height:30px;margin-bottom:8px}.stats strong{font-size:29px}.stats span{font-size:9px;line-height:1.6;min-height:29px}.section-heading{padding:20px 17px}.section-heading h2{font-size:22px}.tools{padding:0 17px 18px;gap:10px}.filter{width:100%}.filter select{width:100%}.empty{padding:32px 18px}.empty h3{font-size:21px;line-height:1.4}.empty p{font-size:11px}.dashboard-footer{font-size:9px;line-height:1.7}.detail-grid{grid-template-columns:1fr;gap:20px}dialog{padding:21px}.table-wrap{max-width:100%}.pagination{padding:16px 12px;gap:8px}.pagination button{padding:9px;font-size:10px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s ease}}
@media(max-width:720px){.setup-note{display:grid;grid-template-columns:21px minmax(0,1fr)}.setup-note .badge{grid-column:2;margin-left:0;justify-self:start}}

/* Readable controls and resilient keyboard/mobile layout. */
body:has(dialog[open]){overflow:hidden}
dialog{max-height:calc(100dvh - 24px);overscroll-behavior:contain}
.close{min-width:44px;min-height:44px}
.search:focus-within{outline:2px solid var(--olive);outline-offset:3px}
.search input:focus-visible{outline:none}
input:focus-visible,select:focus-visible{outline:2px solid var(--olive);outline-offset:3px}
.search input,.filter select,#tracking{font-size:16px;min-height:44px}
.search button,.secondary,button.text-link{min-height:44px}
.stats span,.dashboard-footer{color:#626959;font-size:12px}
.caption,td small,th,.badge{font-size:12px}
.setup-note p{color:#626959;font-size:14px}
.heading p:last-child,.empty p,.detail-grid p,address,.payment-note,#shipping-info,#detail-message{font-size:14px}
.sidebar-foot p{color:#62704f}
.stats strong,td:nth-child(3),dd{font-variant-numeric:tabular-nums}
@media(max-width:720px){
 .sidebar nav{flex-wrap:wrap;padding-right:0}
 .sidebar-foot{position:static;margin-top:12px}
 .sidebar-foot a{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
 .sidebar nav a{font-size:13px;min-height:44px}
 .private-label{position:static;margin:18px 0 0;font-size:10px}
 .heading .eyebrow{font-size:10px}
 .heading .secondary{font-size:12px;min-height:44px}
 .stats p,.stats span{font-size:12px}
 .stats article{min-width:0}
 .stats span{line-height:1.6}
 .search button{font-size:13px}
 .table-wrap{overscroll-behavior-x:contain}
 .pagination button{font-size:12px;min-height:44px}
}

.badge.neutral{color:#5e6654}
main{min-width:0}

.table-wrap{position:relative}
.table-wrap table{min-width:680px}
.table-hint{display:none}
@media(max-width:720px){.table-hint{display:block;margin:0;padding:12px 17px;color:var(--muted);font-size:12px;background:#f6f7f1}.table-wrap:focus-visible{outline:2px solid var(--olive);outline-offset:-2px}}

.order-number{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.address-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
[aria-disabled=true]{opacity:.6;cursor:wait}
.print-only{display:none}
.demo-page .setup-note{display:grid;grid-template-columns:21px minmax(0,1fr);gap:12px 16px}
.demo-page .setup-note p{max-width:720px}
.demo-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.demo-actions button{min-height:44px;font-size:13px}
.demo-page .heading h1{font-size:clamp(2rem,4vw,3rem)}
.demo-page .sidebar-foot{display:none}
.demo-page .stats article{padding-block:18px}
.demo-refund-story{display:none;border-left:3px solid #b98a68;padding:16px 18px;margin-block:20px;background:#faf1e9;border-radius:0 5px 5px 0}
.demo-page #detail-body:has(#detail-payment.refunded) .demo-refund-story{display:block}
.demo-refund-story blockquote{margin:0;font-size:14px;line-height:1.85;color:var(--ink)}
.demo-refund-story p{font-size:13px;line-height:1.7;margin:14px 0 0;color:#71513f}
@media print{.demo-refund-story{break-inside:avoid}}
@media(max-width:720px){
 .table-wrap{overflow:visible}
 .table-wrap table{display:block;min-width:0;width:100%}
 .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .table-wrap tbody{display:grid;gap:14px;padding:0 16px 18px}
 .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:18px;border:1px solid var(--line);border-radius:7px;background:#fffefa}
 .table-wrap td{display:block;min-width:0;padding:0;border:0;font-size:14px;overflow-wrap:anywhere;align-self:start}
 .table-wrap td:first-child,.table-wrap td:nth-child(2){grid-column:1/-1}
 .table-wrap td:first-child{font-size:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
 .table-wrap td:first-child small{font-size:12px;line-height:1.5}
 .table-wrap td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:7px}
 .table-wrap td:last-child{align-self:end;justify-self:end}
 .table-wrap td:last-child button{border:1px solid #aab599;border-radius:4px;padding:10px 13px;text-decoration:none;background:#f1f3e9;font-size:13px}
 .table-wrap td:last-child button:hover{background:#e5ead9}
 .table-wrap .badge{white-space:normal;line-height:1.5;max-width:100%}
 .pagination{gap:10px;flex-wrap:wrap;justify-content:center}
 .pagination #page-label{text-align:center;min-width:80px}
}
@media print{
 @page{margin:16mm}
 body:has(#detail[open]){background:white;overflow:visible;color:#111}
 body:has(#detail[open])>.layout,body:has(#detail[open])>.skip{display:none!important}
 #detail[open]{position:static;display:block!important;width:100%;max-width:none;max-height:none;height:auto;margin:0;padding:0;overflow:visible;border:0;box-shadow:none;background:white;color:#111;font-size:12pt}
 #detail::backdrop{display:none}
 #detail .close,#detail .address-actions,#detail .ship-form,#detail-message,#detail-feedback{display:none!important}
 #detail .print-only{display:block}
 #detail .print-heading{font:18pt/1.5 'Playfair Display',serif;border-bottom:1px solid #aaa;padding-bottom:12pt}
 #detail .print-heading span{font:10pt 'DM Sans',sans-serif}
 #detail .dialog-top .eyebrow{color:#111}
 #detail .detail-grid{grid-template-columns:1fr 1fr;break-inside:avoid}
 #detail .order-summary,#detail .status-line,#detail .payment-note{break-inside:avoid}
 #detail .order-summary{background:white;border:1px solid #aaa}
 #detail p,#detail address,#detail h2,#detail h3,#detail .caption,#detail .badge{color:#111}
 #detail .badge{border:1px solid #777;background:white;white-space:normal}
}
