/* Product shell and shared visual language. Workflow logic remains in crm.js. */
:root {
  --ink: #183247;
  --muted: #627588;
  --line: #e1e8ee;
  --canvas: #f5f7fa;
  --teal: #087f8e;
  --nav-width: 220px;
  --header-height: 76px;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font-size: 13px;
}
button,
.button {
  min-height: 40px;
  border-radius: 8px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button.primary,
.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 2px 3px #087f8e18;
}
button.primary:hover,
.button.primary:hover {
  background: #066977;
  border-color: #066977;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #15a8b7;
  outline-offset: 3px;
}
button:disabled {
  box-shadow: none;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  height: var(--header-height);
  padding: 14px 28px;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar > a {
  width: 164px;
  flex-shrink: 0;
}
.topbar img {
  width: 164px;
}
.workspace-label {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 650;
  color: #687c8d;
  padding-left: 26px;
}
#account {
  gap: 18px;
}
#user-name {
  font-size: 12px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sign-out {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 7px 12px;
  min-height: 34px;
}
.workspace-nav {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--nav-width);
  padding: 29px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 15;
  margin: 0;
}
.nav-section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #7c8c9b;
  padding: 0 15px;
  margin-bottom: 13px;
}
.workspace-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 12px 14px;
  color: #5b7083;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}
.workspace-nav a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-nav a:hover {
  background: #f4f7f9;
}
.workspace-nav a[aria-current="page"] {
  background: #e9f5f6;
  color: #087784;
  box-shadow: inset 3px 0 #128c99;
}
.nav-footer {
  margin-top: auto;
  padding: 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.practice-mark {
  display: grid;
  place-items: center;
  background: #16324f;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.6px;
}
.nav-footer strong {
  display: block;
  font-size: 11px;
}
.nav-footer small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.signed-in #app {
  margin: 0 0 0 var(--nav-width);
  max-width: none;
  padding: 34px 38px 105px;
  min-height: calc(100vh - var(--header-height));
}
.signed-in #message:not(:empty) {
  margin: 22px 38px 0 calc(var(--nav-width) + 38px);
  font-size: 12px;
  box-shadow: none;
}
.page-heading {
  margin-bottom: 27px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #638091;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 9px 0 9px;
  font-weight: 800;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.55px;
}
p {
  color: var(--muted);
}
.page-heading p {
  font-size: 13px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 5px #18324703;
}
.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.metric {
  padding: 20px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 7px;
}
.metric > span {
  font-size: 11px;
  font-weight: 700;
  color: #627789;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.metric small {
  font-size: 10px;
  color: #718396;
}
.metric.attention strong {
  color: #b64632;
}
.directory-panel {
  overflow: hidden;
}
.toolbar {
  padding: 18px 22px;
  gap: 12px;
  min-height: 77px;
  background: #fff;
}
.search {
  max-width: 360px;
  background: #f8fafb;
  padding-left: 14px;
}
.count {
  font-size: 11px;
  white-space: nowrap;
}
input,
select,
textarea {
  border-color: #d9e2ea;
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 42px;
  background: #fff;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #adbfcc;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid #0f92a012;
}
th {
  background: #f8fafc;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
td {
  padding: 17px 20px;
  font-size: 12px;
  border-color: #edf1f5;
}
tbody tr:hover {
  background: #f8fbfc;
}
td a {
  font-weight: 700;
}
td button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.client-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}
.client-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e9f3f4;
  color: #177480;
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 800;
}
.column-value {
  font-size: 12px;
  line-height: 1.6;
}
.badge {
  font-size: 10px;
  font-weight: 750;
  border-radius: 5px;
  padding: 5px 8px;
  background: #edf5f6;
  color: #247684;
}
.badge.overdue {
  background: #fff0eb;
  color: #ac3f2d;
}
.empty {
  padding: 78px 30px;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #eef7f8;
  border: 1px solid #dbecee;
  border-radius: 16px;
  color: #268a94;
}
.empty h2 {
  font-size: 19px;
}
.empty p {
  font-size: 12px;
  max-width: 430px;
  margin: 10px auto;
}
.back {
  font-size: 11px;
  color: #627c8c;
  margin-bottom: 16px;
}
.client-layout {
  grid-template-columns: 177px minmax(0, 1fr);
  gap: 24px;
}
.client-nav {
  position: sticky;
  top: 100px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.client-nav .nav-title {
  padding: 10px 12px 14px;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.client-nav a {
  font-size: 12px;
  padding: 11px 12px;
  color: #61778b;
}
.client-nav a[aria-current="page"] {
  background: #fff;
  color: #087c89;
  box-shadow: 0 1px 4px #16324f0c;
  border: 1px solid #dde6ec;
}
.section {
  padding: 29px 32px;
}
.section > p {
  font-size: 12px;
  margin-bottom: 27px;
}
.field {
  font-size: 11px;
  gap: 8px;
  font-weight: 750;
  color: #4c6378;
}
.required {
  font-size: 9px;
  font-weight: 600;
  color: #748597;
}
.form-grid {
  gap: 23px 24px;
}
.subhead {
  font-size: 12px;
  letter-spacing: 0.1px;
  padding-top: 25px;
  color: #16324f;
}
.section-header {
  margin-bottom: 6px;
}
.section-header > a {
  font-size: 11px;
  color: var(--teal);
  text-decoration: none;
}
.service-card {
  padding: 20px 23px;
  border-radius: 9px;
}
.service-card.enabled {
  background: white;
  border-color: #8fcbd0;
  box-shadow: inset 3px 0 #1695a3;
}
.service-title h3 {
  font-size: 13px;
}
.service-card > p {
  margin: 10px 0 0;
  font-size: 11px;
}
.service-switch {
  min-height: 26px;
}
.service-switch:hover {
  background: #b4c5d1;
}
.service-switch[aria-checked="true"]:hover {
  background: #087380;
}
.service-fields {
  gap: 16px;
  margin-top: 20px;
}
.service-questions {
  background: #f6fafb;
  padding: 16px;
  margin-top: 19px;
  gap: 15px;
}
.pricing-context {
  background: #f7f9fb;
  border: 1px solid #e8edf1;
  padding: 19px;
  border-radius: 8px;
}
.pricing-actions {
  margin: 20px 0;
  font-size: 11px;
  color: #687d8f;
}
.price-detail {
  font-size: 11px;
}
.price-summary {
  background: #18384d;
  padding: 22px;
  border-radius: 9px;
}
.price-summary strong {
  font-size: 21px;
}
.tax-service-card {
  border-radius: 9px;
}
.tax-service-card summary {
  font-size: 12px;
  padding: 20px;
}
.tax-service-fields {
  padding: 0 20px 20px;
}
.tax-note {
  font-size: 11px;
  background: #f6f9fb;
  border: 1px solid #e7edf2;
}
.savebar {
  left: calc(var(--nav-width) + 239px);
  right: 38px;
  bottom: 18px;
  max-width: none;
  border-radius: 10px;
  padding: 13px 18px;
  box-shadow: 0 5px 30px #16324f16;
  z-index: 10;
}
.savebar span {
  font-size: 11px;
}
.savebar button {
  font-size: 12px;
}
.deadline {
  padding: 18px 0;
  font-size: 12px;
}
.deadline small {
  font-size: 11px;
}
.column-dialog {
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 25px 80px #18324730;
}
.column-dialog > p {
  font-size: 12px;
}
.column-option {
  font-size: 12px;
}
.column-option button {
  min-height: 30px;
}
.dialog-actions button {
  font-size: 12px;
}
dialog::backdrop {
  background: #132c4255;
  backdrop-filter: blur(3px);
}
.login {
  margin: 90px auto;
  background: #fff;
  max-width: 520px;
  padding: 48px;
  border-top: 3px solid var(--teal);
  box-shadow: 0 18px 60px #16324f08;
}
.login h1 {
  font-size: 35px;
  line-height: 1.3;
}
.login p {
  font-size: 13px;
  margin-bottom: 25px;
}
.login #sign-in {
  width: 100%;
}
@media (min-width: 1700px) {
  .signed-in #app {
    padding-right: max(38px, calc((100vw - 1560px) / 2));
    padding-left: max(38px, calc((100vw - 1560px) / 2));
  }
  .savebar {
    left: calc(
      var(--nav-width) + max(38px, calc((100vw - 1560px) / 2)) + 201px
    );
    right: max(38px, calc((100vw - 1560px) / 2));
  }
}
@media (max-width: 1100px) {
  :root {
    --nav-width: 180px;
  }
  .topbar > a,
  .topbar img {
    width: 140px;
  }
  .topbar {
    padding-left: 20px;
  }
  .signed-in #app {
    padding: 28px 24px 100px;
  }
  .client-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }
  .section {
    padding: 24px;
  }
  .savebar {
    left: calc(var(--nav-width) + 192px);
    right: 24px;
  }
  .metric {
    padding: 18px;
  }
  .service-fields {
    grid-template-columns: 1fr 1fr;
  }
  .service-fields .field:last-child {
    grid-column: 1/-1;
  }
  .nav-footer small {
    font-size: 8px;
  }
  .signed-in #message:not(:empty) {
    margin-left: calc(var(--nav-width) + 24px);
    margin-right: 24px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 68px;
    position: relative;
    padding: 15px 20px;
  }
  .workspace-label {
    display: none;
  }
  #user-name {
    display: none;
  }
  .workspace-nav {
    position: sticky;
    top: 0;
    bottom: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px;
    gap: 8px;
  }
  .workspace-nav a {
    font-size: 12px;
    min-height: 38px;
    padding: 8px 15px;
  }
  .workspace-nav a svg {
    width: 16px;
    height: 16px;
  }
  .nav-section-label,
  .nav-footer {
    display: none;
  }
  .signed-in #app {
    margin: 0;
    padding: 25px 20px 105px;
  }
  .signed-in #message:not(:empty) {
    margin: 18px 20px 0;
  }
  .workspace-metrics {
    gap: 10px;
    margin-bottom: 22px;
  }
  .metric {
    padding: 16px 14px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric > span {
    font-size: 10px;
  }
  .client-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .client-nav {
    position: static;
    display: flex;
    padding: 0 0 5px;
    overflow: auto;
  }
  .client-nav .nav-title {
    display: none;
  }
  .client-nav a {
    white-space: nowrap;
    border: 1px solid transparent;
  }
  .savebar {
    left: 20px;
    right: 20px;
    bottom: 12px;
  }
  .section {
    padding: 24px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  h1 {
    font-size: 27px;
  }
  .tax-service-grid {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 45px 20px;
    padding: 30px;
    max-width: none;
  }
}
@media (max-width: 500px) {
  .workspace-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 13px 16px;
    gap: 3px 10px;
  }
  .metric strong {
    grid-row: 1/3;
    grid-column: 2;
    align-self: center;
  }
  .metric small {
    font-size: 10px;
  }
  .metric > span {
    font-size: 11px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .button {
    width: 100%;
    text-align: center;
  }
  .form-grid,
  .service-fields {
    grid-template-columns: 1fr;
  }
  .service-fields .field:last-child {
    grid-column: auto;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar .search {
    flex-basis: 100%;
    max-width: none;
  }
  .section {
    padding: 21px 17px;
  }
  .service-card {
    padding: 18px;
  }
  .section-header {
    align-items: flex-start;
  }
  .section-header > button {
    font-size: 11px;
    padding: 8px;
  }
  .savebar {
    padding: 11px 13px;
  }
  .savebar button {
    padding: 9px 12px;
  }
  .savebar span {
    max-width: 105px;
  }
  .pricing-actions {
    align-items: stretch;
  }
  #task-due {
    margin-left: 5px;
  }
  .login h1 {
    font-size: 29px;
  }
  .column-dialog {
    padding: 22px;
  }
  .column-option {
    padding: 10px;
  }
  .column-option label {
    font-size: 11px;
  }
  .column-option button {
    padding: 5px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Profile menu stays compact on desktop and mobile. */
#account { position: relative; }
#account-toggle { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #e6f3f5; color: #087f8e; display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; }
#account-toggle:hover, #account-toggle[aria-expanded="true"] { box-shadow: 0 0 0 3px #e6f3f5; }
.topbar #account-avatar { width: 100%; height: 100%; object-fit: cover; }
#account-menu { position: absolute; right: 0; top: calc(100% + 12px); width: min(270px, calc(100vw - 40px)); padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 36px #18324720; }
#account-menu #user-name { display: block; max-width: none; font-size: 13px; }
#user-email { display: block; margin-top: 4px; font-size: 12px; color: #687c8d; overflow-wrap: anywhere; }
#account-menu #sign-out { display: block; width: 100%; margin-top: 14px; text-align: left; }

.client-views { display:flex; gap:8px; margin:0 0 22px; }
.client-views [aria-current="page"] { background:#183247; color:#fff; border-color:#183247; }

/* Deadline urgency: tint the whole row and reinforce with text labels. */
tr.task-overdue > td { background: #fff1f2; }
tr.task-due-soon > td { background: #fff7ed; }
tr.task-overdue > td:first-child { box-shadow: inset 4px 0 #b42318; }
tr.task-due-soon > td:first-child { box-shadow: inset 4px 0 #c45b08; }
tr.task-overdue .task-deadline, .badge.overdue { color: #b42318; font-weight: 750; }
tr.task-due-soon .task-deadline, .badge.due-soon { color: #9a4208; font-weight: 750; }
.badge.due-soon { background: #ffedd5; }
.loe-notice { background:#fff7ed; border:1px solid #fed7aa; padding:16px; border-radius:10px; margin-bottom:20px; }
.loe-editor { margin:14px 0; padding:12px; border:1px solid var(--line); border-radius:8px; }
.loe-editor textarea { width:100%; min-height:180px; }
.loe-document { margin-top:24px; padding:28px; background:white; border:1px solid var(--line); }
.loe-document .loe-prose { white-space:normal; line-height:1.7; font-size:13px; overflow-wrap:anywhere; }
.loe-document section { margin-top:28px; }
.loe-document aside, .loe-draft { background:#fff7ed; padding:14px; }
.loe-document table { min-width:0; }

#account-menu > a { display:block; margin-top:14px; width:100%; text-align:left; }

.loe-document .loe-prose p { margin:0 0 1em; orphans:3; widows:3; }
.loe-document .loe-prose p:last-child { margin-bottom:0; }
.import-review { margin-bottom:24px; padding:22px; border-left:4px solid #087e8b; }
.import-review p { color:#526a79; line-height:1.6; }
.import-review summary { cursor:pointer; font-weight:700; }
.import-fields { display:grid; gap:8px; }
.import-fields > div { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,3fr); gap:16px; padding:8px 0; border-bottom:1px solid #e4ecef; }
.import-fields dt { text-transform:capitalize; color:#637783; }
.import-fields dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.import-review article { padding:12px; margin-top:12px; background:#f5f9fa; }
.import-review article p { white-space:pre-wrap; }
@media(max-width:640px){.import-fields > div{grid-template-columns:1fr;gap:4px}.savebar{flex-wrap:wrap}}

.loe-pdf-viewer { display:block; width:100%; height:80vh; min-height:550px; border:1px solid var(--line); border-radius:12px; background:#eef2f5; margin-top:16px; }

.loe-pdf-viewer { height:auto; min-height:300px; padding:16px; }
.loe-pdf-canvas { max-height:80vh; overflow:auto; padding:4px; }
.loe-pdf-canvas canvas { display:block; margin:0 auto; background:white; box-shadow:0 2px 8px #18324720; }

/* Shared entry for staff and clients. */
.login.panel {display:grid;grid-template-columns:1fr 1fr;max-width:1040px;padding:0;margin:72px auto;overflow:hidden;border:1px solid #dce7ed;border-radius:20px;box-shadow:0 24px 70px #16324f0a;}
.login[hidden] {display:none;}
.login-story {background:#183749;color:#fff;padding:64px 48px;display:flex;flex-direction:column;position:relative;}
.login-story .eyebrow {color:#65d1d7;font-size:11px;letter-spacing:.15em;}
.login-story h1 {color:#fff;font-size:40px;line-height:1.2;letter-spacing:-1.5px;margin:30px 0 24px;}
.login-story p {color:#cadce4;font-size:16px;line-height:1.8;max-width:340px;}
.login-story-footer {margin-top:auto;padding-top:48px;color:#b6d5df;font-size:12px;}
.login-story-footer span {display:inline-grid;place-items:center;border:1px solid #55818d;border-radius:50%;width:23px;height:23px;margin-right:8px;color:#75d9d9;}
.login-entry {padding:56px 48px;background:#fff;}
.login-kicker {font-size:10px;font-weight:800;letter-spacing:.18em;color:#087f8c;}
.login-entry h2 {font-size:27px;letter-spacing:-.7px;line-height:1.3;margin:14px 0 10px;}
.login-entry #login-description {font-size:14px;line-height:1.6;margin-bottom:28px;}
#login-form {display:grid;gap:10px;}
#login-form label {font-size:13px;font-weight:700;}
#login-form input {width:100%;box-sizing:border-box;padding:15px 16px;border:1px solid #bacbd6;border-radius:8px;font-size:15px;background:#fff;}
#login-form input:focus {outline:3px solid #12aaba33;border-color:#087f8c;}
#login-form button,#confirm-link {padding:15px 18px;border-radius:8px;margin-top:8px;min-height:50px;font-size:14px;}
#login-form button span {float:right;}
.login #login-error {font-size:13px;line-height:1.6;margin:18px 0;color:#344f61;}
.login-methods {border-top:1px solid #e3ebf0;padding-top:20px;margin-top:24px;}
.login-methods p {display:flex;flex-direction:column;gap:5px;font-size:12px;margin:0 0 14px;line-height:1.5;}
.login-methods strong {color:#254557;}
.login .login-support {font-size:12px;margin:28px 0 0;}
.login-support a {color:#087f8c;text-decoration:underline;}
.client-portal.signed-in #app {margin-left:auto;max-width:1080px;margin-right:auto;padding:42px 28px;}
.portal-tabs {display:flex;gap:8px;margin:28px 0 20px;}
.portal-tabs a {padding:12px 20px;color:#345064;border-radius:8px;text-decoration:none;font-weight:700;}
.portal-tabs a[aria-current] {background:#183749;color:#fff;}
.portal-panel {min-height:240px;padding:32px;}
.portal-details {display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px;}
.portal-details dt {font-size:12px;color:#6b7f90;margin-bottom:8px;}
.portal-details dd {margin:0;font-size:15px;overflow-wrap:anywhere;}
@media(max-width:760px) {
 .login.panel {grid-template-columns:1fr;margin:28px 18px;}
 .login-story {padding:30px;}.login-story h1 {font-size:29px;margin:16px 0;}.login-story p {font-size:14px;margin:0;}.login-story-footer {display:none;}
 .login-entry {padding:32px 28px;}.portal-details {grid-template-columns:1fr;}
}

/* Branded login presentation, scoped away from the signed-in workspace. */
body:has(#login:not([hidden])) {
 min-height:100vh;box-sizing:border-box;padding:72px 24px;
 background:radial-gradient(ellipse at 5% 8%,#65d7dc88 0,transparent 44%),radial-gradient(ellipse at 96% 88%,#ffb69b77 0,transparent 42%),linear-gradient(135deg,#e9f7f7 0%,#f8faf7 53%,#fff1e7 100%);
}
body:has(#login:not([hidden])) .topbar {display:none;}
body:has(#login:not([hidden])) #app {padding:0;margin:0;}
.login.panel {margin:24px auto;border:1px solid #ffffffaa;box-shadow:0 28px 80px #123c4d20;position:relative;}
.login-story {overflow:hidden;background:linear-gradient(155deg,#16364e 5%,#115262 65%,#087f8c 100%);padding:44px 48px 48px;}
.login-story::before,.login-story::after {content:"";position:absolute;border-radius:50%;pointer-events:none;}
.login-story::before {width:340px;height:340px;border:55px solid #4bc6c52b;right:-220px;bottom:-85px;}
.login-story::after {width:130px;height:130px;background:#ff8a6c;right:-82px;top:35%;box-shadow:0 0 0 22px #ffad8f14;}
.login-story > * {position:relative;z-index:1;}
.login-brand {background:transparent;padding:0;align-self:flex-start;max-width:100%;box-sizing:border-box;}
.login-brand img {display:block;width:318px;max-width:100%;height:auto;}
.login-story h1 {margin-top:38px;font-size:42px;}
.login-story h1::after {content:"";display:block;width:48px;height:4px;border-radius:4px;background:#ff977b;margin-top:24px;}
.login-story p {color:#d4e9ec;}
.login-story-footer {padding-top:38px;color:#d0e7e9;}
.login-entry {padding-top:64px;padding-bottom:54px;}
.login-entry .primary {background:#078694;box-shadow:0 6px 16px #07869420;}
.login-entry .primary:hover {background:#066d79;}
@media(max-width:760px) {
 body:has(#login:not([hidden])) {padding:20px 12px;}
 .login.panel {margin:0 auto;max-width:520px;}
 .login-story {padding:28px;}
 .login-brand {padding:0;}
 .login-brand img {width:254px;}
 .login-story h1 {font-size:30px;margin:24px 0 18px;}
 .login-story h1::after {margin-top:18px;}
 .login-entry {padding:32px 28px;}
}
