/* TaxPrac Pro brand layer: a calm workspace palette drawn from GreenTax green and gold. */
:root {
  --ink: #173c2c;
  --muted: #5a6d61;
  --teal: #176b3d;
  --line: #d9e7d9;
  --bg: #f4f8f3;
  --gold: #c59225;
  color: var(--ink);
  background: var(--bg);
}

body.app-page aside {
  background: linear-gradient(165deg, #042b1e 0%, #06442d 58%, #03271c 100%);
}
body.app-page .brand { flex-wrap: wrap; gap: 10px; letter-spacing: -.7px; }
body.app-page .brand-mark { flex: none; background: #07331f; border-radius: 10px; }
body.app-page .brand-name { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
body.app-page .brand-pro { color: #f2c341; font-size: .58em; font-weight: 750; letter-spacing: .2px; }
body.app-page .version { margin-left: 52px; color: #a9d2b4; }
body.app-page .firm { border-bottom-color: #d8f1d526; }
body.app-page .firm small, body.app-page .aside-bottom { color: #a8c9b3; }
body.app-page nav a { color: #c3dfcc; }
body.app-page nav a:hover { background: #ffffff16; color: #fff; }
body.app-page nav a.active { background: #17583b; color: #fff; box-shadow: inset 3px 0 #a8e34b; }
body.app-page nav a.active .nav-icon { color: #f2c341; }
body.app-page #mobile-nav-toggle { background: #17583b; }
body.app-page .hero { background: linear-gradient(110deg, #e6f3e7, #f1f8ea); border-color: #d1e7d3; }
body.app-page .hero-mark { color: #79ac75; }
body.app-page .avatar { background: #fff0c9; color: #7a5611; }
body.app-page .profile-menu a:hover, body.app-page .profile-menu button:hover { background: #eef6ed; }
body.app-page .status-dot { background: #a8e34b; }
body.app-page .list-icon { background: #eaf5e9; }
body.app-page .badge.green { background: #e2f2e4; color: #176b3d; }
body.app-page .auth-shell { background: radial-gradient(circle at 20% 8%, #f5f9e9, #e7f1e7 58%, #dcebdd); }
body.app-page .auth-card { border-color: #d3e4d2; box-shadow: 0 24px 70px #0a3d2520; }
body.app-page .auth-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
body.app-page .auth-identity img { width: 55px; height: 55px; object-fit: contain; border-radius: 11px; background: #07331f; }
body.app-page .auth-identity strong { display: block; color: #0b4a2c; font-size: 21px; letter-spacing: -.5px; }
body.app-page .auth-identity span { display: block; color: var(--muted); font-size: 12px; }
body.app-page button:focus-visible, body.app-page a:focus-visible,
body.app-page input:focus-visible, body.app-page select:focus-visible,
body.app-page textarea:focus-visible { outline: 3px solid #a8e34b; outline-offset: 2px; }
.tax-tabs { flex-wrap: wrap; margin: 18px 0; gap: 8px; }
.tax-tabs button { white-space: normal; }
.tax-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.tax-fields .field { min-width: 0; }
.tax-fields .wide { grid-column: 1 / -1; }
.tax-fields label:not(.tax-check) { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.tax-fields input, .tax-fields select, .tax-fields textarea { width: 100%; }
.tax-check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.tax-check input { width: auto; }
.tax-form .actions { margin-bottom: 14px; }
.tax-result { margin-top: 18px; }
.tax-result:empty { display: none; }
.tax-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.tax-result-head h3 { margin: 0; }
.tax-source-strip { margin: 20px 0; }
.tax-guide { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.tax-guide li { margin: 6px 0; }
.tax-detail { max-width: 460px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }

body.intake-page { background: #f1f7ef; color: #173c2c; }
body.intake-page main { border-color: #d9e7d9; box-shadow: 0 18px 52px #103d2710; }
body.intake-page header { border-bottom-color: #d9e7d9; }
body.intake-page header img { border-radius: 9px; background: #07331f; }
body.intake-page header strong { color: #0b4a2c; }
body.intake-page header span, body.intake-page .muted, body.intake-page small { color: #5a6d61; }
body.intake-page button, body.intake-page .download { background: #176b3d; }
body.intake-page button.secondary { color: #176b3d; background: #eaf5e9; }
body.intake-page a { color: #176b3d; }
body.intake-page input:focus, body.intake-page select:focus,
body.intake-page textarea:focus, body.intake-page button:focus-visible,
body.intake-page a:focus-visible { outline: 3px solid #a8e34b; outline-offset: 2px; }
body.intake-page .check input { accent-color: #176b3d; }

body.help-page { background: #f4f8f3; color: #173c2c; }
body.help-page header { background: linear-gradient(125deg, #042b1e, #0d5736); }
body.help-page .help-brand { display: flex; align-items: center; gap: 14px; margin: 15px 0 4px; }
body.help-page .help-brand img { width: 54px; height: 54px; border-radius: 10px; background: #07331f; }
body.help-page .help-brand strong { font-size: 22px; }
/* Header links are white, but the Help action buttons have light backgrounds.
   Override the generic header-link colour so Download PDF and Support stay legible. */
body.help-page header .actions a.button,
body.help-page header .actions a.button:visited {
  color: #123b28;
  background: #ffffff;
  border: 2px solid #cee0d5;
  font-weight: 750;
  text-decoration: none;
}
body.help-page header .actions a.button.primary,
body.help-page header .actions a.button.primary:visited {
  background: #b8e75a;
  color: #123820;
  border-color: #b8e75a;
}
body.help-page header .actions a.button:hover {
  background: #e9f3e7;
  color: #123b28;
}
body.help-page header .actions a.button.primary:hover {
  background: #d5f59c;
  color: #123820;
}
body.help-page nav a { color: #174f3d; }
body.help-page nav a:hover { color: #073921; text-decoration: underline; }
body.help-page .button.primary { background: #b8e75a; color: #123820; }
body.help-page .button:focus-visible, body.help-page a:focus-visible { outline: 3px solid #f2c341; outline-offset: 3px; }
body.help-page nav { background: #e9f3e7; }
body.help-page section { border-color: #d9e7d9; }
body.help-page h2, body.help-page h3, body.help-page a { color: #176b3d; }
body.help-page header a { color: #fff; }
body.help-page aside { border-left-color: #80b55a; }

@media (max-width: 720px) {
  body.app-page .brand { flex-wrap: nowrap; }
  body.app-page .version { display: none; }
  .tax-fields { grid-template-columns: 1fr; }
}
@media print {
  body.help-page header { background: none; }
}


/* One-click client onboarding invitations in the staff workspace. */
.intake-invite-form .intake-invite-intro{color:#405849;font-size:15px;line-height:1.7;background:#f3f8f0;border:1px solid #d9e9d7;border-radius:12px;padding:18px 20px;margin-bottom:21px}
.intake-invite-form .intake-settings{margin:23px 0 20px;border:1px solid #d8e6d5;border-radius:11px;padding:0 17px;background:#fff}
.intake-invite-form .intake-settings summary{padding:16px 2px;color:#174832;font-weight:780;cursor:pointer}
.intake-invite-form .intake-settings summary small{display:block;margin:5px 0 0;color:#5b7160;font-weight:450;font-size:12px}
.intake-invite-form .intake-settings[open] summary{border-bottom:1px solid #e0eadc;margin-bottom:18px}
.intake-invite-form .intake-settings .form-grid{padding:0 0 18px}
.intake-invite-form .intake-send-assurance{font-size:12px;line-height:1.7;color:#386c45;margin:14px 0 20px}
.intake-invite-form #intake-send{background:#17683e;padding:13px 24px;font-size:15px}
.intake-result{padding:17px 12px 13px;color:#244a35}
.intake-result-symbol{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;font-size:29px;font-weight:800;margin-bottom:18px}
.intake-success .intake-result-symbol{background:#e2f3df;color:#14653a}
.intake-failed .intake-result-symbol{background:#fff1da;color:#945d13}
.intake-result h3{font-size:23px;letter-spacing:-.5px;color:#103f29;margin:6px 0 12px}
.intake-result p{line-height:1.7;font-size:14px;color:#455d4b}
.intake-result .intake-result-note{font-size:12px;color:#5e7463}
.intake-result .intake-backup{border:1px solid #d8e5d3;border-radius:11px;padding:14px 16px;margin:20px 0;background:#fafcf8}
.intake-result .intake-backup summary{font-size:13px;font-weight:750;color:#1b5e3c;cursor:pointer}
.intake-result .intake-backup[open] summary{margin-bottom:13px}
.intake-result .intake-backup textarea{width:100%;min-height:80px;background:#f5f8f3;color:#183d2b;overflow-wrap:anywhere;resize:none}
.intake-result .intake-backup button{margin-top:11px}
