/* Kalaakar (Shunya Bots). Own design system: Shunya colours, self-hosted Sora and Inter, own icons. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/sora-latin-wght-normal.woff2?v=fa26406eed") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2?v=3100e775e8") format("woff2");
}
:root {
  --sb-font-head: "Sora", "Inter", sans-serif;
  --sb-font-body: "Inter", sans-serif;
  --header-h: 64px;
  --sb-slate: #C9CDE3;
  --line: rgba(246, 247, 251, 0.13);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: #0B1033;
  color: #F6F7FB;
  font-family: var(--sb-font-body);
  line-height: 1.5;
}
img, canvas, svg { max-width: 100%; }
.kal {
  --k-ink: #0B1033; --k-violet: #6D5BFF; --k-saffron: #FFA41B; --k-cyan: #22D3EE;
  --k-raise: #121A4D; --k-raise-2: #18215C; --k-line: rgba(246, 247, 251, 0.13); --k-text: #F6F7FB; --k-soft: #C9CDE3; --k-violet-text: #B3A9FF;
  --k-glow: 0 18px 50px rgba(109, 91, 255, 0.28); --k-r: 18px; --k-ease: cubic-bezier(.22, .8, .24, 1);
}
.kal [hidden] { display: none !important; }
.k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-i { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-i-s { width: 16px; height: 16px; flex-basis: 16px; vertical-align: -3px; color: var(--k-cyan); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: var(--k-saffron); color: var(--k-ink); font: 600 0.95rem var(--sb-font-head); text-decoration: none;
}
.skip:focus { top: 12px; }
.k-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  min-height: var(--header-h); padding: 8px max(16px, calc((100% - 1400px) / 2));
  background: #080C28; border-bottom: 1px solid var(--k-line);
}
.k-maker { margin: 0; font: 700 1rem var(--sb-font-head); color: var(--k-text); }
.k-header-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.k-header a, .k-footer a, .k-credit a {
  color: var(--k-cyan); text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
}
.k-credit a { padding-left: 0; padding-right: 0; }
.k-footer {
  padding: 20px max(16px, calc((100% - 1400px) / 2)) 32px;
  color: var(--k-soft); border-top: 1px solid var(--k-line);
}
.k-footer p { margin: 0; }

.k-app { background: radial-gradient(1200px 500px at 85% -10%, rgba(109, 91, 255, 0.22), transparent 60%), radial-gradient(900px 420px at -10% 110%, rgba(34, 211, 238, 0.12), transparent 60%), var(--k-ink); color: var(--k-text); padding: 22px max(20px, calc((100% - 1400px) / 2)) 40px; }
.k-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.k-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-logo { margin: 0; line-height: 0; }
.k-logo img { height: 40px; width: auto; max-width: min(163px, 70vw); min-width: 0; filter: drop-shadow(0 8px 22px rgba(109, 91, 255, 0.35)); animation: k-glow 7s ease-in-out infinite, k-in 0.7s var(--k-ease) both; }
@keyframes k-glow { 0%, 100% { filter: drop-shadow(0 8px 22px rgba(109, 91, 255, 0.35)); } 50% { filter: drop-shadow(0 10px 26px rgba(34, 211, 238, 0.45)); } }
.k-tag { margin: 2px 0 0; font-size: 0.85rem; color: var(--k-soft); }
.k-proj { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.k-name { min-width: 220px; font: 600 1rem var(--sb-font-head); }
.k-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(109, 91, 255, 0.2); color: var(--k-text); font: 600 0.85rem var(--sb-font-head); font-variant-numeric: tabular-nums; }
.k-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 164, 27, 0.12); border-left: 3px solid var(--k-saffron); color: var(--k-text); }
.k-banner.k-banner-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 8px 8px 16px; }
.k-banner.k-banner-act span { flex: 1 1 220px; }
.k-stale .k-lib button { opacity: 0.6; cursor: not-allowed; }
.k-frame { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.k-rail, .k-card { background: var(--k-raise); border: 1px solid var(--k-line); border-radius: var(--k-r); padding: 16px; min-width: 0; }
.k-rail { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; }
.k-main { display: grid; gap: 16px; min-width: 0; }
.k-main > * { min-width: 0; max-width: 100%; }
.k-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.k-h { font: 700 1.1rem var(--sb-font-head); color: var(--k-text); margin: 0 0 10px; }
.k-rail-head .k-h { margin: 0; }
.k-h3 { font: 600 0.98rem var(--sb-font-head); color: var(--k-text); margin: 18px 0 8px; }
.k-hint, .k-note, .k-empty { color: var(--k-soft); font-size: 0.9rem; margin: 6px 0 10px; line-height: 1.5; }
.k-status { color: var(--k-cyan); min-height: 1.4em; margin: 8px 0 0; font-size: 0.93rem; }
.k-status.err { color: #FFB4A8; }
/* 62px in the page flow. Sticky only while a message is showing, so an empty slot scrolls away.
   static or sticky only: fixed and absolute would cover the page or shift the canvas. */
.k-toast {
  position: static;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  align-self: start;
  gap: 8px;
  width: 100%;
  height: 62px;
  min-height: 62px;
  max-height: 62px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--k-text);
}
.k-toast.has-msg { position: sticky; top: 0; z-index: 30; background: var(--k-raise-2); }
.k-toast.has-text { border-color: rgba(34, 211, 238, 0.45); box-shadow: var(--k-glow); }
.k-toast .k-status { flex: 1 1 auto; min-width: 0; min-height: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; color: var(--k-text); line-height: 1.25; }
.k-toast:not(.has-text) > #k-msg-text { display: none; }
@media (min-width: 481px) {
  .k-toast .k-status { white-space: normal; }
}
.k-toast.err { border-color: rgba(255, 140, 120, 0.7); }
.k-toast.err .k-status { color: #FFD3CB; }
.k-toast .k-btn { flex: none; white-space: nowrap; }
.k-toast:not(.has-text) .k-toast-x { visibility: hidden; }
.k-row { display: flex; gap: 10px; align-items: center; margin: 10px 0; min-width: 0; }
.k-wrap { flex-wrap: wrap; }

.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; font: 600 0.93rem var(--sb-font-head); color: var(--k-text); cursor: pointer; text-decoration: none; white-space: normal; text-align: center; transition: transform 0.25s var(--k-ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
/* Later and more specific than .k-btn, so Details stays hidden until a narrow slot actually cuts the message. */
.k-toast .k-toast-more { display: none; }
.k-toast-ico { display: none; }
@media (max-width: 480px) {
  .k-toast { gap: 4px; padding: 8px 4px; }
  .k-toast .k-status { font-size: 0.875rem; }
  .k-toast .k-btn { position: relative; width: 44px; height: 44px; min-width: 44px; padding: 0; }
  .k-toast .k-toast-word { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .k-toast .k-toast-ico { display: block; }
  .k-toast.has-text.is-cut .k-toast-more { display: inline-flex; }
}
@media (max-width: 380px) {
  .k-toast { gap: 2px; padding: 6px 2px; }
}
.k-btn:hover { transform: translateY(-1px); }
.k-btn:active { transform: translateY(0) scale(0.98); }
.k-btn:focus-visible, .k-input:focus-visible, .k-lib button:focus-visible, .k-tab:focus-visible, .k-tile:focus-visible, .k-layer-pick:focus-visible, a:focus-visible, .k-colour:focus-visible, .k-brush:focus-visible, .k-opacity:focus-visible {
  outline: 2px solid var(--k-cyan); outline-offset: 2px;
}
.k-btn-primary { background: var(--k-saffron); color: var(--k-ink); box-shadow: 0 8px 24px rgba(255, 164, 27, 0.25); }
.k-btn-primary:hover { background: #FFB547; }
.k-btn-line { background: rgba(255, 255, 255, 0.04); border-color: rgba(246, 247, 251, 0.3); color: var(--k-text); }
.k-btn-line:hover { border-color: var(--k-violet-text); background: rgba(109, 91, 255, 0.16); }
.k-btn-danger { background: transparent; border-color: rgba(255, 140, 120, 0.6); color: #FFC9BF; }
.k-btn-danger:hover { background: rgba(255, 107, 87, 0.15); }
.k-btn-icon { padding: 0; width: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border-color: var(--k-line); color: var(--k-text); }
.k-btn[disabled], .k-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.k-btn.is-on { background: var(--k-saffron); color: var(--k-ink); border-color: transparent; }
.k-file { position: relative; overflow: hidden; }
.k-file input { position: absolute; inset: -1px; opacity: 0; cursor: pointer; font-size: 16px; }
.k-file:focus-within { outline: 2px solid var(--k-cyan); outline-offset: 2px; }
/* Import switched off (database blocked or tab stale): looks off, like a disabled button (Ops R5-3). */
.k-file:has(input:disabled), .k-file.k-off { opacity: 0.5; cursor: not-allowed; }
.k-file input:disabled { cursor: not-allowed; }
.k-input { min-height: 44px; max-width: 100%; background: #0B1033; color: var(--k-text); border: 1px solid rgba(246, 247, 251, 0.2); border-radius: 12px; padding: 8px 12px; font: inherit; }
.k-input::placeholder { color: var(--k-soft); opacity: 1; }
select.k-input { padding-right: 32px; }
.k-label { display: block; margin: 12px 0 4px; color: var(--k-soft); font-size: 0.88rem; }
.k-colour { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--k-line); border-radius: 12px; background: transparent; }
.k-brush, .k-opacity { width: 100%; min-height: 44px; accent-color: var(--k-saffron); }

.k-lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.k-lib li.k-new-item { animation: k-in 0.4s var(--k-ease) both; }
.k-lib button { width: 100%; min-height: 56px; text-align: left; display: grid; grid-template-columns: 12px 1fr; gap: 2px 10px; align-items: center; padding: 8px 12px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); color: var(--k-text); cursor: pointer; font: inherit; transition: background 0.25s ease, border-color 0.25s ease; }
.k-lib button:hover { background: rgba(109, 91, 255, 0.14); }
.k-lib button[aria-current="true"] { border-color: var(--k-violet); background: rgba(109, 91, 255, 0.2); }
.k-lib .dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--k-soft); }
.k-lib .dot.draft { background: var(--k-violet-text); }
.k-lib .dot.production { background: var(--k-saffron); }
.k-lib .dot.delivered { background: #3DDC97; }
.k-lib strong { font: 600 0.95rem var(--sb-font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-lib small { color: var(--k-soft); font-size: 0.82rem; }
.k-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 6px; font-size: 0.93rem; }
.k-facts dt { color: var(--k-soft); }
.k-facts dd { margin: 0; color: var(--k-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.k-vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.k-vers li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); font-size: 0.9rem; }
.k-vers li span { color: var(--k-soft); }
.k-vers li strong { color: var(--k-text); font-family: var(--sb-font-head); margin-right: 6px; }

.k-dialog { border: 1px solid var(--k-line); border-radius: var(--k-r); background: var(--k-raise); color: var(--k-text); padding: 20px; max-width: min(440px, calc(100% - 32px)); box-shadow: var(--k-glow); }
.k-dialog::backdrop { background: rgba(5, 8, 28, 0.7); }
.k-dialog p { color: var(--k-soft); }
.k-dialog.k-msg-dialog { position: fixed; top: 72px; left: 50%; width: min(440px, calc(100% - 32px)); max-height: min(70dvh, 480px); margin: 0; overflow: auto; transform: translateX(-50%); }
.k-dialog.k-msg-dialog p { color: var(--k-text); margin: 0 0 16px; }
.k-about { padding: 8px max(20px, calc((100% - 800px) / 2)) 36px; }
.k-about .k-points { padding-left: 1.1em; }
.k-about .k-points li { margin-bottom: 8px; }
.k-credit { font-size: 0.93rem; color: var(--sb-slate); border-top: 1px solid var(--line); padding-top: 12px; }
/* Panels do not fade in. A tab hides them with display:none, and an opacity
   animation would start again on every visit, leaving the studio half-drawn. */
@keyframes k-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.k-tabs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; min-width: 0; padding-bottom: 4px; }
.k-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(246, 247, 251, 0.3); background: rgba(255, 255, 255, 0.04); color: var(--k-text); font: 600 0.93rem var(--sb-font-head); cursor: pointer; }
.k-tab[aria-selected="true"] { background: var(--k-saffron); color: var(--k-ink); border-color: transparent; }
.k-view { display: grid; gap: 16px; min-width: 0; }
.k-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.k-tile { display: grid; justify-items: start; gap: 4px; min-height: 96px; padding: 14px; border-radius: 16px; border: 1px solid var(--k-line); background: rgba(255, 255, 255, 0.04); color: var(--k-text); text-align: left; cursor: pointer; font: inherit; }
.k-tile:hover { border-color: var(--k-violet-text); background: rgba(109, 91, 255, 0.14); }
a.k-tile { text-decoration: none; }
.k-tile-name { font: 700 1rem var(--sb-font-head); }
.k-tile-note { color: var(--k-soft); font-size: 0.88rem; }
.k-search { display: inline-flex; align-items: center; min-height: 44px; color: var(--k-cyan); }
#k-lib-search { flex: 1 1 160px; }
.k-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.k-pic { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--k-line); background: rgba(255, 255, 255, 0.03); min-width: 0; }
.k-pic img { width: 100%; height: 110px; object-fit: contain; background: #080C28; border-radius: 10px; }
.k-pic-name { margin: 0; font: 600 0.9rem var(--sb-font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-pic-actions { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; min-width: 0; }
.k-pic-actions .k-btn { width: 100%; min-width: 44px; min-height: 44px; border-radius: 12px; padding: 8px 12px; white-space: nowrap; }
.k-workspace { display: grid; grid-template-columns: 92px minmax(0, 1fr) 280px; grid-template-areas: "tools stage inspect"; gap: 12px; align-items: start; min-width: 0; }
.k-tools { grid-area: tools; display: grid; gap: 6px; align-content: start; min-width: 0; }
.k-tool { width: 100%; min-width: 44px; min-height: 44px; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border-color: var(--k-line); color: var(--k-text); font: 600 0.68rem var(--sb-font-head); line-height: 1.15; }
.k-tool .k-i { width: 18px; height: 18px; flex-basis: 18px; }
.k-stage { grid-area: stage; display: block; min-width: 0; min-height: 160px; max-height: calc(100dvh - 180px); overflow: auto; border-radius: 16px; border: 1px solid var(--k-line); background: #E7E1D6; }
.k-stage-fit { display: grid; width: 100%; margin-inline: auto; }
.k-inspector { grid-area: inspect; }
.k-stage:focus-visible { outline: 2px solid var(--k-cyan); outline-offset: 2px; }
.k-stage canvas { grid-area: 1 / 1; width: 100%; max-width: none; height: auto; display: block; background: transparent; }
.k-stage[data-zoom="fit"][data-ratio="wide"] canvas { width: min(100%, calc((100dvh - 200px) * 1.7778)); max-height: calc(100dvh - 200px); }
.k-stage[data-zoom="fit"][data-ratio="tall"] canvas { width: min(100%, calc((100dvh - 200px) * 0.5625)); max-height: calc(100dvh - 200px); }
.k-stage[data-zoom="fit"][data-ratio="square"] canvas { width: min(100%, calc(100dvh - 200px)); max-height: calc(100dvh - 200px); }
.k-stage[data-zoom="50"] .k-stage-fit { width: 50%; }
.k-stage[data-zoom="75"] .k-stage-fit { width: 75%; }
.k-stage[data-zoom="100"] .k-stage-fit { width: 100%; }
.k-stage[data-zoom="125"] .k-stage-fit { width: 125%; }
.k-stage[data-zoom="150"] .k-stage-fit { width: 150%; }
.k-stage[data-zoom="200"] .k-stage-fit { width: 200%; }
#k-board { pointer-events: none; background: #F4EFE6; }
#k-overlay { touch-action: none; background: transparent; }
.k-stage.tool-brush, .k-stage.tool-eraser, .k-stage.tool-mask, .k-stage.tool-maskrect, .k-stage.tool-lasso { cursor: crosshair; }
.k-stage.tool-text { cursor: text; }
.k-stage.tool-move { cursor: grab; }
.k-stage.tool-rect, .k-stage.tool-ellipse, .k-stage.tool-line { cursor: crosshair; }
.k-stage.k-drop { outline: 3px solid var(--k-cyan); outline-offset: -3px; }
.k-inspector { background: var(--k-raise); border: 1px solid var(--k-line); border-radius: var(--k-r); padding: 14px; min-width: 0; overflow: visible; max-width: 100%; }
.k-layers { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.k-layers li { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); min-width: 0; max-width: 100%; }
.k-layers li:has([aria-current="true"]) { border-color: var(--k-violet); }
.k-layer-pick { flex: none; width: 100%; height: 44px; min-height: 44px; min-width: 0; max-width: 100%; padding: 0 8px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: var(--k-text); font: 600 0.9rem var(--sb-font-head); cursor: pointer; }
.k-layer-name { display: block; min-width: 12ch; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-layer-controls { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; height: 44px; min-width: 0; max-width: 100%; }
.k-layer-op { position: relative; flex: 0 0 auto; }
.k-opacity-pop { position: absolute; z-index: 4; top: calc(100% + 4px); right: 0; width: 168px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(246, 247, 251, 0.2); background: #18215C; box-shadow: 0 10px 28px rgba(5, 8, 28, 0.45); }
.k-opacity-pop .k-opacity { width: 100%; margin: 0; }
.k-opacity { flex: 1 1 100%; }
.k-frame-src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.k-frame-board { width: 100%; height: auto; background: #F4EFE6; border-radius: 12px; margin: 8px 0; }

@media (min-width: 1440px) {
  .k-frame { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (min-width: 1680px) {
  .k-header { padding-left: max(16px, calc((100% - 1680px) / 2)); padding-right: max(16px, calc((100% - 1680px) / 2)); }
  .k-footer { padding-left: max(16px, calc((100% - 1680px) / 2)); padding-right: max(16px, calc((100% - 1680px) / 2)); }
  .k-app { padding-left: max(20px, calc((100% - 1680px) / 2)); padding-right: max(20px, calc((100% - 1680px) / 2)); }
}
@media (max-width: 980px) {
  .k-frame { grid-template-columns: 1fr; }
  .k-rail { position: static; max-height: none; order: 2; }
  .k-main { order: 1; }
}
@media (max-width: 1100px) {
  .k-workspace { grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "tools stage" "inspect inspect"; }
}
@media (max-width: 860px) {
  .k-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tools" "stage" "inspect"; }
  .k-tools { display: flex; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .k-tool { width: auto; flex: 0 0 auto; min-width: 72px; }
}
@media (max-width: 620px) {
  .k-app { padding: 16px 12px 28px; }
  .k-proj { width: 100%; }
  .k-name { min-width: 0; flex: 1 1 100%; }
  .k-rail, .k-card, .k-inspector { padding: 14px 12px; }
  .k-facts { grid-template-columns: 1fr; gap: 0; }
  .k-facts dd { margin-bottom: 6px; }
}
@media (max-width: 420px) {
  .k-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .k-logo img, .k-lib li.k-new-item, .k-toast { animation: none; }
  .k-btn, .k-lib button, .k-tile { transition: none; }
  .k-btn:hover { transform: none; }
}

/* Kalaakar Terms and Privacy pages (/kalaakar/terms/, /kalaakar/privacy/) */
.k-legal { box-sizing: border-box; max-width: 72ch; margin: 0 auto; padding: 24px 20px 48px; line-height: 1.65; overflow-wrap: anywhere; word-break: break-word; }
.k-legal h1 { font-family: var(--sb-font-head); font-size: 1.75rem; line-height: 1.25; margin: 0.5em 0 0.75em; }
.k-legal h2 { font-family: var(--sb-font-head); font-size: 1.2rem; line-height: 1.3; margin: 2em 0 0.6em; }
.k-legal p { margin: 0 0 1em; }
.k-legal ul { margin: 0 0 1em; padding-left: 1.4em; }
.k-legal ul ul { margin: 0.4em 0 0.4em; }
.k-legal li { margin: 0 0 0.5em; }
.k-legal a { overflow-wrap: anywhere; }
.k-legal code { overflow-wrap: anywhere; }
@media (min-width: 481px) { .k-legal { padding: 32px 32px 64px; } }
