/* PASS 3: the two owner tabs "Their QuickBooks" (oq-) and "Money" (om-). Loaded after owner-aurora.css.
   Pictures: chatgpt-pass3\C-their-quickbooks-tab.png (Their QuickBooks) and chatgpt-pass5\M1-money-desktop.png and
   M1-money-phone.png (Money), all look A.
   Part 1 is the layout and works in every look (it only reads the names the looks fill in).
   Part 2 is look A (Northern lights, the default) only: glass cards, solid green, teal and red pills, the orange band.
   The parts lay out by the room they really have (container queries), so the menu on the left and the docked Ask
   Claude panel are counted. Text 16px or more on a computer and 18px or more on a phone; every press 48px or taller
   with words on it; no movement when the person asks for less movement. */

/* ==========================================================================
   PART 1   LAYOUT (every look)
   ========================================================================== */

.ow-tab-panel.oq-on,
.ow-tab-panel.om-on {
  position: relative;
}

.oq,
.om,
.oq-top,
.om-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.oq,
.om {
  container-type: inline-size;
}

.oq-top {
  gap: 14px;
}

.oq-top:empty {
  display: none;
}

/* ---- the head row of the Money tab (pass 3 run 1: no Back button on the top-level tabs) ---- */
.oq-backrow {
  display: flex;
  justify-content: flex-end;
}

.om-headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.om-sub {
  margin: 0;
}

/* pass 3 run 1: the two top-level tabs have no Back button any more (the menu is the way out); the rules for
   .oq-backrow and .om-back stay only for an older page that still has one */

/* ---- waiting, and the pretend band ---- */
.oq-state,
.om-state {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.oq-state p,
.om-state p {
  margin: 0;
}

.oq-spin,
.om-spin {
  flex: none;
  width: 28px;
  height: 28px;
  border: 3px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: oq-turning 1s linear infinite;
}

@keyframes oq-turning {
  to { transform: rotate(360deg); }
}

.oq-band,
.om-band {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--ink);
  font: 700 var(--text-quiet)/1.35 var(--font-ui);
  letter-spacing: .02em;
}

.oq-band .icon,
.om-band .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--warn);
}

.oq-problem .actions,
.om .notice .actions {
  margin-top: 10px;
}

/* ---- the cards inside the panel ---- */
.oq-card,
.om-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--box-bg);
}

.oq-card > *,
.om-card > * {
  margin-top: 0;
  margin-bottom: 0;
}

.oq-card .h2,
.om-card .h2 {
  margin: 0;
}

.oq-card .h3,
.om-card .h3 {
  margin: 0;
}

@container (max-width: 520px) {
  .oq-card,
  .om-card {
    padding: 16px;
  }
}

/* ==========================================================================
   THEIR QUICKBOOKS
   ========================================================================== */

/* ---- the company ---- */
.oq-cos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oq-cos-h {
  margin: 0;
}

.oq-co-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.oq-co {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--box-bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.oq-co[aria-pressed="true"] {
  border-color: var(--on);
  box-shadow: inset 0 0 0 1px var(--on);
}

.oq-co:disabled {
  cursor: not-allowed;
  border-style: dashed;
}

.oq-co:focus-visible,
.om-client-btn:focus-visible,
.oq-tech > summary:focus-visible {
  outline: 3px solid var(--focus, var(--on));
  outline-offset: 2px;
}

.oq-co-name {
  font: 600 var(--text)/1.25 var(--font-ui);
}

.oq-co-file {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.oq-header {
  margin: 0;
  color: var(--soft);
  font-size: var(--text-quiet);
}

/* ---- the plan on the left, the step log on the right; one under the other when the room is narrow ---- */
.oq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@container (max-width: 860px) {
  .oq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oq-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.oq-asked {
  margin: 0;
  color: var(--soft);
  font-style: italic;
}

.oq-note {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--on);
}

.oq-starts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@container (max-width: 640px) {
  .oq-starts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oq-start {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.oq-start p {
  margin: 0;
}

.oq-start .btn {
  margin-top: auto;
}

.oq-ask {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.oq-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-status li {
  padding-left: 18px;
  border-left: 3px solid var(--rule);
  color: var(--soft);
}

.oq-status li:last-child {
  border-left-color: var(--accent);
  color: var(--ink);
}

/* ---- the rows of a plan: now in QuickBooks, an arrow, after ---- */
.oq-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.oq-row.is-yellow,
.oq-row.is-orange {
  border-color: var(--warn-line);
}

.oq-row.is-red {
  border-color: var(--bad-line);
}

.oq-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}

.oq-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--ink);
  font: 700 1.125rem/1 var(--font-ui);
}

.oq-what {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  font-weight: 600;
}

.oq-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.oq-now,
.oq-after {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.oq-after {
  border-color: var(--on);
}

.oq-l {
  color: var(--soft);
  font: 600 var(--text-quiet)/1.25 var(--font-ui);
}

.oq-arrow {
  align-self: center;
  color: var(--on);
  font: 400 1.75rem/1 var(--font-ui);
}

@container (max-width: 560px) {
  .oq-change {
    grid-template-columns: minmax(0, 1fr);
  }

  .oq-change > .oq-arrow {
    justify-self: start;
    margin-left: 14px;
    transform: rotate(90deg);
  }
}

.oq-src {
  margin: 0;
}

.oq-leave {
  margin-left: auto;
}

.oq-row-state {
  margin-left: auto;
}

.oq-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oq-left p {
  margin: 0;
}

.oq-left-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-left-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

/* ---- checks, limits and the notes under a plan ---- */
.oq-checks-wrap,
.oq-limits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oq-limits p {
  margin: 0;
  color: var(--soft);
}

.oq-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-left: 4px solid var(--rule);
  border-radius: 6px;
}

.oq-check > .icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--soft);
}

.oq-check .tick {
  flex: 1 1 auto;
}

.oq-check.is-ok { border-left-color: var(--good); }
.oq-check.is-ok > .icon { color: var(--good); }
.oq-check.is-yellow,
.oq-check.is-orange { border-left-color: var(--warn); background: var(--warn-bg); }
.oq-check.is-yellow > .icon,
.oq-check.is-orange > .icon { color: var(--warn); }
.oq-check.is-red { border-left-color: var(--bad); background: var(--bad-bg); }
.oq-check.is-red > .icon { color: var(--bad); }
.oq-check.is-your_step { border-left-color: var(--on); }
.oq-check.is-your_step > .icon { color: var(--on); }

.oq-why {
  min-height: 1.5em;
  margin: 0;
}

.oq-approve-row .btn-main {
  flex: 1 1 260px;
}

@media (max-width: 699px) {
  .oq-approve-row .btn-main {
    flex: 0 0 auto;
  }
}

/* ---- hours ---- */
.oq-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@container (max-width: 560px) {
  .oq-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oq-two .field {
  margin: 0;
}

.oq-hours th,
.oq-hours td {
  vertical-align: middle;
}

.oq-hours .oq-day {
  font-weight: 600;
  text-align: left;
}

.oq-hours .oq-hin {
  width: 7.5rem;
  max-width: 100%;
  text-align: right;
}

.oq-total {
  margin: 0;
}

.oq-hours-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.oq-hp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.7fr) 5.5rem 2rem 5.5rem;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
}

.oq-hp-row:first-child {
  border-top: 0;
}

.oq-hp-head > span {
  color: var(--soft);
  font: 600 var(--text-quiet)/1.25 var(--font-ui);
}

.oq-hp-row .num {
  text-align: right;
}

.oq-hp-n {
  color: var(--fig);
  font: 600 1.625rem/1.1 var(--font-fig);
}

.oq-hp-total {
  background: var(--box-bg);
  font-weight: 600;
}

.oq-hp-row .oq-arrow {
  justify-self: center;
}

@container (max-width: 560px) {
  .oq-hp-head {
    display: none;
  }

  .oq-hp-row {
    grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
  }

  .oq-hp-row > span:nth-child(1),
  .oq-hp-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .oq-hp-row .num {
    text-align: left;
  }
}

.oq-turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--on);
  border-left-width: 6px;
  border-radius: 12px;
}

.oq-turn p {
  margin: 0;
}

.oq-turn-h {
  font-size: var(--text);
}

.oq-pretend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--warn-line);
  border-radius: 12px;
}

.oq-pretend p {
  margin: 0;
}

/* ---- the step log: one line per step, the moment it happens ---- */
.oq-log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.oq-log-sub,
.oq-log-empty {
  margin: 0;
}

.oq-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-log:empty {
  display: none;
}

.oq-line {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}

.oq-line::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 2px;
  left: 15px;
  width: 2px;
  background: var(--rule);
}

.oq-line:last-child::before {
  display: none;
}

.oq-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--soft);
}

.oq-dot .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.oq-line-in {
  min-width: 0;
  margin: 0;
}

.oq-line-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.oq-time {
  color: var(--soft);
  font-size: var(--text-quiet);
  white-space: nowrap;
}

.oq-word {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font: 700 var(--text-quiet)/1.5 var(--font-ui);
  letter-spacing: .04em;
}

.oq-text {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.oq-line.is-good .oq-dot,
.oq-line.is-good .oq-word,
.oq-line.is-end .oq-dot,
.oq-line.is-end .oq-word { color: var(--good); }
.oq-line.is-warn .oq-dot,
.oq-line.is-warn .oq-word { color: var(--warn); }
.oq-line.is-bad .oq-dot,
.oq-line.is-bad .oq-word { color: var(--bad); }
.oq-line.is-turn .oq-dot,
.oq-line.is-turn .oq-word { color: var(--on); }

/* YOUR TURN: bigger, in its own frame */
.oq-line.is-turn .oq-line-in {
  padding: 10px 12px;
  border: 1px solid var(--on);
  border-radius: 10px;
}

.oq-line.is-turn .oq-text {
  font-size: 1.125em;
  font-weight: 600;
}

/* a line with a tech part opens itself (the small arrow on the right) */
.oq-tech > summary {
  display: block;
  position: relative;
  min-height: 48px;
  padding: 2px 40px 2px 0;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.oq-tech > summary::-webkit-details-marker {
  display: none;
}

.oq-tech > summary::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--soft);
  border-bottom: 2px solid var(--soft);
  transform: rotate(45deg);
}

.oq-tech[open] > summary::after {
  top: 19px;
  transform: rotate(-135deg);
}

.oq-tech dl {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: var(--text-quiet);
}

.oq-tech dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.oq-tech dt {
  color: var(--soft);
}

.oq-tech dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.oq-runs-h {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.oq-runs {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oq-run {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.oq-run:first-child {
  border-top: 0;
}

.oq-run-words {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
}

.oq-run-when {
  width: 100%;
}

/* ==========================================================================
   MONEY
   ========================================================================== */

.om-yearrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
}

.om-year {
  width: 10rem;
  margin: 0;
}

.om-asof {
  flex: 1 1 260px;
  margin: 0 0 14px;
}

/* ---- the three figures on top: Paid this year (big), Open, Late ---- */
.om-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

@container (max-width: 860px) {
  .om-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .om-paid {
    grid-column: 1 / -1;
  }
}

@container (max-width: 290px) {
  .om-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.om-big {
  margin: 0;
  color: var(--fig);
  font: 600 clamp(2.75rem, 9cqi, 4.25rem)/1 var(--font-fig);
}

.om-mid {
  margin: 0;
  color: var(--fig);
  font: 600 2.25rem/1.05 var(--font-fig);
}

@container (max-width: 420px) {
  .om-mid {
    font-size: 1.875rem;
  }

  .om-small {
    padding: 14px;
  }
}

.om-split {
  display: flex;
  gap: 3px;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rule);
}

.om-split > span {
  flex-basis: 0;
  min-width: 8px;
}

.om-split .is-paid,
.om-sw.is-paid { background: var(--good); }
.om-split .is-open,
.om-sw.is-open { background: var(--on); }
.om-split .is-late,
.om-sw.is-late { background: var(--bad); }

.om-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  font-size: var(--text-quiet);
  list-style: none;
}

.om-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-sw {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.om-line {
  margin: 0;
}

.om-line svg {
  display: block;
  width: 100%;
  height: 64px;
  overflow: visible;
}

.om-line-run {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  /* the line draws itself in once; with a stroke that does not scale, the dash is in screen pixels: 3000 is longer
     than any line here */
  stroke-dasharray: 3000;
  stroke-dashoffset: 0;
  animation: om-draw .8s ease-out both;
}

@keyframes om-draw {
  from { stroke-dashoffset: 3000; }
}

.om-line-area {
  fill: var(--good-bg);
  stroke: none;
}

.om-line-dot {
  display: none;
}

.om-line-ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--soft);
  font-size: var(--text-quiet);
}

.om-total {
  margin: 0;
}

.om-small p {
  margin: 0;
}

.om-checkin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bad);
}

.om-checkin .icon {
  flex: none;
  width: 22px;
  height: 22px;
}

/* ---- the pills: Paid, Open, Late, Draft, Sent ---- */
.om-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 700 var(--text-quiet)/1.2 var(--font-ui);
  white-space: nowrap;
}

.om-chip.is-paid,
.om-chip.is-sent { border-color: var(--good-line); background: var(--good-bg); color: var(--good); }
.om-chip.is-open { border-color: var(--on); color: var(--on); }
.om-chip.is-late { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.om-chip.is-draft { border-color: var(--accent); }

/* ---- Clients and Invoices, then the drafts and Monthly books ---- */
.om-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@container (max-width: 860px) {
  .om-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.om-client-list,
.om-inv-list,
.om-plan-list,
.om-draft-list,
.om-skipped {
  margin: 0;
  padding: 0;
  list-style: none;
}

.om-client + .om-client {
  border-top: 1px solid var(--rule);
}

.om-client-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.om-client-btn:hover {
  background: var(--box-bg);
}

.om-client-words {
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.om-client-name {
  font: 600 var(--text)/1.25 var(--font-ui);
}

.om-client-sub {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.om-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-inv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.om-inv:first-child {
  border-top: 0;
}

.om-inv-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.om-inv-name {
  font-weight: 600;
}

.om-inv-meta {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.om-inv-amt {
  font-weight: 600;
  text-align: right;
}

@container (max-width: 440px) {
  .om-inv {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .om-inv-words {
    grid-row: span 2;
  }

  .om-inv .om-chip {
    justify-self: end;
  }
}

.om-plan-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.om-plan {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.om-plan:first-child {
  padding-top: 0;
  border-top: 0;
}

.om-plan-what {
  margin: 0 0 6px;
}

.om-plan-pick {
  margin: 0;
}

.om-plan-total {
  color: var(--fig);
  font-size: 1.5rem;
}

.om-draft-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.om-draft-words {
  flex: 1 1 200px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}

@container (max-width: 520px) {
  .om-draft-cta .btn {
    width: 100%;
  }

  .om-draft-words {
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }
}

.om-said {
  margin: 0;
}

.om-skipped {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.om-skipped li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--soft);
}

.om-skipped li.is-red {
  color: var(--bad);
}

.om-skipped .icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.om-draft-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.om-draft {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.om-draft > * {
  margin: 0;
}

.om-draft .actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.om-draft .rows .row {
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.om-draft-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.om-mail {
  overflow-wrap: anywhere;
}

.om-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--warn);
}

.om-warn.is-orange {
  color: var(--bad);
  font-weight: 600;
}

.om-warn .icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.om-notes .list {
  margin: 0;
}

/* ---- the confirm step and one client (pop-ups) ---- */
.om-send-row {
  align-items: flex-start;
}

.om-send-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.om-client-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.om-client-figs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.om-l {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.om-client-figs b {
  color: var(--fig);
  font: 600 1.5rem/1.15 var(--font-fig);
}

@media (max-width: 560px) {
  .om-client-figs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oq-look-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ==========================================================================
   PART 2   LOOK A, AURORA GLASS (the Northern lights look only)
   ========================================================================== */

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-card,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-card {
  border-color: rgba(176, 222, 232, .24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 34, 50, .74), rgba(9, 22, 36, .8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -26px rgba(0, 0, 0, .8);
}

/* the wide orange band: solid, dark words */
:is(html[data-theme="aurora"], html:not([data-theme])) .oq-band,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-band {
  border-color: #f2a33a;
  background: #f2a33a;
  color: #241200;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-band .icon,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-band .icon {
  color: #241200;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-co[aria-pressed="true"] {
  border-color: rgba(150, 236, 224, .6);
  background: linear-gradient(180deg, rgba(23, 128, 121, .34), rgba(12, 95, 91, .26));
  box-shadow: none;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-n {
  border-color: #d6ad66;
  color: #f0c577;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-after {
  border-color: rgba(63, 199, 180, .65);
  background: rgba(23, 128, 121, .16);
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-arrow {
  color: #5fe0cc;
}

/* the step log: teal rings with a tick (picture C), solid word pills */
:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-good .oq-dot,
:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-end .oq-dot {
  color: #3fc7b4;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line::before {
  background: rgba(63, 199, 180, .55);
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-word {
  border-color: transparent;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-good .oq-word,
:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-end .oq-word {
  background: #5fd98a;
  color: #052b14;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-warn .oq-word {
  background: #f6c344;
  color: #2b1d00;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-bad .oq-word {
  background: #f0645a;
  color: #2a0402;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-turn .oq-word {
  background: #8fc4ff;
  color: #04213f;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-note .oq-word {
  border-color: rgba(223, 231, 234, .45);
  color: #dfe7ea;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-turn .oq-dot {
  color: #8fc4ff;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .oq-line.is-turn .oq-line-in,
:is(html[data-theme="aurora"], html:not([data-theme])) .oq-turn {
  border-color: #8fc4ff;
  background: rgba(32, 70, 120, .3);
}

/* Money: solid green, teal and red pills, as in picture M1 */
:is(html[data-theme="aurora"], html:not([data-theme])) .om-chip.is-paid,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-chip.is-sent {
  border-color: #5fd98a;
  background: #5fd98a;
  color: #052b14;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-chip.is-open {
  border-color: #35c9c1;
  background: #35c9c1;
  color: #032a29;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-chip.is-late {
  border-color: #f0645a;
  background: #f0645a;
  color: #2a0402;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-chip.is-draft {
  border-color: #d6ad66;
  background: rgba(20, 36, 50, .82);
  color: #f7f2e8;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-split .is-paid,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-sw.is-paid { background: #5fd98a; }
:is(html[data-theme="aurora"], html:not([data-theme])) .om-split .is-open,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-sw.is-open { background: #35c9c1; }
:is(html[data-theme="aurora"], html:not([data-theme])) .om-split .is-late,
:is(html[data-theme="aurora"], html:not([data-theme])) .om-sw.is-late { background: #f0645a; }

:is(html[data-theme="aurora"], html:not([data-theme])) .om-line-run {
  stroke: #f0c577;
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-line-area {
  fill: rgba(95, 217, 138, .14);
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-big {
  color: #f4ca84;
  text-shadow: 0 0 24px rgba(240, 197, 119, .25);
}

/* ---- less movement when the person asks for it ---- */
@media (prefers-reduced-motion: reduce) {
  .oq-spin,
  .om-spin {
    animation: none;
    border-top-color: var(--rule);
  }

  .oq-co,
  .om-client-btn,
  .oq-tech > summary::after {
    transition: none !important;
  }

  .om-line-run {
    animation: none;
  }
}

/* ==========================================================================
   PASS 3 RUN 1 (Oct 17): Their QuickBooks closer to picture C
   ========================================================================== */
/* Approve and Cancel plan stay in sight: the bar sticks to the bottom of the screen while the plan card is on it
   (on a phone above the menu bar), then rests at the end of the plan */
.oq-approve-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 -10px;
  padding: 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pop-bg);          /* the look's own solid ground (cream in engraved-cream) */
  box-shadow: 0 -10px 28px -14px rgba(0, 0, 0, .8);
}

/* a button the keyboard reaches is never left under the sticking bar: owner-qbo.js scrolls it clear (focusin) */

@media (max-width: 899px) {
  .oq-approve-bar {
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  }
}

/* "How this works": the limits and the before-copy, closed until he wants them */
.oq-how {
  margin: 0;
}

.oq-how-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--link);
  text-align: left;
  cursor: pointer;
  font: var(--w-ui) var(--text-quiet)/1.3 var(--font-ui);
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.oq-how-btn::-webkit-details-marker {
  display: none;
}

.oq-how-btn::marker {
  content: "";
}

.oq-how-i {
  flex: none;
  transition: transform .15s ease;
}

.oq-how-btn[aria-expanded="true"] .oq-how-i {
  transform: rotate(90deg);
}

.oq-how-in[hidden] {
  display: none;
}

.oq-how-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .oq-how-i {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   JOINING STEP (Oct 17 2026): Money with "Customize this page". "Month by month" is its own card across the whole
   row; "Paid this year" draws its paid / open / late split as Bars (the split bar) or Pie (a donut) with the same
   key. Colors from the same Look A tokens as the split bar. The donut sweeps in once, never with reduced motion.
   --------------------------------------------------------------------------------------------------------------- */
.om-bymonth {
  grid-column: 1 / -1;
}

.om-chart {
  display: grid;
  gap: 12px;
}

.om-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.om-pie .om-key {
  flex-direction: column;
  gap: 8px;
}

.om-donut {
  flex: none;
  width: 132px;
  height: 132px;
  animation: om-donut-in .6s ease-out both;
}

.om-donut circle {
  fill: none;
  stroke-width: 18;
}

.om-donut .om-donut-track { stroke: var(--rule); }
.om-donut .is-paid { stroke: var(--good); }
.om-donut .is-open { stroke: var(--on); }
.om-donut .is-late { stroke: var(--bad); }

@keyframes om-donut-in {
  from { opacity: 0; transform: rotate(-60deg) scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  .om-donut {
    animation: none;
  }
}

@media (forced-colors: active) {
  .om-donut .is-paid,
  .om-donut .is-open,
  .om-donut .is-late { stroke: CanvasText; }
}

/* aurora: the donut uses the same three colors as the split bar and the key above (lines of the aurora block) */
:is(html[data-theme="aurora"], html:not([data-theme])) .om-donut .is-paid { stroke: #5fd98a; }
:is(html[data-theme="aurora"], html:not([data-theme])) .om-donut .is-open { stroke: #35c9c1; }
:is(html[data-theme="aurora"], html:not([data-theme])) .om-donut .is-late { stroke: #f0645a; }

/* ---------------------------------------------------------------------------------------------------------------
   CONNECT (Oct 21 2026): the live Connect flow of Their QuickBooks (owner-qbo.js, "Connect"). Every look: only the
   page's own names (cards, notices, tags, ticks), so each look draws it in its own colors. One card at a time on
   the top of the tab: Connect, Waiting for QuickBooks, the confirm card, Connect again; the connected company gets
   one line with Disconnect.
   --------------------------------------------------------------------------------------------------------------- */
.oq-connect {
  max-width: 820px;
}

.oq-connect p {
  margin: 0;
}

.oq-cn-backrow {
  margin-top: -4px;
}

.oq-cn-back {
  justify-content: flex-start;
  padding-left: 4px;
  text-align: left;
}

/* Intuit's own "Connect to QuickBooks" button. Intuit's rule for apps that connect to QuickBooks is to use its
   button as it gives it: since 2021 text only (no logo), white words on QuickBooks green, a darker green under the
   pointer. Drawn here in plain CSS (no outside file), the same in every look: its two greens are Intuit's, not the
   page's. White on this green is 3.41 to 1, so the words must be large text to pass AA (3 to 1 for bold text of
   18.7px or more): bold, and never under 19px in any look or width (Pt8 picture 7; tools\firm-check.mjs checks it).
   Off (live switched off): the page's own dashed "cannot be pressed yet" look (.btn[disabled]), with the reason under it. */
.oq-c2qb {
  --b-bg: #2ca01c;
  --b-ink: #ffffff;
  --b-line: #2ca01c;
  --b-icon: #ffffff;
  --b-shadow: none;
  --b-w: 700;
  border-radius: 4px;
  font-size: max(19px, var(--text-btn));
  font-weight: 700;
}

.oq-c2qb:not([disabled]):hover {
  background: #108000;
  border-color: #108000;
  filter: none;
}

/* the two names side by side (one under the other when the room is narrow) */
.oq-cn-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@container (max-width: 560px) {
  .oq-cn-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oq-cn-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.oq-cn-big {
  color: var(--ink);
  font: 600 var(--text)/1.3 var(--font-ui);
}

.oq-cn-more {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.oq-cn-same {
  margin: 0;
}

/* the client list: one row per client, the whole row takes the press */
.oq-cn-picks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.oq-cn-picks > legend {
  margin-bottom: 6px;
  padding: 0;
}

.oq-cn-pick {
  align-items: center;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.oq-cn-pick:has(input:checked) {
  border-color: var(--on);
}

.oq-cn-pick input:focus-visible {
  outline: 3px solid var(--focus, var(--on));
  outline-offset: 2px;
}

.oq-cn-yesrow .btn-main {
  flex: 0 1 auto;
}

/* the connected company: its QuickBooks file, practice or live, and Disconnect */
.oq-conn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.oq-conn-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* the tick stays with its words when the line breaks on a phone */
.oq-conn-what {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.oq-conn-words .icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--good);
}

.oq-conn-why {
  flex-basis: 100%;
  margin: 0;
}

.oq-cn-note .actions,
.oq-cn-note p + p {
  margin-top: 6px;
}

.oq-connect .notice .actions {
  margin-top: 10px;
}

@media (forced-colors: active) {
  .oq-c2qb {
    border-color: ButtonText;
  }
}

/* ==========================================================================
   OUR FIRM BOOKS ON THE MONEY TAB (Oct 23 2026; owner-money.js "our Firm Books")
   Added at the end on purpose: this file is shared by both tabs. Layout first (every look), then look A.
   ========================================================================== */

/* connected: which QuickBooks company the tab reads, live or practice, and "Manage connection" */
.om-firm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.om-firm-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  overflow-wrap: anywhere;
}

/* the tick stays with its words when the line breaks on a phone */
.om-firm-what {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.om-firm-words .icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--good);
}

.om-firm-manage {
  flex: none;
}

/* not connected yet: the way to connect it, in place of an error */
.om-firm-off-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.om-firm-off-head .ring {
  flex: none;
}

/* earned, spent and kept: this month and this year side by side, one under the other when the room is short */
.om-pnl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.om-pnl-head p {
  margin: 0;
}

.om-pnl-empty {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.om-pnl-empty .icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--accent);
}

.om-pnl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 32px;
}

@container (max-width: 620px) {
  .om-pnl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.om-pnl-part {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.om-pnl-part > * {
  margin-top: 0;
  margin-bottom: 0;
}

.om-pnl-kept.is-less {
  color: var(--bad);
}

/* ---- look A, Aurora glass ---- */
:is(html[data-theme="aurora"], html:not([data-theme])) .om-firm {
  border-color: rgba(176, 222, 232, .24);
  background: rgba(9, 22, 36, .55);
}

:is(html[data-theme="aurora"], html:not([data-theme])) .om-pnl-kept:not(.is-less) {
  color: #f4ca84;
}

/* ---- Oct 23 2026, fixes: a card alone in the Money grid takes the full row (Clients, Invoices and Monthly books
   hide when they have nothing to show); the client's Activity note on a run result takes no room when empty ---- */
.om-grid > :only-child {
  grid-column: 1 / -1;
}

.oq-told:empty {
  display: none;
}
