:root {
  --bg: #07090c;
  --panel: rgba(13, 18, 26, 0.96);
  --panel-strong: rgba(16, 22, 32, 0.99);
  --panel-inset: rgba(5, 8, 12, 0.72);
  --line: rgba(200, 215, 230, 0.09);
  --line-mid: rgba(200, 215, 230, 0.14);
  --line-strong: rgba(200, 215, 230, 0.2);
  --text: #eef1ea;
  --text-sub: #c8d0d8;
  --muted: #8c97a4;
  --muted-strong: #b4bdc6;
  --play: #7dab74;
  --pause: #cc8558;
  --task: #7ca4d4;
  --bip: #88bc6c;
  --ruck: #c9a355;
  --danger: #b05c5c;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.48, 0.64, 1);
  --t-fast: 110ms;
  --t-mid: 200ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(80, 120, 160, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, #080c10 0%, #07090c 100%);
}

.logger-page {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 14px;
}

.app-shell--logger {
  grid-template-rows: auto auto auto auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  align-content: start;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-sub);
}

.top-bar__brand svg {
  opacity: 0.8;
}

.page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color var(--t-fast) ease,
    background var(--t-mid) ease,
    box-shadow var(--t-mid) ease,
    transform var(--t-fast) ease;
}

.page-tab:hover,
.page-tab:focus-visible {
  color: var(--text);
  outline: none;
}

.page-tab:active {
  transform: translateY(1px);
}

.page-tab--active {
  color: #f3efe8;
  background: rgba(124, 164, 212, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

.top-bar__context {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.top-bar__label {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.top-bar__tag {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.top-bar__tag--activity {
  color: var(--task);
}

.top-bar__tag--period {
  color: var(--play);
}

.top-bar__sep {
  color: var(--muted);
  opacity: 0.35;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--play);
  opacity: 0.6;
  transition: background var(--t-mid) ease;
}

.save-dot--warn {
  background: var(--pause);
  opacity: 1;
}

.state-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--t-mid) ease, background var(--t-mid) ease, border-color var(--t-mid) ease;
}

.state-pill--paused {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.state-pill--running {
  color: #b8deb0;
  background: rgba(125, 171, 116, 0.12);
  border-color: rgba(125, 171, 116, 0.25);
}

.state-pill--finished {
  color: #d7efcf;
  background: rgba(125, 171, 116, 0.16);
  border-color: rgba(125, 171, 116, 0.32);
}

.main-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.28fr 1fr;
  gap: 10px;
  padding: 10px 0;
  min-height: 0;
  align-items: stretch;
}

.col-clock,
.col-actions,
.col-inputs {
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 14px rgba(0, 0, 0, 0.28);
}

.col-clock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.clock-wrap {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel-inset);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.clock-display {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.07em;
  color: #f2efea;
  text-align: center;
  transition: text-shadow var(--t-mid) ease;
}

.clock-display--running {
  text-shadow: 0 0 40px rgba(125, 171, 116, 0.2);
}

.live-status {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  min-height: 2.8em;
  padding: 0 4px;
}

.active-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--t-mid) ease, border-color var(--t-mid) ease;
}

.badge--task svg {
  color: var(--task);
  flex-shrink: 0;
}

.badge--bip svg {
  color: var(--bip);
  flex-shrink: 0;
}

.badge--task.badge--live {
  background: rgba(124, 164, 212, 0.07);
  border-color: rgba(124, 164, 212, 0.22);
}

.badge--bip.badge--live {
  background: rgba(136, 188, 108, 0.07);
  border-color: rgba(136, 188, 108, 0.22);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

.stat strong {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: -0.04em;
}

.col-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.action-row {
  display: grid;
  gap: 8px;
  flex: 1;
}

.action-row:first-child {
  grid-template-columns: 1fr 1fr;
}

.action-row:last-child {
  grid-template-columns: 1fr 1fr 0.76fr;
}

.action-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 68px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease-spring),
    border-color var(--t-mid) ease,
    background var(--t-mid) ease,
    opacity var(--t-mid) ease,
    box-shadow var(--t-mid) ease;
  touch-action: manipulation;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, transparent 50%);
  pointer-events: none;
}

.action-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.action-btn__text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.action-btn--play {
  background: linear-gradient(160deg, rgba(125, 171, 116, 0.22) 0%, rgba(125, 171, 116, 0.07) 100%);
  border-color: rgba(125, 171, 116, 0.3);
  color: #c2debb;
}

.action-btn--pause {
  background: linear-gradient(160deg, rgba(204, 133, 88, 0.22) 0%, rgba(204, 133, 88, 0.07) 100%);
  border-color: rgba(204, 133, 88, 0.28);
  color: #edc9a8;
}

.action-btn--task {
  background: linear-gradient(160deg, rgba(124, 164, 212, 0.2) 0%, rgba(124, 164, 212, 0.06) 100%);
  border-color: rgba(124, 164, 212, 0.28);
  color: #bfd3ef;
}

.action-btn--task[data-active="true"] {
  background: linear-gradient(160deg, rgba(176, 92, 92, 0.26) 0%, rgba(176, 92, 92, 0.09) 100%);
  border-color: rgba(176, 92, 92, 0.42);
  color: #eecece;
  box-shadow: 0 0 22px rgba(176, 92, 92, 0.1);
}

.action-btn--bip {
  background: linear-gradient(160deg, rgba(136, 188, 108, 0.2) 0%, rgba(136, 188, 108, 0.06) 100%);
  border-color: rgba(136, 188, 108, 0.28);
  color: #c8e6b4;
}

.action-btn--bip[data-active="true"] {
  background: linear-gradient(160deg, rgba(176, 92, 92, 0.26) 0%, rgba(176, 92, 92, 0.09) 100%);
  border-color: rgba(176, 92, 92, 0.42);
  color: #eecece;
  box-shadow: 0 0 22px rgba(176, 92, 92, 0.1);
}

.action-btn--ruck {
  background: linear-gradient(160deg, rgba(201, 163, 85, 0.2) 0%, rgba(201, 163, 85, 0.06) 100%);
  border-color: rgba(201, 163, 85, 0.28);
  color: #e8d898;
}

.action-btn:hover:not([disabled]),
.action-btn:focus-visible:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  outline: none;
}

.action-btn:active:not([disabled]) {
  transform: scale(0.96);
  transition-duration: 55ms;
}

.action-btn[disabled] {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.col-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
}

.field-block,
.selected-task-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
}

.field-block--task-flow {
  justify-content: center;
  min-height: 84px;
  border-color: rgba(201, 163, 85, 0.2);
  background:
    linear-gradient(180deg, rgba(201, 163, 85, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.field-block__top {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field-block__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-block__hint {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.3;
}

.field-block input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  background: var(--panel-inset);
  color: var(--text);
  font-size: 0.86rem;
  border-left: 3px solid transparent;
  transition: border-color var(--t-mid) ease, box-shadow var(--t-mid) ease;
}

.field-block--activity input {
  border-left-color: rgba(124, 164, 212, 0.6);
}

.field-block--period input {
  border-left-color: rgba(125, 171, 116, 0.6);
}

.field-block--task input,
.field-block--selected input {
  border-left-color: rgba(201, 163, 85, 0.55);
}

.field-block input::placeholder {
  color: rgba(140, 151, 164, 0.44);
  font-size: 0.8rem;
}

.field-block input:focus-visible {
  outline: none;
  border-color: rgba(125, 171, 116, 0.5);
  box-shadow: 0 0 0 3px rgba(125, 171, 116, 0.08);
}

.selected-task-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.selected-task-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.selected-task-panel__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.selected-task-panel__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.selected-task-panel__title {
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-task-panel__state {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.selected-task-panel[data-state="active"] .selected-task-panel__state {
  color: #d7efcf;
  border-color: rgba(125, 171, 116, 0.26);
  background: rgba(125, 171, 116, 0.11);
}

.selected-task-panel__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.selected-task-panel__times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.selected-task-time {
  appearance: none;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-mid);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--t-fast) ease,
    border-color var(--t-mid) ease,
    background var(--t-mid) ease,
    color var(--t-mid) ease;
}

.selected-task-time:hover:not([disabled]),
.selected-task-time:focus-visible:not([disabled]) {
  transform: translateY(-1px);
  border-color: rgba(124, 164, 212, 0.24);
  background:
    linear-gradient(180deg, rgba(124, 164, 212, 0.08), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.025);
  outline: none;
}

.selected-task-time:active:not([disabled]) {
  transform: translateY(0);
}

.selected-task-time[disabled] {
  opacity: 0.72;
  cursor: default;
}

.selected-task-time__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.selected-task-time__value {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-sub);
}

.selected-task-panel[data-state="active"] .selected-task-time:last-child {
  border-color: rgba(125, 171, 116, 0.24);
  background:
    linear-gradient(180deg, rgba(125, 171, 116, 0.08), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
}

.aux-btn,
.export-btn,
.new-activity-btn,
.finish-btn,
.modal-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-strong);
  transition: transform var(--t-fast) ease, background var(--t-mid) ease, color var(--t-mid) ease, border-color var(--t-mid) ease;
}

.aux-btn:hover:not([disabled]),
.export-btn:hover:not([disabled]),
.new-activity-btn:hover:not([disabled]),
.finish-btn:hover:not([disabled]),
.modal-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.aux-btn:active:not([disabled]),
.export-btn:active:not([disabled]),
.new-activity-btn:active:not([disabled]),
.finish-btn:active:not([disabled]),
.modal-btn:active:not([disabled]) {
  transform: translateY(0);
}

.aux-btn[disabled],
.new-activity-btn[disabled],
.finish-btn[disabled],
.modal-btn[disabled] {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.aux-btn--primary,
.modal-btn--primary {
  color: #d7efcf;
  border-color: rgba(125, 171, 116, 0.3);
  background: rgba(125, 171, 116, 0.1);
}

.aux-btn--danger {
  border-color: rgba(176, 92, 92, 0.28);
  color: #e0b8b8;
}

.aux-btn--danger:hover:not([disabled]) {
  background: rgba(176, 92, 92, 0.1);
}

.export-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.finish-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.new-activity-btn {
  width: 100%;
  justify-content: center;
  color: #d7efcf;
  border-color: rgba(125, 171, 116, 0.3);
  background: rgba(125, 171, 116, 0.1);
}

.export-btn--danger {
  border-color: rgba(176, 92, 92, 0.28);
  color: #e0b8b8;
}

.export-btn--danger:hover {
  background: rgba(176, 92, 92, 0.1);
}

.finish-btn {
  width: 100%;
  justify-content: center;
  color: #eac7c7;
  border-color: rgba(176, 92, 92, 0.28);
  background: rgba(176, 92, 92, 0.06);
}

.finish-btn[data-state="armed"] {
  color: #fff0f0;
  border-color: rgba(176, 92, 92, 0.46);
  background: rgba(176, 92, 92, 0.18);
  box-shadow: 0 0 0 1px rgba(176, 92, 92, 0.22);
}

.finish-btn[data-state="finished"] {
  color: #cfe5c7;
  border-color: rgba(125, 171, 116, 0.28);
  background: rgba(125, 171, 116, 0.08);
}

.timeline-strip {
  padding: 6px 0 4px;
  min-height: 0;
}

.app-shell--editor,
.app-shell--editor-workspace,
.app-shell--review {
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
}

.editor-page {
  overflow-y: auto;
}

.review-page {
  overflow-y: auto;
}

.editor-main {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 18px 0 22px;
}

.review-main {
  display: grid;
  gap: 14px;
  padding: 18px 0 28px;
  align-content: start;
}

.review-overview {
  display: grid;
  grid-template-columns: minmax(320px, 1.06fr) minmax(0, 1.54fr);
  gap: 10px;
  align-items: stretch;
  --review-mode-accent: rgba(136, 188, 108, 0.95);
  --review-mode-accent-soft: rgba(136, 188, 108, 0.14);
  --review-mode-accent-border: rgba(136, 188, 108, 0.24);
  --review-mode-accent-text: #d7efcf;
  --review-mode-note-bg: rgba(125, 171, 116, 0.12);
  --review-mode-note-border: rgba(125, 171, 116, 0.22);
}

.review-overview[data-metric-mode="task"] {
  --review-mode-accent: rgba(204, 133, 88, 0.96);
  --review-mode-accent-soft: rgba(204, 133, 88, 0.15);
  --review-mode-accent-border: rgba(204, 133, 88, 0.28);
  --review-mode-accent-text: #f1dac8;
  --review-mode-note-bg: rgba(204, 133, 88, 0.12);
  --review-mode-note-border: rgba(204, 133, 88, 0.24);
}

.editor-overview {
  display: block;
}

.review-hero,
.review-panel,
.review-kpi,
.editor-metrics-strip {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.22);
}

.review-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 20px;
  align-items: start;
  background:
    radial-gradient(circle at top right, var(--review-mode-accent-soft), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  border-color: var(--review-mode-accent-border);
}

.review-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-hero__head .review-eyebrow {
  margin-bottom: 0;
}

.review-eyebrow,
.review-panel__eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.review-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: #f2efea;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 0.84rem;
}

.review-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--review-mode-accent-soft);
}

.review-hero__side {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 12px;
}

.review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.review-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.review-kpi {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: center;
  text-align: center;
  padding: 14px 14px 12px;
  min-height: 0;
}

.review-kpi__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  justify-self: center;
}

.review-kpi__value {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 1.65vw, 1.72rem);
  letter-spacing: -0.05em;
  color: #f2efea;
  align-self: center;
  justify-self: center;
}

.review-kpi__meta {
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.45;
  max-width: 14ch;
  align-self: end;
  justify-self: center;
}

.review-kpi--work {
  border-color: rgba(136, 188, 108, 0.18);
}

.review-kpi--rest {
  border-color: rgba(204, 133, 88, 0.18);
}

.review-kpi--phase {
  border-color: rgba(201, 163, 85, 0.18);
}

.review-kpi--clock {
  border-color: rgba(124, 164, 212, 0.18);
}

.review-kpi--gauge {
  align-items: center;
  justify-items: stretch;
  text-align: center;
}

.review-kpi--gauge .review-kpi__label,
.review-kpi--gauge .review-kpi__meta {
  justify-self: center;
}

.ratio-gauge {
  --ratio: 0deg;
  --ratio-color: rgba(136, 188, 108, 0.95);
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel) 0 56%, transparent 57%),
    conic-gradient(var(--ratio-color) 0deg, var(--ratio-color) var(--ratio), rgba(255, 255, 255, 0.08) var(--ratio), rgba(255, 255, 255, 0.08) 360deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ratio-gauge__value {
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  letter-spacing: -0.04em;
  color: #eef4e7;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.review-panel {
  padding: 16px;
}

.review-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-panel__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: #f1efe9;
}

.review-panel__summary {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-toggle--hero {
  width: fit-content;
  padding: 6px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.review-toggle__btn {
  flex: 1 1 0;
  min-width: 74px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 13px;
  background: rgba(7, 10, 15, 0.38);
  border-color: rgba(255, 255, 255, 0.07);
}

.review-toggle__btn[aria-pressed="false"] {
  color: var(--muted-strong);
}

.review-toggle__btn[aria-pressed="false"]:hover:not([disabled]),
.review-toggle__btn[aria-pressed="false"]:focus-visible:not([disabled]) {
  background: rgba(255, 255, 255, 0.055);
}

.review-toggle__btn--task[aria-pressed="true"] {
  color: #f1dac8;
  border-color: rgba(204, 133, 88, 0.34);
  background: rgba(204, 133, 88, 0.14);
}

.review-toggle__btn--bip[aria-pressed="true"] {
  color: #d7efcf;
  border-color: rgba(125, 171, 116, 0.3);
  background: rgba(125, 171, 116, 0.1);
}

.review-mode-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--review-mode-note-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--review-mode-note-bg);
  color: var(--review-mode-accent-text);
  font-size: 0.76rem;
  line-height: 1.45;
}

.bucket-list {
  overflow-x: auto;
  padding-bottom: 2px;
}

.bucket-strip {
  display: grid;
  grid-template-columns: repeat(var(--bucket-count), minmax(84px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: calc(var(--bucket-count) * 92px);
}

.bucket-chip {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.bucket-chip__label {
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.bucket-chip__value {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: var(--text);
  font-weight: 700;
}

.review-overview[data-metric-mode="bip"] .review-kpi--work,
.review-overview[data-metric-mode="bip"] .review-kpi--gauge {
  background:
    linear-gradient(180deg, rgba(136, 188, 108, 0.07), rgba(255, 255, 255, 0)),
    var(--panel);
}

.review-overview[data-metric-mode="task"] .review-kpi--work,
.review-overview[data-metric-mode="task"] .review-kpi--gauge {
  border-color: rgba(204, 133, 88, 0.22);
  background:
    linear-gradient(180deg, rgba(204, 133, 88, 0.08), rgba(255, 255, 255, 0)),
    var(--panel);
}

.review-panel--table {
  padding-bottom: 10px;
}

.review-table-wrap {
  overflow-x: auto;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.review-table th,
.review-table td {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.review-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.review-table td {
  color: var(--text-sub);
  font-size: 0.84rem;
  vertical-align: top;
}

.review-table__metric {
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  letter-spacing: -0.04em;
  color: #f2efea;
  white-space: nowrap;
}

.review-table__metric--accent {
  color: #d3e8c6;
}

.review-table__metric--muted {
  color: #dcbca9;
}

.review-table__task {
  display: grid;
  gap: 4px;
}

.review-table__task-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--text);
}

.review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(208, 226, 248, 0.92);
  background: rgba(124, 164, 212, 0.14);
  border: 1px solid rgba(124, 164, 212, 0.22);
}

.review-badge--live {
  color: #dbf0cf;
  background: rgba(125, 171, 116, 0.16);
  border-color: rgba(125, 171, 116, 0.24);
}

.review-table__task-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.empty-state--review {
  margin-top: 6px;
}

.editor-card {
  width: min(520px, 100%);
  padding: 30px 30px 34px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 1px solid var(--line-mid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.editor-card__eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editor-card__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #f2efea;
}

.editor-card__copy {
  max-width: 28ch;
  margin: 14px auto 0;
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.55;
}

.editor-workbench {
  display: grid;
  gap: 10px;
  padding: 14px 0 22px;
}

.editor-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.18fr) 150px;
  gap: 14px;
  padding: 15px 16px;
  align-items: stretch;
}

.editor-hero__primary {
  display: grid;
  align-content: start;
  gap: 12px;
}

.editor-hero .review-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 10ch;
}

.editor-hero .review-eyebrow {
  margin-bottom: 8px;
}

.editor-hero .review-meta {
  margin-top: 6px;
  gap: 6px 10px;
  font-size: 0.74rem;
}

.editor-hero .review-hero__copy {
  display: grid;
  align-content: start;
  gap: 0;
}

.editor-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.editor-guide__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-height: 68px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-guide__index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(136, 188, 108, 0.12);
  color: #d7efcf;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.editor-guide__copy {
  display: grid;
  gap: 4px;
}

.editor-guide__copy strong {
  color: #f1efe9;
  font-size: 0.83rem;
  font-weight: 700;
}

.editor-guide__copy span {
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.35;
}

.editor-export-group {
  display: grid;
  gap: 6px;
}

.editor-export-group__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-import {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow eyebrow"
    "title cta"
    "copy cta";
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 14px 16px 15px;
  border-radius: 18px;
  border: 1px dashed rgba(136, 188, 108, 0.3);
  background:
    linear-gradient(135deg, rgba(136, 188, 108, 0.18), rgba(124, 164, 212, 0.1) 58%, rgba(124, 164, 212, 0.02)),
    rgba(9, 14, 20, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(124, 164, 212, 0.14),
    inset 0 1px 0 rgba(136, 188, 108, 0.1);
  cursor: pointer;
  transition:
    border-color var(--t-mid) ease,
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) ease,
    background var(--t-mid) ease;
}

.editor-import:hover,
.editor-import--dragover {
  transform: translateY(-1px);
  border-color: rgba(136, 188, 108, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(124, 164, 212, 0.18),
    inset 0 1px 0 rgba(136, 188, 108, 0.14),
    0 12px 36px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(180deg, rgba(136, 188, 108, 0.12), rgba(124, 164, 212, 0.03)),
    rgba(9, 14, 20, 0.82);
}

.editor-import--disabled,
.editor-import--disabled:hover {
  transform: none;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 20, 0.72);
}

.editor-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.editor-import__eyebrow {
  grid-area: eyebrow;
  color: #d7efcf;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editor-import__title {
  grid-area: title;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.04em;
  color: #f2efea;
  max-width: none;
}

.editor-import__copy {
  grid-area: copy;
  color: rgba(223, 232, 240, 0.9);
  font-size: 0.76rem;
  line-height: 1.28;
  max-width: none;
}

.editor-import__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(136, 188, 108, 0.18);
  color: #f3f8ee;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: end;
  align-self: center;
}

.editor-import__cta svg {
  flex-shrink: 0;
}

.editor-metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 8px 0;
  min-height: 0;
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-metric {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 0;
  padding: 8px 12px;
  justify-items: start;
}

.editor-metric + .editor-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-metric:first-child {
  border-left: 0;
}

.editor-metric__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-metric__value {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.02rem, 1.28vw, 1.42rem);
  letter-spacing: -0.05em;
  color: #f2efea;
}

.editor-metric__meta {
  color: var(--muted-strong);
  font-size: 0.66rem;
  line-height: 1.24;
  max-width: 10ch;
}

.editor-export-group {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 8px;
  min-height: 100%;
}

.editor-export-group--stack .review-actions {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
  height: 100%;
}

.review-actions--stack .export-btn {
  min-height: 0;
  height: 100%;
}

.export-btn--csv {
  color: #d7efcf;
  border-color: rgba(136, 188, 108, 0.3);
  background: rgba(136, 188, 108, 0.1);
}

.export-btn--csv:hover:not([disabled]) {
  background: rgba(136, 188, 108, 0.18);
  color: #f1f7eb;
}

.export-btn--json {
  color: #d5e4f4;
  border-color: rgba(124, 164, 212, 0.3);
  background: rgba(124, 164, 212, 0.1);
}

.export-btn--json:hover:not([disabled]) {
  background: rgba(124, 164, 212, 0.18);
  color: #f0f6fb;
}

.export-btn--zip {
  color: #ead8b6;
  border-color: rgba(201, 163, 85, 0.3);
  background: rgba(201, 163, 85, 0.1);
}

.export-btn--zip:hover:not([disabled]) {
  background: rgba(201, 163, 85, 0.18);
  color: #fbf3df;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "tools"
    "timeline"
    "table";
  gap: 10px;
  align-items: start;
}

.editor-layout__tools {
  grid-area: tools;
}

.editor-layout__timeline {
  grid-area: timeline;
}

.editor-layout__table {
  grid-area: table;
}

.editor-panel {
  padding: 14px;
}

.editor-panel .review-panel__head {
  margin-bottom: 8px;
}

.editor-panel--workspace {
  display: grid;
  align-content: start;
}

.editor-panel__copy {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.74rem;
  line-height: 1.34;
}

.editor-workspace-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(240px, 0.9fr) minmax(340px, 1.04fr);
  gap: 12px;
  align-items: start;
}

.editor-workspace-tools {
  display: grid;
  gap: 6px;
  align-content: start;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-workspace__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.04em;
  color: #f1efe9;
}

.editor-workspace-empty {
  grid-column: 2 / 4;
  min-height: 92px;
}

.editor-batch-actions,
.editor-selection-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.editor-task-form {
  display: grid;
  grid-column: 2 / 4;
  grid-template-columns: minmax(220px, 0.76fr) minmax(340px, 1.14fr);
  gap: 10px;
  align-items: start;
}

.editor-timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.editor-task-form__name {
  align-self: start;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-task-form__timing {
  display: grid;
  gap: 8px;
}

.editor-panel--workspace .editor-batch-actions {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.editor-panel--workspace .editor-selection-actions {
  margin-top: 0;
}

.editor-panel .field-block {
  gap: 5px;
  padding: 7px 9px;
}

.editor-panel .field-block__label {
  font-size: 0.62rem;
}

.editor-panel .field-block__hint {
  font-size: 0.64rem;
  line-height: 1.18;
}

.editor-panel .field-block input {
  padding: 7px 9px;
  font-size: 0.8rem;
}

.editor-panel .aux-btn,
.editor-hero .export-btn {
  min-height: 42px;
  padding: 7px 10px;
  font-size: 0.68rem;
}

.aux-btn--table {
  min-height: 0;
  padding: 8px 12px;
}

.editor-panel--timeline {
  padding-bottom: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.editor-panel--timeline .review-panel__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px;
}

.editor-panel--timeline .review-panel__summary {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.editor-timeline-wrap {
  min-height: 0;
  height: 100%;
}

.timeline-workbench--editor {
  max-height: none;
  min-height: 240px;
  height: 100%;
}

.editor-track-list {
  display: grid;
  gap: 8px;
}

.editor-track-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.editor-track-row__meta {
  appearance: none;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--t-mid) ease,
    transform var(--t-mid) var(--ease-out),
    background var(--t-mid) ease;
}

.editor-track-row__meta:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 164, 212, 0.26);
}

.editor-track-row--selected .editor-track-row__meta {
  border-color: rgba(124, 164, 212, 0.3);
  background: rgba(124, 164, 212, 0.08);
}

.editor-track-row__name {
  font-weight: 700;
  color: #f2efea;
}

.editor-track-row__stats {
  color: var(--muted);
  font-size: 0.76rem;
}

.editor-track-row__lane {
  height: 42px;
}

.editor-table__row--selected {
  background: rgba(124, 164, 212, 0.06);
}

.timeline-workbench {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  max-height: 176px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.09) transparent;
}

.timeline-workbench::-webkit-scrollbar {
  width: 4px;
}

.timeline-workbench::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-workbench::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
}

.timeline-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

.timeline-scale__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-scale__item::before {
  content: "";
  height: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-scale__label {
  color: var(--muted);
  font-size: 0.64rem;
}

.timeline-map {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timeline-single {
  display: grid;
  gap: 8px;
}

.timeline-single__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-single__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-single__summary {
  font-size: 0.74rem;
  color: var(--muted-strong);
}

.timeline-stack {
  display: grid;
  gap: 7px;
}

.timeline-lane {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 8, 12, 0.65);
}

.timeline-lane--tasks {
  height: 28px;
}

.timeline-lane--events {
  height: 34px;
}

.timeline-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.task-span,
.bip-span {
  position: absolute;
  min-width: 10px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.task-span {
  top: 7px;
  height: 12px;
  background: linear-gradient(180deg, rgba(124, 164, 212, 0.9), rgba(100, 138, 190, 0.75));
  border-color: rgba(200, 224, 252, 0.14);
}

.task-span--active {
  box-shadow: 0 0 0 2px rgba(124, 164, 212, 0.26), 0 0 14px rgba(124, 164, 212, 0.14);
}

.task-span--selected {
  box-shadow: 0 0 0 2px rgba(235, 243, 252, 0.34);
}

.task-span__label,
.bip-span__label {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(6, 14, 24, 0.85);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bip-span {
  top: 11px;
  height: 11px;
  background: linear-gradient(180deg, rgba(136, 188, 108, 0.9), rgba(108, 160, 84, 0.76));
  border-color: rgba(200, 240, 180, 0.14);
}

.bip-span--active {
  box-shadow: 0 0 0 2px rgba(136, 188, 108, 0.26), 0 0 14px rgba(136, 188, 108, 0.12);
}

.ruck-marker {
  position: absolute;
  top: 8px;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  padding: 0;
  border-radius: 50%;
  background: var(--ruck);
  border: 1px solid rgba(255, 240, 200, 0.18);
  cursor: pointer;
  appearance: none;
}

.ruck-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
  background: rgba(201, 163, 85, 0.44);
}

.empty-state {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.empty-state--mini {
  padding: 9px;
}

.empty-state--mini p {
  font-size: 0.74rem;
}

.log-drawer {
  position: relative;
  border-top: 1px solid var(--line);
}

.log-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: manipulation;
  transition: color var(--t-mid) ease;
}

.log-toggle:hover {
  color: var(--text-sub);
}

.log-toggle__chevron {
  transition: transform var(--t-mid) var(--ease-out);
}

.log-drawer--open .log-toggle__chevron {
  transform: rotate(180deg);
}

.log-toggle__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
}

.log-content {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  max-height: 44vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel-strong);
  border: 1px solid var(--line-mid);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 12px;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.09) transparent;
}

.log-content::-webkit-scrollbar {
  width: 4px;
}

.log-content::-webkit-scrollbar-track {
  background: transparent;
}

.log-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 15, 20, 0.7);
  font-size: 0.79rem;
}

.event-type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-type-dot--play {
  background: #a2d496;
}

.event-type-dot--pause {
  background: #e8a878;
}

.event-type-dot--task_start,
.event-type-dot--task_end {
  background: #a8c4e6;
}

.event-type-dot--bip_start,
.event-type-dot--bip_end {
  background: #a8d490;
}

.event-type-dot--ruck {
  background: #d8c07a;
}

.event-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-sub);
}

.event-elapsed {
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.activity-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.activity-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, 0.68);
  backdrop-filter: blur(10px);
}

.activity-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line-mid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 80px rgba(0, 0, 0, 0.45);
}

.activity-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.activity-modal__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.activity-modal__copy {
  margin: 8px 0 14px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.45;
}

.activity-modal__form {
  display: grid;
  gap: 10px;
}

.activity-modal__error {
  margin: 0;
  color: #efb2b2;
  font-size: 0.77rem;
}

.activity-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-picker-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 21;
}

.time-picker-modal__card {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 28px));
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(124, 164, 212, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--panel-strong);
  border: 1px solid var(--line-mid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 84px rgba(0, 0, 0, 0.5);
}

.time-picker-modal__head {
  display: grid;
  gap: 4px;
}

.time-picker-modal__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  letter-spacing: -0.04em;
  color: #f2efe8;
}

.time-picker-modal__subtitle {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.time-picker-modal__copy {
  margin: 10px 0 16px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.45;
}

.time-picker-modal__wheels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.time-picker-wheel {
  display: grid;
  gap: 8px;
}

.time-picker-wheel__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.time-picker-wheel__viewport {
  position: relative;
  height: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line-mid);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.time-picker-wheel__frame {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 14px;
  border: 1px solid rgba(124, 164, 212, 0.24);
  background:
    linear-gradient(180deg, rgba(124, 164, 212, 0.1), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.time-picker-wheel__viewport::before,
.time-picker-wheel__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 1;
  pointer-events: none;
}

.time-picker-wheel__viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(16, 22, 32, 0.96), rgba(16, 22, 32, 0));
}

.time-picker-wheel__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(16, 22, 32, 0.96), rgba(16, 22, 32, 0));
}

.time-picker-wheel__list {
  position: relative;
  z-index: 0;
  height: 100%;
  overflow-y: auto;
  padding-block: 76px;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.time-picker-wheel__list::-webkit-scrollbar {
  display: none;
}

.time-picker-wheel__option {
  appearance: none;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  scroll-snap-align: center;
  transition:
    color var(--t-mid) ease,
    transform var(--t-fast) ease,
    opacity var(--t-mid) ease;
}

.time-picker-wheel__option:hover,
.time-picker-wheel__option:focus-visible {
  color: var(--text-sub);
  outline: none;
}

.time-picker-wheel__option--selected {
  color: #f5efe7;
  transform: scale(1.04);
}

.time-picker-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 761px) {
  .main-grid {
    grid-template-columns: 0.84fr 1.28fr 1fr;
  }
}

@media (max-width: 1180px) {
  .logger-page {
    overflow-y: auto;
  }

  .app-shell--logger {
    padding-bottom: 12px;
  }

  .app-shell--logger .top-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 2px;
    height: auto;
  }

  .app-shell--logger .page-tabs {
    order: 2;
  }

  .app-shell--logger .top-bar__context {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-shell--logger .top-bar__right {
    margin-left: auto;
  }

  .app-shell--logger .main-grid {
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    align-items: start;
  }

  .app-shell--logger .col-clock {
    grid-column: 1;
  }

  .app-shell--logger .col-actions {
    grid-column: 2;
  }

  .app-shell--logger .col-inputs {
    grid-column: 1 / -1;
  }

  .app-shell--logger .timeline-strip {
    padding-bottom: 10px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 10px 12px;
  }

  .top-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 2px;
    height: auto;
  }

  .page-tabs {
    order: 2;
  }

  .top-bar__context {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .action-row:last-child {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .col-inputs {
    order: 3;
  }

  .timeline-workbench {
    max-height: none;
  }

  .editor-main {
    padding-top: 26px;
  }

  .editor-workbench {
    padding-top: 22px;
  }

  .review-main {
    padding-top: 22px;
  }

  .review-overview,
  .editor-overview,
  .review-hero,
  .editor-hero {
    grid-template-columns: 1fr;
  }

  .review-hero__side {
    justify-items: stretch;
  }

  .review-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-guide,
  .editor-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-metrics-strip {
    border-left: 0;
    border-right: 0;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .editor-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "timeline"
      "table";
  }

  .editor-workspace-grid,
  .editor-task-form {
    grid-template-columns: 1fr;
  }

  .editor-workspace-empty,
  .editor-task-form {
    grid-column: auto;
  }

  .editor-workspace-tools,
  .editor-task-form__name {
    padding-right: 0;
    border-right: 0;
  }

  .editor-track-row {
    grid-template-columns: 1fr;
  }

  .editor-panel--timeline .review-panel__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .editor-panel--timeline .review-panel__summary {
    justify-self: start;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .page-tabs {
    width: 100%;
  }

  .page-tab {
    flex: 1;
    min-width: 0;
  }

  .top-bar__right {
    width: 100%;
    justify-content: space-between;
  }

  .activity-modal__actions,
  .time-picker-modal__actions,
  .selected-task-panel__actions,
  .export-row,
  .finish-row,
  .editor-batch-actions,
  .editor-selection-actions,
  .editor-timing-grid {
    grid-template-columns: 1fr;
  }

  .editor-card {
    padding: 24px 20px 28px;
  }

  .review-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .review-hero__head {
    flex-direction: column;
    align-items: stretch;
  }

  .review-toggle--hero {
    width: 100%;
  }

  .review-kpis,
  .editor-guide,
  .editor-metrics-strip {
    grid-template-columns: 1fr;
  }

  .time-picker-modal__card {
    padding: 18px;
  }

  .time-picker-modal__wheels {
    gap: 8px;
  }

  .editor-import {
    width: 100%;
  }

  .editor-import {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "copy"
      "cta";
  }

  .editor-import__cta {
    justify-self: start;
  }

  .bucket-chip {
    min-height: 64px;
    padding: 9px 11px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .col-clock {
    animation: panel-rise 360ms var(--ease-out) both;
  }

  .col-actions {
    animation: panel-rise 360ms var(--ease-out) 55ms both;
  }

  .col-inputs {
    animation: panel-rise 360ms var(--ease-out) 110ms both;
  }

  .review-hero,
  .review-kpi,
  .review-panel {
    animation: panel-rise 360ms var(--ease-out) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
