# Picard display: the "display over controls" archetype from doc/getting-started/lcars-design.md,
# built as modules whose slots take a decorative part or a control of the same size.
# One display sweep, open on the right, frames a dimmed side profile of a starship with labelled
# bracket-style leader lines (three labels carry live readings, one fault in the accent): angled
# lines from labels above and below, or level lines from labels in two columns, switched by the
# LEADERS block (input_select.lcards_test_leaders); its top and bottom bars
# run on as segments and the title sits under the top bar. The control deck under it: a code-block
# column (three blocks toggle helpers), a gauge bank (picard-gauge-column), toggle tabs over two
# readings tables and a mode selector, a column of flagged blocks, and utility pills in a bracket
# open on the right edge. A segmented bar closes the screen.
# Every colour is a theme role (theme: tokens), so it follows the HA-LCARS theme.
# Uses lcards_test_* helpers.
title: Picard Display
views:
  - title: Display
    path: display
    type: custom:lcards-layout-view
    layout:
      height: calc(100dvh - var(--header-height, 56px))
      padding: 8px
      grid-gap: 6px
      grid-template-columns: 134px 258px minmax(0, 1fr) 196px 130px
      grid-template-rows: minmax(0, 1fr) 264px 12px
      grid-template-areas: |
        "top  top    top    top   top"
        "code gauges centre flags pills"
        "b1   b2     b3     b4    pills"
    cards:
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 96px 64px 150px 96px minmax(0, 1fr) 64px 180px 96px 64px
          grid-template-rows: 12px 48px minmax(0, 1fr) 12px
        cards:
          - type: custom:lcards-elbow
            view_layout:
              grid-column: '1'
              grid-row: 1 / -1
            elbow:
              type: frame
              segment:
                color: theme:colors.ui.secondary
              frame:
                bar_width: 14
                bar_height: 12
                outer_curve: 60
                right:
                  enabled: false
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-column: 2 / 4
              grid-row: '1'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: •  •••  ••  •
                show: true
                position: center
                font_size: 14
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '4'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '5'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
            view_layout:
              grid-column: '6'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: 7 / -1
              grid-row: '1'
          - type: custom:lcards-layout-card
            layout:
              grid-gap: 6px
              grid-template-columns: 64px 150px
              grid-template-rows: minmax(0, 1fr) 24px
            cards:
              - type: custom:lcards-button
                preset: panel-dark
                min_height: 0
                text:
                  label:
                    content: 47-2201
                    position: center-right
                    font_size: 13
                style:
                  card:
                    color:
                      background:
                        default: theme:colors.card.topColor
                view_layout:
                  grid-column: '1'
                  grid-row: '2'
              - type: custom:lcards-button
                preset: panel-light
                min_height: 0
                text:
                  label:
                    content: PROFILE 2 · 1:800
                    position: center-right
                    font_size: 13
                view_layout:
                  grid-column: '2'
                  grid-row: '2'
            view_layout:
              grid-column: 2 / 4
              grid-row: '2'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: NCC-1701 · SYSTEMS PROFILE
                show: true
                position: bottom-right
                font_size: 40
                color: theme:colors.ui.tertiary
            view_layout:
              grid-column: 5 / -1
              grid-row: '2'
          # the schematic with angled leaders (LEADERS block: ANGLED); bracket labels above and below
          - type: custom:lcards-msd-card
            view_layout:
              grid-column: 2 / -1
              grid-row: '3'
            msd:
              base_svg:
                source: builtin:ncc-1701-kelvin
                filters:
                  - mode: css
                    type: grayscale
                    value: 1
                  - mode: css
                    type: opacity
                    value: 0.42
              view_box:
                - -85
                - 100
                - 1160
                - 440
              overlays:
                - id: lbl-bridge
                  type: control
                  attachment: top-left
                  position:
                    - -10
                    - 145
                  size:
                    - 94
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: BRIDGE · DECK 1
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-bridge
                  type: line
                  anchor: lbl-bridge
                  attach_to:
                    - 226
                    - 238
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-hull
                  type: control
                  attachment: top-left
                  position:
                    - 49
                    - 118
                  size:
                    - 128
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_shields
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: PRIMARY HULL · SHD {entity.state}
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-hull
                  type: line
                  anchor: lbl-hull
                  attach_to:
                    - 380
                    - 272
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-bussard
                  type: control
                  attachment: top-left
                  position:
                    - 663
                    - 118
                  size:
                    - 111
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          left: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: BUSSARD COLLECTOR 2
                        show: true
                        position: center-left
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          left: 11
                - id: ln-bussard
                  type: line
                  anchor: lbl-bussard
                  attach_to:
                    - 486
                    - 246
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-left
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-nacelle
                  type: control
                  attachment: top-left
                  position:
                    - 923
                    - 118
                  size:
                    - 123
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_warp_factor
                    style:
                      border:
                        width:
                          left: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: WARP NACELLE · WF {entity.state}
                        show: true
                        position: center-left
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          left: 11
                - id: ln-nacelle
                  type: line
                  anchor: lbl-nacelle
                  attach_to:
                    - 760
                    - 232
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-left
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-deflector
                  type: control
                  attachment: top-left
                  position:
                    - -15
                    - 500
                  size:
                    - 102
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: DEFLECTOR · 41-07
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-deflector
                  type: line
                  anchor: lbl-deflector
                  attach_to:
                    - 290
                    - 392
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-power
                  type: control
                  attachment: top-left
                  position:
                    - 171
                    - 500
                  size:
                    - 102
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_power
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: MAIN POWER · {entity.state}
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-power
                  type: line
                  anchor: lbl-power
                  attach_to:
                    - 462
                    - 402
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-pylon
                  type: control
                  attachment: top-left
                  position:
                    - -70
                    - 331
                  size:
                    - 128
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: PYLON 2 · COOLANT FAULT
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.tertiary
                        padding:
                          right: 11
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.tertiary
                - id: ln-pylon
                  type: line
                  anchor: lbl-pylon
                  attach_to:
                    - 552
                    - 332
                  style:
                    color: theme:colors.ui.tertiary
                    width: 2.0
                  anchor_side: top-right
                  route_hint: xy
                  route: manhattan
                  corner_style: miter
                - id: lbl-bay
                  type: control
                  attachment: top-left
                  position:
                    - 367
                    - 500
                  size:
                    - 119
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: SHUTTLEBAY 2 · 06-114
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-bay
                  type: line
                  anchor: lbl-bay
                  attach_to:
                    - 618
                    - 384
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
                - id: lbl-aft
                  type: control
                  attachment: top-left
                  position:
                    - 569
                    - 500
                  size:
                    - 94
                    - 16
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 4
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: AFT CAP · 77-30
                        show: true
                        position: center-right
                        font_size: 10
                        color: theme:colors.ui.secondary
                        padding:
                          right: 11
                - id: ln-aft
                  type: line
                  anchor: lbl-aft
                  attach_to:
                    - 968
                    - 246
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.0
                  anchor_side: top-right
                  route: angled
                  route_hint: xy
                  stub_length: 50.1
                  corner_style: miter
              background_animation:
                - preset: grid
                  config:
                    line_spacing: 64
                    major_row_interval: 0
                    major_col_interval: 0
                    scroll_speed_x: 0
                    scroll_speed_y: 0
                    show_border_lines: false
                    color: alpha(var(--lcars-card-top-color, var(--lcards-gray-medium)), 0.35)
            visibility:
              - condition: state
                entity: input_select.lcards_test_leaders
                state: ANGLED
          # the same schematic with level leaders: bracket labels in two columns beside the ship
          - type: custom:lcards-msd-card
            view_layout:
              grid-column: 2 / -1
              grid-row: '3'
            msd:
              base_svg:
                source: builtin:ncc-1701-kelvin
                filters:
                  - mode: css
                    type: grayscale
                    value: 1
                  - mode: css
                    type: opacity
                    value: 0.42
              view_box:
                - -200
                - 60
                - 1390
                - 530
              overlays:
                - id: lbl-bridge
                  type: control
                  attachment: top-left
                  position:
                    - -150
                    - 237
                  size:
                    - 110
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: BRIDGE · DECK 1
                        show: true
                        position: center-right
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          right: 13
                - id: ln-bridge
                  type: line
                  anchor: lbl-bridge
                  attach_to:
                    - 226
                    - 238
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-right
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-hull
                  type: control
                  attachment: top-left
                  position:
                    - -190
                    - 281
                  size:
                    - 150
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_shields
                    style:
                      border:
                        width:
                          right: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: PRIMARY HULL · SHD {entity.state}
                        show: true
                        position: center-right
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          right: 13
                - id: ln-hull
                  type: line
                  anchor: lbl-hull
                  attach_to:
                    - 380
                    - 282
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-right
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-bussard
                  type: control
                  attachment: top-left
                  position:
                    - 1030
                    - 275
                  size:
                    - 130
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          left: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: BUSSARD COLLECTOR 2
                        show: true
                        position: center-left
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          left: 13
                - id: ln-bussard
                  type: line
                  anchor: lbl-bussard
                  attach_to:
                    - 486
                    - 276
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-left
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-nacelle
                  type: control
                  attachment: top-left
                  position:
                    - 1030
                    - 225
                  size:
                    - 145
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_warp_factor
                    style:
                      border:
                        width:
                          left: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: WARP NACELLE · WF {entity.state}
                        show: true
                        position: center-left
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          left: 13
                - id: ln-nacelle
                  type: line
                  anchor: lbl-nacelle
                  attach_to:
                    - 760
                    - 226
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-left
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-deflector
                  type: control
                  attachment: top-left
                  position:
                    - -160
                    - 385
                  size:
                    - 120
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          right: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: DEFLECTOR · 41-07
                        show: true
                        position: center-right
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          right: 13
                - id: ln-deflector
                  type: line
                  anchor: lbl-deflector
                  attach_to:
                    - 290
                    - 386
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-right
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-power
                  type: control
                  attachment: top-left
                  position:
                    - -160
                    - 409
                  size:
                    - 120
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    entity: input_number.lcards_test_power
                    style:
                      border:
                        width:
                          right: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: MAIN POWER · {entity.state}
                        show: true
                        position: center-right
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          right: 13
                - id: ln-power
                  type: line
                  anchor: lbl-power
                  attach_to:
                    - 462
                    - 410
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-right
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-pylon
                  type: control
                  attachment: top-left
                  position:
                    - 1030
                    - 331
                  size:
                    - 150
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: PYLON 2 · COOLANT FAULT
                        show: true
                        position: center-left
                        font_size: 12
                        color: theme:colors.ui.tertiary
                        padding:
                          left: 13
                    style:
                      border:
                        width:
                          left: 5
                        color: theme:colors.ui.tertiary
                - id: ln-pylon
                  type: line
                  anchor: lbl-pylon
                  attach_to:
                    - 552
                    - 332
                  style:
                    color: theme:colors.ui.tertiary
                    width: 2.3
                  anchor_side: top-left
                  route_hint: xy
                  route: manhattan
                  corner_style: miter
                - id: lbl-bay
                  type: control
                  attachment: top-left
                  position:
                    - 1030
                    - 387
                  size:
                    - 140
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          left: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: SHUTTLEBAY 2 · 06-114
                        show: true
                        position: center-left
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          left: 13
                - id: ln-bay
                  type: line
                  anchor: lbl-bay
                  attach_to:
                    - 618
                    - 388
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-left
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
                - id: lbl-aft
                  type: control
                  attachment: top-left
                  position:
                    - 1030
                    - 251
                  size:
                    - 110
                    - 19
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    style:
                      border:
                        width:
                          left: 5
                        color: theme:colors.ui.secondary
                    text:
                      label:
                        content: AFT CAP · 77-30
                        show: true
                        position: center-left
                        font_size: 12
                        color: theme:colors.ui.secondary
                        padding:
                          left: 13
                - id: ln-aft
                  type: line
                  anchor: lbl-aft
                  attach_to:
                    - 968
                    - 252
                  style:
                    color: theme:colors.ui.secondary
                    width: 2.3
                  anchor_side: top-left
                  route: manhattan
                  route_hint: xy
                  corner_style: miter
              background_animation:
                - preset: grid
                  config:
                    line_spacing: 64
                    major_row_interval: 0
                    major_col_interval: 0
                    scroll_speed_x: 0
                    scroll_speed_y: 0
                    show_border_lines: false
                    color: alpha(var(--lcars-card-top-color, var(--lcards-gray-medium)), 0.35)
            visibility:
              - condition: state
                entity: input_select.lcards_test_leaders
                state: LEVEL
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: 2 / 4
              grid-row: '4'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-column: 4 / 6
              grid-row: '4'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: ••  •  •••  ••
                show: true
                position: center
                font_size: 14
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: 6 / 8
              grid-row: '4'
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: 8 / -1
              grid-row: '4'
        view_layout:
          grid-area: top
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 64px 64px
          grid-template-rows: repeat(9, 24px)
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 63-934
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 13-650
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 19-638
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_lights
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: LIGHTS
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 07-412
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 28-130
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            entity: input_boolean.lcards_test_doors
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: DOORS
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 50-957
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 81-782
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 85-334
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 92-047
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: AUX
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 55-306
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 14-820
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 29-584
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 68-731
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 74-019
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 58-362
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
        view_layout:
          grid-area: code
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: repeat(4, 60px)
          grid-template-rows: minmax(0, 1fr)
        cards:
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_power
            text:
              name:
                show: true
                content: 21-10
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_shields
            text:
              name:
                show: true
                content: 65-87
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_humidity
            text:
              name:
                show: true
                content: 37-88
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_value
            text:
              name:
                show: true
                content: 12-04
        view_layout:
          grid-area: gauges
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 96px 96px 96px 96px 96px minmax(0, 1fr)
          grid-template-rows: 24px 24px minmax(0, 1fr) 30px
        cards:
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_lights
            text:
              name:
                content: LIGHTS
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-column: '1'
              grid-row: '1'
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_doors
            text:
              name:
                content: DOORS
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-column: '2'
              grid-row: '1'
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            text:
              name:
                content: AUX
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-column: '3'
              grid-row: '1'
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            text:
              name:
                content: DECK 7
                font_size: 13
            view_layout:
              grid-column: '4'
              grid-row: '1'
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            text:
              name:
                content: LOG
                font_size: 13
            view_layout:
              grid-column: '5'
              grid-row: '1'
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: SHIP SYSTEMS
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-column: '6'
              grid-row: '1'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: SYSTEMS
                show: true
                position: bottom-left
                font_size: 14
                color: theme:colors.ui.tertiary
            view_layout:
              grid-column: 1 / 3
              grid-row: '2'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: ENVIRONMENT
                show: true
                position: bottom-left
                font_size: 14
                color: theme:colors.ui.tertiary
            view_layout:
              grid-column: 4 / 6
              grid-row: '2'
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: •  ••  •••  •  ••
                show: true
                position: center-right
                font_size: 14
                color: theme:colors.ui.secondary
            view_layout:
              grid-column: '6'
              grid-row: '2'
          - type: custom:lcards-data-grid
            data_mode: data
            rows:
              - values:
                  - value: '01'
                    style:
                      color: theme:colors.card.topColor
                  - POWER
                  - input_number.lcards_test_power
                  - '{{ ''LOW'' if states(''input_number.lcards_test_power'') | float(0) < 30 else (''HIGH'' if states(''input_number.lcards_test_power'') | float(0) > 95 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '02'
                    style:
                      color: theme:colors.card.topColor
                  - SHIELDS
                  - input_number.lcards_test_shields
                  - '{{ ''LOW'' if states(''input_number.lcards_test_shields'') | float(0) < 30 else (''HIGH'' if states(''input_number.lcards_test_shields'') | float(0) > 95 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '03'
                    style:
                      color: theme:colors.card.topColor
                  - WARP
                  - input_number.lcards_test_warp_factor
                  - '{{ ''ENGAGED'' if is_state(''input_boolean.lcards_test_warp_travel'', ''on'') else ''IDLE'' }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '04'
                    style:
                      color: theme:colors.card.topColor
                  - LEVEL
                  - input_number.lcards_test_value
                  - '{{ ''LOW'' if states(''input_number.lcards_test_value'') | float(0) < 20 else (''HIGH'' if states(''input_number.lcards_test_value'') | float(0) > 90 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '05'
                    style:
                      color: theme:colors.card.topColor
                  - MODE
                  - input_select.lcards_test_mode
                  - SET
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '06'
                    style:
                      color: theme:colors.card.topColor
                  - STAGE
                  - input_number.lcards_test_stage
                  - OF 20
                style:
                  color: theme:colors.ui.primary
            columns:
              - style:
                  align: left
              - style:
                  align: left
              - {}
              - style:
                  align: left
            grid:
              grid-template-columns: 22px 74px 64px 72px
              grid-template-rows: repeat(6, 22px)
              gap: 0px 10px
            style:
              font_size: 14
              padding: 0px
              line_height: 1.1
              align: right
              text_transform: uppercase
            view_layout:
              grid-column: 1 / 4
              grid-row: '3'
          - type: custom:lcards-data-grid
            data_mode: data
            rows:
              - values:
                  - value: '07'
                    style:
                      color: theme:colors.card.topColor
                  - TEMP
                  - input_number.lcards_test_temperature
                  - '{{ ''LOW'' if states(''input_number.lcards_test_temperature'') | float(0) < 18 else (''HIGH'' if states(''input_number.lcards_test_temperature'') | float(0) > 26 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '08'
                    style:
                      color: theme:colors.card.topColor
                  - HUMIDITY
                  - input_number.lcards_test_humidity
                  - '{{ ''LOW'' if states(''input_number.lcards_test_humidity'') | float(0) < 30 else (''HIGH'' if states(''input_number.lcards_test_humidity'') | float(0) > 60 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '09'
                    style:
                      color: theme:colors.card.topColor
                  - AMBIENT
                  - sensor.desk_sensor_temperature
                  - '{{ ''LOW'' if states(''sensor.desk_sensor_temperature'') | float(0) < 18 else (''HIGH'' if states(''sensor.desk_sensor_temperature'') | float(0) > 26 else ''NOMINAL'') }}'
                style:
                  color: theme:colors.ui.secondary
              - values:
                  - value: '10'
                    style:
                      color: theme:colors.card.topColor
                  - LIGHTS
                  - input_boolean.lcards_test_lights
                  - '{{ ''ACTIVE'' if is_state(''input_boolean.lcards_test_lights'', ''on'') else ''STANDBY'' }}'
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '11'
                    style:
                      color: theme:colors.card.topColor
                  - DOORS
                  - input_boolean.lcards_test_doors
                  - '{{ ''OPEN'' if is_state(''input_boolean.lcards_test_doors'', ''on'') else ''SECURE'' }}'
                style:
                  color: theme:colors.ui.primary
              - values:
                  - value: '12'
                    style:
                      color: theme:colors.card.topColor
                  - AUX
                  - input_boolean.lcards_test_toggle
                  - '{{ ''ACTIVE'' if is_state(''input_boolean.lcards_test_toggle'', ''on'') else ''STANDBY'' }}'
                style:
                  color: theme:colors.ui.primary
            columns:
              - style:
                  align: left
              - style:
                  align: left
              - {}
              - style:
                  align: left
            grid:
              grid-template-columns: 22px 74px 64px 72px
              grid-template-rows: repeat(6, 22px)
              gap: 0px 10px
            style:
              font_size: 14
              padding: 0px
              line_height: 1.1
              align: right
              text_transform: uppercase
            view_layout:
              grid-column: 4 / 7
              grid-row: '3'
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: digit
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(3, 44px)
              grid-template-rows: repeat(6, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.card.topColor
              align: right
            view_layout:
              grid-column: '6'
              grid-row: '3'
              justify-self: end
          - type: custom:lcards-select-menu
            entity: input_select.lcards_test_mode
            preset: toggle-tab
            grid:
              columns: 3
              gap: 6px
              grid-auto-rows: 30px
            style:
              text:
                default:
                  font_size: 13
            view_layout:
              grid-column: 1 / 4
              grid-row: '4'
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: MODE SELECT
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-column: 4 / 6
              grid-row: '4'
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            entity: sensor.desk_sensor_temperature
            text:
              label:
                content: '{entity.state}'
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
            view_layout:
              grid-column: '6'
              grid-row: '4'
        view_layout:
          grid-area: centre
      - type: custom:lcards-layout-card
        layout:
          grid-gap: 6px
          grid-template-columns: 96px 94px
          grid-template-rows: repeat(9, 24px)
        cards:
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: NAV REF
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: '541'
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: '012'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: '330'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            entity: input_boolean.lcards_test_doors
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: '436'
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: '542'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: '618'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            entity: input_boolean.lcards_test_warp_travel
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: '704'
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 20-337
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 82-869
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: 0099•06
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: '231'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 35-598
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: NCC-1701
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 48-966
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 67-853
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            entity: input_select.lcards_test_leaders
            interactive: true
            tap_action:
              action: perform-action
              perform_action: input_select.select_next
              target:
                entity_id: input_select.lcards_test_leaders
            text:
              label:
                content: '{entity.state}'
                position: center-right
                font_size: 13
                color:
                  default: theme:colors.ui.secondary
                  active: var(--lcars-text-dark, var(--lcards-gray-darkest))
                  inactive: theme:colors.ui.secondary
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 15-590
                position: center-right
                font_size: 13
        view_layout:
          grid-area: flags
      - type: custom:lcards-elbow
        view_layout:
          grid-area: pills
        elbow:
          type: frame
          segment:
            color: theme:colors.ui.secondary
          frame:
            bar_width: 14
            bar_height: 30
            outer_curve: 30
            right:
              enabled: false
      - type: custom:lcards-layout-card
        layout:
          padding: 40px 0px 40px 30px
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr)
          grid-template-rows: 24px 24px 24px minmax(0, 1fr) 24px 24px 24px 24px
        cards:
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: ZOOM
                show: true
                position: center
                font_size: 13
                color: theme:colors.ui.secondary
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: DIMMER
                show: true
                position: center
                font_size: 13
                color: theme:colors.ui.secondary
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: SETTINGS
                show: true
                position: center
                font_size: 13
                color: theme:colors.ui.secondary
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 22-845
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: SCR. RIGHT
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: 'MOD: DNA'
                position: center-right
                font_size: 13
          - type: custom:lcards-button
            preset: lozenge
            min_height: 0
            text:
              label:
                content: RED ALERT
                show: true
                position: center
                font_size: 13
                color: var(--lcars-text-dark, var(--lcards-gray-darkest))
            style:
              card:
                color:
                  background:
                    default: var(--lcars-alert-color, var(--lcards-orange-dark))
            tap_action:
              action: perform-action
              perform_action: lcards.red_alert
        view_layout:
          grid-area: pills
      - type: custom:lcards-button
        preset: panel-light
        min_height: 0
        text:
          label:
            show: false
        style:
          card:
            color:
              background:
                default: theme:colors.ui.secondary
        view_layout:
          grid-area: b1
      - type: custom:lcards-button
        preset: panel-light
        min_height: 0
        text:
          label:
            show: false
        style:
          card:
            color:
              background:
                default: theme:colors.card.topColor
        view_layout:
          grid-area: b2
      - type: custom:lcards-button
        preset: panel-light
        min_height: 0
        text:
          label:
            show: false
        style:
          card:
            color:
              background:
                default: theme:colors.ui.secondary
        view_layout:
          grid-area: b3
      - type: custom:lcards-button
        preset: panel-light
        min_height: 0
        text:
          label:
            show: false
        style:
          card:
            color:
              background:
                default: theme:colors.ui.tertiary
        view_layout:
          grid-area: b4
