/* navis pack — LCARS / Star Trek stílus */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&display=swap');

.shell {
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* LCARS header */
.lcars-hdr { flex-shrink: 0; padding: var(--thw8-space-2) var(--thw8-space-3) }
.lcars-row { display: flex; align-items: stretch; gap: 0; margin-bottom: var(--thw8-space-1) }

.elbow { width: 60px; min-height: 40px; flex-shrink: 0; border-radius: 50px 0 0 0 }
.elbow-top { background: var(--thw8-color-accent) }
.elbow-bot { background: var(--thw8-color-surface-raised); border-radius: 0 0 0 50px }

.lcars-bar { flex: 1; display: flex; align-items: center; gap: var(--thw8-space-2); padding: 0 var(--thw8-space-2) }
.lcars-bar-top { border-bottom: var(--thw8-border-base) solid var(--thw8-color-accent); padding-bottom: var(--thw8-space-1) }
.lcars-bar-bot { border-top: var(--thw8-border-base) solid var(--thw8-color-surface-raised); padding-top: var(--thw8-space-1) }

.lcars-name { font-size: var(--thw8-text-size-xl); font-weight: var(--thw8-weight-bold); color: var(--thw8-color-accent); flex: 1 }
.lcars-status { font-size: var(--thw8-text-size-xs); color: var(--thw8-color-success); animation: blink-status 2s step-end infinite }
@keyframes blink-status { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.pill {
  padding: 4px 12px;
  font-size: var(--thw8-text-size-xs);
  font-weight: var(--thw8-weight-semibold);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none; cursor: pointer;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  min-height: 28px;
  display: flex; align-items: center;
}
.pill-accent  { background: var(--thw8-color-accent);  color: #000 }
.pill-warn    { background: var(--thw8-color-warning);  color: #000 }
.pill-success { background: var(--thw8-color-success);  color: #000 }
.pill-muted   { background: var(--thw8-color-muted);    color: #000 }

.dekor-pills { display: flex; gap: 4px; flex: 1; justify-content: flex-end }
.dekor-pill  { height: 8px; border-radius: 4px; flex: 1; max-width: 40px }

/* Wall — scanline overlay */
.wall {
  padding: var(--thw8-space-3) var(--thw8-space-4);
  position: relative;
}
.wall::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    transparent, transparent 2px,
    rgba(255,153,0,.05) 2px, rgba(255,153,0,.05) 3px
  );
}

/* Bubbles — LCARS */
.bub {
  letter-spacing: .08em;
  font-weight: var(--thw8-weight-semibold);
}
.bub-user { background: var(--thw8-color-accent); color: #000; border-left: 4px solid var(--thw8-color-accent) }
.bub-dobby { background: var(--thw8-color-surface-raised); color: var(--thw8-color-fg); border-left: 4px solid var(--thw8-color-accent) }

.tts-pill {
  background: var(--thw8-color-accent); color: #000;
  border: none; font-size: 10px; padding: 2px 8px;
  border-radius: 8px; cursor: pointer;
  font-family: inherit; text-transform: uppercase; letter-spacing: .08em;
  font-weight: var(--thw8-weight-semibold);
}

/* Typing */
.typing {
  color: var(--thw8-color-warning);
  border-left: 4px solid var(--thw8-color-warning);
  font-weight: var(--thw8-weight-semibold);
}
.block-blink { animation: bb 1s step-end infinite }
@keyframes bb { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

/* Input area */
.inp-area { border-top: var(--thw8-border-base) solid var(--thw8-color-accent); padding: var(--thw8-space-3) var(--thw8-space-4) }
.inp-field {
  text-transform: uppercase;
  letter-spacing: .1em;
  border: var(--thw8-border-base) solid var(--thw8-color-border);
  min-height: 44px;
}
.btn-mic { width: 48px; height: 48px; min-width: 48px; border: var(--thw8-border-base) solid var(--thw8-color-border) }
.btn-mic:active { background: var(--thw8-color-accent); color: #000 }
.btn-send {
  flex: 1; min-height: 48px;
  border: none; color: #000;
  font-size: var(--thw8-text-size-base);
  font-weight: var(--thw8-weight-bold);
  text-transform: uppercase; letter-spacing: .12em;
}
.btn-send:active { background: var(--thw8-color-warning) }

/* Device card */
.device-hdr { font-weight: var(--thw8-weight-bold); color: var(--thw8-color-accent); margin-bottom: 4px; font-size: 11px }

/* Footer */
.footer {
  font-size: var(--thw8-text-size-xs);
  color: var(--thw8-color-muted);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  padding: 2px var(--thw8-space-3);
}
