/* Product participation records: compact commerce layout, separate from draws. */
#main:has(>.orders-screen:not(.wheel-records-screen):not(.wheel-prize-screen)){
  background:#f5f6f2;
}
#main .orders-screen:not(.wheel-records-screen):has(#ordersFilters):has(#orderFilterEmpty){
  display:block;
  min-height:0;
  padding:0 0 12px;
  grid-template:none;
  gap:0;
}
#main .orders-screen .orders-top.page-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:64px;
  height:auto;
  margin:0 -14px;
  padding:10px 12px 10px 18px;
  border:0;
  background:#064b31;
  color:#fff9e9;
}
#main .orders-screen .orders-top.page-top h1{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  color:inherit;
  font-size:20px;
  font-weight:700;
  line-height:1.3;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
#main .orders-screen .orders-header-actions{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  gap:2px;
}
#main .orders-screen .orders-top :is(#ordersHelp,#ordersGuide),
#main .orders-screen .orders-top .orders-header-actions #reloadOrders{
  position:relative;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  flex:0 0 44px;
  width:44px;
  min-width:44px;
  max-width:44px;
  height:44px;
  min-height:44px;
  margin:0;
  padding:10px;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  color:#fff4cf;
  font-size:0;
  line-height:1;
  opacity:1;
  transform:none;
}
#main .orders-screen .orders-top :is(#ordersHelp,#ordersGuide)::before,
#main .orders-screen .orders-top .orders-header-actions #reloadOrders::before{
  content:none;
}
#main .orders-screen .orders-top :is(#ordersHelp,#ordersGuide) .ui-icon,
#main .orders-screen .orders-top .orders-header-actions #reloadOrders svg{
  display:block;
  width:23px;
  height:23px;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#main .orders-screen .orders-top .orders-header-actions button:focus-visible{
  outline:2px solid #eed18c;
  outline-offset:-4px;
}
#main .orders-screen:not(.wheel-records-screen):has(#ordersFilters)>.orders-filters-row,
html #main .orders-screen:not(.wheel-records-screen):has(#ordersFilters):has(>.secondary-note)>.orders-filters-row{
  display:block;
  min-width:0;
  margin:0 -14px;
  padding:0 14px;
  border-bottom:1px solid #e0e6dd;
  background:#fff;
}
html #main .orders-screen:not(.wheel-records-screen):has(#ordersFilters) #ordersFilters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:0;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:0;
  overflow:visible;
  scroll-snap-type:none;
}
html #main .orders-screen #ordersFilters .orders-filter-page{
  display:contents;
}
html #main .orders-screen #ordersFilters button{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:none;
  width:auto;
  min-width:0;
  max-width:100%;
  min-height:48px;
  height:auto;
  margin:0;
  padding:12px 4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#738076;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  transform:none;
}
html #main .orders-screen #ordersFilters button span{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-wrap:balance;
}
html #main .orders-screen #ordersFilters button::before{
  content:none;
}
html #main .orders-screen #ordersFilters button::after{
  content:'';
  position:absolute;
  inset:auto calc(50% - 12px) -1px;
  height:3px;
  border-radius:2px 2px 0 0;
  background:transparent;
}
html #main .orders-screen #ordersFilters button.active{
  background:transparent;
  box-shadow:none;
  color:#075d3d;
  font-weight:700;
}
html #main .orders-screen #ordersFilters button.active::after{
  background:#b69949;
}
html #main .orders-screen #ordersFilters button:focus-visible{
  z-index:1;
  outline:2px solid #087346;
  outline-offset:-4px;
}
#main .orders-screen #ordersFiltersMore{
  display:none;
}
#main .orders-screen .orders-content{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:12px;
  min-width:0;
  padding-top:14px;
}
#main .orders-screen:has(#ordersFilters)>.secondary-note{
  margin:12px 0;
  padding:10px 12px;
  border:1px solid #e7d9b5;
  border-radius:10px;
  background:#fff8e9;
  color:#6f5830;
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#main .orders-screen #orderFilterEmpty:not([hidden]){
  display:flex;
  align-self:start;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  min-height:0;
  margin:0;
  padding:38px 16px 26px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#main .orders-screen #orderFilterEmpty .orders-empty-art{
  display:block;
  flex:none;
  width:64px;
  height:64px;
  max-width:100%;
  object-fit:contain;
}
#main .orders-screen #orderFilterEmpty h2{
  margin:0;
  color:#596c5f;
  font-size:14px;
  font-weight:500;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
}
#main .orders-screen #ordersBrowse{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  max-width:100%;
  min-height:44px;
  margin:2px 0 0;
  padding:10px 22px;
  border:0;
  border-radius:10px;
  background:#086742;
  box-shadow:none;
  color:#fff;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  white-space:normal;
}
#main .orders-screen #ordersBrowse::before{
  content:none;
}
#main .orders-screen #ordersBrowse span{
  font-size:inherit;
  line-height:inherit;
}
#main .orders-screen .orders-content>.mock-order{
  min-width:0;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid #dfe6dc;
  border-radius:14px;
  background:#fff;
  background-image:none;
  box-shadow:0 1px 2px #164a2904;
}
#main .orders-screen .mock-order .order-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 10px;
  min-height:34px;
  padding:9px 12px;
  border-bottom:1px solid #edf0e9;
  background:#fafbf8;
}
#main .orders-screen .mock-order .order-heading strong{
  flex:1 1 130px;
  min-width:0;
  color:#52695a;
  font-size:11px;
  font-weight:500;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
#main .orders-screen .mock-order .order-heading small{
  flex:0 1 auto;
  min-width:0;
  color:#7b887d;
  font-size:11px;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
#main .orders-screen .mock-order .order-item{
  padding:12px;
  column-gap:12px;
  row-gap:8px;
  border-bottom:1px solid #edf0e9;
}
#main .orders-screen .mock-order .order-thumb{
  width:72px;
  height:80px;
  border-radius:9px;
  overflow:hidden;
}
#main .orders-screen .mock-order .order-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
#main .orders-screen .mock-order .order-item-info h3{
  margin:0 0 5px;
  color:#193f2c;
  font-size:15px;
  font-weight:650;
  line-height:1.4;
}
#main .orders-screen .mock-order .order-item-info :is(p,.round-summary){
  margin:4px 0 0;
  color:#6a7b6f;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
}
#main .orders-screen .mock-order .order-number-block{
  grid-column:1/-1;
  min-width:0;
}
#main .orders-screen .mock-order .order-numbers-toggle{
  min-height:44px;
  margin:2px 0 -6px;
  padding:8px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#0b6844;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
}
#main .orders-screen .mock-order .order-bottom{
  min-width:0;
  padding:2px 12px 0;
}
#main .orders-screen .mock-order .status-line{
  min-height:36px;
  padding:7px 0;
  gap:8px;
  border-bottom-color:#edf0e9;
  font-size:12px;
  font-weight:400;
  line-height:1.4;
}
#main .orders-screen .mock-order .status-line .status-label{
  gap:6px;
  font-weight:400;
  color:#6b7c6e;
}
#main .orders-screen .mock-order .status-label .ui-icon{
  width:16px;
  height:16px;
  color:#748678;
  stroke-width:1.8;
}
#main .orders-screen .mock-order .status-line .badge{
  min-width:0;
  max-width:65%;
  padding:3px 8px;
  border-radius:6px;
  font-size:11px;
  font-weight:500;
  line-height:1.35;
}
#main .orders-screen .mock-order .order-draw{
  margin:8px 0;
  padding:10px;
  border-radius:9px;
  font-size:12px;
}
#main .orders-screen .mock-order .order-draw-title{
  margin-bottom:0;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
}
#main .orders-screen .mock-order .order-draw p{
  margin:5px 0 0;
  font-size:12px;
  line-height:1.45;
}
#main .orders-screen .mock-order .order-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  padding:10px 0;
  color:#346649;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  list-style:none;
}
#main .orders-screen .mock-order .order-details summary::-webkit-details-marker{
  display:none;
}
#main .orders-screen .mock-order .order-details summary::after{
  content:'›';
  flex:none;
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  font-size:20px;
  line-height:1;
  transform:rotate(90deg);
}
#main .orders-screen .mock-order .order-details[open] summary::after{
  transform:rotate(-90deg);
}
#main .orders-screen .mock-order .order-details p{
  margin:0 0 10px;
  color:#667869;
  font-size:12px;
  line-height:1.6;
}
#main .orders-screen .mock-order .prize-claim{
  margin:10px 0;
  padding:12px;
  border-radius:10px;
}
#main .orders-screen .mock-order .claim-heading{
  margin-bottom:10px;
}
#main .orders-screen .mock-order .claim-heading strong{
  font-size:14px;
  line-height:1.4;
}
#main .orders-screen .mock-order .order-actions{
  flex-wrap:wrap;
  gap:8px;
  padding:10px 0;
  border-top:1px solid #edf0e9;
}
#main .orders-screen .mock-order .order-actions button{
  flex:1 1 120px;
  min-width:0;
  min-height:44px;
  height:auto;
  margin:0;
  padding:10px 12px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
#main .orders-screen .order-page-controls:not([hidden]){
  margin:0;
  padding:2px 0;
}
@media(max-width:349px){
  #main .orders-screen .orders-top.page-top{padding-left:16px}
  html #main .orders-screen #ordersFilters button{padding-inline:2px;font-size:12px}
  #main .orders-screen .mock-order .order-item{column-gap:10px}
  #main .orders-screen .mock-order .order-thumb{width:64px;height:72px}
  #main .orders-screen #orderFilterEmpty:not([hidden]){padding-top:30px}
}
/* Compact previews open a separate, searchable list instead of expanding cards. */
#main .orders-screen .order-number-preview{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#main .orders-screen .order-number-preview>span,
#main .orders-screen .order-number-preview>.order-number-more{display:grid;place-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:28px;min-height:28px;margin:0;padding:3px 2px;border:1px solid #c5d9c4;border-radius:14px;background:#f2f8ee;color:#176640;font-size:11px;font-weight:600;line-height:1;letter-spacing:.02em;font-variant-numeric:tabular-nums;box-shadow:none;white-space:nowrap}
#main .orders-screen .order-number-preview>.order-number-more{background:#e4f0df;color:#075d3d;letter-spacing:0;position:relative}
#main .orders-screen .order-number-more::after{content:'';position:absolute;inset:-8px 0}
.order-numbers-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(366px,calc(100vw - 24px));max-width:366px;max-height:80dvh;margin:auto;padding:0;border:1px solid #dce5d9;border-radius:16px;background:#fffdfa;color:#173f2e;overflow:hidden;overflow-anchor:none}
.order-numbers-dialog::backdrop{background:#102c257a;backdrop-filter:blur(2px)}
.order-numbers-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e4e9e0}
.order-numbers-head h2{margin:0;font-size:16px;font-weight:650;line-height:1.4;letter-spacing:0}
.order-numbers-head small{display:block;margin-top:2px;color:#738173;font-size:11px;overflow-wrap:anywhere}
.order-numbers-head .order-numbers-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;background:#f0f5eb;color:#174c32;font-size:25px;line-height:1;box-shadow:none}
.order-numbers-content{max-height:calc(80dvh - 82px);padding:14px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.order-numbers-content::-webkit-scrollbar{display:none}
.order-numbers-content .order-number-search{margin:0 0 12px;color:#536d5c;font-size:12px}
.order-numbers-content input{box-sizing:border-box;min-height:44px;margin-top:6px;padding:9px 12px;border:1px solid #cbdac9;border-radius:9px;font-size:16px}
.order-numbers-content .number-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.order-numbers-content .number-chips>span{display:grid;place-items:center;box-sizing:border-box;min-width:0;height:28px;margin:0;padding:3px 1px;border:1px solid #cfdfc9;border-radius:14px;background:#f3f8ef;color:#245e3e;font-size:11px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-numbers-content .number-chips>.order-number-empty{grid-column:1/-1;height:auto;min-height:44px;border:0;background:transparent;font-size:13px;white-space:normal}
.order-numbers-content .order-number-pages:not([hidden]){display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:14px}
.order-numbers-content .order-number-pages button{min-width:0;min-height:44px;padding:8px 4px;border:1px solid #d5e1d0;border-radius:8px;background:#f5f8f1;color:#1b5a39;font-size:12px;white-space:normal}
.order-numbers-content .order-number-pages>span{font-size:12px;color:#6f7d70}
body:has(#main>.orders-screen){background:#f5f6f2}

/* Pagination changes data, never the dialog frame or the control positions. */
.order-numbers-dialog[open]{display:flex;flex-direction:column;height:min(var(--order-dialog-height,600px),80dvh)}
.order-numbers-dialog .order-numbers-head{flex:none}
.order-numbers-dialog .order-numbers-content{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;flex:1;min-height:0;max-height:none;overflow:hidden;overflow-anchor:none}
.order-numbers-dialog .order-number-search{margin:0}
.order-numbers-dialog .order-number-results{grid-row:2;min-height:0;margin:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;align-content:start;scrollbar-width:none}
.order-numbers-dialog .order-number-results::-webkit-scrollbar{display:none}
.order-numbers-dialog .order-number-pages:not([hidden]){grid-row:3;margin:0;min-height:44px}
.order-numbers-dialog .order-number-pages button[aria-disabled="true"]{opacity:.5;cursor:default}

/* The list shows one order summary; fulfilment lives behind one entry. */
#main .orders-screen .order-summary-card .order-summary-open{
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
  color:#193f2c;
  font:inherit;
  text-align:left;
  transform:none;
}
#main .orders-screen .order-summary-card .order-summary-open:is(:hover,:active){
  background:#fff;
  box-shadow:none;
  transform:none;
}
#main .orders-screen .order-summary-card .order-summary-open:focus-visible,
#main .orders-screen .order-summary-card .order-delivery-entry:focus-visible{
  outline:2px solid #0b754b;
  outline-offset:-3px;
}
#main .orders-screen .order-summary-card .order-summary-open .order-item{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  align-items:start;
  column-gap:12px;
  row-gap:0;
  min-width:0;
  margin:0;
  padding:12px;
  border:0;
  background:#fff;
}
#main .orders-screen .order-summary-card .order-summary-open .order-item-info{
  display:grid;
  gap:4px;
  min-width:0;
  padding:0;
}
#main .orders-screen .order-summary-card .order-thumb{
  position:relative;
  align-self:start;
  flex:none;
  width:72px;
  min-width:72px;
  max-width:72px;
  height:108px;
  min-height:108px;
  max-height:108px;
}
#main .orders-screen .order-summary-card .order-thumb img{
  position:absolute;
  inset:0;
}
#main .orders-screen .order-summary-card .order-item-info h3{
  margin:0;
  font-size:15px;
  font-weight:650;
  line-height:1.4;
}
#main .orders-screen .order-summary-card .order-item-info :is(p,.round-summary){
  margin:0;
  color:#718074;
  font-size:11px;
  font-weight:400;
  line-height:1.5;
}
#main .orders-screen .order-summary-card .order-item-info .order-round-progress{
  gap:3px;
  margin:2px 0;
}
#main .orders-screen .order-summary-card .order-item-info .order-number-count>p{margin:0}
#main .orders-screen .order-summary-card .order-view-numbers{min-width:44px;min-height:44px;padding-inline:4px;margin:-8px 0}
#main .orders-screen .order-summary-card .order-item-info .order-payment-tag{
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
  max-width:100%;
  min-height:20px;
  margin:6px 0 0;
  padding:2px 6px;
  border:1px solid #d1e3cd;
  border-radius:5px;
  background:#eff7eb;
  color:#3d7750;
  font-size:10px;
  font-weight:500;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#main .orders-screen .order-summary-card .order-primary-status{
  align-self:center;
  justify-self:end;
  min-width:0;
  max-width:84px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#b52f27;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  text-align:right;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}
#main .orders-screen .order-summary-card .order-primary-status.status-miss{color:#6d7c70}
#main .orders-screen .order-summary-card .order-primary-status.status-pending{color:#94641e}
#main .orders-screen .order-summary-card .order-primary-status.status-inactive{color:#7b857c}
#main .orders-screen .order-summary-card .order-delivery-entry{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:11px 12px;
  border:0;
  border-top:1px solid #edf0e9;
  border-radius:0;
  background:#fff;
  box-shadow:none;
  color:#3f6b4e;
  font-size:12px;
  font-weight:500;
  line-height:1.45;
  text-align:left;
  white-space:normal;
  transform:none;
}
#main .orders-screen .order-summary-card .order-delivery-entry:is(:hover,:active){
  background:#fff;
  box-shadow:none;
  transform:none;
}
#main .orders-screen .order-summary-card .order-delivery-entry .shipping-summary{
  flex:0 1 auto;
  min-width:0;
  max-width:48%;
  margin-left:auto;
  color:#7a877a;
  font-size:11px;
  font-weight:400;
  line-height:1.4;
  text-align:right;
  overflow-wrap:break-word;
}
#main .orders-screen .order-summary-card .order-delivery-entry .order-entry-chevron{
  flex:none;
  color:#5d7a65;
  font-size:20px;
  font-weight:400;
  line-height:1;
}
#main .orders-screen.order-detail-screen{
  display:block;
  min-width:0;
  min-height:0;
  padding-bottom:12px;
}
#main .orders-screen.order-detail-screen .orders-top.page-top{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 64px;
  align-items:center;
  gap:4px;
  height:auto;min-height:56px;padding:6px 14px;
}
#main .orders-screen.order-detail-screen .orders-top.page-top h1{
  grid-column:2;
  grid-row:1;
  margin:0;
  font-size:18px;
  line-height:1.35;
  text-align:center;
}
#main .orders-screen.order-detail-screen .orders-top #orderDetailBack{
  grid-column:1;
  grid-row:1;
  display:grid;
  place-items:center;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  margin:0;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  color:#fff4cf;
  font-size:28px;
  font-weight:400;
  line-height:1;
}
#main .orders-screen.order-detail-screen .orders-top .orders-header-actions{
  grid-column:3;
  grid-row:1;
  justify-self:end;
}
@media(max-width:349px){
  #main .orders-screen .order-summary-card .order-summary-open .order-item{
    grid-template-columns:64px minmax(0,1fr) auto;
    column-gap:10px;
    padding:11px;
  }
  #main .orders-screen .order-summary-card .order-primary-status{
    max-width:72px;
    font-size:14px;
  }
  #main .orders-screen .order-summary-card .order-item-info h3{font-size:14px}
}

#main .order-detail-screen .order-detail-card .order-item{grid-template-columns:72px minmax(0,1fr) auto;align-items:center}
#main .order-detail-screen .order-primary-status{max-width:84px;margin:0;color:#b52f27;font-size:15px;font-weight:600;line-height:1.4;text-align:right}
#main .order-detail-screen .order-payment-tag{display:inline-block;margin-top:6px;padding:2px 6px;border-radius:5px;background:#eaf4e7;color:#427250;font-size:10px;font-weight:500;line-height:1.4}
#main .order-detail-screen .order-details summary .shipping-summary{margin-left:auto;font-size:11px;color:#6a7b6f;font-weight:400}

#main .orders-screen.order-detail-screen .orders-top #orderDetailBack{display:flex;gap:2px;width:64px;font-size:13px;justify-content:flex-start;white-space:nowrap}
#main .order-detail-screen #orderDetailBack>span:first-child{font-size:26px;line-height:1}
#main .order-detail-screen #orderDetailClose{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 16px;border:1px solid #cbdcc5;border-radius:9px;background:#f3f7ee;color:#1c6543;font-size:14px;font-weight:500;box-shadow:none}
#main .order-detail-screen .claim-form{margin-top:12px;padding:0;border:0;background:transparent}

#main .orders-screen .order-winner-actions{display:flex;justify-content:flex-end;padding:4px 12px 8px;border-top:1px solid #edf0e9;background:#fff}
#main .orders-screen .order-winner-actions button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:#edf5e9;color:#17633e;font-size:13px;font-weight:600;line-height:1.4;box-shadow:none}

#main .orders-screen .mock-order .order-heading strong{flex:0 1 auto}
#main .orders-screen .mock-order .order-heading .order-payment-tag{flex:none;margin:0;padding:2px 6px;border-radius:5px;background:#eaf4e7;color:#427250;font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap}
#main .orders-screen .mock-order .order-heading small{margin-left:auto}

#main .orders-screen .order-summary-open{position:relative}
#main .orders-screen .order-card-open{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer}
#main .orders-screen .order-card-open:is(:hover,:active){background:transparent;box-shadow:none;transform:none}
#main .orders-screen .order-card-open:focus-visible{outline:2px solid #087346;outline-offset:-4px}
#main .orders-screen .order-summary-open .order-item{pointer-events:none}
#main .orders-screen .order-number-count{display:flex;align-items:center;gap:6px;min-width:0}
#main .orders-screen .order-number-count p{margin:0;min-width:0}
#main .orders-screen .order-view-numbers{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;min-height:36px;margin:-4px 0;padding:6px 2px;border:0;border-radius:4px;background:transparent;color:#087148;font-size:12px;font-weight:600;line-height:1.3;pointer-events:auto;box-shadow:none;white-space:nowrap}
#main .orders-screen .order-view-numbers:focus-visible{outline:2px solid #087346;outline-offset:2px}
#main .orders-screen .order-round-progress{grid-column:1/-1;display:grid;gap:4px;width:100%;margin-top:2px}
#main .orders-screen .order-round-progress>div{display:flex;justify-content:space-between;color:#718172;font-size:10px;font-weight:400;line-height:1.3;font-variant-numeric:tabular-nums}
#main .orders-screen .order-round-progress progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:4px;margin:0;border:0;border-radius:4px;overflow:hidden;background:#e4ebe1}
#main .orders-screen .order-round-progress progress::-webkit-progress-bar{background:#e4ebe1;border-radius:4px}
#main .orders-screen .order-round-progress progress::-webkit-progress-value{background:#118051;border-radius:4px}
#main .orders-screen .order-round-progress progress::-moz-progress-bar{background:#118051;border-radius:4px}
#main .orders-screen .order-primary-status.result-seal{position:relative;isolation:isolate;display:grid;place-items:center;flex:none;width:58px;max-width:58px;height:58px;min-height:58px;margin:0;padding:0;border:0;background:transparent;color:#b82f29;box-shadow:none;text-align:center;line-height:1.15}
#main .orders-screen .order-primary-status.result-seal.status-miss{color:#68746b}
#main .orders-screen .result-seal>svg{position:absolute;inset:0;z-index:-1;width:100%;height:100%}
#main .orders-screen .result-seal>span{display:block;width:46px;max-width:46px;padding-top:13px;color:#fff8e9;font-size:11px;font-weight:650;line-height:1.2;white-space:normal;overflow-wrap:normal}

#main .orders-screen .result-seal>span{position:absolute;top:27px;left:7px;right:7px;display:flex;align-items:center;justify-content:center;width:auto;max-width:none;height:26px;padding:0;color:#fff8e9;font-size:12px;line-height:1.1;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal}
html:not(:lang(zh)) #main .orders-screen .result-seal>span{font-size:11px;line-height:1.15}

#main .orders-screen .order-item-info .order-round-progress{display:grid;gap:4px;min-width:0;margin:7px 0 8px}
#main .orders-screen .order-item-info .order-round-progress>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 4px;color:#708073;font-size:10px;font-weight:400;line-height:1.4}
#main .orders-screen .order-round-progress progress{height:6px;background:#f0e1e7}
#main .orders-screen .order-round-progress progress::-webkit-progress-bar{background:#f0e1e7}
#main .orders-screen .order-round-progress.is-open progress::-webkit-progress-value{background:#c43d65}
#main .orders-screen .order-round-progress.is-open progress::-moz-progress-bar{background:#c43d65}
#main .orders-screen .order-round-progress.is-full progress{background:#dcebdd}
#main .orders-screen .order-round-progress.is-full progress::-webkit-progress-bar{background:#dcebdd}
#main .orders-screen .order-round-progress.is-full progress::-webkit-progress-value{background:#16804f}
#main .orders-screen .order-round-progress.is-full progress::-moz-progress-bar{background:#16804f}

/* Published rounds are complete; the result remains separate from the winner badge. */
#main .orders-screen .order-round-progress.is-drawn progress{background:#e5e8e5}
#main .orders-screen .order-round-progress.is-drawn progress::-webkit-progress-bar{background:#e5e8e5}
#main .orders-screen .order-round-progress.is-drawn progress::-webkit-progress-value{background:#929b94}
#main .orders-screen .order-round-progress.is-drawn progress::-moz-progress-bar{background:#929b94}
#main .orders-screen .order-announced-number{color:#254d38;font-size:12px;font-weight:650;letter-spacing:.04em;font-variant-numeric:tabular-nums;white-space:nowrap}


/* Use the order header for state, leaving a full-width progress track. */
#main .orders-screen .order-summary-card .order-summary-open .order-item{position:relative;grid-template-columns:72px minmax(0,1fr)}
#main .orders-screen .order-summary-card .order-heading{position:relative;justify-content:flex-start;gap:4px 8px;min-height:38px;padding-right:96px}
#main .orders-screen .order-summary-card .order-primary-status{position:absolute;right:12px;top:50%;bottom:auto;transform:translateY(-50%);max-width:76px;font-size:12px;line-height:1.4;text-align:right;pointer-events:none}
#main .orders-screen .order-summary-card .order-primary-status.status-awaiting{color:#5c7264}
#main .orders-screen .order-summary-card .order-primary-status.result-seal{position:absolute;z-index:2;right:9px;top:8px;bottom:auto;transform:none;width:58px;max-width:58px;height:58px}
#main .orders-screen .order-summary-card:has(.result-seal) .order-item-info h3{padding-right:58px}
#main .orders-screen .order-summary-card .order-number-count{min-height:28px;flex-wrap:wrap;gap:3px 6px;padding:0}
#main .orders-screen .order-summary-card .order-number-count>small{margin-left:auto;color:#637269;font-size:11px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
#main .orders-screen .order-summary-card .order-round-progress>div{align-items:baseline}
#main .orders-screen .order-summary-card .order-announced-number{color:#bb2825;font-size:16px;font-weight:800;line-height:1.4}
@media(max-width:349px){#main .orders-screen .order-summary-card .order-summary-open .order-item{grid-template-columns:64px minmax(0,1fr)}#main .orders-screen .order-summary-card .order-primary-status{right:11px;max-width:70px}}

/* Status keeps its own semantics when placed alongside the order identifier. */
#main .orders-screen .order-summary-card .order-heading .order-primary-status{flex:none;font-size:12px;font-weight:600;line-height:1.4}
#main .orders-screen .order-summary-card .order-heading .order-primary-status.result-seal.status-win{color:#b82f29}
#main .orders-screen .order-summary-card .order-heading .order-primary-status.result-seal.status-miss{color:#68746b}

#main .orders-screen .result-seal>span{top:0;height:58px;padding:0;font-size:14px;line-height:1.2}
html:not(:lang(zh)) #main .orders-screen .result-seal>span{font-size:12px;line-height:1.2}

/* Text and order state cannot change the reserved thumbnail box. */
#main .orders-screen .order-detail-card .order-thumb{align-self:start;flex:none;width:72px;min-width:72px;max-width:72px;height:108px;min-height:108px;max-height:108px}
@media(max-width:349px){#main .orders-screen .order-summary-card .order-thumb,#main .orders-screen .order-detail-card .order-thumb{width:64px;min-width:64px;max-width:64px;height:96px;min-height:96px;max-height:96px}#main .order-detail-screen .order-detail-card .order-item{grid-template-columns:64px minmax(0,1fr) auto}}

/* Shipping is the last customer-facing claim step. */
#main .claim-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
