.boss-widget {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  width: min(100%, 340px);
  min-width: 0;
  color: #586b50;
  box-sizing: border-box;
  font-family: var(--font-sans, Arial, sans-serif);
}
.boss-widget-top, .boss-progress-copy { display: flex; align-items: center; gap: 12px; }
.boss-widget-top { grid-column: 1; grid-row: 2; align-self: center; justify-content: flex-start; font-size: 14px; font-weight: 600; }
.boss-gold { display: inline-flex; align-items: center; gap: 5px; color: #9c2944; white-space: nowrap; font-size: 15px; }
.boss-gold strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.boss-strawberry { display: inline-flex; flex: 0 0 auto; width: 28px; height: 31px; vertical-align: middle; }
.boss-strawberry svg { width: 100%; height: 100%; overflow: visible; }
.boss-queue { grid-column: 2; grid-row: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; padding: 4px 2px; min-height: 48px; box-sizing: border-box; }
.boss-token { width: 36px; height: 40px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.boss-token:hover { transform: translateY(-2px); }
.boss-token:focus-visible { outline: 2px solid #86631b; outline-offset: -2px; border-radius: 6px; }
.boss-token svg { width: 21px; height: 35px; filter: drop-shadow(0 1px 0 #c39d45); }
.boss-energy { grid-column: 2; grid-row: 2; min-width: 0; display: flex; align-items: center; }
.boss-track { width: 100%; height: 13px; background: #e2eadb; border: 2px solid #91ad88; border-radius: 4px; overflow: hidden; box-shadow: inset 0 2px 2px #3f754c19; }
.boss-track > span { display: block; height: 100%; background: linear-gradient(#88b779, #69a267); transition: width .6s ease; box-shadow: inset 0 2px #d5ebcaaa; }
.boss-progress-copy { grid-column: 2; grid-row: 3; justify-content: space-between; margin-top: 0; font-size: 12px; color: #8f6570; }
.boss-unlock { grid-column: 1 / -1; grid-row: 4; position: relative; margin-top: 14px; font-size: 14px; line-height: 1.5; background: #eee6c9; border-radius: 8px; }
.boss-unlock[hidden] { display: none; }
.boss-unlock-link { display: block; padding: 14px 44px 14px 14px; color: #4d6646 !important; text-decoration: none !important; border-radius: inherit; }
.boss-unlock-link > strong, .boss-unlock-link > span { display: block; }
.boss-unlock-link .boss-strawberry, .boss-reward-amount .boss-strawberry { width: 20px; height: 23px; }
.boss-unlock-link:hover { background: #e8dfbd; }
.boss-unlock-link:focus-visible { outline: 2px solid #86631b; outline-offset: 2px; }
.boss-unlock .boss-unlock-dismiss { position: absolute; right: 2px; top: 2px; width: 38px; height: 38px; border: 0; background: transparent; color: #586b50; font: 24px/1 Arial, sans-serif; cursor: pointer; border-radius: 6px; }
.boss-unlock-dismiss:hover { background: #d9d0ad; }
.dse-dashboard-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 32px; width: 100%; }
.boss-dashboard-gold { justify-self: start; align-self: center; font-family: var(--font-sans, Arial, sans-serif); }
@media (max-width: 1100px) {
  .dse-dashboard-controls { display: flex; flex-wrap: wrap; gap: 20px 24px; }
}
@media (max-width: 560px) {
  .boss-dashboard-gold { margin-left: auto; }
}
.dse-main > .boss-widget, .dse-task .boss-widget { margin: 0 auto 24px 0; }
.boss-panel, .boss-ready { max-width: 780px; margin: 35px auto !important; }
.boss-ready { text-align: center; padding: 48px !important; }
.boss-ready h1 { font-size: clamp(30px, 4vw, 46px) !important; line-height: 1.15 !important; }
.boss-ready p { max-width: 540px; margin: 18px auto !important; line-height: 1.6; }
.boss-reward-copy strong { margin-left: 3px; }
.boss-terms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0; font-weight: 600; color: #586b50; }
.boss-actions { display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.boss-actions form { margin: 0; }
.boss-earned { color: #9c2944; font-weight: 700; }
.boss-reward-amount { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #9c2944; }
.boss-response { white-space: pre-wrap; overflow-wrap: anywhere; margin: 20px 0; }
.boss-history-row { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid #ded5be; color: inherit; text-decoration: none; }
.boss-history-row > svg { width: 26px; height: 40px; flex-shrink: 0; }
.boss-history-row > span:last-child { margin-left: auto; color: #9c2944; white-space: nowrap; }
.boss-history-row small { display: block; color: #7b7a6e; margin-top: 4px; }
.boss-draft-status { color: #657159; font-size: 14px; }
.boss-gold [data-gold-balance] { display: inline-flex; }
.boss-gold-digit { display: inline-block; transform-origin: center 65%; }
.boss-gold-digit.is-counting { animation: boss-digit-pop 320ms cubic-bezier(.2,.8,.3,1) both; }
@keyframes boss-digit-pop {
  0% { transform: translateY(-2px) scale(1.65); color: #ee526b; }
  65% { transform: translateY(0) scale(.94); }
  100% { transform: translateY(0) scale(1); color: inherit; }
}
.boss-panel { padding: 32px !important; border-radius: 14px; overflow-wrap: anywhere; }
.boss-panel h1 { margin-bottom: 12px; }
.boss-panel h2 { margin-top: 26px; }
.boss-panel details { margin: 26px 0; }
.boss-panel > .btn { margin-top: 20px; }
.dse-dashboard-greeting { min-width: 0; }
.dse-dashboard-greeting h1 { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .boss-ready { padding: 26px 20px !important; }
  .dse-main > .boss-widget, .dse-task .boss-widget { width: 100%; max-width: 420px; margin: 0 auto 22px 0; }
  .boss-actions .btn { min-height: 44px; }
  .boss-history-row { gap: 10px; }
  .boss-panel { padding: 24px 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .boss-track > span, .boss-token { transition: none; }
  .boss-gold-digit.is-counting { animation: none; }
}
