/* A quiet clock-in desk sits beside the saved job. Native actions remain in the footer. */
.entrance-content:has(> .entrance-save, > .entrance-welcome) {
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(0, 1fr);
  gap: 18px 32px;
  align-items: center;
}
.entrance-content:has(> .entrance-save, > .entrance-welcome)::before {
  content: '';
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  max-height: 430px;
  background: url('/shift/assets/entrance/clock-in-desk-v1.webp') center / contain no-repeat;
  pointer-events: none;
}
.entrance-content:has(> .entrance-save, > .entrance-welcome) > * { grid-column: 2; min-width: 0; }
.entrance-content > .entrance-save {
  position: relative;
  margin: 8px 0 0;
  max-width: none;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #b9a373;
  border-left: 7px solid #ba914e;
  background: #f5e9cb;
  color: #25334b;
  box-shadow: 5px 7px 0 #081325;
}
.entrance-content > .entrance-save::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 52px;
  height: 15px;
  background: #b58c4c;
  border: 1px solid #ebc887;
  rotate: -3deg;
}
.entrance-content > .entrance-save h2 { font-size: clamp(36px, 4vw, 52px); }
.entrance-content > .entrance-save p { margin: 8px 0; }
.entrance-content > .entrance-save p:first-child { color: #775b31; margin-top: 0; }
.entrance-content > .entrance-welcome { font: 700 clamp(24px, 3vw, 35px)/1.25 Barlow, sans-serif; max-width: 24ch; margin: 0; }
.entrance-content:has(> .entrance-save, > .entrance-welcome) > .entrance-quota { margin: 0; font-size: 13px; }
.entrance-content:has(> .entrance-save, > .entrance-welcome) > .entrance-notice { font-size: 13px; margin: 0; }
/* A saved run gives Continue the amber crank, with New game on the quieter wood control. */
.entrance-actions:has(> [data-entrance=continue]) > [data-entrance=new] {
  --painted-source: var(--painted-secondary);
  --painted-slice: 0 114 0 114 fill;
  --painted-left-ratio: .8507;
  --painted-right-ratio: .8507;
  --painted-ink: var(--painted-paper);
  --painted-text-shadow: 0 2px #101a32;
  --painted-min-width: 200px;
}
@media (max-width: 760px) {
  .entrance-content:has(> .entrance-save, > .entrance-welcome) { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .entrance-content:has(> .entrance-save, > .entrance-welcome)::before { grid-column: 1; grid-row: auto; height: 180px; aspect-ratio: auto; }
  .entrance-content:has(> .entrance-save, > .entrance-welcome) > * { grid-column: 1; }
  .entrance-content > .entrance-save { padding: 20px; margin-top: 0; }
  .entrance-content > .entrance-save h2 { font-size: 36px; margin-bottom: 12px; }
  .entrance-content > .entrance-save p { font-size: 13px; line-height: 1.4; }
  .entrance-content > .entrance-welcome { max-width: 30ch; }
  .entrance-actions:has(> [data-entrance=continue]) > [data-entrance=new] { --painted-min-width: 0; }
}
@media (max-height: 550px) and (min-width: 761px) {
  .entrance-content:has(> .entrance-save, > .entrance-welcome)::before { max-height: 260px; }
  .entrance-content > .entrance-save { padding: 20px; }
}
@media (max-height: 550px) and (max-width: 760px) {
  .entrance-content:has(> .entrance-save, > .entrance-welcome)::before { height: 125px; }
}
@media (forced-colors: active) {
  .entrance-content > .entrance-save { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  .entrance-content > .entrance-save::before { display: none; }
  .entrance-content > .entrance-save p:first-child { color: CanvasText; }
}

/* Review hides the editable layout after the mobile loaner override; Back restores it. */
.starter-dialog[data-review=true] .starter-layout { display: none; }

/* The crew review is a compact illustrated manifest, with real selected-print portraits. */
.starter-dialog .starter-summary {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  color: #f5e9cb;
}
.starter-review-heading {
  position: relative;
  min-height: 150px;
  padding: 20px 160px 20px 24px;
  background: #f5e9cb;
  color: #25334b;
  border-left: 6px solid #ba914e;
}
.starter-review-heading::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: 140px;
  background: url('/shift/assets/entrance/clock-in-desk-v1.webp') center / contain no-repeat;
  pointer-events: none;
}
.starter-summary .starter-review-heading p { margin: 8px 0 0; }
.starter-summary .starter-review-heading h3 { margin-bottom: 10px; }
.starter-summary .starter-review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  justify-content: center;
  align-items: stretch;
  gap: clamp(8px, 2vw, 22px);
  padding: 0;
  margin: 24px 0;
  list-style: none;
}
.starter-summary .starter-review-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: #f5e9cb;
  color: #25334b;
  border: 1px solid #b9a373;
  border-radius: 4px;
  box-shadow: 0 4px #081325;
}
.starter-review-card .starter-review-seat { font: 700 12px/1.1 Bricolage, sans-serif; color: #775b31; }
.starter-review-card > strong { font: 800 clamp(18px, 2.5vw, 26px)/1.08 Barlow, sans-serif; overflow-wrap: anywhere; }
.starter-review-card .starter-card-stats { margin-top: auto; }
.starter-review-card > small { font-size: 10px; line-height: 1.3; }
.starter-summary .starter-review-warning { padding: 15px 18px; border-left: 4px solid #f2bd53; background: #493b2d; color: #ffe4b1; }
.starter-dialog .starter-summary [data-starter-edit] {
  position: relative;
  isolation: isolate;
  min-height: 52px;
  padding: 10px 44px;
  border: 0;
  border-radius: 0;
  transform: none;
  background: none;
  box-shadow: none;
  color: #fff0ca;
}
.starter-dialog .starter-summary [data-starter-edit]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 0 solid transparent;
  border-image: var(--painted-secondary) 0 114 0 114 fill;
  border-image-width: 0 40px;
  pointer-events: none;
}
.starter-dialog .starter-summary [data-starter-edit]:focus-visible { outline: 3px solid #f2bd53; outline-offset: 3px; }
.starter-dialog .starter-summary [data-starter-edit]:disabled { opacity: .6; filter: saturate(.2); background: none; border: 0; box-shadow: none; color: #fff0ca; }
.starter-dialog .starter-summary [data-starter-edit]:not(:disabled):active { translate: 0 1px; transform: none; filter: brightness(.9); box-shadow: none; }
@media (max-width: 520px) {
  .starter-review-heading { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px 10px; padding: 14px; min-height: 0; }
  .starter-review-heading::after { position: static; grid-column: 2; grid-row: 1 / 3; width: 72px; height: 72px; margin: 0; }
  .starter-summary .starter-review-heading h3 { grid-column: 1; margin: 0; font-size: 28px; }
  .starter-summary .starter-review-heading p { grid-column: 1; margin: 0; }
  .starter-summary .starter-review-heading p:last-child { grid-column: 1 / -1; }
  .starter-summary .starter-review-cards { gap: 7px; margin: 18px 0; }
  .starter-summary .starter-review-card { padding: 6px; gap: 7px; }
  .starter-review-card .starter-card-stats { font-size: 10px; }
  .starter-review-card > small { font-size: 9px; }
  .starter-review-card .starter-review-seat { font-size: 10px; }
  .starter-review-card > strong { font-size: 18px; }
  .starter-dialog .starter-summary [data-starter-edit] { width: 100%; }
}
@media (forced-colors: active) {
  .starter-review-heading, .starter-summary .starter-review-card, .starter-summary .starter-review-warning { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .starter-dialog .starter-summary [data-starter-edit]:is(:enabled, :disabled) { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; box-shadow: none; filter: none; opacity: 1; }
  .starter-dialog .starter-summary [data-starter-edit]:disabled { color: GrayText; border-color: GrayText; }
  .starter-dialog .starter-summary [data-starter-edit]::before { content: none; }
}
