/* ==========================================================================
   TickTick Desktop v8.0.0.1 — Reconstrução Visual Fiel (REA Verified)
   Fontes, Cores e Layouts extraídos de C:\Program Files (x86)\TickTick\TickTick.exe
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Medium.ttf') format('truetype'), url('/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.ttf') format('truetype'), url('/fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'CountdownNumber';
  src: url('/extracted/assets/fonts/countdown_number.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --tt-primary: #4772FA;
  --tt-primary-hover: #3461ED;
  --tt-primary-alpha: rgba(71, 114, 250, 0.12);
  --tt-rail-bg: #262F4E;
  --tt-rail-text: rgba(255, 255, 255, 0.72);
  --tt-rail-active: #FFFFFF;
  --tt-sidebar-bg: #F6F8FC;
  --tt-sidebar-hover: rgba(25, 25, 25, 0.05);
  --tt-sidebar-active: rgba(71, 114, 250, 0.14);
  --tt-bg-window: #EEF1F6;
  --tt-bg-main: #FFFFFF;
  --tt-bg-detail: #FFFFFF;
  --tt-bg-elevated: #FFFFFF;
  --tt-bg-subtle: #F7F8FA;
  --tt-text-main: #191919;
  --tt-text-secondary: #535353;
  --tt-text-muted: #8A8F99;
  --tt-border: rgba(0, 0, 0, 0.075);
  --tt-border-strong: rgba(0, 0, 0, 0.13);
  --tt-prio-high: #F54A45;
  --tt-prio-med: #FFB000;
  --tt-prio-low: #4772FA;
  --tt-prio-none: #A3A3A3;
  --tt-success: #00C598;
  --tt-warning: #FFAE58;
  --tt-danger: #EF2D24;
  --tt-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --tt-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --tt-shadow-lg: 0 16px 42px rgba(15, 23, 42, 0.2);
  --tt-radius: 8px;
  --tt-banner-img: none;
}

/* Dark Theme (ThemeKey.Dark / Ebony) */
body[data-theme-mode="dark"] {
  --tt-rail-bg: #17171A;
  --tt-sidebar-bg: #1F1F23;
  --tt-sidebar-hover: rgba(255, 255, 255, 0.06);
  --tt-sidebar-active: rgba(109, 145, 255, 0.2);
  --tt-bg-window: #121215;
  --tt-bg-main: #19191D;
  --tt-bg-detail: #1C1C21;
  --tt-bg-elevated: #26262C;
  --tt-bg-subtle: #222227;
  --tt-text-main: #F2F3F5;
  --tt-text-secondary: #B5B8C0;
  --tt-text-muted: #7D7F84;
  --tt-border: rgba(255, 255, 255, 0.08);
  --tt-border-strong: rgba(255, 255, 255, 0.16);
  --tt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --tt-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  color: var(--tt-text-main);
  background: var(--tt-bg-window);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(130, 136, 148, 0.28);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 136, 148, 0.48);
}

/* ==========================================================================
   MainWindow Container & Titlebar (ticktick_WPF.Views.MainWindow)
   ========================================================================== */
.tt-app-window {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: var(--tt-bg-window);
  background-image: var(--tt-banner-img);
  background-size: cover;
  background-position: center;
  position: relative;
}

.tt-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  background: var(--tt-rail-bg);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  z-index: 50;
}

.tt-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.tt-titlebar-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.tt-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FFD54D, #FF9800);
  color: #191919;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
}

.tt-badge-rea {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s;
}
.tt-badge-rea:hover {
  background: rgba(255, 255, 255, 0.22);
}

.tt-titlebar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-global-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 240px;
  justify-content: space-between;
  transition: background 0.15s;
}
.tt-global-search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.tt-kbd {
  font-size: 10.5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  opacity: 0.85;
}

.tt-titlebar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tt-win-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  transition: background 0.15s, color 0.15s;
}
.tt-win-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFF;
}
.tt-win-btn.close:hover {
  background: #E81123;
  color: #FFF;
}

/* ==========================================================================
   Main Body Workspace (LeftMenuBar + Module Container)
   ========================================================================== */
.tt-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Card Style vs Flat Style (from MainWindow fields: cardMargin, withRadius) */
body[data-interface-style="card"] .tt-module-stage {
  padding: 8px 10px 10px 8px;
  gap: 8px;
}
body[data-interface-style="card"] .tt-sidebar-pane,
body[data-interface-style="card"] .tt-center-pane,
body[data-interface-style="card"] .tt-detail-pane,
body[data-interface-style="card"] .tt-full-pane {
  border-radius: 12px;
  box-shadow: var(--tt-shadow-sm);
  border: 1px solid var(--tt-border);
}

/* ==========================================================================
   LeftMenuBar (ticktick_WPF.Views.TabBar.LeftMenuBar)
   ========================================================================== */
.tt-left-rail {
  width: 50px;
  background: var(--tt-rail-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 30;
  transition: width 0.18s cubic-bezier(0.2, 0, 0, 1), padding 0.18s ease;
}

.tt-left-rail.expanded {
  width: 175px;
  align-items: stretch;
  padding: 10px 8px;
}

.tt-rail-top, .tt-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.tt-left-rail.expanded .tt-rail-top,
.tt-left-rail.expanded .tt-rail-bottom {
  align-items: stretch;
}

.tt-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  cursor: pointer;
  align-self: center;
}
.tt-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.tt-avatar-crown {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 15px;
  height: 15px;
}

/* Espaços de Trabalho (Switcher Button) */
.tt-space-switcher-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  cursor: pointer;
}
.tt-space-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18);
}
.tt-space-icon-badge {
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tt-space-caret {
  width: 14px;
  height: 14px;
  display: none;
  margin-left: auto;
  opacity: 0.6;
}
.tt-left-rail.expanded .tt-space-caret {
  display: inline-block;
}

.tt-rail-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-rail-text);
  transition: background 0.15s ease, color 0.15s ease, width 0.18s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
.tt-rail-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}
.tt-rail-btn.active {
  color: var(--tt-rail-active);
  background: var(--tt-primary);
  box-shadow: 0 4px 12px rgba(71, 114, 250, 0.35);
}
.tt-rail-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tt-rail-label {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.tt-left-rail.expanded .tt-rail-btn {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 6px;
}

.tt-left-rail.expanded .tt-rail-label {
  display: inline-block;
}

/* Inversão da seta de expandir/recolher */
.tt-left-rail.expanded #tt-rail-expand-arrow {
  transform: scaleX(-1);
  transform-origin: 14.5px 12px;
}

.tt-rail-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5252;
}

@keyframes tt-spin {
  to { transform: rotate(360deg); }
}
.tt-syncing svg {
  animation: tt-spin 0.8s linear infinite;
}

/* ==========================================================================
   Workspace / Espaços Popover & Modal
   ========================================================================== */
.tt-workspace-popover {
  position: absolute;
  left: 54px;
  top: 48px;
  width: 260px;
  background: #232328;
  border: 1px solid #363640;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  overflow: hidden;
  animation: ttFadeDown 0.15s ease-out;
}
.tt-left-rail.expanded ~ * .tt-workspace-popover,
.tt-app-window .tt-workspace-popover.expanded-rail-pos {
  left: 180px;
}

.tt-ws-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tt-ws-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}
.tt-ws-header-subtitle {
  font-size: 11px;
  color: #8A8F99;
  margin-top: 2px;
}

.tt-ws-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}

.tt-ws-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
  color: #CCCCCC;
}
.tt-ws-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.tt-ws-item.active {
  background: rgba(71, 114, 250, 0.15);
  color: #FFFFFF;
  font-weight: 600;
}

.tt-ws-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.tt-ws-item-icon {
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-ws-item-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-ws-item-active-check {
  font-size: 14px;
  color: #4772FA;
}
.tt-ws-item-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tt-ws-item-edit-btn,
.tt-ws-item-del-btn {
  font-size: 11px;
  color: #8A8F99;
  padding: 2px 5px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
  transition: all 0.12s ease;
  line-height: 1;
}
.tt-ws-item:hover .tt-ws-item-edit-btn,
.tt-ws-item:hover .tt-ws-item-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tt-ws-item-edit-btn:hover {
  color: #4772FA;
  background: rgba(71, 114, 250, 0.15);
}
.tt-ws-item-del-btn:hover {
  color: #FF5252;
  background: rgba(255, 82, 82, 0.15);
}

.tt-ws-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

.tt-ws-footer {
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tt-ws-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #8A8F99;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tt-ws-add-btn:hover {
  background: rgba(71, 114, 250, 0.1);
  color: #4772FA;
  border-color: #4772FA;
}

.tt-space-emoji-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.tt-space-emoji-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.tt-space-emoji-pill.active {
  background: rgba(71, 114, 250, 0.2);
  border-color: #4772FA;
  box-shadow: 0 0 0 2px rgba(71, 114, 250, 0.35);
}

.tt-space-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.12s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.tt-space-color-dot:hover {
  transform: scale(1.15);
}
.tt-space-color-dot.active {
  border-color: #FFFFFF;
  transform: scale(1.2);
}

/* ==========================================================================
   Space Modal (Sólido, Opaco, Sem transparência indesejada & Upload de Logo)
   ========================================================================== */
.tt-space-modal {
  width: 500px !important;
  max-width: 95vw !important;
  max-height: 86vh !important;
  background: #1C1C21 !important;
  border: 1px solid #363640 !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  color: #FFFFFF !important;
  position: relative;
}

.tt-space-modal .tt-modal-header {
  flex-shrink: 0 !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #1C1C21 !important;
}

.tt-space-modal .tt-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.tt-space-modal .tt-modal-body::-webkit-scrollbar {
  width: 6px;
}
.tt-space-modal .tt-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.tt-space-modal .tt-modal-footer {
  flex-shrink: 0 !important;
  padding: 12px 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #16161A !important;
}

.tt-modal-dialog {
  width: 480px;
  max-width: 95vw;
  max-height: 86vh;
  background: #1C1C21 !important;
  border: 1px solid #363640 !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #FFFFFF;
}

.tt-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-space-modal-preview {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.tt-space-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Upload de Logo do Espaço */
.tt-space-logo-uploader-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-space-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #141417;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}
.tt-space-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-btn-upload-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}
.tt-btn-upload-logo:hover {
  background: rgba(71, 114, 250, 0.2);
  border-color: #4772FA;
  color: #FFFFFF;
}

.tt-btn-remove-logo {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: #FF5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.tt-btn-remove-logo:hover {
  background: rgba(255, 82, 82, 0.12);
}

/* Miniaturas de Logo na Barra Lateral e Popover */
.tt-space-rail-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.tt-space-ws-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Module Stage & 3-Column Task Layout (ListViewContainer)
   ========================================================================== */
.tt-module-stage {
  display: flex !important;
  flex-direction: row !important;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tt-bg-window);
  position: relative;
}

.tt-sidebar-pane {
  width: 245px;
  min-width: 190px;
  max-width: 340px;
  background: var(--tt-sidebar-bg);
  border-right: 1px solid var(--tt-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.18s ease;
}
.tt-sidebar-pane.collapsed {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  border-right: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tt-sidebar-pane.collapsed + .tt-resizer-left {
  display: none !important;
}

.hidden {
  display: none !important;
}

.tt-sublists-container.hidden {
  display: none !important;
}

.tt-center-pane {
  flex: 1;
  min-width: 340px;
  background: var(--tt-bg-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tt-detail-pane {
  width: 390px;
  min-width: 300px;
  max-width: 540px;
  background: var(--tt-bg-detail);
  border-left: 1px solid var(--tt-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.tt-detail-pane.hidden {
  display: none;
}

.tt-full-pane {
  flex: 1;
  background: var(--tt-bg-main);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* ==========================================================================
   ProjectListView (Smart Lists, Lists, Folders, Tags, Filters)
   ========================================================================== */
.tt-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px 14px;
}

.tt-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--tt-text-main);
  font-size: 13.5px !important;
  font-weight: 500;
  letter-spacing: normal !important;
  cursor: pointer;
  margin-bottom: 1px;
  transition: background 0.12s;
}
.tt-nav-item:hover {
  background: var(--tt-sidebar-hover);
}
.tt-nav-item.active {
  background: var(--tt-sidebar-active);
  color: var(--tt-primary);
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

.tt-nav-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  margin-right: 10px;
}
.tt-nav-left span.tt-nav-label {
  font-size: 13.5px !important;
  font-weight: inherit;
  letter-spacing: normal !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-nav-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tt-text-secondary);
}
.tt-nav-item.active .tt-nav-icon {
  color: var(--tt-primary);
}

.tt-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-nav-count {
  font-size: 11.5px;
  color: var(--tt-text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.tt-sidebar-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--tt-text-muted);
}
.tt-sidebar-add-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-text-muted);
  font-size: 15px;
}
.tt-sidebar-add-btn:hover {
  background: var(--tt-sidebar-hover);
  color: var(--tt-text-main);
}

.tt-sidebar-divider {
  height: 1px;
  background: var(--tt-border);
  margin: 8px 6px;
}

/* ==========================================================================
   TaskView Header & QuickAdd (Views.MainListView.TaskView & Views.QuickAdd)
   ========================================================================== */
.tt-main-header {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tt-border);
  flex-shrink: 0;
}

.tt-header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tt-header-title {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-view-switcher {
  display: inline-flex;
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  padding: 2px;
  border-radius: 7px;
  gap: 2px;
}

.tt-view-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tt-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s;
}
.tt-view-btn:hover {
  color: var(--tt-text-main);
}
.tt-view-btn.active {
  background: var(--tt-bg-elevated);
  color: var(--tt-primary);
  box-shadow: var(--tt-shadow-sm);
  font-weight: 600;
}

.tt-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-text-secondary);
  transition: background 0.12s, color 0.12s;
}
.tt-icon-btn:hover {
  background: var(--tt-sidebar-hover);
  color: var(--tt-text-main);
}
.tt-icon-btn.active {
  color: var(--tt-primary);
  background: var(--tt-primary-alpha);
}

/* Quick Add Bar with NLP SmartDate preview */
.tt-quick-add-box {
  margin: 12px 18px 8px;
  background: var(--tt-bg-subtle);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.15s;
}
.tt-quick-add-box:focus-within {
  background: var(--tt-bg-elevated);
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px var(--tt-primary-alpha);
}

.tt-quick-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-quick-add-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--tt-text-main);
}
.tt-quick-add-input::placeholder {
  color: var(--tt-text-muted);
}

.tt-quick-add-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--tt-border);
  font-size: 11.5px;
}

.tt-nlp-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--tt-primary-alpha);
  color: var(--tt-primary);
}
.tt-chip.prio-5 { background: rgba(245, 74, 69, 0.14); color: var(--tt-prio-high); }
.tt-chip.prio-3 { background: rgba(255, 176, 0, 0.16); color: #D48800; }
.tt-chip.prio-1 { background: rgba(71, 114, 250, 0.14); color: var(--tt-prio-low); }
.tt-chip.tag { background: rgba(0, 197, 152, 0.14); color: #009E7A; }

/* ==========================================================================
   Task List Sections & Rows (TaskListView)
   ========================================================================== */
.tt-task-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 28px;
}

.tt-section-group {
  margin-bottom: 12px;
}

.tt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-text-secondary);
  cursor: pointer;
}
.tt-section-header:hover {
  color: var(--tt-text-main);
}
.tt-sec-title {
  flex: 1;
  text-align: left;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 7px;
  border-bottom: 1px solid var(--tt-border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
  gap: 8px;
  position: relative;
}
/* Priority on row itself no longer controls border-left (border-left is reserved for list color in smart lists) */
.tt-task-row.prio-5,
.tt-task-row.prio-3,
.tt-task-row.prio-1,
.tt-task-row.prio-0 {
  /* Lateral border-left is handled by list color only in smart lists */
}
.tt-task-row:hover {
  background: var(--tt-sidebar-hover);
}
.tt-task-row.selected {
  background: var(--tt-sidebar-active);
}
.tt-task-row.completed .tt-task-title {
  text-decoration: line-through;
  color: var(--tt-text-muted);
}
.tt-task-row.completed .tt-due-label,
.tt-due-label.completed {
  color: var(--tt-text-muted) !important;
  opacity: 0.75;
}
.tt-task-row.abandoned .tt-task-title {
  text-decoration: line-through;
  color: var(--tt-text-muted);
  font-style: italic;
}

/* Drag Handle na Linha da Tarefa (media_1792685131996_ef3418ef.png) */
.tt-task-drag-handle {
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7A7E85;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.12s ease;
  flex-shrink: 0;
  user-select: none;
  z-index: 2;
}
.tt-task-drag-handle:active {
  cursor: grabbing;
}
.tt-task-row:hover .tt-task-drag-handle {
  opacity: 0.85;
}
.tt-task-drag-handle:hover {
  opacity: 1 !important;
  color: #FFFFFF;
}

/* Botão de Mais Opções "···" na Linha da Tarefa (media_1792685185106_3608be2d.png) */
.tt-task-more-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.12s ease;
  padding: 0;
  margin-left: 4px;
  flex-shrink: 0;
}
.tt-task-row:hover .tt-task-more-btn,
.tt-task-row.selected .tt-task-more-btn {
  opacity: 0.8;
}
.tt-task-more-btn:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Drag & Drop Feedback visual */
.tt-task-row.tt-dragging {
  opacity: 0.45;
  background: #1C1C21 !important;
}
.tt-task-row.tt-drag-over-top {
  border-top: 2px solid #2C7DF8 !important;
}
.tt-task-row.tt-drag-over-bottom {
  border-bottom: 2px solid #2C7DF8 !important;
}

.tt-task-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

/* Priority Checkbox (PriorityUtils: 5=#F54A45, 3=#FFB000, 1=#4772FA, 0=#A3A3A3) */
.tt-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.8px solid var(--tt-prio-none);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.14s;
  background: transparent;
}
.tt-checkbox.prio-5 { border-color: var(--tt-prio-high); background: rgba(245, 74, 69, 0.08); }
.tt-checkbox.prio-3 { border-color: var(--tt-prio-med); background: rgba(255, 176, 0, 0.08); }
.tt-checkbox.prio-1 { border-color: var(--tt-prio-low); background: rgba(71, 114, 250, 0.08); }

.tt-checkbox.checked {
  background: var(--tt-prio-none) !important;
  border-color: var(--tt-prio-none) !important;
  color: #FFF;
}
.tt-checkbox.checked.prio-5 { background: var(--tt-prio-high) !important; border-color: var(--tt-prio-high) !important; }
.tt-checkbox.checked.prio-3 { background: var(--tt-prio-med) !important; border-color: var(--tt-prio-med) !important; }
.tt-checkbox.checked.prio-1 { background: var(--tt-prio-low) !important; border-color: var(--tt-prio-low) !important; }

.tt-checkbox.abandoned {
  background: rgba(130, 130, 130, 0.25) !important;
  border-color: var(--tt-text-muted) !important;
  color: var(--tt-text-secondary);
}

.tt-task-title-wrap {
  min-width: 0;
  flex: 1;
}
.tt-task-title {
  font-size: 13.5px;
  color: var(--tt-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-task-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--tt-text-muted);
  margin-top: 2px;
}

.tt-task-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 11.5px;
}

.tt-tag-pill {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--tt-bg-subtle);
  color: var(--tt-text-secondary);
  border: 1px solid var(--tt-border);
}

.tt-due-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tt-text-secondary);
}
.tt-due-label.overdue { color: var(--tt-prio-high); font-weight: 600; }
.tt-due-label.today { color: var(--tt-primary); font-weight: 600; }

/* ==========================================================================
   Kanban View (ticktick_WPF.Views.Kanban.KanbanContainer)
   ========================================================================== */
.tt-kanban-scroller {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;
}

.tt-kanban-col {
  width: 285px;
  max-height: 100%;
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 10px;
}
.tt-kanban-col.drag-over {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 2px var(--tt-primary-alpha);
}

.tt-kanban-col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  font-weight: 600;
  font-size: 13px;
}

.tt-kanban-cards {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  padding: 2px;
}

.tt-kanban-card {
  background: var(--tt-bg-elevated);
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  padding: 10px 11px;
  box-shadow: var(--tt-shadow-sm);
  cursor: grab;
  transition: transform 0.12s, box-shadow 0.12s;
}
.tt-kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--tt-shadow-md);
}
.tt-kanban-card.selected {
  border-color: var(--tt-primary);
}

/* ==========================================================================
   Timeline / Gantt View (ticktick_WPF.Views.Timeline.TimelineContainer)
   ========================================================================== */
.tt-timeline-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tt-timeline-grid {
  flex: 1;
  display: flex;
  overflow: auto;
  position: relative;
}
.tt-timeline-left-col {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--tt-border);
  background: var(--tt-bg-main);
  position: sticky;
  left: 0;
  z-index: 5;
}
.tt-timeline-canvas {
  flex: 1;
  min-width: 980px;
  position: relative;
}
.tt-timeline-days-hdr {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  border-bottom: 1px solid var(--tt-border);
  height: 40px;
  background: var(--tt-bg-subtle);
  position: sticky;
  top: 0;
  z-index: 4;
}
.tt-timeline-day-cell {
  border-right: 1px solid var(--tt-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.tt-timeline-day-cell.today {
  background: var(--tt-primary-alpha);
  color: var(--tt-primary);
  font-weight: 700;
}
.tt-timeline-row {
  height: 42px;
  border-bottom: 1px solid var(--tt-border);
  position: relative;
  display: flex;
  align-items: center;
}
.tt-timeline-bar {
  position: absolute;
  height: 26px;
  border-radius: 6px;
  background: var(--tt-primary);
  color: #FFF;
  font-size: 11.5px;
  font-weight: 500;
  padding: 0 10px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: var(--tt-shadow-sm);
}

/* ==========================================================================
   Task Detail View (ticktick_WPF.Views.Detail.TaskDetailView)
   ========================================================================== */
.tt-detail-top {
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--tt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.tt-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tt-detail-title-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tt-text-main);
}

.tt-md-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  border-radius: 6px;
  flex-wrap: wrap;
}
.tt-md-toolbar button {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tt-md-toolbar button:hover {
  background: var(--tt-sidebar-hover);
}
.tt-md-toolbar img {
  width: 16px;
  height: 16px;
}

.tt-detail-editor {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--tt-border);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--tt-bg-subtle);
  outline: none;
  resize: vertical;
  line-height: 1.55;
  font-size: 13px;
}
.tt-detail-editor:focus {
  border-color: var(--tt-primary);
  background: var(--tt-bg-elevated);
}

.tt-checkitem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--tt-bg-subtle);
  margin-bottom: 5px;
}

/* ==========================================================================
   Task Detail Bottom Bar (media_1792677801004_70d4af58.png)
   ========================================================================== */
.tt-detail-footer {
  height: 42px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #1F1F23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--tt-text-muted);
  flex-shrink: 0;
  position: relative;
  user-select: none;
}
.tt-detail-proj-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  color: #D2D5DC;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.tt-detail-proj-pill:hover {
  background: #2E2E36;
  color: #FFFFFF;
}
.tt-proj-pill-icon {
  font-size: 14px;
}
.tt-detail-bottom-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tt-detail-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8C8F98;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.tt-detail-action-btn:hover {
  background: #2E2E36;
  color: #FFFFFF;
}
.tt-detail-action-btn.active {
  background: #2E2E38;
  color: #3B75FA;
}

/* Floating Text Formatting Toolbar (media_1792677825475_34d078ee.png) */
.tt-detail-fmt-toolbar {
  position: absolute;
  bottom: 48px;
  left: 14px;
  right: 14px;
  background: #232328;
  border: 1px solid #36363E;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 1000;
  overflow-x: auto;
  user-select: none;
}
.tt-detail-fmt-toolbar.hidden {
  display: none !important;
}
.tt-fmt-btn {
  background: transparent;
  border: none;
  color: #C5C8CE;
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  flex-shrink: 0;
}
.tt-fmt-btn:hover {
  background: #32323C;
  color: #FFFFFF;
}
.tt-fmt-btn.active {
  background: #3875F6;
  color: #FFFFFF;
}
.tt-fmt-btn.tt-fmt-highlight {
  background: #96C93D;
  color: #19191D;
  font-weight: 700;
}
.tt-fmt-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 3px;
  flex-shrink: 0;
}

/* Floating Comment Input Box (media_1792677845480_7768ed05.png) */
.tt-detail-comment-box {
  position: absolute;
  bottom: 48px;
  left: 14px;
  right: 14px;
  background: #18181C;
  border: 1.5px solid #3B75FA;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.tt-detail-comment-box.hidden {
  display: none !important;
}
.tt-comment-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
}
.tt-comment-input::placeholder {
  color: #70737C;
}
.tt-comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tt-comment-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.1s;
}
.tt-comment-btn:hover {
  color: #FFFFFF;
  background: #2E2E36;
}

/* Middle List View Options Popover (media_1792677955884_995f8029.png) */
.tt-view-mode-tabs .tt-view-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 5px 0;
  color: #8C8F98;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.tt-view-mode-tabs .tt-view-tab-btn:hover {
  color: #FFFFFF;
  background: #26262E;
}
.tt-view-mode-tabs .tt-view-tab-btn.active {
  background: #2A3654;
  color: #3B75FA;
}

/* ==========================================================================
   Calendar Control (ticktick_WPF.Views.Calendar.CalendarControl)
   Pixel-Perfect to media_1792617571309_0aa939de.png
   ========================================================================== */
.tt-cal-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--tt-bg-workspace, #19191D);
}

.tt-cal-sidebar {
  width: 230px;
  min-width: 230px;
  background: var(--tt-bg-sidebar, #1F1F23);
  border-right: 1px solid var(--tt-border, #28282D);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  user-select: none;
}

/* Mini Calendar */
.tt-cal-mini {
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tt-cal-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tt-cal-mini-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: lowercase;
}

.tt-cal-mini-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tt-cal-mini-nav-btn {
  background: transparent;
  border: none;
  color: #7D7F84;
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  transition: color 0.15s;
}

.tt-cal-mini-nav-btn:hover {
  color: #FFFFFF;
}

.tt-cal-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #6C6E74;
  margin-bottom: 6px;
  font-weight: 500;
}

.tt-cal-mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
  text-align: center;
}

.tt-cal-mini-day {
  height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #A6A9B0;
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}

.tt-cal-mini-day:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tt-cal-mini-day.other-month {
  color: #4C4E54;
}

.tt-cal-mini-day.active-today {
  background: #2C7DF8;
  color: #FFFFFF;
  font-weight: 600;
}

.tt-cal-mini-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2C7DF8;
}

.tt-cal-mini-day.active-today.has-event::after {
  background: #FFFFFF;
}

/* Calendar Filter Lists */
.tt-cal-filter-list {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tt-cal-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: #C5C8CE;
  transition: background 0.1s;
}

.tt-cal-filter-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tt-cal-filter-row.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.tt-cal-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.tt-cal-filter-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-cal-filter-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #7D7F84;
  padding: 10px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Radio & Checkbox in Calendar Sidebar */
.tt-cal-radio-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #2C7DF8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-cal-radio-btn.checked::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2C7DF8;
}

.tt-cal-round-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #5A5D64;
  cursor: pointer;
  transition: all 0.15s;
}

.tt-cal-round-check.checked {
  background: #2C7DF8;
  border-color: #2C7DF8;
}

/* Calendar Workspace Header */
.tt-cal-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.tt-cal-top-header {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tt-border, #28282D);
}

.tt-cal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tt-cal-h1-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.tt-cal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-cal-pill-btn {
  background: #25252A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #D0D2D7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tt-cal-pill-btn:hover {
  background: #2E2E35;
  color: #FFFFFF;
}

/* Month Grid */
.tt-cal-month-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(100px, 1fr);
  overflow-y: auto;
}

.tt-cal-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  transition: background 0.12s;
}

.tt-cal-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tt-cal-cell.other-month {
  opacity: 0.38;
}

/* Weekend Pill in Month Grid */
.tt-cal-weekend-pill {
  background: #FF9F43;
  color: #FFFFFF;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  margin-bottom: 2px;
}

.tt-cal-task-pill {
  background: #2C3A4F;
  color: #FFFFFF;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  margin-bottom: 2px;
}

.tt-cal-task-pill:hover {
  background: #364761;
}

/* Year Heatmap Grid (YearCalendar / OnShowYearHeatMapChanged) */
.tt-year-grid {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.tt-year-month-card {
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  padding: 12px;
}

/* ==========================================================================
   Pomodoro & Focus (ticktick_WPF.Views.Pomo.MainFocus.MainFocusControl)
   ========================================================================== */
.tt-pomo-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 0;
  overflow: hidden;
}
.tt-pomo-left {
  border-right: 1px solid var(--tt-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.tt-pomo-right {
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tt-pomo-ring-wrap {
  position: relative;
  width: 270px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}
.tt-pomo-time-display {
  font-size: 54px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.tt-btn-primary {
  background: var(--tt-primary);
  color: #FFF;
  padding: 9px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(71, 114, 250, 0.35);
  transition: background 0.15s, transform 0.1s;
}
.tt-btn-primary:hover {
  background: var(--tt-primary-hover);
  transform: translateY(-1px);
}
.tt-btn-outline {
  border: 1px solid var(--tt-border-strong);
  color: var(--tt-text-main);
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 500;
  background: var(--tt-bg-elevated);
}

/* ==========================================================================
   Habit Tracker (ticktick_WPF.Views.Habit.HabitContainer)
   ========================================================================== */
.tt-habit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.12s;
}
.tt-habit-row:hover {
  border-color: var(--tt-primary);
}
.tt-habit-row.selected {
  background: var(--tt-sidebar-active);
  border-color: var(--tt-primary);
}
.tt-habit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 5px;
  background: var(--tt-bg-elevated);
  object-fit: contain;
}
.tt-habit-days {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-habit-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--tt-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tt-habit-circle.done {
  background: var(--tt-success);
  border-color: var(--tt-success);
  color: #FFF;
}

/* ==========================================================================
   Eisenhower Matrix (ticktick_WPF.Views.Eisenhower.MatrixContainer)
   ========================================================================== */
.tt-matrix-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 16px 18px;
  min-height: 0;
  overflow: hidden;
}
.tt-quadrant {
  background: var(--tt-bg-subtle);
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tt-quadrant.drag-over {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px var(--tt-primary-alpha);
}
.tt-quadrant-hdr {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tt-border);
}
.tt-quadrant.q1 .tt-quadrant-hdr { color: #F54A45; background: rgba(245, 74, 69, 0.08); }
.tt-quadrant.q2 .tt-quadrant-hdr { color: #FFB000; background: rgba(255, 176, 0, 0.08); }
.tt-quadrant.q3 .tt-quadrant-hdr { color: #4772FA; background: rgba(71, 114, 250, 0.08); }
.tt-quadrant.q4 .tt-quadrant-hdr { color: #00C598; background: rgba(0, 197, 152, 0.08); }

.tt-quadrant-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.tt-matrix-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.tt-matrix-card {
  user-select: none;
  transition: transform 0.1s, border-color 0.12s, background 0.12s;
}

.tt-matrix-card:hover {
  background: #2A2A2E !important;
  border-color: #484852 !important;
}

.tt-matrix-card.selected {
  border-color: #2C7DF8 !important;
  background: rgba(44, 125, 248, 0.12) !important;
}

.tt-matrix-card.tt-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.tt-matrix-card .tt-checkbox.q1-check {
  border-color: #F54A45;
}

.tt-matrix-card .tt-checkbox.q2-check {
  border-color: #FFB000;
}

.tt-matrix-card .tt-checkbox.q3-check {
  border-color: #4772FA;
}

.tt-matrix-card .tt-checkbox.q4-check {
  border-color: #80868B;
}

.tt-matrix-card .tt-checkbox.checked {
  background: #2C7DF8 !important;
  border-color: #2C7DF8 !important;
  color: #FFFFFF !important;
}

.tt-quadrant.drag-over {
  border-color: #2C7DF8 !important;
  box-shadow: 0 0 0 2px rgba(44, 125, 248, 0.35) !important;
  background: rgba(44, 125, 248, 0.05) !important;
}

.tt-quadrant-footer-tip {
  margin-top: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  line-height: 1.45;
  transition: background 0.15s;
}

.tt-quadrant-footer-tip:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tt-matrix-prio-select {
  outline: none;
  transition: border-color 0.12s;
}

.tt-matrix-prio-select:hover {
  border-color: #2C7DF8 !important;
}

.tt-matrix-guide-collapse {
  transition: border-color 0.15s, background 0.15s;
}

.tt-matrix-guide-collapse:hover {
  border-color: #484852;
}

.tt-matrix-guide-collapse summary::-webkit-details-marker {
  display: none;
}

.tt-matrix-guide-collapse summary {
  list-style: none;
}

/* ==========================================================================
   Countdown Cards (ticktick_WPF.Views.CountDown.Views.CountDownContainer)
   ========================================================================== */
.tt-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}
.tt-countdown-card {
  position: relative;
  height: 165px;
  border-radius: 14px;
  overflow: hidden;
  padding: 16px 18px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  box-shadow: var(--tt-shadow-md);
  cursor: pointer;
  transition: transform 0.15s;
}
.tt-countdown-card:hover {
  transform: translateY(-3px);
}
.tt-countdown-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.18), rgba(0,0,0,0.52));
  z-index: 0;
}
.tt-countdown-card > * {
  position: relative;
  z-index: 1;
}
.tt-countdown-num {
  font-family: 'CountdownNumber', 'Inter', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   Floating Sticky Notes (ticktick_WPF.Views.Detail.TaskStickyWindow)
   ========================================================================== */
.tt-sticky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
.tt-sticky-win {
  position: absolute;
  width: 270px;
  min-height: 210px;
  border-radius: 10px;
  box-shadow: var(--tt-shadow-lg);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  color: #191919;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
}
.tt-sticky-hdr {
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.06);
  cursor: move;
  font-size: 11.5px;
  font-weight: 600;
}
.tt-sticky-body {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
}

/* ==========================================================================
   Modals, Command Palette & Toast Notifications
   ========================================================================== */
.tt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.52);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
}
.tt-modal-backdrop.hidden {
  display: none;
}
.tt-modal {
  width: 680px;
  max-width: 94vw;
  max-height: 86vh;
  background: var(--tt-bg-elevated);
  border: 1px solid var(--tt-border-strong);
  border-radius: 12px;
  box-shadow: var(--tt-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tt-modal-hdr {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}
.tt-modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.tt-toast-container {
  position: fixed;
  bottom: 20px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.tt-toast {
  background: #1F2430;
  color: #FFF;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--tt-shadow-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   TickTick Pixel-Perfect Additions (REA & Real Screenshots Verified)
   ========================================================================== */
body[data-theme-mode="dark"] .tt-left-rail {
  background: #17171A;
}
body[data-theme-mode="dark"] .tt-rail-btn {
  color: #8A8F99;
}
body[data-theme-mode="dark"] .tt-rail-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
body[data-theme-mode="dark"] .tt-rail-btn.active,
.tt-rail-btn.active {
  color: #FFFFFF !important;
  background: var(--tt-primary-alpha, rgba(71, 114, 250, 0.16)) !important;
  border-left: none !important;
  box-shadow: 0 2px 10px var(--tt-primary-alpha, rgba(71, 114, 250, 0.16)) !important;
}
.tt-rail-btn svg,
.tt-rail-btn span {
  pointer-events: none;
}
body[data-theme-mode="dark"] .tt-rail-btn.active svg,
.tt-rail-btn.active svg {
  stroke: var(--tt-primary, #4772FA) !important;
}
body[data-theme-mode="dark"] .tt-sidebar-pane {
  background: #1F1F23;
}
body[data-theme-mode="dark"] .tt-nav-item.active,
.tt-nav-item.active {
  background: var(--tt-primary-alpha, rgba(71, 114, 250, 0.16)) !important;
  color: var(--tt-primary, #4772FA) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
body[data-theme-mode="dark"] .tt-nav-item.active .tt-nav-icon,
.tt-nav-item.active .tt-nav-icon {
  color: var(--tt-primary, #4772FA) !important;
}
body[data-theme-mode="dark"] .tt-nav-item.active svg,
.tt-nav-item.active svg {
  stroke: var(--tt-primary, #4772FA) !important;
}
body[data-theme-mode="dark"] .tt-center-pane {
  background: #19191D;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--tt-primary, #4772FA) !important;
}

.tt-sublist-item {
  padding-left: 28px !important;
  font-size: 12.5px;
}
.tt-sublist-item.dragging {
  opacity: 0.4;
  background: #2E2E36;
}
.tt-sublist-item.drop-above {
  border-top: 2px solid var(--tt-primary, #4772FA) !important;
}
.tt-sublist-item.drop-below {
  border-bottom: 2px solid var(--tt-primary, #4772FA) !important;
}

.tt-cal-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.tt-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 11px;
  color: #8C8F98;
  cursor: pointer;
  margin-right: 4px;
  border-radius: 4px;
  user-select: none;
  transition: transform 0.15s ease, background 0.1s ease;
}
.tt-chevron:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.tt-chevron.collapsed {
  transform: rotate(-90deg);
}

.tt-sidebar-filter-box {
  background: #26262C;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #8A8F99;
  line-height: 1.4;
  margin: 10px 8px 16px;
}



.tt-task-desc-preview {
  font-size: 11.5px;
  color: #7D7F84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.tt-task-proj-badge {
  font-size: 11px;
  color: #7D7F84;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tt-strikethrough {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Context Menus */
.tt-context-menu {
  position: fixed;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  min-width: 210px;
  z-index: 2000;
}
.tt-context-menu.hidden {
  display: none !important;
}
.tt-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13px;
  color: #E0E2E6;
  cursor: pointer;
  transition: background 0.1s;
}
.tt-ctx-item:hover {
  background: #34343B;
  color: #FFFFFF;
}
.tt-ctx-item.danger:hover {
  background: rgba(239, 45, 36, 0.18);
  color: #FF4D4F;
}
.tt-ctx-icon {
  width: 16px;
  text-align: center;
  color: #9A9DA4;
  font-size: 13px;
}
.tt-ctx-arrow {
  margin-left: auto;
  color: #7D7F84;
  font-size: 11px;
}
.tt-ctx-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 5px 0;
}
.tt-ctx-section-label {
  padding: 6px 14px 2px;
  font-size: 11px;
  color: #8A8F99;
  font-weight: 500;
}
.tt-ctx-quick-row {
  display: flex;
  gap: 6px;
  padding: 4px 14px 8px;
}
.tt-ctx-quick-btn {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  background: #2E2E35;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.tt-ctx-quick-btn:hover {
  background: #3B3B44;
}
.tt-ctx-quick-btn.prio-high {
  color: #EA4335;
}
.tt-ctx-quick-btn.prio-med {
  color: #FBBC05;
}
.tt-ctx-quick-btn.prio-low {
  color: #4285F4;
}
.tt-ctx-quick-btn.prio-none {
  color: #80868B;
}
.tt-ctx-check {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

/* Universal Drag and Drop for Sidebar Lists */
.tt-sidebar-draggable-item {
  cursor: grab;
  position: relative;
  transition: background 0.12s, border 0.12s;
}
.tt-sidebar-draggable-item.dragging {
  opacity: 0.35;
  background: #2E2E36 !important;
}
.tt-sidebar-draggable-item.drop-above {
  border-top: 2px solid #4772FA !important;
}
.tt-sidebar-draggable-item.drop-below {
  border-bottom: 2px solid #4772FA !important;
}
.tt-sidebar-draggable-item.drop-inside {
  outline: 2px dashed #4772FA !important;
  outline-offset: -2px;
  background: rgba(71, 114, 250, 0.18) !important;
  border-radius: 6px;
}

/* Notifications Popover */
.tt-notif-popover {
  position: fixed;
  left: 54px;
  bottom: 24px;
  width: 340px;
  max-height: 480px;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  z-index: 1500;
  overflow: hidden;
}
.tt-notif-popover.hidden {
  display: none !important;
}
.tt-notif-header {
  padding: 10px 12px 6px;
}
.tt-notif-tabs {
  background: #1D1D21;
  border-radius: 8px;
  padding: 2px;
  display: flex;
}
.tt-notif-tab {
  flex: 1;
  padding: 5px 0;
  text-align: center;
  font-size: 12px;
  color: #8A8F99;
  border-radius: 6px;
  cursor: pointer;
}
.tt-notif-tab.active {
  background: #38383F;
  color: #FFFFFF;
  font-weight: 500;
}
.tt-notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 410px;
}
.tt-notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  line-height: 1.4;
  color: #C5C8CE;
}
.tt-notif-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tt-notif-body {
  flex: 1;
}
.tt-notif-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.tt-notif-sender {
  font-weight: 600;
  color: #FFFFFF;
}
.tt-notif-date {
  font-size: 11px;
  color: #7D7F84;
}
.tt-notif-item a {
  color: #4A90E2;
  text-decoration: none;
  cursor: pointer;
}
.tt-notif-item a:hover {
  text-decoration: underline;
}

.tt-has-badge {
  position: relative;
}
.tt-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4D4F;
}

/* Eisenhower Matrix Refinements */
.tt-matrix-sec-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8A8F99;
  cursor: pointer;
}
.tt-matrix-sec-items {
  margin-bottom: 6px;
}
.tt-matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 3px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.tt-matrix-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.tt-matrix-row .tt-checkbox.q1-check {
  border-color: #FF4D4F;
}
.tt-matrix-row .tt-checkbox.q2-check {
  border-color: #FAAD14;
}
.tt-matrix-row .tt-checkbox.q3-check {
  border-color: #1890FF;
}
.tt-matrix-row .tt-checkbox.q4-check {
  border-color: #52C41A;
}

/* Countdown Refinements (media_1792617761486_c5916265.png) */
.tt-countdown-pure-grid {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  flex-wrap: wrap;
}
.tt-countdown-pure-card {
  width: 270px;
  height: 160px;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.tt-countdown-pure-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.tt-countdown-pure-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.tt-countdown-pure-num {
  font-size: 46px;
  font-weight: 700;
  color: #4A90E2;
  text-align: center;
  line-height: 1;
  margin: 6px 0;
  letter-spacing: -1px;
}
.tt-countdown-pure-sub {
  font-size: 11.5px;
  color: #7D7F84;
  text-align: center;
}

/* Habits Refinements (media_1792617740464_7331ae25.png) */
.tt-habit-week-strip {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--tt-border);
}
.tt-habit-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #7D7F84;
  width: 42px;
}
.tt-habit-day-pill.today {
  color: #4A90E2;
  font-weight: 600;
}
.tt-habit-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.tt-habit-check-circle.checked {
  background: #4A90E2;
  border-color: #4A90E2;
  color: #FFF;
}


/* User Profile Popover (media_1792618961492_b952a9ff.png) */
.tt-user-profile-popover {
  position: fixed;
  left: 54px;
  top: 10px;
  width: 210px;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}

.tt-user-profile-popover.hidden {
  display: none !important;
}

.tt-profile-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  color: #E0E2E6;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}

.tt-profile-menu-item:hover {
  background: #34343B;
  color: #FFFFFF;
}

.tt-profile-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.tt-profile-label {
  flex: 1;
}

.tt-profile-badge {
  font-size: 12px;
  color: #8A8F99;
}

/* Settings Modal Multi-tab Window (media_1792619002330_d10c7a02.png) */
.tt-settings-window {
  display: flex;
  width: 820px;
  height: 600px;
  max-width: 95vw;
  max-height: 90vh;
  background: #1E1E22;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-settings-sidebar {
  width: 220px;
  min-width: 220px;
  background: #18181C;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  overflow-y: auto;
}

.tt-settings-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 4px 10px 14px;
}

.tt-settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #C5C8CE;
  cursor: pointer;
  transition: background 0.12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.tt-settings-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.tt-settings-tab-btn.active {
  background: #2E2E35;
  color: #FFFFFF;
  font-weight: 500;
}

.tt-settings-content {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tt-settings-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #8A8F99;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.tt-settings-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Sticky Note Settings (media_1792619108989_e4f3d44c.png) */
.tt-color-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tt-color-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.1s;
}

.tt-color-box:hover {
  transform: scale(1.08);
}

.tt-color-box.selected::after {
  content: '✓';
  color: #2C7DF8;
  font-size: 14px;
  font-weight: 700;
}

.tt-color-box .crown-mini {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 8px;
}

/* Toggle Switch */
.tt-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.tt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tt-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #38383F;
  transition: .2s;
  border-radius: 20px;
}

.tt-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.tt-switch input:checked + .tt-slider {
  background-color: #2C7DF8;
}

.tt-switch input:checked + .tt-slider:before {
  transform: translateX(16px);
}

/* Dedicated Settings Window View matching media_1792619002330_d10c7a02.png */
.tt-modal.settings-view {
  width: 820px;
  height: 600px;
  max-width: 95vw;
  max-height: 90vh;
  padding: 0;
  background: #1E1E22;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-modal.settings-view .tt-modal-hdr {
  display: none !important;
}

.tt-modal.settings-view .tt-modal-body {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  height: 100%;
}

/* Focus Target Selector Popover (media_1792621894082_d6376704.png) */
.tt-focus-popover {
  position: fixed;
  width: 310px;
  max-height: 420px;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  z-index: 2200;
  overflow: hidden;
}

.tt-focus-popover.hidden {
  display: none !important;
}

.tt-focus-header {
  padding: 10px 14px 6px;
  display: flex;
  justify-content: center;
}

.tt-focus-tabs {
  background: #1D1D21;
  border-radius: 8px;
  padding: 2px;
  display: flex;
  width: 160px;
}

.tt-focus-tab {
  flex: 1;
  padding: 4px 0;
  text-align: center;
  font-size: 12px;
  color: #8A8F99;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.tt-focus-tab.active {
  background: #2C7DF8;
  color: #FFFFFF;
  font-weight: 500;
}

.tt-focus-search-wrap {
  padding: 6px 14px 8px;
}

.tt-focus-search-input {
  width: 100%;
  background: #1B1B1E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #FFFFFF;
  outline: none;
}

.tt-focus-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tt-focus-group-header {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  padding: 6px 6px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-focus-sub-header {
  font-size: 11px;
  font-weight: 500;
  color: #8A8F99;
  padding: 4px 6px 2px;
}

.tt-focus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: #C5C8CE;
  transition: background 0.1s;
}

.tt-focus-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.tt-focus-circle-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #8A8F99;
  margin-right: 8px;
  flex-shrink: 0;
}

.tt-focus-circle-check.prio-high {
  border-color: #F54A45;
}

.tt-focus-circle-check.prio-med {
  border-color: #FFB000;
}

.tt-focus-circle-check.prio-low {
  border-color: #8A8F99;
}

.tt-focus-date-red {
  font-size: 11px;
  color: #F54A45;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Habit Icon Picker Modal/Popover (media_1792622128243_7309c8f8.png) */
.tt-habit-icon-picker {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  background: #252529;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.tt-habit-icon-picker.hidden {
  display: none !important;
}

.tt-icon-grid-4x10 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 14px 0;
  max-height: 220px;
  overflow-y: auto;
}

.tt-icon-picker-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s;
}

.tt-icon-picker-item:hover {
  transform: scale(1.15);
}

.tt-icon-picker-item.selected {
  border-color: #2C7DF8;
  box-shadow: 0 0 8px rgba(44, 125, 248, 0.5);
}

.tt-icon-picker-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ==========================================================================
   Pane Resizers (Sidebar & Detail Dragging)
   ========================================================================== */
.tt-pane-resizer {
  width: 4px;
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 25;
  transition: background 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}
.tt-pane-resizer:hover,
.tt-pane-resizer.resizing {
  background: #2C7DF8;
}

/* ==========================================================================
   Date & Reminder Popover (media_1792622671675_348bcf5e.png)
   ========================================================================== */
.tt-date-reminder-popover {
  position: fixed;
  width: 280px;
  background: #222226;
  border: 1px solid #36363E;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  font-family: inherit;
}
.tt-date-reminder-popover.hidden {
  display: none !important;
}

.tt-dr-tabs {
  display: flex;
  background: #18181C;
  margin: 10px 12px 6px;
  border-radius: 6px;
  padding: 2.5px;
  gap: 4px;
}
.tt-dr-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}
.tt-dr-tab.active {
  background: #2E2E35;
  color: #FFFFFF;
}

.tt-dr-quick-row {
  display: flex;
  justify-content: space-around;
  padding: 8px 12px 6px;
}
.tt-dr-quick-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #C5C8CE;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.tt-dr-quick-btn:hover {
  background: #2E2E35;
}

.tt-dr-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 4px;
}
.tt-dr-month-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}
.tt-dr-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-dr-arrow-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.tt-dr-arrow-btn:hover {
  color: #FFFFFF;
  background: #2E2E35;
}

.tt-dr-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #70737C;
  font-weight: 500;
  padding: 4px 10px;
}
.tt-dr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 2px 10px 8px;
}
.tt-dr-cell {
  width: 26px;
  height: 26px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #D2D5DC;
  cursor: pointer;
  transition: all 0.1s;
}
.tt-dr-cell:hover {
  background: #2E2E35;
}
.tt-dr-cell.dimmed {
  color: #4D5058;
}
.tt-dr-cell.today {
  background: #2E2E36;
  color: #FFFFFF;
}
.tt-dr-cell.selected {
  background: #3B75FA !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.tt-dr-options-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}
.tt-dr-opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 12.5px;
  color: #D2D5DC;
}
.tt-dr-opt-row:hover {
  background: #28282E;
}
.tt-dr-opt-row.active .tt-dr-opt-icon,
.tt-dr-opt-row.active .tt-dr-opt-label {
  color: #3B75FA !important;
  font-weight: 500;
}
.tt-dr-opt-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-dr-opt-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tt-dr-opt-icon {
  font-size: 14px;
  color: #9A9DA6;
}
.tt-dr-opt-arrow {
  color: #70737C;
  font-size: 14px;
  transition: transform 0.15s;
}
.tt-dr-clear-icon {
  background: transparent;
  border: none;
  color: #8C8F98;
  cursor: pointer;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  padding: 0;
}
.tt-dr-clear-icon:hover {
  background: #383842;
  color: #FFFFFF;
}
.tt-dr-clear-icon.hidden {
  display: none !important;
}

.tt-dr-dropdown {
  background: #1E1E22;
  border: 1px solid #36363E;
  margin: 2px 10px 8px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-height: 220px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}
.tt-dr-dropdown.hidden {
  display: none !important;
}

.tt-dr-time-panel,
.tt-dr-sub-panel {
  background: #1A1A1E;
  margin: 2px 10px 6px;
  border-radius: 6px;
  padding: 4px 0;
  max-height: 160px;
  overflow-y: auto;
}
.tt-dr-time-panel.hidden,
.tt-dr-sub-panel.hidden {
  display: none !important;
}

.tt-dr-time-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  color: #2C7DF8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tt-dr-time-clear-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  cursor: pointer;
  font-size: 11px;
}
.tt-dr-time-list {
  display: flex;
  flex-direction: column;
}
.tt-dr-time-item,
.tt-dr-sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-size: 12px;
  color: #D2D5DC;
  cursor: pointer;
}
.tt-dr-time-item:hover,
.tt-dr-sub-item:hover {
  background: #26262D;
}
.tt-dr-time-item.active,
.tt-dr-sub-item.active {
  color: #3B75FA;
  font-weight: 500;
}
.tt-dr-check {
  display: none;
  color: #3B75FA;
  font-weight: bold;
  font-size: 12.5px;
}
.tt-dr-sub-item.active .tt-dr-check {
  display: inline-block;
}
.tt-dr-sub-dim {
  color: #6C6F78;
  font-size: 11px;
}
.tt-dr-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.tt-dr-dropdown-footer {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #1E1E22;
  position: sticky;
  bottom: 0;
}
.tt-dr-sub-save-btn {
  background: #3B75FA;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}
.tt-dr-sub-save-btn:hover {
  background: #2D68EE;
}
.tt-dr-sub-cancel-btn {
  background: #26262D;
  color: #D2D5DC;
  border: 1px solid #3E3E48;
  border-radius: 14px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.tt-dr-sub-cancel-btn:hover {
  background: #32323B;
  color: #FFFFFF;
}

.tt-dr-custom-select {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #18181C;
  border: 1px solid #36363E;
  border-radius: 6px;
  padding: 6px 10px;
  color: #FFFFFF;
  font-size: 12.5px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.12s;
}
.tt-dr-custom-select:hover,
.tt-dr-custom-select.active {
  border-color: #3B75FA;
}
.tt-dr-mini-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #222227;
  border: 1px solid #3A3A44;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 100;
  overflow: hidden;
}
.tt-dr-mini-menu.hidden {
  display: none !important;
}
.tt-dr-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 12px;
  color: #D2D5DC;
  cursor: pointer;
  transition: background 0.1s;
}
.tt-dr-mini-item:hover {
  background: #2C2C35;
}
.tt-dr-mini-item.active {
  color: #3B75FA;
  font-weight: 500;
}

.tt-dr-num-input {
  width: 44px;
  background: #18181C;
  border: 1px solid #36363E;
  border-radius: 6px;
  color: #3B75FA;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 5px 2px;
  outline: none;
}
.tt-dr-num-input:focus {
  border-color: #3B75FA;
}

.tt-dr-day-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #26262C;
  color: #A0A3AC;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  padding: 0;
}
.tt-dr-day-circle:hover {
  background: #32323A;
  color: #FFFFFF;
}
.tt-dr-day-circle.active {
  background: #3B75FA !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Duration Mode (media_1792622703664_fd99fce4.png) */
.tt-dr-duration-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tt-dr-duration-body.hidden {
  display: none !important;
}
.tt-dr-dur-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #C5C8CE;
}
.tt-dr-dur-inputs {
  display: flex;
  gap: 6px;
}
.tt-dr-date-box,
.tt-dr-time-box {
  background: #18181C;
  border: 1px solid #33333A;
  border-radius: 4px;
  padding: 5px 8px;
  color: #FFFFFF;
  font-size: 12px;
  outline: none;
  text-align: center;
}
.tt-dr-date-box { width: 54px; }
.tt-dr-time-box { width: 54px; }
.tt-dr-dur-input {
  width: 150px;
  background: #18181C;
  border: 1px solid #36363E;
  border-radius: 6px;
  padding: 6px 12px;
  color: #FFFFFF;
  font-size: 13px;
  text-align: center;
  outline: none;
  transition: border-color 0.12s;
}
.tt-dr-dur-input:focus {
  border-color: #3B75FA;
}

/* Toggle Switch */
.tt-toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}
.tt-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.tt-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #383842;
  transition: .18s;
  border-radius: 20px;
}
.tt-toggle-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .18s;
  border-radius: 50%;
}
.tt-toggle-switch input:checked + .tt-toggle-slider {
  background-color: #2C7DF8;
}
.tt-toggle-switch input:checked + .tt-toggle-slider:before {
  transform: translateX(16px);
}

.tt-dr-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tt-dr-footer #tt-dr-ok-btn {
  background: #3B75FA;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 7px 32px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tt-dr-footer #tt-dr-ok-btn:hover {
  background: #2D68EE;
  transform: translateY(-1px);
}
.tt-dr-footer #tt-dr-clear-btn {
  background: #242429;
  color: #D2D5DC;
  border: 1px solid #36363E;
  border-radius: 20px;
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tt-dr-footer #tt-dr-clear-btn:hover {
  background: #2E2E36;
  border-color: #4A4A54;
  color: #FFFFFF;
}

/* ==========================================================================
   Task Detail Header & Slash Command Styling (media_1792622607097_934b2009.png)
   ========================================================================== */
.tt-detail-top-tick {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.tt-detail-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-detail-check-btn {
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.14s ease;
}
.tt-detail-check-btn:hover {
  transform: scale(1.12);
}
.tt-detail-mode-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-detail-mode-btn:hover {
  background: #2E2E35;
  color: #FFFFFF;
}
.tt-detail-sep {
  color: #383842;
  font-size: 13px;
  user-select: none;
}
.tt-detail-date-btn {
  background: transparent;
  border: none;
  color: #9A9DA6;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.12s;
}
.tt-detail-date-btn:hover {
  background: #2E2E35;
  color: #FFFFFF;
}
.tt-detail-date-btn.has-date {
  color: #2C7DF8;
  font-weight: 500;
}

.tt-detail-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tt-detail-hdr-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.tt-detail-hdr-btn:hover {
  background: #2E2E35;
  color: #FFFFFF;
}

.tt-detail-title-tick {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 14px 16px 8px;
  line-height: 1.3;
}

/* Checklist items (media_1792622607097_934b2009.png) */
.tt-detail-cl-container {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  flex: none;
  margin-top: 16px;
}
.tt-cl-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tt-cl-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #4D4D58;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  transition: all 0.1s;
}
.tt-cl-checkbox.checked {
  background: #2C7DF8;
  border-color: #2C7DF8;
  color: #FFFFFF;
}
.tt-cl-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #E2E4E9;
  font-size: 13.5px;
  line-height: 1.45;
  font-family: inherit;
}
.tt-cl-input.checked {
  text-decoration: line-through;
  color: #6C6F78;
}
.tt-cl-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  user-select: none;
}
.tt-cl-item-row:hover .tt-cl-row-actions,
.tt-cl-item-row:focus-within .tt-cl-row-actions,
.tt-cl-row-actions.has-active-date {
  opacity: 1;
}
.tt-cl-action-btn {
  background: transparent;
  border: none;
  color: #8C8F98;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  transition: all 0.15s;
}
.tt-cl-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.tt-cl-del-btn:hover {
  color: #FF5C5C !important;
  background: rgba(255, 92, 92, 0.12) !important;
}
.tt-cl-date-btn.has-date {
  opacity: 1;
}
.tt-cl-due-tag {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* Text Mode Description Editor (Rich WYSIWYG & Markdown-free) */
.tt-detail-desc-container {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  flex: none;
}
.tt-detail-desc-editor {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  outline: none;
  color: #E2E4E9;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 24px;
  flex: none;
}
.tt-detail-desc-editor.mode-text {
  min-height: 80px;
}
.tt-detail-desc-editor:empty:before,
.tt-detail-desc-editor[data-empty="true"]:before {
  content: attr(data-placeholder);
  color: #6C707A;
  pointer-events: none;
  display: block;
}
.tt-detail-desc-editor > :first-child {
  margin-top: 0;
}
.tt-detail-desc-editor .tt-editor-h1,
.tt-detail-desc-editor h1 {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 14px 0 6px;
  line-height: 1.3;
}
.tt-detail-desc-editor .tt-editor-h2,
.tt-detail-desc-editor h2 {
  font-size: 18px;
  font-weight: 600;
  color: #F0F2F5;
  margin: 12px 0 4px;
  line-height: 1.35;
}
.tt-detail-desc-editor .tt-editor-h3,
.tt-detail-desc-editor h3 {
  font-size: 15px;
  font-weight: 600;
  color: #D8DCE3;
  margin: 10px 0 4px;
  line-height: 1.4;
}
.tt-detail-desc-editor .tt-editor-quote,
.tt-detail-desc-editor blockquote {
  border-left: 3px solid #2C7DF8;
  padding: 4px 12px;
  margin: 8px 0;
  color: #9A9DA4;
  font-style: italic;
  background: rgba(44, 125, 248, 0.05);
  border-radius: 0 4px 4px 0;
}
.tt-detail-desc-editor ul {
  list-style-type: disc;
  margin: 6px 0 6px 20px;
  padding: 0;
}
.tt-detail-desc-editor ol {
  list-style-type: decimal;
  margin: 6px 0 6px 20px;
  padding: 0;
}
.tt-detail-desc-editor li {
  margin: 3px 0;
}
.tt-detail-desc-editor .tt-editor-hr,
.tt-detail-desc-editor hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}
.tt-detail-desc-editor .tt-editor-checkitem {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  padding: 2px 0;
  position: relative;
}
.tt-detail-desc-editor .tt-desc-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #6C707A;
  background: transparent;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}
.tt-detail-desc-editor .tt-desc-check-box:hover {
  border-color: #2C7DF8;
}
.tt-detail-desc-editor .tt-desc-check-box.checked {
  background: #2C7DF8;
  border-color: #2C7DF8;
  color: #FFFFFF;
}
.tt-detail-desc-editor .tt-desc-check-text {
  flex: 1;
  outline: none;
  font-size: 13.5px;
  color: #E2E4E9;
  line-height: 1.5;
  min-height: 20px;
}
.tt-detail-desc-editor .tt-desc-check-text.tt-strikethrough {
  text-decoration: line-through;
  color: #7D7F84;
}
.tt-detail-desc-editor .tt-desc-check-del {
  background: transparent;
  border: none;
  color: #7D7F84;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s;
  user-select: none;
}
.tt-detail-desc-editor .tt-editor-checkitem:hover .tt-desc-check-del {
  opacity: 1;
}
.tt-detail-desc-editor .tt-desc-check-del:hover {
  color: #FF5C5C;
}
.tt-detail-desc-editor .tt-desc-plain-item {
  display: block;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #E0E2E8;
  font-size: 13.5px;
}
.tt-detail-desc-editor .tt-editor-tag {
  color: #2C7DF8;
  font-weight: 500;
  background: rgba(44, 125, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.tt-detail-desc-editor .tt-editor-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #25252B;
  border: 1px solid #36363E;
  color: #C5C8CE;
  font-size: 12px;
  margin: 4px 0;
}
.tt-detail-desc-area {
  width: 100%;
  flex: 1;
  min-height: 400px;
  background: transparent;
  border: none;
  outline: none;
  color: #E2E4E9;
  font-size: 13.5px;
  line-height: 1.65;
  font-family: inherit;
  resize: none;
  white-space: pre-wrap;
}

/* Slash Menu keyboard navigation highlight */
.tt-ctx-item.active,
.tt-ctx-item.selected {
  background: #2C7DF8 !important;
  color: #FFFFFF !important;
}
.tt-ctx-item.active .tt-ctx-icon,
.tt-ctx-item.selected .tt-ctx-icon {
  color: #FFFFFF !important;
}

/* Habit Custom Days Goal Popover (media_1792622236778_652d74d5.png) */
.tt-habit-custom-goal-popover {
  position: absolute;
  top: 140px;
  left: 90px;
  background: #222226;
  border: 1px solid #36363E;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  padding: 14px 16px;
  z-index: 3100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-habit-custom-goal-popover.hidden {
  display: none !important;
}
.tt-habit-custom-goal-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-habit-custom-goal-input {
  width: 100px;
  background: #18181C;
  border: 1.5px solid #2C7DF8;
  border-radius: 5px;
  padding: 6px 10px;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
}

/* Detail Slash Input Placeholder (media_1792686383722_8749ec05.png) */
#tt-detail-slash-input::placeholder {
  color: #6C707A !important;
  font-size: 14px;
}

/* Project Picker Popover (media_1792686466453_52c8adcb.png) */
.tt-proj-picker-popover {
  background: #1C1C1F !important;
  border: 1px solid #33333A !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) !important;
  padding: 6px !important;
  user-select: none;
}
.tt-proj-picker-popover.hidden {
  display: none !important;
}
.tt-proj-picker-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  transition: background 0.1s !important;
  background: transparent;
}
.tt-proj-picker-item:hover,
.tt-proj-picker-item.active {
  background: #2D2D32 !important;
  color: #FFFFFF !important;
}
.tt-proj-picker-item .tt-proj-picker-name {
  flex: 1;
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-proj-picker-item .tt-proj-picker-check {
  color: #2C7DF8 !important;
  font-size: 13px;
  font-weight: bold;
}
.tt-proj-picker-item .tt-proj-picker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #FFFFFF;
}

/* Section header hover buttons (+ e ···) - media_1792688968498_2e0f711a.png */
.tt-section-header .tt-sec-btn-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.12s ease;
}
.tt-section-header:hover .tt-sec-btn-hover {
  opacity: 1;
  pointer-events: auto;
}
.tt-section-header .tt-sec-btn-hover:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

/* Subtask hover actions: hide trash when not hovered, but keep active date visible - media_1792689807458_a230378d.png */
.tt-cl-row-actions.has-active-date .tt-cl-del-btn {
  display: none;
}
.tt-cl-item-row:hover .tt-cl-row-actions.has-active-date .tt-cl-del-btn {
  display: inline-flex;
}
.tt-detail-date-btn.is-overdue {
  color: #F54A45 !important;
}

/* List Item Hover More Button (···) & Overdue Dot - media_1792691193068_80998c9c.png & media_1792691249381_aca19991.png */
.tt-nav-item .tt-list-more-btn {
  display: none;
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 13px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.tt-nav-item .tt-list-more-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}
.tt-nav-item:hover .tt-list-more-btn {
  display: inline-flex;
}
.tt-nav-item:hover .tt-nav-count {
  display: none;
}
.tt-list-badge-slot {
  min-width: 14px;
  width: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.tt-list-badge-slot .tt-nav-count {
  margin-left: 0;
  text-align: center;
}
.tt-list-badge-slot .tt-list-more-btn {
  margin: 0;
}
.tt-list-color-dot,
.tt-list-overdue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

/* Sidebar Section Headers (+ e ··· on hover for Etiquetas e Filtros) - media_1792692203430_0f744d35.png */
.tt-sidebar-sec-header .tt-sec-btn-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.12s ease;
}
.tt-sidebar-sec-header:hover .tt-sec-btn-hover {
  opacity: 1;
  pointer-events: auto;
}
.tt-sidebar-sec-header .tt-sec-btn-hover:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

/* Modal: Adicionar Etiqueta (media_1792692296682_eaf63531.png) */
.tt-tag-color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tt-tag-color-circle:hover {
  transform: scale(1.12);
}
.tt-tag-color-circle.selected {
  box-shadow: 0 0 0 2px #18181C, 0 0 0 4px #2C7DF8;
}

/* Modal: Adicionar Filtro (media_1792692317890_b60fe5d7.png & media_1792692383290_4c783211.png) */
.tt-flt-tabs-pill {
  display: inline-flex;
  background: #25252A;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.tt-flt-tab-item {
  padding: 5px 18px;
  font-size: 13px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #8C8F98;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.tt-flt-tab-item.active {
  background: #36363E;
  color: #FFFFFF;
}
.tt-adv-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #36363E;
  background: #202024;
  color: #C5C8CE;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  gap: 6px;
}
.tt-adv-pill:hover {
  background: #2A2A30;
  border-color: #464650;
}
.tt-adv-logic-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed #4E5158;
  background: transparent;
  color: #A0A3AB;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.tt-adv-logic-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #2C7DF8;
  color: #2C7DF8;
}

/* Subtasks inside task row (central pane tree) */
.tt-subtask-row {
  transition: background 0.12s ease;
}
.tt-subtask-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.tt-subtask-row:hover .tt-subtask-row-actions {
  opacity: 1 !important;
}

/* Detail Pane Subtasks & Batch Actions - REA Verified */
.tt-detail-subtask-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.12s ease;
}
.tt-detail-subtask-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.tt-detail-subtask-row:hover .tt-detail-subtask-del {
  opacity: 0.8 !important;
}
.tt-detail-subtask-del:hover {
  opacity: 1 !important;
  color: #FF6B6B !important;
}
.tt-detail-subtask-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #E0E2E8;
  cursor: text;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}
.tt-detail-subtask-input:hover {
  background: rgba(255, 255, 255, 0.05);
}
.tt-detail-subtask-input:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.tt-detail-subtask-input.checked {
  color: #7D7F84;
  text-decoration: line-through;
}

/* Batch Action Pane (media_1792705587450_4a3f3d00.png) */
.tt-batch-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}
.tt-batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tt-batch-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}
.tt-batch-title span {
  color: #2C7DF8;
}
.tt-batch-cancel-btn {
  background: transparent;
  border: none;
  color: #2C7DF8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.tt-batch-cancel-btn:hover {
  background: rgba(44, 125, 248, 0.1);
}
.tt-batch-attr-card {
  background: #202024;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.tt-batch-attr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13px;
  color: #D6D8DE;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tt-batch-attr-row:last-child {
  border-bottom: none;
}
.tt-batch-attr-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.tt-batch-attr-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8C8F98;
}
.tt-batch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tt-batch-card-btn {
  background: #202024;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #D6D8DE;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tt-batch-card-btn:hover {
  background: #29292F;
  border-color: rgba(255, 255, 255, 0.12);
}
.tt-batch-card-btn .tt-batch-card-icon {
  font-size: 18px;
  line-height: 1;
}
.tt-batch-card-btn.danger {
  color: #EF4444;
}
.tt-batch-card-btn.danger .tt-batch-card-icon {
  color: #EF4444;
}
.tt-batch-card-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   Timeline View: Task Drag & Drop + Floating Detail Overlay
   (media_1792775037190_dc6ff3fc.png & media_1792775047253_99393628.png)
   ========================================================================== */
body.is-timeline-dragging .tt-timeline-task-bar:not(.is-dragging) {
  pointer-events: none;
}
.tt-timeline-task-bar {
  cursor: grab !important;
}
.tt-timeline-task-bar:active,
.tt-timeline-task-bar.is-dragging {
  cursor: grabbing !important;
  opacity: 0.55;
}
.tt-timeline-day-cell.drag-over,
.tt-timeline-header-day-cell.drag-over {
  background: rgba(44, 125, 248, 0.25) !important;
}

.tt-timeline-detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1.5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ttFadeIn 0.15s ease-out;
}

.tt-timeline-detail-modal {
  position: relative;
  width: 440px;
  max-width: 95vw;
  height: 620px;
  max-height: 85vh;
  background: #1F1F23;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ttScaleIn 0.15s ease-out;
}

.tt-timeline-detail-modal .tt-detail-pane.tt-detail-floating {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tt-timeline-detail-close-btn,
.tt-detail-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #8C8F98;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.tt-timeline-detail-close-btn:hover,
.tt-detail-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

@keyframes ttFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ttScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Google Keep Notes Module Styles
   ========================================================================== */
.tt-keep-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: start;
}
@media (max-width: 1300px) {
  .tt-keep-masonry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 880px) {
  .tt-keep-masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .tt-keep-masonry-grid {
    grid-template-columns: 1fr;
  }
}
.tt-keep-masonry-grid.is-list-mode {
  display: flex !important;
  flex-direction: column !important;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
}

.tt-keep-card {
  break-inside: avoid;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  min-height: 80px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tt-keep-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
}

.tt-keep-card-body {
  max-height: 220px;
  overflow: hidden;
  position: relative;
  word-break: break-word;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.tt-keep-card-text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-keep-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  min-height: 20px;
}

.tt-keep-card-select-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tt-keep-card:hover .tt-keep-card-select-bubble,
.tt-keep-card-select-bubble.active,
.tt-keep-card.selected .tt-keep-card-select-bubble {
  opacity: 1 !important;
}
.tt-keep-card.selected {
  border-color: #2C7DF8 !important;
  box-shadow: 0 0 0 2px rgba(44, 125, 248, 0.55), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
.tt-keep-card-select-bubble.active,
.tt-keep-card.selected .tt-keep-card-select-bubble {
  background: #2C7DF8 !important;
  border-color: #2C7DF8 !important;
  color: #FFFFFF !important;
}

.tt-keep-card-pin-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.tt-keep-card:hover .tt-keep-card-pin-btn {
  opacity: 0.85;
}
.tt-keep-card-pin-btn.active {
  opacity: 1 !important;
  color: #FFD54D;
}

.tt-keep-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 4px;
}

.tt-keep-card-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 0;
  text-align: left;
}

.tt-keep-card-checklist {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tt-keep-cl-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  padding: 3px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s ease;
  line-height: 1.4;
}
.tt-keep-cl-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tt-keep-cl-box {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  border-radius: 3px;
  border: 1.5px solid #8C8F98;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}
.tt-keep-cl-box:hover {
  border-color: #2C7DF8;
}
.tt-keep-cl-box.checked {
  background: #2C7DF8;
  border-color: #2C7DF8;
}
.tt-keep-cl-box svg {
  width: 10px;
  height: 10px;
  stroke: #FFFFFF;
  color: #FFFFFF;
  display: none;
  pointer-events: none;
}
.tt-keep-cl-box.checked svg {
  display: block;
}

.tt-keep-cl-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-keep-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D1D5DB;
}
.tt-keep-chip.reminder {
  background: rgba(44, 125, 248, 0.15);
  border-color: rgba(44, 125, 248, 0.35);
  color: #82B1FF;
}

.tt-keep-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tt-keep-card:hover .tt-keep-card-toolbar {
  opacity: 1;
}

.tt-keep-tool-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 4px 6px;
  color: #9AA0A6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  transition: background 0.12s ease, color 0.12s ease;
}
.tt-keep-tool-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.tt-keep-card-palette-popover {
  position: absolute;
  bottom: 28px;
  left: 0;
  background: #222226;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.tt-keep-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-keep-modal-dialog {
  width: 92%;
  max-width: 600px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  animation: ttScaleIn 0.15s ease-out;
}

.tt-notes-selection-header {
  background: #202124 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  height: 48px !important;
  animation: ttFadeIn 0.15s ease;
}

/* Modal Editar Marcadores (Google Keep) */
.tt-tags-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-tags-modal-dialog {
  width: 90%;
  max-width: 380px;
  background: #28292C;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  animation: ttScaleIn 0.15s ease-out;
}
.tt-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 4px;
  transition: background 0.12s ease;
}
.tt-tag-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.tt-tag-del-btn {
  background: none;
  border: none;
  color: #9AA0A6;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s ease;
}
.tt-tag-del-btn:hover {
  color: #FF5C5C;
}
.tt-tag-edit-inp {
  border-radius: 4px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.tt-tag-edit-inp:hover {
  background: rgba(255, 255, 255, 0.05);
}
.tt-tag-edit-inp:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-bottom: 1px solid #2C7DF8 !important;
}

/* Modal Configurações Google Keep (media_1792788003618_5af2cc7f.png) */
.tt-settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-settings-modal-backdrop.hidden {
  display: none !important;
}
.tt-settings-modal-dialog {
  width: 90%;
  max-width: 380px;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  animation: ttScaleIn 0.15s ease-out;
}
.tt-settings-modal-title {
  font-size: 20px;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.tt-settings-section-title {
  color: #8ab4f8;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.tt-settings-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.tt-settings-label {
  font-size: 13.5px;
  color: #e8eaed;
  flex: 1;
  padding-right: 12px;
  line-height: 1.35;
}
.tt-settings-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #8ab4f8;
  cursor: pointer;
}
.tt-settings-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 10px;
}
.tt-settings-cancel-btn {
  background: transparent;
  border: none;
  color: #8ab4f8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.12s ease;
}
.tt-settings-cancel-btn:hover {
  background: rgba(138, 180, 248, 0.08);
}
.tt-settings-save-btn {
  background: transparent;
  border: none;
  color: #8ab4f8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 4px;
  transition: background 0.12s ease;
}
.tt-settings-save-btn:hover {
  background: rgba(138, 180, 248, 0.08);
}

/* Floating Tag Color Palette (Fixes overflow clipping) */
.tt-floating-tag-palette {
  position: fixed;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3500;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  width: 210px;
  animation: ttScaleIn 0.12s ease-out;
}
.tt-floating-tag-palette.hidden {
  display: none !important;
}

/* Floating Note Color Palette (Google Keep style, dark theme) */
.tt-floating-note-palette {
  position: fixed;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4500;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  width: 220px;
  animation: ttScaleIn 0.12s ease-out;
}
.tt-floating-note-palette.hidden {
  display: none !important;
}

/* Slash Command Menu Popover (Ações por /) */
.tt-slash-menu-popover {
  position: fixed;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  width: 250px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 4000;
  padding: 4px 0;
  animation: ttScaleIn 0.12s ease-out;
}
.tt-slash-menu-popover.hidden {
  display: none !important;
}
.tt-slash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.tt-slash-item:hover,
.tt-slash-item.selected {
  background: rgba(44, 125, 248, 0.18);
}
.tt-slash-icon {
  font-size: 15px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-slash-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tt-slash-title {
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
}
.tt-slash-desc {
  font-size: 11px;
  color: #9AA0A6;
}
.tt-slash-shortcut {
  font-size: 11px;
  color: #8C8F98;
  font-family: monospace;
}

/* Tag Autocomplete Popover (#marcador) */
.tt-tag-autocomplete-popover {
  position: fixed;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  width: 230px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 4000;
  padding: 4px 0;
  animation: ttScaleIn 0.12s ease-out;
}
.tt-tag-autocomplete-popover.hidden {
  display: none !important;
}
.tt-tag-auto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.tt-tag-auto-item:hover,
.tt-tag-auto-item.selected {
  background: rgba(44, 125, 248, 0.18);
}
.tt-tag-auto-name {
  font-size: 13px;
  color: #FFFFFF;
  flex: 1;
}

/* Formatação do texto da nota */
.tt-keep-card-h1 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 6px 0 2px;
  line-height: 1.3;
}
.tt-keep-card-h2 {
  font-size: 13.5px;
  font-weight: 600;
  color: #E8EAED;
  margin: 5px 0 2px;
  line-height: 1.3;
}
.tt-keep-card-h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: #8ab4f8;
  margin: 4px 0 2px;
}
.tt-keep-card-quote {
  border-left: 3px solid #2C7DF8;
  padding-left: 8px;
  color: #9AA0A6;
  font-style: italic;
  font-size: 12px;
  margin: 4px 0;
}

/* Rich Note Editor (WYSIWYG, estilo Google Keep / Notion) */
.tt-keep-rich-editor {
  width: 100%;
  min-height: 120px;
  max-height: 55vh;
  overflow-y: auto;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-family: inherit;
  cursor: text;
  word-break: break-word;
  padding: 4px 0;
}

.tt-keep-rich-editor:focus {
  outline: none;
}

.tt-keep-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  font-style: normal;
}

.tt-editor-block {
  min-height: 1.5em;
  margin: 1px 0;
}

.tt-editor-h1 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 8px 0 4px;
}

.tt-editor-h2 {
  font-size: 16.5px;
  font-weight: 600;
  color: #E8EAED;
  line-height: 1.35;
  margin: 6px 0 3px;
}

.tt-editor-h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #8ab4f8;
  margin: 5px 0 2px;
}

.tt-editor-quote {
  border-left: 3px solid #2C7DF8;
  padding-left: 10px;
  color: #9AA0A6;
  font-style: italic;
  margin: 5px 0;
}

.tt-editor-divider {
  margin: 10px 0;
  user-select: none;
  cursor: default;
  padding: 4px 0;
}
.tt-editor-divider hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0;
  pointer-events: none;
}

.tt-editor-chk-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0;
  line-height: 1.5;
  min-height: 24px;
  position: relative;
  transition: background 0.12s ease;
  border-radius: 4px;
}

.tt-editor-chk-drag-handle,
.tt-keep-cl-drag-handle {
  user-select: none;
  cursor: grab;
  width: 16px;
  height: 20px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #787C82;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.tt-editor-chk-row:hover .tt-editor-chk-drag-handle,
.tt-keep-modal-cl-row:hover .tt-keep-cl-drag-handle,
.tt-keep-capture-cl-row:hover .tt-keep-cl-drag-handle {
  opacity: 0.75;
}

.tt-editor-chk-drag-handle:hover,
.tt-keep-cl-drag-handle:hover {
  opacity: 1 !important;
  color: var(--tt-primary, #4772FA) !important;
  transform: scale(1.1);
}

.tt-editor-chk-drag-handle:active,
.tt-keep-cl-drag-handle:active {
  cursor: grabbing;
}

.tt-editor-block.tt-block-dragging,
.tt-keep-modal-cl-row.tt-block-dragging,
.tt-keep-capture-cl-row.tt-block-dragging {
  opacity: 0.45 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 4px;
}

.tt-editor-block.tt-drag-over-top,
.tt-keep-modal-cl-row.tt-drag-over-top,
.tt-keep-capture-cl-row.tt-drag-over-top {
  border-top: 2px solid var(--tt-primary, #4772FA) !important;
}

.tt-editor-block.tt-drag-over-bottom,
.tt-keep-modal-cl-row.tt-drag-over-bottom,
.tt-keep-capture-cl-row.tt-drag-over-bottom {
  border-bottom: 2px solid var(--tt-primary, #4772FA) !important;
}

.tt-editor-chk-btn {
  user-select: none;
  cursor: pointer;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  border-radius: 3.5px;
  border: 1.5px solid #8C8F98;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3.5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.tt-editor-chk-btn:hover {
  border-color: #2C7DF8;
  background: rgba(44, 125, 248, 0.08);
}

.tt-editor-chk-btn.checked {
  background: #2C7DF8;
  border-color: #2C7DF8;
}

.tt-editor-chk-btn svg {
  width: 11px;
  height: 11px;
  stroke: #FFFFFF;
  color: #FFFFFF;
  display: none;
  pointer-events: none;
}

.tt-editor-chk-btn.checked svg {
  display: block;
}

.tt-editor-chk-text {
  flex: 1;
  outline: none;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #FFFFFF;
  word-break: break-word;
}

.tt-editor-chk-text.tt-strikethrough {
  text-decoration: line-through;
  color: #787C82;
}

.tt-editor-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0;
  line-height: 1.5;
  min-height: 24px;
}
.tt-editor-bullet-dot {
  user-select: none;
  color: #9AA0A6;
  font-size: 16px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.4;
}
.tt-editor-bullet-text {
  flex: 1;
  outline: none;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #FFFFFF;
  word-break: break-word;
}

.tt-editor-num-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0;
  line-height: 1.5;
  min-height: 24px;
}
.tt-editor-num-prefix {
  user-select: none;
  color: #9AA0A6;
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.5;
}
.tt-editor-num-text {
  flex: 1;
  outline: none;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #FFFFFF;
  word-break: break-word;
}

/* Custom note color picker button styling */
.tt-note-color-custom-btn {
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.tt-note-color-custom-btn:hover {
  transform: scale(1.12);
  border-color: #2C7DF8 !important;
  color: #FFFFFF !important;
}

/* ============================================================================
   GOOGLE CALENDAR EXCLUSIVE MODULE & EXTERNAL BOOKING SYSTEM
   ============================================================================ */
.tt-gcal-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--tt-bg-main, #141519);
}

.tt-gcal-sidebar {
  width: 274px;
  flex-shrink: 0;
  background: var(--tt-sidebar-bg, #1B1C21);
  border-right: 1px solid var(--tt-border, #282A33);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px;
  gap: 14px;
}

.tt-gcal-sb-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-gcal-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.tt-gcal-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-gcal-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.tt-gcal-brand-sub {
  font-size: 11px;
  color: var(--tt-text-muted, #8A8F99);
}

.tt-gcal-create-group {
  display: flex;
  gap: 6px;
}

.tt-gcal-create-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--tt-primary-border, rgba(71, 114, 250, 0.45));
  background: var(--tt-primary, #4772FA);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--tt-primary-alpha, rgba(71, 114, 250, 0.3));
  transition: all 0.15s ease;
}

.tt-gcal-create-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.tt-gcal-plus-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.tt-gcal-create-split {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--tt-border, #2E313D);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-gcal-create-split:hover {
  background: var(--tt-primary-alpha, rgba(71, 114, 250, 0.18));
  border-color: var(--tt-primary, #4772FA);
}

.tt-gcal-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tt-gcal-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--tt-text-main, #D8DBE2);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s ease;
}

.tt-gcal-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tt-gcal-nav-item.active {
  background: rgba(66, 133, 244, 0.16);
  color: #8AB4F8;
  font-weight: 600;
}

.tt-gcal-nav-label {
  flex: 1;
}

.tt-gcal-nav-badge {
  background: rgba(66, 133, 244, 0.24);
  color: #8AB4F8;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.tt-gcal-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6B7280;
}

.tt-gcal-sync-dot.online {
  background: #34A853;
  box-shadow: 0 0 6px #34A853;
}

/* Mini Calendar in Sidebar */
.tt-gcal-mini-cal {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
}

.tt-gcal-mini-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.tt-gcal-mini-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.tt-gcal-mini-arrows {
  display: flex;
  gap: 4px;
}

.tt-gcal-mini-arrow {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #D8DBE2;
  cursor: pointer;
}

.tt-gcal-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--tt-text-muted, #8A8F99);
  margin-bottom: 4px;
}

.tt-gcal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.tt-gcal-mini-day {
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--tt-text-main, #D8DBE2);
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tt-gcal-mini-day:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.08);
}

.tt-gcal-mini-day.today {
  color: #4285F4;
  font-weight: 700;
}

.tt-gcal-mini-day.selected {
  background: #4285F4 !important;
  color: #FFFFFF !important;
  font-weight: 700;
}

.tt-gcal-mini-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34A853;
  position: absolute;
  bottom: 2px;
}

/* Google Calendars Account List in Sidebar */
.tt-gcal-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tt-text-muted, #8A8F99);
  padding: 0 4px;
}

.tt-gcal-sect-add-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.tt-gcal-calendars-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-gcal-cal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.tt-gcal-cal-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tt-gcal-cal-check-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tt-gcal-cal-checkbox {
  display: none;
}

.tt-gcal-cal-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #4285F4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #FFFFFF;
  font-weight: 700;
}

.tt-gcal-cal-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.tt-gcal-cal-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-gcal-cal-email {
  font-size: 10.5px;
  color: var(--tt-text-muted, #8A8F99);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-gcal-cal-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tt-gcal-conflict-pill,
.tt-gcal-cal-edit-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  padding: 3px;
  border-radius: 5px;
  opacity: 0.45;
}

.tt-gcal-conflict-pill.active {
  opacity: 1;
}

.tt-gcal-cal-row:hover .tt-gcal-cal-edit-btn {
  opacity: 0.9;
}

.tt-gcal-public-card {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.25);
}

.tt-gcal-public-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-gcal-live-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.2);
  color: #34A853;
}

.tt-gcal-public-actions {
  display: flex;
  gap: 6px;
}

.tt-gcal-pub-btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--tt-border, #2E3240);
  background: rgba(255, 255, 255, 0.05);
  color: var(--tt-text-main, #E5E7EB);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}

.tt-gcal-pub-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tt-gcal-pub-btn.primary {
  background: var(--tt-primary, #4772FA);
  border-color: var(--tt-primary, #4772FA);
  color: #FFFFFF;
}

.tt-gcal-pub-btn.danger {
  background: rgba(234, 67, 53, 0.14);
  border-color: rgba(234, 67, 53, 0.35);
  color: #F28B82;
}

/* Main Stage & Header */
.tt-gcal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.tt-gcal-header {
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--tt-border, #282A33);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.tt-gcal-hdr-left,
.tt-gcal-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-gcal-today-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--tt-border, #2E3240);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.tt-gcal-period-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.tt-gcal-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tt-border, #2E3240);
  border-radius: 8px;
  padding: 0 10px;
  height: 32px;
}

.tt-gcal-search-box input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 12.5px;
  outline: none;
  width: 170px;
}

.tt-gcal-view-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tt-border, #2E3240);
  border-radius: 8px;
  padding: 2px;
}

.tt-gcal-view-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--tt-text-muted, #8A8F99);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tt-gcal-view-btn.active {
  background: #4285F4;
  color: #FFFFFF;
}

.tt-gcal-stage-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Month View */
.tt-gcal-month-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tt-gcal-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--tt-border, #282A33);
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--tt-text-muted, #8A8F99);
}

.tt-gcal-month-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  overflow-y: auto;
}

.tt-gcal-day-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 90px;
  cursor: pointer;
}

.tt-gcal-day-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tt-gcal-day-cell.outside {
  opacity: 0.4;
}

.tt-gcal-day-cell.drag-over {
  background: rgba(66, 133, 244, 0.16);
}

.tt-gcal-day-cell-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-gcal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-text-main, #D8DBE2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-gcal-day-num.today {
  background: #4285F4;
  color: #FFFFFF;
}

.tt-gcal-cell-quick-add {
  opacity: 0;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.tt-gcal-day-cell:hover .tt-gcal-cell-quick-add {
  opacity: 1;
}

.tt-gcal-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tt-gcal-evt-pill {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tt-gcal-evt-time {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}

.tt-gcal-evt-title {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.tt-gcal-more-evts {
  font-size: 11px;
  color: #8AB4F8;
  font-weight: 600;
  padding-left: 4px;
}

/* Week & Day 24h Time Grid */
.tt-gcal-week-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tt-gcal-week-hdr {
  display: grid;
  grid-template-columns: 68px repeat(7, 1fr);
  border-bottom: 1px solid var(--tt-border, #282A33);
  padding: 8px 0;
}

.tt-gcal-time-gutter-hdr {
  font-size: 10px;
  color: var(--tt-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-gcal-week-day-col-hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.tt-gcal-wk-dow {
  font-size: 11px;
  font-weight: 600;
  color: var(--tt-text-muted);
}

.tt-gcal-wk-dnum {
  font-size: 16px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-gcal-wk-dnum.today {
  background: #4285F4;
  color: #FFFFFF;
}

.tt-gcal-allday-row {
  display: grid;
  grid-template-columns: 68px repeat(auto-fit, minmax(80px, 1fr));
  border-bottom: 1px solid var(--tt-border, #282A33);
  min-height: 32px;
}

.tt-gcal-time-gutter-allday {
  font-size: 10px;
  color: var(--tt-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--tt-border, #282A33);
}

.tt-gcal-allday-cell {
  padding: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tt-gcal-timegrid-scroll {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.tt-gcal-timegrid-body {
  display: grid;
  grid-template-columns: 68px repeat(7, 1fr);
  position: relative;
  min-height: 1344px; /* 24 * 56px */
}

.tt-gcal-time-gutter {
  border-right: 1px solid var(--tt-border, #282A33);
}

.tt-gcal-hour-label {
  height: 56px;
  font-size: 10.5px;
  color: var(--tt-text-muted);
  text-align: right;
  padding: 2px 8px 0 0;
}

.tt-gcal-day-time-col {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.tt-gcal-hour-slot {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tt-gcal-hour-slot:hover {
  background: rgba(66, 133, 244, 0.06);
}

.tt-gcal-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #EA4335;
  z-index: 15;
  pointer-events: none;
}

.tt-gcal-now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EA4335;
  position: absolute;
  left: -5px;
  top: -4px;
}

.tt-gcal-timed-event {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  padding: 4px 7px;
  color: #FFFFFF;
  font-size: 11.5px;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tt-gcal-te-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-gcal-te-meta {
  font-size: 10px;
  opacity: 0.9;
}

/* Day View Split */
.tt-gcal-dayview-split {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.tt-gcal-day-aside {
  width: 300px;
  border-left: 1px solid var(--tt-border, #282A33);
  padding: 16px;
  overflow-y: auto;
}

.tt-gcal-day-aside-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tt-border, #282A33);
  border-radius: 10px;
  padding: 14px;
}

.tt-gcal-day-free-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-gcal-free-slot-chip {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(52, 168, 83, 0.14);
  border: 1px solid rgba(52, 168, 83, 0.35);
  color: #81C995;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tt-gcal-free-slot-chip:hover {
  background: #34A853;
  color: #FFFFFF;
}

/* Year View */
.tt-gcal-year-grid {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tt-gcal-yr-month-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--tt-border, #282A33);
  border-radius: 10px;
  padding: 12px;
}

.tt-gcal-yr-month-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.tt-gcal-yr-weekdays,
.tt-gcal-yr-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  gap: 2px;
}

.tt-gcal-yr-day {
  height: 24px;
  border: none;
  background: transparent;
  color: var(--tt-text-main);
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
}

.tt-gcal-yr-day.has-evt {
  font-weight: 700;
  color: #8AB4F8;
  background: rgba(66, 133, 244, 0.14);
}

.tt-gcal-yr-day.today {
  background: #4285F4;
  color: #FFFFFF;
}

/* Schedule / Agenda View */
.tt-gcal-schedule-list {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-gcal-sched-day-group {
  display: flex;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tt-border, #282A33);
}

.tt-gcal-sched-date-col {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.tt-gcal-sched-dnum {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.tt-gcal-sched-dow {
  font-size: 12px;
  color: var(--tt-text-muted);
  text-transform: uppercase;
}

.tt-gcal-sched-events-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-gcal-sched-evt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.tt-gcal-sched-evt-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tt-gcal-sched-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-gcal-sched-time {
  width: 110px;
  font-size: 12.5px;
  font-weight: 600;
  color: #D8DBE2;
}

.tt-gcal-sched-info {
  flex: 1;
}

.tt-gcal-sched-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.tt-gcal-sched-sub {
  font-size: 11.5px;
  color: var(--tt-text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.tt-gcal-meet-chip {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(66, 133, 244, 0.16);
  color: #8AB4F8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Booking Hub Styles */
.tt-booking-subtabs {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--tt-border, #282A33);
  background: rgba(0, 0, 0, 0.14);
}

.tt-booking-tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--tt-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.tt-booking-tab-btn.active {
  background: rgba(66, 133, 244, 0.16);
  border-color: rgba(66, 133, 244, 0.35);
  color: #8AB4F8;
}

.tt-booking-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.tt-bk-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tt-bk-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tt-bk-type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tt-border, #282A33);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-bk-type-card-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tt-bk-type-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.tt-bk-type-card-slug {
  font-size: 12px;
  color: #8AB4F8;
  margin-top: 2px;
}

.tt-bk-type-card-desc {
  font-size: 12.5px;
  color: var(--tt-text-muted);
  line-height: 1.45;
}

.tt-bk-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-bk-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #D8DBE2;
}

.tt-bk-type-card-footer {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tt-bk-avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.tt-bk-avail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tt-border, #282A33);
  border-radius: 12px;
  padding: 18px;
}

.tt-bk-conflict-cals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-bk-conflict-cal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.tt-bk-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tt-bk-conflict-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.tt-bk-conflict-status.on {
  background: rgba(52, 168, 83, 0.18);
  color: #81C995;
}

.tt-bk-conflict-status.off {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tt-text-muted);
}

.tt-bk-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.tt-bk-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #D8DBE2;
}

.tt-gcal-input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid var(--tt-border, #2E3240);
  background: #14161D;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
}

.tt-gcal-input:focus {
  border-color: var(--tt-primary, #4772FA);
}

.tt-bk-weekly-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-bk-day-sched-row {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tt-bk-day-sched-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-bk-shifts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tt-bk-shift-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.tt-bk-time-input {
  background: #14161D;
  border: 1px solid var(--tt-border, #2E3240);
  color: #FFFFFF;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 12px;
}

.tt-bk-reservations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-bk-res-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tt-border, #282A33);
}

.tt-bk-res-card.cancelled {
  opacity: 0.55;
}

.tt-bk-res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-bk-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.18);
  color: #81C995;
}

.tt-bk-status-pill.cancelled {
  background: rgba(234, 67, 53, 0.18);
  color: #F28B82;
}

.tt-bk-sim-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.tt-bk-sim-slot {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--tt-border, #282A33);
  background: rgba(0, 0, 0, 0.2);
}

.tt-bk-sim-slot.free {
  border-color: rgba(52, 168, 83, 0.35);
}

.tt-bk-sim-slot.blocked {
  border-color: rgba(234, 67, 53, 0.35);
  background: rgba(234, 67, 53, 0.06);
}

.tt-gcal-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.tt-gcal-color-dot.active {
  box-shadow: 0 0 0 2px #1C1E26, 0 0 0 4px #FFFFFF;
}

.tt-gcal-empty-schedule {
  padding: 60px 20px;
  text-align: center;
}

/* ==========================================================================
   Kairós Mobile Responsive & PWA WebApp Engine (REA Verified & Mobile First)
   Cuidados Especiais com Painéis: Drawer, Slide-Over, Touch Targets & Bottom Nav
   ========================================================================== */

/* 1. Regras para Telas Grandes / Desktop (> 768px): Ocultar elementos exclusivos de mobile */
@media (min-width: 769px) {
  .tt-mobile-top-bar,
  .tt-mobile-bottom-nav,
  .tt-mobile-fab,
  .tt-mobile-drawer-overlay,
  .tt-mobile-more-backdrop,
  .tt-detail-mobile-back-btn {
    display: none !important;
  }
}

/* 2. Regras para Telas Médias e Pequenas / Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --tt-mob-hdr-h: 50px;
    --tt-mob-nav-h: 56px;
  }

  html, body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Evitar auto-zoom agressivo do iOS Safari em inputs */
  input, textarea, select {
    font-size: 16px !important;
  }

  .tt-app-window {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Ocultar barra lateral fixa do desktop */
  .tt-left-rail {
    display: none !important;
  }

  /* Workspace principal ocupa a altura entre o header e o bottom nav */
  .tt-workspace {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    flex: 1 !important;
    height: calc(100dvh - var(--tt-mob-hdr-h) - var(--tt-mob-nav-h) - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .tt-module-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    flex: 1 !important;
    height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* ------------------------------------------------------------------------
     Top Header Mobile (.tt-mobile-top-bar)
     ------------------------------------------------------------------------ */
  .tt-mobile-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: var(--tt-mob-hdr-h) !important;
    background: var(--tt-rail-bg, #17171A) !important;
    border-bottom: 1px solid var(--tt-border, rgba(255, 255, 255, 0.08)) !important;
    padding: 0 12px !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
  }

  .tt-mobile-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .tt-mobile-hdr-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-text-main, #FFFFFF);
    background: transparent;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
  }
  .tt-mobile-hdr-btn svg {
    width: 22px;
    height: 22px;
  }
  .tt-mobile-hdr-btn:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .tt-mobile-space-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    max-width: 130px;
    touch-action: manipulation;
  }
  .tt-mobile-space-icon {
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  .tt-mobile-space-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tt-mobile-caret {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .tt-mobile-top-center {
    flex: 1;
    text-align: center;
    overflow: hidden;
    padding: 0 6px;
  }
  .tt-mobile-module-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  .tt-mobile-top-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .tt-mobile-avatar-btn {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 2px;
    touch-action: manipulation;
  }
  .tt-mobile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ------------------------------------------------------------------------
     Bottom Navigation Bar Mobile (.tt-mobile-bottom-nav)
     ------------------------------------------------------------------------ */
  .tt-mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--tt-mob-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #17171A !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 1000 !important;
    align-items: center !important;
    justify-content: space-around !important;
    backdrop-filter: blur(16px) !important;
  }

  .tt-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.15s ease, transform 0.1s ease;
  }
  .tt-mobile-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .tt-mobile-nav-item.active {
    color: var(--tt-primary, #4772FA) !important;
    font-weight: 700;
  }
  .tt-mobile-nav-item:active {
    transform: scale(0.92);
  }

  /* ------------------------------------------------------------------------
     Floating Action Button (FAB)
     ------------------------------------------------------------------------ */
  .tt-mobile-fab {
    display: flex !important;
    position: fixed !important;
    right: 18px !important;
    bottom: calc(var(--tt-mob-nav-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 990 !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 26px !important;
    background: var(--tt-primary, #4772FA) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(71, 114, 250, 0.45) !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
  }
  .tt-mobile-fab svg {
    width: 26px !important;
    height: 26px !important;
  }
  .tt-mobile-fab:active {
    transform: scale(0.9) !important;
  }

  /* ------------------------------------------------------------------------
     Drawer Overlay & Sidebar Off-Canvas (.tt-sidebar-pane)
     ------------------------------------------------------------------------ */
  .tt-mobile-drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 1190 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease !important;
  }
  body.tt-mobile-sidebar-open .tt-mobile-drawer-overlay {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .tt-sidebar-pane,
  .tt-gcal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 85vw !important;
    max-width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1200 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease !important;
    background: #1B1B1F !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: calc(var(--tt-mob-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    box-shadow: none !important;
  }
  body.tt-mobile-sidebar-open .tt-sidebar-pane,
  body.tt-mobile-sidebar-open .tt-gcal-sidebar {
    transform: translateX(0) !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.8) !important;
  }

  .tt-sidebar-scroll {
    padding: 10px 8px !important;
  }

  .tt-sidebar-pane .tt-nav-item,
  .tt-sidebar-pane .tt-project-item,
  .tt-sidebar-pane .tt-tag-item,
  .tt-sidebar-pane .tt-filter-item {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  /* ------------------------------------------------------------------------
     Center Pane (.tt-center-pane, .tt-gcal-main, .tt-full-pane)
     ------------------------------------------------------------------------ */
  .tt-center-pane,
  .tt-gcal-main,
  .tt-full-pane {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    flex: 1 !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(var(--tt-mob-nav-h) + 24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tt-main-header {
    padding: 10px 14px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .tt-header-title {
    font-size: 16px !important;
  }

  /* Lista de Tarefas Mobile */
  .tt-task-row {
    padding: 12px 14px !important;
    min-height: 48px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  }
  .tt-task-title {
    font-size: 14.5px !important;
  }
  .tt-checkbox {
    width: 22px !important;
    height: 22px !important;
  }

  /* Barra de Entrada Rápida de Tarefa */
  .tt-quick-add-bar {
    margin: 8px 12px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
  }

  /* ------------------------------------------------------------------------
     Detail Pane Mobile — Slide-Over Full Screen Sheet (.tt-detail-pane)
     ------------------------------------------------------------------------ */
  .tt-detail-pane:not(.hidden) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1250 !important;
    background: var(--tt-bg-detail, #1C1C21) !important;
    border-left: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    animation: ttMobileSlideOver 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
  }

  @keyframes ttMobileSlideOver {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .tt-detail-mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    min-height: 38px !important;
    touch-action: manipulation !important;
  }
  .tt-detail-mobile-back-btn:active {
    background: rgba(255, 255, 255, 0.18) !important;
  }

  .tt-detail-top-tick {
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .tt-detail-scroll-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 12px 14px !important;
  }

  /* ------------------------------------------------------------------------
     Mobile "Mais" Bottom Sheet (.tt-mobile-more-backdrop)
     ------------------------------------------------------------------------ */
  .tt-mobile-more-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.68) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  .tt-mobile-more-backdrop.hidden {
    display: none !important;
  }

  .tt-mobile-more-sheet {
    width: 100% !important;
    max-width: 500px !important;
    background: #1F1F24 !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    animation: ttSheetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes ttSheetSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .tt-sheet-drag-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 12px;
  }
  .tt-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .tt-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
  }
  .tt-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .tt-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #E0E2EC;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s;
  }
  .tt-sheet-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.96);
  }
  .tt-sheet-icon {
    font-size: 24px;
    line-height: 1;
  }
  .tt-sheet-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
  }
  .tt-sheet-pwa-btn {
    background: rgba(71, 114, 250, 0.18) !important;
    border-color: rgba(71, 114, 250, 0.35) !important;
    color: #8AB4F8 !important;
  }

  /* ------------------------------------------------------------------------
     Popovers como Bottom Sheets no Celular
     ------------------------------------------------------------------------ */
  .tt-workspace-popover,
  .tt-user-profile-popover {
    position: fixed !important;
    top: auto !important;
    bottom: calc(var(--tt-mob-nav-h) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    z-index: 1400 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  }

  /* ------------------------------------------------------------------------
     Ocultar redimensionadores no mobile
     ------------------------------------------------------------------------ */
  .tt-pane-resizer,
  .tt-resizer-left,
  .tt-resizer-right {
    display: none !important;
  }

  /* ------------------------------------------------------------------------
     Notas (Google Keep Style) no Mobile
     ------------------------------------------------------------------------ */
  .tt-keep-masonry-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .tt-keep-modal-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }
  .tt-keep-cl-drag-handle {
    opacity: 0.75 !important;
  }

  /* ------------------------------------------------------------------------
     Agenda & Booking no Mobile
     ------------------------------------------------------------------------ */
  .tt-gcal-layout {
    flex-direction: column !important;
  }

  /* ------------------------------------------------------------------------
     Matriz Eisenhower & Hábitos no Mobile
     ------------------------------------------------------------------------ */
  .tt-matrix-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    overflow-y: auto !important;
    gap: 12px !important;
    padding: 12px 12px 80px !important;
  }
  .tt-quadrant {
    min-height: 220px !important;
  }
}

@media (max-width: 480px) {
  .tt-sheet-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}












