.dock-page:has(> .dock-navbar[data-phase='tablet']) > .screen-body { padding: 12px 18px; }
.workspace-panel.sample-app { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; height: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; color: var(--ink); font-size: 13px; line-height: 1.4; container-type: inline-size; }
.sample-app[hidden], .sample-app [hidden] { display: none !important; }
.sample-app * { box-sizing: border-box; }
.sample-app h2, .sample-app h3, .sample-app p { margin: 0; }
.sample-app h2 { font-size: 20px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; margin: 2px 0 3px; }
.sample-app h3 { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.sample-app button, .sample-app input { font: inherit; }
.sample-app button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--panel); color: var(--ink); cursor: pointer; }
.sample-app button:hover:enabled { background: var(--soft); border-color: var(--blue); }
.sample-app button:focus-visible, .sample-app input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sample-app button:disabled { opacity: .6; cursor: default; }
.sample-app .sa-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; flex-shrink: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sample-app .sa-header p { font-size: 11px; }
.sample-app .sa-header p, .sample-app small { color: var(--muted); }
.sample-app .sa-eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sample-app .sa-badge { display: inline-flex; align-items: center; padding: 4px 8px; background: var(--soft); border-radius: 5px; color: var(--blue); font-size: 10px; white-space: nowrap; }
.sample-app .sa-pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr); gap: 16px; min-height: 0; flex: 1; }
.sample-app .sa-catalog { min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 1px 3px 3px; }
.sample-app .sa-search { display: grid; gap: 5px; min-width: 0; }
.sample-app .sa-search > span { font-size: 11px; color: var(--muted); }
.sample-app .sa-search input { min-height: 44px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); padding: 8px 12px; }
.sample-app .sa-search input::placeholder { color: var(--muted); }
.sample-app .sa-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.sample-app .sa-catalog > .sa-tabs { margin: 8px 0; }
.sample-app .sa-tabs button { padding: 7px 12px; font-size: 12px; }
.sample-app .sa-tabs button[aria-pressed='true'] { background: var(--soft); color: var(--blue); border-color: var(--blue); }
.sample-app .sa-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sample-app button.sa-product { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; text-align: left; min-height: 116px; }
.sample-app .sa-product-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--soft); color: var(--blue); border-radius: 8px; font-size: 13px; font-weight: 650; margin-bottom: 2px; }
.sample-app .sa-product-category { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.sample-app .sa-product strong { font-size: 13px; }
.sample-app .sa-product-price { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; color: var(--blue); font-weight: 600; }
.sample-app .sa-product-price small { font-size: 10px; font-weight: 400; }
.sample-app .sa-item-detail, .sample-app .sa-empty { padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.sample-app .sa-item-detail p { margin: 6px 0 10px; color: var(--muted); }
.sample-app .sa-order { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow: auto; overscroll-behavior: contain; min-width: 0; background: var(--panel); }
.sample-app .sa-order-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sample-app .sa-order-heading > span, .sample-app .sa-order-id { font-size: 10px; color: var(--muted); }
.sample-app .sa-order-lines > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.sample-app .sa-order-lines small { display: inline; font-size: 10px; margin-left: 4px; }
.sample-app .sa-order-lines strong { font-weight: 600; white-space: nowrap; }
.sample-app .sa-order-quantity { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; font-size: 11px; }
.sample-app .sa-order-total { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0; }
.sample-app .sa-order-total small { display: block; font-size: 10px; }
.sample-app .sa-order-total > strong { font-size: 28px; letter-spacing: -.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.sample-app button.sa-primary { background: var(--blue); color: var(--blue-ink, white); border-color: var(--blue); font-weight: 600; }
.sample-app button.sa-primary:hover:enabled { background: var(--ink); color: var(--panel); }
.sample-app button.sa-reset { border-color: transparent; }
.sample-app .sa-order-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
.sample-app .sa-order-actions button { padding-inline: 8px; font-size: 12px; white-space: nowrap; }
.sample-app .sa-fineprint { color: var(--muted); font-size: 10px; line-height: 1.45; }
.sample-app .sa-kitchen { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; font-size: 11px; }
.sample-app .sa-kitchen p { color: var(--muted); margin-top: 2px; }
.sample-app .sa-status-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.sample-app .sa-account-scroll, .sample-app .sa-overview-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1px 3px 4px; }
.sample-app .sa-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.sample-app .sa-metric { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 14px; min-width: 0; }
.sample-app .sa-metric > span { color: var(--muted); font-size: 11px; }
.sample-app .sa-metric > strong { color: var(--blue); font-size: 24px; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sample-app .sa-metric small { font-size: 10px; line-height: 1.45; }
.sample-app .sa-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sample-app .sa-section-heading > span { font-size: 10px; color: var(--muted); }
.sample-app .sa-ledger-controls { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sample-app .sa-ledger-controls .sa-search { width: 235px; }
.sample-app .sa-ledger-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.sample-app .sa-ledger-row > div { flex: 1; min-width: 0; }
.sample-app .sa-ledger-row small { display: block; margin-top: 2px; font-size: 10px; }
.sample-app .sa-ledger-row strong { font-size: 12px; font-weight: 600; }
.sample-app .sa-ledger-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--soft); color: var(--blue); flex-shrink: 0; }
.sample-app .sa-ledger-type { color: var(--muted); font-size: 10px; width: 70px; }
.sample-app .sa-ledger-amount { min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sample-app .sa-new-entry { background: var(--soft); }
.sample-app .sa-ledger-footer { display: flex; justify-content: space-between; gap: 8px; padding: 14px 4px; }
.sample-app .sa-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sample-app .sa-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.sample-app .sa-chart { height: 96px; display: flex; align-items: flex-end; gap: 12px; padding: 4px 8px 0; }
.sample-app .sa-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.sample-app .sa-chart span { background: var(--blue); width: 100%; max-width: 36px; height: calc(var(--bar) * .75); border-radius: 4px 4px 0 0; opacity: .85; }
.sample-app .sa-chart small { font-size: 9px; }
.sample-app [data-chart-summary] { margin-top: 10px; color: var(--muted); font-size: 10px; }
.sample-app .sa-stock-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sample-app .sa-stock-row small { display: block; font-size: 10px; }
.sample-app .sa-stock-row > strong { color: var(--blue); font-weight: 600; }
.sample-app .sa-card > .sa-fineprint { margin-top: 8px; }
.sample-app .sa-team-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; }
.sample-app .sa-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 10px; }
.sample-app .sa-team-row > div { flex: 1; }
.sample-app .sa-team-row small { display: block; font-size: 10px; }
.sample-app .sa-next p { margin: 8px 0 14px; font-size: 12px; color: var(--muted); }
.sample-app .sa-next > div { display: flex; flex-wrap: wrap; gap: 7px; }
@container (max-width: 800px) {
  .sample-app .sa-order-id, .sample-app .sa-kitchen { display: none; }
  .sample-app .sa-metrics { margin-bottom: 12px; }
  .sample-app .sa-metric { padding: 10px; gap: 4px; }
  .sample-app .sa-metric small { display: none; }
}
@container (max-width: 650px) {
  .sample-app .sa-pos-layout { grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr); gap: 10px; }
  .sample-app .sa-products { grid-template-columns: 1fr; }
  .sample-app .sa-metric { padding: 10px; }
  .sample-app .sa-metric > strong { font-size: 18px; }
  .sample-app .sa-ledger-type { display: none; }
}
@container (max-width: 430px) {
  .sample-app .sa-header { align-items: center; padding-bottom: 6px; }
  .sample-app .sa-header .sa-eyebrow, .sample-app .sa-header p { display: none; }
  .sample-app .sa-order { order: -1; }
  .sample-app h2 { font-size: 17px; }
  .sample-app .sa-header p { font-size: 10px; }
  .sample-app .sa-eyebrow { font-size: 8px; }
  .sample-app .sa-pos-layout { display: flex; flex-direction: column; flex: 0 0 auto; }
  .sample-app .sa-catalog, .sample-app .sa-order, .sample-app .sa-account-scroll, .sample-app .sa-overview-scroll { overflow: visible; flex-shrink: 0; }
  .sample-app .sa-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sample-app button.sa-product { padding: 10px; min-height: 130px; }
  .sample-app .sa-product strong { font-size: 13px; }
  .sample-app .sa-product-mark { width: 32px; height: 32px; font-size: 13px; }
  .sample-app .sa-order { padding: 12px; }
  .sample-app .sa-metrics { grid-template-columns: 1fr; gap: 7px; margin-bottom: 12px; }
  .sample-app .sa-metric { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
  .sample-app .sa-metric small { grid-column: 1 / -1; }
  .sample-app .sa-overview-grid { grid-template-columns: 1fr; }
  .sample-app .sa-ledger-controls .sa-search { width: 100%; }
  .sample-app .sa-ledger-row { gap: 7px; }
  .sample-app .sa-ledger-icon { display: none; }
  .sample-app .sa-ledger-amount { min-width: 72px; font-size: 11px; }
  .sample-app .sa-ledger-row > div > strong { font-size: 11px; overflow-wrap: anywhere; }
}
/* The document owns the tour's scrolling; these frames never scroll internally. */
.workspace-panel.sample-app--presentation { overflow: clip; overscroll-behavior: auto; container-type: size; gap: 12px; cursor: default; }
.sample-app--presentation *, .sample-app--presentation button { cursor: default; overscroll-behavior: auto; }
.sample-app--presentation > :not(.sa-header):not(.sa-tour) { display: none; }
.sample-app--presentation .sa-header { padding-bottom: 10px; }
.sample-app--presentation .sa-header > button, .sample-app--presentation .sa-header > .sa-tabs { display: none; }
.sample-app--presentation .sa-header p, .sample-app--presentation .sa-header .sa-eyebrow { display: none; }
.sample-app--presentation .sa-header h2 { margin: 0; font-size: 21px; }
.sample-app--presentation .sa-tour { flex: 1; min-height: 0; overflow: clip; }
.sample-app--presentation .sa-tour-full { height: 100%; overflow: clip; }
.sample-app--presentation .sa-tour-compact { display: none; }
.sample-app--presentation .sa-tour-pos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; height: 100%; }
.sample-app--presentation .sa-tour-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sample-app--presentation .sa-tour-product { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.sample-app--presentation .sa-tour-product > div { flex: 1; min-width: 70px; }
.sample-app--presentation .sa-tour-product small { display: block; font-size: 10px; }
.sample-app--presentation .sa-tour-product > strong { color: var(--blue); }
.sample-app--presentation .sa-tour-order, .sample-app--presentation .sa-tour-transactions, .sample-app--presentation .sa-tour-chart-card, .sample-app--presentation .sa-tour-stock { border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow: clip; }
.sample-app--presentation .sa-tour-order-ref { font-size: 11px; color: var(--muted); }
.sample-app--presentation .sa-tour-caption { font-size: 10px; color: var(--muted); }
.sample-app--presentation .sa-tour-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sample-app--presentation .sa-tour-metrics .sa-metric small { display: none; }
.sample-app--presentation .sa-tour-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.sample-app--presentation .sa-tour-entry strong { font-size: 12px; font-weight: 600; }
.sample-app--presentation .sa-tour-entry > strong { white-space: nowrap; color: var(--blue); }
.sample-app--presentation .sa-tour-entry small { display: block; margin-top: 3px; font-size: 10px; }
.sample-app--presentation .sa-tour-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sample-app--presentation .sa-chart { height: 110px; }
@container (max-height: 330px) {
  .sample-app--presentation .sa-tour-product { padding: 10px; gap: 6px; }
  .sample-app--presentation .sa-tour-product .sa-product-mark { width: 30px; height: 30px; font-size: 13px; margin: 0; }
  .sample-app--presentation .sa-tour-order, .sample-app--presentation .sa-tour-transactions, .sample-app--presentation .sa-tour-chart-card, .sample-app--presentation .sa-tour-stock { padding: 12px; }
  .sample-app--presentation .sa-tour-metrics { margin-bottom: 10px; }
  .sample-app--presentation .sa-tour-metrics .sa-metric { padding: 10px; gap: 3px; }
  .sample-app--presentation .sa-metric > strong { font-size: 21px; }
  .sample-app--presentation .sa-tour-entry { padding: 7px 0; }
  .sample-app--presentation .sa-chart { height: 65px; }
  .sample-app--presentation .sa-order-lines > div { padding: 7px 0; }
  .sample-app--presentation .sa-order-total { padding: 8px 0; }
}
@container (max-width: 650px) {
  .sample-app--presentation .sa-tour-product { padding: 9px; font-size: 11px; }
  .sample-app--presentation .sa-tour-product .sa-product-mark { display: none; }
  .sample-app--presentation .sa-tour-products { gap: 7px; }
}
@container (max-width: 430px) or (max-height: 260px) {
  .sample-app--presentation .sa-header, .sample-app--presentation .sa-tour-full { display: none; }
  .sample-app--presentation .sa-tour-compact { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 100%; padding: 1px 0; overflow: clip; }
  .sample-app--presentation .sa-tour-row { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; font-size: 11px; line-height: 1.35; min-width: 0; }
  .sample-app--presentation .sa-tour-row > strong:last-child { white-space: nowrap; color: var(--blue); font-variant-numeric: tabular-nums; }
  .sample-app--presentation .sa-tour-row strong { font-weight: 600; }
  .sample-app--presentation .sa-tour-caption { font-size: 9px; }
  .sample-app--presentation .sa-tour-item-summary { color: var(--muted); font-size: 10px; }
}
.sample-app .sa-orders-live { min-height: 0; overflow: auto; }
.sample-app .sa-queue-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.sample-app .sa-queue-summary > span { font-size: 11px; color: var(--muted); }
.sample-app .sa-queue-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sample-app .sa-queue-column { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.sample-app .sa-queue-ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.sample-app .sa-ticket-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.sample-app .sa-ticket-heading small { font-size: 9px; }
.sample-app .sa-queue-ticket > p { font-size: 11px; margin-top: 12px; color: var(--muted); }
.sample-app .sa-ticket-items { display: grid; gap: 6px; font-size: 12px; margin: 14px 0; }
.sample-app .sa-ticket-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.sample-app .sa-ticket-footer span { font-size: 10px; color: var(--muted); }
.sample-app .sa-ticket-footer strong { color: var(--blue); }
.sample-app .sa-queue-empty { font-size: 11px; padding: 16px 4px; color: var(--muted); }
.sample-app--presentation .sa-orders-live { display: none; }
@container (max-height: 330px) {
  .sample-app--presentation .sa-queue-summary { margin-bottom: 8px; }
  .sample-app--presentation .sa-queue-column { padding: 8px; }
  .sample-app--presentation .sa-queue-ticket { padding: 9px; }
  .sample-app--presentation .sa-queue-ticket > p { margin-top: 7px; }
  .sample-app--presentation .sa-ticket-items { gap: 3px; margin: 8px 0; font-size: 11px; }
  .sample-app--presentation .sa-ticket-footer { padding-top: 7px; }
}
@container (max-width: 430px) {
  .sample-app .sa-orders-live .sa-queue-columns { grid-template-columns: 1fr; }
}
