/* Shared visual system: compact forms, clear actions, generous touch targets. */
:root{--line:#eae3e5;--muted:#706773;--surface-soft:#f8f4f5;--control-height:44px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius-card:16px;--radius-control:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
button,a,input,textarea,select{transition:background .16s,border-color .16s,box-shadow .16s,color .16s}
button:disabled{cursor:not-allowed;opacity:.48}
button[aria-busy=true]{cursor:wait}
.help-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control-height);border:1px solid transparent;border-radius:var(--radius-control);font-size:14px;font-weight:600;line-height:1.4;padding:10px 16px;text-decoration:none;text-align:center;white-space:normal}
.help-link{background:transparent;box-shadow:none;color:#8a6975;font-size:12px;min-height:40px;padding:8px 10px}
.help-link:hover{background:var(--surface-soft);color:var(--wine)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c58f9f;outline-offset:3px}
input,select,textarea{font:inherit;font-size:15px;line-height:1.5;border:1px solid #e2d9dd;border-radius:var(--radius-control);background:#fff;box-shadow:none;padding:10px 12px;min-width:0}
input,select{min-height:var(--control-height)}
select{margin-top:0;padding-right:25px}
textarea{min-height:96px}
input:hover,textarea:hover,select:hover{border-color:#c6b5bd}
input:focus,textarea:focus,select:focus{outline:0;border-color:#a66278;box-shadow:0 0 0 3px #85223d10}
label{gap:8px;margin:16px 0;color:#665760;font-size:14px;font-weight:500}
.app-layout{grid-template-columns:216px minmax(0,1fr)}
main{align-self:start;max-width:1440px;margin:0 auto;padding:20px 32px}
h1{font-size:36px;letter-spacing:-1.25px;margin:10px 0 8px}
h2{font-size:23px;letter-spacing:-.65px}
.page-header{min-height:102px;margin-bottom:22px}
.page-header p{font-size:14px;line-height:1.5}
.header-art{right:-15px;top:-26px;opacity:.65}
.header-art img{width:185px;height:150px}
.header-art span{font-size:16px}
.main-footer{margin-top:24px}/* Sidebar: dimensional SVG illustrations stay crisp at every display scale. */
.sidebar{padding:25px 12px 16px;background:linear-gradient(160deg,#fffcfa,#fff 70%)}
.brand-logo{width:58px;height:58px}
.brand strong{font-size:20px;margin:7px 0}
.brand span{font-size:12px}
.sidebar nav{gap:8px;margin-top:36px}
.sidebar nav button{position:relative;gap:12px;min-height:64px;padding:10px 14px;border:1px solid transparent;border-radius:13px;font-size:14px;font-weight:500;color:#766972;transition:background .16s,border-color .16s}
.nav-icon{width:42px;height:42px;flex-shrink:0;filter:saturate(.72);transition:transform .18s,filter .18s}
.sidebar nav button:hover{background:#faf4f6;border-color:#f0e2e7}
.sidebar nav button:hover .nav-icon{transform:translateY(-2px);filter:saturate(1)}
.sidebar nav button.active{background:linear-gradient(115deg,#f5e7ec,#faf1f4);border-color:#ead4de;color:#792c46;box-shadow:0 2px 6px #85223d05;font-weight:650}
.sidebar nav button.active:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:3px;border-radius:0 3px 3px 0;background:#a6526e}
.sidebar nav button.active .nav-icon{filter:saturate(1)}
.sidebar-bottom{padding:14px 10px 0}
.profile{gap:10px;padding-bottom:16px}
.profile .icon-button{width:36px;height:36px;padding:6px;border-radius:10px}
.profile .icon-button:hover{background:var(--blush)}/* Greeting: field rhythm and action spacing are explicit, not incidental. */
.reply-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:stretch}
.editor-card,.preview-card{padding:24px}
.editor-card h2{font-size:22px;margin:12px 0 20px}
#reply-form>label{margin:16px 0 8px}
#reply-form>label:first-child{margin-top:0}
#reply-text{display:block;min-height:116px;line-height:1.6}
#reply-link{display:block;font-size:13px}
.editor-footer{margin-top:18px;padding-top:16px;border-top:1px solid #f0eaed;gap:12px}
.editor-footer .primary{min-width:146px}
.editor-footer span{font-size:11px;color:#94858d}
.preview-card{background:linear-gradient(135deg,#fffeff,#fcf8f9)}
.chat-preview{margin-top:18px;padding:16px;background:#f4edef;border:1px solid #f0e5e9;border-radius:14px}
.chat-name{padding-bottom:8px}
.chat-message{font-size:12px;padding:11px 13px;line-height:1.6}
.chat-message.outgoing{background:#e9d7df;color:#51313d}
.auto-card{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);align-items:center;gap:24px;padding:22px 24px;margin-top:18px}
.auto-intro h2{font-size:20px;margin:8px 0}
.auto-intro p{font-size:12px;color:var(--muted);margin-bottom:0;max-width:260px}
#auto-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;align-items:center}
#auto-form>.actions{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:8px}
#auto-form .text-button{margin:0}
.auto-feedback{grid-column:1;grid-row:1}
#auto-status{font-size:12px;margin:0;color:#70626c}
#auto-events{font-size:11px;margin:6px 0 0}
#auto-events:empty{display:none}/* Connections */
.max-card{min-height:0;padding:24px;gap:24px;grid-template-columns:minmax(0,1fr) 250px}
.max-card h2{font-size:28px}
.service-icon{width:60px;height:60px}
.service-heading{gap:16px}
.service-heading p{font-size:13px;line-height:1.5}
.steps{gap:10px;font-size:14px;margin:20px 0}
.steps li span{width:28px;height:28px;font-size:12px}
.auth-tabs{margin-top:18px}
.auth-tabs button{min-height:36px;padding:8px 14px;font-weight:500}
.qr-side{padding-left:24px;gap:10px}
.qr-side .primary{min-height:44px;font-size:13px;padding:10px 14px}
.qr-side .text-button{width:100%;margin:0}
.connection-message{margin:0;max-width:100%;font-size:12px}
.quiet-note{padding-top:14px;font-size:12px}
.carrier-grid{gap:18px;margin-top:18px}
.carrier-card{padding:22px;gap:10px}
.carrier-card .service-icon{width:50px;height:50px}
.carrier-card h2{font-size:22px}
.carrier-card .service-heading{gap:14px}
.carrier-card .carrier-message{margin:4px 0;min-height:0;line-height:1.6;font-size:12px}
.carrier-card .primary{margin-top:auto}
.carrier-card .help-link{order:5;padding:8px}
.carrier-card .recheck{order:4;width:100%;padding:10px 12px}/* Compact, aligned order controls */
.orders-toolbar{gap:10px;margin-bottom:18px}
.orders-toolbar>#orders-count{margin-left:auto;font-size:12px}
.shop-settings,.order-card{padding:22px}
.shop-settings summary{font-size:16px}
.shop-settings>p{font-size:13px;max-width:820px;margin:16px 0}
.shop-settings form{max-width:none}
.form-grid{gap:16px}
.city-picker{padding:2px 16px 14px;margin:14px 0;background:#faf6f8;border:1px solid #f0e7eb}
.search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:12px 0}
.search-row label{margin:0}
.search-row button{margin:0;white-space:nowrap;min-height:44px}
.package-fields{gap:12px}
.estimate-preview{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 2px}
.estimate-preview p{margin:0}
#shop-form h3,.order-card h3{font-size:16px;margin:22px 0 8px}
#shop-form>.primary{margin-top:12px}
#add-package,#add-item{margin:10px 0}
.extra-package{padding-top:16px;gap:12px}
.extra-package>.text-button{margin-top:2px}
.order-row>div:first-child strong{font-size:14px}
.order-row>div:last-child strong{font-size:14px}
.order-card .title-row .text-button{min-height:36px;padding:7px 12px}
.order-card .title-row h2{font-size:20px}
.order-summary{font-size:13px;margin:14px 0 20px}
.item-row{gap:10px;grid-template-columns:minmax(150px,2fr) repeat(3,minmax(75px,1fr)) auto}
.item-row .text-button{margin:0;font-size:12px;min-height:44px;padding:10px 12px;color:#9c405b}
#review-fields>.primary{margin-top:12px}
.order-actions{gap:10px;margin-top:20px;padding-top:20px}
.order-actions .secondary-link{font-size:12px}
.pagination{justify-content:flex-end}
.pagination .text-button{min-height:36px;font-size:12px;padding:7px 14px}
.empty-orders{padding:32px 24px;font-size:14px}/***** Dialogs: content determines height; no nested scrolling. *****/
dialog{padding:28px;border-radius:18px;max-height:calc(100dvh - 32px)}
.dialog-close{width:36px;height:36px;top:12px;right:12px;color:#785562}
dialog h2{font-size:23px;margin:14px 25px 12px 0}
dialog .primary{margin-top:12px}
.help-steps{gap:10px;font-size:13px}
.help-links{gap:12px;margin:16px 0}
#carrier-form label{margin:16px 0}/* Customer form and login use the same controls. */
.customer-main{max-width:680px;margin:0 auto;padding:28px 20px}
.customer-header{margin-bottom:24px}
.customer-header span{font-size:23px}
.customer-card{padding:28px}
.customer-card h1{font-size:30px}
.customer-card h2{font-size:20px;margin-top:24px}
.customer-card .primary{margin-top:10px;min-height:46px}
.customer-card .search-row button{font-size:12px}
.customer-card .consent{font-weight:400;align-items:flex-start}
.consent input{min-height:18px}
.login-card .primary{margin-top:20px;min-height:46px}
/* Medium width keeps the editor and preview side by side where usable. */
@media(max-width:1180px){
.app-layout{grid-template-columns:196px minmax(0,1fr)}
main{padding:24px}
.sidebar nav button{padding:9px 10px;gap:9px;font-size:13px}
.nav-icon{width:38px;height:38px}
.header-art span{display:none}
.reply-grid{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:16px}
.editor-card,.preview-card{padding:20px}
.editor-card h2{font-size:20px}
.auto-card{grid-template-columns:1fr;gap:16px;padding:20px}
.auto-intro{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.auto-intro>.eyebrow{display:none}
.auto-intro h2{margin:0}
.auto-intro p{max-width:none}
#auto-form>.actions{flex-direction:row;align-items:center}
.max-card{grid-template-columns:minmax(0,1fr) 220px;gap:18px;padding:20px}
.qr-side{padding-left:18px}
.carrier-card{padding:20px}
.carrier-grid{grid-template-columns:1fr 1fr}
.carrier-card .title-row{gap:8px}
.item-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.item-row label:first-child{grid-column:1/-1}
.item-row .text-button{grid-column:1/-1;justify-self:end}
}
@media(max-width:940px){
.header-art{display:none}
.reply-grid{grid-template-columns:1fr}
.preview-card .chat-preview{max-width:480px;margin:14px auto 0}
#auto-form{grid-template-columns:1fr}
#auto-form>.actions{grid-column:1;grid-row:2;justify-content:flex-start}
.max-card{grid-template-columns:1fr}
.qr-side{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}
.qr-side>.primary,.qr-side>.text-button,.qr-side form{max-width:320px}
.carrier-grid{grid-template-columns:1fr}
.form-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
:root{--control-height:46px}
.app-layout{display:block}
.sidebar{position:relative;padding:12px 12px 10px;height:auto}
.brand{gap:8px;padding-right:66px;min-height:38px}
.brand-logo{width:38px;height:38px}
.brand strong{font-size:18px;margin:0}
.sidebar-bottom{top:13px;right:12px;padding:0}
.profile{padding:0;gap:2px}
.profile .avatar{width:27px;height:27px;font-size:11px}
.profile .icon-button{width:30px;height:30px;font-size:17px}
.sidebar nav{gap:6px;margin-top:12px;display:grid;grid-template-columns:1fr 1fr 1fr}
.sidebar nav button{flex-direction:column;gap:2px;padding:7px 3px;min-height:70px;border-radius:12px;font-size:11px}
.nav-icon{width:32px;height:32px}
.sidebar nav button.active:before{left:30%;right:30%;top:auto;bottom:0;height:2px;width:auto;border-radius:2px 2px 0 0}
main{padding:14px 14px 16px}
h1{font-size:29px;letter-spacing:-.9px;margin:8px 0}
.page-header{min-height:0;margin-bottom:18px}
.page-header p{font-size:12px}
.eyebrow{font-size:9px}
.editor-card,.preview-card,.auto-card,.shop-settings,.order-card{padding:18px}
.editor-card h2{font-size:20px;margin:10px 0 18px}
input,select,textarea{font-size:16px}
#reply-link{font-size:16px}
#reply-text{min-height:118px}
.editor-footer{margin-top:16px;padding-top:14px}
.editor-footer .primary{padding:10px 14px;min-width:0;font-size:13px}
.auto-intro{display:block}
.auto-intro h2{font-size:19px;margin-bottom:6px}
#auto-form>.actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
#auto-form .text-button,#auto-form .primary{width:100%;margin:0}
.auto-card{margin-top:16px}
.preview-card .chat-preview{margin-top:12px}
.carrier-card,.max-card{padding:18px}
.service-heading p{font-size:12px}
.steps{font-size:12px}
.carrier-card .service-icon{width:46px;height:46px}
.carrier-card h2{font-size:21px}
.carrier-card .badge{font-size:10px}
.help-link{font-size:12px}
.orders-toolbar .primary{width:auto;flex:1}
.orders-toolbar .text-button{font-size:12px}
.orders-toolbar>#orders-count{margin:0;width:100%}
.form-grid{grid-template-columns:1fr;gap:0}
.package-fields,.extra-package{grid-template-columns:1fr 1fr;gap:12px}
.city-picker{padding:2px 12px 12px}
.search-row{gap:8px;grid-template-columns:minmax(0,1fr) auto}
.search-row .text-button{padding:10px;font-size:12px;min-height:46px}
.package-picker{grid-template-columns:1fr}
.package-picker .text-button{justify-self:start}
.order-row>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
.order-actions{align-items:stretch}
.order-actions>*{width:100%}
.order-card h3{margin-top:20px}
.item-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.item-row input{padding:10px 8px}
.item-row label{font-size:10px}
#shop-form>.primary,#review-fields>.primary{width:100%}
.customer-main{padding:22px 14px}
.customer-card{padding:20px}
.customer-header{margin-bottom:20px}
.customer-card h1{font-size:28px}
dialog{padding:22px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
dialog h2{font-size:21px}
.help-steps{font-size:12px;padding-left:20px}
.help-links{padding:12px;font-size:12px}
.main-footer{margin-top:20px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){
.nav-icon{transition:none}
.sidebar nav button:hover .nav-icon{transform:none}}/* Delivery fields share a row on wide screens; the address gets more room. */
.city-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:0 14px}
.city-picker>.search-row,.city-picker>p{grid-column:1/-1}
.city-picker>.search-row{margin-bottom:0}
.payment-fields{grid-template-columns:minmax(150px,.6fr) minmax(0,1.4fr)}
.primary[aria-busy=true]:before,.text-button[aria-busy=true]:before{content:"";width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;flex-shrink:0;animation:button-spin .8s linear infinite}
@keyframes button-spin{to{transform:rotate(360deg)}}
@media(max-width:680px){
.sidebar nav button{font-size:12px}
#page-reply{display:flex;flex-direction:column}
#messages-panel-auto>.reply-grid{display:contents}
#page-reply .editor-card{order:1}
#messages-panel-auto>.auto-card{order:2}
#page-reply .preview-card{order:3;margin-top:16px}
.city-picker,.payment-fields{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
.primary[aria-busy=true]:before,.text-button[aria-busy=true]:before{animation:none}}
@media(max-width:680px){
.pagination .text-button,.auth-tabs button{min-height:44px}
.dialog-close{width:40px;height:40px}}/* Once connected, onboarding instructions no longer consume the main card. */
.max-card.is-connected .auth-tabs,.max-card.is-connected .steps,.max-card.is-connected .qr-placeholder{display:none}
.max-card.is-connected .quiet-note{margin-top:18px}
.carrier-card>[data-carrier]{width:100%;margin-top:auto}/* Delivery ledger and postal setup */
.delivery-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}
.delivery-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}
.metric{padding:20px;display:flex;flex-direction:column;gap:12px}
.metric span{color:var(--muted,#756c71);font-size:13px}
.metric strong{font-size:24px;overflow-wrap:anywhere}
.delivery-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end;margin-bottom:18px}
.delivery-filters label{margin:0}
.delivery-search{grid-column:span 2}
.delivery-filters .consent{align-self:center}
.delivery-filters .primary{justify-self:end}
.import-panel{margin:18px 0}
.import-panel summary,.postal-settings summary{font-weight:650;cursor:pointer}
.import-panel textarea{margin-top:12px}
.delivery-row{display:grid;width:100%;grid-template-columns:1fr 1.2fr 1fr;gap:20px;text-align:left;margin-bottom:12px;padding:20px;border:1px solid #eadfe3;background:white;cursor:pointer;color:inherit;font:inherit}
.delivery-row:hover{border-color:#b76c82;box-shadow:0 4px 18px #85223d0a}
.delivery-row>div{display:flex;flex-direction:column;gap:9px;min-width:0;overflow-wrap:anywhere}
.delivery-row>div:last-child{align-items:flex-end;text-align:right}
.delivery-row .badge{white-space:normal}
.delivery-events{padding-left:22px;display:grid;gap:14px}
.delivery-events li{padding-left:8px;color:#62535a}
.postal-address{border:1px solid #e9dce1;background:#fcfafb;border-radius:14px;padding:18px;margin:18px 0}
.postal-address .consent{margin-top:12px}
.postal-settings{margin:18px 0}
.postal-settings form{margin-top:20px}
.postal-settings select{max-width:100%}
#delivery-details{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
#delivery-card{margin-top:20px}
#delivery-details p{overflow-wrap:anywhere}
@media(max-width:1000px){
.delivery-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
.delivery-filters{grid-template-columns:1fr 1fr}
.delivery-filters .consent{grid-column:span 2}}
@media(max-width:700px){
.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.delivery-totals{grid-template-columns:1fr 1fr}
.metric{padding:14px}
.metric strong{font-size:22px}
.delivery-row{grid-template-columns:1fr;padding:18px;gap:12px}
.delivery-row>div:last-child{align-items:flex-start;text-align:left}
.delivery-filters{padding:16px;gap:12px}
.delivery-filters .primary{grid-column:span 2;width:100%}
.delivery-toolbar{gap:10px}
.delivery-toolbar>*{flex:1 1 170px}
.postal-address{padding:14px}
#delivery-details{grid-template-columns:1fr}
.delivery-row .eyebrow{font-size:11px}}
.delivery-filters{padding:22px}
.import-panel,.postal-settings,#delivery-card{padding:22px}
.delivery-filters .consent{display:flex;align-items:center;gap:9px}
.delivery-filters .consent input{width:18px;min-width:18px;height:18px;margin:0}
.delivery-row .badge.success{background:#eaf5ed;color:#2c714c}
.delivery-row .badge.pending{background:#fff4df;color:#8c6822}
.delivery-row .badge.error{background:#fae8ec;color:#922342}
@media(max-width:700px){
.delivery-filters,.import-panel,.postal-settings,#delivery-card{padding:16px}
.metric:last-child{grid-column:span 2}}/* Compact delivery workspace: automatic filters, occasional actions in one menu. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#page-deliveries .delivery-totals{gap:0;margin:4px 0 26px;background:#fff;border:1px solid #e9e2e5;border-radius:16px;overflow:hidden}
#page-deliveries .metric{padding:18px 20px;border:0;border-radius:0;box-shadow:none;background:transparent;gap:8px;border-right:1px solid #eee7ea}
#page-deliveries .metric:last-child{border:0;background:#faf4f6}
#page-deliveries .metric strong{font-size:25px;letter-spacing:-.6px}
.delivery-list-head h2 span{display:inline-flex;margin-left:8px;padding:3px 9px;background:#efe7eb;border-radius:7px;font-size:13px;vertical-align:middle}
.delivery-more>summary::-webkit-details-marker{display:none}
.delivery-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:5;min-width:248px;background:white;padding:6px;border:1px solid #e5dce0;border-radius:12px;box-shadow:0 12px 36px #40202d16}
.delivery-menu button{display:block;width:100%;border:0;background:none;text-align:left;padding:12px;border-radius:7px;color:#4b3741;font:inherit;font-size:13px;cursor:pointer}
.delivery-menu button:hover{background:#faf1f4}
.delivery-menu button:disabled{opacity:.5}
#page-deliveries .delivery-filters{padding:0;grid-template-columns:minmax(220px,1.6fr) minmax(170px,1fr) minmax(125px,.8fr) minmax(155px,1fr);gap:10px;margin-bottom:18px}
#page-deliveries .delivery-search{grid-column:auto}
#page-deliveries .delivery-filters input,#page-deliveries .delivery-filters select{height:42px;font-size:13px}
#delivery-custom-dates{grid-column:1/-1;display:flex;gap:12px;justify-content:flex-end}
#delivery-custom-dates label{max-width:200px;font-size:12px}
#page-deliveries .delivery-row{padding:16px 18px;margin-bottom:8px;gap:16px;box-shadow:none}
#page-deliveries .delivery-row>div{gap:6px}
#page-deliveries .delivery-row .eyebrow{letter-spacing:1px;font-size:10px}
#page-deliveries .delivery-row strong{font-size:15px}
#page-deliveries .delivery-row .small{font-size:12px}
.delivery-empty{min-height:240px;padding:32px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #dfd0d7!important;background:linear-gradient(145deg,#fff,#fcf8fa);box-shadow:none!important}
.delivery-empty img{width:62px;height:62px;margin-bottom:12px}
.delivery-empty h3{font-size:19px;margin:0 0 8px}
.delivery-empty p{font-size:13px;line-height:1.65;max-width:390px;margin:0}
#delivery-error:empty{display:none}
#delivery-import-panel h3{margin:0}
#delivery-import-panel{margin:0 0 18px}
@media(max-width:1150px){
#page-deliveries .delivery-filters{grid-template-columns:1fr 1fr}
#page-deliveries .delivery-search{grid-column:1/-1}
#page-deliveries .delivery-filters label:last-of-type{grid-column:1/-1}}
@media(max-width:1000px){
#page-deliveries .delivery-totals{grid-template-columns:repeat(4,minmax(0,1fr))}
#page-deliveries .metric:last-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #eee7ea}}
@media(max-width:700px){
#page-deliveries .delivery-totals{grid-template-columns:1fr 1fr;margin:0 0 22px}
#page-deliveries .metric{padding:14px 16px;border-bottom:1px solid #eee7ea}
#page-deliveries .metric:nth-child(2n){border-right:0}
#page-deliveries .metric span{font-size:12px}
#page-deliveries .metric:last-child{border:0}
#page-deliveries .metric strong{font-size:23px}
.delivery-menu{min-width:235px}
.delivery-empty{padding:26px 18px;min-height:230px}
#page-deliveries .delivery-filters{gap:9px}
#delivery-custom-dates{justify-content:stretch}
#delivery-custom-dates label{flex:1;min-width:0}
.delivery-row>div:last-child{display:grid!important;grid-template-columns:1fr auto;align-items:center!important;width:100%}
.delivery-row>div:last-child .small{grid-column:1/-1}}
#page-deliveries .delivery-row .form-error{margin:0;font-size:12px}/* Cherry identity, soft raised controls and owner workspace. */
.sidebar .brand{min-height:126px;padding:0 12px 18px;margin:0;display:flex;justify-content:center;align-items:center}
.sidebar .brand-logo{width:112px;height:112px;filter:drop-shadow(0 5px 9px #7e284812)}
.sidebar-bottom{padding:0;margin-top:auto;border:0}
.sidebar-bottom>p{display:none}
.profile-launch{width:100%;display:flex;align-items:center;gap:10px;padding:13px 10px;border-radius:15px;border:1px solid #e7dbe1;background:linear-gradient(145deg,#fff,#f7edf2);box-shadow:inset 0 1px 0 #fff,0 4px 10px #64334a09;color:#633b4c;text-align:left;cursor:pointer}
.profile-launch:hover,.profile-launch.active{border-color:#cfa4b5;background:linear-gradient(145deg,#fff7fa,#f0dfe7)}
.profile-caption{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.profile-caption strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.profile-caption small{font-size:10px;color:#9c7b8a}
.avatar{flex:none;background:radial-gradient(circle at 30% 20%,#ce7795,#a0375b 60%,#6d203d);box-shadow:inset 0 1px 2px #ffffff60,0 3px 7px #6b1c3620;border:1px solid #a6577133}
.profile-launch>svg{flex:none;color:#8b425b;opacity:1;stroke-linecap:round;stroke-linejoin:round}
.primary:active:not(:disabled),.text-button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px 3px #5b203518}
.primary:disabled,.text-button:disabled{box-shadow:none}
.carrier-tabs{display:flex;gap:8px;border-bottom:1px solid #e5dbe0;margin:0 0 12px;padding-bottom:12px}
.carrier-tabs button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:10px 25px;min-width:180px;border:1px solid transparent;border-radius:13px;background:transparent;font:inherit;font-weight:650;color:#8a7b83;cursor:pointer}
.carrier-tabs button[aria-selected=true]{background:linear-gradient(140deg,#fff,#f7edf2);border-color:#e1c5d1;box-shadow:inset 0 1px white,0 3px 8px #6f30400a;color:#71354d}
.carrier-dot{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:10px;color:white;font-size:20px;box-shadow:inset 0 1px 1px #ffffff55,0 3px 6px #49203218;flex:none}
.cdek-dot{background:linear-gradient(145deg,#75ce6b,#238942)}
.pochta-dot{background:linear-gradient(145deg,#6199fc,#1646c6)}
#orders-carrier-description{margin:8px 0 18px}
.orders-toolbar{align-items:center;gap:10px}
#orders-count{margin-left:auto;font-size:12px}
.shop-settings,.postal-settings{background:linear-gradient(130deg,#fff,#fcf9fa);margin:16px 0 22px!important}
.shop-settings summary,.postal-settings summary{padding:2px 0;font-size:14px}
.shop-settings form,.postal-settings form{border-top:1px solid #eee5e9;padding-top:14px}
.picker-feedback{grid-column:1/-1!important;margin:2px 0 12px!important;font-size:12px;line-height:1.6;min-height:20px}
.city-picker{padding:16px;background:#faf7f9;border:1px solid #eee4e9;border-radius:12px}
.city-picker .search-row{grid-column:1/-1}
.city-picker select{width:100%;text-overflow:ellipsis}
.city-picker input:disabled,.city-picker select:disabled{background:#f0edef;color:#9d9198}
.settings-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px;align-items:start}
.owner-settings,.settings-links,.settings-access{padding:26px}
.settings-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.settings-heading .avatar{width:56px;height:56px;font-size:22px}
.settings-heading h2,.settings-links h2,.settings-access h2{font-size:20px;margin:0 0 6px}
.settings-heading p{margin:0}
.settings-side{display:grid;gap:18px}
.settings-links>button,.settings-links>a{display:flex;align-items:center;gap:12px;width:100%;padding:16px 0;border:0;border-bottom:1px solid #eee5ea;background:none;text-decoration:none;text-align:left;color:#65404f;cursor:pointer;font:inherit;font-size:13px}
.settings-links button>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}
.settings-links small{font-size:11px;color:#99808c}
.settings-links a{justify-content:space-between}
.settings-links>:last-child{border-bottom:0}
.settings-access p{margin:14px 0}
.settings-access .text-button{margin-top:8px}
.owner-settings .form-grid{gap:4px 18px}
@media(max-width:900px){
.settings-layout{grid-template-columns:1fr}
.settings-side{grid-template-columns:1fr 1fr}
.carrier-tabs button{flex:1;min-width:0}}
@media(max-width:700px){
.sidebar .brand{min-height:64px;padding:0;justify-content:flex-start}
.sidebar .brand-logo{width:65px;height:65px}
.sidebar .sidebar-bottom{top:15px;right:16px;width:auto}
.profile-launch{width:54px;height:50px;padding:6px;justify-content:center;border-radius:13px}
.profile-caption,.profile-launch>svg{display:none}
.profile-launch .avatar{width:34px;height:34px}
.carrier-tabs{gap:6px}
.carrier-tabs button{padding:10px;font-size:14px;gap:8px}
.carrier-dot{width:28px;height:28px}
.settings-side{grid-template-columns:1fr}
.owner-settings,.settings-links,.settings-access{padding:20px}
.settings-heading{gap:12px}
.orders-toolbar .primary,.orders-toolbar .text-button{flex:1}
#orders-count{width:100%;margin-left:0}
.city-picker{padding:12px}
.city-picker .search-row{display:flex;flex-wrap:wrap;align-items:end}
.city-picker .search-row label{flex:1;min-width:170px}
.city-picker .city-search{margin-bottom:14px}}
#customer-cdek{border:0;padding:0;margin:0;min-width:0}
fieldset.city-picker{border:0;padding:0;margin:0;min-width:0}/* Original carrier wordmarks; preserve proportions and corporate colors. */
.carrier-brand{display:inline-flex;width:112px;height:32px;align-items:center;justify-content:center;flex:none}
.carrier-brand img{display:block;max-width:100%;max-height:32px;object-fit:contain}
.carrier-brand img[src$="cdek.svg"]{width:78px}
.carrier-brand img[src$="pochta.svg"]{width:112px}
.service-icon.carrier-brand-icon{width:120px;min-width:120px;height:54px;background:transparent;border-radius:0;box-shadow:none;transform:none}
.carrier-brand-icon img{width:100%;height:100%;object-fit:contain}
.carrier-brand-icon img[src$="cdek.svg"]{max-width:99px}
.profile-launch .avatar svg{width:27px;height:27px;filter:drop-shadow(0 1px 1px #57233744)}
.settings-heading .avatar svg{width:40px;height:40px}
.settings-links>button{gap:14px}
.settings-links .carrier-brand{width:88px}
.settings-links .carrier-brand img{max-width:88px}
.carrier-tabs button{min-height:56px}
.carrier-tabs .carrier-brand{width:120px}
@media(max-width:700px){
.service-icon.carrier-brand-icon{width:88px;min-width:88px;height:44px}
.carrier-tabs .carrier-brand{width:112px}
.profile-launch .avatar svg{width:24px;height:24px}}/* Open information and choices: no dropdowns or hidden settings. */
.open-section-heading{font-size:18px;display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 16px}
.open-section-heading #readiness-count{font-size:12px;font-weight:500;color:#82717a}
.stage-details .stage-body{padding:0 22px 22px}
.stage-details>.open-section-heading{padding:22px 22px 0}
.visible-choices{border:0;min-width:0;padding:0;margin:0 0 18px;grid-column:1/-1}
.visible-choices legend{font-size:13px;font-weight:550;color:#6d5c65;margin:0 0 9px;padding:0}
.choice-options{display:flex;gap:8px;flex-wrap:wrap}
.choice-card{display:flex!important;align-items:center;gap:9px;margin:0!important;padding:11px 14px;border:1px solid #e8dde2;border-radius:11px;background:#fff;cursor:pointer;min-width:0;max-width:100%;font-size:13px!important;color:#51434b!important;line-height:1.45}
.choice-card:hover{border-color:#caa1b2;background:#fdf8fa}
.choice-card:has(input:checked){background:#f8edf2;border-color:#a34768;box-shadow:inset 0 0 0 1px #a3476820;color:#762b47!important}
.choice-card:focus-within{outline:2px solid #ca92a8;outline-offset:2px}
.choice-card:has(input:disabled){opacity:.55;cursor:default}
.choice-card input{appearance:auto!important;accent-color:#933657;width:15px!important;height:15px!important;min-width:15px;padding:0!important;margin:0!important;box-shadow:none!important;flex:none}
.choice-content{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.choice-content small{font-size:12px;color:#95838c}
.choice-feedback:empty{display:none}
.choice-feedback{margin:9px 0 0}
.city-picker>.visible-choices .choice-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.city-picker>.visible-choices .choice-card{align-items:flex-start}
.city-picker>.visible-choices input{margin-top:3px!important}
.city-picker{display:block}
.city-picker .search-row{margin-bottom:6px}
.delivery-menu button{width:auto;white-space:normal;border:1px solid #eadfe4;background:#fff;font-size:12px;padding:9px 12px}
#page-deliveries .delivery-filters{display:block}
#delivery-filters>.visible-choices{margin:16px 0}
#delivery-filters .choice-card{padding:8px 11px;font-size:12px!important}
.package-picker{display:block}
.package-picker .visible-choices{margin-bottom:10px}
.shop-settings h3,.postal-settings h3{margin-top:24px}
.brand-logo{object-fit:contain}
@media(max-width:700px){
.open-section-heading{font-size:16px}
.visible-choices .choice-card{flex-grow:1}
.city-picker>.visible-choices .choice-options{grid-template-columns:1fr}
.stage-details .stage-body{padding:0 16px 16px}
.stage-details>.open-section-heading{padding:16px 16px 0}}
.choice-card{flex-direction:row!important;width:auto!important}
.choice-content{min-width:0}
.choice-card input{align-self:center}
.city-picker .choice-card input{align-self:flex-start}
.choice-card input{min-height:15px!important;max-height:15px!important}
.choice-card{min-height:0!important}/* Compact signature beneath the selected cherry mark. */
.sidebar{padding-top:16px}
.sidebar .brand{min-height:0;padding:0;gap:0;flex-direction:column;justify-content:flex-start;align-items:center}
.sidebar .brand-logo{width:104px;height:104px}
.sidebar .brand strong{font-size:18px;font-weight:650;letter-spacing:-.45px;line-height:1.25;margin:0;max-width:100%;overflow-wrap:anywhere;color:#4d2636}
.sidebar nav{margin-top:12px}
@media(max-width:700px){
.sidebar{padding-top:10px}
.sidebar .brand{width:160px;max-width:calc(100% - 66px);padding:0;gap:0;align-items:center}
.sidebar .brand-logo{width:62px;height:62px}
.sidebar .brand strong{font-size:15px;letter-spacing:-.3px;margin:0}
.sidebar nav{margin-top:9px;gap:5px}
.sidebar nav button{min-height:62px}}/* Customer reference photos remain visible alongside the order. */
.photo-upload{border:1px dashed #d6bdc6;border-radius:16px;padding:16px;margin:16px 0;background:#fdf9fa}
.photo-upload input[type=file]{padding:10px;max-width:100%;font-size:13px}
.order-photos{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 20px}
.photo-preview{display:flex;flex-direction:column;gap:8px;width:160px;padding:8px;border:1px solid #e5d8dd;border-radius:14px;background:#fff;color:#862840;text-align:center;font-size:13px;text-decoration:none}
.photo-preview img{width:100%;height:160px;object-fit:contain;border-radius:8px;background:#f8f5f6}
.photo-preview button{padding:7px;font-size:12px;min-height:36px}
.photo-preview:hover{border-color:#a65670}
#order-photo-section{margin-bottom:20px}@media(max-width:700px){
.photo-preview{width:calc(50% - 6px);min-width:110px}
.photo-preview img{height:130px}}
.order-photos:empty{display:none}
.photo-upload input::file-selector-button{border:0;border-radius:8px;padding:9px 12px;margin-right:8px;background:linear-gradient(145deg,#a4516b,#80223f);color:#fff;font:inherit;font-weight:600;cursor:pointer;box-shadow:0 2px 4px #80223f22}
.photo-upload input:disabled::file-selector-button{opacity:.55}
.test-mode-card{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(320px,1.3fr);align-items:center;gap:24px;padding:22px 24px;margin-top:14px}
.test-mode-card h2{font-size:20px;margin:8px 0}
.test-mode-card p{margin:8px 0 0;line-height:1.55}
.test-mode-card label{margin:0}
.test-mode-card input{display:block;width:100%;margin-top:8px}
.test-mode-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.test-mode-actions button{margin:0}
.test-mode-card #test-chat-status{min-height:1.4em}
@media(max-width:700px){
.test-mode-card{grid-template-columns:1fr;gap:12px;padding:18px}
.test-mode-actions{display:grid;grid-template-columns:1fr}
.test-mode-actions button{width:100%}}/* Recipient-paid CDEK delivery is separate from the bank payment for perfume. */
.recipient-rule,.recipient-delivery{margin:18px 0;padding:16px 18px;border:1px solid #eadbe1;border-radius:14px;background:linear-gradient(145deg,#fff,#fcf7f9)}
.recipient-rule h3,.recipient-delivery h3{margin:0 0 9px;font-size:16px}
.recipient-rule p,.recipient-delivery p{margin:8px 0 0;line-height:1.55}
.recipient-delivery .consent{display:flex;align-items:center;gap:9px;margin:0 0 12px;color:#523b46;font-size:13px}
.recipient-delivery .consent input{width:18px;height:18px;min-height:18px;margin:0;accent-color:#932f51}
.recipient-delivery-settings{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){
.recipient-rule,.recipient-delivery{padding:14px}
.recipient-delivery-settings{grid-template-columns:1fr}
.recipient-delivery .consent{align-items:flex-start}
.recipient-delivery .consent input{margin-top:1px}}/* Owner-only MAX inbox counters. */
.inbox-card{margin-top:18px}
.inbox-card h2{margin:4px 0 0}
.inbox-count,.inbox-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#9b294c;color:#fff;font-size:11px;vertical-align:middle}
.inbox-badge{position:absolute;top:8px;right:8px;box-shadow:0 1px 4px #69203850}
.sidebar nav button{position:relative}
.max-inbox{display:grid;gap:8px;margin-top:14px}
.inbox-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #eee5e9}
.inbox-row>div{display:grid;gap:4px;min-width:0}
.inbox-row strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-row.unread strong{color:#85223d}
.inbox-row .text-button{flex:none;min-height:34px;padding:7px 10px;font-size:12px}/* Orders: working actions first; shipping parameters stay behind edit actions. */
.nav-badge{position:absolute;right:13px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:linear-gradient(145deg,#b54a6e,#85213f);box-shadow:inset 0 1px 0 #ffffff55,0 2px 5px #69203835;color:#fff;font-size:11px;line-height:1;font-variant-numeric:tabular-nums}
#orders-workspace{padding-top:0}
.orders-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.orders-primary-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:42px;margin-bottom:12px}
.orders-primary-actions .primary{justify-self:start;min-height:42px;padding:10px 15px;font-size:13px}
.orders-toolbar #orders-sandbox{grid-column:1/-1;justify-self:end}
.orders-refresh-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid #e0c9d2;border-radius:12px;background:#fff;box-shadow:0 2px 6px #6e263b0d;color:#8d3653;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.orders-refresh-button:hover{border-color:#a44b68;background:#fff8fa;box-shadow:0 4px 10px #6e263b18;transform:translateY(-1px)}
.orders-refresh-button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #6e263b20}
.orders-refresh-button:focus-visible{outline:3px solid #c58f9f;outline-offset:3px}
.orders-refresh-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.orders-dashboard-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 14px}
.orders-workflow-panel{padding:10px;border:1px solid #ebe0e5;border-radius:13px;background:linear-gradient(135deg,#fff,#fcf8fa);box-shadow:inset 0 1px 0 #fff,0 2px 8px #5d263408}
.order-stage-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 8px}
.order-stage-tabs button{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:42px;padding:8px 11px;border:1px solid #e5dbe0;border-radius:11px;background:linear-gradient(160deg,#fff,#fbf7f8);color:#705b65;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.order-stage-tabs button:hover{border-color:#ccabb8;background:#fdf7f9}
.order-stage-tabs button[aria-selected=true]{border-color:#aa5872;background:linear-gradient(145deg,#fff5f8,#f5e6ec);box-shadow:inset 0 1px 0 #fff,0 2px 7px #6e263b0d;color:#7f2949}
.stage-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#eee6e9;color:#6b555e;font-size:11px;font-variant-numeric:tabular-nums}
.order-stage-tabs button[aria-selected=true] .stage-count{background:#933454;color:#fff}
.order-carrier-filter{display:flex;align-items:center;gap:6px;margin:0;padding:0;border:0}
.order-carrier-filter button{display:inline-flex;align-items:center;justify-content:center;min-width:60px;min-height:34px;padding:5px 10px;border:1px solid #e7dce1;border-radius:9px;background:#fff;color:#715b65;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.order-carrier-filter button img{display:block;width:65px;height:20px;object-fit:contain}
.order-carrier-filter button[data-orders-carrier=pochta] img{width:91px}
.order-carrier-filter button[aria-pressed=true]{border-color:#b3627b;background:#f8edf1;box-shadow:inset 0 0 0 1px #b3627b20;color:#812c4a}
.order-carrier-filter button:hover{border-color:#c69baa}
.order-carrier-filter button:focus-visible,.order-stage-tabs button:focus-visible{outline:3px solid #c58f9f;outline-offset:2px}
.carrier-settings-menu{margin:0 0 14px;border:1px solid #ebe0e5;border-radius:14px;background:linear-gradient(135deg,#fff,#fcf8fa);box-shadow:inset 0 1px 0 #fff,0 2px 8px #5d263408;overflow:hidden}
.carrier-settings-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 16px;color:#654e58;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.carrier-settings-menu>summary::-webkit-details-marker{display:none}
.carrier-settings-menu>summary:hover{background:#fdf7f9}
.carrier-settings-summary-meta{display:inline-flex;align-items:center;gap:7px;color:#97737f;font-size:12px;font-weight:600}
.carrier-settings-menu>summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.carrier-settings-menu[open]>summary{border-bottom:1px solid #eee3e7;color:#862b4a;background:#fdf7f9}
.carrier-settings-menu[open]>summary .carrier-settings-summary-meta svg{transform:rotate(180deg)}
.carrier-settings-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
.carrier-settings-button{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 14px;border:1px solid #e5d9df;border-radius:12px;background:#fff;color:#704f5c;font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer;box-shadow:0 2px 6px #5d263408;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.carrier-settings-button:hover{border-color:#bd8297;background:#fffafb;transform:translateY(-1px)}
.carrier-settings-button[aria-expanded=true]{border-color:#a64e6c;background:#fdf2f6;box-shadow:inset 0 0 0 1px #a64e6c22}
.carrier-settings-button:focus-visible{outline:3px solid #c58f9f;outline-offset:2px}
.carrier-settings-button .carrier-brand{width:112px;height:32px}
.carrier-settings-button .carrier-settings-arrow{margin-left:auto;color:#943553;font-size:18px}
.orders-settings-editor{margin:0;padding:0 12px 12px}
.orders-settings-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}
.orders-settings-editor-head h2{margin:0;font-size:19px}
.orders-settings-editor .shop-settings,.orders-settings-editor .postal-settings{margin:0!important}
.orders-settings-editor .postal-settings{margin-top:16px!important}
@media(max-width:700px){
.nav-badge{top:7px;right:calc(50% - 35px);transform:none;min-width:19px;height:19px;font-size:10px}
.orders-primary-actions{gap:7px}
.orders-primary-actions .primary{width:auto}
.orders-dashboard-grid{gap:8px}
.orders-workflow-panel{padding:9px}
.order-stage-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.order-stage-tabs button{min-height:40px;padding:8px 10px;font-size:12px}
.order-carrier-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.order-carrier-filter button{width:100%;min-width:0;padding:5px}
.order-carrier-filter button img{width:58px}
.order-carrier-filter button[data-orders-carrier=pochta] img{width:75px}
.carrier-settings-menu>summary{min-height:50px;padding:0 13px}
.carrier-settings-actions{grid-template-columns:1fr;padding:9px;gap:8px}
.carrier-settings-button{min-height:62px;padding:10px 12px;font-size:13px}
.carrier-settings-button .carrier-brand{width:105px;height:30px}
.orders-settings-editor{padding:0 9px 9px}}/* Compact order card: the next action and essentials stay visible; editing stays available in calm sections. */
.order-card>.order-summary{display:inline-flex;align-items:center;min-height:28px;margin:10px 0 12px;padding:5px 10px;border-radius:999px;background:#f7e9ee;color:#842c4a;font-size:12px;font-weight:700;line-height:1.2}
.order-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 14px}
.order-overview-label{color:#9b7d89;font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.order-card>.order-actions-primary{margin:0 0 14px;padding:0;border:0}
.order-card>.order-actions-primary>*{min-height:42px}
.order-card>.order-actions-primary .primary{font-size:13px}
.order-form-section{margin:10px 0;border:1px solid #e9dfe4;border-radius:13px;background:#fff;overflow:hidden}
.order-form-section>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;color:#654f59;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.order-form-section>summary::-webkit-details-marker{display:none}
.order-form-section>summary>span:first-child{min-width:0}
.order-form-section>summary:hover{background:#fdf8fa}
.order-form-section>summary svg{width:19px;height:19px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.order-form-section[open]>summary{border-bottom:1px solid #eee4e8;color:#842c4a;background:#fdf8fa}
.order-form-section[open]>summary svg{transform:rotate(180deg)}
.order-section-note{overflow:hidden;margin-left:auto;color:#9b7f89;font-size:12px;font-weight:500;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.order-form-section-body{padding:2px 14px 14px}
.order-form-section-body>.muted.small{margin:10px 0}
.order-form-section .city-picker{margin:12px 0}
.order-photo-section .order-form-section-body{padding-top:8px}
.order-card>#order-estimate-result,.order-card>#order-shipment,.order-card>#order-delivery-notice{margin:10px 0 0}
@media(max-width:700px){
.order-overview{grid-template-columns:1fr;gap:7px}
.order-card>.order-actions-primary{display:grid;grid-template-columns:1fr;gap:8px}
.order-card>.order-actions-primary>*{width:100%}
.order-form-section>summary{min-height:50px;padding:0 12px;font-size:13px}
.order-section-note{max-width:42%;font-size:11px}
.order-form-section-body{padding:2px 12px 12px}}/* Settings keep their detail close at hand without making the page feel dense. */
.settings-subpage-head{display:flex;align-items:center;gap:16px;margin:0 0 18px}
.settings-subpage-head h1{margin:0;font-size:26px}
.settings-subpage-head p{margin:4px 0 0}
.settings-subpage-head .text-button{flex:none}
.settings-links>.settings-service{border-bottom:1px solid #eee5ea}
.settings-service>summary{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:0;border:0;list-style:none;color:#65404f;cursor:pointer}
.settings-service>summary::-webkit-details-marker{display:none}
.settings-service>summary>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.settings-service .carrier-brand{width:88px}
.settings-service .carrier-brand img{max-width:88px}
.settings-service-state{color:#9b7685;font-size:11px;font-weight:650}
.settings-service>summary svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.settings-service[open]>summary{color:#842c4a}
.settings-service[open]>summary svg{transform:rotate(180deg)}
.settings-service-body{padding:0 0 15px 102px}
.settings-service-body p{margin:0 0 10px;line-height:1.45}
.settings-service-body .text-button{min-height:36px;padding:7px 10px;font-size:12px}
.settings-link-icon{display:inline-flex;align-items:center;justify-content:center;width:88px;color:#9b3658;font-size:24px}
.order-row::after{content:'⌄';position:absolute;right:18px;top:50%;color:#966476;font-size:20px;line-height:1;transform:translateY(-50%);transition:transform .18s ease,color .18s ease}
.order-row[aria-expanded=true]{border-color:#bc7086;background:#fff9fb}
.order-row[aria-expanded=true]::after{color:#8b2949;transform:translateY(-62%) rotate(180deg)}
@media(max-width:700px){
.settings-subpage-head{align-items:flex-start;flex-direction:column;gap:10px}
.settings-subpage-head h1{font-size:22px}
.settings-service>summary{min-height:66px;gap:10px}
.settings-service .carrier-brand{width:75px}
.settings-service .carrier-brand img{max-width:75px}
.settings-service-state{display:none}
.settings-service-body{padding-left:85px}
.settings-link-icon{width:75px}
.order-row::after{right:13px}
.order-row>div:last-child{margin-right:6px}}/* Messages: the owner's queue stays independent of MAX read receipts. */
.messages-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.messages-tabs{display:flex;gap:6px;min-width:0;padding:4px;border:1px solid var(--line);border-radius:14px;background:#f5eff2}
.messages-tabs [role=tab]{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border-radius:10px;background:transparent;color:#796774;font-size:14px;font-weight:600;line-height:1.4}
.messages-tabs [aria-selected=true]{background:#fff;color:var(--wine);box-shadow:0 2px 6px #54202a0c}
.messages-toolbar>.orders-refresh-button{flex-shrink:0}
.messages-hint{max-width:680px;margin:0 0 16px;line-height:1.6}
#max-inbox{gap:10px;margin:0}
#max-inbox .inbox-row{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:#fff;box-shadow:0 2px 8px #43233003}
.inbox-avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:13px;background:#f6e9ef;color:#8d3653;font-size:15px;font-weight:650}
#max-inbox .inbox-row>.inbox-details{flex:1;min-width:0;gap:5px}
#max-inbox .inbox-row strong{font-size:15px;white-space:normal;overflow-wrap:anywhere;color:#30272c;font-weight:600}
#max-inbox .inbox-open{min-height:42px;font-size:13px;white-space:nowrap;flex:none}
#max-inbox .inbox-open svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.messages-empty{display:grid;justify-items:center;text-align:center;gap:12px;padding:48px 22px;border:1px dashed #e4d6dd;border-radius:16px;background:#fffcfd}
.messages-empty>svg{width:40px;height:40px;color:#b58a9b;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.messages-empty h2{font-size:19px;margin:0}
.messages-empty p{font-size:13px;color:var(--muted);max-width:350px;margin:0}
#messages-panel-auto{min-width:0}
#messages-pagination{justify-content:center;margin-top:16px}
@media(max-width:680px){
#messages-panel-auto{display:flex;flex-direction:column}
.messages-toolbar{gap:8px;align-items:flex-start}
.messages-tabs{flex:1;gap:2px;padding:3px}
.messages-tabs [role=tab]{padding:9px 10px;font-size:13px;gap:6px;flex:1}
.messages-tabs .inbox-count{min-width:18px;height:18px;padding:0 5px;font-size:10px}
#max-inbox .inbox-row{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:12px}
#max-inbox .inbox-avatar{display:none}
#max-inbox .inbox-open{margin:0;min-height:44px;padding:9px 11px;font-size:12px}
.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}
.messages-hint{font-size:12px}
}

@media(min-width:701px){
.sidebar nav [data-page="reply"]{padding-right:36px}
.sidebar nav [data-page="reply"] .nav-badge{right:7px;min-width:19px;padding:0 5px}}/* Store settings: shipping lives beside the owner's other preferences. */
#page-shipping>.carrier-settings-menu{margin:0 0 20px}
.shipping-settings-heading{display:flex;align-items:center;gap:12px;min-width:0}
.shipping-settings-icon,.profile-settings-glyph{display:inline-grid;place-items:center;flex:none;border:1px solid #ead6df;background:linear-gradient(145deg,#fff,#f6e8ee);color:#93465f;box-shadow:inset 0 1px 0 #fff}
.shipping-settings-icon{width:38px;height:38px;border-radius:12px}
.shipping-settings-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-settings-glyph{width:30px;height:32px;border-radius:10px;transition:background .16s,border-color .16s}
.profile-settings-glyph svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.profile-launch:hover .profile-settings-glyph,.profile-launch.active .profile-settings-glyph{background:#f3dfe8;border-color:#d8adbf;color:#7f304e}
@media(max-width:700px){
.profile-launch .avatar{display:none}
.profile-launch .profile-settings-glyph{display:grid;width:36px;height:36px;border-radius:11px}
.profile-settings-glyph svg{width:23px;height:23px}
.shipping-settings-heading{gap:10px;font-size:15px}
.shipping-settings-icon{width:34px;height:34px;border-radius:10px}
#page-shipping>.carrier-settings-menu>summary{min-height:64px}
.carrier-settings-summary-meta{gap:7px;font-size:11px}
}/* Matching navigation illustrations for the settings shortcuts. */
.settings-links .settings-link-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #ead6df;border-radius:12px;background:linear-gradient(145deg,#fff,#f6e8ee);color:#97435f;box-shadow:inset 0 1px 0 #fff}
.settings-link-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.settings-links .settings-link-copy{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.settings-links .settings-link-copy strong{font-size:13px;line-height:1.4}
.settings-link-chevron{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.65}
.settings-links>a:hover,.settings-links>button:hover{color:#8c2c50}
.connection-status{margin:0 0 16px;padding:12px 15px;border:1px solid #e6d3ba;border-radius:11px;background:#fff9ee;color:#7c633d;font-size:13px;line-height:1.5}
@media(max-width:700px){
.settings-links .settings-link-icon{width:38px;height:38px}
.connection-status{font-size:12px;padding:11px 13px}}/* The owner's supplied portrait is framed by CSS, without retouching. */
.avatar.owner-photo{overflow:hidden;border:2px solid #fff;background:#f7eef1;box-shadow:0 0 0 1px #dfc7d1,0 3px 8px #6b1c3614}
.owner-avatar-image{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 40%;border-radius:inherit}
.shipping-page-back{margin-bottom:16px}/* Explicit order actions replace the duplicate stage badge and arrow. */
.order-row::after{content:none}
.order-row.is-open{border-color:#bc7086;background:#fff9fb}
.order-row .order-open{min-height:40px;padding:9px 13px;font-size:13px;white-space:nowrap}
.order-cancel{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #e6d7dd;border-radius:10px;background:#fff;color:#9b687b;transition:background .16s,border-color .16s,color .16s}
.order-cancel:hover{background:#fff1f4;border-color:#c77c94;color:#9b294c}
.order-cancel svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#order-cancel-dialog{width:min(460px,calc(100% - 28px))}
#order-cancel-dialog h2{margin:0 0 16px;font-size:23px}
#order-cancel-dialog .cancel-order-name{font-weight:600;color:#4d3440;overflow-wrap:anywhere}
.cancel-order-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
#order-cancel-dialog .cancel-order-actions>*{width:auto;margin:0;min-height:44px}
@media(max-width:1000px){
.order-row>.order-excerpt{grid-row:2;grid-column:1}}
@media(max-width:700px){
.order-row>.order-excerpt{grid-row:auto;grid-column:1}
.order-row .order-open{min-height:44px;padding:9px 12px;font-size:12px}
.order-cancel{width:44px;height:44px}
.cancel-order-actions{flex-wrap:wrap}
#order-cancel-dialog .cancel-order-actions>*{flex:1}
}/* Personal MAX conversations: previews and natural-height, read-only history. */
.inbox-conversation{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 2px 8px #43233003;overflow:clip}
#max-inbox .inbox-conversation .inbox-row{border:0;border-radius:0;box-shadow:none;align-items:center}
#max-inbox .inbox-avatar{border-radius:50%;width:44px;height:44px}
.inbox-preview{margin:2px 0 0;font-size:14px;line-height:1.5;color:#74666e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}
#max-inbox .inbox-toggle{min-height:42px;font-size:13px;white-space:nowrap}
.inbox-history{border-top:1px solid var(--line);padding:16px 20px 20px;background:#fcf9fa}
.inbox-history-notice{margin:0 0 14px;line-height:1.6}
.inbox-message-list{display:grid;gap:12px;min-width:0}
.inbox-message{justify-self:start;max-width:min(85%,700px);min-width:0;padding:12px 16px;border:1px solid #eadfe4;border-radius:14px 14px 14px 4px;background:#fff}
.inbox-message.is-outgoing{justify-self:end;border-color:#ead4de;background:#f6eaf0;border-radius:14px 14px 4px 14px}
.inbox-message-meta{margin:0 0 6px;font-size:11px;color:#927887;line-height:1.5}
.inbox-message-text{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-attachment{margin:6px 0 0;color:#796670;font-size:13px}
.inbox-voice{display:grid;gap:8px;min-width:0;margin-top:6px;color:#796670}
.inbox-voice audio{display:block;width:280px;max-width:100%;height:42px}
.inbox-voice .form-error{max-width:280px;margin:0}
.inbox-voice button{justify-self:start}
.inbox-history>.form-error:empty{display:none}
.inbox-history-retry{margin-top:12px}
.inbox-launch-note{padding:0 18px 14px;line-height:1.6}
.inbox-launch-note a{color:#8d3653;text-decoration:underline;text-underline-offset:3px}
.inbox-open[role=button]{cursor:pointer}
@media(max-width:900px){
#max-inbox .inbox-conversation .inbox-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px}
#max-inbox .inbox-conversation .inbox-avatar{display:grid;grid-column:1;grid-row:1;align-self:start}
#max-inbox .inbox-conversation .inbox-details{grid-column:2;grid-row:1}
.inbox-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:480px){
#max-inbox .inbox-conversation .inbox-row{padding:14px}
.inbox-actions{grid-column:1 / -1;justify-content:flex-end}
#max-inbox .inbox-toggle,#max-inbox .inbox-open{min-height:44px;padding:9px 12px;font-size:12px}
.inbox-history{padding:14px 12px 16px}
.inbox-message{max-width:94%;padding:11px 12px}
.inbox-voice audio{width:230px;max-width:100%}
}

/* Component system — shared surfaces and action hierarchy. */
.primary,.text-button,.secondary-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:12px;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;text-align:center;white-space:normal}
body{font-size:15px}
.card{border:1px solid var(--line);border-radius:var(--radius-card);background:#fff;box-shadow:none}
.primary{color:#fff;background:var(--wine);border-color:var(--wine);box-shadow:none}
.primary:hover:not(:disabled){background:var(--wine-dark);box-shadow:none;transform:none}
.text-button,.secondary-link{color:#754454;background:#fff;border-color:var(--line);box-shadow:none;transform:none}
.text-button:hover:not(:disabled),.secondary-link:hover{background:#faf3f6;border-color:#c7a4b2;box-shadow:none}
.orders-refresh-button,.profile-launch,.order-stage-tabs button,.order-carrier-filter button,.carrier-settings-button,.carrier-settings-menu,.orders-workflow-panel{box-shadow:none;background-image:none}
.orders-refresh-button{width:44px;height:44px;min-height:44px;border-radius:12px}
.orders-refresh-button:hover,.orders-refresh-button:active{transform:none;box-shadow:none}
.order-cancel,#order-cancel-confirm{border-color:#bd7286;color:#9b2947}
#order-cancel-confirm{background:#9b2947;color:#fff}
.form-error:empty,.choice-feedback:empty{display:none}
.messages-help,.technical-check{margin:0 0 16px}
.messages-help>summary,.technical-check>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:#756370;font-size:13px;font-weight:550;list-style:none}
.disclosure-icon{display:block;width:18px;height:18px;margin-left:auto;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
details[open]>summary>.disclosure-icon{transform:rotate(180deg)}
.messages-help>p{font-size:14px;line-height:1.6;margin:0 0 12px;max-width:720px}
.technical-check{padding:0 24px!important}.technical-check>summary{min-height:56px}.technical-check .test-mode-card{padding:8px 0 24px;border:0;background:none;box-shadow:none}
/* Inbox: compact identity and separate reply state. */
.inbox-conversation{box-shadow:none}
.inbox-conversation.needs-reply{border-color:#d6e3d9}
#max-inbox .inbox-row>.inbox-details{gap:4px}
.inbox-client-name{display:flex;align-items:center;min-height:44px;color:var(--ink);font-size:16px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.inbox-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font-size:13px;line-height:1.5;color:var(--muted)}
.inbox-time{font-size:13px;white-space:nowrap}
.inbox-new-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;font-size:12px;font-weight:650;line-height:1;background:#278440;color:#fff}
.inbox-reply-state{font-size:13px;font-weight:550;color:#28733c}.inbox-answered{font-size:13px;color:var(--muted)}
.inbox-preview{font-size:15px;color:#635b64}
.inbox-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px}
.inbox-filters button{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#6c5360}
.inbox-filters button[aria-pressed=true]{background:#edf6ef;border-color:#a6cbb0;color:#286c3b;font-weight:650}
.inbox-sync-status{padding:0 18px 12px;margin:0;color:#8a6a35;font-size:13px}
.inbox-sync-status>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;width:fit-content;max-width:100%;gap:8px;list-style:none}
.inbox-sync-status>summary::before{content:'';width:6px;height:6px;border-radius:50%;background:#bc8a3b;flex:none}
.inbox-sync-status>p{margin:0;padding:0 0 4px;font-size:13px}
#max-inbox .inbox-row>.inbox-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:304px;max-width:100%;flex:none}
#max-inbox .inbox-actions>.inbox-toggle,#max-inbox .inbox-actions>.inbox-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;height:auto;min-height:44px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#754454;box-shadow:none;font-size:13px;font-weight:600;line-height:18px;text-decoration:none;white-space:normal;transform:none}
#max-inbox .inbox-actions>.inbox-open{background:#f7edf2;border-color:#e5d3dc;color:#853650}
#max-inbox .inbox-actions>.inbox-toggle:hover,#max-inbox .inbox-actions>.inbox-open:hover{background:#f3e6ed;border-color:#cdaaba}
#max-inbox .inbox-actions>.inbox-open svg{width:16px;height:16px;flex:none}
#max-inbox .inbox-actions>.inbox-dismiss{grid-column:1/-1;display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px 12px;margin:0;border:1px solid #d9c5cf;border-radius:12px;background:#fcf9fa;box-shadow:none;color:#754454;font-size:13px;font-weight:600;line-height:18px;text-decoration:none;white-space:normal;transform:none}
#max-inbox .inbox-actions>.inbox-dismiss:hover{background:#f3e6ed;border-color:#cdaaba;color:#754454}
.inbox-message-meta{font-size:13px;color:#786471}.inbox-message-text{font-size:15px}.inbox-message{box-shadow:none}
/* Orders: one identity link, stable right-aligned amount and quiet detail sections. */
.order-row{display:grid;position:relative;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;cursor:default}
#orders-list .order-person{align-items:flex-start;gap:12px}
.order-person-copy{display:grid;gap:4px;min-width:0}
.order-person-link{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:44px;text-decoration:none;color:var(--ink);overflow-wrap:anywhere}
.order-person-link[href]:hover .order-client-name{text-decoration:underline}
.order-client-name{font-size:15px;font-weight:650;line-height:1.4;min-height:0;color:var(--ink)}
.order-max-name{font-size:14px;font-weight:550;line-height:1.4;min-height:0;color:#7d4e61}
.order-person-copy>.small{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.order-excerpt{font-size:15px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.order-row>.order-row-end{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;min-width:0;margin:0}
#orders-list .order-row-total{min-width:100px;max-width:180px;text-align:right;font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums}
.order-row-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:8px}
.order-row .order-open{min-height:44px;font-size:13px}
.order-overview{gap:0;border-block:1px solid var(--line);padding:12px 0}
.order-overview-item{display:grid;align-content:start;gap:4px;min-width:0;padding:8px 16px;border:0;border-radius:0;background:none}
.order-overview-item+ .order-overview-item{border-left:1px solid var(--line)}
.order-overview-item strong{font-size:15px;line-height:1.45;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
.order-overview-item small{font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
.order-overview-label{font-size:11px;letter-spacing:.06em;color:#786671}
.order-max-recipient{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.order-form-section{border:0;border-block:1px solid var(--line);border-radius:0;margin:16px 0;background:none;overflow:visible}
.order-form-section>summary{padding:8px 0;font-size:15px;min-height:52px}.order-form-section[open]>summary{background:none;border:0}.order-form-section-body{padding:0 0 16px}
.order-actions-primary{gap:8px}.order-actions-primary>.text-button,.order-actions-primary>.secondary-link{font-size:13px}
/* Deliveries: filters are a disclosure on mobile, always expanded on wider screens. */
#page-deliveries .delivery-filters{display:grid;grid-template-columns:1fr;gap:12px}
#page-deliveries .delivery-search{grid-column:1/-1;margin:0}
.delivery-filter-options{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff}
.delivery-filter-options>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;color:#725461;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.disclosure-chevron{margin-left:auto}.delivery-filter-options[open] .disclosure-chevron{transform:rotate(180deg)}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:50%;background:#f2e5ec;color:var(--wine);font-size:12px}
.delivery-filter-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:8px 16px 16px;min-width:0}
.delivery-filter-body .visible-choices{grid-column:auto;margin:0}.delivery-filter-body .choice-options{gap:6px}.delivery-filter-body .choice-card{padding:8px 10px;font-size:13px;min-height:44px}.delivery-filter-body .choice-content{min-width:0;overflow-wrap:anywhere}
.delivery-more{position:relative;flex:none;width:auto;max-width:100%}.delivery-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#754454;font-size:14px;cursor:pointer;list-style:none}
.delivery-more .delivery-menu{position:absolute;inset:calc(100% + 8px) 0 auto auto;z-index:35;width:250px;min-width:0;max-width:calc(100vw - 40px);padding:8px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #48253318;display:grid;gap:4px}
.delivery-more:not([open]) .delivery-menu{display:none}.delivery-menu button{width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#754454;font-size:14px;text-align:left;box-shadow:none}.delivery-menu button:hover{background:#f8eff3}
.delivery-row{box-shadow:none}.delivery-list-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px;flex-wrap:nowrap}.delivery-list-head>div:first-child{flex:1;min-width:0}.delivery-list-head h2{font-size:22px}.delivery-list-head p{font-size:13px;line-height:1.5}
/* Settings: fewer nested surfaces, one title per editor. */
.settings-heading h2,.settings-links h2,.settings-access h2{font-size:21px}
.settings-layout label{margin:0}.settings-layout .form-grid{gap:20px 16px}.settings-heading{margin-bottom:24px}
.carrier-settings-menu{background:#fff;border-radius:16px}.orders-settings-editor>.shop-settings,.orders-settings-editor>.postal-settings{border:0;background:none;box-shadow:none;padding:16px}
.orders-settings-editor-head{padding:20px 16px 4px}.orders-settings-editor-head h2{font-size:23px}.orders-settings-editor .open-section-heading{font-size:16px;color:#6f5a65;margin:0 0 12px}
.city-picker,.recipient-rule,.recipient-delivery,.postal-address{background:#fcf9fa;box-shadow:none;border-color:var(--line);border-radius:12px}
.test-mode-card h2{font-size:20px}.auto-card .auto-intro h2{font-size:22px}
/* Customer: accessible file control and readable status groups. */
.photo-upload{border:1px dashed #d9c6d0;border-radius:12px;padding:16px;background:#fcf9fa;margin:0 0 24px}
.photo-upload-title{display:block;font-size:14px;color:#665760;margin-bottom:12px}
.photo-file-control{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:44px;margin:0;color:var(--muted)}
.photo-file-control input[type=file]{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;margin:0;opacity:0;cursor:pointer;z-index:1}
.photo-file-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #d9bcc9;border-radius:12px;background:#f6eaf0;color:#7e304c;font-size:14px;font-weight:600}
.photo-file-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.photo-file-control:focus-within .photo-file-button{outline:3px solid #bd879b;outline-offset:3px}.photo-file-control.is-disabled{opacity:.6}#photo-selected-count{font-size:13px}
.customer-card .photo-upload #photo-message{margin:12px 0 0;line-height:1.5}.photo-upload .order-photos:empty{display:none}
.customer-header .customer-form-close{width:auto;height:auto;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;font-size:13px;text-decoration:none;margin-left:auto}
.customer-card h1{line-height:1.25}.customer-card h2{font-size:19px}.customer-card>.muted{font-size:15px}
#result-status{display:inline-flex;max-width:100%;font-size:15px;line-height:1.45;font-weight:600;border-radius:12px;background:#f6eaf0;padding:8px 12px;color:#853650;margin:12px 0 24px}
#order-result[data-state=cancelled] #result-status{background:#f9e9ed;color:#9b2947}
.customer-result-section{padding:20px 0;border-top:1px solid var(--line)}.customer-result-section h2{margin:0 0 12px}.customer-result-section p{margin:0 0 8px;overflow-wrap:anywhere;line-height:1.6}
.customer-result-section p:last-child{margin-bottom:0}.customer-result-section .result-amount{font-size:26px;font-weight:700;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums}
.result-carrier{font-weight:600}.result-track{font-size:18px;font-weight:650;letter-spacing:.02em;font-variant-numeric:tabular-nums}
#result-payment #pay-link{margin-top:16px}#result-note{padding:12px 0;margin:0;font-size:14px;line-height:1.6}.customer-footer{font:inherit;font-size:13px;color:var(--muted);padding-top:20px}
summary::-webkit-details-marker{display:none}

/* Secondary information remains readable on white and pale surfaces. */
.order-section-note,.order-overview-label,.eyebrow,.login-note,.settings-link-copy small,.customer-footer{color:#706773}
input::placeholder,textarea::placeholder{color:#786e76;opacity:1}

.desktop-page-header{margin:4px 0 24px}.desktop-page-header h1{margin:0;font-size:28px;line-height:1.25;letter-spacing:-.6px}
