.ui-icon-button { width: var(--control-size-icon); height: var(--control-size-icon); margin: 0; padding: 0; flex: none; border: 0; border-radius: calc(var(--radius-icon) * var(--corner-smoothing)); corner-shape: squircle; outline: none; background: transparent; color: var(--text-secondary); display: inline-grid; place-items: center; line-height: 0; cursor: default; transition: color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast);} .ui-icon-button[data-size="compact"] { width: var(--control-size-icon-compact); height: var(--control-size-icon-compact);} .ui-icon-button > svg { width: 16px; height: 16px; pointer-events: none;} .ui-icon-button[data-size="compact"] > svg { width: 13px; height: 13px;} .ui-icon-button:hover:not(:disabled),.ui-icon-button[data-state="open"] { background: var(--control-hover-surface); color: var(--text-primary);} .ui-icon-button:active:not(:disabled) { background: var(--control-pressed-surface);} .ui-icon-button[data-tone="danger"]:hover:not(:disabled) { color: var(--status-danger);} .ui-icon-button[data-tone="primary"] { background: var(--text-primary); color: var(--surface-app);} .ui-icon-button[data-tone="primary"]:hover:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 88%, var(--surface-app)); color: var(--surface-app);} .ui-button { -webkit-appearance: none; appearance: none; min-width: 0; height: var(--control-height-default); margin: 0; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: calc(var(--radius-control) * var(--corner-smoothing)); corner-shape: squircle; outline: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--text-primary); font-size: var(--type-body-compact-size); line-height: var(--type-body-compact-line-height); font-weight: var(--type-body-compact-weight); white-space: nowrap; cursor: pointer; transition: color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast), scale var(--motion-fast);} .ui-button--compact { height: var(--control-height-compact); padding-inline: var(--space-5); font-size: var(--type-caption-size);} .ui-button--primary { background: var(--text-primary); color: var(--surface-app);} .ui-button--secondary { border-color: var(--border-strong); background: var(--surface-panel-raised);} .ui-button--ghost { background: transparent; color: var(--text-secondary);} /* The lead action of a surface that is not a dialog's answer (a toast's Undo, a popover's Done, a card's Accept): it leads its row without the dark slab the primary fill paints, which is kept for the one answer of a dialog. */.ui-button--tinted { background: var(--control-tinted-surface); color: var(--text-primary);} /* The destructive answer to a confirmation: tinted rather than filled, so it leads the row in either theme without a red slab in the dark one. */.ui-button--danger { background: var(--status-danger-soft); color: var(--status-danger);} .ui-button--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 88%, var(--surface-app));} .ui-button--secondary:hover:not(:disabled),.ui-button--ghost:hover:not(:disabled) { background: var(--control-hover-surface); color: var(--text-primary);} .ui-button--tinted:hover:not(:disabled) { background: var(--control-tinted-hover-surface);} .ui-button--danger:hover:not(:disabled) { background: var(--status-danger-soft-hover);} /* Pressed is one step deeper than hover in every variant, and a text button * gives under the pointer. Icon buttons keep still: dense toolbar icons would * move less than a pixel and pay motion cost on every click. */.ui-button:active:not(:disabled, [aria-disabled="true"]) { scale: 0.97;} .ui-button--primary:active:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 82%, var(--surface-app));} .ui-button--secondary:active:not(:disabled),.ui-button--ghost:active:not(:disabled) { background: var(--control-pressed-surface); color: var(--text-primary);} .ui-button--tinted:active:not(:disabled) { background: var(--control-tinted-pressed-surface);} .ui-button--danger:active:not(:disabled) { background: var(--status-danger-soft-pressed);} /* Shared visual language for dense selectors. Interaction semantics stay with the caller, so tabs, radio-like filters, and toggle buttons can share one geometry and state treatment without sharing behavior. */.ui-compact-selectable { --sliding-tab-border: 1px solid var(--border-subtle); --sliding-tab-color: var(--text-secondary); --sliding-tab-hover-color: var(--text-primary); --sliding-tab-active-color: var(--control-active); height: var(--control-height-compact); padding: 0 var(--pad-inline-control); border: var(--sliding-tab-border); border-radius: calc(var(--radius-icon) * var(--corner-smoothing)); corner-shape: squircle; background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--type-micro-size); line-height: var(--type-micro-line-height); font-weight: var(--weight-semibold); transition: color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast);} .ui-compact-selectable:hover:not(:disabled):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]):not([aria-checked="true"]) { border-color: var(--border-strong); background: var(--control-hover-surface); color: var(--text-primary);} .ui-compact-selectable:is(.active, [aria-selected="true"], [aria-pressed="true"], [aria-checked="true"]) { border-color: var(--control-active-border); background: var(--control-active-soft); color: var(--control-active);} /* A switch field is one instance of the settings row, so both share the same metrics rather than drifting apart. */.ui-switch-field,.ui-settings-row { min-width: 0; padding: var(--space-2) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);} .ui-switch-field-copy,.ui-settings-row-copy { min-width: 0;} .ui-switch-field-label,.ui-settings-row-label { display: block; color: var(--text-primary); font-size: var(--type-body-compact-size); line-height: var(--type-body-compact-line-height); font-weight: var(--type-body-compact-weight);} .ui-switch-field-description,.ui-settings-row-description { margin: var(--space-1) 0 0; color: var(--text-tertiary); font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight);} .ui-settings-row-control { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4);} /* One control per row, so the shared width keeps every control on a tab flush against the same right edge. */.ui-settings-row-control > :only-child:where( [data-slot="select-trigger"], [data-slot="input"], [data-slot="textarea"], [data-slot="button"]) { width: var(--settings-control-width); min-width: var(--settings-control-width);} /* A group keeps the same distance from whatever precedes it on the page, another group or a page-level notice alike. Only the page header sets its own gap below, so every pane's first content starts at one offset. */* + .ui-settings-group { margin-top: var(--settings-group-gap);} .ui-settings-section-header + .ui-settings-group { margin-top: 0;} /* The heading sits over its group's card; the card, not a rule under the heading, says which rows belong together. */.ui-settings-group-title { margin: 0 0 var(--space-4); color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--weight-semibold);} /* A group's rows share one card: a hairline edge, a hairline between rows, and one height for every single-line row (a 32px control and its inset), so the dividers fall at a single rhythm down the page. What sits among the rows without being one (a key's form, a notice) takes the same inset. A group holding no row at all is laid out by its feature. */.ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) { border: 1px solid var(--border-subtle); border-radius: calc(var(--settings-card-radius) * var(--corner-smoothing)); corner-shape: squircle; background: var(--settings-card-surface); overflow: clip;} .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > * { margin: 0; padding: var(--space-6) var(--settings-card-padding-inline);} /* Drawn inside the row rather than as a border, so a divider never adds to the height of the row under it. */.ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > * + * { box-shadow: inset 0 1px 0 var(--border-subtle);} .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > :is(.ui-settings-row, .ui-switch-field) { min-height: var(--settings-row-min-height); padding-block: var(--space-5);} .ui-row { min-height: var(--row-height-default);} .ui-row--store { min-height: var(--row-height-comfortable);} .ui-panel-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);} .ui-panel-header-title { min-width: 0; display: flex; align-items: center; gap: var(--space-4); color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--type-subtitle-weight);} .ui-panel-header-title > svg { flex: none;} .ui-panel-header-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} .ui-panel-header-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: var(--space-2);} .ui-settings-section-header { min-width: 0; margin: 0 0 var(--space-12); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6);} .ui-settings-section-header-copy { min-width: 0;} .ui-settings-section-header-title { margin: 0; color: var(--text-primary); font-family: var(--type-title-font); font-size: var(--type-title-size); line-height: var(--type-title-line-height); font-weight: var(--type-title-weight);} .ui-settings-section-header-description { max-width: 54ch; margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight);} /* Held to the title's line box, so a header action (taller than the title line) centres on the title without pushing the page's content down. */.ui-settings-section-header-actions { height: var(--type-title-line-height); flex: none; display: flex; align-items: center; gap: var(--space-2);} .ui-empty-state { min-width: 0; padding: var(--space-8); color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center;} /* A filling state grows into the rest of a flex column and centres there, never shrinking below its content, so a column too short for it scrolls. A ScrollArea stretches its content to the viewport for one (scroll-area.css), and a drawer becomes that column (surfaces.css). */.ui-empty-state[data-fill] { flex: 1 0 auto; justify-content: center;} .ui-empty-state[data-density="compact"] { padding: var(--space-3) 0; gap: var(--space-2);} .ui-empty-state[data-align="start"] { align-items: flex-start; text-align: left;} .ui-empty-state-icon { color: var(--text-tertiary); line-height: 0;} .ui-empty-state-title { margin: 0; color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--type-subtitle-weight);} .ui-empty-state-description { max-width: 52ch; margin: 0; color: inherit; font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight);} /* Centred lines balance, so a wrap never leaves one word under the rest. */.ui-empty-state[data-align="center"] .ui-empty-state-description { text-wrap: balance;} .ui-empty-state-description code { padding: 0 var(--space-1); border-radius: var(--radius-compact); background: var(--control-active-soft); color: var(--text-secondary); font-family: var(--editor-font); font-size: .95em; white-space: nowrap;} .ui-empty-state-actions { margin-top: var(--space-2); display: flex; align-items: center; justify-content: center; gap: var(--space-3);} .ui-checkbox { appearance: none; width: var(--control-size-checkbox); height: var(--control-size-checkbox); min-width: var(--control-size-checkbox); margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-compact); outline: none; background: var(--surface-app); color: var(--surface-app); display: inline-grid; place-content: center; flex: none; cursor: pointer; transition: border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast);} .ui-checkbox:hover:not(:disabled) { border-color: var(--control-hover-border);} .ui-checkbox:checked,Lines 1–500 of 789. Load more
.ui-icon-button { width: var(--control-size-icon); height: var(--control-size-icon); margin: 0; padding: 0; flex: none; border: 0; border-radius: calc(var(--radius-icon) * var(--corner-smoothing)); corner-shape: squircle; outline: none; background: transparent; color: var(--text-secondary); display: inline-grid; place-items: center; line-height: 0; cursor: default; transition: color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast); } .ui-icon-button[data-size="compact"] { width: var(--control-size-icon-compact); height: var(--control-size-icon-compact); } .ui-icon-button > svg { width: 16px; height: 16px; pointer-events: none; } .ui-icon-button[data-size="compact"] > svg { width: 13px; height: 13px; } .ui-icon-button:hover:not(:disabled), .ui-icon-button[data-state="open"] { background: var(--control-hover-surface); color: var(--text-primary); } .ui-icon-button:active:not(:disabled) { background: var(--control-pressed-surface); } .ui-icon-button[data-tone="danger"]:hover:not(:disabled) { color: var(--status-danger); } .ui-icon-button[data-tone="primary"] { background: var(--text-primary); color: var(--surface-app); } .ui-icon-button[data-tone="primary"]:hover:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 88%, var(--surface-app)); color: var(--surface-app); } .ui-button { -webkit-appearance: none; appearance: none; min-width: 0; height: var(--control-height-default); margin: 0; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: calc(var(--radius-control) * var(--corner-smoothing)); corner-shape: squircle; outline: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--text-primary); font-size: var(--type-body-compact-size); line-height: var(--type-body-compact-line-height); font-weight: var(--type-body-compact-weight); white-space: nowrap; cursor: pointer; transition: color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast), scale var(--motion-fast); } .ui-button--compact { height: var(--control-height-compact); padding-inline: var(--space-5); font-size: var(--type-caption-size); } .ui-button--primary { background: var(--text-primary); color: var(--surface-app); } .ui-button--secondary { border-color: var(--border-strong); background: var(--surface-panel-raised); } .ui-button--ghost { background: transparent; color: var(--text-secondary); } /* The lead action of a surface that is not a dialog's answer (a toast's Undo, a popover's Done, a card's Accept): it leads its row without the dark slab the primary fill paints, which is kept for the one answer of a dialog. */ .ui-button--tinted { background: var(--control-tinted-surface); color: var(--text-primary); } /* The destructive answer to a confirmation: tinted rather than filled, so it leads the row in either theme without a red slab in the dark one. */ .ui-button--danger { background: var(--status-danger-soft); color: var(--status-danger); } .ui-button--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 88%, var(--surface-app)); } .ui-button--secondary:hover:not(:disabled), .ui-button--ghost:hover:not(:disabled) { background: var(--control-hover-surface); color: var(--text-primary); } .ui-button--tinted:hover:not(:disabled) { background: var(--control-tinted-hover-surface); } .ui-button--danger:hover:not(:disabled) { background: var(--status-danger-soft-hover); } /* Pressed is one step deeper than hover in every variant, and a text button * gives under the pointer. Icon buttons keep still: dense toolbar icons would * move less than a pixel and pay motion cost on every click. */ .ui-button:active:not(:disabled, [aria-disabled="true"]) { scale: 0.97; } .ui-button--primary:active:not(:disabled) { background: color-mix(in srgb, var(--text-primary) 82%, var(--surface-app)); } .ui-button--secondary:active:not(:disabled), .ui-button--ghost:active:not(:disabled) { background: var(--control-pressed-surface); color: var(--text-primary); } .ui-button--tinted:active:not(:disabled) { background: var(--control-tinted-pressed-surface); } .ui-button--danger:active:not(:disabled) { background: var(--status-danger-soft-pressed); } /* Shared visual language for dense selectors. Interaction semantics stay with the caller, so tabs, radio-like filters, and toggle buttons can share one geometry and state treatment without sharing behavior. */ .ui-compact-selectable { --sliding-tab-border: 1px solid var(--border-subtle); --sliding-tab-color: var(--text-secondary); --sliding-tab-hover-color: var(--text-primary); --sliding-tab-active-color: var(--control-active); height: var(--control-height-compact); padding: 0 var(--pad-inline-control); border: var(--sliding-tab-border); border-radius: calc(var(--radius-icon) * var(--corner-smoothing)); corner-shape: squircle; background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--type-micro-size); line-height: var(--type-micro-line-height); font-weight: var(--weight-semibold); transition: color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast); } .ui-compact-selectable:hover:not(:disabled):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]):not([aria-checked="true"]) { border-color: var(--border-strong); background: var(--control-hover-surface); color: var(--text-primary); } .ui-compact-selectable:is(.active, [aria-selected="true"], [aria-pressed="true"], [aria-checked="true"]) { border-color: var(--control-active-border); background: var(--control-active-soft); color: var(--control-active); } /* A switch field is one instance of the settings row, so both share the same metrics rather than drifting apart. */ .ui-switch-field, .ui-settings-row { min-width: 0; padding: var(--space-2) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); } .ui-switch-field-copy, .ui-settings-row-copy { min-width: 0; } .ui-switch-field-label, .ui-settings-row-label { display: block; color: var(--text-primary); font-size: var(--type-body-compact-size); line-height: var(--type-body-compact-line-height); font-weight: var(--type-body-compact-weight); } .ui-switch-field-description, .ui-settings-row-description { margin: var(--space-1) 0 0; color: var(--text-tertiary); font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight); } .ui-settings-row-control { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); } /* One control per row, so the shared width keeps every control on a tab flush against the same right edge. */ .ui-settings-row-control > :only-child:where( [data-slot="select-trigger"], [data-slot="input"], [data-slot="textarea"], [data-slot="button"] ) { width: var(--settings-control-width); min-width: var(--settings-control-width); } /* A group keeps the same distance from whatever precedes it on the page, another group or a page-level notice alike. Only the page header sets its own gap below, so every pane's first content starts at one offset. */ * + .ui-settings-group { margin-top: var(--settings-group-gap); } .ui-settings-section-header + .ui-settings-group { margin-top: 0; } /* The heading sits over its group's card; the card, not a rule under the heading, says which rows belong together. */ .ui-settings-group-title { margin: 0 0 var(--space-4); color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--weight-semibold); } /* A group's rows share one card: a hairline edge, a hairline between rows, and one height for every single-line row (a 32px control and its inset), so the dividers fall at a single rhythm down the page. What sits among the rows without being one (a key's form, a notice) takes the same inset. A group holding no row at all is laid out by its feature. */ .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) { border: 1px solid var(--border-subtle); border-radius: calc(var(--settings-card-radius) * var(--corner-smoothing)); corner-shape: squircle; background: var(--settings-card-surface); overflow: clip; } .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > * { margin: 0; padding: var(--space-6) var(--settings-card-padding-inline); } /* Drawn inside the row rather than as a border, so a divider never adds to the height of the row under it. */ .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > * + * { box-shadow: inset 0 1px 0 var(--border-subtle); } .ui-settings-group-body:has(> :is(.ui-settings-row, .ui-switch-field)) > :is(.ui-settings-row, .ui-switch-field) { min-height: var(--settings-row-min-height); padding-block: var(--space-5); } .ui-row { min-height: var(--row-height-default); } .ui-row--store { min-height: var(--row-height-comfortable); } .ui-panel-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); } .ui-panel-header-title { min-width: 0; display: flex; align-items: center; gap: var(--space-4); color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--type-subtitle-weight); } .ui-panel-header-title > svg { flex: none; } .ui-panel-header-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ui-panel-header-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: var(--space-2); } .ui-settings-section-header { min-width: 0; margin: 0 0 var(--space-12); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6); } .ui-settings-section-header-copy { min-width: 0; } .ui-settings-section-header-title { margin: 0; color: var(--text-primary); font-family: var(--type-title-font); font-size: var(--type-title-size); line-height: var(--type-title-line-height); font-weight: var(--type-title-weight); } .ui-settings-section-header-description { max-width: 54ch; margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight); } /* Held to the title's line box, so a header action (taller than the title line) centres on the title without pushing the page's content down. */ .ui-settings-section-header-actions { height: var(--type-title-line-height); flex: none; display: flex; align-items: center; gap: var(--space-2); } .ui-empty-state { min-width: 0; padding: var(--space-8); color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; } /* A filling state grows into the rest of a flex column and centres there, never shrinking below its content, so a column too short for it scrolls. A ScrollArea stretches its content to the viewport for one (scroll-area.css), and a drawer becomes that column (surfaces.css). */ .ui-empty-state[data-fill] { flex: 1 0 auto; justify-content: center; } .ui-empty-state[data-density="compact"] { padding: var(--space-3) 0; gap: var(--space-2); } .ui-empty-state[data-align="start"] { align-items: flex-start; text-align: left; } .ui-empty-state-icon { color: var(--text-tertiary); line-height: 0; } .ui-empty-state-title { margin: 0; color: var(--text-primary); font-size: var(--type-subtitle-size); line-height: var(--type-subtitle-line-height); font-weight: var(--type-subtitle-weight); } .ui-empty-state-description { max-width: 52ch; margin: 0; color: inherit; font-size: var(--type-caption-size); line-height: var(--type-caption-line-height); font-weight: var(--type-caption-weight); } /* Centred lines balance, so a wrap never leaves one word under the rest. */ .ui-empty-state[data-align="center"] .ui-empty-state-description { text-wrap: balance; } .ui-empty-state-description code { padding: 0 var(--space-1); border-radius: var(--radius-compact); background: var(--control-active-soft); color: var(--text-secondary); font-family: var(--editor-font); font-size: .95em; white-space: nowrap; } .ui-empty-state-actions { margin-top: var(--space-2); display: flex; align-items: center; justify-content: center; gap: var(--space-3); } .ui-checkbox { appearance: none; width: var(--control-size-checkbox); height: var(--control-size-checkbox); min-width: var(--control-size-checkbox); margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-compact); outline: none; background: var(--surface-app); color: var(--surface-app); display: inline-grid; place-content: center; flex: none; cursor: pointer; transition: border-color var(--motion-fast), background-color var(--motion-fast), opacity var(--motion-fast); } .ui-checkbox:hover:not(:disabled) { border-color: var(--control-hover-border); } .ui-checkbox:checked,