  /* ---- You: the header, the cards and switches, You's pages, Your profile, Connect ---- */
  /* Creator mode off (just using modules): what's for making them is hidden, in one rule: the Shop's, the Shop's
     creators, Yours, and Your modules' For creators strip (its box, the kit, Your shop, the reports line, More for makers). */
  body.no-making #shAdd, body.no-making #shRequest, body.no-making #shOffersBox, body.no-making #shList > .sh-group[data-key="mine"],
  body.no-making .sh-own, body.no-making .sh-code, body.no-making #shCard-myshop, body.no-making .sh-creators, body.no-making #crKit,
  body.no-making #shForCreators, body.no-making #shMyShop, body.no-making #crReportsBox, body.no-making #shMakers { display: none !important; }
  body.no-making .sh-if-making, body:not(.no-making) .sh-if-not-making { display: none !important; } /* the words follow where Read the code is */
  .who { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
  .avatar { width: 32px; height: 32px; flex: none; border-radius: var(--r-round); background: var(--rail-active); color: var(--ink-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }
  .who-name { font-size: 13px; font-weight: 500; color: var(--ink); }
  .who-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
  .who-dot { display: inline-block; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--muted); margin-right: 5px; vertical-align: 1px; }
  .who-dot.on { background: var(--ok); }
  @media (max-width: 600px) {
    body #connectPanel { width: 100%; max-width: 100%; }
  }
  .avatar.has-pic { background: none; }
  .avatar.has-pic img { width: 100%; height: 100%; border-radius: var(--r-round); object-fit: cover; display: block; }
  #cnFolderState:not(:empty) { margin-top: 6px; }
  /* Closed, the panel is hidden from the keyboard and screen readers, not just moved off screen. */
  #connectPanel { position: fixed; top: 0; bottom: 0; left: 0; width: 440px; max-width: 94vw; background: var(--paper); border-right: var(--bw) var(--bs) var(--line); box-shadow: var(--shadow-panel); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; z-index: 21; overflow-y: auto; padding-bottom: 40px; }
  body.connect-open #connectPanel { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
  #connectPanel select, #connectPanel input { width: 100%; }
  #cpFolderInfo, #cpSummary { font-size: 12px; margin-top: 8px; white-space: pre-wrap; }
  .who.clickable { cursor: pointer; border-radius: var(--r); }
  .who.clickable:hover { background: var(--hover-wash); }
  #diagnostics { font-size: 12px; }
  #diagnostics .diag-item { padding: 8px 0; border-bottom: var(--bw) var(--bs) var(--line); }
  #diagnostics .diag-item:last-child { border-bottom: none; }
  #diagnostics .diag-result { margin-top: 4px; white-space: pre-wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .setup-group { border-bottom: var(--bw) var(--bs) var(--line); }
  .setup-group > summary { padding: 16px 22px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
  .setup-group .section { border-bottom: none; border-top: var(--bw) var(--bs) var(--line); }
  @media (max-width: 820px) {
    /* the panels that open from the side sit between the switcher and the bar, as Today and You do, so their close
       button and last buttons can be reached; the switcher carries the top inset, so their heads don't add it again. */
    #connectPanel { top: calc(var(--switch-h, 52px) + env(safe-area-inset-top)); bottom: calc(var(--places-h, 60px) + env(safe-area-inset-bottom)); }
    body #connectPanel .drawer-head { padding-top: 16px; }
  }
  @media (min-width: 821px) {
    /* the side panels open beside the slim rail, not under it. */
    #connectPanel { left: var(--slim-w, 76px); max-width: calc(100vw - var(--slim-w, 76px)); }
  }
  /* You as its own page. The header (your picture on a banner in your Look's colors, Edit picture, your name and how
     you're signed in), then its sections as cards, as Today's are on a phone. Rows with a switch or a chevron. Theme
     tokens only, so every Look, users' themes, your own colors and light and dark apply. */
  .you-banner { background-size: cover; background-position: center; } /* your banner picture is its background; the rest is every page's banner (.page-hero) */
  .you-edit { position: absolute; right: 10px; bottom: 10px; min-height: 32px; border: var(--bw) var(--bs) var(--line); background: var(--card); color: var(--ink); border-radius: var(--r-pill); padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
  .you-edit:hover { background: var(--card-hover); }
  .you-head .who { display: block; padding: 2px 4px 4px; border-radius: var(--r); }
  .you-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .you-head .who-name { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
  .you-head .who-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
  .who-dot.off { background: var(--danger); } /* Sign in, with a red dot */
  .you-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: var(--r-pill); padding: 2px 8px; white-space: nowrap; }
  .you-badge[hidden] { display: none; }
  /* Your profile's Save carries on under your name; the new picture shows at once, ringed while it saves. */
  .you-save { font-size: 12.5px; color: var(--muted); padding: 0 4px 4px; }
  .you-save:empty { display: none; }
  .you-save.err { color: var(--danger); }
  .avatar.saving { outline: 2px dashed var(--accent); outline-offset: 2px; }
  .you-card { background: var(--card); border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); padding: 4px 0; margin-top: 12px; }
  .you-sec { margin: 0; padding: 12px 16px 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
  .you-row { display: flex; } /* the moved menu buttons are flex already (.nav-item) */
  .you-row, .you-card > .nav-item { box-sizing: border-box; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 9px 16px; border: 0; border-top: var(--bw) var(--bs) var(--line); border-radius: initial; background: none; text-align: left; font: inherit; font-size: 14.5px; font-weight: 400; color: var(--ink); text-decoration: none; }
  .you-sec + .you-row, .you-sec + .nav-item, .you-card > [hidden] + .you-row, .you-card > .you-row:first-child { border-top: 0; } /* a card's first row, under its heading or at its top */
  .you-row[hidden], .you-card > .nav-item[hidden] { display: none; }
  button.you-row, .you-card > .nav-item { cursor: pointer; }
  button.you-row:hover, .you-card > .nav-item:hover:not(:disabled) { background: var(--hover-wash); color: var(--ink); }
  .you-card > .nav-item.active { background: var(--rail-active); }
  .you-grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .you-meta { font-size: 12.5px; color: var(--muted); }
  .you-go::after, .you-card > .nav-item::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }
  .you-card > .nav-item .tag { margin-left: auto; }
  .you-switch { position: relative; flex: none; width: 46px; height: 28px; padding: 0; border: var(--bw) var(--bs) var(--switch-off); border-radius: var(--r-pill); background: var(--switch-off); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
  .you-switch::before { content: ""; position: absolute; inset: -9px -4px; } /* a 44px target */
  .you-switch::after { content: ""; position: absolute; top: 50%; left: 2px; width: calc(24px - 2 * var(--bw)); height: calc(24px - 2 * var(--bw)); margin-top: calc(var(--bw) - 12px); box-sizing: border-box; border-radius: var(--r-pill); background: var(--switch-knob); border: 0; box-shadow: var(--switch-knob-shadow); transition: left .15s ease; }
  .you-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
  .you-switch[aria-checked="true"]::after { left: 20px; background: var(--on-accent); }
  .you-switch:disabled { opacity: .5; cursor: default; } /* only a switch that can't be used now fades; its line says why */
  /* Settings' contents as pages under You (reading pages, as Your profile is), the Looks as swatches, and a setting's
     box in You's cards as a switch at the right with its line under its name. Theme tokens only, so every Look, users'
     themes and light and dark apply. */
  .you-page { display: none; }
  body.looks-open #looksPage, body.time-open #timePage, body.help-open #helpPage, body.connections-open #connectionsPage, body.setup-open #setupPage { display: block; }
  .you-page .section { padding: 18px 0; }
  .you-page .section h2 { font-size: 12.5px; color: var(--accent-text); }
  .you-page .setup-group > summary { padding: 16px 0; }
  .you-page .you-card { margin: 4px 0 8px; }
  .you-page .hint { font-size: 13px; color: var(--ink-soft); }
  .setup-next { padding: 12px 16px; } /* the tour offered on Set up's page */
  .setup-next p { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
  .lk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 14px; }
  .lk-swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 10px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  .lk-swatch:hover { background: var(--hover-wash); }
  .lk-swatch i { display: block; width: 100%; height: 36px; margin-bottom: 6px; border-radius: var(--r); border: var(--bw) var(--bs) var(--line); background: var(--rail-active); }
  .lk-swatch .lk-name { font-weight: 600; }
  .lk-swatch .lk-hint { font-size: 12px; color: var(--muted); }
  #appearanceControls .check-row { min-height: 44px; margin-top: 4px; } /* Show shops' looks: a target a finger finds */
  .lk-swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .hp-keys { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
  .hp-keys kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border: var(--bw) var(--bs) var(--line-strong); border-radius: var(--r); background: var(--card); color: var(--ink); }
  .you-card > .check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 48px; margin: 0; padding: 9px 16px; border-top: var(--bw) var(--bs) var(--line); font-size: 14.5px; color: var(--ink); cursor: pointer; }
  .you-card > .check-row[hidden] { display: none; }
  .you-card > .check-row > .you-meta { grid-column: 1; grid-row: 2; }
  .you-card > .check-row > input[type=checkbox] { grid-column: 2; grid-row: 1 / span 2; -webkit-appearance: none; appearance: none; width: 46px; height: 28px; margin: 0; border: var(--bw) var(--bs) var(--switch-off); border-radius: var(--r-pill); background: var(--switch-off); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
  .you-card > .check-row > input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
  /* the knob is the row's, drawn as You's own switches draw theirs (.you-switch::after), so it follows
     the Look's pill radius as the track does: square in square Looks, round in round ones. */
  .you-card > .check-row { position: relative; }
  /* the iPhone's knob: large (2px inside the track), solid, no border, a soft shadow. */
  .you-card > .check-row::after { content: ""; position: absolute; top: 50%; right: calc(36px + var(--bw)); width: calc(24px - 2 * var(--bw)); height: calc(24px - 2 * var(--bw)); margin-top: calc(var(--bw) - 12px); box-sizing: border-box; border-radius: var(--r-pill); background: var(--switch-knob); border: 0; box-shadow: var(--switch-knob-shadow); pointer-events: none; transition: right .15s ease; }
  .you-card > .check-row:has(> input[type=checkbox]:checked)::after { right: calc(18px + var(--bw)); background: var(--on-accent); }
  @media (max-width: 820px), (min-width: 821px) {
    #rail #navConversation { display: none; } /* Chat holds Main Chat */
    #rail .you-head { flex: none; }
    #youCards { flex: none; }
    body:not(.layout-editing) #youCards > .nav { display: contents; }
    #rail .nav-block { margin: 12px 0 0; background: var(--card); border: var(--bw) var(--bs) var(--line); border-radius: var(--r-md); padding: 4px 8px 8px; }
    #rail .nav-block[hidden] { display: none; }
    #rail .nav-block > .nav-label { padding: 8px 8px 6px; }
  }
  @media (max-width: 820px) {
    .you-edit { min-height: 40px; }
  }
  @media (min-width: 821px) {
    /* Stacked like Today's: each card spanning its own height (stackYou); one column while its layout is edited. */
    body:not(.layout-editing) #youCards { display: grid; grid-template-columns: var(--card-cols); column-gap: 18px; align-items: start; } /* up to three columns, three from about 1,100px */
    body:not(.layout-editing) #youCards > *, body:not(.layout-editing) #youCards > .nav > * { min-width: 0; }
    body.rail-open:not(.layout-editing) #youCards.you-stacked { grid-auto-rows: 1px; row-gap: 0; }
  }
