:root {
  --ink: #211c17;
  --paper: #f2eee6;
  --panel: #faf7f1;
  --muted: #756d64;
  --bronze: #856645;
  --dark: #1d221e;
  --line: rgba(33, 28, 23, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

[hidden] { display: none !important; }

button,
input { font: inherit; }

a { color: inherit; text-decoration: none; }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark span {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.46em;
}

.wordmark strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.login-screen {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100svh;
}

.login-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 7vw;
  color: #fff;
  overflow: hidden;
}

.login-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 9, 0.15), rgba(8, 12, 9, 0.72));
  content: "";
}

.login-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-image > a {
  position: absolute;
  z-index: 2;
  top: 45px;
  left: 50px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-image > div {
  position: relative;
  z-index: 2;
}

.login-image small,
.login-panel form > p,
.dashboard-main header p,
.view-heading p,
.property-hero small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-image h1 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6.6vw, 100px);
  font-weight: 400;
  line-height: 0.95;
}

.login-image h1 em {
  color: #c9b9a1;
  font-weight: 400;
}

.login-panel {
  display: flex;
  flex-direction: column;
  padding: 42px 7vw 70px;
  background: var(--panel);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.language-switch button {
  padding: 5px;
  color: inherit;
  opacity: 0.45;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-switch button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.login-panel form {
  width: min(480px, 100%);
  margin: auto;
}

.login-panel form > p {
  color: var(--bronze);
}

.login-panel h2 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 400;
}

.login-panel form > span {
  display: block;
  margin-bottom: 50px;
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.login-panel label small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-panel input {
  padding: 15px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
}

.login-panel form > button,
.operation-card button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  color: #fff;
  background: var(--dark);
  border: 1px solid var(--dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.demo-note {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 40px 30px 28px;
  color: #e9e6df;
  background: var(--dark);
}

.inverse span { color: #b9aa93; }

.sidebar nav {
  display: grid;
  gap: 3px;
  margin: 90px 0 auto;
}

.sidebar nav button,
.logout {
  padding: 13px 15px;
  color: #a6aaa5;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.sidebar nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.logout {
  padding-left: 0;
  color: #d0c0a9;
}

.dashboard-main {
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 78px);
}

.dashboard-main > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.dashboard-main header p,
.view-heading p {
  margin: 0 0 10px;
  color: var(--bronze);
}

.dashboard-main header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--bronze);
  border-radius: 50%;
  font-family: var(--serif);
}

.view {
  display: none;
  padding: 45px 0;
}

.view.active { display: block; }

.property-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
}

.property-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 12, 0.8), rgba(12, 15, 12, 0.05));
  content: "";
}

.property-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero > div {
  position: relative;
  z-index: 2;
  width: min(500px, 90%);
  padding: 70px 55px;
}

.property-hero h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(45px, 5vw, 74px);
  font-weight: 400;
}

.property-hero p { color: #d5d2ca; }

.property-hero span {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.summary-grid article {
  min-height: 205px;
  padding: 28px;
  background: #f8f4ed;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-grid small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.summary-grid p {
  color: var(--muted);
  font-size: 12px;
}

.progress {
  height: 3px;
  background: #ddd6cb;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--bronze);
}

.view-heading {
  margin-bottom: 45px;
}

.view-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.gallery-grid img:first-child {
  grid-row: span 2;
  height: 636px;
}

.timeline {
  display: grid;
  max-width: 850px;
}

.timeline article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  min-height: 110px;
}

.timeline article > i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.timeline article:not(:last-child) > i::after {
  position: absolute;
  z-index: -1;
  top: 41px;
  width: 1px;
  height: 70px;
  background: var(--line);
  content: "";
}

.timeline .done > i,
.timeline .current > i {
  color: #fff;
  background: var(--bronze);
  border-color: var(--bronze);
}

.timeline article > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.timeline small { color: var(--muted); }

.table {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table-row.head {
  min-height: 46px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.table-row b {
  width: fit-content;
  padding: 6px 10px;
  color: #47614b;
  background: #e5eee5;
  font-size: 9px;
  text-transform: uppercase;
}

.table-row b.pending {
  color: #856645;
  background: #efe5d5;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list article {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.document-list article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--bronze);
  background: #ece4d8;
  font-size: 10px;
  font-weight: 700;
}

.document-list strong,
.document-list small {
  display: block;
}

.document-list strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.document-list small {
  margin-top: 5px;
  color: var(--muted);
}

.document-list button {
  padding: 9px 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.operation-card {
  max-width: 800px;
  padding: clamp(35px, 6vw, 80px);
  color: #fff;
  background: var(--dark);
}

.operation-card span {
  color: #cabba5;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.operation-card p {
  margin: 35px 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.35;
}

.operation-card button {
  width: auto;
  padding: 0 25px;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.dashboard-main > footer {
  padding: 25px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

@media (max-width: 960px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-image {
    min-height: 48svh;
  }

  .login-panel {
    min-height: 62svh;
  }

  .login-panel form {
    margin-top: 85px;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 24px;
  }

  .sidebar nav {
    display: flex;
    margin: 35px 0 20px;
    overflow-x: auto;
  }

  .sidebar nav button {
    flex: 0 0 auto;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-image {
    padding: 100px 25px 40px;
  }

  .login-image > a {
    top: 28px;
    left: 25px;
  }

  .login-panel {
    padding: 30px 24px 60px;
  }

  .dashboard-main {
    padding: 28px 20px;
  }

  .dashboard-main > header {
    align-items: flex-start;
  }

  .avatar { display: none; }

  .property-hero > div {
    padding: 55px 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    grid-row: auto;
    height: 68vw;
  }

  .table {
    overflow-x: auto;
  }

  .table-row {
    grid-template-columns: 180px 130px 130px 90px;
    min-width: 600px;
  }

  .timeline article > div {
    display: grid;
    gap: 8px;
  }
}

/* Responsive portal integration */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard,
.sidebar,
.sidebar nav,
.dashboard-main,
.dashboard-main > header,
.view {
  min-width: 0;
}

@media (max-width: 960px) {
  .dashboard,
  .sidebar,
  .dashboard-main {
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    overflow: hidden;
  }

  .sidebar nav {
    width: 100%;
    max-width: 100%;
    padding-bottom: 6px;
    overscroll-behavior-inline: contain;
  }
}

@media (max-width: 620px) {
  .login-panel form {
    margin-top: 64px;
  }

  .dashboard-main > header {
    flex-wrap: wrap;
    gap: 22px;
  }

  .dashboard-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .property-hero {
    min-height: 405px;
  }

  .property-hero > div {
    width: 100%;
    max-width: 100%;
  }

  .summary-grid article {
    min-width: 0;
  }

  .table {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }

  .document-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .document-list article > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Owner portal information modules */
.section-label,
.subheading p {
  margin: 0 0 18px;
  color: var(--bronze);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.data-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

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

.data-grid article {
  min-width: 0;
  min-height: 128px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-grid article:nth-child(2n) {
  border-right: 0;
}

.data-grid small,
.account-grid small,
.payment-progress-card small,
.next-payment-card small,
.overall-progress small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-grid strong {
  display: block;
  max-width: 540px;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.data-grid .status-text {
  color: var(--bronze);
}

.prototype-note {
  margin: 0;
  padding: 18px 28px;
  color: var(--muted);
  font-size: 10px;
}

.apartment-layout {
  display: grid;
  gap: 48px;
}

.apartment-data {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apartment-data article:nth-child(2n) {
  border-right: 1px solid var(--line);
}

.apartment-data article:nth-child(3n) {
  border-right: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.account-grid article {
  min-width: 0;
  padding: 28px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-grid strong {
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
}

.account-grid span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.payment-progress-card,
.overall-progress {
  margin-top: 22px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.payment-progress-card > div:first-child,
.overall-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.payment-progress-card > div:first-child strong,
.overall-progress > div:first-child strong {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
}

.payment-progress-card .large,
.overall-progress .large {
  height: 7px;
  margin: 18px 0;
}

.payment-progress-card p,
.overall-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.payment-progress-card p i {
  padding: 0 8px;
  font-style: normal;
}

.next-payment-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 22px 0 50px;
  padding: 26px 30px;
  color: #fff;
  background: var(--dark);
}

.next-payment-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 31px);
  font-weight: 400;
}

.next-payment-card small {
  color: #bcb9b1;
}

.next-payment-card > span {
  padding: 8px 12px;
  color: #d3c3ac;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subheading {
  margin-top: 10px;
}

.account-table .table-row {
  grid-template-columns: 0.9fr 1.15fr 1fr 1fr 0.8fr;
}

.overall-progress {
  margin: 0 0 28px;
}

.overall-progress b {
  color: var(--ink);
  font-weight: 500;
}

.stage-list {
  display: grid;
  gap: 12px;
}

.stage-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.stage-card summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 64px;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 20px 28px;
  cursor: pointer;
  list-style: none;
}

.stage-card summary::-webkit-details-marker {
  display: none;
}

.stage-card summary::after {
  grid-column: 3;
  justify-self: end;
  color: var(--muted);
  content: "+";
  font-family: var(--serif);
  font-size: 25px;
}

.stage-card[open] summary::after {
  content: "−";
}

.stage-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
}

.stage-card.completed .stage-number,
.stage-card.current .stage-number {
  color: #fff;
  background: var(--bronze);
  border-color: var(--bronze);
}

.stage-main {
  min-width: 0;
}

.stage-main > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.stage-main strong {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
}

.status-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge.completed {
  color: #47614b;
  background: #e5eee5;
}

.status-badge.current {
  color: #856645;
  background: #efe5d5;
}

.status-badge.pending {
  color: var(--muted);
  background: #eae7e1;
}

.stage-percent {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-right: 28px;
  font-family: var(--serif);
  font-size: 22px;
}

.stage-evidence {
  padding: 0 28px 28px 98px;
}

.stage-evidence > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.evidence-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

  .apartment-data article:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .apartment-data article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 960px) {
  .sidebar nav {
    margin-top: 28px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .next-payment-card {
    grid-template-columns: 1fr 1fr;
  }

  .next-payment-card > span {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .data-grid,
  .apartment-data {
    grid-template-columns: 1fr;
  }

  .data-grid article,
  .data-grid article:nth-child(2n),
  .apartment-data article:nth-child(3n) {
    min-height: 108px;
    border-right: 0;
  }

  .next-payment-card {
    grid-template-columns: 1fr;
  }

  .next-payment-card > span {
    grid-column: auto;
  }

  .account-table .table-row {
    grid-template-columns: 130px 170px 140px 150px 110px;
    min-width: 760px;
  }

  .stage-card summary {
    grid-template-columns: 40px minmax(0, 1fr) 45px;
    gap: 14px;
    padding: 18px;
  }

  .stage-number {
    width: 38px;
    height: 38px;
  }

  .stage-main > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stage-percent {
    margin-right: 22px;
    font-size: 17px;
  }

  .stage-card summary::after {
    font-size: 20px;
  }

  .stage-evidence {
    padding: 0 18px 18px;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .payment-progress-card,
  .overall-progress,
  .account-grid article,
  .next-payment-card {
    padding: 22px;
  }

  .payment-progress-card p {
    display: grid;
    gap: 5px;
  }

  .payment-progress-card p i {
    display: none;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

/* Updated brand and demonstration accounts */
.portal-brand {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.portal-brand .portal-logo-window {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.portal-brand .portal-logo-window img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.portal-brand .portal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.portal-brand .portal-brand-text small {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.46em;
}

.portal-brand .portal-brand-text strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.inverse .portal-logo-window {
  background: transparent;
}

.inverse .portal-brand-text small {
  color: #b9aa93;
}

.demo-access {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.demo-access > p {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo-access > button {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.demo-access > button:hover,
.demo-access > button:focus-visible {
  color: var(--bronze);
}

.demo-access button strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.demo-access button span {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.login-error {
  margin: -8px 0 8px;
  color: #8c3a2d !important;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
}

.client-gallery img {
  transition: transform 500ms ease, filter 500ms ease;
}

.client-gallery img:hover {
  filter: brightness(0.92);
  transform: scale(1.015);
}

@media (max-width: 700px) {
  .portal-brand .portal-logo-window {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .portal-brand .portal-logo-window img {
    width: 100%;
    height: 100%;
  }

  .demo-access > button {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
