*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{overflow-wrap:anywhere;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:1rem;line-height:1.5}img,video,canvas,svg{max-width:100%;height:auto}.app{min-height:100dvh;padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}.app-header,.app-main{width:100%;max-width:40rem;margin:0 auto;padding:.5rem 1rem}.app-header{border-bottom:1px solid #ddd;align-items:center;gap:.5rem;display:flex}.app-title{margin:0;font-size:1.25rem}.app-title a{min-height:44px;color:inherit;align-items:center;text-decoration:none;display:inline-flex}.back-button,.button,button,input,select,textarea{min-height:44px;font:inherit}.back-button,.button{align-items:center;padding:0 .75rem;display:inline-flex}.back-button{margin-left:-.75rem}@media (width>=48rem){.app-header,.app-main{max-width:56rem;padding-left:2rem;padding-right:2rem}}.list-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.field{flex-direction:column;gap:.25rem;margin-bottom:1rem;display:flex}.field label{font-weight:600}input,select,textarea{border:1px solid #767676;border-radius:.25rem;width:100%;min-width:0;padding:0 .75rem}button,.button{color:inherit;cursor:pointer;background:#fff;border:1px solid #767676;border-radius:.25rem;padding:0 1rem;text-decoration:none}.primary{color:#fff;background:#6b1f3a;border-color:#6b1f3a}.field-error{color:#b00020;margin:0}.form-actions{flex-direction:column;gap:.75rem;display:flex}.form-actions button{width:100%}.wine-details div{margin-bottom:.75rem}.wine-details dt{font-weight:600}.wine-details dd{margin:0}.wine-actions{gap:.75rem;margin-bottom:1rem;display:flex}.wine-actions .button,.wine-actions button{flex:1;justify-content:center}.danger,.danger-outline{border-color:#b00020}.danger{color:#fff;background:#b00020}.danger-outline{color:#b00020}.dialog-backdrop{z-index:10;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.dialog{background:#fff;border-radius:.5rem;width:100%;max-width:24rem;padding:1rem 1.25rem}.dialog-title{margin-top:0;font-size:1.25rem}.dialog-actions{gap:.75rem;display:flex}.dialog-actions button{flex:1}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wine-list{margin:0;padding:0;list-style:none}.wine-row{min-height:44px;color:inherit;border-bottom:1px solid #ddd;align-items:center;gap:.75rem;padding:.75rem 0;text-decoration:none;display:flex}.wine-thumb{background:#eee;border-radius:.25rem;flex:none;width:3.5rem;height:3.5rem}.wine-row-text{flex-direction:column;flex:1;min-width:0;display:flex}.wine-row-name{font-weight:600}.wine-rating{color:#6b1f3a}.empty-state{flex-direction:column;align-items:flex-start;gap:.75rem;display:flex}.field-label{margin:0 0 .25rem;font-weight:600}.photo-actions{flex-wrap:wrap;gap:.5rem;display:flex}.photo-preview,.wine-photo{object-fit:contain;border-radius:.25rem;max-width:100%;max-height:20rem;margin:.5rem 0;display:block}.photo-preview{max-height:12rem}img.wine-thumb{object-fit:cover}.star-selector{flex-direction:column;gap:.5rem;margin-bottom:1rem;display:flex}.field-label{font-weight:600}.star-buttons{gap:.25rem;display:flex}.star-button{color:#6b1f3a;flex:1 1 0;min-width:0;min-height:56px;padding:0;font-size:2rem;line-height:1}.star-button[aria-pressed=true]{border-width:2px;border-color:#6b1f3a}.link-button{color:#6b1f3a;background:0 0;border:none;align-self:flex-start;min-height:44px;text-decoration:underline}.tastings{margin-top:1.5rem}.tasting-list{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.tasting-list li{flex-wrap:wrap;align-items:center;gap:.5rem 1rem;display:flex}.sensory{flex-direction:column;gap:1rem;margin-bottom:1rem;display:flex}.sensory-intro{margin:0;font-weight:600}.sensory-question{border-top:1px solid #ddd;flex-direction:column;gap:.5rem;padding-top:.75rem;display:flex}.sensory-question p{margin:0}.sensory-text{font-weight:600}.sensory-technical,.sensory-help{color:#555;font-size:.85rem}.sensory-answers{flex-wrap:wrap;gap:.5rem;display:flex}.sensory-answer{flex:auto;min-width:0;max-width:100%;min-height:48px}.sensory-unknown{align-self:flex-start}.sensory-answer[aria-pressed=true]{border-width:2px;border-color:#6b1f3a;font-weight:600}.tasting-answers{overflow-wrap:anywhere;flex:100%;min-width:0}.tasting-answers dl{margin:0}.tasting-answers dl>div{flex-wrap:wrap;gap:0 .5rem;display:flex}.tasting-answers dt{text-transform:capitalize;font-weight:600}.tasting-answers dd{margin:0}.tasting-note{white-space:pre-wrap;margin:.25rem 0 0}.export-section{margin-top:1.5rem}.export-section button{width:100%}.storage-line{color:#555;overflow-wrap:anywhere;margin:.75rem 0 0;font-size:.875rem}
