/* ATC Antrenörü (29 Ekim 2026) — sim.css üzerine, koyu tema. Tüm sınıflar atc- önekli. */
.atc-app { --atc-bd: rgba(140,180,220,.2); --atc-bd2: rgba(140,180,220,.32); --atc-mu: #93aec6; --atc-green: #2ed19b; --atc-amber: #f5a623; --atc-red: #ff6b6b; --atc-blue: #2f8bf5; --atc-violet: #9b8cff; --atc-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #eaf3ff; }
.atc-app *, .atc-app *::before { box-sizing: border-box; }
.atc-app [hidden] { display: none !important; }
.atc-mu { color: var(--atc-mu); } .atc-small { font-size: .84rem; }
.atc-card { border: 1px solid var(--atc-bd); border-radius: 14px; background: rgba(10,32,56,.55); padding: 20px; margin: 0 0 16px; }
.atc-card h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; color: #fff; }

/* Kurulum */
.atc-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 16px; }
.atc-steps > li { padding: 14px; border: 1px solid var(--atc-bd); border-radius: 12px; background: rgba(2,16,32,.35); transition: box-shadow .3s; }
.atc-steps > li.pulse { box-shadow: 0 0 0 2px var(--atc-amber); }
.atc-lbl { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--atc-mu); margin: 0 0 8px; }
.atc-lbl label { margin: 0; }
.atc-lbl.atc-sub { margin-top: 14px; }
.atc-app input[type=text], .atc-app select { width: 100%; max-width: 280px; height: 44px; padding: 0 12px; border: 1px solid var(--atc-bd2); border-radius: 8px; background: #0a2038; color: #fff; font: 700 1.05rem var(--atc-mono); letter-spacing: .06em; }
.atc-app input[type=text].bad { border-color: var(--atc-red); }
#atcCsMsg { margin-top: 6px; font-family: var(--atc-mono); }
.atc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.atc-seg button { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--atc-bd2); background: rgba(10,32,56,.7); color: #dbe9f6; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.atc-seg button small { font: 600 .7rem var(--atc-mono); color: var(--atc-mu); margin-top: 2px; }
.atc-seg button.on { background: var(--atc-blue); border-color: var(--atc-blue); color: #fff; }
.atc-seg button.on small { color: #dceaff; }
.atc-seg button:disabled { opacity: .4; cursor: not-allowed; }
.atc-seg button:focus-visible { outline: 2px solid #9fd0ff; outline-offset: 2px; }
.atc-missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atc-missions button { min-width: 0; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.atc-missions button b { font-family: var(--atc-mono); }
.atc-missions button small { font-size: .74rem; opacity: .8; }
.atc-missions button.k1 { border-left: 3px solid var(--atc-green); }
.atc-missions button.k2 { border-left: 3px solid var(--atc-amber); }
.atc-missions button.k3 { border-left: 3px solid var(--atc-violet); }
.atc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--atc-mu); }
.atc-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.atc-legend .k1::before { background: var(--atc-green); } .atc-legend .k2::before { background: var(--atc-amber); } .atc-legend .k3::before { background: var(--atc-violet); }
#atcKindNote { margin-top: 8px; }
.atc-sw { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; cursor: pointer; }
.atc-sw input { width: 18px; height: 18px; accent-color: var(--atc-green); }
.atc-sw.sm { margin: 0; font-size: .8rem; color: var(--atc-mu); }

/* Düğmeler */
.atc-b { min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--atc-blue); background: var(--atc-blue); color: #fff; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
.atc-b.o { background: transparent; border-color: var(--atc-bd2); color: #dbe9f6; }
.atc-b.sm { min-height: 36px; padding: 5px 11px; font-size: .8rem; }
.atc-b[aria-pressed=true] { border-color: var(--atc-amber); color: var(--atc-amber); }
.atc-b:focus-visible { outline: 2px solid #9fd0ff; outline-offset: 2px; }
.atc-go { width: 100%; min-height: 54px; font-size: 1.05rem; background: var(--atc-green); border-color: var(--atc-green); color: #03211a; }
.atc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Çalışma ekranı */
.atc-run { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-bottom: 16px; }
.atc-chatwrap { border: 1px solid var(--atc-bd); border-radius: 14px; background: #04111f; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.atc-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--atc-bd); background: rgba(10,32,56,.8); }
.atc-freq { display: flex; align-items: center; gap: 8px; font: 700 .95rem var(--atc-mono); }
.atc-led { width: 10px; height: 10px; border-radius: 50%; background: var(--atc-green); box-shadow: 0 0 8px var(--atc-green); }
.atc-badge { font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: rgba(245,166,35,.18); color: var(--atc-amber); }
.atc-top-b { display: flex; flex-wrap: wrap; gap: 6px; }
.atc-phases { list-style: none; display: flex; gap: 4px; padding: 8px 12px 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.atc-phases li { flex: 1 0 auto; text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .03em; padding: 5px 8px; border-radius: 6px; background: rgba(140,180,220,.08); color: #6d8aa3; white-space: nowrap; }
.atc-phases li.done { background: rgba(46,209,155,.14); color: var(--atc-green); }
.atc-phases li.now { background: var(--atc-blue); color: #fff; }
.atc-task { padding: 8px 12px; font-size: .82rem; color: var(--atc-mu); border-bottom: 1px solid var(--atc-bd); }
.atc-task b { color: #fff; }
.atc-chat { height: min(62vh, 560px); overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.atc-chat > :first-child { margin-top: auto; } /* mesajlar yazma kutusunun hemen üstünde birikir */
.atc-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; position: relative; animation: atcIn .18s ease-out; }
@keyframes atcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.atc-msg .who { font: 800 .68rem var(--atc-mono); letter-spacing: .06em; color: var(--atc-mu); margin-bottom: 3px; }
.atc-msg .tx { font-family: var(--atc-mono); font-weight: 600; word-break: break-word; }
.atc-msg.atc { align-self: flex-start; background: #0d2a47; border: 1px solid #1d4c78; border-top-left-radius: 4px; padding-right: 38px; }
.atc-msg.atc .who { color: #7cc0ff; }
.atc-msg.atc.other { background: #12202f; border-style: dashed; border-color: #2a3f55; opacity: .8; padding-right: 12px; }
.atc-msg.atc.other .who { color: #9fb3c8; }
.atc-msg .tr { display: none; margin-top: 5px; font-size: .8rem; color: var(--atc-mu); border-top: 1px dashed var(--atc-bd); padding-top: 4px; }
.atc-chat.show-tr .atc-msg .tr { display: block; }
.atc-rep { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: rgba(255,255,255,.06); cursor: pointer; font-size: .85rem; }
.atc-msg.me { align-self: flex-end; background: #123d2e; border: 1px solid #1f6b50; border-top-right-radius: 4px; }
.atc-msg.me .who { color: var(--atc-green); text-align: right; }
.atc-msg.me.skipped { opacity: .7; border-style: dashed; }
.atc-msg.sys { align-self: center; max-width: 94%; background: transparent; border: 1px dashed var(--atc-bd2); color: #c8d9ea; font-size: .84rem; text-align: center; }
.atc-msg.sys.tip { border-color: rgba(245,166,35,.45); color: #f3e3c4; }
.atc-msg.sys.skip { border-color: rgba(155,140,255,.5); color: #d9d3ff; background: rgba(155,140,255,.07); }
.atc-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.atc-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #7cc0ff; animation: atcDot 1s infinite; }
.atc-msg.typing span:nth-child(2) { animation-delay: .15s; } .atc-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes atcDot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.atc-msg.coach { align-self: stretch; max-width: none; font-size: .85rem; background: rgba(255,107,107,.07); border: 1px solid rgba(255,107,107,.35); }
.atc-msg.coach.good { background: rgba(46,209,155,.06); border-color: rgba(46,209,155,.35); }
.atc-msg.coach.mini { align-self: flex-end; padding: 0 4px; background: none; border: 0; font-size: .8rem; margin-top: -6px; }
.atc-msg.coach .hd { font-weight: 800; margin-bottom: 4px; }
.atc-msg.coach ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.atc-msg.coach li.ok { color: var(--atc-green); } .atc-msg.coach li.no { color: var(--atc-red); font-weight: 700; } .atc-msg.coach li.soft { color: var(--atc-amber); }
.atc-msg.coach .model { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #020d19; font-family: var(--atc-mono); font-size: .82rem; }
.atc-msg.coach .mu { margin-top: 6px; color: var(--atc-mu); }
.atc-msg.coach.end { background: rgba(47,139,245,.08); border-color: rgba(47,139,245,.4); font-size: .9rem; }
.atc-msg.coach.end ul { display: block; padding-left: 18px; list-style: disc; }
.atc-msg.coach.end p { margin: 8px 0 4px; }
.atc-score { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.atc-score b { font: 800 2.2rem var(--atc-mono); color: var(--atc-green); }
.atc-score span { color: var(--atc-mu); font-size: .84rem; }
.atc-hint { margin: 0 12px 8px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--atc-amber); background: rgba(245,166,35,.08); font: 600 .84rem var(--atc-mono); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.atc-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--atc-bd); background: rgba(10,32,56,.6); align-items: stretch; }
.atc-input textarea { flex: 1; min-width: 0; resize: none; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--atc-bd2); background: #0a2038; color: #fff; font: 600 .95rem var(--atc-mono); text-transform: uppercase; }
.atc-input textarea::placeholder { text-transform: none; color: #6d8aa3; }
.atc-mic { width: 52px; flex: none; border-radius: 10px; border: 1px solid var(--atc-bd2); background: rgba(10,32,56,.8); font-size: 1.3rem; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.atc-mic.off { opacity: .45; filter: grayscale(1); }
.atc-msg.sys .atc-b { margin: 6px 4px 0; text-decoration: none; }
.atc-msg.sys.wait { display: flex; align-items: center; gap: 12px; border-color: rgba(245,166,35,.55); background: rgba(245,166,35,.08); color: #f3e3c4; font-weight: 700; }
.atc-msg.sys.wait .cd { font: 800 1.5rem var(--atc-mono); color: var(--atc-amber); min-width: 1.4em; }
.atc-msg.sys.ask { border-color: var(--atc-blue); background: rgba(47,139,245,.08); color: #fff; font-weight: 700; }
.atc-msg.sys.ask .atc-btns { justify-content: center; margin-top: 8px; }
.atc-msg.sys.ask .mu { font-weight: 400; color: var(--atc-mu); }
.atc-mic.on { background: var(--atc-red); border-color: var(--atc-red); animation: atcRec 1s infinite; }
@keyframes atcRec { 50% { box-shadow: 0 0 0 6px rgba(255,107,107,.25); } }
.atc-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px 12px; background: rgba(10,32,56,.6); }

/* Diz tahtası */
.atc-kb { border: 1px solid var(--atc-bd); border-radius: 14px; background: #f3efe2; color: #1d2733; padding: 14px; position: sticky; top: 80px; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.atc-kb h3 { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; color: #5a4a2a; }
.atc-kb dl { margin: 0 0 12px; }
.atc-kb dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #cdbf9b; transition: background .4s; }
.atc-kb dl > div.fresh { background: rgba(245,166,35,.35); }
.atc-kb dt { font-size: .76rem; font-weight: 700; color: #6b5a36; }
.atc-kb dd { margin: 0; font: 700 .84rem var(--atc-mono); text-align: right; color: #10233a; }
.atc-kb .atc-mu { color: #6b5a36; margin: 0; }

@media (max-width: 991.98px) {
  .atc-run { grid-template-columns: 1fr; }
  .atc-kb { position: static; order: -1; }
  .atc-kb dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .atc-kb > p { display: none; }
}
@media (max-width: 575.98px) {
  .atc-card { padding: 14px; }
  .atc-chat { height: 46vh; height: 46svh; min-height: 220px; padding: 10px 8px; }
  .atc-msg { max-width: 94%; font-size: .88rem; }
  .atc-input { padding: 8px; flex-wrap: wrap; }
  .atc-input textarea { order: -1; flex: 1 1 100%; min-height: 5.2em; font-size: 16px; line-height: 1.35; } /* 16px: iOS yakınlaştırmasın */
  .atc-mic { height: 46px; }
  .atc-input .atc-b { flex: 1; padding: 8px 10px; }
  .atc-kb dl { grid-template-columns: 1fr; }
}

/* Üye uçuş geçmişi (29 Ekim 2026) */
.atc-hist { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--atc-bd2); }
.atc-hist h3 { font-size: 1rem; margin: 0 0 10px; }
.atc-hist h4 { font-size: .86rem; margin: 10px 0 6px; color: #c8d9ea; }
.atc-hist a, .atc-hist-msg a { color: #7cc0ff; }
.atc-hist-top { display: flex; flex-wrap: wrap; gap: 10px; }
.atc-hist-top > div { flex: 1 1 120px; padding: 8px 10px; border: 1px solid var(--atc-bd2); border-radius: 10px; }
.atc-hist-top b { display: block; font: 800 1.3rem var(--atc-mono); }
.atc-hist-top span { font-size: .78rem; color: #9fb3c8; }
.atc-hist-top .up b { color: #4cd38a; } .atc-hist-top .down b { color: #f5a623; }
.atc-hist-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.atc-hist ol { margin: 0; padding-left: 20px; font-size: .88rem; }
.atc-hist-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: .86rem; }
.atc-hist-list li { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.atc-hist-list li span { color: #9fb3c8; min-width: 78px; }
.atc-hist-list li em { margin-left: auto; font-style: normal; font-weight: 700; }
.atc-hist-msg ul { margin: 4px 0 0; padding-left: 20px; }
