    * {
      box-sizing: border-box;
    }

    :root {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
      color-scheme: light dark;
    }

    [v-cloak] {
      display: none;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: radial-gradient(circle at top, #f5f7ff, #e1e4ff 40%, #cfd3ff);
      color: #111827;
      display: flex;
      flex-direction: column;
    }

    body.modal-open {
      overflow: hidden;
    }

    header {
      padding: 0.85rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.25rem;
      background: #fdfdfd;
      border-bottom: 1px solid rgba(226, 232, 240, 0.9);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .hero {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      color: #0f172a;
    }

    .hero__badge {
      text-transform: uppercase;
      letter-spacing: 0.18em;
      font-size: 0.68rem;
      color: #94a3b8;
    }

    .hero__title {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin: 0;
      font-size: 1.3rem;
      color: #1e1b4b;
    }

    .hero__title .logo {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      object-fit: cover;
      background: #fff;
      display: inline-block;
    }

    .hero__subtitle {
      margin: 0;
      font-size: 0.85rem;
      color: #6b7280;
    }


    .profile-card {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 1rem 1.2rem;
      background: #f8fafc;
      border-radius: 1.25rem;
      border: 1px solid rgba(226, 232, 240, 1);
      color: #0f172a;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .profile-avatar {
      width: 46px;
      height: 46px;
      border-radius: 999px;
      background: linear-gradient(135deg, #4f46e5, #a855f7);
      color: #fff;
      font-weight: 600;
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .profile-meta {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .profile-meta strong {
      font-size: 1rem;
      color: #111827;
    }

    .profile-meta span {
      font-size: 0.85rem;
      color: #475569;
    }

    .status-pill {
      border-radius: 999px;
      padding: 0.25rem 0.6rem;
      font-size: 0.75rem;
      background: rgba(34, 197, 94, 0.15);
      color: #166534;
      border: 1px solid rgba(34, 197, 94, 0.4);
    }

    .profile-actions {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      align-items: flex-end;
    }

    .profile-actions span {
      font-size: 0.8rem;
      color: #64748b;
    }

    .profile-actions button {
      border-radius: 999px;
      border: none;
      padding: 0.35rem 0.95rem;
      font-size: 0.85rem;
      font-weight: 600;
      background: #0f172a;
      color: #f8fafc;
      cursor: pointer;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    }

    /* Profile Panel -------------------------------------------------------- */

    .profile-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 70;
      backdrop-filter: blur(6px);
    }

    .profile-panel {
      background: #ffffff;
      width: min(760px, 90vw);
      max-height: 90vh;
      border-radius: 1.25rem;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
      border: 1px solid rgba(226, 232, 240, 1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .profile-panel__header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid rgba(226, 232, 240, 1);
    }

    .profile-panel__body {
      padding: 1.25rem 1.5rem 1.5rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .profile-panel__section {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .profile-panel__section h3 {
      margin: 0;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #94a3b8;
    }

    .profile-panel__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0.85rem;
    }

    .profile-panel__form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.9rem;
      width: 100%;
    }

    .profile-panel__card {
      border: 1px solid rgba(226, 232, 240, 1);
      border-radius: 1rem;
      padding: 0.9rem;
      background: #f8fafc;
    }

    .profile-panel__card span {
      font-size: 0.8rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      display: block;
      margin-bottom: 0.35rem;
    }

    .profile-panel__card input,
    .profile-panel__card textarea {
      width: 100%;
      border-radius: 0.5rem;
      border: 1px solid rgba(203, 213, 225, 1);
      padding: 0.45rem 0.6rem;
      font-size: 0.9rem;
      background: #fff;
      font-family: inherit;
    }

    .profile-panel__list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .profile-panel__save {
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, #4f46e5, #6366f1);
      color: #fff;
      font-weight: 600;
      padding: 0.45rem 1.3rem;
      cursor: pointer;
      box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
    }

    .profile-panel__reset {
      border: none;
      background: transparent;
      color: #6366f1;
      font-weight: 600;
      cursor: pointer;
    }

    .profile-panel__close {
      border: none;
      background: rgba(15, 23, 42, 0.08);
      border-radius: 999px;
      width: 32px;
      height: 32px;
      font-size: 1.2rem;
      cursor: pointer;
    }

    main {
      flex: 1;
      padding: 1.5rem 2rem 2rem;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .board-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      justify-content: space-between;
    }

    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      align-items: center;
    }

    .search-input {
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.4rem 0.9rem;
      font-size: 0.9rem;
      min-width: 220px;
    }

    .filter-select {
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.4rem 0.9rem;
      font-size: 0.9rem;
    }

    .filter-toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.35rem 0.85rem;
      background: #fff;
      cursor: pointer;
      font-size: 0.85rem;
    }

    .filter-toggle input {
      accent-color: #4f46e5;
    }

    .clear-button {
      border: none;
      background: transparent;
      color: #6366f1;
      font-weight: 600;
      cursor: pointer;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0.9rem;
    }

    .summary-card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 1rem;
      padding: 0.85rem 1rem;
      border: 1px solid rgba(226, 232, 240, 1);
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .summary-card span {
      font-size: 0.8rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .summary-card strong {
      font-size: 1.4rem;
      color: #1f2937;
    }

    .summary-card small {
      font-size: 0.75rem;
      color: #94a3b8;
    }

    .columns-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 0.9rem;
      padding: 0.25rem 0.6rem;
      border-radius: 1rem;
      background: rgba(255, 255, 255, 0.65);
      min-height: 58px;
    }

    .columns-toolbar__controls {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
      padding: 0.2rem 0.35rem;
      border-radius: 999px;
      background: rgba(226, 232, 240, 0.25);
    }

    .column-editor-toggle {
      border-radius: 999px;
      border: none;
      background: transparent;
      color: #312e81;
      font-weight: 600;
      padding: 0.25rem 0.75rem;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: color 0.15s ease, background 0.15s ease;
    }

    .column-editor-toggle:hover {
      background: rgba(255, 255, 255, 0.55);
      color: #4c1d95;
    }

    .columns-toolbar__hint {
      margin: 0;
      font-size: 0.85rem;
      color: #64748b;
      flex: 1;
      min-width: 200px;
    }

    .column-add-inline {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0 0.15rem;
      border-radius: 999px;
      border: none;
      background: transparent;
      overflow: hidden;
    }

    .column-add-inline__title {
      border: none;
      outline: none;
      font-size: 0.9rem;
      padding: 0.25rem 0.55rem;
      min-width: 130px;
      border-radius: 0.85rem;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(148, 163, 184, 0.3);
    }

    .column-add-inline__color {
      width: 24px;
      height: 30px;
      transform: scale(1.5);
      border-radius: 50%;
      border: none;
      padding: 0;
      background: transparent;
      appearance: none;
      cursor: pointer;
      overflow: hidden;
    }

    .column-add-inline__color::-webkit-color-swatch,
    .column-add-inline__color::-moz-color-swatch {
      border: none;
      border-radius: 50%;
      padding: 0;
    }

    .column-add-inline__submit {
      border: none;
      border-radius: 999px;
      width: 30px;
      height: 30px;
      font-size: 1.15rem;
      font-weight: 600;
      background: linear-gradient(135deg, #7c3aed, #6366f1);
      color: #fff;
      cursor: pointer;
      box-shadow: 0 7px 15px rgba(99, 102, 241, 0.28);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .column-add-inline__submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(99, 102, 241, 0.45);
    }

    .new-task-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
    }

    .new-task-form input[type="text"],
    .new-task-form select {
      border: none;
      background: transparent;
      padding: 0.4rem 0.75rem;
      font-size: 0.9rem;
      outline: none;
      border-radius: 999px;
    }

    .new-task-form textarea {
      display: none; /* description edited in modal to keep UI compact */
    }

    .new-task-form button {
      border-radius: 999px;
      border: none;
      padding: 0.4rem 0.9rem;
      font-size: 0.9rem;
      font-weight: 600;
      background: linear-gradient(135deg, #4f46e5, #6366f1);
      color: white;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
      transition: transform 0.1s ease, box-shadow 0.1s ease;
    }

    .new-task-form button:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 35px rgba(79, 70, 229, 0.5);
    }

    .new-task-form button:active {
      transform: translateY(0);
      box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    }

    .hint {
      font-size: 0.8rem;
      opacity: 0.7;
      max-width: 280px;
    }

    .columns {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .columns-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
      align-items: flex-start;
    }

    @media (max-width: 640px) {
      main {
        padding-inline: 1rem;
      }
      header {
        padding-inline: 1rem;
      }
    }

    .column {
      background: rgba(255, 255, 255, 0.92);
      border-radius: 1rem;
      padding: 1rem;
      box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
      min-height: 220px;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-top: 4px solid var(--column-accent, #cbd5f5);
      transition: box-shadow 0.15s ease,  border-color 0.15s ease;
    }

    .column:hover {
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
      border-color: var(--column-accent, #cbd5f5);
    }

    .column--reorder-target {
      border-color: rgba(99, 102, 241, 0.65);
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
    }

    .column-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.95rem;
      font-weight: 600;
    }

    .column-header--editing {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      flex-wrap: wrap;
      justify-content: flex-start;
      width: 100%;
    }

    .column-editor-title-wrap {
      flex: 1;
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      align-items: center;
      gap: 0.3rem;
      padding: 0.1rem 0.25rem 0.1rem 0.15rem;
      border-radius: 999px;
      background: rgba(248, 250, 252, 0.95);
      border: 1px solid rgba(203, 213, 225, 0.6);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
      width: 100%;
      box-sizing: border-box;
    }

    .column-editor-handle {
      cursor: grab;
      width: 26px;
      height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #475569;
      font-size: 0.8rem;
    }

    .column-editor-title {
      border: none;
      background: transparent;
      font-size: 0.95rem;
      color: #0f172a;
      outline: none;
      padding: 0 0.25rem;
      min-width: 0;
    }

    .column-editor-color-picker {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: none;
      padding: 0;
      box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.6);
      overflow: hidden;
    }

    .column-editor-color {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 999px;
      padding: 0;
      background: transparent;
      cursor: pointer;
      appearance: none;
      transform: scale(1.5);
    }

    .column-editor-color::-webkit-color-swatch,
    .column-editor-color::-moz-color-swatch {
      border: none;
      border-radius: 999px;
      padding: 0;
    }

    .column-editor-delete {
      border: none;
      background: rgba(254, 205, 211, 0.85);
      color: #be123c;
      border-radius: 999px;
      width: 28px;
      height: 28px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      transition: background 0.15s ease;
      box-shadow: 0 6px 14px rgba(248, 113, 113, 0.2);
    }

    .column-editor-delete:hover:not(:disabled) {
      background: rgba(254, 205, 211, 1);
    }

    .column-editor-delete:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .column-header span.count {
      font-size: 0.75rem;
      padding: 0.1rem 0.5rem;
      border-radius: 999px;
      border: 1px solid var(--column-accent, rgba(226, 232, 240, 1));
      background: rgba(248, 250, 252, 0.95);
      color: var(--column-accent, #4b5563);
    }

    .column-body {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex: 1;
      padding-top: 0.25rem;
    }

    .columns--editing .task-card {
      opacity: 0.6;
      pointer-events: none;
      cursor: default;
    }

    .column-body.empty {
      border-radius: 0.75rem;
      border: 1px dashed rgba(148, 163, 184, 0.7);
      font-size: 0.8rem;
      color: #9ca3af;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem 0.75rem;
      text-align: center;
    }

    .task-card {
      background: #f9fafb;
      border-radius: 0.75rem;
      padding: 0.55rem 0.7rem;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
      cursor: grab;
      border: 1px solid rgba(229, 231, 235, 0.9);
      transition: transform 0.1s ease, box-shadow 0.1s ease,
        border-color 0.1s ease, background-color 0.1s ease;
    }

    .task-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
      background: #ffffff;
    }

    .task-card h4 {
      margin: 0 0 0.25rem;
      font-size: 0.9rem;
      font-weight: 600;
    }

    .task-card h4 {
      margin: 0 0 0.3rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: #1f2937;
    }

    .task-card p {
      margin: 0;
      font-size: 0.82rem;
      color: #6b7280;
    }

    .task-card-header {
      position: relative;
      margin-bottom: 0.5rem;
    }

    .task-card-header h4 {
      padding-right: 34px;
    }

    .task-card--selected {
      border-color: #6366f1;
      box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.6),
        0 10px 24px rgba(55, 65, 81, 0.35);
      background: #eef2ff;
    }

.task-card-meta {
      font-size: 0.74rem;
      color: #94a3b8;
      display: flex;
      gap: 0.75rem;
      align-items: center;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .task-card-open {
      position: absolute;
      top: 0;
      right: -6px;
      border: none;
      background: #ffffff;
      color: #111827;
      border-radius: 999px;
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      opacity: 0;
      transform: translateY(0);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .task-card:hover .task-card-open {
      opacity: 1;
      transform: translateY(0);
    }

    .task-card-open:hover {
      background: #f3f4f6;
    }

    .task-card-open svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .task-card-assignee {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      background: #eef2ff;
      color: #4b5563;
      font-weight: 500;
    }

    .context-menu {
      position: absolute;
      min-width: 220px;
      background: #fff;
      border: 1px solid rgba(226, 232, 240, 1);
      border-radius: 1rem;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
      padding: 0.35rem 0;
      z-index: 100;
      font-family: inherit;
    }

    .context-menu__section {
      padding: 0.35rem 0.85rem;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: #94a3b8;
    }

    .context-menu__item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.55rem 1rem;
      font-size: 0.85rem;
      color: #0f172a;
      cursor: pointer;
      gap: 0.65rem;
      transition: background 0.12s ease, color 0.12s ease;
      width: 100%;
      background: transparent;
      border: none;
      text-align: left;
      font-family: inherit;
    }

    .context-menu__item small {
      font-size: 0.72rem;
      color: #94a3b8;
    }

    .context-menu--submenu {
      max-height: 240px;
      overflow-y: auto;
      position: absolute;
      top: 0;
      left: calc(100%);
      border-radius: 0.85rem;
      clip-path: inset(0 round 0.85rem);
      scrollbar-width: thin;
      scrollbar-color: #cbd5f5 transparent;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.12s ease, transform 0.12s ease;
      transform: translateY(-4px);
    }

    .context-menu--submenu::-webkit-scrollbar {
      width: 6px;
    }

    .context-menu--submenu::-webkit-scrollbar-track {
      background: transparent;
    }

    .context-menu--submenu::-webkit-scrollbar-thumb {
      background: #cbd5f5;
      border-radius: 999px;
    }

    .context-menu__item--with-submenu {
      position: relative;
    }

    .context-menu__item--with-submenu:hover > .context-menu--submenu,
    .context-menu__item--with-submenu:focus-within > .context-menu--submenu {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .context-menu__item-left {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
    }

    .context-menu__item-icon {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: #eef2ff;
      color: #312e81;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .context-menu__item-icon--time {
      background: rgba(251, 191, 36, 0.2);
      color: #92400e;
    }

    .context-menu__item-icon--assign {
      background: rgba(14, 165, 233, 0.15);
      color: #075985;
    }

    .context-menu__item-icon--move {
      background: rgba(16, 185, 129, 0.18);
      color: #065f46;
    }

    .context-menu__item-icon--danger {
      background: rgba(248, 113, 113, 0.25);
      color: #b91c1c;
    }

    .context-menu__item:hover {
      background: rgba(99, 102, 241, 0.1);
    }

    .context-menu__item--danger {
      color: #b91c1c;
      border-top: 1px solid rgba(226, 232, 240, 0.6);
    }

    .context-menu__item--danger:hover {
      background: rgba(239, 68, 68, 0.15);
    }

    .column.drag-over {
      outline: 2px dashed #6366f1;
      outline-offset: 2px;
      background: rgba(238, 242, 255, 0.9);
    }

    footer {
      padding: 0.75rem 2rem 1.25rem;
      font-size: 0.75rem;
      color: #6b7280;
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }

    footer span {
      opacity: 0.85;
    }

    /* Modal -------------------------------------------------------- */

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 50;
      backdrop-filter: blur(4px);
    }

    .modal {
      background: #f9fafb;
      max-width: 520px;
      width: 100%;
      margin: 1rem;
      border-radius: 1rem;
      padding: 1rem 1.25rem 1rem;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
      border: 1px solid rgba(148, 163, 184, 0.6);
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .modal-header-actions {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .modal-title-input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 1rem;
      font-weight: 600;
      outline: none;
      padding: 0.25rem 0.4rem;
      border-radius: 0.5rem;
    }

    .modal-close-btn {
      border: none;
      border-radius: 999px;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.06);
      cursor: pointer;
      font-size: 1.1rem;
      line-height: 1;
    }

    .modal-close-btn:hover {
      background: rgba(15, 23, 42, 0.12);
    }

    .modal-danger-btn {
      border: none;
      border-radius: 999px;
      padding: 0.35rem 0.85rem;
      font-size: 0.8rem;
      font-weight: 600;
      background: linear-gradient(135deg, #f87171, #ef4444);
      color: #fff;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
    }

    .modal-danger-btn:hover {
      filter: brightness(1.05);
    }

    .modal-section {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .modal-section-title {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #9ca3af;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-textarea {
      min-height: 70px;
      resize: vertical;
      border-radius: 0.6rem;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.45rem 0.6rem;
      font-size: 0.85rem;
      outline: none;
    }

    .modal-textarea:focus,
    .modal-text-input:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
    }

    .modal-text-input {
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.35rem 0.7rem;
      font-size: 0.85rem;
      outline: none;
      flex: 1;
      min-width: 0;
    }

    .modal-inline-form {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      align-items: center;
    }

    .modal-inline-form button {
      border-radius: 999px;
      border: none;
      padding: 0.35rem 0.7rem;
      font-size: 0.8rem;
      font-weight: 500;
      background: #4f46e5;
      color: #f9fafb;
      cursor: pointer;
    }

    .modal-inline-form button:hover {
      filter: brightness(1.05);
    }

    .modal-assign-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      align-items: center;
    }

    .modal-select {
      border-radius: 0.6rem;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.4rem 0.6rem;
      font-size: 0.85rem;
      min-width: 220px;
    }

    .modal-number-input {
      width: 80px;
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.35rem 0.6rem;
      font-size: 0.85rem;
      outline: none;
    }

    .modal-pill {
      border-radius: 999px;
      border: 1px solid rgba(209, 213, 219, 1);
      padding: 0.2rem 0.6rem;
      font-size: 0.75rem;
      color: #6b7280;
      white-space: nowrap;
    }

    .modal-list {
      list-style: none;
      margin: 0;
      padding: 0;
      max-height: 160px;
      overflow: auto;
      border-radius: 0.5rem;
      border: 1px solid rgba(229, 231, 235, 1);
      background: #fefefe;
    }

    .modal-list.empty {
      border-style: dashed;
      font-size: 0.8rem;
      color: #9ca3af;
      padding: 0.6rem 0.7rem;
    }

    .modal-list-item {
      padding: 0.45rem 0.7rem;
      border-bottom: 1px solid rgba(243, 244, 246, 1);
      font-size: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .modal-list-item:last-child {
      border-bottom: none;
    }

    .modal-list-item-meta {
      font-size: 0.7rem;
      color: #9ca3af;
    }

    /* Ensure [hidden] always hides */
    [hidden] {
      display: none !important;
    }

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

    /* Hide VOIX elements visually */
    tool,
    context {
      display: none;
    }
