/* A calm daily routine; detailed management stays one step away. */
[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .6; }
.app-frame { max-width: 1440px; }
.topbar { min-height: 76px; padding: 10px 0; gap: 18px; }
.brand { min-width: 216px; }
.brand-copy strong { font-size: 27px; }
.main-nav { gap: 4px; }
.nav-button { min-width: 76px; padding: 8px 10px; }
.top-actions { gap: 7px; }
.top-actions .weather-pill { display: none; }
.cash-pill, .day-pill { min-height: 46px; }
.fullscreen-button { padding: 12px; min-height: 44px; }
.help-button { min-height: 44px; white-space: nowrap; }
.help-short { display: none; }
main { padding-top: 18px; }
.page-heading { margin-bottom: 16px; align-items: center; }
.page-heading h1 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -1px; }
.page-subtitle { max-width: 780px; font-size: 13px; line-height: 1.5; margin-top: 7px; }
.button { font-size: 12px; min-height: 40px; }
.text-button { font-size: 12px; min-height: 30px; }
.quiet-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.day-flow { display: flex; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,253,249,.7); }
.day-flow button { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 16px; background: transparent; color: var(--ink); border: 0; border-right: 1px solid var(--line); }
.day-flow button:last-child { border-right: 0; }
.day-flow button > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e9e5dc; color: var(--sage-dark); font-size: 12px; }
.day-flow button > span { font-weight: 750; font-size: 13px; }
.day-flow small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.day-flow .is-current { background: var(--sage-soft); }
.day-flow .is-current > b { background: var(--sage-dark); color: white; }
.day-flow button:hover:not(:disabled) { background: #f5f2e9; }
.tutorial-banner { margin: 0 0 12px; padding: 7px 12px; gap: 10px; min-height: 38px; }
.tutorial-banner p { flex: 1; margin: 0; font-size: 12px; line-height: 1.4; color: var(--sage-dark); }
.today-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.04fr); gap: 16px; }
.daily-plan { padding: 22px 24px 16px; }
.daily-plan > h2 { font: 700 29px/1.15 Georgia, serif; color: var(--plum); letter-spacing: -.5px; margin: 9px 0; }
.daily-plan .panel-heading { align-items: center; }
.daily-plan .eyebrow { margin: 0; }
.daily-plan .next-step-copy { font-size: 13px; line-height: 1.45; margin: 0 0 16px; min-height: 37px; max-width: 510px; }
.next-step-count { font-size: 10px; padding: 5px 9px; }
.readiness-list { border-top: 1px solid var(--line); margin-bottom: 17px; }
.readiness-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ready-mark { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #e9f0df; color: #385943; display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.ready-mark.needs-attention { background: #fff0d5; color: #8a6025; }
.readiness-row > div { flex: 1; }
.readiness-row strong { font-size: 13px; display: block; }
.readiness-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.readiness-row .text-button { color: var(--sage-dark); padding: 5px; }
.daily-plan .button-primary { min-height: 44px; font-size: 13px; }
.daily-plan > .quiet-note { text-align: center; font-size: 11px; }
.open-anyway { display: block; margin: 6px auto 0; }
.today-scene { position: relative; isolation: isolate; overflow: hidden; min-height: 330px; background: #e7e8d3; }
.today-town-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 52%; z-index: -2; }
.today-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,250,233,.12) 40%, rgba(251,247,232,.95) 95%); }
.scene-topline { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 6px; }
.scene-topline span { padding: 7px 10px; border-radius: 8px; background: rgba(255,253,249,.94); color: var(--sage-dark); font-size: 11px; font-weight: 700; }
.today-stand-art { position: absolute; bottom: 61px; right: 5%; width: 62%; height: 78%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(61,51,29,.2)); z-index: -1; }
.scene-location { position: absolute; inset: auto 20px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.scene-location small { font-size: 11px; color: var(--sage-dark); }
.scene-location h2 { margin: 3px 0 5px; font: 700 26px/1.1 Georgia, serif; color: var(--plum); }
.scene-location p { font-size: 12px; margin: 0; color: #555e47; }
.scene-location .button { background: #fffaf2; border: 1px solid #d8dfcd; }
.today-extras { display: grid; grid-template-columns: 1fr 1.04fr; gap: 16px; margin-top: 12px; align-items: start; }
details > summary { cursor: pointer; font-size: 13px; font-weight: 750; color: var(--plum); padding: 15px 16px; }
details > summary::marker { color: var(--sage); }
.disclosure-hint { float: right; font-size: 11px; color: var(--muted); font-weight: 450; }
.customer-notes .count-badge { margin-left: 5px; padding: 3px 7px; }
.customer-notes #alert-list { padding: 0 14px 14px; }
.alert-item strong { font-size: 12px; }
.alert-item p { font-size: 12px; }
.growth-link { padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 49px; text-align: left; color: var(--sage-dark); gap: 10px; }
.growth-link small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.growth-link strong { display: block; font-size: 12px; }
.business-nav { display: flex; gap: 6px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.business-nav button { border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; }
.business-nav button[aria-current=page] { background: var(--sage-soft); color: var(--sage-dark); border-color: #d5dfcc; }
.business-nav .back-to-today { margin-left: auto; color: var(--sage-dark); }
.restock-helper { padding: 16px 20px; display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 16px; background: linear-gradient(120deg, #edf3e4, #fffdf9); }
.restock-helper h2, .budget-guide h2, .location-choices > h2 { margin: 0; font: 700 23px/1.2 Georgia, serif; color: var(--plum); }
.restock-helper p:not(.eyebrow) { font-size: 12px; color: #666c5b; margin: 6px 0 0; line-height: 1.45; }
.restock-helper .button { white-space: nowrap; flex: 0 0 auto; }
.shop-layout { grid-template-columns: minmax(0, 1fr) 270px; }
.flower-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flower-card { grid-template-columns: 38px minmax(0,1fr); gap: 8px; }
.flower-card h3 { font-size: 13px; }
.flower-card .flower-art { width: 33px; height: 44px; }
.flower-card .price { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.flower-card .price small, .flower-meta { font-size: 11px !important; }
.flower-meta { margin-bottom: 0; }
.buy-buttons { display: grid; grid-template-columns: 1fr 1fr; }
.buy-button { font-size: 11px; min-height: 37px; padding: 6px; }
.demand-row { grid-template-columns: 25px minmax(0,1fr) 42px; gap: 7px; }
.demand-row .demand-bar { display: none; }
.demand-row strong, .demand-row small { font-size: 12px; }
.forecast-callout { font-size: 12px; }
.budget-guide { padding: 20px; }
.budget-guide p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.inventory-panel { padding: 0; }
.inventory-panel > .quiet-note { margin: 0 16px 12px; }
.inventory-grid { grid-template-columns: repeat(6, minmax(0,1fr)); margin: 0; padding: 0 16px 16px; overflow: visible; }
.inventory-card { min-width: 0; }
.inventory-card small { font-size: 10px; line-height: 1.4; }
.staff-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.crew-helper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--sage-soft); border-radius: 10px; margin: 16px 0 0; }
.crew-helper p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--sage-dark); }
.crew-helper button { background: #fffaf2; flex: 0 0 auto; }
.staff-card-head strong { font-size: 14px; }
.staff-card-head small { font-size: 11px; }
.staff-wage { font-size: 12px; font-weight: 750; color: var(--sage-dark); white-space: nowrap; }
.staff-impact { font-size: 11px; line-height: 1.5; padding: 8px; }
.staff-assignment { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.staff-details { margin-top: 10px; border-top: 1px solid var(--line); }
.staff-details summary { padding: 10px 0; font-size: 12px; font-weight: 650; line-height: 1.4; }
.staff-details label, .staff-details select { font-size: 12px; }
.staff-details select { min-height: 40px; }
.staff-details .staff-fire { font-size: 12px; padding: 8px; margin-top: 10px; color: var(--coral-dark); border: 1px solid #eddbd4; }
.hiring-panel { margin: 0; padding: 18px; border: 1px solid var(--line); }
.hiring-card { grid-template-columns: 34px minmax(0,1fr); }
.hiring-card .avatar { width: 34px; height: 34px; }
.hiring-card strong { font-size: 13px; }
.hiring-card p, .hiring-card small { font-size: 11px; line-height: 1.4; }
.hiring-card .hire-button { grid-column: 2; justify-self: start; font-size: 12px; min-height: 37px; }
.locations-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; }
.locations-layout .town-map { min-height: 495px; }
.location-choices { padding: 20px; }
.location-choice { padding: 14px 0; border-bottom: 1px solid var(--line); }
.location-choice:last-child { border: 0; }
.location-choice strong { display: block; font-size: 13px; }
.location-choice p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 5px 0 9px; }
.location-choice button { min-height: 35px; font-size: 12px; }
#view-upgrades .upgrade-panel { max-width: 900px; padding: 12px 24px; }
.upgrade-item strong { font-size: 15px; }
.upgrade-item p { font-size: 12px; line-height: 1.6; }
.upgrade-item button { min-height: 42px; font-size: 12px; }
.journal-entry h3 { font-size: 14px; }
.journal-entry p { font-size: 12px; line-height: 1.55; }
.goal-item strong { font-size: 13px; }
.goal-item small { font-size: 11px; }
.save-footer { min-height: 34px; padding-top: 12px; font-size: 10px; }
.save-footer .text-button { font-size: 10px; }
.game-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 36px); padding: 24px; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper-strong); box-shadow: 0 24px 100px #322b3550; }
.game-dialog::backdrop { background: rgba(32,40,33,.48); backdrop-filter: blur(4px); }
.dialog-top { gap: 14px; align-items: start; }
.dialog-top h2 { font: 700 27px/1.15 Georgia, serif; margin: 0; color: var(--plum); }
.dialog-intro { color: var(--muted); font-size: 13px; line-height: 1.5; }
.game-dialog .icon-button { min-width: 32px; min-height: 32px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.order-line, .money-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-line .flower-art { width: 22px; height: 30px; }
.order-line > span:nth-child(2) { flex: 1; }
.money-rows { margin: 14px 0; }
.money-rows .total-row { color: var(--sage-dark); font-weight: 800; background: var(--sage-soft); padding: 12px; border-radius: 9px; border: 0; margin-top: 5px; }
.planning-warning { padding: 12px; border: 1px solid #edd5ad; border-radius: 10px; color: #75542f; background: #fff4df; font-size: 12px; line-height: 1.5; margin: 10px 0; }
.planning-warning button { display: inline; margin-left: 6px; }
.help-steps { padding-left: 28px; }
.help-steps li { padding: 10px 0 4px 5px; color: var(--sage-dark); }
.help-steps strong { font-size: 16px; }
.help-steps p, .help-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 5px 0; }
.help-note { padding: 14px; background: var(--sage-soft); border-radius: 10px; margin: 14px 0 18px; }
.summary-hero { gap: 12px; }
.summary-hero > div > span { font-size: 11px; }
.summary-grid span, .summary-note { font-size: 12px; }
.summary-note { line-height: 1.55; }
.summary-grid strong { font-size: 16px; }
.summary-rating strong { font-size: 12px; }
.toast { max-width: min(440px, calc(100vw - 28px)); font-size: 13px; line-height: 1.5; }

/* Full screen adds space, while every control remains reachable at smaller heights. */
body.is-fullscreen { overflow: auto; min-height: 100dvh; }
body.is-fullscreen .app-frame { max-width: 1600px; }
@media (min-width: 1000px) and (max-height: 800px) {
  .topbar { min-height: 66px; padding-block: 6px; }
  main { padding-top: 10px; }
  .page-heading { margin-bottom: 12px; }
  #view-map .page-heading h1 { font-size: 29px; }
  #view-map .page-subtitle { display: none; }
  .day-flow button { padding-block: 8px; }
  .tutorial-banner { min-height: 32px; padding-block: 3px; }
  .tutorial-banner > .ui-art { width: 18px; height: 18px; }
  .daily-plan { padding: 16px 20px 12px; }
  .daily-plan .panel-heading { margin-bottom: 6px; }
  .daily-plan > h2 { font-size: 26px; margin: 6px 0; }
  .daily-plan .next-step-copy { margin-bottom: 10px; min-height: 0; }
  .readiness-list { margin-bottom: 12px; }
  .readiness-row { padding: 6px 0; }
  .today-scene { min-height: 310px; }
  .save-footer { padding-top: 7px; }
}
@media (max-width: 1200px) {
  .topbar { flex-wrap: nowrap; gap: 10px; }
  .brand { min-width: 190px; }
  .main-nav { order: 0; flex-basis: auto; min-height: 0; }
  .nav-button { min-width: 65px; padding-inline: 8px; }
  .fullscreen-button #fullscreen-label { display: none; }
  .top-actions .day-pill { display: none; }
  .shop-layout { grid-template-columns: minmax(0,1fr) 245px; }
  .flower-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .staff-layout { grid-template-columns: minmax(0,1fr) 295px; }
  .staff-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) and (max-height: 740px) {
  .app-frame { padding-bottom: 10px; }
  #view-map .page-heading { margin-bottom: 8px; }
  .day-flow button { padding-block: 6px; }
  .daily-plan { padding-block: 12px 10px; }
  .daily-plan .panel-heading { margin-bottom: 0; }
  .daily-plan > .quiet-note { margin-top: 6px; }
  .readiness-row { padding-block: 4px; }
  .save-footer .text-button { min-height: 20px; }
}
@media (max-width: 880px) {
  .topbar { flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; }
  .today-layout { grid-template-columns: minmax(0,1fr); }
  .today-scene { min-height: 265px; }
  .today-stand-art { width: 42%; right: 12%; bottom: 35px; }
  .today-extras { grid-template-columns: 1fr; gap: 10px; }
  .shop-layout, .staff-layout, .locations-layout { grid-template-columns: 1fr; }
  .shop-sidebar { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hiring-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .locations-layout .town-map { min-height: 410px; }
  .inventory-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .app-frame { padding: 0 12px 88px; }
  main { padding-top: 8px; }
  .topbar { flex-wrap: wrap; gap: 5px; padding: 8px 0; }
  .brand { min-width: 0; gap: 5px; flex: 1 0 140px; }
  .brand-copy strong { font-size: 22px; white-space: nowrap; }
  .brand-copy small { font-size: 7px; }
  .brand-mark { width: 30px; }
  .brand-mark svg { width: 33px; height: 42px; }
  .top-actions { gap: 4px; margin-left: auto; }
  .help-button { font-size: 11px; padding: 8px; }
  .fullscreen-button { min-width: 32px; padding: 8px; }
  .cash-pill { min-height: 40px; padding: 8px; }
  .cash-pill strong { font-size: 13px; }
  .main-nav { min-height: 63px; padding: 5px; }
  .nav-button { min-width: 0; padding: 5px; }
  .nav-button b { font-size: 11px; }
  .page-heading { flex-direction: row; align-items: center; gap: 10px; }
  .page-heading h1 { font-size: 27px; }
  .page-subtitle { font-size: 12px; }
  #view-map .page-heading { display: block; }
  #view-map .page-heading .reputation-chip { display: none; }
  .day-flow { margin-bottom: 10px; }
  .day-flow button { padding: 9px 6px; gap: 6px; }
  .day-flow button > b { width: 22px; height: 22px; font-size: 11px; }
  .day-flow button > span { font-size: 11px; }
  .day-flow small { display: none; }
  .tutorial-banner { padding: 8px 10px; }
  .tutorial-banner p { font-size: 11px; }
  .daily-plan { padding: 16px; }
  .daily-plan > h2 { font-size: 27px; }
  .daily-plan .next-step-copy { font-size: 12px; min-height: 0; margin-bottom: 12px; }
  .readiness-row { gap: 9px; padding: 10px 0; }
  .readiness-row strong { font-size: 12px; }
  .readiness-row small { font-size: 11px; }
  .readiness-row .text-button { font-size: 11px; }
  .today-scene { min-height: 270px; }
  .today-stand-art { width: 60%; right: 2%; bottom: 55px; }
  .scene-location { inset: auto 14px 14px; }
  .scene-location h2 { font-size: 22px; }
  .scene-location .button { font-size: 11px; padding: 8px; }
  .restock-helper { padding: 16px; align-items: stretch; flex-direction: column; gap: 12px; }
  .shop-sidebar, .flower-grid, .staff-grid, .hiring-list { grid-template-columns: 1fr; }
  .flower-card { padding: 12px; grid-template-columns: 36px 1fr auto; }
  .flower-card .price { grid-column: auto; display: grid; text-align: right; }
  .flower-catalog { padding: 14px; }
  .flower-card .price small { max-width: 95px; }
  .business-nav { gap: 2px; margin-bottom: 14px; }
  .business-nav button { flex: 1; padding: 10px 6px; font-size: 12px; }
  .business-nav .back-to-today { display: none; }
  .crew-helper { flex-direction: column; align-items: stretch; }
  .inventory-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding-inline: 10px; }
  .inventory-card small { font-size: 10px; }
  .disclosure-hint { display: none; }
  .game-dialog { padding: 18px; max-height: calc(100dvh - 28px); }
  .dialog-top h2 { font-size: 24px; }
  .dialog-actions { flex-direction: column-reverse; }
  .summary-hero { flex-wrap: wrap; }
  .summary-rating { margin-left: 0; }
  .toast { bottom: 85px; }
}
@media (max-width: 360px) {
  .help-long { display: none; }
  .help-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
