/* Shared controls and surfaces; component styles own layout, not their own palettes. */
input[type=checkbox],input[type=radio]{accent-color:var(--color-ink)!important;}
.sign-out{color:var(--color-error)!important;}.btn.sign-out{background:var(--color-error-soft);border-color:var(--color-error-border);color:var(--color-error);}
.notice,.ui-notice{padding:20px;border:1px solid var(--notice-border,var(--color-border));border-radius:12px;background:var(--notice-bg,var(--color-surface-soft));color:var(--notice-ink,var(--color-ink));}
.ui-notice.tone-success,.notice.good,.notice.success{--notice-border:var(--color-success-border);--notice-bg:var(--color-success-soft);--notice-ink:var(--color-success);}
.ui-notice.tone-error,.notice.error,.notice.bad{--notice-border:var(--color-error-border);--notice-bg:var(--color-error-soft);--notice-ink:var(--color-error);}
.ui-notice p{color:inherit;}.ui-notice[hidden]{display:none!important;}.purchase-success-alert.ui-notice{display:block;}
.store-admin-card{border:1px solid var(--color-border);border-radius:18px;padding:28px;background:var(--color-surface);}
.color-control{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 13px;background:var(--color-surface);color:var(--color-ink);border:1px solid var(--color-border);border-radius:9px;text-align:left;font:inherit;}.color-control i{width:24px;height:24px;flex:none;border:1px solid var(--color-border);border-radius:6px;background:var(--swatch);}.color-control span{font-family:var(--font-mono);font-size:12px;flex:1;}.color-control .icon{width:16px;height:16px;}
@media(max-width:600px){.ui-notice{padding:16px;gap:10px;border-radius:10px;}.store-admin-card{padding:21px 17px;border-radius:14px;}}

:is(#app,.shared-color-picker-popover) input.field-invalid,:is(#app,.shared-color-picker-popover) textarea.field-invalid,:is(#app,.shared-color-picker-popover) .select-trigger.field-invalid,:is(#app,.shared-color-picker-popover) .phone-field-control.field-invalid{border-color:var(--color-sale)!important;}
input[type=checkbox].field-invalid:not(:checked){outline:1px solid var(--color-sale);outline-offset:2px;border-radius:3px;}

button,input,textarea,select{color:inherit;}

.checkout-summary[data-sticky=off]{position:static}

/* Focused actions keep their own surface/border; editable fields use thin borders. */
button:focus,a:focus,[role=button]:focus,input:focus,textarea:focus,select:focus{outline:none;}
.select-trigger:focus-visible{border-color:var(--field-active);}

.back-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--color-text-secondary);margin-bottom:25px;}.back-link .icon{width:17px;height:17px;}.back-link:hover{color:var(--color-ink);}@media(max-width:600px){.back-link{margin-bottom:20px;}}

/* A shared title/status row keeps entity state at the heading's top right. */
.page-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;min-width:0;}.page-title-row>h1,.page-title-row>div:first-child{min-width:0;}.page-title-row>h1{flex:1;overflow-wrap:anywhere;}.page-title-status{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex:none;max-width:44%;flex-wrap:wrap;}.page-title-status .tag,.page-title-status.order-status{margin:0;}.page-subtitle{margin-top:18px;}.order-detail-title.page-title-row{align-items:flex-start;flex-wrap:nowrap;}.order-detail-title.page-title-row>.order-status{flex:none;margin:0;}.page-title-row .receipt-complete{margin:0;font-size:12px;}.product-info>.page-title-row{margin-bottom:18px;}.product-info>.page-title-row .tag{margin-top:6px;}
/* Filter labels keep their own row, with controls sharing one bottom baseline. */
.filter-toolbar{display:grid;grid-template-columns:minmax(0,1fr) repeat(var(--filter-count,2),minmax(140px,180px));align-items:end;gap:16px;margin-bottom:30px;}.filter-toolbar>.field{margin:0;min-width:0;}.filter-toolbar .search{min-width:0;max-width:none;width:100%;height:var(--control-height);min-height:var(--control-height);}.filter-toolbar .search input{height:100%;min-height:0;}.filter-toolbar .select-trigger{height:var(--control-height);min-height:var(--control-height);}.orders-tools.filter-toolbar{display:grid;}.filter-toolbar .field>span{margin-bottom:8px;}
[data-clickable-row]{cursor:pointer;}tr[data-clickable-row]:hover>td{background:var(--color-surface-soft);}.order-card[data-clickable-row]:hover{border-color:var(--color-text-tertiary);}[data-clickable-row]:focus-visible{outline:none;background:var(--color-surface-soft);}
@media(max-width:600px){.page-title-row{gap:12px;}.page-title-status{max-width:43%;}.page-title-status .tag,.page-title-status.order-status{font-size:10px;}.page-title-row .receipt-complete{font-size:10px;}.page-title-row .receipt-complete .icon{width:16px;height:16px;}.filter-toolbar,.orders-tools.filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;}.filter-toolbar>.search,.filter-toolbar>.select-shell{grid-column:1/-1;}.filter-toolbar .select-trigger{width:100%;}.filter-toolbar>.field{width:auto;}.order-detail-title.page-title-row>.order-status{max-width:44%;white-space:normal;text-align:right;}.page-title-row .order-status{justify-content:flex-end;}}

.entity-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}.entity-card-heading>strong{min-width:0;}.entity-card-heading>.tag{margin:0;flex:none;font-size:10px;max-width:58%;white-space:normal;text-align:right;}

.commerce-heading.page-title-row{display:flex;align-items:flex-start;}.orders-tools.filter-toolbar>.select-shell{width:100%;min-width:0;}.orders-workspace .order-detail-title.page-title-row{align-items:flex-start;flex-wrap:nowrap;}
