/* The shared MrTax identity on the lawyers' workspace. */
.vl-auth-brand, .vl-brand { display: grid; justify-items: start; gap: 4px; line-height: 1.5; }
.vl-auth-brand { justify-items: center; }
.vl-auth-brand > span, .vl-brand > small { color: var(--ink-2); font-size: .90rem; font-weight: 600; }
.vl-brand img { display: block; width: 152px; height: auto; }
.sidebar .side-brand { padding-block: 10px 16px; }
.vl-brand, .vl-brand:hover { color: var(--ink); }
.vl-register-options { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.vl-register-options .check-row, .vl-register-options p { margin: 0; }
.vl-register-options p:not(:empty) { flex-basis: 100%; }
.vl-register-options p:empty { display: none; }
.auth-box .auth-field > label { font: inherit; color: inherit; }
.auth-eye[hidden] { display: none; }

.side-tree { margin-block-start: 5px; }
.side-tree > summary {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px;
  border-radius: 10px; color: var(--ink); font-size: .91rem; font-weight: 700;
  list-style: none; cursor: pointer;
}
.side-tree > summary::-webkit-details-marker, .vl-invoice > summary::-webkit-details-marker { display: none; }
.side-tree > summary:hover, .side-tree[open] > summary { background: var(--brand-tint); }
.side-tree > summary > svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.side-tree > summary .side-tree-chevron { width: 15px; height: 15px; margin-inline-start: auto; transition: transform .15s; }
.side-tree[open] > summary .side-tree-chevron { transform: rotate(-90deg); }
.sidebar .side-nav .side-tree a.side-sub{padding-inline-start:34px;min-height:38px;font-size:.92rem;white-space:normal}
.sidebar .side-nav .side-tree a.side-sub.on::before { inset-inline-start: 9px; }
.vl-dashboard { display: grid; gap: 18px; }
.vl-first-run { display: grid; justify-items: center; gap: 16px; text-align: center; padding: clamp(28px, 7vw, 66px) 12px 24px; }
.vl-first-run img { display: block; width: min(200px, 65%); height: auto; }
.vl-first-run h1 { font-size: clamp(1.2rem, 2.6vw, 1.9rem); line-height: 1.65; }
.vl-first-run p { margin: 0; max-width: 55ch; color: var(--ink-2); }
.vl-first-run .btn, .vl-dash-actions .btn { min-height: 44px; white-space: normal; line-height: 1.45; text-align: center; }
.vl-dash-heading { display: flex; align-items: center; gap: 12px; }
.vl-dash-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.vl-dash-icon svg { width: 22px; height: 22px; }
.vl-dash-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.vl-dash-ready { display: grid; gap: 12px; }
.vl-dash-ready .vl-dash-actions { justify-content: flex-start; }
.vl-start-help { color: var(--brand); font-weight: 700; text-underline-offset: .2em; }
.vl-start-help:hover { text-decoration: underline; }
.vl-dash-stats { padding: 0; }
.vl-dash-stats > summary { padding: 10px 14px; cursor: pointer; font-weight: 700; }
.vl-dash-stats[open] > summary { border-block-end: 1px solid var(--line); }
.vl-dash-stats .vl-stat-body { padding: 12px; }
.vl-dash-stats .ledger { margin: 0; }
.vl-dash-stats .period-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.vl-dash-stats .figure { overflow-wrap: anywhere; }
.vl-dash-stats .period-switch { flex-wrap: wrap; }
.section-guide > summary .vl-guide-text { color: inherit; }
@media (max-width: 600px) {
  .vl-dash-heading h1 { font-size: 1.28rem; }
  .vl-dash-stats .ledger { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .side-tree > summary .side-tree-chevron { transition: none; }
}

.side-cta { display: flex; align-items: center; gap: 12px; margin: 2px 14px 14px; padding: 13px 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(30, 60, 110, .22); transition: filter .15s, transform .15s; }
.side-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.side-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.side-cta.on { box-shadow: 0 0 0 3px var(--brand-soft), 0 6px 16px rgba(30, 60, 110, .22); }
.side-cta-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.side-cta-icon svg { width: 20px; height: 20px; }
.side-cta b { font-size: .98rem; }
.side-cta { margin: 0 10px 12px; padding: 11px 12px; gap: 10px; white-space: nowrap; }
.side-cta-icon { width: 32px; height: 32px; }
.side-cta b { font-size: .93rem; }
.side-cta-wrap { margin: 0 10px 12px; }
.side-cta-wrap > summary.side-cta { margin: 0; list-style: none; cursor: pointer; }
.side-cta-wrap > summary::-webkit-details-marker { display: none; }
.side-cta-menu { display: grid; gap: 4px; margin-top: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface, #fff); box-shadow: 0 8px 20px rgba(16, 24, 40, .10); }
.side-cta-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.side-cta-menu a:hover, .side-cta-menu a[aria-current] { background: var(--brand-tint); }
.side-cta-menu svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.side-cta-menu span { display: grid; line-height: 1.45; }
.side-cta-menu b { font-size: .9rem; }
.side-cta-menu small { font-size: .76rem; color: var(--ink-3); }
.side-cta.side-cta-orange { background: #a94a08; box-shadow: 0 6px 16px rgba(232, 116, 12, .25); }
.side-cta.side-cta-orange.on { box-shadow: 0 0 0 3px #fde6c8, 0 6px 16px rgba(232, 116, 12, .25); }
.side-cta.side-cta-orange b { min-width: 0; font-size: .82rem; line-height: 1.4; white-space: normal; }
.acct { position: relative; }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface, #fff); cursor: pointer; list-style: none; transition: border-color .15s, box-shadow .15s; }
.acct-head::-webkit-details-marker { display: none; }
.acct-head:hover, .acct[open] .acct-head { border-color: var(--brand-line); box-shadow: 0 4px 12px rgba(30, 60, 110, .08); }
.acct-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep)); color: #fff; font-weight: 700; font-size: 1rem; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-text { display: grid; min-width: 0; line-height: 1.45; }
.acct-text b { font-size: .88rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-text small { font-size: .74rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { margin-inline-start: auto; width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.acct[open] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; bottom: calc(100% + 8px); inset-inline: 0; z-index: 40; display: grid; gap: 2px; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 -10px 28px rgba(16, 24, 40, .14); }
.acct-menu form { margin: 0; }
.acct-menu a, .acct-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; text-align: start; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--brand-tint); }
.acct-menu svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.acct-menu .acct-out button { color: var(--err); }
.acct-menu .acct-out svg { color: var(--err); }
.acct-menu .acct-out button:hover { background: var(--err-soft); }
.side-cta.side-cta-orange:hover, .side-cta.side-cta-orange.on { color:#fff; background:#873b06 }
.side-cta-wrap:not([open]) > .side-cta-menu, .acct:not([open]) > .acct-menu { display:none; }
.acct-avatar svg { width:20px;height:20px; }
@media (max-width: 960px) {
  body:not(.nav-open) .sidebar { visibility:hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .side-cta, .acct-chev, .sidebar { transition:none; }
}
