/* ── Overview Layout ─────────────────────────────────────────────────────── */
.ags-overview {
    --ags-surface: rgba(255, 255, 255, 0.78);
    --ags-surface-strong: rgba(255, 255, 255, 0.92);
    --ags-border: rgba(89, 79, 160, 0.12);
    --ags-shadow: 0 18px 40px rgba(76, 61, 139, 0.08);
    --ags-shadow-soft: 0 10px 24px rgba(76, 61, 139, 0.06);
    --ags-text-soft: #6d6787;
    --ags-title: #322b52;
    padding: 1rem;
    margin: 0 auto;
}

.ags-my-projects-hero__header {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ags-border);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.7)),
        radial-gradient(circle at top left, rgba(124,58,237,0.14), transparent 38%),
        radial-gradient(circle at right center, rgba(6,182,212,0.12), transparent 34%);
    box-shadow: var(--ags-shadow);
    backdrop-filter: blur(14px);
}

.ags-my-projects-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(83, 64, 174, 0.08);
    color: #5b46b2;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ags-my-projects-hero__title {
    font-size: clamp(1.75rem, 2vw, 2.4rem);
    font-weight: 800;
    margin: 0;
    color: var(--ags-title);
    letter-spacing: -0.03em;
}

.ags-my-projects-hero__subtitle {
    margin: 0.45rem 0 0;
    max-width: 720px;
    color: var(--ags-text-soft);
    font-size: 0.98rem;
}

.ags-overview__today-glance {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ags-accent);
    letter-spacing: 0.01em;
}

.ags-overview__summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ags-overview__summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(91, 70, 178, 0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: var(--ags-title);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--ags-shadow-soft);
}

.ags-overview__summary-pill:hover {
    background: rgba(91, 70, 178, 0.08);
}

.ags-overview__summary-pill:nth-child(1) i { color: #5b46b2; }
.ags-overview__summary-pill:nth-child(2) i { color: #f97316; }
.ags-overview__summary-pill:nth-child(3) i { color: #6366f1; }
.ags-overview__summary-pill:nth-child(4) i { color: #10b981; }

.ags-my-projects-hero__quick-create-shell {
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(91, 70, 178, 0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.72);
    box-shadow: var(--ags-shadow-soft);
}

.ags-overview__section {
    margin-bottom: 1.25rem;
}

.ags-overview__section-card {
    padding: 1rem 1.05rem;
    border: 1px solid var(--ags-border);
    border-radius: 22px;
    background: var(--ags-surface);
    box-shadow: var(--ags-shadow-soft);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* A — top accent bar on all section cards */
.ags-overview__section-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    width: 100%;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, rgba(91,70,178,0.22), rgba(139,92,246,0.14));
}

/* B + C — "Needs Attention" focus card: blue tint, stronger bar, title color */
.ags-overview__focus-card {
    padding: 1rem;
    background: linear-gradient(155deg, rgba(219,234,254,0.5) 0%, rgba(255,255,255,0.88) 55%);
    box-shadow: 0 12px 32px rgba(37,99,235,0.09);
    border-color: rgba(37,99,235,0.12);
}

.ags-overview__focus-card::before {
    background: linear-gradient(90deg, #2563eb, #6366f1);
}

.ags-overview__focus-card .ags-overview__section-title {
    color: #2d4fb5;
}

.ags-overview__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ags-overview__section-heading--inline {
    margin-bottom: 0.85rem;
}

.ags-overview__section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b729e;
    margin-bottom: 0.95rem;
}

.ags-overview__section-subtitle {
    color: #7d7698;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ── Skeleton Loading ─────────────────────────────────────────────────────── */
.ags-overview-loading {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ags-skeleton-block {
    background: linear-gradient(90deg, #f4f1ff 25%, #e9e3fb 50%, #f4f1ff 75%);
    background-size: 200% 100%;
    animation: ags-shimmer 1.4s infinite;
    border-radius: 20px;
    height: 88px;
}

.ags-skeleton-block--tall { height: 180px; }

.ags-skeleton-line {
    background: linear-gradient(90deg, #f4f1ff 25%, #e9e3fb 50%, #f4f1ff 75%);
    background-size: 200% 100%;
    animation: ags-shimmer 1.4s infinite;
    border-radius: 999px;
    height: 16px;
    margin-bottom: 8px;
}

.ags-skeleton-line--short { width: 60%; }

@keyframes ags-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── KPI Card ─────────────────────────────────────────────────────────────── */
.ags-kpi-card {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(91, 70, 178, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.75));
    box-shadow: var(--ags-shadow-soft);
    position: relative;
    overflow: hidden;
}

.ags-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    width: 100%;
    border-radius: 18px 18px 0 0;
    background: rgba(91, 70, 178, 0.18);
}

.ags-kpi-card__body {
    padding: 1rem 1rem 0.95rem;
}

.ags-kpi-card--interactive {
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ags-kpi-card--interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(76, 61, 139, 0.11);
    border-color: rgba(91, 70, 178, 0.18);
}

.ags-kpi-card__topline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
}

.ags-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 12px;
    background: rgba(91, 70, 178, 0.08);
    color: #5b46b2;
    font-size: 0.92rem;
}

.ags-kpi-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #847ca4;
}

.ags-kpi-card__value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ags-title);
}

.ags-kpi-card__sublabel {
    font-size: 0.75rem;
    color: var(--ags-text-soft);
    margin-top: 0.3rem;
}

/* A — top accent bar gradients (horizontal) */
.ags-kpi-card.accent--primary::before { background: linear-gradient(90deg, #2563eb, #6366f1); }
.ags-kpi-card.accent--neutral::before { background: linear-gradient(90deg, #5b46b2, #8b5cf6); }
.ags-kpi-card.accent--success::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ags-kpi-card.accent--warning::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.ags-kpi-card.accent--danger::before  { background: linear-gradient(90deg, #ef4444, #e11d48); }

/* B — accent-tinted card backgrounds */
.ags-kpi-card.accent--primary { background: linear-gradient(155deg, rgba(219,234,254,0.6) 0%, rgba(255,255,255,0.9) 55%); }
.ags-kpi-card.accent--success { background: linear-gradient(155deg, rgba(220,252,231,0.6) 0%, rgba(255,255,255,0.9) 55%); }
.ags-kpi-card.accent--warning { background: linear-gradient(155deg, rgba(254,243,199,0.6) 0%, rgba(255,255,255,0.9) 55%); }
.ags-kpi-card.accent--danger  { background: linear-gradient(155deg, rgba(254,226,226,0.6) 0%, rgba(255,255,255,0.9) 55%); }

/* B — accent value colors */
.ags-kpi-card.accent--primary .ags-kpi-card__value { color: #2563eb; }
.ags-kpi-card.accent--success .ags-kpi-card__value { color: #16a34a; }
.ags-kpi-card.accent--warning .ags-kpi-card__value { color: #d97706; }
.ags-kpi-card.accent--danger  .ags-kpi-card__value { color: #dc2626; }

/* C — accent-colored icons */
.ags-kpi-card.accent--primary .ags-kpi-card__icon { background: rgba(37,99,235,0.1);  color: #2563eb; }
.ags-kpi-card.accent--success .ags-kpi-card__icon { background: rgba(22,163,74,0.1);  color: #16a34a; }
.ags-kpi-card.accent--warning .ags-kpi-card__icon { background: rgba(245,158,11,0.1); color: #d97706; }
.ags-kpi-card.accent--danger  .ags-kpi-card__icon { background: rgba(239,68,68,0.1);  color: #ef4444; }

/* C — accent-matched hover shadow */
.ags-kpi-card.accent--primary.ags-kpi-card--interactive:hover { box-shadow: 0 14px 28px rgba(37,99,235,0.15);  border-color: rgba(37,99,235,0.22); }
.ags-kpi-card.accent--success.ags-kpi-card--interactive:hover { box-shadow: 0 14px 28px rgba(22,163,74,0.15);  border-color: rgba(22,163,74,0.22); }
.ags-kpi-card.accent--warning.ags-kpi-card--interactive:hover { box-shadow: 0 14px 28px rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.22); }
.ags-kpi-card.accent--danger.ags-kpi-card--interactive:hover  { box-shadow: 0 14px 28px rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.22); }

/* ── State Distribution ───────────────────────────────────────────────────── */
.ags-state-distribution {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ags-state-btn {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "count label";
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(91, 70, 178, 0.1);
    background: var(--ags-surface-strong);
    cursor: pointer;
    min-width: 0;
    text-align: left;
    box-shadow: var(--ags-shadow-soft);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ags-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(76, 61, 139, 0.12);
    border-color: rgba(91, 70, 178, 0.18);
}

.ags-state-btn__count {
    grid-area: count;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 16px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    background: rgba(255,255,255,0.82);
}

.ags-state-btn__label {
    grid-area: label;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #72698f;
}

.ags-state-btn--active { background: linear-gradient(135deg, rgba(237,242,255,0.98), rgba(219,234,254,0.86)); }
.ags-state-btn--planned { background: linear-gradient(135deg, rgba(245,243,255,0.98), rgba(237,233,254,0.86)); }
.ags-state-btn--closed { background: linear-gradient(135deg, rgba(240,253,244,0.98), rgba(220,252,231,0.88)); }

.ags-state-btn--active .ags-state-btn__count { color: #2563eb; }
.ags-state-btn--planned .ags-state-btn__count { color: #7c3aed; }
.ags-state-btn--closed .ags-state-btn__count { color: #16a34a; }

/* ── Period Stats ─────────────────────────────────────────────────────────── */
.ags-period-stats {
    border: 1px solid var(--ags-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ags-surface);
    box-shadow: var(--ags-shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ags-period-stats__tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem;
    border-bottom: 1px solid rgba(89, 79, 160, 0.09);
    background: rgba(255,255,255,0.56);
}

.ags-period-tab {
    flex: 1;
    padding: 0.7rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #7a7399;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ags-period-tab:hover { background: rgba(91, 70, 178, 0.06); }

.ags-period-tab--active {
    border-color: rgba(91, 70, 178, 0.14);
    background: rgba(91, 70, 178, 0.08);
    color: #4d3da0;
}

.ags-period-stats__body {
    padding: 1rem 1.05rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ags-period-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.75rem;
    flex: 1;
}

.ags-period-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(89, 79, 160, 0.08);
}

.ags-period-stat__label {
    font-size: 0.72rem;
    color: #81789f;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.ags-period-stat__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ags-title);
}

/* ── Priority Chart ───────────────────────────────────────────────────────── */
.ags-overview__priority-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ags-overview__priority-split {
        grid-template-columns: 1fr;
    }
}

.ags-overview__priority-preview {
    border-left: 1px solid rgba(91, 70, 178, 0.12);
    padding-left: 1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ags-priority-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    height: 100%;
    padding: 0.25rem;
}

.ags-priority-chart__ring-wrap {
    flex-shrink: 0;
    width: 172px;
    height: 172px;
}

.ags-priority-chart__svg {
    width: 172px;
    height: 172px;
    overflow: visible;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.10));
}

.ags-priority-chart__segment {
    transition: stroke-width 0.15s ease, stroke-opacity 0.15s ease;
}

.ags-priority-chart__segment:hover {
    stroke-width: 27;
    stroke-opacity: 0.88;
}

.ags-priority-chart__svg-total {
    font-size: 36px;
    font-weight: 700;
    fill: #1e1b4b;
    font-family: inherit;
}

.ags-priority-chart__svg-label {
    font-size: 11px;
    font-weight: 600;
    fill: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: inherit;
}

.ags-priority-chart__legend {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    flex: 1;
}

.ags-priority-chart__legend-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(89, 79, 160, 0.08);
    font-size: 0.82rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.ags-priority-chart__legend-item:hover:not(:disabled) {
    background: rgba(91, 70, 178, 0.07);
    border-color: rgba(91, 70, 178, 0.18);
}

.ags-priority-chart__legend-item.is-selected {
    background: rgba(91, 70, 178, 0.10);
    border-color: rgba(91, 70, 178, 0.25);
    font-weight: 600;
}

.ags-priority-chart__legend-item:disabled {
    opacity: 0.45;
    cursor: default;
}

.ags-priority-chart__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ags-priority-chart__legend-count {
    margin-left: auto;
    font-weight: 700;
    min-width: 2ch;
    text-align: right;
}

/* ── Priority Task List ───────────────────────────────────────────────────── */
.ags-prio-tasklist {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ags-prio-tasklist__loading {
    padding: 0.5rem 0;
}

.ags-prio-tasklist__empty {
    color: var(--ags-text-soft);
    font-size: 0.83rem;
    padding: 0.5rem 0;
    margin: 0;
}

.ags-prio-tasklist__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
    flex: 1;
}

.ags-prio-tasklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.1s ease;
    border: 1px solid transparent;
}

.ags-prio-tasklist__item:hover {
    background: rgba(91, 70, 178, 0.06);
    border-color: rgba(91, 70, 178, 0.12);
}

.ags-prio-tasklist__icon-wrap {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #5b46b2;
    margin-top: 2px;
}

.ags-prio-tasklist__copy {
    min-width: 0;
    flex: 1;
}

.ags-prio-tasklist__title {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--ags-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ags-prio-tasklist__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    flex-wrap: wrap;
}

.ags-prio-tasklist__project {
    font-size: 0.74rem;
    color: var(--ags-text-soft);
}

/* ── Heatmap ──────────────────────────────────────────────────────────────── */
.ags-heatmap {
    --ags-heatmap-cell-size: clamp(12px, 1.15vw, 16px);
    --ags-heatmap-gap: clamp(2px, 0.25vw, 4px);
    --ags-heatmap-day-column: clamp(24px, 2.2vw, 32px);
    overflow-x: auto;
    padding: 0.95rem 1rem 0.8rem;
    border: 1px solid var(--ags-border);
    border-radius: 20px;
    background: var(--ags-surface);
    box-shadow: var(--ags-shadow-soft);
}

.ags-heatmap__summary {
    min-width: max-content;
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ags-title);
}

.ags-heatmap__board {
    display: grid;
    grid-template-columns: var(--ags-heatmap-day-column) max-content;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.55rem;
    min-width: max-content;
}

.ags-heatmap__corner {
    width: var(--ags-heatmap-day-column);
}

.ags-heatmap__months {
    display: grid;
    grid-template-columns: repeat(53, var(--ags-heatmap-cell-size));
    gap: var(--ags-heatmap-gap);
    min-width: max-content;
}

.ags-heatmap__month-label {
    font-size: 0.7rem;
    color: #8b84a8;
    min-width: var(--ags-heatmap-cell-size);
    line-height: 1;
}

.ags-heatmap__days {
    display: grid;
    grid-template-rows: repeat(7, var(--ags-heatmap-cell-size));
    gap: var(--ags-heatmap-gap);
}

.ags-heatmap__day-label {
    font-size: 0.68rem;
    color: #8b84a8;
    line-height: 1;
    align-self: center;
}

.ags-heatmap__grid {
    display: grid;
    grid-template-columns: repeat(53, var(--ags-heatmap-cell-size));
    grid-template-rows: repeat(7, var(--ags-heatmap-cell-size));
    grid-auto-flow: column;
    gap: var(--ags-heatmap-gap);
    min-width: max-content;
}

.ags-heatmap__cell {
    width: var(--ags-heatmap-cell-size);
    height: var(--ags-heatmap-cell-size);
    border-radius: 3px;
    cursor: default;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.ags-heatmap__cell--0 { background: #ece9f8; }
.ags-heatmap__cell--1 { background: #c4b5fd; }
.ags-heatmap__cell--2 { background: #8b5cf6; }
.ags-heatmap__cell--3 { background: #5b21b6; }

.ags-heatmap__cell--pad {
    opacity: 0.45;
}

.ags-heatmap__cell:not(.ags-heatmap__cell--pad):hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    z-index: 10;
    pointer-events: none;
}

.ags-heatmap__cell:not(.ags-heatmap__cell--pad):hover::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    width: 8px;
    height: 8px;
    background: #1f2937;
    transform: translateX(-50%) rotate(45deg);
    z-index: 9;
    pointer-events: none;
}

.ags-heatmap__legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: #8b84a8;
}

/* ── Project Progress ─────────────────────────────────────────────────────── */
.ags-project-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}

.ags-project-progress-item {
    padding: 0.9rem;
    border: 1px solid rgba(89, 79, 160, 0.09);
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    cursor: pointer;
    transition: transform 0.14s ease, background 0.12s ease, box-shadow 0.14s ease;
}

.ags-project-progress-item:hover {
    background: rgba(255,255,255,0.94);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(76, 61, 139, 0.1);
}

.ags-project-progress-item__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.ags-project-progress-item__title-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ags-project-progress-item__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ags-title);
}

.ags-project-progress-item__marker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 0.68rem;
    font-weight: 700;
}

.ags-project-progress-item__pin { color: #d97706; font-size: 0.72rem; }
.ags-project-progress-item__pct { font-size: 0.78rem; color: #7e769a; font-weight: 700; }

.ags-project-progress-item__title-group .ags-priority-pill {
    margin: 0;
    padding: 0.13rem 0.4rem;
    font-size: 0.66rem;
    font-weight: 600;
}

.ags-progress-bar {
    height: 8px;
    background: #e8e3fb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.ags-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #5b46b2, #8b5cf6);
    border-radius: 99px;
}

.ags-project-progress-item__summary {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    color: #7f7899;
}

.ags-project-progress-item__pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ags-state-pill {
    font-size: 0.68rem;
    padding: 0.2rem 0.48rem;
    border-radius: 99px;
    font-weight: 700;
}

.ags-state-pill--active      { background: rgba(190, 18, 60, 0.12);  color: #be123c; }
.ags-state-pill--planned    { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.ags-state-pill--closed   { background: rgba(46, 204, 113, 0.14); color: #2ECC71; }
/* Semantic variants — not aliases of now/later/closed */
.ags-state-pill--progress { background: rgba(255, 193, 7, 0.18);  color: #78350f; }
.ags-state-pill--starred  { background: rgba(249, 115, 22, 0.14); color: #c2410c; }
.ags-state-pill--pinned   { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.ags-state-pill--overdue  { background: rgba(220, 38, 38, 0.12);  color: #dc2626; }

/* ── Project Progress Widget (overview inline card) ──────────────────────── */
.ags-project-progress-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ags-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.ags-project-progress-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.6rem;
    flex-shrink: 0;
}

.ags-project-progress-widget__title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ags-text, #1a1730);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.ags-project-progress-widget__subtitle {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: #8b84a8;
}

.ags-project-progress-widget__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.4rem 1rem 1rem;
}

.ags-project-progress-widget__body .ags-project-progress-list {
    gap: 0.55rem;
    min-height: unset;
}

/* ── Quick List ───────────────────────────────────────────────────────────── */
.ags-quick-list {
    border: 1px solid var(--ags-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ags-surface);
    box-shadow: var(--ags-shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ags-quick-list__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(89, 79, 160, 0.09);
    background: rgba(255,255,255,0.58);
}

.ags-quick-list__title {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ags-title);
}

.ags-quick-list__subtitle {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: #8b84a8;
}

.ags-quick-list__view-all {
    border: 1px solid rgba(91, 70, 178, 0.1);
    background: rgba(255,255,255,0.72);
    font-size: 0.74rem;
    font-weight: 700;
    color: #5b46b2;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
}

.ags-quick-list__view-all:hover { background: rgba(91, 70, 178, 0.08); }

.ags-quick-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ags-quick-list__items--scrollable {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.ags-quick-list__item {
    position: relative;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(89, 79, 160, 0.08);
    cursor: pointer;
    transition: background 0.12s, padding-left 0.12s;
}

.ags-quick-list__item:last-child { border-bottom: none; }

.ags-quick-list__item:hover {
    background: rgba(91, 70, 178, 0.05);
    padding-left: 1.08rem;
}

.ags-quick-list__item-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ags-quick-list__item-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    background: rgba(91, 70, 178, 0.08);
    flex-shrink: 0;
}

.ags-quick-list__icon {
    font-size: 0.95rem;
    width: 1.1rem;
    text-align: center;
}

.ags-quick-list__item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ags-title);
}

.ags-quick-list__item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.ags-quick-list__item-badge--active { background: #dbeafe; color: #1d4ed8; }
.ags-quick-list__item-badge--planned { background: #ede9fe; color: #6d28d9; }
.ags-quick-list__item-badge--closed { background: #dcfce7; color: #166534; }
.ags-quick-list__item-badge--starred { background: #fef3c7; color: #b45309; }
.ags-quick-list__item-badge--pinned { background: #f3e8ff; color: #7e22ce; }
.ags-quick-list__item-badge--recent { background: #ede9fe; color: #5b46b2; }

.ags-quick-list__item-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.ags-quick-list__item-project {
    display: block;
    font-size: 0.72rem;
    color: #7e769a;
}

.ags-quick-list__item-time {
    font-size: 0.72rem;
    color: #8d85a8;
    white-space: nowrap;
}

.ags-quick-list__empty {
    padding: 1rem;
    font-size: 0.82rem;
    color: #8d85a8;
    text-align: center;
}

/* ── Quick Create ─────────────────────────────────────────────────────────── */
.ags-quick-create {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ags-quick-create__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7d7698;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ags-quick-create__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ags-quick-create__btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 70, 178, 0.1);
    background: rgba(255,255,255,0.86);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ags-title);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.ags-quick-create__btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.ags-quick-create__divider {
    height: 1px;
    background: rgba(91, 70, 178, 0.1);
    margin: 0.25rem 0;
}

.ags-quick-create__btn:first-child i { color: #10b981; }
.ags-quick-create__btn:last-child i  { color: #6366f1; }

/* ── Navbar pill for overview ────────────────────────────────────────────── */
.ags-nav-pill--overview.active { font-weight: 700; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ags-overview {
        padding: 0.85rem;
    }

    .ags-my-projects-hero__header {
        padding: 1rem;
        border-radius: 20px;
    }
}

@media (max-width: 767.98px) {
    .ags-state-distribution {
        grid-template-columns: 1fr;
    }

    .ags-period-stats__grid {
        grid-template-columns: 1fr;
    }

    .ags-quick-list__item-meta {
        display: none;
    }

    .ags-quick-list__item:nth-child(n + 6) {
        display: none;
    }

    .ags-project-progress-item__summary {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 575.98px) {
    .ags-overview__summary-pills {
        gap: 0.5rem;
    }

    .ags-overview__summary-pill {
        width: 100%;
        justify-content: center;
    }

    .ags-quick-list__header {
        flex-direction: column;
        align-items: stretch;
    }

    .ags-quick-list__view-all {
        width: 100%;
    }

    .ags-quick-create__buttons {
        flex-direction: column;
    }

    .ags-quick-create__btn {
        width: 100%;
        justify-content: center;
    }

    .ags-my-projects-hero__quick-create-shell .ags-quick-create__buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ags-my-projects-hero__quick-create-shell .ags-quick-create__btn {
        width: auto;
        flex: 1;
        min-width: 0;
    }
}

/* ── Layout Repair Overrides ──────────────────────────────────────────────── */
.ags-overview {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ags-overview__container,
.ags-my-projects-hero__layout,
.ags-my-projects-hero__primary,
.ags-my-projects-hero__secondary,
.ags-overview__workspace-grid,
.ags-overview__workspace-main,
.ags-overview__workspace-side,
.ags-overview__quick-lists-grid,
.ags-overview__quick-list-panel,
.ags-overview__insights-grid,
.ags-overview__insight-panel,
.ags-quick-list__header > div,
.ags-quick-list__item-title-row,
.ags-project-progress-item__header,
.ags-project-progress-item__title-group {
    min-width: 0;
}

.ags-overview__container {
    width: min(100%, 1500px);
    margin: 0 auto;
}

.ags-my-projects-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 1rem 1.25rem;
    align-items: stretch;
}

.ags-overview__kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ags-overview__workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.95fr);
    grid-auto-rows: minmax(0, clamp(360px, calc(100vh - 18rem), 560px));
    gap: 1rem;
    align-items: stretch;
}

.ags-overview__workspace-side {
    grid-column: 3;
}

.ags-overview__workspace-side > .ags-overview__section-card,
.ags-overview__insight-panel > .ags-overview__section-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ags-overview__insight-panel > .ags-overview__section-card .ags-overview__priority-split {
    flex: 1;
    min-height: 400px;
    align-items: stretch;
}

/* când nu e selectată nicio prioritate, chart-ul umple toată lățimea */
.ags-overview__priority-split:not(:has(.ags-overview__priority-preview)) {
    grid-template-columns: 1fr;
}

.ags-overview__quick-lists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ags-overview__quick-list-panel {
    min-height: 0;
}

.ags-overview__quick-list-panel--full {
    grid-column: 1 / span 2;
}

.ags-overview__insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-auto-rows: minmax(0, clamp(360px, calc(100vh - 18rem), 560px));
    gap: 1rem;
    align-items: stretch;
}

.ags-overview__summary-pill {
    max-width: 100%;
    min-width: 0;
}

.ags-overview__summary-pill span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ags-priority-chart__legend {
    min-width: 0;
    max-width: 100%;
}

.ags-project-progress-item__name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ags-project-progress-item__pct {
    flex-shrink: 0;
}

@media (max-width: 1199.98px) {
    .ags-overview__kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ags-overview__workspace-grid,
    .ags-overview__insights-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .ags-overview__workspace-side,
    .ags-overview__quick-list-panel--full {
        grid-column: 1;
    }
}

@media (max-height: 900px) and (min-width: 1200px) {
    .ags-overview__workspace-grid,
    .ags-overview__insights-grid {
        grid-auto-rows: minmax(0, clamp(320px, calc(100vh - 16rem), 500px));
    }
}

@media (max-height: 720px) and (min-width: 1200px) {
    .ags-overview__workspace-grid,
    .ags-overview__insights-grid {
        grid-auto-rows: minmax(0, clamp(280px, calc(100vh - 14rem), 420px));
    }
}

@media (max-width: 991.98px) {
    .ags-overview {
        padding: 0.85rem;
    }

    .ags-my-projects-hero__layout {
        grid-template-columns: 1fr;
    }

    .ags-my-projects-hero__quick-create-shell {
        max-width: 540px;
    }
}

@media (max-width: 767.98px) {
    .ags-overview {
        padding: 0.7rem 0.6rem 4.75rem;
    }

    .ags-my-projects-hero__header {
        padding: 1rem;
        margin-bottom: 0.95rem;
    }

    .ags-project-progress-widget__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ags-project-progress-widget__header .ags-quick-list__view-all {
        align-self: flex-start;
    }

    .ags-overview__section {
        margin-bottom: 0.95rem;
    }

    .ags-overview__section-card,
    .ags-overview__focus-card {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .ags-my-projects-hero__quick-create-shell {
        padding: 0.7rem 0.85rem;
        border-radius: 16px;
        max-width: 100%;
    }

    .ags-my-projects-hero__quick-create-shell .ags-quick-create {
        gap: 0.55rem;
    }

    .ags-my-projects-hero__quick-create-shell .ags-quick-create__buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .ags-my-projects-hero__quick-create-shell .ags-quick-create__btn {
        flex: 1;
        min-width: 0;
        width: auto;
        justify-content: center;
        padding: 0.48rem 0.7rem;
        font-size: 0.8rem;
    }

    .ags-overview__summary-pills {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .ags-overview__summary-pill {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.55rem;
        font-size: 0.76rem;
    }

    .ags-state-distribution {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .ags-state-btn {
        grid-template-columns: 1fr;
        grid-template-areas: "count" "label";
        justify-items: center;
        text-align: center;
        gap: 0.35rem;
        padding: 0.75rem 0.35rem;
    }

    .ags-state-btn__count {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    .ags-state-btn__label {
        font-size: 0.66rem;
        line-height: 1.15;
    }

    .ags-overview__kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ags-kpi-card__body {
        padding: 0.85rem 0.85rem 0.8rem;
    }

    .ags-kpi-card__value {
        font-size: 1.55rem;
    }

    .ags-period-stats__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ags-period-stats__tabs::-webkit-scrollbar {
        display: none;
    }

    .ags-period-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ags-priority-chart {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .ags-priority-chart__ring-wrap {
        margin: 0 auto;
    }

    .ags-quick-list__header {
        gap: 0.75rem;
    }

    .ags-quick-list__item {
        padding: 0.75rem 0.8rem;
    }

    .ags-project-progress-list {
        max-height: 320px;
    }

    .ags-quick-list__items--scrollable {
        max-height: 300px;
    }

    .ags-project-progress-item__summary {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .ags-overview {
        padding: 0.55rem 0.5rem 4.75rem;
    }

    .ags-heatmap {
        --ags-heatmap-cell-size: 12px;
        --ags-heatmap-gap: 2px;
        --ags-heatmap-day-column: 24px;
    }

    .ags-my-projects-hero__title {
        font-size: clamp(1.5rem, 7vw, 1.95rem);
    }

    .ags-my-projects-hero__subtitle {
        font-size: 0.9rem;
    }

    .ags-overview__summary-pills,
    .ags-overview__kpi-grid,
    .ags-overview__quick-lists-grid,
    .ags-overview__insights-grid,
    .ags-period-stats__grid {
        grid-template-columns: 1fr;
    }

    .ags-overview__section-heading,
    .ags-quick-list__header {
        flex-direction: column;
        align-items: stretch;
    }

    .ags-quick-list__view-all {
        width: 100%;
    }

    .ags-state-distribution {
        grid-template-columns: 1fr;
    }

    .ags-state-btn {
        grid-template-columns: auto 1fr;
        grid-template-areas: "count label";
        justify-items: start;
        text-align: left;
        padding: 0.75rem 0.85rem;
    }

    .ags-state-btn__label {
        font-size: 0.72rem;
    }

    .ags-heatmap__board {
        gap: 0.3rem 0.45rem;
    }

    .ags-heatmap__month-label,
    .ags-heatmap__day-label {
        font-size: 0.62rem;
    }

}

/* ── Shared With Me Widget ─────────────────────────────────────────────────── */
.ags-shared-settings-btn {
    background: none;
    border: none;
    padding: 0.18rem 0.4rem;
    border-radius: 6px;
    color: #8b84a8;
    font-size: 0.78rem;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.1s, color 0.1s;
}

.ags-shared-settings-btn--overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-left: 0;
    color: #06b6d4;
}

.ags-shared-settings-btn:hover {
    background: rgba(91, 70, 178, 0.1);
    color: #5b46b2;
}

.ags-shared-settings-btn--remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ── Projects Modal ────────────────────────────────────────────────────────── */

.ags-projects-modal {
    border: 1px solid rgba(89, 79, 160, 0.14);
    border-radius: 20px;
    overflow: hidden;
}

.ags-projects-modal__header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1rem;
    border-bottom-color: rgba(89, 79, 160, 0.09);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,247,255,0.96));
}

.ags-projects-modal__header-main {
    flex: 1;
    min-width: 0;
}

.ags-projects-modal__toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(89, 79, 160, 0.09);
}

.ags-projects-modal__search-wrap {
    flex: 1;
    min-width: 0;
}

.ags-projects-modal__count {
    flex-shrink: 0;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(91, 70, 178, 0.08);
    color: #6e6790;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.ags-projects-modal__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ags-title);
    letter-spacing: -0.01em;
    margin: 0;
}

.ags-projects-modal__subtitle {
    font-size: 0.78rem;
    color: #8b84a8;
}

.ags-projects-modal__body {
    min-height: 380px;
    padding: 0.95rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(248, 246, 255, 0.42), rgba(255,255,255,0) 28%);
}

.ags-projects-modal__body .ags-project-progress-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.ags-projects-modal__footer {
    border-top-color: rgba(89, 79, 160, 0.09);
}

.ags-projects-modal__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(91, 70, 178, 0.14);
    border-radius: 999px;
    background: rgba(91, 70, 178, 0.06);
    color: #5b46b2;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.ags-projects-modal__view-all:hover {
    background: rgba(91, 70, 178, 0.12);
    border-color: rgba(91, 70, 178, 0.22);
}

/* ── Modal — search bar skin ───────────────────────────────────────────────── */
.ags-projects-modal__header .iwin-search-container { padding: 0; }

.ags-projects-modal__header .iwin-search-input-group {
    background: rgba(91, 70, 178, 0.05);
    border-color: rgba(89, 79, 160, 0.14);
    border-radius: 12px;
}

.ags-projects-modal__header .iwin-search-input-group:hover {
    background: rgba(91, 70, 178, 0.08);
    border-color: rgba(89, 79, 160, 0.24);
}

.ags-projects-modal__header .iwin-search-input-group:focus-within {
    background: rgba(91, 70, 178, 0.06);
    border-color: #5b46b2;
    box-shadow: 0 0 0 3px rgba(91, 70, 178, 0.13);
}

.ags-projects-modal__header .iwin-search-has-value {
    background: rgba(91, 70, 178, 0.06) !important;
    border-color: rgba(91, 70, 178, 0.28) !important;
    box-shadow: 0 0 0 3px rgba(91, 70, 178, 0.10) !important;
}

.ags-projects-modal__header .iwin-search-icon { color: #a09bc0; }

.ags-projects-modal__header .iwin-search-input-group:focus-within .iwin-search-icon,
.ags-projects-modal__header .iwin-search-has-value .iwin-search-icon { color: #5b46b2; }

.ags-projects-modal__header .iwin-search-input {
    font-size: 0.88rem;
    color: #322b52;
    caret-color: #5b46b2;
}

.ags-projects-modal__header .iwin-search-input::placeholder { color: #a09bc0; }

.ags-projects-modal__header .iwin-search-btn-search { display: none; }

.ags-projects-modal__header .iwin-search-has-value .iwin-search-btn-clear { color: #5b46b2; }

.ags-projects-modal__header .iwin-search-has-value .iwin-search-btn-clear:hover {
    color: #ef4444;
    background: #fef2f2;
}

@media (max-width: 575.98px) {
    .ags-projects-modal__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ags-projects-modal__count {
        align-self: flex-start;
    }
}
