/* Tenant portal shell (124-Tenant-Redesign-Build-Spec-2026-09-19, sections 2 and 3). Scoped to .account-shell; the marketing pages never see these rules. */

.account-shell {
  --radius: 3px;
  display: flex;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.account-shell .acct-side {
  flex: 0 0 232px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--ink);
  color: var(--paper);
}

.account-shell .acct-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 18px;
  border-bottom: 1px dashed var(--line-on-ink);
}

.account-shell .acct-side .wordmark-num { color: var(--brass); font-size: 30px; }
.account-shell .acct-side .wordmark-text { color: var(--paper); }
.account-shell .acct-brand-sub { font-size: 12px; color: var(--on-ink-faint); }
.account-shell .acct-pills { display: none; }

.account-shell .acct-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
}

.account-shell .acct-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  min-height: 40px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
}

.account-shell .acct-nav-item:hover { background: var(--nav-hover); color: var(--paper); }
.account-shell .acct-nav-item[aria-current="page"] { background: var(--nav-active); }
.account-shell .acct-nav-count { font-size: 11px; font-weight: 700; color: var(--brass); white-space: nowrap; }

.account-shell .acct-who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 0;
  border-top: 1px dashed var(--line-on-ink);
}

.account-shell .acct-who-initials {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--brass);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  flex: none;
}

.account-shell .acct-who-text { min-width: 0; flex: 1; }
.account-shell .acct-who-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-shell .acct-who-unit { font-size: 12px; color: var(--on-ink-faint); }
.account-shell .acct-signout {
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  font: inherit;
  font-size: 12px;
  color: var(--on-ink-faint);
  cursor: pointer;
}
.account-shell .acct-signout:hover { color: var(--paper); }

.account-shell .acct-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.account-shell .acct-main > main { flex: 1 0 auto; }
.account-shell .acct-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 40px);
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}
.account-shell .acct-rule a { font-weight: 700; color: var(--brass-deep); }

.account-shell .acct-main > main .container {
  max-width: 1080px;
  margin-inline: 0;
  padding-inline: clamp(18px, 4vw, 40px);
}
.account-shell .acct-main > main section { padding-block: clamp(20px, 3.5vw, 36px); }
.account-shell .acct-main > main h1,
.account-shell .acct-main > main h1.display,
.account-shell .acct-main > main .acct-h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.account-shell .acct-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); }

.account-shell .tile { padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.account-shell .tile-num { font-family: var(--display); font-size: 30px; font-weight: 500; }
.account-shell .tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.account-shell .quickbook { padding: 16px 18px; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.account-shell .quickbook-hours { display: flex; flex-wrap: wrap; gap: 8px; }
.account-shell .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-on-ink); border-radius: var(--radius); color: inherit; text-decoration: none; }
.account-shell .chip:hover { background: var(--nav-active); }
.account-shell .ledger-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-shell .ledger-table-row { border-bottom: 1px solid var(--line-soft); }
.account-shell .ledger-table-row > * { padding: 10px 8px; }
.account-shell .bubble { max-width: 72%; padding: 10px 14px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); box-shadow: none; }
.account-shell .bubble-me { margin-left: auto; background: var(--ink); color: var(--paper); }
.account-shell .stepper { display: flex; gap: 4px; }
.account-shell .stepper-seg { flex: 1; height: 6px; border-radius: var(--radius); background: var(--paper-2); }
.account-shell .stepper-seg.is-done { background: var(--success); }
.account-shell .pin-reveal { padding: 18px 22px; border-radius: var(--radius); background: var(--ink); color: var(--paper); border: 1px solid var(--line); box-shadow: none; font-family: var(--display); font-size: 44px; font-weight: 500; letter-spacing: 0.18em; }

.account-shell.account-shell-guest { display: block; }
.account-shell.account-shell-guest .acct-bar {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.account-shell .nav-toggle { display: none; }

@media (max-width: 900px) {
  .account-shell { display: block; }
  .account-shell .acct-side { position: sticky; top: 0; z-index: 50; height: auto; flex: none; padding: 10px 14px; }
  .account-shell .acct-brand { padding: 0; border-bottom: 0; }
  .account-shell .acct-brand-sub { display: none; }
  .account-shell .acct-side .wordmark-num { font-size: 24px; }
  .account-shell .acct-pills { display: flex; gap: 6px; margin-left: 8px; }
  .account-shell .acct-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--radius); background: var(--brass); color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
  .account-shell .acct-nav { display: none; }
  .account-shell .acct-nav.open { display: flex; padding-top: 10px; }
  .account-shell .acct-nav-item { min-height: 44px; font-size: 16px; }
  .account-shell .acct-who { display: none; }
  .account-shell .acct-nav.open + .acct-who { display: flex; padding-bottom: 6px; }
  .account-shell .acct-rule { padding: 10px 16px; font-size: 12px; }
  .account-shell .acct-main > main .container { padding-inline: 16px; }
  .account-shell .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; background: transparent; border: 1px solid var(--line-on-ink); border-radius: var(--radius); cursor: pointer; }
  .account-shell .nav-toggle span { display: block; height: 2px; width: 20px; background: var(--paper); transition: transform .25s ease, opacity .2s ease; }
  .account-shell .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .account-shell .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .account-shell .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
