# Picard console: the "display with side columns" archetype from doc/getting-started/lcars-design.md,
# built as modules whose slots take a decorative part or a control of the same size.
# Utility pills in a bracket open on the left (gauge groups in its slot); one display sweep down
# the left edge (the header bar turns down over a code-block column and ends in a short sweep
# into the strip's closing bar); a dimmed ship schematic inside it; a gauge bank
# (picard-gauge-column) beside flagged readings; toggle tabs and readout rows along the bottom.
# Every colour is a theme role (theme: tokens), so it follows the HA-LCARS theme.
# Uses lcards_test_* helpers.
title: Picard Console
views:
  - title: Console
    path: console
    type: custom:lcards-layout-view
    layout:
      height: calc(100dvh - var(--header-height, 56px))
      padding: 8px
      grid-gap: 6px
      grid-template-columns: 130px 180px minmax(0, 1fr) 196px
      grid-template-rows: 76px minmax(0, 1fr) 140px
      grid-template-areas: |
        "pills top top top"
        "pills left main right"
        "pills left strip right"
    cards:
      - 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
            left:
              enabled: false
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: pills
        layout:
          padding: 40px 30px 40px 0px
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr)
          grid-template-rows: 24px minmax(0, 1fr) 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-layout-card
            layout:
              grid-gap: 6px
              grid-template-columns: repeat(2, minmax(0, 1fr))
              grid-template-rows: 6px 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px 6px
              grid-template-areas: |
                ". ."
                "h1 h1"
                "g1 g2"
                "h2 h2"
                "g3 g4"
                "b7 b8"
                ". ."
            cards:
              - type: custom:lcards-button
                preset: panel-light
                min_height: 0
                text:
                  label:
                    content: 46-370
                    position: center-right
                    font_size: 13
                style:
                  card:
                    color:
                      background:
                        default: theme:colors.ui.tertiary
                view_layout:
                  grid-area: h1
              - type: custom:lcards-slider
                preset: picard-gauge-column
                entity: input_number.lcards_test_temperature
                text:
                  name:
                    show: true
                    content: 51-80
                style:
                  gauge:
                    scale:
                      labels:
                        enabled: false
                view_layout:
                  grid-area: g1
              - type: custom:lcards-slider
                preset: picard-gauge-column
                entity: input_number.lcards_test_humidity
                text:
                  name:
                    show: true
                    content: 37-88
                style:
                  gauge:
                    scale:
                      labels:
                        enabled: false
                view_layout:
                  grid-area: g2
              - type: custom:lcards-button
                preset: panel-dark
                min_height: 0
                text:
                  label:
                    content: 82-869
                    position: center-right
                    font_size: 13
                    color: theme:colors.ui.secondary
                view_layout:
                  grid-area: h2
              - type: custom:lcards-slider
                preset: picard-gauge-column
                entity: input_number.lcards_test_power
                text:
                  name:
                    show: true
                    content: 21-10
                style:
                  gauge:
                    scale:
                      labels:
                        enabled: false
                view_layout:
                  grid-area: g3
              - type: custom:lcards-slider
                preset: picard-gauge-column
                entity: input_number.lcards_test_shields
                text:
                  name:
                    show: true
                    content: 65-87
                style:
                  gauge:
                    scale:
                      labels:
                        enabled: false
                view_layout:
                  grid-area: g4
              - type: custom:lcards-button
                preset: panel-dark
                min_height: 0
                entity: input_boolean.lcards_test_visible
                interactive: true
                tap_action:
                  action: toggle
                text:
                  label:
                    content: AUTO
                    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-area: b7
              - type: custom:lcards-button
                preset: panel-dark
                min_height: 0
                text:
                  label:
                    content: 'OFF'
                    position: center-right
                    font_size: 13
                    color: theme:colors.ui.secondary
                view_layout:
                  grid-area: b8
          - 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: 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
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: top
        layout:
          grid-gap: 6px
          grid-template-columns: 180px 96px 64px 220px 150px 64px minmax(0, 1fr) 64px 128px
          grid-template-rows: 20px minmax(0, 1fr)
          grid-template-areas: |
            "corner s1 s2 s3 dots s4 s5 s7 s8"
            "corner . . . . title title title title"
        cards:
          - type: custom:lcards-elbow
            view_layout:
              grid-area: corner
            elbow:
              type: header-left
              segment:
                bar_width: 134
                bar_height: 20
                outer_curve: 48
                color: theme:colors.ui.secondary
          - 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-area: s1
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: '08'
                position: center-right
                font_size: 13
            view_layout:
              grid-area: s2
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: NAVIGATIONAL REFERENCE
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-area: s3
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: •  •••  ••  •••••  •  ••
                show: true
                position: center
                font_size: 20
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: dots
          - 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
            view_layout:
              grid-area: s4
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: DECK PLAN
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-area: s5
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: '0099'
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-area: s7
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 2401-7
                position: center-right
                font_size: 13
            view_layout:
              grid-area: s8
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: DECK PLAN · SECTION 7
                show: true
                position: bottom-right
                font_size: 40
                color: theme:colors.ui.tertiary
            view_layout:
              grid-area: title
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: left
        layout:
          grid-gap: 6px
          grid-template-columns: 64px 64px minmax(0, 1fr)
          grid-template-rows: 24px 24px 24px 84px 24px 24px 14px 62px 24px 24px 62px 24px 24px 84px 24px 62px 24px minmax(14px, 1fr) 24px 60px
          grid-template-areas: |
            "r0a r0b ."
            "r1a r1b ."
            "r2a r2b ."
            "r3 r3 ."
            "r4a r4b ."
            "r5a r5b ."
            "r6 r6 ."
            "r7 r7 ."
            "r8a r8b ."
            "r9a r9b ."
            "r10 r10 ."
            "r11a r11b ."
            "r12a r12b ."
            "r13 r13 ."
            "r14a r14b ."
            "r15 r15 ."
            "r16a r16b ."
            "r17 r17 ."
            "r18a r18b ."
            "foot foot foot"
        cards:
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 63-934
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r0a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 13-650
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r0b
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 19-638
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r1a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 42-991
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r1b
          - 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
            view_layout:
              grid-area: r2a
          - 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
            view_layout:
              grid-area: r2b
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: digit
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(2, 60px)
              grid-template-rows: repeat(4, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.secondary
              align: right
            view_layout:
              grid-area: r3
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 92-047
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r4a
          - type: custom:lcards-button
            preset: panel-light
            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
            view_layout:
              grid-area: r4b
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 55-306
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r5a
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 14-820
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r5b
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: ••  •  •••  ••
                show: true
                position: center-right
                font_size: 18
                color: theme:colors.card.topColor
            view_layout:
              grid-area: r6
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: float
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(2, 60px)
              grid-template-rows: repeat(3, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.primary
              align: right
            view_layout:
              grid-area: r7
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: AMB
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r8a
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            entity: sensor.desk_sensor_temperature
            text:
              label:
                content: '{entity.state}'
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r8b
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 29-584
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r9a
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 68-731
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r9b
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: digit
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(2, 60px)
              grid-template-rows: repeat(3, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.secondary
              align: right
            view_layout:
              grid-area: r10
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_warp
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: WARP
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r11a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 21-608
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-area: r11b
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 86-473
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r12a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 12-887
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r12b
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: float
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(2, 60px)
              grid-template-rows: repeat(4, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.secondary
              align: right
            view_layout:
              grid-area: r13
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 74-019
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r14a
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 58-362
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r14b
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: digit
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(2, 60px)
              grid-template-rows: repeat(3, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.secondary
              align: right
            view_layout:
              grid-area: r15
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 33-105
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: r16a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 90-552
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.quaternary
            view_layout:
              grid-area: r16b
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: •••  ••  •  ••••
                show: true
                position: center-right
                font_size: 18
                color: theme:colors.card.topColor
            view_layout:
              grid-area: r17
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 39-246
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r18a
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            interactive: true
            tap_action:
              action: toggle
            text:
              label:
                content: 71-269
                position: center-right
                font_size: 13
            view_layout:
              grid-area: r18b
          - type: custom:lcards-elbow
            elbow:
              type: footer-left
              segment:
                bar_width: 134
                bar_height: 20
                outer_curve: 40
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: foot
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: main
        layout:
          grid-gap: 6px
          grid-template-columns: minmax(0, 1fr) 64px 160px 96px 40px
          grid-template-rows: minmax(0, 1fr) 12px
        cards:
          - type: custom:lcards-msd-card
            view_layout:
              grid-column: 1 / 6
              grid-row: '1'
            msd:
              base_svg:
                source: builtin:enterprise-d-shuttlecraft15-anomaly
                filters:
                  - mode: css
                    type: grayscale
                    value: 1
                  - mode: css
                    type: opacity
                    value: 0.55
              view_box:
                - -60
                - -110
                - 1220
                - 780
              overlays:
                - id: lbl-tanks
                  type: control
                  attachment: top-left
                  position:
                    - 62
                    - -90
                  size:
                    - 155
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: DEUTERIUM 1-3 · 04-118
                        show: true
                        position: center-right
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-tanks
                  type: line
                  anchor: lbl-tanks
                  attach_to:
                    - 281
                    - 60
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: right
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
                - id: lbl-flight
                  type: control
                  attachment: top-left
                  position:
                    - 481
                    - -90
                  size:
                    - 117
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: FLIGHT DECK · 2C
                        show: true
                        position: center-right
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-flight
                  type: line
                  anchor: lbl-flight
                  attach_to:
                    - 662
                    - 250
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: right
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
                - id: lbl-sensor
                  type: control
                  attachment: top-left
                  position:
                    - 868
                    - -90
                  size:
                    - 98
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: NAV SENSOR 41
                        show: true
                        position: center-right
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-sensor
                  type: line
                  anchor: lbl-sensor
                  attach_to:
                    - 1030
                    - 240
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: right
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
                - id: lbl-impulse
                  type: control
                  attachment: top-left
                  position:
                    - 84
                    - 590
                  size:
                    - 98
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: IMPULSE · AFT
                        show: true
                        position: center-left
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-impulse
                  type: line
                  anchor: lbl-impulse
                  attach_to:
                    - 20
                    - 383
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: left
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
                - id: lbl-cargo
                  type: control
                  attachment: top-left
                  position:
                    - 364
                    - 590
                  size:
                    - 142
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: CARGO 4 · SEAL FAULT
                        show: true
                        position: center-left
                        font_size: 15
                        color: theme:colors.ui.tertiary
                - id: ln-cargo
                  type: line
                  anchor: lbl-cargo
                  attach_to:
                    - 300
                    - 413
                  style:
                    color: theme:colors.ui.tertiary
                    width: 2.9
                  anchor_side: left
                  route: manhattan
                  corner_radius: 12
                  anchor_gap: 7
                - id: lbl-hatch
                  type: control
                  attachment: top-left
                  position:
                    - 550
                    - 590
                  size:
                    - 85
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: AFT HATCH 2
                        show: true
                        position: center-right
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-hatch
                  type: line
                  anchor: lbl-hatch
                  attach_to:
                    - 700
                    - 420
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: right
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
                - id: lbl-rcs
                  type: control
                  attachment: top-left
                  position:
                    - 944
                    - 590
                  size:
                    - 129
                    - 24
                  card:
                    type: custom:lcards-button
                    preset: text-only
                    min_height: 0
                    text:
                      label:
                        content: RCS QUAD 3 · 61-04
                        show: true
                        position: center-left
                        font_size: 15
                        color: theme:colors.ui.secondary
                - id: ln-rcs
                  type: line
                  anchor: lbl-rcs
                  attach_to:
                    - 880
                    - 300
                  style:
                    color: var(--lcars-card-top-color, var(--lcards-gray-medium))
                    width: 2.9
                  anchor_side: left
                  anchor_gap: 7
                  route: manhattan
                  corner_radius: 12
              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)
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                show: false
            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:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-column: '2'
              grid-row: '2'
          - 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: '3'
              grid-row: '2'
          - 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: '4'
              grid-row: '2'
          - 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: '5'
              grid-row: '2'
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: strip
        layout:
          grid-gap: 6px
          grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr) 64px 64px
          grid-template-rows: 24px 24px 24px 24px minmax(0, 1fr)
          grid-template-areas: |
            "t1 t2 t3 t4 t5 t6"
            "l1 g1 l2 g2 c1 c2"
            "l3 g3 l4 g4 c3 c4"
            "l5 g5 l6 g6 c5 c6"
            "x1 x2 x2 x4 x5 x5"
        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-area: t1
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            text:
              name:
                content: DECK 7
                font_size: 13
            view_layout:
              grid-area: t2
          - 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-area: t3
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_toggle
            text:
              name:
                content: FORCEFIELD
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-area: t4
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_warp
            text:
              name:
                content: WARP
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-area: t5
          - type: custom:lcards-button
            preset: toggle-tab
            min_height: 0
            entity: input_boolean.lcards_test_visible
            text:
              name:
                content: LOG
                font_size: 13
            tap_action:
              action: toggle
            view_layout:
              grid-area: t6
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: POWER
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l1
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_power
            view_layout:
              grid-area: g1
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: SHIELDS
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l2
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_shields
            view_layout:
              grid-area: g2
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: HUMIDITY
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l3
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_humidity
            view_layout:
              grid-area: g3
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: LEVEL
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l4
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_value
            view_layout:
              grid-area: g4
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 3-07
                position: center-right
                font_size: 13
            view_layout:
              grid-area: c1
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 3-08
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: c2
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: 3-09
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: c3
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 3-10
                position: center-right
                font_size: 13
            view_layout:
              grid-area: c4
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: TEMP
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l5
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_temperature
            view_layout:
              grid-area: g5
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: STAGE
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: l6
          - type: custom:lcards-slider
            preset: gauge-basic
            style:
              gauge:
                scale:
                  labels:
                    enabled: false
            entity: input_number.lcards_test_stage
            view_layout:
              grid-area: g6
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            entity: sensor.desk_sensor_temperature
            text:
              label:
                content: '{entity.state}'
                position: center-right
                font_size: 13
                color: theme:colors.ui.secondary
            view_layout:
              grid-area: c5
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 3-12
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
            view_layout:
              grid-area: c6
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 24-6610
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-area: x1
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: MAIN ENGINEERING
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-area: x2
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: EPS GRID 4
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.secondary
            view_layout:
              grid-area: x4
          - type: custom:lcards-button
            preset: panel-light
            min_height: 0
            text:
              label:
                content: 77-31
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.ui.tertiary
            view_layout:
              grid-area: x5
      - type: custom:lcards-layout-card
        view_layout:
          grid-area: right
        layout:
          grid-gap: 6px
          grid-template-columns: repeat(3, minmax(0, 1fr))
          grid-template-rows: 24px minmax(0, 1fr) 14px 104px 24px 24px 24px 20px
          grid-template-areas: |
            "h h h"
            "g1 g2 g3"
            "d d d"
            "n n n"
            "f0 f0 f1"
            "f2 f3 f3"
            "f4 f4 f5"
            "z1 z1 z3"
        cards:
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: ENVIRONMENT
                position: center-right
                font_size: 13
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-area: h
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_power
            text:
              name:
                show: true
                content: 12-04
            view_layout:
              grid-area: g1
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_value
            text:
              name:
                show: true
                content: 38-61
            view_layout:
              grid-area: g2
          - type: custom:lcards-slider
            preset: picard-gauge-column
            entity: input_number.lcards_test_warp_factor
            text:
              name:
                show: true
                content: 77-30
            view_layout:
              grid-area: g3
          - type: custom:lcards-button
            preset: text-only
            min_height: 0
            text:
              label:
                content: •  ••  •••  •  ••
                show: true
                position: center-right
                font_size: 18
                color: theme:colors.card.topColor
            view_layout:
              grid-area: d
          - type: custom:lcards-data-grid
            data_mode: decorative
            format: digit
            refresh_interval: 2500
            refresh_cells: 0.08
            grid:
              grid-template-columns: repeat(3, 56px)
              grid-template-rows: repeat(5, 18px)
              gap: 2
            style:
              font_size: 13
              color: theme:colors.ui.secondary
              align: right
            view_layout:
              grid-area: 'n'
          - 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-area: f0
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                content: '330'
                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-area: f1
          - 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: '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
            view_layout:
              grid-area: f2
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: '542'
                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-area: f3
          - type: custom:lcards-button
            preset: panel-flagged
            min_height: 0
            text:
              label:
                content: '618'
                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-area: f4
          - type: custom:lcards-button
            preset: panel-dark
            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
            view_layout:
              grid-area: f5
          - 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: z1
          - type: custom:lcards-button
            preset: panel-dark
            min_height: 0
            text:
              label:
                show: false
            style:
              card:
                color:
                  background:
                    default: theme:colors.card.topColor
            view_layout:
              grid-area: z3
