    /* Countdown view */
    #countdownScreen {
      width: 100%;
      height: 100%;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      flex-direction: column;
    }

    #currentTimeRow {
      -webkit-box-flex: 0;
      -webkit-flex: 0 0 10%;
      flex: 0 0 10%;
      min-height: 40px;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-align: center;
      -webkit-align-items: center;
      align-items: center;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      overflow: hidden;
      border-bottom: 2px solid rgba(32, 36, 42, 0.72);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      color: #ffffff;
      font-weight: 700;
      font-size: 32px;
      -webkit-text-stroke: 1px #000000;
      text-shadow: 0 0 4px #000000;
    }

    #layoutBody {
      width: 100%;
      -webkit-box-flex: 1;
      -webkit-flex: 1 1 0%;
      flex: 1 1 0%;
      min-height: 0;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      flex-direction: column;
      overflow: hidden;
    }

    .timeline-section {
      position: relative;
      width: 100%;
      -webkit-box-flex: 5;
      -webkit-flex: 5 5 0%;
      flex: 5 5 0%;
      min-height: 0;
      overflow: hidden;
    }

    #dayBar,
    #focusedDayBar {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 25%;
      min-height: 58px;
      border-top: 2px solid rgba(32, 36, 42, 0.72);
      border-bottom: 2px solid rgba(32, 36, 42, 0.72);
      -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
    }

    #segments,
    #focusedSegments {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      width: 100%;
      height: 100%;
    }

    .day-segment {
      position: relative;
      height: 100%;
      overflow: hidden;
      border-right: 1px solid rgba(32, 36, 42, 0.38);
      -webkit-box-flex: 0;
      -webkit-flex: none;
      flex: none;
    }

    .day-segment:last-child {
      border-right: 0;
    }

    .day-segment {
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }

    .leg-highlight {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 0;
      box-sizing: border-box;
      border-top: 4px solid #2e7d32;
      border-bottom: 4px solid #2e7d32;
      background: rgba(183, 223, 161, 0.45);
      pointer-events: none;
    }

    .leg-highlight-pin {
      position: absolute;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      font-size: 20px;
      line-height: 1;
      white-space: nowrap;
      pointer-events: none;
    }

    .night {
      background-color: #28344f;
      background-image: url('../assets/daybar/night-v2.jpg');
      color: #ffffff;
    }

    .morning {
      background-color: #f2c66d;
      background-image: url('../assets/daybar/morning.jpg');
    }

    .daytime {
      background-color: #91cde3;
      background-image: url('../assets/daybar/daytime-v2.jpg');
    }

    .evening {
      background-color: #e99a5f;
      background-image: url('../assets/daybar/evening.jpg');
    }

    .bedtime {
      background-color: #80658f;
      background-image: url('../assets/daybar/bedtime.jpg');
      color: #ffffff;
    }

    #ruler,
    #focusedRuler {
      position: absolute;
      right: 0;
      bottom: 100%;
      left: 0;
      height: 49px;
      color: #20242a;
    }

    #rulerLabels,
    #focusedRulerLabels {
      position: absolute;
      z-index: 7;
      top: -webkit-calc(37.5% - 49px);
      top: calc(37.5% - 49px);
      right: 0;
      left: 0;
      height: 49px;
      color: #20242a;
      pointer-events: none;
    }

    .bar-marker {
      position: absolute;
      z-index: 6;
      top: -webkit-calc(62.5% + 7px);
      top: calc(62.5% + 7px);
      font-size: 26px;
      line-height: 1;
      white-space: nowrap;
      -webkit-transform: translateX(-50%);
      transform: translateX(-50%);
    }

    @media (max-width: 620px) {
      .bar-marker {
        font-size: 20px;
      }
    }

    .ruler-tick {
      position: absolute;
      bottom: 0;
      width: 1px;
      background: #20242a;
    }

    .ruler-tick.quarter {
      height: 8px;
    }

    .ruler-tick.half {
      width: 2px;
      height: 15px;
    }

    .ruler-tick.hour {
      width: 2px;
      height: 23px;
    }

    .ruler-label {
      position: absolute;
      bottom: 26px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      text-shadow: 1px 1px 2px #ffffff;
      white-space: nowrap;
      -webkit-transform: translateX(-50%);
      transform: translateX(-50%);
    }

    .ruler-label.first {
      -webkit-transform: none;
      transform: none;
    }

    #cursorOverlay,
    #focusedCursorOverlay {
      position: absolute;
      z-index: auto;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      pointer-events: none;
    }

    .time-cursor {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 0;
    }

    #beginCursor,
    #focusedBeginCursor {
      z-index: 2;
      border-left: 1px solid #b9def2;
      -webkit-filter: drop-shadow(1px 0 0 #424a55);
      filter: drop-shadow(1px 0 0 #424a55);
    }

    .time-cursor.checkpoint {
      z-index: 3;
      border-left: 1px solid #9b1c53;
      -webkit-box-shadow: 0 0 0 1px rgba(32, 36, 42, 0.85);
      box-shadow: 0 0 0 1px rgba(32, 36, 42, 0.85);
    }

    #nowCursor,
    #focusedNowCursor {
      z-index: 4;
      border-left: 1px solid #111820;
      -webkit-box-shadow: 0 0 0 1px rgba(32, 36, 42, 0.9);
      box-shadow: 0 0 0 1px rgba(32, 36, 42, 0.9);
    }

    .cursor-label {
      position: absolute;
      z-index: 8;
      min-width: 116px;
      padding: 5px 8px;
      border: 1px solid #20242a;
      border-radius: 5px;
      background: rgba(255, 250, 240, 0.96);
      color: #20242a;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.1;
      text-align: center;
      white-space: nowrap;
    }

    #beginLabel,
    #focusedBeginLabel {
      top: 8px;
    }

    .cursor-label.checkpoint {
      border-color: #9b1c53;
    }

    #nowLabel,
    #focusedNowLabel {
      bottom: 10px;
    }

