@font-face {
  font-family: "TT Days Sans";
  src: url("/assets/fonts/TTDaysSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Days Sans";
  src: url("/assets/fonts/TTDaysSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Korzinka Display ExtraBold Italic";
  src: url("/assets/fonts/Korzinka_DisplayExtraBoldItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "F37 Ginger";
  src: url("/assets/fonts/F37GingerCyrillic-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #071528;
  --muted: #758093;
  --line: #d5dde7;
  --line-strong: #bdc9d7;
  --red: #eb0033;
  --red-soft: #fff2f4;
  --green: #15a765;
  --surface: #ffffff;
  --page: #f7f9fb;
  --card-height: 44px;
  --card-gap: 3px;
  --label-width: 116px;
  color-scheme: light;
  font-family: "TT Days Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { overflow: hidden; background: var(--page); }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.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; }

.tk-topbar {
  height: var(--potok-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--potok-header-gap);
  padding: 0 var(--potok-gutter-x);
  background: var(--surface);
  border-bottom: 0;
  box-shadow: var(--potok-header-shadow);
  position: relative;
  z-index: 30;
}

.tk-brand { display: inline-flex; align-items: center; gap: var(--potok-brand-gap); color: #07111f; text-decoration: none; min-width: 0; }
.tk-brand img { width: var(--potok-brand-mark-size); height: var(--potok-brand-mark-size); border-radius: 3px; flex: 0 0 auto; }
.tk-brand-name {
  font-family: var(--potok-brand-font-family);
  font-size: var(--potok-brand-name-size);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.035em;
}
.tk-brand-scope { display: inline-flex; align-items: center; gap: var(--potok-brand-gap); line-height: 1; white-space: nowrap; }
.tk-brand-scope > span { color: #b8bec7; font-size: var(--potok-brand-scope-size); font-weight: 400; line-height: 1; }
.tk-brand-scope > strong {
  color: #e5002b;
  font-family: "Korzinka Display ExtraBold Italic", sans-serif;
  font-size: var(--potok-brand-scope-size);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
}

.tk-top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-board-link,
.tk-sync,
.tk-account {
  height: var(--potok-control-height);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.tk-board-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 10px; font-weight: 720; text-decoration: none; }
.tk-sync { width: var(--potok-control-height); display: grid; place-items: center; padding: 0; color: #596579; border-color: transparent; cursor: pointer; }
.tk-sync i { color: var(--green); font-size: 18px; }
.tk-sync.is-loading i { animation: tk-spin .7s linear infinite; }
.tk-account-wrap { position: relative; }
.tk-account { width: var(--potok-control-height); display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border-color: var(--line); border-radius: 5px; cursor: pointer; white-space: nowrap; font-size: 11px; }
.tk-account span { font-weight: 700; }
.tk-account-menu { position: absolute; top: calc(100% + 7px); right: 0; width: 220px; padding: 15px; background: #fff; border: 1px solid var(--line); z-index: 50; }
.tk-account-menu strong, .tk-account-menu small { display: block; }
.tk-account-menu small { color: var(--muted); margin-top: 3px; }
.tk-account-menu button { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; margin-top: 13px; border: 1px solid var(--line); background: #fff; cursor: pointer; }

.tk-main {
  height: calc(100dvh - var(--potok-header-height));
  display: grid;
  grid-template-rows: 32px 8px minmax(0, 1fr) var(--potok-content-gap-bottom) var(--potok-footer-height);
  padding: var(--potok-content-gap-top) var(--potok-gutter-x) 0;
  background: #fbfbfa;
}
.tk-weekbar { grid-row: 1; width: 214px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 8px; border: 0; }
.tk-weekbar button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; font-size: 17px; }
.tk-weekbar button:disabled { opacity: .35; cursor: default; }
.tk-weekbar strong { min-width: 0; font-size: 13px; text-align: center; white-space: nowrap; }

.tk-scroll {
  grid-row: 3;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--line);
}
.tk-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tk-grid { min-width: 1220px; display: grid; grid-template-columns: var(--label-width) repeat(7, minmax(156px, 1fr)); align-content: start; background: #fff; border: 0; }
.tk-grid-head { display: contents; }
.tk-corner,
.tk-day-head { height: 44px; position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); }
.tk-corner { left: 0; z-index: 14; font-size: 11px; font-weight: 700; }
.tk-day-head { justify-content: flex-start; gap: 4px; padding: 6px 10px; font-size: 11px; font-weight: 700; text-align: left; text-transform: uppercase; }
.tk-day-head strong { color: #8f99a8; font-size: 11px; }
.tk-day-head i { color: #b0b7c1; font-style: normal; font-weight: 400; }
.tk-day-head span { font-size: 11px; }
.tk-day-head.is-today { background: #fffbf3; box-shadow: inset 1px 0 #f2a62b, inset -1px 0 #f2a62b, inset 0 1px #f2a62b; }

.tk-section-row { display: contents; --section-height: calc(var(--max-cards) * (var(--card-height) + var(--card-gap)) + 13px); }
.tk-section-label,
.tk-cell { height: var(--section-height); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tk-section-label { position: sticky; left: 0; z-index: 8; display: flex; align-items: center; padding: 10px 13px; font-weight: 700; font-size: 11px; line-height: 1.2; text-transform: uppercase; background: var(--section-tint, #f4f7f9); }
.tk-cell { min-width: 0; position: relative; display: flex; flex-direction: column; padding: 6px; background: #fff; transition: background-color 120ms ease; }
.tk-cell.is-today { background: #fffdf8; box-shadow: inset 1px 0 #f2a62b, inset -1px 0 #f2a62b; }
.tk-cell.is-today.is-last-section { box-shadow: inset 1px 0 #f2a62b, inset -1px 0 #f2a62b, inset 0 -1px #f2a62b; }
.tk-cell.is-drop-target { background: #fff6f7; box-shadow: inset 0 0 0 1px var(--red); }
.tk-card-list { height: 100%; display: grid; grid-auto-rows: var(--card-height); align-content: start; gap: var(--card-gap); min-height: 0; }
.tk-add-space { position: absolute; right: 8px; bottom: 7px; z-index: 3; width: 22px; height: 22px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 2px; background: rgb(255 255 255 / 94%); color: #b8c1cc; opacity: 0; cursor: pointer; transition: opacity 90ms ease, border-color 90ms ease, color 90ms ease; }
.tk-cell:hover .tk-add-space,
.tk-add-space:focus-visible { opacity: 1; }
.tk-add-space i { font-size: 16px; transition: color 100ms ease; }
.tk-add-space:hover,
.tk-add-space:focus-visible { border-color: #ffbdc9; outline: none; color: var(--red); }

.tk-task {
  height: var(--card-height);
  min-height: var(--card-height);
  max-height: var(--card-height);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid #d6dee8;
  border-radius: 2px;
  background: #fff;
  cursor: default;
  user-select: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.tk-task[draggable="true"] { cursor: grab; }
.tk-task[draggable="true"]:active { cursor: grabbing; }
.tk-task.is-in-progress { border-color: var(--potok-status-progress); }
.tk-task.is-published { border-color: var(--potok-status-done); background: #f7fcf9; }
.tk-task.is-selected {
  outline: 2px solid #246bfe;
  outline-offset: -3px;
  box-shadow: 0 0 0 1px rgb(36 107 254 / 16%);
}
.task-marquee-box {
  position: fixed;
  z-index: 165;
  pointer-events: none;
  border: 1px solid #246bfe;
  background: rgb(36 107 254 / 10%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 65%) inset;
}
body.task-marquee-active,
body.task-marquee-active * { cursor: crosshair !important; user-select: none !important; }
.tk-task.is-dragging { opacity: .35; }
.tk-task-meta { min-width: 0; align-self: stretch; display: grid; place-content: center start; }
.tk-task-meta.is-push { width: max-content; grid-template-columns: max-content; grid-template-rows: repeat(3, var(--potok-card-meta-size)); align-content: center; justify-self: start; gap: 2px; }
.tk-task-time { height: var(--potok-card-meta-size); color: #8b96a5; font-size: var(--potok-card-meta-size); font-weight: 400; line-height: var(--potok-card-meta-size); letter-spacing: 0; white-space: nowrap; }
.tk-task-meta.is-push .tk-task-time { display: grid; grid-template-areas: "time"; width: max-content; }
.tk-task-meta.is-push .tk-task-time-value,
.tk-task-time-sizer { grid-area: time; }
.tk-task-time-sizer { visibility: hidden; }
.tk-task-channel { box-sizing: border-box; width: 100%; height: var(--potok-card-meta-size); display: grid; place-items: center; justify-self: stretch; margin: 0; padding: 0 2px; border: 1px solid transparent; color: #7c8796; background: transparent; font-family: inherit; font-size: 5px; font-weight: 750; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.tk-task-channel.is-present { border-color: #cbd3de; }
.tk-task-channel.has-proof { color: #1c7758; background: #edf8f2; cursor: pointer; }
.tk-task-channel.has-proof:hover,
.tk-task-channel.has-proof:focus-visible { border-color: #1c7758; outline: 0; }
.tk-task-title { min-width: 0; color: #081522; font-size: var(--potok-card-title-size); line-height: 13px; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tk-task-publication {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px;
  color: #1c7758;
  background: #edf8f2;
  font-size: 6.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.tk-task-publication:hover,
.tk-task-publication:focus-visible { outline: 1px solid #1c7758; outline-offset: 1px; }
.tk-task:has(.tk-task-publication) { grid-template-columns: max-content minmax(0, 1fr) max-content; }
.tk-task-publications { display: inline-flex; align-items: center; gap: 3px; }
.tk-task-poa { padding-inline: 4px; border: 1px solid #bfc8d4; cursor: pointer; }
.tk-task:hover { position: relative; z-index: 2; box-shadow: 0 5px 14px rgba(7, 17, 31, 0.07); }
.tk-task.can-manage:hover { border-color: #aebbc9; background: #fbfcfd; }
.tk-task.is-save-flash {
  position: relative;
  z-index: 7;
  animation: tk-task-saved 920ms cubic-bezier(.2, .8, .2, 1);
}
.tk-task.is-in-progress.can-manage:hover { border-color: var(--potok-status-progress); }
.tk-task.is-published.can-manage:hover { border-color: var(--potok-status-done); background: #f3faf6; }
.tk-task:focus-visible { outline: 2px solid rgb(235 0 51 / 30%); outline-offset: -2px; }

.tk-task-context {
  position: fixed;
  z-index: 170;
  width: 190px;
  padding: 5px;
  border: 1px solid #cfd7e2;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(7 21 40 / 15%);
}
.tk-task-context > span {
  display: block;
  padding: 7px 9px 6px;
  color: #7a8595;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}
.tk-task-context button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #172336;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.tk-task-context button:hover,
.tk-task-context button:focus-visible { outline: 0; background: #f4f6f8; }
.tk-task-context button:disabled { color: #a7afbb; cursor: default; background: #fff; }
.tk-task-context button.is-danger { color: #c72e39; }
.tk-task-context button.is-danger:hover { background: #fff3f3; }
.tk-task-context button i { width: 14px; font-size: 14px; }

.tk-confirm {
  width: min(390px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #d4dbe5;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.tk-confirm::backdrop { background: rgb(7 21 40 / 42%); backdrop-filter: blur(2px); }
.tk-confirm form { display: grid; justify-items: center; gap: 17px; padding: 28px; text-align: center; }
.tk-confirm form > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #f0c8cb;
  border-radius: 3px;
  color: #c5353d;
  background: #fff2f2;
  font-size: 21px;
}
.tk-confirm p { max-width: 290px; margin: 0; color: #7a8493; font-size: 11px; line-height: 1.5; }
.tk-confirm form > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-confirm button { min-height: 39px; border: 1px solid #d4dbe5; border-radius: 2px; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.tk-confirm button.is-danger { border-color: #cf3d41; color: #fff; background: #cf3d41; }

.tk-month-footer { grid-row: 5; height: var(--potok-footer-height); display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; border: 0; border-top: 1px solid var(--line); }
.tk-month-tabs { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-month-tabs button { height: 55px; position: relative; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; }
.tk-month-arrow { height: 55px; border: 0; background: transparent; color: #687487; cursor: pointer; font-size: 18px; }
.tk-month-arrow:last-child { border: 0; }
.tk-month-arrow:hover { color: var(--red); background: #fff8f9; }
.tk-month-tabs button.is-active { color: var(--red); font-weight: 700; }
.tk-month-tabs button.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 68px; height: 2px; translate: -50% 0; background: var(--red); }

.tk-editor {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  background: rgb(7 21 40 / 13%);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  transition: opacity 140ms ease, visibility 0s linear;
}
.tk-editor[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: opacity 120ms ease, visibility 0s linear 120ms;
}
.tk-editor form {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(730px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 26px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(7 21 40 / 14%);
  translate: -50% -50%;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d0da transparent;
}
.tk-editor-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #617084;
  cursor: pointer;
  font-size: 19px;
}
.tk-editor-close:hover,
.tk-editor-close:focus-visible { border-color: var(--line); outline: 0; color: var(--red); background: #fff7f8; }
.tk-editor h2 { margin: 0 42px 24px 0; font-size: 30px; font-weight: 700; line-height: 1.15; }
.tk-editor label { display: grid; gap: 7px; margin: 0; }
.tk-editor label > span,
.tk-editor-publish legend { color: var(--ink); font-size: 12px; font-weight: 700; }
.tk-editor textarea {
  width: 100%;
  height: auto;
  min-height: 42px;
  max-height: 110px;
  overflow-y: auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  resize: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.tk-editor textarea:focus { border-color: #ff637f; box-shadow: 0 0 0 2px rgb(235 0 51 / 9%); }
.tk-editor textarea::placeholder { color: #8b95a3; }
.tk-account {
  width: var(--potok-control-height);
  height: var(--potok-control-height);
  border-radius: 50%;
}
.tk-account > i { display: none; }

.tk-poa-lightbox {
  position: fixed;
  z-index: 420;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(11 18 29 / 30%);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.tk-poa-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.tk-poa-lightbox[hidden] { display: none; }
.tk-poa-lightbox figure {
  position: relative;
  max-width: 50vw;
  max-height: 50vh;
  margin: 0;
}
.tk-poa-lightbox img {
  max-width: 50vw;
  max-height: 50vh;
  display: block;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 25px 70px rgb(7 17 31 / 30%);
}
.tk-poa-lightbox button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgb(255 255 255 / 60%);
  color: #fff;
  background: rgb(13 26 45 / 86%);
  font-size: 8px;
  font-weight: 750;
}
.tk-editor-schedule { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.tk-editor .potok-picker-trigger { height: 52px; }
.tk-editor .potok-picker-trigger > span { font-size: 14px; }
.tk-editor-publish { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.tk-editor-publish legend { margin: 0 0 12px; padding: 0; }
.tk-editor-publish-list { position: relative; display: grid; gap: 0; }
.tk-editor-publish-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 9px;
  top: 11px;
  bottom: 11px;
  width: 1px;
  background: #d9dfe7;
}
.tk-editor-publish-list label {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.tk-editor-publish-list input { position: absolute; opacity: 0; pointer-events: none; }
.tk-editor-publish-list label > i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: #fff;
}
.tk-editor-publish-list input:checked + i { background: var(--red); }
.tk-editor-publish-list input:checked + i::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.tk-editor-publish-list input:focus-visible + i { box-shadow: 0 0 0 2px rgb(235 0 51 / 15%); }
.tk-editor-publish-list label > span { font-size: 14px; font-weight: 700; }
.tk-editor-publish-error { margin: 8px 0 0; color: #c93439; font-size: 9px; }
.tk-editor-publication {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid #d9dfe7;
  background: #f8fafb;
}
.tk-editor-publication legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.tk-editor-publication-toggle {
  position: relative;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.tk-editor-publication-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tk-editor-publication-toggle > i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #1c7758;
  background: #fff;
}
.tk-editor-publication-toggle input:checked + i { background: #1c7758; }
.tk-editor-publication-toggle input:checked + i::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.tk-editor-publication-link input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}
.tk-editor-publication-link input:focus { border-color: #1c7758; box-shadow: 0 0 0 2px rgb(28 119 88 / 10%); }
.tk-editor-publication.is-disabled { opacity: .55; }
.tk-editor-submit {
  width: 100%;
  height: 54px;
  margin-top: 24px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.tk-editor-submit:hover,
.tk-editor-submit:focus-visible { outline: 0; background: #d8002f; }
.tk-editor-submit:disabled { opacity: .55; cursor: wait; }

.tk-toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; pointer-events: none; }
.tk-toast { max-width: 320px; padding: 12px 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 12px; animation: tk-toast 180ms ease-out; }
.tk-toast.is-error { border-color: #c93439; background: #c93439; }

@keyframes tk-spin { to { rotate: 360deg; } }
@keyframes tk-toast { from { opacity: 0; translate: 0 7px; } }
@keyframes tk-task-saved {
  0% { box-shadow: 0 0 0 0 rgb(235 0 51 / 0%), 0 0 0 rgb(235 0 51 / 0%); }
  18% { box-shadow: 0 0 0 3px rgb(235 0 51 / 64%), 0 7px 22px rgb(235 0 51 / 25%); }
  55% { box-shadow: 0 0 0 2px rgb(235 0 51 / 34%), 0 5px 17px rgb(235 0 51 / 13%); }
  100% { box-shadow: 0 0 0 7px rgb(235 0 51 / 0%), 0 0 0 rgb(235 0 51 / 0%); }
}

@media (max-width: 820px) {
  :root { --label-width: 96px; }
  body { overflow: hidden; }
  .tk-topbar { height: var(--potok-header-height); padding: 0 12px; }
  .tk-brand { gap: 7px; }
  .tk-brand img { width: 34px; height: 34px; }
  .tk-brand-name { font-size: 21px; }
  .tk-brand-scope { gap: 7px; }
  .tk-brand-scope > span { font-size: 16px; }
  .tk-brand-scope > strong { font-size: 17px; }
  .tk-sync, .tk-account > i { display: none; }
  .tk-board-link { height: 36px; padding: 0 11px; font-size: 12px; }
  .tk-account { height: 36px; padding: 0 7px; font-size: 12px; }
  .tk-top-actions { gap: 4px; }
  .tk-main {
    height: calc(100dvh - var(--potok-header-height));
    grid-template-rows: 32px 8px minmax(0, 1fr) 10px var(--potok-footer-height);
    padding: 8px 10px 0;
  }
  .tk-weekbar { width: 214px; padding: 0; }
  .tk-weekbar button { width: 30px; height: 30px; }
  .tk-weekbar strong { min-width: 0; font-size: 13px; }
  .tk-grid { min-width: 1188px; }
  .tk-month-tabs button, .tk-month-arrow { height: 55px; }
  .tk-editor { background: rgb(7 21 40 / 16%); }
  .tk-editor form {
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto;
    width: auto;
    max-height: calc(100dvh - 20px);
    padding: 22px 20px 20px;
    translate: 0;
  }
  .tk-editor h2 { font-size: 21px; }
}

@media (max-width: 560px) {
  .tk-brand-scope > strong { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tk-board-link { font-size: 0; width: 36px; padding: 0; }
  .tk-board-link::before { content: "Д"; font-size: 12px; font-weight: 700; }
  .tk-account span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; }
  .tk-editor-schedule { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
