:root {
      --primary: #67A6C4;
      --primary-dk: #4F8EAC;
      --primary-lt: #85C4E2;
      --bg: #F3F4F6;
      --card: #FFFFFF;
      --text: #1F2937;
      --text-s: #6B7280;
      --border: #D1D5DB;
      --radius: 24px;
      --radius-lg: 32px;
      --radius-pill: 50px;
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      --green: #10B981;
      --red: #EF4444;
      --amber: #F59E0B;
      --card-bg: var(--card);
      --text-p: var(--text);
      --bg-card: #F9FAFB;
      --nav-h: 60px;
      --pc-fab-size: 58px;
      --fe-viewport-width: 100vw;
      --fe-viewport-height: 100vh;
      --fe-viewport-offset-left: 0px;
      --fe-viewport-offset-top: 0px;
      --fe-viewport-right-inset: 0px;
      --fe-viewport-bottom-inset: 0px;
    }

     
    html[lang="pt-BR"] .lang-en, html[lang="pt-BR"] .lang-es, html[lang="pt-BR"] .lang-fr, html[lang="pt-BR"] .lang-de, html[lang="pt-BR"] .lang-it, html[lang="pt-BR"] .lang-ja, html[lang="pt-BR"] .lang-zh, html[lang="pt-BR"] .lang-ko, html[lang="pt-BR"] .lang-ru, html[lang="pt-BR"] .lang-ar {
      display: none !important;
    }
    html[lang="en-US"] .lang-pt, html[lang="en-US"] .lang-es, html[lang="en-US"] .lang-fr, html[lang="en-US"] .lang-de, html[lang="en-US"] .lang-it, html[lang="en-US"] .lang-ja, html[lang="en-US"] .lang-zh, html[lang="en-US"] .lang-ko, html[lang="en-US"] .lang-ru, html[lang="en-US"] .lang-ar {
      display: none !important;
    }
    html[lang="es-ES"] .lang-pt, html[lang="es-ES"] .lang-en, html[lang="es-ES"] .lang-fr, html[lang="es-ES"] .lang-de, html[lang="es-ES"] .lang-it, html[lang="es-ES"] .lang-ja, html[lang="es-ES"] .lang-zh, html[lang="es-ES"] .lang-ko, html[lang="es-ES"] .lang-ru, html[lang="es-ES"] .lang-ar {
      display: none !important;
    }
    html[lang="fr-FR"] .lang-pt, html[lang="fr-FR"] .lang-en, html[lang="fr-FR"] .lang-es, html[lang="fr-FR"] .lang-de, html[lang="fr-FR"] .lang-it, html[lang="fr-FR"] .lang-ja, html[lang="fr-FR"] .lang-zh, html[lang="fr-FR"] .lang-ko, html[lang="fr-FR"] .lang-ru, html[lang="fr-FR"] .lang-ar {
      display: none !important;
    }
    html[lang="de-DE"] .lang-pt, html[lang="de-DE"] .lang-en, html[lang="de-DE"] .lang-es, html[lang="de-DE"] .lang-fr, html[lang="de-DE"] .lang-it, html[lang="de-DE"] .lang-ja, html[lang="de-DE"] .lang-zh, html[lang="de-DE"] .lang-ko, html[lang="de-DE"] .lang-ru, html[lang="de-DE"] .lang-ar {
      display: none !important;
    }
    html[lang="it-IT"] .lang-pt, html[lang="it-IT"] .lang-en, html[lang="it-IT"] .lang-es, html[lang="it-IT"] .lang-fr, html[lang="it-IT"] .lang-de, html[lang="it-IT"] .lang-ja, html[lang="it-IT"] .lang-zh, html[lang="it-IT"] .lang-ko, html[lang="it-IT"] .lang-ru, html[lang="it-IT"] .lang-ar {
      display: none !important;
    }
    html[lang="ja-JP"] .lang-pt, html[lang="ja-JP"] .lang-en, html[lang="ja-JP"] .lang-es, html[lang="ja-JP"] .lang-fr, html[lang="ja-JP"] .lang-de, html[lang="ja-JP"] .lang-it, html[lang="ja-JP"] .lang-zh, html[lang="ja-JP"] .lang-ko, html[lang="ja-JP"] .lang-ru, html[lang="ja-JP"] .lang-ar {
      display: none !important;
    }
    html[lang="zh-CN"] .lang-pt, html[lang="zh-CN"] .lang-en, html[lang="zh-CN"] .lang-es, html[lang="zh-CN"] .lang-fr, html[lang="zh-CN"] .lang-de, html[lang="zh-CN"] .lang-it, html[lang="zh-CN"] .lang-ja, html[lang="zh-CN"] .lang-ko, html[lang="zh-CN"] .lang-ru, html[lang="zh-CN"] .lang-ar {
      display: none !important;
    }
    html[lang="ko-KR"] .lang-pt, html[lang="ko-KR"] .lang-en, html[lang="ko-KR"] .lang-es, html[lang="ko-KR"] .lang-fr, html[lang="ko-KR"] .lang-de, html[lang="ko-KR"] .lang-it, html[lang="ko-KR"] .lang-ja, html[lang="ko-KR"] .lang-zh, html[lang="ko-KR"] .lang-ru, html[lang="ko-KR"] .lang-ar {
      display: none !important;
    }
    html[lang="ru-RU"] .lang-pt, html[lang="ru-RU"] .lang-en, html[lang="ru-RU"] .lang-es, html[lang="ru-RU"] .lang-fr, html[lang="ru-RU"] .lang-de, html[lang="ru-RU"] .lang-it, html[lang="ru-RU"] .lang-ja, html[lang="ru-RU"] .lang-zh, html[lang="ru-RU"] .lang-ko, html[lang="ru-RU"] .lang-ar {
      display: none !important;
    }
    html[lang="ar-SA"] .lang-pt, html[lang="ar-SA"] .lang-en, html[lang="ar-SA"] .lang-es, html[lang="ar-SA"] .lang-fr, html[lang="ar-SA"] .lang-de, html[lang="ar-SA"] .lang-it, html[lang="ar-SA"] .lang-ja, html[lang="ar-SA"] .lang-zh, html[lang="ar-SA"] .lang-ko, html[lang="ar-SA"] .lang-ru {
      display: none !important;
    }

     
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-en,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-es,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-fr,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-de,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-it,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-ja,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-zh,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-ko,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-ru,
    html:not([lang="pt-BR"]):not([lang="en-US"]):not([lang="es-ES"]):not([lang="fr-FR"]):not([lang="de-DE"]):not([lang="it-IT"]):not([lang="ja-JP"]):not([lang="zh-CN"]):not([lang="ko-KR"]):not([lang="ru-RU"]):not([lang="ar-SA"]) .lang-ar {
      display: none !important;
    }

    .material-symbols-outlined {
      font-family: 'Material Symbols Outlined';
      font-weight: 400;
      font-style: normal;
      font-size: 1.2em;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      letter-spacing: normal;
      text-transform: none;
      white-space: nowrap;
      word-wrap: normal;
      direction: ltr;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .splash-overlay {
      position: fixed;
      inset: 0;
      background: radial-gradient(900px circle at 50% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
        linear-gradient(180deg, #050B1D 0%, #020611 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease;
    }

    .splash-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .splash-content {

      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      text-align: center;
      width: 100%;
      max-width: 420px;
      transform: translateY(10px);
      opacity: 0;
      animation: splashEnter 320ms cubic-bezier(0.22, 1, 0.36, 1) 60ms forwards;
    }

    @keyframes splashEnter {
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .splash-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-height: 52vh;
    }

    .splash-app-icon {
      width: 64px;
      height: 64px;
      object-fit: contain;
      filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
      animation: logoFloat 2.4s ease-in-out infinite;
    }

    body.pwa-standalone .splash-app-icon {
      width: 80px;
      height: 80px;
    }

    @media (display-mode: standalone) {
      .splash-app-icon {
        width: 80px;
        height: 80px;
      }
    }

    @keyframes logoFloat {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-6px);
      }
    }

    .splash-app-name {
      font-size: 1.25em;
      font-weight: 850;
      color: rgba(255, 255, 255, 0.96);
      letter-spacing: -0.3px;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
      margin-top: 6px;
    }

    .splash-app-version {
      font-size: 0.98em;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.88);
      letter-spacing: -0.2px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
      margin-top: -2px;
    }

    .splash-pc-loading {
      display: none;
      margin-top: 8px;
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.78em;
      letter-spacing: 0.04em;
    }

    body.facilita-pc-shell .splash-pc-loading {
      display: block;
    }


    .splash-badges,
    .splash-badge,
    .splash-warning,
    .splash-btn,
    .splash-logo,
    .splash-title,
    .splash-subtitle {
      display: none !important;
    }

    body.dark {
      --bg: #111827;
      --card: #1F2937;
      --text: #F9FAFB;
      --text-s: #9CA3AF;
      --border: #374151;
      --card-bg: #1F2937;
      --text-p: #F9FAFB;
      --bg-card: #172033;
    }

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }


    html {
      scrollbar-width: thin;
      scrollbar-color: rgba(99, 102, 241, 0.55) rgba(209, 213, 219, 0.35);

    }

    html.dark {
      scrollbar-color: rgba(99, 102, 241, 0.45) rgba(55, 65, 81, 0.55);
    }


    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(209, 213, 219, 0.35);
      border-radius: 999px;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(99, 102, 241, 0.55);
      border-radius: 999px;
      border: 2px solid rgba(209, 213, 219, 0.35);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(99, 102, 241, 0.75);
    }

    html.dark ::-webkit-scrollbar-track {
      background: rgba(55, 65, 81, 0.55);
    }

    html.dark ::-webkit-scrollbar-thumb {
      border: 2px solid rgba(55, 65, 81, 0.55);
      background: rgba(99, 102, 241, 0.45);
    }



    body {
      font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      overflow-x: hidden;
    }

    a {
      color: var(--primary);
      text-decoration: none;
    }

    button {
      cursor: pointer;
      font-family: inherit;
    }

    input,
    textarea,
    select {
      font-family: inherit;
      font-size: 1em;
      color: var(--text);
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 12px 16px;
      width: 100%;
      outline: none;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: var(--primary);
    }

    textarea {
      resize: vertical;
      min-height: 70px;
    }

    label {
      font-size: 0.88em;
      font-weight: 600;
      color: var(--text-s);
      display: block;
      margin-bottom: 4px;
    }


    #app {
      width: 100%;
      max-width: 480px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      position: relative;
      transition: max-width 0.25s ease, width 0.25s ease;
    }

    body.pc-fab-position-transition #pc-nav-fab,
    body.pc-fab-position-transition #pc-nav-menu {
      animation: pcFabPositionChange 280ms ease both;
    }

    @keyframes pcFabPositionChange {
      0% { opacity: 0.35; transform: scale(0.86); }
      100% { opacity: 1; transform: scale(1); }
    }

    body.default-priority-transition #default-priority-select,
    body.default-priority-transition #new-priority {
      animation: defaultPriorityChange 300ms ease both;
    }

    @keyframes defaultPriorityChange {
      0% { opacity: 0.45; transform: translateY(-3px) scale(0.98); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .task-item.task-item-entering {
      animation: taskItemEnter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes taskItemEnter {
      from { opacity: 0; transform: translateY(12px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    body.tablet-mode #app {
      width: calc(100% - 16px);
      max-width: 760px;
    }

    body.tablet-mode .modal-overlay:not(.news-modal):not(#task-qr-modal) .modal-box {
      width: min(700px, calc(100vw - 32px));
      max-width: 700px;
      border-radius: var(--radius-lg);
    }

    body.tablet-mode .suitcase-content {
      max-width: 760px;
    }

    @media (min-width: 768px) and (max-width: 1200px) {
      body.tablet-mode .task-window:not(.large) {
        width: min(600px, calc(100vw - 36px));
        max-width: 600px;
      }
    }


    #app-header {
      background: var(--primary);
      color: #fff;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);

      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    #app-header h1 {
      font-size: 1.1em;
      font-weight: 700;
      letter-spacing: -0.3px;
    }

    #app-header .badge {
      font-size: 0.65em;
      background: rgba(255, 255, 255, 0.25);
      padding: 2px 7px;
      border-radius: 20px;
      margin-left: 6px;
      vertical-align: middle;
    }

    #sync-indicator {
      font-size: 0.8em;
      opacity: 0.85;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    #sync-indicator.syncing i {
      animation: spin 1s linear infinite;
    }

     
     
    #sync-indicator[data-state="ok"] i { color: var(--green); }
    #sync-indicator[data-state="syncing"] i { color: var(--amber); }
    #sync-indicator[data-state="error"] i { color: var(--amber); }
    #sync-indicator[data-state="offline"] i { color: var(--red); }

     
    #sync-indicator[data-highcontrast="1"][data-state="ok"] i { color: #047857; }
    #sync-indicator[data-highcontrast="1"][data-state="syncing"] i { color: #92400e; }
    #sync-indicator[data-highcontrast="1"][data-state="error"] i { color: #92400e; }
    #sync-indicator[data-highcontrast="1"][data-state="offline"] i { color: #B91C1C; }

     

    #sync-indicator.anim-pulse i {
      animation: pulse 1200ms ease-in-out infinite;
    }
    #sync-indicator.anim-shake i {
      animation: shake 900ms ease-in-out infinite;
    }
    #sync-indicator.anim-spin i {
      animation: spin 1000ms linear infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
      50% { transform: scale(1.08); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.06)); }
      100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
    }

    @keyframes shake {
      0% { transform: translateX(0); }
      25% { transform: translateX(-3px); }
      50% { transform: translateX(3px); }
      75% { transform: translateX(-2px); }
      100% { transform: translateX(0); }
    }

     

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    #app-main {
      flex: 1;
      overflow-y: auto;
      padding: 14px;
      padding-bottom: calc(var(--nav-h) + 14px);
    }

    body.pc-mode #app-main {
      padding-bottom: 22px;
    }

    body.pc-mode-transition #app-main,
    body.pc-mode-transition #app-nav,
    body.pc-mode-transition #pc-nav-fab,
    body.pc-mode-transition #pc-nav-menu {
      transition: opacity 240ms ease, transform 240ms ease, padding-bottom 240ms ease;
    }

    body.pc-mode-transitioning-out #app-nav {
      display: flex !important;
      opacity: 0;
      transform: translateY(18px);
    }

    body.pc-mode-transitioning-out #pc-nav-fab,
    body.pc-mode-transitioning-out #pc-nav-menu {
      opacity: 0;
      transform: scale(0.82);
    }

    body.pc-mode-transitioning-out #app-main {
      transform: translateY(-8px);
    }

    body.pc-mode-transitioning-in #app-nav {
      opacity: 1;
      transform: translateY(0);
    }

    body.pc-mode-transitioning-in #pc-nav-fab,
    body.pc-mode-transitioning-in #pc-nav-menu {
      opacity: 1;
      transform: scale(1);
    }

    body.pc-mode-transitioning-in #pc-nav-fab {
      opacity: 0;
      transform: scale(0.82);
    }

    body.pc-mode-transitioning-in #pc-nav-menu {
      opacity: 0;
      transform: scale(0.94);
    }

    @media (prefers-reduced-motion: reduce) {
      body.pc-mode-transition,
      body.pc-mode-transition * {
        transition-duration: 0.01ms !important;
      }
    }

    section {
      display: none;
    }

    section.active {
      display: block;
    }


    .card {
      background: var(--card);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: var(--shadow);
      margin-bottom: 14px;
    }

    .card-title {
      font-size: 1em;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title i {
      color: var(--primary);
    }


    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 12px 24px;
      border-radius: var(--radius-pill);
      font-size: 0.95em;
      font-weight: 600;
      border: none;
      width: 100%;
      margin-top: 8px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
    }

    .btn-success {
      background: var(--green);
      color: #fff;
    }

    .btn-danger {
      background: var(--red);
      color: #fff;
    }

    .btn-secondary {
      background: var(--text-s);
      color: #fff;
    }

    .btn-outline {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    .btn-sm {
      padding: 8px 16px;
      font-size: 0.85em;
      width: auto;
      margin-top: 0;
      border-radius: var(--radius);
    }

    .btn:disabled {
      opacity: 0.55;
      pointer-events: none;
    }


    .form-group {
      margin-bottom: 12px;
    }

    .form-row {
      display: flex;
      gap: 10px;
    }

    .form-row .form-group {
      flex: 1;
    }

    .form-check-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 8px;
    }

    .form-check-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      flex: 1;
      min-width: 180px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(148, 163, 184, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    }

    .form-check-option input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: var(--primary);
      margin-top: 2px;
      flex-shrink: 0;
    }

    .form-check-option span {
      font-weight: 700;
      font-size: 0.88em;
      color: var(--text);
      line-height: 1.4;
    }

    .task-list {
      list-style: none;
    }

    .task-item {
      background: var(--card);
      border-radius: var(--radius);
      padding: 14px 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow);
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      gap: 12px;
      border-left: 4px solid var(--border);
      overflow: hidden;
      word-break: break-word;
      touch-action: pan-y;
      transform: translate3d(var(--task-swipe-offset, 0px), 0, 0) scale(var(--task-swipe-scale, 1));
      transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease;
    }

    .task-item.task-swipe-armed {
      --task-swipe-scale: .985;
      transition: transform 110ms ease-out, box-shadow 140ms ease;
      box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
    }

    .task-item.task-swipe-dragging {
      --task-swipe-scale: .985;
      transition: none;
      z-index: 1;
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    }

    @media (prefers-reduced-motion: reduce) {
      .task-item {
        transition: none;
      }
    }

    body.reduce-motion .task-item {
      transition: none !important;
    }

    .task-item .md-rendered,
    .task-item .md-task-list,
    .task-item .md-ul,
    .task-item .md-ol {
      max-width: 100%;
      max-height: 11rem;
      overflow: auto;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .task-item .md-task-list,
    .task-item .md-ul,
    .task-item .md-ol {
      margin-block: 0;
      padding-inline-start: 1.25rem;
    }

    .task-item .md-task-item {
      min-width: 0;
      line-height: 1.35;
    }

    .task-item .md-task-item span {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .task-item.priority-high {
      border-left-color: var(--red);
    }

    .task-item.priority-medium {
      border-left-color: var(--amber);
    }

    .task-item.priority-low {
      border-left-color: var(--green);
    }

    .task-item.priority-list {
      border-left-color: #0EA5E9;
    }

    .task-item.done {
      opacity: 0.55;
    }

    .task-item.done .task-title {
      text-decoration: line-through;
    }

    .task-item.selected {
      border-left-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18), var(--shadow);
      background: rgba(99, 102, 241, 0.04);
    }

    .cli-origin-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      margin-left: 8px;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.12);
      color: #10B981;
      font-size: 0.66em;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      vertical-align: middle;
    }

    .platform-origin-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      margin-left: 8px;
      border-radius: 999px;
      background: rgba(99, 102, 241, 0.12);
      color: #67A6C4;
      font-size: 0.66em;
      font-weight: 700;
      vertical-align: middle;
    }

    .platform-origin-badge img {
      width: 14px;
      height: 14px;
      object-fit: contain;
      border-radius: 4px;
      display: inline-block;
      flex: 0 0 14px;
    }

    .task-check {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid var(--border);
      background: none;
      flex-shrink: 0;
      cursor: pointer;
      margin-top: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .task-check.checked {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
      font-size: 0.7em;
    }

    .task-check.task-check-animated,
    .task-check.task-check-animated.checked {
      width: 20px;
      height: 20px;
      padding: 1px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: var(--primary);
      font-size: initial;
    }

    .task-check-animated svg { width: 18px; height: 18px; overflow: visible; fill: none; stroke: #c8ccd4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .task-check-animated svg circle { fill: transparent; stroke: #c8ccd4; transition: fill .16s ease, stroke .16s ease; }
    .task-check-animated svg polyline { stroke: #fff; stroke-dasharray: 13; stroke-dashoffset: 13; }
    .task-check-animated:hover svg circle { stroke: var(--primary); }
    .task-check-animated.checked svg circle { fill: var(--green); stroke: var(--green); }
    .task-check-animated.checked svg polyline { stroke-dashoffset: 0; }
    .task-check-animated.is-completing svg { animation: taskCheckPop .28s cubic-bezier(.2,.8,.25,1); }
    .task-check-animated.is-completing svg circle { animation: taskCheckFill .28s ease-out forwards; }
    .task-check-animated.is-completing svg polyline { animation: taskCheckDraw .22s ease-out .08s forwards; }
    .task-check-animated.is-unchecking svg { animation: taskCheckPop .24s ease-out reverse; }
    .task-check-animated.is-unchecking svg circle { animation: taskCheckUnfill .2s ease-out forwards; }
    .task-check-animated.is-unchecking svg polyline { animation: taskCheckErase .16s ease-in forwards; }
    @keyframes taskCheckPop { 0% { transform: scale(.76); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
    @keyframes taskCheckFill { to { fill: var(--green); stroke: var(--green); } }
    @keyframes taskCheckUnfill { to { fill: transparent; stroke: #c8ccd4; } }
    @keyframes taskCheckDraw { to { stroke-dashoffset: 0; } }
    @keyframes taskCheckErase { to { stroke-dashoffset: 13; } }
    @media (prefers-reduced-motion: reduce) {
      .task-check-animated svg,
      .task-check-animated svg circle,
      .task-check-animated svg polyline { animation-duration: 1ms !important; transition-duration: 1ms; }
    }
    body.reduce-motion .task-check-animated svg,
    body.reduce-motion .task-check-animated svg circle,
    body.reduce-motion .task-check-animated svg polyline { animation-duration: 1ms !important; transition-duration: 1ms !important; }

    .task-body {
      flex: 1;
      min-width: 0;
    }

    .task-title {
      font-weight: 600;
      font-size: 0.95em;
      word-break: break-word;
    }

    .task-meta {
      font-size: 0.78em;
      color: var(--text-s);
      margin-top: 3px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .task-meta i {
      margin-right: 3px;
    }

    .task-actions {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .task-action-btn {
      background: none;
      border: none;
      padding: 5px;
      border-radius: 6px;
      color: var(--text-s);
      font-size: 0.9em;
    }

    .task-action-btn:hover {
      color: var(--primary);
    }

    .task-action-btn.del:hover {
      color: var(--red);
    }

    body.bui-mode .group-folder-item.bui-menu-active,
    body.bui-mode .group-folder-item:focus-within {
      overflow: visible;
      position: relative;
      z-index: 20;
    }

    .bui-group-menu {
      position: relative;
      z-index: 2;
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
    }

    .bui-group-trigger,
    .bui-group-orbit-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 50%;
      color: var(--text);
      background: var(--card);
      box-shadow: 0 5px 14px rgba(15, 23, 42, 0.18);
      cursor: pointer;
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .bui-group-trigger {
      position: relative;
      z-index: 2;
      width: 40px;
      height: 40px;
      color: var(--text-s);
      border-color: var(--border);
      background: var(--card);
      font-size: 1em;
      box-shadow: none;
    }

    .bui-group-trigger:focus-visible,
    .bui-group-orbit-button:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 3px;
    }

    .bui-group-orbit-button:hover {
      transform: scale(1.08);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
    }

    .bui-group-orbit {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }

    .bui-group-orbit-button {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 38px;
      height: 38px;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(0.2);
      transition: transform 260ms cubic-bezier(.18,.85,.25,1), opacity 160ms ease, box-shadow 160ms ease;
    }

    .bui-group-orbit-button.details {
      color: #0f766e;
      background: #ccfbf1;
      border-color: #5eead4;
    }
    .bui-group-orbit-button.customize {
      color: #9a3412;
      background: #ffedd5;
      border-color: #fdba74;
    }
    .bui-group-orbit-button.remove {
      color: #b91c1c;
      background: #fee2e2;
      border-color: #fca5a5;
    }

    body.bui-mode .bui-group-menu.is-hovered .bui-group-orbit,
    body.bui-mode .bui-group-menu.is-open .bui-group-orbit {
      pointer-events: auto;
    }

    body.bui-mode .bui-group-menu.is-hovered .bui-group-orbit-button,
    body.bui-mode .bui-group-menu.is-open .bui-group-orbit-button {
      opacity: 1;
      pointer-events: auto;
    }

    body.bui-mode .bui-group-menu.is-hovered .bui-group-orbit-button.details,
    body.bui-mode .bui-group-menu.is-open .bui-group-orbit-button.details {
      transform: translate(-50%, -50%) translate(56px, calc(-46px + var(--bui-orbit-shift-y, 0px))) scale(1);
    }

    body.bui-mode .bui-group-menu.is-hovered .bui-group-orbit-button.customize,
    body.bui-mode .bui-group-menu.is-open .bui-group-orbit-button.customize {
      transform: translate(-50%, -50%) translate(70px, var(--bui-orbit-shift-y, 0px)) scale(1);
    }

    body.bui-mode .bui-group-menu.is-hovered .bui-group-orbit-button.remove,
    body.bui-mode .bui-group-menu.is-open .bui-group-orbit-button.remove {
      transform: translate(-50%, -50%) translate(56px, calc(46px + var(--bui-orbit-shift-y, 0px))) scale(1);
    }

    body.bui-mode .bui-group-menu.bui-orbit-left.is-hovered .bui-group-orbit-button.details,
    body.bui-mode .bui-group-menu.bui-orbit-left.is-open .bui-group-orbit-button.details {
      transform: translate(-50%, -50%) translate(-56px, calc(-46px + var(--bui-orbit-shift-y, 0px))) scale(1);
    }

    body.bui-mode .bui-group-menu.bui-orbit-left.is-hovered .bui-group-orbit-button.customize,
    body.bui-mode .bui-group-menu.bui-orbit-left.is-open .bui-group-orbit-button.customize {
      transform: translate(-50%, -50%) translate(-70px, var(--bui-orbit-shift-y, 0px)) scale(1);
    }

    body.bui-mode .bui-group-menu.bui-orbit-left.is-hovered .bui-group-orbit-button.remove,
    body.bui-mode .bui-group-menu.bui-orbit-left.is-open .bui-group-orbit-button.remove {
      transform: translate(-50%, -50%) translate(-56px, calc(46px + var(--bui-orbit-shift-y, 0px))) scale(1);
    }

    body.bui-mode .group-folder-item .task-action-btn.del {
      width: 40px;
      height: 40px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: var(--card);
      box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
    }

    @media (prefers-reduced-motion: reduce) {
      .bui-group-trigger,
      .bui-group-orbit-button {
        transition: none;
      }
    }

    body.reduce-motion .bui-group-trigger,
    body.reduce-motion .bui-group-orbit-button {
      transition: none !important;
    }


    .desc-clamp {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 7;
      overflow: hidden;
      word-break: break-word;
      overflow-wrap: anywhere;
      max-width: 100%;
    }

    .desc-expanded {
      -webkit-line-clamp: unset;
      overflow: visible;
      word-break: break-word;
      overflow-wrap: anywhere;
      max-width: 100%;
    }

    .task-expand {
      display: none;
      width: 100%;
      flex-basis: 100%;
      margin-top: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }

    .task-item.swipe-actions-revealed .task-expand {
      display: block;
      animation: taskActionsReveal 160ms ease-out both;
    }

    @keyframes taskActionsReveal {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
      .task-item.swipe-actions-revealed .task-expand {
        animation: none;
      }

      #task-drawer,
      #task-drawer.fullscreen {
        animation: none;
      }
    }

    body.reduce-motion #task-drawer,
    body.reduce-motion #task-drawer.fullscreen {
      animation: none !important;
    }

    .task-expand-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .task-expand-btn {
      border: 1.5px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-weight: 800;
      padding: 9px 12px;
      border-radius: 14px;
      font-size: 0.85em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .task-item .task-expand-actions {
      flex-wrap: nowrap;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .task-item .task-expand-actions::-webkit-scrollbar {
      display: none;
    }

    .task-item .task-expand-btn {
      flex: 0 0 auto;
      padding: 8px 9px;
      gap: 6px;
      white-space: nowrap;
    }

    .task-expand-btn.primary {
      background: var(--primary);
      border-color: transparent;
      color: #fff;
    }

    .task-expand-btn.danger {
      background: rgba(239, 68, 68, 0.12);
      border-color: rgba(239, 68, 68, 0.35);
      color: var(--red);
    }

    .task-expand-btn:hover {
      filter: brightness(1.05);
    }

    .share-preview-qr-btn {
      flex: 0 0 44px;
      width: 44px;
      min-height: 42px;
      justify-content: center;
      padding: 8px;
    }

    .share-qr-confirm-modal {
      z-index: 450 !important;
    }

    .share-qr-confirm-box {
      width: min(420px, calc(100vw - 32px));
    }

    .share-qr-confirm-box > p {
      margin: 12px 0 18px;
      color: var(--text-s);
      font-size: .9em;
      line-height: 1.5;
    }

    .share-qr-confirm-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    #edit-modal .edit-modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }

    #edit-modal .edit-modal-actions > .btn {
      flex: 1 1 0;
      min-width: 0;
      margin-top: 0;
    }

    #privacy-modal .task-expand-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      align-items: stretch;
      margin-top: 12px !important;
    }

    #privacy-modal .modal-box {
      padding: 18px;
    }

    #privacy-modal .modal-title {
      margin-bottom: 12px;
    }

    #privacy-modal [data-privacy-copy] {
      margin: 0;
      padding-right: 2px;
      white-space: normal !important;
    }

    #privacy-modal [data-privacy-copy] p {
      margin: 0 0 12px;
    }

    #privacy-modal [data-privacy-copy] h2,
    #privacy-modal [data-privacy-copy] h3,
    #privacy-modal [data-privacy-copy] h4 {
      margin: 0 0 8px;
      color: var(--text);
      line-height: 1.3;
    }

    #privacy-modal [data-privacy-copy] ul {
      margin: 0 0 12px;
      padding-left: 20px;
    }

    #privacy-modal [data-privacy-copy] li {
      margin: 0 0 5px;
    }

    #privacy-modal .task-expand-btn {
      flex: 1 1 0 !important;
      min-width: 0;
      min-height: 44px;
      padding: 8px 7px;
      justify-content: center;
      text-align: center;
      line-height: 1.2;
      font-size: 0.74em;
      gap: 5px;
    }

    #privacy-modal [data-privacy-accept-label] {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      margin: 14px 0 0;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: rgba(148, 163, 184, 0.08);
      color: var(--text);
      line-height: 1.4;
    }

    #privacy-modal [data-privacy-check] {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      margin: 1px 0 0;
      padding: 0;
      accent-color: var(--primary);
      cursor: pointer;
    }

    #privacy-modal [data-privacy-accept] {
      display: none;
      grid-column: 1 / -1;
      width: 100%;
      min-height: 44px;
      border: 1px solid transparent;
      background: var(--primary);
      color: #fff;
      opacity: 1;
    }

    #privacy-modal [data-privacy-accept]:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      filter: none;
    }

    #task-ai-consent-overlay .modal-box {
      width: min(92vw, 560px);
      max-height: min(88vh, 720px);
      overflow-y: auto;
    }

    #task-ai-consent-overlay .task-ai-consent-copy {
      margin: 0 0 16px;
      color: var(--text-s);
      font-size: 0.9em;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    #task-ai-consent-overlay .task-ai-consent-copy strong {
      color: var(--text);
    }

    .news-modal-version {
      margin: -4px 0 12px;
      color: var(--text-s);
      font-size: 0.72em;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    #task-ai-consent-overlay .task-ai-consent-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    #task-ai-consent-overlay .task-ai-consent-actions .btn {
      width: 100%;
      min-width: 0;
      min-height: 44px;
      margin-top: 0 !important;
      white-space: normal;
    }

    @media (max-width: 480px) {
      #task-ai-consent-overlay .modal-box {
        width: min(94vw, 560px);
        max-height: 84vh;
        padding: 18px;
      }

      #task-ai-consent-overlay .task-ai-consent-actions {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 420px) {
      #privacy-modal .task-expand-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #privacy-modal .task-expand-actions > button {
        min-width: 0;
      }
    }

     
    .add-task-menu-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 11px 16px;
      background: none;
      border: none;
      color: var(--text);
      font-size: 0.88em;
      font-weight: 700;
      cursor: pointer;
      text-align: left;
      transition: background .12s;
    }
    .add-task-menu-item:hover {
      background: rgba(99,102,241,0.07);
    }
    .add-task-menu-item:focus-visible {
      position: relative;
      z-index: 1;
      outline: 3px solid color-mix(in srgb, var(--primary) 55%, white);
      outline-offset: -3px;
      background: color-mix(in srgb, var(--primary) 12%, var(--card));
    }
    .add-task-menu-item + .add-task-menu-item {
      border-top: 1px solid var(--border);
    }

     
    #add-task-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding-left: 32px;
    }

    #add-task-btn > i {
      justify-self: auto;
      font-size: 20px;
    }

    #add-task-btn.has-divider {
      border-radius: var(--radius-pill) 0 0 var(--radius-pill) !important;
      border-right: none !important;
    }


    #task-drawer-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 220;
      background: rgba(0, 0, 0, 0.35);
    }

    #task-drawer-overlay.open {
      display: block;
    }

    #task-drawer {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      width: 100%;
      max-width: 520px;
      background: var(--card);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      border-top: 1px solid var(--border);
      box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.22);
      padding: 14px 16px 18px;
      max-height: 80vh;
      overflow-y: auto;
      overflow-x: hidden;
      word-break: break-word;
      overflow-wrap: anywhere;
      box-sizing: border-box;
      animation: drawerIn 180ms ease-out both;
    }

    @keyframes drawerIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }


    #task-drawer.fullscreen {
      position: fixed;
      top: 16px;
      left: 16px;
      right: 16px;
      bottom: 16px;
      width: auto;
      transform: none;
      max-width: none;
      border-radius: var(--radius-lg);
      max-height: calc(var(--fe-viewport-height, 100vh) - 32px);
      padding: 14px 14px 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
      animation: winMaxIn 180ms ease-out both;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    @keyframes winMaxIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }


    #task-drawer-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    #task-drawer-content {
      min-height: 0;
    }

    #task-drawer.fullscreen #task-drawer-content {
      flex: 1 1 auto;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    #task-drawer-actions-row {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      max-width: 100%;
    }

    #task-drawer-actions {
      flex: 0 0 auto;
      display: flex;
      flex-wrap: nowrap;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      scrollbar-width: thin;
      padding: 8px 2px 6px;
    }

    #task-drawer-actions > .task-expand-btn {
      flex: 0 0 auto;
      white-space: nowrap;
      scroll-snap-align: start;
    }

    #task-drawer.fullscreen #task-drawer-actions-row {
      padding: 10px 0 max(0px, env(safe-area-inset-bottom));
      border-top: 1px solid var(--border);
      background: var(--card);
    }

    #task-drawer.fullscreen #task-drawer-actions {
      padding: 0;
    }

    #task-drawer-title {
      font-weight: 800;
      font-size: 0.98em;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    #task-drawer-title .drawer-grab {
      width: 44px;
      height: 6px;
      border-radius: 99px;
      background: rgba(107, 114, 128, 0.35);
      margin-left: auto;
      margin-right: auto;
      display: none;
    }

    #task-drawer-close {
      background: none;
      border: none;
      color: var(--text-s);
      font-size: 1.25em;
      padding: 4px;
      cursor: pointer;
    }

    #task-drawer-desc {
      font-size: 0.9em;
      color: var(--text);
      white-space: pre-wrap;
      line-height: 1.4;
      word-break: break-word;
      margin-top: 4px;
    }

    #task-drawer-meta {
      margin-top: 6px;
      color: var(--text-s);
      font-size: 0.8em;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .custom-context-menu {
      max-width: min(320px, calc(100vw - 24px));
      max-height: calc(var(--fe-viewport-height, 100dvh) - 24px);
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .task-qr-modal-overlay {
      align-items: center;
      padding: 16px;
      overflow-y: auto;
    }

    .task-qr-modal-overlay.is-qr-expanded {
      padding: 0;
    }

    .task-password-modal-overlay {
      align-items: center;
      padding: 16px;
    }

    .task-qr-paste-overlay {
      align-items: center;
      padding: 16px;
    }

    .task-qr-paste-box {
      width: min(100%, 400px);
      max-width: 400px;
      max-height: calc(var(--fe-viewport-height, 100vh) - 32px);
      overflow-y: auto;
      border-radius: var(--radius-lg);
      text-align: center;
    }

    .task-qr-paste-icon {
      display: grid;
      width: 48px;
      height: 48px;
      margin: 0 auto 12px;
      place-items: center;
      border-radius: 14px;
      background: rgba(103, 166, 196, 0.14);
      color: var(--primary-dk);
      font-size: 1.25rem;
    }

    .task-qr-paste-box h2 {
      margin: 0 0 8px;
      font-size: 1.08rem;
      line-height: 1.3;
    }

    .task-qr-paste-box p {
      margin: 0 0 18px;
      color: var(--text-s);
      font-size: 0.9em;
      line-height: 1.5;
    }

    .task-qr-paste-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .task-password-modal-box {
      width: min(100%, 420px);
      max-width: 420px;
      max-height: calc(var(--fe-viewport-height, 100vh) - 32px);
      overflow-y: auto;
      border-radius: var(--radius-lg);
    }

    .task-password-modal-box input {
      width: 100%;
      margin-top: 8px;
    }

    .task-password-error {
      min-height: 1.2em;
      margin-top: 6px;
      color: var(--red);
      font-size: 0.82em;
    }

    .modal-box.task-qr-modal-box {
      width: min(100%, 480px);
      max-width: 480px;
      max-height: calc(var(--fe-viewport-height, 100dvh) - 32px);
      overflow-y: auto;
      border-radius: 24px;
      overscroll-behavior: contain;
    }

    body.tablet-mode .modal-box.task-qr-modal-box:not(.is-qr-expanded) {
      width: min(calc(100vw - 32px), 760px);
      max-width: 760px;
    }

    .modal-box.task-qr-modal-box.is-qr-expanded {
      display: flex;
      width: 100%;
      max-width: none;
      height: 100%;
      max-height: none;
      flex-direction: column;
      justify-content: center;
      border-radius: 0;
      padding: clamp(12px, 3vw, 28px);
    }

    .task-qr-modal-box.is-qr-expanded #task-qr-generator {
      width: 100%;
      overflow-y: auto;
    }

    .task-qr-task-title {
      margin: 0 0 12px;
      font-size: 1.05em;
      overflow-wrap: anywhere;
    }

    .task-qr-image {
      display: block;
      width: min(48vw, 185px);
      aspect-ratio: 1;
      height: auto;
      margin: 12px auto;
      padding: 8px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      image-rendering: pixelated;
    }

    body.tablet-mode .task-qr-modal-box:not(.is-qr-expanded) .task-qr-image {
      width: min(56vw, 360px);
      max-width: 360px;
    }

    .task-qr-modal-box.is-qr-expanded .task-qr-image {
      width: min(78vw, calc(var(--fe-viewport-height, 100dvh) - 210px));
      max-width: 640px;
      max-height: min(72dvh, 640px);
      margin: clamp(8px, 2vh, 18px) auto;
    }

    .task-qr-note,
    .task-qr-scanner-status {
      margin: 10px 0;
      color: var(--text-s);
      font-size: 0.84em;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .task-qr-public-badge {
      display: flex;
      width: fit-content;
      max-width: 100%;
      align-items: center;
      justify-content: center;
      gap: 7px;
      margin: 0 auto 10px;
      padding: 7px 11px;
      border: 1px solid rgba(245, 158, 11, 0.35);
      border-radius: 999px;
      background: rgba(245, 158, 11, 0.12);
      color: #92400e;
      font-size: 0.78em;
      font-weight: 700;
      line-height: 1.25;
      text-align: center;
    }

    .task-qr-public-badge[hidden] {
      display: none !important;
    }

    body.dark .task-qr-public-badge {
      border-color: rgba(251, 191, 36, 0.3);
      background: rgba(245, 158, 11, 0.12);
      color: #fcd34d;
    }

    .task-qr-print-header,
    .task-qr-print-footer {
      display: none;
    }

    .task-qr-camera-frame {
      position: relative;
      width: min(100%, 48dvh, 360px);
      aspect-ratio: 1;
      margin: 12px auto;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 24px;
      background: #111827;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }

    body.tablet-mode .task-qr-camera-frame {
      width: min(100%, 64dvh, 480px);
    }

    .task-qr-camera-frame[hidden] {
      display: none;
    }

    .task-qr-video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .task-qr-camera-fallback {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      background: #05070c;
      color: #bae6fd;
    }

    .task-qr-camera-fallback[hidden] {
      display: none !important;
    }

    .task-qr-camera-fallback i {
      display: grid;
      width: 72px;
      height: 72px;
      place-items: center;
      border: 1px solid rgba(125, 211, 252, 0.24);
      border-radius: 50%;
      background: rgba(125, 211, 252, 0.08);
      font-size: 30px;
    }

    .task-qr-camera-frame.has-camera-fallback .task-qr-scan-guide {
      display: none;
    }

    .task-qr-scan-guide {
      position: absolute;
      inset: 14%;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.88);
      border-radius: 22px;
      box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.16);
      pointer-events: none;
      transition: border-color 180ms ease, box-shadow 180ms ease;
    }

    .task-qr-scan-beam {
      display: none;
    }

    .task-qr-scan-check {
      position: absolute;
      top: 50%;
      left: 50%;
      display: grid;
      width: 52px;
      aspect-ratio: 1;
      place-items: center;
      border-radius: 50%;
      background: #16a34a;
      color: #fff;
      font-size: 24px;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.35);
    }

    .task-qr-zoom-control {
      display: flex;
      align-items: center;
      gap: 10px;
      width: min(100%, 360px);
      min-height: 44px;
      margin: 0 auto 12px;
      padding: 6px 10px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--bg-2);
      color: var(--text);
    }

    body.tablet-mode .task-qr-zoom-control {
      width: min(100%, 480px);
    }

    .task-qr-zoom-control[hidden] {
      display: none;
    }

    #task-qr-expand-button[hidden] {
      display: none;
    }

    .task-qr-zoom-button {
      display: grid;
      flex: 0 0 32px;
      width: 32px;
      height: 32px;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      color: inherit;
      cursor: pointer;
    }

    .task-qr-zoom-label {
      flex: 0 0 auto;
      color: var(--text-s);
      font-size: 0.78em;
      font-weight: 700;
    }

    .task-qr-zoom-control input[type="range"] {
      flex: 1 1 auto;
      width: 0;
      min-width: 48px;
      margin: 0;
      accent-color: #67e8f9;
      touch-action: pan-y;
    }

    .task-qr-zoom-control output {
      min-width: 3.6em;
      color: var(--text);
      font-size: 0.78em;
      font-variant-numeric: tabular-nums;
      text-align: center;
    }

    .task-qr-camera-frame.is-detected {
      animation: taskQrFrameSuccess 2000ms ease-out;
    }

    .task-qr-camera-frame.is-detected .task-qr-video {
      transform: scale(1.12);
      transition: transform 2000ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .task-qr-camera-frame.is-detected .task-qr-scan-guide {
      border-color: #4ade80;
      box-shadow: 0 0 0 999px rgba(22, 163, 74, 0.12), 0 0 24px rgba(74, 222, 128, 0.5);
    }

    .task-qr-camera-frame.is-detected .task-qr-scan-beam {
      opacity: 0;
      animation: none;
    }

    .task-qr-camera-frame.is-detected .task-qr-scan-check {
      animation: taskQrCheckPop 2000ms cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
    }

    #task-qr-scanner.is-detected .task-qr-scanner-status {
      color: #4ade80;
      animation: taskQrStatusPulse 2000ms ease-out;
    }

    .task-qr-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .task-qr-actions .btn {
      flex: 1 1 150px;
      margin-top: 0;
    }

    .task-qr-file-label {
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    .task-qr-file-label input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    @media print {
      @page {
        size: A4 portrait;
        margin: 16mm;
      }

      body * {
        visibility: hidden !important;
      }

      html,
      body {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
      }

      body {
        display: block !important;
      }

      body > * {
        display: none !important;
      }

      body > #app {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      #app > * {
        display: none !important;
      }

      #app > #task-qr-modal {
        display: block !important;
      }

      #task-qr-modal,
      #task-qr-modal * {
        visibility: visible !important;
      }

      #task-qr-modal {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: #fff !important;
      }

      #task-qr-modal .modal-box {
        position: relative !important;
        display: flex !important;
        min-height: 265mm !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 8mm 6mm 28mm !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
      }

      #task-qr-modal .modal-title,
      #task-qr-scanner,
      .task-qr-actions,
      .task-qr-note {
        display: none !important;
      }

      #task-qr-modal .task-qr-print-header {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 3mm;
        margin: 0 0 8mm;
        color: #111 !important;
        font-size: 18pt;
      }

      #task-qr-modal .task-qr-print-header img,
      #task-qr-modal .task-qr-print-app-brand img {
        display: block;
        width: 13mm;
        height: 13mm;
        object-fit: contain;
      }

      #task-qr-modal #task-qr-generator {
        display: flex !important;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      #task-qr-modal .task-qr-task-title {
        margin: 0 0 8mm !important;
        color: #111 !important;
        font-size: 14pt !important;
        text-align: center;
      }

      .task-qr-image {
        width: 95mm !important;
        max-width: 95mm !important;
        height: 95mm !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
      }

      #task-qr-modal .task-qr-print-footer {
        position: absolute !important;
        right: 6mm;
        bottom: 4mm;
        left: 6mm;
        display: block !important;
        color: #222 !important;
        font-family: Arial, sans-serif;
        font-size: 8pt;
        line-height: 1.3;
      }

      #task-qr-modal .task-qr-print-app-brand {
        position: absolute;
        left: 50%;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2mm;
        transform: translateX(-50%);
        text-align: left;
      }

      #task-qr-modal .task-qr-print-app-brand div {
        display: flex;
        flex-direction: column;
      }

      #task-qr-modal .task-qr-print-app-brand img {
        width: 9mm;
        height: 9mm;
      }

      #task-qr-modal .task-qr-print-app-brand .app-version {
        font-size: 7pt;
      }

      #task-qr-modal .task-qr-print-company {
        position: absolute;
        right: 0;
        bottom: 0;
        display: flex;
        width: 60mm;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
      }

      #task-qr-modal .task-qr-print-company span {
        max-width: 60mm;
      }
    }



    .priority-badge {
      display: inline-block;
      font-size: 0.7em;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .badge-high {
      background: rgba(239, 68, 68, 0.12);
      color: var(--red);
    }

    .badge-medium {
      background: rgba(245, 158, 11, 0.12);
      color: var(--amber);
    }

.badge-low {
      background: rgba(16, 185, 129, 0.12);
      color: var(--green);
    }
    .badge-list {
      background: rgba(14, 165, 233, 0.15);
      color: #0369A1;
      border: 1px solid rgba(14, 165, 233, 0.35);
    }

     
    .md-rendered {
      line-height: 1.55;
      font-size: 0.9em;
      color: inherit;
      word-break: break-word;
    }
    .md-rendered > *:first-child { margin-top: 0 !important; }
    .md-rendered > *:last-child { margin-bottom: 0 !important; }
    
    .md-p {
      margin: 4px 0 6px 0;
      line-height: 1.5;
    }
    .md-heading {
      font-weight: 700;
      color: var(--text);
      margin: 8px 0 4px 0;
      line-height: 1.3;
    }
    .md-h1 { font-size: 1.22em; border-bottom: 1px solid var(--border); padding-bottom: 3px; }
    .md-h2 { font-size: 1.12em; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
    .md-h3 { font-size: 1.04em; }
    .md-h4 { font-size: 0.98em; }
    .md-h5 { font-size: 0.92em; }
    .md-h6 { font-size: 0.88em; color: var(--text-s); }

    .md-rendered strong { font-weight: 700; color: var(--text); }
    .md-rendered em { font-style: italic; }
    .md-del { text-decoration: line-through; opacity: 0.7; }
    .md-mark {
      background: rgba(245, 158, 11, 0.28);
      color: var(--text);
      padding: 1px 4px;
      border-radius: 4px;
      font-weight: 600;
    }

    .md-inline-code {
      font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 0.88em;
      background: rgba(99, 102, 241, 0.12);
      color: var(--primary, #67A6C4);
      padding: 2px 6px;
      border-radius: 4px;
      border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .md-code-block {
      font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 0.84em;
      background: #1e1e2e;
      color: #cdd6f4;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin: 6px 0;
      overflow-x: auto;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .md-code-header {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.05);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 4px 10px;
      font-size: 0.76em;
      color: #a6adc8;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .md-code-block code {
      display: block;
      padding: 8px 10px;
      white-space: pre;
      overflow-x: auto;
      line-height: 1.45;
    }

    .md-blockquote {
      margin: 6px 0;
      padding: 6px 12px;
      border-left: 3.5px solid var(--primary, #67A6C4);
      background: rgba(99, 102, 241, 0.06);
      border-radius: 0 8px 8px 0;
      font-style: italic;
      color: var(--text);
    }

    .md-ul, .md-ol {
      margin: 4px 0 6px 18px;
      padding: 0;
    }
    .md-ul { list-style-type: disc; }
    .md-ol { list-style-type: decimal; }
    .md-ul li, .md-ol li {
      margin-bottom: 2px;
      padding-left: 2px;
    }

    .md-task-list {
      list-style: none;
      margin: 4px 0 6px 0;
      padding: 0;
    }
    .md-task-item {
      display: flex;
      align-items: baseline;
      gap: 7px;
      margin-bottom: 3px;
    }
    .md-task-item input.md-checkbox {
      margin: 0;
      accent-color: var(--primary, #67A6C4);
      cursor: pointer;
      flex-shrink: 0;
    }
    .md-task-item.md-task-checked {
      text-decoration: line-through;
      opacity: 0.65;
    }

    .md-table-wrap {
      overflow-x: auto;
      margin: 6px 0;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .md-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85em;
      text-align: left;
    }
    .md-table th {
      background: rgba(99, 102, 241, 0.08);
      font-weight: 700;
      padding: 6px 10px;
      border-bottom: 1.5px solid var(--border);
      color: var(--text);
    }
    .md-table td {
      padding: 5px 10px;
      border-bottom: 1px solid var(--border);
    }
    .md-table tr:last-child td { border-bottom: none; }
    .md-table tr:nth-child(even) { background: rgba(0, 0, 0, 0.02); }

    .md-hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 8px 0;
    }

    .md-link {
      color: var(--primary, #67A6C4);
      text-decoration: underline;
      font-weight: 500;
      word-break: break-all;
    }
    .md-link:hover {
      text-decoration: underline;
      opacity: 0.85;
    }

    .md-img {
      max-width: 100%;
      border-radius: 8px;
      margin: 4px 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .badge-meta {
      background: rgba(99, 102, 241, 0.15);
      color: var(--primary);
      border: 1px solid rgba(99, 102, 241, 0.3);
    }
    .task-item.priority-meta {
      border-left-color: var(--primary);
    }

    .badge-execution_plan {
      background: rgba(16, 185, 129, 0.15);
      color: #10B981;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .task-item.priority-execution_plan {
      border-left-color: #10B981;
    }

    .badge-pomodoro {
      background: rgba(249, 115, 22, 0.15);
      color: #F97316;
      border: 1px solid rgba(249, 115, 22, 0.3);
    }
    .task-item.priority-pomodoro {
      border-left-color: #F97316;
    }

    .smart-date-preview {
      display: none;
      margin-top: 8px;
      min-height: 0;
    }
    .smart-date-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      max-width: 100%;
      padding: 5px 10px;
      border: 1px solid rgba(103, 166, 196, 0.55);
      border-radius: 999px;
      background: rgba(103, 166, 196, 0.12);
      color: var(--text);
      font-size: 0.78em;
      line-height: 1.35;
      vertical-align: middle;
      animation: smartDateChipIn 180ms ease-out both;
    }
    .smart-date-chip-name {
      color: var(--primary);
      font-weight: 800;
    }
    .smart-date-chip-date {
      padding-left: 7px;
      border-left: 1px solid rgba(103, 166, 196, 0.45);
      font-weight: 700;
    }
    .smart-date-manual {
      display: inline-block;
      margin-left: 7px;
      color: var(--text-s);
      font-size: 0.76em;
    }
    @keyframes smartDateChipIn {
      from { opacity: 0; transform: translateY(-3px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .smart-date-chip { animation: none; }
    }
    .pomodoro-config {
      display: none;
    }
    @keyframes pomodoroCompactIn {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .pomodoro-compact-shell {
      display: none;
      width: 100%;
      max-width: 100%;
      margin-top: 8px;
      border: 1px solid rgba(148,163,184,0.08);
      border-radius: 16px;
      background: rgba(99,102,241,0.03);
      overflow: hidden;
      opacity: 0;
      transform: translateY(-6px);
    }
    .pomodoro-compact-shell.open {
      background: rgba(99,102,241,0.06);
      border-color: rgba(99,102,241,0.2);
    }
    .pomodoro-compact-shell.showing {
      animation: pomodoroCompactIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .pomodoro-compact-toggle {
      width: 100%;
      min-height: 42px;
      padding: 11px 12px;
      border: none;
      background: transparent;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.8em;
      font-weight: 700;
      cursor: pointer;
      text-align: left;
    }
    .pomodoro-compact-toggle i {
      color: #F97316;
      margin-right: 4px;
    }
    .pomodoro-compact-meta {
      color: var(--text-s);
      font-size: 0.72em;
      font-weight: 700;
    }
    .pomodoro-compact-panel {
      padding: 0 10px 10px;
    }
    .pomodoro-stage {
      display: none;
      margin-top: 10px;
      padding: 10px 12px 14px;
      border-radius: 18px;
      border: 1px solid rgba(168, 85, 247, 0.28);
      background: linear-gradient(180deg, rgba(39, 51, 69, 0.96), rgba(16, 22, 36, 0.98));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 34px rgba(15, 23, 42, 0.22);
      color: #e2e8f0;
    }
    .pomodoro-stage .pomodoro-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 4px 0 12px;
    }
    .pomodoro-stage .pomodoro-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.98em;
      font-weight: 800;
      color: #f5f3ff;
    }
    .pomodoro-stage .pomodoro-brand i {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 8px;
      background: rgba(168, 85, 247, 0.2);
      color: #f5d0fe;
      font-size: 0.82em;
    }
    .pomodoro-stage .pomodoro-mode-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 14px;
      border-radius: 999px;
      background: rgba(168, 85, 247, 0.2);
      border: 1px solid rgba(192, 132, 252, 0.55);
      color: #f5d0fe;
      font-size: 0.72em;
      font-weight: 800;
      min-width: 120px;
    }
    .pomodoro-stage .pomodoro-visual {
      --pomodoro-progress: 0%;
      position: relative;
      display: grid;
      place-items: center;
      width: 220px;
      height: 220px;
      margin: 8px auto 12px;
      border-radius: 50%;
      background: conic-gradient(#a855f7 var(--pomodoro-progress), rgba(168, 85, 247, 0.25) 0);
      box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.35);
    }
    .pomodoro-stage .pomodoro-visual::before {
      content: "";
      position: absolute;
      inset: 12px;
      border-radius: 50%;
      background: rgba(18, 24, 36, 0.9);
      border: 2px solid rgba(168, 85, 247, 0.55);
      box-shadow: inset 0 0 18px rgba(0,0,0,0.28);
    }
    .pomodoro-stage .pomodoro-timer {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: clamp(2.9rem, 8vw, 5rem);
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.06em;
      color: #f8fafc;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .pomodoro-stage .pomodoro-timer small {
      font-size: 0.28em;
      letter-spacing: 0.18em;
      font-weight: 700;
      text-transform: uppercase;
      color: rgba(226,232,240,0.82);
    }
    .pomodoro-stage .pomodoro-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 0.72em;
      color: rgba(226, 232, 240, 0.82);
      margin: 0 0 10px;
      padding: 0 2px;
    }
    .pomodoro-stage .pomodoro-cycle-dots {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 16px;
      margin: 0 0 12px;
    }
    .pomodoro-stage .pomodoro-cycle-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(148,163,184,0.38);
      transition: all 0.2s ease;
    }
    .pomodoro-stage .pomodoro-cycle-dot.active {
      background: #a855f7;
      box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
      transform: scale(1.15);
    }
    .pomodoro-stage .pomodoro-controls {
      display: flex;
      flex-direction: column;
      gap: 8px;
      justify-content: center;
      margin-bottom: 2px;
    }
    .pomodoro-stage .pomodoro-controls .btn {
      width: 100%;
      padding: 12px 14px;
      font-size: 0.9em;
      border-radius: 12px;
      min-width: 0;
      margin-top: 0;
      box-shadow: none;
      justify-content: center;
      font-weight: 800;
    }
    .pomodoro-stage .pomodoro-controls .btn-primary {
      background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
      color: #fff;
      border: none;
    }
    .pomodoro-stage .pomodoro-controls .btn-outline {
      background: rgba(148,163,184,0.08);
      color: #f8fafc;
      border: 1px solid rgba(148,163,184,0.2);
    }
    .pomodoro-stage .pomodoro-controls .btn-ghost {
      background: rgba(148,163,184,0.06);
      color: rgba(226,232,240,0.8);
      border: 1px solid rgba(148,163,184,0.1);
    }
    .pomodoro-stage .pomodoro-mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 8px;
    }
    .pomodoro-stage .pomodoro-mini-grid label {
      display: flex;
      flex-direction: column;
      gap: 5px;
      font-size: 0.7em;
      color: rgba(226,232,240,0.75);
    }
    .pomodoro-stage .pomodoro-mini-grid select {
      width: 100%;
      padding: 7px 8px;
      border: 1px solid rgba(148,163,184,0.2);
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.9);
      color: #f8fafc;
      font-size: 0.9em;
      min-height: 34px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .pomodoro-stage .pomodoro-switch {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.72em;
      color: rgba(226,232,240,0.8);
      margin-top: 8px;
      padding: 0 2px;
    }
    .pomodoro-stage .toggle-wrap {
      width: 42px;
      height: 22px;
    }
    .pomodoro-stage .toggle-track {
      background: rgba(148,163,184,0.28);
      border: 1px solid rgba(148,163,184,0.18);
    }
    .pomodoro-stage .toggle-track::after {
      background: #f8fafc;
      width: 16px;
      height: 16px;
      top: 2px;
      left: 3px;
    }
    .pomodoro-stage .toggle-wrap input:checked + .toggle-track {
      background: linear-gradient(135deg, #a855f7, #8b5cf6);
      border-color: rgba(168, 85, 247, 0.7);
    }
    .pomodoro-stage .toggle-wrap input:checked + .toggle-track::after {
      left: 21px;
    }
    
    .meta-preview-box {
      background: var(--bg-card);
      border: 1px solid var(--border, rgba(255,255,255,0.08));
      border-radius: 10px;
      padding: 10px;
      margin-top: 8px;
    }

    .meta-progress { margin-top: 6px; width: 100%; }
    .meta-progress-track {
      height: 8px;
      border-radius: 999px;
      background: rgba(99, 102, 241, 0.12);
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 1px 1px rgba(0,0,0,0.12);
    }
    .meta-progress-bar {
      height: 100%;
      border-radius: 999px;
      background: var(--primary, #67A6C4);
      transition: width 0.45s ease;
      box-shadow: none;
      min-width: 4px;
      animation: none;
    }
    .meta-progress-label {
      margin-top: 5px;
      font-size: 0.78em;
      font-weight: 700;
      color: var(--text-s);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }
    .meta-days-left {
      display: flex;
      align-items: center;
      gap: 4px;
      font-weight: 700;
    }
    .meta-streak-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 8px;
      padding-top: 6px;
      border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    }
    .streak-badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(245, 158, 11, 0.10);
      color: #F59E0B;
      border: 1px solid rgba(245, 158, 11, 0.22);
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.74em;
      font-weight: 700;
    }
    .weekly-dots {
      display: flex;
      gap: 4px;
      align-items: center;
    }
    .weekly-dot {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--border, rgba(255,255,255,0.1));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65em;
      font-weight: 700;
      color: var(--text-s);
      transition: all 0.2s ease;
    }
    .weekly-dot.active {
      background: var(--primary, #67A6C4);
      color: #ffffff;
      box-shadow: 0 0 6px var(--primary, #67A6C4);
      transform: scale(1.1);
    }

    
    .exec-plan-form-box {
      background: var(--bg-card, rgba(255,255,255,0.03));
      border: 1px solid var(--border, rgba(255,255,255,0.08));
      border-radius: 10px;
      padding: 10px;
      margin-top: 8px;
    }
    .exec-plan-steps-input-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }
    .exec-plan-step-item {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .exec-plan-step-num {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.2);
      color: #10B981;
      font-weight: 800;
      font-size: 0.8em;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .compact-exec-plan {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 6px;
      font-size: 0.78em;
      color: var(--text-s);
    }
    .compact-step-dots {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .compact-step-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      transition: all 0.25s ease;
    }
    body:not(.dark) .compact-step-dot {
      background: rgba(0, 0, 0, 0.08);
      border-color: rgba(0, 0, 0, 0.15);
    }
    .compact-step-dot.done {
      background: #10B981;
      border-color: #10B981;
      box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
    }

    
    .exec-plan-preview-track {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 8px 4px 12px;
      overflow-x: auto;
    }
    .exec-plan-preview-dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.15);
      border: 2px solid #10B981;
      color: #10B981;
      font-size: 0.72em;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .exec-plan-preview-line {
      width: 18px;
      height: 3px;
      background: linear-gradient(90deg, #10B981, rgba(16, 185, 129, 0.35));
      flex-shrink: 0;
      border-radius: 2px;
    }

    .meta-progress-bar.meta-bar-animate-in {
      transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .vertical-execution-timeline {
      position: relative;
      padding-left: 22px;
      margin-top: 0;
      margin-bottom: 4px;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .vertical-execution-timeline::before {
      content: '';
      position: absolute;
      left: 9px;
      top: 4px;
      bottom: 4px;
      width: 2px;
      background: color-mix(in srgb, var(--border) 72%, transparent);
      border-radius: 2px;
    }
    .vertical-step-item {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      user-select: none;
      min-height: 22px;
      padding: 1px 0;
    }
    .vertical-step-circle {
      position: relative;
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.02);
      border: 1.5px solid color-mix(in srgb, var(--border) 90%, transparent);
      color: var(--text-s);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.64em;
      font-weight: 700;
      transition: all 0.18s ease;
      z-index: 2;
      cursor: pointer;
    }
    .vertical-step-item:hover .vertical-step-circle {
      border-color: #10B981;
      transform: scale(1.06);
    }
    .vertical-step-item.step-done .vertical-step-circle {
      background: #10B981;
      border-color: #10B981;
      color: #ffffff;
      box-shadow: none;
    }
    .vertical-step-text {
      font-size: 0.86em;
      font-weight: 600;
      color: var(--text-p);
      line-height: 1.3;
      transition: opacity 0.2s ease, text-decoration 0.2s ease;
    }
    .vertical-step-item.step-done .vertical-step-text {
      text-decoration: line-through;
      opacity: 0.6;
    }

    #no-tasks {
      text-align: center;
      padding: 30px 10px;
      color: var(--text-s);
      font-size: 0.9em;
    }


    .task-item {
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
    }

    .task-item:not(.group-folder-item) {
      touch-action: pan-y;
    }

    .custom-context-menu.is-open {
      display: flex;
    }

    .custom-context-menu {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow);
      padding: 8px;
      min-width: 200px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .context-menu-item {
      background: none;
      border: none;
      color: var(--text);
      padding: 10px 14px;
      font-size: 0.88em;
      font-weight: 600;
      text-align: left;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      cursor: pointer;
    }

    .context-menu-item:hover {
      background: rgba(99, 102, 241, 0.1);
      color: var(--primary);
    }

    .notion-context-action img,
    .notion-task-badge img {
      display: block;
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      object-fit: contain;
      padding: 2px;
      border: 1px solid rgba(120, 120, 120, .2);
      border-radius: 5px;
      background: #fff;
    }

    .notion-context-action:hover img { border-color: currentColor; }

    .notion-task-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 6px;
      padding: 2px 6px 2px 3px;
      border: 1px solid rgba(120, 120, 120, .22);
      border-radius: 999px;
      color: var(--text-s);
      background: rgba(120, 120, 120, .07);
      font-size: .66em;
      font-weight: 700;
      line-height: 1.2;
      vertical-align: middle;
      white-space: nowrap;
    }

    .notion-task-badge img { width: 15px; height: 15px; border-radius: 50%; }

    .notion-context-action img,
    .notion-task-badge img {
      display: block;
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      object-fit: contain;
      padding: 2px;
      border: 1px solid rgba(120, 120, 120, .2);
      border-radius: 5px;
      background: #fff;
    }

    .notion-context-action:hover img { border-color: currentColor; }

    .notion-task-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 6px;
      padding: 2px 6px 2px 3px;
      border: 1px solid rgba(120, 120, 120, .22);
      border-radius: 999px;
      color: var(--text-s);
      background: rgba(120, 120, 120, .07);
      font-size: .66em;
      font-weight: 700;
      line-height: 1.2;
      vertical-align: middle;
      white-space: nowrap;
    }

    .notion-task-badge img { width: 15px; height: 15px; border-radius: 50%; }

    .pinned-site-badge {
      display: inline-flex;
      align-items: center;
      margin-left: 6px;
      width: 26px;
      height: 26px;
      padding: 3px;
      border: 1px solid rgba(99, 102, 241, 0.28);
      border-radius: 999px;
      background: rgba(99, 102, 241, 0.1);
      color: var(--primary);
      cursor: pointer;
      vertical-align: middle;
      justify-content: center;
    }
    .pinned-site-badge:hover { background: rgba(99, 102, 241, 0.2); }
    .pinned-site-badge img,
    .pinned-site-badge > i {
      width: 18px;
      height: 18px;
      font-size: 16px;
      border-radius: 4px;
      object-fit: contain;
    }
    .pinned-link-modal {
      align-items: center;
      justify-content: center;
      z-index: 8100;
    }
    .pinned-link-modal .modal-box {
      width: min(440px, calc(100vw - 28px));
      max-width: 440px;
      border-radius: 18px;
      text-align: center;
      box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    }
    .pinned-link-preview-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 64px;
      height: 64px;
      margin: 4px auto 14px;
      border-radius: 16px;
      background: rgba(99, 102, 241, 0.1);
      color: var(--primary);
      overflow: hidden;
    }
    .pinned-link-preview-icon img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      border-radius: 8px;
    }
    .pinned-link-url {
      margin: 0 auto 18px;
      max-width: 390px;
      color: var(--text-s);
      font-size: 0.82em;
      line-height: 1.45;
      overflow-wrap: anywhere;
      word-break: break-word;
      user-select: text;
    }
    .pinned-link-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .pinned-link-actions .btn {
      width: auto;
      min-width: 110px;
      margin: 0;
    }
    [data-firefox-extension-only] { display: none !important; }
    body.firefox-extension-context [data-firefox-extension-only] { display: revert !important; }

    .custom-context-menu .context-menu-label {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .custom-context-menu .context-menu-danger {
      color: var(--red);
    }

    .custom-context-menu .context-menu-danger:hover {
      background: rgba(239, 68, 68, 0.10);
      color: var(--red);
    }

    .custom-context-menu .context-menu-sep {
      height: 1px;
      width: 100%;
      background: var(--border);
      opacity: 0.7;
      margin: 4px 0;
    }


    .group-suitcase-overlay {
      transition: opacity 0.3s ease;
    }

    .suitcase-content {
      background: var(--card);
      width: 100%;
      max-width: 480px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
      animation: none;
      transition: height 0.25s ease, max-height 0.25s ease;
      position: relative;
      overflow: hidden;
      will-change: transform;
    }

    .suitcase-content.is-entering {
      animation: suitcaseIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .suitcase-content.is-expanded {
      height: min(calc(var(--fe-viewport-height, 100vh) - 16px), 900px);
      max-height: min(calc(var(--fe-viewport-height, 100vh) - 16px), 900px);
    }

    .suitcase-content.is-expanded .suitcase-body {
      max-height: none;
      min-height: 0;
    }

    @keyframes suitcaseIn {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    .suitcase-header {
      padding: 16px 20px 12px;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }


    .modal-overlay.group-suitcase-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      align-items: flex-end;
      justify-content: center;
    }

    .modal-overlay.group-suitcase-overlay.open,
    #group-suitcase-overlay.open {
      display: flex;
    }

    .suitcase-close-btn {
      background: none;
      border: none;
      color: var(--text-s);
      font-size: 1.1em;
      padding: 4px;
      cursor: pointer;
      border-radius: 12px;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .suitcase-close-btn:hover {
      background: rgba(99, 102, 241, 0.12);
      color: var(--primary);
      transform: rotate(90deg);
    }

    .suitcase-drag-bar {
      width: 40px;
      height: 5px;
      background: var(--border);
      border-radius: 10px;
      cursor: grab;
      margin: 0 auto 10px;
      touch-action: none;
    }

    .suitcase-drag-bar:active {
      cursor: grabbing;
    }

    .suitcase-body {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      max-height: 70vh;
      touch-action: pan-y;
    }

    .group-select-item {
      transition: all 0.2s ease;
    }

    .group-select-item:hover {
      border-color: var(--primary-lt) !important;
      background: rgba(99, 102, 241, 0.04);
    }

    .group-remove-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 10px;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      background: rgba(99, 102, 241, 0.03);
      transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
      cursor: pointer;
    }

    .group-remove-item:hover {
      border-color: var(--primary-lt);
      background: rgba(99, 102, 241, 0.08);
      transform: translateY(-1px);
    }

    .group-remove-item-main {
      min-width: 0;
      flex: 1;
    }

    .group-remove-item-title {
      font-weight: 900;
      font-size: 0.9em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .group-remove-item-meta {
      margin-top: 4px;
      font-size: 0.78em;
      color: var(--text-s);
    }

    .group-remove-item-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .group-remove-task-check {
      width: 19px;
      height: 19px;
      accent-color: var(--primary);
      cursor: pointer;
    }

    .group-remove-footer {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .group-remove-footer .btn {
      margin-top: 0 !important;
      border-radius: 16px;
    }

    #group-remove-tasks-modal .modal-box > .card {
      border-radius: 16px;
    }


    .suitcase-body .task-list {
      padding: 0;
      margin: 0;
      list-style: none;
    }


    .modal-overlay#group-suitcase-overlay {}



    #no-tasks i {
      font-size: 2.5em;
      display: block;
      margin-bottom: 10px;
      opacity: 0.4;
    }


    .filter-bar {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
      overflow-x: auto;
      white-space: nowrap;
      flex-wrap: nowrap;
      padding-bottom: 6px;
      scrollbar-width: none;
    }

    .filter-bar[hidden] {
      display: none;
    }

    @keyframes taskFiltersEnter {
      from {
        opacity: 0;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .filter-bar.filter-bar-enter {
      animation: taskFiltersEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @media (prefers-reduced-motion: reduce) {
      .filter-bar.filter-bar-enter {
        animation: none;
      }
    }

    .filter-bar::-webkit-scrollbar {
      display: none;
    }

    .filter-btn {
      flex-shrink: 0;
      padding: 8px 18px;
      border-radius: var(--radius-pill);
      border: 1.5px solid var(--border);
      background: var(--card);
      font-size: 0.82em;
      font-weight: 600;
      color: var(--text-s);
    }

    .filter-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .notification-permission-notice {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 14px;
      padding: 12px 14px;
      border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--border));
      border-left: 4px solid var(--amber);
      border-radius: 12px;
      background: color-mix(in srgb, var(--amber) 8%, var(--card));
      color: var(--text);
      box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
      animation: notificationNoticeEnter 220ms ease-out both;
    }

    .notification-permission-notice[hidden] {
      display: none !important;
    }

    @keyframes notificationNoticeEnter {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .notification-permission-icon {
      display: grid;
      flex: 0 0 36px;
      width: 36px;
      height: 36px;
      place-items: center;
      border-radius: 10px;
      background: color-mix(in srgb, var(--amber) 17%, var(--card));
      color: var(--amber);
    }

    .notification-permission-copy {
      display: grid;
      flex: 1 1 auto;
      min-width: 0;
      gap: 2px;
      line-height: 1.35;
    }

    .notification-permission-copy strong {
      font-size: .88rem;
      font-weight: 700;
    }

    .notification-permission-copy span {
      color: var(--text-s);
      font-size: .78rem;
    }

    .notification-permission-actions {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
    }

    .notification-permission-actions button {
      min-height: 36px;
      padding: 7px 13px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: var(--card);
      color: var(--text-s);
      font: inherit;
      font-size: .78rem;
      font-weight: 650;
      cursor: pointer;
      transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
    }

    .notification-permission-actions button:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    .notification-permission-actions button:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    .notification-permission-actions button:disabled {
      cursor: wait;
      opacity: .65;
    }

    .notification-permission-actions .notification-permission-authorize {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }

    .notification-permission-actions .notification-permission-authorize:hover:not(:disabled) {
      background: var(--primary-dk);
      border-color: var(--primary-dk);
    }

    @media (max-width: 560px) {
      .notification-permission-notice {
        align-items: flex-start;
        flex-wrap: wrap;
      }

      .notification-permission-copy {
        flex-basis: calc(100% - 50px);
      }

      .notification-permission-actions {
        width: 100%;
        justify-content: flex-end;
        padding-left: 48px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .notification-permission-notice {
        animation: none;
      }
    }


    .cal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .cal-header h3 {
      font-size: 1.05em;
      font-weight: 700;
    }

    .cal-nav {
      background: none;
      border: none;
      color: var(--primary);
      font-size: 1.15em;
      padding: 8px 12px;
      border-radius: var(--radius);
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
    }

    .calendar-sync-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: min(100%, 360px);
      margin: 10px auto 14px;
      padding: 10px 14px;
      border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
      border-radius: 14px;
      color: var(--text);
      background: color-mix(in srgb, var(--primary) 8%, var(--card));
      font-size: .84em;
      font-weight: 700;
      line-height: 1.35;
    }

    .calendar-sync-loading[hidden] { display: none !important; }
    .calendar-sync-loader {
      --calendar-loader-hue: 190;
      --calendar-loader-duration: 2s;
      display: block;
      width: 56px;
      height: 56px;
      flex: 0 0 56px;
      padding: 3px;
      overflow: visible;
      border-radius: 15px;
      background: var(--primary-dk, #285b71);
    }

    .calendar-sync-loader .calendar-loader-model,
    .calendar-sync-loader .calendar-loader-motion-thick,
    .calendar-sync-loader .calendar-loader-motion-medium,
    .calendar-sync-loader .calendar-loader-motion-thin,
    .calendar-sync-loader .calendar-loader-sand-drop,
    .calendar-sync-loader .calendar-loader-sand-fill,
    .calendar-sync-loader .calendar-loader-sand-grain-left,
    .calendar-sync-loader .calendar-loader-sand-grain-right,
    .calendar-sync-loader .calendar-loader-sand-line-left,
    .calendar-sync-loader .calendar-loader-sand-line-right,
    .calendar-sync-loader .calendar-loader-sand-mound-top,
    .calendar-sync-loader .calendar-loader-sand-mound-bottom,
    .calendar-sync-loader .calendar-loader-glare-top,
    .calendar-sync-loader .calendar-loader-glare-bottom {
      animation-duration: var(--calendar-loader-duration);
      animation-timing-function: cubic-bezier(.83, 0, .17, 1);
      animation-iteration-count: infinite;
    }

    .calendar-sync-loader .calendar-loader-model { animation-name: calendar-loader-flip; transform-origin: 12.25px 16.75px; }
    .calendar-sync-loader .calendar-loader-motion-thick,
    .calendar-sync-loader .calendar-loader-motion-medium,
    .calendar-sync-loader .calendar-loader-motion-thin { transform-origin: 26px 26px; }
    .calendar-sync-loader .calendar-loader-motion-thick { animation-name: calendar-motion-thick; }
    .calendar-sync-loader .calendar-loader-motion-medium { animation-name: calendar-motion-medium; }
    .calendar-sync-loader .calendar-loader-motion-thin { animation-name: calendar-motion-thin; }
    .calendar-sync-loader .calendar-loader-sand-drop { animation-name: calendar-sand-drop; }
    .calendar-sync-loader .calendar-loader-sand-fill { animation-name: calendar-sand-fill; }
    .calendar-sync-loader .calendar-loader-sand-grain-left { animation-name: calendar-sand-grain-left; }
    .calendar-sync-loader .calendar-loader-sand-grain-right { animation-name: calendar-sand-grain-right; }
    .calendar-sync-loader .calendar-loader-sand-line-left { animation-name: calendar-sand-line-left; }
    .calendar-sync-loader .calendar-loader-sand-line-right { animation-name: calendar-sand-line-right; }
    .calendar-sync-loader .calendar-loader-sand-mound-top { animation-name: calendar-sand-mound-top; }
    .calendar-sync-loader .calendar-loader-sand-mound-bottom { animation-name: calendar-sand-mound-bottom; transform-origin: 12.25px 31.5px; }
    .calendar-sync-loader .calendar-loader-glare-top { animation-name: calendar-glare-top; }
    .calendar-sync-loader .calendar-loader-glare-bottom { animation-name: calendar-glare-bottom; }

    @keyframes calendar-loader-flip {
      from { transform: translate(13.75px, 9.25px) rotate(-180deg); }
      24%, to { transform: translate(13.75px, 9.25px) rotate(0); }
    }
    @keyframes calendar-glare-top { from { opacity: 0; } 24%, to { opacity: 1; } }
    @keyframes calendar-glare-bottom { from { opacity: 1; } 24%, to { opacity: 0; } }
    @keyframes calendar-motion-thick {
      from { stroke: transparent; stroke-dashoffset:153.94; transform:rotate(.67turn); }
      20% { stroke:rgb(32,32,32); stroke-dashoffset:141.11; transform:rotate(1turn); }
      40%,to { stroke:transparent; stroke-dashoffset:153.94; transform:rotate(1.33turn); }
    }
    @keyframes calendar-motion-medium {
      from,8% { stroke:transparent; stroke-dashoffset:153.94; transform:rotate(.5turn); }
      20% { stroke:white; stroke-dashoffset:147.53; transform:rotate(.83turn); }
      32%,to { stroke:transparent; stroke-dashoffset:153.94; transform:rotate(1.17turn); }
    }
    @keyframes calendar-motion-thin {
      from,4% { stroke:transparent; stroke-dashoffset:153.94; transform:rotate(.33turn); }
      24% { stroke:rgb(53,53,53); stroke-dashoffset:134.7; transform:rotate(.67turn); }
      44%,to { stroke:transparent; stroke-dashoffset:153.94; transform:rotate(1turn); }
    }
    @keyframes calendar-sand-drop { from,10% { stroke-dashoffset:1; } 70%,to { stroke-dashoffset:-107; } }
    @keyframes calendar-sand-fill { from,10% { stroke-dashoffset:55; } 70%,to { stroke-dashoffset:-54; } }
    @keyframes calendar-sand-grain-left { from,10% { stroke-dashoffset:29; } 70%,to { stroke-dashoffset:-22; } }
    @keyframes calendar-sand-grain-right { from,10% { stroke-dashoffset:27; } 70%,to { stroke-dashoffset:-24; } }
    @keyframes calendar-sand-line-left { from,10% { stroke-dashoffset:53; } 70%,to { stroke-dashoffset:-55; } }
    @keyframes calendar-sand-line-right { from,10% { stroke-dashoffset:14; } 70%,to { stroke-dashoffset:-24.5; } }
    @keyframes calendar-sand-mound-top {
      from,10% { animation-timing-function:linear; transform:translate(0,0); }
      15% { animation-timing-function:cubic-bezier(.12,0,.39,0); transform:translate(0,1.5px); }
      51%,to { transform:translate(0,13px); }
    }
    @keyframes calendar-sand-mound-bottom {
      from,31% { animation-timing-function:cubic-bezier(.61,1,.88,1); transform:scale(1,0); }
      56%,to { transform:scale(1,1); }
    }

    @media (prefers-reduced-motion: reduce) {
      .calendar-sync-loader * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
    }
    body.reduce-motion .calendar-sync-loader * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }

    .pwa-calendar-swipe {
      touch-action: pan-y;
    }

    .cal-day-name {
      text-align: center;
      font-size: 0.75em;
      font-weight: 700;
      color: var(--text-s);
      padding: 6px 0;
    }

    .cal-day {
      aspect-ratio: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius);
      font-size: 0.85em;
      font-weight: 500;
      cursor: pointer;
      position: relative;
      color: var(--text);
    }

    .cal-day.empty {
      cursor: default;
    }

    .cal-day.today {
      background: var(--primary);
      color: #fff;
      font-weight: 700;
    }

    .cal-day.selected {
      background: rgba(99, 102, 241, 0.18);
      color: var(--primary);
      font-weight: 700;
    }

    .cal-day.has-tasks::after {
      content: '';
      position: absolute;
      bottom: 3px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--amber);
    }

    .cal-day.today.has-tasks::after {
      background: #fff;
    }

    .cal-tasks-view {
      margin-top: 14px;
    }

    .cal-tasks-view h4 {
      font-size: 0.88em;
      color: var(--text-s);
      margin-bottom: 10px;
    }


    .account-card-top {
      background: linear-gradient(135deg, var(--primary-dk), var(--primary-lt));
      color: #fff;
      border-radius: var(--radius-lg);
      padding: 15px;
      margin-bottom: 16px;
      text-align: center;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      clip-path: inset(0 round var(--radius-lg));
      contain: paint;
      isolation: isolate;
    }

    .account-card-top.github-account-profile {
      background: linear-gradient(135deg, var(--primary-dk), var(--primary-lt));
      border: 1px solid rgba(255, 255, 255, 0.24);
    }

    .account-card-top.github-account-profile .avatar {
      background: rgba(255, 255, 255, 0.25);
    }

    .account-card-top.github-account-profile .profile-celebration {
      color: #fff;
      opacity: 0.25;
    }

    .profile-provider-picker {
      display: none;
      position: relative;
      z-index: 2;
      justify-content: center;
      gap: 6px;
      margin-top: 10px;
    }

    .profile-provider-picker.visible {
      display: flex;
    }

    .profile-provider-button {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 9px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 999px;
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
      font-size: 0.72em;
      font-weight: 700;
    }

    .profile-provider-button.active {
      background: rgba(255, 255, 255, 0.28);
      border-color: rgba(255, 255, 255, 0.7);
    }

    body.github-account-active #account-section {
      background: var(--bg);
    }

    .account-card-top > :not(.profile-celebration) {
      position: relative;
      z-index: 1;
    }


    .account-card-top .avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6em;
      margin: 0 auto 10px;
    }

    .account-card-top .user-email {
      font-size: 0.85em;
      opacity: 0.9;
    }

    .account-card-top .user-status {
      display: inline-block;
      margin-top: 6px;
      font-size: 0.75em;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.2);
    }

    .account-card-top .user-status.verified {
      background: rgba(16, 185, 129, 0.35);
    }

    .account-card-top .user-status.unverified {
      background: rgba(245, 158, 11, 0.35);
    }

    .login-section {
      display: none;
    }

    .login-section.visible {
      display: block;
    }

    .loggedin-section {
      display: none;
    }

    .loggedin-section.visible {
      display: block;
    }

    .stats-row {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
    }

    .stat-box {
      flex: 1;
      background: var(--card);
      border-radius: var(--radius);
      padding: 16px 12px;
      text-align: center;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }


    .stat-box .stat-num {
      font-size: 1.7em;
      font-weight: 800;
      color: var(--primary);
      min-height: 1.25em;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    .stat-box .stat-num.is-loading {
      color: var(--text-s);
      font-size: 1.05em;
      font-weight: 700;
    }

    .mini-stat-spinner {
      width: 13px;
      height: 13px;
      border: 2px solid rgba(99, 102, 241, 0.22);
      border-top-color: var(--primary);
      border-radius: 50%;
      display: inline-block;
      animation: spin 0.9s linear infinite;
      vertical-align: middle;
    }

    .stat-box .stat-lbl {
      font-size: 0.72em;
      color: var(--text-s);
      margin-top: 2px;
    }


    .setting-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 0;
      border-bottom: 1px solid var(--border);
    }

    @media (max-width: 600px) {
      .account-chart-setting-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      .account-chart-setting-row > div,
      #account-chart-type {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }
    }

    .setting-row:last-child {
      border-bottom: none;
    }

    .setting-label {
      font-size: 0.92em;
      font-weight: 500;
    }

    .setting-sub {
      font-size: 0.78em;
      color: var(--text-s);
      margin-top: 2px;
    }

    .beta-badge {
      display: inline-block;
      font-size: 0.62em;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 20px;
      background: linear-gradient(90deg, var(--primary), var(--primary-lt));
      color: #fff;
      margin-left: 8px;
      vertical-align: middle;
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    }

    
    body.one-ui #settings-section .card,
    body.one-ui #account-section #loggedin-view .card[data-acc],
    body.one-ui #account-section #loggedout-view .card[data-acc] {
      padding: 0;
      overflow: hidden;
      border-radius: var(--radius-lg);
    }

    body.one-ui #settings-section .card .card-title,
    body.one-ui #account-section #loggedin-view .card[data-acc] .card-title,
    body.one-ui #account-section #loggedout-view .card[data-acc] .card-title {
      margin: 0;
      padding: 16px 18px;
      cursor: pointer;
      justify-content: space-between;
      user-select: none;
      border-bottom: 1px solid var(--border);
    }

    body.one-ui #settings-section .card .card-body,
    body.one-ui #account-section #loggedin-view .card[data-acc] .card-body,
    body.one-ui #account-section #loggedout-view .card[data-acc] .card-body {
      padding: 0 18px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-4px);
      transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        padding 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .suggestion-check-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      line-height: 1.4;
      cursor: pointer;
    }

    .suggestion-check-option input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      margin: 2px 0 0;
    }

    body.one-ui #settings-section .card.open .card-body,
    body.one-ui #account-section #loggedin-view .card[data-acc].open .card-body,
    body.one-ui #account-section #loggedout-view .card[data-acc].open .card-body {
      max-height: 3000px;
      opacity: 1;
      transform: translateY(0);
      padding: 10px 18px 18px;
    }

    .one-ui-chevron { display: none !important; }

     
    body.one-ui .one-ui-chevron {
      display: inline-flex !important;
      flex-shrink: 0;
      align-items: center;
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
      color: var(--text-s) !important;   
      font-size: 0.88em;
    }

     
    body.one-ui #settings-section .card.open .one-ui-chevron,
    body.one-ui #account-section #loggedin-view .card[data-acc].open .one-ui-chevron,
    body.one-ui #account-section #loggedout-view .card[data-acc].open .one-ui-chevron {
      transform: rotate(180deg);
      color: var(--primary) !important;
    }

    body.one-ui #settings-section .card[data-acc-locked] .card-title {
      cursor: default;
    }

    body.one-ui #settings-section .card[data-acc-locked] .card-body {
      max-height: none;
      opacity: 1;
      transform: translateY(0);
      padding: 10px 18px 18px;
    }

    
    body.font-comfortaa {
      font-family: 'Comfortaa', 'Inter', system-ui, sans-serif;
    }

    body.font-inter {
      font-family: 'Inter', system-ui, sans-serif;
    }

    body.font-arial {
      font-family: Arial, Helvetica, sans-serif;
    }

    body.font-padrao {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    }

    body.font-sistema {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    }

    body.font-roboto {
      font-family: 'Roboto', system-ui, sans-serif;
    }

    body.font-open-sans {
      font-family: 'Open Sans', system-ui, sans-serif;
    }

    body.font-lato {
      font-family: 'Lato', system-ui, sans-serif;
    }

    body.font-montserrat {
      font-family: 'Montserrat', system-ui, sans-serif;
    }

    body.font-nunito {
      font-family: 'Nunito', system-ui, sans-serif;
    }


    .toggle-wrap {
      position: relative;
      width: 44px;
      height: 24px;
      flex-shrink: 0;
    }

    .toggle-wrap input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }

    .toggle-track {
      position: absolute;
      inset: 0;
      background: var(--border);
      border-radius: 12px;
      cursor: pointer;
    }

    .toggle-track::after {
      content: '';
      position: absolute;
      left: 3px;
      top: 3px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #fff;
      transition: left 0.2s;
    }

    .toggle-wrap input:checked+.toggle-track {
      background: var(--primary);
    }

    .toggle-wrap input:checked+.toggle-track::after {
      left: 23px;
    }

    .bui-theme-switch,
    .bui-motion-switch { display: none; }

    body.bui-mode .bui-theme-toggle-wrap,
    body.bui-mode .bui-motion-toggle-wrap {
      position: relative;
      width: 58px;
      height: 32px;
      flex: 0 0 58px;
      align-self: center;
      margin-left: auto;
      overflow: visible;
    }

    body.bui-mode .bui-theme-toggle-wrap input,
    body.bui-mode .bui-motion-toggle-wrap input {
      position: absolute;
      inset: 0;
      z-index: 5;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    body.bui-mode .bui-theme-toggle-wrap .toggle-track,
    body.bui-mode .bui-motion-toggle-wrap .toggle-track { display: none; }
    body.bui-mode .bui-theme-switch,
    body.bui-mode .bui-motion-switch {
      position: absolute;
      inset: 0;
      display: block;
      overflow: hidden;
      border-radius: 999px;
      pointer-events: none;
      transition: background .45s ease, box-shadow .45s ease;
    }
    body.bui-mode .bui-theme-toggle-wrap:focus-within .bui-theme-switch,
    body.bui-mode .bui-motion-toggle-wrap:focus-within .bui-motion-switch {
      outline: 3px solid color-mix(in srgb, var(--primary) 75%, white);
      outline-offset: 3px;
    }

     
    body.bui-mode .bui-theme-switch {
      --bui-switch-thumb: 1.2em;
      font-size: 13px;
      background: #00a6ff;
      box-shadow: 0 0 10px rgba(0,0,0,.1);
    }
    body.bui-mode .bui-theme-switch::before {
      content: "";
      position: absolute;
      z-index: 2;
      left: .5em;
      bottom: .5em;
      width: var(--bui-switch-thumb);
      height: var(--bui-switch-thumb);
      border-radius: 20px;
      background: #ffcf48;
      transition: transform .4s cubic-bezier(.81,-.04,.38,1.5), box-shadow .4s;
    }
    body.bui-mode #dark-toggle:checked ~ .bui-theme-switch { background:#2a2a2a; }
    body.bui-mode #dark-toggle:checked ~ .bui-theme-switch::before {
      transform: translateX(2.2em);
      background: #fff;
      box-shadow: inset 8px -4px 0 0 #fff;
    }
    .bui-theme-star { position:absolute; z-index:1; width:5px; height:5px; border-radius:50%; background:#fff; transition:opacity .4s,transform .4s; }
    .bui-theme-star.star-1 { left:2.5em; top:.5em; }
    .bui-theme-star.star-2 { left:2.2em; top:1.2em; }
    .bui-theme-star.star-3 { left:3em; top:.9em; }
    body.bui-mode #dark-toggle:not(:checked) ~ .bui-theme-switch .bui-theme-star { opacity:0; transform:scale(.3); }
    .bui-theme-cloud { position:absolute; z-index:1; left:-1.1em; bottom:-1.4em; width:3.5em; opacity:0; transition:opacity .4s,bottom .4s; }
    body.bui-mode #dark-toggle:not(:checked) ~ .bui-theme-switch .bui-theme-cloud { bottom:-.9em; opacity:1; }
    body.bui-mode #dark-toggle:checked ~ .bui-theme-switch .bui-theme-cloud { opacity:0; }

     
    body.bui-mode .bui-motion-switch {
      background:linear-gradient(45deg,#1a1a2e,#16213e);
      box-shadow:0 0 14px rgba(0,0,0,.35),inset 0 0 12px rgba(255,255,255,.05);
    }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch { background:linear-gradient(45deg,#16213e,#1a1a2e); }
    .bui-motion-cosmos { position:absolute; inset:0; opacity:.16; background:radial-gradient(1px 1px at 10% 15%,#fff 100%,transparent),radial-gradient(1px 1px at 26% 70%,#fff 100%,transparent),radial-gradient(2px 2px at 45% 28%,#fff 100%,transparent),radial-gradient(1px 1px at 64% 62%,#fff 100%,transparent),radial-gradient(2px 2px at 84% 22%,#fff 100%,transparent); transition:opacity .4s ease; }
    .bui-motion-orb { position:absolute; z-index:2; left:3px; bottom:3px; width:24px; height:24px; border-radius:50%; background:linear-gradient(145deg,#ff6b6b,#4ecdc4); transition:transform .55s cubic-bezier(.68,-.35,.27,1.35),background .4s ease,filter .25s ease; }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch .bui-motion-orb { transform:translateX(25px) rotate(360deg); background:linear-gradient(145deg,#4ecdc4,#45b7af); }
    .bui-motion-inner-orb { position:absolute; inset:5px; overflow:hidden; border-radius:50%; background:linear-gradient(145deg,#fff,#e6e6e6); transition:background .4s ease,transform .4s ease; }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch .bui-motion-inner-orb { background:linear-gradient(145deg,#45b7af,#3da89f); transform:scale(.9); }
    .bui-motion-inner-orb::before { content:""; position:absolute; inset:0; background:repeating-conic-gradient(transparent 0deg,rgba(0,0,0,.1) 10deg,transparent 20deg); animation:bui-motion-pattern 10s linear infinite; }
    .bui-motion-ring { position:absolute; inset:0; border:2px solid rgba(255,255,255,.18); border-radius:50%; transition:border-color .3s ease; }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch .bui-motion-ring { border-color:rgba(78,205,196,.6); animation:bui-motion-ring-pulse 2s ease-in-out infinite; }
    .bui-motion-energy { position:absolute; z-index:1; left:0; width:100%; height:1px; opacity:0; background:linear-gradient(90deg,transparent,rgba(78,205,196,.65),transparent); }
    .bui-motion-energy:nth-of-type(1) { top:25%; transform:rotate(12deg); }
    .bui-motion-energy:nth-of-type(2) { top:50%; }
    .bui-motion-energy:nth-of-type(3) { top:75%; transform:rotate(-12deg); }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch .bui-motion-energy { opacity:.8; animation:bui-motion-energy-flow 2s linear infinite; }
    .bui-motion-particles { position:absolute; inset:0; }
    .bui-motion-particles i { position:absolute; top:50%; left:50%; width:3px; height:3px; border-radius:50%; background:#4ecdc4; opacity:0; }
    body.bui-mode #reduce-motion-toggle:checked ~ .bui-motion-switch .bui-motion-particles i { animation:bui-motion-particle .9s ease-out infinite; }
    .bui-motion-particles i:nth-child(2) { animation-delay:.12s !important; }
    .bui-motion-particles i:nth-child(3) { animation-delay:.24s !important; }
    .bui-motion-particles i:nth-child(4) { animation-delay:.36s !important; }
    .bui-motion-particles i:nth-child(5) { animation-delay:.48s !important; }
    .bui-motion-particles i:nth-child(6) { animation-delay:.6s !important; }
    .bui-motion-toggle-wrap:hover .bui-motion-orb { filter:brightness(1.12); }
    @keyframes bui-motion-pattern { to { transform:rotate(360deg); } }
    @keyframes bui-motion-ring-pulse { 50% { transform:scale(1.08); opacity:.6; } }
    @keyframes bui-motion-energy-flow { 0% { transform:scaleX(0); opacity:0; } 50% { transform:scaleX(1); opacity:1; } 100% { transform:scaleX(0); opacity:0; } }
    @keyframes bui-motion-particle { 0% { transform:translate(0,0) scale(1); opacity:.9; } 100% { transform:translate(calc(cos(var(--angle))*32px),calc(sin(var(--angle))*25px)) scale(0); opacity:0; } }

    @media (prefers-reduced-motion: reduce) {
      body.bui-mode .bui-theme-switch *,
      body.bui-mode .bui-motion-switch * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
    }
    body.reduce-motion.bui-mode .bui-theme-switch *,
    body.reduce-motion.bui-mode .bui-motion-switch * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }


    .color-swatches {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .swatch {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      border: 3px solid transparent;
      position: relative;
      overflow: hidden;
    }

    .swatch.selected {
      border-color: var(--text);
    }

    .swatch.custom-swatch {
      background: linear-gradient(135deg, var(--primary), var(--primary-lt));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
    }

    .swatch.custom-swatch i {
      font-size: 0.78em;
      pointer-events: none;
    }

    .swatch.custom-swatch input[type="color"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
      padding: 0;
      border: none;
    }

    .cursor-icon-preview {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border: 1.5px solid var(--border);
      border-radius: 14px;
      background: rgba(99, 102, 241, 0.05);
    }

    .cursor-icon-preview-inner {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.28);
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95em;
    }

    .cursor-icon-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
      max-width: 300px;
    }

    .cursor-icon-tile {
      border: 1.5px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      color: var(--text-s);
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95em;
    }

    .cursor-icon-tile.selected {
      border-color: var(--primary);
      color: var(--primary);
      background: rgba(99, 102, 241, 0.12);
    }

    @media (max-width: 767px) {
      #settings-cursor-card {
        display: none !important;
      }
    }

    body.high-contrast {
      --bg: #000000;
      --card: #000000;
      --text: #FFFFFF;
      --text-s: #F3F4F6;
      --border: #FFFFFF;
      --shadow: none;
    }

    body.high-contrast #app-header,
    body.high-contrast .account-card-top,
    body.high-contrast #pc-nav-fab,
    body.high-contrast .btn-primary,
    body.high-contrast .task-expand-btn.primary {
      background: #000000 !important;
      color: #FFFFFF !important;
      border: 2px solid #FFFFFF !important;
      box-shadow: none !important;
    }

    body.high-contrast .card,
    body.high-contrast .task-item,
    body.high-contrast .modal-box,
    body.high-contrast #task-drawer,
    body.high-contrast .task-window,
    body.high-contrast #app-nav,
    body.high-contrast #pc-nav-menu,
    body.high-contrast .stat-box,
    body.high-contrast .custom-context-menu {
      background: #000000 !important;
      color: #FFFFFF !important;
      border: 2px solid #FFFFFF !important;
      box-shadow: none !important;
    }

    body.high-contrast input,
    body.high-contrast textarea,
    body.high-contrast select,
    body.high-contrast .btn,
    body.high-contrast .filter-btn,
    body.high-contrast .pc-nav-btn,
    body.high-contrast .nav-btn,
    body.high-contrast .task-window-btn,
    body.high-contrast .tw-mini-btn,
    body.high-contrast .task-expand-btn {
      background: #000000 !important;
      color: #FFFFFF !important;
      border: 2px solid #FFFFFF !important;
      box-shadow: none !important;
    }

    body.high-contrast .nav-btn.active,
    body.high-contrast .pc-nav-btn.active,
    body.high-contrast .filter-btn.active,
    body.high-contrast .swatch.selected {
      outline: 2px solid #FFD400;
      outline-offset: 1px;
      border-color: #FFD400 !important;
      color: #FFD400 !important;
    }

    body.high-contrast .toggle-track {
      background: #4B5563;
      border: 2px solid #FFFFFF;
    }

    body.high-contrast .toggle-wrap input:checked + .toggle-track {
      background: #FFFFFF;
    }

    body.high-contrast .toggle-track::after {
      background: #000000;
    }

    body.high-contrast .toggle-wrap input:checked + .toggle-track::after {
      background: #000000;
    }

    body.high-contrast a,
    body.high-contrast .setting-sub,
    body.high-contrast .task-meta,
    body.high-contrast .tw-meta,
    body.high-contrast .priority-badge {
      color: #FFFFFF !important;
    }

    body.high-contrast .badge-high,
    body.high-contrast .badge-medium,
    body.high-contrast .badge-low,
    body.high-contrast .badge-list,
    body.high-contrast .badge-meta,
    body.high-contrast .badge-execution_plan {
      background: #000000 !important;
      color: #FFFFFF !important;
      border: 2px solid #FFFFFF !important;
    }


    #app-nav {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 480px;
      height: var(--nav-h);
      background: var(--card);
      display: flex;
      justify-content: space-around;
      align-items: center;
      box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
      border-top: 1px solid var(--border);

      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      z-index: 50;
    }

    body.pc-mode #app-nav {
      display: none;
    }

    .nav-btn {
      background: none;
      border: none;
      color: var(--text-s);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 8px 16px;
      border-radius: var(--radius);
      font-size: 0.68em;
      font-weight: 600;
      min-width: 60px;
    }

    .nav-btn i {
      font-size: 1.4rem;
    }

    .nav-account-icon {
      position: relative;
      display: inline-grid;
      place-items: center;
      flex: 0 0 1.4rem;
      width: 1.4rem;
      height: 1.4rem;
      line-height: 1;
    }

    .nav-account-icon > .nav-account-person {
      font-size: 1.4rem;
    }

    .nav-account-check {
      position: absolute;
      right: -4px;
      bottom: -2px;
      padding: 1px;
      border: 1px solid var(--card);
      border-radius: 50%;
      color: var(--primary);
      background: var(--card);
      font-size: .58rem !important;
      line-height: 1;
    }

    .nav-account-photo {
      display: block;
      width: 1.4rem;
      height: 1.4rem;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--text-s) 28%, transparent);
      border-radius: 50%;
      background: var(--card);
    }

    .nav-account-photo img,
    .nav-account-photo .profile-photo-fetch-loader {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    .nav-btn.active {
      color: var(--primary);
    }

    #pc-nav-fab {
      position: fixed;
      right: calc(18px + var(--fe-viewport-right-inset, 0px));
      bottom: calc(18px + var(--fe-viewport-bottom-inset, 0px));
      width: var(--pc-fab-size);
      height: var(--pc-fab-size);
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, var(--primary), var(--primary-lt));
      color: #fff;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 120;
      font-size: 1.18em;
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
      animation: fabFloatIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #pc-nav-fab:hover {
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    }

    #pc-nav-fab:active {
      transform: scale(0.96);
    }

    body.pc-mode #pc-nav-fab {
      display: inline-flex;
    }

    body.pc-fab-left #pc-nav-fab {
      left: calc(18px + var(--fe-viewport-offset-left, 0px));
      right: auto;
    }

    body.pc-fab-right #pc-nav-fab {
      right: calc(18px + var(--fe-viewport-right-inset, 0px));
      left: auto;
    }

    body.pc-fab-top #pc-nav-fab {
      top: calc(18px + var(--fe-viewport-offset-top, 0px));
      bottom: auto;
    }

    body.pc-fab-bottom #pc-nav-fab {
      bottom: calc(18px + var(--fe-viewport-bottom-inset, 0px));
      top: auto;
    }

    #pc-nav-menu {
      position: fixed;
      right: calc(18px + var(--fe-viewport-right-inset, 0px));
      bottom: calc(18px + var(--pc-fab-size) + 12px + var(--fe-viewport-bottom-inset, 0px));
      width: min(280px, calc(var(--fe-viewport-width, 100vw) - 28px));
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
      padding: 10px;
      display: none;
      flex-direction: column;
      gap: 6px;
      z-index: 121;
      transform-origin: bottom right;
      max-height: max(48px, calc(var(--fe-viewport-height, 100vh) - 108px));
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }

    body.pc-fab-left #pc-nav-menu {
      left: calc(18px + var(--fe-viewport-offset-left, 0px));
      right: auto;
    }

    body.pc-fab-right #pc-nav-menu {
      right: calc(18px + var(--fe-viewport-right-inset, 0px));
      left: auto;
    }

    body.pc-fab-top #pc-nav-menu {
      top: calc(18px + var(--pc-fab-size) + 12px + var(--fe-viewport-offset-top, 0px));
      bottom: auto;
    }

    body.pc-fab-bottom #pc-nav-menu {
      bottom: calc(18px + var(--pc-fab-size) + 12px + var(--fe-viewport-bottom-inset, 0px));
      top: auto;
    }

    body.pc-fab-left.pc-fab-top #pc-nav-menu {
      transform-origin: top left;
    }

    body.pc-fab-right.pc-fab-top #pc-nav-menu {
      transform-origin: top right;
    }

    body.pc-fab-left.pc-fab-bottom #pc-nav-menu {
      transform-origin: bottom left;
    }

    body.pc-fab-right.pc-fab-bottom #pc-nav-menu {
      transform-origin: bottom right;
    }

    body.pc-mode #pc-nav-menu.open {
      display: flex;
      animation: pcMenuIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes pcMenuIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes fabFloatIn {
      from {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .pc-nav-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 4px 4px 8px;
      color: var(--text-s);
      font-size: 0.78em;
      font-weight: 700;
    }

    .pc-nav-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .pc-nav-btn {
      width: 100%;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text);
      border-radius: 14px;
      padding: 11px 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
      font-size: 0.9em;
      font-weight: 600;
    }

    .pc-nav-btn:hover,
    .pc-nav-btn.active {
      background: rgba(99, 102, 241, 0.10);
      color: var(--primary);
      border-color: rgba(99, 102, 241, 0.16);
    }




    .modal-overlay {
      display: none;
      position: fixed;
      top: var(--fe-viewport-offset-top, 0px);
      left: var(--fe-viewport-offset-left, 0px);
      width: var(--fe-viewport-width, 100vw);
      height: var(--fe-viewport-height, 100vh);
      background: rgba(0, 0, 0, 0.45);
      z-index: 600;
      align-items: flex-end;
      justify-content: center;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease, visibility 160ms ease;
    }

    .modal-overlay.open {
      display: flex;
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }

    .modal-box {
      background: var(--card);
      width: 100%;
      max-width: 480px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      padding: 22px;
      max-height: min(90vh, calc(var(--fe-viewport-height, 100vh) - 24px));
      overflow-y: auto;
    }

    #account-blocked-modal {
      align-items: center;
      padding: 20px;
      background: rgba(17, 24, 39, 0.38);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    body.dark #account-blocked-modal {
      background: rgba(0, 0, 0, 0.66);
    }

    #account-blocked-modal .modal-box {
      width: min(900px, calc(var(--fe-viewport-width, 100vw) - 40px));
      max-width: 900px;
      height: min(600px, calc(var(--fe-viewport-height, 100vh) - 40px));
      max-height: min(600px, calc(var(--fe-viewport-height, 100vh) - 40px));
      padding: 0;
      overflow: hidden;
      border-radius: 18px;
      background: var(--card);
      color: var(--text);
      box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
    }

    body:not(.dark) #account-blocked-modal .modal-box {
      background: #FFFFFF;
      color: #1F2937;
    }

    body.dark #account-blocked-modal .modal-box {
      background: #1F2937;
      color: #F9FAFB;
    }

    body.tablet-mode #account-blocked-modal .modal-box {
      width: min(900px, calc(var(--fe-viewport-width, 100vw) - 32px));
      max-width: 900px;
    }

    #account-blocked-modal.open .modal-box {
      animation: accountBlockedEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes accountBlockedEnter {
      from { opacity: 0; transform: translateY(12px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .account-blocked-shell {
      display: grid;
      grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
      width: 100%;
      height: 100%;
      min-height: 0;
    }

    .account-blocked-art {
      display: grid;
      place-items: center;
      min-width: 0;
      min-height: 0;
      padding: 28px;
      border-right: 1px solid var(--border);
      background: var(--bg);
    }

    .account-blocked-content {
      display: flex;
      flex-direction: column;
      min-width: 0;
      min-height: 0;
      padding: 32px;
      overflow: auto;
    }

    .account-blocked-details {
      margin: 0;
      padding: 18px;
      border: 1px solid rgba(239, 68, 68, 0.22);
      border-radius: 16px;
      color: var(--text);
      background: rgba(239, 68, 68, 0.07);
      box-shadow: none;
    }

    .account-blocked-details-title {
      margin: 0 0 10px;
      color: var(--red);
      font-size: 1.12em;
      font-weight: 900;
      line-height: 1.25;
    }

    #account-blocked-reason,
    #account-blocked-until {
      color: var(--text-s);
    }

    #account-blocked-reason {
      font-size: 0.88em;
      line-height: 1.5;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    #account-blocked-until {
      margin-top: 10px;
      font-size: 0.8em;
    }

    #account-blocked-countdown {
      margin-top: 10px;
      color: var(--red);
      font-size: 0.86em;
      font-weight: 800;
    }

    body.dark .account-blocked-details {
      border-color: rgba(248, 113, 113, 0.32);
      background: rgba(127, 29, 29, 0.2);
    }

    body.dark .account-blocked-details-title,
    body.dark #account-blocked-countdown {
      color: #fca5a5;
    }

    .account-blocked-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: auto;
      padding-top: 22px;
    }

    #account-blocked-modal .account-blocked-actions .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      min-width: 0;
      min-height: 46px;
      margin: 0;
      padding: 10px 12px;
      text-align: center;
      line-height: 1.25;
    }

    #account-blocked-modal .account-blocked-actions .account-blocked-appeal {
      border: 1px solid var(--primary);
      color: #fff;
      background: var(--primary);
      box-shadow: 0 5px 14px rgba(49, 88, 216, 0.24);
    }

    #account-blocked-modal .account-blocked-actions .account-blocked-reload {
      border: 1px solid var(--border);
      color: var(--text-s);
      background: transparent;
      box-shadow: none;
    }

    #account-blocked-modal .account-blocked-actions .btn:hover {
      filter: brightness(0.96);
      transform: translateY(-1px);
    }

    .account-blocked-actions .account-blocked-reload {
      min-height: 40px !important;
      opacity: 0.86;
    }

    .account-blocked-image {
      display: block;
      width: min(280px, 100%);
      aspect-ratio: 1;
      object-fit: contain;
      max-height: 100%;
      margin: 0;
      border-radius: 18px;
    }

    @media (max-width: 640px) {
      #account-blocked-modal { padding: 12px; }

      #account-blocked-modal .modal-box {
        width: min(520px, calc(var(--fe-viewport-width, 100vw) - 24px), calc(100vw - 24px));
        height: auto;
        max-height: min(680px, calc(var(--fe-viewport-height, 100dvh) - 24px), calc(100dvh - 24px));
        border-radius: 18px;
        overflow-y: auto;
      }

      body.tablet-mode #account-blocked-modal .modal-box {
        width: min(520px, calc(var(--fe-viewport-width, 100vw) - 24px), calc(100vw - 24px));
        max-width: 520px;
      }

      .account-blocked-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 126px auto;
        height: auto;
      }

      .account-blocked-art {
        padding: 8px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
      }

      .account-blocked-image { width: 112px; }

      .account-blocked-content { padding: 18px; overflow: visible; }
      .account-blocked-details { padding: 14px; }
      .account-blocked-actions { gap: 8px; margin-top: 16px; padding-top: 0; }
      #account-blocked-modal .account-blocked-actions .btn { min-height: 44px; font-size: 0.84em; }
    }

    @media (max-width: 380px) {
      .account-blocked-actions { grid-template-columns: minmax(0, 1fr); }
    }

    .news-modal {
      align-items: center;
      justify-content: center;
    }

    .news-modal .modal-box {
      width: min(900px, calc(var(--fe-viewport-width, 100vw) - 40px));
      max-width: 900px;
      height: min(600px, calc(var(--fe-viewport-height, 100vh) - 40px));
      max-height: min(600px, calc(var(--fe-viewport-height, 100vh) - 40px));
      padding: 0;
      border-radius: 18px;
      overflow: hidden;
      background: #111827;
      color: #f8fafc;
      box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
    }

    body.dark .news-modal .modal-box {
      background: #111827;
      box-shadow: 0 18px 50px rgba(2, 6, 23, 0.62);
    }

    .news-modal-shell {
      display: grid;
      grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
      height: 100%;
      min-height: 0;
      width: 100%;
    }

    .news-modal-art {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 0;
      padding: 16px;
      overflow: hidden;
      background: linear-gradient(145deg, #6658d9, #4f46b8);
      min-width: 0;
    }

    .news-modal-art img,
    .news-modal-art video,
    .news-modal-art iframe {
      position: absolute;
      inset: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      border-radius: 0;
      box-shadow: none;
    }

    .news-modal-art picture {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: block;
    }

    .news-modal-art img {
      object-fit: cover;
    }

    .news-modal-art iframe {
      border: 0;
    }

    .news-modal-device {
      position: relative;
      z-index: 1;
      width: 170px;
      height: 210px;
      border-radius: 22px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.22);
      box-shadow: 0 24px 38px rgba(46, 36, 140, 0.28);
      backdrop-filter: blur(3px);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
    }

    .news-modal-device .mini-window {
      width: 102px;
      height: 92px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(230,233,255,0.82));
      box-shadow: inset 0 0 0 1px rgba(124,110,247,0.14);
      position: relative;
      overflow: hidden;
    }

    .news-modal-device .mini-window::before,
    .news-modal-device .mini-window::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(99,102,241,0.26);
    }

    .news-modal-device .mini-window::before {
      width: 58px;
      height: 10px;
      top: 22px;
      left: 18px;
    }

    .news-modal-device .mini-window::after {
      width: 70px;
      height: 10px;
      bottom: 22px;
      left: 18px;
    }

    .news-modal-device .badge {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      background: rgba(255,255,255,0.18);
      border: 1px solid rgba(255,255,255,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4em;
      color: #ffffff;
    }

    .news-modal-content {
      padding: 0;
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 0;
      min-width: 0;
      overflow: hidden;
      background: #111827;
    }

    .news-modal-scroll {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 10px 14px 12px;
      overscroll-behavior: contain;
      touch-action: pan-y;
      cursor: default;
      min-width: 0;
      scrollbar-width: thin;
      scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
      -webkit-overflow-scrolling: touch;
    }

    .news-modal-scroll::-webkit-scrollbar {
      width: 7px;
    }

    .news-modal-scroll::-webkit-scrollbar-thumb {
      background: rgba(99, 102, 241, 0.32);
      border-radius: 999px;
    }

    .news-modal-close {
      position: absolute;
      right: 14px;
      top: 14px;
      width: 30px;
      height: 30px;
      border-radius: 10px;
      border: 1px solid rgba(148,163,184,0.18);
      background: rgba(255,255,255,0.72);
      color: #1f2937;
      font-size: 0.9em;
      cursor: pointer;
    }

    .news-modal-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 9px;
      border-radius: 999px;
      background: rgba(125, 211, 252, 0.1);
      color: #7dd3fc;
      font-size: 0.72em;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .news-modal h3 {
      margin: 0 0 8px;
      font-size: clamp(1.05rem, 2vw, 1.2rem);
      line-height: 1.2;
      color: #f8fafc;
    }

    .news-modal p {
      margin: 0;
      color: #cbd5e1;
      line-height: 1.45;
      font-size: 0.82em;
    }

    .news-modal-list {
      list-style: none;
      margin: 10px 0 12px;
      padding: 0;
      display: grid;
      gap: 8px;
    }

    .news-modal-list li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 8px 9px;
      border-radius: 12px;
      font-size: 0.76em;
      line-height: 1.4;
      color: #e2e8f0;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(148, 163, 184, 0.14);
    }

    .news-modal-list li > span:last-child {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .news-modal-list li .news-bullet {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(99,102,241,0.1);
      color: var(--primary);
      font-size: 1.05rem;
      flex-shrink: 0;
      margin-top: 1px;
      box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
    }

    .news-modal-list li .news-bullet svg {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
    }

    .news-modal-list li .news-bullet.green {
      background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(34,197,94,0.10));
      color: #0f9f6e;
    }

    .news-modal-list li .news-bullet.amber {
      background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(251,191,36,0.10));
      color: #c77b00;
    }

    .news-modal-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .news-modal-primary,
    .news-modal-secondary {
      border: none;
      border-radius: 12px;
      padding: 10px 14px;
      font-weight: 700;
      font-size: 0.9em;
      cursor: pointer;
      transition: transform 0.2s ease, opacity 0.2s ease;
      min-width: 0;
    }

    .news-modal-primary {
      background: var(--primary);
      color: white;
      box-shadow: none;
    }

    .news-modal-secondary {
      background: rgba(125, 211, 252, 0.08);
      color: #7dd3fc;
      border: 1px solid rgba(125, 211, 252, 0.2);
    }

    .news-modal-primary:hover,
    .news-modal-secondary:hover {
      transform: translateY(-1px);
    }

     
    .news-modal,
    .news-modal * {
      animation: none !important;
    }

    .news-modal .modal-box,
    .news-modal-primary,
    .news-modal-secondary {
      transition: none !important;
    }

    @media (max-width: 640px) {
      .news-modal {
        align-items: center;
        justify-content: center;
        padding: 12px;
      }

      .news-modal .modal-box {
        width: min(480px, calc(var(--fe-viewport-width, 100vw) - 24px));
        height: auto;
        max-height: min(680px, calc(var(--fe-viewport-height, 100dvh) - 24px));
        border-radius: 18px;
      }

      .news-modal-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 112px auto;
        min-height: 0;
        height: auto;
        max-height: min(680px, calc(var(--fe-viewport-height, 100dvh) - 24px));
      }

      .news-modal-art {
        display: flex;
        min-height: 96px;
        padding: 8px 12px;
      }

      .news-modal-art img,
      .news-modal-art video,
      .news-modal-art iframe {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        border-radius: 0;
      }

      .news-modal-art picture { width: 100%; height: 100%; }

      .news-modal-content {
        padding: 0;
        min-height: 0;
        overflow: hidden;
      }

      .news-modal-scroll {
        padding: 10px 12px 12px;
        flex: 0 1 auto;
        max-height: max(120px, calc(var(--fe-viewport-height, 100dvh) - 160px));
      }

      .news-modal-close {
        top: 14px;
        right: 14px;
      }

      .news-modal h3 {
        font-size: 1.1rem;
        line-height: 1.2;
      }

      .news-modal p {
        font-size: 0.83em;
      }

      .news-modal-version {
        color: #94a3b8;
      }

      .news-modal-list {
        gap: 7px;
        margin: 10px 0 12px;
      }

      .news-modal-list li {
        gap: 8px;
        padding: 7px 8px;
        font-size: 0.8em;
        line-height: 1.35;
        border-radius: 10px;
      }

      .news-modal-list li .news-bullet {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        font-size: 0.9rem;
      }

      .news-modal-actions {
        gap: 8px;
        padding-bottom: 8px;
      }

      .news-modal-primary,
      .news-modal-secondary {
        padding: 10px 14px;
        font-size: 0.8em;
      }
    }

    .modal-title {
      font-size: 1.05em;
      font-weight: 700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 1.2em;
      color: var(--text-s);
      padding: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .modal-close:hover {
      transform: rotate(90deg) scale(1.05);
      color: var(--primary);
      background: rgba(99, 102, 241, 0.12);
    }


    #account-express-profile-modal .modal-box {
      padding: 18px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      background: #ffffff;
      box-shadow: none;
    }

    .account-express-profile-top {
      display: block;
      text-align: center;
      margin-bottom: 14px;
    }

    .profile-celebration {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
      color: var(--primary);
      opacity: 0.18;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    }

    .profile-celebration > * {
      position: absolute;
      width: 28px;
      height: 28px;
      object-fit: contain;
      left: 0;
      right: auto;
      animation: profileCelebrationCarousel 8s linear infinite;
    }

    .profile-celebration > i { display: inline-flex; align-items: center; justify-content: center; font-size: 1.35em; }
    .profile-celebration > i:nth-child(7) { color: #4285f4; }
    .profile-celebration > i:nth-child(8) { color: #34a853; }
    .profile-celebration > i:nth-child(9) { color: #ea4335; }
    .profile-celebration > i:nth-child(10) { color: #fbbc05; }
    .profile-celebration > *:nth-child(1) { top: 18%; animation-delay: -1.2s; }
    .profile-celebration > *:nth-child(2) { top: 12%; animation-delay: -2.4s; }
    .profile-celebration > *:nth-child(3) { top: 68%; animation-delay: -3.6s; }
    .profile-celebration > *:nth-child(4) { top: 58%; animation-delay: -4.8s; }
    .profile-celebration > *:nth-child(5) { top: 34%; animation-delay: -6s; }
    .profile-celebration > *:nth-child(6) { top: 78%; animation-delay: -7.2s; }
    .profile-celebration > *:nth-child(7) { top: 42%; animation-delay: -0.8s; }
    .profile-celebration > *:nth-child(8) { top: 24%; animation-delay: -2s; }
    .profile-celebration > *:nth-child(9) { top: 54%; animation-delay: -3.2s; }
    .profile-celebration > *:nth-child(10) { top: 82%; animation-delay: -4.4s; }
    .profile-celebration img.light-background { mix-blend-mode: multiply; }
    @keyframes profileCelebrationCarousel {
      from { transform: translate3d(420px, 0, 0) rotate(8deg); }
      to { transform: translate3d(-420px, 0, 0) rotate(-8deg); }
    }

    @media (prefers-reduced-motion: reduce) {
      .profile-celebration { display: none; }
    }

    body.reduce-motion .profile-celebration { display: none; }

    .account-express-profile-photo {
      margin: 0 auto;
    }

.account-express-profile-photo {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      flex-shrink: 0;
      margin-bottom: 9px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(16, 185, 129, 0.55));
      box-shadow: 0 18px 50px rgba(99, 102, 241, 0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3px;
      border: 2px solid rgba(255, 255, 255, 0.58);
      position: relative;
      overflow: hidden;
      animation: profilePop 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .account-express-profile-photo.is-round {
      border-radius: 50%;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .account-express-profile-photo.is-square {
      border-radius: 18px;
    }

    .account-express-profile-photo.is-round::after,
    .account-express-profile-photo.is-square::after {
      display: none;
    }

    .account-express-profile-photo i {
      color: #fff;
      font-size: 1.6em;
    }

    .profile-photo-fetch-loader {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      min-width: 24px;
      min-height: 24px;
      overflow: hidden;
      border-radius: inherit;
      background: color-mix(in srgb, var(--primary) 15%, var(--card));
      isolation: isolate;
    }
    .profile-photo-fetch-loader::before {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 62%;
      height: 62%;
      transform: rotate(45deg) translate(30%,40%);
      background: var(--primary-lt, #8ec4d9);
      box-shadow: 28px -30px 0 5px var(--primary);
      animation: profile-photo-loader-slide 1.25s infinite ease-in-out alternate;
    }
    .profile-photo-fetch-loader::after {
      content: "";
      position: absolute;
      left: 14%;
      top: 14%;
      width: 22%;
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--primary-dk, #285b71);
      transform-origin: 35px 70px;
      animation: profile-photo-loader-rotate 1.25s infinite ease-in-out;
    }
    @keyframes profile-photo-loader-slide {
      0%,100% { bottom: -35%; }
      20%,80% { bottom: 2%; }
      25%,75% { bottom: -2%; }
    }
    @keyframes profile-photo-loader-rotate {
      0% { transform: rotate(-15deg); }
      25%,75% { transform: rotate(0); }
      100% { transform: rotate(25deg); }
    }
    @media (prefers-reduced-motion: reduce) {
      .profile-photo-fetch-loader::before,
      .profile-photo-fetch-loader::after { animation-duration: 1ms; animation-iteration-count: 1; }
    }
    body.reduce-motion .profile-photo-fetch-loader::before,
    body.reduce-motion .profile-photo-fetch-loader::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }

    .account-express-profile-photo::after {
      content: '';
      position: absolute;
      inset: -40px;
      background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
      transform: rotate(20deg);
    }

    @keyframes profilePop {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .account-express-profile-grid {
      flex: 1;
    }

    .account-express-profile-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 10px 12px;
      position: relative;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.55);
      border: 1px solid rgba(209, 213, 219, 0.45);
      margin-bottom: 10px;
    }

    body.dark #account-express-profile-modal .modal-box {
      background: #1F2937;
    }

    body.dark .account-express-profile-row {
      background: rgba(31, 41, 55, 0.45);
      border-color: rgba(255, 255, 255, 0.14);
    }

    .account-express-profile-row:last-child {
      margin-bottom: 0;
    }

    .account-express-profile-label {
      font-size: 0.78em;
      font-weight: 800;
      color: var(--text-s);
    }

    body.dark .account-express-profile-label {
      color: rgba(156, 163, 175, 0.95);
    }

    .account-express-profile-value {
      font-size: 0.88em;
      font-weight: 700;
      color: var(--text);
      text-align: center;
      word-break: break-word;
      max-width: 100%;
      line-height: 1.35;
    }

    .account-express-profile-copy-wrap {
      display: contents;
    }

    .account-express-profile-copy {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(99, 102, 241, 0.35);
      border-radius: 9px;
      background: transparent;
      color: var(--primary);
      cursor: pointer;
      flex: 0 0 28px;
    }

    .account-express-profile-copy:hover {
      background: rgba(99, 102, 241, 0.12);
      transform: translateY(-50%);
    }

    .account-express-profile-copy.copied {
      color: var(--green);
      border-color: rgba(16, 185, 129, 0.45);
    }

    body.dark .account-express-profile-value {
      color: rgba(249, 250, 251, 0.95);
    }

    .account-express-profile-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-top: 14px;
    }

    .account-express-profile-actions .btn {
      margin-top: 0;
    }

    .account-express-profile-actions a.btn-primary {
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.95), rgba(16, 185, 129, 0.75));
      border: none;
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18);
    }

    .account-express-profile-actions a.btn-primary:hover {
      filter: brightness(1.06);
    }

    .account-express-profile-actions .btn-outline {
      border-color: rgba(99, 102, 241, 0.25);
    }

    .account-express-profile-actions .btn-outline:hover {
      background: rgba(99, 102, 241, 0.08);
    }


    #toast {
      position: fixed;
      bottom: calc(var(--nav-h) + 12px);
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #1F2937;
      color: #fff;
      padding: 10px 20px;
      border-radius: 24px;
      font-size: 0.85em;
      font-weight: 500;
      opacity: 0;
      z-index: 300;
      pointer-events: none;
      max-width: 320px;
      text-align: center;
      white-space: nowrap;
    }



    #toast.wpa-toast {
      bottom: calc(var(--nav-h) + 22px);
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      max-width: 360px;
    }

     
    #toast.mcp-toast {
      top: max(14px, env(safe-area-inset-top));
      right: max(14px, env(safe-area-inset-right));
      bottom: auto;
      left: auto;
      transform: translateY(28px);
      width: min(420px, calc(100vw - 28px));
      max-width: none;
      border-radius: 14px;
      padding: 12px 16px;
      padding-right: 42px;
      text-align: left;
      white-space: normal;
      box-shadow: 0 12px 32px rgba(15, 23, 42, .24);
      pointer-events: auto;
    }

    #toast.mcp-toast.show {
      transform: translateY(0);
    }

    #toast .toast-close {
      position: absolute;
      top: 7px;
      right: 8px;
      width: 26px;
      height: 26px;
      border: 0;
      border-radius: 50%;
      color: inherit;
      background: transparent;
      font-size: 1.2rem;
      line-height: 1;
      cursor: pointer;
      opacity: .78;
    }

    #toast .toast-close:hover,
    #toast .toast-close:focus-visible {
      opacity: 1;
      background: rgba(255, 255, 255, .14);
      outline: none;
    }

    #toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }


    #task-dock {
      position: fixed;
      top: max(calc(var(--fe-viewport-offset-top, 0px) + 80px), 12px);
      left: calc(var(--fe-viewport-offset-left, 0px) + 12px);
      width: 76px;
      max-height: max(48px, calc(var(--fe-viewport-height, 100vh) - 120px));
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
      z-index: 120;
      padding: 10px 8px;
      display: none;

    }

    body.dark #task-dock {
      background: rgba(17, 24, 39, 0.52);
      border-color: rgba(255, 255, 255, 0.14);
    }

    #task-dock-title {
      font-size: 0.72em;
      color: rgba(255, 255, 255, 0.92);
      font-weight: 800;
      text-align: center;
      margin-bottom: 10px;
      user-select: none;
    }

    #task-dock-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      max-height: max(32px, calc(var(--fe-viewport-height, 100vh) - 200px));
    }

    .dock-item {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 14px;
      padding: 10px 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      user-select: none;
      color: rgba(255, 255, 255, 0.96);
      transition: transform 0.15s ease, background 0.15s ease;
      position: relative;
    }

    .dock-item:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.18);
    }

    .dock-item i {
      font-size: 1.05em;
    }

    .dock-item .dock-pill {
      font-size: 0.7em;
      font-weight: 800;
      opacity: 0.9;
      max-width: 52px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #floating-windows {
      position: fixed;
      inset: 0;
      z-index: 140;
      pointer-events: none;

    }

    .task-window {
      position: absolute;
      width: min(360px, calc(100vw - 32px));
      max-width: 360px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
      overflow: hidden;
      display: none;
      pointer-events: auto;
      contain: layout paint style;
      will-change: left, top;
      transition: left 0.18s ease, top 0.18s ease;
      box-sizing: border-box;
      max-height: calc(var(--fe-viewport-height, 100vh) - 100px);
    }

    body.dark .task-window {
      background: var(--card);
      border-color: var(--border);
    }

    .task-window.open {
      display: flex;
      flex-direction: column;
    }

    .task-window-header {
      height: 38px;
      padding: 0 12px;
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.90), rgba(16, 185, 129, 0.65));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: grab;
      user-select: none;
      touch-action: none;
      flex-shrink: 0;
    }

    .task-window-header:active {
      cursor: grabbing;
    }

    .task-window-title {
      font-weight: 800;
      font-size: 0.86em;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 220px;
    }

    .task-window-controls {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .task-window-btn {
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.26);
      color: #fff;
      border-radius: 8px;
      width: 26px;
      height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.12s ease, background 0.12s ease;
    }

    .task-window-btn:hover {
      transform: scale(1.06);
      background: rgba(255, 255, 255, 0.30);
    }

    .task-window-body {
      padding: 12px 14px 14px;
      max-height: calc(var(--fe-viewport-height, 100vh) - 200px);
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    @media (min-width: 768px) and (max-width: 1200px) {
      .task-window:not(.large) {
        width: min(420px, calc(100vw - 36px));
        max-width: 420px;
      }
    }

     
    @media (max-width: 767px) {
      .task-window:not(.large) {
        position: fixed !important;
        left: var(--fe-viewport-center-x, 50vw) !important;
        top: var(--fe-viewport-center-y, 50vh) !important;
        transform: translate(-50%, -50%) !important;
        width: min(calc(var(--fe-viewport-width, 100vw) - 24px), 420px) !important;
        max-width: calc(var(--fe-viewport-width, 100vw) - 24px) !important;
        max-height: calc(var(--fe-viewport-height, 100vh) - 24px) !important;
        border-radius: 18px;
        box-shadow: 0 18px 36px rgba(0,0,0,0.28);
        transition: opacity 0.18s ease, transform 0.18s ease;
      }
      .task-window:not(.large) .task-window-header {
        cursor: default;
        touch-action: manipulation;
      }
      .task-window:not(.large) .task-window-body {
        max-height: calc(var(--fe-viewport-height, 100vh) - 56px) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    .task-window-body .tw-meta {
      font-size: 0.78em;
      color: var(--text-s);
      margin-top: 2px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .task-window-body .tw-desc {
      margin-top: 8px;
      font-size: 0.88em;
      color: var(--text);
      white-space: pre-wrap;
      line-height: 1.45;
      word-break: break-word;
      overflow-wrap: anywhere;
      max-width: 100%;
      max-height: min(42vh, 20rem);
      overflow: auto;
      scrollbar-gutter: stable;
    }

    .task-description-preview {
      max-height: none;
      overflow: visible;
      overflow-wrap: anywhere;
    }

    .task-window-body .tw-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .tw-mini-btn {
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--card);
      font-weight: 800;
      color: var(--text);
      cursor: pointer;
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .tw-mini-btn.primary {
      border-color: transparent;
      background: var(--primary);
      color: #fff;
    }

    .task-window.minimized .task-window-body {
      display: none;
    }

     
    .task-window.large {
      position: fixed !important;
      left: var(--fe-viewport-center-x, 50vw) !important;
      top: var(--fe-viewport-center-y, 50vh) !important;
      transform: translate(-50%, -50%) scale(0.96) !important;
      width: min(calc(var(--fe-viewport-width, 100vw) - 24px), 86vw) !important;
      max-width: calc(var(--fe-viewport-width, 100vw) - 24px) !important;
      height: min(86vh, 760px) !important;
      max-height: calc(var(--fe-viewport-height, 100vh) - 24px) !important;
      border-radius: var(--radius-lg);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
      background-color: var(--card) !important;
      border: 1px solid var(--border);
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      opacity: 0;
      transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease !important;
      z-index: 250 !important;
      pointer-events: auto !important;
      box-sizing: border-box !important;
    }

    @media (prefers-reduced-motion: reduce) {
      .task-window.large {
        transition: none !important;
      }
    }

    .task-window.large.open {
      opacity: 1 !important;
      transform: translate(-50%, -50%) scale(1) !important;
    }

    .task-window.large .task-window-header {
      background: var(--bg-card, rgba(255, 255, 255, 0.03));
      border-bottom: 1px solid var(--border);
      color: var(--text);
      cursor: default;
      padding: 14px 18px;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
    }

    .task-window.large .task-window-title {
      font-weight: 800;
      color: var(--text);
      font-size: 1.08em;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      max-width: calc(100% - 80px);
      word-break: break-word;
      line-height: 1.35;
    }

    .task-window.large .task-window-controls .task-window-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-s);
      width: 32px;
      height: 32px;
      border-radius: 8px;
    }

    .task-window.large .task-window-controls .task-window-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text);
    }

    .task-window.large .task-window-body {
      flex: 1 1 auto;
      min-height: 0;
      max-height: none !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      padding: 16px 18px 18px !important;
      box-sizing: border-box !important;
    }

    .task-window.large .tw-desc {
      font-size: 0.95em;
      line-height: 1.55;
      margin-top: 12px;
      color: var(--text);
      overflow-wrap: anywhere;
      word-break: break-word;
      max-width: 100%;
    }

    .task-ai-actions {
      display: flex;
      align-items: stretch;
      gap: 8px;
      width: 100%;
    }

    .task-ai-actions > button {
      min-width: 0;
      transition: flex 220ms ease, width 220ms ease, opacity 180ms ease, transform 180ms ease;
    }

    .task-ai-actions > button:first-child {
      flex: 1 1 auto;
    }

    .task-ai-undo-btn {
      flex: 0 0 44px;
      width: 44px;
      padding: 0 !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transform: translateX(8px);
      opacity: 0;
    }

    .task-ai-undo-btn[hidden] {
      display: none !important;
    }

    .task-ai-undo-btn.is-visible {
      transform: translateX(0);
      opacity: 1;
    }

    @media (max-width: 520px) {
      .task-window.large {
        width: 86vw !important;
        height: 86vh !important;
      }
    }

    .task-window.large .tw-meta {
      font-size: 0.82em;
      gap: 8px;
      margin-top: 4px;
    }

    .task-window.large .tw-actions {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

     
    .fb-support-btn {
      border: 0;
      background: transparent;
      color: var(--primary);
      padding: 6px;
      margin-left: 6px;
      font-size: 0.95em;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }


    #task-dock.show {
      animation: dockIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }


    body.reduce-motion * {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }

    body.reduce-motion #login-overlay,
    body.reduce-motion #login-overlay::before,
    body.reduce-motion .login-card,
    body.reduce-motion .login-logo,
    body.reduce-motion #login-back-btn,
    body.reduce-motion #sync-indicator i {
      animation: none !important;
      transition: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
      #login-overlay,
      #login-overlay::before,
      .login-card,
      .login-logo,
      #login-back-btn,
      #sync-indicator i {
        animation: none !important;
        transition: none !important;
      }
    }

    @keyframes animSectionIn {
      from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
        filter: blur(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    .anim-section-in.active {
      animation: animSectionIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes animPopIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .anim-pop-in {
      animation: animPopIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes animToastIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(18px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
      }
    }

    #toast.show.anim-toast-in {
      animation: animToastIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes animMcpToastIn {
      from {
        opacity: 0;
        transform: translateY(28px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    #toast.mcp-toast.show.anim-toast-in {
      animation: animMcpToastIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }


    #pwa-install-banner {
      position: fixed;
       
      left: 50%;
      transform: translateX(-50%);
      bottom: calc(var(--nav-h) + 12px);
      z-index: 9050;
      display: none;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
      animation: animToastIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
      width: min(360px, calc(100vw - 24px));
      max-width: calc(100vw - 24px);
       
      box-sizing: border-box;
    }

     
    @media (min-width: 640px) {
      #pwa-install-banner {
        left: auto;
        right: 24px;
        transform: none;
        width: 340px;
      }
    }

    #pwa-install-banner.show {
      display: flex;
    }

    #pwa-install-banner .pwa-install-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      flex-shrink: 0;
      object-fit: contain;
      align-self: center;
    }

    #pwa-install-banner .pwa-install-text {
      flex: 1;
      min-width: 0;
    }

    #pwa-install-banner .pwa-install-text strong {
      display: block;
      font-size: 0.92em;
      margin-bottom: 2px;
    }

    #pwa-install-banner .pwa-install-text span {
      display: block;
      font-size: 0.78em;
      color: var(--text-s);
      line-height: 1.35;
    }

    #pwa-install-desc {
      text-align: center;
    }

    #pwa-install-banner .pwa-install-actions {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex-shrink: 0;
    }

    #pwa-install-banner .pwa-install-btn {
      border: 0;
      background: var(--primary);
      color: #fff;
      padding: 8px 14px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 0.82em;
      cursor: pointer;
      white-space: nowrap;
    }

    #pwa-install-banner .pwa-install-dismiss {
      border: 1.5px solid var(--border);
      background: transparent;
      color: var(--text-s);
      font-size: 0.78em;
      font-weight: 700;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 12px;
    }


    @keyframes animReveal {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .anim-reveal {
      opacity: 0;
      animation: animReveal 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes dockIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .task-window {
      transform-origin: top left;
      animation: winIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes winIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .task-window.minimized {
      transition: opacity 0.25s ease;
    }


    #login-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background:
        radial-gradient(900px circle at 10% 10%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(800px circle at 90% 20%, rgba(16, 185, 129, 0.16), transparent 50%),
        radial-gradient(700px circle at 60% 90%, rgba(139, 92, 246, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 500;
      overflow-y: auto;
      padding: 30px 20px 40px;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease, visibility 160ms ease;
      animation: loginOverlayIn 0ms linear both;
    }

    @keyframes loginOverlayIn {
      from {
        opacity: 0;
        transform: translateY(0);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    #login-overlay.visible {
      display: block;
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }

    #login-overlay::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(16, 185, 129, 0.08), rgba(139, 92, 246, 0.06));
      opacity: 0.85;
      mix-blend-mode: multiply;
    }

    body.dark #login-overlay {
      background:
        radial-gradient(900px circle at 10% 10%, rgba(99, 102, 241, 0.22), transparent 45%),
        radial-gradient(800px circle at 90% 20%, rgba(16, 185, 129, 0.18), transparent 50%),
        radial-gradient(700px circle at 60% 90%, rgba(139, 92, 246, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.65));
    }

    #login-back-btn {
      position: sticky;
      top: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      border: 1.5px solid rgba(209, 213, 219, 0.35);
      background: rgba(255, 255, 255, 0.65);
      color: var(--primary);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
      margin: 0 auto 18px;
      cursor: pointer;
      transform: translateY(0);
      animation: loginBackPop 0ms linear both;
      transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
    }

    #login-back-btn:hover {
      transform: translateY(-4px);
      filter: brightness(1.05);
    }

    #login-back-btn:active {
      transform: translateY(-1px) scale(0.98);
    }

    @keyframes loginBackPop {
      from {
        opacity: 1;
        transform: translateY(0) scale(1);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    body.dark #login-back-btn {
      background: rgba(31, 41, 55, 0.75);
      border-color: rgba(255, 255, 255, 0.14);
      color: #fff;
    }

    .login-logo {
      text-align: center;
      margin-bottom: 28px;
    }

    .login-logo .logo-icon {
      width: 68px;
      height: 68px;
      background: var(--primary);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2em;
      color: #fff;
      margin: 0 auto 14px;
    }

    .login-logo h2 {
      font-size: 1.4em;
      font-weight: 800;
      color: var(--text);
    }

    .login-logo p {
      font-size: 0.85em;
      color: var(--text-s);
      margin-top: 4px;
    }

    .login-card {
      background: var(--card);
      border-radius: var(--radius-lg);
      padding: 22px;
      box-shadow: var(--shadow);
      max-width: 380px;
      margin: 0 auto;
    }

    .auth-mode-switcher {
      display: none;
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 520;
      flex-direction: column;
      align-items: flex-end;
      gap: 5px;
      margin: 0;
      padding: 6px;
      border: 1px solid rgba(156, 163, 175, 0.28);
      border-radius: 14px;
      background: color-mix(in srgb, var(--card) 88%, transparent);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .auth-mode-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 30px;
      padding: 5px 8px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: transparent;
      color: var(--text-s);
      font: inherit;
      font-size: 0.72em;
      cursor: pointer;
      width: 100%;
      justify-content: flex-start;
    }

    .auth-mode-btn.active {
      color: var(--primary);
      border-color: rgba(99,102,241,0.55);
      background: rgba(99,102,241,0.1);
    }

    .auth-mode-btn:disabled {
      display: none;
    }

    @media (max-width: 480px) {
      .auth-mode-switcher {
        right: 10px;
        bottom: 10px;
      }
    }

    .login-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 18px;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1.5px solid var(--border);
    }

    .login-tab {
      flex: 1;
      padding: 9px;
      background: none;
      border: none;
      font-weight: 600;
      font-size: 0.88em;
      color: var(--text-s);
    }

    .login-tab.active {
      background: var(--primary);
      color: #fff;
    }

    .auth-email-wrap {
      position: relative;
    }

    .auth-password-wrap {
      position: relative;
    }

    .auth-password-wrap input {
      padding-right: 44px;
    }

    .auth-password-toggle {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border: none;
      background: transparent;
      color: var(--text-s);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      cursor: pointer;
    }

    .auth-password-toggle:hover {
      color: var(--primary);
      background: rgba(99, 102, 241, 0.08);
    }

    .auth-password-toggle:active {
      transform: translateY(-50%) scale(0.95);
    }

    .google-login-btn {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: #FFFFFF !important;
      color: #111827 !important;
      border: 1.5px solid var(--primary, #111827) !important;
      box-shadow: none !important;
    }

    .google-login-btn i {
      font-size: 0.95em;
    }

    body.high-contrast .google-login-btn {
      background: #FFFFFF !important;
      color: #000000 !important;
      border: 2px solid #FFFFFF !important;
    }

    .google-service-sheet {
      position: fixed;
      top: var(--fe-viewport-offset-top, 0px);
      left: var(--fe-viewport-offset-left, 0px);
      width: var(--fe-viewport-width, 100vw);
      height: var(--fe-viewport-height, 100vh);
      background: rgba(0, 0, 0, 0.42);
      z-index: 260;
      display: none;
      align-items: flex-end;
      justify-content: center;
    }

    .google-service-sheet.open {
      display: flex;
    }

    .google-service-box {
      width: 100%;
      max-width: 480px;
      background: var(--card);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      border-top: 1px solid var(--border);
      padding: 14px 14px 18px;
      max-height: calc(var(--fe-viewport-height, 82vh) - 16px);
      overflow-y: auto;
      animation: drawerIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .google-service-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .google-service-title {
      font-size: 1em;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .google-service-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }

    .google-service-item {
      background: rgba(99, 102, 241, 0.05);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px;
    }

    .google-service-item-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .google-service-item-meta {
      min-width: 0;
    }

    .google-service-item-name {
      font-weight: 700;
      font-size: 0.9em;
    }

    .google-service-item-sub {
      color: var(--text-s);
      font-size: 0.78em;
      margin-top: 2px;
    }

    .google-service-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .google-service-status {
      margin-top: 10px;
      font-size: 0.78em;
      color: var(--text-s);
      white-space: pre-wrap;
      word-break: break-word;
    }

    .auth-email-suggest {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      z-index: 600;
      overflow: hidden;
      max-height: 210px;
      overflow-y: auto;
    }

    .auth-email-suggest-item {
      padding: 11px 14px;
      font-size: 0.9em;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid rgba(209, 213, 219, 0.35);
    }

    .auth-email-suggest-item:last-child {
      border-bottom: none;
    }

    .auth-email-suggest-item i {
      color: var(--primary);
      font-size: 0.9em;
      width: 16px;
      text-align: center;
    }

    .auth-email-suggest-item:hover,
    .auth-email-suggest-item.active {
      background: rgba(99, 102, 241, 0.1);
      color: var(--primary);
    }

    .auth-email-suggest-item .auth-email-likely {
      margin-left: auto;
      font-size: 0.68em;
      font-weight: 800;
      color: #10B981;
      background: rgba(16, 185, 129, 0.12);
      padding: 2px 8px;
      border-radius: 20px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    #login-feedback {
      font-size: 0.83em;
      margin-top: 10px;
      text-align: center;
      min-height: 18px;
      color: var(--red);
    }

    #login-feedback.ok {
      color: var(--green);
    }

    
    .fb-error-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 4px;
      width: 100%;
    }

    .fb-error-icon {
      font-size: 1.05em;
      color: var(--red);
      flex-shrink: 0;
      animation: fbShake 0.5s ease-in-out;
    }

    .fb-error-icon.animate-spin {
      animation: fbSpin 1.2s linear infinite;
    }

    .fb-error-icon.animate-pulse {
      animation: fbPulse 1.1s ease-in-out infinite;
    }

    .fb-error-icon.animate-wiggle {
      animation: fbWiggle 1s ease-in-out infinite;
    }

    .fb-error-text {
      flex: 1;
      min-width: 0;
      text-align: left;
      line-height: 1.4;
      word-break: break-word;
    }

    .fb-copy-btn {
      background: none;
      border: 1.5px solid var(--border);
      color: var(--text-s);
      border-radius: 10px;
      padding: 5px 9px;
      font-size: 0.85em;
      cursor: pointer;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .fb-copy-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      transform: scale(1.08);
    }

    .fb-copy-btn.copied {
      border-color: var(--green);
      color: var(--green);
    }

    
    .auth-submit-locked {
      background: var(--red) !important;
      color: #fff !important;
      cursor: not-allowed !important;
      pointer-events: auto !important;
      box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
      animation: fbShake 0.5s ease-in-out;
    }

    .auth-submit-locked:disabled {
      opacity: 1 !important;
    }

    .auth-lock-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      padding: 8px 12px;
      border-radius: 14px;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.28);
      color: var(--red);
      font-size: 0.82em;
      font-weight: 700;
      text-align: center;
      line-height: 1.4;
      width: 100%;
      justify-content: center;
    }

    .auth-lock-badge .auth-countdown {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      background: var(--red);
      color: #fff;
      border-radius: 10px;
      padding: 2px 8px;
      min-width: 34px;
      text-align: center;
    }

    body.dark .auth-lock-badge {
      background: rgba(239, 68, 68, 0.16);
    }

    @keyframes fbShake {

      0%,
      100% {
        transform: translateX(0);
      }

      20% {
        transform: translateX(-4px);
      }

      40% {
        transform: translateX(4px);
      }

      60% {
        transform: translateX(-3px);
      }

      80% {
        transform: translateX(3px);
      }
    }

    @keyframes fbSpin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes fbPulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.55;
        transform: scale(0.9);
      }
    }

    @keyframes fbWiggle {

      0%,
      100% {
        transform: rotate(0deg);
      }

      25% {
        transform: rotate(-12deg);
      }

      75% {
        transform: rotate(12deg);
      }
    }


    .app-version {
      text-align: center;
      font-size: 0.75em;
      color: var(--text-s);
      padding: 8px;
      opacity: 0.6;
    }

     
    .calc-mode-btn {
      padding: 6px 14px;
      border: 1.5px solid var(--border);
      background: var(--card);
      color: var(--text);
      border-radius: 20px;
      font-size: 0.82em;
      font-weight: 700;
      cursor: pointer;
      transition: background .15s, color .15s, border-color .15s;
    }
    .calc-mode-btn.active {
      background: var(--primary);
      border-color: transparent;
      color: #fff;
    }
    .calc-keys {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    #calc-keys-sci,
    #calc-keys-complex {
      grid-template-columns: repeat(6, 1fr);
    }

    .calc-key {
      padding: 0;
      min-height: 52px;
      border: 1.5px solid var(--border);
      background: var(--card);
      color: var(--text);
      border-radius: 16px;
      font-size: 1.05em;
      font-weight: 700;
      cursor: pointer;
      transition: filter .1s, transform .08s;
      touch-action: manipulation;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .calc-key:active { filter: brightness(.88); transform: scale(.95); }
    .calc-key.op     { background: rgba(99,102,241,.10); color: var(--primary); border-color: rgba(99,102,241,.25); }
    .calc-key.fn     { background: rgba(99,102,241,.06); color: var(--primary); font-size: .78em; min-height: 44px; }
    .calc-key.primary{ background: var(--primary); border-color: transparent; color: #fff; }
    .calc-key.danger { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); color: var(--red); }
    .calc-key.span2  { grid-column: span 2; }
     


    select {
      appearance: auto;
    }


    .spinner {
      display: inline-block;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }


    .empty-state {
      text-align: center;
      padding: 28px 10px;
      color: var(--text-s);
    }

    .empty-state i {
      font-size: 2.2em;
      display: block;
      margin-bottom: 10px;
      opacity: 0.35;
    }

    .empty-state p {
      font-size: 0.87em;
    }

    .cal-empty-suggest {
      display: grid;
      gap: 4px;
      width: min(420px, 100%);
      margin: 12px auto 0;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-left: 3px solid var(--primary);
      border-radius: 8px;
      background: color-mix(in srgb, var(--primary) 7%, var(--card));
      text-align: left;
    }

    .cal-empty-suggest[hidden],
    .cal-empty-actions[hidden],
    #cal-empty-use-suggestion[hidden] {
      display: none !important;
    }

    .cal-empty-suggest-label {
      color: var(--text-s);
      font-size: 0.76em;
      font-weight: 700;
    }

    #cal-empty-suggest-title {
      overflow-wrap: anywhere;
      color: var(--text);
      font-size: 0.94em;
    }

    .cal-empty-actions {
      display: flex;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      margin: 14px auto 0;
    }

    .cal-empty-actions .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: auto;
      min-height: 42px;
      margin: 0;
    }

    @media (max-width: 420px) {
      .cal-empty-actions { width: 100%; }
      .cal-empty-actions .btn { flex: 1 1 100%; }
    }



    .btn,
    .nav-btn,
    .task-item,
    .task-action-btn,
    .task-check,
    .card,
    .stat-box,
    .account-card-top,
    .filter-btn,
    .cal-day,
    .cal-nav,
    .swatch,
    .login-tab,
    .modal-overlay,
    .modal-box,
    .modal-close,
    input,
    textarea,
    select,
    a,
    #forgot-link {
      transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    }


    .btn:hover:not(:disabled) {
      filter: brightness(1.1);
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }

    .btn:active:not(:disabled) {
      transform: scale(0.97) translateY(0);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }

    #add-task-btn:hover:not(:disabled),
    #add-task-btn:active:not(:disabled) {
      transform: none;
    }

    #add-task-btn:hover:not(:disabled) {
      filter: none;
    }

    #add-task-btn:active:not(:disabled),
    #add-task-menu-btn:active {
      filter: brightness(0.96);
    }

    #add-task-menu-btn {
      transition: filter 150ms ease;
    }

    #add-task-menu-btn:hover {
      filter: brightness(1.04);
    }

    #add-task-menu-btn[aria-expanded="true"] {
      filter: brightness(.92);
      box-shadow: inset 0 0 0 2px rgba(255,255,255,.42);
    }

    #add-task-menu-btn:focus-visible {
      position: relative;
      z-index: 1;
      outline: 3px solid #0b6b3a;
      outline-offset: 3px;
    }

    .profile-photo-choice-note { margin:10px 0 0; color:var(--text-s); font-size:12px; line-height:1.4; }
    .profile-photo-choice-note[hidden] { display:none !important; }
    #profile-photo-choice-modal {
      z-index: 9600;
      align-items: flex-end;
      justify-content: center;
      padding: 0 12px max(12px, env(safe-area-inset-bottom));
      background: rgba(12, 20, 16, .42);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    #profile-photo-choice-modal.open { align-items: flex-end; }
    #profile-photo-choice-modal .profile-photo-choice-card {
      width: min(440px, 100%);
      max-height: calc(var(--fe-viewport-height, 100vh) - 24px - env(safe-area-inset-top));
      margin: 0 auto;
      padding: 24px 22px max(22px, env(safe-area-inset-bottom));
      border: 1px solid var(--border);
      border-radius: 24px 24px 18px 18px;
      box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
    }
    #profile-photo-choice-modal.open .profile-photo-choice-card {
      animation: profilePhotoSheetIn 240ms cubic-bezier(.22, 1, .36, 1) both;
    }
    body.reduce-motion #profile-photo-choice-modal.open .profile-photo-choice-card {
      animation: none !important;
      transition: none !important;
    }
    @keyframes profilePhotoSheetIn {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (min-width: 640px) {
      #profile-photo-choice-modal,
      #profile-photo-choice-modal.open { align-items: center; padding: 24px; }
      #profile-photo-choice-modal .profile-photo-choice-card {
        border-radius: 20px;
        padding: 26px;
      }
      #profile-photo-choice-modal.open .profile-photo-choice-card {
        animation: profilePhotoDialogIn 200ms ease-out both;
      }
    }
    @keyframes profilePhotoDialogIn {
      from { opacity: 0; transform: translateY(8px) scale(.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @media (prefers-reduced-motion: reduce) {
      #profile-photo-choice-modal.open .profile-photo-choice-card {
        animation: none !important;
        transition: none !important;
      }
    }
    #profile-photo-customize:disabled { cursor:not-allowed; opacity:.48; }
    .ifms-welcome-overlay {
      z-index: 9400;
      align-items: center;
      padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
      background: rgba(18, 31, 24, .56);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .ifms-welcome-card {
      width: min(520px, 100%);
      max-height: min(90vh, calc(var(--fe-viewport-height, 100vh) - 24px));
      padding: clamp(20px, 5vw, 30px);
      border: 1px solid rgba(11, 107, 58, .16);
      border-radius: 26px;
      background: var(--card);
      box-shadow: 0 24px 80px rgba(9, 48, 28, .28);
      overflow-y: auto;
    }

    .ifms-welcome-stage[hidden] { display:none !important; }
    .ifms-welcome-step { margin:0 0 7px; color:#0b6b3a; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
    .ifms-welcome-card h2 { margin:0 0 8px; color:var(--text); font-size:clamp(22px, 5vw, 28px); line-height:1.15; }
    .ifms-welcome-copy { margin:0 0 18px; color:var(--text-s); font-size:14px; line-height:1.5; }
    .ifms-photo-picker { display:flex; align-items:center; gap:14px; padding:13px; border:1px solid var(--border); border-radius:18px; background:var(--bg-card); }
    .ifms-photo-preview { display:grid; place-items:center; width:70px; height:70px; flex:none; overflow:hidden; border:3px solid #d7eadf; border-radius:50%; color:#0b6b3a; background:#e9f2ec; font-size:25px; }
    .ifms-photo-preview img { display:block; width:100%; height:100%; object-fit:cover; }
    .ifms-photo-actions { display:grid; gap:7px; min-width:0; }
    .ifms-avatar-choice:active { transform:scale(.97); }
    .ifms-photo-actions strong { color:var(--text); font-size:13px; line-height:1.35; }
    .ifms-avatar-heading { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:19px 1px 10px; }
    .ifms-avatar-heading strong { color:var(--text); font-size:13px; }
    .ifms-avatar-heading span { color:var(--text-s); font-size:11px; }
    .ifms-avatar-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
    .ifms-avatar-choice { display:grid; place-items:center; aspect-ratio:1; min-width:0; padding:4px; border:2px solid transparent; border-radius:20px; background:#f1f4f2; transition:border-color .16s, background .16s, transform .16s; }
    .ifms-avatar-choice img { display:block; width:100%; height:100%; border-radius:15px; object-fit:cover; }
    .ifms-avatar-choice:hover { background:#e8f1ea; }
    .ifms-avatar-choice.selected, .ifms-avatar-choice:focus-visible { border-color:#0b6b3a; background:#e5f0e9; outline:none; box-shadow:0 0 0 3px rgba(11,107,58,.13); }
    .ifms-welcome-status { min-height:18px; margin:9px 1px 0; color:#57695e; font-size:12px; line-height:1.4; }
    .ifms-welcome-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:15px; }
    .ifms-welcome-actions button { min-height:44px; width:auto; margin:0; border-radius:13px; }
    .ifms-welcome-skip { padding:10px 14px; border:1px solid var(--border); color:var(--text-s); background:var(--card); font-size:13px; font-weight:700; }
    #ifms-welcome-save-photo { padding:10px 17px; border-color:#0b6b3a; background:#0b6b3a; }
    #ifms-welcome-save-photo:disabled { cursor:not-allowed; opacity:.48; }
    .ifms-profile-photo-edit { margin:0; border-color:#a8cbb3; color:#145a36; }
    .ifms-profile-photo-edit[hidden] { display:none !important; }
    .profile-avatar-gallery-open { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; margin:14px 0 0; border:1px solid var(--border); border-radius:12px; color:var(--text); background:var(--bg-card); font-size:13px; font-weight:750; }
    .profile-avatar-gallery-open i { color:var(--primary); }
    .profile-avatar-gallery-overlay { z-index:9500; padding:12px; }
    .profile-avatar-gallery-overlay.open { align-items:center; }
    .profile-avatar-gallery-overlay.open .profile-avatar-gallery-card { animation:none !important; transform:none !important; }
    .profile-avatar-gallery-card { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; width:min(1040px,calc(var(--fe-viewport-width,100vw) - 24px)); max-width:1040px; height:min(900px,calc(var(--fe-viewport-height,100vh) - 24px)); max-height:min(900px,calc(var(--fe-viewport-height,100vh) - 24px)); margin:auto; padding:clamp(16px,3vw,28px); border-radius:20px; overflow:hidden; }
    .profile-avatar-gallery-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-bottom:14px; border-bottom:1px solid var(--border); }
    .profile-avatar-gallery-header h2 { margin:0 0 5px; font-size:21px; }
    .profile-avatar-gallery-header p:last-child { margin:0; color:var(--text-s); font-size:13px; }
    .profile-avatar-filters { display:flex; flex-wrap:nowrap; gap:7px; min-width:0; margin-top:12px; padding:0 0 4px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; scrollbar-width:none; cursor:grab; touch-action:pan-x; user-select:none; -webkit-overflow-scrolling:touch; }
    .profile-avatar-filters::-webkit-scrollbar { display:none; width:0; height:0; }
    .profile-avatar-filters.is-dragging { cursor:grabbing; scroll-behavior:auto; }
    .profile-avatar-filters.is-dragging .profile-avatar-filter { pointer-events:none; }
    .profile-avatar-filter { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:0 0 auto; min-height:38px; padding:7px 11px; border:1px solid var(--border); border-radius:999px; color:var(--text-s); background:var(--bg-card); font-size:12px; font-weight:750; white-space:nowrap; }
    .profile-avatar-filter i { color:var(--primary); }
    .profile-avatar-filter.active { border-color:var(--primary); color:var(--primary); background:color-mix(in srgb,var(--primary) 12%,var(--card)); }
    .profile-avatar-gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(98px,1fr)); align-content:start; gap:11px; min-height:0; margin:16px 0 8px; padding:2px 4px 8px 2px; overflow:auto; overscroll-behavior:contain; }
    .profile-avatar-gallery-grid .ifms-avatar-choice[hidden] { display:none !important; }
    .profile-avatar-gallery-grid .ifms-avatar-choice { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; aspect-ratio:1/1.12; padding:8px; border:2px solid transparent; border-radius:14px; background:var(--bg-card); }
    .profile-avatar-gallery-grid .ifms-avatar-choice img { width:min(100%,86px); aspect-ratio:1; border-radius:50%; object-fit:cover; }
    .avatar-choice-name { display:-webkit-box; width:100%; max-height:2.5em; overflow:hidden; color:var(--text-s); font-size:10px; font-weight:750; line-height:1.25; text-align:center; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
    .profile-avatar-gallery-grid .ifms-avatar-choice.selected { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 10%,var(--card)); box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 18%,transparent); }
    .profile-avatar-gallery-actions { display:flex; justify-content:flex-end; gap:9px; padding-top:10px; border-top:1px solid var(--border); }
    .profile-avatar-gallery-actions button { width:auto; min-width:112px; min-height:42px; margin:0; }
    #profile-avatar-gallery-use:disabled { cursor:not-allowed; opacity:.5; }
    #profile-avatar-gallery-status { min-height:18px; margin:2px 1px 7px; }
    html[lang="ar-SA"] .avatar-choice-name { direction:rtl; }
    @media (max-width: 420px) {
      .ifms-welcome-overlay { padding-right:10px; padding-left:10px; }
      .ifms-welcome-card { padding:20px 16px; border-radius:23px; }
      .ifms-avatar-grid { gap:7px; }
      .ifms-avatar-choice { padding:3px; border-radius:17px; }
      .ifms-avatar-choice img { border-radius:13px; }
      .profile-avatar-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
      .profile-avatar-gallery-grid .ifms-avatar-choice { padding:6px 4px; }
      .profile-avatar-filter { min-height:36px; padding:6px 9px; font-size:11px; }
      .profile-avatar-gallery-actions button { flex:1; min-width:0; }
    }
    @media (max-width: 600px) {
      .profile-avatar-filters { display:flex; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; }
      .profile-avatar-filter { flex:0 0 auto; min-width:max-content; gap:5px; padding:6px 9px; font-size:10px; }
      .profile-avatar-filter span { overflow-wrap:normal; text-align:center; }
    }


    .nav-btn:hover {
      transform: scale(1.08);
      color: var(--primary);
      background: rgba(99, 102, 241, 0.08);
    }

    .nav-btn:active {
      transform: scale(0.95);
    }


    .task-item {
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
    }

    .task-item:hover {
      transform: translateX(4px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    }

    .task-item:active {
      transform: scale(0.99) translateX(2px);
    }


    .task-action-btn {
      transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    }

    .task-action-btn:hover {
      transform: scale(1.15);
      background: rgba(99, 102, 241, 0.08);
    }

    .task-action-btn.del:hover {
      background: rgba(239, 68, 68, 0.08);
    }

    .task-action-btn:active {
      transform: scale(0.90);
    }


    .task-check {
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;
    }

    .task-check:hover {
      transform: scale(1.25);
      border-color: var(--primary);
    }

    .task-check:active {
      transform: scale(0.85);
    }


    .card:hover,
    .stat-box:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    .account-card-top:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    }


    .filter-btn {
      transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .filter-btn:hover:not(.active) {
      transform: scale(1.03);
      background: rgba(99, 102, 241, 0.08);
      border-color: var(--primary-lt);
      color: var(--primary);
    }

    .filter-btn:active:not(.active) {
      transform: scale(0.96);
    }


    .cal-day:not(.empty) {
      transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .cal-day:not(.empty):hover {
      transform: scale(1.12);
      background: rgba(99, 102, 241, 0.12);
      color: var(--primary);
      font-weight: 700;
    }

    .cal-day:not(.empty):active {
      transform: scale(0.92);
    }


    .cal-nav {
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .cal-nav:hover {
      transform: scale(1.15);
      background: rgba(99, 102, 241, 0.1);
    }

    .cal-nav:active {
      transform: scale(0.90);
    }


    .swatch {
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .swatch:hover {
      transform: scale(1.2);
      box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    }

    .swatch:active {
      transform: scale(0.90);
    }


    .login-tab {
      transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .login-tab:hover:not(.active) {
      background: rgba(99, 102, 241, 0.06);
    }

    .login-tab:active {
      transform: scale(0.98);
    }


    @keyframes modalFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes modalSlideUp {
      from {
        transform: translateY(40px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes taskQrFrameSuccess {
      45% { transform: scale(1.015); }
      100% { transform: scale(1); }
    }

    @keyframes taskQrCheckPop {
      to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

    @keyframes taskQrStatusPulse {
      50% { transform: scale(1.025); }
    }

    @media (prefers-reduced-motion: reduce) {
      .task-qr-camera-frame.is-detected,
      .task-qr-camera-frame.is-detected .task-qr-scan-check,
      #task-qr-scanner.is-detected .task-qr-scanner-status { animation-duration: 1ms; }
    }

    .modal-overlay.open {
      animation: modalFadeIn 0.25s ease-out forwards;
    }

    .modal-overlay.open .modal-box {
      animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    #marketplace-install-modal {
      display: none;
      position: fixed;
      top: var(--fe-viewport-offset-top, 0px);
      left: var(--fe-viewport-offset-left, 0px);
      width: var(--fe-viewport-width, 100vw);
      height: var(--fe-viewport-height, 100vh);
      z-index: 2147483000 !important;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(3, 7, 18, 0.78);
      overflow-y: auto;
    }

    #marketplace-install-modal.open {
      display: flex !important;
    }

    #marketplace-install-modal .modal-box {
      width: min(100%, 520px);
      max-height: calc(var(--fe-viewport-height, 100vh) - 32px);
      margin: auto;
      border-radius: 22px;
      overflow-y: auto;
      box-sizing: border-box;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    }


    .modal-close {
      transition: transform 0.2s ease, color 0.2s ease;
    }

    .modal-close:hover {
      transform: rotate(90deg);
      color: var(--red);
    }


    input,
    textarea,
    select {
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    input:hover,
    textarea:hover,
    select:hover {
      border-color: var(--primary-lt);
    }

    input:focus,
    textarea:focus,
    select:focus {
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
      transform: translateY(-1px);
    }


    a:hover,
    #forgot-link:hover {
      opacity: 0.8;
      text-decoration: underline;
    }

    a:active,
    #forgot-link:active {
      transform: scale(0.98);
    }


    @media (hover: hover) and (pointer: fine) {

      body.custom-cursor,
      body.custom-cursor * {
        cursor: none !important;
      }

      #cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
        mix-blend-mode: difference;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
      }

      #cursor-dot i {
        display: none;
        color: var(--primary);
        line-height: 1;
      }

      body.cursor-icon-mode #cursor-dot {
        background: transparent !important;
        border-radius: 0;
        mix-blend-mode: normal;
        width: 16px !important;
        height: 16px !important;
      }

      body.cursor-icon-mode.cursor-hover #cursor-dot,
      body.cursor-icon-mode.cursor-click #cursor-dot {
        width: 16px !important;
        height: 16px !important;
        background: transparent !important;
      }

      body.cursor-icon-mode #cursor-dot i {
        display: inline-block;
        color: var(--primary);
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.75)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
        transform-origin: center;
        transition: transform 0.14s ease, filter 0.14s ease, color 0.14s ease;
      }

      body.cursor-icon-mode.cursor-hover #cursor-dot i {
        transform: scale(1.12);
      }

      body.cursor-icon-mode.cursor-click #cursor-dot i {
        transform: scale(0.76) rotate(-10deg);
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 0 rgba(0,0,0,0));
      }

      body.cursor-icon-mode #cursor-ring {
        display: none !important;
      }

      #cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, background 0.2s;
        opacity: 0.6;
      }


      body.cursor-hover #cursor-dot {
        width: 12px;
        height: 12px;
        background: var(--primary);
      }

      body.cursor-hover #cursor-ring {
        width: 48px;
        height: 48px;
        border-color: var(--primary);
        background: rgba(99, 102, 241, 0.08);
        opacity: 0.8;
      }

      body.cursor-click #cursor-dot {
        width: 4px;
        height: 4px;
      }

      body.cursor-click #cursor-ring {
        width: 28px;
        height: 28px;
        border-color: var(--primary-dk);
        opacity: 1;
      }
    }


    @media (hover: none) and (pointer: coarse) {


      #cursor-dot,
      #cursor-ring {
        display: none !important;
      }


      body.custom-cursor.cursor-touch #cursor-dot,
      body.custom-cursor.cursor-touch #cursor-ring {
        display: block !important;
      }
    }

    #login-overlay {
      background: transparent !important;
      animation: none !important;
    }

    #login-overlay::before {
      display: none !important;
      background: none !important;
    }

    #login-overlay,
    #login-overlay * {
      animation: none !important;
      transition: none !important;
    }

    body.login-open > *:not(#login-overlay):not(.modal-overlay.open),
    body.login-open > *:not(#login-overlay):not(.modal-overlay.open) * {
      animation-play-state: paused !important;
    }

    .login-support-wrap {
      border-top: 1px solid var(--border);
    }

    .grecaptcha-badge {
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .recaptcha-attribution {
      margin: 10px 0 0;
      color: var(--text-s);
      font-size: 11px;
      line-height: 1.5;
      text-align: center;
    }

    .recaptcha-attribution a {
      color: var(--primary);
      text-underline-offset: 2px;
    }

    .login-support-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--primary);
      font-size: 12.5px;
      text-decoration: none;
    }

    .login-support-link:hover {
      color: var(--primary-dk);
      border-color: var(--primary);
      background: rgba(99, 102, 241, 0.08);
    }

    body.dark .login-support-link {
      color: #a5b4fc;
      border-color: rgba(255, 255, 255, 0.18);
    }

    body.dark .login-support-link:hover {
      color: #c7d2fe;
      border-color: rgba(165, 180, 252, 0.55);
      background: rgba(99, 102, 241, 0.12);
    }

    #github-access-btn {
      color: var(--text);
    }

    #github-access-btn .fa-github {
      color: currentColor;
    }

    #twitter-access-btn {
      color: var(--text);
    }

    .auth-submit-split {
      display: flex;
      align-items: stretch;
      width: 100%;
      margin-top: 2px;
      overflow: hidden;
      border-radius: 14px;
      background: #3569e8;
      box-shadow: 0 7px 16px rgba(53,105,232,.18);
    }

    .auth-submit-split #auth-submit-btn {
      display: inline-flex;
      flex: 1 1 auto;
      align-items: center;
      justify-content: center;
      width: auto;
      min-width: 0;
      margin: 0;
      border-radius: 0;
      box-shadow: none;
      transform: none;
      text-align: center;
    }

    .auth-submit-divider {
      width: 1px;
      flex: 0 0 1px;
      margin: 9px 0;
      background: rgba(255,255,255,.35);
    }

    .login-social-menu-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex: 0 0 50px;
      width: 50px;
      min-height: 50px;
      padding: 0;
      border: 0;
      border-radius: 0;
      color: #fff;
      background: var(--primary);
      cursor: pointer;
      transition: filter 150ms ease, box-shadow 150ms ease;
    }

    .login-social-menu-trigger > span {
      width: 4px;
      height: 4px;
      flex: 0 0 4px;
      border-radius: 50%;
      background: currentColor;
    }

    .login-social-menu-trigger:hover { filter: brightness(1.06); }
    .login-social-menu-trigger[aria-expanded="true"] { filter: brightness(.92); box-shadow: inset 0 0 0 2px rgba(255,255,255,.42); }
    .login-social-menu-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 3px; }
    .login-social-menu-hint { color: var(--text-s); font-size: .72em; text-align: center; }
    #login-social-menu .add-task-menu-item { min-height: 42px; }

    body.dark #github-access-btn {
      color: #F9FAFB;
      background: #1F2937 !important;
      border-color: #4B5563 !important;
    }

    body.dark #twitter-access-btn {
      color: #F9FAFB;
      background: #1F2937 !important;
      border-color: #4B5563 !important;
    }

    body.dark #github-access-btn:hover:not(:disabled) {
      background: #374151 !important;
    }

    body.dark #twitter-access-btn:hover:not(:disabled) {
      background: #374151 !important;
    }

@keyframes __shake {
      0%,100%{transform:translateX(0)}
      20%{transform:translateX(-6px)}
      40%{transform:translateX(6px)}
      60%{transform:translateX(-4px)}
      80%{transform:translateX(4px)}
    }