/* S1 Guide me (s1-settings-guide.js). Only .s1sg-* rules plus the panel-mode tweaks to the shared Apex chat (.s1ag--panel).
 * Ink means action; colour carries meaning only (ok = done, late = problem). The pulse is an ink ring, not a colour. */
.s1sg-slot { display: inline-flex; align-items: center; margin-left: auto; }
.s1sg { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--s1-panel); color: var(--s1-ink); border-left: 1px solid var(--s1-line); box-shadow: -10px 0 36px rgb(17 19 24 / .14); animation: s1sg-in var(--s1-dur-3) var(--s1-ease-emph) both; }
.s1sg-head { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.s1sg-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--s1-radius-pill, 999px); background: var(--s1-ink); color: var(--s1-on-ink, #fff); }
.s1sg-titles { display: grid; gap: 1px; min-width: 0; flex: 1; }
.s1sg-titles strong { font: 700 var(--s1-text-base)/1.2 var(--s1-font-ui); }
.s1sg-titles span { color: var(--s1-mute); font-size: var(--s1-text-small); line-height: 1.35; }
.s1sg-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--s1-radius-control, 8px); background: transparent; color: var(--s1-ink-2); cursor: pointer; }
.s1sg-x:hover { background: var(--s1-column); }
.s1sg-tools { display: flex; align-items: center; justify-content: space-between; gap: calc(8px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.s1sg-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.s1sg-host > .s1ag { flex: 1; min-height: 0; padding: 0; gap: 0; }
.s1sg-fail { margin: 14px; color: var(--s1-late); }
@media (min-width: 1200px) { html.s1sg-docked body { padding-right: calc(400px * var(--s1-scale, 1)); } }

/* The shared Apex chat, compact: one column, no history sidebar, no hints. */
.s1ag--panel .s1ag-shell { height: 100%; }
.s1ag--panel .s1ag-side, .s1ag--panel .s1ag-scrim { display: none; }
.s1ag--panel .conv { padding: calc(12px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)); }
.s1ag--panel .conv > *, .s1ag--panel .comp > * { max-width: none; }
.s1ag--panel .comp { padding: calc(10px * var(--s1-scale, 1)); }
.s1ag--panel kbd, .s1ag--panel .s1ag-heavy, .s1ag--panel [data-ag="attach"] { display: none; }
.s1ag--panel .s1ag-input { font-size: var(--s1-fs-4); }
.s1ag--panel .s1ag-empty-title { font-size: var(--s1-text-base); }
.s1ag--panel .s1ag-card { max-width: none; }

/* The highlighted row */
[data-s1sg-pulse] { border-radius: 10px; animation: s1sg-pulse 1.3s var(--s1-ease) 3; box-shadow: 0 0 0 3px var(--s1-ink); }

@keyframes s1sg-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s1sg-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--s1-ink); } 50% { box-shadow: 0 0 0 8px transparent; } }
@media (forced-colors: active) { .s1sg { border-left: 1px solid CanvasText; }  }

/* Phone: a bottom sheet above the tab bar, short enough to leave the highlighted row in view. */
@media (max-width: 640px) {
  .s1sg { top: auto; left: 0; right: 0; bottom: var(--a-tab, 0px); width: auto; height: min(52dvh, 480px); border-left: 0; border-top: 1px solid var(--s1-line); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 32px rgb(17 19 24 / .16); animation-name: s1sg-up; }
  .s1sg-head { padding: 8px 8px 6px 12px; }
  .s1sg-titles span { display: none; }
  .s1sg-tools { padding: 6px 12px; }
  html.s1sg-docked body { padding-bottom: min(52dvh, 480px); }
}
@keyframes s1sg-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
