/* Settings lists: the palette sheet and Page photos.

   Both are admin-panel lists on purpose: a row per choice, the name on the
   left, the picture of it on the right, native controls. They replaced two
   grids of cards (Redecorate's and Brand & Appearance's, with different
   layouts for the same question) and a page-photo list that wrapped route
   hashes and cut its own dropdown text off.

   Every color is a token (tests/theme-colors.test.mjs reads this file). */

/* ------------------------------------------------------------ the palette */
.palside{margin:12px 0 0}
.pallist{display:flex;flex-direction:column;margin:14px 0 0;
  border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--raised)}
.palrow{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;
  gap:10px;width:100%;min-height:52px;padding:8px 12px;text-align:left;
  background:transparent;color:var(--ink);font:inherit;cursor:pointer;
  border:0;border-top:1px solid var(--line)}
.palrow:first-child{border-top:0}
.palrow:hover{background:var(--sunk)}
/* Selected is a tick, a tint and aria-checked, never color alone. */
.palrow[aria-checked="true"]{background:var(--sel);color:var(--onsel)}
.palrow:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.paltick{display:flex;align-items:center;justify-content:center;color:var(--accent)}
.paltext{display:flex;flex-direction:column;gap:1px;min-width:0}
.paltext b{font-family:var(--f-s);font-size:14px;font-weight:600}
.paltext small{font-family:var(--f-s);font-size:12px;line-height:1.4;color:var(--muted)}
.palrow[aria-checked="true"] .paltext small{color:inherit;opacity:.8}
/* The palette's own ground, ink and button, resolved from its own tokens by
   the data-look / data-theme on this element. */
.palsw{display:flex;align-items:center;gap:7px;padding:0 9px;height:34px;
  border-radius:8px;background:var(--ground);border:1px solid var(--firm)}
.palink{font-family:var(--f-d);font-size:16px;line-height:1;color:var(--ink)}
.palbtn{width:22px;height:12px;border-radius:3px;background:var(--cta)}
.palgroup{margin:0;padding:10px 12px 6px;border-top:1px solid var(--line);
  font-family:var(--f-s);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);background:var(--sunk)}
.palalso{margin:14px 0 0}
/* Save stays reachable at the foot of a long list on a phone. */
.palacts{position:sticky;bottom:calc(-22px - env(safe-area-inset-bottom,0px));
  margin:18px -20px calc(-22px - env(safe-area-inset-bottom,0px));
  padding:12px 20px calc(14px + env(safe-area-inset-bottom,0px));
  background:var(--ground);border-top:1px solid var(--line);flex-wrap:nowrap}
.palacts .act{flex:1 1 auto;width:auto;margin:0}

/* ------------------------------------------------------------ page photos */
.pglist{display:flex;flex-direction:column;margin-top:10px}
.pgrow{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 12px;
  align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.pgrow:last-child{border-bottom:0}
.pgthumb{grid-row:span 2;position:relative;display:flex;align-items:center;
  justify-content:center;width:56px;height:56px;border-radius:9px;overflow:hidden;
  background:var(--sunk);border:1px solid var(--line);
  font-family:var(--f-s);font-size:10.5px;line-height:1.2;text-align:center;color:var(--muted)}
.pgthumb img{width:100%;height:100%;object-fit:cover;display:block}
/* How many pictures a rotating page chooses between. */
.pgthumb i{position:absolute;right:3px;bottom:3px;min-width:18px;padding:1px 4px;
  border-radius:9px;background:var(--raised);color:var(--ink);font-style:normal;
  font-size:10.5px;text-align:center}
.pgname{min-width:0}
.pgname b{display:block;font-size:15px;font-weight:500;color:var(--ink)}
.pgname small{display:block;font-family:var(--f-s);font-size:12px;color:var(--muted);
  line-height:1.4;margin-top:1px}
.pgset{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.pgset select{flex:1 1 180px;max-width:260px;min-width:0}
.pgcrop{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;
  margin:8px 0 0;padding:12px;border-radius:11px;background:var(--sunk)}
.pgpreview{position:relative;aspect-ratio:3/1;border-radius:10px;overflow:hidden;
  background:var(--lift)}
.pgpreview.hero{aspect-ratio:3/4;max-height:340px;max-width:255px}
.pgpreview img{width:100%;height:100%;object-fit:cover;display:block}
.pgslide{display:flex;flex-direction:column;gap:4px;
  font-family:var(--f-s);font-size:12px;color:var(--muted)}
.pgslide input{width:100%}
.pgcrop .sheetacts{margin:0}
@media (min-width:640px){
  .pgrow{grid-template-columns:56px minmax(0,1fr) auto}
  .pgthumb{grid-row:auto}
  .pgset{justify-content:flex-end}
}

/* ------------------------------------------------------------ Your data
   House Admin -> Your data (app/yourdata.js). A plain list: what each part
   is, and its own Download. The whole House sits on top as the one big
   button. On a phone the button drops under the words rather than squeezing
   them. Every color is a token. */
.yd-card{margin:18px 0 0;border:1px solid var(--line);border-radius:14px;background:var(--raised);
  padding:4px 16px}
.yd-h{margin:26px 0 0}
.yd-list{display:flex;flex-direction:column;margin:10px 0 0;border-top:1px solid var(--line)}
.yd-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;
  padding:14px 4px;border-bottom:1px solid var(--line)}
.yd-card .yd-row{border-bottom:0;padding:14px 0}
.yd-ic{color:var(--muted);display:flex}
.yd-hero .yd-ic{color:var(--accent)}
.yd-t{min-width:0;display:flex;flex-direction:column;gap:2px}
.yd-t b{font-family:var(--f-s);font-size:15px;font-weight:500;line-height:1.3;color:var(--ink)}
.yd-hero .yd-t b{font-size:17px}
.yd-t small{font-family:var(--f-s);font-size:13px;color:var(--muted);line-height:1.4}
.yd-state{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.yd-bar{max-width:280px}
.yd-line{font-family:var(--f-s);font-size:12.5px;color:var(--muted);line-height:1.45;
  font-variant-numeric:tabular-nums}
.yd-line.yd-ready{color:var(--good)}
.yd-line.yd-bad{color:var(--stop)}
.yd-act{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.yd-parts{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.yd-btn{flex:none;min-height:44px;padding:0 16px;white-space:nowrap}
.yd-btn[disabled]{opacity:.55;cursor:default}
.yd-btn[aria-disabled="true"]{opacity:.55;pointer-events:none}
.yd-again{border:0;background:transparent;color:var(--muted);font-family:var(--f-s);font-size:12.5px;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 2px;min-height:32px}
.yd-again[disabled]{opacity:.5;cursor:default}
.yd-again:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.yd-foot{margin:16px 0 0;max-width:40em}
@media (max-width:560px){
  .yd-row{grid-template-columns:auto minmax(0,1fr)}
  .yd-act{grid-column:2;align-items:stretch}
  .yd-parts{justify-content:flex-start}
  .yd-btn{width:100%}
}
/* The promise, wherever work comes in: quiet, one line, never a banner. */
.yd-promise{margin:8px 0 0;font-size:12.5px}

/* House settings hub: a small label over each run of rows. */
.hs-g{margin:26px 0 0}
.hs-g > .homeh{margin:0 0 -8px}

/* Plan and billing, a Founding House (PROMPT-14): the Royalty mark. The
   citron, the crown and the word together, never color alone. */
.pb-founding{margin:0 0 18px}
.pb-card{padding:20px;border-radius:20px;background:var(--raised);border:1px solid var(--line);margin:0 0 18px}
.pb-card .pb-pn{font:400 26px/1.15 var(--f-d);letter-spacing:-.01em;margin:12px 0 2px}
.pb-card .pb-about{margin:0;font-size:15px;color:var(--muted);line-height:1.45}
.ob-founding{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:999px;
  background:#D9EF63;color:#111113;font:700 12.5px var(--f-s);letter-spacing:.01em}
.ob-crown{width:17px;height:14px;flex:none}
.ob-crown path{fill:#F5B81C;stroke:#A8740A;stroke-width:1.2;stroke-linejoin:round}
.ob-crown circle{fill:#FFE38A}
.pb-rows{border-top:1px solid var(--line)}
.pb-rows p{display:flex;justify-content:space-between;gap:14px;margin:0;padding:15px 2px;
  border-bottom:1px solid var(--line);font-size:15.5px}
.pb-rows span{color:var(--muted)}
.pb-rows b{font-weight:500;text-align:right;overflow-wrap:anywhere}
/* The code's hint, in the same monospace as the founding-codes page, so its
   four hidden characters read as four. */
.pb-rows b.pb-code{font:500 14.5px ui-monospace, Menlo, monospace;letter-spacing:.02em}
