/* ============================================================
   Goals — header, layout toggle, tree views, list view, cards
   ============================================================ */

.goals-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.goal-settings {
    display: flex;
    align-items: center;
    gap: 6px;
}

.goals-layout-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.goals-layout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.goals-layout-btn:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.goals-layout-btn.active {
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.goals-add-btn {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 6px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    cursor: pointer;
    transition: all 0.15s;
}

.goals-add-btn:hover {
    background: #ffedd5;
    color: #9a3412;
}

/* ============================================================
   Tree shared
   ============================================================ */

.goals-tree {
    position: relative;
    overflow: auto;
    padding: 24px;
}

.goals-tree-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.goals-tree-line {
    fill: none;
    stroke-width: 1.5;
    opacity: 0.5;
}

/* ============================================================
   Tree TB (vertical)
   ============================================================ */

.goals-tree-nodes-tb {
    position: relative;
    z-index: 1;
    min-width: max-content;
}

.goals-tree-row {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.goals-tree-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* ============================================================
   Tree LR (horizontal)
   ============================================================ */

.goals-tree-nodes-lr {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    min-width: max-content;
}

.goals-tree-lr-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goals-tree-lr-row {
    display: flex;
    align-items: center;
    gap: 56px;
}

/* ============================================================
   Goal card
   ============================================================ */

.goal-card {
    min-width: 120px;
    max-width: 200px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: none;
    transition: box-shadow 0.15s, transform 0.15s;
    position: relative;
    text-align: center;
    cursor: grab;
}

.goal-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.goal-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
}

.goal-card-ctx-trigger {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #000; /* settings1 - color vertical menu goal card*/
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    cursor: pointer;
    z-index: 2;
}

.goal-card:hover .goal-card-ctx-trigger {
    opacity: 1;
}

.goal-card-ctx-trigger:hover {
    color: #334155;
    background: #e2e8f0;
}

.goal-card-actions {
    display: flex;
    gap: 2px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    margin-top: 4px;
}

.goal-card:hover .goal-card-actions {
    opacity: 1;
}

/* ============================================================
   Progress bar (in card)
   ============================================================ */

.goal-progress-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.goal-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.2s;
}

.goal-progress-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    min-width: 28px;
    text-align: right;
}

/* ============================================================
   Shared action buttons
   ============================================================ */

.goals-action-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}

.goals-action-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.goals-action-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================================
   List view
   ============================================================ */

.goals-list {
    max-width: 720px;
}

.goals-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
    cursor: default;
}

.goals-list-item:hover {
    background: #f8fafc;
}

.goals-list-item:hover .goals-list-actions {
    opacity: 1;
}

.goals-list-drop-target {
    background: #eff6ff !important;
    border-bottom-color: #3b82f6 !important;
}

.goals-list-drop-child {
    background: #f0fdf4 !important;
    box-shadow: inset 0 0 0 2px #22c55e;
    border-radius: 8px;
}

/* ============================================================
   Drag-and-drop states (shared across tree + list)
   ============================================================ */

.goal-card-dragging {
    opacity: 0.4;
}

.goal-card-drop-target {
    box-shadow: 0 0 0 2px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.2) !important;
    background: #eff6ff !important;
}

.goals-root-drop-zone {
    margin-top: 32px;
    padding: 16px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    transition: all 0.15s;
}

.goals-root-drop-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

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

.goals-list-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goals-list-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.goals-progress-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.goals-progress-complete {
    color: #059669;
    background: #d1fae5;
}

/* ============================================================
   Task detail — linked goals
   ============================================================ */

.td-goals-section {
    margin-bottom: 12px;
}

.td-goal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    margin-right: 4px;
    margin-bottom: 4px;
}

.td-goal-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ============================================================
   Goal card — links badge
   ============================================================ */

.goal-card-badge-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.goal-card-links-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

.goal-card-task-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
    opacity: 0;
}

.goal-card:hover .goal-card-task-toggle,
.goal-card-task-toggle.active {
    opacity: 1;
}

.goal-card-task-toggle:hover {
    background: #f1f5f9;
    color: #475569;
}

.goal-card-task-toggle.active {
    color: #3b82f6;
}

.goal-card-task-toggle.active:hover {
    background: #eff6ff;
    color: #2563eb;
}

.goals-list-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}

/* ============================================================
   Goal context menu — progress row
   ============================================================ */

.goal-ctx-progress-row {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
}

.goal-ctx-progress-label {
    font-size: 12px;
    color: #64748b;
    margin-right: 6px;
    white-space: nowrap;
}

.goal-ctx-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.1s;
}

.goal-ctx-progress-dot:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.goal-ctx-progress-dot.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.goal-ctx-links-header {
    padding: 4px 10px 2px;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-ctx-unlink-icon {
    opacity: 0;
    transition: opacity 0.1s;
}

.col-context-menu button:hover .goal-ctx-unlink-icon {
    opacity: 1;
}

.goal-ctx-trash-icon {
    opacity: 0;
    transition: opacity 0.1s, color 0.1s;
    cursor: pointer;
    margin-left: 4px;
    padding: 2px;
    border-radius: 3px;
}

.col-context-menu button:hover .goal-ctx-trash-icon {
    opacity: 1;
}

.goal-ctx-trash-icon:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
}

.goal-ctx-task-list {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.goal-ctx-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: grab;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.1s, color 0.1s;
    padding: 0 2px;
}

.goal-ctx-drag-handle i {
    font-size: 14px;
}

.col-context-menu button:hover .goal-ctx-drag-handle {
    opacity: 1;
    color: #475569;
}

.goal-ctx-drag-handle:hover {
    color: #1e293b !important;
}

.goal-ctx-drag-handle:active {
    cursor: grabbing;
}

.goal-ctx-task-row.goal-task-drop-above {
    box-shadow: inset 0 2px 0 0 #3b82f6;
}

.goal-ctx-task-row.goal-task-drop-below {
    box-shadow: inset 0 -2px 0 0 #3b82f6;
}

/* ============================================================
   Task picker modal
   ============================================================ */

.goal-task-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.goal-task-picker-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.2);
    width: 420px;
    max-width: 90vw;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    animation: ctx-in 0.15s ease;
}

.goal-task-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.goal-task-picker-search {
    display: block;
    width: calc(100% - 32px);
    margin: 10px 16px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.goal-task-picker-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.goal-task-picker-results {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

.goal-task-picker-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: background 0.1s;
    text-align: left;
}

.goal-task-picker-item:hover {
    background: #f1f5f9;
}

.goal-task-picker-linked {
    opacity: 0.6;
    cursor: default;
}

.goal-task-picker-empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ============================================================
   Show Tasks toggle (header checkbox)
   ============================================================ */

.goals-tasks-select {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: none;
    border-radius: 20px;
    padding: 5px 10px 5px 10px;
    height: 30px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    transition: background-color 0.15s, color 0.15s;
    line-height: 1;
}

.goals-tasks-select:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.goals-tasks-select:focus {
    background-color: #e2e8f0;
    color: #1e293b;
}

.goals-multi-select {
    position: relative;
}

.goals-multi-select-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: none;
    border-radius: 20px;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.goals-multi-select-summary::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.goals-multi-select[open] .goals-multi-select-summary::after {
    transform: rotate(180deg);
}

.goals-multi-select-summary::-webkit-details-marker {
    display: none;
}

.goals-multi-select-summary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.goals-multi-select[open] .goals-multi-select-summary {
    background-color: #e2e8f0;
    color: #1e293b;
}

.goals-multi-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 10px 24px -4px rgba(0,0,0,0.12);
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.goals-multi-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    padding: 7px 9px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.1s;
}

.goals-multi-select-option input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.goals-multi-select-option:hover {
    background: #f1f5f9;
}

.goals-hover-info-popup {
    position: fixed;
    z-index: 1400;
    max-width: 360px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.goals-hover-info-line + .goals-hover-info-line {
    margin-top: 4px;
}

/* ============================================================
   Inline linked tasks on goal cards
   ============================================================ */

.goal-card-tasks {
    margin-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 4px;
    text-align: left;
}

.goal-card-task-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    padding: 2px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-card-task-item:hover {
    color: #3b82f6;
}

.goal-card-task-item i {
    font-size: 10px;
    flex-shrink: 0;
}

.goal-task-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: #cbd5e1;
    cursor: grab;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.1s, color 0.1s;
}

.goal-task-drag-handle i {
    font-size: 14px;
}

.goal-card-task-item:hover .goal-task-drag-handle {
    opacity: 1;
    color: #475569;
}

.goal-task-drag-handle:hover {
    color: #1e293b !important;
}

.goal-task-drag-handle:active {
    cursor: grabbing;
}

.goal-task-link-dragging {
    opacity: 0.4;
}

.goal-task-drop-above {
    box-shadow: inset 0 2px 0 0 #3b82f6;
}

.goal-task-drop-below {
    box-shadow: inset 0 -2px 0 0 #3b82f6;
}

/* ============================================================
   Goals filter dropdown
   ============================================================ */

.goals-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    font-size: 11px !important;
    font-weight: 500;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 12px !important;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    box-shadow: none !important;
    white-space: nowrap;
}

.goals-filter-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.goals-filter-menu {
    position: fixed;
    z-index: 1000;
    min-width: 240px;
    max-width: 320px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.goals-filter-header {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.goals-filter-sticky-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 4px;
}

.goals-filter-sticky-label:hover {
    background: #f1f5f9;
}

.goals-filter-sticky-label input[type="checkbox"] {
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.goals-filter-sticky-text {
    font-size: 11px;
    color: #64748b;
}

.goals-filter-bulk-btn {
    flex: 1;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.goals-filter-bulk-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.goals-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
}

.goals-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #1e293b;
}

.goals-filter-row:hover {
    background: #f1f5f9;
}

.goals-filter-row input[type="checkbox"] {
    cursor: pointer;
    flex-shrink: 0;
}

.goals-filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.goals-filter-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goals-filter-sort-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.goals-filter-sort-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #1e293b;
}

.goals-filter-sort-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.goal-card-reorder {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.12s;
}

.goal-card:hover .goal-card-reorder {
    opacity: 1;
}

.goal-card-reorder-btn {
    width: 18px;
    height: 14px;
    padding: 0;
    line-height: 1;
}

.goal-card-reorder-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   Goal-card inline add-task input
   ============================================================ */

.goal-card-add-task-input-wrap {
    margin-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 6px;
}

.goal-card-add-task-input {
    width: 100%;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color 0.1s, box-shadow 0.1s;
}

.goal-card-add-task-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ============================================================
   Goal-card list picker popover (after task creation)
   ============================================================ */

.goal-list-picker {
    position: fixed;
    z-index: 1100;
    width: 300px;
    max-height: 360px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.goal-list-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 6px;
}

.goal-list-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.goal-list-picker-subtitle {
    font-size: 11px;
    color: #64748b;
    padding: 0 4px 6px;
}

.goal-list-picker-search {
    width: 100%;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.1s, box-shadow 0.1s;
}

.goal-list-picker-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.goal-list-picker-results {
    margin-top: 6px;
    overflow-y: auto;
    max-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.goal-list-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

.goal-list-picker-item:hover {
    background: #f1f5f9;
}

.goal-list-picker-empty {
    padding: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.goal-row-list-picker {
    width: 260px;
    z-index: 1200;
}

/* ============================================================
   Goal parent picker flyout (Move to goal submenu)
   ============================================================ */

.goal-parent-picker {
    position: fixed;
    z-index: 1200;
    width: 240px;
    max-height: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: ctx-in 0.1s ease;
}

.goal-parent-picker-current {
    opacity: 0.6;
    cursor: default;
}

.goal-picker-highlight {
    background: #eff6ff;
    outline: none;
}

.goal-ctx-submenu-caret {
    font-size: 10px;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
}

/* Task goal-link marker (list rows & board cards) */
.task-goal-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #f97316;
    flex-shrink: 0;
    vertical-align: middle;
}
