/* The shared Projects shell owns modal placement, focus and motion. */ .lp-comp-target { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lp-comp-content { display: flex; flex-direction: column; gap: 16px; } .lp-comp-message { display: flex; align-items: center; gap: 12px; min-height: 1lh; } .lp-comp-message:empty { display: none; } .lp-comp-facts { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; } .lp-comp-fact { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: baseline; gap: 12px; } .lp-comp-fact dt { color: var(--lp-muted); font-size: var(--lp-fs-xs); } .lp-comp-fact dd { margin: 0; text-align: right; overflow-wrap: anywhere; } .lp-comp-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 6px; border-radius: var(--lp-r-md); font-size: var(--lp-fs-xs); font-weight: 500; } .lp-comp-status[data-status="Winning"] { background: var(--lp-green-tint); color: var(--lp-green-deep); } .lp-comp-status[data-status="Contested"] { background: var(--lp-yellow-tint); color: var(--lp-yellow-deep); } .lp-comp-status[data-status="Losing"] { background: var(--lp-red-tint); color: var(--lp-red-deep); } .lp-comp-number, .lp-comp-numeric { font-variant-numeric: tabular-nums; text-align: right; } .lp-comp-cause { display: block; color: var(--lp-muted); font-size: var(--lp-fs-xs); font-weight: 400; overflow-wrap: anywhere; } .lp-comp-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--lp-line); } .lp-comp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .lp-comp-heading { margin: 0; font-size: var(--lp-fs-sm); font-weight: 600; } .lp-comp-add { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .lp-comp-add label { color: var(--lp-muted); font-size: var(--lp-fs-xs); } .lp-comp-add .lp-proj-input { width: 180px; height: 32px; } .lp-comp-add .lp-proj-btn { height: 32px; } .lp-comp-scroll { width: 100%; min-width: 0; overflow-x: auto; } .lp-comp-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: var(--lp-fs-xs); } .lp-comp-table th, .lp-comp-table td { padding: 12px 8px; border-bottom: 1px solid var(--lp-line); vertical-align: top; text-align: left; } .lp-comp .lp-comp-table th, .lp-comp .lp-comp-table td { padding-inline: 12px; } .lp-comp-table thead th { padding-top: 0; color: var(--lp-muted); font-weight: 500; white-space: nowrap; } .lp-comp-table tbody th { font-weight: 500; white-space: nowrap; } .lp-comp-table .lp-comp-numeric { text-align: right; } .lp-comp-table td { min-width: 64px; max-width: 220px; } .lp-comp-table .lp-comp-title-col, .lp-comp-table .lp-comp-rival-title { min-width: 180px; width: 24%; overflow-wrap: anywhere; } .lp-comp-remove { min-height: 28px; color: var(--lp-red-deep); } .lp-comp-action-label { color: var(--lp-muted); } .lp-comp-children { min-width: 720px; } .lp-comp-empty, .lp-comp-notice { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-xs); } @media (max-width: 600px) { .lp-comp-fact { grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr); gap: 8px; } .lp-comp-target { max-width: 100%; } }