/* Restored GitLab Portfolio styles. Keep these in a shared asset because the settings, report, and Playwright harness views use the same class set. */

.gitlab-portfolio-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.gitlab-portfolio-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.gitlab-portfolio-stat-card {
    border-color: rgba(151, 164, 181, 0.2);
    padding: 1.1rem 1.25rem;
}

.gitlab-portfolio-stat-card.tone-critical {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.16);
}

.gitlab-portfolio-stat-card.tone-warning {
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.gitlab-portfolio-stat-card.tone-watch {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.gitlab-portfolio-stat-card.tone-muted {
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.gitlab-portfolio-stat-label {
    color: #97a4b5;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gitlab-portfolio-stat-value {
    color: #edf3fb;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.gitlab-portfolio-stat-copy,
.gitlab-portfolio-project-copy {
    color: #97a4b5;
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.gitlab-portfolio-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gitlab-portfolio-summary-list dt,
.gitlab-portfolio-summary-list dd {
    margin-bottom: 0.45rem;
}

.gitlab-portfolio-filter-form {
    display: grid;
    gap: 1rem;
}

.gitlab-portfolio-filter-form-wide {
    align-items: end;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.gitlab-portfolio-collapsible-header {
    padding: 0;
}

.gitlab-portfolio-collapsible-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #edf3fb;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    text-align: left;
    width: 100%;
}

.gitlab-portfolio-collapsible-toggle:hover,
.gitlab-portfolio-collapsible-toggle:focus {
    background: rgba(30, 64, 175, 0.08);
    color: #f8fbff;
    outline: none;
}

.gitlab-portfolio-collapsible-indicator {
    color: #97a4b5;
    font-size: 0.9rem;
    line-height: 1;
}

.gitlab-portfolio-checkbox-row {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.gitlab-portfolio-project-title {
    color: #edf3fb;
    font-weight: 600;
}

.gitlab-portfolio-project-error {
    color: #fca5a5;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.gitlab-portfolio-profile-list,
.gitlab-portfolio-group-list {
    display: flex;
    flex-direction: column;
}

.gitlab-portfolio-profile-list {
    gap: 0.75rem;
}

.gitlab-portfolio-profile-card,
.gitlab-portfolio-project-card {
    background: rgba(7, 13, 24, 0.42);
    border: 1px solid rgba(151, 164, 181, 0.18);
    border-radius: 0.85rem;
}

.gitlab-portfolio-project-card {
    background: rgba(11, 18, 32, 0.7);
    border-color: rgba(151, 164, 181, 0.2);
    padding: 1rem;
}

.gitlab-portfolio-profile-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.gitlab-portfolio-profile-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #edf3fb;
    display: flex;
    gap: 0.55rem;
    padding: 0;
    text-align: left;
}

.gitlab-portfolio-profile-toggle:hover,
.gitlab-portfolio-profile-toggle:focus {
    color: #fff;
    outline: none;
}

.gitlab-portfolio-profile-body {
    border-top: 1px solid rgba(151, 164, 181, 0.14);
    padding: 0.35rem 1.25rem 1rem;
}

.gitlab-portfolio-group-row {
    align-items: center;
    border-top: 1px solid rgba(151, 164, 181, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.gitlab-portfolio-group-row:first-child {
    border-top: 0;
}

.gitlab-portfolio-group-body {
    min-width: 0;
}

.gitlab-portfolio-group-title {
    color: #edf3fb;
    font-weight: 600;
    word-break: break-word;
}

.gitlab-portfolio-project-groups-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.gitlab-portfolio-project-groups-search {
    margin: 0;
    max-width: 22rem;
}

.gitlab-portfolio-project-groups-search .form-control {
    background: rgba(12, 18, 30, 0.88);
    border: 1px solid rgba(151, 164, 181, 0.16);
    color: #edf3fb;
}

.gitlab-portfolio-project-groups-search .form-control::placeholder {
    color: #8fa0b6;
}

.gitlab-portfolio-project-groups-search .form-control:focus {
    background: rgba(12, 18, 30, 0.96);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
    color: #f8fbff;
}

.gitlab-portfolio-search-empty {
    margin-top: 0.85rem;
}

.gitlab-portfolio-section + .gitlab-portfolio-section {
    margin-top: 1.5rem;
}

.gitlab-portfolio-section-title {
    color: #edf3fb;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.gitlab-portfolio-tree-node {
    border-left: 1px solid rgba(151, 164, 181, 0.14);
    margin-left: 0.05rem;
    padding-left: 0.42rem;
}

.gitlab-portfolio-tree-node + .gitlab-portfolio-tree-node {
    margin-top: 0.5rem;
}

.gitlab-portfolio-tree-node-shell {
    align-items: flex-start;
    background: rgba(11, 18, 32, 0.72);
    border: 1px solid rgba(151, 164, 181, 0.16);
    border-radius: 0.85rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.gitlab-portfolio-tree-node.kind-namespace .gitlab-portfolio-tree-node-shell {
    background: rgba(9, 16, 28, 0.48);
    border-color: rgba(118, 136, 160, 0.12);
}

.gitlab-portfolio-tree-node.kind-project .gitlab-portfolio-tree-node-shell {
    background: linear-gradient(180deg, rgba(16, 31, 56, 0.9) 0%, rgba(11, 21, 38, 0.9) 100%);
    border-color: rgba(89, 136, 219, 0.28);
}

.gitlab-portfolio-tree-node-main {
    align-items: flex-start;
    display: flex;
    min-width: 0;
}

.gitlab-portfolio-tree-toggle {
    align-items: flex-start;
    background: transparent;
    border: 0;
    color: #97a4b5;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    text-align: left;
    width: 100%;
}

.gitlab-portfolio-tree-toggle:hover,
.gitlab-portfolio-tree-toggle:focus {
    color: #edf3fb;
    outline: none;
}

.gitlab-portfolio-tree-toggle-spacer {
    display: inline-block;
    flex: 0 0 1rem;
    width: 1rem;
}

.gitlab-portfolio-tree-toggle-indicator {
    align-items: center;
    display: inline-flex;
    flex: 0 0 1rem;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    margin-top: 0.02rem;
    text-align: center;
    width: 1rem;
}

.gitlab-portfolio-tree-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gitlab-portfolio-tree-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gitlab-portfolio-tree-title {
    align-items: center;
    color: #edf3fb;
    display: inline-flex;
    font-weight: 700;
    gap: 0.38rem;
    min-width: 0;
    word-break: break-word;
}

.gitlab-portfolio-tree-node.kind-namespace .gitlab-portfolio-tree-title {
    color: #cad5e3;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.gitlab-portfolio-tree-node.kind-project .gitlab-portfolio-tree-title {
    color: #f5f9ff;
    font-size: 0.94rem;
}

.gitlab-portfolio-tree-node.tone-critical .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-tree-node.tone-warning .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-tree-node.tone-watch .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-tree-node.tone-muted .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-profile-card.tone-critical .gitlab-portfolio-profile-toggle > span:last-child::before,
.gitlab-portfolio-profile-card.tone-warning .gitlab-portfolio-profile-toggle > span:last-child::before,
.gitlab-portfolio-profile-card.tone-watch .gitlab-portfolio-profile-toggle > span:last-child::before,
.gitlab-portfolio-profile-card.tone-muted .gitlab-portfolio-profile-toggle > span:last-child::before {
    border-radius: 999px;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 0.42rem;
    width: 0.42rem;
}

.gitlab-portfolio-tree-node.tone-critical .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-profile-card.tone-critical .gitlab-portfolio-profile-toggle > span:last-child::before {
    background: #fb7185;
}

.gitlab-portfolio-tree-node.tone-warning .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-profile-card.tone-warning .gitlab-portfolio-profile-toggle > span:last-child::before {
    background: #facc15;
}

.gitlab-portfolio-tree-node.tone-watch .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-profile-card.tone-watch .gitlab-portfolio-profile-toggle > span:last-child::before {
    background: #60a5fa;
}

.gitlab-portfolio-tree-node.tone-muted .gitlab-portfolio-tree-title::before,
.gitlab-portfolio-profile-card.tone-muted .gitlab-portfolio-profile-toggle > span:last-child::before {
    background: #94a3b8;
}

.gitlab-portfolio-tree-subtitle {
    color: #97a4b5;
    font-size: 0.74rem;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.gitlab-portfolio-tree-children {
    margin-top: 0.28rem;
    padding-left: 0.1rem;
}

.gitlab-portfolio-tree-metrics,
.gitlab-portfolio-project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gitlab-portfolio-project-metrics {
    color: #d7e0ea;
    font-size: 0.9rem;
    gap: 0.6rem 1rem;
    margin-top: 0.8rem;
}

.gitlab-portfolio-tree-side,
.gitlab-portfolio-tree-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gitlab-portfolio-tree-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gitlab-portfolio-tree-actions form {
    display: inline-flex;
    margin: 0;
}

.gitlab-portfolio-tree-action-link,
.gitlab-portfolio-tree-action-button {
    background: transparent;
    border: 0;
    color: #cdd7e4;
    font-size: 0.72rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.14rem;
}

.gitlab-portfolio-tree-action-button {
    appearance: none;
    -webkit-appearance: none;
}

.gitlab-portfolio-tree-action-link:hover,
.gitlab-portfolio-tree-action-link:focus,
.gitlab-portfolio-tree-action-button:hover,
.gitlab-portfolio-tree-action-button:focus {
    color: #f8fbff;
    outline: none;
}

.gitlab-portfolio-tree-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.gitlab-portfolio-tree-stat {
    align-items: baseline;
    background: rgba(12, 18, 30, 0.78);
    border: 1px solid rgba(151, 164, 181, 0.16);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.22rem;
    padding: 0.12rem 0.42rem;
}

.gitlab-portfolio-tree-stat-button {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.gitlab-portfolio-tree-stat-button:hover,
.gitlab-portfolio-tree-stat-button:focus {
    border-color: rgba(148, 163, 184, 0.3);
    filter: brightness(1.05);
    outline: none;
}

.gitlab-portfolio-tree-stat-label {
    color: #97a4b5;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gitlab-portfolio-tree-stat-value {
    color: #edf3fb;
    font-size: 0.68rem;
    font-weight: 700;
}

.gitlab-portfolio-tree-stat.tone-critical .gitlab-portfolio-tree-stat-value {
    color: #fda4af;
}

.gitlab-portfolio-tree-stat.tone-warning .gitlab-portfolio-tree-stat-value {
    color: #facc15;
}

.gitlab-portfolio-tree-stat.tone-watch .gitlab-portfolio-tree-stat-value {
    color: #93c5fd;
}

.gitlab-portfolio-tree-stat.tone-muted .gitlab-portfolio-tree-stat-value {
    color: #cbd5e1;
}

.gitlab-portfolio-metric-pill {
    background: rgba(22, 32, 48, 0.88);
    border: 1px solid rgba(151, 164, 181, 0.2);
    border-radius: 999px;
    color: #d7e0ea;
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.2rem 0.45rem;
}

.gitlab-portfolio-metric-pill.tone-critical {
    background: rgba(127, 29, 29, 0.32);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.gitlab-portfolio-metric-pill.tone-warning {
    background: rgba(120, 53, 15, 0.3);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fde68a;
}

.gitlab-portfolio-metric-pill.tone-watch {
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

.gitlab-portfolio-metric-pill.tone-muted {
    background: rgba(51, 65, 85, 0.46);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.gitlab-portfolio-metric-pill.tone-quiet {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.gitlab-portfolio-velocity-copy {
    color: #a7b5c8;
    font-size: 0.84rem;
    margin-top: 0.85rem;
}

.gitlab-portfolio-velocity-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.gitlab-portfolio-velocity-range-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gitlab-portfolio-velocity-range-chip {
    background: rgba(12, 18, 30, 0.78);
    border: 1px solid rgba(151, 164, 181, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.38rem 0.62rem;
    text-decoration: none;
}

.gitlab-portfolio-velocity-range-chip:hover,
.gitlab-portfolio-velocity-range-chip:focus {
    border-color: rgba(96, 165, 250, 0.3);
    color: #edf3fb;
    text-decoration: none;
}

.gitlab-portfolio-velocity-range-chip.is-active {
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

.gitlab-portfolio-velocity-unfocus {
    flex: 0 0 auto;
}

.gitlab-portfolio-velocity-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.gitlab-portfolio-velocity-chart-shell {
    margin-top: 0.88rem;
}

.gitlab-portfolio-velocity-chart-frame {
    background: linear-gradient(180deg, rgba(15, 22, 35, 0.92) 0%, rgba(9, 15, 26, 0.98) 100%);
    border: 1px solid rgba(151, 164, 181, 0.12);
    border-radius: 0.85rem;
    overflow: hidden;
    padding: 0.8rem;
    position: relative;
}

.gitlab-portfolio-velocity-svg {
    display: block;
    height: 17rem;
    width: 100%;
}

.gitlab-portfolio-velocity-baseline {
    stroke: rgba(151, 164, 181, 0.22);
    stroke-dasharray: 6 6;
    stroke-width: 1;
}

.gitlab-portfolio-velocity-gridline {
    stroke: rgba(148, 163, 184, 0.1);
    stroke-dasharray: 4 8;
    stroke-width: 1;
}

.gitlab-portfolio-velocity-area {
    fill-opacity: 0.48;
}

.gitlab-portfolio-velocity-area-opened {
    fill: rgba(59, 130, 246, 0.28);
}

.gitlab-portfolio-velocity-area-reopened {
    fill: rgba(251, 191, 36, 0.2);
}

.gitlab-portfolio-velocity-area-closed {
    fill: rgba(34, 197, 94, 0.22);
}

.gitlab-portfolio-velocity-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.gitlab-portfolio-velocity-line-opened {
    stroke: #60a5fa;
}

.gitlab-portfolio-velocity-line-reopened {
    stroke: #fbbf24;
}

.gitlab-portfolio-velocity-line-closed {
    stroke: #4ade80;
}

.gitlab-portfolio-velocity-line-net {
    stroke: #c084fc;
    stroke-dasharray: 7 6;
}

.gitlab-portfolio-velocity-line-incoming-average,
.gitlab-portfolio-velocity-line-closed-average {
    stroke-dasharray: 8 7;
    stroke-width: 1.15;
}

.gitlab-portfolio-velocity-line-incoming-average {
    stroke: rgba(125, 211, 252, 0.96);
}

.gitlab-portfolio-velocity-line-closed-average {
    stroke: rgba(250, 204, 21, 0.94);
}

.gitlab-portfolio-velocity-hover-region {
    cursor: crosshair;
    fill: transparent;
}

.gitlab-portfolio-velocity-hover-region:hover {
    fill: rgba(148, 163, 184, 0.06);
}

.gitlab-portfolio-velocity-axis-label {
    fill: #8fa0b6;
    font-size: 12px;
    text-anchor: middle;
}

.gitlab-portfolio-velocity-scale-label {
    fill: #7f91a8;
    font-size: 11px;
    text-anchor: end;
}

.gitlab-portfolio-velocity-legend {
    color: #a7b5c8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin-top: 0.65rem;
}

.gitlab-portfolio-velocity-legend-item {
    align-items: center;
    display: inline-flex;
    font-size: 0.72rem;
    gap: 0.35rem;
}

.gitlab-portfolio-velocity-legend-swatch {
    border-radius: 999px;
    display: inline-block;
    height: 0.55rem;
    width: 0.55rem;
}

.gitlab-portfolio-velocity-legend-swatch-opened {
    background: #60a5fa;
}

.gitlab-portfolio-velocity-legend-swatch-reopened {
    background: #fbbf24;
}

.gitlab-portfolio-velocity-legend-swatch-closed {
    background: #4ade80;
}

.gitlab-portfolio-velocity-legend-line {
    display: inline-block;
    width: 1.35rem;
}

.gitlab-portfolio-velocity-legend-line-incoming-average {
    border-top: 2px dashed rgba(125, 211, 252, 0.96);
}

.gitlab-portfolio-velocity-legend-line-closed-average {
    border-top: 2px dashed rgba(250, 204, 21, 0.94);
}

.gitlab-portfolio-velocity-legend-line-net {
    border-top: 1.5px dashed #c084fc;
}

.gitlab-portfolio-velocity-tooltip {
    background: rgba(9, 15, 26, 0.96);
    border: 1px solid rgba(151, 164, 181, 0.18);
    border-radius: 0.65rem;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.32);
    left: 1rem;
    min-width: 9.5rem;
    padding: 0.65rem;
    pointer-events: none;
    position: absolute;
    top: 1rem;
}

.gitlab-portfolio-velocity-tooltip-title {
    color: #edf3fb;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.gitlab-portfolio-velocity-tooltip-grid {
    display: grid;
    gap: 0.16rem;
}

.gitlab-portfolio-velocity-tooltip-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.gitlab-portfolio-velocity-tooltip-key {
    color: #97a4b5;
    font-size: 0.66rem;
}

.gitlab-portfolio-velocity-tooltip-value {
    color: #f8fbff;
    font-size: 0.68rem;
    font-weight: 700;
}

.gitlab-portfolio-velocity-projects {
    margin-top: 1rem;
}

.gitlab-portfolio-velocity-projects-heading {
    align-items: center;
    color: #edf3fb;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.gitlab-portfolio-velocity-project-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.gitlab-portfolio-velocity-project-card {
    background: linear-gradient(180deg, rgba(18, 27, 42, 0.82) 0%, rgba(11, 18, 30, 0.94) 100%);
    border: 1px solid rgba(151, 164, 181, 0.12);
    border-radius: 0.7rem;
    padding: 0.75rem;
}

.gitlab-portfolio-velocity-project-head {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
}

.gitlab-portfolio-velocity-project-title {
    color: #edf3fb;
    font-size: 0.8rem;
    font-weight: 700;
}

.gitlab-portfolio-velocity-project-path {
    color: #97a4b5;
    font-size: 0.68rem;
    margin-top: 0.15rem;
    word-break: break-word;
}

.gitlab-portfolio-velocity-project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.gitlab-portfolio-board-preview-shell {
    margin-top: 0.28rem;
}

.gitlab-portfolio-board-preview-shell.is-loading {
    opacity: 0.8;
}

.gitlab-portfolio-board-preview,
.gitlab-portfolio-board-preview-placeholder,
.gitlab-portfolio-board-preview-notice {
    background: linear-gradient(180deg, rgba(18, 27, 42, 0.88) 0%, rgba(11, 18, 30, 0.96) 100%);
    border: 1px solid rgba(151, 164, 181, 0.16);
    border-radius: 0.85rem;
    padding: 0.9rem;
}

.gitlab-portfolio-board-preview-placeholder,
.gitlab-portfolio-board-preview-notice {
    color: #97a4b5;
    font-size: 0.84rem;
}

.gitlab-portfolio-board-preview-notice.tone-critical {
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.gitlab-portfolio-board-preview-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(151, 164, 181, 0.12);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.gitlab-portfolio-board-preview-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.gitlab-portfolio-board-preview-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.gitlab-portfolio-board-preview-title {
    color: #edf3fb;
    font-size: 0.78rem;
    font-weight: 700;
}

.gitlab-portfolio-board-preview-subtitle {
    color: #a7b5c8;
    font-size: 0.67rem;
    margin-top: 0.18rem;
}

.gitlab-portfolio-board-lanes {
    display: flex;
    gap: 0.46rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.gitlab-portfolio-board-lane {
    --gitlab-board-lane-accent: rgba(148, 163, 184, 0.42);
    background: linear-gradient(180deg, rgba(23, 33, 49, 0.94) 0%, rgba(14, 22, 36, 0.98) 100%);
    border: 1px solid rgba(151, 164, 181, 0.14);
    border-radius: 0.7rem;
    flex: 0 0 14rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.gitlab-portfolio-board-lane-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(151, 164, 181, 0.1);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.62rem 0.7rem;
}

.gitlab-portfolio-board-lane-title {
    color: #edf3fb;
    font-size: 0.71rem;
    font-weight: 700;
}

.gitlab-portfolio-board-lane-subtitle {
    color: #99a8bc;
    font-size: 0.6rem;
}

.gitlab-portfolio-board-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.55rem;
}

.gitlab-portfolio-board-card {
    background: linear-gradient(180deg, rgba(9, 15, 26, 0.94) 0%, rgba(6, 11, 20, 0.98) 100%);
    border: 1px solid rgba(151, 164, 181, 0.14);
    border-radius: 0.55rem;
    padding: 0.55rem;
}

.gitlab-portfolio-board-card-title {
    color: #edf3fb;
    font-size: 0.71rem;
    font-weight: 700;
}

.gitlab-portfolio-board-card-title a {
    color: inherit;
    text-decoration: none;
}

.gitlab-portfolio-board-card-title a:hover,
.gitlab-portfolio-board-card-title a:focus {
    text-decoration: underline;
}

.gitlab-portfolio-board-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.gitlab-portfolio-board-card-meta .gitlab-portfolio-metric-pill,
.gitlab-portfolio-board-card-meta-pill {
    font-size: 0.5rem;
    padding: 0.1rem 0.24rem;
}

.gitlab-portfolio-label-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.45rem;
}

.gitlab-portfolio-label-chip {
    --gitlab-label-color: rgba(51, 65, 85, 0.7);
    --gitlab-label-text-color: #f8fbff;
    align-items: center;
    background: var(--gitlab-label-color);
    border: 1px solid color-mix(in srgb, var(--gitlab-label-color) 80%, rgba(15, 23, 42, 0.22));
    border-radius: 999px;
    color: var(--gitlab-label-text-color);
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    padding: 0.22rem 0.45rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gitlab-portfolio-label-chip.is-split {
    background: transparent;
    border-color: color-mix(in srgb, var(--gitlab-label-color) 86%, rgba(15, 23, 42, 0.24));
    gap: 0;
    padding: 0;
}

.gitlab-portfolio-label-chip-prefix,
.gitlab-portfolio-label-chip-value {
    align-items: center;
    display: inline-flex;
    min-height: 1.35rem;
    padding: 0.22rem 0.42rem;
}

.gitlab-portfolio-label-chip-prefix {
    background: var(--gitlab-label-color);
    color: var(--gitlab-label-text-color);
}

.gitlab-portfolio-label-chip-value {
    background: rgba(248, 250, 252, 0.96);
    color: #111827;
}

.gitlab-portfolio-issue-drawer-backdrop {
    background: rgba(2, 6, 23, 0.6);
    inset: 0;
    position: fixed;
    z-index: 1040;
}

.gitlab-portfolio-issue-drawer {
    background: linear-gradient(180deg, #101827 0%, #09111f 100%);
    border-left: 1px solid rgba(151, 164, 181, 0.16);
    bottom: 0;
    box-shadow: -22px 0 50px rgba(2, 6, 23, 0.36);
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 180ms ease;
    width: 34rem;
    z-index: 1050;
}

.gitlab-portfolio-issue-drawer.is-open {
    transform: translateX(0);
}

.gitlab-portfolio-issue-drawer-header {
    border-bottom: 1px solid rgba(151, 164, 181, 0.14);
    padding: 1rem 1.15rem;
    position: relative;
}

.gitlab-portfolio-issue-drawer-header .btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.gitlab-portfolio-issue-drawer-subtitle,
.gitlab-portfolio-issue-drawer-kicker,
.gitlab-portfolio-issue-drawer-summary,
.gitlab-portfolio-issue-drawer-card-project {
    color: #97a4b5;
}

.gitlab-portfolio-issue-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}

.gitlab-portfolio-issue-drawer-content,
.gitlab-portfolio-issue-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.gitlab-portfolio-issue-drawer-title,
.gitlab-portfolio-issue-drawer-card-title {
    color: #edf3fb;
    font-weight: 700;
}

.gitlab-portfolio-issue-drawer-card {
    background: rgba(8, 14, 24, 0.78);
    border: 1px solid rgba(151, 164, 181, 0.12);
    border-radius: 0.7rem;
    padding: 0.85rem;
}

.gitlab-portfolio-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: space-between;
}

.gitlab-portfolio-pagination-summary {
    color: #97a4b5;
    font-size: 0.82rem;
}

.gitlab-portfolio-pagination .pagination {
    margin-bottom: 0;
}

.gitlab-portfolio-pagination .page-link {
    background: rgba(11, 18, 32, 0.82);
    border-color: rgba(151, 164, 181, 0.2);
    color: #d7e0ea;
}

.gitlab-portfolio-pagination .page-link:hover,
.gitlab-portfolio-pagination .page-link:focus {
    background: rgba(30, 64, 175, 0.24);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: none;
    color: #edf3fb;
}

.gitlab-portfolio-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #f8fbff;
}

.gitlab-portfolio-pagination .page-item.disabled .page-link {
    background: rgba(11, 18, 32, 0.5);
    border-color: rgba(151, 164, 181, 0.16);
    color: #748397;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: rgba(120, 136, 158, 0.18);
    box-shadow: 0 12px 26px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-card.tone-critical {
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08), 0 12px 26px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-card.tone-warning {
    border-color: rgba(217, 119, 6, 0.24);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08), 0 12px 26px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-card.tone-watch {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08), 0 12px 26px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-card.tone-muted {
    border-color: rgba(100, 116, 139, 0.22);
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.06), 0 12px 26px rgba(64, 83, 107, 0.08);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-label,
.ops-shell[data-theme="light"] .gitlab-portfolio-stat-copy,
.ops-shell[data-theme="light"] .gitlab-portfolio-project-copy,
.ops-shell[data-theme="light"] .gitlab-portfolio-collapsible-indicator,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-subtitle,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-stat-label,
.ops-shell[data-theme="light"] .gitlab-portfolio-group-title + .gitlab-portfolio-project-copy,
.ops-shell[data-theme="light"] .gitlab-portfolio-pagination-summary {
    color: #6a7d95;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-stat-value,
.ops-shell[data-theme="light"] .gitlab-portfolio-collapsible-toggle,
.ops-shell[data-theme="light"] .gitlab-portfolio-project-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-profile-toggle,
.ops-shell[data-theme="light"] .gitlab-portfolio-section-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-stat-value,
.ops-shell[data-theme="light"] .gitlab-portfolio-group-title {
    color: #122033;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-collapsible-toggle:hover,
.ops-shell[data-theme="light"] .gitlab-portfolio-collapsible-toggle:focus {
    background: rgba(37, 99, 235, 0.06);
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-profile-card,
.ops-shell[data-theme="light"] .gitlab-portfolio-project-card,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-node-shell {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-node.kind-namespace .gitlab-portfolio-tree-node-shell {
    background: linear-gradient(180deg, #f2f5fa 0%, #e7edf5 100%);
    border-color: rgba(120, 136, 158, 0.14);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-node.kind-project .gitlab-portfolio-tree-node-shell {
    background: linear-gradient(180deg, #eef5ff 0%, #e3edf9 100%);
    border-color: rgba(59, 130, 246, 0.24);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-node {
    border-left-color: rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-toggle,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-link,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-button {
    color: #51637a;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-link:hover,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-link:focus,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-button:hover,
.ops-shell[data-theme="light"] .gitlab-portfolio-tree-action-button:focus {
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-tree-stat {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-metric-pill.tone-critical {
    background: rgba(254, 226, 226, 0.8);
    border-color: rgba(220, 38, 38, 0.22);
    color: #991b1b;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-metric-pill.tone-warning {
    background: rgba(254, 243, 199, 0.8);
    border-color: rgba(217, 119, 6, 0.24);
    color: #92400e;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-metric-pill.tone-watch {
    background: rgba(219, 234, 254, 0.82);
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-metric-pill.tone-muted,
.ops-shell[data-theme="light"] .gitlab-portfolio-metric-pill.tone-quiet {
    background: rgba(226, 232, 240, 0.76);
    border-color: rgba(100, 116, 139, 0.22);
    color: #475569;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-copy,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-legend,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-tooltip-key,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-project-path {
    color: #6a7d95;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-projects-heading,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-tooltip-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-tooltip-value,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-project-title {
    color: #122033;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-range-chip {
    background: var(--ops-shell-surface);
    border-color: rgba(120, 136, 158, 0.2);
    color: var(--ops-shell-text);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-range-chip:hover,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-range-chip:focus {
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-range-chip.is-active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(37, 99, 235, 0.24);
    color: #1d4ed8;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-chart-frame,
.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-project-card {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-baseline {
    stroke: rgba(71, 85, 105, 0.24);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-gridline {
    stroke: rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-hover-region:hover {
    fill: rgba(59, 130, 246, 0.06);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-axis-label {
    fill: #52667f;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-scale-label {
    fill: #72859d;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-velocity-tooltip {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(120, 136, 158, 0.18);
    box-shadow: 0 18px 34px rgba(64, 83, 107, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-project-groups-search .form-control {
    background: var(--ops-shell-surface);
    border-color: rgba(120, 136, 158, 0.2);
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-project-groups-search .form-control::placeholder {
    color: var(--ops-shell-muted);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-placeholder,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-notice,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-card {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
    border-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-card-title {
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-subtitle,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-placeholder,
.ops-shell[data-theme="light"] .gitlab-portfolio-board-preview-notice {
    color: var(--ops-shell-muted);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-lane {
    background: linear-gradient(180deg, #f3f7fc 0%, #e8eff7 100%);
    border-color: rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-lane-title {
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-board-lane-subtitle {
    color: var(--ops-shell-muted);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-label-chip {
    --gitlab-label-color: rgba(226, 232, 240, 0.95);
    --gitlab-label-text-color: #334155;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-label-chip-value {
    background: #ffffff;
    color: #1f2937;
}

.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-backdrop {
    background: rgba(15, 23, 42, 0.24);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer {
    background: linear-gradient(180deg, #f9fbfe 0%, #edf3f8 100%);
    border-left-color: rgba(120, 136, 158, 0.18);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-title,
.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-card-title {
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-subtitle,
.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-kicker,
.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-summary,
.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-card-project {
    color: var(--ops-shell-muted);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-issue-drawer-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(120, 136, 158, 0.16);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-group-row {
    border-top-color: rgba(120, 136, 158, 0.14);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-pagination .page-link {
    background: var(--ops-shell-surface);
    border-color: rgba(120, 136, 158, 0.18);
    color: var(--ops-shell-text);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-pagination .page-link:hover,
.ops-shell[data-theme="light"] .gitlab-portfolio-pagination .page-link:focus {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(37, 99, 235, 0.24);
    color: var(--ops-shell-text-strong);
}

.ops-shell[data-theme="light"] .gitlab-portfolio-pagination .page-item.disabled .page-link {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(120, 136, 158, 0.14);
}

@media (max-width: 767px) {
    .gitlab-portfolio-filter-form-wide {
        grid-template-columns: 1fr;
    }

    .gitlab-portfolio-profile-header,
    .gitlab-portfolio-tree-node-shell,
    .gitlab-portfolio-board-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gitlab-portfolio-profile-body,
    .gitlab-portfolio-tree-children {
        padding-left: 0;
    }

    .gitlab-portfolio-tree-node {
        border-left: 0;
        margin-left: 0;
        padding-left: 0;
    }

    .gitlab-portfolio-tree-metrics,
    .gitlab-portfolio-tree-summary {
        justify-content: flex-start;
    }

    .gitlab-portfolio-tree-side,
    .gitlab-portfolio-tree-actions {
        align-items: flex-start;
    }

    .gitlab-portfolio-board-lanes {
        grid-auto-columns: minmax(160px, 82vw);
    }

    .gitlab-portfolio-issue-drawer {
        width: 100vw;
    }

    .gitlab-portfolio-board-card-meta,
    .gitlab-portfolio-pagination,
    .gitlab-portfolio-group-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
