/* ==========================================================================
   Quick Phaze — application styles (extends phaze.css)
   ========================================================================== */

body { overflow-x: hidden; }

/* screens ---------------------------------------------------------------- */
.screen { display: none; }
.screen.is-active { display: block; }

/* ------------------------------------------------------------- auth ----- */

.auth {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 40px var(--gut);
  position: relative;
  overflow: hidden;
}
.auth__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 80%);
}
.auth__in {
  position: relative; z-index: 1;
  width: 100%; max-width: 470px;
  margin-inline: auto;
}
.auth--wide .auth__in { max-width: 780px; }

.auth__brand {
  display: flex; align-items: baseline; gap: 10px;
  justify-content: center; margin-bottom: 34px; text-decoration: none;
}
.auth__brand .logo { height: 40px; width: auto; }
.auth__brand { align-items: center; }

.auth__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 40px);
}
.auth__card h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 10px; }
.auth__card > p.lead { font-size: .95rem; margin-bottom: 28px; }

.auth__split {
  margin-top: 28px; padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.auth__split p { font-size: .88rem; color: var(--text-2); margin-bottom: 14px; }

.auth__foot {
  margin-top: 26px; text-align: center;
  font-size: .78rem; color: var(--text-3); line-height: 1.6;
}
.auth__foot a { color: var(--accent); }

.err {
  margin-top: 2px; padding: 11px 14px;
  border: 1px solid var(--accent); border-left-width: 3px;
  border-radius: var(--r);
  font-size: .87rem; color: var(--text);
  background: var(--surface-2);
}
.err[hidden] { display: none; }

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
}

/* ----------------------------------------------------------- wizard ----- */

.wiz__steps {
  display: flex; gap: 6px; margin-bottom: 30px;
  list-style: none; padding: 0;
}
.wiz__steps li {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--line);
  transition: background-color .4s var(--ease);
}
.wiz__steps li.is-done { background: var(--accent); }

.wiz__meta {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.wiz__step { display: none; }
.wiz__step.is-active { display: block; }
.wiz__step h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 10px; }
.wiz__step > p { color: var(--text-2); font-size: .94rem; margin-bottom: 26px; max-width: 52ch; }

.wiz__nav {
  display: flex; gap: 12px; align-items: center;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.wiz__nav .spacer { margin-left: auto; }

/* radio band choices */
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.choice:hover { border-color: var(--text-3); }
.choice input { appearance: none; width: 15px; height: 15px; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; }
.choice input:checked { border-color: var(--accent); border-width: 1.5px; }
.choice input:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.choice__t { font-size: .96rem; font-weight: 550; letter-spacing: -0.012em; }
.choice__s { font-size: .8rem; color: var(--text-3); margin-left: auto; }

/* employee rows */
.emp-rows { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.emp-row {
  display: grid; gap: 10px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
@media (min-width: 620px) { .emp-row { grid-template-columns: 34px 1fr 1fr auto; } }
.emp-row__n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose); color: var(--plum);
  font-size: .74rem; font-weight: 600;
}
.emp-row input { padding: 9px 11px; font-size: .9rem; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r); width: 100%; }
.emp-row input:focus { outline: none; border-color: var(--accent); }
.emp-row__owner { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }

/* ------------------------------------------------------ credentials ----- */

.creds__code {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  margin-bottom: 26px;
}
.creds__code .sub { margin-bottom: 12px; }
.creds__code b {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.cred-tbl { display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cred-row {
  background: var(--surface);
  display: grid; gap: 4px 16px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px;
}
.cred-row__n { font-size: .94rem; font-weight: 550; letter-spacing: -0.012em; }
.cred-row__d { grid-column: 1; font-size: .77rem; color: var(--text-3); }
.cred-row__p {
  grid-row: 1 / span 2; grid-column: 2;
  display: flex; align-items: center; gap: 10px;
}
.cred-row__p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92rem; letter-spacing: .1em;
  padding: 6px 10px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
}

.copybtn {
  border: 1px solid var(--line-2); background: transparent;
  border-radius: var(--r); padding: 6px 9px; cursor: pointer;
  color: var(--text-3); display: grid; place-items: center;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copybtn:hover { color: var(--accent); border-color: var(--accent); }
.copybtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copybtn.is-done { color: var(--accent); border-color: var(--accent); }

.warn {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: .86rem; line-height: 1.6; color: var(--text-2);
}
.warn b { color: var(--text); }

/* ---------------------------------------------------------- app shell --- */

.app { display: none; min-height: 100dvh; }
.app.is-active { display: grid; grid-template-rows: auto 1fr; }

.app__hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--scrim);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.app__hdr-in {
  height: 60px; display: flex; align-items: center; gap: 16px;
  padding-inline: clamp(14px, 2.4vw, 26px);
}
.app__co {
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
}
.app__co b { font-size: .98rem; font-weight: 600; letter-spacing: -0.016em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__co .mono { flex: none; }

.app__me {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; flex: none;
}
.app__me .who { display: none; text-align: right; line-height: 1.25; }
@media (min-width: 720px) { .app__me .who { display: block; } }
.app__me .who b { display: block; font-size: .86rem; font-weight: 600; }
.app__me .who span { font-size: .72rem; color: var(--text-3); }

.ava {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  background: var(--rose); color: var(--plum);
}
.ava--pink { background: var(--blush); }
.ava--cream { background: var(--cream); }
.ava--sm { width: 24px; height: 24px; font-size: .62rem; }

.app__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
@media (min-width: 980px) {
  .app__body { grid-template-columns: 292px minmax(0, 1fr); }
}

/* sidebar */
.side {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 14px 40px;
  display: grid;
  align-content: start;
  gap: 4px;
}
@media (max-width: 979px) {
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .side.is-collapsed { display: none; }
}
.side__hd {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px 10px;
}
.side__hd .sub { margin: 0; }
.side__hd button { margin-left: auto; }

.addbtn {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--line-2); background: transparent;
  border-radius: var(--r); cursor: pointer; color: var(--text-2);
  display: grid; place-items: center;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.addbtn:hover { color: var(--accent); border-color: var(--accent); }
.addbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; }

.side__empty { padding: 14px 10px; font-size: .84rem; color: var(--text-3); line-height: 1.55; }

.side__group { margin-top: 16px; }
.side__group > .sub { padding: 0 8px; margin-bottom: 8px; }

/* main */
.main { min-width: 0; padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 38px) 80px; }
.main__hd { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; }
.main__hd h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.main__hd .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.blank {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 80px) 28px;
  text-align: center;
}
.blank h3 { margin-bottom: 10px; }
.blank p { color: var(--text-2); font-size: .94rem; max-width: 44ch; margin: 0 auto 22px; }

/* project detail */
.pdetail { display: grid; gap: 26px; }
@media (min-width: 1180px) { .pdetail { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }

.sect { margin-bottom: 26px; }
.sect__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sect__hd .sub { margin: 0; }
.sect__hd button { margin-left: auto; }

.addrow {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.addrow input, .addrow select {
  flex: 1 1 150px; min-width: 0;
  padding: 9px 12px; font-size: .89rem;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
}
.addrow input:focus, .addrow select:focus { outline: none; border-color: var(--accent); }
.addrow input[type=date] { flex: 0 1 160px; }
.addrow .btn { padding: 9px 16px; font-size: .87rem; }
.addrow[hidden] { display: none; }

.delbtn {
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); padding: 4px; line-height: 0; opacity: 0;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.todo li:hover .delbtn, .files li:hover .delbtn, .row:hover .delbtn { opacity: 1; }
.delbtn:hover { color: var(--accent); }
.delbtn:focus-visible { opacity: 1; }
.delbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; }

.todo .when { margin-left: auto; }
.todo .who { font-size: .7rem; color: var(--text-3); flex: none;
  font-family: ui-monospace, Menlo, monospace; }
.todo li.is-late .when { color: var(--accent); }

.files a { color: inherit; text-decoration: none; }
.files a:hover { color: var(--accent); text-decoration: underline; }

/* collaborators */
.collabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.collab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .82rem;
}
.collab .delbtn { opacity: .5; }
.collab:hover .delbtn { opacity: 1; }

/* drop zone */
.drop {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 18px;
  text-align: center;
  font-size: .86rem;
  color: var(--text-3);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--surface-2); }
.drop b { color: var(--text-2); }

/* activity */
.act { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.act li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--text-2); line-height: 1.45; }
.act li:last-child { border-bottom: 1px solid var(--line); }
.act b { color: var(--text); font-weight: 550; }
.act time { margin-left: auto; flex: none; font-size: .72rem; color: var(--text-3);
  font-family: ui-monospace, Menlo, monospace; }

/* ------------------------------------------------------------ modal ----- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 12, 17, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 3vw, 30px);
  max-height: 88dvh; overflow-y: auto;
}
.modal__box h3 { margin-bottom: 8px; }
.modal__box > p { font-size: .89rem; color: var(--text-2); margin-bottom: 20px; }
.modal__nav { display: flex; gap: 10px; margin-top: 24px; }
.modal__nav .spacer { margin-left: auto; }

/* ------------------------------------------------------------ toast ----- */

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translate(-50%, 14px);
  padding: 12px 20px;
  background: var(--text); color: var(--bg);
  border-radius: var(--r);
  font-size: .88rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.is-up { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------- utilities ---- */

.stackv { display: grid; gap: 14px; }
.rowflex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--text-2); }
.tiny { font-size: .78rem; }
.hide { display: none !important; }

@media print {
  .app__hdr, .side, .btn, .copybtn, .auth__bg { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ===================================================== CALENDAR + MONEY ====
   Chart colours are their own tokens, not the UI accent. The pair was checked
   for colour-blind separation against each theme's surface (light ΔE 14.6
   protan / 17.3 normal; dark 10.9 / 17.4) — if you change them, re-check, and
   keep the amounts printed beside every bar so colour is never the only clue. */
:root {
  --chart-out: #C2367A;
  --chart-in:  #8A63D2;
  --chart-track: rgba(83, 59, 77, .12);
}
[data-theme="dark"] {
  --chart-out: #DB4F93;
  --chart-in:  #8B6FD8;
  --chart-track: rgba(250, 227, 198, .13);
}

.linkbtn {
  border: 0; background: none; cursor: pointer; padding: 2px 0;
  color: var(--text-3); font: inherit; font-size: .78rem;
  border-bottom: 1px solid transparent;
}
.linkbtn:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------- calendar -- */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal__dows {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.cal__dows span {
  padding: 9px 10px; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__cell {
  min-height: 104px; padding: 7px 8px 9px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer; transition: background .18s var(--ease);
}
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell:hover { background: var(--surface-2); }
.cal__cell.is-out { background: var(--surface-2); cursor: default; }
.cal__cell.is-out:hover { background: var(--surface-2); }
.cal__cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal__d { font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cal__cell.is-today .cal__d {
  color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; width: 21px; height: 21px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem;
}
.cal__chip {
  font-size: .72rem; line-height: 1.35; padding: 3px 6px;
  border-radius: var(--r); background: var(--surface-2);
  border-left: 2px solid var(--text-3); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal__chip.is-proj { border-left-color: var(--accent); }
.cal__chip b { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cal__more { font-size: .68rem; color: var(--text-3); padding-left: 6px; }

.evlist { display: flex; flex-direction: column; }
.ev {
  display: grid; gap: 4px 14px; align-items: center;
  grid-template-columns: 74px 1fr auto auto;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.ev:last-child { border-bottom: 0; }
.ev__date { display: flex; flex-direction: column; }
.ev__date b { font-size: .84rem; font-variant-numeric: tabular-nums; }
.ev__date span { font-size: .72rem; color: var(--text-3); }
.ev__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev__body b { font-size: .92rem; }
.ev__body span { font-size: .8rem; color: var(--text-2); }
.ev__meta { display: flex; align-items: center; gap: 8px; font-size: .74rem;
  color: var(--text-3); }
.pill--q { font-size: .68rem; padding: 2px 8px; }

/* -------------------------------------------------------------- finance -- */
.fin { display: grid; gap: 22px; grid-template-columns: minmax(230px, 300px) 1fr;
  align-items: start; }
.fin__chart {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 20px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.fin__stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.ring { position: relative; width: 180px; height: 180px; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--chart-track); stroke-width: 11; }
.ring__arc {
  fill: none; stroke: var(--chart-out); stroke-width: 11; stroke-linecap: round;
  transition: stroke-dasharray 1.1s var(--ease);
}
.ring__mid {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; text-align: center;
  padding: 0 26px; pointer-events: none;
}
.ring__mid b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring__mid span { font-size: .72rem; color: var(--text-3); line-height: 1.35; }

.tile {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 3px;
}
.tile__l { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); }
.tile__v { font-size: 1.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile__s { font-size: .74rem; color: var(--text-3); line-height: 1.4; }
.tile--in  { border-left: 3px solid var(--chart-in); }
.tile--out { border-left: 3px solid var(--chart-out); }

.fin__legend { display: flex; gap: 18px; margin-bottom: 14px; font-size: .78rem;
  color: var(--text-2); }
.fin__legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw--out { background: var(--chart-out); }
.sw--in  { background: var(--chart-in); }

.kon { border-top: 1px solid var(--line); padding: 16px 0; }
.kon:first-of-type { border-top: 0; padding-top: 0; }
.kon__hd { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.kon__hd b { font-size: .98rem; }
.kon__c { display: block; font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.kon__act { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.bars { display: flex; flex-direction: column; gap: 7px; margin: 13px 0 8px; }
.bar { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px;
  align-items: center; }
.bar__l { font-size: .74rem; color: var(--text-3); }
.bar__t { height: 9px; background: var(--chart-track); border-radius: 999px;
  overflow: hidden; display: block; }
.bar__f { display: block; height: 100%; border-radius: 999px;
  transition: width .9s var(--ease); }
.bar__f--out { background: var(--chart-out); }
.bar__f--in  { background: var(--chart-in); }
.bar__v { font-size: .84rem; font-variant-numeric: tabular-nums; min-width: 74px;
  text-align: right; }

.kon__list { display: flex; flex-direction: column; margin-top: 9px; }
.kent { display: grid; grid-template-columns: 62px 84px 1fr auto; gap: 10px;
  align-items: center; padding: 6px 0; font-size: .8rem;
  border-top: 1px dashed var(--line); }
.kent b { font-variant-numeric: tabular-nums; }
.kent > span:nth-of-type(2) { color: var(--text-2); }
.kent__k { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.kent__k--used   { color: var(--chart-out); }
.kent__k--gained { color: var(--chart-in); }
.kent__m { color: var(--text-3); font-size: .72rem; }

@media (max-width: 900px) {
  .fin { grid-template-columns: 1fr; }
  .cal__cell { min-height: 78px; }
  .cal__chip { font-size: .66rem; }
  .ev { grid-template-columns: 64px 1fr; }
  .ev__meta, .ev .linkbtn { grid-column: 2; justify-self: start; }
}

/* the demo stage is a fixed 1080px desktop view — it must never pick up the
   phone layout above, whatever the visitor's actual screen is */
.dapp-stage .fin { grid-template-columns: minmax(230px, 300px) 1fr; }
.dapp-stage .cal__cell { min-height: 104px; }
.dapp-stage .ev { grid-template-columns: 74px 1fr auto auto; }

@media (prefers-reduced-motion: reduce) {
  .ring__arc, .bar__f { transition: none; }
}
