:root {
  --bg1: #2b4f9e;
  --bg2: #3c74c6;
  --panel: rgba(255, 255, 255, 0.85);
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(30, 50, 80, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
  --text: #10213c;
  --muted: rgba(16, 33, 60, 0.65);
  --primary: #1d6fd6;
  --primary-strong: #155bb3;
  --danger: #d63a3a;
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body.dark {
  --bg1: #0a1224;
  --bg2: #101d3a;
  --panel: rgba(10, 18, 36, 0.72);
  --card: rgba(16, 29, 58, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.35);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 15%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

body.signedOutView {
  background: #ffffff;
}

body.dark .boardItem {
  background: rgba(16, 29, 58, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark .boardItem:hover {
  background: rgba(16, 29, 58, 0.72);
}
body.dark .column {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 29, 58, 0.48);
}
body.dark .taskCard {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 29, 58, 0.70);
}
body.dark .filterPill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 29, 58, 0.62);
}
body.dark .filterLabel {
  color: rgba(255, 255, 255, 0.65);
}

#app {
  height: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 49px 1fr;
  gap: 14px;
  padding: 14px;
}

body.sidebarCollapsed #app {
  grid-template-columns: 64px 1fr;
}

body.portalView #app {
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0;
}

body.portalView .panel.main {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Global Admin Portal (page) */
.portalPage {
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.portalSidebar {
  background: radial-gradient(900px 460px at 20% 0%, rgba(29, 111, 214, 0.10), transparent 55%),
    rgba(255, 255, 255, 0.60);
  border-right: 1px solid rgba(16, 33, 60, 0.10);
  backdrop-filter: blur(12px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portalSearch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(16, 33, 60, 0.12);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}
.portalSearchInput {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  width: 100%;
  font-weight: 800;
  color: rgba(16, 33, 60, 0.86);
}
.portalSearchInput::placeholder {
  color: rgba(16, 33, 60, 0.45);
}
.portalNav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.portalNavBtn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 12px 12px;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.86);
}
.portalNavBtn:hover {
  background: rgba(255, 255, 255, 0.65);
}
.portalNavBtn.active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 33, 60, 0.10);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}
.portalNavIcon {
  width: 22px;
  height: 22px;
  color: rgba(16, 33, 60, 0.65);
}
.portalNavBtn.active .portalNavIcon {
  color: rgba(16, 33, 60, 0.80);
}
.portalMain {
  background: radial-gradient(1100px 700px at 10% 0%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.20)),
    rgba(255, 255, 255, 0.10);
  padding: 22px 26px 26px;
  overflow: auto;
}
.portalTitle {
  font-size: 34px;
  font-weight: 980;
  letter-spacing: -0.03em;
  color: rgba(16, 33, 60, 0.92);
}
.portalPills {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.portalPill {
  border: 1px solid rgba(16, 33, 60, 0.12);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.80);
}
.portalPill:hover {
  background: rgba(255, 255, 255, 0.82);
}
.portalPill.active {
  background: rgba(29, 111, 214, 0.16);
  border-color: rgba(29, 111, 214, 0.25);
  color: rgba(16, 33, 60, 0.92);
}
.portalContent {
  margin-top: 18px;
}
.portalList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portalCard {
  background: radial-gradient(900px 200px at 20% 0%, rgba(29, 111, 214, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 60, 0.12);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.portalCard.clickable {
  cursor: pointer;
}
.portalCard.clickable:hover {
  background: radial-gradient(900px 200px at 20% 0%, rgba(29, 111, 214, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.10);
}
.portalCardMain {
  min-width: 0;
}
.portalCardTitle {
  font-size: 16px;
  font-weight: 980;
  letter-spacing: -0.02em;
  color: rgba(16, 33, 60, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portalCardMeta {
  margin-top: 6px;
  color: rgba(16, 33, 60, 0.62);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.portalCardActions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.portalDeleteBtn {
  height: 40px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(214, 58, 58, 0.10);
  border: 1px solid rgba(214, 58, 58, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(214, 58, 58, 0.85);
  font: inherit;
  font-weight: 950;
  font-size: 12px;
}
.portalDeleteBtn:hover {
  background: rgba(214, 58, 58, 0.14);
}
.portalDeleteBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.portalTrash {
  width: 20px;
  height: 20px;
}
.portalCardEnd {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(29, 111, 214, 0.10);
  border: 1px solid rgba(29, 111, 214, 0.16);
}
.portalChevron {
  width: 22px;
  height: 22px;
  color: rgba(29, 111, 214, 0.85);
}
.portalDetailTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.portalDetailTitle {
  font-size: 28px;
  font-weight: 980;
  letter-spacing: -0.02em;
}
.portalDetailActions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.portalSubtle {
  color: rgba(16, 33, 60, 0.62);
  font-weight: 850;
}

@media (max-width: 980px) {
  .portalPage {
    grid-template-columns: 1fr;
  }
  .portalSidebar {
    border-right: none;
    border-bottom: 1px solid rgba(16, 33, 60, 0.10);
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .portalNav {
    flex-direction: row;
    gap: 8px;
  }
  .portalNavBtn span {
    display: none;
  }
}
body.sidebarCollapsed .boardLabelText {
  display: none;
}
body.sidebarCollapsed .sidebarTitleText {
  display: none;
}
body.sidebarCollapsed .sidebarHeaderActions {
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
body.sidebarCollapsed .sidebarTitle {
  display: none;
}
body.sidebarCollapsed .sidebarHeader {
  justify-content: center;
}
body.sidebarCollapsed .sidebarBody {
  display: flex;
  padding: 8px 6px;
}
body.sidebarCollapsed .sidebarTimerCard {
  display: none;
}
body.sidebarCollapsed .boardItem {
  justify-content: center;
  padding: 10px 8px;
}
body.sidebarCollapsed .boardItem .muted {
  display: none;
}
body.sidebarCollapsed .sidebarHeader {
  padding: 12px 10px;
}
body.sidebarCollapsed .boardIcon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(16, 33, 60, 0.85);
}
body.sidebarCollapsed .boardName {
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}
body.sidebarCollapsed .boardIndicators {
  position: absolute;
  top: -2px;
  right: -2px;
  margin-left: 0;
}
body.sidebarCollapsed .boardActiveIcon {
  width: 8px;
  height: 8px;
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  font-size: 22px;
}

.brandBadge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(29, 111, 214, 0.9), rgba(214, 58, 58, 0.85));
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brandBadge svg {
  width: 18px;
  height: 18px;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profileWrap {
  position: relative;
  display: flex;
  align-items: center;
}
.profileWrap .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: radial-gradient(800px 240px at 50% 0%, rgba(29, 111, 214, 0.12), transparent 55%), rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  padding: 8px;
  display: none;
  z-index: 200;
}
.profileWrap.open .menu {
  display: block;
}
.menuItem {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  font-weight: 850;
  font-size: 13px;
  color: rgba(16, 33, 60, 0.88);
}
.menuItem:hover {
  background: rgba(29, 111, 214, 0.12);
}
.menuItem.danger:hover {
  background: rgba(214, 58, 58, 0.1);
}

/* Fullscreen focus timer */
.dialog.focusTimerDialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: 0;
}
.dialog.focusTimerDialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
}
.dialog.focusTimerDialog .dialogShell {
  width: 100%;
  height: 100%;
  min-height: unset;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 520px at 20% 0%, rgba(29, 111, 214, 0.12), transparent 55%),
    radial-gradient(1200px 520px at 80% 0%, rgba(64, 190, 140, 0.12), transparent 55%),
    rgba(245, 248, 252, 0.98);
}
.dialog.focusTimerDialog.focusing .dialogShell {
  background: radial-gradient(1200px 520px at 20% 0%, rgba(64, 190, 140, 0.22), transparent 58%),
    radial-gradient(1200px 520px at 80% 0%, rgba(64, 190, 140, 0.14), transparent 58%),
    rgba(245, 248, 252, 0.98);
}
.dialog.focusTimerDialog .dialogHeader {
  background: transparent;
  border-bottom: 1px solid rgba(16, 33, 60, 0.14);
}
.dialog.focusTimerDialog .dialogBody {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}
.dialog.focusTimerDialog .focusTimerContext {
  text-align: center;
  max-width: 980px;
}
.dialog.focusTimerDialog .focusTimerContextBoard {
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 980;
  letter-spacing: -0.04em;
  color: rgba(16, 33, 60, 0.92);
}
.dialog.focusTimerDialog .focusTimerContextTask {
  margin-top: 8px;
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(16, 33, 60, 0.68);
}
.dialog.focusTimerDialog .focusTimerMode {
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 33, 60, 0.62);
}
.dialog.focusTimerDialog.focusing .focusTimerMode {
  color: rgba(46, 166, 118, 0.95);
}
.dialog.focusTimerDialog .focusTimerBig {
  margin-top: 10px;
  font-size: clamp(72px, 14vw, 170px);
  font-weight: 980;
  letter-spacing: -0.06em;
  color: rgba(16, 33, 60, 0.96);
}
.dialog.focusTimerDialog .focusTimerMeta {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  max-width: 900px;
  color: rgba(16, 33, 60, 0.68);
}
.dialog.focusTimerDialog .focusTimerToggleBtn {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
  min-width: min(420px, calc(100vw - 48px));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}
.dialog.focusTimerDialog.focusing .btn.primary {
  background: rgba(64, 190, 140, 0.95);
  border-color: rgba(64, 190, 140, 0.95);
  color: white;
}
.dialog.focusTimerDialog.focusing .btn.primary:hover {
  background: rgba(46, 166, 118, 0.98);
}

.tabRow {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tab {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 850;
}
.tab.active {
  background: rgba(29, 111, 214, 0.14);
  border-color: rgba(29, 111, 214, 0.35);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 33, 60, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 10px;
  border-radius: 999px;
  min-width: 280px;
}
.searchIcon {
  color: rgba(255, 255, 255, 0.95);
  font-size: 31px;
  line-height: 1;
}
.search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: rgba(255, 255, 255, 0.98);
  font-size: 16px;
  font-weight: 850;
}
.search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.iconButton {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.iconButton:hover {
  background: rgba(255, 255, 255, 0.92);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel.main {
  background: var(--panel);
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 30;
}
.sidebarHandle {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 60, 0.16);
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}
.sidebarHandle:hover {
  background: rgba(255, 255, 255, 0.92);
}
.rightbar {
  position: relative;
  z-index: 10;
}

.sidebarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebarHeaderActions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sidebarFullToggle {
  width: 100%;
  height: 22px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 0 0;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.78);
  position: sticky;
  top: 0;
  z-index: 50;
}
.sidebarFullToggle:hover {
  background: rgba(255, 255, 255, 0.80);
}
.sidebarToggleIcon {
  display: block;
  width: 22px;
  height: 22px;
  transform: translateX(2px);
  color: rgba(16, 33, 60, 0.80);
}
body.dark .sidebarFullToggle {
  background: rgba(16, 29, 58, 0.55);
}
body.dark .sidebarFullToggle:hover {
  background: rgba(16, 29, 58, 0.72);
}
body.dark .sidebarToggleIcon {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
}

.sidebarTimerCard {
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(245, 248, 252, 0.95);
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  margin: -12px 0 0;
}
.sidebarTimerCard.focusing {
  border-color: rgba(64, 190, 140, 0.45);
  background: rgba(64, 190, 140, 0.14);
}
.sidebarTimerHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sidebarTimerTitle {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(16, 33, 60, 0.92);
}
.sidebarTimerBig {
  margin-top: 8px;
  text-align: center;
  font-size: 44px;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: rgba(16, 33, 60, 0.96);
}
.sidebar .sidebarTimerCard .muted {
  color: rgba(16, 33, 60, 0.6);
}
.sidebar .sidebarTimerCard .btn.primary {
  background: rgba(29, 111, 214, 0.95);
  border-color: rgba(29, 111, 214, 0.95);
  color: white;
}
.sidebar .sidebarTimerCard .btn.primary:hover {
  background: rgba(21, 91, 179, 0.96);
}
.sidebar .sidebarTimerCard.focusing .btn.primary {
  background: rgba(64, 190, 140, 0.95);
  border-color: rgba(64, 190, 140, 0.95);
}
.sidebar .sidebarTimerCard.focusing .btn.primary:hover {
  background: rgba(46, 166, 118, 0.98);
}

.sidebarTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
body.sidebarCollapsed .sidebarTitle {
  display: flex;
}

.errorText {
  margin-top: 8px;
  color: rgba(206, 41, 68, 0.92);
  font-weight: 800;
}

input[aria-invalid="true"] {
  border-color: rgba(206, 41, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(206, 41, 68, 0.10);
}

.sidebarCollapsedTimer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 60, 0.16);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  font-weight: 950;
  color: rgba(16, 33, 60, 0.9);
}
body.sidebarCollapsed .sidebarCollapsedTimer {
  display: inline-flex;
}

.sidebarBody {
  padding: 10px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  flex: 1;
}
.boardDropIndicator {
  height: 0;
  border-top: 3px solid rgba(29, 111, 214, 0.95);
  border-radius: 3px;
  box-shadow: 0 10px 22px rgba(29, 111, 214, 0.22);
  margin: 2px 6px;
  pointer-events: none;
}
.boardItem.dragging {
  opacity: 0.55;
}

.boardSettingsLayout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
}
.boardSettingsTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.boardSettingsTabs.vertical {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.boardSettingsPanels {
  min-width: 0;
}
.boardSettingsTab {
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.70);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.84);
  text-align: left;
}
.boardSettingsTab:hover {
  background: rgba(255, 255, 255, 0.92);
}
.boardSettingsTab.active {
  background: rgba(29, 111, 214, 0.14);
  border-color: rgba(29, 111, 214, 0.24);
  color: rgba(16, 33, 60, 0.92);
}
.boardSettingsPanel .adminList {
  margin-top: 0;
}

@media (max-width: 720px) {
  .boardSettingsLayout {
    grid-template-columns: 1fr;
  }
  .boardSettingsTabs.vertical {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .boardSettingsTab {
    text-align: center;
  }
}
.sidebarCreateRow {
  padding: 10px;
}
.sidebarCreateBtn {
  width: 100%;
}
body.sidebarCollapsed .sidebarCreateRow {
  display: none;
}

.boardItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.boardItem.active {
  background: rgba(29, 111, 214, 0.12);
  border-color: rgba(29, 111, 214, 0.35);
}
.boardItem.running {
  border-color: rgba(64, 190, 140, 0.55);
  background: rgba(64, 190, 140, 0.08);
  box-shadow: 0 14px 30px rgba(64, 190, 140, 0.14);
}
.boardItem:hover {
  background: rgba(255, 255, 255, 0.92);
}
.boardItem.active:hover {
  background: rgba(29, 111, 214, 0.12);
}
.boardItem.running:hover {
  background: rgba(64, 190, 140, 0.08);
}

.boardActions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  flex: 0 0 auto;
}
.boardActiveIcon {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.95);
  box-shadow: 0 10px 22px rgba(29, 111, 214, 0.22);
}
.boardItem:hover .boardActions {
  opacity: 1;
  pointer-events: auto;
}
body.sidebarCollapsed .boardActions {
  display: none;
}

.boardName {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  flex: 1;
  min-width: 0;
}
.boardLabelText {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.boardIndicators {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}
.boardIcon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: none;
  place-items: center;
  background: rgba(16, 33, 60, 0.10);
  border: 1px solid rgba(16, 33, 60, 0.16);
  font-weight: 950;
  color: rgba(16, 33, 60, 0.7);
  font-size: 12px;
  letter-spacing: -0.02em;
}
body.sidebarCollapsed .boardIcon {
  display: grid;
}

.main {
  grid-column: 2;
  grid-row: 2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 8px;
  border-bottom: 1px solid var(--border);
}

.boardTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 23px;
}
.boardTitle input {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.boardTitle .textInput {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}
.boardTitle .textInput:focus {
  border-color: rgba(29, 111, 214, 0.35);
  background: rgba(255, 255, 255, 0.5);
  padding-left: 10px;
}

.boardTools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filterPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}
.filterLabel {
  font-size: 12px;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.6);
}
.filterPill .select.compact {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: auto;
  box-shadow: none;
}
.filterPill .filterTextInput {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 140px;
  box-shadow: none;
  outline: none;
  font: inherit;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.88);
}
.filterPill .filterTextInput::placeholder {
  color: rgba(16, 33, 60, 0.40);
}
.filterPill .select.compact:focus {
  outline: none;
}

.filtersWrap {
  position: relative;
  display: inline-flex;
}
.filtersBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.78);
}
.filtersBtn:hover {
  background: rgba(255, 255, 255, 1);
}
.filtersBtnIcon {
  font-weight: 950;
  opacity: 0.85;
}
.filtersBtnCaret {
  opacity: 0.7;
  font-size: 12px;
  margin-left: 2px;
}
.filtersDropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: radial-gradient(900px 260px at 50% 0%, rgba(29, 111, 214, 0.12), transparent 55%), rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  padding: 10px;
  z-index: 120;
}
.filtersWrap.open .filtersDropdown {
  display: block;
}
.filtersDropdownHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px 8px;
  border-bottom: 1px solid rgba(16, 33, 60, 0.10);
  margin-bottom: 10px;
}
.filtersDropdownTitle {
  font-weight: 950;
  letter-spacing: -0.02em;
}
.filtersClearBtn {
  border: none;
  background: transparent;
  color: rgba(29, 111, 214, 0.95);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.filtersClearBtn:hover {
  background: rgba(29, 111, 214, 0.10);
}
.filtersRow {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 14px;
}
.filtersRow:hover {
  background: rgba(16, 33, 60, 0.05);
}
.filtersRowLabel {
  font-weight: 950;
  color: rgba(16, 33, 60, 0.68);
}
.filtersDropdown .select.compact {
  width: 100%;
}

body.dark .filtersBtn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 29, 58, 0.62);
  color: rgba(255, 255, 255, 0.88);
}
body.dark .filtersBtn:hover {
  background: rgba(16, 29, 58, 0.78);
}
body.dark .filtersDropdown {
  border-color: rgba(255, 255, 255, 0.12);
  background: radial-gradient(900px 260px at 50% 0%, rgba(29, 111, 214, 0.18), transparent 55%), rgba(16, 29, 58, 0.92);
}
body.dark .filtersRow:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.dark .filtersRowLabel {
  color: rgba(255, 255, 255, 0.72);
}
.boardPresence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.boardPresenceLabel {
  font-weight: 900;
}
.boardPresenceAvatars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.presenceAvatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.16);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}
.presenceMore {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.16);
  background: rgba(16, 33, 60, 0.08);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.65);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.select,
.textInput,
.textArea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
  font: inherit;
}
.select.compact {
  width: auto;
  padding: 8px 10px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}
.boardHeader .select.compact {
  border-color: rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(16, 33, 60, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  font-weight: 850;
}
.textInput.small {
  padding: 7px 9px;
  border-radius: 9px;
}
.textArea {
  resize: vertical;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.92);
}
.btn.primary {
  background: rgba(29, 111, 214, 0.92);
  border-color: rgba(29, 111, 214, 0.92);
  color: white;
}
.btn.primary:hover {
  background: rgba(21, 91, 179, 0.96);
}
.btn.danger {
  background: rgba(214, 58, 58, 0.92);
  border-color: rgba(214, 58, 58, 0.92);
  color: white;
}
.btn.danger:hover {
  background: rgba(186, 41, 41, 0.96);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.86);
}
.btn.ghost {
  background: transparent;
}

.muted {
  color: var(--muted);
  font-size: 12.5px;
}

.boardGrid {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
  align-content: start;
  overflow: auto;
  padding: 10px;
}

.addColumnTile {
  border: 2px dashed rgba(16, 33, 60, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding: 6px 8px;
  min-height: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.addColumnBtn {
  font-weight: 950;
  width: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 6px 10px;
}
body.dark .addColumnBtn {
  background: transparent;
}
body.dark .addColumnTile {
  background: rgba(16, 29, 58, 0.50);
  border-color: rgba(255, 255, 255, 0.16);
}

.column {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  padding: 10px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  align-self: start;
}
.column.dragging {
  opacity: 0.65;
}
.column.dropBefore::before,
.column.dropAfter::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.85);
  box-shadow: 0 0 0 4px rgba(29, 111, 214, 0.12);
}
.column.dropBefore::before {
  left: -8px;
}
.column.dropAfter::before {
  right: -8px;
}

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

.colMenuBtn {
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.7);
}
.colMenuBtn:hover {
  background: rgba(16, 33, 60, 0.08);
}

.colName {
  font-weight: 900;
  letter-spacing: -0.02em;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 50px;
  position: relative;
  flex: 1 1 auto;
}

.addCardBtn {
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 10px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.75);
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.addCardBtn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: rgba(16, 33, 60, 0.92);
}

.taskCard {
  padding: 10px 10px 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  position: relative;
}
.taskCardFooter {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.taskPomodoroCount {
  position: static;
}
.taskCardAssignees {
  position: static;
}
.taskCardAssignees .assigneeAvatar {
  margin-left: -8px;
}
.taskCardAssignees .assigneeAvatar:first-child {
  margin-left: 0;
}
.taskTimerBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.16);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  padding: 0;
  overflow: hidden;
}
.taskDialogTimerBtn {
  position: static;
  top: auto;
  right: auto;
}
.taskTimerIcon {
  font-size: 16px;
  line-height: 1;
}
.taskTimerBtn:hover {
  background: rgba(255, 255, 255, 1);
}
.taskCard.running .taskTimerBtn {
  border-color: rgba(64, 190, 140, 0.55);
  background: rgba(64, 190, 140, 0.12);
}
.taskCard.running .taskTimerBtn:hover {
  background: rgba(64, 190, 140, 0.18);
}
.taskCard.running {
  border-color: rgba(64, 190, 140, 0.65);
  background: rgba(64, 190, 140, 0.07);
  box-shadow: 0 14px 34px rgba(64, 190, 140, 0.18);
}
.taskCard.completed {
  opacity: 0.72;
  filter: saturate(0.9);
}
.taskCard.completed .taskTitle {
  text-decoration: line-through;
  color: rgba(16, 33, 60, 0.65);
}
.taskCard:hover {
  transform: translateY(-1px);
}
.taskCard.dropBefore,
.taskCard.dropAfter {
  position: relative;
}
.taskCard.dropBefore::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -7px;
  height: 5px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.95);
  box-shadow: 0 10px 24px rgba(29, 111, 214, 0.18);
}
.taskCard.dropAfter::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 5px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.95);
  box-shadow: 0 10px 24px rgba(29, 111, 214, 0.18);
}
.tasks.dropEnd::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 5px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.95);
  box-shadow: 0 10px 24px rgba(29, 111, 214, 0.18);
}
.taskTitleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-right: 44px;
}
.taskCardTags {
  margin-bottom: 4px;
}
.showCompletedText {
  border: none;
  background: transparent;
  padding: 6px 2px 2px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  color: rgba(16, 33, 60, 0.58);
  cursor: pointer;
}
.showCompletedText:hover {
  color: rgba(16, 33, 60, 0.85);
  text-decoration: underline;
}
.taskTitle {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.estimateBadge {
  min-width: 28px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: rgba(29, 111, 214, 0.95);
}
.taskMetaRow {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tagPill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 900;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.tomatoMini {
  font-size: 14px;
  letter-spacing: 1px;
}

.assignees {
  display: flex;
  align-items: center;
}
.assigneeAvatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-left: -6px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.rightbar {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.rightbar.collapsed {
  display: grid;
  place-items: center;
  padding: 0;
}

.rightbarHandle {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
}
body.rightbarCollapsed .rightbarHandle {
  padding: 0;
}

.rightCard {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: radial-gradient(600px 220px at 50% 0%, rgba(29, 111, 214, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.86);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
.rightCard.focusing {
  border-color: rgba(64, 190, 140, 0.45);
  background: radial-gradient(600px 220px at 50% 0%, rgba(64, 190, 140, 0.22), transparent 55%),
    rgba(255, 255, 255, 0.86);
}
.rightCard.focusing .btn.primary {
  background: rgba(64, 190, 140, 0.95);
  border-color: rgba(64, 190, 140, 0.95);
}
.rightCard.focusing .btn.primary:hover {
  background: rgba(46, 166, 118, 0.98);
}
.rightCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 10px;
}
.timerBig {
  font-size: 56px;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 8px 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.statsList {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.statRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
}
.progressBar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.progressFill {
  height: 100%;
  background: linear-gradient(90deg, rgba(29, 111, 214, 0.9), rgba(64, 190, 140, 0.9));
}
.progressBar.disabled {
  opacity: 0.8;
}
.progressBar.disabled .progressFill {
  background: rgba(16, 33, 60, 0.18);
}

.tomatoesRow {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-bottom: 10px;
  min-height: 26px;
}

.rowGap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.label {
  font-weight: 750;
  color: var(--muted);
  font-size: 12.5px;
}

.dialog {
  border: none;
  padding: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: min(860px, calc(100vw - 24px));
}
.dialog.smallDialog {
  width: min(520px, calc(100vw - 24px));
}
#settingsDialog.dialog.smallDialog {
  width: min(860px, calc(100vw - 24px));
}
#adminDialog.dialog.smallDialog {
  width: min(860px, calc(100vw - 24px));
}
#portalDialog.dialog {
  width: min(1040px, calc(100vw - 24px));
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
}
.dialogShell {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.dialogShell.small {
  min-height: unset;
}
.dialogHeader {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.dialogTitleRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dialogTitle {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.dialogMeta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.dialogBody {
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
}
.dialogCols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}
.dialogFooter {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Task dialog (modern) */
.taskDialog .dialogShell {
  min-height: 640px;
}
.taskDialog .taskHeader {
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px 10px 14px;
}
.taskHeaderTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.taskHeaderTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.taskHeaderTitleInput {
  width: 100%;
  min-width: 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 6px;
  border-radius: 14px;
  outline: none;
  color: var(--text);
}
.taskHeaderTitleInput:focus {
  border-color: rgba(29, 111, 214, 0.35);
  background: rgba(245, 248, 252, 0.95);
}
.taskHeaderMeta {
  margin-top: 6px;
  color: rgba(16, 33, 60, 0.65);
  font-size: 14px;
  font-weight: 700;
}
.taskHeaderTitleWrap {
  flex: 1;
  min-width: 0;
}
.taskHeaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.taskCloseBtn {
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  color: rgba(16, 33, 60, 0.7);
}
.taskCloseBtn:hover {
  background: rgba(16, 33, 60, 0.08);
}
.taskDialog .taskBody {
  background: rgba(245, 248, 252, 0.92);
  padding: 18px;
}
.taskTagsBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.75);
}
.taskTagsBarLabel {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(16, 33, 60, 0.75);
}
.taskTagsBarPills {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  padding: 2px 2px;
}
.taskTagPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 9px;
  font-weight: 900;
  white-space: nowrap;
}
.taskTagDot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.12);
}
.taskTagName {
  font-size: 13px;
}
.taskTagX {
  border: none;
  background: rgba(16, 33, 60, 0.08);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  color: rgba(16, 33, 60, 0.7);
}
.taskTagX:hover {
  background: rgba(16, 33, 60, 0.14);
  color: rgba(16, 33, 60, 0.9);
}
.taskTagsInput {
  flex: 0 1 190px;
  width: 190px;
  min-width: 140px;
  max-width: 220px;
}
.iconBtn {
  width: 44px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.assigneesPicker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.taskAssigneesPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.taskAssigneePill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  font-weight: 900;
  white-space: nowrap;
}
.taskAssigneeAvatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.72);
}
.taskAssigneeName {
  font-size: 13px;
}
.taskAssigneeX {
  border: none;
  background: rgba(16, 33, 60, 0.08);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  color: rgba(16, 33, 60, 0.7);
}
.taskAssigneeX:hover {
  background: rgba(16, 33, 60, 0.14);
  color: rgba(16, 33, 60, 0.9);
}
.taskAssigneesAddSelect {
  width: 100%;
}
.taskDialog .taskFooter {
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}
.taskFooterMeta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.taskFooterBoard {
  font-size: 13px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminLayout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: start;
}
.adminTabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.adminPanels {
  min-width: 0;
}
.adminTab {
  border: 1px solid rgba(16, 33, 60, 0.16);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  color: rgba(16, 33, 60, 0.75);
}
.adminTab.active {
  background: rgba(64, 190, 140, 0.12);
  border-color: rgba(64, 190, 140, 0.35);
  color: rgba(16, 33, 60, 0.92);
}
.adminList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adminSectionTitle {
  margin: 2px 0 8px;
  font-weight: 950;
  color: rgba(16, 33, 60, 0.7);
}
.adminBadge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 214, 0.12);
  border: 1px solid rgba(29, 111, 214, 0.25);
  color: rgba(16, 33, 60, 0.85);
  font-weight: 950;
  font-size: 12px;
}
.adminRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.92);
}
.adminRowMain {
  min-width: 0;
}
.adminRowTitle {
  font-weight: 950;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adminRowMeta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(16, 33, 60, 0.6);
}
.adminRowActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.adminColorSwatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(16, 33, 60, 0.16);
}
.adminColorInput {
  width: 120px;
}
.adminColorSelect {
  width: 160px;
}
.taskDialog .fieldLabel {
  font-size: 14px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.7);
}
.taskDialog .textInput,
.taskDialog .textArea,
.taskDialog .select {
  border: 1px solid rgba(16, 33, 60, 0.18);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 8px 12px;
}
.taskDialog .textInput,
.taskDialog .select {
  min-height: 38px;
}
.taskDialog .taskTagsInput {
  padding: 8px 10px;
  border-radius: 999px;
  width: 190px;
  min-height: 38px;
}
.taskDialog .textArea {
  border-radius: 16px;
}
.checklistAddRow {
  margin-bottom: 10px;
}
.taskDialog .sectionHeaderRow {
  margin-top: 8px;
  margin-bottom: 8px;
}
.taskDialog .sectionHeader {
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.modernCard {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 33, 60, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.modernCard .cardHeader.big {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.twoCol {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}
.labelStack {
  font-weight: 900;
  color: rgba(16, 33, 60, 0.65);
  line-height: 1.1;
}
.taskDialog .estimatePeople {
  margin-top: 12px;
}
.taskDialog .personRow {
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.95);
}
.taskDialog .checkItem {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
}
.taskDialog .checkText input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.checkTextLabel {
  flex: 1;
  font-size: 14px;
  font-weight: 750;
  color: rgba(16, 33, 60, 0.92);
  padding: 4px 6px;
  border-radius: 12px;
  cursor: text;
}
.checkTextLabel:hover {
  background: rgba(16, 33, 60, 0.05);
}
.checkEditInput {
  flex: 1;
}
.trashBtn {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(16, 33, 60, 0.45);
  font-size: 16px;
}
.trashBtn:hover {
  background: rgba(16, 33, 60, 0.06);
  color: rgba(16, 33, 60, 0.7);
}

.avatarPreview {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16, 33, 60, 0.18);
  background: rgba(255, 255, 255, 0.82);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Confirm dialog variants */
.modernDialog[data-variant="danger"] .dialogHeader {
  border-bottom: 1px solid rgba(214, 58, 58, 0.25);
}
.modernDialog[data-variant="danger"] .dialogTitle {
  color: rgba(214, 58, 58, 0.95);
}

/* Signed-out marketing experience */
body.signedOutView #app {
  grid-template-columns: 1fr;
  grid-template-rows: 72px 1fr;
  width: 100%;
  padding: 0;
  gap: 0;
}
body.signedOutView .topbar {
  grid-column: 1 / 2;
  padding: 12px 18px;
  background: #1d6fd6;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  position: sticky;
  top: 0;
}
body.signedOutView .topbar .brand {
  color: rgba(255, 255, 255, 0.98);
}
body.signedOutView .topbar .brandBeta {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}
body.signedOutView .topbar .btn.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.98);
}
body.signedOutView .topbar .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
body.signedOutView .topbar .btn.primary {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: rgba(20, 64, 116, 0.98);
}
body.signedOutView .topbar .btn.primary:hover {
  background: rgba(255, 255, 255, 1);
}
body.signedOutView .main {
  grid-column: 1 / 2;
}
.brandBeta {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}
.signedOutNav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signedOutNavLink {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.signedOutNavLink:hover {
  background: rgba(255, 255, 255, 0.16);
}
.signedOutNavLink.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.32);
}
.panel.main.landing {
  gap: 18px;
  padding: 0;
  overflow: auto;
}
.signedOutView .panel.main {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}
.landingHeroModern {
  border: none;
  border-radius: 0;
  padding: 64px 40px;
  background: radial-gradient(980px 320px at 10% 0%, rgba(64, 190, 140, 0.18), transparent 55%),
    radial-gradient(880px 300px at 90% 0%, rgba(29, 111, 214, 0.18), transparent 55%), rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}
.landingHeroCopy {
  display: flex;
  flex-direction: column;
}
.landingEyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.72);
  border: 1px solid rgba(16, 33, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
}
.landingH1 {
  margin: 12px 0 0 0;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 980;
  max-width: 760px;
}
.landingLead {
  margin-top: 14px;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(16, 33, 60, 0.72);
  max-width: 700px;
}
.landingCtaRow {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.landingMetricRow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.landingMetric {
  border: 1px solid rgba(16, 33, 60, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 12px;
}
.landingMetricValue {
  font-weight: 980;
  letter-spacing: -0.03em;
  font-size: 24px;
}
.landingMetricLabel {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(16, 33, 60, 0.64);
  font-weight: 750;
}
.landingHeroVisual {
  display: flex;
  align-items: stretch;
}
.landingImage {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(22, 40, 68, 0.2);
}
.landingTrustRow {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-top: 1px solid rgba(16, 33, 60, 0.12);
  border-bottom: 1px solid rgba(16, 33, 60, 0.12);
  background: rgba(255, 255, 255, 0.12);
}
.landingTrustLabel {
  font-weight: 900;
  font-size: 13px;
  color: rgba(16, 33, 60, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.landingTrustItems {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.landingTrustItems span {
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.14);
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(16, 33, 60, 0.8);
}
.landingSectionModern {
  padding: 38px 40px;
}
.landingSection {
  border: none;
  border-radius: 0;
  padding: 34px 40px;
  background: rgba(255, 255, 255, 0.06);
}
.landingSectionTitle {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.landingCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.landingCard {
  border: 1px solid rgba(16, 33, 60, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(22, 40, 68, 0.08);
  padding: 14px;
}
.landingCardImage {
  width: 100%;
  height: 148px;
  border-radius: 12px;
  border: 1px solid rgba(16, 33, 60, 0.12);
  object-fit: cover;
  background: rgba(245, 248, 252, 0.9);
}
.landingCard h3 {
  margin: 12px 0 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.landingCard p {
  margin: 10px 0 2px 0;
  color: rgba(16, 33, 60, 0.68);
  font-size: 14px;
  line-height: 1.55;
}
.landingCtaBand {
  margin: 8px 40px 0 40px;
  border-radius: 20px;
  padding: 36px;
  background: linear-gradient(120deg, rgba(29, 111, 214, 0.93), rgba(64, 190, 140, 0.88));
  color: #f8fbff;
  box-shadow: 0 18px 46px rgba(22, 40, 68, 0.24);
}
.landingCtaBand h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.03em;
}
.landingCtaBand p {
  margin: 10px 0 0 0;
  font-size: 16px;
  opacity: 0.95;
}
.landingCtaBand .landingCtaRow {
  margin-top: 16px;
}
.landingCtaBand .btn.primary {
  background: #f8fbff;
  border-color: #f8fbff;
  color: rgba(20, 64, 116, 0.98);
}
.landingCtaBand .btn.primary:hover {
  background: #eaf3ff;
  border-color: #eaf3ff;
}
.landingQuote {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 34px 24px;
}
.landingQuoteMark {
  font-size: 34px;
  line-height: 1;
  color: rgba(29, 111, 214, 0.75);
}
.landingQuote p {
  margin: 6px 0 0 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 760;
  color: rgba(16, 33, 60, 0.86);
}
.landingQuoteByline {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(16, 33, 60, 0.62);
  font-weight: 760;
}
.landingFooter {
  border: none;
  border-radius: 0;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.06);
}
.landingFooterCols {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.landingFooterBrand {
  font-size: 18px;
  font-weight: 940;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.landingFooterLinks {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landingFooterLinks a {
  text-decoration: none;
  color: rgba(16, 33, 60, 0.84);
  font-size: 13px;
  font-weight: 850;
}
.landingFooterBottom {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 33, 60, 0.12);
}
.legalPage {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 72px);
}
.legalPage .landingFooter {
  margin-top: auto;
}
.legalHero {
  border: none;
  border-radius: 0;
  background: radial-gradient(900px 260px at 20% 0%, rgba(29, 111, 214, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.06);
  padding: 46px 24px;
}
.legalSection {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 26px 24px;
}
.legalSection h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legalSection p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(16, 33, 60, 0.72);
}

@media (max-width: 1100px) {
  .landingHeroModern {
    grid-template-columns: 1fr;
    padding: 44px 24px;
  }
  .landingCards {
    grid-template-columns: 1fr 1fr;
  }
  .landingSection,
  .landingSectionModern,
  .landingTrustRow,
  .landingFooter {
    padding-left: 24px;
    padding-right: 24px;
  }
  .landingCtaBand {
    margin-left: 24px;
    margin-right: 24px;
  }
  .landingH1 {
    font-size: 44px;
  }
}

@media (max-width: 780px) {
  body.signedOutView #app {
    grid-template-rows: 88px 1fr;
    padding: 10px;
  }
  body.signedOutView .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .signedOutNav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .landingH1 {
    font-size: 34px;
  }
  .landingLead {
    font-size: 16px;
  }
  .landingTrustRow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .landingMetricRow {
    grid-template-columns: 1fr;
  }
  .landingCards {
    grid-template-columns: 1fr;
  }
  .landingSectionTitle {
    font-size: 25px;
  }
  .landingCtaBand {
    margin: 8px 14px 0 14px;
    padding: 22px;
  }
  .landingCtaBand h2 {
    font-size: 28px;
  }
  .landingFooterCols {
    flex-direction: column;
    gap: 10px;
  }
}

/* Modern small dialogs (prompt/confirm/settings/profile/auth) */
.modernDialog .dialogHeader {
  padding: 18px 18px 14px 18px;
  background: rgba(255, 255, 255, 0.92);
}
.modernDialog .dialogBody {
  padding: 18px;
  background: rgba(245, 248, 252, 0.92);
}
.modernDialog .dialogFooter {
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}
.modernDialog .dialogTitle {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.modernDialog .fieldLabel {
  font-size: 13px;
  font-weight: 900;
  color: rgba(16, 33, 60, 0.7);
}
.modernDialog .textInput,
.modernDialog .textArea,
.modernDialog .select {
  border: 1px solid rgba(16, 33, 60, 0.18);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 8px 12px;
}
.modernDialog .textInput,
.modernDialog .select {
  min-height: 38px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field.inline {
  flex-direction: row;
  align-items: center;
}
.fieldLabel {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  margin-bottom: 12px;
}
.cardHeader {
  font-weight: 950;
  margin-bottom: 8px;
}
.estimatePeople {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.personRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.82);
}
.personName {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}
.checkText {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkText input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.assigneesPicker,
.tagsPicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swipeWrap {
  position: relative;
  display: inline-block;
  --swipe-delete-w: 88px;
}
.swipeDeleteBtn {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: var(--swipe-delete-w);
  border: 1px solid rgba(214, 58, 58, 0.35);
  background: rgba(214, 58, 58, 0.92);
  color: white;
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.swipeWrap.open .swipeDeleteBtn {
  opacity: 1;
  pointer-events: auto;
}
.swipeWrap .chip.tagChip {
  position: relative;
  z-index: 2;
  transition: transform 140ms ease;
}
.swipeWrap.open .chip.tagChip {
  transform: translateX(calc(-1 * var(--swipe-delete-w)));
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 850;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
  user-select: none;
}
.chip:focus {
  outline: 2px solid rgba(29, 111, 214, 0.25);
  outline-offset: 2px;
}
.chipAvatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.chipDot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 60, 0.12);
}
.chipText {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.chipPlus {
  font-weight: 950;
  color: rgba(16, 33, 60, 0.55);
  line-height: 1;
}
.chipX {
  margin-left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(16, 33, 60, 0.08);
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  color: rgba(16, 33, 60, 0.65);
}
.chipX:hover {
  background: rgba(16, 33, 60, 0.12);
  color: rgba(16, 33, 60, 0.85);
}
.chip.off {
  background: rgba(255, 255, 255, 0.78);
}
.chip.off:hover {
  background: rgba(255, 255, 255, 0.92);
}
.chip.active {
  background: rgba(29, 111, 214, 0.12);
  border-color: rgba(29, 111, 214, 0.28);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}
.chip.add {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.7);
}
.chip.add:hover {
  background: rgba(255, 255, 255, 0.86);
}

.miniIcon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.miniIcon:hover {
  background: rgba(255, 255, 255, 0.98);
}
.pomodoroCount {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 1120px) {
  #app {
    grid-template-columns: 280px 1fr;
    grid-template-rows: 64px 1fr;
  }
	body.sidebarCollapsed #app {
	  grid-template-columns: 64px 1fr;
	}
  .topbar {
    grid-column: 1 / 3;
  }
}

@media (max-width: 860px) {
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: 64px auto 1fr;
  }
  body.sidebarCollapsed #app {
    grid-template-columns: 1fr;
  }
  .topbar {
    grid-column: 1;
  }
  .sidebar {
    grid-column: 1;
    grid-row: 2;
    max-height: 260px;
  }
  body.sidebarCollapsed .sidebar {
    max-height: 90px;
  }
  .main {
    grid-column: 1;
    grid-row: 3;
  }
  .dialogCols {
    grid-template-columns: 1fr;
  }
  .search {
    min-width: 160px;
  }
}
