/* «DojoKeeper · βοηθός AI» — the Γ2 «Τόρι» widget (next-version 166/184). Everything is scoped under .dka */
.dka { --dka-red: #e60000; --dka-red-ink: #c40010; --dka-ink: #0b1017; --dka-ink-2: #4b5462; --dka-ink-3: #5c6573; --dka-paper: #eceef1;
  --dka-sheet: #f8f9fa; --dka-line: rgba(11,16,23,.12); --dka-night: #0b1017; --dka-night-text: #eef1f5; --dka-night-muted: #9aa4b2;
  --dka-ease: cubic-bezier(.2,.8,.2,1); position: fixed; right: 22px; bottom: 22px; z-index: 2147483000;
  font-family: "Commissioner", "Segoe UI", system-ui, sans-serif; color: var(--dka-ink); }
.dka *, .dka *::before, .dka *::after { box-sizing: border-box; }
.dka .fig { display: block; fill: currentColor; }
.dka-launch { display: flex; align-items: center; gap: 10px; }
.dka-tip { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--dka-line); border-radius: 999px; padding: 6px 12px 6px 6px;
  font-weight: 700; font-size: .82rem; box-shadow: 0 8px 20px -14px rgba(11,16,23,.5); animation: dka-tip .6s var(--dka-ease) .6s both; }
.dka-hanko { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--dka-red); color: #fff;
  font: 700 .78rem "Noto Serif JP", "Yu Mincho", serif; line-height: 1; transform: rotate(-6deg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); flex: none; }
.dka-btn { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--dka-red); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 14px 30px -12px rgba(230,0,0,.75); transition: transform .25s var(--dka-ease); }
.dka-btn:focus-visible, .dka button:focus-visible, .dka a:focus-visible, .dka textarea:focus-visible { outline: 3px solid var(--dka-ink); outline-offset: 2px; }
.dka-btn .fig { width: 26px; height: 46px; transform-origin: 50% 94%; animation: dka-bow 8s var(--dka-ease) infinite; }
.dka.open .dka-tip { display: none; }
/* τσαχπινιά (Γ2): an ensō brush circle «painted» around the button on hover, a torii in the header, the hanko stamp on
   the visitor's question, a bow when the answer arrives, the «Ρωτήστε με» tip that winks now and then */
/* premium launcher (owner 11/11: the black brush ring is gone): a depth gradient, a thin «comet» of light that orbits
   the edge (conic-gradient on a registered angle) and brightens on hover, a soft «κιάι» ripple every few seconds, and
   a magnetic pull towards the cursor (assistant.js). All of it stops under prefers-reduced-motion. */
@property --dka-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.dka-btn { background: radial-gradient(circle at 34% 28%, #ff4a4a 0, #e60000 52%, #a80000 100%); isolation: isolate;
  transition: transform .45s cubic-bezier(.2,1.4,.4,1), box-shadow .3s var(--dka-ease); }
.dka-btn::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--dka-a), transparent 0 58%, rgba(255,255,255,.95) 70%, #ff8a8a 76%, transparent 88%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  opacity: .5; animation: dka-orbit 7s linear infinite; transition: opacity .3s; }
.dka-btn:hover::before, .dka-btn:focus-visible::before { opacity: 1; animation-duration: 2.4s; }
.dka-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -2; pointer-events: none; animation: dka-kiai 8s ease-out 2.5s infinite; }
.dka-btn:hover { box-shadow: 0 18px 38px -12px rgba(230,0,0,.85); }
@keyframes dka-orbit { to { --dka-a: 360deg; } }
@keyframes dka-kiai { 0% { box-shadow: 0 0 0 0 rgba(230,0,0,.42); } 14% { box-shadow: 0 0 0 20px rgba(230,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(230,0,0,0); } }
.dka-tip { animation: dka-tip .6s var(--dka-ease) .6s both, dka-wink 9s var(--dka-ease) 4s infinite; transform-origin: right center; }
@keyframes dka-wink { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-3deg) scale(1.04); } 96% { transform: rotate(2deg); } }
.dka-torii { position: absolute; right: -18px; top: -6px; width: 150px; opacity: .1; color: #fff; pointer-events: none; }
.dka-me { position: relative; }
.dka-stamp { position: absolute; left: -9px; bottom: -7px; width: 18px; height: 18px; font-size: .62rem; border-radius: 5px; animation: dka-stamp .45s var(--dka-ease) .1s both; }
@keyframes dka-stamp { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.dka-bow .fig { animation: dka-bow-once 1.1s var(--dka-ease); }
.dka-try { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0 38px; }
.dka-try button { border: 1px dashed rgba(230,0,0,.45); background: #fff; color: var(--dka-red-ink); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.dka-try button:hover { background: rgba(230,0,0,.06); }
/* 204: the «next» buttons under a featured answer sit inside the answer column (already indented) */
.dka-row .dka-try { margin: 8px 0 0; }
@keyframes dka-bow { 0%, 76%, 100% { transform: rotate(0); } 82%, 90% { transform: rotate(16deg); } }
@keyframes dka-tip { from { opacity: 0; transform: translateX(10px) scale(.92); } }

.dka-panel { position: absolute; right: 0; bottom: 82px; width: 392px; max-height: min(640px, calc(100vh - 120px)); background: #fff; border-radius: 22px;
  overflow: hidden; display: none; flex-direction: column; box-shadow: 0 30px 70px -28px rgba(11,16,23,.55); border: 1px solid var(--dka-line); }
.dka.open .dka-panel { display: flex; animation: dka-open .5s var(--dka-ease); }
@keyframes dka-open { from { clip-path: circle(0 at calc(100% - 32px) calc(100% + 50px)); } to { clip-path: circle(160% at calc(100% - 32px) calc(100% + 50px)); } }
.dka-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--dka-night); color: var(--dka-night-text); overflow: hidden; }
.dka-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(140px 70px at 36px 50%, rgba(230,0,0,.45), transparent 70%); }
.dka-av { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--dka-red); display: grid; place-items: center; flex: none; color: #fff; }
.dka-av .fig { width: 20px; height: 35px; transform-origin: 50% 94%; }
.dka.open .dka-head .dka-av .fig { animation: dka-bow-once 1.1s var(--dka-ease) .5s; }
@keyframes dka-bow-once { 0%, 100% { transform: rotate(0); } 35%, 60% { transform: rotate(18deg); } }
.dka-who { position: relative; flex: 1; }
.dka-who b { font-family: "Geologica", "Segoe UI", system-ui, sans-serif; font-size: 1.1rem; display: block; letter-spacing: -.01em; }
.dka-who small { color: var(--dka-night-muted); font-size: .78rem; }
.dka-who small em { font-style: normal; color: #fff; background: rgba(230,0,0,.9); border-radius: 5px; padding: 1px 5px; margin-left: 2px; font-weight: 700; font-size: .7rem; }
.dka-x { position: relative; width: 34px; height: 34px; border-radius: 11px; border: 0; background: rgba(255,255,255,.1); color: var(--dka-night-text); font-size: 1.15rem; cursor: pointer; }

.dka-priv { border-bottom: 1px solid var(--dka-line); background: var(--dka-sheet); padding: 7px 14px; font-size: .72rem; line-height: 1.45; color: var(--dka-ink-3); }
.dka-priv > p { display: inline; margin: 0; }
.dka-more p { margin: 6px 0 0; }
/* owner 11/11: the privacy choices are quiet text links inside the sentence — visible, never shouting «press me» */
.dka-priv-acts { display: inline; }
.dka-link { display: inline; border: 0; background: none; padding: 0; margin-left: 6px; font-family: inherit; font-weight: 500; font-size: inherit;
  color: var(--dka-ink-3); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(11,16,23,.3); cursor: pointer; }
.dka-link:hover { color: var(--dka-ink); }
/* owner 11/11: «Να μη διατηρηθεί» smaller still — present and readable, never the loudest thing on the panel */
.dka-link.dka-optout { font-size: .66rem; color: #6b7380; }
.dka-more { margin-top: 7px; }
.dka-more[hidden] { display: none; }
.dka-more a { color: var(--dka-red-ink); font-weight: 600; }
.dka-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--dka-ink); user-select: all; }

.dka-body { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 12px; align-content: start; font-size: .9rem; line-height: 1.5; }
.dka-row { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.dka-avs { width: 30px; height: 30px; border-radius: 50%; background: var(--dka-red); display: grid; place-items: center; color: #fff; }
.dka-avs .fig { width: 14px; height: 25px; transform-origin: 50% 94%; }
.dka-row p { margin: 4px 0 0; }
.dka-me { justify-self: end; max-width: 84%; background: var(--dka-paper); border-radius: 16px 16px 4px 16px; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dka-think { color: var(--dka-ink-3); font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.dka-think .fig { animation: dka-sway 1.1s ease-in-out infinite; }
@keyframes dka-sway { 0%, 100% { transform: translateX(-1.5px) rotate(-4deg); } 50% { transform: translateX(1.5px) rotate(4deg); } }
.dka-brush { width: 46px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--dka-red) 0 30%, transparent 30%); background-size: 200% 100%; animation: dka-ink 1.1s linear infinite; opacity: .7; }
@keyframes dka-ink { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.dka-card { background: #fff; border: 1px solid var(--dka-line); border-radius: 13px; padding: 11px 13px; white-space: pre-line; overflow-wrap: anywhere;
  box-shadow: 0 8px 18px -14px rgba(11,16,23,.45); animation: dka-reveal .6s var(--dka-ease) both; }
@keyframes dka-reveal { from { clip-path: inset(0 100% 0 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.dka-src { margin-top: 6px; color: var(--dka-ink-3); font-size: .76rem; }
.dka-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.dka-chip { font-size: .77rem; font-weight: 700; border-radius: 999px; padding: 7px 11px; text-decoration: none; background: var(--dka-red); color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.dka-chip.alt { background: transparent; border: 1px solid var(--dka-line); color: var(--dka-ink); }
.dka-note { font-size: .78rem; color: var(--dka-ink-3); }
.dka-gap textarea { width: 100%; min-height: 64px; margin-top: 6px; border: 1px solid var(--dka-line); border-radius: 10px; padding: 8px; font: inherit; resize: vertical; }

.dka-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--dka-line); }
.dka-form textarea { flex: 1; resize: none; height: 42px; min-height: 0; max-height: 110px; width: auto; margin: 0; line-height: 1.35; background: var(--dka-paper); border: 0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .88rem; color: var(--dka-ink); }
.dka-send { width: 44px; height: 42px; align-self: end; border-radius: 12px; border: 0; background: var(--dka-ink); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.dka-send:disabled { opacity: .45; cursor: default; }
.dka-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 700px) {
  .dka { right: 12px; bottom: 12px; }
  .dka-tip { display: none; }
  .dka-panel { position: fixed; left: 8px; right: 8px; bottom: 86px; width: auto; max-height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .dka *, .dka *::before { animation: none !important; transition: none !important; } }
