/* S78-T17: the Competitor watch App. Tokens only; one containment layer (the app panel). */ .cw-app { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; padding: 10px 12px; overflow-x: hidden; overflow-y: auto; background: var(--lp-surface); color: var(--lp-ink); font-size: var(--lp-fs-sm); } .cw-tabs { display: inline-flex; gap: 4px; margin-left: auto; } .cw-tab { border: 0; background: transparent; font: inherit; color: var(--lp-muted); min-height: 30px; padding: 0 12px; border-radius: var(--lp-r-md); font-size: var(--lp-fs-xs); cursor: pointer; } .cw-tab:hover { background: var(--lp-surface-2); color: var(--lp-ink); } .cw-tab.is-active { background: var(--lp-blue-tint); color: var(--lp-ink); font-weight: 600; } .cw-body, .cw-view { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .cw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding-bottom: 12px; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .cw-field { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; } .cw-field-label { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .cw-period { min-height: 32px; display: inline-flex; align-items: center; color: var(--lp-muted); font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; } .cw-term-form { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; } .cw-search-field, .cw-term-field { flex: 0 0 200px; width: 200px; } .cw-term-field .cw-select { width: 100%; min-width: 0; } .cw-pager { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 344px; width: 344px; } .cw-page-count { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; } .cw-pager .cw-button { flex: 0 0 80px; } .cw-select, .cw-input { min-height: 32px; max-width: 100%; box-sizing: border-box; padding: 0 8px; border: var(--lp-hairline-width, 1px) solid var(--lp-line-strong); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); } .cw-select { min-width: 200px; } .cw-alerts .cw-select { min-width: 152px; } .cw-button { border: 0; background: transparent; font: inherit; color: inherit; min-height: 32px; padding: 0 12px; border-radius: var(--lp-r-sm); background: var(--lp-blue-solid); color: var(--lp-surface); font-size: var(--lp-fs-xs); font-weight: 600; cursor: pointer; } .cw-button.is-quiet { background: transparent; color: var(--lp-muted); font-weight: 400; } .cw-button.is-quiet:hover { background: var(--lp-surface-2); color: var(--lp-ink); } .cw-button:disabled { opacity: 0.5; cursor: not-allowed; } .cw-button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; } .cw-link { border: 0; background: transparent; font: inherit; color: var(--lp-blue-deep); padding: 0; text-decoration: underline; cursor: pointer; } .cw-tab:focus-visible, .cw-button:focus-visible, .cw-link:focus-visible, .cw-select:focus-visible, .cw-input:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .cw-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; } /* Two columns once both panels reach 440 px (the Profound layout); one column below that. */ .cw-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px 24px; align-items: start; } .cw-heading { margin: 0; font-size: var(--lp-fs-md); font-weight: 600; } .cw-note { margin: 0; color: var(--lp-ink); } .cw-error { margin: 0; color: var(--lp-red-deep); } .cw-cause-line { margin: 0; color: var(--lp-yellow-deep); } .cw-table { width: 100%; border-collapse: collapse; font-size: var(--lp-fs-xs); } .cw-table th { text-align: left; font-weight: 500; color: var(--lp-muted); padding: 8px; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .cw-table td { padding: 8px; vertical-align: top; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .cw-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .cw-ranked tr.is-ours td { background: var(--lp-blue-tint); } .cw-alerts td { vertical-align: middle; } .cw-rank { display: inline-block; min-width: 16px; font-variant-numeric: tabular-nums; font-weight: 600; } .cw-asin { font-variant-numeric: tabular-nums; } .cw-title, .cw-cause { display: block; margin-top: 4px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .cw-cause { color: var(--lp-yellow-deep); } .cw-you { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: var(--lp-r-sm); background: var(--lp-surface); border: var(--lp-hairline-width, 1px) solid var(--lp-blue-deep); color: var(--lp-ink); font-size: var(--lp-fs-2xs); font-weight: 600; } /* Change chips: a fade on entry and nothing more. */ .cw-chip { display: inline-block; margin-left: 8px; padding: 0 4px; border-radius: var(--lp-r-sm); font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; white-space: nowrap; animation: cw-chip-in var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both; } .cw-chip.is-up { background: var(--lp-green-tint); color: var(--lp-green-deep); } .cw-chip.is-down { background: var(--lp-red-tint); color: var(--lp-red-deep); } .cw-chip.is-new { background: var(--lp-blue-tint); color: var(--lp-ink); } .cw-chip.is-flat { background: var(--lp-surface-2); color: var(--lp-muted); } @keyframes cw-chip-in { from { opacity: 0; } to { opacity: 1; } } .cw-status { color: var(--lp-ink); } .cw-skeleton-rows { display: flex; flex-direction: column; gap: 8px; } .cw-skeleton { height: 32px; border-radius: var(--lp-r-sm); background: var(--lp-surface-2); animation: cw-breathe 1.2s var(--lp-motion-feedback-easing) infinite alternate; } .cw-skeleton-chart { height: 220px; } @keyframes cw-breathe { from { opacity: 1; } to { opacity: 0.5; } } @media (prefers-reduced-motion: reduce) { .cw-chip, .cw-skeleton { animation: none; } } /* 390 px: every block stacks full width; tables become labelled rows, no horizontal scroll. */ @media (max-width: 640px) { .cw-tabs { margin-left: 0; } .cw-filters { flex-direction: column; align-items: stretch; } .cw-field, .cw-select, .cw-term-form { width: 100%; min-width: 0; } .cw-search-field, .cw-term-field, .cw-pager { flex-basis: auto; width: 100%; } .cw-pager .cw-button { flex-basis: 72px; padding: 0 8px; } .cw-term-form { margin-left: 0; } .cw-input { flex: 1 1 160px; min-width: 0; } .cw-table thead { display: none; } .cw-table, .cw-table tbody, .cw-table tr, .cw-table td { display: block; width: 100%; box-sizing: border-box; } .cw-table tr { padding: 8px 0; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .cw-table td { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; border-bottom: 0; text-align: left; } .cw-table td.is-num { text-align: left; white-space: normal; } .cw-table td::before { content: attr(data-label); flex: 0 0 120px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .cw-table td > .cw-title, .cw-table td > .cw-cause { flex-basis: 100%; margin-top: 0; padding-left: 128px; } .cw-chip, .cw-you { margin-left: 0; } .cw-alerts .cw-select { min-width: 0; flex: 1 1 140px; } } .cw-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; } .cw-checks li { padding-bottom: 8px; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .cw-check-what { font-size: var(--lp-fs-xs); }