.ios-wine-wizard .ios-row>select{justify-self:end;box-sizing:border-box;max-width:100%;min-width:0;border:0;background:transparent;color:#555;font:inherit;font-size:15px;padding:12px 0;text-align:right}
.ios-wine-wizard .ios-row:has(select){grid-template-columns:minmax(90px,auto) minmax(0,1fr)}
.ios-wine-wizard .ios-row>span{white-space:normal}
.ios-wine-wizard .wine-extra{margin-top:18px;border:1px solid #e3e3e6;border-radius:18px;overflow:hidden}
.ios-wine-wizard .wine-extra>summary{cursor:pointer;padding:16px 18px;font-size:13px;font-weight:600;text-decoration-line:underline;text-decoration-style:dotted;text-underline-offset:4px;text-decoration-color:#9da39e}
.ios-wine-wizard .wine-extra>summary small{display:block;margin-top:5px;color:#777;font-size:13px;font-weight:400;line-height:1.4}
.ios-wine-wizard .wine-extra h3{font-size:14px;margin:16px 18px 8px;color:#777}
.ios-wine-wizard .wine-extra .ios-form-group{border:0!important;border-radius:0!important}
.ios-wine-wizard .wine-text-row{display:block!important;padding:14px 18px!important}
.ios-wine-wizard .wine-text-row>span{display:block;margin-bottom:10px;font-size:15px}
.ios-wine-wizard .wine-text-row textarea{box-sizing:border-box;display:block;width:100%;min-height:76px;resize:vertical;border:1px solid #ddd;border-radius:8px;padding:10px;font:inherit;font-size:15px}
.ios-wine-wizard .wine-profile-note{font-size:14px;color:#666;line-height:1.5}
.ios-wine-wizard .wine-catalog-warning{font-size:14px;color:#8c4221;line-height:1.5}
.ios-picker-sheet [data-more],.ios-picker-sheet [data-retry]{margin:10px 0;width:100%;padding:14px;border:1px solid #ddd;border-radius:12px;background:#fff}
.ios-picker-sheet footer{display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px;background:#f2f2f7}
.ios-picker-sheet footer button{min-height:42px;border:0;border-radius:10px;padding:10px;background:#fff;color:#641b27}
.ios-picker-sheet article{grid-template-rows:auto auto minmax(0,1fr) auto!important}
.ios-picker-sheet .ios-search input{color:#111;-webkit-text-fill-color:#111;caret-color:#7c2633;background:#fff;color-scheme:light}
.ios-picker-sheet .ios-search input::placeholder{color:#6b6b73;-webkit-text-fill-color:#6b6b73;opacity:1}

.ios-wine-wizard .ios-row{grid-template-columns:minmax(0,42%) minmax(0,1fr) 14px;column-gap:10px}
.ios-wine-wizard label.ios-row{grid-template-columns:minmax(0,42%) minmax(0,1fr)}
.ios-wine-wizard .ios-row:has(select){grid-template-columns:minmax(0,36%) minmax(0,1fr)}
.ios-wine-wizard .ios-row>b{white-space:normal;overflow-wrap:anywhere;text-align:right;padding:12px 0}
.ios-wine-wizard .wine-extra>.wine-profile-note{margin:14px 18px}

/* Grouped rows must not inherit page-level pills or the empty-state panel. */
.ios-wine-wizard .ios-form-group .ios-row{box-sizing:border-box;width:100%;min-height:64px!important;margin:0!important;padding:12px 16px!important;border:0!important;border-bottom:1px solid #e4e3e8!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left;align-items:center}
.ios-wine-wizard .ios-form-group>.ios-row:last-child{border-bottom:0!important}
.ios-wine-wizard .ios-form-group .ios-row>span{min-width:0;font-size:16px;font-weight:500;line-height:1.3}
.ios-wine-wizard .ios-form-group .ios-row>b{padding:0;font-size:15px;font-weight:400;line-height:1.35}
.ios-wine-wizard .ios-form-group .ios-row>b.empty{display:block!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#777!important;-webkit-text-fill-color:#777!important}
.ios-wine-wizard .ios-form-group .ios-row>input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:32px!important;min-height:32px;padding:0!important;font-size:16px;line-height:1.35}
.ios-wine-wizard .ios-form-group .ios-row>select{font-size:16px;line-height:1.35;padding:0}
.ios-wine-wizard .ios-form-group .ios-row>input[type=checkbox]{justify-self:end;align-self:center;width:24px!important;height:24px!important;margin:0;accent-color:#7c2633}

/* A modal's grid must not inherit the desktop page's 1120px main canvas.
   Explicit minmax columns keep input intrinsic widths from stretching it. */
.ios-wine-wizard>article,.ios-picker-sheet>article{box-sizing:border-box!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
.ios-wine-wizard>article>header,.ios-wine-wizard>article>main,.ios-wine-wizard>article>footer,
.ios-picker-sheet>article>header,.ios-picker-sheet>article>main,.ios-picker-sheet>article>footer,
body:has(#hub-section:not([hidden])) .ios-wine-wizard>article>main,
body:has(#hub-section:not([hidden])) .ios-picker-sheet>article>main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
.ios-wine-wizard>article>main,.ios-picker-sheet>article>main{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important}
.ios-wine-wizard>article>header{padding:25px 88px 20px 28px!important}
.ios-wine-wizard>article>main,body:has(#hub-section:not([hidden])) .ios-wine-wizard>article>main{padding:22px 28px 28px!important}
.ios-wine-wizard>article>footer{padding:18px 28px 24px!important}
@media(max-width:600px){
 .ios-wine-wizard>article>header{padding:24px 76px 18px 20px!important}
 .ios-wine-wizard>article>main,body:has(#hub-section:not([hidden])) .ios-wine-wizard>article>main{padding:20px 20px 26px!important}
 .ios-wine-wizard>article>footer{padding:18px 20px calc(20px + env(safe-area-inset-bottom))!important}
}

.ios-wine-wizard .wine-ai-retry{margin-top:20px;padding:16px;border-radius:16px;background:#f8f1f3;color:#743744}
.ios-wine-wizard .wine-ai-retry p{margin:0 0 10px;color:inherit;line-height:1.45}
.ios-wine-wizard .wine-ai-retry button{background:#743744;color:#fff;border:0;border-radius:12px;padding:12px 16px}

/* Keep all three editor actions inside narrow mobile dialogs. */
.ios-wine-wizard footer{gap:8px!important}.ios-wine-wizard footer button{min-width:0!important;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.15!important}.ios-wine-wizard footer :is([data-back],[data-archive],[data-restore]){flex:0 1 auto!important;padding-inline:14px!important}.ios-wine-wizard footer [data-next]{min-width:0!important;padding-inline:14px!important}.ios-wine-wizard footer button:disabled{opacity:.45;cursor:default}

/* Consistent value edge and chevron gutter on Wine step two. */
.ios-wine-wizard:not(.collection-dialog) .ios-row{grid-template-columns:minmax(95px,38%) minmax(0,1fr) 14px!important;column-gap:8px!important;align-items:center!important}
.ios-wine-wizard:not(.collection-dialog) .ios-row>b{justify-self:stretch!important;text-align:right!important;min-width:0!important;margin:0!important;overflow-wrap:anywhere}
.ios-wine-wizard:not(.collection-dialog) .ios-row>i{justify-self:end!important;margin:0!important}
.ios-wine-wizard:not(.collection-dialog) label.ios-row>input,.ios-wine-wizard:not(.collection-dialog) label.ios-row>select{grid-column:2 / 4!important;width:100%!important;min-width:0!important;text-align:right!important;text-align-last:right!important;padding-right:22px!important}
.wine-passport-wish{display:flex;align-items:center;gap:12px;padding:15px 0 0;border-top:1px solid #eee7df;margin-top:20px;color:#9c7655}
.wine-passport-wish>span{display:grid;gap:4px;flex:1}.wine-passport-wish b{font-size:14px}.wine-passport-wish small{font-size:11px;color:#9b9188}.wine-passport-wish input{width:20px;height:20px;accent-color:#a17e5a}.wine-passport [data-wine-wishlist] p:empty{display:none}

.wine-personal-status{margin-top:16px!important}
.wine-personal-status>small{display:block;padding:0 16px 14px;color:#7f8581;line-height:1.4}
.wine-personal-status input[disabled]{opacity:.55}
.ios-wine-wizard .wine-catalog-warning+ [data-profile]{margin-top:12px}

/* Move only the divider between Wanted and Tasted; row geometry stays unchanged. */
.wine-passport-tried{position:relative;border-top-color:transparent!important}
.wine-passport-tried::before{content:'';position:absolute;left:0;right:0;top:7px;height:1px;background:#eee7df;pointer-events:none}
