:root {
        --ink: #171d39;
        --muted: #6e7693;
        --line: rgba(117, 87, 129, 0.38);
        --violet: #755781;
        --blue: #57a0bf;
        --green: #88b65d;
        --gaia-gradient: linear-gradient(90deg, rgba(139, 98, 190, 0.9) 0%, rgba(117, 87, 129, 0.82) 28%, rgba(87, 160, 191, 0.84) 62%, rgba(182, 234, 244, 0.68) 100%);
        --gaia-gradient-hover: linear-gradient(90deg, rgba(150, 105, 204, 0.94) 0%, rgba(117, 87, 129, 0.88) 28%, rgba(87, 160, 191, 0.88) 62%, rgba(182, 234, 244, 0.76) 100%);
        --gaia-button-surface:
          radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.42), transparent 9rem) padding-box,
          linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)) padding-box,
          linear-gradient(94deg, rgba(139, 98, 190, 0.88) 0%, rgba(117, 87, 129, 0.76) 30%, rgba(87, 160, 191, 0.84) 62%, rgba(182, 234, 244, 0.7) 100%) padding-box,
          linear-gradient(94deg, rgba(255, 255, 255, 0.9) 0%, rgba(182, 234, 244, 0.82) 48%, rgba(196, 187, 224, 0.72) 100%) border-box;
        --gaia-button-surface-hover:
          radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.52), transparent 10rem) padding-box,
          linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06)) padding-box,
          linear-gradient(94deg, rgba(150, 105, 204, 0.94) 0%, rgba(117, 87, 129, 0.82) 30%, rgba(87, 160, 191, 0.9) 62%, rgba(182, 234, 244, 0.78) 100%) padding-box,
          linear-gradient(94deg, rgba(255, 255, 255, 0.96) 0%, rgba(182, 234, 244, 0.9) 48%, rgba(196, 187, 224, 0.8) 100%) border-box;
        --gaia-button-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.72),
          inset 0 0 0 1px rgba(255, 255, 255, 0.22),
          inset 0 -10px 18px rgba(117, 87, 129, 0.08),
          0 14px 30px rgba(87, 160, 191, 0.18),
          0 4px 12px rgba(117, 87, 129, 0.08);
        --gaia-button-shadow-hover:
          inset 0 1px 0 rgba(255, 255, 255, 0.8),
          inset 0 0 0 1px rgba(255, 255, 255, 0.28),
          inset 0 -10px 18px rgba(117, 87, 129, 0.08),
          0 18px 36px rgba(87, 160, 191, 0.22),
          0 6px 16px rgba(117, 87, 129, 0.1);
        --glass: rgba(255, 255, 255, 0.68);
        --glass-strong: rgba(255, 255, 255, 0.84);
        --shadow: 0 18px 60px rgba(87, 160, 191, 0.12);
        --inner: inset 0 1px 0 rgba(255, 255, 255, 0.75);
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        min-height: 100vh;
        color: var(--ink);
        font-family:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background:
          radial-gradient(circle at 6% 46%, rgba(136, 182, 93, 0.78), transparent 14rem),
          radial-gradient(circle at 18% 74%, rgba(182, 234, 244, 0.82), transparent 17rem),
          radial-gradient(circle at 74% 4%, rgba(87, 160, 191, 0.82), transparent 14rem),
          radial-gradient(circle at 90% 16%, rgba(136, 182, 93, 0.74), transparent 14rem),
          radial-gradient(circle at 67% 10%, rgba(196, 187, 224, 0.62), transparent 9rem),
          linear-gradient(135deg, #fbfaff 0%, #b6eaf4 44%, #88b65d 100%);
      }

      button,
      input,
      textarea,
      select {
        font: inherit;
      }

      button {
        cursor: pointer;
      }

      button,
      .media-upload {
        transform: translateY(0) scale(1);
        transition:
          transform 0.18s ease,
          box-shadow 0.18s ease,
          background 0.18s ease,
          border-color 0.18s ease,
          color 0.18s ease,
          opacity 0.18s ease;
      }

      button:hover,
      .media-upload:hover {
        transform: translateY(-2px) scale(1.01);
      }

      button:active {
        transform: translateY(0) scale(0.98);
      }

      .page {
        min-height: 100vh;
        padding: clamp(12px, 2.2vw, 30px);
      }

      body:not(.is-authenticated) .page {
        display: none;
      }

      body.is-authenticated .auth-screen {
        display: none;
      }

      .auth-screen {
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 24px;
      }

      .auth-card {
        display: grid;
        width: min(440px, 100%);
        justify-items: center;
        text-align: center;
        gap: 14px;
        border: 1px solid rgba(196, 187, 224, 0.64);
        border-radius: 32px;
        padding: 34px 30px;
        background:
          radial-gradient(circle at 88% 4%, rgba(136, 182, 93, 0.42), transparent 12rem),
          radial-gradient(circle at 10% 12%, rgba(87, 160, 191, 0.6), transparent 14rem),
          rgba(255, 255, 255, 0.82);
        box-shadow: 0 24px 80px rgba(87, 160, 191, 0.16), var(--inner);
        backdrop-filter: blur(10px) saturate(1.16);
      }

      .auth-logo {
        width: 108px;
        height: 132px;
        object-fit: contain;
      }

      .auth-card label,
      .auth-card .auth-message,
      .auth-card .button {
        width: 100%;
      }

      .auth-card label {
        text-align: left;
      }

      .auth-card h1 {
        margin: 0;
        font-size: 28px;
      }

      .auth-copy {
        margin: -4px 0 4px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
      }

      .auth-message {
        min-height: 20px;
        color: #57a0bf;
        font-size: 12px;
        font-weight: 700;
      }

      .auth-message.is-error {
        color: #a54d68;
      }

      .auth-message.is-ok {
        color: #88b65d;
      }

      .shell {
        max-width: 1680px;
        margin: 0 auto;
        padding: clamp(12px, 1.8vw, 24px);
        border: 1px solid rgba(196, 187, 224, 0.42);
        border-radius: clamp(26px, 3vw, 36px);
        background: rgba(255, 255, 255, 0.44);
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px) saturate(1.2);
      }

      .topbar,
      .sidebar,
      .board-info,
      .column,
      .card,
      .modal-panel {
        box-shadow: 0 12px 34px rgba(87, 160, 191, 0.1), var(--inner);
        backdrop-filter: blur(9px) saturate(1.16);
      }

      .topbar {
        display: grid;
        align-items: center;
        grid-template-columns: minmax(360px, 1fr) minmax(480px, 720px);
        gap: 18px;
        margin-bottom: 24px;
        padding: 20px;
        border: 1px solid rgba(196, 187, 224, 0.5);
        border-radius: 32px;
        background: rgba(255, 255, 255, 0.62);
      }

      .brand {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 16px;
      }

      .brand-mark {
        display: block;
        width: 70px;
        height: 88px;
        flex: 0 0 70px;
        object-fit: contain;
      }

      .eyebrow {
        margin: 0;
        color: #57a0bf;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.42em;
        text-transform: uppercase;
      }

      h1,
      h2,
      h3,
      h4,
      p {
        margin: 0;
      }

      h1 {
        margin-top: 4px;
        font-size: clamp(22px, 2.1vw, 26px);
        font-weight: 650;
        letter-spacing: 0.03em;
      }

      .actions {
        display: grid;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 12px;
        min-width: 0;
      }

      .actions > * {
        align-self: center;
      }

      .search {
        position: relative;
        min-width: 0;
        width: 100%;
      }

      .actions > .button {
        flex: 0 0 auto;
        white-space: nowrap;
      }

      .sync-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 48px;
        border: 1.5px solid rgba(196, 187, 224, 0.72);
        border-radius: 999px;
        padding: 0 16px;
        color: #57a0bf;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
          rgba(255, 255, 255, 0.74);
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
        box-shadow:
          0 12px 26px rgba(87, 160, 191, 0.12),
          0 2px 10px rgba(117, 87, 129, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.92);
      }

      .sync-status::before {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #f6c667;
        content: "";
      }

      .sync-status.is-saved::before {
        background: #88b65d;
      }

      .sync-status.is-error::before {
        background: #f08d9a;
      }

      .search span {
        position: absolute;
        top: 50%;
        left: 16px;
        color: #57a0bf;
        transform: translateY(-50%);
      }

      input,
      textarea,
      select {
        width: 100%;
        border: 1px solid rgba(196, 187, 224, 0.55);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        color: var(--ink);
        outline: none;
        box-shadow: 0 12px 34px rgba(87, 160, 191, 0.08), var(--inner);
      }

      input {
        height: 48px;
        padding: 0 18px;
      }

      .search input {
        border: 1.5px solid rgba(87, 160, 191, 0.52);
        padding-left: 44px;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
          rgba(255, 255, 255, 0.76);
        box-shadow:
          0 14px 34px rgba(87, 160, 191, 0.12),
          0 3px 12px rgba(117, 87, 129, 0.06),
          inset 0 1px 0 rgba(255, 255, 255, 0.96);
      }

      .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border: 2px solid transparent;
        border-radius: 999px;
        padding: 0 20px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        background: var(--gaia-button-surface);
        text-shadow: 0 1px 8px rgba(23, 29, 57, 0.22);
        box-shadow: var(--gaia-button-shadow);
        backdrop-filter: blur(12px) saturate(1.22);
      }

      .button:hover {
        background: var(--gaia-button-surface-hover);
        box-shadow: var(--gaia-button-shadow-hover);
      }

      .button.secondary {
        border: 1.5px solid rgba(196, 187, 224, 0.72);
        color: var(--ink);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
          rgba(255, 255, 255, 0.76);
        box-shadow:
          0 14px 34px rgba(87, 160, 191, 0.12),
          0 3px 12px rgba(117, 87, 129, 0.06),
          inset 0 1px 0 rgba(255, 255, 255, 0.96);
      }

      .button.secondary:hover {
        border-color: rgba(87, 160, 191, 0.58);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.78)),
          rgba(255, 255, 255, 0.86);
        box-shadow:
          0 18px 38px rgba(87, 160, 191, 0.15),
          0 4px 14px rgba(117, 87, 129, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 1);
      }

      .sidebar > .button.secondary {
        min-height: 38px;
        border-color: rgba(196, 187, 224, 0.78);
        padding: 0 13px;
        font-size: 13px;
        font-weight: 700;
        box-shadow:
          0 12px 28px rgba(87, 160, 191, 0.11),
          0 3px 10px rgba(117, 87, 129, 0.07),
          inset 0 1px 0 rgba(255, 255, 255, 0.96);
      }

      .content {
        display: grid;
        grid-template-columns: minmax(188px, 226px) minmax(0, 1fr);
        gap: 18px;
      }

      .sidebar {
        align-self: start;
        padding: 16px;
        border: 1px solid rgba(87, 160, 191, 0.55);
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.62);
      }

      .nav {
        display: grid;
        gap: 7px;
        margin-top: 10px;
      }

      .board-row {
        display: flex;
        align-items: center;
      }

      .board-row > button:first-child {
        flex: 1;
        min-width: 0;
      }

      .nav button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 38px;
        border: 1.5px solid rgba(87, 160, 191, 0.68);
        border-radius: 999px;
        padding: 0 13px;
        color: #57a0bf;
        font-size: 13px;
        font-weight: 700;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.7));
        box-shadow:
          0 12px 28px rgba(196, 187, 224, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.9);
        transition: 0.2s ease;
      }

      .nav button.active {
        border: 2px solid transparent;
        color: #fff;
        background: var(--gaia-button-surface);
        text-shadow: 0 1px 1px rgba(87, 160, 191, 0.16);
        box-shadow: var(--gaia-button-shadow);
      }

      .note {
        margin-top: 14px;
        padding: 16px;
        border-radius: 26px;
        font-size: 14px;
        line-height: 1.55;
      }

      .note strong {
        display: block;
        margin-bottom: 6px;
        color: var(--ink);
      }

      .note.green {
        border: 1px solid rgba(136, 182, 93, 0.44);
        background: rgba(136, 182, 93, 0.72);
        color: #88b65d;
      }

      .note.blue {
        border: 1px solid rgba(87, 160, 191, 0.4);
        background: rgba(87, 160, 191, 0.72);
        color: #57a0bf;
      }

      .board-info {
        margin-bottom: 14px;
        padding: 16px 18px;
        border: 1px solid rgba(196, 187, 224, 0.42);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.62);
      }

      .board-main {
        min-width: 0;
      }

      .board-info-row {
        display: grid;
        align-items: end;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
      }

      .board-info h2 {
        margin-top: 6px;
        font-size: 26px;
        font-weight: 650;
        letter-spacing: 0.03em;
      }

      .board-title-input {
        width: 100%;
        border: 1px solid transparent;
        border-radius: 14px;
        padding: 4px 0;
        background: transparent;
        box-shadow: none;
        color: var(--ink);
        font-size: clamp(22px, 2.1vw, 26px);
        font-weight: 650;
        letter-spacing: 0.03em;
      }

      .board-title-input:focus {
        border-color: rgba(196, 187, 224, 0.5);
        padding-left: 8px;
        background: rgba(255, 255, 255, 0.72);
      }

      .board-info p:last-child {
        margin-top: 6px;
        max-width: 680px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
      }

      .chips {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
      }

      .chip,
      .badge {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 750;
      }

      .chip.blue {
        color: #755781;
        background: #b6eaf4;
      }

      .chip.green {
        color: #ffffff;
        background: #88b65d;
      }

      .chip.lilac {
        color: #755781;
        background: #c4bbe0;
      }

      .kanban {
        display: flex;
        gap: clamp(12px, 1.5vw, 20px);
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-bottom: 10px;
        scroll-snap-type: inline proximity;
      }

      .column {
        flex: 0 0 clamp(286px, 31vw, 340px);
        min-height: clamp(360px, 58vh, 680px);
        border: 1px solid;
        border-radius: 28px;
        padding: clamp(12px, 1.2vw, 16px);
        scroll-snap-align: start;
      }

      .column[data-column="Ideias"] {
        border-color: rgba(87, 160, 191, 0.56);
        background: rgba(240, 249, 255, 0.66);
      }

      .column[data-column="Alta prioridade"] {
        border-color: rgba(196, 187, 224, 0.62);
        background: rgba(245, 243, 255, 0.72);
      }

      .column[data-column="Em andamento"] {
        border-color: rgba(196, 187, 224, 0.62);
        background: rgba(248, 247, 255, 0.7);
      }

      .column[data-column="Aguardando decisão"] {
        border-color: rgba(87, 160, 191, 0.72);
        background: rgba(87, 160, 191, 0.62);
      }

      .column[data-column="Concluído"] {
        border-color: rgba(136, 182, 93, 0.28);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.66) 0%, rgba(136, 182, 93, 0.2) 32%, rgba(136, 182, 93, 0.3) 100%),
          rgba(255, 255, 255, 0.72);
        box-shadow:
          0 18px 52px rgba(136, 182, 93, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.72);
      }

      .column.tone-sky {
        border-color: rgba(184, 221, 229, 0.82);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0%, rgba(184, 221, 229, 0.78) 28%, rgba(182, 234, 244, 0.9) 100%),
          rgba(182, 234, 244, 0.78);
      }

      .column.tone-lilac {
        border-color: rgba(196, 187, 224, 0.82);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0%, rgba(196, 187, 224, 0.82) 28%, rgba(196, 187, 224, 0.94) 100%),
          rgba(196, 187, 224, 0.8);
      }

      .column.tone-teal {
        border-color: rgba(87, 160, 191, 0.56);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(182, 234, 244, 0.72) 24%, rgba(87, 160, 191, 0.86) 100%),
          rgba(87, 160, 191, 0.74);
      }

      .column.tone-ice {
        border-color: rgba(184, 221, 229, 0.66);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(182, 234, 244, 0.72) 24%, rgba(87, 160, 191, 0.86) 100%),
          rgba(87, 160, 191, 0.72);
      }

      .column.tone-done {
        border-color: rgba(136, 182, 93, 0.28);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.66) 0%, rgba(136, 182, 93, 0.2) 32%, rgba(136, 182, 93, 0.3) 100%),
          rgba(255, 255, 255, 0.72);
      }

      .column-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding: 0;
      }

      .column-title-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
      }

      .grab-handle {
        display: inline-grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border: 1px solid rgba(196, 187, 224, 0.54);
        border-radius: 10px;
        color: #c4bbe0;
        background: rgba(255, 255, 255, 0.62);
        cursor: grab;
        font-size: 14px;
        font-weight: 900;
        line-height: 1;
        transition: 0.18s ease;
      }

      .grab-handle:hover {
        color: #ffffff;
        border: 1.5px solid transparent;
        background: var(--gaia-button-surface);
        text-shadow: 0 1px 1px rgba(87, 160, 191, 0.12);
        box-shadow:
          0 0 0 2px rgba(196, 187, 224, 0.42),
          inset 0 0 0 1px rgba(255, 255, 255, 0.48),
          inset 0 -8px 16px rgba(184, 221, 229, 0.14),
          0 12px 24px rgba(196, 187, 224, 0.18);
        transform: translateY(-1px);
      }

      .grab-handle:active {
        cursor: grabbing;
        transform: translateY(0) scale(0.96);
      }

      .column[data-column="Concluído"] .grab-handle {
        border-color: rgba(136, 182, 93, 0.58);
        color: #88b65d;
      }

      .done-lock,
      .done-lock:hover,
      .done-lock:active {
        color: #ffffff;
        background: linear-gradient(135deg, #88b65d, #88b65d);
        cursor: default;
        transform: none;
        box-shadow: 0 10px 22px rgba(136, 182, 93, 0.15), var(--inner);
      }

      .column.dragging,
      .card.dragging {
        opacity: 0.58;
        transform: scale(0.985);
      }

      .column.drag-over {
        border-style: dashed;
        box-shadow:
          0 0 0 3px rgba(196, 187, 224, 0.12),
          0 24px 60px rgba(196, 187, 224, 0.18);
      }

      .column-head > div:first-child {
        min-width: 0;
        flex: 1;
      }

      .column-title {
        color: #171d39;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

      .column-name-input {
        width: 100%;
        height: auto;
        border: 1px solid transparent;
        border-radius: 10px;
        padding: 3px 0;
        background: transparent;
        box-shadow: none;
      }

      .column-name-input:focus {
        border-color: rgba(196, 187, 224, 0.5);
        padding-left: 4px;
        background: rgba(255, 255, 255, 0.72);
      }

      .column-count {
        margin-top: 5px;
        color: #171d39;
        font-size: 12px;
        font-weight: 650;
      }

      .icon-button {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 2px solid transparent;
        border-radius: 50%;
        color: #c4bbe0;
        background: rgba(255, 255, 255, 0.48);
      }

      .icon-button:hover {
        color: #c4bbe0;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 14px 28px rgba(196, 187, 224, 0.15), var(--inner);
      }

      .icon-button.board-tool {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 2px solid transparent;
        color: #ffffff;
        background: var(--gaia-button-surface);
        font-size: 22px;
        line-height: 1;
        box-shadow: var(--gaia-button-shadow);
      }

      .icon-button.board-tool:hover {
        color: #ffffff;
        background: var(--gaia-button-surface-hover);
        box-shadow: var(--gaia-button-shadow-hover);
      }

      .icon-button.board-tool::after {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        width: max-content;
        border: 1px solid rgba(196, 187, 224, 0.55);
        border-radius: 999px;
        padding: 6px 10px;
        color: #57a0bf;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 12px 34px rgba(87, 160, 191, 0.12);
        content: attr(data-tooltip);
        font-size: 12px;
        font-weight: 750;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: 0.18s ease;
      }

      .icon-button.board-tool:hover::after {
        opacity: 1;
        transform: translateY(0);
      }

      .cards {
        display: grid;
        gap: 14px;
        min-height: 90px;
      }

      .card {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(87, 160, 191, 0.52);
        border-radius: 22px;
        padding: 15px;
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.74)),
          rgba(255, 255, 255, 0.84);
        cursor: pointer;
        text-align: left;
        box-shadow:
          0 14px 32px rgba(87, 160, 191, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.88);
        transition: 0.2s ease;
      }

      .card::before {
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        border-radius: 22px 0 0 22px;
        background: linear-gradient(180deg, #c4bbe0, #57a0bf);
        content: "";
        opacity: 0.75;
      }

      .card[data-card-column="Ideias"] {
        border-color: rgba(184, 221, 229, 0.72);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(184, 221, 229, 0.78)),
          rgba(255, 255, 255, 0.86);
      }

      .card[data-card-column="Ideias"]::before {
        background: linear-gradient(180deg, #b6eaf4, #57a0bf);
      }

      .card[data-card-column="Alta prioridade"] {
        border-color: rgba(196, 187, 224, 0.74);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(196, 187, 224, 0.84)),
          rgba(255, 255, 255, 0.86);
      }

      .card[data-card-column="Alta prioridade"]::before {
        background: linear-gradient(180deg, #c4bbe0, #57a0bf);
      }

      .card[data-card-column="Em andamento"] {
        border-color: rgba(87, 160, 191, 0.5);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(87, 160, 191, 0.82)),
          rgba(255, 255, 255, 0.86);
      }

      .card[data-card-column="Em andamento"]::before {
        background: linear-gradient(180deg, #57a0bf, #b6eaf4);
      }

      .card[data-card-column="Aguardando decisão"] {
        border-color: rgba(184, 221, 229, 0.62);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(87, 160, 191, 0.82)),
          rgba(255, 255, 255, 0.86);
      }

      .card[data-card-column="Aguardando decisão"]::before {
        background: linear-gradient(180deg, #b6eaf4, #c4bbe0);
      }

      .card[data-card-column="Concluído"] {
        border-color: rgba(136, 182, 93, 0.48);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(136, 182, 93, 0.76)),
          rgba(255, 255, 255, 0.86);
      }

      .card[data-card-column="Concluído"]::before {
        background: linear-gradient(180deg, #88b65d, #b6eaf4);
      }

      .column.tone-sky .card,
      .column.tone-sky .empty-card {
        border-color: rgba(184, 221, 229, 0.72);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(184, 221, 229, 0.78)),
          rgba(255, 255, 255, 0.86);
      }

      .column.tone-sky .card::before {
        background: linear-gradient(180deg, #b6eaf4, #57a0bf);
      }

      .column.tone-lilac .card,
      .column.tone-lilac .empty-card {
        border-color: rgba(196, 187, 224, 0.74);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(196, 187, 224, 0.84)),
          rgba(255, 255, 255, 0.86);
      }

      .column.tone-lilac .card::before {
        background: linear-gradient(180deg, #c4bbe0, #57a0bf);
      }

      .column.tone-teal .card,
      .column.tone-teal .empty-card {
        border-color: rgba(87, 160, 191, 0.5);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(87, 160, 191, 0.82)),
          rgba(255, 255, 255, 0.86);
      }

      .column.tone-teal .card::before {
        background: linear-gradient(180deg, #57a0bf, #b6eaf4);
      }

      .column.tone-ice .card,
      .column.tone-ice .empty-card {
        border-color: rgba(184, 221, 229, 0.62);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(87, 160, 191, 0.82)),
          rgba(255, 255, 255, 0.86);
      }

      .column.tone-ice .card::before {
        background: linear-gradient(180deg, #b6eaf4, #c4bbe0);
      }

      .column.tone-done .card,
      .column.tone-done .empty-card {
        border-color: rgba(136, 182, 93, 0.48);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(136, 182, 93, 0.76)),
          rgba(255, 255, 255, 0.86);
      }

      .column.tone-done .card::before {
        background: linear-gradient(180deg, #88b65d, #b6eaf4);
      }

      .column .card,
      .column .empty-card,
      .card[data-card-column] {
        border-color: rgba(87, 160, 191, 0.38);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
          rgba(255, 255, 255, 0.94) !important;
      }

      .column .card::before,
      .card[data-card-column]::before {
        opacity: 0;
      }

      .card:hover {
        border-color: rgba(196, 187, 224, 0.38);
        transform: translateY(-3px);
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.94)),
          rgba(255, 255, 255, 0.94) !important;
        box-shadow:
          0 22px 42px rgba(196, 187, 224, 0.17),
          0 6px 18px rgba(87, 160, 191, 0.16);
      }

      .card.completing {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
        transition: opacity 0.9s ease, transform 0.9s ease;
      }

      .card.entering {
        animation: card-enter 0.65s ease both;
      }

      .empty-card {
        width: 100%;
        border-style: dashed;
        color: #57a0bf;
        font-weight: 720;
        animation: empty-enter 0.45s ease both;
      }

      .empty-card:hover {
        border-color: rgba(196, 187, 224, 0.48);
      }

      @keyframes card-enter {
        from {
          opacity: 0;
          transform: scale(0.97) translateY(8px);
        }

        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }

      @keyframes empty-enter {
        from {
          opacity: 0;
          transform: translateY(8px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .card-top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
      }

      .card-top > div {
        min-width: 0;
        flex: 1;
      }

      .card-grab {
        margin-left: auto;
        opacity: 0.7;
      }

      .card:hover .card-grab {
        opacity: 1;
      }

      .card h4 {
        font-size: 14px;
        line-height: 1.35;
        font-weight: 720;
      }

      .card-description {
        margin-top: 6px;
        color: #57a0bf;
        font-size: 14px;
        line-height: 1.55;
      }

      .dot {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border: 2px solid #57a0bf;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.75);
        color: transparent;
        font-size: 17px;
        font-weight: 800;
        line-height: 1;
      }

      .dot:hover {
        border-color: #ffb52e;
        background: #fff4d8;
        box-shadow: 0 10px 24px rgba(255, 181, 46, 0.22);
      }

      .dot.done {
        border-color: #ffb52e;
        background: #ffb52e;
        color: white;
      }

      .dot.pending {
        border-color: #ffb52e;
        background: #ffb52e;
        color: white;
      }

      .badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
      }

      .badge.low {
        color: #ffffff;
        background: #88b65d;
      }

      .badge.medium {
        color: #755781;
        background: #c4bbe0;
      }

      .badge.high {
        color: #8a6629;
        background: #fff2cc;
      }

      .badge.critical {
        color: #fff;
        background: var(--gaia-gradient);
        box-shadow:
          0 0 0 2px rgba(196, 187, 224, 0.45),
          inset 0 1px 0 rgba(255, 255, 255, 0.34);
      }

      .badge.outline {
        color: #57a0bf;
        border: 1px solid rgba(196, 187, 224, 0.36);
        background: rgba(255, 255, 255, 0.48);
      }

      .meta {
        display: grid;
        gap: 8px;
        color: #57a0bf;
        font-size: 13px;
      }

      .meta-row {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 8px;
      }

      .meta-row span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .card-footer {
        display: grid;
        gap: 7px;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(87, 160, 191, 0.34);
        color: #57a0bf;
        font-size: 12px;
        font-weight: 700;
      }

      .card-footer .meta-row {
        display: flex;
        min-width: 0;
        border-radius: 13px;
        padding: 6px 8px;
        background: rgba(255, 255, 255, 0.45);
      }

      .card-footer .icon {
        display: inline;
        margin-bottom: 0;
      }

      .icon {
        color: #c4bbe0;
      }

      .modal {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(87, 160, 191, 0.22);
        backdrop-filter: blur(14px);
      }

      .modal.open {
        display: flex;
      }

      #confirmModal {
        z-index: 80;
      }

      .modal.open .modal-panel {
        animation: modal-in 0.22s ease both;
      }

      .modal.is-leaving .modal-panel {
        animation: modal-out 0.16s ease both;
      }

      @keyframes modal-in {
        from {
          opacity: 0;
          transform: translateY(10px) scale(0.985);
        }

        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes modal-out {
        from {
          opacity: 1;
          transform: translateY(0) scale(1);
        }

        to {
          opacity: 0;
          transform: translateY(6px) scale(0.985);
        }
      }

      .modal-panel {
        width: min(780px, 100%);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        padding: 24px;
        border: 1px solid rgba(196, 187, 224, 0.72);
        border-radius: 32px;
        background:
          radial-gradient(circle at 92% 8%, rgba(136, 182, 93, 0.52), transparent 15rem),
          radial-gradient(circle at 8% 18%, rgba(87, 160, 191, 0.68), transparent 16rem),
          radial-gradient(circle at 58% 0%, rgba(196, 187, 224, 0.7), transparent 13rem),
          rgba(255, 255, 255, 0.82);
        box-shadow: 0 24px 80px rgba(87, 160, 191, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      }

      .modal-head {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
      }

      .modal-head p {
        color: #171d39;
        font-size: 14px;
        font-weight: 750;
      }

      .modal-head h2 {
        margin-top: 4px;
        font-size: 26px;
        font-weight: 650;
        color: #171d39;
      }

      .detail-panel {
        display: grid;
        gap: 18px;
      }

      .detail-hero {
        display: grid;
        gap: 12px;
        border: 1px solid rgba(87, 160, 191, 0.34);
        border-radius: 26px;
        padding: 18px;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(87, 160, 191, 0.72)),
          radial-gradient(circle at top right, rgba(136, 182, 93, 0.48), transparent 12rem);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 34px rgba(87, 160, 191, 0.08);
      }

      .detail-section-title {
        margin-bottom: 10px;
        color: #171d39;
        font-size: 11px;
        font-weight: 850;
        letter-spacing: 0.18em;
        text-transform: uppercase;
      }

      .form-grid {
        display: grid;
        gap: 14px;
      }

      .two,
      .three {
        display: grid;
        gap: 12px;
      }

      .two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      label {
        display: grid;
        gap: 6px;
        color: #57a0bf;
        font-size: 14px;
        font-weight: 720;
      }

      textarea {
        min-height: 96px;
        border-radius: 18px;
        padding: 12px 14px;
        resize: vertical;
      }

      select {
        height: 48px;
        border-radius: 999px;
        padding: 0 16px;
        appearance: auto;
      }

      .placeholder-box {
        border: 1px solid rgba(87, 160, 191, 0.55);
        border-radius: 22px;
        padding: 12px;
        background: rgba(87, 160, 191, 0.72);
      }

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

      .media-upload {
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid rgba(196, 187, 224, 0.44);
        border-radius: 22px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
        cursor: pointer;
        transition: 0.2s ease;
      }

      .media-upload:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 30px rgba(196, 187, 224, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      }

      .media-upload input {
        display: none;
      }

      .media-icon {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(196, 187, 224, 0.9), rgba(87, 160, 191, 0.9));
        color: #c4bbe0;
        font-size: 20px;
      }

      .media-title {
        color: #57a0bf;
        font-size: 14px;
        font-weight: 800;
      }

      .media-name {
        margin-top: 2px;
        max-width: 220px;
        overflow: hidden;
        color: #57a0bf;
        font-size: 12px;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .media-preview {
        overflow: hidden;
        border: 1px solid rgba(87, 160, 191, 0.45);
        border-radius: 22px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.74);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
      }

      .media-preview img,
      .media-preview video {
        display: block;
        width: 100%;
        height: 180px;
        border-radius: 16px;
        object-fit: cover;
      }

      .quick-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
      }

      .quick-action {
        min-height: 54px;
        border: 1px solid rgba(196, 187, 224, 0.44);
        border-radius: 22px;
        padding: 0 14px;
        color: #57a0bf;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
        font-size: 13px;
        font-weight: 800;
      }

      .quick-action.is-active {
        border: 2px solid transparent;
        color: #ffffff;
        background: var(--gaia-button-surface);
        text-shadow: 0 1px 1px rgba(87, 160, 191, 0.16);
        box-shadow: var(--gaia-button-shadow);
      }

      .quick-action.is-active .media-title,
      .quick-action.is-active .quick-icon {
        color: #ffffff;
      }

      .quick-icon {
        color: #c4bbe0;
        font-size: 18px;
        line-height: 1;
      }

      .attachment-preview {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        border: 1px solid rgba(87, 160, 191, 0.42);
        border-radius: 24px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.66);
      }

      .attachment-thumb {
        display: grid;
        place-items: center;
        width: 72px;
        height: 56px;
        overflow: hidden;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(196, 187, 224, 0.85), rgba(87, 160, 191, 0.85));
        color: #c4bbe0;
        font-weight: 850;
      }

      .attachment-thumb img,
      .attachment-thumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .attachment-actions {
        display: flex;
        gap: 8px;
      }

      .attachment-stack {
        display: grid;
        gap: 10px;
      }

      .attachment-actions .danger {
        color: #8b4a69;
        background: rgba(255, 255, 255, 0.82);
      }

      .saved-checklist {
        display: grid;
        gap: 8px;
        border: 1px solid rgba(87, 160, 191, 0.42);
        border-radius: 22px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.66);
      }

      .saved-checklist .check-row {
        grid-template-columns: 24px minmax(0, 1fr);
      }

      .checklist-editor,
      .more-details {
        display: grid;
        gap: 10px;
        border: 1px solid rgba(87, 160, 191, 0.42);
        border-radius: 24px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.62);
      }

      .checklist-rows {
        display: grid;
        gap: 8px;
      }

      .check-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
      }

      .check-toggle {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border: 2px solid #57a0bf;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.78);
        color: transparent;
        font-weight: 850;
        line-height: 1;
        padding: 0;
      }

      .check-row.is-done .check-toggle {
        border-color: #ffb52e;
        background: #ffb52e;
        color: #ffffff;
      }

      .check-row.is-done input {
        color: #171d39;
        text-decoration: line-through;
      }

      .check-row input {
        height: 42px;
        border-radius: 16px;
      }

      .checklist-add {
        justify-self: start;
        min-height: 34px;
        border: 1px solid rgba(196, 187, 224, 0.54);
        border-radius: 999px;
        padding: 0 14px;
        color: #c4bbe0;
        background: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        font-weight: 800;
        box-shadow: var(--inner);
      }

      .checklist-add:hover {
        color: #ffffff;
        border: 2px solid transparent;
        background: var(--gaia-button-surface);
        text-shadow: 0 1px 1px rgba(87, 160, 191, 0.14);
        box-shadow:
          0 0 0 2px rgba(196, 187, 224, 0.42),
          inset 0 0 0 1px rgba(255, 255, 255, 0.48),
          inset 0 -8px 16px rgba(184, 221, 229, 0.14),
          0 14px 28px rgba(196, 187, 224, 0.16);
      }

      .is-hidden {
        display: none;
      }

      .detail-description {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        color: #171d39;
        font-size: 15px;
        line-height: 1.7;
      }

      .detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 0;
      }

      .detail-item {
        display: flex;
        min-width: 0;
        gap: 10px;
        border: 1px solid rgba(196, 187, 224, 0.32);
        border-radius: 16px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
      }

      .detail-label {
        color: #171d39;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

      .detail-value {
        margin-top: 4px;
        color: #171d39;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.45;
        word-break: break-word;
      }

      .modal-actions {
        display: flex;
        justify-content: end;
        gap: 10px;
        padding-top: 4px;
      }

      /* Polished visual pass: keep the Gaia palette, but prioritize readability. */
      body {
        background-color: #fbfdff;
        background-image:
          linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18)),
          url("assets/gaia-soft-background.png");
        background-position: center top, center top;
        background-repeat: no-repeat, no-repeat;
        background-size: cover, cover;
        background-attachment: fixed, fixed;
      }

      .shell {
        border-color: rgba(182, 234, 244, 0.58);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(182, 234, 244, 0.2)),
          rgba(182, 234, 244, 0.16);
        box-shadow:
          0 38px 120px rgba(23, 29, 57, 0.14),
          0 12px 36px rgba(87, 160, 191, 0.12),
          inset 0 1px 0 rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(22px) saturate(1.26);
      }

      .topbar,
      .sidebar,
      .board-info {
        border-color: rgba(196, 187, 224, 0.48);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
          rgba(255, 255, 255, 0.56);
        box-shadow:
          0 26px 66px rgba(23, 29, 57, 0.12),
          0 10px 26px rgba(87, 160, 191, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px) saturate(1.22);
      }

      .topbar {
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
          rgba(255, 255, 255, 0.58);
      }

      .eyebrow,
      .sync-status,
      .search span {
        color: #57a0bf;
      }

      .column {
        border-color: rgba(87, 160, 191, 0.32);
        box-shadow:
          0 24px 60px rgba(23, 29, 57, 0.12),
          0 8px 22px rgba(87, 160, 191, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.76);
        backdrop-filter: blur(10px) saturate(1.12);
      }

      .column.tone-sky {
        background:
          linear-gradient(155deg, rgba(255, 255, 255, 0.5) 0%, rgba(182, 234, 244, 0.54) 32%, rgba(182, 234, 244, 0.68) 100%),
          rgba(182, 234, 244, 0.54);
      }

      .column.tone-lilac {
        background:
          linear-gradient(155deg, rgba(255, 255, 255, 0.52) 0%, rgba(196, 187, 224, 0.56) 34%, rgba(196, 187, 224, 0.72) 100%),
          rgba(196, 187, 224, 0.5);
      }

      .column.tone-teal,
      .column.tone-ice {
        background:
          linear-gradient(155deg, rgba(255, 255, 255, 0.46) 0%, rgba(182, 234, 244, 0.48) 28%, rgba(87, 160, 191, 0.58) 100%),
          rgba(182, 234, 244, 0.46);
      }

      .column.tone-done,
      .column[data-column="Concluído"] {
        border-color: rgba(136, 182, 93, 0.28);
        background:
          linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, rgba(136, 182, 93, 0.18) 34%, rgba(136, 182, 93, 0.28) 100%),
          rgba(255, 255, 255, 0.68);
        box-shadow: 0 18px 46px rgba(23, 29, 57, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.76);
      }

      .column-title,
      .column-count,
      .column-name-input {
        color: #171d39;
      }

      .card,
      .column .card,
      .column .empty-card,
      .card[data-card-column] {
        border-color: rgba(87, 160, 191, 0.24);
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 14px 30px rgba(23, 29, 57, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
      }

      .card::before,
      .column .card::before,
      .card[data-card-column]::before {
        opacity: 0;
      }

      .card h4,
      .detail-description,
      .detail-label,
      .detail-value,
      .saved-checklist .detail-value {
        color: #171d39;
      }

      .card:hover {
        border-color: rgba(117, 87, 129, 0.28);
        background: #ffffff !important;
        box-shadow: 0 22px 44px rgba(23, 29, 57, 0.12), 0 6px 18px rgba(87, 160, 191, 0.12);
      }

      .dot {
        border-color: #57a0bf;
        background: #ffffff;
      }

      .icon-button {
        color: #755781;
        background: rgba(255, 255, 255, 0.7);
        box-shadow: 0 8px 20px rgba(23, 29, 57, 0.05), var(--inner);
      }

      .modal-panel {
        border-color: rgba(196, 187, 224, 0.5);
        background:
          radial-gradient(circle at 92% 8%, rgba(136, 182, 93, 0.2), transparent 14rem),
          radial-gradient(circle at 8% 18%, rgba(182, 234, 244, 0.32), transparent 16rem),
          radial-gradient(circle at 58% 0%, rgba(196, 187, 224, 0.25), transparent 13rem),
          rgba(255, 255, 255, 0.94);
        box-shadow: 0 28px 90px rgba(23, 29, 57, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
      }

      .detail-hero,
      .saved-checklist,
      .detail-item,
      .attachment-preview,
      .checklist-editor,
      .more-details {
        border-color: rgba(87, 160, 191, 0.24);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
      }

      @media (max-width: 1240px) {
        .topbar {
          grid-template-columns: 1fr;
        }

        .actions {
          width: 100%;
        }

        .content {
          grid-template-columns: 1fr;
        }

        .sidebar {
          display: grid;
          grid-template-columns: 1fr;
        }

        .nav {
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        }
      }

      @media (max-width: 760px) {
        .search {
          width: 100%;
        }

        .two,
        .three,
        .detail-grid,
        .quick-actions,
        .media-upload-grid,
        .media-preview-grid {
          grid-template-columns: 1fr;
        }

        .column {
          min-height: auto;
        }
      }

      @media (max-width: 640px) {
        .modal {
          align-items: center;
          padding: 18px 14px;
        }

        .modal-panel {
          width: min(94vw, 420px);
          max-height: min(82vh, 720px);
          border-radius: 26px;
          padding: 16px;
        }

        .modal-head {
          align-items: center;
          gap: 10px;
          margin-bottom: 12px;
        }

        .modal-head p {
          font-size: 12px;
        }

        .modal-head h2 {
          margin-top: 2px;
          font-size: 22px;
          line-height: 1.15;
        }

        .modal-head .icon-button {
          width: 34px;
          height: 34px;
          flex: 0 0 34px;
        }

        .detail-panel {
          gap: 12px;
        }

        .detail-hero {
          gap: 10px;
          border-radius: 20px;
          padding: 13px;
        }

        .detail-description {
          font-size: 13px;
          line-height: 1.55;
        }

        .form-grid {
          gap: 10px;
        }

        label {
          gap: 5px;
          font-size: 12px;
        }

        input,
        select {
          height: 42px;
        }

        textarea {
          min-height: 78px;
          padding: 10px 12px;
        }

        .quick-actions {
          gap: 8px;
        }

        .quick-action {
          min-height: 44px;
          border-radius: 18px;
          padding: 0 11px;
          font-size: 12px;
        }

        .quick-icon {
          font-size: 15px;
        }

        .attachment-preview {
          grid-template-columns: 54px minmax(0, 1fr);
          gap: 9px;
          border-radius: 18px;
          padding: 9px;
        }

        .attachment-thumb {
          width: 54px;
          height: 44px;
          border-radius: 13px;
          font-size: 11px;
        }

        .attachment-actions {
          grid-column: 1 / -1;
          justify-content: flex-end;
        }

        .saved-checklist,
        .checklist-editor,
        .more-details {
          border-radius: 18px;
          padding: 10px;
        }

        .check-row input {
          height: 38px;
        }

        .detail-item {
          border-radius: 14px;
          padding: 9px 10px;
        }

        .detail-label {
          font-size: 9px;
          letter-spacing: 0.12em;
        }

        .detail-value {
          font-size: 12px;
        }

        .modal-actions {
          display: grid;
          grid-template-columns: 1fr;
          gap: 8px;
        }

        .board-info {
          margin-bottom: 12px;
          padding: 14px 16px;
          border-radius: 24px;
        }

        .board-info-row {
          align-items: center;
          grid-template-columns: minmax(0, 1fr) auto;
          gap: 10px;
        }

        .board-title-input {
          padding: 2px 0;
          font-size: 22px;
          line-height: 1.15;
        }

        .board-info .chips {
          justify-content: flex-end;
          gap: 8px;
        }

        .board-info .icon-button.board-tool {
          width: 42px;
          height: 42px;
          flex: 0 0 42px;
          font-size: 20px;
        }

        .actions {
          grid-template-columns: 1fr;
        }

        .brand {
          align-items: flex-start;
        }

        .brand-mark {
          width: 62px;
          height: 78px;
          flex-basis: 62px;
        }

        .button {
          width: 100%;
        }
      }

      @media (max-width: 380px) {
        .board-info-row {
          grid-template-columns: 1fr;
          justify-items: center;
          gap: 12px;
          text-align: center;
        }

        .board-title-input {
          text-align: center;
          font-size: 21px;
        }

        .board-info .chips {
          justify-content: center;
        }
      }
