/* REQ-126: looks: the profile editor, the figure editor, My look and agent chips. The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

/* REQ-104.1.4: the Look editor (lookEditorView.js): a side panel like the
   other panels, with a live preview of the office figure (front and back)
   and the card avatar, then one row of choices per part. Every choice is a
   44 px button with its name in words and aria-pressed; colours are swatches,
   builds are picture cards. */
.look-panel { overflow: auto; }
.look-panel[open] { display: block; }
.look-panel > * { margin-left: 20px; margin-right: 20px; }
.look-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.look-head h2 { margin: 0; font: 800 20px/1.25 var(--font-display); outline: none; }
.look-head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.look-x { min-height: 44px; }
.look-preview { position: sticky; top: 0; z-index: 1; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.look-figs { display: flex; align-items: flex-end; gap: 16px; justify-content: center; }
.look-figs svg { background: var(--panel); border-radius: 12px; }
.look-av { width: 80px; height: 80px; border-radius: 50%; }
.look-summary { margin: 8px 0 0; font: 600 14px/1.4 var(--font-body); color: var(--ink); text-align: center; }
.look-field { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.look-field legend { padding: 0; margin-bottom: 6px; font: 700 13px/1.3 var(--font-body); color: var(--mute); }
.look-row { display: flex; flex-wrap: wrap; gap: 6px; }
.look-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 600 13.5px/1.2 var(--font-body); cursor: pointer; }
.look-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.look-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); flex: none; }
.look-build { flex-direction: column; padding: 6px 12px; }
.look-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; margin-bottom: 20px; }
.look-btns .btn { min-height: 44px; }
.person-look { width: 36px; height: 36px; border-radius: 50%; flex: none; }
@media (max-width: 600px) {
  .look-panel > * { margin-left: 16px; margin-right: 16px; }
  .look-figs svg { height: 110px; width: auto; }
  .look-av { width: 64px; height: 64px; }
}
/* REQ-85.2: design your figure (figureEditor.js). */
.fe { display: flex; flex-direction: column; gap: 14px; }
.fe-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fe-preview { flex: 0 0 auto; width: 220px; height: 260px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.fe-preview canvas { display: block; }
.fe-no3d { margin: 0; padding: 12px; color: var(--mute); font-size: 13px; text-align: center; }
.fe-side { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fe-sum { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.fe-rnd { align-self: flex-start; min-height: 44px; }
.fe-groups { display: flex; flex-direction: column; gap: 12px; }
.fe-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.fe-group legend { padding: 0 0 6px; font: 800 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.fe-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-opt { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.fe-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.fe-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fe-sw { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.fe-opts.sw .fe-opt { min-width: 64px; }
.fe-name { white-space: nowrap; }
.fe-panel { width: min(640px, 100vw); }
.fe-body { gap: 14px; padding-bottom: 24px; }
.fe-foot { position: sticky; bottom: 0; padding-top: 10px; background: var(--bg); border-top: 1px solid var(--line); }
.ho-fig { align-self: flex-start; min-height: 44px; }
@media (max-width: 600px) { .fe-preview { width: 100%; height: 240px; } }

/* REQ-115.1: the profile editor, preview and look on the left, Pod and Role
   on the right; stacked on a phone. */
.look-panel { max-width: min(980px, 100vw); }
.look-cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
.look-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.look-side-f { display: flex; flex-direction: column; gap: 4px; font: 700 13px/1.3 var(--font-body); color: var(--mute); }
.look-side-f select, .look-side-f input { min-height: 44px; font: 500 14.5px/1.3 var(--font-body); color: var(--ink); }
.look-side-f input { padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.look-effect { margin: -4px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font: 600 13px/1.4 var(--font-body); }
.look-effect[hidden] { display: none; }
/* REQ-184.1.5 (UAT-435): every link change under 'Works with', newest first; it scrolls when long. */
.look-history h3 { margin: 0 0 4px; font: 700 13px/1.3 var(--font-body); color: var(--mute); }
.look-history-msg { margin: 0; font: 500 13px/1.4 var(--font-body); color: var(--mute); }
.look-history-list { margin: 0; padding: 0 0 0 18px; max-height: 14rem; overflow-y: auto; font: 500 13px/1.45 var(--font-body); color: var(--ink); }
.look-history-list li + li { margin-top: 4px; }
.look-history-who { color: var(--mute); }
@media (max-width: 720px) {
  .look-cols { grid-template-columns: 1fr; }
  .look-side { position: static; }
}

/* REQ-115.2: an agent's avatar next to its name (agentChip.mjs). */
.ag-chip { display: inline; white-space: nowrap; }
.ag-chip img { border-radius: 50%; background: var(--sunken); vertical-align: middle; margin: -2px 5px 0 0; }
.ag-32 img { margin-right: 8px; }
.ag-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 0; min-width: 0; }
.ag-sep { margin-right: 6px; }
.ag-more { margin-left: 8px; }
.ag-more { min-width: 32px; min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 700 12.5px/1 var(--font-body); cursor: pointer; }
.ag-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Inside a button (a calendar block): '+N' is plain text in the muted token, not a pill (Pablo). */
.ag-more.ag-more-text { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--mute); font: 700 12px/1.2 var(--font-body); }

/* REQ-116: My look (the look page and the gate after sign-in), like the onboarding's full page. */
.ml { position: fixed; inset: 0; z-index: 2000; overflow-y: auto; background: var(--bg); color: var(--ink); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.ml[hidden] { display: none; }
.ml-card { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.ml-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ml-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin: 4px 0 0; outline: none; }
.ml-head h1:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ml-why { margin: 0; color: var(--mute); font-size: 15px; }
.ml-avatar { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--mute); font-size: 14px; }
.ml-avatar img { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--sunken); }
/* Sign out: a plain secondary link in the corner, never next to Save (Pablo). */
.ml-signout { flex: none; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--mute); font: 600 14px/1 var(--font-body); text-decoration: underline; cursor: pointer; }
.ml-signout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ml-foot { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.ml-foot .btn { min-height: 44px; }
.ml-key { align-self: center; color: var(--mute); font: 600 12.5px/1 var(--font-body); }
@media (pointer: coarse) { .ml-key { display: none; } }
.my-look-link { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
