/* ==========================================================================
   Fixpoint – Hotline: Logo, Spalten, Ausgabe, Editor, Anrufart
   ========================================================================== */

/* [Annahme] Eigenes Produktzeichen Fixpoint: blaue Kachel, Fadenkreuz mit festem Punkt, Farben nur aus Tokens */
.df-mark { width: 26px; height: 26px; flex: none; }
.df-mark__tile { fill: var(--color-primary); }
.df-mark__line { fill: none; stroke: #0a0a0a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.df-mark__spark { fill: #0a0a0a; }
/* [Annahme] Zwei Spalten ab ausreichender Breite, darunter untereinander */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--grid-gap); align-items: start; }
.tool-grid .card { gap: var(--space-lg); }
.stack { display: flex; flex-direction: column; gap: var(--space-lg); }
.out-block { display: flex; flex-direction: column; gap: var(--space-xs); }
.out-block__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
/* [Annahme] Codeblock: getönte Fläche wie .secret, Monospace, mehrzeilig */
.code-block { margin: 0; padding: var(--space-sm) var(--input-pad-x); border-radius: var(--radius-control); background-color: color-mix(in srgb, var(--text-primary) var(--secondary-tint), var(--bg-card)); font-family: var(--font-mono); font-size: var(--type-caption-size); line-height: var(--type-body-lh); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-primary); }
.code-block--empty { color: var(--text-secondary); font-family: var(--font-text); }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-lg); }
.view[hidden] { display: none; }
.fmt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); flex-wrap: wrap; }
.fmt-tools { display: inline-flex; gap: var(--space-xxs); }
.hl-top { display: flex; gap: var(--space-xs); align-items: center; }
.hl-top .segmented { flex: 1; }
.field:has(:required) .fmt-head > label::after { content: "\00a0*" / ""; color: var(--error); }
.fmt-head label { font-size: var(--type-label-size); font-weight: var(--type-label-weight); line-height: var(--type-label-lh); }
.fmt-tools .chip .i { width: var(--icon-size-sm, 14px); height: var(--icon-size-sm, 14px); }
#h-issue { min-height: calc(var(--input-height) * 3); field-sizing: content; max-height: 40vh; }
/* Eingabe wie ein Chat-Editor: Werkzeugleiste oben im selben Rahmen, Akzentlinie unten beim Fokus */
.composer { border: 1px solid var(--c-line3); border-radius: 8px; background: var(--bg-field); overflow: hidden; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .15s, border-color .15s; }
.composer__bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px 0; }
.composer__btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--c-fg2); cursor: pointer; }
.composer__btn:hover { background: var(--c-bg4); color: var(--c-fg0); }
.composer__btn .i { width: 16px; height: 16px; }
.composer__sep { width: 1px; height: 16px; margin: 0 4px; background: var(--c-line4); }
.composer__ed { min-height: calc(var(--input-height) * 3); max-height: 40vh; overflow-y: auto; height: auto; padding: 8px 12px 12px; white-space: pre-wrap; word-break: break-word; cursor: text; }
.composer__ed:empty::before { content: attr(data-placeholder); color: var(--text-tertiary, #6b6b6b); pointer-events: none; }
.composer > .composer__ed, .composer > .composer__ed:is(:hover, :focus, :focus-visible) { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; outline: none !important; resize: none !important; }
.composer:hover { border-color: var(--c-line5); }   /* wie die anderen Felder */
#view-hotline .tool-grid > .card:last-child { position: sticky; top: var(--space-lg); }
#view-hotline .card { gap: var(--space-sm); }
#view-hotline .head { margin-bottom: 0; }
/* Anrufart oben, passende Unteroption darunter */
.hl-sub .segmented { display: flex; width: 100%; }
.hl-sub .segmented__btn { flex: 1; }
.hl-sub { margin-bottom: var(--space-xs); }
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm) var(--grid-gap, var(--space-sm)); }
.hl-s1 { grid-column: span 1; } .hl-s2 { grid-column: span 2; } .hl-s3 { grid-column: span 3; }
.hl-clear-wrap { position: relative; display: block; }
.hl-clear-wrap > .input { width: 100%; padding-right: calc(var(--space-xs) * 2 + 20px); }
.hl-clear { position: absolute; top: 50%; right: var(--space-xs); transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-secondary); cursor: pointer; }
.hl-clear--area, .hl-clear-wrap--area .hl-clear { top: var(--space-xs); transform: none; }
.hl-clear:hover { color: var(--text-primary); background-color: color-mix(in srgb, var(--text-primary) var(--hover-tint), transparent); }
.hl-clear .i { width: 14px; height: 14px; }
.hl-head-actions { display: inline-flex; align-items: center; gap: var(--space-xs); }
.hl-outlook { text-decoration: none; color: var(--text-primary); }
.hl-outlook .hl-ol { width: 16px; height: 16px; }
.hl-recent { display: grid; gap: var(--space-xxs); padding-top: var(--space-sm); border-top: var(--border-width-thin) solid var(--border-hairline); }
.hl-recent__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hl-recent__item { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: var(--space-xs); width: 100%; padding: var(--space-xxs) var(--space-xs); border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-primary); text-align: left; cursor: pointer; font: inherit; }
.hl-recent__item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-recent__item:hover { background-color: color-mix(in srgb, var(--text-primary) var(--hover-tint), transparent); }

/* Feld leeren nur bei Inhalt, schmale Bildschirme, mehrzeilige Felder */
.hl-clear-wrap:has(> .input:placeholder-shown) .hl-clear { display: none; }
@media (max-width: 560px) { .hl-grid > .field { grid-column: 1 / -1; } }
textarea.input { min-height: calc(var(--input-height) * 3); resize: vertical; }
