:root {
  --gt-bg-page: #f8fafc;
  --gt-bg-card: #ffffff;
  --gt-bg-soft: #f3f4f6;
  --gt-border-subtle: #e5e7eb;
  --gt-text-main: #111827;
  --gt-text-muted: #6b7280;
  --gt-text-soft: #9ca3af;
  --gt-accent: #4f46e5;
  --gt-accent-strong: #4338ca;
  --gt-accent-soft: rgba(79, 70, 229, 0.08);
  --gt-danger: #ef4444;
  --gt-danger-soft: rgba(239, 68, 68, 0.08);
  --gt-radius-sm: 6px;
  --gt-radius-md: 10px;
  --gt-radius-lg: 14px;
  --gt-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --gt-shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.06);
  --gt-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--gt-font-sans);
  background: var(--gt-bg-page);
  color: var(--gt-text-main);
  line-height: 1.5;
}

.is-hidden {
  display: none !important;
}

#app-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.gt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gt-border-subtle);
  flex-shrink: 0;
  background: var(--gt-bg-page);
}

.gt-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gt-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  font-family: var(--gt-font-sans);
  letter-spacing: -0.01em;
}

.gt-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--gt-border-subtle);
  background: #f9fafb;
  color: var(--gt-text-main);
  font-size: 11px;
}

.gt-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.gt-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--gt-border-subtle);
  background: #f9fafb;
  color: #374151;
}

.gt-badge.gt-ok {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.gt-badge.gt-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.gt-toast-stack {
  position: fixed;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.gt-toast {
  min-width: 180px;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #111827;
  color: #f9fafb;
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gt-toast-success {
  background: #0f172a;
  border: 1px solid #16a34a33;
}

.gt-toast-error {
  background: #7f1d1d;
  border: 1px solid #fca5a5;
}

.gt-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout */
.gt-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

#gt-switch-workspace {
  font-size: 11px;
}

.gt-panel {
  background: var(--gt-bg-card);
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.gt-panel-header {
  padding: 7px 12px;
  border-bottom: 1px solid var(--gt-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
}

.gt-panel-header h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b5563;
}

.gt-panel-header-left {
  display: flex;
  align-items: center;
}

.gt-panel-header-middle {
  flex: 1;
  display: flex;
  justify-content: center;
}

.gt-panel-header-actions,
.gt-workspace-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.gt-panel-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
}

/* Workspace chooser */
.gt-chooser-page {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--gt-bg-page);
}

.gt-chooser-page:not(.is-hidden) {
  display: flex;
}

.gt-chooser-shell {
  width: min(960px, 100%);
  background: #ffffff;
  border: 1px solid var(--gt-border-subtle);
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gt-chooser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gt-muted {
  color: var(--gt-text-muted);
  font-size: 12px;
}

.gt-workspace-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  width: 100%;
}

.gt-workspace-picker-item {
  border: 1px solid var(--gt-border-subtle);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: var(--gt-shadow-subtle);
}

.gt-workspace-picker-item:hover {
  border-color: var(--gt-accent);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
  background: #eef2ff;
}

.gt-workspace-picker-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gt-text-main);
}

.gt-workspace-picker-sub {
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-workspace-picker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gt-workspace-picker-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
}

.gt-workspace-picker-emoji {
  font-size: 18px;
  line-height: 1;
}

.gt-workspace-picker-gear {
  margin-left: auto;
  border: 1px solid var(--gt-border-subtle);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.gt-workspace-picker-gear:hover {
  border-color: var(--gt-accent);
  color: var(--gt-accent);
}

/* View tabs */
.gt-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--gt-border-subtle);
  margin-bottom: 0;
}

.gt-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.gt-mode-tab {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--gt-text-main);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gt-role-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.gt-mode-tab.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.16);
}

.gt-view-tab {
  border: none;
  background: transparent;
  color: var(--gt-text-muted);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.gt-view-tab-active {
  background: #ffffff;
  color: var(--gt-text-main);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

#gt-tasks-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.gt-view-section {
  margin-top: 2px;
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.gt-view-section.is-active {
  display: flex;
}

.gt-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 0 12px;
}

/* Grid tabs (Data view) */
.gt-grid-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px 0;
}

.gt-grid-tabs-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f7f8fb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.gt-grid-tab-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gt-grid-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7dce5;
  background: #f9fafb;
  color: #374151;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.gt-grid-tab .gt-grid-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gt-grid-tab .gt-grid-tab-caret {
  margin-left: 4px;
  color: #6b7280;
  font-size: 11px;
}

.gt-grid-tab.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1f2937;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.16);
}

.gt-grid-tab:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #111827;
}

.gt-grid-tab-add {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.gt-grid-tab-add:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #f9fafb;
}

.gt-grid-tab-edit {
  padding: 0;
}

.gt-grid-rename-input {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.gt-grid-rename-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

/* Form elements */
.gt-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gt-field-group label {
  font-size: 11px;
  color: var(--gt-text-muted);
}

.gt-input,
.gt-select,
.gt-textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--gt-border-subtle);
  background: #ffffff;
  color: var(--gt-text-main);
  outline: none;
}

.gt-textarea {
  min-height: 60px;
  resize: vertical;
}

.gt-select:focus,
.gt-input:focus,
.gt-textarea:focus {
  border-color: var(--gt-accent);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
}

/* Buttons */
.gt-button {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--gt-border-subtle);
  background: #ffffff;
  color: var(--gt-text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gt-button:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.gt-button-primary {
  background: linear-gradient(135deg, var(--gt-accent), #6366f1);
  border-color: var(--gt-accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

.gt-button-primary:hover {
  background: linear-gradient(135deg, var(--gt-accent-strong), var(--gt-accent));

.gt-option-color::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
}

.gt-button-danger {
  background: var(--gt-danger-soft);
  border-color: #fecaca;
  color: #b91c1c;
}
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-40%);

.gt-button-danger:hover {
  background: #fee2e2;
}

.gt-button-small {
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 8px;
}

/* Modal */
.gt-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gt-modal:not(.is-hidden) {
  display: flex;
}

.gt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.gt-modal-card {
  position: relative;
  width: min(720px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gt-border-subtle);
  box-shadow: var(--gt-shadow-soft);
  padding: 14px;
  overflow: auto;
  z-index: 1;
}

.gt-modal-card-large {
  width: min(840px, 94vw);
  padding: 16px;
}

.gt-modal-card-medium {
  width: min(560px, 92vw);
}

.gt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gt-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gt-text-main);
}

.gt-modal-sub {
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-modal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.gt-modal-help {
  font-size: 12px;
  color: var(--gt-text-muted);
}

/* Drawer */
.gt-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.gt-drawer:not(.is-hidden) {
  display: block;
}

.gt-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
}

.gt-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #ffffff, #f9fafc);
  box-shadow: -14px 0 28px rgba(15, 23, 42, 0.14);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.gt-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gt-drawer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.gt-drawer-sub {
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-drawer-actions {
  display: flex;
  gap: 6px;
}

.gt-drawer-section {
  border-top: 1px solid var(--gt-border-subtle);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-drawer-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gt-drawer-field-label {
  font-size: 12px;
  color: var(--gt-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gt-drawer-field-control {
  display: flex;
}

.gt-comment-item,
.gt-activity-item {
  border: 1px solid var(--gt-border-subtle);
  border-radius: 8px;
  padding: 8px;
  background: #f9fafb;
}

.gt-comment-meta,
.gt-activity-meta {
  font-size: 11px;
  color: var(--gt-text-muted);
}

.gt-comment-text,
.gt-activity-text {
  font-size: 13px;
  color: var(--gt-text-main);
}

.gt-comment-new {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Roles / field editor */
.gt-field-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-field-row {
  border: 1px solid var(--gt-border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  gap: 10px;
}

.gt-field-name {
  font-size: 14px;
  font-weight: 600;
}

.gt-field-meta {
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-field-options-edit {
  display: none;
}

.gt-field-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gt-attachments-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.gt-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gt-attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--gt-border-subtle);
}

.gt-attachment-row a {
  text-decoration: none;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-attachment-row a:hover {
  text-decoration: underline;
}

.gt-attachments-add {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.gt-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-edit-options-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.gt-option-editor {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gt-option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gt-option-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  position: relative;
  overflow: visible;
}

.gt-option-list {
  overflow: visible;
}

.gt-option-handle {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: grab;
  color: #9ca3af;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gt-option-handle:active {
  cursor: grabbing;
}

.gt-option-row.is-drag-over-option {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.gt-option-drag {
  cursor: grab;
  color: #9ca3af;
  font-size: 14px;
}

.gt-option-color-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font: inherit;
  padding: 0;
  flex-shrink: 0;
}

.gt-option-caret {
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  width: auto;
  height: auto;
  border: none;
}

.gt-option-color-trigger:focus-visible,
.gt-option-swatch:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.gt-option-label {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  width: 100%;
}

.gt-option-delete {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  border-radius: 8px;
  padding: 6px 10px;
}

.gt-option-delete:hover {
  color: #b91c1c;
  border-color: #ef4444;
  background: #fff1f2;
}

.gt-option-palette {
  position: absolute;
  z-index: 220;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 160px;
}

.gt-option-palette.is-open {
  display: grid;
}

.gt-option-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: block;
}

.is-dragging-option {
  opacity: 0.6;
}

.is-drag-over-option {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.gt-option-footer {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.gt-option-add {
  align-self: flex-start;
}

.gt-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gt-roles-panel {
  border-top: 1px dashed var(--gt-border-subtle);
  padding-top: 6px;
}

.gt-role-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.gt-icon-preview {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.gt-role-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gt-role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid var(--gt-border-subtle);
  border-radius: 6px;
  background: #fff;
}

.gt-role-name {
  font-size: 13px;
  color: var(--gt-text-main);
}

.gt-role-email {
  font-size: 11px;
  color: var(--gt-text-muted);
}

.gt-emoji-grid {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}

.gt-emoji-btn {
  border: 1px solid var(--gt-border-subtle);
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
}

.gt-emoji-btn:hover {
  border-color: var(--gt-accent);
}

.gt-chip-plain {
  background: #f3f4f6;
  border: 1px solid var(--gt-border-subtle);
  color: var(--gt-text-main);
}

/* Tables */
.gt-table-wrapper {
  border-radius: 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  overflow: auto;
  background: #ffffff;
  box-shadow: none;
  position: relative;
  flex: 1;
  min-height: 0;
}

.gt-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.gt-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gt-chip-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gt-chip-button:hover {
  border-color: #cbd5e1;
}

.gt-chip-button.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.16);
}

.gt-chip-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #4338ca;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 6px;
}

.gt-filter-flyout {
  position: absolute;
  z-index: 9999;
  min-width: 380px;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 14px;
}

.gt-filter-flyout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gt-filter-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.gt-filter-sub {
  font-size: 12px;
  color: #6b7280;
}

.gt-filter-link {
  border: none;
  background: transparent;
  color: #4338ca;
  cursor: pointer;
  font-size: 12px;
}

.gt-filter-conditions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 10px;
}

.gt-filter-row-line {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.gt-filter-input {
  width: 100%;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #dfe4ec;
  padding: 6px 10px;
  font-size: 12px;
  background: #ffffff;
}

.gt-filter-input:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.4);
  outline: none;
}

.gt-filter-value {
  width: 100%;
}

.gt-filter-placeholder {
  font-size: 12px;
  color: #6b7280;
  padding-left: 4px;
}

.gt-filter-remove {
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #6b7280;
}

.gt-filter-remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.gt-filter-add {
  width: 100%;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
}

.gt-filter-add:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.gt-filter-empty {
  font-size: 12px;
  color: #6b7280;
  padding: 6px 2px;
}

.gt-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.gt-filter-hint {
  font-size: 12px;
  color: #6b7280;
}

.gt-filter-footer-actions {
  display: flex;
  gap: 6px;
}

.gt-group-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.gt-group-option {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: #111827;
}

.gt-group-option.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.18);
}

.gt-group-option:hover {
  border-color: #cbd5e1;
}

.gt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  overflow: visible;
  table-layout: fixed;
}

.gt-col-header {
  position: relative;
}

.gt-col-header.is-draggable {
  cursor: grab;
  user-select: none;
}

.gt-col-header.is-dragging {
  opacity: 0.75;
}

.gt-col-header.is-drag-over::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed #a5b4fc;
  border-radius: 8px;
  pointer-events: none;
}

.gt-table thead {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  box-shadow: 0 1px 0 #e5e7eb;
}

.gt-table td {
  position: relative;
}

.gt-table th,
.gt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #eef2f7;
  text-align: left;
  background: #ffffff;
}

.gt-col-leading,
.gt-row-leading {
  width: 38px;
  text-align: center;
  padding: 0 4px;
}

.gt-row-leading {
  position: relative;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
}

.gt-row-leading .gt-row-open {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

tr:hover .gt-row-leading .gt-row-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-1px);
}

.gt-row-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #cbd5e1;
  padding: 4px 0;
}

.gt-row-open {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.gt-row-open:hover {
  border-color: var(--gt-accent);
  color: var(--gt-accent);
}

.gt-row-open:focus-visible {
  outline: 2px solid var(--gt-accent);
  outline-offset: 2px;
}

.is-dragging-row {
  opacity: 0.6;
}

.is-drag-over-row td {
  box-shadow: inset 0 2px 0 #c7d2fe;
}

.gt-table th:last-child,
.gt-table td:last-child {
  border-right: none;
}

.gt-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: #f9fafb;
}

.gt-col-actions {
  width: 70px;
  text-align: center;
}

.gt-table tbody tr:nth-child(even) td {
  background: #fbfbfc;
}

.gt-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.gt-table tbody tr:hover td {
  background: #f7faff;
}

.gt-table td {
  position: relative;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}



.gt-table td::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 0;
  pointer-events: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.gt-table td:hover::after {
  border-color: #e5e7eb;
}

.gt-table td:focus-within::after {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.gt-row-leading-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.gt-row-index {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.gt-row-number,
.gt-row-select {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.12s ease;
}

.gt-row-number {
  font-size: 12px;
  color: #4b5563;
}

.gt-row-select {
  opacity: 0;
  pointer-events: none;
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

tr:hover .gt-row-select,
.is-row-selected .gt-row-select {
  opacity: 1;
  pointer-events: auto;
}

tr:hover .gt-row-number {
  opacity: 0;
}

.gt-row-divider {
  display: inline-flex;
  width: 3px;
  height: 26px;
  border-radius: 4px;
  background: #cfe2ff;
}

.gt-row-expand-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.gt-row-expand-btn:hover {
  border-color: var(--gt-accent);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.gt-group-row td {
  background: #f3f4f6 !important;
  font-weight: 600;
  color: var(--gt-text-main);
}

/* Activity */
.gt-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-activity-row {
  border: 1px solid var(--gt-border-subtle);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--gt-shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gt-activity-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gt-activity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gt-text-main);
}

.gt-activity-meta {
  font-size: 11px;
  color: var(--gt-text-muted);
}

.gt-activity-change {
  display: grid;
  grid-template-columns: auto auto 1fr 1fr;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--gt-text-main);
}

.gt-activity-field {
  font-weight: 600;
}

.gt-activity-arrow {
  color: var(--gt-text-soft);
}

.gt-activity-before,
.gt-activity-after {
  color: var(--gt-text-muted);
  word-break: break-word;
}

.gt-task-title-input,
.gt-table select,
.gt-table input[type="text"],
.gt-table textarea {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}

.gt-table textarea {
  resize: vertical;
  min-height: 32px;
  padding: 2px 0;
}

.gt-task-title-input:focus,
.gt-table select:focus:not(.gt-pill-select),
.gt-table input[type="text"]:focus,
.gt-table textarea:focus {
  outline: none;
  box-shadow: none;
}

.gt-pill-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 24px 4px 12px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--gt-border-subtle);
  background: #f8fafc;
  color: #111827;
  width: auto;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l4 4 4-4' stroke='%2359656f' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.gt-pill-select:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.gt-pill-select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.gt-user-pill-select {
  font-weight: 600;
}

.gt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #4338ca;
  font-size: 12px;
  line-height: 1.4;
}

.gt-pill-soft {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}

.gt-pill-control {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.gt-pill-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--gt-border-subtle);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  line-height: 1.3;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.gt-pill-display:hover {
  border-color: #94a3b8;
}

.gt-pill-display:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.gt-pill-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-pill-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  padding: 8px;
  z-index: 300;
  display: none;
}

.gt-pill-control.is-open .gt-pill-menu {
  display: block;
}

.gt-pill-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gt-pill-menu-item {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #111827;
  font: inherit;
  text-align: left;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.gt-pill-menu-item:hover {
  border-color: #cbd5e1;
  background: #f3f4f6;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.gt-pill-menu-item:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.gt-cell-editable {
  cursor: text;
}

.gt-row-actions {
  text-align: center;
  background: #f9fafb;
}

.gt-row-expand {
  border: 1px solid var(--gt-border-subtle);
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.gt-row-expand:hover {
  border-color: var(--gt-accent);
  color: var(--gt-accent);
}

.gt-row-expand:focus-visible {
  outline: 2px solid var(--gt-accent);
  outline-offset: 2px;
}

.gt-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--gt-border-subtle);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gt-context-item {
  border: none;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.gt-context-item:hover {
  background: #eef2ff;
  color: var(--gt-accent-strong);
}

.gt-import-section {
  gap: 6px;
}

.gt-import-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.gt-import-block input[type="file"] {
  width: 100%;
}

.gt-import-create {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gt-text-main);
}

.gt-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.gt-import-fieldlist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gt-import-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--gt-border-subtle);
  font-size: 12px;
  color: var(--gt-text-main);
}

.gt-tiny {
  font-size: 11px;
  color: var(--gt-text-soft);
}

/* Column menu */
.gt-col-header {
  position: relative;
  padding-right: 10px;
}
.gt-col-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--gt-text-main);
  font-size: 12px;
  text-transform: none;
  width: 100%;
  justify-content: space-between;
}

.gt-col-menu-trigger:hover {
  background: #f3f4f6;
  border-color: var(--gt-border-subtle);
}

.gt-col-menu-trigger:focus-visible {
  outline: 2px solid var(--gt-accent);
  outline-offset: 1px;
}

.gt-col-title {
  font-size: 12px;
  text-transform: none;
  color: var(--gt-text-main);
  font-weight: 600;
}

.gt-col-caret {
  font-size: 10px;
  color: #6b7280;
}

.gt-col-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--gt-border-subtle);
  border-radius: 10px;
  box-shadow: var(--gt-shadow-soft);
  padding: 6px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gt-col-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gt-text-main);
}

.gt-col-menu-item:hover {
  background: #f3f4f6;
}

.gt-col-menu-item.is-danger {
  color: #b91c1c;
}

.gt-col-menu-item.is-disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

/* Board */
.gt-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.gt-board-column {
  flex: 0 0 280px;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  box-shadow: none;
}

.gt-board-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gt-board-column-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
}

.gt-board-count {
  font-size: 11px;
  color: currentColor;
}

.gt-board-column-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.gt-card {
  border-radius: 12px;
  padding: 10px 11px 9px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  cursor: grab;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.gt-card:hover {
  border-color: var(--gt-accent);
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.14);
}

.gt-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gt-text-main);
  margin-bottom: 4px;
  padding-left: 6px;
}

.gt-card-meta {
  font-size: 11px;
  color: var(--gt-text-soft);
}

/* Dashboard */
.gt-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 4px 20px;
}

.gt-dashboard-section {
  border-radius: 16px;
  border: 1px solid #e5e7ea;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8fb 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 16px 18px 14px;
}

.gt-dashboard-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #1f2937;
}

.gt-dashboard-card-grid {
  gap: 14px;
}

.gt-dashboard-section {
  border-radius: 16px;
  border: 1px solid #e5e7ea;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8fb 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 16px 18px 14px;
}

.gt-grid-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gt-grid-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-grid-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.gt-grid-card-meta {
  font-size: 12px;
  color: var(--gt-text-muted);
}

.gt-dashboard-title {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 6px;
  color: #1f2937;
}

.gt-dashboard-sub {
  font-size: 11px;
  color: var(--gt-text-muted);
  margin: 0 0 8px;
}

.gt-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.gt-dashboard-table th,
.gt-dashboard-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--gt-border-subtle);
  text-align: left;
}

.gt-dashboard-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: #eef2ff;
}

/* Empty state */
.gt-no-workspace {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--gt-text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  #app-root {
    padding: 8px;
  }

  .gt-main {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .gt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gt-board {
    flex-direction: column;
  }

  .gt-board-column {
    max-height: none;
  }
}. g t - m u l t i - p i l l - d i s p l a y   { 
 
     d i s p l a y :   f l e x ; 
 
     f l e x - w r a p :   w r a p ; 
 
     g a p :   4 p x ; 
 
     m i n - h e i g h t :   2 6 p x ; 
 
     a l i g n - i t e m s :   c e n t e r ; 
 
     c u r s o r :   p o i n t e r ; 
 
 } 
 
 
 
 . g t - p i l l - s m a l l   { 
 
     p a d d i n g :   2 p x   8 p x ; 
 
     f o n t - s i z e :   1 2 p x ; 
 
     m i n - h e i g h t :   2 2 p x ; 
 
     b o r d e r - r a d i u s :   9 9 9 p x ; 
 
     b o r d e r :   1 p x   s o l i d   t r a n s p a r e n t ; 
 
 } 
 
 
 
 . g t - p i l l - c h e c k   { 
 
     m a r g i n - l e f t :   a u t o ; 
 
     f o n t - w e i g h t :   b o l d ; 
 
 } 
 
 
 
 . g t - p i l l - p l a c e h o l d e r   { 
 
     c o l o r :   # 9 c a 3 a f ; 
 
     p a d d i n g :   0   4 p x ; 
 
 } 
 
 
 
 # g t - t a s k s - s h e l l   { 
 
     f l e x :   1 ; 
 
     d i s p l a y :   f l e x ; 
 
     f l e x - d i r e c t i o n :   c o l u m n ; 
 
     m i n - h e i g h t :   0 ; 
 
     o v e r f l o w :   h i d d e n ; 
 
 } 
 
 
 
 . g t - v i e w - s e c t i o n   { 
 
     f l e x :   1 ; 
 
     d i s p l a y :   f l e x ; 
 
     f l e x - d i r e c t i o n :   c o l u m n ; 
 
     m i n - h e i g h t :   0 ; 
 
     o v e r f l o w :   h i d d e n ; 
 
 } 
 
 
 
 . g t - v i e w - r o w   { 
 
     d i s p l a y :   f l e x ; 
 
     a l i g n - i t e m s :   c e n t e r ; 
 
     j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
 
     g a p :   1 2 p x ; 
 
     m a r g i n - b o t t o m :   8 p x ; 
 
     f l e x - s h r i n k :   0 ; 
 
 } 
 
 
 
 . g t - g r i d - t a b s   { 
 
     m a r g i n - b o t t o m :   8 p x ; 
 
     f l e x - s h r i n k :   0 ; 
 
 } 
 
 
 
 . g t - c o n t e x t - s e p a r a t o r   { 
 
     h e i g h t :   1 p x ; 
 
     b a c k g r o u n d :   # e 5 e 7 e b ; 
 
     m a r g i n :   4 p x   0 ; 
 
 } 
 
 
 
 . g t - c o n t e x t - i t e m . g t - c o n t e x t - d a n g e r   { 
 
     c o l o r :   # e f 4 4 4 4 ; 
 
 } 
 
 
 
 . g t - c o n t e x t - i t e m . g t - c o n t e x t - d a n g e r : h o v e r   { 
 
     b a c k g r o u n d :   # f e f 2 f 2 ; 
 
 } 
 
 
 
 / *   C o l u m n   R e s i z i n g   * / 
 
 . g t - c o l - r e s i z e r   { 
 
     p o s i t i o n :   a b s o l u t e ; 
 
     t o p :   0 ; 
 
     r i g h t :   0 ; 
 
     w i d t h :   5 p x ; 
 
     h e i g h t :   1 0 0 % ; 
 
     c u r s o r :   c o l - r e s i z e ; 
 
     z - i n d e x :   1 0 ; 
 
     o p a c i t y :   0 ; 
 
 } 
 
 
 
 . g t - c o l - h e a d e r : h o v e r   . g t - c o l - r e s i z e r   { 
 
     o p a c i t y :   1 ; 
 
     b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; 
 
 } 
 
 
 
 . g t - c o l - r e s i z e r : h o v e r , 
 
 . g t - c o l - r e s i z e r . i s - r e s i z i n g   { 
 
     o p a c i t y :   1 ; 
 
     b a c k g r o u n d :   v a r ( - - g t - a c c e n t ) ; 
 
 } 
 
 
 
 . g t - c e l l - e d i t a b l e . i s - s e l e c t e d - c e l l   { 
 
     b o x - s h a d o w :   i n s e t   0   0   0   2 p x   v a r ( - - g t - a c c e n t ) ; 
 
     b a c k g r o u n d :   r g b a ( 7 9 ,   7 0 ,   2 2 9 ,   0 . 0 5 ) ; 
 
 } 
 
 
/* Add Record Row */
.gt-add-row {
  height: 32px;
}

.gt-add-row:hover {
  background-color: #f9fafb;
}

.gt-add-row-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gt-border-subtle);
  background: #fff;
  color: var(--gt-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  margin: 0 auto;
  transition: all 0.15s ease;
}

.gt-add-row-btn:hover {
  border-color: var(--gt-accent);
  color: var(--gt-accent);
  background: #eef2ff;
  transform: scale(1.1);
}

.gt-add-cell {
  cursor: pointer;
  border-bottom: 1px solid var(--gt-border-subtle);
  border-right: 1px solid #eef2f7;
}

.gt-add-row:hover .gt-add-cell {
  background-color: #f9fafb;
}


/* Selection */
.gt-cell-editable {
  user-select: none; /* Prevent text selection while dragging */
}

.gt-cell-editable.is-selected-cell {
  background-color: rgba(59, 130, 246, 0.1) !important;
  box-shadow: inset 0 0 0 1px #3b82f6 !important;
}


/* Enhanced Selection */
.gt-cell-editable.is-selected-cell {
  background-color: rgba(59, 130, 246, 0.1) !important;
  box-shadow: none !important; /* Reset basic shadow */
}

/* Selection Borders */
.gt-cell-editable.is-top-edge {
  border-top: 2px solid #3b82f6 !important;
}
.gt-cell-editable.is-bottom-edge {
  border-bottom: 2px solid #3b82f6 !important;
}
.gt-cell-editable.is-left-edge {
  border-left: 2px solid #3b82f6 !important;
}
.gt-cell-editable.is-right-edge {
  border-right: 2px solid #3b82f6 !important;
}

/* Column Header Selection */
.gt-col-header.is-selected-col-header {
  background-color: rgba(59, 130, 246, 0.1);
  border-bottom: 2px solid #3b82f6;
}


.gt-table-wrapper {
  overscroll-behavior: contain;
}


/* Sticky Columns */
.gt-col-leading,
.gt-row-leading {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #fff;
  border-right: 1px solid #eef2f7;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.gt-sticky-col {
  position: sticky;
  left: 80px; /* Width of leading col */
  z-index: 20;
  background: #fff;
  border-right: 1px solid #d1d5db !important; /* Stronger border for separation */
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.gt-table thead th.gt-col-leading,
.gt-table thead th.gt-sticky-col {
  z-index: 30; /* Higher than body sticky cols */
  background: #ffffff; /* Match body background to look like one unit */
  border-bottom: 1px solid #eef2f7;
}

/* Ensure the sticky column header blends with the body */
.gt-table thead th.gt-sticky-col {
  border-bottom-color: #eef2f7;
}

/* Hover state for sticky columns to match row hover */
.gt-table tr:hover .gt-col-leading,
.gt-table tr:hover .gt-row-leading,
.gt-table tr:hover .gt-sticky-col {
  background: #f7faff;
}

/* Footer Bar */
.gt-footer-bar {
  height: 32px;
  border-top: 1px solid var(--gt-border-subtle);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: var(--gt-text-muted);
  flex-shrink: 0;
}

/* Group Headers */
.gt-group-row td {
  background: #f8fafc;
  padding: 0 !important;
  border-bottom: 1px solid var(--gt-border-subtle);
}

.gt-group-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--gt-text-main);
}

.gt-group-toggle {
  font-size: 10px;
  color: var(--gt-text-muted);
  cursor: pointer;
}

.gt-group-count {
  font-weight: normal;
  color: var(--gt-text-muted);
  margin-left: auto;
}

