/* The carousel from labs.google: cards on the rim of a large wheel that turns with arrows, drags, and keys
   (js/labs-home.js). Used on the homepage and the pricing page. Without the script the cards are a plain
   scrolling row. */
.labs-round-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--separator-opaque); border-radius: 50%; background: transparent; color: var(--label-primary); font: inherit; font-size: 18px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.labs-round-btn:hover { background: var(--label-primary); color: var(--bg-primary); transform: scale(1.06); }
.labs-round-btn:disabled { opacity: .35; cursor: default; transform: none; background: transparent; color: var(--label-primary); }
.labs-wheel { --card-w: 370px; position: relative; }
.labs-wheel__track { display: flex; gap: 24px; margin: 0; padding: 24px max(24px, calc((100% - 1100px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; }
.labs-wheel__track > li { display: flex; flex: 0 0 var(--card-w); scroll-snap-align: center; }
.labs-wheel__track > li[hidden] { display: none; }
.labs-wheel.is-wheel { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.labs-wheel.is-dragging { cursor: grabbing; }
.labs-wheel.is-wheel .labs-wheel__track { position: relative; display: grid; padding: 24px 0 var(--wheel-dip, 80px); overflow: visible; }
.labs-wheel.is-wheel .labs-wheel__track > li { position: relative; grid-area: 1 / 1; left: 50%; width: var(--card-w); will-change: transform; }
.labs-wheel.is-wheel .labs-wheel__track > li:not(.is-centered) { cursor: pointer; }
/* Flat (the plans, when all fit): a plain row to compare, so no grab cursor and text can be selected. */
.labs-wheel.is-flat { cursor: auto; user-select: auto; -webkit-user-select: auto; }
.labs-wheel__controls { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.labs-wheel__nav { display: flex; gap: 16px; }
.labs-wheel__nav[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .labs-round-btn { transition: none; } }

/* The cards on the wheel: white, a tinted art panel on top, then the tag, title, one line, and a link. */
[data-tone="amber"]  { --tone-bg: var(--labs-amber-bg);  --tone-accent: var(--labs-amber-accent); }
[data-tone="coral"]  { --tone-bg: var(--labs-coral-bg);  --tone-accent: var(--labs-coral-accent); }
[data-tone="mint"]   { --tone-bg: var(--labs-mint-bg);   --tone-accent: var(--labs-mint-accent); }
[data-tone="indigo"] { --tone-bg: var(--labs-indigo-bg); --tone-accent: var(--labs-indigo-accent); }
[data-tone="violet"] { --tone-bg: var(--labs-violet-bg); --tone-accent: var(--labs-violet-accent); }
[data-tone="cyan"]   { --tone-bg: var(--labs-cyan-bg);   --tone-accent: var(--labs-cyan-accent); }
.labs-card { display: flex; flex: 1; flex-direction: column; padding: 12px; border-radius: 26px; background: var(--labs-card-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -24px rgba(0, 0, 0, .35); }
.labs-card__art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--tone-bg); color: var(--tone-accent); }
.labs-card__art svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.labs-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 10px 10px; }
.labs-card__tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--label-primary) 8%, transparent); color: var(--tone-accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.labs-card__title { margin: 0 0 8px; color: var(--label-primary); font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.labs-card__desc { flex-grow: 1; margin: 0 0 12px; color: var(--label-secondary); font-size: clamp(13px, 1.1vw, 15px); line-height: 1.45; }
.labs-card__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 16px 0 18px; border: 1px solid var(--separator-opaque); border-radius: 999px; color: var(--label-primary); font-size: 13px; font-weight: 500; text-decoration: none; transition: background .4s var(--labs-ease), border-color .4s var(--labs-ease); }
.labs-card__link > span { transition: transform .4s var(--labs-ease); }
.labs-card__link:hover, .labs-card__link:focus-visible { border-color: transparent; background: var(--tone-bg); color: var(--label-primary); text-decoration: none; }
.labs-card__link:hover > span, .labs-card__link:focus-visible > span { transform: translateX(4px); }
/* Sizes measured on labs.google: 370px cards, a square art panel inset 24px, a 26px title and 16px text on
   wide screens; 235px cards, 16px titles, and 12-13px text on phones. */
.labs-card { padding: 24px; border-radius: 26px; }
.labs-card__art { aspect-ratio: 1; border-radius: 16px; }
.labs-card__art svg { width: 30%; height: auto; }
.labs-card__body { padding: 22px 0 0; }
.labs-card__title { font-size: 26px; line-height: 1.15; }
.labs-card__desc { font-size: 16px; line-height: 1.45; }
@media (max-width: 700px) {
  .labs-wheel { --card-w: 235px; }
  .labs-card { padding: 16px; }
  .labs-card__art { aspect-ratio: 203 / 187; }
  .labs-card__body { padding-top: 16px; }
  .labs-card__title { font-size: 16px; }
  .labs-card__desc { font-size: 13px; }
  .labs-card__link { min-height: 40px; font-size: 12px; }
}

/* ---------- Card scenes ---------- */
/* Each card's picture can be a small screen from the Yortana app (js/labs-home.js plays it): the app's iOS
   look, with white surfaces, the system blue, and green, orange, and purple status pills. Everything is
   sized in em from the panel's size, so a scene keeps its layout from the 370px card down to the
   235px phone card. The markup is the finished frame, which is also what shows without the script. */
.labs-card__art { position: relative; overflow: hidden; container-type: size; }
.ys {
  --ys-surface: #fff; --ys-fill: #f2f2f7; --ys-line: rgba(60, 60, 67, .14); --ys-text: #1c1c1e; --ys-sub: rgba(60, 60, 67, .76);
  --ys-blue: #005eb8; --ys-blue-soft: rgba(0, 94, 184, .1); --ys-green: #248a3d; --ys-green-soft: rgba(52, 199, 89, .16);
  --ys-orange: #b25000; --ys-orange-soft: rgba(255, 149, 0, .18); --ys-purple: #8e3fbf; --ys-purple-soft: rgba(175, 82, 222, .15);
  --ys-ease: cubic-bezier(.22, 1, .36, 1);
  position: absolute; inset: 0; display: grid; padding: 7%;
  color: var(--ys-text); font-family: var(--font-sans); font-size: clamp(7px, min(5.2cqw, 4.5cqh), 17px); line-height: 1.25; text-align: left;
}
/* Dark: #0a84ff fails AA both as text on the dark card and under white labels, so text takes the lighter
   #5aa9ff and white-on-blue surfaces take the deeper --ys-blue-fill. */
:root[data-theme="dark"] .ys {
  --ys-surface: #2c2c2e; --ys-fill: #3a3a3c; --ys-line: rgba(235, 235, 245, .14); --ys-text: #fff; --ys-sub: rgba(235, 235, 245, .62);
  --ys-blue: #5aa9ff; --ys-blue-fill: #0062cc; --ys-blue-soft: rgba(10, 132, 255, .12); --ys-green: #30d158; --ys-green-soft: rgba(48, 209, 88, .18);
  --ys-orange: #ff9f0a; --ys-orange-soft: rgba(255, 159, 10, .2); --ys-purple: #bf5af2; --ys-purple-soft: rgba(191, 90, 242, .2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ys {
    --ys-surface: #2c2c2e; --ys-fill: #3a3a3c; --ys-line: rgba(235, 235, 245, .14); --ys-text: #fff; --ys-sub: rgba(235, 235, 245, .62);
    --ys-blue: #5aa9ff; --ys-blue-fill: #0062cc; --ys-blue-soft: rgba(10, 132, 255, .12); --ys-green: #30d158; --ys-green-soft: rgba(48, 209, 88, .18);
    --ys-orange: #ff9f0a; --ys-orange-soft: rgba(255, 159, 10, .2); --ys-purple: #bf5af2; --ys-purple-soft: rgba(191, 90, 242, .2);
  }
}
.ys p { margin: 0; }
.ys ol { margin: 0; padding: 0; }
.ys b { font-weight: 600; }
.ys .ys-i { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ys-screen { display: flex; flex-direction: column; gap: .55em; justify-content: center; min-width: 0; overflow: hidden; padding: 1em; border-radius: 1.35em; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line), 0 .15em .4em rgba(0, 0, 0, .06), 0 1.4em 2.8em -1.2em rgba(0, 0, 0, .4); transform: var(--cam, none); transition: opacity .45s ease, transform 1.4s cubic-bezier(.65, 0, .35, 1); }
.ys-head { display: flex; flex-wrap: wrap; align-items: center; gap: .15em .4em; font-size: 1.1em; }
.ys-head .ys-meta { flex-basis: 100%; font-size: .8em; }
.ys-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; }
.ys-row--2 { display: grid; grid-template-columns: 1fr 1fr; }
.ys-sub { display: block; overflow: hidden; color: var(--ys-text); font-size: .92em; white-space: nowrap; text-overflow: ellipsis; }
.ys-meta { display: inline-flex; align-items: center; gap: .3em; color: var(--ys-sub); font-size: .85em; }
.ys-cap { display: block; color: var(--ys-sub); font-size: .72em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ys-blue { color: var(--ys-blue); }
.ys-green { color: var(--ys-green); }

/* One cell holding several states; only the current one shows. */
.ys-stack { display: inline-grid; justify-items: start; }
.ys-stack > * { grid-area: 1 / 1; }
.ys-stack--end { justify-items: end; }
.ys-stack--left { display: grid; }

/* Parts */
.ys-field, .ys-input { display: flex; align-items: center; gap: .45em; min-height: 2.3em; padding: .4em .75em; border-radius: 999px; background: var(--ys-fill); font-size: .95em; }
.ys-field .ys-i { color: var(--ys-sub); }
.ys-input { flex-direction: column; align-items: stretch; justify-content: center; gap: .1em; border-radius: .75em; }
.ys-input > span:last-child { min-height: 1.25em; }
.ys-chip { display: inline-flex; align-items: center; gap: .35em; padding: .35em .75em; border-radius: 999px; background: var(--ys-fill); font-size: .85em; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ys-ease), background-color .2s; }
.ys-chip--on { background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; }
.ys-chip--line { justify-self: start; align-self: flex-start; background: transparent; box-shadow: inset 0 0 0 1px var(--ys-line); color: var(--ys-blue); }
.ys-pill { padding: .3em .65em; border-radius: .6em; font-size: .78em; font-weight: 600; white-space: nowrap; }
.ys-pill--orange { background: var(--ys-orange-soft); color: var(--ys-orange); }
.ys-pill--blue { background: var(--ys-blue-soft); color: var(--ys-blue); }
.ys-pill--green { background: var(--ys-green-soft); color: var(--ys-green); }
.ys-pill--purple { background: var(--ys-purple-soft); color: var(--ys-purple); }
.ys-bubble { max-width: 86%; padding: .5em .8em; border-radius: 1.1em 1.1em 1.1em .35em; background: var(--ys-fill); font-size: .95em; }
.ys-bubble--me { align-self: flex-end; border-radius: 1.1em 1.1em .35em 1.1em; background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; }
.ys-bubble--me .ys-cap { color: rgba(255, 255, 255, .78); }
.ys-bubble b { font-size: 1.15em; }
.ys-banner, .ys-tip, .ys-note { display: flex; align-items: center; gap: .5em; padding: .55em .75em; border-radius: .8em; font-size: .9em; }
.ys-banner--green { background: var(--ys-green-soft); color: var(--ys-green); }
.ys-banner--green > span { color: var(--ys-text); }
.ys-tip { background: var(--ys-blue-soft); }
.ys-tip > .ys-i { color: var(--ys-blue); }
.ys-note { padding: 0; color: var(--ys-sub); font-size: .8em; }
.ys-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 2.4em; padding: 0 1.1em; border-radius: 999px; background: var(--ys-blue-fill, var(--ys-blue)); box-shadow: 0 .4em 1em -.4em var(--ys-blue); color: #fff; font-size: .92em; font-weight: 600; transition: transform .2s var(--ys-ease); }
.ys-btn--done { background: var(--ys-green); box-shadow: none; }
.ys-btn--ghost { background: var(--ys-blue-soft); box-shadow: none; color: var(--ys-blue); }
.ys-stack:has(> .ys-btn) { display: grid; justify-items: stretch; }
.ys-item { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding-top: .5em; border-top: .5px solid var(--ys-line); }
.ys-item > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ys-item b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ys-avatar { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(135deg, #f9824c, #b85233); color: #fff; font-size: .85em; font-weight: 700; }

/* Search */
.ys-home { display: flex; align-items: center; gap: .6em; }
.ys-photo { position: relative; flex: none; display: grid; place-items: center; width: 4.4em; height: 3.3em; border-radius: .7em; color: rgba(255, 255, 255, .85); }
.ys-photo--a { background: linear-gradient(160deg, #9ec5e8 0 45%, #c9b08a 45% 60%, #7fa36b 60%); }
.ys-photo--b { background: linear-gradient(160deg, #f3c9a0 0 40%, #d98c64 40% 62%, #8a7a6c 62%); }
.ys-photo .ys-i { width: 1.6em; height: 1.6em; }
.ys-badge { position: absolute; left: .25em; top: .25em; padding: .15em .35em; border-radius: 999px; background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; font-size: .5em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ys-home__body { flex: 1; min-width: 0; }
.ys-home__body > b { font-size: 1.1em; }
.ys-home .ys-meta { font-size: .8em; }
.ys .ys-heart { width: 1.3em; height: 1.3em; color: var(--ys-sub); }
.ys .ys-heart--on { color: #ff3b30; fill: currentColor; }

/* Tana */
.ys-dots { display: inline-flex; gap: .3em; padding: .75em .9em; }
.ys-dots i { width: .45em; height: .45em; border-radius: 50%; background: var(--ys-sub); animation: ys-dot 1s ease-in-out infinite; }
.ys-dots i:nth-child(2) { animation-delay: .15s; }
.ys-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ys-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.3em); opacity: 1; } }

/* Negotiation and record */
.ys-rev { gap: .25em; }
.ys-rev b { color: var(--ys-text); }
.ys-log { display: flex; flex-direction: column; gap: .15em; list-style: none; }
.ys-log li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .35em 0 .35em 1.2em; }
.ys-log li::before { content: ""; position: absolute; left: .2em; top: .75em; width: .5em; height: .5em; border-radius: 50%; background: var(--ys-blue); }
.ys-log li + li::after { content: ""; position: absolute; left: .43em; top: -.55em; height: 1.25em; border-left: 1.5px solid var(--ys-line); }
.ys-log li > span:first-child { display: flex; flex-direction: column; }
.ys-log code { color: var(--ys-sub); font-family: var(--font-mono); font-size: .8em; }
.ys .ys-seal { width: 1.5em; height: 1.5em; padding: .3em; border-radius: 50%; background: var(--ys-green-soft); color: var(--ys-green); }
.ys-edit { color: var(--ys-sub); }

/* Privacy */
.ys-mask { display: inline-flex; align-items: center; gap: .25em; padding: .05em .45em; border-radius: .5em; background: var(--ys-surface); color: var(--ys-sub); font-size: .9em; font-weight: 600; white-space: nowrap; }
.ys-mask .ys-i { width: .95em; height: .95em; }

/* Listing */
.ys-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: .2em; border-radius: .7em; background: var(--ys-fill); font-size: .82em; font-weight: 600; text-align: center; }
.ys-seg::before { content: ""; position: absolute; top: .2em; bottom: .2em; left: .2em; width: calc(50% - .2em); border-radius: .55em; background: var(--ys-surface); box-shadow: 0 .1em .3em rgba(0, 0, 0, .12); transition: transform .5s var(--ys-ease); }
.ys-seg.is-on::before { transform: translateX(100%); }
.ys-seg span { position: relative; padding: .35em .2em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ys-seg.is-on span:last-child { color: var(--ys-blue); }

/* Developers */
.ys-tower { display: flex; flex-direction: column; gap: .3em; padding: .45em; border-radius: .8em; background: var(--ys-fill); }
.ys-floor { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3em; }
.ys-unit { position: relative; display: block; height: 1.7em; border-radius: .35em; background: var(--ys-surface); box-shadow: inset 0 0 0 .5px var(--ys-line); }
.ys-unit > i { position: absolute; inset: 0; border-radius: inherit; }
.ys-unit--res { background: var(--ys-orange); }
.ys-unit--sold { background: var(--ys-green); }
.ys-legend { justify-content: space-between; font-size: .85em; }
.ys-legend > span { display: inline-flex; align-items: center; gap: .35em; }
.ys-dot { width: .65em; height: .65em; border-radius: 50%; }
.ys-dot--orange { background: var(--ys-orange); }
.ys-dot--green { background: var(--ys-green); }

/* Property managers */
.ys-toggle { flex: none; position: relative; width: 2.6em; height: 1.55em; border-radius: 999px; background: var(--ys-fill); box-shadow: inset 0 0 0 .5px var(--ys-line); transition: background-color .35s ease; }
.ys-toggle i { position: absolute; top: .15em; left: .15em; width: 1.25em; height: 1.25em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .3em rgba(0, 0, 0, .25); transition: transform .4s var(--ys-ease); }
.ys-toggle.is-on { background: #34c759; }
.ys-toggle.is-on i { transform: translateX(1.05em); }
.ys-progress { display: flex; flex-direction: column; gap: .35em; }
.ys-bar { height: .4em; border-radius: 999px; background: var(--ys-fill); overflow: hidden; }
.ys-bar i { display: block; height: 100%; border-radius: inherit; background: #34c759; transform-origin: left; }
.ys-bar i:not(.is-on) { transform: scaleX(0); }

/* Professionals */
.ys-job { display: flex; flex-direction: column; gap: .2em; padding: .6em .75em; border-radius: .8em; background: var(--ys-fill); }
.ys-job b { font-size: 1.05em; }
.ys-job .ys-i { width: 1em; height: 1em; }

/* Playing. Until the script is ready, elements that belong to a passing moment stay out of the finished
   frame; once it is, anything not yet "on" waits out of sight. */
.ys:not(.is-ready) [data-off] { display: none; }
.ys.is-ready [data-at]:not([data-fx="state"]):not([data-fx="grow"]) { transition: opacity .35s ease, transform .55s var(--ys-ease); }
.ys.is-ready [data-at]:not([data-fx]):not(.is-on) { opacity: 0; transform: translateY(.6em); }
.ys.is-ready [data-fx="pop"]:not(.is-on) { opacity: 0; transform: scale(.4); }
.ys.is-ready [data-fx="fade"]:not(.is-on) { opacity: 0; }
.ys.is-ready [data-fx="rise"]:not(.is-on) { opacity: 0; transform: translateY(1.2em) scaleY(.6); }
.ys.is-playing .ys-bar i.is-on { transition: transform 3s linear; }
.ys.is-resetting *, .ys.is-resetting *::before { transition: none !important; }
.ys.is-leaving .ys-screen > * { opacity: 0; transition: opacity .4s ease; }
.ys .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.12em; background: var(--ys-blue); animation: ys-caret .8s steps(1) infinite; }
@keyframes ys-caret { 50% { opacity: 0; } }
.ys .is-pressed { transform: scale(.93); }
.ys .is-denied { animation: ys-deny .45s ease; }
@keyframes ys-deny { 20%, 60% { transform: translateX(-.35em); } 40%, 80% { transform: translateX(.35em); } }
@media (prefers-reduced-motion: reduce) {
  .ys *, .ys *::before, .ys *::after { animation: none !important; transition: none !important; }
}

/* Agency scenes: a tick box that fills when a home is chosen. */
.ys-box { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: .45em; box-shadow: inset 0 0 0 1.5px var(--ys-line); color: transparent; transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.ys-box .ys-i { width: 1em; height: 1em; }
.ys-box.is-on { background: var(--ys-blue-fill, var(--ys-blue)); box-shadow: none; color: #fff; }
.ys.is-ready .ys-box[data-at]:not(.is-on) { color: transparent; background: transparent; }
.ys-assign .ys-i { width: 1em; height: 1em; }

/* ---------- Agency walkthrough ---------- */
/* A 24-second film of the agency workspace (agencies pages), built like the card scenes: the app window
   from the product's own screens, a camera that follows the action and a pointer that clicks through it.
   Sized in em from the width of its column, so it keeps its layout from a laptop down to a phone. */
.walkthrough__media { container-type: inline-size; }
.ys.aw {
  position: relative; inset: auto; display: block; aspect-ratio: 16 / 10; padding: 3%; overflow: hidden;
  border-radius: 28px; background: linear-gradient(135deg, #f6e8f7, #e6e9f7);
  font-size: clamp(7px, 1.5cqw, 15.5px);
}
:root[data-theme="dark"] .ys.aw { background: linear-gradient(135deg, #2a1530, #151a36); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ys.aw { background: linear-gradient(135deg, #2a1530, #151a36); } }
.aw-app {
  position: relative; display: grid; grid-template-columns: 4.4em minmax(0, 1fr); height: 100%; overflow: hidden;
  border-radius: 1.4em; background: var(--ys-fill); box-shadow: 0 0 0 .5px var(--ys-line), 0 1.6em 3.4em -1.4em rgba(0, 0, 0, .45);
  transform: var(--cam, none); transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
}
.aw-rail { display: flex; flex-direction: column; align-items: center; gap: .75em; padding: 1em 0; background: var(--ys-surface); box-shadow: .5px 0 0 var(--ys-line); }
.aw-logo { display: grid; place-items: center; width: 2.3em; height: 2.3em; margin-bottom: .3em; border-radius: 50%; background: var(--ys-fill); color: #b85233; font-weight: 800; font-size: 1.05em; }
.aw-rail-i { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; color: var(--ys-sub); transition: background-color .35s ease, color .35s ease; }
.aw-rail-i.is-on { background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; }
.aw-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.aw-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 1.2em; }
.aw-tab { display: inline-flex; flex-direction: column; padding: .35em 1em; border-radius: 999px; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line); white-space: nowrap; }
.aw-tab b { font-size: .95em; }
.aw-tab small { color: var(--ys-sub); font-size: .7em; }
.aw-top-end { display: flex; align-items: center; gap: .5em; }
.aw-pill { padding: .35em .75em; border-radius: 999px; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line); font-size: .72em; font-weight: 600; }
.aw-who { display: inline-flex; align-items: center; gap: .5em; padding: .3em .9em .3em .3em; border-radius: 999px; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line); white-space: nowrap; }
.aw-who > span:last-child { display: flex; flex-direction: column; }
.aw-who b { font-size: .8em; }
.aw-who small { color: var(--ys-sub); font-size: .66em; }
.aw-avatar { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; font-size: .8em; font-weight: 700; }
.aw-avatar--alt { background: #34c759; }
.aw-avatar--buyer { background: #ff9500; }
.aw-views { position: relative; display: grid; flex: 1; min-height: 0; padding: 0 1.2em 1.2em; }
.aw-view { grid-area: 1 / 1; display: flex; flex-direction: column; gap: .7em; width: 100%; max-width: 50em; min-height: 0; margin: 0 auto; }
.aw-stack { display: grid; justify-items: stretch; }
.aw-stack > * { grid-area: 1 / 1; }
.aw-card { display: flex; flex-direction: column; gap: .5em; padding: .9em 1.1em; border-radius: .9em; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line), 0 .2em .6em rgba(0, 0, 0, .04); }
.ys.aw .aw-card h4 { margin: 0; font-size: 1.05em; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.aw-card small, .aw-head small, .aw-grow small { color: var(--ys-sub); font-size: .78em; }
.aw-row, .aw-card.aw-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .7em; }
.aw-grow { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.aw-grow b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aw-head { display: flex; flex-direction: column; gap: .15em; }
.aw-head b { font-size: 1.25em; }
.aw-input { display: flex; flex-direction: column; gap: .15em; min-height: 3em; padding: .5em .8em; border-radius: .6em; background: var(--ys-fill); }
.aw-input small { font-size: .72em; }
.aw-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; align-self: flex-start; padding: .6em 1.15em; border-radius: 999px; background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; font-size: .85em; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ys-ease), background-color .3s ease; }
.aw-btn--small { padding: .45em .95em; font-size: .78em; }
.aw-btn--done { background: var(--ys-green); }
.aw-btn .ys-i, .aw-ghost .ys-i, .aw-chip .ys-i, .aw-select .ys-i, .aw-with-icon .ys-i, .aw-file .ys-i, .aw-drop-empty .ys-i, .aw-file small .ys-i { width: 1.1em; height: 1.1em; }
.aw-ghost { display: inline-flex; align-items: center; gap: .35em; padding: .45em .85em; border-radius: 999px; background: var(--ys-blue-soft); color: var(--ys-blue); font-size: .8em; font-weight: 600; white-space: nowrap; }
.aw-icon { flex: none; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .65em; background: var(--ys-fill); color: var(--ys-sub); }
.aw-with-icon { display: inline-flex; align-items: center; gap: .4em; }
.aw-select { display: inline-flex; align-items: center; justify-content: space-between; gap: .6em; padding: .4em .75em; border-radius: .55em; background: var(--ys-surface); box-shadow: inset 0 0 0 1px var(--ys-line); font-size: .82em; transition: transform .2s var(--ys-ease); }
.aw-select--wide { min-width: 15em; }
.aw-drop { flex-direction: row; align-items: center; justify-content: center; min-height: 4.6em; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ys-line); transition: transform .2s var(--ys-ease); }
.aw-drop-empty, .aw-file { display: inline-flex; align-items: center; gap: .55em; }
.aw-drop-empty { color: var(--ys-sub); font-size: .88em; }
.aw-file small { display: inline-flex; align-items: center; gap: .3em; }
.aw-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }
.aw-tiles > span:not(.aw-btn) { display: flex; flex-direction: column; min-width: 4.8em; padding: .5em .9em; border-radius: .7em; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line); }
.aw-tiles b { font-size: 1.3em; }
.aw-tiles small { color: var(--ys-sub); font-size: .72em; }
.aw-tiles .aw-btn { margin-left: auto; align-self: center; }
.aw-table { gap: 0; padding: 0; overflow: hidden; }
.aw-tr { display: grid; grid-template-columns: 1fr 2.2fr 1fr 1fr; align-items: center; gap: .6em; padding: .65em 1em; font-size: .82em; }
.aw-th { background: var(--ys-fill); color: var(--ys-sub); font-size: .68em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.aw-tr code { font-family: var(--font-mono); font-size: .9em; }
.aw-commit { justify-content: space-between; }
.aw-commit small { color: var(--ys-sub); font-size: .78em; }
.aw-listing { flex-direction: row; align-items: center; gap: .8em; }
.aw-thumb { flex: none; display: grid; place-items: center; width: 3.8em; height: 2.9em; border-radius: .6em; background: linear-gradient(160deg, #9ec5e8 0 45%, #c9b08a 45% 60%, #7fa36b 60%); color: rgba(255, 255, 255, .85); }
.aw-agency { flex-direction: row; align-items: center; gap: .8em; }
.aw-assign { position: relative; gap: .8em; }
.aw-label { min-width: 9em; color: var(--ys-sub); font-size: .8em; }
.aw-chosen { display: inline-flex; align-items: center; gap: .45em; }
.aw-chosen .aw-avatar, .aw-option .aw-avatar { width: 1.7em; height: 1.7em; font-size: .72em; }
.aw-menu { position: absolute; z-index: 2; top: 3.4em; left: calc(9em + 2.6em); display: flex; flex-direction: column; min-width: 15em; padding: .35em; border-radius: .7em; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line), 0 .8em 1.8em -.5em rgba(0, 0, 0, .35); }
.aw-option { display: flex; align-items: center; gap: .5em; padding: .5em .6em; border-radius: .5em; font-size: .82em; transition: background-color .2s ease; }
.aw-option:first-child { background: var(--ys-blue-soft); }
.aw-chip { display: inline-flex; align-items: center; gap: .4em; padding: .35em .75em; border-radius: 999px; background: var(--ys-fill); font-size: .8em; }
.aw-end { justify-content: flex-end; }
.aw-messages { flex-direction: row; gap: .8em; max-width: none; }
.aw-inbox { display: flex; flex: none; flex-direction: column; gap: .6em; width: 15em; }
.aw-conv { display: flex; align-items: center; gap: .6em; padding: .7em; border-radius: .8em; background: var(--ys-surface); box-shadow: inset 0 0 0 1.5px var(--ys-blue); }
.aw-conv .ys-pill { font-size: .66em; }
.aw-thread { display: flex; flex: 1; flex-direction: column; gap: .6em; align-self: flex-start; min-width: 0; min-height: 17em; padding: .9em; border-radius: .9em; background: var(--ys-surface); box-shadow: 0 0 0 .5px var(--ys-line); }
.aw-thread-head { display: flex; align-items: center; gap: .5em; padding-bottom: .6em; box-shadow: 0 .5px 0 var(--ys-line); }
.aw-thread .ys-bubble { max-width: 75%; font-size: .9em; }
.aw-composer { display: flex; align-items: center; gap: .6em; margin-top: auto; padding: .45em .5em .45em 1em; border-radius: 999px; background: var(--ys-fill); font-size: .88em; transition: transform .2s var(--ys-ease); }
.aw-composer > .ys-stack { flex: 1; min-width: 0; }
.aw-placeholder { color: var(--ys-sub); }
.aw-send { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--ys-blue-fill, var(--ys-blue)); color: #fff; transition: transform .2s var(--ys-ease); }
.aw-send .ys-i { width: 1.05em; height: 1.05em; }
/* The pointer: a soft touch mark, as in a screen recording, gliding between what gets clicked. */
.aw-pointer { position: absolute; top: 0; left: 0; z-index: 5; width: 2em; height: 2em; border-radius: 50%; background: rgba(20, 20, 24, .28); box-shadow: 0 0 0 .22em rgba(255, 255, 255, .85), 0 .3em .8em rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translate(var(--x, 50%), var(--y, 50%)) translate(-50%, -50%); transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .3s ease; }
.aw-pointer.is-on { opacity: 1; }
.ys.aw.is-leaving .aw-views { opacity: 0; transition: opacity .4s ease; }
.ys.aw .is-pressed { transform: scale(.94); }
/* Narrow columns (phones): no side rail, the account and units chips give way, and the messages stack. */
@container (max-width: 560px) {
  .ys.aw { aspect-ratio: 4 / 5; padding: 3.5%; border-radius: 22px; font-size: clamp(7px, 2.4cqw, 12px); }
  .aw-app { grid-template-columns: minmax(0, 1fr); }
  .aw-rail, .aw-pill, .aw-who small { display: none; }
  .aw-messages { flex-direction: column; }
  .aw-inbox { width: auto; }
  .aw-tr { grid-template-columns: 1fr 2fr 1.1fr; }
  .aw-tr > span:last-child { display: none; }
  .aw-label { min-width: 7em; }
  .aw-menu { left: calc(7em + 2.4em); }
}
@media (prefers-reduced-motion: reduce) { .aw-app, .aw-pointer { transition: none; } }
