/* Backbar: app-only pieces. Kit tokens and colour slots only (F:\Claude\App Kit\DESIGN.md). */

/* Products: a table on wider screens, a tappable list on a phone. */
.app-narrow { display: none; }
@media screen and (max-width: 767.98px) {
  .app-wide { display: none; }
  .app-narrow { display: block; }
}

.app-list { list-style: none; margin: 0; padding: 0; }
.app-list li + li { border-top: var(--line-width) solid var(--c-line); }
.app-row-link { display: block; color: inherit; text-decoration: none; }
.app-row-link:hover { background: var(--c-hover); }
.app-row-link:focus-visible { outline: var(--focus-width) solid var(--c-focus); outline-offset: calc(-1 * var(--focus-width)); }

.app-tight { gap: 0; }

/* A list inside a drawer, boxed like a panel. */
.app-boxed { border: var(--line-width) solid var(--c-line); border-radius: var(--radius-control); background: var(--c-panel); }

/* Formula editor: one box per bowl. */
.app-bowl { border: var(--line-width) solid var(--c-line); border-radius: var(--radius-panel); background: var(--c-panel); padding: var(--space-3); margin: 0 0 var(--space-3); min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.app-bowl-title { padding: 0; font-weight: var(--weight-strong); }
.app-bowl [hidden] { display: none; }
.app-total { border-top: var(--line-width) solid var(--c-line); padding-top: var(--space-3); }

/* Mix screen: big targets for gloved hands. */
.app-row-button { width: 100%; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.app-bowls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.app-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-block: var(--space-2); border-bottom: var(--line-width) solid var(--c-line); }
.app-line:last-of-type { border-bottom: 0; }
.app-line-name { flex: 1 1 calc(var(--control-height) * 5); min-width: 0; display: flex; flex-direction: column; }
.app-stepper { display: flex; align-items: center; gap: var(--space-2); }
.app-step { min-width: calc(var(--control-height) * 1.6); min-height: calc(var(--control-height) * 1.4); justify-content: center; font-size: var(--text-title); }
.app-step-value { min-width: calc(var(--control-height) * 2); text-align: center; font-size: var(--text-title); font-weight: var(--weight-strong); }
.app-dev { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.app-mixbar { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2) var(--space-3); margin-top: var(--space-3); background: var(--c-panel); border: var(--line-width) solid var(--c-line); border-radius: var(--radius-panel); box-shadow: var(--shadow-pop); }
.app-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; }
.app-figs dt { font-size: var(--text-small); color: var(--c-muted); }
.app-figs dd { margin: 0; font-size: var(--text-title); font-weight: var(--weight-strong); }
.app-figs-note { margin: 0; font-size: var(--text-small); }
.app-mixbar-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.app-check { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--c-hover); }
.app-check[data-tone="warning"] { background: var(--c-warning-soft); color: var(--c-warning); }
.app-check[data-tone="success"] { background: var(--c-success-soft); color: var(--c-success); }
.app-check:empty { display: none; }
