/* GURU-ASISTAN-001 — "Guru'ya sor" (tokens only; above the phone's bottom bar) */
.guru-root { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.guru-root > * { pointer-events: auto; }
.guru-fab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; }
.guru-fab:hover { background: var(--accent-hover); }
.guru-fab:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.guru-fab.open { background: var(--inverse-bg, var(--text)); }
.guru-panel { width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.guru-panel[hidden] { display: none; }
.guru-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.guru-head .grow { flex: 1; }
.guru-log { overscroll-behavior: contain; flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.guru-empty p { margin: 0 0 10px; color: var(--text-2); font-size: 13px; }
.guru-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.guru-msg { display: flex; }
.guru-msg.me { justify-content: flex-end; }
.guru-bubble { max-width: 92%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.guru-msg.me .guru-bubble { background: var(--accent-soft); color: var(--text); }
.guru-msg.ai .guru-bubble { background: var(--surface-3); color: var(--text); }
.guru-summary { margin: 0 0 6px; font-weight: 600; }
.guru-steps { margin: 0 0 6px; padding-left: 18px; }
.guru-steps li { margin: 2px 0; }
.guru-note { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; color: var(--warn-fg, var(--text-2)); }
.guru-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); }
.guru-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.guru-links a.btn { white-space: normal; height: auto; min-height: 30px; max-width: 100%; text-align: left; line-height: 1.3; padding-top: 5px; padding-bottom: 5px; }
.guru-line { margin: 0 0 4px; }
.guru-step { margin: 2px 0 2px 10px; }
.guru-tag.ok { color: var(--ok-fg, var(--text-2)); } .guru-tag.warn { color: var(--warn-fg, var(--text-2)); } .guru-tag.stop { color: var(--stop-fg, var(--text-2)); } .guru-tag.accent { color: var(--accent); }
.guru-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0; padding: 6px 8px; border: 1px dashed var(--border-strong); border-radius: var(--r-md, 8px); }
.guru-head .guru-meta { margin: 0; }
.guru-meta { margin-top: 6px; font-size: 11px; color: var(--text-3); }
.guru-error { margin: 0; color: var(--stop-fg, var(--text)); }
.guru-pending { margin: 0; color: var(--text-3); }
.guru-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.guru-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; font: inherit; font-size: 14px; }
.guru-foot { padding: 0 12px 10px; font-size: 11px; color: var(--text-3); }
@media (max-width: 900px) {
  .guru-root { right: 12px; bottom: calc(var(--bottom-nav-h, 60px) + 12px); }
  .guru-fab > span:not(.gm) { display: none; }
  .guru-fab { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .guru-panel { width: calc(100vw - 24px); height: calc(100vh - var(--bottom-nav-h, 60px) - 100px); height: calc(100dvh - var(--bottom-nav-h, 60px) - 100px); }
}

/* GURU-IKONIK-001 — one recognizable Guru: a warm orb with two eyes. States are light CSS only (no provider, no image):
   listening (soft breath) · thinking (eyes glance, dots) · preparing (a turning arc) · presenting (a brief glow). */
.guru-avatar { --g1: var(--accent); --g2: #f2b705; position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 19%), linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 0 0 2px var(--surface); }
.guru-avatar .guru-eyes { position: absolute; left: 7px; right: 7px; top: 11px; height: 5px; display: flex; justify-content: space-between; }
.guru-avatar .guru-eyes i { width: 4px; height: 5px; border-radius: 2px; background: #fff; }
.guru-avatar[data-state="listening"] { animation: guru-breath 3.2s ease-in-out infinite; }
.guru-avatar[data-state="thinking"] .guru-eyes { animation: guru-glance 1.2s ease-in-out infinite; }
.guru-avatar[data-state="thinking"]::after { content: '···'; position: absolute; right: -14px; top: 3px; font-size: 13px; letter-spacing: 1px; color: var(--muted, #999); animation: guru-blink 1s steps(2) infinite; }
.guru-avatar[data-state="preparing"]::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--g2); animation: guru-spin .9s linear infinite; }
.guru-avatar[data-state="presenting"] { animation: guru-glow 1.4s ease-out 1; }
.guru-fab .guru-avatar { width: 24px; height: 24px; box-shadow: none; }
.guru-fab .guru-avatar .guru-eyes { left: 6px; right: 6px; top: 9px; }
@keyframes guru-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes guru-glance { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-1.5px); } 70% { transform: translateX(1.5px); } }
@keyframes guru-blink { 50% { opacity: .2; } }
@keyframes guru-spin { to { transform: rotate(360deg); } }
@keyframes guru-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g2) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
/* brand-knowledge ring: drawn only from the server's real measure (`knowledge_ring`); otherwise a sentence */
.guru-ring { --p: 0; width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0); display: grid; place-items: center; }
.guru-ring::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); }
.guru-ring-text { font-size: 12px; color: var(--muted, #888); }
@media (prefers-reduced-motion: reduce) { .guru-avatar, .guru-avatar *, .guru-avatar::before, .guru-avatar::after { animation: none !important; } }
.guru-panel > [data-guru-voice-note] { margin: 0; padding: 4px 12px 0; }   /* GURU-IKONIK-001 voice note */

/* GURU-AKSIYON-001 — the post card in the chat */
.guru-post { display: grid; gap: 8px; }
.guru-post-media img { width: 100%; max-width: 420px; border-radius: 10px; display: block; }
.guru-post-text { white-space: pre-wrap; margin: 0; }
.guru-fix { display: flex; gap: 6px; }
.guru-fix input { flex: 1; min-width: 0; }
.guru-progress { font-style: italic; }

/* GURU-HER-SEY-002 PREPARE card: the flow's form in the chat (tokens only) */
.gm-prepare { display: grid; gap: 8px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-prepare > .btn-row, .gm-prepare > .guru-meta { grid-column: 1 / -1; }
@media (max-width: 600px) { .gm-prepare { grid-template-columns: 1fr; } }
.gm-prepare .gm-field { display: grid; gap: 2px; font-size: 12px; }
.gm-services { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gm-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.gm-prepare .gm-field.gm-wide { grid-column: 1 / -1; }
.gm-mode p { margin: 0 0 8px; }
.gm-prepare .gm-field span { color: var(--text-2); }
.gm-prepare .gm-field input { width: 100%; }
.gm-prepare .gm-services .gm-check input { width: auto; flex: none; }
.gm-prepare .gm-services .gm-check span { white-space: nowrap; }
/* GURU-NIYET-001: "Yanlış anladın" — quiet, one click under an answer */
.guru-misroute { margin-top: 4px; display: flex; justify-content: flex-end; }
.guru-misroute .btn { font-size: 12px; color: var(--muted, #888); }
/* GURU-NIYET-001 (founder 2026-10-25): ONE small Guru button on every page but Bugün (Bugün IS Guru — guru-mascot.css hides it
   there); the same conversation opens. Icon only; the name stays in its aria-label / title. */
.guru-fab { width: 44px; height: 44px; padding: 0; justify-content: center; }
.guru-fab > span:not(.gm) { display: none; }
