/* ============================================================
   KULTTUURI OPAS — v2 layout (Claude Design v2 port to Alpine)
   Banded grid + chat-as-layout (mobile bottom rail / desktop right
   column) + vertical plan timeline. Reuses tokens.css + the card
   primitives in components.css/cards.js. NO bottom-sheet, NO picks-tray.
============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--kt-font-sans); font-feature-settings: "ss01", "cv11";
  color: var(--kt-ink-900); background: var(--kt-paper);
  font-size: var(--kt-fs-body); line-height: var(--kt-lh-body);
  -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }
.kt-scroll { overflow-y: auto; scrollbar-width: none; }
.kt-scroll::-webkit-scrollbar { display: none; }
.kt-tap { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
:focus-visible { outline: 2px solid var(--kt-cobalt-700); outline-offset: 2px; border-radius: 2px; }

/* ---- responsive shell switch ---- */
.kt-mobile { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.kt-desktop { display: none; }
@media (min-width: 900px) {
  .kt-mobile { display: none; }
  .kt-desktop { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
}

/* ============================================================ MOBILE header */
.kt-m-head { padding: 6px 16px 4px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.kt-m-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
.kt-eyebrow { font-size: 10px; color: var(--kt-ink-500); text-transform: uppercase; letter-spacing: 0.08em; }
.kt-iconbtn { width: 38px; height: 38px; border-radius: 19px; background: var(--kt-card); border: 1px solid var(--kt-line); display: inline-flex; align-items: center; justify-content: center; position: relative; font-family: var(--kt-font-mono); font-size: 11px; font-weight: 600; color: var(--kt-ink-700); }
.kt-iconbtn.is-on { background: var(--kt-cobalt-700); color: #fff; border-color: transparent; }
.kt-iconbtn__count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--kt-sun-500); color: var(--kt-ink-900); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-family: var(--kt-font-mono); }

/* ============================================================ filter row */
.kt-filters { display: flex; gap: 6px; padding: 6px 16px 12px; overflow-x: auto; flex-shrink: 0; align-items: center; }
.kt-filters::-webkit-scrollbar { display: none; } .kt-filters { scrollbar-width: none; }
.kt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--kt-line); border-radius: var(--kt-r-pill); background: var(--kt-card); font-size: 13px; font-weight: 500; color: var(--kt-ink-700); white-space: nowrap; cursor: pointer; transition: all var(--kt-dur-fast) var(--kt-ease); }
.kt-chip.is-on { background: var(--kt-cobalt-700); color: #fff; border-color: transparent; }
.kt-count { font-size: 11px; color: var(--kt-ink-500); white-space: nowrap; padding-right: 4px; margin-left: auto; }

/* ============================================================ banded grid */
.kt-gridwrap { flex: 1; min-width: 0; min-height: 0; padding: 0 14px 8px; overflow-y: auto; overflow-x: hidden; }
.kt-band { margin-top: 14px; }
.kt-band__head { padding: 0 4px 10px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.kt-band__dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.kt-band__dot--latest { background: var(--kt-berry-500); }
.kt-band__dot--earlier { background: var(--kt-cobalt-700); }
.kt-band__dot--rest { background: var(--kt-line); }
.kt-band__title { margin: 0; font-size: 13px; font-weight: 600; color: var(--kt-ink-900); letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-band__count { font-size: 11px; color: var(--kt-ink-500); flex-shrink: 0; }
.kt-band__clear { font-size: 11px; color: var(--kt-cobalt-700); font-weight: 600; white-space: nowrap; padding: 4px 6px; margin-left: auto; cursor: pointer; }
.kt-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kt-cardwrap { position: relative; min-width: 0; display: flex; flex-direction: column; transition: opacity var(--kt-dur) var(--kt-ease); }
.kt-cardwrap > div { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }   /* x-html wrapper fills row height */
.kt-cardwrap.is-dim { opacity: 0.62; }
/* turn tag, top-right of a picked card */
.kt-tt { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 3px; font-family: var(--kt-font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.kt-tt--latest { background: var(--kt-berry-500); color: #fff; }
.kt-tt--earlier { background: var(--kt-cobalt-050); color: var(--kt-cobalt-700); border: 1px solid var(--kt-cobalt-100); }
/* highlight states on the card itself (cards.js renders .kt-card) */
.kt-cardwrap.is-latest .kt-c2 { border-color: var(--kt-berry-500); box-shadow: 0 0 0 1px var(--kt-berry-500), var(--kt-shadow-3); }
.kt-cardwrap.is-earlier .kt-c2 { border-color: var(--kt-cobalt-100); }

/* ---- v2 product card (.kt-c2) ---- */
.kt-c2 { display: flex; flex-direction: column; flex: 1; position: relative; background: var(--kt-card); border: 1px solid var(--kt-line); border-radius: var(--kt-r-3); overflow: hidden; box-shadow: var(--kt-shadow-1); cursor: pointer; transition: border-color var(--kt-dur) var(--kt-ease), box-shadow var(--kt-dur) var(--kt-ease); }
.kt-c2__media { height: 140px; position: relative; overflow: hidden; background: var(--kt-sand); flex-shrink: 0; }
.kt-c2__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-c2__noimg[data-kind="event"]   { background: var(--kt-cobalt-100); color: var(--kt-cobalt-700); }
.kt-c2__noimg[data-kind="venue"]   { background: #dccdf0; color: #5a3fb0; }
.kt-c2__noimg[data-kind="service"] { background: var(--kt-leaf-050); color: var(--kt-leaf-500); }
.kt-c2__noimg::before { content: ""; position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(45deg, currentColor 0 1.5px, transparent 1.5px 8px); }
.kt-c2__kind { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: inherit; }
.kt-c2__kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kt-c2__kind[data-kind="event"]::before   { background: var(--kt-kind-event); }
.kt-c2__kind[data-kind="venue"]::before    { background: var(--kt-kind-venue); }
.kt-c2__kind[data-kind="service"]::before  { background: var(--kt-kind-service); }
.kt-c2__kind--onimg { top: 10px; left: 10px; color: var(--kt-ink-900); background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: var(--kt-r-pill); box-shadow: var(--kt-shadow-1); }
.kt-c2__initial { position: absolute; left: 14px; bottom: 12px; font-size: 52px; font-weight: 500; line-height: 1; opacity: .85; color: inherit; letter-spacing: -1px; }
.kt-c2__hood { position: absolute; right: 14px; bottom: 12px; max-width: 55%; font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; color: inherit; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-c2__tonight { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--kt-sun-500); color: var(--kt-ink-900); padding: 3px 8px; border-radius: var(--kt-r-pill); font-size: 11px; font-weight: 600; }
.kt-c2__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kt-c2__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.2px; color: var(--kt-ink-900); overflow-wrap: anywhere; }
.kt-c2__lang { font-size: 9px; font-weight: 600; padding: 1px 4px; border: 1px solid var(--kt-line); border-radius: 3px; color: var(--kt-ink-500); vertical-align: middle; }
.kt-c2__desc { margin: 0; font-size: 14px; color: var(--kt-ink-500); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kt-c2__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; font-size: 12px; color: var(--kt-ink-700); }
.kt-c2__mi { display: inline-flex; align-items: center; gap: 4px; }
.kt-c2__free { font-size: 12px; color: var(--kt-leaf-500); font-weight: 600; }
.kt-c2__mi--recurs { color: var(--kt-berry-700); font-weight: 600; }
/* stacked-card affordance for recurring shows (on the wrapper — the card itself clips overflow) */
.kt-cardwrap.is-recurs::before, .kt-cardwrap.is-recurs::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--kt-r-3); background: var(--kt-card); border: 1px solid var(--kt-line); }
.kt-cardwrap.is-recurs::before { transform: translate(4px, 4px); }
.kt-cardwrap.is-recurs::after { transform: translate(8px, 8px); opacity: .55; }

/* ---- card quick-actions (+ add, 💬 talk) ---- */
.kt-c2__actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.kt-c2__act { width: 30px; height: 30px; border-radius: var(--kt-r-pill); border: 1px solid var(--kt-line); background: var(--kt-card); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background var(--kt-dur-fast) var(--kt-ease), color var(--kt-dur-fast) var(--kt-ease); }
.kt-c2__add { color: var(--kt-cobalt-700); font-weight: 600; }
.kt-c2__talk { font-size: 13px; }
.kt-c2__check { display: none; }
.kt-cardwrap--inplan .kt-c2__add { background: var(--kt-cobalt-700); color: #fff; border-color: transparent; }
.kt-cardwrap--inplan .kt-c2__plus { display: none; }
.kt-cardwrap--inplan .kt-c2__check { display: inline; }

/* ---- focus banner ("Talking about <name>") ---- */
.kt-focusbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--kt-berry-050); border-bottom: 1px solid var(--kt-line-soft); flex-shrink: 0; }
.kt-focusbar__label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--kt-berry-700); flex-shrink: 0; }
.kt-focusbar__name { font-weight: 600; font-size: 14px; color: var(--kt-ink-900); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-focusbar__x { width: 24px; height: 24px; min-height: 24px; min-width: 24px; color: var(--kt-ink-400); font-size: 18px; line-height: 1; flex-shrink: 0; }

/* ---- detail hero + map ---- */
.kt-detail__hero { height: 200px; background: var(--kt-sand); flex-shrink: 0; }
.kt-detail__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-detail-map { margin: 16px 18px 24px; border: 1px solid var(--kt-line); border-radius: var(--kt-r-3); overflow: hidden; }
.kt-detail-map iframe { width: 100%; height: 180px; border: 0; display: block; }
.kt-detail-map__link { display: block; padding: 10px 14px; color: var(--kt-cobalt-700); font-weight: 600; font-size: 13px; border-top: 1px solid var(--kt-line-soft); }

/* ============================================================ chat rail (mobile) */
.kt-rail { flex-shrink: 0; background: var(--kt-paper); border-top: 1px solid var(--kt-line); box-shadow: 0 -8px 24px rgba(20,23,26,.04); display: flex; flex-direction: column; min-height: 140px; transition: height var(--kt-dur) var(--kt-ease); }
.kt-rail__handle { cursor: ns-resize; flex-shrink: 0; padding: 6px 0 4px; display: flex; justify-content: center; touch-action: none; }
.kt-rail__handle span { width: 42px; height: 4px; border-radius: 2px; background: var(--kt-ink-300); }
.kt-rail__head { padding: 0 14px 6px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kt-avatar { width: 22px; height: 22px; border-radius: 11px; background: var(--kt-berry-050); color: var(--kt-berry-500); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kt-rail__name { font-size: 14px; font-weight: 600; color: var(--kt-ink-900); }
.kt-thinking { font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-berry-500); display: inline-flex; align-items: center; gap: 4px; }
.kt-thinking__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--kt-berry-500); animation: kt-pulse 1.2s var(--kt-ease) infinite; }
@keyframes kt-pulse { 50% { opacity: .3; } }
.kt-turncount { font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-ink-500); margin-left: auto; }
.kt-convo { flex: 1; min-height: 0; padding: 0 14px 4px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.kt-rail__empty { padding: 8px 2px 0; color: var(--kt-ink-500); font-size: 14px; line-height: 1.5; }

/* ============================================================ composer */
.kt-composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; background: var(--kt-paper); border-top: 1px solid var(--kt-line-soft); flex-shrink: 0; }
.kt-composer__pill { flex: 1; background: var(--kt-card); border: 1px solid var(--kt-line); border-radius: var(--kt-r-pill); padding: 0 8px 0 14px; min-height: 46px; display: flex; align-items: center; gap: 8px; }
.kt-composer__pill input, .kt-composer__pill textarea { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: var(--kt-ink-900); padding: 11px 0; font-family: var(--kt-font-sans); }   /* 16px (not 15) so iOS Safari does NOT auto-zoom on focus */
.kt-composer__pill textarea { resize: none; line-height: 1.4; max-height: 120px; overflow-y: auto; display: block; }
.kt-composer__send { width: 46px; height: 46px; border-radius: 23px; background: var(--kt-line); color: var(--kt-ink-400); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--kt-dur) var(--kt-ease), color var(--kt-dur) var(--kt-ease); }
.kt-composer__send.is-active { background: var(--kt-cobalt-700); color: #fff; }

/* ============================================================ turn group + bubbles */
.kt-turn { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--kt-line); transition: opacity var(--kt-dur) var(--kt-ease); }
.kt-turn.is-latest { border-bottom: none; }
.kt-turn.is-older { opacity: 0.72; }
.kt-turn__marker { font-family: var(--kt-font-mono); font-size: 10px; color: var(--kt-ink-400); text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; }
.kt-bubble { max-width: 92%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; word-break: break-word; }
.kt-bubble--ai a { color: var(--kt-cobalt-700); text-decoration: underline; }
.kt-bubble--user a { color: #fff; text-decoration: underline; }
.kt-bubble--user { align-self: flex-end; background: var(--kt-cobalt-700); color: #fff; border-bottom-right-radius: 4px; }
.kt-bubble--ai { align-self: flex-start; background: var(--kt-card); border: 1px solid var(--kt-line); border-bottom-left-radius: 4px; color: var(--kt-ink-900); }
.kt-bubble--ai strong { font-weight: 600; }
.kt-picks-anchor { margin-top: 8px; display: flex; align-items: center; gap: 6px; color: var(--kt-berry-500); }
.kt-picks-anchor span { font-family: var(--kt-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.kt-follow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.kt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--kt-line); border-radius: var(--kt-r-pill); background: var(--kt-card); font-size: 13px; font-weight: 500; color: var(--kt-ink-700); white-space: nowrap; cursor: pointer; }
.kt-pill--cobalt { background: var(--kt-cobalt-050); border-color: var(--kt-cobalt-100); color: var(--kt-cobalt-700); }
.kt-pill.is-on { background: var(--kt-cobalt-700); color: #fff; border-color: transparent; }

/* thinking phases checklist */
.kt-phases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kt-phases li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kt-ink-400); }
.kt-phases li .mark { width: 14px; font-family: var(--kt-font-mono); color: var(--kt-leaf-500); }
.kt-phases li.active { color: var(--kt-berry-500); font-weight: 500; }
.kt-phases li.done { color: var(--kt-ink-500); }

/* ============================================================ DESKTOP shell */
.kt-topbar { display: flex; align-items: center; padding: 10px 24px; gap: 16px; flex-shrink: 0; }
.kt-brandmark { width: 28px; height: 28px; border-radius: 6px; background: var(--kt-cobalt-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--kt-font-mono); font-size: 13px; font-weight: 700; }
.kt-brand__name { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }
.kt-brand__sub { font-family: var(--kt-font-mono); font-size: 10px; color: var(--kt-ink-500); text-transform: uppercase; letter-spacing: 0.08em; }
.kt-viewswitch { margin-left: 24px; display: inline-flex; background: var(--kt-card); border: 1px solid var(--kt-line); border-radius: var(--kt-r-pill); padding: 3px; gap: 2px; }
.kt-viewswitch button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--kt-r-pill); min-height: 32px; background: transparent; color: var(--kt-ink-700); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--kt-dur) var(--kt-ease); }
.kt-viewswitch button.is-on { background: var(--kt-ink-900); color: #fff; }
.kt-viewswitch__badge { margin-left: 2px; font-family: var(--kt-font-mono); font-size: 10px; padding: 0 5px; border-radius: 3px; background: var(--kt-cobalt-050); color: var(--kt-cobalt-700); font-weight: 600; }
.kt-viewswitch button.is-on .kt-viewswitch__badge { background: var(--kt-sun-500); color: var(--kt-ink-900); }
.kt-d-body { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--kt-line); }
.kt-d-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.kt-d-main h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
.kt-d-mainhead { padding: 8px 24px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.kt-d-aside { width: 380px; flex-shrink: 0; border-left: 1px solid var(--kt-line); display: flex; flex-direction: column; background: var(--kt-paper); }
.kt-d-convohead { padding: 14px 18px 10px; flex-shrink: 0; border-bottom: 1px solid var(--kt-line-soft); display: flex; align-items: center; gap: 10px; }
.kt-d-convohead .kt-avatar { width: 28px; height: 28px; border-radius: 14px; }
.kt-footer { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--kt-line-soft); font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-ink-500); text-align: center; }
@media (min-width: 900px) { .kt-band__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================ TIMELINE (plan) */
.kt-tl { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--kt-paper); }
.kt-tl__head { display: flex; align-items: center; padding: 12px 16px 6px; gap: 10px; flex-shrink: 0; }
.kt-tl__head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.4px; }
.kt-tl__sub { font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-ink-500); margin-top: 2px; }
.kt-tl__sub .clash { color: var(--kt-berry-500); }
.kt-tl__askopas { padding: 0 14px; height: 38px; border-radius: 19px; background: var(--kt-berry-500); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.kt-tl__ics { padding: 0 12px; height: 38px; border-radius: 19px; background: var(--kt-card); border: 1px solid var(--kt-line); color: var(--kt-ink-700); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.kt-tl__days { padding: 0 16px 10px; display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; }
.kt-tl__days::-webkit-scrollbar { display: none; } .kt-tl__days { scrollbar-width: none; }
.kt-tl__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 24px; }
.kt-tl__track-wrap { display: flex; padding: 0 16px; position: relative; }
.kt-tl__gutter { width: 52px; flex-shrink: 0; position: relative; padding-top: 4px; }
.kt-tl__hour { position: absolute; left: 0; right: 8px; font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-ink-500); text-align: right; }
.kt-tl__track { flex: 1; position: relative; padding-top: 4px; }
.kt-tl__rail { position: absolute; left: 0; right: 0; height: 1px; background: var(--kt-line); }
.kt-tl__half { position: absolute; left: 0; width: 12px; height: 1px; background: var(--kt-line-soft); }
.kt-tl__now { position: absolute; left: -8px; right: 0; height: 2px; background: var(--kt-berry-500); display: flex; align-items: center; z-index: 2; }
.kt-tl__now span:first-child { width: 8px; height: 8px; border-radius: 4px; background: var(--kt-berry-500); }
.kt-tl__now span:last-child { margin-left: 8px; font-family: var(--kt-font-mono); font-size: 10px; color: var(--kt-berry-500); font-weight: 600; }
.kt-tl__item { position: absolute; background: var(--kt-card); border: 1px solid var(--kt-line); border-radius: var(--kt-r-2); overflow: hidden; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--kt-shadow-1); }
.kt-tl__item.is-clash { border-color: var(--kt-berry-500); }
.kt-tl__item[data-kind="event"]   { border-left: 4px solid var(--kt-kind-event); }
.kt-tl__item[data-kind="venue"]   { border-left: 4px solid var(--kt-kind-venue); }
.kt-tl__item[data-kind="service"] { border-left: 4px solid var(--kt-kind-service); }
.kt-tl__itime { font-family: var(--kt-font-mono); font-size: 10px; color: var(--kt-ink-500); text-transform: uppercase; }
.kt-tl__overlap { font-family: var(--kt-font-mono); font-size: 9px; padding: 1px 5px; border-radius: 3px; background: var(--kt-berry-050); color: var(--kt-berry-700); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kt-tl__iname { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--kt-ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kt-tl__iwhere { font-family: var(--kt-font-mono); font-size: 10px; color: var(--kt-ink-500); display: flex; gap: 6px; align-items: center; margin-top: auto; }
.kt-tl__iwhere .free { color: var(--kt-leaf-500); font-weight: 600; }
.kt-tl__rm { width: 22px; height: 22px; min-height: 0; min-width: 0; color: var(--kt-ink-400); margin-left: auto; cursor: pointer; }
.kt-tl__anytime { margin-top: 16px; padding: 0 16px; }
.kt-tl__anytime h4 { margin: 0 0 8px; font-family: var(--kt-font-mono); font-size: 11px; color: var(--kt-ink-500); text-transform: uppercase; letter-spacing: 0.06em; }
.kt-tl__empty { padding: 56px 24px; text-align: center; color: var(--kt-ink-500); }
.kt-tl__empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 32px; background: var(--kt-berry-050); color: var(--kt-berry-500); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }

/* ============================================================ overlays */
.kt-overlay { position: fixed; inset: 0; background: var(--kt-paper); display: flex; flex-direction: column; z-index: 60; animation: kt-fade-up var(--kt-dur) var(--kt-ease) both; }
@keyframes kt-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kt-ov__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-shrink: 0; border-bottom: 1px solid var(--kt-line-soft); }
.kt-ov__bar .title { font-size: 15px; font-weight: 600; text-transform: capitalize; }
.kt-ov__close { width: 40px; height: 40px; border-radius: 20px; background: var(--kt-card); border: 1px solid var(--kt-line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
/* desktop: timeline is embedded in the left pane, not a fixed overlay */
.kt-tl--embedded { position: static; inset: auto; z-index: auto; animation: none; height: 100%; }
