.sme-condition-strip{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;max-width:100%}
.sme-condition-chip{display:inline-flex;align-items:center;gap:5px;max-width:220px;border:1px solid #665a55;border-radius:999px;background:#2d2b2e;color:#f4eeee;padding:4px 8px;font:inherit;font-size:10px;line-height:1.2;cursor:pointer}
.sme-condition-chip b{color:#ffad73}.sme-condition-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sme-condition-chip:hover{border-color:#f58220;background:#373033}
.sme-condition-photos-button{background:#332f31!important;border-color:#76645a!important}.sme-condition-notice{position:fixed;right:18px;bottom:18px;z-index:100001;max-width:min(460px,calc(100vw - 28px));padding:11px 14px;border-radius:9px;background:#274132;border:1px solid #6aa881;color:#edfff4;font-size:12px;font-weight:750;box-shadow:0 12px 36px #0007}.sme-condition-notice.is-error{background:#4b2928;border-color:#df8b7d;color:#fff2ef}
.sme-condition-dialog{width:min(980px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #675f60;border-radius:14px;background:#202024;color:#f5f1f1;box-shadow:0 30px 100px #000a;overflow:hidden}.sme-condition-dialog::backdrop{background:#050507c4}
.sme-condition-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid #4e494c;background:#262529}.sme-condition-dialog-head h2{margin:0 0 4px;color:#fff;font-size:20px}.sme-condition-dialog-head p{margin:0;color:#cfc5c5;font-size:12px}.sme-condition-dialog-head button{border:1px solid #71696c;border-radius:8px;background:#343237;color:#fff;width:38px;height:38px;font-size:24px;cursor:pointer}
.sme-condition-dialog-body{display:grid;gap:12px;padding:14px 16px 20px;overflow:auto;max-height:calc(100dvh - 110px)}.sme-condition-card{display:grid;gap:11px;border:1px solid #504b4f;border-left:4px solid #f58220;border-radius:11px;background:#29282c;padding:13px}.sme-condition-card.is-focus{border-color:#f2a66f;box-shadow:0 0 0 2px #f5822030}.sme-condition-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.sme-condition-card-head strong{display:block;color:#fff;font-size:13px;line-height:1.4}.sme-condition-card-head small{display:block;color:#bbb1b3;font-size:10px;margin-top:3px}.sme-condition-running{color:#ffad73;font-size:11px;font-weight:850}
.sme-condition-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sme-condition-metric{display:grid;gap:3px;border:1px solid #484447;border-radius:8px;background:#242326;padding:8px 9px}.sme-condition-metric small{color:#aaa0a2;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.sme-condition-metric strong{color:#f7f3f3;font-size:12px}.sme-condition-metric.is-missing strong{color:#ffc6a2}.sme-condition-metric.is-over strong{color:#ff9a92}.sme-condition-hint{margin:0;color:#d9c6ba;font-size:11px}
.sme-condition-photo-section{display:grid;gap:8px;border-top:1px solid #494448;padding-top:10px}.sme-condition-photo-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.sme-condition-photo-head b{font-size:11px;color:#f3ddd0}.sme-condition-add-photo{position:relative;display:inline-flex;align-items:center;border:1px solid #a36d4c;border-radius:7px;background:#5b3825;color:#fff;padding:7px 10px;font-size:11px;font-weight:850;cursor:pointer}.sme-condition-add-photo input{position:absolute;inset:0;opacity:0;cursor:pointer}
.sme-condition-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px}.sme-condition-photo{display:grid;gap:5px;border:1px solid #4f494c;border-radius:8px;background:#222124;padding:5px;color:#eee;cursor:pointer;text-align:left;min-width:0}.sme-condition-photo img{display:block;width:100%;height:92px;object-fit:cover;border-radius:6px;background:#151416}.sme-condition-photo small{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sme-condition-empty{padding:10px;border:1px dashed #575055;border-radius:8px;color:#aaa1a2;font-size:11px}.sme-condition-upload-status{min-height:14px;color:#f2b58d;font-size:10px}
.sme-condition-dialog-loading,.sme-condition-dialog-error{padding:24px;color:#eee}.sme-condition-dialog-error p{color:#cbbfc1}.sme-condition-dialog-error button{border:1px solid #70666a;border-radius:7px;background:#373439;color:#fff;padding:8px 11px}
body.sme-premium-ui:not(.customer-portal-mode) :is(.file-card-main b,.photo-gallery-meta b,.sme-condition-photo small){color:#fff!important;opacity:1!important;font-weight:850!important;text-shadow:0 1px 2px rgba(0,0,0,.95)}
body.sme-premium-ui:not(.customer-portal-mode) .file-card-main b{display:block;width:fit-content;max-width:100%;padding:4px 7px;border:1px solid #454549;border-radius:6px;background:#151518!important;font-size:11px!important;line-height:1.3}
body.sme-premium-ui:not(.customer-portal-mode) .file-card-main span,
body.sme-premium-ui:not(.customer-portal-mode) .file-card-main small{color:#d9d9dc!important;opacity:1!important}
body.sme-premium-ui:not(.customer-portal-mode) .sme-condition-photo small{display:block;min-width:0;padding:5px 6px;border:1px solid #454045;border-radius:5px;background:#151416!important;font-size:10px!important;line-height:1.25}
body.sme-premium-ui:not(.customer-portal-mode) .photo-gallery-meta b{display:block;min-width:0;max-width:100%;padding:5px 7px;border:1px solid #454549;border-radius:6px;background:#17171a!important;font-size:11px!important}
.sme-condition-chip:focus-visible,.sme-condition-dialog button:focus-visible,.sme-condition-add-photo:focus-within{outline:3px solid #ffbb87;outline-offset:2px}
@media(max-width:800px){.sme-condition-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sme-condition-dialog{width:calc(100vw - 10px);max-width:calc(100vw - 10px)}.sme-condition-dialog-body{padding:10px}.sme-condition-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.sme-condition-dialog-body{scroll-behavior:auto}}
