/* Pronote — тёмная тема, glassmorphism */

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

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --color-scheme: dark;
  --theme-accent: #8fa8ff;
  --theme-toggle-filter: brightness(0) invert(0.94);
  --theme-accent-ring: rgba(255, 255, 255, 0.18);
  --surface-sidebar: rgba(0, 0, 0, 0.25);
  --surface-sidebar-border: rgba(255, 255, 255, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-bright: rgba(255, 255, 255, 0.18);
  --glass-border-soft: rgba(255, 255, 255, 0.06);
  --glass-bg-start: rgba(255, 255, 255, 0.14);
  --glass-bg-mid: rgba(255, 255, 255, 0.05);
  --glass-bg-end: rgba(255, 255, 255, 0.02);
  --glass-shine: rgba(255, 255, 255, 0.2);
  --glass-shine-mid: rgba(255, 255, 255, 0.04);
  --glass-inset-top: rgba(255, 255, 255, 0.16);
  --glass-inset-bottom: rgba(255, 255, 255, 0.04);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --glass-fallback: rgba(28, 28, 32, 0.92);
  --glass-hover-start: rgba(255, 255, 255, 0.1);
  --glass-hover-end: rgba(255, 255, 255, 0.04);
  --glass-active-start: rgba(255, 255, 255, 0.18);
  --glass-active-end: rgba(255, 255, 255, 0.07);
  --ambient-1: rgba(72, 88, 140, 0.22);
  --ambient-2: rgba(90, 70, 130, 0.16);
  --ambient-3: rgba(50, 100, 90, 0.12);
  --ambient-4: rgba(255, 255, 255, 0.04);
  --bullet-color: rgba(255, 255, 255, 0.35);
  --row-divider: rgba(255, 255, 255, 0.06);
  --icon-filter: brightness(0) invert(1);
  --field-bg: rgba(0, 0, 0, 0.35);
  --field-border: rgba(255, 255, 255, 0.14);
  --field-placeholder: rgba(255, 255, 255, 0.35);
  --field-focus-border: rgba(255, 255, 255, 0.28);
  --field-focus-ring: rgba(255, 255, 255, 0.08);
  --field-option-bg: #1a1a1a;
  --glass-blur: 22px;
  --glass-blur-sm: 14px;
  --glass-saturate: 1.45;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 260px;
  --transition: 0.25s ease;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --space-page-x: 28px;
  --space-page-y: 24px;
  --space-section: 20px;
  --space-list-row-y: 14px;
  --space-list-gap: 0px;
  --space-field-label: 8px;
  --done-accent: #86efac;
  --done-accent-bright: #bbf7d0;
  --done-accent-muted: rgba(134, 239, 172, 0.55);
  --done-border: rgba(134, 239, 172, 0.28);
  --done-border-soft: rgba(134, 239, 172, 0.12);
  --done-bg: rgba(20, 24, 22, 0.82);
  --done-glow: 0 0 24px rgba(134, 239, 172, 0.07);
  --nav-done-color: var(--done-accent);
  --nav-done-color-hover: var(--done-accent-bright);
  --nav-done-border: var(--done-border);
  --nav-done-bg: linear-gradient(
    135deg,
    color-mix(in srgb, var(--done-accent) 12%, transparent) 0%,
    var(--done-bg) 55%,
    color-mix(in srgb, var(--done-bg) 92%, var(--bg)) 100%
  );
  --nav-done-bg-hover: linear-gradient(
    135deg,
    color-mix(in srgb, var(--done-accent) 16%, transparent) 0%,
    var(--done-bg) 55%,
    color-mix(in srgb, var(--done-bg) 96%, var(--bg)) 100%
  );
  --nav-done-shine: linear-gradient(
    115deg,
    color-mix(in srgb, var(--done-accent) 16%, transparent) 0%,
    color-mix(in srgb, var(--done-accent) 4%, transparent) 32%,
    transparent 52%
  );
  --nav-done-icon-color: rgba(255, 255, 255, 0.85);
}

html {
  -webkit-font-smoothing: antialiased;
  color-scheme: var(--color-scheme);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  transition:
    color var(--transition),
    background-color var(--transition);
}

/* ——— Ambient background (для видимости backdrop-filter) ——— */

.app {
  display: flex;
  position: relative;
  isolation: isolate;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, var(--ambient-1), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 12%, var(--ambient-2), transparent 52%),
    radial-gradient(ellipse 60% 50% at 75% 82%, var(--ambient-3), transparent 55%),
    radial-gradient(ellipse 40% 35% at 40% 60%, var(--ambient-4), transparent 50%),
    var(--bg);
  transition: background var(--transition);
}

.app>* {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ——— Layout ——— */

.main-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
  padding: var(--space-page-y) var(--space-page-x) 36px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100dvh - 0px);
}

/* ——— Glass (жидкое стекло) ——— */

.glass,
.glass-panel,
.glass-bar,
.topbar,
.menu-toggle,
.sidebar-close,
.nav-item--active,
.board-col__icon {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg,
      var(--glass-bg-start) 0%,
      var(--glass-bg-mid) 38%,
      var(--glass-bg-end) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow:
    inset 0 1px 0 var(--glass-inset-top),
    inset 0 -1px 0 var(--glass-inset-bottom),
    0 12px 40px var(--glass-shadow);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform 0.15s ease;
}

.glass::before,
.glass-panel::before,
.glass-bar::before,
.topbar::before,
.menu-toggle::before,
.sidebar-close::before,
.nav-item--active::before,
.board-col__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
      var(--glass-shine) 0%,
      var(--glass-shine-mid) 28%,
      transparent 48%);
  pointer-events: none;
}

.board-col__icon {
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

.menu-toggle:hover,
.sidebar-close:hover,
.nav-item:hover:not(.nav-item--active) {
  background: linear-gradient(135deg,
      var(--glass-hover-start) 0%,
      var(--glass-hover-end) 100%);
  border-color: var(--glass-border-bright);
}

.menu-toggle:active,
.sidebar-close:active {
  transform: scale(0.97);
}

.nav-item--active:hover {
  border-color: var(--glass-border-bright);
  background: linear-gradient(135deg,
      var(--glass-active-start) 0%,
      var(--glass-active-end) 100%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .glass,
  .glass-panel,
  .glass-bar,
  .topbar,
  .menu-toggle,
  .sidebar-close,
  .nav-item--active,
  .board-col__icon {
    background: var(--glass-fallback);
  }

  .glass::before,
  .glass-panel::before,
  .glass-bar::before,
  .topbar::before,
  .menu-toggle::before,
  .sidebar-close::before,
  .nav-item--active::before,
  .board-col__icon::before {
    display: none;
  }

  .done-head,
  .nav-item--done {
    background: var(--done-bg);
  }
}

/* ——— Sidebar ——— */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: 100dvh;
  padding: 28px 18px 32px;
  border-right: 1px solid var(--surface-sidebar-border);
  background: var(--surface-sidebar);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: opacity var(--transition), transform 0.15s ease;
}

.theme-toggle:hover {
  opacity: 0.82;
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
  filter: var(--theme-toggle-filter);
  transition: filter var(--transition), opacity var(--transition);
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.sidebar-close span,
.sidebar-close span::before {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.sidebar-close span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  min-height: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-group {
  width: 100%;
  min-width: 0;
}

.nav-group + .nav-group,
.nav-group + .nav-item,
.nav-item + .nav-group {
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text);
  transition: background var(--transition);
}

.nav-item[data-route="notes"] {
  margin-top: 8px;
}

.nav-item[data-route="board"] {
  margin-top: auto;
  padding-top: 8px;
}

.nav-item--logout {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--text-muted, rgba(232, 234, 237, 0.65));
}

.nav-item--logout:hover {
  color: var(--text);
}

.nav-item {
  border: 1px solid transparent;
}

.nav-item:hover:not(.nav-item--active) {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-soft);
}

.icon-img {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: var(--icon-filter);
  opacity: 0.92;
}

.icon-img--sm {
  width: 18px;
  height: 18px;
}

.icon-slot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.icon-slot--sm {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 8px;
}

.icon-slot--code {
  border: none;
  background: transparent;
  font-size: 11px;
}

.icon-slot--sm.icon-slot--code {
  font-size: 9px;
}

.nav-group--open .nav-sub {
  display: block;
}

.nav-item--toggle {
  width: 100%;
  text-align: left;
}

.nav-item__chevron {
  flex-shrink: 0;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-group--open .nav-item__chevron {
  transform: rotate(-135deg);
  opacity: 0.75;
}

.nav-sub {
  position: relative;
  margin: 4px 0 10px 36px;
  padding-left: 14px;
  display: none;
  min-width: 0;
  max-width: calc(100% - 36px);
  box-sizing: border-box;
}

.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.nav-sub li {
  position: relative;
}

.nav-sub li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.nav-sub a {
  display: block;
  padding: 8px 0 8px 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-sub a:hover {
  color: var(--text);
}

/* ——— Top bar (mobile) ——— */

.topbar {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.topbar__title {
  font-size: 18px;
  font-weight: 600;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  position: relative;
  z-index: 1;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

/* ——— Today / Done bars ——— */

.glass-panel,
.glass-bar {
  border-radius: var(--radius-lg);
}

.glass-bar {
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: var(--space-page-y) var(--space-page-x);
}

.glass-bar__label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.glass-bar--notes,
.glass-bar--today,
.glass-bar--done {
  --home-bar-pad-y: 16px;
  --home-bar-gap: 12px;
  --home-row-y: 9px;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: var(--home-bar-pad-y) var(--space-page-x);
  gap: var(--home-bar-gap);
}

.glass-bar--notes .today-list__row,
.glass-bar--today .today-list__row,
.glass-bar--done .today-list__row {
  padding: var(--home-row-y) 0;
  gap: 8px 16px;
}

.home-task-row {
  --task-row-cols:
    minmax(0, 1fr)
    7rem
    6.5rem
    6rem
    minmax(7rem, max-content);
  display: grid;
  grid-template-columns: var(--task-row-cols);
  gap: 10px 16px;
  align-items: center;
}

.home-task-row__title-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-task-row__project-col,
.home-task-row__assignee-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.home-task-row__project-col .project-badge,
.home-task-row__assignee-col .project-badge {
  max-width: 100%;
}

.home-task-row__project-col--empty,
.home-task-row__assignee-col--empty,
.home-task-row__project-col--hidden,
.home-task-row__assignee-col--hidden {
  min-height: 1px;
}

.home-note-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.home-task-row__title,
.home-note-row__title {
  flex: 1 1 auto;
  max-width: 50cqi;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
}

.home-task-row__title:hover,
.home-note-row__title:hover {
  color: var(--text-muted);
}

.home-task-row__status,
.home-task-row__date {
  min-width: 0;
}

.home-task-row__status {
  text-align: left;
  justify-self: start;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-task-row__status--done {
  color: var(--done-accent);
}

.home-task-row__status--empty {
  visibility: hidden;
}

.home-task-row__date--empty {
  visibility: hidden;
}


.home-note-row__time {
  justify-self: end;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.glass-bar--notes .today-list__empty,
.glass-bar--today .today-list__empty,
.glass-bar--done .today-list__empty {
  padding: 12px 0;
  font-size: 13px;
}

.glass-bar--notes .done-list__more,
.glass-bar--today .done-list__more,
.glass-bar--done .done-list__more {
  padding: 10px 0 2px;
}

.glass-bar--notes .notes-list__preview {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}

.glass-bar--notes .glass-bar__label,
.glass-bar--today .glass-bar__label,
.glass-bar--done .glass-bar__label {
  font-size: 15px;
}

.notes-head__add.page-head__add {
  width: 40px;
  height: 40px;
}

.notes-head__add .page-head__add-icon {
  font-size: 24px;
}

.glass-bar--notes .glass-bar__label {
  margin: 0;
  text-align: center;
}

.notes-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.notes-head__add {
  flex-shrink: 0;
}

.notes-list {
  position: relative;
  z-index: 1;
  width: 100%;
}

.notes-list__row {
  grid-template-columns: minmax(0, 1fr) 9rem;
}

.notes-list__title {
  max-width: 50cqi;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: color var(--transition);
}

.notes-list__title:hover {
  color: var(--text-muted);
}

.notes-list__preview {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.notes-page__list {
  padding-top: 4px;
}

.my-page__list {
  padding-top: 4px;
}

.my-page__list .home-task-row {
  align-items: center;
}

.icon-img--notes {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  box-sizing: border-box;
}

.icon-img--notes::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.55), 0 8px 0 rgba(255, 255, 255, 0.35);
}

.glass-bar--today {
  --today-head-pad-y: 22px;
}

.glass-bar--today .glass-bar__label {
  margin: 0;
  text-align: center;
}

.today-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: var(--today-head-pad-y) 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}

.glass-bar--today.glass-bar--today-has-items .today-head {
  margin: calc(-1 * var(--home-bar-pad-y)) calc(-1 * var(--space-page-x)) 0;
  padding: var(--today-head-pad-y) var(--space-page-x);
  border-bottom: 1px solid var(--row-divider);
}

.glass-bar--today-empty {
  cursor: pointer;
  transition: filter var(--transition);
}

.glass-bar--today-empty:hover {
  filter: brightness(1.04);
}

.glass-bar--today-empty:active {
  filter: brightness(0.98);
}

.today-head--clickable {
  cursor: pointer;
  transition: filter var(--transition);
}

.today-head--clickable:hover,
.today-head--clickable.today-head--active {
  filter: brightness(1.04);
}

.today-head--clickable:active {
  filter: brightness(0.98);
}

.today-head__add.page-head__add {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.today-head__add .page-head__add-icon {
  font-size: 24px;
}

.glass-bar--today.glass-bar--today-has-items .today-list {
  padding-top: 2px;
}

.today-type-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.today-type-switch[hidden],
.today-create-modal--board-task .today-type-switch,
.today-create-modal--notes-page .today-type-switch {
  display: none !important;
}

.today-type-switch__btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.today-type-switch__btn:hover {
  color: var(--text);
}

.today-type-switch__btn--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.today-create__task-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.today-form {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
}

.today-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

[data-note-board-picker][hidden] {
  display: none !important;
}

.note-board-picker--fixed-board {
  grid-template-columns: minmax(0, 1fr);
}

.note-board-picker--fixed-board .note-board-picker__board-field[hidden] {
  display: none !important;
}

.today-form__field {
  margin-bottom: 14px;
}

.today-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-list-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
}

.today-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem 9rem;
  gap: 12px 24px;
  align-items: center;
  position: relative;
  padding: var(--space-list-row-y) 0;
  container-type: inline-size;
}

.today-list__row.home-task-row {
  grid-template-columns: var(--task-row-cols);
  gap: 10px 16px;
}

.today-list__row + .today-list__row {
  border-top: 1px solid var(--row-divider);
}

.today-list__title-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.today-list__title {
  min-width: 0;
  font-size: 14px;
  color: var(--text);
  transition: color var(--transition);
}

.today-list__modified {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.today-list__title:hover {
  color: var(--text-muted);
}

.today-list__tag {
  justify-self: end;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.today-list__time {
  justify-self: end;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.today-list__empty {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  justify-content: center;
  border-top: none;
}

.today-list__empty::before {
  display: none;
}

.glass-bar--done .glass-bar__label {
  margin: 0;
  text-align: center;
}

.done-head {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--done-border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--done-accent) 12%, transparent) 0%,
    var(--done-bg) 55%,
    color-mix(in srgb, var(--done-bg) 92%, var(--bg)) 100%
  );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--done-accent) 16%, transparent),
    var(--done-glow);
  color: var(--done-accent);
}

.done-head::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--done-accent) 16%, transparent) 0%,
    color-mix(in srgb, var(--done-accent) 4%, transparent) 32%,
    transparent 52%
  );
  pointer-events: none;
}

.nav-item--done {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--nav-done-border);
  background: var(--nav-done-bg);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--done-accent) 16%, transparent),
    var(--done-glow);
  color: var(--nav-done-color);
}

.nav-item--done::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-done-shine);
  pointer-events: none;
}

.nav-item--done > * {
  position: relative;
  z-index: 1;
}

.nav-item--done:hover,
.nav-item--done.nav-item--active:hover {
  color: var(--nav-done-color-hover);
  border-color: color-mix(in srgb, var(--done-accent) 45%, transparent);
  background: var(--nav-done-bg-hover);
}

.nav-item--done.nav-item--active {
  border-color: color-mix(in srgb, var(--done-accent) 38%, transparent);
  background: var(--nav-done-bg-hover);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--done-accent) 20%, transparent),
    var(--done-glow),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-item--done.nav-item--active::before {
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--done-accent) 20%, transparent) 0%,
    color-mix(in srgb, var(--done-accent) 6%, transparent) 32%,
    transparent 52%
  );
}

.nav-item--done .icon-img--done {
  color: var(--nav-done-icon-color, inherit);
}

.glass-bar--done .done-head {
  margin: calc(-1 * var(--home-bar-pad-y)) calc(-1 * var(--space-page-x)) var(--home-bar-gap);
  padding: var(--home-bar-pad-y) var(--space-page-x);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

.done-page .done-head {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

.done-head .glass-bar__label,
.done-head .page-head__title {
  position: relative;
  z-index: 1;
  color: var(--done-accent);
  font-weight: 500;
}

.done-list {
  position: relative;
  z-index: 1;
  width: 100%;
}

.done-list__title-cell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.done-list__title-cell .today-list__title {
  flex: 1;
  min-width: 0;
}

.done-list__delete,
.home-task-row__delete {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.done-list__delete:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.14);
}

.done-list__more {
  padding: 16px 0 4px;
  text-align: center;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.done-list__more::before {
  display: none;
}

.done-list__more a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.done-list__more a:hover {
  color: var(--text);
}

.done-page__list {
  padding: 4px 0 0;
}

.all-tasks-list__row .today-list__title-cell {
  flex: 1 1 auto;
  min-width: 0;
}

.all-tasks-list__row .today-list__tag,
.all-tasks-list__row .all-tasks-list__status,
.all-tasks-list__row .all-tasks-list__time {
  flex-shrink: 0;
  text-align: right;
}

.all-tasks-list__section {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.all-tasks-list__status {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.all-tasks-list__status--done {
  color: var(--done-accent);
}

.all-tasks-list__time {
  cursor: default;
}

.icon-img--done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--nav-done-icon-color, rgba(255, 255, 255, 0.85));
}

/* ——— Board columns ——— */

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
}

.board-col {
  display: flex;
  flex-direction: column;
  padding: var(--space-page-y) var(--space-page-x);
  min-height: 230px;
  height: 100%;
}

.board-col__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.board-col__title {
  flex: 1;
  min-width: 0;
}

.board-col__add {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.board-col__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.board-col__icon .icon-img {
  position: relative;
  z-index: 1;
}

.board-col__head,
.nav-item {
  z-index: 0;
}

.nav-item>* {
  position: relative;
  z-index: 1;
}


.board-col__head .board-col__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.board-col__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.board-col__list li {
  position: relative;
  padding: 4px 0 4px 22px;
}

.board-col__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bullet-color);
  transform: translateY(-50%);
}

.board-col__list a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.board-col__list a:hover {
  color: var(--text);
}

.board-col__empty {
  font-size: 14px;
  color: var(--text-muted);
}

/* ——— Views (v2: навигация без перезагрузки) ——— */

.view {
  display: none;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.view[hidden] {
  display: none !important;
}

.view--active {
  display: flex;
}

.nav-sub__link--active {
  color: var(--text);
  font-weight: 500;
}

.ideas-page,
.board-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.ideas-section {
  scroll-margin-top: 16px;
}

.ideas-block {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Компактные унифицированные шапки блоков на страницах */
.board-page .ideas-block__head.page-head {
  position: relative;
  align-items: flex-start;
  padding: 14px 16px;
  min-height: 0;
}

.board-page .ideas-block__head .page-head__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.3;
}

.board-page .ideas-block__head .page-head__title {
  font-size: 18px;
  line-height: 1.25;
}

.board-page .ideas-block__head .page-head__meta {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.board-page .ideas-block__head.page-head:not(.assignees-block__head):not(.projects-block__head):not(.done-head) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(14, 18, 16, 0.84) 100%
  );
}

.board-page .ideas-block__body {
  padding: 0 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.board-page .ideas-block__body .idea-list,
.board-page .ideas-block__body .today-list {
  padding-top: 12px;
}

.board-page .assignees-block__head-glyph,
.board-page .projects-block__head-glyph,
.board-page .board-section__head-glyph,
.board-page .notes-block__head-glyph,
.board-page .my-page-block__head-glyph {
  font-size: 42px;
}

.ideas-block__body {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-page-x) var(--space-page-y);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ideas-block__body[hidden] {
  display: none !important;
}

.ideas-block__body .idea-list,
.ideas-block__body .today-list {
  padding-top: 16px;
}

.board-page .home-task-row {
  align-items: center;
}

.idea-form--inset {
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  margin: 0;
}

.idea-form--inset::before {
  display: none;
}

.board-col--link {
  cursor: pointer;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.board-col--link:hover {
  opacity: 0.92;
}

.board-col--link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.board-col--link .board-col__list a {
  position: relative;
  z-index: 1;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--space-page-y) var(--space-page-x);
}

.page-head__content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.page-head__add {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, border-color var(--transition), background var(--transition);
}

.page-head__add:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.page-head__add:active {
  transform: scale(0.96);
}

.page-head__add--active {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.page-head__add-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  margin-top: -2px;
}

.page-head__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-head__meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.page-head__title,
.page-head__eyebrow,
.page-head__meta {
  position: relative;
  z-index: 1;
}

.idea-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.idea-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
}

.idea-card--inner {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.idea-card__modified {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.idea-card--modified .idea-card__top {
  padding-top: 16px;
}

.idea-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.idea-card__top .idea-card__title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.idea-card--editable {
  cursor: pointer;
}

.idea-card__actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.idea-card__complete,
.idea-card__edit,
.idea-card__delete {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.idea-card__complete {
  font-size: 16px;
  color: rgba(134, 239, 172, 0.75);
}

.idea-card__complete:hover {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.1);
}

.idea-card__edit {
  font-size: 15px;
}

.idea-card__delete {
  font-size: 20px;
}

.idea-card__edit:hover,
.idea-card__delete:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.idea-card__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.idea-card__comments {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.idea-card__comment {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.idea-card__comment-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.idea-card__comment-date {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.comments-block {
  margin-bottom: 14px;
}

.comments-block__label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.comments-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.comments-list__item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-list__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-list__date {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.idea-card__foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--project-color, #86efac);
  border: 1px solid color-mix(in srgb, var(--project-color, #86efac) 42%, transparent);
  background: color-mix(in srgb, var(--project-color, #86efac) 14%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-badge--orphan {
  --project-color: rgba(160, 166, 178, 0.72);
  color: rgba(180, 186, 198, 0.62);
  border-color: rgba(160, 166, 178, 0.22);
  background: rgba(160, 166, 178, 0.1);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .project-badge {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
  }
}

.today-list__title-cell .project-badge {
  margin-top: 0;
  flex-shrink: 0;
}

.today-list__title-cell .today-list__title {
  flex: 0 1 auto;
  max-width: 50cqi;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-list__title-cell .today-list__modified {
  flex-shrink: 0;
}

.project-picker,
.assignee-picker,
.board-picker,
.section-picker {
  margin-bottom: 0;
  min-width: 0;
}

.entity-picker-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 639px) {
  .entity-picker-row {
    grid-template-columns: 1fr;
  }
}

.entity-picker__box {
  position: relative;
}

.entity-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.entity-picker__trigger.project-picker__tag {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  font: inherit;
  font-weight: 400;
  box-shadow: none;
}

.entity-picker__trigger.project-picker__tag:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--field-bg);
}

.entity-picker__trigger.project-picker__tag--none {
  color: var(--text-muted);
}

.entity-picker__trigger.project-picker__tag--active {
  color: var(--project-color, var(--text));
  border-color: color-mix(in srgb, var(--project-color, #86efac) 45%, transparent);
  background: color-mix(in srgb, var(--project-color, #86efac) 12%, var(--field-bg));
  box-shadow: none;
}

.entity-picker__trigger.project-picker__tag--none.project-picker__tag--active {
  color: var(--text);
  border-color: var(--field-border);
  background: var(--field-bg);
}

.entity-picker__trigger.entity-picker__trigger--open,
.entity-picker__trigger.project-picker__tag:focus-visible {
  outline: none;
  border-color: var(--field-focus-border);
  box-shadow: 0 0 0 2px var(--field-focus-ring);
}

.entity-picker__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-picker__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}

.entity-picker__trigger--open .entity-picker__chevron {
  transform: rotate(225deg) translateY(2px);
}

.entity-picker--disabled .entity-picker__trigger {
  opacity: 0.55;
  cursor: not-allowed;
}

.entity-picker--disabled .entity-picker__trigger:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.entity-picker__menu[hidden] {
  display: none !important;
}

.entity-picker__menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    var(--glass-bg-start) 0%,
    var(--glass-bg-mid) 38%,
    var(--glass-bg-end) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow:
    inset 0 1px 0 var(--glass-inset-top),
    inset 0 -1px 0 var(--glass-inset-bottom),
    0 16px 40px var(--glass-shadow);
}

.entity-picker__option {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.entity-picker__option--none {
  color: var(--text-muted);
}

.entity-picker__option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.entity-picker__option--active {
  color: var(--project-color, var(--text));
  border-color: color-mix(in srgb, var(--project-color, #86efac) 40%, transparent);
  background: color-mix(in srgb, var(--project-color, #86efac) 14%, transparent);
}

.entity-picker__option--none.entity-picker__option--active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.entity-picker__menu:not([hidden])::-webkit-scrollbar {
  width: 8px;
}

.entity-picker__menu:not([hidden])::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.entity-picker__empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.project-picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-picker__tag {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.project-picker__tag--none {
  color: var(--text-muted);
}

.project-picker__tag:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.project-picker__tag--active {
  color: var(--project-color, var(--text));
  border-color: color-mix(in srgb, var(--project-color, #86efac) 45%, transparent);
  background: color-mix(in srgb, var(--project-color, #86efac) 16%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--project-color, #86efac) 12%, transparent);
}

.project-picker__tag--none.project-picker__tag--active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.project-picker__empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.project-picker__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 360px;
}

.project-picker__color {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.15s ease, border-color var(--transition), box-shadow var(--transition);
}

.project-picker__color:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.project-picker__color--active {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}


.home-task-row__date {
  justify-self: end;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.assignees-page__list,
.projects-page__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.projects-block__shell {
  position: relative;
}

.projects-page .projects-block__head {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow: hidden;
}

.assignees-block__head .page-head__eyebrow,
.projects-block__head .page-head__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
}

.assignees-block__head .page-head__title,
.projects-block__head .page-head__title {
  font-size: 18px;
}

.assignees-block__stats,
.projects-block__stats {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.assignees-block__actions,
.projects-block__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.projects-page__create-head {
  position: relative;
}

.board-section__head,
.notes-page__create-head,
.my-tasks-page__head,
.my-page__head {
  position: relative;
}

.assignees-block__head-glyph,
.projects-block__head-glyph,
.board-section__head-glyph,
.notes-block__head-glyph,
.my-tasks-block__head-glyph,
.my-page-block__head-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.32);
  opacity: 0.55;
  filter: blur(0.35px);
  transition: opacity var(--transition), color var(--transition), filter var(--transition);
}

.assignees-block__head--clickable:hover .assignees-block__head-glyph,
.projects-block__head--clickable:hover .projects-block__head-glyph,
.board-section__head--clickable:hover .board-section__head-glyph,
.notes-block__head--clickable:hover .notes-block__head-glyph,
.my-tasks-block__head--clickable:hover .my-tasks-block__head-glyph,
.my-page-block__head--clickable:hover .my-page-block__head-glyph {
  color: rgba(255, 255, 255, 0.48);
  opacity: 0.72;
  filter: none;
}

.projects-block__remove.page-head__add {
  position: absolute;
  top: -12px;
  right: -12px;
  left: auto;
  z-index: 3;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  background: rgba(14, 18, 16, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.projects-block__remove .page-head__add-icon {
  font-size: 22px;
  font-weight: 400;
  margin-top: 0;
}

.projects-block__remove.page-head__add:hover {
  color: var(--text);
}

.assignees-page__tasks .today-list__empty,
.projects-page__tasks .today-list__empty {
  padding: 10px 0 4px;
  font-size: 13px;
}

.assignees-page__empty,
.projects-page__empty {
  margin: 0;
  padding: 8px 0 4px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.assignees-block__head,
.projects-block__head {
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--project-color, #86efac) 32%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--project-color, #86efac) 18%, transparent) 0%,
    rgba(20, 28, 24, 0.78) 42%,
    rgba(14, 18, 16, 0.9) 100%
  );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--project-color, #86efac) 18%, transparent),
    0 0 24px color-mix(in srgb, var(--project-color, #86efac) 8%, transparent);
}

.assignees-block__head::before,
.projects-block__head::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--project-color, #86efac) 16%, transparent) 0%,
    transparent 52%
  );
  pointer-events: none;
}

.assignees-block__head .page-head__content,
.projects-block__head .page-head__content,
.board-section__head .page-head__content,
.notes-page__create-head .page-head__content,
.my-tasks-page__head .page-head__content,
.my-page__head .page-head__content {
  position: relative;
  z-index: 1;
}

.assignees-block__head--clickable,
.projects-block__head--clickable,
.board-section__head--clickable,
.notes-block__head--clickable,
.my-tasks-block__head--clickable,
.my-page-block__head--clickable {
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.assignees-block__head--clickable:hover,
.projects-block__head--clickable:hover,
.board-section__head--clickable:hover,
.notes-block__head--clickable:hover,
.my-tasks-block__head--clickable:hover,
.my-page-block__head--clickable:hover {
  filter: brightness(1.06);
}

.assignees-block__head--clickable:active,
.projects-block__head--clickable:active,
.board-section__head--clickable:active,
.notes-block__head--clickable:active,
.my-tasks-block__head--clickable:active,
.my-page-block__head--clickable:active {
  filter: brightness(0.98);
}

.assignees-block__head .page-head__title,
.projects-block__head .page-head__title {
  color: var(--project-color, var(--text));
}

.assignees-block__head .page-head__eyebrow,
.assignees-block__stats,
.projects-block__head .page-head__eyebrow,
.projects-block__stats {
  color: color-mix(in srgb, var(--project-color, #86efac) 62%, var(--text-muted));
}

.assignees-page__tasks .home-task-row,
.projects-page__tasks .home-task-row {
  align-items: center;
}

.icon-img--projects {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
}

.icon-img--projects::before,
.icon-img--projects::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
}

.icon-img--projects::after {
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 10px;
  border-radius: 2px;
}

.icon-img--projects::before {
  top: 5px;
  left: 50%;
  width: 8px;
  height: 4px;
  margin-left: -4px;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.idea-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.idea-card__tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.idea-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.idea-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.idea-form {
  padding: var(--space-page-y) var(--space-page-x);
  border-radius: var(--radius-lg);
}

.idea-form[hidden] {
  display: none !important;
}

.idea-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.idea-form__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.idea-form__toggle {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
}

.idea-form__body {
  position: relative;
  z-index: 1;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: block;
  margin-bottom: var(--space-field-label);
  font-size: 13px;
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input::placeholder {
  color: var(--field-placeholder);
}

.field__input:focus {
  outline: none;
  border-color: var(--field-focus-border);
  box-shadow: 0 0 0 2px var(--field-focus-ring);
}

.field__input--area {
  resize: vertical;
  min-height: 88px;
}

.field__input--select {
  cursor: pointer;
}

.field__input--select option {
  background: var(--field-option-bg);
  color: var(--text);
}

.idea-form__error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #f87171;
}

.idea-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-ghost {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, opacity var(--transition);
}

.btn-primary:active,
.btn-ghost:active {
  transform: scale(0.98);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ——— Bootstrap load error ——— */

.bootstrap-error {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bootstrap-error[hidden] {
  display: none !important;
}

body.bootstrap-error-open {
  overflow: hidden;
}

.bootstrap-error__panel {
  width: min(100%, 420px);
  padding: 28px 24px;
  text-align: center;
}

.bootstrap-error__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.bootstrap-error__text {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bootstrap-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bootstrap-error__actions .btn-primary[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.save-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10001;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(40, 16, 16, 0.92);
  color: #fecaca;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.save-toast[hidden] {
  display: none !important;
}

/* ——— Confirm modal ——— */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-height: 720px) {
  .modal {
    align-items: center;
    padding: 20px;
  }
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 24px 24px 20px;
  border-radius: var(--radius-lg);
}

.modal__dialog--form {
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__dialog--wide {
  max-width: 840px;
}

.modal__dialog.glass-panel {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal__dialog--form .modal__actions,
.modal__dialog--form .modal__actions--split {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: 4px;
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.edit-item-form {
  position: relative;
  z-index: 1;
}

.edit-item-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edit-item-form__field {
  margin-bottom: 14px;
}

.edit-item-form .modal__actions {
  margin-top: 4px;
}

.modal__actions--split {
  justify-content: space-between;
  align-items: center;
}

.modal__actions-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.modal__actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-complete {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.28);
  background: rgba(134, 239, 172, 0.08);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.btn-complete:hover {
  color: #bbf7d0;
  border-color: rgba(134, 239, 172, 0.45);
  background: rgba(134, 239, 172, 0.14);
}

.btn-convert {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(147, 197, 253, 0.08);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.btn-convert:hover {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(147, 197, 253, 0.14);
}

@media (max-width: 768px) {
  .edit-item-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.modal__message {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn-danger {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.35) 0%,
    rgba(185, 28, 28, 0.25) 100%
  );
  transition: transform 0.15s ease, border-color var(--transition), background var(--transition);
}

.btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.65);
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.45) 0%,
    rgba(185, 28, 28, 0.35) 100%
  );
}

.btn-danger:active {
  transform: scale(0.98);
}

/* ——— Responsive ——— */

@media (max-width: 1024px) {
  :root {
    --space-page-x: 22px;
    --space-page-y: 20px;
    --space-list-row-y: 12px;
  }

  .board {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .board-col {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform var(--transition);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.55);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .main-wrap {
    width: 100%;
  }

  :root {
    --space-page-x: 18px;
    --space-page-y: 18px;
    --space-section: 16px;
    --space-list-row-y: 12px;
  }

  .main {
    gap: var(--space-section);
  }

  .glass-bar {
    min-height: 64px;
    border-radius: var(--radius-md);
  }

  .glass-bar--notes,
  .glass-bar--today,
  .glass-bar--done {
    --home-bar-pad-y: 14px;
    --home-bar-gap: 10px;
    --home-row-y: 8px;
  }

  .today-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .today-list {
    padding-bottom: 2px;
  }

  .today-list__row {
    gap: 8px;
  }

  .home-task-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-task-row::-webkit-scrollbar {
    display: none;
  }

  .all-tasks-toolbar__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .board-col {
    border-radius: var(--radius-md);
  }
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

@media (min-width: 1400px) {
  :root {
    --space-page-x: 36px;
    --space-page-y: 28px;
  }

  .main {
    max-width: 1280px;
    padding-bottom: 44px;
  }

  .board {
    gap: 24px;
  }
}

/* ——— Аврора (ML) ——— */
@media (min-width: 769px) {
  .aurora-widget {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    pointer-events: none;
  }

  .aurora-widget__shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
  }

  .aurora-widget__toggle,
  .aurora-widget__panel {
    pointer-events: auto;
  }

  .aurora-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    transition:
      opacity 0.28s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.28s ease,
      background var(--transition),
      border-color var(--transition);
  }

  .aurora-widget__toggle:hover {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border-soft);
  }

  .aurora-widget__label {
    line-height: 1;
  }

  .aurora-widget__dot-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: box-shadow 0.35s ease;
  }

  .aurora-widget__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background-color 0.25s ease, transform 0.25s ease;
  }

  .aurora-widget__dot--idle {
    background: #8b8f98;
  }

  .aurora-widget__dot--active {
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.55);
  }

  .aurora-widget__dot--saving {
    background: #4da3ff;
    box-shadow: 0 0 10px rgba(77, 163, 255, 0.5);
  }

  .aurora-widget__dot--success {
    background: #b57bff;
    box-shadow: 0 0 12px rgba(181, 123, 255, 0.65);
  }

  .aurora-widget__dot--error {
    background: #ff5c5c;
    box-shadow: 0 0 8px rgba(255, 92, 92, 0.5);
  }

  .aurora-widget__dot-wrap--pulse {
    box-shadow: 0 0 0 6px rgba(181, 123, 255, 0.22);
  }

  .aurora-widget__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(360px, calc(100vw - 56px));
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 16px 18px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: linear-gradient(
      145deg,
      var(--glass-bg-start),
      var(--glass-bg-mid) 45%,
      var(--glass-bg-end)
    );
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 16px 48px var(--glass-shadow);
    transform-origin: bottom right;
    transform: scale(0.72) translateY(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.32s ease,
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s ease,
      box-shadow 0.32s ease;
  }

  .aurora-widget--open .aurora-widget__toggle {
    opacity: 0;
    transform: scale(0.88) translateY(6px);
    visibility: hidden;
    pointer-events: none;
  }

  .aurora-widget--open .aurora-widget__panel {
    position: relative;
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .aurora-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .aurora-widget__head-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .aurora-widget__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .aurora-widget__collapse {
    flex-shrink: 0;
    cursor: pointer;
    color: var(--text);
  }

  .aurora-widget__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .aurora-widget__live {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border-soft);
    background: var(--glass-bg);
  }

  .aurora-widget__metric {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    font-size: 12px;
  }

  .aurora-widget__metric > span {
    color: var(--text-secondary);
    grid-column: 1;
    grid-row: 1;
  }

  .aurora-widget__metric > strong {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .aurora-widget__metric > em {
    grid-column: 1;
    grid-row: 2;
    font-style: normal;
    color: var(--text-muted);
    font-size: 11px;
  }

  .aurora-widget__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 0 0 12px;
    padding: 0;
  }

  .aurora-widget__stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .aurora-widget__stats dt {
    margin: 0;
    font-size: 11px;
    color: var(--text-secondary);
  }

  .aurora-widget__stats dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
  }

  .aurora-widget__metrics {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .aurora-widget__train-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .aurora-widget__train {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .aurora-title-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .aurora-title-wrap:focus-within {
    border-color: var(--field-focus-border);
    box-shadow: 0 0 0 2px var(--field-focus-ring);
  }

  .aurora-title-wrap__ghost {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
  }

  .aurora-title-wrap__typed {
    color: transparent;
  }

  .aurora-title-wrap__suffix {
    color: var(--text-muted);
    opacity: 0.72;
  }

  .aurora-title-wrap > .field__input {
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .aurora-title-field {
    position: relative;
    padding-bottom: 18px;
  }

  .aurora-title-wrap--duplicate {
    border-color: rgba(251, 191, 36, 0.42);
  }

  .aurora-title-wrap > .field__input:focus {
    box-shadow: none;
  }

  .aurora-title-wrap__duplicate {
    position: absolute;
    right: 14px;
    bottom: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: #fbbf24;
    text-align: right;
    white-space: nowrap;
    pointer-events: none;
  }

  .aurora-text-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .aurora-text-wrap:focus-within {
    border-color: var(--field-focus-border);
    box-shadow: 0 0 0 2px var(--field-focus-ring);
  }

  .aurora-text-wrap__ghost {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    overflow: hidden;
    pointer-events: none;
    color: var(--text-muted);
    opacity: 0.72;
  }

  .aurora-text-wrap > .field__input {
    position: relative;
    z-index: 1;
    width: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    resize: vertical;
  }

  .aurora-text-wrap > .field__input:focus {
    box-shadow: none;
  }

  .aurora-text-wrap__input--ghost {
    color: transparent;
    caret-color: var(--text);
  }

  .aurora-text-wrap__input--ghost::placeholder {
    color: transparent;
  }
}

@media (max-width: 768px) {
  .aurora-widget {
    display: none !important;
  }
}