/* Archteca · design system (ds). Every component on its own: no page around it, no rule that depends on where it
   sits. Built on tokens.css. Each class starts with ds- so it never collides with the site while the site moves over.
   The values come from what the site uses today; where the site disagrees with itself, the system picks one. */

.ds-reset, .ds-reset * { box-sizing: border-box; }
.ds-btn, .ds-ib, .ds-chip, .ds-tab, .ds-word, .ds-mi, .ds-sw, .ds-tone, .ds-tone-x, .ds-x, .ds-like, .ds-save, .ds-pick, .ds-back, .ds-act, .ds-lang, .ds-colorb {
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ds-ico { width: 16px; height: 16px; flex: none; }

/* ---------- Button: one shape, three heights, four looks.
   34px (.sm) in a list or a menu · 40px for the button · 48px (.lg) for the page's own action.
   Surface unless told otherwise; .dark is the one that commits, .line steps back, .danger destroys.
   Pressed, it gives a little (scale .96). .full takes the width; .busy turns while it works. ---------- */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8); height: var(--h-btn); padding: 0 var(--s-16); border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
  font-size: var(--fs-base); font-weight: 500; white-space: nowrap; text-decoration: none; transition: background var(--dur-quick), color var(--dur-quick), box-shadow var(--dur-quick), opacity var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-btn:hover { background: var(--surface-2); }
.ds-btn:active { transform: scale(var(--press)); transition-duration: var(--dur-instant); }
.ds-btn.sm { height: var(--h-btn-sm); padding: 0 var(--s-14); } .ds-btn.lg { height: var(--h-btn-lg); padding: 0 var(--s-24); font-size: var(--fs-base); }
.ds-btn.dark { background: var(--ink); color: var(--bg); } .ds-btn.dark:hover { background: var(--ink-hover); }
.ds-btn.line { background: var(--surface); } /* no outlined button: the ring belongs to the filter (.ds-chip.slice); "line" is kept as a name and drawn as the ground */
.ds-btn.danger { background: var(--danger); color: var(--bg); } .ds-btn.danger:hover { background: var(--danger-hover); }
.ds-btn.full { width: 100%; }
.ds-btn:disabled { opacity: .38; pointer-events: none; } .ds-btn[hidden] { display: none; }
.ds-btn.busy { pointer-events: none; } .ds-btn.busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ds-spin var(--dur-spin) linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-btn svg { flex: none; width: 18px; height: 18px; } .ds-btn.sm svg { width: 16px; height: 16px; }
.ds-btn.icon { width: var(--h-btn); padding: 0; } .ds-btn.icon.sm { width: var(--h-btn-sm); } .ds-btn.icon.lg { width: var(--h-btn-lg); }

/* ---------- Icon button: round, 36px, no fill until pointed at ---------- */
.ds-ib { position: relative; display: grid; place-items: center; width: var(--h-ib); height: var(--h-ib); border-radius: 50%; color: var(--ink); transition: background var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-ib:hover, .ds-ib[aria-expanded="true"] { background: var(--surface); } .ds-ib:active { transform: scale(var(--press-icon)); transition-duration: var(--dur-instant); }
.ds-ib .ds-ico { width: 18px; height: 18px; }
.ds-ib .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--like); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Menu: the one menu. 20px corners like every panel, 8px inside, rows of 44px (60px with two lines of
   text, 52px on a phone's sheet), 12px from the icon to the words, a ✓ at the far end of what is chosen.
   It fades in quickly and settles from 4px above, growing from the corner of the button that opened it. ---------- */
.ds-menu { position: absolute; z-index: var(--z-top); min-width: 240px; padding: var(--sp-menu); border-radius: var(--r-sheet); background: var(--bg); box-shadow: var(--shadow-raised);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: var(--ox, 50%) 0; pointer-events: none; transition: opacity var(--dur-quick) var(--ease-in), transform var(--dur-quick) var(--ease-in); } /* leaving: quick, easing in */
.ds-menu.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--dur-quick) var(--ease), transform var(--dur-base) var(--ease); }
.ds-mi { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: var(--h-row); padding: 0 var(--s-12); border-radius: var(--r-tile); color: var(--ink); font-size: var(--fs-base); text-align: left; transition: background var(--dur-instant); }
.ds-mi:hover, .ds-mi:focus-visible { background: var(--surface); } .ds-mi:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; } /* by keyboard: the ground and the ring */
.ds-mi svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.ds-mi > img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ds-mi > span { display: grid; gap: var(--s-2); min-width: 0; } .ds-mi > span > small { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.ds-mi:has(> span > small) { min-height: var(--h-row-2); } /* two lines of text */
.ds-mi > small { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); }
.ds-mi[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.ds-mi.danger, .ds-mi.danger svg { color: var(--danger); }
.ds-msep { height: 1px; margin: var(--s-8) var(--s-12); background: var(--line); }
.ds-mrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); min-height: var(--h-row); padding: 0 var(--s-4) 0 var(--s-12); font-size: var(--fs-base); } /* a setting inside a menu */

/* ---------- Field: the one field. As tall as the large button (48px), a pill, with 16px text so a phone does not zoom
   in. The surface at rest; white with a soft ring in use. The label is 13px, muted, 8px above. Long text takes 20px
   corners. Fields stack 20px apart (.ds-fields). ---------- */
.ds-fields { display: grid; gap: var(--s-20); }
.ds-fld { display: grid; gap: var(--s-8); }
.ds-fld > span { display: flex; justify-content: space-between; gap: var(--s-12); color: var(--muted); font-size: var(--fs-sm); }
.ds-fld > span small { color: var(--faint); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ds-inp { position: relative; display: flex; align-items: center; }
.ds-fld input, .ds-fld textarea, .ds-fld select { width: 100%; min-height: var(--h-field); padding: 0 var(--s-20); border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-input); line-height: 1.4; appearance: none; -webkit-appearance: none;
  transition: background var(--dur-quick), box-shadow var(--dur-quick); }
.ds-fld textarea { min-height: 96px; padding: var(--s-14) var(--s-20); border-radius: var(--r-sheet); resize: vertical; }
.ds-fld input:focus, .ds-fld textarea:focus, .ds-fld select:focus { outline: none; background: var(--bg); box-shadow: var(--shadow-field-focus); }
.ds-fld input::placeholder, .ds-fld textarea::placeholder { color: var(--faint); }
.ds-fld.bad input, .ds-fld.bad textarea { box-shadow: 0 0 0 1.5px var(--danger); background: var(--bg); }
.ds-eye { position: absolute; right: var(--s-6); display: grid; place-items: center; width: var(--h-ib); height: var(--h-ib); border-radius: 50%; color: var(--muted); } .ds-eye:hover { color: var(--ink); background: var(--surface-2); } .ds-eye svg { width: 18px; height: 18px; }
.ds-inp:has(.ds-eye) input { padding-right: var(--s-48); }
.ds-pre { position: absolute; left: var(--s-20); color: var(--muted); pointer-events: none; } .ds-inp:has(.ds-pre) input { padding-left: 36px; }
.ds-hint { color: var(--faint); font-size: var(--fs-sm); }

/* ---------- Language ---------- */
.ds-lang { display: inline-flex; align-items: center; gap: var(--s-6); height: 36px; padding: 0 var(--s-10); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; transition: background var(--dur-quick); }
.ds-lang:hover, .ds-lang[aria-expanded="true"] { background: var(--surface); } .ds-lang .ds-ico { width: 16px; height: 16px; }

/* ---------- Search field ---------- */
.ds-search { position: relative; width: 480px; max-width: 100%; }
.ds-sbar { display: flex; align-items: center; gap: var(--s-10); height: 44px; padding: 0 var(--s-8) 0 var(--s-16); border-radius: var(--r-pill); background: var(--surface); transition: background var(--dur-quick), box-shadow var(--dur-quick); }
.ds-search.on .ds-sbar { background: var(--bg); box-shadow: var(--shadow-raised); }
.ds-sbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-input); outline: none; }
.ds-sbar input::placeholder { color: var(--muted); }
.ds-sbar input::-webkit-search-cancel-button, .ds-sbar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.ds-kbd { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg); color: var(--faint); font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px var(--surface-2); }
.ds-search.on .ds-kbd { opacity: 0; }
.ds-sbar .ds-ib { width: 32px; height: 32px; } .ds-sbar .ds-ib:hover { background: var(--surface-2); }
.ds-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--z-panel); display: grid; gap: var(--s-14); padding: var(--s-16); border-radius: var(--r-sheet); background: var(--bg); box-shadow: var(--shadow-raised);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--dur-quick) var(--ease), transform var(--dur-base) var(--ease); }
.ds-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.ds-panel h4 { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.ds-panel .row { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.ds-sug { display: grid; gap: 2px; } .ds-sug .ds-mi b { font-weight: 600; } .ds-sug .ds-mi span { color: var(--muted); }
.ds-drop { display: grid; place-items: center; gap: var(--s-6); padding: var(--s-24); border-radius: var(--r-pop); background: var(--surface); color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.ds-drop b { color: var(--ink); font-size: var(--fs-base); font-weight: 500; }

/* ---------- Tabs: the one tab bar, wherever a view is switched (a page, a profile, search results, a dialog).
   15px medium, 32px apart (24 on phones), and a 2px line under the chosen label: it grows on a spring and leaves
   quickly. The count sits beside the label as a superscript. A bar wider than its place scrolls sideways. ---------- */
.ds-tabs { display: flex; gap: var(--s-32); min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tab { flex: none; display: inline-flex; align-items: center; height: 40px; color: var(--muted); font-size: var(--fs-base); font-weight: 500; white-space: nowrap; transition: color var(--dur-quick); }
.ds-tab:hover, .ds-tab[aria-selected="true"] { color: var(--ink); }
.ds-tab:disabled { color: var(--faint); cursor: default; }
.ds-tab .l { position: relative; }
.ds-tab .l::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--s-8)); height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform var(--dur-quick) var(--ease-in); }
.ds-tab[aria-selected="true"] .l::after { transform: none; transition: transform var(--dur-base) var(--spring); }
.ds-tab sup { margin-left: var(--s-2); color: var(--faint); font-size: var(--fs-sm); font-weight: 400; vertical-align: 6px; }
/* On a rule: the bar sits on a page's 1px line (the top of a profile) and the chosen tab's line lands on it. */
.ds-tabs.rule { overflow: visible; }
.ds-tabs.rule .ds-tab { height: auto; padding-bottom: var(--s-24); }
.ds-tabs.rule .ds-tab .l::after { bottom: calc(-1 * var(--s-24)); }
@media (max-width: 700px) { .ds-tabs { gap: var(--s-24); } }

/* ---------- Segmented: a setting with two or three answers (Mostrar · Ocultar, PT · EN). The white part is one piece
   that slides to the answer picked, growing or shrinking to its width; the words only change colour. ---------- */
.ds-seg { position: relative; isolation: isolate; display: inline-flex; flex: none; padding: 3px; border-radius: var(--r-pill); background: var(--surface); }
.ds-seg::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: var(--w, 0px); border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--shadow-selected);
  transform: translateX(var(--x, 0px)); transition: transform var(--dur-base) var(--ease), width var(--dur-base) var(--ease); }
.ds-seg.still::before { transition: none; } /* where it starts: no slide on the first paint */
.ds-seg button { height: 32px; padding: 0 var(--s-14); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; transition: color var(--dur-quick); }
.ds-seg button:hover, .ds-seg button[aria-checked="true"] { color: var(--ink); }
.ds-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Chip: the one pill that filters the view in front of you (a tab changes the view; a chip narrows it).
   --h-chip tall (36px; 44px on phones), 16px each side, 14px medium. At rest it is the surface; chosen, it turns to ink.
   The same pill takes four parts: a count as a superscript (.l > sup), a leading icon or swatch (.ic), a chevron when it
   opens a list (.dd, with .n for how many are ticked) and an × when it shows a filter in use (.x). .lg is the 44px one
   for sheets and the filters modal. ---------- */
.ds-chip { --h: var(--h-chip); --p: var(--pad-chip); flex: none; display: inline-flex; align-items: center; gap: var(--s-6); height: var(--h); padding: 0 var(--p); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: var(--fs-base); font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-quick), color var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-chip:hover, .ds-chip[aria-expanded="true"] { background: var(--surface-2); }
.ds-chip:active { transform: scale(var(--press)); transition-duration: var(--dur-instant); }
.ds-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ds-chip[aria-pressed="true"]:hover { background: var(--ink-hover); }
.ds-chip:disabled { opacity: .38; pointer-events: none; } .ds-chip[hidden] { display: none; }
.ds-chip.lg { --h: 44px; --p: var(--s-20); }
.ds-chip sup { margin-left: var(--s-2); color: var(--faint); font-size: var(--fs-sm); font-weight: 400; vertical-align: 6px; font-variant-numeric: tabular-nums; }
.ds-chip[aria-pressed="true"] sup { color: var(--glass-muted); }
.ds-chip svg { flex: none; width: 16px; height: 16px; }
.ds-chip img { width: 28px; height: 28px; margin-left: -10px; border-radius: 50%; object-fit: cover; }
.ds-chip.ic { padding-left: calc(var(--p) - var(--s-4)); gap: var(--s-8); }
.ds-chip.dd { padding-right: calc(var(--p) - var(--s-4)); }
.ds-chip.dd > svg:last-child { width: 12px; height: 12px; color: var(--muted); transition: transform var(--dur-base) var(--spring); }
.ds-chip.dd[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.ds-chip .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-chip.x { padding-right: calc(var(--p) - var(--s-6)); }
.ds-chip.x > svg:last-child { width: 12px; height: 12px; opacity: .6; }
/* Two levels of filter on a page (F03 in Paper "Filtros", chosen 2026-11-12). The plain chip above is the option you tick
   inside a sheet, a shortcut, or a filter in use (.x). On the page itself a filter is one of two forms, and the two never
   trade places, so the eye reads the level from the form:
   .slice  chooses the slice of the page, one at a time (Projetos' typology, Explorar's themes): an outlined pill, 40px
           (44px on phones), a light ring at rest, an ink ring and medium weight when chosen.
   .refine refines it (the kinds that open a list: Ambientes, Materiais, Cor): words, grey at rest, ink
           when something is picked in it (.has, with the count in .n), a ground only under the pointer or while open.
           The first of a row sits on the page's edge like the slices above it, its
           word inside (no pulling it out to the edge: its ground then stuck out past the column, 2026-11-12). */
.ds-chip.slice { --h: var(--h-btn); --p: var(--s-16); background: var(--bg); color: var(--ink); font-weight: 400; box-shadow: var(--ring-chip); transition: box-shadow var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-chip.slice:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--faint); }
.ds-chip.slice[aria-pressed="true"] { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: var(--ring-chip-on); }
.ds-chip.slice[aria-pressed="true"] sup { color: var(--muted); }
.ds-chip.refine { --h: var(--h-btn); --p: var(--s-16); background: none; /* the slice's own size: the ground under the pointer is the same pill (2026-11-12) */ color: var(--muted); font-weight: 400; box-shadow: none; }
.ds-chip.refine:is(:hover, [aria-expanded="true"]) { background: var(--surface); color: var(--ink); }
.ds-chip.refine.has { color: var(--ink); font-weight: 500; }
.ds-chip.refine.has.dd > svg:last-child { color: var(--ink); }
/* The door to every filter (Todos os filtros; Filtros on the phone) is a grey button (.ds-btn), not a filter form (2026-11-12). */
@media (max-width: 700px) { .ds-chip.slice, .ds-chip.refine { --h: var(--h-chip); } }
.ds-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.ds-chips.run { flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .ds-chips.run::-webkit-scrollbar { display: none; } /* one line that scrolls sideways */

/* ---------- Tag: a word that only informs (Privada, Em análise, Lote estreito). 28px, 13px, never pressed.
   On a photo (.on-photo: Plantas) it is 24px and white, so it stays out of the picture's way. ---------- */
.ds-tag { display: inline-flex; align-items: center; gap: var(--s-4); height: 28px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.ds-tag svg { flex: none; width: 13px; height: 13px; }
.ds-tag.on-photo { height: 24px; padding: 0 var(--s-10); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.ds-tag.on-photo svg { width: 11px; height: 11px; }

/* ---------- Colour: the button, the tones, a swatch ---------- */
/* The colour button is a refining chip (.ds-chip.ic.refine) with a drop or the picked swatch, and an × of its own to let the colour go. */
.ds-colorb .sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .12); }
.ds-colorb .ds-x { display: grid; place-items: center; width: 20px; height: 20px; margin-right: calc(-1 * var(--s-6)); border-radius: 50%; } .ds-colorb .ds-x:hover { background: var(--bg); } .ds-colorb .ds-x svg { width: 10px; height: 10px; }
.ds-tonebox { display: grid; gap: var(--s-12); padding: var(--s-8); }
.ds-tonebox b { font-size: var(--fs-base); }
.ds-tonegrid { display: grid; grid-template-columns: repeat(6, 28px); gap: var(--s-8); }
.ds-tonegrid button { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .1); transition: transform var(--dur-base) var(--spring); }
.ds-tonegrid button:hover { transform: scale(1.12); } .ds-tonegrid button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.ds-sw { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); transition: transform var(--dur-base) var(--spring); }
.ds-sw:hover { transform: translateY(-2px); } .ds-sw:active { transform: scale(var(--press-icon)); }
.ds-swrow { display: flex; gap: var(--s-6); }

/* ---------- Tones of a profile: a box as tall as a large button ---------- */
.ds-tones { display: inline-flex; align-items: center; height: 48px; padding: 0 var(--s-14); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--surface-2); transition: padding var(--dur-base) var(--spring); }
.ds-tones.on { padding-right: var(--s-8); }
.ds-tone { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--c); transition: margin var(--dur-base) var(--spring), opacity var(--dur-quick), box-shadow var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-tone + .ds-tone { margin-left: -4px; }
.ds-tones:not(.on) .ds-tone:hover { transform: translateY(-3px); }
.ds-tones.on .ds-tone[aria-pressed="true"]:not(:first-child), .ds-tones.on .ds-tone[aria-pressed="true"] + .ds-tone { margin-left: 4px; }
.ds-tones.on .ds-tone:not([aria-pressed="true"]) { opacity: .5; } .ds-tones.on .ds-tone:not([aria-pressed="true"]):hover { opacity: 1; }
.ds-tones.on .ds-tone[aria-pressed="true"] { z-index: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.ds-tone-x { display: inline-flex; align-items: center; gap: var(--s-6); max-width: 160px; height: 30px; margin-left: var(--s-12); padding: 0 var(--s-8) 0 var(--s-12); overflow: hidden; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: max-width var(--dur-base) var(--ease), opacity var(--dur-quick), margin var(--dur-base) var(--ease), padding var(--dur-base) var(--ease); }
.ds-tone-x .ds-ico { width: 12px; height: 12px; }
.ds-tones:not(.on) .ds-tone-x { max-width: 0; margin-left: 0; padding-inline: 0; opacity: 0; pointer-events: none; }

/* ---------- The index: large words ---------- */
.ds-words { margin: 0; font-size: var(--fs-index); font-weight: 500; letter-spacing: -.035em; line-height: 1.32; }
.ds-word { display: inline; margin-right: .62em; color: var(--ink); text-align: left; transition: color var(--dur-quick); }
.ds-word sup { margin-left: .08em; color: var(--faint); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; vertical-align: 1.5em; }
.ds-words:hover .ds-word { color: var(--faint); } .ds-words .ds-word:hover, .ds-words .ds-word:focus-visible { color: var(--ink); }
.ds-words[data-picked] .ds-word:not([aria-pressed="true"]) { color: var(--faint); }
.ds-peek { position: fixed; left: 0; top: 0; z-index: var(--z-top); width: 180px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--surface); box-shadow: var(--shadow-overlay); pointer-events: none;
  opacity: 0; scale: .9; transition: opacity var(--dur-quick) var(--ease), scale var(--dur-base) var(--spring); }
.ds-peek.on { opacity: 1; scale: 1; } .ds-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Saving ---------- */
.ds-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-mark); transition: transform var(--dur-base) var(--spring), background var(--dur-quick), color var(--dur-quick); }
.ds-mark .ds-ico { width: 17px; height: 17px; } .ds-mark:active { transform: scale(var(--press-icon)); }
.ds-mark[aria-pressed="true"] { background: var(--ink); color: var(--bg); } .ds-mark[aria-pressed="true"] path { fill: currentColor; }
.ds-savebar { display: inline-flex; align-items: stretch; }
.ds-pick { display: inline-flex; align-items: center; gap: var(--s-8); height: 40px; padding: 0 var(--s-10) 0 var(--s-6); border-radius: var(--r-pill) 0 0 var(--r-pill); background: var(--surface); font-size: var(--fs-base); font-weight: 500; transition: background var(--dur-quick); }
.ds-pick:hover, .ds-pick[aria-expanded="true"] { background: var(--surface-2); }
.ds-pick .cv { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-img); background: var(--bg); overflow: hidden; } .ds-pick .cv img { width: 100%; height: 100%; object-fit: cover; }
.ds-pick .ds-ico { width: 14px; height: 14px; color: var(--muted); }
.ds-save { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-16); border-radius: 0 var(--r-pill) var(--r-pill) 0; background: var(--ink); color: var(--bg); font-size: var(--fs-base); font-weight: 600; transition: background var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-save:active { transform: scale(.96); } .ds-save[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }

/* ---------- Doing with a photo ---------- */
.ds-like { display: inline-flex; align-items: center; gap: var(--s-6); height: 40px; padding: 0 var(--s-10); border-radius: var(--r-pill); font-size: var(--fs-base); font-weight: 600; font-variant-numeric: tabular-nums; transition: background var(--dur-quick); }
.ds-like:hover { background: var(--surface); } .ds-like .ds-ico { width: 20px; height: 20px; transition: transform var(--dur-base) var(--spring); }
.ds-like[aria-pressed="true"] .ds-ico { color: var(--like); transform: scale(1.12); } .ds-like[aria-pressed="true"] .ds-ico path { fill: currentColor; }
.ds-faces { display: inline-flex; align-items: center; gap: var(--s-10); font-size: var(--fs-sm); color: var(--muted); }
.ds-faces .row { display: inline-flex; } .ds-faces img { position: relative; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 2px var(--bg); transition: transform var(--dur-base) var(--spring); }
.ds-faces img + img { margin-left: -8px; } .ds-faces img:hover { z-index: 1; transform: translateY(-4px); } .ds-faces b { color: var(--ink); font-weight: 600; }
.ds-credit { margin: 0; overflow: hidden; color: var(--faint); font-size: var(--fs-sm); line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; } /* one line, never more (2026-11-13) */

/* ---------- People ---------- */
.ds-av { position: relative; display: inline-grid; flex: none; }
.ds-av > img { width: var(--size, 64px); height: var(--size, 64px); border-radius: 50%; object-fit: cover; background: var(--surface); }
.ds-av .seal { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 40%; height: 40%; border-radius: 50%; background: #ECE7DF; box-shadow: 0 0 0 3px var(--bg); color: #1A1917; font-size: var(--fs-sm); font-weight: 700; }
.ds-stats { display: flex; gap: var(--s-6); margin: 0; color: var(--muted); font-size: var(--fs-base); } .ds-stats b { color: var(--ink); font-weight: 500; } .ds-stats span + span::before { content: "·"; margin-right: var(--s-6); color: var(--faint); }

/* ---------- Navigating ---------- */
.ds-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); transition: background var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-back:hover { background: var(--surface-2); } .ds-back:active { transform: scale(.92); } .ds-back .ds-ico { width: 18px; height: 18px; transition: transform var(--dur-quick) var(--ease); } .ds-back:hover .ds-ico { transform: translateX(-2px); }
.ds-act { display: inline-flex; align-items: center; gap: var(--s-8); height: 40px; padding: 0 var(--s-16) 0 var(--s-12); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-base); font-weight: 500; transition: background var(--dur-quick), transform var(--dur-base) var(--spring); }
.ds-act:hover { background: var(--surface-2); } .ds-act:active { transform: scale(.96); } .ds-act .ds-ico { width: 18px; height: 18px; }
/* The group that opens a list is a chip with a chevron: .ds-chip.dd (above). */
.ds-check { display: flex; align-items: center; gap: var(--s-12); width: 100%; min-height: var(--h-row); padding: 0 var(--s-12); border-radius: var(--r-tile); font-size: var(--fs-base); cursor: pointer; }
.ds-check:hover { background: var(--surface); } .ds-check input { width: 16px; height: 16px; accent-color: var(--ink); } .ds-check small { margin-left: auto; color: var(--faint); }

/* ---------- Cards ---------- */
.ds-card { position: relative; display: block; width: 260px; cursor: zoom-in; }
.ds-card .ph { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--surface); }
.ds-card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-card .ds-mark { position: absolute; top: 10px; right: 10px; opacity: 0; transform: scale(.9); transition: opacity var(--dur-quick) var(--ease), transform var(--dur-base) var(--spring); }
.ds-card:hover .ds-mark, .ds-card:focus-within .ds-mark, .ds-card .ds-mark[aria-pressed="true"] { opacity: 1; transform: none; }
.ds-card .cap { display: grid; gap: 2px; padding: var(--s-10) 2px 0; font-size: var(--fs-sm); } .ds-card .cap b { font-weight: 500; font-size: var(--fs-base); } .ds-card .cap span { color: var(--muted); }
.ds-card.proj { width: 420px; } .ds-card.proj .ph { aspect-ratio: 16 / 10; }
.ds-card.proj .ph img { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease); } .ds-card.proj .ph img.on { opacity: 1; }
.ds-card.proj .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; opacity: 0; transition: opacity var(--dur-quick); }
.ds-card.proj:hover .dots { opacity: 1; } .ds-card.proj .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); } .ds-card.proj .dots i.on { background: #fff; }
.ds-card.piece .ph { aspect-ratio: 1; background: #EFEEEB; } .ds-card.piece .ph img { object-fit: contain; padding: 14%; mix-blend-mode: multiply; }

/* ---------- Divider with a grip: drag it, it settles on 40, 50 or 60 ---------- */
.ds-split { position: relative; display: flex; width: 520px; height: 260px; overflow: hidden; border-radius: var(--r-sheet); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); user-select: none; }
.ds-split .pane { display: grid; place-items: center; color: var(--faint); font-size: var(--fs-sm); }
.ds-split .a { width: var(--at, 50%); background: var(--bg); transition: width var(--dur-base) var(--ease); } .ds-split .b { flex: 1; background: var(--surface); }
.ds-split.drag .a { transition: none; }
.ds-grip { position: absolute; top: 0; bottom: 0; left: var(--at, 50%); width: 17px; margin-left: -8px; cursor: col-resize; touch-action: none; transition: left var(--dur-base) var(--ease); }
.ds-split.drag .ds-grip { transition: none; }
.ds-grip::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: .07; transition: opacity var(--dur-quick); }
.ds-grip i { position: absolute; left: 50%; top: 50%; width: 6px; height: 32px; margin: -16px 0 0 -3px; border-radius: var(--r-pill); background: var(--bg); box-shadow: 0 0 0 1px rgba(17, 17, 17, .14), var(--shadow-float); transition: height var(--dur-base) var(--ease), margin var(--dur-base) var(--ease); }
.ds-grip:hover::before, .ds-split.drag .ds-grip::before { opacity: .14; } .ds-grip:hover i { height: 44px; margin-top: -22px; } .ds-split.drag .ds-grip i { height: 64px; margin-top: -32px; }
.ds-grip b { position: absolute; left: 50%; top: calc(50% + 40px); padding: 3px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, -4px); transition: opacity var(--dur-quick), transform var(--dur-quick); }
.ds-split.drag .ds-grip b { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Logo and toast ---------- */
/* ---------- MarkFill: the mark fills from the bottom while something with a known size arrives ---------- */
.ds-fill { position: relative; display: inline-block; flex: none; height: 40px; aspect-ratio: 330 / 200; color: var(--ink); }
.ds-fill svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.ds-fill svg:first-child { opacity: .14; }
.ds-fill svg + svg { clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0); transition: clip-path var(--dur-base) var(--ease); }
.ds-fill.loop svg + svg { animation: ds-fill calc(var(--dur-spin) * 2) var(--ease) infinite; }
@keyframes ds-fill { 0% { clip-path: inset(100% 0 0 0); } 45%, 55% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }
@media (prefers-reduced-motion: reduce) { .ds-fill.loop svg + svg { animation: none; clip-path: inset(50% 0 0 0); } }

.ds-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; transition: transform var(--dur-instant) var(--spring); }
.ds-logo:active { transform: scale(.96); }
.ds-logo svg { height: var(--logo-h); width: auto; aspect-ratio: 1; }
.ds-logo svg rect { transform-box: fill-box; transform-origin: left center; transition: transform var(--dur-base) var(--ease); }
/* The mark's four arrangements: one part grows as another shrinks, the gaps and the total width kept (numbers in the
   mark's units). Never a tilt, never a turn (2026-11-14, Pedro: "tirar o hover que gira… deixar somente esse que vai
   crescendo um e o outro"). With a mouse, each hover takes one, never the same twice in a row (data-hv, from ds.js);
   on a touch screen there is no hover: the mark sits in one arrangement, a new one each time the page is loaded or
   pulled to refresh (data-pos, from ds.js). */
@media (hover: hover) {
  .ds-logo:not([data-hv]):hover svg rect:nth-child(1) { transform: scaleX(.32); } .ds-logo:not([data-hv]):hover svg rect:nth-child(2) { transform: translateX(-136px) scaleX(3.125); }
  :is(.mark, .ds-logo)[data-hv="1"]:hover svg rect:nth-child(1) { transform: scaleX(.32); } :is(.mark, .ds-logo)[data-hv="1"]:hover svg rect:nth-child(2) { transform: translateX(-136px) scaleX(3.125); }
  :is(.mark, .ds-logo)[data-hv="2"]:hover svg rect:nth-child(1) { transform: scaleX(.2); } :is(.mark, .ds-logo)[data-hv="2"]:hover svg rect:nth-child(2) { transform: translateX(-160px) scaleX(3.125); } :is(.mark, .ds-logo)[data-hv="2"]:hover svg rect:nth-child(3) { transform: translateX(-24px) scaleX(1.6); }
  :is(.mark, .ds-logo)[data-hv="3"]:hover svg rect:nth-child(1) { transform: scaleX(.32); } :is(.mark, .ds-logo)[data-hv="3"]:hover svg rect:nth-child(2) { transform: translateX(-136px) scaleX(.625); } :is(.mark, .ds-logo)[data-hv="3"]:hover svg rect:nth-child(3) { transform: translateX(-160px) scaleX(5); }
  :is(.mark, .ds-logo)[data-hv="4"]:hover svg rect:nth-child(1) { transform: scaleX(.2); } :is(.mark, .ds-logo)[data-hv="4"]:hover svg rect:nth-child(2) { transform: translateX(-160px); } :is(.mark, .ds-logo)[data-hv="4"]:hover svg rect:nth-child(3) { transform: translateX(-160px) scaleX(5); }
}
@media (hover: none) {
  :is(.mark, .ds-logo)[data-pos="1"] svg rect:nth-child(1) { transform: scaleX(.32); } :is(.mark, .ds-logo)[data-pos="1"] svg rect:nth-child(2) { transform: translateX(-136px) scaleX(3.125); }
  :is(.mark, .ds-logo)[data-pos="2"] svg rect:nth-child(1) { transform: scaleX(.2); } :is(.mark, .ds-logo)[data-pos="2"] svg rect:nth-child(2) { transform: translateX(-160px) scaleX(3.125); } :is(.mark, .ds-logo)[data-pos="2"] svg rect:nth-child(3) { transform: translateX(-24px) scaleX(1.6); }
  :is(.mark, .ds-logo)[data-pos="3"] svg rect:nth-child(1) { transform: scaleX(.32); } :is(.mark, .ds-logo)[data-pos="3"] svg rect:nth-child(2) { transform: translateX(-136px) scaleX(.625); } :is(.mark, .ds-logo)[data-pos="3"] svg rect:nth-child(3) { transform: translateX(-160px) scaleX(5); }
  :is(.mark, .ds-logo)[data-pos="4"] svg rect:nth-child(1) { transform: scaleX(.2); } :is(.mark, .ds-logo)[data-pos="4"] svg rect:nth-child(2) { transform: translateX(-160px); } :is(.mark, .ds-logo)[data-pos="4"] svg rect:nth-child(3) { transform: translateX(-160px) scaleX(5); }
}
.ds-logo span { font: 800 28px/1 'Archivo', var(--font); font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.ds-toast { position: fixed; left: 50%; bottom: 28px; z-index: var(--z-toast); padding: 12px 18px; border-radius: var(--r-pill); background: var(--glass-toast); color: var(--ink); font-size: var(--fs-base); font-weight: 500; -webkit-backdrop-filter: var(--glass-panel-frost); backdrop-filter: var(--glass-panel-frost); box-shadow: var(--shadow-raised);
  opacity: 0; transform: translate(-50%, var(--nudge)); pointer-events: none; transition: opacity var(--dur-quick) var(--ease), transform var(--dur-base) var(--ease); }
.ds-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ds-toast.inline { position: relative; left: auto; bottom: auto; display: inline-block; transform: translateY(var(--nudge)); } .ds-toast.inline.on { transform: none; }

@media (prefers-reduced-motion: reduce) { .ds-reset *, [class^="ds-"] { transition-duration: var(--dur-instant) !important; } }

/* ---------- Empty state (ds.js Empty): a drawing of our own shapes, a title, one line, at most two buttons ---------- */
.ds-empty { display: grid; justify-items: center; gap: var(--s-8); padding: var(--s-64) var(--s-20); text-align: center; color: var(--muted); }
.ds-empty.sm { padding: var(--s-40) var(--s-20); }
.ds-empty > b { color: var(--ink); font-size: var(--fs-base); font-weight: 600; }
.ds-empty > p { margin: 0; max-width: 40ch; line-height: 1.5; }
.ds-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-buttons); margin-top: var(--s-16); }
.ds-empty-art { display: flex; gap: var(--s-4); margin-bottom: var(--s-16); }
.ds-empty-art i { display: block; background: var(--surface-2); border-radius: var(--r-img); animation: ds-empty-in var(--dur-base) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ds-empty-art.grid { align-items: flex-start; }
.ds-empty-art.grid > span { display: grid; gap: var(--s-4); width: 48px; }
.ds-empty-art.grid > span:nth-child(2) { margin-top: var(--s-12); }
.ds-empty-art.coll { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-2); width: 136px; aspect-ratio: 4 / 3; }
.ds-empty-art.coll i:first-child { grid-row: 1 / 3; }
.ds-empty-art.people { gap: 0; }
.ds-empty-art.people i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); }
.ds-empty-art.people i + i { margin-left: calc(-1 * var(--s-10)); }
.ds-empty-art.people i.add { background: var(--bg); color: var(--muted); box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 1.5px var(--surface-2); }
.ds-empty-art.people i.add svg { width: 18px; height: 18px; }
@keyframes ds-empty-in { from { opacity: 0; transform: translateY(var(--nudge)); } }
@media (prefers-reduced-motion: reduce) { .ds-empty-art i { animation: none; } }
