/* Final phone and dialog refinements; shared by the live app and fictional demo. */
#add .tss-form-field{display:flex;flex-direction:column;gap:6px;min-width:0;align-self:stretch}
#add .tss-form-field label{margin:0;font-size:14px;font-weight:650;line-height:1.4;color:#394553}
#add .tss-form-field input,#add .tss-form-field select{width:100%;min-width:0;margin:0;font-size:16px;min-height:48px}
#add .tss-photo-field,#add .tss-photo-preview{grid-column:1/-1}
#add .tss-photo-preview[hidden]{display:none!important}
#addPhotoPreview{display:block;max-width:100%;height:auto;max-height:180px;object-fit:contain;border-radius:10px}
#addPhotoStatus{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0}
#addPhotoStatus:empty{display:none}
#add input[type=file],#editPhoto{white-space:normal;min-width:0;font-size:14px;overflow:hidden}
#editCustomerDialog,#settingsDialog,#tireHistoryDialog,#tireMovementDialog,#replacementProfilesDialog,#textReminderDialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;padding:24px!important;border-radius:16px}
#editCustomerDialog h2,#settingsDialog h2,#tireHistoryDialog h2{font-size:24px;line-height:1.25;overflow-wrap:anywhere}
#editCustomerForm{display:flex;flex-direction:column;gap:8px}
#editCustomerForm label{font-size:14px;font-weight:650;line-height:1.4;margin:10px 0 0}
#editCustomerForm input,#editCustomerForm select{width:100%;max-width:none;min-width:0;font-size:16px;margin:0;min-height:48px}
#editCustomerForm button{margin:4px 0;min-height:48px;white-space:normal;font-size:16px;line-height:1.35}
#editCustomerSave{margin-top:16px!important}
#editCustomerStatus,#settingsStatus,#tireHistoryStatus{overflow-wrap:anywhere;line-height:1.5}
#settingsDialog .account-dialog-head{gap:12px;align-items:flex-start}
#settingsDialog .account-dialog-head button{margin:0;flex-shrink:0;min-height:44px}
#settingsDialog .tss-settings-content{min-width:0}
#settingsDialog .setting-check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:15px;line-height:1.4}
#settingsDialog .setting-check input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0}
#settingsDialog button{white-space:normal;line-height:1.4}
#tireMovementDialog form{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
#tireMovementDialog form button{min-height:48px;margin:0;flex:1}
#tireMovementCustomer{overflow-wrap:anywhere;font-weight:750}
#tssClearSearch{margin:8px 0 0;min-height:44px;font-size:14px;line-height:1.3}
#tssClearSearch[hidden]{display:none!important}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ed792a;outline-offset:3px}
body:has(dialog[open]){overflow:hidden}
body.dark #add .tss-form-field label{color:#e8edf3}
@media(max-width:700px){
 #workspace #inventoryPanel .action-cell{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%}
 #workspace #inventoryPanel .action-cell button{font-size:14px!important;line-height:1.35!important;padding:10px 8px!important;min-height:50px;min-width:0;overflow-wrap:anywhere!important}
 #workspace #inventoryPanel .action-cell .action-primary{grid-column:1/-1;flex-direction:row!important}
 #workspace #inventoryPanel .condition-badge,#workspace #inventoryPanel .status-badge{font-size:14px!important;white-space:normal;line-height:1.4}
 #editCustomerDialog,#settingsDialog,#tireHistoryDialog,#tireMovementDialog,#replacementProfilesDialog,#textReminderDialog{padding:18px!important}
 #editCustomerDialog h2,#settingsDialog h2{font-size:22px}
 #workspace .season-toggle-row button,#workspace [data-season-filter]{white-space:normal!important;line-height:1.4!important;min-height:48px;word-break:normal}
}
@media(prefers-reduced-motion:reduce){.stored-overlay *{animation:none!important;transition:none!important}html{scroll-behavior:auto!important}}
html body #editCustomerDialog #editCustomerForm input,html body #editCustomerDialog #editCustomerForm select{font-size:16px!important}
@media(max-width:700px){
 html body #workspace #inventoryPanel #rows tr.tire-record .action-cell{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #workspace #inventoryPanel #rows tr.tire-record .action-cell button{width:100%!important;min-width:0!important;margin:0!important;font-size:14px!important;min-height:50px!important}
 html body #workspace #inventoryPanel #rows tr.tire-record .action-cell .action-primary,html body #workspace #inventoryPanel #rows tr.tire-record .action-cell .tss-out-note{grid-column:1/-1!important}
}
html[data-theme=dark] #add .tss-form-field label{color:#e8edf3}
