/* ---------------- 4) List / rows / day / line ---------------- */
:root{
  --list-accent: var(--sotido-theme-accent);
  --list-accent-danger: var(--sotido-recipe-calendar-list-destructive-accent);
  --list-accent-success: var(--sotido-recipe-calendar-list-success-accent);
  --list-surface-base: var(--sotido-theme-background);
  --list-surface-panel: var(--sotido-theme-surface);
  --list-surface-soft: var(--sotido-theme-surface-soft);
  --list-surface-raised: var(--sotido-theme-surface-raised);
  --list-border-highlight: color-mix(in srgb, var(--sotido-theme-text-primary) 55%, transparent);
  --list-shimmer: color-mix(in srgb, var(--sotido-theme-text-primary) 20%, transparent);
  --list-accent-fade: transparent;
  --list-accent-line: color-mix(in srgb, var(--list-accent) 72%, transparent);
  --list-social-chip: color-mix(in srgb, var(--sotido-theme-text-primary) 8%, transparent);
  --list-social-chip-strong: color-mix(in srgb, var(--sotido-theme-text-primary) 11%, transparent);
  --list-highlight-chip: color-mix(in srgb, var(--list-surface-base) 28%, transparent);
  --list-highlight-chip-strong: color-mix(in srgb, var(--list-surface-base) 38%, transparent);
  --list-transparent: transparent;
  --list-task-dot: var(--sotido-recipe-calendar-list-text-on-accent);
}

.list{
  display: flex;
  flex-direction: column;
  gap: 0;
}.scroll-slack{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  flex: 0 0 0 !important;
}.row{
  z-index: 1;
  min-height: var(--sotido-recipe-calendar-list-compact-row-height);
  display: flex;
  align-items: center;
  column-gap: var(--sotido-recipe-calendar-list-row-column-gap);
  margin: var(--sotido-recipe-calendar-list-row-vertical-inset) var(--sotido-recipe-calendar-list-horizontal-inset);
}.row-today{
  padding-top: 0;
  background: none;
}/* левая колонка — день */
.day{
  width: var(--sotido-recipe-calendar-list-day-anchor-width);
  border-radius: var(--sotido-recipe-calendar-list-compact-corner-radius);
  background: var(--list-surface-panel);
  color: var(--sotido-theme-text-primary);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  /* Day frames should stay above connector lines. */
  z-index: 3;
}.day.clickable{
  cursor: pointer;
}.day.weekend:not(.today){
  background: var(--list-accent-danger);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.day.today{
  background: var(--list-accent);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.day .day-num{
  font-size: 19px;
  line-height: 0.95;
  opacity: 0.95;
}.day .day-dow{
  font-size: var(--sotido-type-caption);
  opacity: 0.75;
  line-height: 0.9;
  font-weight: 500;
}.day .day-date-stack{
  display: flex;
  flex-direction: column;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  position: absolute;
}.month{
  position: sticky;
  top: calc(var(--sotido-calendar-view-switcher-stack-clearance, 60px) + 8px);
  z-index: 3;
  cursor: default;
}.month-separator{
  position: sticky;
}
.month-block{
  padding-top: 24px;
}
.month-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}.calendar-month-load-control{
  --calendar-edge-push-progress: 0;
  --calendar-edge-push-progress-steps: 0;
  --calendar-edge-push-shortfall: 0px;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--sotido-recipe-calendar-edge-push-minimum-height);
  margin: 0;
  padding: var(--sotido-recipe-calendar-edge-push-vertical-padding) var(--sotido-recipe-calendar-edge-push-horizontal-padding);
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  overflow-anchor: none;
  box-sizing: border-box;
  color: var(--sotido-recipe-calendar-edge-push-muted-text);
}.calendar-month-load-control:focus-visible{
  outline: 2px solid var(--sotido-theme-accent);
  outline-offset: -4px;
  border-radius: var(--sotido-radius-card);
}.calendar-month-load-control:disabled{
  cursor: progress;
}.calendar-month-load-control-next{
  margin-top: var(--calendar-edge-push-shortfall);
  margin-bottom: 70px;
}.calendar-edge-push-signal{
  display: grid;
  justify-items: center;
  gap: var(--sotido-recipe-calendar-edge-push-signal-gap);
  width: min(220px, 70vw);
  opacity: 0.56;
  transition: opacity var(--sotido-motion-fast) ease, color var(--sotido-motion-fast) ease;
}.calendar-edge-push-label{
  font-size: var(--sotido-type-caption);
  line-height: 1.2;
  text-align: center;
}.calendar-edge-push-label-loading{
  display: none;
}.calendar-edge-push-progress{
  display: grid;
  place-items: center;
  position: relative;
  width: var(--sotido-recipe-five-petal-progress-edge-size);
  height: var(--sotido-recipe-five-petal-progress-edge-size);
}.calendar-edge-push-progress-logo{
  --sotido-five-petal-progress-size: 100%;
  --sotido-five-petal-progress-active: var(--sotido-recipe-calendar-edge-push-accent);
  --sotido-five-petal-progress-steps: var(--calendar-edge-push-progress-steps);
  position: absolute;
  inset: 0;
}.calendar-month-load-control.is-pulling .calendar-edge-push-signal{
  opacity: 1;
}.calendar-month-load-control[data-loading="1"] .calendar-edge-push-signal{
  opacity: 1;
}.calendar-month-load-control[data-loading="1"] .calendar-edge-push-label-default{
  display: none;
}.calendar-month-load-control[data-loading="1"] .calendar-edge-push-label-loading{
  display: block;
}
@media (prefers-reduced-motion: reduce){
  .calendar-edge-push-signal,
  .sotido-five-petal-progress-petal{
    transition: none;
  }
}/* колонка с событиями дня */
.line{
  justify-content: center;
  min-height: var(--sotido-recipe-calendar-list-compact-row-height);
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}.line.is-empty{
  background: var(--list-surface-soft);
  border-radius: var(--sotido-recipe-calendar-list-compact-corner-radius);
}.line.only-ghosts{
  min-height: auto;
  justify-content: center;
}.rowline-deferred-placeholder > .item-deferred-placeholder{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--list-surface-raised) 78%, transparent);
  overflow: hidden;
  pointer-events: none;
}.rowline-deferred-placeholder > .item-deferred-placeholder::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--list-shimmer) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: list-deferred-placeholder-shimmer 1.2s ease-in-out infinite;
}.calendar-list-layout-skeleton{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}.calendar-list-layout-skeleton-badges{
  position: absolute;
  top: 3px;
  right: 4px;
  display: flex;
  gap: 2px;
}.calendar-list-layout-skeleton-badge{
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--list-shimmer);
}.calendar-list-layout-skeleton-copy{
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 30px;
  right: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
}.calendar-list-layout-skeleton-title,
.calendar-list-layout-skeleton-description,
.calendar-list-layout-skeleton-organizer{
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--list-shimmer);
}.calendar-list-layout-skeleton-title{
  width: 58%;
}.calendar-list-layout-skeleton-description{
  width: 82%;
  opacity: 0.72;
}.calendar-list-layout-skeleton-organizer{
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 34px;
  opacity: 0.82;
}.rowline-deferred-placeholder > .item-deferred-placeholder.item-deferred-placeholder-highlight{
  min-height: calc(var(--ENTRY_H) * 2);
}.rowline-deferred-placeholder > .item-deferred-placeholder.item-deferred-placeholder-tail{
  border-radius: 6px;
  opacity: 0.72;
}
@keyframes list-deferred-placeholder-shimmer{
  100%{ transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .rowline-deferred-placeholder > .item-deferred-placeholder::after{
    animation: none;
  }
}.rowline.calendar-layout-hydrating{
  position: relative;
}.rowline.calendar-layout-hydrating > .item.calendar-layout-hydration-outgoing{
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  pointer-events: none;
  animation: calendar-layout-hydration-out var(--sotido-motion-standard) ease-out both;
}.rowline.calendar-layout-hydrating > .item.calendar-layout-hydration-incoming{
  animation: calendar-layout-hydration-in var(--sotido-motion-standard) ease-out both;
}@keyframes calendar-layout-hydration-out{
  from{ opacity: 1; }
  to{ opacity: 0; }
}@keyframes calendar-layout-hydration-in{
  from{ opacity: 0.2; }
  to{ opacity: 1; }
}@media (prefers-reduced-motion: reduce) {
  .rowline.calendar-layout-hydrating > .item.calendar-layout-hydration-outgoing,
  .rowline.calendar-layout-hydrating > .item.calendar-layout-hydration-incoming{
    animation: none;
  }
}/* iOS/WebView: flex-gap can be unreliable → use margin-based spacing for list/discover */
body.calendar-mode-list .line, body.discover-mode .line{
  gap: 0;
}.line > .rowline{
  margin-bottom: 2px;
}.line > .rowline:last-child{
  margin-bottom: 0;
}.line .l1, .line .l2{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.item.flash{
  box-shadow: 0 0 0 2px var(--list-border-highlight), var(--sotido-shadow-surface);
}
.today-sep{
  height: 28px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  position: relative;
  z-index: 3;
  margin-top: 20px;
  margin-left: 8px;
  margin-right: 8px;
}.today-sep:not(.today-sep-floating)::before,
.today-sep:not(.today-sep-floating)::after{
  content: "";
  display: block;
  height: 1px;
  min-width: 28px;
  flex: 1 1 0;
  background: linear-gradient(90deg, var(--list-accent-fade), var(--list-accent-line));
}.today-sep:not(.today-sep-floating)::after{
  background: linear-gradient(90deg, var(--list-accent-line), var(--list-accent-fade));
}.today-sep.is-today{
  z-index: 70;
}.today-sep.is-today.after-row + .row{
  margin-bottom: 0;
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 0;
  padding: 0;
}.today-sep.today-sep-floating{
  position: fixed;
  padding: 0;
  height: 26px;
  left: 50%;
  top: 120px;
  margin-left: 0;
  margin-top: 0;
  transform: translate3d(-50%, 0, 0);
  z-index: 160;
  width: auto;
  pointer-events: auto;
  opacity: 0;
  gap: 0;
  transition: opacity var(--sotido-motion-instant) ease;
  will-change: top, opacity;
}.today-sep.today-sep-floating .today-sep-pill{
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}body.calendar-mode-grid .today-sep.today-sep-floating{
  display: none !important;
}.today-sep.today-sep-floating[data-dir="up"] .today-sep-pill::before{
  content: "↑ ";
}.today-sep.today-sep-floating[data-dir="down"] .today-sep-pill::before{
  content: "↓ ";
}.today-sep .today-sep-pill{
  align-items: center;
  justify-content: center;
  background: var(--list-accent);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
  border-radius: var(--sotido-radius-pill);
  padding: 4px 10px;
  box-shadow: none;
}.calendar-today-return-host{
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}.calendar-today-return-host--top{
  top: calc(100% + var(--sotido-recipe-calendar-top-chrome-stack-stack-gap));
}.calendar-top-status-row > .calendar-today-return-host--top{
  position: relative;
  grid-column: 2;
  inset: auto;
  align-items: center;
  width: auto;
  min-width: 78px;
  min-height: var(--sotido-recipe-calendar-top-status-row-today-minimum-height);
}.calendar-today-return-host--bottom{
  bottom: calc(100% + var(--sotido-recipe-calendar-lower-chrome-stack-stack-spacing));
}.calendar-lower-utility-row > .calendar-today-return-host--bottom{
  position: relative;
  grid-column: 2;
  inset: auto;
  align-items: center;
  justify-self: center;
  width: auto;
  min-width: 78px;
  min-height: var(--sotido-recipe-calendar-top-status-row-today-minimum-height);
}.calendar-today-return-host.is-active{
  visibility: visible;
}.calendar-today-return-btn{
  appearance: none;
  border: 0;
  border-radius: var(--sotido-radius-pill);
  padding: 5px 12px;
  min-height: var(--sotido-recipe-calendar-top-status-row-today-minimum-height);
  background: var(--list-accent);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
  font: inherit;
  font-size: var(--sotido-type-body-compact);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(2px);
  transition:
    opacity var(--sotido-motion-instant) ease,
    transform var(--sotido-motion-instant) ease;
}.calendar-today-return-btn.is-visible{
  opacity: var(--today-return-opacity, 1);
  pointer-events: auto;
  transform: translateY(0);
}.calendar-today-return-btn[data-dir="up"]::before{
  content: "\2191  ";
}.calendar-today-return-btn[data-dir="down"]::before{
  content: "\2193  ";
}body.calendar-mode-grid .calendar-today-return-host,
body:is(.feed-mode, .discover-mode, .event-compose-screen-open, .calendar-settings-screen-open, .workflow-screen-open, .participants-modal-open) .calendar-today-return-host{
  display: none !important;
}@media (prefers-reduced-motion: reduce) {
  .calendar-today-return-btn{
    transition: none;
  }
}.empty{
  color: var(--sotido-theme-text-primary);
}.hint{
  font-size: var(--sotido-type-caption);
  opacity: 0.7;
  margin-top: 10px;
}/* отдельная запись в list-режиме */
.rowline{
  display: flex;
  align-items: center;
  width: 100%;
}.rowline.tail{
  height: 15px;
}.rowline > .item{
  flex: 1 1 auto;
  min-width: 0;
}.rowline > .item:not(.tail-item){
  height: var(--ENTRY_H);
}body.calendar-mode-list .rowline:not(.day-expanded-rowline) > .item, body.calendar-mode-list .rowline:not(.day-expanded-rowline) > .item.has-tail, body.calendar-mode-list .rowline:not(.day-expanded-rowline) > .item.tail-item{
  border-radius: 6px;
  overflow: hidden;
  gap: 2px; 
  padding: 0;
}.rowline.tail > .item.tail-item{
  height: 15px;
  padding-top: 15px;
}.item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--sotido-type-body-compact);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
  z-index: 4;
  background-size: var(--ev-bg-size, auto);
  background-position: var(--ev-bg-pos, 0 0);
  background-repeat: no-repeat;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
  box-shadow: none;
}.item.is-draft{
  opacity: 0.4;
}.item.is-draft .ev-timechip,
.item.is-draft .ev-title-text,
.item.is-draft .ev-desc-text,
.item.is-draft .ev-organizer{
  filter: inherit;
}.item.tail-item{
  height: 12px;
  min-height: 12px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
  align-self: center;
  align-items: stretch;
  border: none;
  box-shadow: none;
}.ev-badge-group{
  position: absolute;
  right: 0px;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
}.ev-tail-badges{
  display: inline-flex;
  align-items: top;
  gap: 4px;
  margin-left: 6px;
  flex-direction: row-reverse;
  pointer-events: none;
}.item .ev-badge-group{
  top: 0px;
}.ev-badge{
  position: relative;
  display: flex;
  height: 13px;
  padding: 0px 6px 0px;
  border-radius: 0 0 0 6px;
  background: var(--ev-badge-bg, var(--list-accent-danger));
  color: var(--sotido-recipe-calendar-list-text-on-accent);
  font-size: var(--sotido-type-caption);
  text-shadow: none;
  text-transform: none;
  box-shadow: none;
  border: none;
  line-height: 1;
}.ev-badge-group > * + *{
  margin-left: -6px;
  padding-left: 12px;
}.ev-task-label-badge{
  --ev-badge-bg: var(--list-accent-danger);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.ev-slot-badge{
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.ev-task-label-badge.is-done, .ev-task-badge.is-done{
  --ev-badge-bg: var(--list-accent-success);
}.ev-task-dots{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}.ev-task-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--list-task-dot);
}.ev-task-dot.is-undone{
  background: var(--list-task-dot);
}.ev-task-dot.is-done{
  background: var(--list-accent-success);
}.ev-cityregion-badge{
  background: var(--list-surface-panel);
  color: var(--sotido-theme-text-primary);
  border-radius: 0 0 0 6px;
}.ev-audience-lane-badge{
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.ev-draft-badge{
  color: var(--sotido-recipe-calendar-list-text-on-accent);
  border-radius: 0 0 0 6px;
  --ev-badge-bg: var(--list-accent);
}.ev-local-changes-badge{
  --ev-badge-bg: color-mix(in srgb, var(--list-accent) 55%, var(--list-surface-panel));
  color: var(--sotido-theme-text-primary);
  border-radius: 0 0 0 6px;
}.ev-calendar-source-badge{
  --ev-badge-bg: var(--sotido-theme-selection-companion);
  max-width: 132px;
  gap: 4px;
  align-items: center;
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.ev-calendar-source-badge.is-primary{
  --ev-badge-bg: var(--sotido-theme-accent);
}.ev-calendar-source-avatar{
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 7px;
  line-height: 1;
}.ev-calendar-source-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}.ev-calendar-source-title{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.ev-bot-badge{
  --ev-badge-bg: var(--list-accent);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}.ev-repost-badge{
  --ev-badge-bg: var(--list-accent);
  background: var(--list-accent);
  color: var(--sotido-recipe-calendar-list-text-on-accent);
}
.task-start-dot.is-done{
  background: var(--list-accent-success);
}.ev-pe-badge{
  color: var(--sotido-theme-text-primary);
}.item::-webkit-scrollbar{
  height: 0;
  display: none;
}/* event label split: fixed time + animated title */
.ev-timewrap{
  position: sticky;
  top: 0px;
  left: -1px;
  height: 30px;
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  flex: 0 0 auto;
}.item.tail-item .ev-timewrap.ev-timewrap-end-align-right{
  left: 0;
}.ev-timechip{
  height: 15px;
  font-size: var(--sotido-type-caption);
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  opacity: 0.9;
}.ev-timewrap .ev-timechip{
  width: auto;
}.ev-timewrap .ev-timechip-start{
  padding-left: 3px;
  color: var(--sotido-theme-text-primary);
}.ev-timewrap .ev-timechip-end{
  text-align: end;
  align-self: flex-end;
  margin-left: 8px;
  color: var(--sotido-theme-text-primary);
}.ev-timewrap .ev-timechip-hidden{
  opacity: 0;
  display: none;
  pointer-events: none;
}.item .ev-title-clip{
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}.item .ev-desc-clip{
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
}.item .ev-bottom-meta{
  position: absolute;
  right: 0px;
  top: 14px;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  max-width: 52%;
  min-width: 0;
  height: 14px;
  line-height: 14px;
  pointer-events: none;
}.item .ev-organizer{
  position: static;
  background: var(--list-surface-panel);
  border-radius: 6px 0 0 0;
  color: var(--sotido-theme-text-primary);
  flex: 0 1 auto;
  line-height: 14px;
  padding: 0 4px;
  font-size: var(--sotido-type-caption);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}.item .ev-bottom-meta .ev-audience-lane-badge{
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 14px;
  padding: 0 5px 0 11px;
  border-radius: 6px 0 0 0;
  line-height: 14px;
  margin-left: -6px;
}.item{
  transition:
    transform var(--sotido-motion-fast) ease,
    filter var(--sotido-motion-fast) ease,
    opacity var(--sotido-motion-fast) ease;
}.item.is-event-pressing{
  transform: scale(0.985);
  filter: brightness(1.08) saturate(1.04);
}.item.is-event-press-confirmed{
  transform: scale(0.972);
  filter: brightness(1.14) saturate(1.08);
}@media (hover: hover) and (pointer: fine){
  .rowline > .item:not(.tail-item):hover{
    filter: brightness(1.06) saturate(1.03);
  }
}.item .ev-title-text{
  display: inline-block;
  max-width: 100%;
  padding-left: 4px;
  color: var(--sotido-theme-text-primary);
}.item .ev-desc-text{
  display: inline-block;
  max-width: 100%;
}.item .ev-text-pair{
  position: relative;
  line-height: 14px;
  flex: 1 1 auto;
}.item .ev-text-pair .ev-title-clip{
  max-width: 70%;
  min-width: 0;
}.item .ev-text-pair .ev-desc-clip{
  flex: 1 1 auto;
  min-width: 0;
}.item .ev-text-pair .ev-desc-text{
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  text-overflow: clip;
}

/* Collapsed list events: let text flow around time chips, badges, organizer and highlight cover. */
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item){
  display: block;
  line-height: 15px;
  white-space: normal;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-timewrap{
  position: relative;
  top: auto;
  left: auto;
  float: left;
  display: block;
  height: auto;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-timewrap .ev-timechip{
  display: block;
  min-width: 0;
  height: 14px;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-timewrap .ev-timechip.ev-timechip-hidden{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-badge-group{
  position: relative;
  top: auto;
  right: auto;
  float: right;
  clear: right;
  margin-left: 6px;
  max-width: 48%;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-badge-group .ev-badge{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-bottom-meta{
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  float: none;
  clear: none;
  margin: 0;
  max-width: 42%;
  z-index: 2;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-organizer{
  position: static;
  max-width: 100%;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-text-pair{
  display: block;
  min-width: 0;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-text-pair .ev-title-clip{
  display: block;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-text-pair .ev-desc-clip{
  display: block;
  max-width: none;
  min-width: 0;
  overflow: hidden;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-text-pair .ev-desc-text{
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  text-overflow: clip;
  padding-left: 4px;
  color: var(--sotido-theme-text-primary);
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-discover-social{
  display: flex;
  align-items: center;
  gap: 6px;
  clear: both;
  padding: 4px 46% 0 4px;
  min-height: 16px;
  line-height: 1;
  opacity: 0.78;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-discover-social-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: var(--sotido-radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--list-social-chip);
  color: var(--sotido-theme-text-primary);
  white-space: nowrap;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item:not(.tail-item) .ev-discover-social-chip-like{
  color: var(--sotido-theme-text-primary);
  background: var(--list-social-chip-strong);
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item.highlight:not(.tail-item) .ev-discover-social-chip{
  background: var(--list-highlight-chip);
  color: var(--sotido-theme-text-inverse);
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item.highlight:not(.tail-item) .ev-discover-social-chip-like{
  background: var(--list-highlight-chip-strong);
  color: var(--sotido-theme-text-inverse);
}
body.calendar-mode-list .rowline:not(.ev-preview-rowline) > .item .ev-cover-float{
  display: none;
}
body.calendar-mode-list .rowline:not(.ev-preview-rowline) > .item.highlight.highlight-has-cover .ev-cover-float{
  display: block;
  float: right;
  position: absolute;
  right: 0;
  width: clamp(88px, 42%, 220px);
  max-width: 50%;
  aspect-ratio: 2 / 1;
  height: auto;
  max-height: calc(100% - 4px);
  margin: 2px 2px 2px 8px;
  border-radius: 8px;
  overflow: hidden;
  background-image: var(--ev-highlight-cover, none);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
body.calendar-mode-list .rowline:not(.ev-preview-rowline) > .item.highlight.highlight-has-cover .ev-cover-float .ev-cover-float-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.calendar-mode-list .rowline:not(.day-expanded-rowline):not(.ev-preview-rowline) > .item.highlight.highlight-has-cover .ev-text-pair .ev-desc-text{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: block;
}
.item.ev-variant-regular{
  background: linear-gradient(
  var(--list-surface-raised),
  var(--list-surface-raised)
  ) padding-box,
  linear-gradient(
  270deg,
  var(--ev-regular-stroke) 0%,
  var(--list-transparent) 60%
  ) border-box;
  border: 1px solid transparent;
  box-sizing: border-box;
  isolation: isolate;
}.item.ev-variant-highlight{
  border: none;
  box-sizing: border-box;
  background: var(--ev-highlight-bg, transparent);
}.item.highlight{
  /* Highlight events should look identical to normal ones; only background + optional cover differ. */
  isolation: isolate;
  min-height: calc(var(--ENTRY_H) * 2);
}.rowline > .item.highlight:not(.tail-item){
  height: calc(var(--ENTRY_H) * 2);
  min-height: calc(var(--ENTRY_H) * 2);
  align-items: start;
}.item.highlight.highlight-has-cover{
  height: calc(var(--ENTRY_H) * 2);
  min-height: calc(var(--ENTRY_H) * 2);
}.item.highlight::after{
  content: none;
  display: none;
}.item.highlight.highlight-has-cover::before{
  content: none;
  display: none;
}@keyframes marquee_pingpong{
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--overflow-translate, 0px)); }
}.marquee-pingpong{
  animation: marquee_pingpong var(--marquee-duration, 4s) linear infinite alternate;
}.marquee-vertical-pingpong{
  animation: marquee_vertical_pingpong var(--marquee-vertical-duration, 5s) ease-in-out infinite alternate;
  will-change: transform;
}@keyframes marquee_vertical_pingpong{
  0% { transform: translateY(0); }
  100% { transform: translateY(var(--overflow-translate-y, 0px)); }
}/* плавная подсветка day и line */
.day.flash, .line.flash{
  transition: background-color 0.45s ease;
}.day.flash.active, .line.flash.active{
  background-color: var(--sotido-theme-text-inverse);
}

/* Calendar Quick Add: one compact shared surface for list/grid empty-day entry. */
.calendar-quick-add-backdrop{
  position: fixed;
  inset: 0;
  z-index: calc(var(--sotido-layer-popover) - 1);
  background: color-mix(in srgb, var(--sotido-theme-background) 52%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.calendar-quick-add-popover{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--sotido-recipe-calendar-quick-add-top-offset));
  z-index: var(--sotido-layer-popover);
  width: min(
    var(--sotido-recipe-calendar-quick-add-max-width),
    calc(var(--calendar-quick-add-viewport-width, 100vw) - (2 * var(--sotido-recipe-calendar-quick-add-viewport-inset)))
  );
  max-height: calc(
    var(--calendar-quick-add-viewport-height, 100dvh)
    - var(--sotido-recipe-calendar-quick-add-top-offset)
    - env(safe-area-inset-top, 0px)
    - var(--sotido-recipe-calendar-quick-add-viewport-inset)
  );
  padding: var(--sotido-recipe-calendar-quick-add-surface-padding);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  color: var(--sotido-recipe-calendar-quick-add-text);
  background: var(--sotido-recipe-calendar-quick-add-surface);
  border: 1px solid var(--sotido-recipe-calendar-quick-add-border);
  border-radius: var(--sotido-radius-card);
  box-shadow: var(--sotido-shadow-surface);
  transform: translateX(-50%);
}
.calendar-quick-add-form{
  display: grid;
  gap: var(--sotido-recipe-calendar-quick-add-content-gap);
}
.calendar-quick-add-head,
.calendar-quick-add-time-row,
.calendar-quick-add-actions{
  display: flex;
  align-items: center;
}
.calendar-quick-add-head{
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.calendar-quick-add-heading-copy{
  min-width: 0;
  display: grid;
  gap: 2px;
}
.calendar-quick-add-head h2{
  margin: 0;
  font-size: var(--sotido-type-body-large);
  font-weight: 700;
  letter-spacing: 0;
}
.calendar-quick-add-date{
  color: var(--sotido-theme-text-secondary);
  font-size: var(--sotido-type-caption);
  line-height: 1.3;
}
.calendar-quick-add-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--sotido-theme-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--sotido-radius-pill);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.calendar-quick-add-close:hover,
.calendar-quick-add-close:focus-visible{
  color: var(--sotido-theme-text-primary);
  background: var(--sotido-theme-surface-highest);
}
.calendar-quick-add-title{
  width: 100%;
  min-height: var(--sotido-space-touch-target);
  padding: 0 12px;
  box-sizing: border-box;
  color: var(--sotido-theme-text-primary);
  background: var(--sotido-theme-surface);
  border: 1px solid var(--sotido-theme-border);
  border-radius: var(--sotido-radius-card);
  font: inherit;
  letter-spacing: 0;
}
.calendar-quick-add-calendar-row{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--sotido-theme-text-secondary);
  font-size: var(--sotido-type-caption);
}
.calendar-quick-add-calendar-row[hidden]{
  display: none;
}
.calendar-quick-add-calendar-row select{
  min-width: 0;
  min-height: 38px;
  padding: 0 34px 0 10px;
  color: var(--sotido-theme-text-primary);
  background: var(--sotido-theme-surface);
  border: 1px solid var(--sotido-theme-border);
  border-radius: var(--sotido-radius-card);
  font: inherit;
}
.calendar-quick-add-calendar-row.has-error select{
  border-color: var(--sotido-theme-danger-text);
  outline: 2px solid color-mix(in srgb, var(--sotido-theme-danger-text) 18%, transparent);
  outline-offset: 1px;
}
.calendar-quick-add-title:focus{
  border-color: var(--sotido-theme-accent);
  outline: 2px solid color-mix(in srgb, var(--sotido-theme-accent) 24%, transparent);
  outline-offset: 1px;
}
.calendar-quick-add-time-row{
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
}
.calendar-quick-add-time-picker{
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-quick-add-time-label{
  font-size: var(--sotido-type-caption);
  color: var(--sotido-theme-text-secondary);
}
.calendar-quick-add-picker-stage{
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 74px;
  flex: 0 0 112px;
  overflow: hidden;
}
.calendar-quick-add-picker-loading{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sotido-theme-text-secondary);
}
.calendar-quick-add-time-picker:not(.is-picker-loading) .calendar-quick-add-picker-loading{
  display: none;
}
.calendar-quick-add-time-picker-host{
  width: 112px;
  min-height: 74px;
}
.calendar-quick-add-time-picker-host[hidden]{
  display: none;
}
.calendar-quick-add-time-fallback{
  width: 112px;
  min-height: 40px;
  padding: 0 8px;
  box-sizing: border-box;
  color: var(--sotido-theme-text-primary);
  background: var(--sotido-theme-surface);
  border: 1px solid var(--sotido-theme-border);
  border-radius: var(--sotido-radius-card);
  font: inherit;
}
.calendar-quick-add-color-row{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.calendar-quick-add-color-label{
  color: var(--sotido-theme-text-secondary);
  font-size: var(--sotido-type-caption);
}
.calendar-quick-add-color-input{
  appearance: none;
  padding: 0;
  border: 1px solid var(--sotido-theme-border);
  border-radius: var(--sotido-radius-pill);
  cursor: pointer;
  width: 34px;
  height: 34px;
  background: var(--sotido-theme-surface);
}
.calendar-quick-add-color-input::-webkit-color-swatch-wrapper{
  padding: 4px;
}
.calendar-quick-add-color-input::-webkit-color-swatch{
  border: 0;
  border-radius: var(--sotido-radius-pill);
}
.calendar-quick-add-error{
  margin: 0;
  color: var(--sotido-theme-danger-text);
  font-size: var(--sotido-type-caption);
}
.calendar-quick-add-actions{
  justify-content: flex-end;
  gap: 8px;
}
.calendar-quick-add-more,
.calendar-quick-add-save{
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--sotido-radius-card);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}
.calendar-quick-add-more{
  color: var(--sotido-theme-text-primary);
  background: transparent;
  border: 1px solid var(--sotido-theme-border);
}
.calendar-quick-add-save{
  color: var(--sotido-recipe-calendar-quick-add-text-on-accent);
  background: var(--sotido-theme-accent);
  border: 1px solid var(--sotido-theme-accent);
}
.calendar-quick-add-popover.is-submitting{
  cursor: progress;
}
.calendar-quick-add-popover button:disabled,
.calendar-quick-add-popover input:disabled{
  cursor: default;
  opacity: 0.56;
}

@media (max-width: 430px){
  .calendar-quick-add-time-row{
    align-items: flex-start;
  }
  .calendar-quick-add-time-picker{
    gap: 4px;
  }
  .calendar-quick-add-time-label{
    max-width: 54px;
  }
}
