/* Final visual polish: clean, mascot-free, phone-first. */

/* Remove any legacy mascot remnants from older cached markup. */
.cookie-cat,.cookie-game,.cookie-pet-wrap,.cookie-mark,.category-cookie{display:none!important}
.brand-wrap{gap:0!important}

/* Calm, finished surfaces. */
.topbar{padding-left:16px!important;padding-right:16px!important}
.content{padding-left:16px!important;padding-right:16px!important}
.card,.hero,.library-summary,.product-tile,.category-card,.month-stat,.calendar-day{box-shadow:0 6px 18px rgba(58,43,36,.045)}
.hero,.library-summary{border-radius:22px!important}

/* Product library category cards: restore clean graphic markers and balanced spacing. */
.category-overview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.category-card{
  min-height:138px!important;
  padding:16px!important;
  border-radius:20px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:18px!important;
  overflow:hidden!important;
  background:var(--surface)!important;
}
.category-card .category-swatch{
  display:block!important;
  width:44px!important;
  height:8px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,var(--caramel),#d6a071,var(--deep))!important;
}
.category-card>span:last-child{padding:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
.category-card b{font-size:16px!important;line-height:1.2!important}
.category-card small{font-size:12px!important;line-height:1.35!important;color:var(--muted)!important}

/* Product list cards. */
.product-grid{gap:14px!important}
.product-tile{border-radius:20px!important}
.product-photo-button{height:180px!important}
.product-body{padding:15px!important}
.product-actions{gap:8px!important}
.product-actions button{min-height:38px!important}

/* Today / routine readability. */
.routine-card{padding:13px!important}
.routine-thumb,.routine-placeholder{width:50px!important;height:50px!important;border-radius:14px!important}
.step-title{line-height:1.25!important}
.section-head{margin-top:22px!important}

/* Calendar without mascot, with a clear monthly summary. */
.calendar-summary-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:17px;
  margin:4px 0 16px;
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(145deg,var(--surface),#eee2d7);
  box-shadow:0 8px 24px rgba(58,43,36,.05);
}
.calendar-summary-card h2{margin:2px 0 4px;font-size:22px}
.calendar-summary-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.calendar-score{flex:0 0 auto;min-width:74px;text-align:right}
.calendar-score strong{display:block;font-size:25px;line-height:1}
.calendar-score span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.calendar-day{border-radius:12px!important}
.calendar-nav-btn{font-size:20px!important}

/* Bottom navigation: exact equal columns and optical alignment. */
.bottom-nav{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  padding:7px 4px calc(7px + env(safe-area-inset-bottom))!important;
}
.bottom-nav .nav-item{
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin:0!important;
  padding:5px 2px!important;
  display:grid!important;
  grid-template-rows:22px 14px!important;
  align-content:center!important;
  justify-items:center!important;
  gap:3px!important;
  border-radius:14px!important;
  line-height:1!important;
}
.bottom-nav .nav-icon{width:20px!important;height:20px!important;margin:0!important;align-self:center!important;justify-self:center!important}
.bottom-nav .nav-item b{display:block!important;width:100%!important;margin:0!important;padding:0!important;font-size:10px!important;line-height:14px!important;font-weight:750!important;text-align:center!important;white-space:nowrap!important}

/* Sheet/forms feel less cramped on phones. */
.sheet{padding-left:16px!important;padding-right:16px!important}
.sheet-actions{position:sticky;bottom:0;background:linear-gradient(transparent,#fbf6f0 24%);padding-top:12px;padding-bottom:2px}
.field input,.field select,.field textarea{border-radius:13px!important}

/* Login/header cleanup if older JS still emits the old decorative mark. */
.auth-brand .cookie-mark{display:none!important}
.auth-brand{gap:0!important}

@media(max-width:390px){
  .category-card{min-height:132px!important;padding:14px!important;gap:14px!important}
  .library-summary{align-items:flex-start!important;flex-direction:column!important}
  .library-summary .primary{width:100%!important}
  .calendar-grid{gap:4px!important}
  .calendar-day{padding:5px 2px!important}
  .calendar-summary-card{padding:15px!important}
  .bottom-nav .nav-item b{font-size:9.5px!important}
}

@media(min-width:620px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .category-card{min-height:148px!important}
}
