.topbar {
  align-items: flex-start;
  padding: max(12px, env(safe-area-inset-top)) 14px 9px;
}
.topbar-brand { display: grid; justify-items: start; gap: 5px; }
.topbar-brand img { display: block; width: 104px; height: auto; }
.topbar h1 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.scope-badge { margin-top: 2px; padding: 5px 8px; font-size: 10px; font-weight: 600; }
.content { padding: 5px 12px; }
.period-pills { gap: 6px; padding-bottom: 8px; }
.period-pills button { padding: 7px 10px; font-size: 12px; font-weight: 400; }
.filter-row select, .date-range input { min-height: 41px; font-size: 13px; }
.icon-button { width: 42px; min-height: 41px; font-size: 19px; }
.meta-line { margin: 9px 2px; font-size: 11px; }
.order-list { gap: 7px; }
.order-card { border-radius: 12px; padding: 11px 12px; box-shadow: 0 2px 10px rgba(34,43,35,.025); }
.order-card.paid { border-left-width: 3px; }
.order-number { font-size: 14px; font-weight: 600; }
.order-market { padding: 3px 6px; font-size: 9px; font-weight: 600; }
.order-total { margin: 8px 0 6px; font-size: 16px; font-weight: 600; }
.order-bottom { gap: 7px; font-size: 10px; }
.order-bottom > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { flex: 0 0 auto; padding: 4px 6px; font-weight: 500; }
.bottom-nav { padding-top: 6px; }
.bottom-nav button { font-size: 10px; font-weight: 500; }
.bottom-nav span { margin-bottom: 1px; font-size: 18px; }

.order-open { overflow: hidden; }
.order-layer { position: fixed; z-index: 5; inset: 0 0 var(--bottom-nav-height,58px) 0; pointer-events: none; background: rgba(255,255,255,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: backdrop-filter .28s ease, -webkit-backdrop-filter .28s ease; }
.order-layer.open { pointer-events: auto; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.order-sheet { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(680px, calc(100dvh - 86px)); max-height: none; margin: 0; padding: 0; border: 0; border-radius: 18px 18px 0 0; overflow: hidden; color: var(--text); background: rgba(255,255,255,.88); box-shadow: 0 -14px 44px rgba(34,43,35,.13); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translate3d(0,calc(100% + 20px),0); transition: transform .3s cubic-bezier(.22,.72,.24,1); will-change: transform; }
.order-layer.open .order-sheet { transform: translate3d(0,0,0); }
.order-sheet .sheet-head { min-height: 68px; padding: 13px 15px; background: rgba(255,255,255,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.order-sheet .sheet-head h2 { margin: 2px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.order-sheet .eyebrow { font-size: 9px; font-weight: 600; }
.order-sheet .sheet-head > button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; }
.order-sheet .sheet-head > button img { display: block; width: 15px; height: 15px; }
.order-detail-scroll { height: calc(100% - 68px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: rgba(255,255,255,.54); }
.sheet > #orderDetail { padding: 14px 15px 22px; }
.detail-grid { gap: 7px; }
.detail-box { min-height: 70px; padding: 10px; border-radius: 9px; }
.detail-box small { margin-bottom: 4px; font-size: 10px; }
.detail-box strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.28; }
.delivery-box span { display: block; margin-top: 6px; color: var(--accent); font-size: 10px; font-weight: 500; line-height: 1.25; }
.detail-section { margin-top: 15px; }
.detail-section h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.detail-section p { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.detail-section p strong { font-weight: 500; }
.line-item { padding: 10px 0; }
.line-item-top { gap: 10px; font-size: 13px; line-height: 1.3; }
.line-item-top strong { font-weight: 500; }
.line-item-top strong:last-child { flex: 0 0 auto; }
.line-item p { margin-top: 3px; font-size: 10px; }
.order-loading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.spinner { width: 18px; height: 18px; border: 2px solid #dfe4dc; border-top-color: var(--accent); border-radius: 50%; animation: order-spin .7s linear infinite; }
.skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.skeleton-grid i, .skeleton-lines i { display: block; border-radius: 9px; background: linear-gradient(90deg,#f1f3ef 25%,#fafbf8 50%,#f1f3ef 75%); background-size: 200% 100%; animation: order-shimmer 1.15s infinite linear; }
.skeleton-grid i { height: 70px; }
.skeleton-lines { display: grid; gap: 9px; margin-top: 20px; }
.skeleton-lines i { height: 12px; }
.skeleton-lines i:nth-child(1) { width: 34%; }
.skeleton-lines i:nth-child(2) { width: 68%; }
.skeleton-lines i:nth-child(3) { width: 84%; }
.skeleton-lines i:nth-child(4) { width: 30%; margin-top: 12px; }
.skeleton-lines i:nth-child(5) { width: 91%; }
@keyframes order-spin { to { transform: rotate(360deg); } }
@keyframes order-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .spinner, .skeleton-grid i, .skeleton-lines i { animation: none; } }
@media (min-width: 700px) {
  .topbar { width: min(100%, 888px); margin: auto; }
  .order-sheet { height: min(680px, calc(100dvh - 82px)); }
}
