/* Smart Certificate Scanner — complements the existing modal, language switch and mobile cards. */
.smart-scan-summary {
  display: grid;
  gap: 7px;
  padding: 16px 17px;
  margin: 12px 0;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 9%, var(--raised));
  color: var(--ink);
}
.smart-scan-summary > strong { font-size: 15px; font-weight: 800; letter-spacing: .005em; }
.smart-scan-summary > p { color: var(--ink); font-size: 13px; line-height: 1.6; opacity: .9; }
.smart-scan-summary-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; font-size: 12px; font-weight: 700; }
.smart-scan-summary-bottom > span { display: inline-flex; align-items:center; gap:6px; }
.smart-scan-remove { padding: 7px 10px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.smart-scan-remove:hover { border-color: var(--accent); }
.smart-scan-card {
  min-width: 0;
  margin: 11px 0 0;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--raised) 87%, transparent);
  display: grid;
  gap: 9px;
  text-align: start;
}
.smart-scan-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.smart-scan-top > strong { font-weight: 800; font-size: 13px; }
.smart-scan-status { font-size: 12px; line-height: 1.45; padding: 5px 9px; border-radius: 100px; font-weight: 700; unicode-bidi: isolate; max-width: 100%; white-space: normal; }
.smart-scan-status.new, .smart-scan-status.renewal { border:1px solid #16825480; color:#0a9567; background:#07966917; }
.smart-scan-status.exact, .smart-scan-status.likely, .smart-scan-status.queued { border:1px solid #e75b5980; color:#e56b67; background:#d6524b16; }
.smart-scan-status.older, .smart-scan-status.possible, .smart-scan-status.unverified, .smart-scan-status.incomplete { border:1px solid #d49a5680; color:#dba055; background:#b96b2015; }
.smart-scan-status.related { border:1px solid #6f94c870; color:#6f9ee8; background:#5b83c315; }
.smart-scan-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.smart-scan-folder { display: grid; min-width: min(100%, 190px); flex: 1 1 190px; gap: 4px; font-size: 12px; color:var(--ink); font-weight:600; }
.smart-scan-folder > select { width: 100%; min-height: 39px; background:var(--raised); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:6px 9px; font-size:13px; line-height:1.4; max-width:100%; }
.smart-scan-suggestion { display: grid; gap: 4px; flex: 1 1 180px; min-width:0; }
.smart-scan-suggestion > small { font-size:11px; color:var(--muted); }
.smart-suggest-button { border:1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius:8px; background:color-mix(in srgb, var(--accent) 13%, var(--raised)); color:var(--ink); cursor:pointer; padding:9px 11px; font-size:12px; line-height:1.35; text-align:start; overflow-wrap:anywhere; }
.smart-scan-match { border-radius:9px; border:1px solid var(--line); padding:10px 11px; background:var(--raised); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.smart-scan-match-line { display:flex; align-items:center; flex-wrap:wrap; gap:5px 10px; min-width:0; }
.smart-scan-match-line > strong {font-size:12px; font-weight:700; overflow-wrap:anywhere;}
.smart-scan-match-line > time {font-size:12px; color:var(--ink); font-variant-numeric:tabular-nums; unicode-bidi:isolate; white-space:nowrap;}
.smart-scan-muted, .smart-scan-hint { font-size:11px; line-height:1.5; color:var(--muted); }
.smart-scan-view { font-size:12px; line-height:1.45; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:var(--raised); color:var(--accent); cursor:pointer; font-weight:650; }
.smart-scan-view:hover { border-color:var(--accent); }
.smart-scan-approval {display:flex; align-items:flex-start; gap:9px; background:color-mix(in srgb, #e59a37 9%, var(--raised)); border-radius:8px; padding:10px; cursor:pointer; font-size:12px; font-weight:650; line-height:1.6;}
.smart-scan-approval input {width:17px; height:17px; margin:3px 0 0; flex:0 0 auto; accent-color:var(--accent);}
.smart-scan-card button:focus-visible, .smart-scan-card select:focus-visible, .smart-scan-card input:focus-visible {outline:2px solid var(--accent); outline-offset:2px;}
[dir="rtl"] .smart-scan-grid, [dir="rtl"] .smart-scan-match {direction:rtl;}
@media (max-width: 680px) {
  .smart-scan-summary { margin:8px 0; padding:12px; }
  .smart-scan-card { padding:10px; gap:8px; }
  .smart-scan-status { font-size:11px; border-radius:9px; }
  .smart-scan-folder { flex-basis:100%; }
  .smart-scan-suggestion { flex-basis:100%; }
  .smart-scan-approval {padding:9px;}
}
.category-heading { flex-wrap: wrap; gap: 10px; }
.smart-launch { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 13px; border-radius:10px; border:1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background:color-mix(in srgb, var(--accent) 11%, var(--raised)); color:var(--ink); font-size:13px; font-weight:750; cursor:pointer; }
.smart-launch:hover { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 18%, var(--raised)); }
.smart-launch:focus-visible {outline:2px solid var(--accent); outline-offset:2px;}
@media (max-width:600px){.smart-launch {min-height:40px;flex:1 1 auto}.category-heading .primary {flex:1 1 auto}}
