:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #fff;
  --wash: #ecf0e9;
  --ink: #17221d;
  --muted: #4e5c54;
  --line: #bbc6bc;
  --accent: #34591c;
  --red: #96334a;
  --amber: #765014;
  --fill: #c6ee80;
  --focus: #326a91;
  --inverse: #13200c;
  font:
    100%/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e0d;
  --paper: #161b18;
  --wash: #212a24;
  --ink: #f4f6ef;
  --muted: #bcc7bc;
  --line: #546257;
  --accent: #c5ee85;
  --red: #ffa6b1;
  --amber: #f6c479;
  --focus: #9dd5ff;
}
:root[data-text-size="110"] { font-size: 110%; }
:root[data-text-size="120"] { font-size: 120%; }
:root[data-text-size="135"] { font-size: 135%; }
:root[data-text-size="150"] { font-size: 150%; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--accent);
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-weight: 620;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  background: var(--wash);
}
button.primary,
.button.primary {
  background: var(--fill);
  border-color: var(--fill);
  color: var(--inverse);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(1.85rem, 3.7vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.27rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.02rem;
}
small,
.muted,
.hint {
  color: var(--muted);
}
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.bar,
.row,
.between,
.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.actions {
  margin: 0.8rem 0;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
}
aside {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 1.4rem 1rem;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.45rem;
  font-weight: 840;
  letter-spacing: -0.06em;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand em {
  font-weight: 450;
  font-style: normal;
  color: var(--muted);
}
nav {
  margin-top: 1.5rem;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 0.44rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
  font-weight: 560;
}
nav a[aria-current="page"] {
  background: var(--wash);
  color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 0.65rem 0.25rem;
  font-weight: 650;
}
aside footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.stage {
  min-width: 0;
}
.top {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem clamp(0.8rem, 3vw, 2.5rem);
}
.top .brand,
.menu {
  display: none;
}
.body {
  width: min(100%, 88rem);
  margin: auto;
  padding: clamp(1rem, 2.6vw, 2.6rem);
}
.heading {
  margin-bottom: 1.4rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem;
}
.panel,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  min-width: 0;
  margin-bottom: 1rem;
}
.panel .panel {
  margin: 0;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111b16;
  color: #fff;
  min-height: 12rem;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding: 1.7rem;
  background-image:
    linear-gradient(
      90deg,
      rgba(9, 17, 12, 0.97),
      rgba(9, 17, 12, 0.89) 38%,
      rgba(9, 17, 12, 0.2)
    ),
    url(/site.webp);
  background-size: cover;
  background-position: center;
}
.hero .tag {
  color: #c7ef93;
}
.hero p {
  color: #e4eadf;
}
.hero.joe {
  background-image:
    linear-gradient(
      90deg,
      #101813 25%,
      rgba(8, 16, 12, 0.75) 65%,
      rgba(8, 16, 12, 0.35)
    ),
    url(/joe.webp);
}
.entry {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.15rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.entry strong,
.entry small {
  display: block;
}
.entry:last-child {
  border-bottom: 0;
}
.quiet {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.45rem 0;
}
.kpi {
  font-size: 1.7rem;
  font-weight: 730;
  letter-spacing: -0.05em;
}
.danger {
  color: var(--red);
}
.label,
label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 0.63rem 0.65rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  min-height: 5rem;
}
form {
  display: grid;
  gap: 0.85rem;
}
dialog {
  width: min(38rem, 94vw);
  max-height: 89dvh;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 15px;
}
dialog::backdrop {
  background: #08120fd9;
}
dialog .between {
  margin-bottom: 1rem;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 92vw;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  border-radius: 9px;
}
.error {
  color: var(--red);
  font-weight: 600;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  left: 1rem;
  z-index: 30;
  background: var(--paper);
}
.tabs a,
.pill {
  display: inline-flex;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  align-items: center;
  margin-right: 0.6rem;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}
.cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.45rem;
  min-height: 5rem;
  overflow-wrap: anywhere;
}
.cell small {
  display: block;
}
.calitem {
  display: block;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.84rem;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.7rem;
}
.board section {
  background: var(--wash);
  padding: 0.75rem;
  border-radius: 10px;
}
.progress {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.step {
  border: 1px solid var(--line);
  padding: 0.32rem 0.55rem;
  border-radius: 5px;
  color: var(--muted);
}
.step.current {
  background: var(--fill);
  color: var(--inverse);
  border-color: transparent;
  font-weight: bold;
}
video,
iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
}
iframe {
  height: 65vh;
}
pre,
.answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
}
.sheet {
  max-width: 48rem;
}
.counts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.counts a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--ink);
}
.counts b {
  display: block;
  font-size: 1.4rem;
}
.hide {
  display: none !important;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check input {
  width: 1.2rem;
  min-height: 1.2rem;
}
.filters label {
  font-size: 0.9rem;
}
.actions .tag {
  margin-right: auto;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .menu,
  .top .brand {
    display: inline-flex;
  }
  .top .brand {
    font-size: 1.1rem;
  }
  .top .brand img {
    width: 28px;
    height: 28px;
  }
  .company-label {
    display: none;
  }
  aside {
    display: none;
  }
  aside.open {
    display: block;
    position: fixed;
    inset: 4rem 0 auto 0;
    max-height: 73dvh;
    height: auto;
    z-index: 5;
    border-bottom: 1px solid var(--line);
  }
  aside.open > .brand {
    display: none;
  }
  aside nav {
    margin: 0;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .top {
    gap: 0.35rem;
  }
  .top button {
    padding: 0.45rem 0.65rem;
  }
  .top .actions {
    margin: 0;
  }
  .calendar {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
  .calendar .blank {
    display: none;
  }
}
@media (max-width: 440px) {
  .calendar {
    grid-template-columns: 1fr;
  }
  .cell {
    min-height: auto;
  }
  .cell:has(.calitem) {
    border-left: 4px solid var(--accent);
  }
  .top .brand em {
    display: none;
  }
  .top .brand {
    gap: 0.25rem;
  }
  .hero {
    padding: 1rem;
  }
  .top {
    position: sticky;
  }
  .brand {
    font-size: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Lite workspace surfaces */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --wash: #f4f6f5;
  --ink: #19251f;
  --muted: #526058;
  --line: #d5dcd7;
  --accent: #356323;
  --fill: #c6ee80;
  --control: #819085;
  --series: #557563;
  --in: #548124;
  --in-bg: #ecf5df;
  --warn-bg: #fff1d7;
  --bad-bg: #fae9e9;
}
:root[data-theme="dark"] {
  --bg: #101412;
  --paper: #141a16;
  --wash: #1e2821;
  --ink: #f2f6ef;
  --muted: #becac0;
  --line: #39463d;
  --control: #718376;
  --accent: #c6ef83;
  --series: #96b6a4;
  --in: #b6e679;
  --in-bg: #283c21;
  --warn-bg: #392f1f;
  --bad-bg: #3d252b;
}
#app:has(.frame) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.frame {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  order: 0;
}
.frame-inner,
.top-links nav,
.workspace {
  width: min(100%, 78rem);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 3.5rem);
  padding-right: clamp(1rem, 4vw, 3.5rem);
}
.frame-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.frame .brand {
  font-size: 1.3rem;
  white-space: nowrap;
}
.brand img {
  width: 30px;
  height: 30px;
}
.business {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}
.ui-icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.icon-btn {
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.find-button {
  margin-left: auto;
  width: min(22rem, 30vw);
  justify-content: flex-start;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid transparent;
  font-weight: 450;
}
.find-button kbd {
  margin-left: auto;
  font: inherit;
  font-size: 0.72rem;
}
.top-links {
  order: 1;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top-links nav {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.55rem;
}
.top-links a {
  padding: 0.7rem 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  min-height: 44px;
}
.top-links a[aria-current="page"] {
  box-shadow: none;
  background: none;
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.workspace {
  order: 2;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.workspace-title,
.section-head,
.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.workspace-title,
.heading {
  margin-bottom: 1.5rem;
}
.workspace-title h1,
.workspace h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.04em;
}
.workspace h2,
dialog h2 {
  font-size: 1.12rem;
}
.eyeline {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0 0 0.34rem;
}
.panel,
.card {
  border-radius: 9px;
}
.workspace .entry,
.result-link,
.record-link {
  text-decoration: none;
}
.entry:hover,
.record-link:hover,
.result-link:hover {
  text-decoration: underline;
}
.entry .tag {
  margin-left: auto;
}
.setup-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  background: var(--wash);
  color: var(--ink);
  border-radius: 7px;
  font-size: 0.92rem;
  text-decoration: none;
}
.setup-strip span:last-child,
.text-link,
.result-link,
.record-link {
  color: var(--accent);
  font-weight: 620;
}
.text-link,
.result-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.text-link:hover,
.setup-strip:hover {
  text-decoration: underline;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.cash-pane,
.today-pane {
  padding: 1.15rem 1.4rem;
  min-width: 0;
}
.cash-pane {
  border-right: 1px solid var(--line);
}
.cash-values {
  display: flex;
  gap: clamp(1.2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.cash-values b {
  display: block;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.legend {
  font-size: 0.82rem;
  color: var(--muted);
}
.legend:before {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.4rem;
  content: "";
  border-radius: 2px;
}
.legend.in:before {
  background: var(--in);
}
.legend.out:before {
  background: var(--series);
}
.cash-chart {
  display: block;
  max-height: 8rem;
  width: 100%;
  margin-top: 0.6rem;
}
.cash-chart path {
  stroke: var(--line);
  fill: none;
}
.cash-chart rect.in {
  fill: var(--in);
}
.cash-chart rect.out {
  fill: var(--series);
}
.cash-chart text {
  fill: var(--muted);
  font: 10px system-ui;
}
.section-head {
  margin: 1.65rem 0 0.6rem;
}
.section-head h2,
.between h2 {
  margin: 0;
}
.queue-list {
  border-top: 1px solid var(--line);
}
.queue {
  border-bottom: 1px solid var(--line);
}
.queue summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  color: var(--ink);
  font-size: 1rem;
}
.queue summary:before {
  content: "›";
  font-size: 1.2rem;
}
.queue[open] summary:before {
  transform: rotate(90deg);
}
.queue summary::-webkit-details-marker {
  display: none;
}
.queue > div {
  margin: 0 0 0.6rem 1.4rem;
}
.counter,
.badge {
  display: inline-block;
  border-radius: 5px;
  background: var(--wash);
  color: var(--muted);
  padding: 0.12rem 0.45rem;
  font-size: 0.79rem;
  font-weight: 650;
}
.counter {
  font-variant-numeric: tabular-nums;
}
.badge.positive {
  background: var(--in-bg);
  color: var(--accent);
}
.badge.negative {
  background: var(--bad-bg);
  color: var(--red);
}
.badge.warn {
  background: var(--warn-bg);
  color: var(--amber);
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}
.filter-tabs button {
  padding: 0.35rem 0.8rem;
  background: transparent;
  border-color: transparent;
}
.filter-tabs button[aria-pressed="true"] {
  background: var(--wash);
  border-color: var(--control);
  color: var(--ink);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 34rem;
  border: 1px solid var(--control);
  border-radius: 7px;
  padding-left: 0.7rem;
  color: var(--muted);
  margin: 0.75rem 0;
}
.search-field input {
  border: 0;
  background: transparent;
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
}
.search-field input:focus {
  outline: none;
}
.table-box {
  width: 100%;
}
.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  table-layout: auto;
}
.record-table th,
.record-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}
.record-table th {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.record-table td:first-child {
  font-weight: 600;
}
.record-table tr:focus-within,
.record-table tbody tr:hover {
  background: var(--wash);
}
.record-link {
  color: var(--ink);
  display: inline-block;
  padding: 0.3rem 0;
}
.list-foot {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 3.2rem;
  margin-bottom: 1rem;
}
.ledger-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.ledger-tools label {
  font-size: 0.82rem;
}
.ledger-tools label:first-child {
  flex: 1;
  min-width: min(15rem, 100%);
}
.age {
  display: block;
  margin-top: 0.2rem;
}
.calendar-filters {
  margin-bottom: 1rem;
}
.calendar-filters summary,
.drawer-nav summary {
  min-height: 44px;
}
.drawer-nav {
  margin-top: 0;
}
.drawer-nav a {
  display: block;
}
.drawer-nav details {
  border-top: 1px solid var(--line);
}
dialog.drawer {
  margin: 0 auto 0 0;
  width: min(23rem, 94vw);
  min-height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 1.3rem;
}
.result-link {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.workspace .grid .panel {
  margin-bottom: 0;
}
.workspace .grid {
  margin-bottom: 1rem;
}
.workspace .panel .quiet {
  line-height: 1.5;
}
.workspace button.primary,
.workspace a.primary {
  background: var(--fill);
  color: #14210b;
  border-color: var(--fill);
}
input:not([type="checkbox"]),
select,
textarea {
  border-color: var(--control);
}
@media (max-width: 650px) {
  .frame-inner {
    gap: 0.35rem;
    min-height: 3.65rem;
  }
  .frame-inner .business,
  .find-button kbd {
    display: none;
  }
  .find-button {
    width: auto;
  }
  .top-links nav {
    gap: 0.1rem 0.9rem;
  }
  .top-links a {
    font-size: 0.85rem;
  }
  .workspace {
    padding-top: 1.3rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .today-pane,
  .cash-pane {
    padding: 0.85rem 1rem;
  }
  .cash-pane {
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .record-table,
  .record-table tbody,
  .record-table tr {
    display: block;
  }
  .record-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .record-table tr {
    border-top: 1px solid var(--line);
    padding: 0.55rem 0;
  }
  .record-table td {
    border: 0;
    display: grid;
    grid-template-columns: minmax(5rem, 30%) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: baseline;
    padding: 0.15rem 0;
  }
  .record-table td:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 500;
  }
  .record-table .badge {
    justify-self: start;
  }
  .record-table .age {
    grid-column: 2;
  }
  .table-box {
    border-bottom: 1px solid var(--line);
  }
  .workspace-title {
    align-items: baseline;
  }
  .workspace-title .bar {
    gap: 0.3rem;
  }
  .cash-chart {
    max-height: 5rem;
  }
  .setup-strip {
    align-items: start;
    flex-wrap: wrap;
  }
  .frame-inner .find-button span {
    display: none;
  }
}

.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.day-grid > section,
.week-cash .cash-pane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1.2rem 1.35rem;
}
.today-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.today-heading h2,
.today-heading p {
  margin: 0;
}
.today-heading img {
  display: block;
  object-fit: cover;
  object-position: 68% 45%;
  max-width: 38%;
  width: 8.25rem;
  height: 3.35rem;
  border-radius: 5px;
}
.attention-pane > .between {
  min-height: 3.35rem;
  margin-bottom: 0.6rem;
}
.attention-pane > .between button {
  font-size: 0.83rem;
}
.queue summary .counter {
  margin-left: auto;
}
.week-cash {
  margin-top: 1.25rem;
}
.week-cash .cash-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: 1rem;
}
.week-cash .between {
  grid-column: 1/-1;
}
.week-cash .cash-values {
  grid-column: 1;
  align-self: start;
}
.week-cash .cash-chart {
  grid-column: 2;
  grid-row: 2/4;
  align-self: center;
  margin: 0;
  max-height: 6rem;
}
@media (max-width: 650px) {
  .day-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .week-cash {
    margin-top: 0.8rem;
  }
  .day-grid > section,
  .week-cash .cash-pane {
    padding: 0.85rem 1rem;
  }
  .week-cash .cash-pane {
    display: block;
  }
  .week-cash .cash-chart {
    margin-top: 0.75rem;
  }
  .top-links nav {
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-content: space-between;
    column-gap: 0.18rem;
  }
  .top-links a {
    justify-content: center;
    font-size: 0.78rem;
    padding-inline: 0;
  }
}
@media (max-width: 650px) {
  :root[data-text-size]:not([data-text-size="100"]) .top-links nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

#edit fieldset{border:1px solid var(--line);border-radius:8px;padding:.75rem 1rem;margin:0}
#edit [hidden]{display:none!important}
.billing-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;background:var(--wash);padding:1rem;border-radius:8px}
.billing-review p,.multiline{white-space:pre-line;overflow-wrap:anywhere;margin:.25rem 0}

/* Full-height member sign-in, with the original JCRM construction photograph. */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}
.auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(2rem, 4.6vw, 6rem);
  background: #0b100e;
  color: #fff;
}
.auth-photo,
.auth-brand::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-photo {
  object-fit: cover;
  object-position: 63% center;
  z-index: -2;
}
.auth-brand::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, #07110d6b, #08110c08 30%, #08100dc9 71%, #080e0cf7);
}
.auth .brand {
  width: fit-content;
  gap: .35em;
  font-size: clamp(1.3rem, 1.9vw, 2rem);
  line-height: 1;
}
.auth .brand img { width: 1.43em; height: 1.43em; }
.auth-story { padding-bottom: clamp(.5rem, 2vh, 2rem); }
.auth-story h1 {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(3.5rem, 6.4vw, 7.8rem);
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.066em;
}
.auth-story h1 span { color: #c6ff16; }
.auth-story p { max-width: 28em; margin: 0; color: #f3f6f4; font-size: clamp(1rem, 1.25vw, 1.35rem); }
.auth-access {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3.5rem);
  background: var(--paper);
  color: var(--ink);
}
.auth-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; }
.auth-preferences { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.auth-body { display: grid; align-items: center; padding: clamp(2rem, 6vh, 4.5rem) 0; }
.auth-form-wrap { width: min(100%, 26rem); margin-inline: auto; }
.auth-form-wrap h2 {
  font-size: clamp(2.25rem, 3.2vw, 3.6rem);
  letter-spacing: -.058em;
  line-height: 1.07;
  margin: 0 0 .65rem;
}
.auth-instruction { color: var(--muted); margin: 0 0 2rem; }
#auth { gap: 1.08rem; }
#auth label { gap: .43rem; font-size: .92rem; }
#auth input {
  min-height: 3rem;
  padding: .6rem .85rem;
  border-radius: .5rem;
  font-size: 1rem;
  font-weight: 450;
  background: var(--paper);
  color: var(--ink);
}
#auth .primary {
  min-height: 3rem;
  margin-top: .25rem;
  border-color: #c6ff16;
  background: #c6ff16;
  color: #10150c;
  border-radius: .55rem;
}
#auth .primary::after { content: "→" / ""; font-size: 1.15em; line-height: 1; }
#auth .primary:hover { background: #b6ee11; border-color: #b6ee11; }
#auth .error:empty { display: none; }
.auth-reset {
  display: flex;
  justify-content: flex-end;
  margin: -.9rem 0 -.65rem;
}
.auth-reset a, .auth-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: .91rem;
  font-weight: 680;
  text-underline-offset: .2em;
}
.auth-next { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 1.45rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.auth-next span, .auth-footer { font-size: .87rem; color: var(--muted); }
.auth-footer { text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.auth-footer strong { color: var(--ink); font-weight: 650; }
:root[data-theme="dark"] .auth-access { --paper: #101412; --wash: #222a25; }
:root[data-theme="dark"] #auth input { background: #181e1a; }
@media (max-width: 740px) {
  .auth { display: flex; flex-direction: column; }
  .auth-brand { display: block; padding: 1.25rem max(1.25rem, 5vw); order: 1; }
  .auth-access { display: contents; }
  .auth-tools { justify-content: space-between; order: 0; padding: .7rem max(1rem, 5vw); background: var(--paper); }
  .auth-story { padding: .45rem 0; }
  .auth-story h1 { font-size: clamp(2.25rem, 7vw, 3.2rem); margin: 0 0 .4rem; }
  .auth-story h1 br { display: none; }
  .auth-story p { max-width: 19em; font-size: .92rem; }
  .auth-photo { object-position: 60% 48%; }
  .auth-brand::after { background: linear-gradient(90deg, #07100df0, #07100da8 53%, #07100d22); }
  .auth-body { order: 2; flex: 1; align-items: start; padding: 1.7rem max(1.25rem, 5vw); }
  .auth-form-wrap { width: min(100%, 30rem); }
  .auth-form-wrap h2 { font-size: 2.05rem; }
  .auth-instruction { margin-bottom: 1.4rem; }
  .auth-footer { order: 3; padding: .8rem 1rem max(1.25rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .auth-preferences { gap: .2rem; }
  .auth-preferences button { padding-inline: .55rem; }
  .auth-tools { padding-inline: .7rem; flex-wrap: wrap; }
}

/* Appearance settings share the same compact treatment in both editions of the Lite UI. */
button[data-act="theme"], .text-size select {
  appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.35;
  cursor: pointer;
}
button[data-act="theme"] { gap: .35em; padding: .2em .38em; }
button[data-act="theme"]::before {
  content: "";
  width: .85em;
  height: .85em;
  border-radius: 50%;
  box-shadow: inset -.26em -.12em 0 currentColor;
}
:root[data-theme="dark"] button[data-act="theme"]::before {
  box-shadow: none;
  border: 1.5px solid currentColor;
}
.text-size {
  display: inline-flex;
  position: relative;
  align-items: center;
  flex: 0 0 auto;
  font-size: .875rem;
  font-weight: 550;
  color: var(--muted);
}
.text-size span { position: absolute; left: .3em; pointer-events: none; }
.text-size::after {
  content: "";
  position: absolute;
  right: .4em;
  width: .33em;
  height: .33em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.12em) rotate(45deg);
  pointer-events: none;
}
.text-size select { width: auto; min-width: 6em; padding: .2em 1.2em .2em 2em; }
.text-size option { background: var(--paper); color: var(--ink); }
button[data-act="theme"]:hover, .text-size:hover, .text-size select:hover { color: var(--ink); background: transparent; }
button[data-act="theme"]:focus-visible, .text-size select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.auth-next .corporate-login { margin-inline-start: auto; gap: .2em; }
.auth-next .corporate-login span { color: inherit; }

@media (max-width: 400px) {
  .frame-inner { flex-wrap: wrap; gap: .25rem; padding-inline: .5rem; }
  .frame-inner .brand { gap: .25em; }
  .frame-inner .find-button { width: 44px; justify-content: center; padding-inline: 0; }
}
