/* Sembol arama modali (search-modal.js). Masaüstünde ortada ~720px, mobilde tam ekran. */
.ssm-lock, .ssm-lock body { overflow: hidden; }
.ssm-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 10, 13, .55);
  display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px;
}
.ssm-backdrop[hidden] { display: none; }
.ssm-dialog {
  width: min(720px, 100%); max-height: min(680px, 84vh); display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35); overflow: hidden;
}
.ssm-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ssm-head svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.ssm-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 17px; padding: 6px 0; text-transform: uppercase;
}
.ssm-input::placeholder { text-transform: none; color: var(--text-3); }
.ssm-input::-webkit-search-cancel-button { display: none; }
.ssm-close {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
}
.ssm-close:hover { background: var(--surface-2); color: var(--text); }
.ssm-close svg { width: 18px; height: 18px; }
.ssm-chips { display: flex; flex: none; align-items: center; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.ssm-chips::-webkit-scrollbar { display: none; }
.ssm-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 30px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  border-radius: 999px; padding: 0 12px; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.ssm-chip:hover { color: var(--text); background: var(--surface-2); }
.ssm-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.ssm-section { padding: 10px 16px 4px; font-size: 12px; color: var(--text-3); }
.ssm-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.ssm-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 8px 16px; cursor: pointer; min-height: 48px;
}
.ssm-row:hover { background: var(--surface); }
.ssm-row[aria-selected="true"] { background: var(--accent-soft); }
.ssm-logo {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative;
  background: hsl(var(--h, 210) 55% 45%); color: #fff; font-weight: 700; font-size: 13px; flex: none;
}
.ssm-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ssm-logo img[hidden] { display: none; }
.ssm-main { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ssm-sym { font-weight: 700; font-size: 14px; white-space: nowrap; }
.ssm-name { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssm-kind {
  font-size: 11px; color: var(--text-2); background: var(--surface-2); border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.ssm-ex { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; text-align: right; }
.ssm-exline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; }
.ssm-flag { font-size: 14px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ssm-delay { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.ssm-delay[data-live] { color: var(--up); }
.ssm-msg { padding: 24px 16px; color: var(--text-2); font-size: 14px; text-align: center; }
.ssm-foot {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3); flex-wrap: wrap;
}
.ssm-foot a { color: inherit; }
.ssm-keys kbd {
  font: inherit; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 4px; margin: 0 2px;
}
@media (max-width: 640px) {
  .ssm-backdrop { padding: 0; }
  .ssm-dialog { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .ssm-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; }
  .ssm-kind { display: none; }
  .ssm-main { flex-direction: column; align-items: stretch; gap: 0; }
  .ssm-sym, .ssm-name { overflow: hidden; text-overflow: ellipsis; }
  .ssm-keys { display: none; }
}
