.smart-review,.smart-editor{color:var(--ink);min-width:0}.smart-review header h3{overflow-wrap:anywhere}.smart-summary{display:flex;flex-wrap:wrap;gap:10px 20px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.smart-summary span{font-size:13px}.smart-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.smart-fields label{display:grid;gap:5px;font-size:12px;font-weight:600;min-width:0}.smart-fields input,.smart-fields select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:inherit;font:inherit}.smart-row{min-width:0;margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.smart-row legend{padding:0 6px}.smart-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.smart-actions button,.smart-review>button{min-height:38px;white-space:normal;max-width:100%;cursor:pointer}.smart-actions label,.smart-memory{display:flex;align-items:center;gap:8px;font-size:12px}.smart-actions input,.smart-memory input{width:18px;height:18px;flex:0 0 18px}.smart-memory{margin:12px 0}.smart-suggestion,.smart-editor,.smart-pattern{display:grid;gap:6px;margin:12px 0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.smart-suggestion small,.smart-pattern small{line-height:1.5}.smart-warning{padding:12px;border-left:3px solid #c68c25;background:rgba(198,140,37,.08);border-radius:8px}.smart-warning p{overflow-wrap:anywhere}.smart-duplicate{border-color:#c68c25}.smart-patterns{margin-top:20px}.smart-submit{justify-content:flex-end}.smart-editor span{font-size:12px}.smart-review button:focus-visible,.smart-review input:focus-visible,.smart-review select:focus-visible,.smart-editor button:focus-visible{outline:2px solid #10b96a;outline-offset:3px}.smart-review button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.smart-fields{grid-template-columns:minmax(0,1fr)}.smart-row{padding:12px}.smart-actions button{flex:1 1 130px;min-height:44px}.smart-summary{gap:8px 16px}.smart-submit{position:static}.smart-memory{align-items:flex-start}}

/* Import review: one geometry for native dates, text fields and selects. */
#quickModal .smart-review{--review-control-height:40px;--review-control-font:14px}
#quickModal .smart-review>header h3{font-size:17px;line-height:1.3;margin:4px 0}
#quickModal .smart-review>header p{font-size:12px;line-height:1.5;margin:6px 0 10px}
#quickModal .smart-review .smart-summary{gap:6px 16px;padding:10px 12px;border-radius:10px}
#quickModal .smart-review .smart-summary span{font-size:12px;line-height:1.5}
#quickModal .smart-review .smart-row{margin:12px 0;padding:12px;border-radius:10px}
#quickModal .smart-review .smart-row legend{font-size:12px;line-height:1.4;font-weight:700}
#quickModal .smart-review .smart-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px}
#quickModal .smart-review .smart-fields>label{display:grid;grid-template-rows:16px var(--review-control-height);align-content:start;align-items:start;gap:6px;margin:0;min-width:0;font-size:12px;font-weight:600;line-height:16px;text-align:left}
#quickModal .smart-review .smart-fields :is(input,select){display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:var(--review-control-height);min-height:var(--review-control-height)!important;max-height:var(--review-control-height);margin:0;padding:0 12px!important;border:1px solid var(--line);border-radius:9px;background:var(--input-bg,var(--surface));color:var(--ink);font-family:inherit;font-size:var(--review-control-font);font-weight:550;line-height:normal;text-align:left;align-self:start}
#quickModal .smart-review .smart-fields input[type=date]{height:var(--review-control-height);appearance:none;-webkit-appearance:none;overflow:hidden}
#quickModal .smart-review .smart-fields input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
#quickModal .smart-review .smart-fields input[type=date]::-webkit-datetime-edit{padding:0;line-height:normal}
#quickModal .smart-review .smart-actions{gap:8px 12px;margin:8px 0 12px}
#quickModal .smart-review :is(.smart-actions label,.smart-memory){font-size:12px;line-height:1.4}
#quickModal .smart-review :is(.smart-actions,.smart-memory) input[type=checkbox]{width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px}
#quickModal .smart-review :is(.smart-suggestion,.smart-pattern){margin:10px 0;padding:10px;gap:5px}
#quickModal .smart-review :is(.smart-suggestion,.smart-pattern)>strong{font-size:12px;line-height:1.4}
#quickModal .smart-review .smart-memory{margin:10px 0 0}
#quickModal .smart-review .smart-patterns{margin-top:14px}
#quickModal .smart-review .smart-submit{margin-bottom:0}
@media(max-width:760px){
 #quickModal .smart-review{--review-control-height:44px;--review-control-font:16px}
 #quickModal .smart-review .smart-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 #quickModal .smart-review .smart-fields>label:has([data-field=description]){grid-column:1/-1}
}
@media(max-width:359px){#quickModal .smart-review .smart-fields{grid-template-columns:minmax(0,1fr)}}

/* Safari date text lives in native inner boxes: center those on the same baseline. */
#quickModal .smart-review .smart-fields input[type=date]{line-height:calc(var(--review-control-height) - 2px)}
#quickModal .smart-review .smart-fields input[type=date]::-webkit-datetime-edit{display:inline-flex;align-items:center;height:100%;box-sizing:border-box;line-height:normal}
#quickModal .smart-review .smart-fields input[type=date]::-webkit-date-and-time-value{display:flex;align-items:center;height:100%;min-height:0;line-height:normal;margin:0}
#quickModal .smart-review .smart-account-draft{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
#quickModal .smart-review .smart-account-draft>strong,#quickModal .smart-review .smart-account-draft>p,#quickModal .smart-review .smart-account-draft>.smart-actions{grid-column:1/-1;margin:0}
#quickModal .smart-review .smart-account-draft>strong{font-size:13px}
#quickModal .smart-review .smart-account-draft>p{font-size:12px;line-height:1.5}
#quickModal .smart-review .smart-account-draft>label{display:grid;gap:6px;min-width:0;font-size:12px;line-height:16px;font-weight:600}
#quickModal .smart-review .smart-account-draft :is(input,select){height:var(--review-control-height);min-height:var(--review-control-height);padding:0 12px;font-size:var(--review-control-font);font-family:inherit;background:var(--input-bg,var(--surface));color:var(--ink)}
@media(max-width:600px){#quickModal .smart-review .smart-account-draft{grid-template-columns:minmax(0,1fr)}}
