/*
 * Layout and components. Every colour in here comes from a variable in
 * theme.css — no hex values below this line, so a recolour touches one file.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input {
  font: inherit;
}

/* --------------------------------------------------------------------------
 * Boot
 * ------------------------------------------------------------------------ */

.boot {
  padding: var(--gap-4);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--gap-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-fill);
  font-size: 15px;
  font-weight: 600;
}

.btn:hover {
  background: var(--brand-strong);
}

/* NEVER `disabled`. The phone app learned this the expensive way: a disabled
   primary action fires no handler at all, so a refused tap is undetectable —
   no message, no log, nothing to tell apart from a dead screen. Every button
   here is always clickable and says what is missing when it is pressed.
   `.btn.is-waiting` only dims it while a request is genuinely in flight, and
   the handler still guards itself. */
.btn.is-waiting {
  opacity: 0.6;
}

.btn-quiet {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-quiet:hover {
  background: var(--panel);
}

.btn-plain {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-plain:hover {
  background: transparent;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
 * Fields
 * ------------------------------------------------------------------------ */

.field {
  display: block;
  margin-bottom: var(--gap-2);
}

.field-label {
  display: block;
  margin-bottom: var(--gap-1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}

.field-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.field-code {
  letter-spacing: 0.4em;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  padding: 0;
}

/* --------------------------------------------------------------------------
 * Messages. A message is a BLOCK, never coloured text.
 * ------------------------------------------------------------------------ */

.notice {
  padding: 12px var(--gap-2);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  margin-bottom: var(--gap-2);
}

.notice-alert {
  background: var(--alert);
  color: var(--on-fill);
}

/* --------------------------------------------------------------------------
 * Sign in
 * ------------------------------------------------------------------------ */

.gate {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--gap-4) var(--gap-2);
}

.gate-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-3);
}

.gate-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-fill);
  font-weight: 700;
  margin-bottom: var(--gap-2);
}

.gate-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--gap-3);
}

.gate-foot {
  margin-top: var(--gap-3);
  padding-top: var(--gap-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-2);
}

.gate-address {
  color: var(--text-secondary);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
 * The shell: a fixed left nav, content to the right.
 * ------------------------------------------------------------------------ */

.shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.nav {
  width: var(--shell-width);
  flex: 0 0 var(--shell-width);
  background: var(--brand);
  color: var(--on-fill);
  padding: var(--gap-3) var(--gap-2);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}

.nav-brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-business {
  font-size: 13px;
  /* White held back rather than greyed. Grey on this blue goes muddy — the
     same reason the phone app has a controlSubText role. */
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-fill);
  font-weight: 600;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-item[aria-current="page"] {
  background: var(--card);
  color: var(--text);
}

.nav-foot {
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
}

.nav-foot .btn-quiet {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--on-fill);
}

.nav-foot .btn-quiet:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-toggle button {
  flex: 1;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--on-fill);
  font-size: 13px;
  font-weight: 600;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--card);
  color: var(--text);
}

.main {
  flex: 1;
  min-width: 0;
  padding: var(--gap-3);
}

.main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap-1);
}

.page-sub {
  color: var(--text-secondary);
  margin-bottom: var(--gap-3);
}

/* --------------------------------------------------------------------------
 * The three numbers
 * ------------------------------------------------------------------------ */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-2);
  margin-bottom: var(--gap-3);
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-3);
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tile-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: var(--gap-2);
}

/* When a number cannot be produced, the tile says so in a full sentence at
   body size, in place of the number. It never prints a zero: "nothing is
   owed" and "nothing records what is owed" are different facts and a 0 says
   the first one. */
.tile-unknown {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-top: var(--gap-2);
}

/* --------------------------------------------------------------------------
 * Panels
 * ------------------------------------------------------------------------ */

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-2);
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-head {
  padding: var(--gap-2) var(--gap-3);
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 700;
}

.panel-body {
  padding: var(--gap-2) var(--gap-3) var(--gap-3);
}

/* Grouped rows sit DARKER than the card and darker than the page. See the
   surface-ladder rule in theme.css. */
.rows {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-2);
  padding: 12px var(--gap-2);
  border-bottom: 1px solid var(--border);
}

.row:last-child {
  border-bottom: 0;
}

.row-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.row-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.row-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.empty {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
 * Screens that exist in the nav and have nothing behind them yet. Says so
 * outright rather than rendering an empty page that reads as broken.
 * ------------------------------------------------------------------------ */

.soon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-4) var(--gap-3);
  max-width: 520px;
}

/* --------------------------------------------------------------------------
 * Narrow screens. The web app is for a big screen and a quiet moment, but a
 * browser window can be any width and a broken layout is still broken.
 * ------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .tiles,
  .panels {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .shell {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex: none;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    flex: none;
  }
}

/* --------------------------------------------------------------------------
 * Clients: the toolbar above the list
 * ------------------------------------------------------------------------ */

.toolbar {
  display: flex;
  gap: var(--gap-2);
  align-items: center;
  margin-bottom: var(--gap-2);
  flex-wrap: wrap;
}

.toolbar-search {
  flex: 1 1 260px;
  min-width: 0;
}

/* A row of mutually exclusive choices. Never `disabled` on the selected one:
   it stays clickable and re-selecting it is a harmless no-op, same rule as
   the language toggle. */
.segmented {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.segmented button {
  min-height: 44px;
  padding: 0 var(--gap-2);
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button:hover {
  background: var(--panel);
}

.segmented button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-fill);
}

/* --------------------------------------------------------------------------
 * Clients: the list
 * ------------------------------------------------------------------------ */

.client-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-2);
  padding: 14px var(--gap-2);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.client-row:last-child {
  border-bottom: 0;
}

.client-row:hover {
  background: var(--accent-soft);
}

.client-row-main {
  min-width: 0;
}

.client-row-side {
  text-align: right;
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  margin-bottom: var(--gap-2);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
 * Clients: one client
 * ------------------------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-2);
  margin-bottom: var(--gap-3);
}

.fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-2) var(--gap-3);
  min-width: 0;
}

.fact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-value {
  font-size: 19px;
  font-weight: 700;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.property-row,
.job-row {
  padding: 14px var(--gap-2);
  border-bottom: 1px solid var(--border);
}

.property-row:last-child,
.job-row:last-child {
  border-bottom: 0;
}

.property-row-head,
.job-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-2);
}

.job-row-side {
  display: flex;
  align-items: center;
  gap: var(--gap-1);
  white-space: nowrap;
}

/* A job in progress. Solid black on white, matching the phone app's own
   status pill, rather than a colour: text here is black or white only. */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--on-fill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
 * Notes
 * ------------------------------------------------------------------------ */

.note {
  margin-top: var(--gap-1);
}

.note-part + .note-part {
  margin-top: var(--gap-1);
}

.note-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.note-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The original, when a translation is shown above it. Secondary, because the
   reader's own language is what they came to read, and still full-strength
   text rather than a washed-out grey: a gate code has to be legible. */
.note-text-original {
  color: var(--text-secondary);
}

.note .btn-plain {
  margin-top: 4px;
  font-size: 14px;
}

.note .notice {
  margin-top: var(--gap-1);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
 * SITE/APP-PREVIEW.HTML PORT -- the dark sidebar, the topbar, and every
 * dashboard/schedule/team/money/messages layout the mockup draws.
 *
 * Scoped under .app-shell throughout, on purpose: it supersedes this file's
 * OWN documented rules above (text is black or white, no dark sidebar) for
 * the signed-in app, per direct instruction, while leaving the sign-in
 * gate screens (rendered with no .app-shell ancestor) on their original
 * look, which the mockup never covered.
 *
 * Values are copied from the mockup's own style block rather than
 * re-derived through this file's tokens, so what is on screen is provably
 * the same as what was approved. Where a class name here already existed
 * above for the Clients screen (.panel, .toolbar, .segmented, .search,
 * .rows, .row), the mockup version wins by the added .app-shell
 * specificity -- deliberate, since Clients is restyled to the same design
 * in this pass too.
 * ========================================================================= */

.app-shell {
  --m-brand: #27508f;
  --m-brand-deep: #1a3563;
  --m-accent: #8fafda;
  --m-ink: #0e1319;
  --m-muted: #65707d;
  --m-page: #f3f6fa;
  --m-surface: #ffffff;
  --m-surface-alt: #e9eef5;
  --m-line: #dfe5ed;
  --m-control-line: #8996a5;
  --m-green: #146152;
  --m-red: #c41026;
  --m-amber: #9a5b08;
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);

  display: flex;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--m-ink);
  background: var(--m-page);
}

.app-shell * {
  box-sizing: border-box;
}

.app-shell button,
.app-shell input,
.app-shell select {
  font: inherit;
}

.app-shell a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Sidebar ---------- */

.app-shell .sidebar {
  display: flex;
  width: 244px;
  flex: none;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: #10233b;
  color: #fff;
  overflow-y: auto;
}

.app-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.app-shell .brand__tile {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--m-brand);
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-shell .brand__dot {
  width: 5px;
  height: 5px;
  margin-left: -4px;
  margin-bottom: -13px;
  border-radius: 9999px;
  background: var(--m-accent);
}

.app-shell .business {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.app-shell .business__initials {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--m-accent);
  color: #10233b;
  font-size: 13px;
  font-weight: 600;
}

.app-shell .business strong,
.app-shell .business small {
  display: block;
  min-width: 0;
}

.app-shell .business strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .business small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.app-shell .nav-label {
  margin: 28px 12px 8px;
  color: rgba(184, 207, 236, 0.54);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell .side-nav {
  display: grid;
  gap: 3px;
}

.app-shell .nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  transition: background 150ms ease, color 150ms ease;
}

.app-shell .nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.app-shell .nav-item.is-active {
  background: #fff;
  color: #10233b;
  font-weight: 600;
}

.app-shell .nav-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  opacity: 0.78;
}

.app-shell .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.app-shell .nav-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 9999px;
  background: var(--m-accent);
  color: #10233b;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Main / topbar ---------- */

.app-shell .main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.app-shell .topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(223, 229, 237, 0.8);
  background: rgba(243, 246, 250, 0.88);
  backdrop-filter: blur(18px);
}

.app-shell .topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.app-shell .profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--m-line);
  border-radius: 9999px;
  background: var(--m-surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.app-shell .profile-button i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9999px;
  background: #dbe4ef;
  color: var(--m-brand);
  font-size: 11px;
  font-style: normal;
}

.app-shell .account-wrap {
  position: relative;
}

.app-shell .account-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 240px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--m-surface);
  box-shadow: 0 8px 22px rgba(14, 19, 25, 0.1);
}

.app-shell .account-menu.is-open {
  display: block;
}

.app-shell .account-menu__identity {
  padding: 16px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .account-menu__identity strong,
.app-shell .account-menu__identity span {
  display: block;
}

.app-shell .account-menu__identity strong {
  font-size: 14px;
}

.app-shell .account-menu__identity span {
  margin-top: 2px;
  color: var(--m-muted);
  font-size: 13px;
}

.app-shell .account-menu__item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--m-line);
  background: var(--m-surface);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.app-shell .account-menu__item:last-child {
  border-bottom: 0;
}

.app-shell .account-menu__item .lang-toggle {
  margin: 0;
}

.app-shell .main-inner {
  width: min(100% - 68px, 1480px);
  margin: 0 auto;
  padding: 38px 0 80px;
}

/* ---------- Shared page furniture (now the mockup's version) ---------- */

.app-shell .page-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.app-shell .page-sub {
  margin: 10px 0 26px;
  color: var(--m-muted);
  font-size: 15px;
  line-height: 1.5;
}

.app-shell .view-kicker {
  margin: 0 0 9px;
  color: var(--m-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell .toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.app-shell .toolbar-search {
  flex: 1;
}

.app-shell .search,
.app-shell .field-input {
  width: 100%;
  height: 45px;
  padding: 0 15px;
  border: 1px solid var(--m-control-line);
  border-radius: 4px;
  background: var(--m-surface);
  color: var(--m-ink);
  font-size: 14px;
}

.app-shell .search:focus,
.app-shell .field-input:focus {
  border-color: var(--m-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 80, 143, 0.08);
}

.app-shell .segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--m-control-line);
  border-radius: 8px;
  background: var(--m-surface);
}

.app-shell .segmented button {
  min-height: 37px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.app-shell .segmented button[aria-pressed="true"] {
  background: var(--m-brand);
  color: #fff;
}

.app-shell .panel {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid var(--m-line);
  font-size: 15px;
  font-weight: 600;
}

.app-shell .panel-body {
  padding: 5px 20px 12px;
}

.app-shell .rows {
  display: flex;
  flex-direction: column;
}

.app-shell .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 10px 0;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .row:last-child {
  border-bottom: 0;
}

.app-shell .status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 9999px;
  background: #e7f1ed;
  color: var(--m-green);
  font-size: 11px;
  font-weight: 600;
}

.app-shell .status--blue {
  background: #e8eff8;
  color: var(--m-brand);
}

.app-shell .status--amber {
  background: #f7efe1;
  color: var(--m-amber);
}

.app-shell .status--red {
  background: #f9e7e9;
  color: var(--m-red);
}

.app-shell .data-table {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .data-head,
.app-shell .data-row {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
}

.app-shell .data-head {
  min-height: 46px;
  border-bottom: 1px solid var(--m-line);
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-shell .data-row {
  min-height: 68px;
  border-bottom: 1px solid var(--m-line);
  font-size: 13px;
}

.app-shell .data-row:last-child {
  border-bottom: 0;
}

.app-shell .data-row:hover {
  background: #fafbfd;
}

.app-shell .client-data .data-head,
.app-shell .client-data .data-row {
  grid-template-columns: 1.4fr 0.9fr 0.7fr 0.7fr 0.6fr;
}

.app-shell .invoice-row .data-head,
.app-shell .invoice-row .data-row {
  grid-template-columns: 0.8fr 1fr 0.8fr 0.7fr 0.8fr 0.7fr;
}

/* ---------- The business (Dashboard) ---------- */

.app-shell .business-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.app-shell .business-canvas {
  overflow: hidden;
  border: 1px solid #d8e0e9;
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .business-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--m-line);
}

.app-shell .business-number {
  min-height: 118px;
  padding: 22px 24px;
  border-right: 1px solid var(--m-line);
}

.app-shell .business-number:last-child {
  border-right: 0;
}

.app-shell .business-number:first-child {
  background: var(--m-brand);
  color: #fff;
}

.app-shell .business-number:first-child span,
.app-shell .business-number:first-child small {
  color: rgba(255, 255, 255, 0.62);
}

.app-shell .business-number span,
.app-shell .business-number strong,
.app-shell .business-number small {
  display: block;
}

.app-shell .business-number span {
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell .business-number strong {
  margin-top: 11px;
  font-family: "Newsreader", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-shell .business-number small {
  margin-top: 7px;
  color: #77828e;
  font-size: 11px;
}

.app-shell .command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
}

.app-shell .week-operation {
  min-width: 0;
  padding: 25px 24px 28px;
}

.app-shell .canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.app-shell .canvas-head h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 400;
}

.app-shell .canvas-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-shell .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-shell .legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--m-brand);
}

.app-shell .legend-item--open i {
  background: var(--m-amber);
}

.app-shell .legend-item--done i {
  background: var(--m-green);
}

.app-shell .operating-scroll {
  overflow-x: auto;
  padding-bottom: 3px;
}

.app-shell .operating-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 805px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
}

.app-shell .operating-day {
  min-height: 200px;
  padding: 0 8px 10px;
  border-right: 1px solid var(--m-line);
  background: #fbfcfd;
}

.app-shell .operating-day:last-child {
  border-right: 0;
}

.app-shell .operating-day.is-today {
  background: #eaf1fa;
  box-shadow: inset 0 3px 0 var(--m-brand);
}

.app-shell .operating-day__head {
  min-height: 74px;
  margin: 0 -8px 9px;
  padding: 13px 11px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .operating-day__head span,
.app-shell .operating-day__head strong,
.app-shell .operating-day__head small {
  display: block;
}

.app-shell .operating-day__head span {
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .operating-day__head strong {
  margin-top: 2px;
  font-family: "Newsreader", serif;
  font-size: 20px;
  font-weight: 400;
}

.app-shell .operating-day__head small {
  margin-top: 3px;
  color: var(--m-muted);
  font-size: 10px;
}

.app-shell .week-job {
  position: relative;
  margin-top: 7px;
  padding: 9px 8px 8px 10px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: var(--m-surface);
}

.app-shell .week-job::before {
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 2px;
  border-radius: 9999px;
  background: var(--m-brand);
  content: "";
}

.app-shell .week-job--done::before {
  background: var(--m-green);
}

.app-shell .week-job--open::before {
  background: var(--m-amber);
}

.app-shell .week-job time {
  display: block;
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
}

.app-shell .week-job strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .week-job span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 8px;
  color: var(--m-muted);
  font-size: 10px;
}

.app-shell .week-job em {
  color: var(--m-ink);
  font-style: normal;
  font-weight: 600;
}

.app-shell .decision-rail {
  border-left: 1px solid var(--m-line);
  background: #f8fafc;
}

.app-shell .decision-rail__head {
  padding: 25px 22px 19px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .decision-rail__head span {
  display: block;
  color: var(--m-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-shell .decision-rail__head h2 {
  margin: 7px 0 0;
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 400;
}

.app-shell .decision-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .decision-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-shell .decision-item__type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .decision-item__time {
  color: var(--m-muted);
  font-size: 10px;
}

.app-shell .decision-item h3 {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.app-shell .decision-item p {
  margin: 5px 0 0;
  color: var(--m-muted);
  font-size: 11px;
  line-height: 1.45;
}

.app-shell .decision-item a {
  display: inline-block;
  margin-top: 10px;
  color: var(--m-brand);
  font-size: 11px;
  font-weight: 600;
}

.app-shell .business-depth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--m-line);
}

.app-shell .depth-section {
  min-width: 0;
  padding: 26px 24px 28px;
  border-right: 1px solid var(--m-line);
}

.app-shell .depth-section:last-child {
  border-right: 0;
}

.app-shell .depth-section:first-child {
  background: #fbfcfe;
}

.app-shell .depth-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.app-shell .depth-head h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 400;
}

.app-shell .depth-head a {
  color: var(--m-brand);
  font-size: 11px;
  font-weight: 600;
}

.app-shell .money-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 8px;
}

.app-shell .money-stage {
  min-height: 94px;
  padding: 14px;
  border-right: 1px solid var(--m-line);
  background: #fbfcfd;
}

.app-shell .money-stage:last-child {
  border-right: 0;
}

.app-shell .money-stage span,
.app-shell .money-stage strong,
.app-shell .money-stage small {
  display: block;
}

.app-shell .money-stage span {
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-shell .money-stage strong {
  margin-top: 9px;
  font-family: "Newsreader", serif;
  font-size: 21px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.app-shell .money-stage small {
  margin-top: 5px;
  color: var(--m-muted);
  font-size: 10px;
}

.app-shell .money-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--m-line);
  font-size: 11px;
}

.app-shell .money-detail span {
  color: var(--m-muted);
}

.app-shell .capacity-list {
  border-top: 1px solid var(--m-line);
}

.app-shell .capacity-row {
  display: grid;
  grid-template-columns: 145px 1fr 60px 70px;
  gap: 13px;
  align-items: center;
  min-height: 49px;
  border-bottom: 1px solid var(--m-line);
  font-size: 11px;
}

.app-shell .capacity-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-shell .capacity-person i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9999px;
  background: #e3eaf3;
  color: #53677c;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.app-shell .load-track {
  height: 6px;
  overflow: hidden;
  border-radius: 9999px;
  background: #e5eaf0;
}

.app-shell .load-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--m-brand);
}

.app-shell .capacity-row > span {
  color: var(--m-muted);
  text-align: right;
}

.app-shell .business-bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-top: 1px solid var(--m-line);
}

.app-shell .client-work {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--m-line);
}

.app-shell .client-work__head {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  padding: 0 10px 10px;
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-shell .client-work__row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 10px;
  border-top: 1px solid var(--m-line);
  font-size: 11px;
}

.app-shell .client-work__row strong,
.app-shell .client-work__row small {
  display: block;
}

.app-shell .client-work__row strong {
  font-size: 12px;
}

.app-shell .client-work__row small {
  margin-top: 3px;
  color: var(--m-muted);
  font-size: 10px;
}

.app-shell .client-work__row b {
  font-family: "Newsreader", serif;
  font-size: 16px;
  font-weight: 400;
}

.app-shell .activity-stream {
  padding: 26px 24px 28px;
  background: #fafbfd;
}

/* ---------- Agenda ---------- */

.app-shell .week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.app-shell .day-button {
  min-height: 70px;
  padding: 8px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
  cursor: pointer;
  text-align: center;
}

.app-shell .day-button span,
.app-shell .day-button strong {
  display: block;
}

.app-shell .day-button span {
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-shell .day-button strong {
  margin-top: 6px;
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-weight: 400;
}

.app-shell .day-button[aria-pressed="true"] {
  border-color: var(--m-brand);
  background: var(--m-brand);
  color: #fff;
}

.app-shell .day-button[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.68);
}

.app-shell .schedule-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}

.app-shell .schedule-list {
  padding: 0 20px 12px;
}

.app-shell .schedule-job {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  border-bottom: 1px solid var(--m-line);
  background: transparent;
  text-align: left;
}

.app-shell .schedule-job:last-child {
  border-bottom: 0;
}

.app-shell .schedule-job__time {
  font-size: 14px;
  font-weight: 600;
}

.app-shell .schedule-job strong {
  display: block;
  font-size: 14px;
}

.app-shell .schedule-job small {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 12px;
}

.app-shell .day-summary {
  padding: 20px;
}

.app-shell .summary-number {
  margin-top: 18px;
  font-family: "Newsreader", serif;
  font-size: 44px;
  letter-spacing: -0.045em;
}

.app-shell .summary-label {
  color: var(--m-muted);
  font-size: 12px;
}

.app-shell .summary-line {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--m-line);
  font-size: 13px;
}

/* ---------- Team ---------- */

.app-shell .team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.app-shell .team-card {
  padding: 20px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-surface);
  text-align: left;
}

.app-shell .team-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-shell .team-card__head strong {
  font-size: 14px;
}

.app-shell .team-card__head span {
  display: block;
  margin-top: 3px;
  color: var(--m-muted);
  font-size: 11px;
}

.app-shell .team-card__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.app-shell .team-card__fact {
  padding: 10px;
  border-radius: 4px;
  background: var(--m-page);
}

.app-shell .team-card__fact small {
  display: block;
  color: var(--m-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .team-card__fact strong {
  display: block;
  margin-top: 4px;
  font-family: "Newsreader", serif;
  font-size: 19px;
  font-weight: 400;
}

/* ---------- Extra ---------- */

.app-shell .extra-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.app-shell .extra-stat {
  min-height: 100px;
  padding: 20px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-surface);
}

.app-shell .extra-stat span {
  color: var(--m-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .extra-stat strong {
  display: block;
  margin-top: 12px;
  font-family: "Newsreader", serif;
  font-size: 36px;
  font-weight: 400;
}

.app-shell .extra-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
}

.app-shell .open-shifts {
  padding: 4px 18px 14px;
}

.app-shell .open-shift {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 90px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .open-shift:last-child {
  border-bottom: 0;
}

.app-shell .open-shift__date {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .open-shift__date strong {
  display: block;
  margin-top: 3px;
  color: var(--m-ink);
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 400;
}

.app-shell .open-shift h3 {
  margin: 0;
  font-size: 14px;
}

.app-shell .open-shift p {
  margin: 5px 0 0;
  color: var(--m-muted);
  font-size: 12px;
}

.app-shell .open-shift__right {
  text-align: right;
}

.app-shell .open-shift__right strong {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-weight: 400;
}

.app-shell .open-shift__right span {
  color: var(--m-brand);
  font-size: 11px;
  font-weight: 600;
}

.app-shell .applicant-list {
  padding: 5px 18px 14px;
}

.app-shell .applicant-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .applicant-row:last-child {
  border-bottom: 0;
}

.app-shell .applicant-row strong {
  display: block;
  font-size: 13px;
}

.app-shell .applicant-row span {
  display: block;
  margin-top: 3px;
  color: var(--m-muted);
  font-size: 11px;
}

/* ---------- Money ---------- */

.app-shell .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-shell .metric {
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .metric__top {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell .metric__number {
  margin-top: 22px;
  font-family: "Newsreader", serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-shell .metric__note {
  margin-top: 8px;
  color: var(--m-muted);
  font-size: 12px;
}

.app-shell .money-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.app-shell .owed-panel {
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .owed-panel h2 {
  margin: 0;
  font-size: 15px;
}

.app-shell .owed-total {
  margin-top: 24px;
  font-family: "Newsreader", serif;
  font-size: 47px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-shell .owed-copy {
  margin-top: 7px;
  color: var(--m-muted);
  font-size: 12px;
}

.app-shell .owed-person {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--m-line);
  font-size: 12px;
}

.app-shell .owed-person strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Messages ---------- */

.app-shell .messages-layout {
  display: grid;
  grid-template-columns: 280px minmax(360px, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-surface);
}

.app-shell .thread-column {
  border-right: 1px solid var(--m-line);
  background: #f8fafc;
  overflow-y: auto;
}

.app-shell .thread-column__head,
.app-shell .conversation-head {
  min-height: 70px;
  padding: 16px;
  border-bottom: 1px solid var(--m-line);
}

.app-shell .thread-column__head strong,
.app-shell .conversation-head strong {
  display: block;
  font-size: 14px;
}

.app-shell .thread-column__head span,
.app-shell .conversation-head span {
  display: block;
  margin-top: 2px;
  color: var(--m-muted);
  font-size: 13px;
}

.app-shell .thread {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid var(--m-line);
  background: transparent;
  text-align: left;
}

.app-shell .thread:hover {
  background: #f1f5fa;
}

.app-shell .thread.is-active {
  background: #e7eef8;
}

.app-shell .thread__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9999px;
  background: #dce6f2;
  color: var(--m-brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.app-shell .thread strong,
.app-shell .thread small {
  display: block;
}

.app-shell .thread strong {
  font-size: 14px;
}

.app-shell .thread small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--m-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .thread time {
  align-self: start;
  color: var(--m-muted);
  font-size: 11px;
}

.app-shell .conversation {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-shell .conversation-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fbfcfe;
  overflow-y: auto;
}

.app-shell .message {
  max-width: 62ch;
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid var(--m-line);
  border-radius: 8px 8px 8px 2px;
  background: var(--m-surface);
  font-size: 13px;
  line-height: 1.45;
}

.app-shell .message--owner {
  align-self: flex-end;
  border-color: var(--m-brand);
  border-radius: 8px 8px 2px 8px;
  background: var(--m-brand);
  color: #fff;
}

.app-shell .message time {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 11px;
}

.app-shell .message--owner time {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .app-shell .command-center,
  .app-shell .business-depth,
  .app-shell .business-bottom {
    grid-template-columns: 1fr;
  }

  .app-shell .decision-rail,
  .app-shell .depth-section,
  .app-shell .client-work {
    border-right: 0;
    border-left: 0;
  }

  .app-shell .schedule-layout,
  .app-shell .extra-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .messages-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .thread-column {
    max-height: 300px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    flex-direction: column;
  }

  .app-shell .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-shell .side-nav {
    grid-auto-flow: column;
  }

  .app-shell .business-strip,
  .app-shell .money-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shell .metrics,
  .app-shell .extra-overview,
  .app-shell .team-cards {
    grid-template-columns: 1fr;
  }
}
