/* WerkLens — app screens on the site.
 *
 * Built from the app's own SwiftUI (WLTheme, WLCardBackground, WLChipPicker,
 * WLMoneyRow, WLStatTile, ProfitBar, JobCard, RecentScreen, AgendaView week,
 * CalcToolList and the widget extension). Sizes are in iPhone points inside
 * .scr-in, which is zoomed to fit; a 15 pt subheadline here is a 15 pt
 * subheadline in the app.
 */

:root {
  --a-card: rgba(255, 255, 255, 0.66);
  --a-card-tint: rgba(10, 10, 12, 0.04);
  --a-hair: rgba(10, 10, 12, 0.12);
  --a-fill: rgba(10, 10, 12, 0.08);
  --a-success: #1E8E3E;
  --a-danger: #D8362A;
  --a-info: #1E40AF;
  --a-sec: rgba(10, 10, 12, 0.68);
  --a-muted: rgba(10, 10, 12, 0.52);
  --a-bezel: #0A0A0C;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --a-card: rgba(43, 42, 40, 0.66);
    --a-card-tint: rgba(255, 255, 255, 0.04);
    --a-hair: rgba(255, 255, 255, 0.14);
    --a-fill: rgba(255, 255, 255, 0.10);
    --a-success: #34C759;
    --a-danger: #FF453A;
    --a-info: #60A5FA;
    --a-sec: rgba(255, 255, 255, 0.72);
    --a-muted: rgba(255, 255, 255, 0.55);
    --a-bezel: #2B2A28;
  }
}

:root[data-theme="dark"] {
  --a-card: rgba(43, 42, 40, 0.66);
  --a-card-tint: rgba(255, 255, 255, 0.04);
  --a-hair: rgba(255, 255, 255, 0.14);
  --a-fill: rgba(255, 255, 255, 0.10);
  --a-success: #34C759;
  --a-danger: #FF453A;
  --a-info: #60A5FA;
  --a-sec: rgba(255, 255, 255, 0.72);
  --a-muted: rgba(255, 255, 255, 0.55);
  --a-bezel: #2B2A28;
}

/* ---------- the phone ---------- */

.phones { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: flex-start; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.phone-wrap figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 320px; }

.phone {
  --z: 0.82;
  width: calc(393px * var(--z) + 20px);
  padding: 10px;
  border-radius: calc(55px * var(--z) + 10px);
  background: var(--a-bezel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 30px 60px -20px rgba(10, 10, 12, 0.35);
  flex: none;
}
@media (max-width: 420px) { .phone { --z: 0.76; } }
@media (max-width: 360px) { .phone { --z: 0.7; } }

.scr {
  position: relative;
  width: calc(393px * var(--z));
  height: calc(760px * var(--z));
  border-radius: calc(55px * var(--z));
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  color: var(--text);
}
.scr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.scr-in { width: 393px; zoom: var(--z); font: 17px/1.25 var(--font); -webkit-font-smoothing: antialiased; }

.sb { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-weight: 600; font-size: 17px; position: relative; }
.sb::before { content: ""; position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
.sb svg { width: 18px; height: 12px; }
.sb .bat { width: 26px; height: 12px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.9; position: relative; }
.sb .bat::after { content: ""; position: absolute; inset: 1.5px; right: 6px; border-radius: 2px; background: currentColor; }

.anav { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }
.anav b { font-size: 17px; font-weight: 600; text-align: center; }
.anav .l { color: var(--accent); font-size: 17px; }
.anav .r { justify-self: end; display: flex; gap: 18px; color: var(--accent); }
.anav svg { width: 21px; height: 21px; }
.big-title { font-size: 34px; font-weight: 700; letter-spacing: 0.01em; padding: 2px 16px 8px; }

.pb { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 20px; }
.pb.tight { gap: 12px; }

/* ---------- the shared pieces ---------- */

.a-card {
  background: linear-gradient(var(--a-card-tint), var(--a-card-tint)), var(--a-card);
  border: 0.7px solid var(--a-hair);
  border-radius: 18px;
}
.a-field { border-radius: 12px; }
.a-label { font-size: 15px; font-weight: 600; color: var(--a-sec); }
.a-cap { font-size: 12px; color: var(--a-sec); }
.a-cap2 { font-size: 11px; color: var(--a-muted); }
.a-num { font-variant-numeric: tabular-nums; }
.a-round { font-family: var(--rounded); }
.a-row { display: flex; align-items: center; gap: 12px; }
.a-grow { flex: 1; min-width: 0; }
.a-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c); }
.a-chev { width: 7px; height: 12px; color: var(--a-muted); flex: none; }
.a-section-head { display: flex; justify-content: space-between; align-items: baseline; }

.a-chips { display: flex; gap: 8px; overflow: hidden; margin: 0 -16px; padding: 0 16px; }
.a-chip { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 15px; border: 0.7px solid var(--a-hair); background: var(--a-card-tint); }
.a-chip.on { background: var(--accent); border-color: rgba(255, 159, 10, 0.5); color: #0A0A0C; font-weight: 600; }
.a-seg { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 13px var(--rounded); color: var(--a-sec); background: var(--surface); }
.a-seg.on { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #0A0A0C; }
.a-pchip { flex: none; height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--a-sec); background: var(--surface); }
.a-pchip.on { color: var(--text); box-shadow: 0 0 0 1.4px var(--accent) inset; }
.a-pchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.a-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--a-sec); }
.a-switch { margin-left: auto; width: 51px; height: 31px; border-radius: 16px; background: var(--a-success); position: relative; flex: none; }
.a-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

.a-stamp { font: 900 9px var(--rounded); color: var(--a-muted); padding: 1px 5px; border-radius: 999px; border: 0.8px solid var(--a-hair); flex: none; }

/* ---------- Financiën ---------- */

.a-hero {
  border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid color-mix(in srgb, var(--tint) 50%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 70%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--tint) 8%, transparent), transparent 70%),
    var(--a-card);
}
.a-hero .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--a-muted); }
.a-hero .amt { font: 700 34px/1.1 var(--rounded); color: var(--tint); font-variant-numeric: tabular-nums; }
.a-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent); align-self: flex-start; }
.a-divider { height: 0.5px; background: var(--a-hair); }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.a-stats span { display: block; font-size: 11px; color: var(--a-muted); }
.a-stats b { font: 700 20px var(--rounded); font-variant-numeric: tabular-nums; white-space: nowrap; }

.pbar { position: relative; padding-top: 18px; }
.pbar .ptrack { height: 14px; border-radius: 7px; background: var(--a-fill); display: flex; overflow: hidden; }
.pbar .ptrack i { display: block; height: 100%; background: var(--c); width: var(--w); }
.pline { position: relative; }
.pbar .mark { position: absolute; top: -3px; bottom: -3px; left: var(--x); width: 2px; background: color-mix(in srgb, var(--text) 70%, transparent); }
.pbar .mark span { position: absolute; bottom: calc(100% + 2px); left: -40px; width: 82px; text-align: center; font-size: 9px; font-weight: 600; color: var(--a-muted); }
.pleg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 10px; }
.pleg div { display: flex; gap: 5px; align-items: baseline; font-size: 11px; font-weight: 600; color: var(--a-muted); }
.pleg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(1px); }
.pleg b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.a-mrow { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 54px; border-radius: 12px; }
.a-mrow .ico { width: 22px; height: 18px; color: var(--c); flex: none; }
.a-mrow .t { font-size: 15px; font-weight: 500; }
.a-mrow .amt { font-size: 15px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }

.a-bars { display: flex; gap: 6px; align-items: flex-end; height: 116px; }
.a-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.a-bars .v { font-size: 11px; font-weight: 600; color: var(--a-muted); min-height: 13px; }
.a-bars .pair { display: flex; gap: 2px; align-items: flex-end; width: 100%; }
.a-bars .pair i { flex: 1; border-radius: 4px; height: var(--h); min-height: 4px; }
.a-bars .pair i:first-child { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); }
.a-bars .pair i:last-child { background: var(--a-sec); opacity: 0.75; }
.a-bars .pair i.off { opacity: 0.22; }
.a-bars .n { font-size: 11px; color: var(--a-muted); }
.a-legend { display: flex; gap: 10px; font-size: 11px; color: var(--a-muted); }
.a-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 4px; }

.a-lrow { padding: 12px; border-radius: 12px; }
.a-lrow .nm { font-size: 15px; font-weight: 600; }
.a-lrow .r { text-align: right; flex: none; }
.a-lrow .r b { display: block; font-size: 15px; font-weight: 700; color: var(--a-success); font-variant-numeric: tabular-nums; }

/* ---------- Projecten ---------- */

.a-search { height: 36px; border-radius: 10px; background: var(--a-fill); display: flex; align-items: center; gap: 6px; padding: 0 9px; color: var(--a-muted); font-size: 17px; }
.a-search svg { width: 16px; height: 16px; }
.a-job { padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.a-thumb { width: 54px; height: 54px; border-radius: 12px; position: relative; flex: none; background: color-mix(in srgb, var(--c) 18%, transparent); }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.a-thumb::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg); }
.a-job .top { display: flex; gap: 8px; align-items: baseline; }
.a-job .nm { font: 600 17px/1.2 var(--rounded); flex: 1; min-width: 0; }
.a-job .pr { font: 700 15px var(--rounded); font-variant-numeric: tabular-nums; flex: none; }
.a-job .tags { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.a-status { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.a-status svg { width: 11px; height: 11px; }
.a-tag { font-size: 11px; font-weight: 900; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.a-addr { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--a-sec); margin-top: 6px; }
.a-addr svg, .a-meta svg { width: 12px; height: 12px; flex: none; }
.a-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.a-meta span { display: inline-flex; gap: 3px; align-items: center; }
.a-meta .anext { color: var(--accent-ink); }

/* ---------- Recent ---------- */

.a-shot { position: relative; height: 210px; border-radius: 10px; overflow: hidden; }
.a-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.a-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.a-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px; }
.a-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(255, 159, 10, 0.14); flex: none; }
.a-ico svg { width: 17px; height: 17px; }
.a-note .tx { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-note .mt { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 11px; color: var(--a-muted); }

/* ---------- Agenda, week ---------- */

.a-weekhead { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.a-weekhead svg { width: 11px; height: 18px; }
.a-weekhead div { text-align: center; }
.a-weekhead b { display: block; font: 700 17px var(--rounded); color: var(--text); }
.a-weekhead span { font-size: 12px; color: var(--a-muted); }
.a-sumpills { display: flex; gap: 10px; }
.a-sumpill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--a-card-tint); border: 0.7px solid var(--a-hair); font-size: 12px; color: var(--a-sec); }
.a-sumpill svg { width: 13px; height: 13px; color: var(--accent); }
.a-sumpill b { color: var(--text); font-variant-numeric: tabular-nums; }
.a-day { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 0.5px solid var(--a-hair); }
.a-day:last-child { border-bottom: 0; }
.a-day.past { opacity: 0.6; }
.a-dtile { width: 40px; min-height: 40px; border-radius: 10px; background: var(--a-card-tint); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.a-dtile small { font-size: 9px; font-weight: 900; letter-spacing: 0.04em; color: var(--a-muted); }
.a-dtile b { font: 700 17px var(--rounded); font-variant-numeric: tabular-nums; }
.a-dtile.today { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #0A0A0C; }
.a-dtile.today small { color: #0A0A0C; }
.a-dtile.job { box-shadow: 0 0 0 1.2px color-mix(in srgb, var(--c) 55%, transparent) inset; }
.a-dlist { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.a-appt { display: flex; gap: 9px; }
.a-appt::before { content: ""; width: 4px; border-radius: 2px; background: var(--c); flex: none; }
.a-appt b { display: block; font-size: 15px; font-weight: 600; }
.a-appt span { display: block; font-size: 11px; color: var(--a-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-task { display: flex; gap: 9px; align-items: flex-start; }
.a-task::before { content: ""; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--a-muted); flex: none; margin: 1px 4px 0 3px; }
.a-task b { display: block; font-size: 15px; font-weight: 400; }
.a-task span { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--a-muted); }
.a-task span i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.a-more { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.a-nothing { font-size: 15px; color: var(--a-muted); min-height: 26px; display: flex; align-items: center; }
.a-plus { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* ---------- Gereedschap (rekentools) ---------- */

.a-sfield { min-height: 44px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--a-muted); font-size: 17px; }
.a-sfield svg { width: 17px; height: 17px; }
.a-invite { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.a-invite .hd { display: flex; gap: 12px; align-items: center; }
.a-invite .big { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #0A0A0C; display: grid; place-items: center; flex: none; }
.a-invite .big svg { width: 22px; height: 22px; }
.a-invite h5 { font: 700 17px var(--rounded); margin: 0; }
.a-invite p { font-size: 13px; color: var(--a-sec); margin: 3px 0 0; }
.a-formula { border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 10px 8px; display: flex; gap: 6px; justify-content: center; align-items: center; font-size: 12px; font-weight: 600; }
.a-formula span { padding: 5px 8px; border-radius: 7px; background: var(--surface-hi); border: 1px dashed rgba(255, 159, 10, 0.45); white-space: nowrap; }
.a-formula em { font-style: normal; color: var(--a-muted); font-weight: 700; }
.a-formula strong { padding: 5px 8px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #0A0A0C; }
.a-btns { display: flex; gap: 10px; }
.a-btn { flex: 1; min-height: 44px; border-radius: 12px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent-ink); background: rgba(255, 159, 10, 0.12); }
.a-btn.fill { color: #0A0A0C; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); }
.a-btn svg { width: 14px; height: 14px; }
.a-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-qt { padding: 12px; min-height: 88px; display: flex; flex-direction: column; gap: 8px; }
.a-qt svg { width: 24px; height: 24px; color: var(--accent); }
.a-qt b { display: block; font-size: 15px; font-weight: 700; }
.a-qt span { display: block; font-size: 12px; color: var(--a-sec); line-height: 1.25; }
.a-list > div { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.a-list > div + div { border-top: 0.5px solid var(--a-hair); margin-left: 62px; padding-left: 0; }
.a-list .a-ico { width: 36px; height: 36px; background: rgba(255, 159, 10, 0.12); }
.a-list b { display: block; font-size: 15px; font-weight: 600; }
.a-list span { display: block; font-size: 12px; color: var(--a-sec); }

/* ---------- the widgets, as the widget extension draws them ---------- */

.ww { width: 158px; height: 158px; border-radius: 22px; overflow: hidden; position: relative; color: #fff; flex: none;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px rgba(0, 0, 0, 0.35); font-family: var(--font); }
.ww.med { width: min(338px, 100%); }
.ww.tile { background:
  radial-gradient(190px 190px at 0 0, rgba(255, 159, 10, 0.35), transparent 70%),
  radial-gradient(150px 150px at 100% 100%, rgba(255, 159, 10, 0.18), transparent 70%),
  #171717; }
.ww .mark { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: 0.04em; }
.ww .mark i { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid currentColor; box-sizing: border-box; position: relative; }
.ww .mark i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); }

.ww-cam { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ww-cam .vf { position: absolute; inset: 12px; }
.ww-cam .vf i { position: absolute; width: 14px; height: 14px; border-color: rgba(255, 255, 255, 0.55); border-style: solid; border-width: 0; }
.ww-cam .vf i:nth-child(1) { left: 0; top: 0; border-left-width: 2.5px; border-top-width: 2.5px; border-top-left-radius: 4px; }
.ww-cam .vf i:nth-child(2) { right: 0; top: 0; border-right-width: 2.5px; border-top-width: 2.5px; border-top-right-radius: 4px; }
.ww-cam .vf i:nth-child(3) { right: 0; bottom: 0; border-right-width: 2.5px; border-bottom-width: 2.5px; border-bottom-right-radius: 4px; }
.ww-cam .vf i:nth-child(4) { left: 0; bottom: 0; border-left-width: 2.5px; border-bottom-width: 2.5px; border-bottom-left-radius: 4px; }
.ww-cam .sh { width: 80px; height: 80px; border-radius: 50%; border: 3.5px solid #fff; display: grid; place-items: center; position: relative; margin-top: 10px; }
.ww-cam .sh::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), rgba(255, 159, 10, 0.75)); box-shadow: 0 0 10px rgba(255, 159, 10, 0.6); }
.ww-cam .sh svg { width: 28px; height: 28px; position: relative; }

.ww-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.ww-quick span { border-radius: 14px; background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 700 10px var(--rounded); }
.ww-quick span i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), rgba(255, 159, 10, 0.7)); box-shadow: 0 2px 6px rgba(255, 159, 10, 0.45), 0 0 0 0.8px rgba(255, 255, 255, 0.28) inset; }
.ww-quick svg { width: 15px; height: 15px; color: #fff; }

.ww-plan { padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.ww-plan .wd { font-size: 11px; font-weight: 900; letter-spacing: 0.04em; color: var(--accent); }
.ww-plan .dt { font: 900 20px/1.1 var(--rounded); }
.ww-plan .ln { height: 1px; border-radius: 1px; background: rgba(255, 255, 255, 0.14); margin: 3px 0; }
.ww-plan .wit { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; font-weight: 600; line-height: 1.25; }
.ww-plan .wit i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: 4px; flex: none; }
.ww-plan .wit b { display: block; font-weight: 900; font-variant-numeric: tabular-nums; }

.ww-proj { display: flex; gap: 12px; padding: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #171717), color-mix(in srgb, var(--c) 8%, #171717)), #171717; }
.ww-proj .ph { width: 118px; border-radius: 14px; overflow: hidden; position: relative; flex: none; }
.ww-proj .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ww-proj .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55)); }
.ww-proj .pring { position: absolute; left: 8px; bottom: 8px; width: 34px; height: 34px; z-index: 1; }
.ww-proj .pring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ww-proj .pring span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 9px var(--rounded); }
.ww-proj .in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ww-proj .chip { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; font: 900 9px var(--rounded); letter-spacing: 0.03em; padding: 3.5px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.32); box-shadow: 0 0 0 0.6px rgba(255, 255, 255, 0.18) inset; }
.ww-proj .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ww-proj .nm { font: 900 20px/1.1 var(--rounded); margin-top: auto; }
.ww-proj .phases { display: flex; gap: 3px; margin: 6px 0; }
.ww-proj .phases i { flex: 1; height: 4px; border-radius: 2px; background: var(--c); }
.ww-proj .phases i.off { background: rgba(255, 255, 255, 0.18); }
.ww-proj .nx { display: flex; gap: 5px; align-items: center; font-size: 11px; white-space: nowrap; overflow: hidden; }
.ww-proj .nx svg { width: 10px; height: 10px; color: var(--c); flex: none; }
.ww-proj .nx b { font: 900 11px var(--rounded); flex: none; font-variant-numeric: tabular-nums; }
.ww-proj .nx span { color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; }
.ww-proj .st { display: flex; gap: 10px; margin-top: 4px; font: 900 10px var(--rounded); color: rgba(255, 255, 255, 0.75); }
.ww-proj .st span { display: inline-flex; gap: 3px; align-items: center; }
.ww-proj .st svg { width: 9px; height: 9px; }

.ww-money { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a-success) 22%, var(--bg)), color-mix(in srgb, var(--a-success) 6%, var(--bg))); }
.ww-money .hd { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--a-sec); }
.ww-money .hd b { font-weight: 900; letter-spacing: 0.04em; }
.ww-money .hd em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 11px; color: var(--a-success); padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--a-success) 18%, transparent); }
.ww-money .amt { font: 900 24px/1.05 var(--rounded); font-variant-numeric: tabular-nums; }
.ww-money .wbar { height: 12px; border-radius: 6px; display: flex; overflow: hidden; background: var(--a-fill); position: relative; }
.ww-money .wbar i { height: 100%; width: var(--w); background: var(--c); }
.ww-money .wbar u { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: rgba(255, 255, 255, 0.9); }
.ww-money .lg { display: flex; gap: 10px; font-size: 11px; color: var(--a-sec); white-space: nowrap; }
.ww-money .lg span { display: inline-flex; gap: 4px; align-items: center; }
.ww-money .lg i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ww-money .lg b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ww-money .cols { display: flex; gap: 14px; margin-top: auto; }
.ww-money .cols div { font-size: 11px; font-weight: 900; letter-spacing: 0.03em; color: var(--a-sec); }
.ww-money .cols b { display: block; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ww-money .ceil { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; color: var(--a-success); }
.ww-money .ceil svg { width: 11px; height: 11px; }

.ww-home { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 26px; border-radius: 32px;
  background: radial-gradient(120% 120% at 0 0, #3a2a12, transparent 60%), radial-gradient(120% 120% at 100% 100%, #10283a, transparent 60%), #121212; }
.a-stats b.a-sec { color: var(--a-sec); }
.a-stats b.a-okc { color: var(--a-success); }
.a-flow { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.a-lrow .r .a-cap2 { display: block; }

/* The hero: the two widgets in the places the old ones had. */
@media (min-width: 560px) {
  .stage .ww.med { grid-column: 1 / 3; justify-self: end; }
  .stage .ww:not(.med) { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage > .ww { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
}

.ww-money > * { flex: none; }
.pb .pb { padding: 0; }
.phone.tall .scr { height: calc(900px * var(--z)); }

/* Small screens: nothing wider than the page. */
.row2 > *, .phones, .phone-wrap { min-width: 0; max-width: 100%; }
.wrap > .paper { max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {
  .ww-home { padding: 14px; gap: 14px; border-radius: 24px; }
  .ww.med { width: 100%; }
}
