/* v3.13: handset recipe-card text breathing room, iOS safe close, sound check */
@media(max-width:649px){
  #recipeGrid .card .card-body-v12276{padding-left:19px!important;}
  #recipeGrid .card .card-copy-v12276{padding-left:4px!important;}
  .have-recipe-card .have-recipe-body{padding-left:17px!important;}
}
#modal .sheet,#surpriseModal .sheet{position:relative;}
#modal .close,#surpriseModal .close{position:sticky;top:0;z-index:500;float:right;flex-shrink:0;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.2);min-width:44px;min-height:44px;touch-action:manipulation;}
@supports(padding-top:env(safe-area-inset-top)){
  #modal .sheet,#surpriseModal .sheet{max-height:calc(100dvh - env(safe-area-inset-top) - 12px);}
}
.gimi-audio-check{position:fixed;z-index:15000;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(92vw,440px);background:#fffdf7;color:#2d3030;padding:17px;border-radius:18px;border:2px solid #729573;box-shadow:0 4px 30px #0005;}
.gimi-audio-check p{margin:8px 0 12px;}
.gimi-audio-check button{width:auto;margin-right:7px;padding:10px 13px;}

/* v3.15: distinguish locked Quick Ideas without changing card dimensions. */
#browse .quick-recipe-card.quick-recipe-locked{border-left:4px solid #aab0af!important;box-sizing:border-box}
#browse .quick-recipe-card:not(.quick-recipe-locked){border-left-color:var(--brand,#5b8b62)}
/* Main ingredient placeholders match compact result cards. */
.gimi-placeholder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 16px}
.gimi-placeholder-card{min-width:0;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;border:2px dashed #b7cbbb;background:#f8faf7;border-radius:15px;padding:16px;color:#375d43}
.gimi-placeholder-card>span{font-size:34px;line-height:1}.gimi-placeholder-card strong{font-size:15px}.gimi-placeholder-card small{font-size:12px;line-height:1.45}
/* Address the card-content container rather than shifting a child only. */
@media(max-width:649px){#recipeGrid .card .card-body-v12276{padding-left:29px!important}.have-recipe-card .have-recipe-body{padding-left:29px!important}.locked-recipe-card .card-body{padding-left:24px!important}}
