/* V4 components inherit Ambient Clarity surfaces, typography and galaxy layers. */
.view,
.hero,
.priority,
.top,
.top-actions,
.intro,
.workspace-summary,
.journal-columns,
.settings-page,
.section-head,
.row,
.next-shift-compact > div {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.hero > *,
.grid > *,
.row > *,
.section-head > *,
.formactions > * {
  min-inline-size: 0;
}
h1,
h2,
h3,
h4,
p,
.btn,
.tag,
.shift-window,
.task-meta {
  overflow-wrap: anywhere;
}
.top {
  flex-wrap: wrap;
}
.top-actions {
  flex-shrink: 0;
}
.profile-trigger {
  inline-size: 44px;
  block-size: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  flex: 0 0 44px;
}
.profile-trigger #headerProfileAvatar {
  --avatar-size: 44px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.profile-trigger #headerProfileAvatar img {
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.priority-shift {
  border-top: 1px solid #e8e2df;
  padding-top: 14px;
  margin-top: 16px;
}
.priority-shift > h3 {
  font-size: 10px;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
  color: var(--muted);
}
.next-shift-compact {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.next-shift-compact .habit-icon {
  flex: 0 0 32px;
  inline-size: 32px;
  block-size: 32px;
}
.next-shift-compact > div {
  flex: 1 1 150px;
}
.next-shift-compact strong {
  font-size: 12px;
}
.next-shift-compact p {
  font-size: 12px;
  line-height: 1.6;
  margin: 3px 0;
}
.daily-progress {
  color: #d0ccd5;
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.6;
}
.focus-indicator {
  background: #eef3dc;
  color: #394c17;
  border: 1px solid #dae6ad;
  border-radius: 99px;
  margin-top: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 12px;
}
.streak-strip {
  margin: 14px 0 20px;
  display: grid;
  gap: 9px;
}
.streak-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.streak-metric > span {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-inline-size: 0;
}
.streak-metric svg {
  inline-size: 16px;
  block-size: 16px;
  color: #5b6a25;
}
.streak-metric meter {
  inline-size: 70px;
  block-size: 8px;
  flex: 0 0 70px;
}
.streak-metric meter::-webkit-meter-bar {
  background: #e8e5df;
  border: 0;
  border-radius: 8px;
}
.streak-metric meter::-webkit-meter-optimum-value {
  background: #738b2a;
  border-radius: 8px;
}
.streak-strip .small-note {
  margin: 0;
}
#savedShiftsDisclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-block-size: 44px;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}
#savedShiftsDisclosure summary::-webkit-details-marker {
  display: none;
}
#savedShiftsDisclosure[open] .disclosure-icon {
  transform: rotate(180deg);
}
.disclosure-icon {
  font-size: 24px;
  line-height: 1;
}
.shift-confirm-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
#shiftCalendar {
  gap: 4px;
}
#shiftCalendar .shift-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  inline-size: 100%;
  min-block-size: 84px;
  border-radius: 12px;
  padding: 8px 2px;
  overflow: visible;
  line-height: 1.3;
  touch-action: manipulation;
}
#shiftCalendar .shift-day[aria-pressed="true"] {
  outline: 2px solid #5c6f27;
  outline-offset: 1px;
}
#shiftCalendar .shift-day.today {
  border: 2px solid #6b713e;
}
.shift-cell-label {
  font-size: 10px;
  display: grid;
  gap: 2px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  inline-size: 100%;
}
.shift-cell-label time {
  white-space: nowrap;
}
.shift-type-short {
  display: none;
}
.shift-more {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}
.selected-shift-details {
  margin-top: 24px;
  border-top: 1px solid #e8e2df;
  padding-top: 18px;
}
.selected-shift-details h3 {
  font-size: 16px;
}
.shift-detail {
  padding: 12px 0;
}
.shift-detail + .shift-detail {
  border-top: 1px solid #e8e2df;
}
.shift-detail .row {
  flex-wrap: wrap;
}
.shift-detail .shift-window {
  font-size: 13px;
  line-height: 1.7;
}
.diary {
  background: linear-gradient(135deg, #fcfaf5, #f8f5ef);
  border: 1px solid #e8e2d8;
  border-radius: 22px;
  padding: 24px;
  max-inline-size: 100%;
}
.diary-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #625a4e;
}
.diary-heading svg {
  inline-size: 20px;
  block-size: 20px;
}
.diary h3 {
  font-size: 22px;
  margin: 20px 0 24px;
}
.diary h4 {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #625a4e;
  margin: 24px 0 10px;
}
.diary-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.9;
  max-inline-size: 62ch;
  color: #37323a;
}
.diary .dialog-actions {
  flex-wrap: wrap;
}
.focus-surface {
  padding: 22px;
  border-radius: 26px;
  color: white;
  text-align: center;
  margin-bottom: 18px;
}
.focus-task {
  font-size: 18px;
  line-height: 1.5;
  margin: 12px 0 20px;
  overflow-wrap: anywhere;
}
.focus-ring {
  --percent: 100;
  inline-size: 180px;
  block-size: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: auto;
  padding: 7px;
  background: conic-gradient(
    var(--lime) calc(var(--percent) * 1%),
    #ffffff1f 0
  );
}
.focus-ring > div {
  border-radius: 50%;
  background: var(--focal);
  inline-size: 100%;
  block-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
#focusRemaining {
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.focus-ring .small-note {
  color: #d4cfdb;
}
.duration-presets,
.focus-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1/-1;
  margin: 12px 0;
}
.focus-actions .btn {
  flex: 1 1 150px;
}
@media (max-width: 430px) {
  .shift-type-full {
    display: none;
  }
  .shift-type-short {
    display: inline;
  }
  .diary {
    padding: 18px;
  }
  #shiftCalendar .shift-day {
    min-block-size: 80px;
  }
  .next-shift-compact > div {
    flex-basis: 140px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .streak-metric meter {
    transition: opacity 180ms ease;
  }
  .disclosure-icon {
    transition: transform 180ms ease;
  }
}

.focus-indicator {
  font-variant-numeric: tabular-nums;
}
.focus-history-summary {
  min-block-size: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
}
.app {
  overflow-wrap: anywhere;
}
.quick > span:not(.quick-icon) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.shift-cell-label time {
  white-space: normal;
  overflow-wrap: anywhere;
}
.navbtn > span {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
