.issuer-actions, .search-row, .dialog-heading, .dialog-actions, .issuer-row, .candidate-row { display: flex; }
.issuer-actions { align-items: center; gap: 8px; }
.issuer-list { flex: 1; min-height: 0; margin-right: -8px; padding-right: 8px; overflow-y: auto; scrollbar-color: #9aafc2 #edf1f5; scrollbar-width: thin; }
.issuer-list::-webkit-scrollbar { width: 8px; }
.issuer-list::-webkit-scrollbar-track { background: #edf1f5; }
.issuer-list::-webkit-scrollbar-thumb { border: 2px solid #edf1f5; border-radius: 8px; background: #9aafc2; }
.issuer-row { align-items: center; justify-content: space-between; gap: 16px; padding: 15px 4px; border-bottom: 1px solid #edf0f3; }
.issuer-row:last-child { border: 0; }
.issuer-row h3 { margin: 0; color: #263b55; font-size: 14px; font-weight: 600; line-height: 1.4; }
.issuer-row p, .candidate-row small { display: block; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.empty-state { margin: 0; color: var(--muted); font-size: 14px; }
.icon-button { display: grid; flex: 0 0 var(--control-height); width: var(--control-height); height: var(--control-height); place-items: center; padding: 0; border: 1px solid #b8cadb; border-radius: var(--control-radius); color: #59708a; background: #fff; }
.icon-button.button-primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-button:hover:not(:disabled) { border-color: #7e9bb8; color: #315a86; background: #f1f6fa; }
.icon-button.button-primary:hover:not(:disabled) { border-color: #1a3e65; color: #fff; background: #1a3e65; }
.issuer-row .icon-button:hover:not(:disabled), .condition-delete:hover:not(:disabled) { border-color: #d8a5a5; color: #a63232; background: #fff8f8; }

.issuer-dialog, .confirm-dialog, .api-key-dialog { padding: 26px; border: 0; border-radius: 12px; box-shadow: 0 18px 60px rgb(18 35 56 / 30%); }
.issuer-dialog { width: min(620px, calc(100% - 32px)); max-height: min(720px, calc(100% - 48px)); }
.confirm-dialog { width: min(420px, calc(100% - 32px)); }
.api-key-dialog { width: min(440px, calc(100% - 32px)); }
.issuer-dialog::backdrop, .confirm-dialog::backdrop, .api-key-dialog::backdrop { background: rgb(15 30 49 / 48%); }
.dialog-heading { align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-close { width: var(--control-height); height: var(--control-height); padding: 0; border: 0; border-radius: var(--control-radius); color: #63758b; background: #eef2f5; font-size: 24px; line-height: 1; }
.dialog-close:hover { color: #263b55; background: #e2e9ef; }
.field-label { display: block; margin-bottom: 8px; color: #53657c; font-size: 13px; font-weight: 600; }
.search-row { gap: 10px; }
input[type="search"] { width: 100%; min-width: 0; height: var(--control-height); padding: 0 12px; border: 1px solid #cbd6e1; border-radius: var(--control-radius); outline: 0; color: var(--text); }
input[type="search"]:focus { border-color: #345e8d; box-shadow: 0 0 0 3px rgb(52 94 141 / 12%); }
.dialog-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.api-key-form input { width: 100%; height: var(--control-height); padding: 0 12px; border: 1px solid #cbd6e1; border-radius: var(--control-radius); outline: 0; color: var(--text); }
.api-key-form input:focus { border-color: #345e8d; box-shadow: 0 0 0 3px rgb(52 94 141 / 12%); }
.api-key-status { min-height: 20px; margin: 8px 0 0; color: #53657c; font-size: 13px; }
.api-key-status.is-success { color: #2f6e4a; }
.search-results { margin-top: 16px; padding: 15px; border: 1px solid #d7e2ec; border-radius: 8px; background: #f8fafc; }
.search-message { margin-bottom: 12px; color: #53657c; font-size: 13px; }
.search-message.error-message { padding: 9px 10px; border-radius: 5px; background: #fff1f1; }
.candidate-list { display: grid; gap: 3px; max-height: 260px; overflow-y: auto; }
.candidate-row { gap: 11px; align-items: flex-start; padding: 9px 6px; border-radius: 5px; }
.candidate-row:hover { background: #eef3f8; }
.candidate-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.candidate-row strong { display: block; color: #263b55; font-size: 13px; font-weight: 600; line-height: 1.35; }
.dialog-actions { justify-content: flex-end; gap: 9px; margin-top: 13px; }
.confirm-dialog h2 { margin-bottom: 10px; }
.confirm-dialog p { margin: 0; color: #60738d; font-size: 14px; line-height: 1.45; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 2; padding: 12px 15px; border-radius: 7px; color: #fff; background: var(--blue); box-shadow: 0 8px 24px rgb(23 42 69 / 20%); font-size: 14px; font-weight: 600; }

@media (max-width: 760px) { .issuer-list { max-height: 360px; } }
@media (max-width: 480px) { .issuer-dialog, .confirm-dialog { padding: 20px; } }
