    .progress-stage {
      width: 100%;
      -webkit-box-flex: 2;
      -webkit-flex: 2 2 0%;
      flex: 2 2 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;
    }

    .progress-section {
      position: relative;
      width: 100%;
      -webkit-box-flex: 1;
      -webkit-flex: 1 1 auto;
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
      border-top: 2px solid rgba(32, 36, 42, 0.7);
      border-bottom: 2px solid rgba(32, 36, 42, 0.7);
      background: #b7dfa1;
    }

    #elapsedFill {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 0;
      background: #d3cec5;
    }

    .pending-chain-layer {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      pointer-events: none;
    }

    .activity-chip {
      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;
      height: 40px;
      padding: 0 6px;
      border: 2px solid #4c596b;
      border-radius: 10px;
      background: #ffffff;
      color: #20242a;
      font-size: 20px;
      line-height: 1;
      overflow: hidden;
      white-space: nowrap;
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      -webkit-touch-action: none;
      touch-action: none;
    }

    .activity-chip-duration {
      margin-left: 4px;
      font-size: 13px;
      font-weight: 700;
    }

    .activity-chip.is-inactive {
      border-color: rgba(76, 89, 107, 0.3);
      background: rgba(255, 255, 255, 0.5);
      color: rgba(32, 36, 42, 0.4);
      cursor: default;
      pointer-events: none;
    }

    .activity-chip.is-pending {
      position: absolute;
      top: 6px;
      bottom: 6px;
      z-index: 3;
      border-color: #26637b;
      background: rgba(255, 250, 240, 0.92);
      pointer-events: auto;
    }

    .activity-chip.is-drag-preview {
      border-style: dashed;
      opacity: 0.65;
    }

    .activity-chip.is-spacer {
      border-style: dashed;
      border-color: rgba(32, 36, 42, 0.3);
      background: repeating-linear-gradient(
        45deg,
        rgba(32, 36, 42, 0.05),
        rgba(32, 36, 42, 0.05) 6px,
        rgba(32, 36, 42, 0.12) 6px,
        rgba(32, 36, 42, 0.12) 12px
      );
    }

    .activity-chip.is-resize-selected {
      border-color: #c9871f;
      outline: 3px solid rgba(201, 135, 31, 0.25);
    }

    .resize-handle {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
      width: 14px;
      background: #c9871f;
      -webkit-touch-action: none;
      touch-action: none;
      cursor: ew-resize;
    }

    .drag-ghost {
      position: fixed;
      z-index: 30;
      top: 0;
      left: 0;
      pointer-events: none;
      -webkit-box-shadow: 0 6px 16px rgba(32, 36, 42, 0.35);
      box-shadow: 0 6px 16px rgba(32, 36, 42, 0.35);
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }

    .activity-drawer {
      position: relative;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      flex-direction: column;
      -webkit-box-flex: 0;
      -webkit-flex: 0 1 auto;
      flex: 0 1 auto;
      min-height: 0;
      overflow: hidden;
      padding: 44px 16px 20px;
      border-top: 3px solid #20242a;
      border-radius: 16px 16px 0 0;
      background: #fff8ef;
      -webkit-box-shadow: 0 -6px 20px rgba(32, 36, 42, 0.3);
      box-shadow: 0 -6px 20px rgba(32, 36, 42, 0.3);
    }

    .activity-drawer.is-drag-target {
      background: #ffe9c2;
      border-top-color: #c9871f;
    }

    .activity-drawer-close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 32px;
      height: 32px;
      border: 0;
      border-radius: 8px;
      background: #c77f6d;
      color: #ffffff;
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
    }

    .activity-drawer-scroll {
      -webkit-box-flex: 1;
      -webkit-flex: 1 1 auto;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .activity-drawer-fade {
      position: -webkit-sticky;
      position: sticky;
      left: 0;
      right: 0;
      height: 28px;
      z-index: 1;
      pointer-events: auto;
    }

    .activity-drawer-fade-top {
      top: 0;
      background: -webkit-linear-gradient(top, #fff8ef 0%, rgba(255, 248, 239, 0) 100%);
      background: linear-gradient(to bottom, #fff8ef 0%, rgba(255, 248, 239, 0) 100%);
    }

    .activity-drawer-fade-bottom {
      bottom: 0;
      background: -webkit-linear-gradient(bottom, #fff8ef 0%, rgba(255, 248, 239, 0) 100%);
      background: linear-gradient(to top, #fff8ef 0%, rgba(255, 248, 239, 0) 100%);
    }

    .activity-drawer-chips {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      padding: 8px 0;
    }

    .activity-drawer-chips .activity-chip {
      margin: 4px;
    }

    #progressText {
      position: absolute;
      z-index: 2;
      top: 50%;
      left: 50%;
      min-width: 148px;
      padding: 6px 12px;
      border: 1px solid rgba(32, 36, 42, 0.4);
      border-radius: 6px;
      background: rgba(255, 250, 240, 0.88);
      font-size: 17px;
      font-weight: 700;
      text-align: center;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }

    .keep-awake-media {
      position: absolute;
      z-index: 5;
      width: 64px;
      height: 64px;
      overflow: hidden;
      border: 2px solid rgba(32, 36, 42, 0.65);
      border-radius: 10px;
      background: #20242a;
      -webkit-box-shadow: 0 2px 6px rgba(32, 36, 42, 0.32);
      box-shadow: 0 2px 6px rgba(32, 36, 42, 0.32);
    }

    #countdownScreen[data-layout="1"] .keep-awake-media {
      top: 60%;
      right: 12px;
      -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
    }

    #countdownScreen:not([data-layout="1"]) .keep-awake-media {
      left: 12px;
      bottom: 12px;
    }

    #noSleepVideo {
      display: block;
      width: 64px;
      height: 64px;
      background: #20242a;
      object-fit: cover;
    }

