/* Derived from unmodified desktop hero_b.html; source CSS isolated to .scope-cal. */
.scope-cal *{
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
.scope-cal button,
.scope-cal input{
      font-family: inherit;
      color: inherit;
    }
.scope-cal .tnum{
      font-variant-numeric: tabular-nums;
      font-feature-settings: "tnum" 1;
    }
.scope-cal .workbench{
      min-height: 100vh;
      width: 100%;
      max-width: 1020px;
      margin: 0 auto;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
    }
.scope-cal .phone-stage{
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
.scope-cal .phone-shell{
      position: relative;
      flex-shrink: 0;
    }
.scope-cal .phone-frame{
      width: 375px;
      height: 740px;
      transform-origin: top left;
      background: var(--phone-bg);
      border-radius: 38px;
      border: 1px solid var(--phone-border);
      position: relative;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
      transition: background-color 200ms ease, border-color 200ms ease;
    }
.scope-cal .ios-status{
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 38px;
      padding: 11px 24px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      pointer-events: none;
      z-index: 40;
      color: var(--ink-primary);
    }
.scope-cal .ios-time{
      font-family: var(--font-num);
      font-size: var(--status-time-size);
      font-weight: var(--status-time-weight);
      letter-spacing: -0.01em;
    }
.scope-cal .ios-icons{
      display: inline-flex;
      align-items: center;
      gap: 5px;
      opacity: 0.78;
    }
.scope-cal .home-indicator{
      position: absolute;
      bottom: 7px;
      left: 50%;
      transform: translateX(-50%);
      width: 124px;
      height: 4px;
      border-radius: 999px;
      background: var(--ink-primary);
      opacity: 0.13;
      pointer-events: none;
      z-index: 50;
    }
.scope-cal .quiet-echo{
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(6px);
      padding: 3.5px 10px;
      border-radius: 999px;
      background: var(--row-hover);
      border: 0.5px solid var(--hairline);
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--ink-secondary);
      letter-spacing: 0.05em;
      opacity: 0;
      pointer-events: none;
      z-index: 48;
      transition: opacity 150ms ease, transform 200ms var(--ease-damped);
    }
.scope-cal .quiet-echo.is-visible{
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
.scope-cal .week-view{
      position: absolute;
      inset: 0;
      z-index: 10;
      background: var(--phone-bg);
      display: flex;
      flex-direction: column;
      touch-action: none;
      cursor: grab;
      transition: background-color 200ms ease;
    }
.scope-cal .week-view:active{
      cursor: grabbing;
    }
.scope-cal .week-header{
      position: relative;
      z-index: 20;
      margin-top: 42px;
      height: 34px;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
.scope-cal .month-title{
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
    }
.scope-cal .month-numeral{
      font-size: 19px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: -0.02em;
      color: var(--ink-primary);
      border: none;
      background: transparent;
      padding: 4px 2px;
      cursor: pointer;
    }
.scope-cal .month-year{
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: 0.04em;
      color: var(--ink-3);
      user-select: none;
    }
.scope-cal .month-year[hidden]{
      display: none;
    }
.scope-cal .chev-group{
      display: inline-flex;
      align-items: center;
      gap: 2px;
    }
.scope-cal .chev-btn{
      width: 26px;
      height: 26px;
      border: none;
      background: transparent;
      color: var(--ink-secondary);
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease;
    }
.scope-cal .chev-btn:hover:not(:disabled){
      background: var(--row-hover);
      color: var(--ink-primary);
    }
.scope-cal .chev-btn:disabled{
      opacity: 0.18;
      cursor: default;
    }
.scope-cal .pull-indicator{
      position: absolute;
      top: 78px;
      left: 24px;
      right: 24px;
      height: 66px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: 12;
      opacity: 0;
      will-change: opacity, transform;
    }
.scope-cal .dot-matrix-wrap{
      position: relative;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
.scope-cal .dot-matrix{
      display: grid;
      grid-template-columns: repeat(3, 3.2px);
      grid-template-rows: repeat(3, 3.2px);
      gap: 8px;
      will-change: gap;
    }
.scope-cal .dot-matrix i{
      display: block;
      width: 3.2px;
      height: 3.2px;
      border-radius: 50%;
      background: var(--ink-unit);
      transition: background-color 140ms ease, transform 140ms ease;
    }
.scope-cal .pull-indicator.is-armed .dot-matrix i{
      background: var(--ink-secondary);
    }
.scope-cal .pull-indicator.is-armed .dot-matrix i:nth-child(5){
      background: var(--accent);
      transform: scale(1.4);
    }
.scope-cal .pull-indicator.is-pulse .dot-matrix-wrap{
      animation: cal-dotDetent 240ms var(--ease-damped);
    }
@keyframes cal-dotDetent{
      0%   { transform: scale(1); }
      40%  { transform: scale(1.22); }
      100% { transform: scale(1); }
    }
.scope-cal .detent-ring{
      position: absolute;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 1.25px solid var(--accent);
      opacity: 0;
      pointer-events: none;
    }
.scope-cal .detent-ring.is-firing{
      animation: cal-detentHalo 340ms var(--ease-damped) forwards;
    }
@keyframes cal-detentHalo{
      0%   { opacity: 0.72; transform: scale(0.75); }
      100% { opacity: 0; transform: scale(2.55); }
    }
.scope-cal .week-body{
      position: relative;
      z-index: 16;
      flex: 1;
      display: flex;
      flex-direction: column;
      background: var(--phone-bg);
      will-change: transform;
      transition: background-color 200ms ease;
    }
.scope-cal .weekday-row{
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      padding: 2px 24px 4px;
      text-align: center;
      flex-shrink: 0;
    }
.scope-cal .weekday-cell{
      font-size: 11px;
      font-weight: 400;
      color: var(--ink-unit);
      line-height: 16px;
    }
.scope-cal .week-strip{
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      padding: 2px 24px 6px;
      align-items: center;
      will-change: transform;
    }
.scope-cal .w-cell{
      height: 44px;
      border: none;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }
.scope-cal .w-badge{
      width: 32px;
      height: 32px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: background-color 140ms ease, transform 120ms ease;
    }
.scope-cal .w-cell:active .w-badge{
      transform: scale(0.92);
    }
.scope-cal .w-cell.is-selected .w-badge{
      background: var(--accent);
    }
.scope-cal .w-num{
      font-size: 13.5px;
      font-weight: 400;
      line-height: 1;
      color: var(--ink-primary);
    }
.scope-cal .w-cell.is-selected .w-num{
      color: var(--accent-ink);
    }
.scope-cal .week-prog-wrap{
      padding: 4px 24px 0;
    }
.scope-cal .week-prog-track{
      position: relative;
      width: 100%;
      height: 0.5px;
      background: var(--hairline);
    }
.scope-cal .week-prog-bar{
      position: absolute;
      left: 0;
      top: -0.5px;
      width: 100%;
      height: 1.5px;
      background: var(--accent);
      transform-origin: left center;
      transform: scaleX(0);
      transition: transform 280ms var(--ease-damped);
    }
.scope-cal .week-blank{
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 10px 24px 34px;
    }
.scope-cal .week-pull-pill{
      width: 30px;
      height: 3px;
      border-radius: 999px;
      background: var(--ink-unit);
      opacity: 0.48;
    }
.scope-cal .week-watermark{
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.14em;
      color: var(--ink-unit);
      opacity: 0.45;
    }
.scope-cal .month-view{
      position: absolute;
      inset: 0;
      z-index: 25;
      background: var(--phone-bg);
      display: flex;
      flex-direction: column;
      padding-top: 38px;
      opacity: 0;
      pointer-events: none;
      transform: translate3d(0, -24px, 0) scale(0.988);
      transition:
        opacity 300ms var(--ease-damped),
        transform 320ms var(--ease-damped),
        background-color 200ms ease;
      will-change: transform, opacity;
    }
.scope-cal .month-view.is-open{
      opacity: 1;
      pointer-events: auto;
      transform: translate3d(0, 0, 0) scale(1);
    }
.scope-cal .month-view.is-dragging{
      transition: none !important;
    }
.scope-cal .month-top-drag{
      touch-action: none;
      cursor: grab;
      flex-shrink: 0;
    }
.scope-cal .month-top-drag:active{
      cursor: grabbing;
    }
.scope-cal .top-grab-hit{
      width: 100%;
      height: 16px;
      border: none;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
.scope-cal .top-grab-pill{
      width: 30px;
      height: 3px;
      border-radius: 999px;
      background: var(--ink-unit);
      opacity: 0.54;
      transition: width 160ms var(--ease-damped), opacity 160ms ease;
    }
.scope-cal .top-grab-hit:hover .top-grab-pill{
      width: 38px;
      opacity: 0.90;
    }
.scope-cal .month-row{
      padding: 0 24px 4px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
.scope-cal .cal-grid-wrap{
      padding: 0 24px 6px;
      flex-shrink: 0;
      overflow: hidden;
      touch-action: pan-y;
    }
.scope-cal .cal-grid{
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      row-gap: 1px;
      will-change: transform, opacity;
    }
.scope-cal .m-cell{
      height: 39px;
      border: none;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      outline: none;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 150ms ease;
    }
.scope-cal .m-cell.is-outside{
      opacity: 0.14;
    }
.scope-cal .m-cell.is-dimmed{
      opacity: 0.14;
    }
.scope-cal .m-cell.is-dimmed.is-outside{
      opacity: 0.05;
    }
.scope-cal .m-badge{
      width: 32px;
      height: 32px;
      border-radius: 6px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 140ms ease, transform 140ms var(--ease-damped);
    }
.scope-cal .m-cell:active .m-badge{
      transform: scale(0.92);
    }
.scope-cal .m-num{
      font-size: 13.5px;
      font-weight: 400;
      line-height: 1;
      color: var(--ink-primary);
      position: relative;
      z-index: 2;
      transition: color 130ms ease;
    }
.scope-cal .m-cell.is-pano-rest:not(.is-outside):not(.is-today) .m-num{
      color: var(--ink-secondary);
      opacity: 0.72;
    }
.scope-cal .m-cell.is-normal-done{
      opacity: 1;
    }
.scope-cal .m-cell.is-normal-plan{
      opacity: 1;
    }
.scope-cal .m-cell.is-normal-plan .m-num{
      color: var(--ink-planned-cal);
    }
.scope-cal .m-cell.is-extreme{
      opacity: 1 !important;
    }
.scope-cal .m-cell.is-extreme .m-badge{
      background: var(--accent);
      animation: cal-stampPop 200ms var(--ease-damped);
    }
.scope-cal .m-cell.is-extreme .m-num{
      color: var(--accent-ink);
    }
@keyframes cal-stampPop{
      0%   { transform: scale(0.88); }
      58%  { transform: scale(1.04); }
      100% { transform: scale(1); }
    }
.scope-cal .today-line{
      position: absolute;
      bottom: 2.5px;
      left: 50%;
      transform: translateX(-50%);
      width: 14px;
      height: 1.5px;
      border-radius: 999px;
      background: var(--ink-today-bar);
      pointer-events: none;
      z-index: 2;
    }
.scope-cal .pano-mark{
      position: absolute;
      bottom: 2.5px;
      left: 50%;
      transform: translateX(-50%);
      width: 3px;
      height: 3px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 2;
    }
.scope-cal .pano-mark.is-done{
      background: var(--ink-secondary);
    }
.scope-cal .pano-mark.is-plan{
      background: transparent;
      border: 0.85px solid var(--ink-secondary);
    }
.scope-cal .cal-sep{
      height: 0.5px;
      margin: 0 24px;
      background: var(--hairline);
      flex-shrink: 0;
    }
.scope-cal .action-scroll{
      flex: 1;
      overflow-y: auto;
      padding: 2px 24px 24px;
      -webkit-overflow-scrolling: touch;
    }
.scope-cal .action-scroll::-webkit-scrollbar{
      width: 3px;
    }
.scope-cal .action-scroll::-webkit-scrollbar-thumb{
      background: var(--hairline-strong);
      border-radius: 999px;
    }
.scope-cal .action-item{
      border-bottom: 0.5px solid var(--hairline);
      transition: opacity 160ms ease;
    }
.scope-cal .action-item.is-muted{
      opacity: 0.46;
    }
.scope-cal .action-item.is-muted:hover{
      opacity: 0.82;
    }
.scope-cal .action-head{
      width: 100%;
      height: 43px;
      border: none;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }
.scope-cal .action-name{
      font-size: var(--calendar-action-size);
      font-weight: 400;
      letter-spacing: 0.015em;
      color: var(--ink-primary);
      transition: font-size 150ms ease, letter-spacing 150ms ease;
    }
.scope-cal .action-item.is-open .action-name{
      font-size: var(--calendar-action-open-size);
      font-weight: 500;
      letter-spacing: 0.06em;
    }
.scope-cal .action-chev{
      color: var(--ink-unit);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 220ms var(--ease-damped), color 140ms ease;
    }
.scope-cal .action-item.is-open .action-chev{
      transform: rotate(180deg);
      color: var(--ink-secondary);
    }
.scope-cal .accordion{
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 240ms var(--ease-damped);
    }
.scope-cal .action-item.is-open .accordion{
      grid-template-rows: 1fr;
    }
.scope-cal .accordion-inner{
      overflow: hidden;
    }
.scope-cal .session-list{
      position: relative;
      padding: 0 0 10px 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
.scope-cal .pinned-sep{
      height: 0;
      border-top: 1px dashed var(--hairline-strong);
      margin: 4px 0 4px 10px;
    }
.scope-cal .cal-empty-msg{
      padding: 14px 0 6px;
      text-align: center;
      font-size: 11.5px;
      letter-spacing: 0.06em;
      color: var(--ink-3);
    }
.scope-cal .session-entry{
      width: 100%;
      border: none;
      background: transparent;
      border-radius: 5px;
      padding: 6.5px 0 6.5px 10px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      position: relative;
      cursor: pointer;
      text-align: left;
      outline: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 130ms ease, opacity 140ms ease;
    }
.scope-cal .session-entry:hover{
      background: var(--row-hover);
    }
.scope-cal .session-entry::before{
      content: "";
      position: absolute;
      left: 0;
      top: 5px;
      bottom: 5px;
      width: 2px;
      border-radius: 2px;
      background: transparent;
      transition: background-color 140ms ease;
    }
.scope-cal .session-entry.is-active{
      background: var(--row-hover);
    }
.scope-cal .session-entry.is-active::before{
      background: var(--accent);
    }
.scope-cal .session-entry.is-planned{
      opacity: 0.42;
    }
.scope-cal .session-entry.is-planned.is-active{
      opacity: 0.72;
    }
.scope-cal .five-row{
      position: relative;
      width: 100%;
      height: 20px;
      display: grid;
      grid-template-columns: 56px 80px 65px 1fr 30px;
      align-items: center;
    }
.scope-cal[data-layout="compact"] .five-row{
      grid-template-columns: 1fr 68px 44px 24px 26px;
    }
.scope-cal .c-date{
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.03em;
      line-height: 1;
      color: var(--ink-date);
      text-align: left;
      white-space: nowrap;
      transition: color 130ms ease;
    }
.scope-cal .session-entry.is-active .c-date{
      color: var(--accent);
    }
.scope-cal .c-weight{
      height: 16px;
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      white-space: nowrap;
    }
.scope-cal .num-main{
      font-family: var(--font-num);
      font-variant-numeric: tabular-nums;
      font-feature-settings: "tnum" 1;
      font-size: var(--calendar-num-size);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1;
      color: var(--ink-primary);
    }
.scope-cal .unit-kg{
      width: 14px;
      margin-left: 2.5px;
      font-size: 10px;
      font-weight: 400;
      line-height: 1;
      color: var(--ink-unit);
      text-align: left;
      display: inline-block;
    }
.scope-cal .c-sets{
      height: 16px;
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      white-space: nowrap;
    }
.scope-cal .unit-zu{
      width: 11px;
      margin-left: 2px;
      font-size: 10px;
      font-weight: 400;
      line-height: 1;
      color: var(--ink-unit);
      text-align: left;
      display: inline-block;
    }
.scope-cal .c-mul{
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
.scope-cal .mul-svg{
      display: block;
      width: var(--mul-size);
      height: var(--mul-size);
      color: var(--ink-primary);
      opacity: var(--mul-opacity);
      transform: translateY(var(--mul-y));
      overflow: visible;
      flex-shrink: 0;
    }
.scope-cal .c-reps{
      height: 16px;
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      text-align: left;
      white-space: nowrap;
    }
.scope-cal .row-midline{
      position: absolute;
      left: 50px;
      right: 0;
      top: calc(50% - 0.5px);
      height: 0;
      border-top: 0.75px dashed var(--guide-accent);
      pointer-events: none;
      display: none;
      z-index: 6;
    }
.scope-cal .phone-frame.show-guides .row-midline{
      display: block;
    }
.scope-cal .rail-guides-layer{
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 8;
      display: none;
    }
.scope-cal .rail-guides-layer.is-visible{
      display: block;
    }
.scope-cal .v-guide{
      position: absolute;
      top: 0;
      bottom: 6px;
      width: 0;
      border-left: 0.85px dashed var(--guide-accent);
    }
.scope-cal .v-guide.is-neutral{
      border-left-color: var(--guide-neutral);
    }
.scope-cal .v-band{
      position: absolute;
      top: 6px;
      bottom: 10px;
      background: var(--guide-band);
    }
.scope-cal .v-guide-tag{
      position: absolute;
      top: -2px;
      transform: translateX(-50%);
      font-family: var(--font-mono);
      font-size: 7.5px;
      line-height: 1;
      padding: 1.5px 3px;
      border-radius: 3px;
      background: var(--phone-bg);
      color: var(--accent);
      white-space: nowrap;
    }
.scope-cal .v-guide.is-neutral .v-guide-tag{
      color: var(--ink-secondary);
    }
.scope-cal .control-deck{
      width: 422px;
      flex-shrink: 0;
      background: var(--panel-bg);
      border: 1px solid var(--hairline);
      border-radius: 18px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 13px;
      transition: background-color 200ms ease, border-color 200ms ease;
    }
.scope-cal .deck-header{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 0.5px solid var(--hairline);
    }
.scope-cal .deck-brand{
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }
.scope-cal .deck-seal{
      width: 26px;
      height: 26px;
      border-radius: 6px;
      background: var(--accent);
      color: var(--accent-ink);
      font-size: 13px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
.scope-cal .deck-title{
      font-size: 13px;
      font-weight: 600;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }
.scope-cal .deck-sub{
      font-size: 10.5px;
      color: var(--ink-secondary);
      margin-top: 2px;
    }
.scope-cal .deck-tag{
      font-family: var(--font-mono);
      font-size: 9.5px;
      color: var(--accent);
      background: var(--accent-soft);
      padding: 3px 7px;
      border-radius: 5px;
      white-space: nowrap;
      flex-shrink: 0;
    }
.scope-cal .deck-sec{
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 12px;
      border-bottom: 0.5px solid var(--hairline);
    }
.scope-cal .deck-sec:last-child{
      padding-bottom: 0;
      border-bottom: none;
    }
.scope-cal .sec-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink-primary);
    }
.scope-cal .sec-meta{
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 400;
      color: var(--ink-secondary);
    }
.scope-cal .seg-bar{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
      padding: 2.5px;
      border-radius: 9px;
      background: var(--panel-sub);
      border: 0.5px solid var(--hairline);
    }
.scope-cal .seg-btn{
      border: none;
      background: transparent;
      color: var(--ink-secondary);
      font-size: 11px;
      font-weight: 500;
      padding: 6px 6px;
      border-radius: 7px;
      cursor: pointer;
      white-space: nowrap;
      transition: background-color 140ms ease, color 140ms ease;
    }
.scope-cal .seg-btn:hover{
      color: var(--ink-primary);
    }
.scope-cal .seg-btn.is-active{
      background: var(--ink-primary);
      color: var(--panel-bg);
    }
.scope-cal .seg-btn.is-accent{
      background: var(--accent);
      color: var(--accent-ink);
    }
.scope-cal .dual-seg-row{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
.scope-cal .toggle-row{
      width: 100%;
      border: 0.5px solid var(--hairline);
      background: var(--panel-sub);
      border-radius: 9px;
      padding: 7px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-size: 11px;
      font-weight: 500;
      color: var(--ink-primary);
      transition: border-color 140ms ease;
    }
.scope-cal .toggle-row:hover{
      border-color: var(--hairline-strong);
    }
.scope-cal .toggle-track{
      width: 32px;
      height: 18px;
      border-radius: 999px;
      background: var(--hairline-strong);
      position: relative;
      flex-shrink: 0;
      transition: background-color 160ms ease;
    }
.scope-cal .toggle-track.is-on{
      background: var(--accent);
    }
.scope-cal .toggle-knob{
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #FFFFFF;
      position: absolute;
      top: 2px;
      left: 2px;
      transition: transform 160ms var(--ease-damped);
    }
.scope-cal .toggle-track.is-on .toggle-knob{
      transform: translateX(14px);
    }
.scope-cal .loupe-frame{
      position: relative;
      width: 100%;
      height: 174px;
      background: var(--phone-bg);
      border: 0.5px solid var(--hairline);
      border-radius: 11px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 200ms ease, border-color 200ms ease;
    }
.scope-cal .loupe-badge-l{
      position: absolute;
      top: 7px;
      left: 10px;
      font-family: var(--font-mono);
      font-size: 9px;
      color: var(--ink-unit);
      letter-spacing: 0.04em;
      z-index: 12;
      pointer-events: none;
    }
.scope-cal .loupe-badge-r{
      position: absolute;
      top: 7px;
      right: 10px;
      font-family: var(--font-mono);
      font-size: 9px;
      color: var(--accent);
      z-index: 12;
      pointer-events: none;
    }
.scope-cal .loupe-scaler{
      transform-origin: center center;
      position: relative;
    }
.scope-cal .loupe-stack{
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-top: 8px;
    }
.scope-cal .loupe-row{
      position: relative;
      height: 19px;
      display: grid;
      grid-template-columns: 44px 65px 86px 26px;
      align-items: center;
    }
.scope-cal[data-layout="compact"] .loupe-row{
      grid-template-columns: 44px 44px 24px 26px;
    }
.scope-cal .loupe-midline{
      position: absolute;
      left: -6px;
      right: -4px;
      top: calc(50% - 0.5px);
      height: 0;
      border-top: 0.45px dashed var(--guide-accent);
      pointer-events: none;
      display: none;
      z-index: 6;
    }
.scope-cal .loupe-frame.show-loupe-guides .loupe-midline{
      display: block;
    }
.scope-cal .loupe-v-layer{
      position: absolute;
      inset: 4px 0 -4px 0;
      pointer-events: none;
      z-index: 4;
      display: none;
    }
.scope-cal .loupe-frame.show-loupe-guides .loupe-v-layer{
      display: block;
    }
.scope-cal .lv-line{
      position: absolute;
      top: 0;
      bottom: 0;
      width: 0;
      border-left: 0.45px dashed var(--guide-neutral);
    }
.scope-cal .lv-line.is-accent{
      border-left-color: var(--guide-accent);
    }
.scope-cal .lv-band{
      position: absolute;
      top: 0;
      bottom: 0;
      background: var(--guide-band);
    }
.scope-cal .slider-grid{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 9px 14px;
    }
.scope-cal .sl-item{
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
.scope-cal .sl-meta{
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 10.5px;
    }
.scope-cal .sl-label{
      color: var(--ink-secondary);
    }
.scope-cal .sl-val{
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--ink-primary);
    }
.scope-cal .swiss-range{
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 2px;
      border-radius: 999px;
      background: var(--hairline-strong);
      outline: none;
      cursor: pointer;
    }
.scope-cal .swiss-range::-webkit-slider-thumb{
      -webkit-appearance: none;
      appearance: none;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid var(--panel-bg);
      cursor: grab;
    }
.scope-cal .swiss-range::-moz-range-thumb{
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid var(--panel-bg);
      cursor: grab;
    }
.scope-cal .reset-chip{
      border: 0.5px solid var(--hairline-strong);
      background: transparent;
      color: var(--ink-secondary);
      font-size: 10px;
      font-weight: 500;
      padding: 2.5px 8px;
      border-radius: 6px;
      cursor: pointer;
      transition: color 140ms ease, border-color 140ms ease;
    }
.scope-cal .reset-chip:hover{
      color: var(--ink-primary);
      border-color: var(--ink-secondary);
    }
.scope-cal .demo-pull-btn{
      width: 100%;
      border: none;
      background: var(--accent);
      color: var(--accent-ink);
      font-size: 11.5px;
      font-weight: 500;
      padding: 9px 12px;
      border-radius: 9px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: filter 140ms ease, transform 120ms ease;
    }
.scope-cal .demo-pull-btn:hover{
      filter: brightness(1.06);
    }
.scope-cal .demo-pull-btn:active{
      transform: scale(0.985);
    }
@media (max-width: 859px){.scope-cal .workbench{
        flex-direction: column;
        justify-content: flex-start;
        padding: 12px 12px 26px;
        gap: 18px;
      }
.scope-cal .control-deck{
        width: 100%;
        max-width: 422px;
      }

    }

  
/* Integration geometry: 390 - 2*31.5 = 327; 317px grid centered in that lane. */
.scope-cal .phone-frame { width:390px; height:844px; transform:none; border:0; border-radius:0; }
.scope-cal .action-scroll { padding-left:31.5px; padding-right:31.5px; }
.scope-cal .session-entry { padding-left:5px; padding-right:5px; }
.scope-cal .five-row { width:317px; margin-inline:auto; grid-template-columns:56px 80px 65px 86px 30px; }
.scope-cal[data-layout="compact"] .five-row { grid-template-columns:1fr 68px 44px 24px 26px; }
/* The stamp owns the red quota; active row and inspection tools stay in ink. */
.scope-cal .session-entry.is-active::before { background:var(--ink-secondary); }
.scope-cal .session-entry.is-active .c-date { color:var(--ink-primary); }
.scope-cal .deck-seal, .scope-cal .seg-btn.is-accent { background:var(--ink-primary); color:var(--phone-bg); }
.scope-cal .deck-title, .scope-cal .sl-val { color:var(--ink-primary); }
.scope-cal { --guide-accent:var(--guide-neutral); --guide-band:var(--row-hover); }
.scope-cal .five-row.is-pending { opacity:.46; }
.scope-cal .five-row.is-done { opacity:1; }
.scope-cal .conflict-label { font-size:9px; color:var(--ink-secondary); font-weight:400; margin-left:7px; }
.scope-cal .control-deck { width:100%; border:0; box-shadow:none; padding:0; }

/* Inspection drawer follows ink-only accents, including live thumb/toggle states. */
#workbench-calendar.scope-cal { --accent:var(--ink-primary); --accent-soft:var(--row-hover); --accent-ink:var(--phone-bg); }
.scope-cal .v-guide-tag { color:var(--ink-primary); }

/* Reserve no scrollbar lane: the measured data origin remains x=36.5 at all scroll positions. */
.scope-cal .action-scroll { scrollbar-width:none; }
.scope-cal .action-scroll::-webkit-scrollbar { width:0; }

.scope-cal .session-entry.is-planned .five-row.is-pending { opacity:1; }
