/* Today inherits the Solo-Potok design tokens from potok-reference.css. */
.solo-only { display: none; }
body[data-scope="potok"] .solo-only { display: flex; }
body[data-scope="korzinka"] .solo-only { display: none !important; }

.workspace-view-switch {
  height: var(--potok-control-height);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d7dce4;
  border-radius: 4px;
  background: #fff;
}
.workspace-view-button {
  min-width: 86px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #e0e4ea;
  color: #596476;
  background: transparent;
  font: 700 9px/1 var(--potok-brand-font-family);
  cursor: pointer;
}
.workspace-view-button:last-child { border-right: 0; }
.workspace-view-button i { font-size: 14px; font-weight: 400; }
.workspace-view-button small {
  width: 14px;
  min-width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: #246bfe;
  font-size: 7px;
}
.workspace-view-button.is-active {
  color: #0e2343;
  background: #f6f8fb;
  box-shadow: inset 0 -2px 0 #246bfe;
}
.workspace-view-button:hover { color: #0e2343; background: #f8f9fb; }
.workspace-view-button:focus-visible { position: relative; z-index: 1; outline: 2px solid rgba(36, 107, 254, .28); outline-offset: -2px; }

body[data-scope="potok"].today-mode #newProjectButton { display: none; }
.today-view {
  width: 100%;
  min-width: 820px;
  min-height: calc(100dvh - var(--potok-header-height) - var(--potok-footer-height));
  display: grid;
  grid-template-rows: auto minmax(390px, 1fr);
  padding: var(--potok-content-gap-top) var(--potok-gutter-x) var(--potok-content-gap-bottom);
  color: #0d1d37;
  background: #fbfbfa;
  font-family: var(--potok-brand-font-family);
}
.today-columns { grid-template-columns: minmax(210px, 1fr) minmax(400px, 2fr) minmax(230px, 1fr); }
.today-view[hidden] { display: none !important; }
.today-overview {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0 17px;
  border-bottom: 1px solid #dce1e8;
}
.today-heading { min-width: 0; display: grid; gap: 10px; }
.today-title-line { display: flex; align-items: baseline; gap: 14px; }
.today-title-line h1 {
  margin: 0;
  color: #0d1d37;
  font-size: var(--potok-brand-name-size);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.02em;
}
.today-title-line time { color: #667085; font-size: var(--potok-column-title-size); font-weight: 550; }
.today-heading p { margin: 0; color: #697386; font-size: 9px; line-height: 1.3; }
.today-overview-actions { display: flex; align-items: center; gap: 7px; }
.today-primary-button,
.today-secondary-button {
  min-height: var(--potok-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #d2d8e1;
  border-radius: 4px;
  color: #38465a;
  background: #fff;
  font: 700 9px/1 var(--potok-brand-font-family);
  cursor: pointer;
}
.today-primary-button { border-color: #0d2548; color: #fff; background: #0d2548; }
.today-primary-button:hover { background: #15345f; }
.today-secondary-button:hover { border-color: #aeb8c7; color: #12233f; }
.today-primary-button:focus-visible,
.today-secondary-button:focus-visible { outline: 2px solid rgba(36, 107, 254, .32); outline-offset: 2px; }
.today-overview-actions i { font-size: 13px; }
.today-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; overflow: hidden; }
.today-progress > span { width: 0; height: 100%; display: block; background: var(--potok-status-progress); transition: width .22s ease; }

.today-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, .78fr) minmax(290px, 1.2fr) minmax(250px, 1fr);
}
.today-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) auto;
  align-content: start;
  padding: 0 16px 20px;
  border-right: 1px solid #dce1e8;
  background: #fbfbfa;
  transition: background .15s ease;
}
.today-column:first-child { padding-left: 6px; }
.today-column:last-child { padding-right: 0; border-right: 0; }
.today-column > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-column > header h2 {
  margin: 0;
  color: #2a3850;
  font-size: var(--potok-column-title-size);
  font-weight: 760;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.today-column > header span { color: #8a94a3; font-size: var(--potok-card-meta-size); font-weight: 700; }
.today-column.is-drop-target { background: #f2f6fd; }
.today-list { min-width: 0; display: grid; align-content: start; gap: 7px; }
.today-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #d8dde5;
  border-radius: 4px;
  color: #8a94a3;
  text-align: center;
  font-size: 8px;
  line-height: 1.4;
}
.today-empty button,
.today-add-inline { padding: 0; border: 0; color: #246bfe; background: transparent; font: 700 8px/1 var(--potok-brand-font-family); cursor: pointer; }
.today-task { min-width: 0; color: #121f34; background: #fff; font-family: var(--font-ui); }
.today-task h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #111d32;
  font-size: var(--potok-card-title-size);
  font-weight: 680;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.today-task span,
.today-task small { font-size: var(--potok-card-meta-size); }
.today-task:focus-visible { outline: 2px solid rgba(36, 107, 254, .28); outline-offset: 1px; }
.today-task.is-dragging { opacity: .35; }

.today-done-task {
  container-type: inline-size;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 6px;
  border-bottom: 1px solid #e1e5ea;
  background: transparent;
}
.today-done-task > i { color: var(--potok-status-done); font-size: 16px; }
.today-done-task > div { min-width: 0; display: grid; gap: 3px; }
.today-done-task h3 {
  color: #536070;
  text-decoration: line-through;
  text-decoration-color: #246bfe;
  text-decoration-thickness: 1px;
}
.today-done-task.is-today-complete > i { color: #20aa67; }
.today-done-task.is-today-complete h3 { text-decoration-color: #20aa67; }
.today-done-task.is-today-complete { cursor: grab; }
.today-done-task.is-today-complete:active { cursor: grabbing; }
.today-done-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.today-done-task > .today-done-actions {
  min-width: max-content;
  display: flex;
  grid-auto-flow: unset;
  grid-template-columns: none;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.today-done-task > div:first-of-type > span { overflow: hidden; color: #8993a0; text-overflow: ellipsis; white-space: nowrap; }
.today-done-task button,
.today-task-actions button {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #7b8797;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.today-done-task button:hover,
.today-task-actions button:hover { border-color: #d8dde5; color: #243652; background: #f7f8fa; }
.today-done-task button:focus-visible,
.today-task-actions button:focus-visible { border-color: #a9bce5; outline: 0; color: #243652; background: #f4f7fd; box-shadow: 0 0 0 2px rgb(36 107 254 / 16%); }
.today-done-task button:active,
.today-task-actions button:active { transform: translateY(1px); }

body[data-scope="potok"] .today-focus-task.card {
  min-height: 112px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid #cfd7e2;
  border-left: 2px solid #246bfe;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(13, 37, 72, .06);
  cursor: pointer;
}
body[data-scope="potok"] .today-focus-task.card:hover { min-height: 112px; padding: 9px 10px; border-color: #b9c5d6; border-left-color: #246bfe; }
.today-task-project { overflow: hidden; color: #667085; font-size: var(--potok-card-meta-size); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.today-focus-meta { display: flex; align-items: center; gap: 8px; color: #697587; font-size: var(--potok-card-meta-size); }
.today-task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.today-task-actions .today-focus-action {
  width: auto;
  min-width: 94px;
  padding: 0 9px;
  display: inline-flex;
  gap: 6px;
  border-color: #0d2548;
  color: #fff;
  background: #0d2548;
  font: 700 8px/1 var(--potok-brand-font-family);
}
.today-task-actions .today-focus-action:hover { border-color: #16355f; color: #fff; background: #16355f; }
.today-task-actions .today-day-done-action,
.today-task-actions .today-complete-action {
  width: auto;
  min-width: 94px;
  padding: 0 9px;
  border-color: transparent;
  color: #7b8797;
  background: transparent;
  font: 700 11px/1 var(--potok-brand-font-family);
}
.today-task-actions .today-day-done-action:hover,
.today-task-actions .today-day-done-action:focus-visible,
.today-task-actions .today-complete-action:hover,
.today-task-actions .today-complete-action:focus-visible { border-color: #d8dde5; color: #243652; background: #f7f8fa; }
.today-progress-controls {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  border: 1px solid #d9dfe7;
  border-radius: 3px;
  color: #596779;
  background: #fff;
}
.today-progress-controls strong { min-width: 24px; color: #3c4d66; font-size: 8px; font-variant-numeric: tabular-nums; text-align: center; }
.today-progress-controls button,
.today-task-actions .today-progress-controls button { width: 20px; min-width: 20px; height: 20px; border: 0; font-size: 11px; }
.today-utility-actions { display: inline-flex; align-items: center; gap: 2px; }

.today-later-task {
  min-height: 48px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 4px;
  border-bottom: 1px solid #e0e4e9;
  background: transparent;
  cursor: grab;
}
.today-later-task:active { cursor: grabbing; }
.today-task-handle { color: #b0b8c4; font-size: 11px; }
.today-later-task > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.today-later-task > div:nth-child(2) > span { overflow: hidden; color: #7d8795; text-overflow: ellipsis; white-space: nowrap; }
.today-later-task .today-task-actions { opacity: .35; transition: opacity 180ms cubic-bezier(.22, 1, .36, 1); }
.today-later-task:hover .today-task-actions,
.today-later-task:focus-within .today-task-actions { opacity: 1; }
.today-add-inline { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; justify-self: start; }
.today-add-inline i { font-size: 14px; }

.today-panel-shell { position: fixed; z-index: 240; inset: 0; display: grid; grid-template-columns: 1fr minmax(320px, 390px); pointer-events: none; }
.today-panel-shell[hidden] { display: none !important; }
.today-panel-catcher {
  border: 0;
  background: rgba(12, 25, 44, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(.22, 1, .36, 1),
    background-color 220ms cubic-bezier(.22, 1, .36, 1),
    -webkit-backdrop-filter 220ms cubic-bezier(.22, 1, .36, 1),
    backdrop-filter 220ms cubic-bezier(.22, 1, .36, 1);
}
.today-panel {
  min-width: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-left: 1px solid #d7dce4;
  color: #17243a;
  background: #fbfbfa;
  box-shadow: -12px 0 32px rgba(7, 17, 31, .1);
  font-family: var(--potok-brand-font-family);
  pointer-events: none;
  transform: translateX(40px);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
.today-panel-shell.is-open { pointer-events: auto; }
.today-panel-shell.is-open .today-panel-catcher {
  background: rgba(12, 25, 44, .13);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
  pointer-events: auto;
}
.today-panel-shell.is-open .today-panel { transform: translateX(0); opacity: 1; pointer-events: auto; }
.today-panel > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dce1e8; background: #fff; }
.today-panel > header > div { min-width: 0; display: grid; gap: 4px; }
.today-panel > header span { color: #7c8796; font-size: var(--potok-card-meta-size); font-weight: 700; text-transform: uppercase; }
.today-panel > header h2 { margin: 0; font-size: 13px; line-height: 1.1; }
.today-panel-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #d8dde4; border-radius: 3px; color: #657184; background: #fff; cursor: pointer; }
.today-panel-content { min-height: 0; overflow: auto; padding: 14px 16px 22px; }
.today-picker-search { height: var(--potok-control-height); display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #d3d9e2; border-radius: 4px; background: #fff; }
.today-picker-search i { color: #8b95a4; font-size: 13px; }
.today-picker-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #26364e; background: transparent; font: 500 9px/1 var(--potok-brand-font-family); }
.today-picker-list { display: grid; gap: 16px; margin-top: 14px; }
.today-picker-group { display: grid; gap: 5px; }
.today-picker-group h3,
.today-settings-section h3 { margin: 0; color: #5e6979; font-size: var(--potok-column-title-size); text-transform: uppercase; }
.today-picker-group button { width: 100%; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #e0e4e9; border-radius: 4px; color: #1e2d44; background: #fff; text-align: left; cursor: pointer; }
.today-picker-group button:hover { border-color: #b9c5d5; background: #f8faff; }
.today-picker-group button > span { min-width: 0; display: grid; gap: 3px; }
.today-picker-group strong { overflow: hidden; font-size: var(--potok-card-title-size); text-overflow: ellipsis; white-space: nowrap; }
.today-picker-group small { color: #7c8796; font-size: var(--potok-card-meta-size); }
.today-picker-group button > i { color: #246bfe; font-size: 14px; }
.today-panel-empty { padding: 28px 12px; color: #87919f; text-align: center; font-size: 9px; }
.today-settings-section { display: grid; gap: 9px; }
.today-settings-section p,
.today-settings-note p { margin: 0; color: #778291; font-size: 8px; line-height: 1.45; }
.today-duration-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.today-duration-options button { min-height: var(--potok-control-height); border: 1px solid #d3d9e2; border-radius: 4px; color: #526074; background: #fff; font: 700 9px/1 var(--potok-brand-font-family); cursor: pointer; }
.today-duration-options button[aria-pressed="true"] { border-color: #246bfe; color: #174fbd; background: #f2f6ff; box-shadow: inset 0 0 0 1px #246bfe; }
.today-settings-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; margin-top: 18px; padding: 11px; border: 1px solid #dfe4ea; border-radius: 4px; background: #fff; }
.today-settings-note > i { color: #657286; font-size: 15px; }
.today-settings-note > div { display: grid; gap: 5px; }
.today-settings-note strong { font-size: var(--potok-card-title-size); }

.today-completion-dialog { width: min(390px, calc(100vw - 24px)); padding: 0; border: 1px solid #d1d7e0; border-radius: 5px; color: #17243a; background: #fff; box-shadow: 0 18px 50px rgba(7, 17, 31, .18); font-family: var(--potok-brand-font-family); }
.today-completion-dialog::backdrop { background: rgba(12, 25, 44, .24); backdrop-filter: blur(4px); }
.today-completion-dialog form { display: grid; gap: 11px; padding: 17px; }
.today-completion-dialog header { display: grid; gap: 4px; }
.today-completion-dialog header span { color: #798493; font-size: var(--potok-card-meta-size); font-weight: 700; text-transform: uppercase; }
.today-completion-dialog h2 { margin: 0; font-size: 13px; }
.today-completion-dialog p { margin: 0; color: #75808e; font-size: 8px; line-height: 1.4; }
.today-completion-dialog textarea { width: 100%; min-height: 90px; resize: vertical; padding: 9px; border: 1px solid #d3d9e2; border-radius: 4px; outline: 0; color: #1d2d45; background: #fbfbfa; font: 500 10px/1.45 var(--potok-brand-font-family); }
.today-completion-dialog textarea:focus { border-color: #246bfe; box-shadow: 0 0 0 2px rgba(36, 107, 254, .1); }
.today-completion-dialog small { color: #c43c48; font-size: 8px; }
.today-completion-dialog footer { display: flex; justify-content: flex-end; gap: 7px; }
.today-recurrence-toggle { min-height: 52px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px; border: 1px solid #d7dde5; border-radius: 4px; cursor: pointer; }
.today-recurrence-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.today-recurrence-toggle > i { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #aab4c2; border-radius: 2px; background: #fff; }
.today-recurrence-toggle input:checked + i { border-color: #246bfe; background: #246bfe; }
.today-recurrence-toggle input:checked + i::after { content: "✓"; color: #fff; font: 800 11px/1 var(--potok-brand-font-family); }
.today-recurrence-toggle input:focus-visible + i { outline: 2px solid rgba(36, 107, 254, .25); outline-offset: 2px; }
.today-recurrence-toggle > span { display: grid; gap: 3px; }
.today-recurrence-toggle strong { font-size: 10px; }
.today-recurrence-toggle small { color: #788494; font-size: 8px; line-height: 1.35; }
.today-recurrence-target { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #526074; font-size: 9px; transition: opacity 140ms ease; }
.today-recurrence-target > span:last-child { display: flex; align-items: center; gap: 6px; }
.today-recurrence-target input { width: 66px; height: 34px; padding: 0 8px; border: 1px solid #d3d9e2; border-radius: 4px; color: #1b2d49; background: #fff; font: 700 10px/1 var(--potok-brand-font-family); }
.today-recurrence-target small { color: #7c8796; font-size: 8px; }
.today-recurrence-target.is-disabled { opacity: .4; }

@media (max-width: 1024px) {
  body[data-scope="potok"] .workspace-view-button { min-width: 38px; width: 38px; padding: 0; }
  body[data-scope="potok"] .workspace-view-button > span { display: none; }
  .today-view { min-width: 720px; }
  .today-columns { grid-template-columns: minmax(170px, .72fr) minmax(270px, 1.15fr) minmax(230px, 1fr); }
  .today-column { padding-inline: 11px; }
}

@media (max-width: 760px) {
  body[data-scope="potok"] .workspace-view-switch { height: 44px; }
  .workspace-view-button { min-width: 44px !important; width: 44px !important; }
  .today-view { min-width: 0; padding: 10px var(--mobile-gutter) 76px; }
  .today-overview { min-height: 108px; display: grid; grid-template-columns: 1fr; padding-top: 4px; }
  .today-title-line h1 { font-size: 20px; }
  .today-overview-actions { position: absolute; top: 0; right: 0; }
  .today-overview-actions .today-secondary-button { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
  .today-overview-actions .today-primary-button { min-height: 38px; }
  .today-columns { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .today-column { min-height: 180px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #dce1e8; }
  .today-column:last-child { border-bottom: 0; }
  .today-panel-shell { grid-template-columns: 1fr; }
  .today-panel-catcher { display: none; }
  .today-panel { width: 100%; }
  .today-later-task .today-task-actions { opacity: 1; }
}

/* Stable Solo workspace shell and section navigation. */
body[data-scope="potok"] {
  position: relative;
  isolation: isolate;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.pointer-grid-layer {
  position: fixed;
  z-index: -1;
  inset: -52px;
  background:
    linear-gradient(90deg, rgb(125 135 150 / 4.5%) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgb(125 135 150 / 4.5%) 1px, transparent 1px) 0 0 / 72px 72px,
    #fbfbfa;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
body[data-scope="potok"] .topbar {
  position: relative;
  flex: 0 0 auto;
}
.project-mode-controls {
  min-width: 0;
  max-width: var(--project-mode-controls-width, 430px);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  opacity: 1;
  transition:
    max-width 300ms var(--potok-ease-layout),
    opacity 220ms ease;
}
.project-mode-controls-inner {
  width: max-content;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  contain: layout style;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 300ms var(--potok-ease-layout);
}
.project-mode-controls-inner > :where(.label-filter-wrap, .solo-project-view-switch, .grid-button) { flex: 0 0 auto; }
.project-mode-controls.is-transitioning {
  overflow: hidden;
  will-change: max-width, opacity;
}
body[data-scope="potok"].today-mode .project-mode-controls {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}
body[data-scope="potok"].today-mode .project-mode-controls-inner {
  transform: translate3d(var(--project-mode-controls-width, 430px), 0, 0);
}
.workspace-view-switch {
  position: relative;
  isolation: isolate;
}
body[data-scope="potok"] .workspace-view-switch {
  width: 184px;
  flex: 0 0 184px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-scope="potok"] .workspace-view-button {
  width: 100%;
  min-width: 0;
}
.workspace-view-switch::after {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 2px;
  content: "";
  background: #246bfe;
  transform: translateX(100%);
  transition: transform 190ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.workspace-view-switch[data-active-view="today"]::after { transform: translateX(0); }
.workspace-view-button,
.workspace-view-button:first-child,
.workspace-view-button:last-child {
  border-radius: 0;
}
.workspace-view-button.is-active {
  background: #f6f8fb;
  box-shadow: none;
}
.workspace-view {
  opacity: 1;
  filter: none;
  transition: opacity 180ms ease, filter 180ms ease;
}
.workspace-view.is-view-leaving,
.workspace-view.is-view-entering {
  opacity: 0;
  filter: blur(1.5px);
}
body[data-scope="potok"] > .workspace-view {
  height: calc(100dvh - var(--potok-header-height) - 6px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #aab2bd transparent;
  scrollbar-width: thin;
  background: transparent;
}
body[data-scope="potok"] > .workspace-view::-webkit-scrollbar { width: 4px; height: 4px; }
body[data-scope="potok"] > .workspace-view::-webkit-scrollbar-track { background: transparent; }
body[data-scope="potok"] > .workspace-view::-webkit-scrollbar-thumb { border: 0; border-radius: 3px; background: #aab2bd; }
body[data-scope="potok"] .project-board {
  height: auto;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  background: transparent;
}
body[data-scope="potok"] .project-board::-webkit-scrollbar { width: 4px; height: 4px; }
body[data-scope="potok"] .project-board::-webkit-scrollbar-track { background: transparent; }
body[data-scope="potok"] .project-board::-webkit-scrollbar-thumb { border: 0; border-radius: 3px; background: #aab2bd; }
body[data-scope="potok"] .columns {
  min-height: 240px;
  align-items: stretch;
  background: transparent;
}
body[data-scope="potok"] .column,
body[data-scope="potok"] .columns > .column:first-of-type {
  min-height: 240px;
  height: auto;
  max-height: none;
  align-self: stretch;
  overflow-y: clip;
  overscroll-behavior: auto;
}
body[data-scope="potok"] .project-resize { display: none !important; }
body[data-scope="potok"] .card {
  transition-property: padding-bottom, border-color, opacity;
}
body[data-scope="potok"] .workflow-gap { background: transparent; }
body[data-scope="potok"] .column {
  background: color-mix(in srgb, var(--status) 9%, rgba(251, 251, 250, .84));
}
body[data-scope="potok"] .column-head {
  background: color-mix(in srgb, var(--status) 7%, rgba(251, 251, 250, .9));
}
body[data-scope="potok"] .columns > .column:first-of-type {
  box-shadow: 10px 0 0 rgba(251, 251, 250, .88);
}
body[data-scope="potok"].focus-mode .columns > .column:first-of-type:has(.card.is-focused) {
  position: relative;
  z-index: auto;
}

body[data-scope="potok"] .site-footer,
body[data-scope="potok"] .site-footer.is-expanded {
  height: 6px;
  min-height: 6px;
  padding: 0;
  background: transparent;
  box-shadow: 0 -5px 18px rgba(7, 17, 31, .1);
  pointer-events: none;
}
body[data-scope="potok"] .site-footer::before { height: 4px; }
body[data-scope="potok"] .site-footer > * { display: none !important; }
/* Today hierarchy: compact supporting cards and a deliberately dominant focus. */
.today-view {
  --today-compact-card-height: 52px;
  --today-card-gap: 7px;
  --today-focus-card-height: calc(var(--today-compact-card-height) + var(--today-compact-card-height) + var(--today-compact-card-height) + var(--today-card-gap) + var(--today-card-gap));
  min-height: 100%;
  grid-template-rows: auto auto;
  align-content: start;
  background: transparent;
}
.today-overview { min-height: 86px; padding-block: 13px 16px; background: rgba(251, 251, 250, .72); }
.today-heading { gap: 9px; }
.today-title-line h1 {
  font-size: 21px;
  line-height: 1.12;
}
.today-title-line time { color: #0d1d37; font-size: inherit; font-weight: inherit; }
.today-heading p { color: #5f6c7d; font-size: 10px; }
.today-progress {
  bottom: 0;
  height: 4px;
  overflow: visible;
  background: #cfd7e3;
  box-shadow: inset 0 0 0 1px rgba(13, 29, 55, .035);
}
.today-progress > span {
  border-radius: 0 2px 2px 0;
  background: #246bfe;
  transition: width 260ms cubic-bezier(.22, 1, .36, 1), background 180ms ease;
}
.today-progress.is-overloaded > span { background: #e44752; }
.today-columns { min-height: 390px; align-self: start; }
.today-column { background: rgba(251, 251, 250, .78); }
.today-column > header h2 { font-size: 11px; }
.today-column > header span { font-size: 8px; }
.today-list { gap: var(--today-card-gap); }
.today-task h3 {
  font-size: var(--potok-solo-card-title-size);
  font-weight: 650;
  line-height: 16px;
}
.today-task span,
.today-task small { font-size: 8px; }
.today-done-task,
.today-later-task {
  height: var(--today-compact-card-height);
  min-height: var(--today-compact-card-height);
  padding: 8px 9px;
  border: 1px solid #d5dbe3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(13, 37, 72, .035);
}
.today-done-task h3 { color: #485669; }
.today-later-task { grid-template-columns: 14px minmax(0, 1fr) auto; }
.today-later-task > div:nth-child(2) > span,
.today-done-task > div:first-of-type > span { font-weight: 650; line-height: 12px; }
.today-later-task:hover,
.today-done-task:hover { border-color: #aebbd0; }
body[data-scope="potok"] .today-focus-task.card,
body[data-scope="potok"] .today-focus-task.card:hover {
  position: relative;
  container-type: inline-size;
  height: var(--today-focus-card-height);
  min-height: var(--today-focus-card-height);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto minmax(36px, 1fr);
  grid-template-areas:
    "project timer"
    "title timer"
    "meta meta"
    "actions actions";
  align-content: start;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px 14px;
}
body[data-scope="potok"] .today-focus-task.card h3 {
  grid-area: title;
  align-self: start;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.today-focus-task .today-task-project { grid-area: project; font-size: 14px; line-height: 1.15; }
.today-focus-task .today-focus-meta,
.today-focus-task .today-focus-meta > span { font-size: 13px; line-height: 1; }
.today-focus-task .today-focus-meta {
  grid-area: meta;
  min-width: 0;
  justify-content: flex-start;
}
.today-focus-task .today-timer-control {
  grid-area: timer;
  align-self: start;
  width: auto;
  min-width: 92px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  color: #344866;
  background: transparent;
  cursor: pointer;
}
.today-focus-task .today-timer-control strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.today-focus-task .today-timer-control i { width: 18px; flex: 0 0 18px; color: #718096; font-size: 18px; text-align: center; }
.today-focus-task .today-timer-control:hover,
.today-focus-task .today-timer-control:focus-visible { color: #142a4a; background: #f4f6f9; }
.today-focus-task .today-task-actions {
  grid-area: actions;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(138px, 1.4fr) repeat(2, minmax(104px, 1fr)) minmax(62px, .7fr);
  grid-template-areas: "focus day complete utilities";
  gap: 6px;
  padding: 0;
}
.today-focus-task .today-task-actions button {
  min-width: 36px;
  height: 36px;
  font-size: 14px;
}
.today-focus-task .today-utility-actions button {
  color: #7b8797;
  opacity: .72;
  transition: opacity 120ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.today-focus-task .today-utility-actions button:hover,
.today-focus-task .today-utility-actions button:focus-visible {
  color: #243652;
  opacity: 1;
}
.today-focus-task .today-task-actions .today-focus-action {
  grid-area: focus;
  position: relative;
  width: 100%;
  min-width: 0;
  display: inline-grid;
  place-items: center;
  padding-inline: 14px;
  font-size: 13px;
  text-align: center;
}
.today-focus-task .today-task-actions .today-day-done-action { grid-area: day; width: 100%; min-width: 0; font-size: 11px; }
.today-focus-task .today-task-actions .today-complete-action { grid-area: complete; width: 100%; min-width: 0; font-size: 11px; }
.today-focus-task .today-task-actions .today-day-done-action:focus-visible,
.today-focus-task .today-task-actions .today-complete-action:focus-visible { outline: 2px solid rgba(36, 107, 254, .28); outline-offset: 1px; }
.today-focus-task .today-utility-actions {
  grid-area: utilities;
  justify-self: end;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 180ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0s;
}
body.focus-mode .today-focus-task.is-focused .today-utility-actions,
body.focus-mode-exiting .today-focus-task.is-focused .today-utility-actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 180ms;
}
.today-focus-task .today-progress-controls { flex: 0 0 auto; }
.today-column-focus .today-empty {
  height: var(--today-focus-card-height);
  min-height: var(--today-focus-card-height);
  font-size: 10px;
}
.today-drop-placeholder {
  height: var(--today-compact-card-height);
  min-height: var(--today-compact-card-height);
  border: 1px dashed #6f8fc4;
  border-radius: 4px;
  background: rgba(36, 107, 254, .045);
  pointer-events: none;
}
.today-drop-placeholder[data-target-state="focus"] {
  height: var(--today-focus-card-height);
  min-height: var(--today-focus-card-height);
}
.today-empty.is-drag-suppressed { display: none; }

.drawer-today-complete {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #d8dde5;
  border-radius: 3px;
  color: #526176;
  background: #fff;
  text-align: left;
}
.drawer-today-complete[hidden] { display: none !important; }
.drawer-today-complete span { display: grid; gap: 3px; }
.drawer-today-complete strong { font-size: 10px; }
.drawer-today-complete small { color: #8993a0; font-size: 8px; }
.drawer-today-complete i { color: #7b8797; font-size: 16px; }
.drawer-today-complete:hover,
.drawer-today-complete:focus-visible { border-color: #aebbd0; color: #243652; background: #f7f8fa; }

.toast.is-actionable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: auto;
}
.toast.is-actionable button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 3px;
  color: #fff;
  background: transparent;
  font: 700 9px/1 var(--potok-brand-font-family);
}
.toast.is-actionable button:hover,
.toast.is-actionable button:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .12); }

/* Potok tooltips appear after intent, never on accidental pointer passes. */
[data-potok-tooltip] { position: relative; }
[data-potok-tooltip]::after {
  position: absolute;
  z-index: 80;
  right: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 190px;
  padding: 6px 8px;
  content: attr(data-potok-tooltip);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
  color: #fff;
  background: #0d1d37;
  box-shadow: 0 7px 18px rgba(7, 17, 31, .16);
  font: 650 9px/1.2 var(--potok-brand-font-family);
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity 140ms ease 280ms, transform 160ms ease 280ms;
}
[data-potok-tooltip]:hover::after,
[data-potok-tooltip]:focus-visible::after { opacity: 1; transform: translate(50%, 0); }
body.focus-mode [data-potok-tooltip]::after { opacity: 0 !important; }
.today-task-actions > [data-potok-tooltip]:last-child::after {
  right: 0;
  transform: translate(0, 4px);
}
.today-task-actions > [data-potok-tooltip]:last-child:hover::after,
.today-task-actions > [data-potok-tooltip]:last-child:focus-visible::after { transform: translate(0, 0); }

/* Focus blur and one-shot brand flow. */
body.focus-mode::after { display: none; }
.focus-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  background: transparent;
  pointer-events: none;
}
.focus-backdrop::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: rgba(248, 249, 247, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 160ms cubic-bezier(.22, 1, .36, 1);
}
body.focus-mode .focus-backdrop {
  visibility: visible;
  pointer-events: auto;
}
body.focus-mode .focus-backdrop::before {
  opacity: 1;
}
body.focus-mode-exiting .focus-backdrop {
  visibility: visible;
  pointer-events: auto;
}
body.focus-mode-exiting .focus-backdrop::before {
  opacity: 0;
}

body.focus-mode .card.is-focused,
body.focus-mode .card.is-focused:hover,
body.focus-mode-exiting .card.is-focused,
body.focus-mode-exiting .card.is-focused:hover {
  position: relative;
  z-index: 120;
  width: var(--focus-locked-width, 100%);
  height: var(--focus-locked-height, auto);
  min-height: var(--focus-locked-height, 0);
  box-shadow: var(--focus-locked-shadow, var(--shadow-card));
  transition: none;
}
body.focus-mode-exiting .card-focus-layer {
  opacity: 0;
  pointer-events: none;
}
body.focus-mode-exiting .card-focus-panel,
body.focus-mode-exiting .card-focus-controls { pointer-events: none; }
body[data-scope="potok"] .card.is-focus-settling,
body[data-scope="potok"] .card.is-focus-settling:hover { transition: none !important; }
.focus-flow-stripe {
  position: absolute;
  z-index: 1;
  left: -52vmax;
  width: 204vmax;
  height: clamp(112px, 10vw, 180px);
  border-radius: 3px;
  opacity: 0;
  transform: rotate(-38.66deg) translateX(-126%);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.focus-flow-stripe-lime { top: 18%; background: rgba(200, 255, 90, .48); }
.focus-flow-stripe-cyan { top: 58%; background: rgba(99, 216, 255, .42); }
.focus-backdrop.is-playing .focus-flow-stripe-lime {
  animation: potok-stripe-flight 2.58s 430ms both cubic-bezier(.76, 0, .24, 1);
}
.focus-backdrop.is-playing .focus-flow-stripe-cyan {
  animation: potok-stripe-flight 2.58s 235ms both cubic-bezier(.76, 0, .24, 1);
}
@keyframes potok-stripe-flight {
  0% { opacity: 0; transform: rotate(-38.66deg) translateX(-126%); }
  9% { opacity: .86; }
  82% { opacity: .86; }
  100% { opacity: 0; transform: rotate(-38.66deg) translateX(126%); }
}

/* Project choice keeps copying inside Potok's sequential model. */
.copy-project-dialog { width: min(420px, calc(100vw - 24px)); }
.copy-project-dialog-content { display: grid; gap: 12px; padding: 17px; }
.copy-project-dialog-content > p { margin: 0; color: #6d7888; font-size: 9px; line-height: 1.45; }
.copy-project-list { display: grid; gap: 6px; }
.copy-project-list button {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d7dce4;
  border-radius: 4px;
  color: #17243a;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.copy-project-list button:hover { border-color: #9eb7df; background: #f7f9fd; }
.copy-project-list button > span { min-width: 0; display: grid; gap: 3px; }
.copy-project-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.copy-project-list small { color: #738092; font-size: 8px; }
.copy-project-list i { color: #246bfe; font-size: 15px; }
.copy-project-empty { margin: 0; color: #7d8795; font-size: 9px; }

@media (prefers-reduced-motion: reduce) {
  .workspace-view-switch::after,
  .workspace-view,
  .project-mode-controls,
  .focus-backdrop,
  .focus-backdrop::before,
  .card-focus-layer,
  .card-focus-panel,
  .card-focus-controls,
  .today-focus-task .today-utility-actions,
  .today-panel-catcher,
  .today-panel { transition-duration: 1ms !important; }
  .workspace-view { filter: none !important; }
  .focus-flow-stripe { animation: none !important; }
  .pointer-grid-layer { transform: none !important; }
}

@media (max-width: 1023px) and (min-width: 761px) {
  .today-columns { grid-template-columns: minmax(175px, .8fr) minmax(340px, 1.55fr) minmax(210px, 1fr); }
}

@container (max-width: 460px) {
  .today-focus-task .today-task-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 28px 28px;
    grid-template-areas:
      "focus focus utilities utilities"
      "day day complete complete";
    gap: 4px;
  }
  .today-focus-task .today-task-actions button { height: 28px; }
  .today-focus-task .today-utility-actions { justify-self: end; }
  .today-focus-task .today-task-actions .today-focus-action { font-size: 12px; }
  .today-focus-task .today-task-actions .today-day-done-action,
  .today-focus-task .today-task-actions .today-complete-action { font-size: 10px; }
}

@media (max-width: 760px) {
  body[data-scope="potok"] > .workspace-view { height: calc(100dvh - 60px - 6px); }
  .today-columns { grid-template-columns: 1fr; }
  body[data-scope="potok"] .today-focus-task.card,
  body[data-scope="potok"] .today-focus-task.card:hover { height: auto; min-height: var(--today-focus-card-height); }
}

/* Rounded Today surface shared by cards, picker and concentration settings. */
.today-done-task,
.today-later-task,
body[data-scope="potok"] .today-focus-task.card,
body[data-scope="potok"] .today-focus-task.card:hover {
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgb(13 37 72 / 7%);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.today-done-task:hover,
.today-later-task:hover,
body[data-scope="potok"] .today-focus-task.card:hover {
  border-color: #aebbd0;
  background: #fbfdff;
  box-shadow: 0 10px 26px rgb(13 37 72 / 11%);
  transform: translateY(-1px);
}
body[data-scope="potok"] .today-focus-task.card,
body[data-scope="potok"] .today-focus-task.card:hover {
  border-left-width: 1px;
  border-left-color: #cfd7e2;
}
.today-drop-placeholder {
  position: relative;
  border-radius: 12px;
  background: rgb(36 107 254 / 7%);
  box-shadow: inset 0 0 0 1px rgb(36 107 254 / 5%);
}
.today-drop-placeholder::after {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(36 107 254 / 18%);
  border-radius: 8px;
  color: #5f7baa;
  font-size: 9px;
  font-weight: 680;
  content: "Переместить сюда";
}
.today-panel {
  border-left-color: #d7dce4;
  border-radius: 16px 0 0 16px;
  box-shadow: -18px 0 48px rgb(7 17 31 / 13%);
}
.today-panel > header { border-radius: 16px 0 0; }
.today-panel-close,
.today-picker-search,
.today-picker-group button,
.today-duration-options button,
.today-settings-note { border-radius: 10px !important; }
.today-picker-search input { font-size: 12px; }
.today-picker-group strong,
.today-settings-note strong { font-size: 12px; }
.today-picker-group small,
.today-settings-section p,
.today-settings-note p { font-size: 10px; line-height: 1.5; }
.today-picker-group button {
  min-height: 52px;
  transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}
.today-picker-group button:hover,
.today-picker-group button:focus-visible {
  outline: 0;
  border-color: #a8bce2;
  background: #f6f9ff;
  box-shadow: 0 7px 18px rgb(13 37 72 / 7%);
}
.today-duration-options button {
  min-height: 40px;
  font-size: 11px;
  transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}
.today-duration-options button:hover,
.today-duration-options button:focus-visible { outline: 0; border-color: #9eb9f5; background: #f5f8ff; box-shadow: 0 5px 14px rgb(36 107 254 / 8%); }
.today-settings-note { grid-template-columns: minmax(0, 1fr); padding: 14px; }

@media (max-width: 760px) {
  .today-panel,
  .today-panel > header { border-radius: 16px 16px 0 0; }
}

@media (max-width: 1024px) {
  body[data-scope="potok"] .workspace-view-switch { width: 76px; flex-basis: 76px; }
}

@media (max-width: 760px) {
  body[data-scope="potok"] .workspace-view-switch { width: 88px; flex-basis: 88px; }
  body[data-scope="potok"] .workspace-view-button { width: 100% !important; min-width: 0 !important; }
}
