/* Pomodoro Master styles */
html, body {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding-bottom: 0;
}
header {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  background: transparent !important;
  column-gap: 3rem;
  flex-wrap: nowrap;
  overflow-x: hidden;
}
.app-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 clamp(0.38rem, 1.1vw, 0.9rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1vw, 0.95rem);
  margin-top: clamp(0.72rem, 1.6vw, 1.1rem);
  margin-bottom: 0.48rem;
  overflow: visible;
  position: relative;
}
.header-title-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
header.dark-mode {
    background: transparent !important;
}
.site-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}
.site-title {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.19rem, 2.24vw, 1.79rem);
  min-width: max-content;
  max-width: 100vw;
  text-overflow: unset;
  overflow: visible;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0;
  color: #ffffff;
  font-weight: bold;
  background: transparent !important;
  transition: font-size 0.2s;
}
.site-title-word {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.37rem, 0.85vw, 0.6rem);
}
.site-title-pomodoro {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}
.site-title-master {
  display: inline-block;
}
.site-title-letter-icon {
  width: clamp(12px, 1.3vw, 17px);
  height: clamp(12px, 1.3vw, 17px);
  object-fit: contain;
  transform: translateY(1px);
}
.site-title-icon {
  width: clamp(17px, 1.85vw, 24px);
  height: clamp(17px, 1.85vw, 24px);
  object-fit: contain;
  flex: 0 0 auto;
}
.site-title.dark-mode {
    background: transparent !important;
}
.settings-btn,
.report-btn,
.login-btn {
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  padding: clamp(0.22rem, 0.52vw, 0.38rem) clamp(0.36rem, 0.9vw, 0.72rem);
  margin: 0 0.1rem;
  min-width: 0;
  max-width: none;
  flex-shrink: 1;
  flex-grow: 0;
  border: none;
  border-radius: 8px;
  background: var(--active-accent);
  color: var(--active-contrast);
  cursor: pointer;
  transition: font-size 0.2s, padding 0.2s;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}
.settings-btn:hover,
.report-btn:hover,
.login-btn:hover {
  background: var(--active-accent);
}
.settings-btn svg,
.report-btn svg,
.login-btn svg {
  width: clamp(11px, 1.25vw, 18px);
  height: clamp(11px, 1.25vw, 18px);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  justify-self: end;
  margin-left: auto;
  min-width: 0;
  gap: clamp(0.18rem, 0.5vw, 0.46rem);
  overflow: visible;
}
.header-actions > button {
  flex: 0 1 auto;
  min-width: 0;
}
.kanban-main-layout {
    --kanban-gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(0.38rem, 1.1vw, 0.9rem);
    display: flex;
    align-items: stretch;
    gap: var(--kanban-gap);
    flex: 1 1 auto;
    min-height: 0;
}
.board-ribbon {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    padding: 0.34rem clamp(0.5rem, 1.2vw, 1rem);
    margin-bottom: 0.42rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.58rem;
    background: #2c2f33;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
}
.auth-entry-banner {
    width: calc(100vw - clamp(1rem, 3vw, 2rem));
    max-width: 1180px;
    margin: 0 auto 0.5rem auto;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(20,24,29,0.95), rgba(34,39,45,0.95));
    color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.6rem 0.74rem;
}
.auth-entry-banner-copy {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    text-align: center;
}
.auth-entry-banner-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.24;
}
.auth-entry-banner-text {
    margin: 0;
    font-size: 0.72rem;
    color: #d1d5db;
    line-height: 1.28;
}
.auth-entry-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.24rem;
}
.auth-entry-banner-btn {
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.28);
    padding: 0.34rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    color: #f8fafc;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
}
.auth-entry-banner-btn:hover,
.auth-entry-banner-btn:focus-visible {
    background: rgba(255,255,255,0.13);
}
.auth-entry-banner-btn-ghost {
    color: #e5e7eb;
}
.auth-entry-banner-btn-accent {
    border-color: var(--active-accent-soft-border);
    background: var(--active-accent);
    color: var(--active-contrast);
}
.auth-entry-banner-btn-accent:hover,
.auth-entry-banner-btn-accent:focus-visible {
    filter: brightness(1.06);
}
.board-ribbon-left,
.board-ribbon-right {
    display: flex;
    align-items: center;
    gap: 0.36rem;
}
.board-ribbon-right {
    margin-left: auto;
}
.board-ribbon-board-btn {
    width: 34px;
    height: 34px;
}
.board-ribbon-board-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    max-width: min(42vw, 360px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.column-ribbon-icon-btn {
    position: relative;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
}
.column-ribbon-icon-btn:hover,
.column-ribbon-icon-btn:focus-visible {
    background: rgba(255,255,255,0.16);
}
.column-ribbon-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-4px);
    background: rgba(12, 16, 20, 0.96);
    color: #f3f4f6;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.48rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.column-ribbon-icon-btn:hover::after,
.column-ribbon-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.main-timer-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(0.38rem, 1.1vw, 0.9rem);
    margin: 0 0 0.32rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.main-timer-row > .main-timer-card {
    grid-column: 2;
    justify-self: center;
}
.container {
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 430px;
    width: 100%;
}
.main-timer-card {
    margin: 0 !important;
    width: min(322px, 27vw) !important;
    max-width: min(322px, 27vw) !important;
    min-width: 224px;
    padding: 0.5rem 0.62rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
}
.main-timer-card .mode-buttons {
    margin: 0 0 0.08rem 0 !important;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.24rem;
    min-width: 0;
    overflow-x: visible;
}
.main-timer-card .mode-buttons::-webkit-scrollbar {
    display: none;
}
.main-timer-card .mode-buttons button {
    font-size: 0.64rem;
    padding: 0.2rem 0.46rem;
    margin: 0;
    flex: 0 0 auto;
}
.main-timer-card #timer {
    font-size: clamp(1.35rem, 2.3vw, 1.95rem);
    margin: 0.06rem 0;
    line-height: 1;
    white-space: nowrap;
}
.main-timer-card .buttons {
    margin: 0.06rem 0 0 0 !important;
}
.main-timer-card .buttons button {
    font-size: 0.67rem;
    padding: 0.24rem 0.62rem;
}
.main-timer-card .timer-complete-count {
    margin: 0.03rem 0 0 0 !important;
    font-size: 0.66rem !important;
    text-align: center;
    line-height: 1.2;
}
@media (max-width: 1240px) {
  .main-timer-card {
    width: min(301px, 31vw) !important;
    max-width: min(301px, 31vw) !important;
    min-width: 210px;
  }
}
@media (max-width: 980px) {
  .main-timer-card {
    width: min(364px, 66vw) !important;
    max-width: min(364px, 66vw) !important;
    min-width: 0;
  }
}
.mode-buttons {
    margin-bottom: 0.75rem;
}
.mode-buttons button {
    font-size: 0.82rem;
    padding: 0.35rem 0.8rem;
    margin: 0 0.3rem;
    border: none;
    border-radius: 8px;
    background: var(--active-accent);
    color: var(--active-contrast);
    cursor: pointer;
    transition: background 0.2s;
}
.mode-buttons button:hover {
    background: var(--active-accent);
}
#timer {
    font-size: clamp(2.3rem, 5.5vw, 3.1rem);
    margin-bottom: 0.95rem;
    color: #333;
}
.buttons button {
    font-size: 0.82rem;
    padding: 0.45rem 0.95rem;
    border: none;
    border-radius: 8px;
    background: var(--active-accent);
    color: var(--active-contrast);
    cursor: pointer;
    transition: background 0.2s;
}
.buttons button:hover {
    background: var(--active-accent);
}
.todo-section {
    margin-top: 0.9rem;
    max-width: 430px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.kanban-swimlane-stack {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.55rem;
}
.kanban-swimlane-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 0;
}
.kanban-swimlane-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(17,20,24,0.45);
    color: #e5e7eb;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.52rem;
}
.kanban-board {
    --kanban-gap: 0.75rem;
    width: 100%;
    margin-top: 0.24rem;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--kanban-gap);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    box-sizing: border-box;
    padding-bottom: 0;
}
.kanban-column {
    max-width: none;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    container-type: inline-size;
    margin-top: 0 !important;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pomodoro-lane-stack {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.kanban-board > .kanban-column,
.kanban-board > .pomodoro-lane-stack {
    flex: 1 1 0;
    max-width: none;
    height: 100%;
}
.kanban-board > .kanban-column:not(.is-collapsed),
.kanban-board > .pomodoro-lane-stack:not(.is-collapsed) {
    /* Force equal width for every expanded column, regardless of content length. */
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
}
.kanban-board.preserve-width-on-collapse > .kanban-column:not(.is-collapsed),
.kanban-board.preserve-width-on-collapse > .pomodoro-lane-stack:not(.is-collapsed) {
    /* In multi-swimlane mode, keep expanded siblings fixed when one column collapses. */
    flex: 0 0 calc(
      (100% - (var(--kanban-gap) * (var(--kanban-column-count, 1) - 1))) /
        var(--kanban-column-count, 1)
    );
    width: calc(
      (100% - (var(--kanban-gap) * (var(--kanban-column-count, 1) - 1))) /
        var(--kanban-column-count, 1)
    );
    max-width: calc(
      (100% - (var(--kanban-gap) * (var(--kanban-column-count, 1) - 1))) /
        var(--kanban-column-count, 1)
    );
}
.pomodoro-lane-stack.is-collapsed {
    flex: 0 0 42px;
    min-width: 42px;
    max-width: 42px;
}
.pomodoro-lane-stack > .kanban-column {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
}
.pomodoro-lane-stack > .kanban-column.is-collapsed {
    flex: 1 1 auto;
    flex-basis: auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
}
.kanban-column.is-collapsed {
    flex: 0 0 42px;
    flex-basis: 42px;
    min-height: 210px;
    max-width: 42px;
    min-width: 42px;
    overflow: hidden;
    padding: 0.5rem 0.2rem;
}
.kanban-column.is-collapsed > div:first-child {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.34rem !important;
    margin-bottom: 0 !important;
    width: 100%;
}
.kanban-column.is-collapsed > div:first-child > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.34rem !important;
    margin-left: 0 !important;
    width: 100%;
}
.kanban-column.is-collapsed .pomodoro-column-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.34rem;
    margin-bottom: 0 !important;
    width: 100%;
}
.kanban-column.is-collapsed .pomodoro-column-header-controls {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.34rem;
    margin-left: 0;
    width: 100%;
}
.kanban-column.is-collapsed .kanban-add-task-btn,
.kanban-column.is-collapsed .kanban-completed-today-pill,
.kanban-column.is-collapsed .kanban-sort-control {
    display: none !important;
}
.kanban-column.is-collapsed .kanban-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1;
    letter-spacing: 0.04em;
    min-height: 0;
    text-align: center;
    padding-top: 0;
    margin: 0 auto;
}
.kanban-column.is-collapsed .kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    letter-spacing: 0.04em;
    font-size: 0.58rem;
    line-height: 1;
    color: #d1d5db;
}
.kanban-count {
    font-size: clamp(0.52rem, 4cqw, 0.72rem);
    color: #9ca3af;
    font-weight: 600;
    line-height: 1.05;
}
.kanban-sort-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    flex: 0 0 auto;
}
.kanban-sort-toggle {
    width: clamp(1rem, 8.2cqw, 1.42rem);
    height: clamp(1rem, 8.2cqw, 1.42rem);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    background: #15191d;
    color: #f3f4f6;
    font-size: clamp(0.62rem, 4.4cqw, 0.9rem);
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.kanban-sort-icon {
    width: clamp(0.62rem, 4.7cqw, 0.9rem);
    height: clamp(0.62rem, 4.7cqw, 0.9rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kanban-sort-icon svg {
    width: 100%;
    height: 100%;
}
.kanban-sort-toggle:hover,
.kanban-sort-control:focus-within .kanban-sort-toggle {
    border-color: var(--active-accent);
    color: var(--active-accent);
}
.kanban-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.08rem);
    min-width: min(12.8rem, 70vw);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(12,16,20,0.98);
    box-shadow: 0 10px 26px -16px rgba(0,0,0,0.72);
    display: flex;
    flex-direction: column;
    padding: 0.24rem;
    gap: 0.1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 40;
}
.kanban-sort-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.5rem;
    height: 0.5rem;
}
.kanban-sort-control:hover .kanban-sort-menu,
.kanban-sort-control:focus-within .kanban-sort-menu,
.kanban-sort-control.is-open .kanban-sort-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.kanban-sort-option {
    width: 100%;
    border: none;
    background: transparent;
    color: #f3f4f6;
    text-align: left;
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr);
    gap: 0.32rem;
    align-items: center;
    border-radius: 7px;
    padding: 0.24rem 0.34rem;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1.2;
}
.kanban-sort-option:hover,
.kanban-sort-option.is-active {
    background: rgba(255,255,255,0.1);
}
.kanban-sort-check {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--active-accent);
}
.kanban-sort-option-label {
    white-space: normal;
}
.kanban-add-task-btn {
    width: clamp(1rem, 8.2cqw, 1.48rem);
    height: clamp(1rem, 8.2cqw, 1.48rem);
    border-radius: 999px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #f9fafb;
    font-size: clamp(0.72rem, 5cqw, 1rem);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.kanban-add-task-btn:hover {
    background: var(--active-accent);
    color: var(--active-contrast);
}
.kanban-add-task-btn[data-tooltip] {
    position: relative;
}
.kanban-add-task-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(12,16,20,0.96);
    color: #f3f4f6;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.2rem 0.34rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 25;
}
.kanban-add-task-btn[data-tooltip]:hover::after,
.kanban-add-task-btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.pomodoro-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.pomodoro-column-header-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}
.pomodoro-column-full-split {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: 0.62rem;
    align-items: stretch;
}
.pomodoro-column-wrap-layout {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 40%);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 0.62rem;
    row-gap: 0;
    align-items: start;
}
.pomodoro-column-wrap-layout > .pomodoro-column-header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.42rem;
}
.pomodoro-column-wrap-layout > .pomodoro-column-timer-shell {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}
.pomodoro-column-wrap-layout > .pomodoro-column-top-task-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.pomodoro-column-wrap-layout > .pomodoro-column-task-body {
    grid-column: 1 / -1;
    grid-row: 3;
}
.pomodoro-column-left-pane {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.pomodoro-column-timer {
    margin-top: 0 !important;
    width: 100%;
    min-height: 0;
    container-type: inline-size;
    flex: 0 0 auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.18rem;
    padding: 0.34rem 0.5rem 0.46rem !important;
    max-width: none !important;
}
.pomodoro-column-timer.container.dark-mode {
    background: #414447 !important;
}
.pomodoro-column-task-body {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.pomodoro-column-task-body-full {
    width: 100%;
}
.pomodoro-inline-task-list {
    flex: 0 0 auto;
    overflow-y: visible;
}
.pomodoro-inline-task-list .kanban-action-list {
    margin-top: 0;
}
.pomodoro-column-wrap-layout > .pomodoro-column-task-body .kanban-action-list {
    margin-top: 0.34rem;
}
.pomodoro-column-timer-shell {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    margin-top: 0;
}
.pomodoro-column-timer .mode-buttons {
    --timer-btn-gap: 0.24rem;
    margin-bottom: 0.28rem !important;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--timer-btn-gap);
    flex-wrap: nowrap;
    container-type: inline-size;
}
.pomodoro-column-timer .mode-buttons button {
    width: 90%;
    justify-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.54rem, 4.2cqw, 1.03rem);
    padding: clamp(0.34rem, 0.7vw, 0.44rem) clamp(0.28rem, 0.8vw, 0.8rem);
    line-height: 1.15;
    margin: 0;
}
.pomodoro-column-timer #timer {
    font-size: clamp(2.88rem, 6.9vw, 3.88rem);
    margin: 0 0 0.54rem 0;
}
.pomodoro-column-timer .pomodoro-cycle-panel {
    width: 100%;
    margin: 0 0 0.3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}
.pomodoro-column-timer .pomodoro-cycle-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: clamp(0.52rem, 3.2cqw, 0.72rem);
    line-height: 1.2;
}
.pomodoro-column-timer .pomodoro-cycle-next {
    opacity: 0.8;
}
.pomodoro-column-timer .pomodoro-cycle-track {
    width: 100%;
    height: clamp(0.18rem, 1.5cqw, 0.34rem);
    border-radius: 999px;
    background: var(--active-accent-soft-bg, rgba(255,255,255,0.16));
    border: 1px solid var(--active-accent-soft-border, rgba(255,255,255,0.35));
    overflow: hidden;
}
.pomodoro-column-timer .pomodoro-cycle-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--active-accent), var(--active-accent-2));
    transition: width 0.22s ease;
}
.pomodoro-column-timer .buttons {
    margin: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
}
.pomodoro-column-timer .buttons button {
    width: min(100%, calc((100% - (var(--timer-btn-gap, 0.24rem) * 2)) * 0.3));
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(0.54rem, 4.2cqw, 1.03rem);
    padding: clamp(0.34rem, 0.7vw, 0.44rem) clamp(0.28rem, 0.8vw, 0.8rem);
    line-height: 1.15;
}
.pomodoro-column-timer .timer-complete-count {
    font-size: 0.72rem !important;
}
.kanban-column .todo-title.kanban-header-toggle {
    font-size: clamp(0.68rem, 7.4cqw, 1.125rem) !important;
}
.kanban-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
.kanban-header-toggle {
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
}
.pomodoro-spotlight-overlay {
    z-index: 11000;
}
.pomodoro-spotlight-shell {
    width: min(760px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem;
}
.spotlight-timer-card {
    margin: 0 !important;
    width: min(460px, 92vw) !important;
    max-width: min(460px, 92vw) !important;
}
.spotlight-pomodoro-column {
    margin-top: 0 !important;
    width: min(460px, 92vw) !important;
    min-height: 0;
    flex: 0 0 auto !important;
}
.drag-over-lane {
    border: 1px dashed var(--active-accent-soft-border, rgba(255,255,255,0.4));
    box-shadow: 0 0 0 1px var(--active-accent-soft-border, rgba(255,255,255,0.4));
}
.kanban-action-list {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}
.kanban-action-list li {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #f7f7f7;
    padding: 0.35rem 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    align-items: stretch;
}
.completed-group {
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    margin-bottom: 0.56rem;
}
.completed-group:last-child {
    margin-bottom: 0;
}
.completed-group-title {
    font-size: clamp(0.54rem, 4.1cqw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.completed-group-empty {
    font-size: clamp(0.5rem, 3.8cqw, 0.64rem);
    color: #9ca3af;
    line-height: 1.2;
}
.kanban-action-list li input[type="checkbox"] {
    margin-top: 0;
}
.task-line-row {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}
.task-inline-select-toggle {
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #f3f4f6;
    width: 1.12rem;
    height: 1.12rem;
    font-size: 0.68rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
}
.task-inline-select-toggle.is-selected {
    border-color: var(--active-accent);
    background: var(--active-accent-soft-bg, rgba(255,255,255,0.16));
}
.task-line-text-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}
.task-line-lane-label {
    color: #9ca3af;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.task-line-text {
    font-size: 0.8rem;
    line-height: 1.24;
    white-space: pre-wrap;
    word-break: break-word;
}
.task-meta-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
.task-meta-chip {
    min-height: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #d1d5db;
    padding: 0 0.34rem;
    font-size: 0.58rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
}
.task-priority-pill {
    min-width: 3.15rem;
    height: 1.08rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    letter-spacing: 0.01em;
}
.task-priority-pill.priority-urgent {
    background: #ef4444;
}
.task-priority-pill.priority-high {
    background: #f97316;
}
.task-priority-pill.priority-medium {
    background: #f59e0b;
}
.task-priority-pill.priority-low {
    background: #22c55e;
}
.task-meta-toggle {
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    background: transparent;
    color: #d1d5db;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    cursor: pointer;
}
.task-meta-toggle:hover {
    border-color: var(--active-accent);
    color: #f8fafc;
}
.task-meta-toggle.active {
    background: var(--active-accent-soft-bg, rgba(255,255,255,0.14));
    border-color: var(--active-accent-soft-border, rgba(255,255,255,0.38));
}
.task-inline-details {
    border-top: 1px dashed rgba(255,255,255,0.24);
    margin-top: 0.05rem;
    padding-top: 0.28rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.task-inline-detail-block {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}
.task-inline-detail-title {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
}
.task-inline-detail-text {
    font-size: 0.72rem;
    line-height: 1.34;
    color: #e5e7eb;
    white-space: pre-wrap;
}
.task-inline-subtasks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}
.task-inline-subtask {
    display: flex;
    align-items: flex-start;
    gap: 0.28rem;
    font-size: 0.72rem;
    color: #d1d5db;
    line-height: 1.28;
}
.task-inline-subtask.is-done {
    color: #9ca3af;
    text-decoration: line-through;
}
.task-inline-subtask-check {
    width: 0.8rem;
    text-align: center;
    flex: 0 0 0.8rem;
    font-weight: 700;
}
.task-inline-subtask-check-btn {
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    width: 1.22rem;
    height: 1.22rem;
    background: transparent;
    color: var(--active-accent);
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kanban-action-buttons {
    display: flex;
    gap: 0.22rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.kanban-action-buttons button {
    border: 1px solid #ffffff;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-size: 0.6rem;
    padding: 0.12rem 0.3rem;
    cursor: pointer;
}
.kanban-action-buttons button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.kanban-inline-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #111827;
    font-size: 0.8rem;
    padding: 0.14rem 0.24rem;
}
.todo-title {
    font-size: 0.9rem;
    color: var(--active-accent);
    margin-bottom: 0.7rem;
    font-weight: bold;
}
.todo-input-row {
    display: flex;
    gap: 0.38rem;
}
.todo-input-row .todo-input {
    flex: 1;
    padding: 0.34rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.1;
    border-radius: 8px;
    border: 1px solid #484343;
    color: #000;
    background: #fff;
}
.todo-input-row .add-btn {
    padding: 0.3rem 0.62rem;
    font-size: 0.72rem;
    line-height: 1.1;
    border: none;
    border-radius: 8px;
    background: var(--active-accent);
    color: var(--active-contrast);
    cursor: pointer;
    transition: background 0.2s;
}
.add-btn:hover {
    background: var(--active-accent);
}
.todo-list {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}
.todo-list li {
    background: #ffffff;
    margin-bottom: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.remove-btn {
    background: none;
    border: none;
    color: var(--active-accent);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 1rem;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-window {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 0.6rem 0.75rem; /* condensed padding */
  min-width: 280px;
  max-width: 92vw;
  width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-window .timer-row { padding: 0 0.15rem; }
.settings-modal-shell {
  width: min(506px, 92vw) !important;
  max-width: 92vw !important;
  min-width: min(330px, 92vw) !important;
  padding: 0.72rem 0.8rem !important;
}
.settings-modal-shell .modal-header {
  margin-bottom: 0.5rem !important;
}
.settings-modal-shell .modal-divider {
  margin: 0 0 0.75rem 0 !important;
}
.settings-modal-shell .modal-content {
  align-items: stretch;
}
.settings-modal-intro {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.55rem 0.62rem;
  margin-bottom: 0.62rem;
}
.settings-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}
.settings-section-grid-modern {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.settings-panel {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 0.48rem 0.52rem;
  background: linear-gradient(
    160deg,
    rgba(17, 20, 24, 0.58),
    rgba(17, 20, 24, 0.34)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px -18px rgba(0, 0, 0, 0.72);
  transition: border-color 160ms ease, transform 160ms ease;
}
.settings-panel-timer {
  z-index: 4;
}
.settings-panel-task {
  z-index: 2;
}
.settings-panel:hover {
  border-color: var(--active-accent-soft-border, rgba(255, 255, 255, 0.3));
  transform: translateY(-1px);
}
.settings-panel h4 {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.settings-panel p {
  line-height: 1.3;
}
.settings-panel button {
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}
.settings-toggle-button {
  position: relative;
  width: 4.95rem;
  min-width: 4.95rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #f3f4f6;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.settings-toggle-button.is-on {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-color: #16a34a;
  color: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.settings-toggle-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease;
}
.settings-toggle-button.is-on .settings-toggle-knob {
  transform: translateX(3.33rem);
}
.settings-toggle-label {
  width: 100%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.settings-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.72rem;
  row-gap: 0.35rem;
  position: relative;
  width: 100%;
}
.settings-task-row + .settings-task-row {
  margin-top: 0.5rem;
}
.settings-task-label {
  font-size: 0.76rem;
  color: #f3f4f6;
  min-width: 0;
}
.settings-task-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.settings-task-color-trigger {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.settings-task-color-popup {
  position: absolute;
  left: auto !important;
  right: 0;
  top: calc(100% + 4px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  min-width: 0 !important;
  width: min(148px, calc(100vw - 44px));
  max-width: calc(100vw - 44px);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #1f2326 !important;
  z-index: 12040;
}
.settings-timer-color-popup {
  left: auto !important;
  right: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px !important;
  padding: 6px !important;
  min-width: 0 !important;
  width: min(148px, calc(100vw - 44px)) !important;
  max-width: calc(100vw - 44px) !important;
  z-index: 12050 !important;
}
.settings-task-priority-select {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #1f2326;
  color: #f3f4f6;
  padding: 0.24rem 0.34rem;
  font-size: 0.72rem;
  width: 5.04rem;
  min-width: 5.04rem;
  max-width: 5.04rem;
  margin-left: auto;
}
.settings-minute-input {
  appearance: textfield;
  -moz-appearance: textfield;
}
.settings-minute-input::-webkit-outer-spin-button,
.settings-minute-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 980px) {
  .settings-modal-shell {
    width: min(484px, 94vw) !important;
  }
  .auth-entry-banner {
    width: calc(100vw - clamp(0.7rem, 3.4vw, 1.2rem));
  }
  .auth-entry-banner-actions {
    justify-content: center;
  }
  .kanban-column {
    min-width: 0;
  }
  .pomodoro-lane-stack {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .settings-modal-shell {
    width: min(462px, 96vw) !important;
    min-width: min(308px, 96vw) !important;
    padding: 0.66rem 0.62rem !important;
  }
  .auth-entry-banner {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.56rem 0.6rem;
  }
  .auth-entry-banner-actions {
    width: 100%;
    justify-content: center;
  }
  .settings-section-grid {
    grid-template-columns: 1fr;
  }
  .settings-panel {
    padding: 0.54rem;
  }
  .kanban-column {
    min-height: 0;
    min-width: 0;
  }
  .pomodoro-lane-stack {
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .kanban-board {
    overflow-x: hidden;
  }
  .kanban-column.is-collapsed {
    min-width: 42px;
    flex: 0 0 42px;
  }
  .pomodoro-lane-stack.is-collapsed {
    min-width: 42px;
    flex: 0 0 42px;
  }
}
.no-wrap, .nowrap { white-space: nowrap !important; }
.drag-over { background: var(--active-accent-soft-bg, rgba(74,144,164,0.08)) !important; transform: translateY(2px); }
.todo-list li { transition: background 120ms ease, transform 120ms ease; }
.button-icon { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) {
  header {
    max-width: 100vw;
    column-gap: 0.5rem;
    padding: 0 0.2rem;
  }
  .site-title {
    font-size: clamp(0.61rem, 4.22vw, 1.08rem);
    min-width: max-content;
    max-width: 100vw;
  }
  .settings-btn,
  .report-btn,
  .login-btn {
    font-size: clamp(0.32rem, 1.5vw, 0.64rem);
    padding: clamp(0.08rem, 0.55vw, 0.24rem) clamp(0.16rem, 0.85vw, 0.5rem);
    max-width: 30vw;
  }
  .settings-btn svg,
  .report-btn svg,
  .login-btn svg {
    width: clamp(8px, 4vw, 18px);
    height: clamp(8px, 4vw, 18px);
  }
  .modal-window {
    min-width: 0;
    width: 98vw;
    padding: 1.2rem 0.3rem;
  }
  .plan-row {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  .plan-card {
    width: 100%;
    min-width: 0;
  }
  .plan-canvas {
    min-width: 0;
    width: 100%;
  }
  .subscribe-btn {
    width: 100%;
  }
  header {
    max-width: 100vw;
    column-gap: 1rem;
    padding: 0 0.5rem;
  }
  .site-title {
    font-size: 1.19rem;
  }
  .settings-btn,
  .report-btn,
  .login-btn {
    font-size: 0.68rem;
    padding: 0.26rem 0.52rem;
    margin: 0 0.15rem;
  }
}
@media (max-width: 400px) {
  .site-title {
    font-size: clamp(0.48rem, 4.09vw, 0.84rem);
    min-width: max-content;
    max-width: 100vw;
  }
  .settings-btn,
  .report-btn,
  .login-btn {
    font-size: clamp(0.26rem, 1.4vw, 0.5rem);
    padding: clamp(0.04rem, 0.4vw, 0.08rem) clamp(0.07rem, 0.55vw, 0.16rem);
    max-width: 32vw;
  }
  .settings-btn svg,
  .report-btn svg,
  .login-btn svg {
    width: clamp(6px, 4vw, 14px);
    height: clamp(6px, 4vw, 14px);
  }
}
.settings-btn .btn-label, .report-btn .btn-label, .login-btn .btn-label { transition: opacity 0.18s ease, width 0.18s ease; }
@media (max-width: 520px) {
  .settings-btn .btn-label, .report-btn .btn-label, .login-btn .btn-label { font-size: 0.7rem; }
}
@media (max-width: 440px) {
  .settings-btn .btn-label, .report-btn .btn-label, .login-btn .btn-label { font-size: 0.6rem; }
}
@media (max-width: 380px) {
  .settings-btn .btn-label, .report-btn .btn-label, .login-btn .btn-label {
    display: inline;
    font-size: clamp(0.44rem, 1.6vw, 0.56rem);
  }
  .settings-btn svg, .report-btn svg, .login-btn svg { margin-right: 0.16rem; }
  header { justify-content: space-between; }
}
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-content h3 {
    margin-top: 0;
    color: #333;
    align-self: flex-start;
    text-align: left;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem !important;
}
.modal-title {
    font-size: 1.15rem;
    color: var(--active-accent);
    font-weight: bold;
}
.close-modal-btn {
    background: none;
    border: none;
    color: var(--active-accent);
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.2s;
}
.close-modal-btn:hover {
  color: var(--active-accent);
}
.modal-content h3 {
    margin-top: 0;
    color: #333;
}
.modal-section {
    margin-bottom: 1rem;
}
.modal-section label {
    margin-right: 0.5rem;
}
.timer-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.timer-label {
    min-width: 95px;
    text-align: right;
    margin-right: 0.5em;
    font-size: 0.9rem;
    color: #333;
}
.timer-input {
    width: 56px;
    font-size: 0.9rem;
    padding: 0.25em 0.45em;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-right: 0.5em;
}
.minutes-label {
    margin-left: 0.5rem;
    color: #888;
    font-size: 0.85rem;
}
.color-select {
    width: 48px;
    height: 32px;
    border-radius: 8px;
    border: none;
    margin-right: 0.7em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    background: #fff;
    appearance: none;
    position: relative;
}
.color-select option {
    color: #333;
    padding-left: 24px;
}
.color-sample {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #ccc;
}
.color-swatches {
    display: flex;
    gap: 0.3em;
    margin-right: 0.7em;
}
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid #eee;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: border 0.2s;
    display: inline-block;
}
.color-swatch.selected {
    border: 2px solid #333;
}
.color-picker-popup-container {
    position: relative;
    display: inline-block;
    margin-right: 0.7em;
}
.color-popup {
    position: absolute;
    top: 36px;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 0.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    z-index: 2000;
    min-width: 180px;
}
body.dark-mode {
    background: #23272a !important;
}
header.dark-mode, .container.dark-mode, .todo-section.dark-mode, .modal-window.dark-mode {
    background: #2c2f33 !important;
}
.todo-section.dark-mode, .container.dark-mode {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.modal-window.dark-mode {
    color: #eee;
}
.todo-title.dark-mode {
    color: #ffffff !important;
}
.timer-label.dark-mode, .minutes-label.dark-mode {
    color: #bbb !important;
}
.todo-list li.dark-mode {
    background: #23272a !important;
    color: #eee !important;
}
.kanban-action-list li {
  transition: background 120ms ease, transform 120ms ease;
}
body.dark-mode .kanban-action-list li {
  background: #1f2326;
  color: #f3f4f6;
}
body.dark-mode .task-meta-toggle {
  border-color: rgba(255,255,255,0.28);
  color: #d1d5db;
}
body.dark-mode .task-meta-toggle:hover {
  color: #f8fafc;
}
body.dark-mode .task-inline-details {
  border-top-color: rgba(255,255,255,0.22);
}
body.dark-mode .kanban-action-buttons button {
  color: #d1d5db;
}
body.dark-mode .kanban-inline-input {
  background: #15191d;
  color: #f3f4f6;
  border: 1px solid #3f4852;
}
.todo-input.dark-mode {
    background: #23272a !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}
.add-btn.dark-mode, .settings-btn.dark-mode, .report-btn.dark-mode, .buttons button.dark-mode {
    background: #23272a !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}
.dark-mode #timer {
    color: #fff !important;
}
.modal-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0.6rem 0 !important;
  width: 100%;
  opacity: 0.6;
}
.paywall-locked {
  opacity: 0.7;
  filter: grayscale(0.2);
  position: relative;
}

.section-title {
  font-size: 1.08em;
  font-weight: 600;
  margin-bottom: 0.2em;
  color: var(--settings-title-color, #444);
  display: flex;
  align-items: center;
}
.todo-empty {
  display: none;
}

.task-detail-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.task-input-label {
  font-size: 0.64rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 0.18rem;
}
.task-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.64rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.task-field-input {
  border-radius: 8px;
  border: 1px solid #ffffff;
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.76rem;
  padding: 0.34rem 0.44rem;
}
.task-recurrence-row {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.32rem;
  align-items: center;
}
.task-color-row {
  margin-top: 0.52rem;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}
.task-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.task-color-option {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.task-color-option.active {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}
.task-subtask-block {
  margin-top: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.45rem;
  background: rgba(21,25,29,0.48);
}
.task-subtask-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d1d5db;
  margin-bottom: 0.3rem;
}
.task-subtask-empty {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}
.task-subtask-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.task-subtask-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.34rem;
  align-items: center;
}
.task-subtask-list li input[type="text"] {
  border-radius: 7px;
  border: 1px solid #ffffff;
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.74rem;
  padding: 0.24rem 0.36rem;
}
.task-subtask-list li.is-done input[type="text"] {
  text-decoration: line-through;
  color: #9ca3af;
  opacity: 0.88;
}
.task-subtask-list li button {
  border-radius: 7px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.64rem;
  padding: 0.16rem 0.32rem;
}
.task-subtask-add-row {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem;
}
.task-subtask-add-row input {
  border-radius: 7px;
  border: 1px solid #ffffff;
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.74rem;
  padding: 0.24rem 0.36rem;
}
.task-subtask-add-row button {
  border-radius: 7px;
  border: 1px solid #ffffff;
  background: var(--active-accent);
  color: var(--active-contrast);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.44rem;
}
.task-modal-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}
.task-modal-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
}
.task-modal-action-btn {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.08);
  color: #f3f4f6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.36rem 0.4rem;
  cursor: pointer;
  width: 100%;
}
.task-modal-action-btn:hover {
  background: rgba(255,255,255,0.16);
}
.task-modal-action-btn.complete {
  background: rgba(34,197,94,0.22);
  border-color: rgba(34,197,94,0.6);
}
.task-modal-action-btn.delete {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.58);
}
.task-modal-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.task-context-menu {
  position: fixed;
  z-index: 12050;
  width: 268px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(20,24,28,0.98);
  box-shadow: 0 18px 38px -22px rgba(0,0,0,0.75);
  padding: 0.38rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}
.task-context-menu-item {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: left;
  padding: 0.35rem 0.44rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.36rem;
  width: 100%;
}
.task-context-menu-item-label {
  flex: 1;
}
.task-context-menu-item-icon {
  width: 0.84rem;
  height: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.task-context-menu-item-icon svg {
  width: 100%;
  height: 100%;
}
.task-context-menu-item:hover {
  background: rgba(255,255,255,0.14);
}
.task-context-menu-item.danger {
  border-color: rgba(239,68,68,0.48);
  color: #fecaca;
  position: relative;
  justify-content: center;
  text-align: center;
}
.task-context-menu-item.danger .task-context-menu-item-label {
  flex: none;
  text-align: center;
}
.task-context-menu-item.danger .task-context-menu-item-icon {
  position: absolute;
  right: 0.44rem;
  top: 50%;
  transform: translateY(-50%);
}
.task-context-menu-divider {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin: 0.08rem 0;
}
.task-context-menu-label {
  font-size: 0.6rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0 0.1rem;
}
.task-context-menu-color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.26rem;
}
.task-context-menu-priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
}
.task-context-menu-priority-btn {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
  padding: 0.28rem 0.34rem;
  cursor: pointer;
}
.task-context-menu-priority-btn.active {
  border-color: var(--active-accent);
  background: var(--active-accent-soft-bg, rgba(255,255,255,0.16));
}
.task-context-menu-color-swatch {
  width: 100%;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  cursor: pointer;
}
.board-transfer-modal {
  width: min(22rem, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(20,24,28,0.98);
  box-shadow: 0 22px 42px -24px rgba(0,0,0,0.75);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.board-transfer-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f3f4f6;
}
.board-transfer-subtitle {
  font-size: 0.7rem;
  color: #9ca3af;
}
.board-transfer-list {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-height: min(18rem, 50vh);
  overflow-y: auto;
}
.board-transfer-option {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
}
.board-transfer-option:hover {
  background: rgba(255,255,255,0.14);
}
.board-transfer-empty {
  border: 1px dashed rgba(255,255,255,0.26);
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.55rem;
}
.board-transfer-cancel {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.38rem 0.46rem;
  cursor: pointer;
}
.board-transfer-cancel:hover {
  background: rgba(255,255,255,0.14);
}
.bulk-edit-bar {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 12060;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  background: rgba(20,24,28,0.98);
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.75);
  padding: 0.44rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  width: min(960px, 94vw);
}
.bulk-edit-count {
  font-size: 0.66rem;
  font-weight: 700;
  color: #e5e7eb;
  padding: 0 0.2rem;
}
.bulk-edit-bar select,
.bulk-edit-bar button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.06);
  color: #f3f4f6;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.28rem 0.38rem;
}
.bulk-edit-bar button {
  cursor: pointer;
}
.bulk-edit-bar button.danger {
  border-color: rgba(239,68,68,0.6);
  color: #fecaca;
}

.report-modal-shell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.report-auth-gate {
  border: 1px solid var(--active-accent-soft-border, rgba(255,255,255,0.28));
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, var(--active-accent-soft-bg, rgba(255,255,255,0.08)), transparent 42%),
    linear-gradient(148deg, rgba(31,35,38,0.96), rgba(22,26,30,0.92));
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}
.report-auth-gate-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.01em;
}
.report-auth-gate-copy {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.45;
}
.report-auth-gate-actions {
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}
.report-auth-gate-btn {
  border: 1px solid var(--active-accent, #4a90a4);
  background: var(--active-accent, #4a90a4);
  color: var(--active-contrast, #fff);
  border-radius: 10px;
  padding: 0.48rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}
.report-auth-gate-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.report-auth-gate-btn.secondary {
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  border-color: rgba(255,255,255,0.38);
}
.report-hero {
  border: 1px solid var(--active-accent-soft-border, rgba(255,255,255,0.26));
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 18%, var(--active-accent-soft-bg, rgba(255,255,255,0.08)), transparent 42%),
    linear-gradient(142deg, rgba(31,35,38,0.96), rgba(22,26,30,0.9));
  padding: 0.65rem 0.72rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.report-hero-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
}
.report-hero-title {
  margin-top: 0.16rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}
.report-hero-copy {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
}
.report-hero-rate {
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(15,17,20,0.54);
  padding: 0.46rem 0.62rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
}
.report-hero-rate-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  font-weight: 700;
}
.report-hero-rate-value {
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
}
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}
.report-summary-item {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(31,35,38,0.92);
  padding: 0.38rem 0.46rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}
.report-summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  font-weight: 700;
}
.report-summary-value {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}
.report-card {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: #1f2326;
  padding: 0.44rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.report-card-wide {
  grid-column: span 2;
}
.report-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.52rem;
  font-size: 0.74rem;
  color: #d1d5db;
}
.report-priority-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.report-priority-rows {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.report-priority-chart {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 84px;
}
.report-priority-chart svg {
  width: 84px;
  height: 84px;
}
.report-chart-label {
  fill: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
}
.report-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.34rem;
}
.report-date-row input {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.34);
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.72rem;
  padding: 0.26rem 0.38rem;
}
.report-task-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.28;
}
.report-task-meta {
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.35;
}
.board-manager-modal {
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.board-manager-list {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.board-manager-row {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(31,35,38,0.85);
  padding: 0.36rem 0.42rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.34rem;
  flex-wrap: wrap;
}
.board-manager-row.is-active {
  border-color: var(--active-accent);
  box-shadow: 0 0 0 1px var(--active-accent-soft-border, rgba(255,255,255,0.25));
}
.board-manager-name-wrap {
  width: 100%;
  min-width: 0;
}
.board-manager-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f3f4f6;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-manager-name-input {
  width: 100%;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.55);
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.7rem;
  padding: 0.3rem 0.36rem;
}
.board-manager-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.board-manager-actions button,
.board-manager-create button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.24rem 0.34rem;
  cursor: pointer;
}
.board-manager-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.board-manager-delete-confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: rgba(9, 12, 16, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem;
}
.board-manager-delete-confirm-dialog {
  width: min(18rem, 100%);
  border: 1px solid rgba(239,68,68,0.6);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(61, 23, 23, 0.96), rgba(47, 17, 17, 0.98));
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.7);
  padding: 0.62rem;
}
.board-manager-delete-confirm-title {
  color: #fee2e2;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}
.board-manager-delete-confirm-copy {
  color: #fecaca;
  font-size: 0.66rem;
  margin-top: 0.2rem;
  line-height: 1.35;
}
.board-manager-delete-confirm-actions {
  margin-top: 0.48rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.3rem;
}
.board-manager-delete-confirm-actions button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  color: #f3f4f6;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.28rem 0.4rem;
  cursor: pointer;
}
.board-manager-delete-confirm-actions button.danger {
  border-color: rgba(248,113,113,0.85);
  background: rgba(220,38,38,0.35);
  color: #fecaca;
}
.board-manager-create {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}
.board-manager-create-confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: rgba(9, 12, 16, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem;
}
.board-manager-create-confirm-dialog {
  width: min(19rem, 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(31,35,38,0.96), rgba(20,24,29,0.98));
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.7);
  padding: 0.62rem;
}
.board-manager-create-confirm-title {
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}
.board-manager-create-confirm-input {
  width: 100%;
  margin-top: 0.42rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  background: #15191d;
  color: #f3f4f6;
  font-size: 0.7rem;
  padding: 0.32rem 0.38rem;
}
.board-manager-create-confirm-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.32rem;
}
.board-manager-create-confirm-actions button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.24rem 0.36rem;
  cursor: pointer;
}
.column-manager-modal {
  align-items: stretch;
}
.column-manager-help {
  font-size: 0.68rem;
  color: #cbd5e1;
  margin: 0;
}
.column-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
}
.column-manager-toolbar button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #f3f4f6;
  padding: 0.18rem 0.34rem;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.column-manager-toolbar button:hover {
  background: var(--active-accent-soft-bg, rgba(255,255,255,0.14));
}
.column-manager-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.3rem;
  width: 100%;
}
.column-manager-swimlane-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.column-manager-swimlane-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.35rem 0.38rem;
  background: rgba(23, 27, 31, 0.72);
}
.column-manager-swimlane-row.is-dragging {
  opacity: 0.6;
}
.column-manager-swimlane-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.column-manager-swimlane-drag {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1;
  cursor: grab;
  user-select: none;
}
.column-manager-swimlane-input {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.5);
  background: #15191d;
  color: #f3f4f6;
  padding: 0.24rem 0.34rem;
  font-size: 0.64rem;
  flex: 1 1 auto;
}
.column-manager-swimlane-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.column-manager-swimlane-remove {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #f3f4f6;
  padding: 0.18rem 0.34rem;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}
.column-manager-swimlane-remove:hover {
  background: var(--active-accent-soft-bg, rgba(255,255,255,0.14));
}
.column-manager-swimlane-row .column-manager-list {
  width: 100%;
}
.column-manager-row {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(31,35,38,0.9);
  padding: 0.24rem;
  cursor: grab;
}
.column-manager-row.is-dragging {
  opacity: 0.55;
}
.column-manager-row.is-preview {
  cursor: default;
  opacity: 0.72;
}
.column-manager-row-top {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}
.column-manager-drag-handle {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1;
}
.column-manager-index {
  min-width: 0.85rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #cbd5e1;
}
.column-manager-type {
  margin-left: auto;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}
.column-manager-input {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.5);
  background: #15191d;
  color: #f3f4f6;
  padding: 0.2rem 0.26rem;
  font-size: 0.6rem;
  text-align: center;
}
.column-manager-input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.column-manager-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.28rem;
}
.column-manager-controls button,
.column-manager-footer button {
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #f3f4f6;
  padding: 0.16rem 0.26rem;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
}
.column-manager-controls button {
  width: 100%;
}
.column-manager-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.column-manager-footer {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}
.column-manager-footer button:hover,
.column-manager-controls button:hover:not(:disabled) {
  background: var(--active-accent-soft-bg, rgba(255,255,255,0.14));
}
.column-manager-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 12000;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 32px -14px rgba(0,0,0,0.35);
  border: 1px solid var(--active-accent-soft-border, rgba(0,0,0,0.15));
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.toast-info {
  border-left: 4px solid var(--active-accent);
}

.toast-success {
  border-left: 4px solid #22c55e;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--active-accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .pomodoro-spotlight-shell {
    width: 96vw;
    max-height: 92vh;
    padding: 0.2rem;
  }
  .spotlight-timer-card,
  .spotlight-pomodoro-column {
    width: min(96vw, 420px) !important;
    max-width: min(96vw, 420px) !important;
  }
  .toast {
    right: 50%;
    transform: translateX(50%);
    max-width: 90vw;
  }
  .task-detail-grid {
    grid-template-columns: 1fr;
  }
  .task-modal-secondary-actions {
    grid-template-columns: 1fr;
  }
  .report-hero {
    grid-template-columns: 1fr;
  }
  .report-auth-gate-actions {
    flex-direction: column;
  }
  .report-auth-gate-btn {
    width: 100%;
  }
  .report-hero-rate {
    align-items: flex-start;
  }
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-card-wide {
    grid-column: span 1;
  }
  .report-priority-card-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .report-priority-rows {
    width: 100%;
  }
  .report-date-row {
    grid-template-columns: 1fr;
  }
}
.subscribe-btn {
  background: var(--active-accent);
  color: var(--active-contrast);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.subscribe-btn:hover {
  background: var(--active-accent);
}
.feature-list {
  margin: 0.3em 0 0.3em 1em;
  padding: 0;
  list-style-type: disc;
  color: #434343;
  font-size: 0.98em;
}
.feature-list li { margin-bottom: 0.4rem; }
.feature-list li:last-child { margin-bottom: 0; }
.paywall-locked .feature-list {
  color: #aaa;
}
.paywall-desc {
  margin: 0.15rem 0 0.6rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--settings-title-color, #444);
  /* Slight opacity for softer look without losing contrast */
  opacity: 0.9;
}
.paywall-locked .paywall-desc { /* ensure locked section inherits same gray tone */
  color: var(--settings-title-color, #444);
}
.plan-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  margin-top: 0 !important;
  width: 100%;
  align-items: stretch;
}
.modal-section, .modal-section.paywall-locked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.plan-price {
  color: #333 !important;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 2px;
}
.plan-canvas.uniform-plan-canvas {
  background: #e0e0e0 !important;
}
@media (max-width: 600px) {
  .plan-row {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
}
