/* FSK AI — canlı sürüm eklentileri: bağlantı durumu, özel logo, eğitim merkezi ve kimlik koruması bileşenleri.
   Ana tasarım değişkenlerini (--accent, --bg) kullanır; diğer tonlar currentColor üzerinden türetilir. */

.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px; color: #c77700; background: color-mix(in oklab, #ff9500 14%, transparent); }
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: fsk-pulse 1.2s ease-in-out infinite; }
@keyframes fsk-pulse { 50% { opacity: .3; } }

.logo-img { object-fit: contain; border-radius: 22%; display: inline-block; flex: none; }
.hero-mark .logo-img { border-radius: 24%; }

.custom-swatch { position: relative; display: inline-grid; place-items: center; cursor: pointer; overflow: hidden; background: conic-gradient(from 90deg, #ff375f, #ff9500, #30c759, #14b8a6, #0a84ff, #6e6cf0, #ff375f); }
.custom-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.custom-swatch .i { color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); pointer-events: none; }

.logo-up { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-prev { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; flex: none; background: color-mix(in oklab, currentColor 5%, transparent); border: 1px solid color-mix(in oklab, currentColor 10%, transparent); }
.logo-prev img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; }
.logo-up-tx { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.logo-up-tx small { line-height: 1.45; }

.gf-list { display: grid; gap: 8px; margin-top: 10px; }
.gf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .gf-row { grid-template-columns: 1fr 1fr; } .gf-row > .muted { display: none; } }

.tr-tabs { margin: 18px 0 14px; flex-wrap: wrap; max-width: 100%; overflow-x: auto; }
.tr-tabs button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tr-tabs .badge { margin-left: 2px; }
.tr-table td { vertical-align: top; }
.tr-table .tr-q { min-width: 200px; max-width: 340px; }
.tr-table td:nth-child(2) { min-width: 220px; max-width: 420px; }
.tr-q small { display: block; margin-top: 4px; font-size: 11.5px; }
.clip2, .clip3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.clip2 { -webkit-line-clamp: 2; }
.clip3 { -webkit-line-clamp: 4; white-space: pre-wrap; }
td small.clip2 { margin-top: 3px; }

.fb-list { display: grid; gap: 12px; }
.fb-card { padding: 16px 18px; display: grid; gap: 10px; }
.fb-card.off { opacity: .6; }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-head .muted { font-size: 12.5px; }
.fb-q p, .fb-a p { margin: 2px 0 0; line-height: 1.5; }
.fb-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }

.tr-ctx { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; display: grid; gap: 8px; font-size: 13px; background: color-mix(in oklab, var(--accent) 8%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.tr-ctx .tag { margin: 2px 2px 0 0; display: inline-block; }
#trTestOut, #idTestOut { margin-top: 14px; }
#trTestOut .md, #idTestOut .md { font-size: 14.5px; line-height: 1.6; }

.ft-req { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.err { color: #e5484d; }
small.err { display: block; margin-top: 4px; }

.rule-test { display: grid; gap: 8px; }
.id-test .preview-box { margin-top: 12px; }

.empty-card .i.sm { vertical-align: -2px; }

@media (prefers-reduced-motion: reduce) { .live-pill .dot { animation: none; } }

/* Ayarlar → Klavye kısayolları: tuşlar yan yana, satırlar kompakt */
.set-pane .kbd-list { padding: 4px 0; }
.set-pane .kbd-list .kbd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 0; padding: 11px 16px; }
.set-pane .kbd-list .kbd-row > span:first-child { flex: 1; min-width: 0; }
.set-pane .kbd-list .kbd-row .keys { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 5px; flex: none; }
.set-pane .kbd-list .kbd-row .keys kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; margin: 0; border-radius: 7px; font: 500 12px/1 'Geist Mono', ui-monospace, monospace; border: 1px solid color-mix(in oklab, currentColor 16%, transparent); border-bottom-width: 2px; background: color-mix(in oklab, currentColor 6%, transparent); white-space: nowrap; }

/* Boş sohbet ekranında hazır öneri kartları yok */
.suggestions:empty { display: none; }

/* Profil kutusu: sabit yuvarlak avatar, uzun ad kesilir, paket bilgisi tek satırda sade */
.sb-profile { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 8px; padding: 9px 10px; border: 1px solid color-mix(in oklab, currentColor 9%, transparent); border-radius: 16px; background: color-mix(in oklab, currentColor 3%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.sb-profile:hover, .sb-profile[aria-expanded="true"] { background: color-mix(in oklab, currentColor 7%, transparent); border-color: color-mix(in oklab, currentColor 14%, transparent); }
.sb-profile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-av { flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; aspect-ratio: 1 / 1; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1; color: #fff; background: linear-gradient(145deg, color-mix(in oklab, var(--accent), white 22%), color-mix(in oklab, var(--accent), black 26%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 2px 8px color-mix(in oklab, var(--accent) 30%, transparent); }
.pf-tx { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.pf-tx b { font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tx small { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; color: color-mix(in oklab, currentColor 60%, transparent); }
.pf-plan { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pf-plan::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, currentColor 55%, transparent); }
.pf-plan.p-pro::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.pf-plan.p-free::before { background: #30c759; }
.pf-sep { opacity: .6; }
.pf-chev { flex: none; opacity: .45; transition: transform .2s ease; }
.sb-profile[aria-expanded="true"] .pf-chev { transform: rotate(180deg); }

/* Diğer avatarlar da hiçbir koşulda ovalleşmesin */
.avatar-u { flex-shrink: 0; aspect-ratio: 1 / 1; }
.pm-head > div { min-width: 0; }
.pm-head > div b, .pm-head > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Yazma alanı: daha ferah iç boşluk (masaüstünde 12 px, dar ekranlarda 10 px) */
#composer.composer { padding: 12px; }
@media (max-width: 640px) { #composer.composer { padding: 10px; } }

/* Modelleri içe aktar: arama + tür filtresi, görünen adlar */
.imp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.imp-tools .search-fld { flex: 1; min-width: 200px; }
.imp-nm { display: grid; gap: 1px; flex: 1; min-width: 0; }
.imp-nm b { font-size: 13.5px; font-weight: 600; }
.imp-nm .mono { font-size: 12px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
