:root {
      color-scheme: dark light;
      --background-image: url('../Scenery/Lake.png');
      --surface-bg: transparent;
      --surface-border: transparent;
      --surface-shadow: none;
      --text-primary: rgba(255, 255, 255, 0.94);
      --text-secondary: rgba(255, 255, 255, 0.72);
      --text-tertiary: rgba(255, 255, 255, 0.64);
      --board-bg: transparent;
      --column-gap: clamp(12px, 1.2vw, 20px);
      --column-radius: 28px;
      --important: #e3d5c3;
      --less-important: #b6c6db;
      --next: #f2d283;
      --progress: #cfe8d5;
      --follow-up: #cfe0ff;
      --column-base: rgba(12, 16, 28, 0.72);
      --column-border: rgba(255, 255, 255, 0.22);
      --column-shadow: 0 36px 120px rgba(5, 7, 12, 0.46);
      --card-divider: rgba(255, 255, 255, 0.14);
      --card-hover: rgba(255, 255, 255, 0.06);
      --action-bg: rgba(12, 15, 24, 0.55);
      --action-bg-hover: rgba(12, 15, 24, 0.75);
      --action-border: rgba(255, 255, 255, 0.18);
      font-family: 'Inter', sans-serif;
    }

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

    body.todo-page {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: stretch;
      justify-content: flex-start;
      padding: 0;
      background: #05070c;
      color: var(--text-primary);
      position: relative;
      overflow-x: hidden;
      overflow-y: auto;
      font-family: 'Inter', sans-serif;
    }

    body.todo-page::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: var(--background-image);
      background-size: max(110vw, 1500px);
      background-position: center top;
      background-repeat: no-repeat;
      opacity: 0.94;
      filter: saturate(1.05);
      z-index: -2;
    }

    body.todo-page::after {
      content: '';
      position: fixed;
      inset: 0;
      background: var(
        --background-overlay,
        radial-gradient(circle at 20% 20%, rgba(12, 16, 28, 0.28), transparent 55%),
        radial-gradient(circle at 80% 15%, rgba(6, 10, 18, 0.2), transparent 58%)
      );
      z-index: -1;
      pointer-events: none;
    }

    body.app-shell[data-theme='light'] {
      --surface-bg: rgba(255, 255, 255, 0.18);
      --surface-border: rgba(148, 163, 184, 0.28);
      --column-base: rgba(255, 255, 255, 0.18);
      --column-border: rgba(148, 163, 184, 0.28);
      --column-shadow: none;
      --background-overlay: radial-gradient(circle at 20% 20%, rgba(12, 16, 28, 0.15), transparent 60%),
        radial-gradient(circle at 80% 15%, rgba(6, 10, 18, 0.12), transparent 70%);
    }

    body.app-shell[data-theme='light']::before {
      opacity: 0.95;
      filter: none;
    }

    body.app-shell[data-theme='light']::after {
      background: var(--background-overlay);
    }

    .todo-main {
      flex: 1;
      width: 100%;
      max-width: 1440px;
      margin: 0 auto;
      padding: clamp(28px, 5vw, 56px);
      display: flex;
      flex-direction: column;
      gap: 28px;
      color: var(--text-primary);
    }

    .focus-room-toast {
      position: fixed;
      left: 50%;
      top: calc(env(safe-area-inset-top, 0px) + clamp(18px, 4vw, 48px));
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 16, 28, 0.82);
      box-shadow: 0 24px 64px rgba(5, 7, 12, 0.5);
      padding: 18px 18px 14px;
      width: min(420px, calc(100vw - clamp(48px, 10vw, 128px)));
      color: rgba(255, 255, 255, 0.94);
      display: flex;
      justify-content: center;
      opacity: 0;
      transform: translate3d(-50%, -12px, 0);
      pointer-events: none;
      transition: opacity 160ms ease, transform 160ms ease;
      z-index: 15;
      text-align: center;
    }

    .focus-room-toast[data-visible='true'] {
      opacity: 1;
      transform: translate3d(-50%, 0, 0);
      pointer-events: auto;
    }

    .focus-room-toast-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: 100%;
      position: relative;
      padding-right: 12px;
    }

    .focus-room-toast-text {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.88rem;
    }

    .focus-room-toast-heading {
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.72);
    }

    .focus-room-toast-message {
      font-weight: 600;
    }

    .focus-room-toast-action {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(12, 16, 28, 0.6);
      color: inherit;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

    .focus-room-toast-action:hover,
    .focus-room-toast-action:focus-visible {
      background: rgba(12, 16, 28, 0.82);
      border-color: rgba(255, 255, 255, 0.42);
      transform: translateY(-1px);
      outline: none;
    }

    .focus-room-toast-action--primary {
      background: rgba(12, 80, 200, 0.4);
      border-color: rgba(96, 155, 255, 0.6);
    }

    .focus-room-toast-action--primary:hover,
    .focus-room-toast-action--primary:focus-visible {
      background: rgba(12, 80, 200, 0.55);
      border-color: rgba(158, 195, 255, 0.9);
    }

    .focus-room-toast-action--danger {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.26);
      color: rgba(255, 255, 255, 0.9);
    }

    .focus-room-toast-action--danger:hover,
    .focus-room-toast-action--danger:focus-visible {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.4);
      color: rgba(255, 255, 255, 1);
    }

    .focus-room-toast-action svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .focus-room-toast-actions {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .focus-room-toast-close {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      border: none;
      background: transparent;
      color: rgba(255, 255, 255, 0.7);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      transition: color 160ms ease;
    }

    .focus-room-toast-close:hover,
    .focus-room-toast-close:focus-visible {
      color: rgba(255, 255, 255, 0.95);
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 768px) {
      .todo-main {
        width: 100%;
        padding: clamp(22px, 6vw, 38px);
      }

      .focus-room-toast {
        width: min(360px, calc(100vw - clamp(32px, 8vw, 72px)));
        left: 50%;
        transform: translate3d(-50%, -12px, 0);
      }
    }

    @media (max-width: 960px) {
      .home-button {
        left: clamp(18px, 3vw, 40px);
      }
    }

    header {
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      z-index: 2;
    }

    .header-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .header-actions {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .header-action {
      position: relative;
    }

    .icon-button {
      width: 48px;
      height: 48px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(12, 15, 24, 0.6);
      color: rgba(255, 255, 255, 0.94);
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background 200ms ease, border 200ms ease, transform 200ms ease;
      backdrop-filter: blur(12px);
    }

    .icon-button svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .icon-button:hover,
    .icon-button:focus-visible,
    .icon-button[aria-expanded='true'] {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(12, 15, 24, 0.78);
      outline: none;
    }

    .header-menu {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      min-width: 220px;
      border-radius: 22px;
      border: 1px solid var(--column-border);
      background: rgba(12, 15, 24, 0.82);
      backdrop-filter: blur(20px);
      box-shadow: 0 26px 62px rgba(5, 7, 12, 0.48);
      padding: 18px;
      display: none;
      flex-direction: column;
      gap: 16px;
      z-index: 13;
    }

    .header-menu[data-open='true'] {
      display: flex;
    }

    .header-menu--filters {
      min-width: 260px;
      gap: 14px;
    }

    .header-menu--filters .menu-section {
      gap: 10px;
    }

    .header-menu--filters-header {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-bottom: 4px;
    }

    .menu-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .menu-section-label {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.72);
    }

    .menu-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.16);
    }

    .header-menu .history-button {
      width: 100%;
      justify-content: center;
    }

    .layout-controls {
      display: inline-flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .layout-button {
      width: 48px;
      height: 48px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(12, 15, 24, 0.6);
      color: rgba(255, 255, 255, 0.94);
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background 200ms ease, border 200ms ease, transform 200ms ease;
      backdrop-filter: blur(12px);
    }

    .layout-button svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .layout-button:hover,
    .layout-button:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(12, 15, 24, 0.78);
      outline: none;
    }

    .layout-button.is-active {
      border-color: rgba(255, 255, 255, 0.38);
      background: rgba(12, 15, 24, 0.82);
    }

    header h1 {
      margin: 0;
      font-size: clamp(2rem, 2vw + 1rem, 2.75rem);
    }

    header p {
      margin: 0;
      color: var(--text-secondary);
      max-width: 520px;
      line-height: 1.6;
    }

    .history-button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 16px;
      border-radius: 18px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
      backdrop-filter: blur(14px);
    }

    .history-button:hover,
    .history-button:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.4);
      outline: none;
    }

    .history-button img {
      width: 22px;
      height: 22px;
      filter: brightness(0) invert(1);
    }

    .history-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 24px;
      height: 24px;
      padding: 0 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
      font-size: 0.8rem;
      font-weight: 600;
      line-height: 1;
    }

    .history-count[hidden] {
      display: none;
    }

    .overview-panels {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: clamp(18px, 3vw, 28px);
      align-items: stretch;
      position: relative;
      z-index: 1;
    }

    .overview-panels > * {
      min-width: 0;
    }

    @media (min-width: 769px) {
      .overview-panels {
        width: min(100%, calc(50% - var(--column-gap) / 2));
      }
    }

    .project-shortcuts {
      position: relative;
      border-radius: 28px;
      border: 1px solid var(--column-border);
      background: rgba(12, 16, 28, 0.72);
      backdrop-filter: blur(24px);
      padding: clamp(18px, 2.8vw, 24px);
      display: flex;
      flex-direction: column;
      gap: clamp(12px, 2.5vw, 18px);
      box-shadow: var(--column-shadow);
      overflow: visible;
    }

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

    /* Light theme styling for project shortcuts */
    body.app-shell[data-theme='light'] .project-shortcuts {
      background: var(--column-base);
      backdrop-filter: blur(22px);
      box-shadow: var(--column-shadow);
    }

    .project-shortcuts[data-favorites-collapsed='true'] .project-shortcuts-list {
      display: none;
    }

    .project-shortcuts-header {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: flex-start;
      gap: clamp(12px, 2vw, 18px);
    }

    .project-shortcuts-header h2 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .project-shortcuts-actions {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-self: end;
    }

    .project-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      font-weight: 500;
      cursor: pointer;
      transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
      backdrop-filter: blur(14px);
      position: relative;
    }

      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .project-action-btn svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .project-action-btn:hover,
    .project-action-btn:focus-visible {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.4);
      outline: none;
    }

    .project-action-btn--icon {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      padding: 0;
      display: grid;
      place-items: center;
      gap: 0;
      font-size: 1.4rem;
      font-weight: 600;
      line-height: 1;
    }

    .project-action-btn--icon svg {
      width: 20px;
      height: 20px;
      stroke-width: 1.8;
    }

    .project-action-btn--icon[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 14px);
      left: 50%;
      transform: translate(-50%, 6px);
      background: rgba(12, 15, 24, 0.82);
      color: var(--text-primary);
      padding: 6px 12px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 18px 40px rgba(5, 7, 12, 0.45);
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease, transform 160ms ease;
      z-index: 12;
    }

    .project-action-btn--icon[data-tooltip]::before {
      content: '';
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      width: 12px;
      height: 12px;
      transform: translate(-50%, 6px) rotate(45deg);
      background: rgba(12, 15, 24, 0.82);
      border-right: 1px solid rgba(255, 255, 255, 0.2);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease, transform 160ms ease;
      z-index: 11;
    }

    .project-action-btn--icon[data-tooltip]:hover::before,
    .project-action-btn--icon[data-tooltip]:focus-visible::before {
      opacity: 1;
      transform: translate(-50%, 0) rotate(45deg);
    }

    .project-action-btn--icon[data-tooltip]:hover::after,
    .project-action-btn--icon[data-tooltip]:focus-visible::after {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .filter-panel {
      position: relative;
      border-radius: 28px;
      border: 1px solid var(--column-border);
      background: rgba(12, 15, 24, 0.6);
      backdrop-filter: blur(18px);
      padding: clamp(18px, 2.8vw, 24px);
      display: flex;
      flex-direction: column;
      gap: clamp(12px, 2.5vw, 18px);
      box-shadow: var(--column-shadow);
      overflow: hidden;
    }

    .filter-panel::before,
    .filter-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
    }

    .filter-panel::before {
      background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 70%);
      z-index: 0;
    }

    .filter-panel::after {
      inset: -12% -20% 30%;
      border-radius: 42%;
      background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
      z-index: 0;
      filter: blur(0.5px);
    }

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

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

    .filter-panel-header h2 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .filter-reset-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 15, 24, 0.55);
      color: rgba(255, 255, 255, 0.86);
      cursor: pointer;
      transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
    }

    .filter-reset-button svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .filter-reset-button:hover,
    .filter-reset-button:focus-visible {
      transform: translateY(-1px);
      background: rgba(12, 15, 24, 0.72);
      border-color: rgba(255, 255, 255, 0.28);
      outline: none;
    }

    .filter-panel-content {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(12px, 2.5vw, 18px);
      position: relative;
    }

    .filter-panel-content::after {
      content: '';
      position: absolute;
      top: clamp(4px, 1vw, 10px);
      bottom: clamp(4px, 1vw, 10px);
      left: 50%;
      width: 1px;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.16);
      pointer-events: none;
    }

    .filter-tag-group {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: flex-start;
      align-content: flex-start;
    }

    .filter-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.86);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
      line-height: 1;
      min-height: 32px;
      height: auto;
      align-self: flex-start;
      transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
      backdrop-filter: blur(12px);
    }

    .filter-tag:hover,
    .filter-tag:focus-visible {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.22);
      color: rgba(255, 255, 255, 0.92);
      transform: translateY(-1px);
      outline: none;
    }

    .filter-tag.is-active {
      background: rgba(255, 255, 255, 0.26);
      border-color: rgba(255, 255, 255, 0.38);
      color: #0b101a;
      transform: translateY(-1px);
    }

    .project-shortcuts-list {
      display: flex;
      flex-wrap: wrap;
      gap: clamp(8px, 1.6vw, 16px);
    }

    .project-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid var(--action-border);
      background: rgba(12, 15, 24, 0.62);
      color: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
      backdrop-filter: blur(14px);
    }

    .project-chip.is-favorite {
      background: rgba(140, 147, 160, 0.32);
      border-color: rgba(214, 219, 230, 0.28);
      color: rgba(244, 246, 250, 0.92);
    }

    .project-chip:hover,
    .project-chip:focus-visible {
      transform: translateY(-1px);
      background: rgba(12, 15, 24, 0.82);
      border-color: rgba(255, 255, 255, 0.32);
      outline: none;
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.4);
    }

    .project-chip.is-favorite:hover,
    .project-chip.is-favorite:focus-visible {
      background: rgba(140, 147, 160, 0.46);
      border-color: rgba(224, 230, 240, 0.42);
      box-shadow: 0 12px 32px rgba(40, 44, 56, 0.4);
      color: rgba(255, 255, 255, 0.95);
    }

    .project-chip .project-chip-label {
      line-height: 1.2;
    }

    .project-favorite-icon {
      color: rgba(244, 246, 250, 0.9);
      font-size: 1rem;
      line-height: 1;
      display: inline-flex;
      align-items: center;
    }

    .project-area {
      display: none;
      width: 100%;
      grid-template-columns: minmax(260px, 320px) minmax(560px, 1fr);
      grid-template-rows: auto minmax(0, 1fr);
      column-gap: clamp(18px, 3vw, 28px);
      row-gap: clamp(18px, 3vw, 28px);
      align-items: stretch;
    }

    .project-back-button {
      grid-column: 1 / -1;
      justify-self: flex-end;
      margin-bottom: clamp(8px, 1.5vw, 16px);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(12, 15, 24, 0.6);
      color: rgba(255, 255, 255, 0.94);
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: background 200ms ease, border 200ms ease, transform 200ms ease;
      backdrop-filter: blur(12px);
    }

    .project-back-button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .project-back-button:hover,
    .project-back-button:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(12, 15, 24, 0.78);
      outline: none;
    }

    .project-panel {
      display: flex;
      flex-direction: column;
      gap: clamp(18px, 3vw, 28px);
      position: relative;
      align-self: stretch;
      border-radius: 28px;
      border: 1px solid var(--column-border);
      background: rgba(12, 16, 28, 0.72);
      backdrop-filter: blur(24px);
      padding: clamp(24px, 3vw, 32px);
      padding-bottom: clamp(32px, 5vw, 60px);
      box-shadow: var(--column-shadow);
      min-height: clamp(620px, 82vh, 1200px);
      min-width: min(100%, clamp(560px, 58vw, 840px));
      overflow: auto;
    }

    /* Light theme styling for project panel */
    body.app-shell[data-theme='light'] .project-panel {
      background: var(--column-base);
      backdrop-filter: blur(22px);
      box-shadow: var(--column-shadow);
    }

    .project-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
    }

    .project-panel-header h2 {
      margin: 0;
    }

    .project-favorite-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: background 150ms ease, border-color 150ms ease, transform 150ms ease,
        box-shadow 150ms ease;
      backdrop-filter: blur(14px);
    }

    .project-favorite-toggle:hover,
    .project-favorite-toggle:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, 0.32);
      background: var(--action-bg-hover);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .project-favorite-toggle.is-active {
      border-color: rgba(255, 255, 255, 0.38);
      background: rgba(12, 15, 24, 0.78);
    }

    .project-favorite-toggle-icon {
      font-size: 1rem;
      line-height: 1;
    }

    .project-favorite-toggle-text {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .project-panel-body {
      display: flex;
      flex-direction: column;
      gap: clamp(18px, 3vw, 28px);
      flex: 1;
      min-height: 0;
      padding-bottom: clamp(18px, 4vw, 36px);
    }

    .project-undo-toast {
      position: fixed;
      left: 50%;
      bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(20px, 6vw, 56px));
      width: min(440px, calc(100vw - clamp(48px, 10vw, 120px)));
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      padding: 16px 20px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 16, 28, 0.85);
      backdrop-filter: blur(20px);
      color: rgba(255, 255, 255, 0.94);
      box-shadow: 0 24px 64px rgba(5, 7, 12, 0.5);
      transition: opacity 200ms ease, transform 200ms ease;
      opacity: 0;
      transform: translate3d(-50%, 16px, 0);
      pointer-events: none;
      z-index: 32;
      text-align: left;
    }

    .project-undo-toast[data-visible='true'] {
      opacity: 1;
      transform: translate3d(-50%, 0, 0);
      pointer-events: auto;
    }

    .project-undo-message {
      flex: 1 1 auto;
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.4;
    }

    .project-undo-action {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 9px 20px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.1);
      color: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .project-undo-action:hover,
    .project-undo-action:focus-visible {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.42);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.42);
      outline: none;
    }

    .project-undo-action:focus-visible {
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.38);
    }

    @media (max-width: 720px) {
      .project-undo-toast {
        width: min(440px, calc(100vw - clamp(32px, 8vw, 72px)));
        padding: 14px 18px;
      }
    }

    @media (max-width: 520px) {
      .project-undo-toast {
        flex-direction: column;
        align-items: stretch;
      }

      .project-undo-action {
        width: 100%;
      }
    }

    body.app-shell[data-theme='light'] .project-undo-toast {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(15, 20, 35, 0.12);
      color: rgba(12, 16, 28, 0.92);
      box-shadow: 0 24px 64px rgba(12, 18, 32, 0.22);
    }

    body.app-shell[data-theme='light'] .project-undo-action {
      background: rgba(15, 20, 35, 0.08);
      border-color: rgba(15, 20, 35, 0.18);
      color: rgba(12, 16, 28, 0.92);
    }

    body.app-shell[data-theme='light'] .project-undo-action:hover,
    body.app-shell[data-theme='light'] .project-undo-action:focus-visible {
      background: rgba(15, 20, 35, 0.16);
      border-color: rgba(15, 20, 35, 0.32);
      box-shadow: 0 12px 32px rgba(12, 18, 32, 0.2);
    }

    .project-list {
      flex: 0 0 clamp(260px, 24vw, 340px);
      display: flex;
      flex-direction: column;
      gap: clamp(12px, 1.5vw, 18px);
      padding: clamp(16px, 2vw, 22px);
      border-radius: 22px;
      border: 1px solid var(--column-border);
      background: rgba(12, 16, 28, 0.72);
      backdrop-filter: blur(24px);
      box-shadow: var(--column-shadow);
      height: 100%;
      min-height: 0;
      align-self: stretch;
      overflow: auto;
    }

    /* Light theme styling for project list */
    body.app-shell[data-theme='light'] .project-list {
      background: var(--column-base);
      backdrop-filter: blur(22px);
      box-shadow: var(--column-shadow);
    }

    .project-list-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .project-heading {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-primary);
    }

    .project-list-items {
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
    }

    .project-list-items::-webkit-scrollbar {
      width: 6px;
    }

    .project-list-items::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 999px;
    }

    .project-list-item {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      border: 1px solid transparent;
      border-radius: 16px;
      padding: 12px 14px;
      background: rgba(20, 24, 34, 0.58);
      color: inherit;
      font-size: 0.95rem;
      cursor: pointer;
      transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
      text-align: left;
      position: relative;
    }

    .project-list-item:hover,
    .project-list-item:focus-visible {
      transform: translateX(2px);
      border-color: rgba(255, 255, 255, 0.32);
      outline: none;
      background: rgba(20, 24, 34, 0.74);
    }

    .project-list-name {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      line-height: 1.3;
    }

    .project-list-name .project-name-label {
      display: inline-block;
    }

    .project-list-summary {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.82rem;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      width: 100%;
    }

    .project-list-summary[contenteditable='true'] {
      cursor: text;
      outline: none;
      display: block;
      -webkit-line-clamp: initial;
      white-space: pre-wrap;
      max-height: 10.5em;
      overflow-y: auto;
    }

    .project-list-summary[data-placeholder]:empty::before {
      content: attr(data-placeholder);
      color: rgba(255, 255, 255, 0.6);
    }

    .project-list-item .project-list-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-secondary);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .project-list-item.is-active {
      border-color: rgba(255, 255, 255, 0.38);
      background: rgba(28, 32, 45, 0.82);
      box-shadow: 0 16px 42px rgba(5, 7, 12, 0.46);
    }

    .project-workspace {
      flex: 1 1 320px;
      min-height: clamp(320px, 40vh, 520px);
      display: flex;
      flex-direction: column;
      gap: clamp(18px, 3vw, 24px);
    }

    .project-workspace-header {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .project-workspace-title {
      margin: 0;
      font-size: clamp(1.2rem, 1vw + 1rem, 1.8rem);
      cursor: text;
    }

    .project-workspace-title[contenteditable='true'] {
      outline: none;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 14px;
      padding: 6px 12px;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .project-workspace-summary {
      margin: 0;
      color: var(--text-secondary);
      line-height: 1.5;
      cursor: text;
      min-height: 24px;
    }

    .project-workspace-summary[contenteditable='true'] {
      outline: none;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 12px;
      padding: 8px 12px;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
      color: var(--text-primary);
    }

    .project-workspace-summary[data-placeholder]:empty::before {
      content: attr(data-placeholder);
      color: rgba(255, 255, 255, 0.6);
    }

    .project-empty {
      margin: auto;
      max-width: 420px;
      text-align: center;
      color: var(--text-secondary);
      padding: clamp(24px, 4vw, 32px);
      border-radius: 22px;
      border: 1px dashed rgba(255, 255, 255, 0.18);
      background: rgba(12, 15, 24, 0.45);
    }

    .project-content {
      display: flex;
      flex-direction: column;
      gap: clamp(18px, 3vw, 24px);
      flex: 1;
      min-height: 0;
    }

    .project-sections {
      display: grid;
      grid-template-columns: 1fr;
      gap: clamp(16px, 2.4vw, 24px);
      align-content: start;
    }

    .project-section-group {
      display: flex;
      flex-direction: column;
      gap: clamp(16px, 2.4vw, 24px);
      min-height: 0;
    }

    .project-section-group--notes {
      gap: clamp(16px, 2.4vw, 24px);
    }

    /* Large screen layout: evenly sized columns */
    @media (min-width: 900px) {
      .project-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
      }

      .project-section-group {
        gap: clamp(18px, 3vw, 24px);
      }
    }

    /* Compressed deadlines section when empty */
    .project-deadlines-section:has(.project-section-empty:only-child) {
      min-height: auto;
      padding: 12px 18px;
    }

    .project-deadlines-section:has(.project-section-empty:only-child) .project-deadlines {
      display: none;
    }

    .project-section {
      border-radius: 20px;
      border: 1px solid var(--column-border);
      background: rgba(12, 16, 28, 0.72);
      backdrop-filter: blur(24px);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: fit-content;
      height: auto;
    }

    /* Light theme styling for project section */
    body.app-shell[data-theme='light'] .project-section {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(18px);
    }

    .project-section h3 {
      margin: 0;
      font-size: 1rem;
      letter-spacing: 0.02em;
    }

    .project-list-content,
    .project-deadlines {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .project-deadline-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(20, 24, 34, 0.6);
      color: var(--text-primary);
    }

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

    .project-deadline-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      font-weight: 600;
      flex: 1;
    }

    .project-deadline-pin {
      font-size: 1.1rem;
      line-height: 1;
      color: var(--text-secondary);
    }

    .project-deadline-date {
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: text;
      border-radius: 10px;
      padding: 2px 6px;
    }

    .project-deadline-date[contenteditable='true'] {
      outline: none;
      background: rgba(255, 255, 255, 0.04);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .project-deadline-date[data-placeholder]:empty::before {
      content: attr(data-placeholder);
      color: rgba(255, 255, 255, 0.6);
    }

    .project-deadline-title {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.5;
      cursor: text;
      min-height: 22px;
    }

    .project-deadline-title[contenteditable='true'] {
      outline: none;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 10px;
      padding: 6px 10px;
      color: var(--text-primary);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .project-deadline-title[data-placeholder]:empty::before {
      content: attr(data-placeholder);
      color: rgba(255, 255, 255, 0.6);
    }

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

    .project-section-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .project-sticky-add {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 1.4rem;
      line-height: 1;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
      backdrop-filter: blur(14px);
    }

    .project-sticky-add:hover,
    .project-sticky-add:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 30px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .project-list-content {
      gap: 10px;
    }

    .project-pill-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 16px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
      backdrop-filter: blur(14px);
    }

    .project-pill-button:hover,
    .project-pill-button:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .project-pill-button[disabled] {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .project-pill-button--subtle {
      background: rgba(12, 15, 24, 0.4);
      border-color: rgba(255, 255, 255, 0.22);
    }

    .project-pill-button--subtle:hover,
    .project-pill-button--subtle:focus-visible {
      background: rgba(12, 15, 24, 0.6);
      border-color: rgba(255, 255, 255, 0.32);
    }

    .project-inline-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .project-inline-form[hidden] {
      display: none;
    }

    .project-inline-fields {
      display: grid;
      gap: 10px;
    }

    .project-inline-fields--split {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .project-inline-form input {
      width: 100%;
      padding: 10px 14px;
      border-radius: 14px;
      border: 1px solid var(--column-border);
      background: rgba(12, 15, 24, 0.55);
      color: var(--text-primary);
      font-size: 0.95rem;
      transition: border-color 150ms ease, box-shadow 150ms ease;
    }

    .project-inline-form input:focus-visible {
      outline: none;
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
    }

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

    .project-todo-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 4px;
      border-radius: 0;
      border: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      background: transparent;
      color: var(--text-primary);
      line-height: 1.45;
    }

    .project-todo-check {
      width: 26px;
      height: 26px;
      border-radius: 10px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      display: grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.9rem;
      flex-shrink: 0;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
    }

    .project-todo-text {
      flex: 1;
      min-width: 0;
      cursor: text;
    }

    .project-todo-text[contenteditable='true'] {
      outline: none;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 10px;
      padding: 6px 10px;
      color: var(--text-primary);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .project-todo-item.is-complete .project-todo-text {
      text-decoration: line-through;
      color: var(--text-secondary);
      opacity: 0.75;
    }

    .project-todo-item.is-complete .project-todo-check {
      background: rgba(99, 189, 140, 0.32);
      border-color: rgba(99, 189, 140, 0.78);
      color: #d1ffe4;
    }

    .project-todo-item.is-completing .project-todo-text {
      text-decoration: line-through;
      opacity: 0.65;
    }

    .project-todo-check:hover,
    .project-todo-check:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      outline: none;
    }

    .project-todo-item.is-editing,
    .project-deadline-item.is-editing {
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 10px 28px rgba(5, 7, 12, 0.38);
      background: rgba(28, 32, 45, 0.72);
    }

    .project-inline-delete {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 150ms ease, transform 150ms ease, background 150ms ease, border-color 150ms ease,
        box-shadow 150ms ease;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .project-inline-delete:hover,
    .project-inline-delete:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .project-inline-delete:focus-visible {
      opacity: 1;
      pointer-events: auto;
    }

    .project-todo-item:hover .project-inline-delete,
    .project-todo-item:focus-within .project-inline-delete,
    .project-deadline-item:hover .project-inline-delete,
    .project-deadline-item:focus-within .project-inline-delete,
    .project-todo-item.is-editing .project-inline-delete,
    .project-deadline-item.is-editing .project-inline-delete {
      opacity: 1;
      pointer-events: auto;
    }

    .project-stickies {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 12px;
      height: auto;
      min-height: fit-content;
    }

    .project-sticky-note {
      position: relative;
      border-radius: 16px;
      padding: 18px;
      background: rgba(255, 255, 255, 0.12);
      color: #111;
      font-weight: 600;
      min-height: 110px;
      box-shadow: 0 18px 30px rgba(5, 7, 12, 0.36);
      transform: rotate(var(--tilt, -1.5deg));
      transition: transform 160ms ease, box-shadow 160ms ease;
      display: flex;
    }

    .project-sticky-note:nth-of-type(even) {
      --tilt: 1.5deg;
      background: rgba(255, 249, 208, 0.92);
    }

    .project-sticky-note:nth-of-type(odd) {
      background: rgba(255, 223, 186, 0.92);
    }

    .project-sticky-text {
      flex: 1;
      margin: 0;
      line-height: 1.45;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .project-sticky-text:empty::before {
      content: 'Skriv notat…';
      color: rgba(17, 17, 17, 0.55);
    }

    .project-sticky-text[contenteditable='true'] {
      outline: none;
      cursor: text;
    }

    .project-sticky-delete {
      position: absolute;
      top: 10px;
      right: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.18);
      background: rgba(0, 0, 0, 0.42);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 140ms ease, transform 140ms ease, background 140ms ease, border-color 140ms ease,
        box-shadow 140ms ease;
      white-space: nowrap;
    }

    .project-sticky-delete:hover,
    .project-sticky-delete:focus-visible {
      transform: translateY(-1px);
      background: rgba(0, 0, 0, 0.56);
      border-color: rgba(0, 0, 0, 0.3);
      box-shadow: 0 12px 28px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .project-sticky-note:hover .project-sticky-delete,
    .project-sticky-note:focus-within .project-sticky-delete {
      opacity: 1;
      pointer-events: auto;
    }

    .project-sticky-note.is-editing .project-sticky-delete {
      opacity: 1;
      pointer-events: auto;
    }

    .project-stickies li.project-section-empty {
      background: none;
      color: var(--text-secondary);
      font-weight: 500;
      box-shadow: none;
      min-height: auto;
      padding: 0;
      transform: none;
    }

    .project-sticky-note:hover,
    .project-sticky-note:focus-visible {
      transform: translateY(-2px) rotate(0deg);
      box-shadow: 0 22px 36px rgba(5, 7, 12, 0.42);
      outline: none;
    }

    .project-section-empty {
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    main[data-project-open='true'] .project-shortcuts {
      display: none;
    }

    main[data-project-open='true'] .board {
      display: none;
    }

    main[data-project-open='true'] .project-area {
      display: grid;
    }

    main[data-project-open='true'] .history-panel {
      display: none;
    }

    main[data-project-open='true'] .header-actions {
      display: none;
    }

    .board {
      position: relative;
      width: 100%;
      gap: var(--column-gap);
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: auto;
      align-items: start;
    }

    .board[data-layout='horizontal'] {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      overflow-x: visible;
      padding-bottom: 12px;
    }

    .board[data-layout='horizontal'] .task-column {
      flex: 1 1 0;
      min-width: 220px;
    }

    .board[data-layout='grid'] {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: auto;
      align-items: start;
    }

    .board[data-layout='combined'] {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: auto;
      align-items: start;
    }

    .board[data-layout='combined'] .task-column[data-combined-hidden='true'] {
      display: none;
    }

    .board[data-layout='combined'] .task-column[data-combined-host='true'] {
      display: flex;
    }

    /* Simple show/hide for board and menu */
    .board {
      transition: opacity 300ms ease;
    }

    .board[data-task-settings-open='true'] {
      display: none;
    }

    .todo-workspace {
      position: relative;
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    .todo-menu {
      display: none;
      position: relative;
      width: 100%;
      z-index: 10;
      background: transparent;
      overflow-y: visible;
      padding: 0;
      margin-top: clamp(18px, 3vw, 28px);
    }

    .todo-menu:not([hidden]) {
      display: block;
    }

    .task-column {
      position: relative;
      border-radius: var(--column-radius);
      padding: 22px 22px 32px;
      min-height: 600px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      border: 1px solid var(--column-border);
      background: rgba(12, 16, 28, 0.72);
      backdrop-filter: blur(24px);
      box-shadow: var(--column-shadow);
      overflow: visible;
      isolation: isolate;
    }

    /* Light theme styling for task columns */
    body.app-shell[data-theme='light'] .task-column {
      background: var(--column-base);
      backdrop-filter: blur(22px);
      box-shadow: var(--column-shadow);
    }

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

    .column-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--card-divider);
    }

    .column-title {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .column-header h2 {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      text-transform: uppercase;
    }

    .column-header p {
      margin: 4px 0 0;
      font-size: 0.9rem;
      color: var(--text-secondary);
    }

    .column-add-btn {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 1.4rem;
      font-weight: 500;
      line-height: 1;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
      backdrop-filter: blur(14px);
    }

    .column-add-btn:hover,
    .column-add-btn:focus-visible {
      transform: translateY(-2px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 30px rgba(5, 7, 12, 0.42);
      outline: none;
    }

    .column-body {
      display: flex;
      flex-direction: column;
      gap: 0px;
      position: relative;
    }

    .task-column.is-filter-empty .column-body::after {
      content: attr(data-empty-message);
      display: block;
      margin: 12px 0;
      padding: 12px;
      border-radius: 16px;
      border: 1px dashed rgba(255, 255, 255, 0.16);
      background: rgba(12, 15, 24, 0.35);
      color: var(--text-secondary);
      font-size: 0.85rem;
      text-align: center;
    }

    .todo-card[data-filter-hidden='true'] {
      display: none !important;
    }

    .todo-card:not([data-enhanced='true']) {
      position: relative;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0px 40px 0px 0;
    }

    .todo-card:not([data-enhanced='true']).is-editing {
      background: var(--card-hover);
      padding: 10px 52px 10px 12px;
      border-radius: 12px;
    }

    .todo-card[data-enhanced='true'] {
      position: relative;
      display: block;
      perspective: 1600px;
      overflow: visible;
      z-index: 0;
    }

    .todo-card[data-enhanced='true'][data-flipped='true'] {
      z-index: 6;
      min-height: 400px;
    }

    .todo-card[data-enhanced='true'] .todo-card-inner {
      position: relative;
      display: grid;
      transform-style: preserve-3d;
      transition: transform 420ms ease;
    }

    .todo-card[data-enhanced='true'][data-flipped='true'] .todo-card-inner {
      transform: rotateY(180deg);
    }

    .todo-card[data-enhanced='true'] .todo-card-face {
      grid-area: 1 / 1;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      width: 100%;
    }

    .todo-card[data-enhanced='true'] .todo-card-face--front {
      position: relative;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0px 40px 0px 0;
      background: transparent;
    }

    /* Horizontal layout: reduce right padding to allow text to extend further */
    .board[data-layout='horizontal'] .todo-card[data-enhanced='true'] .todo-card-face--front {
      padding: 0px 12px 0px 0;
    }

    .board[data-layout='horizontal'] .todo-card[data-enhanced='true'].is-editing .todo-card-face--front {
      padding: 10px 12px 10px 12px;
    }

    .todo-card[data-enhanced='true'].is-editing .todo-card-face--front {
      background: var(--card-hover);
      padding: 10px 52px 10px 12px;
      border-radius: 12px;
    }

    .todo-card.is-completing .todo-text {
      text-decoration: line-through;
      opacity: 0.6;
    }

    .todo-card[data-enhanced='true'] .todo-card-face--back {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: clamp(18px, 4vw, 36px);
      transform: rotateY(180deg);
      pointer-events: none;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      background: rgba(12, 15, 24, 0.95);
      border-radius: var(--column-radius, 28px);
      overflow: auto;
    }

    .todo-card[data-inline-creation='true'] .todo-text {
      min-height: 28px;
      padding-bottom: 4px;
      border-bottom: 2px solid rgba(0, 0, 0, 0.88);
      background: rgba(255, 255, 255, 0.08);
    }

    .todo-card[data-inline-creation='true'] .todo-actions {
      display: none;
    }

    .todo-card[data-enhanced='true'][data-flipped='true'] .todo-card-face--front {
      pointer-events: none;
      visibility: hidden;
    }

    .todo-card[data-enhanced='true'][data-flipped='true'] .todo-card-face--back {
      pointer-events: auto;
      opacity: 1;
      visibility: visible;
    }

    .todo-card[data-enhanced='true'] .todo-card-face--back > .todo-menu {
      width: min(420px, 100%);
    }

    .todo-text {
      margin: 0;
      font-size: 0.95rem;
      line-height: 1.05;
      color: var(--text-primary);
      flex: 1;
      min-width: 0;
    }

    .todo-text[contenteditable='true'] {
      cursor: text;
      outline: none;
    }

    .todo-actions {
      position: absolute;
      top: 50%;
      right: 0;
      display: flex;
      gap: 10px;
      flex-shrink: 0;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-50%);
      transition: opacity 150ms ease;
      z-index: 2;
    }

    .board[data-layout='horizontal'] .todo-actions {
      background: none;
      padding-left: 20px;
      margin-left: -20px;
    }

    .todo-check-btn {
      width: 24px;
      height: 24px;
      border-radius: 8px;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
      flex-shrink: 0;
    }

    .todo-check-btn:hover,
    .todo-check-btn:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 10px 24px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .todo-check-btn svg {
      width: 14px;
      height: 14px;
      stroke: rgba(255, 255, 255, 0.94);
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .todo-card:hover .todo-actions,
    .todo-card:focus-within .todo-actions,
    .todo-card.is-editing .todo-actions {
      opacity: 1;
      pointer-events: auto;
    }

    .todo-action-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      box-shadow: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    }

    .todo-action-btn:hover,
    .todo-action-btn:focus-visible {
      transform: translateY(-2px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 12px 32px rgba(5, 7, 12, 0.42);
      outline: none;
    }

    .todo-action-btn svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: rgba(255, 255, 255, 0.94);
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .todo-workspace {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    .todo-menu {
      width: clamp(560px, 58vw, 840px);
      max-width: 100%;
      margin: 0;
      background: rgba(12, 16, 28, 0.72);
      color: rgba(255, 255, 255, 0.94);
      border-radius: var(--column-radius, 28px);
      border: 1px solid var(--column-border);
      padding: clamp(22px, 3vw, 32px);
      box-shadow: var(--column-shadow);
      backdrop-filter: blur(24px);
    }

    /* Light theme for todo menu */
    body.app-shell[data-theme='light'] .todo-menu {
      background: var(--column-base);
      backdrop-filter: blur(22px);
    }
      padding: 14px;
      overflow: visible;
    }

    .todo-menu[data-open='true'] {
      pointer-events: auto;
    }

    .todo-menu-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: transparent;
      backdrop-filter: none;
      border-bottom: none;
      padding: 16px;
      margin: -16px -16px 8px -16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .todo-menu-header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: nowrap;
    }

    .todo-menu-header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      flex-wrap: wrap;
      background: transparent;
      border: none;
    }

    .todo-menu-close-button {
      position: absolute;
      top: 0;
      right: 0;
    }

    .todo-menu-content {
      margin-bottom: 6px;
    }

    .todo-menu-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 100%;
      max-width: 100%;
    }

    .todo-menu-text-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-tertiary, rgba(255, 255, 255, 0.64));
      margin-bottom: 2px;
    }

    .todo-menu-textarea {
      width: 100%;
      min-height: 50px;
      resize: none;
      border-radius: 14px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--text-primary);
      padding: 10px 12px;
      font: inherit;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.4;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .todo-menu-textarea::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .todo-menu-textarea:hover {
      background: rgba(12, 15, 24, 0.35);
    }

    .todo-menu-textarea:focus-visible {
      outline: none;
      border-color: rgba(164, 206, 255, 0.6);
      background: rgba(12, 15, 24, 0.76);
      box-shadow: 0 0 0 3px rgba(96, 155, 255, 0.2);
    }

    .todo-menu-header-actions {
      position: absolute;
      top: 0;
      right: 0;
      display: inline-flex;
      gap: 10px;
      padding-top: 0;
      align-self: flex-start;
    }

    .todo-menu-icon-button {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(12, 15, 24, 0.62);
      color: inherit;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .todo-menu-icon-button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .todo-menu-icon-button:hover,
    .todo-menu-icon-button:focus-visible {
      border-color: rgba(255, 255, 255, 0.32);
      background: rgba(12, 15, 24, 0.82);
      outline: none;
      transform: translateY(-2px);
    }

    .todo-menu-icon-button:active {
      transform: translateY(0);
    }

    .todo-menu-icon-button--danger {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
      color: rgba(255, 255, 255, 0.7);
      width: 38px;
      height: 38px;
      flex-shrink: 0;
      flex-grow: 0;
    }

    .todo-menu-icon-button--danger:hover,
    .todo-menu-icon-button--danger:focus-visible {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.28);
      color: rgba(255, 255, 255, 0.9);
    }

    .todo-menu-body {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }

    .todo-menu-focus-button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex: 1;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(120, 175, 255, 0.45);
      background: linear-gradient(135deg, rgba(48, 94, 214, 0.28), rgba(72, 126, 240, 0.22));
      color: rgba(214, 226, 255, 0.98);
      font-weight: 600;
      font-size: 0.85rem;
      letter-spacing: 0.03em;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(18, 52, 138, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
      flex-shrink: 1;
      white-space: nowrap;
    }
    
    /* Show full text on larger screens */
    .focus-button-text-short {
      display: none;
    }
    
    .focus-button-text-full {
      display: inline;
    }
    
    /* Show short text on smaller screens */
    @media (max-width: 500px) {
      .focus-button-text-full {
        display: none;
      }

      .focus-button-text-short {
        display: inline;
      }

      /* Keep buttons on one row */
      .todo-menu-header-top {
        flex-wrap: nowrap;
      }

      /* Ensure delete button stays same size */
      .todo-menu-icon-button--danger {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
      }

      /* Adjust focus button to fit better */
      .todo-menu-focus-button {
        flex-shrink: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.8rem;
      }

      /* Adjust save button */
      .todo-menu-button--primary {
        flex-shrink: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.8rem;
        height: 38px;
      }

      /* Ensure focus button matches height */
      .todo-menu-focus-button {
        height: 38px;
      }
    }

    .todo-menu-focus-button:hover,
    .todo-menu-focus-button:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(164, 206, 255, 0.66);
      background: linear-gradient(135deg, rgba(72, 126, 240, 0.36), rgba(96, 155, 255, 0.28));
      color: rgba(235, 241, 255, 1);
      box-shadow: 0 16px 40px rgba(18, 52, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      outline: none;
    }

    .todo-menu-focus-button:active {
      transform: translateY(0);
    }

    .todo-menu-focus-button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .todo-menu-section {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 100%;
    }

    .todo-menu-field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      align-items: stretch;
    }

    .todo-menu-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      border-radius: 0;
      min-width: 0;
    }

    .todo-menu-field--compact {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      margin-bottom: 8px;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
      min-height: 52px;
      height: auto;
    }

    .todo-menu-field--compact:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .todo-menu-field--compact .todo-menu-field-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .todo-menu-field--compact .todo-menu-field-date-display {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 0;
      padding-right: 8px;
      cursor: pointer;
      min-width: 0;
    }

    .todo-menu-field-row .todo-menu-field {
      gap: 6px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
      min-height: 52px;
      height: auto;
    }

    .todo-menu-field-row .todo-menu-field:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .todo-menu-field-info {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    /* Fjernet spesifikke størrelser for due date-felt for mer konsistent layout */

    .todo-menu-field-icon {
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      flex-shrink: 0;
      background: transparent;
      border: none;
    }

    .todo-menu-field-icon svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .todo-menu-field-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .todo-menu-field-heading {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-tertiary, rgba(255, 255, 255, 0.64));
    }

    .todo-menu-date-button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(12, 15, 24, 0.5);
      color: inherit;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .todo-menu-date-button:hover,
    .todo-menu-date-button:focus-visible {
      outline: none;
      border-color: rgba(255, 255, 255, 0.32);
      background: rgba(12, 15, 24, 0.7);
      transform: translateY(-1px);
    }

    .todo-menu-date-button svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .todo-menu-field-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.96);
      word-break: break-word;
    }

    .todo-menu-field-caption {
      font-size: 0.95rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.96);
    }

    .todo-menu-field-control {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .todo-menu-shortcuts {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .todo-menu-shortcuts button {
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 15, 24, 0.5);
      color: var(--text-secondary);
      padding: 6px 10px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .todo-menu-button-group {
      display: inline-flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .todo-menu-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.86);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
      line-height: 1;
      min-height: 32px;
      height: auto;
      transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
      backdrop-filter: blur(12px);
      white-space: nowrap;
    }

    .todo-menu-chip:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.22);
      color: rgba(255, 255, 255, 0.92);
      transform: translateY(-1px);
    }

    .todo-menu-chip--active {
      background: rgba(255, 255, 255, 0.26);
      border-color: rgba(255, 255, 255, 0.38);
      color: #0b101a;
      transform: translateY(-1px);
      font-weight: 600;
    }

    .todo-menu-chip--active:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.42);
      color: #0b101a;
    }

    .todo-menu-shortcuts button:hover,
    .todo-menu-shortcuts button:focus-visible {
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(12, 15, 24, 0.7);
      color: var(--text-primary);
      outline: none;
      transform: translateY(-1px);
    }

    /* Tablet and medium screens */
    @media (max-width: 900px) and (min-width: 641px) {
      .todo-menu-header {
        padding: 18px;
      }

      .todo-menu-focus-button {
        font-size: 0.92rem;
      }

      .todo-menu-field--compact {
        padding: 13px 15px;
      }
    }

    /* Mobile screens */
    @media (max-width: 640px) {
      .todo-menu-field-row {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .todo-menu-field[data-menu-field="category"],
      .todo-menu-field[data-menu-field="priority"] {
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
      }

      /* Mobile adjustments for new header layout */
      .todo-menu-header {
        padding: 16px;
        margin: -18px -18px 16px -18px;
      }

      .todo-menu-header-top {
        flex-wrap: wrap;
      }

      .todo-menu-focus-button {
        font-size: 0.9rem;
        padding: 12px 16px;
      }

      .todo-menu-focus-button svg {
        width: 16px;
        height: 16px;
      }

      /* Compact date field for mobile */
      .todo-menu-field--compact {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
      }

      .todo-menu-field--compact .todo-menu-field-date-display {
        justify-content: flex-start;
      }

      .todo-menu-field-date-text {
        font-size: 0.7rem;
        padding: 7px 12px;
        min-height: 30px;
      }

      /* Smaller chips on mobile */
      .todo-menu-chip {
        font-size: 0.7rem;
        padding: 7px 12px;
        min-height: 30px;
      }
    }

    .todo-menu[data-menu-size='cozy'] {
      padding: 20px;
      gap: 18px;
    }

    .todo-menu[data-menu-size='cozy'] .todo-menu-field[data-menu-field='due'] {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }

    .todo-menu[data-menu-size='cozy'] .todo-menu-field[data-menu-field='due'] .todo-menu-field-control {
      justify-content: flex-start;
    }

    .todo-menu[data-menu-size='compact'] {
      padding: 18px 16px;
      gap: 16px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-header {
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      margin: -18px -18px 16px -18px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-header-top {
      width: 100%;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-focus-button {
      padding: 12px 16px;
      font-size: 0.9rem;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-focus-button svg {
      width: 16px;
      height: 16px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-header-actions {
      position: static;
      margin-left: 0;
      padding-top: 0;
      align-self: flex-end;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field--compact {
      flex-direction: column;
      gap: 10px;
      padding: 12px 14px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field--compact .todo-menu-field-date-display {
      justify-content: flex-start;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field-info,
    .todo-menu[data-menu-size='compact'] .todo-menu-field-control {
      flex: 1 1 100%;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field-control {
      justify-content: flex-start;
      gap: 10px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='due'] .todo-menu-field-control {
      flex: 1 1 100%;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-shortcuts {
      justify-content: flex-start;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-date-button {
      padding: 12px 14px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-shortcuts {
      display: none;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-textarea {
      min-height: 64px;
      padding: 12px 14px;
      font-size: 0.95rem;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field {
      padding: 14px 14px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'],
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] {
      align-items: stretch;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'] .todo-menu-field-info,
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] .todo-menu-field-info {
      flex-direction: column;
      gap: 8px;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'] .todo-menu-field-icon,
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] .todo-menu-field-icon {
      display: none;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'] .todo-menu-field-caption,
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] .todo-menu-field-caption {
      display: none;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'] .todo-menu-field-control,
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] .todo-menu-field-control {
      width: 100%;
    }

    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='category'] .todo-menu-select,
    .todo-menu[data-menu-size='compact'] .todo-menu-field[data-menu-field='priority'] .todo-menu-select {
      width: 100%;
    }

    .todo-menu-select {
      position: relative;
      min-width: 120px;
    }

    .todo-menu-select::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 12px;
      width: 10px;
      height: 10px;
      border-right: 2px solid rgba(255, 255, 255, 0.6);
      border-bottom: 2px solid rgba(255, 255, 255, 0.6);
      transform: translateY(-70%) rotate(45deg);
      pointer-events: none;
    }

    .todo-menu-select select {
      appearance: none;
      width: 100%;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(12, 15, 24, 0.6);
      color: rgba(255, 255, 255, 0.95);
      padding: 10px 36px 10px 12px;
      font-family: inherit;
      font-size: 0.95rem;
      cursor: pointer;
    }

    .todo-menu-select select:focus-visible {
      outline: none;
      border-color: rgba(255, 255, 255, 0.42);
    }

    .todo-menu-date-input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 0;
      height: 0;
      border: 0;
      padding: 0;
      margin: 0;
    }

    .todo-menu-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 14px 24px;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.03em;
      cursor: pointer;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
      width: auto;
    }

    .todo-menu-button:hover,
    .todo-menu-button:focus-visible {
      transform: translateY(-2px);
      outline: none;
    }

    .todo-menu-button:active {
      transform: translateY(0);
    }

    .todo-menu-button--primary {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.22);
      color: rgba(255, 255, 255, 0.94);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .todo-menu-button--primary:hover,
    .todo-menu-button--primary:focus-visible {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .todo-menu-button--ghost {
      background: rgba(12, 15, 24, 0.6);
      border-color: rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.94);
    }

    .todo-menu-button--ghost:hover,
    .todo-menu-button--ghost:focus-visible {
      background: rgba(12, 15, 24, 0.82);
      border-color: rgba(255, 255, 255, 0.32);
    }

    /* Footer ikke lenger i bruk - knapper er flyttet til header */

    /* Large screen layout for todo-menu sections */
    @media (min-width: 900px) {
      /* First section: Due date, Category, Priority in 3 columns */
      .todo-menu-body > .todo-menu-section:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        align-items: start;
      }

      .todo-menu-body > .todo-menu-section:first-child .todo-menu-field--compact {
        grid-column: 1 / 2;
        margin-bottom: 0;
      }

      .todo-menu-body > .todo-menu-section:first-child .todo-menu-field-row {
        grid-column: 2 / 4;
        padding: 0;
        border-bottom: none;
      }

      /* Notes and Checklist in 2 columns */
      .todo-menu-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .todo-menu-body > .todo-menu-section:first-child {
        grid-column: 1 / -1;
      }

      .todo-menu-body > .todo-menu-section:nth-child(2),
      .todo-menu-body > .todo-menu-section:nth-child(3) {
        grid-column: span 1;
      }

      /* Create 2-column layout for notes and checklist on large screens */
      .todo-menu-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: start;
      }

      .todo-menu-body > .todo-menu-section:first-child {
        grid-column: 1 / -1;
      }

      /* Align subtask list with notes textarea */
      .todo-menu-body > .todo-menu-section:nth-child(2),
      .todo-menu-body > .todo-menu-section:nth-child(3) {
        display: flex;
        flex-direction: column;
      }

      .todo-menu-body > .todo-menu-section:nth-child(2) .todo-menu-field-header,
      .todo-menu-body > .todo-menu-section:nth-child(3) .todo-menu-field-header {
        align-self: stretch;
      }
    }

    .history-panel {
      align-self: flex-end;
      width: min(360px, 100%);
      background: rgba(12, 15, 24, 0.64);
      border-radius: 24px;
      border: 1px solid var(--action-border);
      box-shadow: var(--column-shadow);
      padding: 22px 24px;
      display: none;
      flex-direction: column;
      gap: 16px;
      backdrop-filter: blur(18px);
      color: var(--text-primary);
    }

    .history-panel[data-open='true'] {
      display: flex;
    }

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

    .history-header h2 {
      margin: 0;
      font-size: 1rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .history-close-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    }

    .history-close-btn:hover,
    .history-close-btn:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 10px 24px rgba(5, 7, 12, 0.38);
      outline: none;
    }

    .history-empty {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

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

    .history-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .history-item .history-icon {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      flex-shrink: 0;
      color: rgba(12, 15, 24, 0.82);
    }

    .history-item .history-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .history-item .history-content p {
      margin: 0;
      font-size: 0.92rem;
    }

    .history-item .history-content time {
      font-size: 0.78rem;
      color: var(--text-secondary);
    }

    .history-toolbar {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: clamp(12px, 2.4vw, 18px);
    }

    .history-toolbar:not([hidden]) {
      display: flex;
    }

    .history-back-button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(12, 15, 24, 0.6);
      color: var(--text-primary);
      font-weight: 600;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
      backdrop-filter: blur(14px);
    }

    .history-back-button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .history-back-button:hover,
    .history-back-button:focus-visible {
      transform: translateY(-1px);
      background: rgba(12, 15, 24, 0.78);
      border-color: rgba(255, 255, 255, 0.32);
      outline: none;
    }

    .history-filter {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 15, 24, 0.58);
      color: var(--text-primary);
      font-weight: 500;
      backdrop-filter: blur(14px);
    }

    .history-filter-label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-secondary);
    }

    .history-filter-select {
      appearance: none;
      border: none;
      background: transparent;
      color: var(--text-primary);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0;
      cursor: pointer;
      min-width: 150px;
    }

    .history-filter-select:focus {
      outline: none;
    }

    @media (max-width: 1024px) {
      .overview-panels {
        grid-template-columns: minmax(0, 1fr);
      }

      .project-shortcuts {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 768px) {
      .board[data-layout='grid'] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      /* Combined layout remains horizontal at all screen sizes */
      .board[data-layout='combined'] {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
      }

      .board[data-layout='combined'] .task-column {
        flex: 1 1 0;
        min-width: 280px;
      }
    }

    @media (max-width: 640px) {
      .todo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 10px 12px;
      }

      .todo-card.is-editing {
        padding: 12px;
      }

      .todo-actions {
        position: static;
        justify-content: flex-end;
        opacity: 1;
        transform: none;
        pointer-events: auto;
      }

      .todo-check-btn {
        align-self: flex-start;
      }

      .todo-menu {
        min-width: min(300px, calc(100vw - 32px));
      }
    }

    main[data-history-open='true'] .board {
      display: none;
    }

    main[data-history-open='true'] .todo-workspace {
      display: none;
    }

    main[data-history-open='true'] .history-panel {
      align-self: center;
      margin: 0 auto;
    }

    main[data-history-open='true'] .overview-panels {
      display: none;
    }

    main[data-history-open='true'] .header-actions {
      display: none;
    }

    main[data-history-open='true'] .project-area {
      display: none !important;
    }

    @media (max-width: 900px) {
      header {
        gap: 16px;
      }

      .header-top {
        align-items: flex-start;
      }
    }

    @media (max-width: 1080px) {
      .project-area {
        grid-template-columns: minmax(0, 1fr);
      }

      .project-back-button {
        justify-self: flex-end;
      }

      .project-panel {
        min-width: 0;
      }

      /* Collapsible project list on narrow screens */
      .project-list {
        position: relative;
      }

      .project-list-header {
        cursor: pointer;
        user-select: none;
        position: relative;
      }

      .project-list-header::after {
        content: '▼';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        transition: transform 200ms ease;
        color: rgba(255, 255, 255, 0.6);
      }

      .project-list[data-collapsed='true'] .project-list-header::after {
        transform: translateY(-50%) rotate(-90deg);
      }

      .project-list[data-collapsed='true'] .project-list-items {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: max-height 300ms ease, opacity 200ms ease, padding 200ms ease;
      }

      .project-list[data-collapsed='false'] .project-list-items {
        max-height: 1000px;
        opacity: 1;
        transition: max-height 300ms ease, opacity 200ms ease;
      }
    }

    /* Custom styling for updated todo menu */
    
    /* Text heading display (overskrift) */
    .todo-menu-text-heading {
      margin: 0;
      padding: 10px 12px;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.4;
      color: rgba(255, 255, 255, 0.96);
      background: rgba(12, 15, 24, 0.3);
      border: 1px solid transparent;
      border-radius: 14px;
      cursor: pointer;
      transition: all 0.15s ease;
      word-wrap: break-word;
    }

    .todo-menu-text-heading:hover {
      background: rgba(12, 15, 24, 0.42);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .todo-menu-text-display {
      width: 100%;
    }

    /* Footer actions ikke lenger i bruk - knapper er i header */

    /* Reduce save button size */
    .todo-menu-button--primary {
      padding: 10px 18px;
      font-size: 0.9rem;
      font-weight: 600;
    }

    .todo-menu-button--ghost {
      padding: 10px 16px;
      font-size: 0.9rem;
      font-weight: 600;
    }

    /* Compact due date field */
    .todo-menu-field--compact {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .todo-menu-field-header {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .todo-menu-field-date-display {
      display: flex;
      align-items: center;
      padding: 4px 0;
      cursor: pointer;
      position: relative;
    }

    .todo-menu-field-date-text {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.86);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      cursor: pointer;
      line-height: 1;
      min-height: 32px;
      transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
      backdrop-filter: blur(12px);
      white-space: nowrap;
    }

    .todo-menu-field-date-display:hover .todo-menu-field-date-text {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.22);
      color: rgba(255, 255, 255, 0.92);
      transform: translateY(-1px);
    }

    /* Ensure menu content scales properly */
    .todo-menu:not([hidden]) {
      display: flex;
      flex-direction: column;
      max-height: none;
      min-height: 0;
      height: auto;
      overflow: visible;
    }

    .todo-menu-body {
      overflow-y: visible;
      overflow-x: visible;
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
    }

    .todo-menu-header {
      flex-shrink: 0;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .todo-menu-body {
        overflow-y: visible;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
      }

      .todo-menu-header {
        padding: 12px;
        margin: -18px -18px 12px -18px;
      }

      .todo-menu-header-actions {
        gap: 8px;
        flex-direction: column;
        width: 100%;
      }

      .todo-menu-header-actions button {
        width: 100%;
        justify-content: center;
      }

      .todo-menu-icon-button {
        width: 100%;
        justify-content: center;
        gap: 8px;
      }

      .todo-menu-focus-button {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
      }

      .todo-menu-text {
        max-width: 100%;
        width: 100%;
      }
    }

    @media (max-width: 600px) {
      .todo-menu-button {
        flex: 1;
        font-size: 0.85rem;
        padding: 10px 14px;
      }

      .todo-menu-text-heading {
        font-size: 0.98rem;
        padding: 12px 14px;
      }

      .todo-menu-body {
        overflow-y: visible;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
      }

      .todo-menu-header {
        padding: 10px;
        margin: -18px -18px 10px -18px;
      }

      .todo-menu-header-actions {
        gap: 6px;
      }

      .todo-menu-focus-button {
        width: 100%;
        padding: 9px 14px;
        font-size: 0.82rem;
        gap: 5px;
      }

      .todo-menu-focus-button svg {
        width: 14px;
        height: 14px;
      }

      .todo-menu-text {
        max-width: 100%;
        width: 100%;
        min-width: 0;
      }
    }

    /* ============================================ */
    /* FULLSCREEN TASK SETTINGS IMPROVEMENTS */
    /* ============================================ */

    /* Notes textarea styling */
    .todo-menu-notes-textarea {
      width: 100%;
      min-height: 120px;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid var(--column-border);
      background: rgba(12, 15, 24, 0.55);
      color: var(--text-primary);
      font-family: inherit;
      font-size: 0.95rem;
      line-height: 1.5;
      resize: vertical;
      transition: border-color 150ms ease, box-shadow 150ms ease;
    }

    .todo-menu-notes-textarea::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .todo-menu-notes-textarea:focus-visible {
      outline: none;
      border-color: rgba(255, 255, 255, 0.32);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
    }

    /* Subtask list styling */
    .todo-menu-field-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      min-height: 28px;
    }

    .todo-menu-add-subtask {
      margin-left: auto;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--action-border);
      background: var(--action-bg);
      color: var(--text-primary);
      font-size: 1.2rem;
      line-height: 1;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
    }

    .todo-menu-add-subtask:hover,
    .todo-menu-add-subtask:focus-visible {
      transform: translateY(-1px);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
      outline: none;
    }

    .todo-menu-subtask-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .todo-menu-subtask-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--column-border);
      background: rgba(12, 15, 24, 0.55);
      color: var(--text-primary);
      transition: border-color 150ms ease, background 150ms ease;
    }

    .todo-menu-subtask-item:hover {
      border-color: rgba(255, 255, 255, 0.24);
      background: rgba(12, 15, 24, 0.70);
    }

    .todo-menu-subtask-checkbox {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      border: 1.5px solid var(--action-border);
      background: var(--action-bg);
      display: grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.85rem;
      flex-shrink: 0;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
    }

    .todo-menu-subtask-checkbox:hover {
      transform: scale(1.1);
      background: var(--action-bg-hover);
      border-color: rgba(255, 255, 255, 0.32);
    }

    .todo-menu-subtask-item.is-completed .todo-menu-subtask-checkbox {
      background: rgba(99, 189, 140, 0.32);
      border-color: rgba(99, 189, 140, 0.78);
      color: #d1ffe4;
    }

    .todo-menu-subtask-text {
      flex: 1;
      min-width: 0;
      font-size: 0.92rem;
      line-height: 1.4;
    }

    .todo-menu-subtask-item.is-completed .todo-menu-subtask-text {
      text-decoration: line-through;
      color: var(--text-secondary);
      opacity: 0.75;
    }

    .todo-menu-subtask-delete {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: none;
      background: transparent;
      color: rgba(255, 255, 255, 0.5);
      display: grid;
      place-items: center;
      cursor: pointer;
      opacity: 0;
      transition: opacity 150ms ease, color 150ms ease, transform 150ms ease;
      flex-shrink: 0;
    }

    .todo-menu-subtask-item:hover .todo-menu-subtask-delete,
    .todo-menu-subtask-item:focus-within .todo-menu-subtask-delete {
      opacity: 1;
    }

    .todo-menu-subtask-delete:hover,
    .todo-menu-subtask-delete:focus-visible {
      color: rgba(255, 255, 255, 0.9);
      transform: scale(1.1);
      outline: none;
    }

    /* ============================================ */
    /* FIX CONTAINER HEIGHT ISSUES */
    /* ============================================ */

    /* Fix todo columns to grow vertically */
    .column-body {
      flex: 1;
      min-height: 0;
      overflow: visible;
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding-top: 18px;
    }

    .task-column {
      min-height: 600px;
      height: auto;
      overflow: visible;
    }

    /* Ensure the board grows to fit content */
    .board {
      min-height: 600px;
      height: auto;
      overflow: visible;
    }

    /* Fix project area to expand vertically */
    .project-panel {
      min-height: fit-content;
      height: auto;
      max-height: none;
      overflow: visible;
    }

    .project-panel-body {
      flex: 1;
      min-height: 0;
      overflow: visible;
      max-height: none;
    }

    .project-workspace {
      min-height: fit-content;
      height: auto;
      overflow: visible;
    }

    .project-sections {
      min-height: 0;
      overflow: visible;
    }

    /* Ensure project area itself expands */
    .project-area {
      height: auto;
      min-height: fit-content;
      overflow: visible;
    }

    .project-list {
      height: auto;
      min-height: fit-content;
      overflow: visible;
    }

    /* Make sure the main content area allows growth */
    .todo-main {
      min-height: 100vh;
      height: auto;
      overflow: visible;
    }
