/* Tool activity: a large modal that answers four questions in order — how much, what is worth a look, which tools, and what one tool did. The report and the details panel sit side by side; only a phone's details are a sheet. */ .modal.ta-report { width: var(--dialog-l); height: var(--dialog-l-h); max-height: var(--dialog-l-h); min-width: 0; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; color: var(--text); font-size: calc(13px + var(--ui-text-increase, 0px)); } /* The header is the one dialog header (dialogs.css): `modal-head ta-report-header`. */ .ta-actions { display: flex; align-items: center; margin-left: auto; gap: 8px; } .ta-freshness { color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); font-variant-numeric: tabular-nums; } .ta-inspector-head .glyph-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex: none; } .ta-actions [aria-busy=true] { cursor: wait; } .ta-actions [data-loading] svg { animation: ta-spin 900ms linear infinite; } .ta-report ::selection, .ta-drawer ::selection { background: var(--accent-dim); color: var(--text); } .ta-report code, .ta-drawer code { font-family: var(--font-mono); } /* The report and the details panel each own their scroll. */ .ta-workspace { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); } .ta-workspace[data-inspecting] { grid-template-columns: minmax(0, 1fr) 380px; } /* From 960px the details sit beside the list at the width the reader dragged them to, and never take so much that the list goes under 420px. */ @media (min-width: 960px) { .ta-workspace[data-inspecting] { grid-template-columns: minmax(0, 1fr) 8px min(var(--ta-details-w), calc(100% - 428px)); } .ta-workspace[data-inspecting] .ta-integrated-inspector { border-left: 0; } } .ta-workspace[data-resizing] { cursor: col-resize; user-select: none; } .ta-splitter { position: relative; cursor: col-resize; touch-action: none; } .ta-splitter::before { content: ""; position: absolute; inset-block: 0; left: 3px; width: 1px; background: var(--line); transition: background var(--dur-fast) var(--ease); } .ta-splitter:focus-visible::before, .ta-workspace[data-resizing] .ta-splitter::before { left: 2px; width: 3px; background: var(--accent); } @media (hover: hover) and (pointer: fine) { .ta-splitter:hover::before { left: 2px; width: 3px; background: var(--accent); } } .ta-body { min-height: 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; container: tool-report / inline-size; } .ta-body, .ta-drawer { scrollbar-color: var(--ctl-edge) transparent; } .ta-report-content { max-width: 1040px; margin: 0 auto; padding: 24px 40px 40px; } .ta-filters { display: flex; flex-wrap: wrap; gap: 10px; } .ta-filters .uh-range-btn, .ta-sorts .uh-range-btn { font-size: calc(12px + var(--ui-text-increase, 0px)); padding: 4px 12px; min-height: 28px; } /* How much: one sentence, not a row of tiles. */ .ta-summary { margin: 28px 0 0; max-width: 62ch; font-size: calc(16px + var(--ui-text-increase, 0px)); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; } .ta-summary strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .ta-summary .ta-bad { color: var(--err); } .ta-warning { margin: 12px 0 0; font-size: calc(12px + var(--ui-text-increase, 0px)); line-height: 1.6; color: var(--warn); } /* What is worth a look: findings in plain words, each opening its tool. */ .ta-highlights { margin-top: 32px; } .ta-highlights h3, .ta-tools-head h3 { margin: 0; font-size: calc(16px + var(--ui-text-increase, 0px)); font-weight: 600; } .ta-highlights ul { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); overflow: hidden; } .ta-highlights li { display: grid; } .ta-highlights li + li { border-top: 1px solid var(--line-soft); } .ta-highlight { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } .ta-highlight:active { transform: scale(var(--press)); } .ta-highlight[aria-expanded=true] { background: var(--ctl-fill); } @media (hover: hover) and (pointer: fine) { .ta-highlight:hover { background: var(--ctl-fill); } } .ta-highlight-glyph { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--ctl-fill); color: var(--muted); } .ta-highlight[data-kind=failing] .ta-highlight-glyph { color: var(--err); } .ta-highlight-text { display: grid; gap: 2px; padding-top: 4px; } .ta-highlight-text > span { font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 500; } .ta-highlight-text code { font-weight: 600; overflow-wrap: anywhere; } .ta-highlight-text small { font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--text-secondary); line-height: 1.5; font-variant-numeric: tabular-nums; } /* Which tools: one list, four orders. The sorted column is the bright one. */ .ta-tools { margin-top: 36px; } .ta-tools-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } .ta-count { margin-left: 6px; font: calc(12px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; font-weight: 400; color: var(--muted); } .ta-search { position: relative; display: flex; align-items: center; width: min(280px, 100%); color: var(--muted); } .ta-search svg { position: absolute; left: 12px; pointer-events: none; } .ta-search input { width: 100%; min-height: 32px; box-sizing: border-box; padding: 6px 10px 6px 32px; font: inherit; font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--text); background: var(--ctl-fill); border: 1px solid var(--ctl-edge); border-radius: var(--r-ctl); caret-color: var(--accent); } @media (hover: hover) and (pointer: fine) { .ta-search input:hover { border-color: var(--text); } } .ta-search input::placeholder { color: var(--text-secondary); opacity: 1; } .ta-sorts { margin-top: 12px; } .ta-list-head, .ta-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 60px 72px 84px 76px; gap: 12px; align-items: center; } .ta-list-head { margin-top: 16px; padding: 0 12px 8px; border-bottom: 1px solid var(--line); font-size: calc(11px + var(--ui-text-increase, 0px)); color: var(--muted); } .ta-list-head > span:not(:first-child) { text-align: right; } .ta-list-head[data-sort=calls] [data-col=calls], .ta-list-head[data-sort=time] [data-col=time], .ta-list-head[data-sort=slowest] [data-col=slowest], .ta-list-head[data-sort=failed] [data-col=failed] { color: var(--text); font-weight: 600; } .ta-list { list-style: none; margin: 0; padding: 0; } .ta-list li { display: grid; border-bottom: 1px solid var(--line-soft); } .ta-row { min-height: 54px; padding: 8px 12px; box-sizing: border-box; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } .ta-row:active { transform: scale(var(--press)); } .ta-row[data-selected] { background: var(--ctl-fill); } @media (hover: hover) and (pointer: fine) { .ta-row:hover { background: var(--ctl-fill); } } .ta-row-name { display: grid; gap: 2px; min-width: 0; } .ta-op { font: calc(13px + var(--ui-text-increase, 0px)) var(--font-sans); overflow-wrap: anywhere; } .ta-row[data-selected] .ta-op { font-weight: 600; } .ta-desc { font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ta-bar { display: block; height: 3px; margin-top: 5px; width: calc(var(--ta-share) * 100%); border-radius: var(--r-pill); background: var(--accent); } .ta-list[data-sort=failed] .ta-bar { background: var(--err); } .ta-cell { text-align: right; font: calc(12px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; } .ta-list[data-sort=calls] [data-col=calls], .ta-list[data-sort=time] [data-col=time], .ta-list[data-sort=slowest] [data-col=slowest], .ta-list[data-sort=failed] [data-col=failed] { color: var(--text); font-weight: 600; } .ta-cell[data-bad], .ta-list[data-sort=failed] .ta-cell[data-bad] { color: var(--err); } .ta-cell small { display: block; margin-top: 2px; font-size: calc(11px + var(--ui-text-increase, 0px)); font-weight: 400; color: var(--text-secondary); } .ta-zero { color: var(--muted); font-weight: 400; } .ta-unit { display: none; } /* THE TOOL ROW (V4's Tool activity): one line, 34 high. The name in the body face at 13/500 with the tool's plain-words description after it in the muted step, a neutral 150 x 6 bar on a --bg-soft track, then the calls in tabular muted and the time in tabular text. The deck's other columns (how long it usually takes, how many failed) stay, in the same tabular 12/16, on the same line. Skills keep their own row above. */ .ta-list:not(.sa-list) .ta-row { min-height: 34px; padding: 6px 12px; } .ta-list:not(.sa-list) .ta-row-name { display: flex; align-items: baseline; gap: 8px; } .ta-list:not(.sa-list) .ta-op { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 500; line-height: calc(20px + var(--ui-text-increase, 0px)); } .ta-list:not(.sa-list) .ta-desc { flex: 1 1 0; min-width: 0; color: var(--muted); line-height: calc(16px + var(--ui-text-increase, 0px)); } /* The failed column's share sits after its count on the same line, not under it. */ .ta-list:not(.sa-list) .ta-cell small { display: inline; margin: 0 0 0 4px; } .ta-track { display: block; height: 6px; border-radius: var(--r-pill); background: var(--bg-soft); overflow: hidden; } .ta-track > .ta-bar { height: 100%; margin: 0; border-radius: var(--r-pill); background: var(--muted); } .ta-list[data-sort=failed] .ta-track > .ta-bar { background: var(--err); } :where(.ta-list:not(.sa-list)) .ta-cell { line-height: calc(16px + var(--ui-text-increase, 0px)); } :where(.ta-list:not(.sa-list)) .ta-cell[data-col=calls] { color: var(--muted); } :where(.ta-list:not(.sa-list)) .ta-cell[data-col=time] { color: var(--text); } /* The header's control: V4's segmented control (24-high segments, 3 of padding, a --panel thumb), beside the ×. */ .ta-period { position: relative; display: inline-flex; gap: 2px; margin-inline-end: 4px; box-sizing: border-box; padding: 3px; border: 1px solid var(--line-soft); border-radius: var(--r-ctl); background: var(--bg-soft); } .ta-period-btn { position: relative; z-index: 1; min-height: var(--ctl-h-sm); padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--muted); font: inherit; font-size: calc(12px + var(--ui-text-increase, 0px)); font-weight: 500; line-height: calc(16px + var(--ui-text-increase, 0px)); white-space: nowrap; cursor: pointer; transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } .ta-period-btn[aria-pressed=true] { color: var(--text); } .ta-period-btn:active { transform: scale(var(--press)); } @media (hover: hover) and (pointer: fine) { .ta-period-btn:hover { color: var(--text); } } .ta-more { margin-top: 14px; } .ta-no-match { padding: 20px 12px; } /* How this is counted: the honest small print, one click away. */ .ta-explain { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--text-secondary); } .ta-explain summary { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; color: var(--muted); cursor: pointer; list-style: none; transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } @media (hover: hover) and (pointer: fine) { .ta-explain summary:hover { color: var(--text); } } .ta-explain summary:active { transform: scale(var(--press)); } .ta-explain summary::-webkit-details-marker { display: none; } .ta-explain summary::before { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); } .ta-explain[open] summary::before { transform: rotate(45deg); } .ta-explain ul { margin: 8px 0 0; padding-left: 18px; max-width: 75ch; line-height: 1.7; } .ta-note { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: calc(12px + var(--ui-text-increase, 0px)); } .ta-message { margin: 20px 0 0; color: var(--text-secondary); line-height: 1.6; } .ta-message p { margin: 0 0 12px; } .ta-loading { display: grid; gap: 10px; margin-top: 28px; max-width: 720px; } .ta-loading i { display: block; height: 14px; border-radius: var(--r-ctl); background: var(--ctl-fill); animation: ta-pulse 1200ms ease-in-out infinite alternate; } .ta-loading i:first-child { height: 24px; width: 70%; margin-bottom: 18px; } .ta-empty { margin-top: 36px; max-width: 60ch; } .ta-empty h3 { margin: 0; font-size: calc(16px + var(--ui-text-increase, 0px)); font-weight: 600; } .ta-empty p { margin: 8px 0 16px; color: var(--text-secondary); line-height: 1.6; } /* What one tool did. */ .ta-drawer-backdrop { position: fixed; inset: 0; z-index: 1001; color: var(--text); font-size: calc(13px + var(--ui-text-increase, 0px)); background: color-mix(in srgb, var(--bg) 40%, transparent); display: flex; align-items: end; } .ta-drawer { flex: 1; max-height: 88%; overflow-y: auto; box-sizing: border-box; background: var(--panel); border-top: 1px solid var(--ctl-edge); border-radius: var(--r-panel) var(--r-panel) 0 0; scrollbar-gutter: stable; } .ta-drawer:not([data-keyboard]) { transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); } @starting-style { .ta-drawer:not([data-keyboard]) { opacity: .6; transform: translateY(8px); } } .ta-integrated-inspector { width: auto; max-height: none; min-height: 0; border-top: 0; border-radius: 0; border-left: 1px solid var(--line); } .ta-inspector { display: grid; gap: 18px; padding: 0 20px 24px; min-width: 0; } .ta-inspector-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 18px 0 10px; background: var(--panel); } .ta-inspector-head h3 { margin: 4px 0 0; font: calc(16px + var(--ui-text-increase, 0px)) var(--font-sans); font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; } .ta-inspector-head p { margin: 4px 0 0; font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--muted); line-height: 1.5; } .ta-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--line); overflow: hidden; } .ta-facts > div { padding: 12px 14px; background: var(--panel); } .ta-facts dt { font-size: calc(11px + var(--ui-text-increase, 0px)); color: var(--muted); } .ta-facts dd { margin: 4px 0 0; font: calc(16px + var(--ui-text-increase, 0px)) var(--font-sans); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .ta-facts dd[data-bad] { color: var(--err); } .ta-facts small { margin-left: 8px; font-size: calc(12px + var(--ui-text-increase, 0px)); font-weight: 400; color: var(--muted); } .ta-inspector > .ta-facts + .ta-note { margin-top: -8px; } .ta-history h4, .ta-calls-head h4 { margin: 0; font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 600; } .ta-history-bars { display: flex; align-items: end; gap: clamp(1px, calc(24px / var(--ta-days)), 4px); height: 64px; margin-top: 12px; border-bottom: 1px solid var(--line); } .ta-history-bars > span { flex: 1; display: flex; align-items: end; height: 100%; min-width: 0; } .ta-history-bars i { display: block; width: 100%; height: calc(var(--ta-height) * 100%); min-height: 0; border-radius: var(--r-ctl) var(--r-ctl) 0 0; background: var(--muted); } .ta-history-bars > span[data-shown] i { background: var(--accent); } .ta-history-bars > span[data-outside] { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-soft) 3px 4px); } .ta-history-axis { display: flex; justify-content: space-between; margin-top: 4px; font: calc(11px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted); } .ta-history-day { margin-top: 6px; font-variant-numeric: tabular-nums; } .ta-calls-head { max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; } .ta-calls { list-style: none; max-width: 720px; margin: 8px 0 0; padding: 0; font-size: calc(12px + var(--ui-text-increase, 0px)); font-variant-numeric: tabular-nums; } .ta-calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 82px; gap: 10px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--line-soft); } .ta-call-when { min-width: 0; overflow-wrap: anywhere; } .ta-call-who { color: var(--muted); font-size: calc(11px + var(--ui-text-increase, 0px)); } .ta-call-took { font-family: var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; } .ta-call-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); } .ta-calls li[data-state=failed] .ta-call-state { color: var(--err); } .ta-calls-section > .ta-note { margin-top: 8px; } .ta-inspector-foot { padding-top: 4px; } /* Settings → General → Tool history. */ .ta-settings .ta-note { max-width: 70ch; } .ta-storage-row { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-block: 14px; } .ta-storage-row label { display: grid; gap: 6px; min-width: 130px; color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); } .ta-storage-size { margin-left: auto; font-size: calc(12px + var(--ui-text-increase, 0px)); font-variant-numeric: tabular-nums; text-align: right; color: var(--text); } .ta-storage-size small { display: block; color: var(--text-dim); font-size: calc(12px + var(--ui-text-increase, 0px)); margin-top: 6px; } .ta-storage-actions, .ta-confirm > div { display: flex; flex-wrap: wrap; gap: 8px; } .ta-confirm { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .ta-confirm p { font-size: calc(12px + var(--ui-text-increase, 0px)); line-height: 1.6; margin: 0 0 12px; } .ta-settings > .ta-note:last-child { margin-top: 12px; } @keyframes ta-spin { to { transform: rotate(360deg); } } @keyframes ta-pulse { to { opacity: .45; } } /* A narrow report — a phone, or a laptop with details open — reads each tool as a name over one line of values, which then carry their own words. */ @container tool-report (max-width: 640px) { .ta-report-content { padding-inline: 20px; } .ta-summary { font-size: calc(16px + var(--ui-text-increase, 0px)); margin-top: 22px; } .ta-list-head { display: none; } .ta-list { margin-top: 10px; border-top: 1px solid var(--line); } .ta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 8px; } .ta-row-name { flex-basis: 100%; } .ta-cell { text-align: left; } .ta-track { flex: 1 0 100%; } .ta-cell small { display: inline; margin-left: 4px; } .ta-unit { display: inline; } .ta-search { width: 100%; } } @container tool-report (max-width: 400px) { .ta-sorts { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-ctl); } .ta-sorts .uh-range-btn { border-radius: var(--r-tag); } } @media (min-width: 701px) and (max-width: 959px) { .ta-workspace[data-inspecting] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); } .ta-integrated-inspector { border-left: 0; border-top: 1px solid var(--ctl-edge); } } @media (max-width: 700px) { /* Narrow, the period control takes a row of its own under the title and the buttons. */ .ta-report-header { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; padding: 8px 12px; gap: 10px; } .ta-report-header h2 { margin-right: auto; } .ta-actions { display: contents; } .ta-period { order: 1; flex: 1 0 100%; margin-inline-end: 0; } .ta-period-btn { flex: 1 1 0; } .ta-workspace[data-inspecting] { grid-template-columns: minmax(0, 1fr); } .ta-report-content { padding: 16px 16px 40px; } .ta-inspector { padding-inline: 16px; } } @media (max-width: 380px) { .ta-freshness { display: none; } .ta-period-btn { padding-inline: 6px; } .ta-filters .uh-range-btn, .ta-sorts .uh-range-btn { padding-inline: 8px; } } @media (pointer: coarse) { .ta-actions .glyph-btn, .ta-inspector-head .glyph-btn, .ta-back { min-width: 44px; min-height: 44px; } .ta-filters .uh-range-btn, .ta-sorts .uh-range-btn, .ta-search input, .ta-period-btn { min-height: 40px; } .ta-row, .ta-highlight { min-height: 56px; } } @media (prefers-reduced-motion: reduce) { .ta-report, .ta-loading i, .ta-skel, .ta-actions [data-loading] svg { animation: none; } .ta-drawer:not([data-keyboard]) { transition: none; } .ta-row, .ta-highlight { transition: none; } .ta-row:active, .ta-highlight:active, .ta-back:active, .ta-explain summary:active, .ta-period-btn:active { transform: none; } } /* Opening details makes room in the report; resizing remains direct. */ /* grid-template-columns is a column's width: a named exception of V4's motion rules (rule 4), and it is direct while the reader resizes. */ @media (min-width: 960px) { .ta-workspace { grid-template-columns: minmax(0, 1fr) 0px 0px; transition: grid-template-columns var(--dur-base) var(--ease); } .ta-workspace[data-inspecting] { transition-duration: var(--dur-base); } .ta-workspace[data-resizing] { transition: none; } } .ta-integrated-inspector:not([data-keyboard]) { transition: none; } @media (prefers-reduced-motion: reduce) { .ta-workspace, .ta-workspace[data-inspecting] { transition: none; } } /* Skill activity (#2181): the modal's Skills view, opened from its own door on the stripe. Tools and Skills share the filters, the list and the details column; a skill's row answers how often and how lately, and its failures column exists only when something failed. */ .ta-view-panel { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; } .ta-view-panel > .ta-workspace { flex: 1; } .sa-namespace { color: var(--muted); font-weight: 400; } .sa-list-head, .sa-list .ta-row { grid-template-columns: minmax(0, 1fr) 72px 132px; } .sa-list-head[data-failures], .sa-list[data-failures] .ta-row { grid-template-columns: minmax(0, 1fr) 72px 132px 76px; } .sa-list-head[data-sort=uses] [data-col=uses], .sa-list-head[data-sort=recent] [data-col=recent], .sa-list[data-sort=uses] [data-col=uses], .sa-list[data-sort=recent] [data-col=recent] { color: var(--text); font-weight: 600; } /* A skill's bar is its uses split by who started them, in the ring's hues and order, a surface gap between the parts. */ .sa-list .ta-bar { display: flex; gap: 2px; background: none; } .sa-list .ta-bar i { flex: 1 1 0; min-width: 2px; border-radius: var(--r-pill); background: var(--tt-c); } .ta-facts > div[data-lane] dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 0; background: var(--tt-c); vertical-align: 0; } .sa-since, .ta-note.sa-typed-note { margin-top: 10px; } .ta-show-skills { justify-self: start; margin-top: -6px; } .sa-projects h4 { margin: 0; font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 600; } .sa-projects ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: calc(12px + var(--ui-text-increase, 0px)); font-variant-numeric: tabular-nums; } /* Each project's share of the uses drawn under it; what the named five leave out reads in plain words, not a folder's typeface. */ .sa-projects li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding-block: 6px; border-bottom: 1px solid var(--line-soft); } .sa-projects li > span:first-child { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); } .sa-projects li > span:nth-child(2) { color: var(--muted); white-space: nowrap; } .sa-projects li > b { grid-column: 1 / -1; width: calc(var(--sa-share) * 100%); height: 3px; border-radius: var(--r-pill); background: var(--muted); } .sa-projects li[data-rest] > span:first-child { font-family: inherit; color: var(--muted); } .sa-projects li[data-rest] > b { opacity: .5; } /* The latest uses under their day: a time, then who started it and where, the where following on — or onto a second line under the who when it runs out of room. */ .sa-use-date { margin: 14px 0 0; font-size: calc(11px + var(--ui-text-increase, 0px)); font-weight: 600; color: var(--muted); } .ta-calls-head + .sa-use-day .sa-use-date { margin-top: 8px; } .sa-use-day .ta-calls { margin-top: 4px; } .ta-calls.sa-uses li { grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; min-height: 32px; padding-block: 6px; box-sizing: border-box; } .sa-use-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; } .sa-use-who i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 0; background: var(--tt-c); } .sa-uses li[data-state=failed] .sa-use-who { color: var(--err); } .sa-use-project { min-width: 0; color: var(--muted); font-family: var(--font-mono); overflow-wrap: anywhere; } /* A skill's days: each bar its uses stacked by who started them, the agent at the base as in the list's bars, under a dashed line at the busiest day. */ .sa-days-bars { position: relative; margin-top: 26px; } .ta-history-bars.sa-days-bars > span { flex-direction: column-reverse; align-items: stretch; gap: 1px; } .ta-history-bars.sa-days-bars > span[data-shown] { background: color-mix(in srgb, var(--text) 7%, transparent); border-radius: var(--r-ctl) var(--r-ctl) 0 0; } .ta-history-bars.sa-days-bars > span i { flex: 0 1 auto; min-height: 2px; border-radius: 0; background: var(--tt-c); } .ta-history-bars.sa-days-bars i:last-child { border-radius: var(--r-ctl) var(--r-ctl) 0 0; } .sa-days-max { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 2px; border-bottom: 1px dashed var(--line); font: 400 calc(11px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted); pointer-events: none; } .sa-day-part i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 0; background: var(--tt-c); } /* While a new period is read the details keep their place: quiet bars stand where its numbers go. */ .ta-skel { display: inline-block; width: 3ch; max-width: 100%; height: 12px; border-radius: var(--r-tag); background: var(--ctl-fill); vertical-align: middle; animation: ta-pulse 1200ms ease-in-out infinite alternate; } .ta-facts dd .ta-skel { height: 18px; } .ta-skel-lines { display: grid; gap: 14px; margin-top: 12px; max-width: 720px; } .ta-skel-lines .ta-skel { display: block; height: 14px; } .ta-history-bars.ta-history-skeleton i { background: var(--ctl-fill); } .sa-session { min-width: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; cursor: pointer; overflow-wrap: anywhere; transition: text-decoration-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } @media (hover: hover) and (pointer: fine) { .sa-session:hover { text-decoration-color: currentColor; } } .sa-session:active { transform: scale(var(--press)); } @container tool-report (max-width: 640px) { .sa-list .ta-row, .sa-list[data-failures] .ta-row { display: flex; } } /* Three orders, so one row of three where the Tools strip of four goes 2×2. */ @container tool-report (max-width: 400px) { .ta-sorts.sa-sorts { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 520px) { .ta-views { margin-left: -8px; } } @media (pointer: coarse) { .ta-view { min-height: 44px; } .sa-session { min-height: 32px; } } @media (prefers-reduced-motion: reduce) { .ta-view, .sa-session { transition: none; } .ta-view:active, .sa-session:active { transform: none; } } /* The lanes' hues, one meaning each across both views and the details beside them (a phone's drawer sits outside the dialog): Claude purple and you cyan, this machine — or, among skills, Codex — lime. */ .ta-report, .ta-drawer-backdrop { --tt-claude: var(--usage-purple); --tt-machine: var(--usage-lime); --tt-codex: var(--usage-lime); --tt-you: var(--usage-cyan); } :is(.ta-report, .ta-drawer-backdrop) :is([data-lane=claude], [data-lane=agent]) { --tt-c: var(--tt-claude); } :is(.ta-report, .ta-drawer-backdrop) [data-lane=machine] { --tt-c: var(--tt-machine); } :is(.ta-report, .ta-drawer-backdrop) [data-lane=detected] { --tt-c: var(--tt-codex); } :is(.ta-report, .ta-drawer-backdrop) :is([data-lane=you], [data-lane=typed]) { --tt-c: var(--tt-you); } /* At a glance: what is worth a look beside where the Claude Code turns' time went, or beside who starts the skills, three to two, and a lane's detail opening across both beneath. One column when the report is narrow, or when only one of the two has anything to say. */ .ta-glance { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 24px; margin-top: 32px; } .ta-glance[data-single] { grid-template-columns: minmax(0, 1fr); } .ta-glance[data-single] > .tt { max-width: 560px; } .ta-glance > .ta-highlights, .ta-glance > .tt { display: flex; flex-direction: column; min-width: 0; margin-top: 0; } .ta-glance > .ta-highlights ul { flex: 1; } .ta-glance > .tt-fold { grid-column: 1 / -1; } /* Where the time went: a ring of three lanes — Claude, this machine, you — with the total at its centre, and a legend saying each lane's share and what it mostly was. Hues from the usage palette, checked for colour-blind separation; the gaps between the arcs and the named legend carry identity as well as the colour. */ .tt { container: tt / inline-size; } .tt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; } .tt-head h3 { margin: 0; font-size: calc(16px + var(--ui-text-increase, 0px)); font-weight: 600; } .tt-scope { font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--muted); font-variant-numeric: tabular-nums; } .tt-card { flex: 1; display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 14px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); } .tt-empty { margin: 0; max-width: 62ch; } .tt-donut { position: relative; flex: none; width: 112px; height: 112px; } .tt-donut svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); } .tt-arc { fill: none; stroke: var(--tt-c); stroke-width: 14; cursor: pointer; transition: opacity var(--dur-base) var(--ease), stroke-width var(--dur-base) var(--ease); animation: tt-sweep 640ms var(--ease) both; } .tt[data-focus] .tt-arc:not([data-on]) { opacity: .3; } .tt-arc[data-on] { stroke-width: 17; } .tt-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; text-align: center; pointer-events: none; } .tt-center strong { font: 600 calc(16px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text); } .tt-center span { max-width: 72px; font-size: calc(11px + var(--ui-text-increase, 0px)); color: var(--muted); line-height: 1.3; } .tt-lanes { flex: 1; min-width: 0; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; } .tt-lanes li { display: grid; } /* The legend's time and fact take its secondary ink: a lane is raised on --ctl-fill while open and under the pointer, where --muted falls short (#1789). */ .tt-lane { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 10px; align-items: center; gap: 1px 8px; width: 100%; min-height: 44px; padding: 5px 8px; box-sizing: border-box; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text-secondary); font: inherit; font-size: calc(13px + var(--ui-text-increase, 0px)); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } .tt-lane i { width: 10px; height: 10px; border-radius: var(--r-ctl); background: var(--tt-c); } .tt-lane-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; } .tt-lane strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; } .tt-lane-time { font: calc(12px + var(--ui-text-increase, 0px)) var(--font-sans); font-variant-numeric: tabular-nums; } .tt-lane-fact { grid-column: 2 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12px + var(--ui-text-increase, 0px)); } .tt-lane[aria-expanded=true], .tt-lane[aria-pressed=true] { background: var(--ctl-fill); } @media (hover: hover) and (pointer: fine) { .tt-lane:hover { background: var(--ctl-fill); } } .tt-lane:active { transform: scale(var(--press)); } /* Skills' lanes filter the list: the funnel is quiet until the lane is pressed, and a lane with nothing counted is only read. */ .tt-lane[aria-pressed=false] .tt-caret { opacity: .5; } .tt-lane:disabled { cursor: default; } @media (hover: hover) and (pointer: fine) { .tt-lane:disabled:hover { background: transparent; } } .tt-lane:disabled:active { transform: none; } .tt-caret { flex: none; transition: transform var(--dur-exit) var(--ease); } .tt-lane[aria-expanded=true] .tt-caret { transform: rotate(180deg); transition-duration: var(--dur-base); } /* A narrow card puts the ring above its legend, so the facts keep their words. */ @container tt (max-width: 340px) { .tt-card { flex-direction: column; align-items: stretch; } .tt-donut { align-self: center; } } /* A lane's level folds open beneath the row, named by the lane it came from. */ /* grid-template-rows on a row: a named exception of V4's motion rules (rule 4). */ /* Open: the rows, the opacity and the caret over Base; fold: the same path over the shorter Exit. */ .tt-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--dur-exit) var(--ease), opacity var(--dur-exit) var(--ease); } .tt-fold[data-open] { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); } .tt-level { min-height: 0; overflow: hidden; } .tt-level-body { padding: 24px 0 2px; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); } @starting-style { .tt-level-body { opacity: 0; transform: translateY(-4px); } } .tt-level-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .tt-level-head i { width: 10px; height: 10px; border-radius: var(--r-ctl); background: var(--tt-c); align-self: center; } .tt-level-head strong { font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 600; } .tt-level-head span { font-size: calc(12px + var(--ui-text-increase, 0px)); color: var(--muted); font-variant-numeric: tabular-nums; } .tt-hint { margin-top: 6px; max-width: 75ch; } .tt-parts { list-style: none; margin: 10px 0 0; padding: 0; max-width: 820px; } .tt-parts li { display: grid; border-bottom: 1px solid var(--line-soft); } .tt-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; min-height: 46px; padding: 6px 10px; box-sizing: border-box; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; text-align: left; } button.tt-part { cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); } button.tt-part:active { transform: scale(var(--press)); } /* A part that is not a command, and the row that opens the rest: secondary ink by their bed, raised on --ctl-fill under the pointer like the rows around them. */ .tt-part[data-static] { color: var(--text-secondary); } .tt-part[data-selected] { background: var(--ctl-fill); } @media (hover: hover) and (pointer: fine) { .tt-parts li:hover .tt-part { background: var(--ctl-fill); } } .tt-part[data-selected] .ta-op { font-weight: 600; } .tt-part-name { display: grid; gap: 2px; min-width: 0; font-size: calc(13px + var(--ui-text-increase, 0px)); } .tt-part-bar { display: block; height: 3px; margin-top: 5px; width: calc(var(--tt-share) * 100%); border-radius: var(--r-pill); background: var(--tt-c); transform-origin: left; transition: transform var(--dur-slow) var(--ease); } @starting-style { .tt-part-bar { transform: scaleX(0); } } .tt-part[data-static] .tt-part-bar, .tt-part[data-rest] .tt-part-bar { opacity: .45; } .tt-part[data-rest] { color: var(--text-secondary); } .tt-part-name .tt-caret { display: inline-block; margin-left: 6px; vertical-align: -1px; } .tt-tip { margin-top: 10px; } /* Claude's level: how quickly it usually answers, and the days it did not. */ .tt-facts { margin-top: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; } .tt-facts dd { font-size: calc(16px + var(--ui-text-increase, 0px)); } .tt-days { margin-top: 16px; max-width: 820px; } .tt-days-bars { position: relative; display: flex; align-items: end; gap: clamp(1px, calc(24px / var(--ta-days)), 4px); height: 56px; border-bottom: 1px solid var(--line); } .tt-days-bars > span { flex: 1; display: flex; align-items: end; height: 100%; min-width: 0; } .tt-days-bars i { display: block; width: 100%; height: calc(var(--ta-height) * 100%); border-radius: var(--r-ctl) var(--r-ctl) 0 0; background: var(--muted); opacity: .6; transform-origin: bottom; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-slow) var(--ease); } @starting-style { .tt-days-bars i { transform: scaleY(0); } } .tt-days-bars > span[data-slow] i { background: var(--tt-claude); opacity: 1; } .tt-days-bars > span[data-shown] i { opacity: 1; } .tt-usual { position: absolute; left: 0; right: 0; bottom: calc(var(--tt-usual) * 100%); border-top: 1px dashed var(--text-secondary); pointer-events: none; } .tt-days-note { margin-top: 6px; font-variant-numeric: tabular-nums; } .tt-stops { margin-top: 10px; } @keyframes tt-sweep { from { stroke-dasharray: 0 100; } } /* Beside the details panel the report narrows: halves keep the ring beside its legend. */ @container tool-report (max-width: 900px) { .ta-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @container tool-report (max-width: 720px) { .ta-glance { grid-template-columns: minmax(0, 1fr); } .ta-glance > .ta-highlights + .tt { margin-top: 28px; } } @container tool-report (max-width: 640px) { .tt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (pointer: coarse) { .tt-lane { min-height: 48px; } .tt-part { min-height: 52px; } } @media (prefers-reduced-motion: reduce) { .tt-fold, .tt-arc, .tt-lane, .tt-caret, button.tt-part, .tt-days-bars i, .tt-part-bar { transition: none; } /* The fold opens at once; what is inside it fades in. */ .tt-level-body { transition: opacity var(--dur-fast) var(--ease); } @starting-style { .tt-level-body { transform: none; } } .tt-arc { animation: none; } .tt-lane:active, button.tt-part:active { transform: none; } }