    /* Entry view */
    #entryScreen {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 24px;
    }

    .entry-card {
      width: 100%;
      max-width: 680px;
      margin: auto;
      padding: 34px 30px 30px;
      border: 2px solid rgba(32, 36, 42, 0.28);
      border-radius: 16px;
      background: rgba(255, 250, 240, 0.94);
      text-align: center;
      -webkit-box-shadow: 0 10px 32px rgba(32, 36, 42, 0.16);
      box-shadow: 0 10px 32px rgba(32, 36, 42, 0.16);
    }

    .entry-card h1 {
      margin: 0 0 8px;
      font-size: 38px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .entry-prompt {
      margin: 0 0 24px;
      font-size: 17px;
    }

    .time-fields {
      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;
    }

    .time-field {
      width: 104px;
      height: 78px;
      padding: 7px;
      border: 3px solid #4c596b;
      border-radius: 10px;
      background: #ffffff;
      color: #20242a;
      font-size: 45px;
      line-height: 1;
      text-align: center;
      -webkit-appearance: none;
      appearance: none;
    }

    .time-field:focus {
      border-color: #26637b;
      outline: 3px solid rgba(38, 99, 123, 0.2);
    }

    .time-field[aria-invalid="true"] {
      border-color: #a52a22;
    }

    .time-separator {
      margin: 0 10px 7px;
      font-size: 50px;
      font-weight: 700;
    }

    .time-actions {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      margin-left: 24px;
      -webkit-box-flex: 0;
      -webkit-flex: none;
      flex: none;
    }

    #submitButton,
    #scheduleStartButton {
      min-width: 110px;
      min-height: 62px;
      padding: 10px 24px;
      border: 0;
      border-radius: 10px;
      background: #315f71;
      color: #ffffff;
      font-size: 24px;
      font-weight: 700;
      -webkit-box-shadow: 0 4px 0 #244654;
      box-shadow: 0 4px 0 #244654;
      cursor: pointer;
    }

    #submitButton:active,
    #scheduleStartButton:active {
      position: relative;
      top: 3px;
      -webkit-box-shadow: 0 1px 0 #244654;
      box-shadow: 0 1px 0 #244654;
    }

    #entryError,
    #scheduleError {
      min-height: 22px;
      margin: 18px 0 0;
      color: #92271f;
      font-size: 16px;
      font-weight: 700;
    }

    /* Schedule (Create schedule) screen */
    .discrete-button {
      margin-top: 16px;
      padding: 4px 2px;
      border: 0;
      background: none;
      color: #315f71;
      font-size: 14px;
      font-weight: 700;
      text-decoration: underline;
      cursor: pointer;
    }

    .discrete-button-danger {
      color: #92271f;
    }

    .schedule-select {
      -webkit-appearance: none;
      appearance: none;
      text-decoration: none;
      text-align: center;
    }

    .schedule-select option[value=""] {
      color: #8a8f97;
    }

    .schedule-name-row {
      margin-bottom: 16px;
    }

    .schedule-name-input {
      width: 100%;
      max-width: 320px;
      padding: 8px 12px;
      border: 2px solid #4c596b;
      border-radius: 8px;
      background: #ffffff;
      color: #20242a;
      font-size: 20px;
      font-weight: 700;
      text-align: center;
    }

    .schedule-name-input:focus {
      border-color: #26637b;
      outline: 3px solid rgba(38, 99, 123, 0.2);
    }

    .begin-row {
      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;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .begin-now-label {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-align: center;
      -webkit-align-items: center;
      align-items: center;
      margin-right: 16px;
      font-size: 16px;
      font-weight: 700;
    }

    .begin-now-label input {
      width: 20px;
      height: 20px;
      margin-right: 6px;
    }

    .small-field {
      width: 66px;
      height: 54px;
      font-size: 28px;
      border-width: 2px;
    }

    .small-field:disabled {
      opacity: 0.5;
    }

    /* Schedule day-bar: reuses .day-segment/.ruler-tick/.ruler-label/
       .activity-chip/.activity-drawer* from the other stylesheets by
       class name -- only container sizing/positioning is new here. */
    .schedule-daybar-section {
      margin: 4px 0 18px;
      text-align: left;
    }

    #scheduleRulerLabels {
      position: relative;
      height: 30px;
      color: #20242a;
      pointer-events: none;
    }

    #scheduleRuler {
      position: relative;
      height: 23px;
      color: #20242a;
    }

    #scheduleDayBar {
      position: relative;
      width: 100%;
      height: 60px;
      overflow: hidden;
      border: 2px solid rgba(32, 36, 42, 0.72);
      border-radius: 8px;
      background: #b7dfa1;
    }

    #scheduleSegments {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      width: 100%;
      height: 100%;
    }

    #scheduleChainLayer {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }

    .schedule-begin-marker {
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 5;
      width: 0;
      border-left: 2px solid #1f3a52;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
      pointer-events: none;
    }

    .schedule-drawer-toggle {
      display: block;
      margin: 8px auto 0;
    }

    .activity-drawer-remove-hint {
      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-align: center;
      -webkit-align-items: center;
      align-items: center;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      gap: 6px;
      padding: 30px 0;
      color: #92271f;
    }

    .activity-drawer-remove-hint .remove-hint-icon {
      font-size: 40px;
      line-height: 1;
    }

    .activity-drawer-remove-hint .remove-hint-label {
      font-size: 16px;
      font-weight: 700;
    }

    .activity-drawer.is-remove-target {
      background: #f6d3ce;
      border-top-color: #92271f;
    }

    .event-rows {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      flex-direction: column;
      margin-bottom: 14px;
    }

    .event-row {
      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;
      -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .event-row > * {
      margin: 4px;
    }

    .event-emoji-field {
      width: 54px;
      min-width: 54px;
      height: 54px;
      padding: 4px;
      border: 3px solid #4c596b;
      border-radius: 10px;
      background: #ffffff;
      color: #20242a;
      text-align: center;
      font-size: 26px;
      -webkit-appearance: none;
      appearance: none;
      -webkit-transition: width 100ms ease;
      transition: width 100ms ease;
    }

    .remove-event-button {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 8px;
      background: #c77f6d;
      color: #ffffff;
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
    }

    .move-event-button {
      width: 36px;
      height: 36px;
      border: 2px solid #4c596b;
      border-radius: 8px;
      background: #ffffff;
      color: #20242a;
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
    }

    .move-event-button:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .mode-toggle-button {
      width: 54px;
      height: 54px;
      padding: 4px;
      border: 3px solid #4c596b;
      border-radius: 10px;
      background: #ffffff;
      color: #20242a;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

    .mode-toggle-button.is-countup {
      border-color: #c9871f;
      outline: 3px solid rgba(201, 135, 31, 0.2);
      background: #f6e3bb;
    }

    .add-checkpoint-button {
      min-height: 40px;
      padding: 6px 16px;
      margin-bottom: 18px;
      border: 2px dashed #4c596b;
      border-radius: 8px;
      background: transparent;
      color: #20242a;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    .emoji-palette {
      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;
      margin: 6px 0 14px;
      padding: 8px;
      border: 2px solid rgba(32, 36, 42, 0.28);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.6);
    }

    .emoji-palette-button {
      width: 42px;
      height: 42px;
      margin: 2px;
      padding: 0;
      border: 1px solid rgba(32, 36, 42, 0.2);
      border-radius: 8px;
      background: #ffffff;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }

    .emoji-palette-button:active {
      background: #e4dfd3;
    }

    .schedule-actions {
      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;
    }

    .schedule-actions .discrete-button {
      margin-top: 0;
      margin-right: 20px;
    }

    #scheduleScreen {
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 24px;
    }

    .event-emoji-field.is-selected {
      border-color: #26637b;
      outline: 3px solid rgba(38, 99, 123, 0.2);
      background: #eaf4f8;
    }

