/* The bag's Features tab (public/bag-features.js) and the quiet desk's button in the dock: the bag's own glass,
   amber and lines (public/bag.css), one card per feature, its icon in a warm well. */

.ft-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 8px; }
.ft-head b { font-size: 13.5px; }
.ft-head small { color: var(--hud-muted); font-size: 12px; line-height: 1.4; }
.ft-list { display: flex; flex-direction: column; gap: 8px; }
.ft-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon text act" "extra extra extra"; align-items: center; gap: 4px 12px; padding: 12px; border: 1px solid var(--hud-line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); transition: border-color .2s ease, background .2s ease; }
.ft-card.owned { border-color: color-mix(in srgb, var(--accent) 38%, var(--hud-line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.ft-card.asking { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.ft-icon { grid-area: icon; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); color: var(--accent); }
.ft-card.locked .ft-icon { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--hud-muted); }
.ft-icon .ui-ico { width: 24px; height: 24px; stroke-width: 1.7; }
.ft-text { grid-area: text; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ft-name { font-size: 13.5px; line-height: 1.25; color: var(--ink); }
.ft-line { margin: 0; color: var(--hud-muted); font-size: 12.5px; line-height: 1.4; }
.ft-src, .ft-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 11.5px; line-height: 1.3; }
.ft-src { color: var(--ink); font-weight: 650; }
.ft-lock { color: var(--hud-muted); }
.ft-lock .ui-ico { width: 11px; height: 11px; }
.ft-act { grid-area: act; display: flex; align-items: stretch; gap: 6px; }
.ft-act .btn { min-height: 44px; justify-content: center; padding: 3px 12px; font-size: 12.5px; white-space: normal; line-height: 1.2; }
.ft-act .btn:disabled { background: transparent; color: var(--hud-muted); border-style: dashed; cursor: default; }
.bag .ft-switch { min-height: 44px; min-width: 84px; justify-content: center; background: color-mix(in srgb, var(--panel) 80%, transparent); }
.ft-switch[aria-checked="true"] { border-color: var(--accent); }
.ft-switch[aria-checked="true"] i { background: var(--accent); }
.ft-extra { grid-area: extra; margin-top: 8px; }
.ft-said { min-height: 1.3em; margin: 0; padding: 8px 4px; color: var(--ink); font-size: 12.5px; }

/* the weekly card's maker, in its feature's card (public/weekly-card.js) */
.wk { display: flex; flex-direction: column; gap: 8px; }
.wk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-row .btn { flex: 1 1 140px; min-height: 44px; justify-content: center; font-size: 13px; }
.wk-pic { display: block; width: min(100%, 280px); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 12px; box-shadow: 0 6px 22px #0003; background: #0b0e13; }
.wk-pic[hidden] { display: none; }
.wk-said { margin: 0; color: var(--hud-muted); font-size: 12px; min-height: 1.3em; }

/* the quiet desk's button in the dock: an icon drawn here, not one of the rendered hud-icons */
.dk .ft-dock-ico { width: 30px; height: 30px; stroke-width: 1.7; }
.dk.on .ft-dock-ico { color: var(--accent); }

@media (max-width: 760px) {
  .ft-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon text" "act act" "extra extra"; }
  .ft-act { justify-content: flex-end; margin-top: 6px; }
  .ft-act .btn, .bag .ft-switch { flex: 1 1 auto; }
  .bag[data-tab="features"] .bg-me { display: none; }
  .dk .ft-dock-ico { width: 24px; height: 24px; }
  /* Seven buttons (the quiet desk's and a street's building switch with the rest) are wider than a phone: they
     share the row instead of running off it. Six still sit at their own 56 px. */
  .nav-dock .dk { flex: 0 1 56px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .ft-card { transition: none; } }
