/* offtrack – felület. A tokenek a tokens.css-ben. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--brand-blue) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---- márka és vezérlők ---- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.wordmark { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; margin: 0; }
.logo-sm { height: 22px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-sm { filter: brightness(0) invert(0.88); } }
:root[data-theme="dark"] .logo-sm { filter: brightness(0) invert(0.88); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.5rem 1rem; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.button-primary { background: var(--brand-green); color: var(--ink-on-green); }
.button-primary:hover { background: var(--brand-green-hover); color: var(--ink-on-green); }
.button-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.button-quiet:hover { color: var(--ink); border-color: var(--ink-soft); }
.button-sm { min-height: 2rem; padding: 0.25rem 0.65rem; font-size: var(--step--1); }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 0.2rem 0.55rem; font-size: var(--step--1); font-weight: 600;
  color: var(--ink-soft); cursor: pointer; min-height: 1.9rem; min-width: 2.4rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }

/* ---- alkalmazás-keret ---- */
.page-app { height: 100dvh; display: grid; grid-template-rows: var(--header-h) auto 1fr; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; padding: 0.55rem var(--gutter); border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg[hidden] { display: none; }
.seg button { white-space: nowrap; border: 0; border-left: 1px solid var(--line); background: var(--bg); padding: 0.3rem 0.75rem; min-height: 2.1rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -2px 0 var(--track); }

/* ---- lista nézet: kártyarács, szálanként egy kártya ---- */
.list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); align-items: start;
  gap: 1rem; padding: 1.25rem var(--gutter) 6rem;
}
.list-thread { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.85rem 0.9rem 0.7rem; display: grid; gap: 0.4rem; }
.list-thread-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.3rem 0.6rem; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.list-thread-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; }
.list-thread-project { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; color: var(--ink); }
.list-thread-sub { font-weight: 600; color: var(--ink-soft); }
.list-thread-head:hover .list-thread-project { color: var(--link); }
.list-count { min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 0.8rem; font-weight: 750; display: inline-grid; place-items: center; margin-top: 0.15rem; }
.list-live { grid-column: 1 / -1; font-size: var(--step--1); font-weight: 650; color: var(--live-text); }
.list-quiet { grid-column: 1 / -1; font-size: var(--step--1); font-style: italic; color: var(--ink-muted); }
.list-items, .list-stops { list-style: none; margin: 0; padding: 0; display: grid; }
.list-item-button { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: start; width: 100%; text-align: left; border: 0; background: none; padding: 0.4rem 0.3rem; border-radius: var(--radius-sm); cursor: pointer; }
.list-item-button:hover { background: var(--surface); }
.list-icon { display: grid; place-items: center; padding-top: 0.2rem; }
.list-item-body { display: grid; gap: 0.1rem; }
.list-item-text { font-weight: 600; color: var(--ink); line-height: 1.35; }
.list-lock { display: inline-block; color: var(--ink-muted); margin-right: 0.35rem; vertical-align: -1px; }
.list-item-meta { font-size: var(--step--1); color: var(--ink-muted); }
.list-item-meta.is-overdue { color: var(--link-red); font-weight: 650; }
.list-item.is-dropped { opacity: 0.5; }
.list-item.is-dropped .list-item-text { text-decoration: line-through; }
.list-empty { margin: 0; color: var(--ink-muted); font-size: var(--step--1); }
.list-stops { border-top: 1px solid var(--line); padding-top: 0.35rem; }
.list-stop { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0.5rem; align-items: center; padding: 0.12rem 0.3rem; font-size: var(--step--1); color: var(--ink-soft); }
.list-stop-time { color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg);
}
.head-tools { display: flex; align-items: center; gap: 0.9rem; }
.head-logo { opacity: 0.85; }
.head-ico, .r-short { display: none; }
.who { color: var(--ink-soft); font-size: var(--step--1); font-weight: 550; }
.app-main { display: grid; grid-template-columns: 1fr auto; min-height: 0; }
.map-wrap { position: relative; overflow: auto; min-height: 0; }

/* ---- térkép ---- */
.map { display: block; font-family: var(--font); }
.map text { fill: var(--ink); font-size: 13px; }
.past-band ~ text, .grid text { stroke: none; }
.grid-line { stroke: var(--line); stroke-width: 1; }
.grid-now { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 2 4; }
.tick { fill: var(--ink-muted) !important; font-size: 12px !important; font-variant-numeric: tabular-nums; }
.past-band { fill: var(--surface); }
.project-head, .thread-head, .stub { cursor: pointer; outline: none; }
.project-title { font-size: 13px !important; font-weight: 650; fill: var(--ink-soft) !important; letter-spacing: -0.005em; }
.project-rule { stroke: var(--line); stroke-width: 1.5; }
.thread-title { font-size: 15px !important; font-weight: 650; letter-spacing: -0.01em; }
.project-head:hover .project-title, .thread-head:hover .thread-title { fill: var(--link) !important; }
.project-head:focus-visible .project-title, .thread-head:focus-visible .thread-title { text-decoration: underline; }
.track { stroke: var(--track); stroke-width: 5; stroke-linecap: round; }
.track-thin { stroke: var(--track); stroke-width: 2; opacity: 0.45; }
.track-quiet { stroke: var(--silence); stroke-width: 4; stroke-dasharray: 0.1 8; stroke-linecap: round; }
.loop { fill: none; stroke: var(--track); stroke-width: 2.5; opacity: 0.55; }
.stop { fill: var(--track); stroke: var(--bg); stroke-width: 2; }
.label-stop { fill: var(--ink-soft) !important; font-size: 12.5px !important; }
.label-quiet { fill: var(--ink-muted) !important; font-size: 12px !important; font-style: italic; }
.label-live { fill: var(--live-text) !important; font-size: 12.5px !important; font-weight: 650; }
.live { fill: var(--live); stroke: var(--bg); stroke-width: 2; }
.live-ring { fill: none; stroke: var(--live); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: live 2.4s var(--ease) infinite; }
@keyframes live { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }
.stub-line { fill: none; stroke: var(--open-mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stub-end { fill: var(--bg); stroke: var(--open-mark); stroke-width: 2; }
.stub-dot { fill: var(--open-mark); }
.stub-idea .stub-end { stroke-dasharray: 3 2.4; }
.mk { fill: var(--bg); stroke: var(--open-mark); stroke-width: 1.6; }
.mk-idea { stroke-dasharray: 2 1.6; }
.branch.is-dropped { opacity: 0.45; }
.stub-manual .stub-line { stroke-width: 1.8; stroke-dasharray: 4 3; stroke-linecap: butt; }
.label-stub { fill: var(--ink) !important; font-weight: 600; }
.stub .hit { fill: transparent; }
.stub:hover .hit, .stub:focus-visible .hit { fill: color-mix(in srgb, var(--open-mark) 10%, transparent); }
.stub:focus-visible .label-stub { text-decoration: underline; }
.stub.is-dropped { opacity: 0.45; }
.stub.is-dropped .label-stub { text-decoration: line-through; }
.lock { fill: none; stroke: var(--ink-muted); stroke-width: 1.4; }
.lock-body { fill: var(--ink-muted); }
.stub-cluster .stub-end { fill: var(--open-mark); }
.cluster-count { fill: #fff !important; font-size: 10px !important; font-weight: 750; stroke: none !important; }
.label-extra { fill: var(--ink-muted) !important; font-weight: 500; font-size: 12px !important; }
.due { fill: var(--ink-soft) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.due.is-soon { fill: var(--ink) !important; font-weight: 750; }
.due.is-overdue { fill: var(--link-red) !important; font-weight: 750; }
.link { stroke: var(--link-red); stroke-width: 2.5; stroke-dasharray: 4 3; }
.label-link { fill: var(--link-red) !important; font-size: 12px !important; font-weight: 600; }

/* ---- mobil (M2) ---- */
.pills { display: none; }
@media (max-width: 700px) {
  .app-head { padding: 0 1rem; }
  .who { display: none; }
  .app-head { gap: 0.5rem; }
  .brand { min-width: 0; }
  .head-logo { display: none; }
  .head-tools { gap: 0.5rem; flex: none; }
  .head-btn { width: 2.5rem; padding: 0; }
  .head-ico { display: block; }
  .head-txt { display: none; }
  .toolbar { padding: 0.5rem 1rem; gap: 0.5rem; }
  #range-switch:not([hidden]) { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  #range-switch button { flex: 1 0 auto; padding: 0.3rem 0.55rem; }
  .r-long { display: none; }
  .r-short { display: inline; }
  .app-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .unsorted { display: none; }
  .pills:not([hidden]) {
    display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line);
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill {
    flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.9rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-soft);
    font-weight: 600; font-size: var(--step--1); cursor: pointer; scroll-snap-align: center;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
  .pill[aria-pressed="true"] { color: var(--on-track); background: var(--track); border-color: var(--track); }
  .pill-count { min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 0.75rem; display: inline-grid; place-items: center; }
  .pill-more { padding: 0; width: 2.75rem; justify-content: center; }
  .map-wrap { overflow-x: hidden; overflow-y: auto; touch-action: pan-y; }
  .map text { font-size: 14px; }
  .menu.is-sheet {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; max-width: none; width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 0.5rem 0.5rem max(0.75rem, env(safe-area-inset-bottom));
  }
  .menu.is-sheet .menu-detail { margin: 0 0.75rem 0.4rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); white-space: pre-line; font-weight: 600; color: var(--ink); max-height: 9rem; overflow: auto; }
.menu-item { min-height: 3rem; font-size: var(--step-0); }
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92dvh; }
  .sheet-form { padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }
  .toast { bottom: 5.5rem; }
}

/* ---- besorolatlan ---- */
.unsorted { width: 18rem; border-left: 1px solid var(--line); padding: 1rem; overflow: auto; background: var(--bg); }
.unsorted h2 { margin: 0 0 0.75rem; font-size: var(--step-0); font-weight: 650; }
.unsorted ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.unsorted li { display: grid; gap: 0.3rem; justify-items: start; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.unsorted-kind { font-size: var(--step--1); color: var(--open); font-weight: 650; }
.unsorted-text { font-weight: 550; }

/* ---- üres állapot ---- */
.empty { max-width: 34rem; margin: 18vh auto 0; padding: 0 var(--gutter); }
.empty h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.empty p { color: var(--ink-soft); margin: 0; }

/* ---- + gomb ---- */
.fab {
  position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--open-mark); color: var(--fab-ink); box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform 160ms var(--ease);
}
.fab:hover { transform: translateY(-1px); }

/* ---- menü ---- */
.menu {
  position: fixed; z-index: 20; min-width: 15rem; max-width: 22rem; padding: 0.35rem;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-title { padding: 0.5rem 0.75rem 0.4rem; font-size: var(--step--1); color: var(--ink-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); min-height: 2.5rem; font-weight: 550;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface); outline: none; }
.menu-item.is-danger { color: var(--link-red); }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0.4rem; }

/* ---- lap (dialog) ---- */
.sheet {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(32rem, calc(100vw - 2rem));
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgb(12 27 43 / 0.42); }
.sheet-form { display: grid; gap: 1rem; padding: 1.4rem 1.4rem 1.2rem; }
.sheet-form h2 { margin: 0 0 0.25rem; font-size: var(--step-1); letter-spacing: -0.015em; }
.field { display: grid; gap: 0.35rem; }
.field[hidden] { display: none; }
.field-label { font-size: var(--step--1); font-weight: 650; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; min-height: 2.6rem;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.segmented { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.segmented button {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 0.3rem 0.8rem;
  min-height: 2.2rem; cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft);
}
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.with-mic { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: start; }
.mic {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
}
.mic.is-listening { background: var(--link-red); color: #fff; border-color: transparent; animation: listen 1.2s ease-in-out infinite alternate; }
@keyframes listen { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--link-red) 25%, transparent); } }
.sheet-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.25rem; }

/* ---- értesítés ---- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600;
  font-size: var(--step--1); box-shadow: var(--shadow); transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--link-red); color: #fff; }

/* ---- belépő oldal ---- */
.page-login { min-height: 100dvh; display: grid; place-items: center; background: var(--surface); }
.login { width: min(26rem, calc(100vw - 2rem)); display: grid; gap: 1.25rem; padding: 2.25rem 2rem 1.5rem; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 0.75rem; }
.login-mark { border-radius: 12px; }
.login .wordmark { font-size: var(--step-2); }
.login-lead { margin: 0; color: var(--ink-soft); }
.login-button { width: 100%; background: var(--bg); color: var(--ink); border-color: var(--line); min-height: 2.9rem; }
.login-button:hover { border-color: var(--ink-soft); background: var(--bg); color: var(--ink); }
.login-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-muted); }
.login-foot .lang-switch { margin-left: auto; }

/* ---- szöveges oldalak (adatkezelés, nincs hozzáférés) ---- */
.page-doc { background: var(--bg); }
.doc-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem var(--gutter); border-bottom: 1px solid var(--line); }
.doc { max-width: 42rem; margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.doc h1 { font-size: 1.875rem; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 1rem; }
.doc h2 { font-size: var(--step-1); margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc-foot { padding: 1.5rem var(--gutter) 2.5rem; display: flex; justify-content: center; }
.page-message { min-height: 100dvh; display: grid; place-items: center; padding: var(--gutter); }
.page-message main { max-width: 30rem; display: grid; gap: 0.75rem; }
.page-message h1 { margin: 0; font-size: var(--step-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* összecsukható projekt és a nyitott tételek száma */
.project-toggle { cursor: pointer; outline: none; }
.project-toggle .hit { fill: transparent; }
.project-toggle .chevron { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project-toggle:hover .chevron { stroke: var(--link); }
.project-toggle:focus-visible .hit { stroke: var(--link); stroke-width: 1.5; fill: none; }
.open-count { font-size: 11px; font-weight: 650; fill: var(--badge-bg); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }

/* mobilról érkezett tétel */
.phone .phone-body { fill: none; stroke: var(--ink-muted); stroke-width: 1.4; }
.phone .phone-dot { fill: var(--ink-muted); }
.list-phone { display: inline-block; color: var(--ink-muted); margin-right: 0.35rem; vertical-align: -1px; }

/* projekt áthelyezése húzással */
.project-head { touch-action: none; }
.map.is-dragging, .map.is-dragging .project-head { cursor: grabbing; }
.map.is-dragging .project-head:not([transform]), .map.is-dragging .project-toggle:not([transform]) { opacity: 0.55; }
.drop-mark { stroke: var(--link); stroke-width: 2.5; stroke-linecap: round; }

/* telepítési oldal */
.doc code { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.875em; }
.doc-toc ol { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.doc-toc a { color: var(--link); }
.doc .code { position: relative; margin: 0.75rem 0 1rem; }
.doc .code pre { margin: 0; padding: 0.9rem 1rem; padding-right: 5.5rem; overflow-x: auto; background: var(--surface, var(--bg)); border: 1px solid var(--line); border-radius: 8px; font-size: 0.8125rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc .code pre code { font-size: inherit; color: var(--ink); }
.doc .code .copy { position: absolute; top: 0.5rem; right: 0.5rem; }
.mobile-gen { margin: 1rem 0 0.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 0.75rem; }
.mobile-gen p { margin: 0; }
.mobile-gen-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mobile-gen-result { display: flex; gap: 0.5rem; align-items: end; }
.mobile-gen-result label { flex: 1; display: grid; gap: 0.25rem; font-size: 0.8125rem; color: var(--ink-soft); }
.mobile-url { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 0.8125rem; color: var(--ink); background: var(--bg); }
.mobile-gen-status:empty { display: none; }
.gen-box { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 0.75rem; }
.gen-box p { margin: 0; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.gen-label { flex: 1 1 14rem; display: grid; gap: 0.25rem; font-size: 0.8125rem; color: var(--ink-soft); }
.gen-label input { padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--ink); background: var(--bg); }
.gen-result { display: flex; gap: 0.5rem; align-items: end; }
.gen-result label { flex: 1; display: grid; gap: 0.25rem; font-size: 0.8125rem; color: var(--ink-soft); }
.gen-value { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 0.8125rem; color: var(--ink); background: var(--bg); }
.gen-status:empty { display: none; }

/* az offtrack név a címekben, mint egy skill-hívás: Offsite-zöld „/”, utána Offsite-kék „offtrack” (logótípus) */
.otn { color: var(--name-track); white-space: nowrap; }
.otn-slash { color: var(--brand-green); margin-right: 0.04em; }
