/* ASA OS Look screen (#/settings/look) and the parts of the look switch that belong to no single look (ui-directions).
 * Loaded after shop.css and before themes/<name>.css. Uses only shop.css tokens. */

/* ---------- "Show company brand" off with the Current look: the shop.css defaults return ---------- */
:root:not([data-theme])[data-look-brand="off"] body {
  --accent: #0a66d8; --accent-ink: #ffffff; --accent-soft: rgba(10, 102, 216, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

/* the brand's dark sidebar paints its text from --side-*; with the brand hidden those follow the look's own ink */
:root[data-look-brand="off"][data-brand-side="dark"] .shop-side {
  --side-ink: var(--ink); --side-ink-2: var(--ink-2); --side-ink-3: var(--ink-3); --side-fill: var(--fill); }
:root:not([data-theme])[data-look-brand="off"][data-brand-side="dark"] .shop-side { background: var(--side); border-right-color: var(--hair); color: var(--ink); }
:root:not([data-theme])[data-look-brand="off"][data-brand-side="dark"] .shop-side .shop-side-foot { border-top-color: var(--hair); }
:root:not([data-theme])[data-look-brand="off"][data-brand-side="dark"] .shop-side .shop-side-foot button { color: var(--accent); }

/* ---------- the screen ---------- */
.lk-intro { max-width: 68ch; color: var(--ink-2); margin: -8px 0 24px; }
.lk-note { color: var(--ink); font-weight: 500; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; max-width: 1240px; }
.shop-on .lk-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; height: auto; min-height: 0;
  padding: 10px 10px 16px; border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; white-space: normal;
  font: inherit; box-shadow: 0 0 0 1px var(--hair); transform: none; }
.shop-on .lk-card:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--hair-strong); }
.shop-on .lk-card:active { transform: none; }
.shop-on .lk-card[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent); }
.lk-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 6px 0; font-size: 17px; font-weight: 600; }
.lk-on { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.lk-about { padding: 0 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.lk-brand { margin-top: 22px; max-width: 640px; }
.lk-switch { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 400; }
.lk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lk-switch-ui { position: relative; width: 42px; height: 26px; border-radius: 999px; background: var(--fill-hover); transition: background-color .15s ease; margin-top: 1px; }
.lk-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .15s ease; }
.lk-switch input:checked + .lk-switch-ui { background: var(--accent); }
.lk-switch input:checked + .lk-switch-ui::after { transform: translateX(16px); }
.lk-switch input:focus-visible + .lk-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.lk-switch-t { display: block; font-weight: 600; }
.lk-switch-n { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.lk-status { min-height: 1.4em; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .lk-switch-ui, .lk-switch-ui::after { transition: none; } }

/* ---------- the samples: the same tokens as the app; each look file adds its own signature parts ---------- */
.lk-mini[data-preview="current"] {
  --canvas: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #8e8e93;
  --hair: rgba(0, 0, 0, 0.09); --hair-strong: rgba(0, 0, 0, 0.16); --fill: rgba(118, 118, 128, 0.12);
  --accent: #0a66d8; --accent-ink: #ffffff; --accent-soft: rgba(10, 102, 216, 0.1); --side: rgba(246, 246, 248, 0.86);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

.lk-mini { display: grid; grid-template-columns: 76px minmax(0, 1fr); height: 210px; overflow: hidden; border-radius: 12px; pointer-events: none;
  background: var(--canvas); color: var(--ink); font: 400 10px/1.3 var(--font); letter-spacing: 0; text-align: left; box-shadow: inset 0 0 0 1px var(--hair); }
.lk-side { display: flex; flex-direction: column; gap: 3px; padding: 10px 6px; background: var(--side); border-right: 1px solid var(--hair); }
.lk-mark { width: 14px; height: 14px; margin: 0 4px 8px; border-radius: 4px; background: var(--ink); }
.lk-nav { padding: 3px 5px; border-radius: 4px; color: var(--ink); font-size: 9.5px; }
.lk-nav.is-current { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.lk-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; }
.lk-title { font: 700 20px/1.1 var(--font-display); letter-spacing: -0.01em; }
.lk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lk-tile { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--hair); }
.lk-tile.is-on { box-shadow: 0 0 0 1.5px var(--accent); }
.lk-tile b { font: 600 17px/1.1 var(--font-display); }
.lk-tile span { color: var(--ink-2); font-size: 9px; }
.lk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px;
  background: var(--surface); box-shadow: 0 0 0 0.5px var(--hair); }
.lk-who { display: flex; flex-direction: column; min-width: 0; }
.lk-cust { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-veh { color: var(--ink-2); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-pill { padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); font-size: 9px; font-weight: 500; white-space: nowrap; }
.lk-amt { display: none; }
.lk-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.lk-track span { height: 3px; border-radius: 2px; background: var(--fill); }
.lk-track .is-done { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.lk-track .is-now { background: var(--accent); }
.lk-btn { align-self: flex-start; margin-top: auto; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 9.5px; font-weight: 500; }
/* 218: the company's default look */
.lk-company { margin-top: 24px; }
.lk-company-set { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lk-company-set select { min-height: 36px; }

/* 259 (Oct 22): each person's accessibility, on every look (themes/look.js sets the attributes from this browser) */
html[data-text="large"] body { zoom: 1.12; }
html[data-text="larger"] body { zoom: 1.25; }
html[data-contrast="more"]:not(#no-such-id) { --ink-2: var(--ink); --ink-3: var(--ink); --hair: var(--hair-strong); }
html[data-contrast="more"] a, html[data-contrast="more"] button { text-decoration-thickness: 2px; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
