/* The Cockpit style's live screen, after the app's cockpit_cards.dart and cockpit_parts.dart. */
.ck { font-family: 'RobotoCondensed', var(--font-sys); }
.ck-label { font-family: 'RobotoCondensed', var(--font-sys); font-weight: 700; letter-spacing: .8px; font-size: 11px; color: var(--muted);
  line-height: 1.1; text-transform: uppercase; }
.ck-mono { font-family: 'RobotoMono', ui-monospace, monospace; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ck-mono.muted { color: var(--muted); font-weight: 500; font-size: 13px; }
/* A panel recessed into the dash: darker, with a hard edge. */
.ck-panel { padding: 10px; border-radius: 8px; background: #15181b; border: 1px solid #000000e6; box-shadow: 0 1px 0 #ffffff0d; }
:root[data-mode="light"] .ck-panel { background: #c9cdd1; border-color: #00000059; box-shadow: 0 1px 0 #ffffff80; }
.ck-head { display: flex; align-items: center; gap: 10px; }
.ck-head .name, .ck-head .title { flex: 1; min-width: 0; font-size: 15px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-head .title { font-size: 14px; }

/* Annunciators: dark until lit in their colour. */
.ck-anns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ck-ann { height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border-radius: 3px; background: #24282c;
  font: 700 11.5px/1.1 'RobotoCondensed', sans-serif; letter-spacing: .8px; color: #6a7279; text-transform: uppercase;
  transition: background-color .15s, box-shadow .15s, color .15s; }
.ck-ann span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ann.on { background: var(--c); color: #050607; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); }
/* The master caution flashes (0.8 s) until it is pressed. */
.ck-master { --c: #f0b020; width: 96px; min-height: 48px; padding: 4px; border-radius: 6px; border: 2px solid #000; cursor: pointer;
  background: #3a3020; color: #9c8a55; font: 700 11.5px/1.1 'RobotoCondensed', sans-serif; letter-spacing: .8px; white-space: pre-line; }
.ck-master:disabled { cursor: default; }
.ck-master.lit { background: color-mix(in srgb, #3a3020 45%, var(--c)); color: #9c8a55; }
.ck-master.pending { animation: ckFlash .8s step-end infinite; }
@keyframes ckFlash { 0% { background: var(--c); color: #050607; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
  50% { background: color-mix(in srgb, #3a3020 85%, var(--c)); color: #9c8a55; box-shadow: none; } }

/* The fuel gauge and the tape. */
.ck-gauges { display: flex; gap: 10px; }
.ck-gauges .fuel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ck-fig { position: relative; padding: 3px 12px; background: #000; border-radius: 3px; font: 700 22px/1.1 'RobotoMono', monospace; font-variant-numeric: tabular-nums; }
.ck-gauges .tape { width: 84px; padding: 8px 5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ck-gauges .tape .ck-label { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-tape { flex: 1; width: 72px; min-height: 120px; }
.ck-tape canvas { display: block; width: 100%; height: 100%; }
.ck-dial { margin: 0 auto; }
.ck-dial svg { display: block; width: 100%; height: 100%; }

/* Figures on black glass. */
.ck-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ck-reads.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.ck-read { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-read .ck-label { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-read .glass { padding: 5px 8px; background: #050607; border: 1px solid #3a3f44; border-radius: 3px; color: #7ce38b;
  font: 700 18px/1.1 'RobotoMono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }

/* Cells: a strip per cell, like an engine display. */
.ck-btn { min-width: 56px; min-height: 36px; padding: 0 10px; border-radius: 4px; border: 1px solid #000; background: #3a4046; cursor: pointer;
  font: 700 12px/1.1 'RobotoCondensed', sans-serif; letter-spacing: .8px; color: #e8ecef; text-transform: uppercase; }
.ck-btn[aria-pressed="true"] { color: #7ce38b; }
.ck-cells .stopline { display: block; margin-top: 6px; font-size: 12.5px; color: var(--accent-text); text-transform: none; }
.ck-cells .stopline.near { color: var(--warn); }
.ck-cells .note { font-size: 11px; color: var(--muted); }
.ck-cells .fine-note { margin-top: 6px; font-size: 12px; }
.ck-strips { display: grid; gap: 10px 4px; margin-top: 10px; }
.ck-strip { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ck-strip .glass { position: relative; width: 100%; height: 96px; background: #050607; border: 1px solid #3a3f44; border-radius: 2px;
  transition: border-color .3s; }
.ck-strip.framed .glass { border: 2px solid #f0b020; }
.ck-strip .fill { position: absolute; left: 2px; right: 2px; bottom: 0; height: 0;
  transition: height var(--ms, 800ms) cubic-bezier(.33, 1, .68, 1), bottom var(--ms, 800ms) cubic-bezier(.33, 1, .68, 1); }
.ck-strip .stop { position: absolute; left: 0; right: 0; height: 2px; translate: 0 50%; background: #e8ecef; }
.ck-strip .mid { position: absolute; left: 0; right: 0; bottom: 50%; height: 1px; background: #e8ecef; display: none; }
.ck-cells.fine .ck-strip .mid { display: block; }
.ck-cells.fine .ck-strip .stop { display: none; }
.ck-strip .v { margin-top: 3px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.ck-strip .n { font-size: 9.5px; }

.ck-temps { display: grid; gap: 10px 8px; justify-items: center; }
.ck-temps > div { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 104px; }
.ck-temps .ck-dial { width: 100%; aspect-ratio: 1; }
.ck-temps .ck-mono { margin-top: 2px; font-size: 13px; }
.ck-temps .ck-label { font-size: 10px; }

/* The warning bar. */
.ck-alert { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 12px; background: #050607; border: 2px solid #ff4b3e; border-radius: 6px; }
.ck-alert .lamp { width: 18px; height: 18px; flex: none; border-radius: 2px; border: 1.5px solid #000; background: #ff4b3e;
  box-shadow: 0 0 12px color-mix(in srgb, #ff4b3e 60%, transparent); }
.ck-alert .title { font: 700 16px/1.1 'RobotoCondensed', sans-serif; letter-spacing: .8px; color: #ff4b3e; text-transform: uppercase; }
.ck-alert .detail { margin-top: 4px; font: 500 13px/1.2 'RobotoMono', monospace; color: #e8ecef; }
