@font-face {
  font-family: "Voke Sans";
  src: url("./vendor/inter-latin-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Voke Sans";
  src: url("./vendor/inter-latin-wght-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --portal-ink: #101821;
  --portal-copy: #29384a;
  --portal-muted: #627084;
  --portal-petrol: #00343c;
  --portal-petrol-deep: #001e26;
  --portal-teal: #08716f;
  --portal-teal-soft: #e8f5f3;
  --portal-coral: #ff3c2f;
  --portal-coral-dark: #e52f24;
  --portal-blue: #2479d8;
  --portal-amber: #e5a41c;
  --portal-violet: #7654b7;
  --portal-surface: #f9fbfc;
  --portal-paper: #ffffff;
  --portal-wash: #f1f5f7;
  --portal-line: #d7e0e6;
  --portal-line-strong: #bccbd4;
  --portal-shadow: 0 10px 30px rgb(12 31 40 / 13%), 0 2px 7px rgb(12 31 40 / 10%);
  --portal-header-height: 76px;
  --portal-footer-height: 52px;
  --portal-login-footer-height: 84px;
  --portal-radius: 6px;
  font-family: "Voke Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: #edf1f3;
  color: var(--portal-ink);
  font-family: inherit;
  font-synthesis: none;
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgb(36 121 216 / 34%);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.portal-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.portal-outer {
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  padding: 5px;
}

.portal-frame {
  position: relative;
  display: grid;
  width: calc(100vw - 10px);
  height: calc(100vh - 10px);
  height: calc(100dvh - 10px);
  max-width: none;
  grid-template-rows: var(--portal-header-height) minmax(0, 1fr) var(--portal-footer-height);
  overflow: hidden;
  border: 1px solid #afbec6;
  border-radius: 4px;
  background: var(--portal-paper);
  box-shadow: var(--portal-shadow);
  animation: portal-enter 420ms cubic-bezier(.2, .72, .2, 1) both;
}

.portal-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #edf1f3;
  container-type: size;
}

.portal-main,
.portal-login-main {
  width: min(100cqw, calc(100cqh * 16 / 9));
  height: min(100cqh, calc(100cqw * 9 / 16));
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  container-type: size;
}

.portal-header {
  position: relative;
  z-index: 30;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  padding: 0 34px;
  border-bottom: 2px solid #8fc3dc;
  background: linear-gradient(115deg, var(--portal-petrol-deep), var(--portal-petrol));
  color: #fff;
}

.portal-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.portal-brand__logo {
  display: grid;
  width: 102px;
  height: 48px;
  align-items: center;
}

.portal-brand__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.portal-brand__divider {
  width: 1px;
  height: 36px;
  background: rgb(255 255 255 / 42%);
}

.portal-brand__name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-primary-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 38px;
}

.portal-primary-nav a {
  position: relative;
  display: flex;
  min-width: 78px;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  color: rgb(255 255 255 / 82%);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.portal-primary-nav a::before {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  content: "";
  transform: translateX(-50%);
}

.portal-primary-nav a:hover,
.portal-primary-nav a[aria-current="page"] {
  color: #fff;
}

.portal-primary-nav a[aria-current="page"]::after,
.portal-primary-nav a[aria-current="page"]::before {
  background: var(--portal-coral);
}

.portal-menu-trigger {
  display: inline-flex;
  min-width: 108px;
  height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 22px;
  background: rgb(0 20 27 / 18%);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portal-menu-trigger:hover {
  border-color: rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 8%);
}

.portal-menu-trigger:active {
  transform: translateY(1px);
}

.portal-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background-color: var(--portal-surface);
  background-image:
    linear-gradient(rgb(93 126 143 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(93 126 143 / 7%) 1px, transparent 1px);
  background-size: 44px 44px;
  scrollbar-color: #8b9da8 transparent;
  scrollbar-width: thin;
}

.page-bezel {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--portal-line);
  background: #fbfcfd;
  color: var(--portal-copy);
  box-shadow: 0 1px 0 rgb(255 255 255 / 75%);
}

.page-bezel__label,
.page-bezel__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.page-bezel__label::before {
  width: 2px;
  height: 17px;
  background: var(--portal-coral);
  content: "";
}

.page-bezel__meta {
  color: var(--portal-teal);
}

.portal-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--portal-muted);
  font-size: 13px;
  list-style: none;
}

.portal-breadcrumbs li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.portal-breadcrumbs li:not(:last-child)::after {
  color: #9dabb5;
  content: "/";
}

.portal-breadcrumbs a:hover {
  color: var(--portal-teal);
}

.portal-breadcrumbs [aria-current="page"] {
  overflow: hidden;
  color: var(--portal-teal);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-teal);
  font-size: 13px;
  font-weight: 650;
}

.page-back:hover {
  color: var(--portal-coral-dark);
}

.portal-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 30px 20px;
}

.portal-page-heading {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 13px;
  font-size: clamp(30px, 2.8cqw, 44px);
  font-weight: 760;
  line-height: 1.05;
}

.portal-page-heading::after,
.section-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--portal-coral);
  content: "";
}

.section-heading {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.portal-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.portal-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.portal-button--primary {
  border-color: var(--portal-coral);
  background: var(--portal-coral);
  color: #fff;
  box-shadow: 0 4px 12px rgb(255 60 47 / 18%);
}

.portal-button--primary:hover:not(:disabled) {
  border-color: var(--portal-coral-dark);
  background: var(--portal-coral-dark);
}

.portal-button--outline {
  border-color: var(--portal-coral);
  background: transparent;
  color: var(--portal-coral-dark);
}

.portal-button--outline:hover:not(:disabled) {
  background: #fff4f2;
}

.portal-button--teal {
  border-color: var(--portal-teal);
  background: #fff;
  color: var(--portal-teal);
}

.portal-button--teal:hover:not(:disabled) {
  background: var(--portal-teal-soft);
}

.portal-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--portal-line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--portal-copy);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-icon-button:hover:not(:disabled) {
  border-color: var(--portal-teal);
  background: var(--portal-teal-soft);
  color: var(--portal-teal);
}

.portal-icon-button:active:not(:disabled) {
  transform: translateY(1px);
}

/* Menu */

.portal-menu-backdrop {
  position: absolute;
  z-index: 20;
  inset: var(--portal-header-height) 0 0;
  background: rgb(10 22 29 / 46%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.portal-menu-backdrop.is-open {
  opacity: 1;
}

.portal-menu-drawer {
  position: absolute;
  z-index: 25;
  top: var(--portal-header-height);
  right: 0;
  bottom: 0;
  display: flex;
  width: min(360px, 100%);
  flex-direction: column;
  padding: 38px 30px 28px;
  border-left: 1px solid rgb(255 255 255 / 15%);
  background: linear-gradient(155deg, #06424a, #00313a);
  color: #fff;
  box-shadow: -14px 0 30px rgb(0 21 28 / 20%);
  opacity: 0;
  contain: layout paint;
  will-change: transform, opacity;
  transform: translate3d(100%, 0, 0);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(.2, .75, .2, 1);
}

.portal-menu-drawer.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portal-menu-account {
  padding: 0 4px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 23%);
}

.portal-menu-account strong,
.portal-menu-account span {
  display: block;
}

.portal-menu-account strong {
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-menu-account span {
  color: rgb(255 255 255 / 72%);
  font-size: 14px;
}

.portal-menu-links {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.portal-menu-link,
.portal-menu-signout {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 18px;
  padding: 0 10px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.portal-menu-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -30px;
  width: 4px;
  background: transparent;
  content: "";
}

.portal-menu-link:hover,
.portal-menu-link[aria-current="page"],
.portal-menu-signout:hover {
  background: rgb(255 255 255 / 6%);
}

.portal-menu-link[aria-current="page"]::before {
  background: var(--portal-coral);
}

.portal-menu-link .icon,
.portal-menu-signout .icon {
  width: 26px;
  height: 26px;
}

.portal-menu-signout {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgb(255 255 255 / 23%);
  padding-top: 20px;
}

/* Login */

.portal-frame--login {
  grid-template-rows: var(--portal-header-height) minmax(0, 1fr) var(--portal-login-footer-height);
}

.portal-login-header-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.portal-login-main {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 48px 64px;
  background-color: var(--portal-surface);
  background-image:
    linear-gradient(rgb(93 126 143 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(93 126 143 / 8%) 1px, transparent 1px);
  background-size: 44px 44px;
}

.portal-login-panel {
  display: grid;
  width: min(1100px, 100%);
  min-height: 440px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--portal-line-strong);
  border-radius: 0 42px 42px 0;
  background: rgb(255 255 255 / 70%);
}

.portal-login-intro,
.portal-login-form-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 50px 54px;
}

.portal-login-intro {
  border-right: 1px solid var(--portal-line);
}

.portal-login-intro h1 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 20px;
  font-size: clamp(40px, 4.1cqw, 62px);
  line-height: 1;
}

.portal-login-intro h1::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--portal-coral);
  content: "";
}

.portal-login-intro p {
  max-width: 420px;
  margin: 0;
  color: var(--portal-copy);
  font-size: 19px;
  line-height: 1.45;
}

.portal-login-progress {
  position: relative;
  width: min(390px, 100%);
  height: 2px;
  margin-top: 34px;
  background: #aec9c4;
}

.portal-login-progress::before {
  position: absolute;
  width: 28%;
  height: 100%;
  background: var(--portal-coral);
  content: "";
}

.portal-login-progress::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #578d7e;
  content: "";
  transform: translateY(-50%);
}

.login-form {
  display: grid;
  gap: 24px;
}

.login-form label {
  display: grid;
  gap: 9px;
  color: var(--portal-copy);
  font-size: 16px;
  font-weight: 620;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap input {
  width: 100%;
  height: 60px;
  padding: 0 50px 0 18px;
  border: 1px solid #aebdca;
  border-radius: 4px;
  background: rgb(255 255 255 / 72%);
  color: var(--portal-ink);
  font-size: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-input-wrap input:focus {
  border-color: var(--portal-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(8 113 111 / 12%);
  outline: none;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: transparent;
  color: #77869a;
  transform: translateY(-50%);
}

.login-submit {
  min-height: 58px;
  margin-top: 4px;
  font-size: 18px;
}

.login-submit .icon {
  margin-left: auto;
}

.login-form__message {
  margin: -10px 0 0;
  color: #a22922;
  font-size: 14px;
  line-height: 1.4;
}

.login-form__message[data-tone="success"] {
  color: var(--portal-teal);
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  background: linear-gradient(115deg, var(--portal-petrol-deep), var(--portal-petrol));
  color: #fff;
  font-size: .75rem;
}

.portal-footer__status,
.portal-footer__links {
  display: flex;
  align-items: center;
}

.portal-footer__status {
  gap: .65rem;
  color: rgb(255 255 255 / 78%);
  font-weight: 600;
}

.portal-footer__status .icon {
  color: #77b9ed;
}

.portal-footer__links {
  gap: 1.5rem;
}

.portal-footer__links a {
  color: rgb(255 255 255 / 74%);
  transition: color 160ms ease;
}

.portal-footer__links a:hover {
  color: #fff;
}

.portal-login-footer {
  justify-content: center;
  font-size: 1rem;
}

.portal-login-footer a {
  color: #83bea4;
}

.portal-login-footer .icon {
  color: #77b9ed;
}

/* Proposals */

.proposal-ledger {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: rgb(255 255 255 / 78%);
}

.proposal-ledger__header,
.proposal-ledger__row {
  display: grid;
  grid-template-columns: minmax(260px, 1.75fr) minmax(285px, 1.88fr) minmax(170px, 1fr) minmax(130px, .78fr) minmax(170px, .92fr);
  align-items: stretch;
}

.proposal-ledger__header {
  min-height: 46px;
  border-bottom: 1px solid var(--portal-line);
  color: var(--portal-copy);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.proposal-ledger__header > span {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.proposal-ledger__row {
  min-height: 88px;
  border-bottom: 1px solid var(--portal-line);
  opacity: 0;
  transform: translateY(8px);
  animation: ledger-row-enter 360ms cubic-bezier(.2, .75, .2, 1) forwards;
}

.proposal-ledger__row:last-child {
  border-bottom: 0;
}

.proposal-ledger__cell {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 10px 20px;
  border-right: 1px solid #e6ecef;
}

.proposal-ledger__cell:last-child {
  border-right: 0;
}

.proposal-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.proposal-icon,
.report-icon,
.fact-icon,
.resource-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fff;
}

.proposal-icon {
  width: 52px;
  height: 52px;
  color: var(--portal-coral);
}

.proposal-icon[data-tone="teal"] {
  color: var(--portal-teal);
}

.proposal-icon[data-tone="amber"] {
  color: var(--portal-amber);
}

.proposal-icon .icon {
  width: 26px;
  height: 26px;
}

.proposal-identity__copy {
  min-width: 0;
}

.proposal-identity h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

.proposal-identity p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--portal-copy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-pricing {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

.proposal-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-right: 14px;
}

.proposal-price + .proposal-price {
  padding-right: 0;
  padding-left: 18px;
  border-left: 1px solid var(--portal-line);
}

.proposal-price span {
  color: var(--portal-copy);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.proposal-price s,
.proposal-price strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-price s {
  color: var(--portal-copy);
  text-decoration-color: var(--portal-coral);
  text-decoration-thickness: 1px;
}

.proposal-price strong {
  color: var(--portal-teal);
  font-size: 16px;
}

.proposal-validity {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--portal-copy);
  font-size: 12px;
  line-height: 1.35;
}

.proposal-validity__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c8dcec;
  border-radius: 5px;
  background: #eff8ff;
  color: #1e73be;
}

.proposal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-copy);
  font-size: 12px;
}

.proposal-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d82f2;
  content: "";
}

.proposal-status[data-status="approved"]::before {
  background: var(--portal-teal);
}

.proposal-ledger__action {
  width: 100%;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.proposal-ledger__empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  color: var(--portal-muted);
  text-align: center;
}

.proposal-ledger__empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--portal-ink);
  font-size: 18px;
}

.proposal-report-hub {
  margin-top: 16px;
  padding: 14px 20px;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: rgb(255 255 255 / 78%);
}

.proposal-report-hub__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.proposal-report-hub__title {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.proposal-report-hub__title p {
  margin: 0;
  color: var(--portal-copy);
  font-size: 12px;
}

.proposal-report-hub__title strong {
  color: var(--portal-teal);
}

.proposal-report-hub__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-teal);
  font-size: 12px;
  font-weight: 650;
}

.proposal-report-list {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 4px;
}

.proposal-report-link {
  display: grid;
  min-height: 38px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
  border-bottom: 1px solid var(--portal-line);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.proposal-report-link:last-child {
  border-bottom: 0;
}

.proposal-report-link:hover {
  background: #f4faf9;
  color: var(--portal-teal);
}

.report-icon {
  width: 32px;
  height: 32px;
  color: var(--portal-blue);
}

.proposal-report-link:nth-child(2) .report-icon {
  color: var(--portal-teal);
}

.proposal-report-link:nth-child(3) .report-icon {
  color: var(--portal-violet);
}

.proposal-report-link__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-teal);
  font-size: 11px;
}

.proposal-report-empty {
  padding: 18px;
  color: var(--portal-muted);
  font-size: 13px;
}

/* Proposal detail */

.proposal-detail-content {
  display: flex;
  min-height: calc(100% - 44px);
  flex-direction: column;
  padding-top: 30px;
}

.proposal-detail-heading {
  margin-bottom: 20px;
}

.proposal-detail-heading h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(34px, 3.4cqw, 56px);
  line-height: 1.02;
}

.proposal-detail-heading__meta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 20px;
  color: var(--portal-teal);
  font-size: 16px;
  font-weight: 700;
}

.proposal-detail-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
}

.proposal-facts {
  margin: 0;
  border-top: 1px solid var(--portal-line);
}

.proposal-fact {
  display: grid;
  min-height: 61px;
  grid-template-columns: 46px 150px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--portal-line);
}

.fact-icon,
.resource-icon {
  width: 34px;
  height: 34px;
  border-color: #c9d9de;
  color: var(--portal-teal);
}

.proposal-fact dt {
  color: var(--portal-copy);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.proposal-fact dd {
  min-width: 0;
  margin: 0;
  color: var(--portal-copy);
  font-size: 14px;
  line-height: 1.35;
}

.proposal-fact dd s {
  text-decoration-color: var(--portal-coral);
}

.proposal-fact dd strong {
  color: var(--portal-teal);
  font-size: 18px;
}

.proposal-response-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  background: linear-gradient(145deg, #fff, #f1f5f7);
  box-shadow: 0 8px 22px rgb(34 58 69 / 7%);
}

.proposal-response-card h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  font-size: 26px;
}

.proposal-response-card h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--portal-coral);
  content: "";
}

.proposal-response-state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.proposal-response-state__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e8eef1;
  color: #6e8190;
}

.proposal-response-state__copy strong,
.proposal-response-state__copy em {
  display: block;
}

.proposal-response-state__copy strong {
  margin-top: 4px;
  font-size: 15px;
}

.proposal-response-state__copy em {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.proposal-summary-response-controls {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.proposal-summary-response-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--portal-coral);
  border-radius: 4px;
  background: #fff;
  color: var(--portal-coral-dark);
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.proposal-summary-response-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.proposal-summary-response-button--accept {
  background: var(--portal-coral);
  color: #fff;
}

.proposal-resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto -30px -20px;
  border-top: 1px solid var(--portal-line);
  background: rgb(255 255 255 / 87%);
}

.proposal-resource {
  display: grid;
  min-width: 0;
  min-height: 93px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-right: 1px solid var(--portal-line);
}

.proposal-resource:last-child {
  border-right: 0;
}

.proposal-resource__copy {
  min-width: 0;
}

.proposal-resource__copy strong,
.proposal-resource__copy span {
  display: block;
}

.proposal-resource__copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-resource__copy span {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
}

.proposal-resource[aria-disabled="true"] {
  color: #8794a3;
}

.proposal-resource[aria-disabled="true"] .resource-icon {
  color: #8794a3;
}

.proposal-resource__cta {
  min-width: 104px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.proposal-resource__cta:disabled {
  border-color: #d9dfe3;
  background: #e7ebee;
  color: #8996a3;
}

.proposal-response-dialog {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(5 24 31 / 62%);
}

.proposal-response-dialog__panel {
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid var(--portal-line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(0 20 28 / 28%);
}

.proposal-response-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.proposal-response-dialog__header span,
.proposal-response-dialog__header strong {
  display: block;
}

.proposal-response-dialog__header span {
  color: var(--portal-teal);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.proposal-response-dialog__header strong {
  margin-top: 5px;
  font-size: 24px;
}

.proposal-response-dialog__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: transparent;
  color: var(--portal-copy);
}

.proposal-response-dialog__copy {
  margin: 0 0 20px;
  color: var(--portal-copy);
  font-size: 14px;
  line-height: 1.55;
}

.proposal-response-dialog__field {
  display: grid;
  gap: 9px;
  color: var(--portal-copy);
  font-size: 14px;
  font-weight: 650;
}

.proposal-response-dialog__field textarea {
  resize: vertical;
  width: 100%;
  min-height: 130px;
  padding: 13px;
  border: 1px solid var(--portal-line-strong);
  border-radius: 4px;
}

.proposal-response-dialog__error {
  min-height: 20px;
  margin: 8px 0;
  color: #a22922;
  font-size: 12px;
}

.proposal-response-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Presentation */

.viewer-page {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: 44px minmax(0, 1fr);
  overflow: hidden;
}

.viewer-page .page-bezel {
  position: relative;
}

.presentation-shell {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 86px;
  padding: 18px 18px 12px;
  background: linear-gradient(145deg, #061f28, #0a3540);
}

.presentation-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

.presentation-workspace.is-index-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.presentation-workspace.is-index-hidden .slide-thumbnails {
  display: none;
}

.slide-thumbnails {
  min-height: 0;
  overflow: auto;
  padding: 0 12px 8px 0;
  border-right: 1px solid rgb(255 255 255 / 18%);
  scrollbar-color: #537681 transparent;
  scrollbar-width: thin;
}

.slide-thumbnail {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: rgb(255 255 255 / 7%);
  color: #fff;
  text-align: left;
}

.slide-thumbnail:hover,
.slide-thumbnail[aria-current="true"] {
  border-color: var(--portal-coral);
  background: rgb(255 255 255 / 12%);
}

.slide-thumbnail__number {
  color: #cdd9dd;
  font-size: 13px;
}

.slide-thumbnail__preview {
  display: flex;
  min-width: 0;
  aspect-ratio: 16 / 9;
  align-items: flex-end;
  padding: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  color: var(--portal-ink);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.presentation-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  container-type: size;
}

.presentation-asset {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.presentation-asset--landscape {
  inset: auto;
  width: min(100cqw, calc(100cqh * 16 / 9));
  height: min(100cqh, calc(100cqw * 9 / 16));
  aspect-ratio: 16 / 9;
}

.presentation-asset iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  box-shadow: 0 9px 28px rgb(0 0 0 / 27%);
}

.presentation-asset--portrait {
  display: none;
}

.work-example-shell {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: .45cqw;
  overflow: hidden;
  background: #061f28;
  container-type: size;
}

.work-example-asset {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: .08cqw solid rgb(255 255 255 / 18%);
  background: #fff;
  box-shadow: 0 .8cqh 2.4cqh rgb(0 0 0 / 24%);
}

.work-example-asset--portrait {
  display: none;
}

.work-example-asset iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.work-example-asset .asset-fallback {
  height: 100%;
  min-height: 0;
  padding: 4cqh 4cqw;
  color: #d8e3e7;
  background: #0a3540;
  font-size: 1.15cqw;
}

@media (max-aspect-ratio: 1 / 1) {
  .work-example-asset--landscape {
    display: none;
  }

  .work-example-asset--portrait {
    display: grid;
  }

  .work-example-asset .asset-fallback {
    font-size: 2.8cqw;
  }
}

.asset-fallback {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: #d8e3e7;
  text-align: center;
}

.viewer-controls {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f8fafb;
  box-shadow: 0 6px 20px rgb(0 0 0 / 22%);
}

.viewer-controls__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-controls__counter {
  min-width: 76px;
  color: var(--portal-copy);
  font-size: 15px;
  text-align: center;
}

.viewer-controls__progress {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #dce4e8;
}

.viewer-controls__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--portal-teal);
  transition: width 220ms ease;
}

.viewer-controls .portal-icon-button[aria-pressed="true"] {
  border-color: var(--portal-teal);
  background: var(--portal-teal-soft);
  color: var(--portal-teal);
}

/* Reports */

.reports-layout {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 315px minmax(0, 1fr);
  overflow: hidden;
}

.reports-layout.is-library-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.reports-layout.is-library-hidden .report-library {
  display: none;
}

.report-library {
  min-width: 0;
  overflow: auto;
  padding: 26px 18px;
  border-right: 1px solid var(--portal-line);
  background: rgb(255 255 255 / 88%);
}

.report-library__heading {
  margin: 0 0 20px 8px;
}

.report-library__toggle {
  display: none;
}

.report-library__list {
  display: grid;
}

.report-library__item {
  display: grid;
  min-height: 72px;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--portal-line);
  background: transparent;
  color: var(--portal-ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.report-library__item:hover,
.report-library__item[aria-selected="true"] {
  background: #fff5f3;
  color: var(--portal-coral-dark);
}

.report-library__item[aria-selected="true"] {
  border: 1px solid #ff8d85;
}

.report-library__item .report-icon {
  width: 42px;
  height: 42px;
  color: inherit;
}

.report-library__copy {
  min-width: 0;
}

.report-library__copy strong,
.report-library__copy span {
  display: block;
}

.report-library__copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-library__copy span {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
}

.report-viewer {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  overflow: hidden;
  padding: 18px 18px 12px;
  background: linear-gradient(145deg, #102d36, #061e27);
}

.report-canvas-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  text-align: center;
  scrollbar-color: #537681 transparent;
  scrollbar-width: thin;
}

.report-canvas-wrap {
  display: inline-grid;
  min-width: 100%;
  min-height: 100%;
  place-items: center;
}

.report-canvas-wrap canvas {
  display: block;
  max-width: none;
  background: #fff;
  box-shadow: 0 9px 25px rgb(0 0 0 / 26%);
  transition: opacity 160ms ease, transform 220ms ease;
}

.report-canvas-wrap.is-rendering canvas {
  opacity: .45;
}

.report-viewer__fallback {
  position: absolute;
  z-index: 2;
  inset: 20px;
  display: grid;
  place-items: center;
  color: #dce7ea;
  font-size: 14px;
  text-align: center;
}

.report-thumbnails {
  display: flex;
  min-height: 70px;
  gap: 9px;
  overflow-x: auto;
  padding: 7px 2px;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  scrollbar-color: #50c7c0 transparent;
  scrollbar-width: thin;
}

.report-thumbnail {
  display: grid;
  width: 62px;
  min-width: 62px;
  height: 62px;
  place-items: center;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.report-thumbnail:hover,
.report-thumbnail[aria-current="true"] {
  border-color: var(--portal-coral);
}

.report-thumbnail canvas {
  display: block;
  max-width: 100%;
  max-height: 50px;
  background: #fff;
}

.report-controls {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.report-controls__secondary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-controls .portal-icon-button,
.report-page-control,
.report-zoom-label {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 7%);
  color: #fff;
}

.report-controls .portal-icon-button:hover:not(:disabled) {
  border-color: #5dd4ce;
  background: rgb(93 212 206 / 12%);
  color: #75e3dd;
}

.report-page-control,
.report-zoom-label {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 5px;
  font-size: 13px;
}

.report-page-control {
  min-width: 100px;
  gap: 6px;
}

.report-page-control input {
  width: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  text-align: right;
  appearance: textfield;
}

.report-page-control input::-webkit-inner-spin-button,
.report-page-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.report-zoom-label {
  min-width: 68px;
}

/* Loading and error states */

.portal-loading-line {
  position: relative;
  overflow: hidden;
  background: #e9eef1;
}

.portal-loading-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%), transparent);
  content: "";
  animation: loading-shimmer 1.2s linear infinite;
  transform: translateX(-100%);
}

@keyframes portal-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ledger-row-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-shimmer {
  to { transform: translateX(100%); }
}

@media (max-aspect-ratio: 1 / 1) {
  :root {
    --portal-header-height: 64px;
    --portal-footer-height: 56px;
    --portal-login-footer-height: 72px;
  }

  .portal-main,
  .portal-login-main {
    width: min(100cqw, calc(100cqh * 9 / 16));
    height: min(100cqh, calc(100cqw * 16 / 9));
    aspect-ratio: 9 / 16;
  }

  .portal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 16px;
  }

  .portal-frame--login .portal-header > span[aria-hidden="true"] {
    display: none;
  }

  .portal-brand {
    gap: 12px;
  }

  .portal-brand__logo {
    width: 70px;
    height: 34px;
  }

  .portal-brand__divider {
    height: 30px;
  }

  .portal-brand__name {
    font-size: 13px;
  }

  .portal-primary-nav {
    display: none;
  }

  .portal-menu-trigger {
    min-width: 90px;
    height: 38px;
    gap: 8px;
    font-size: 13px;
  }

  .portal-main {
    background-size: 34px 34px;
  }

  .page-bezel {
    min-height: 40px;
    padding: 0 15px;
  }

  .page-bezel__label,
  .page-bezel__meta {
    font-size: 11px;
  }

  .portal-breadcrumbs {
    max-width: calc(100% - 65px);
    gap: 6px;
    font-size: 11px;
  }

  .portal-breadcrumbs li {
    gap: 6px;
  }

  .page-back {
    gap: 4px;
    font-size: 11px;
  }

  .page-back .icon {
    width: 15px;
    height: 15px;
  }

  .portal-content {
    padding: 14px 12px 18px;
  }

  .portal-page-heading {
    margin-bottom: 10px;
    padding-bottom: 9px;
    font-size: 28px;
  }

  .section-heading {
    font-size: 20px;
  }

  .portal-menu-drawer {
    width: 100%;
    padding: 34px 28px 26px;
    border-left: 0;
  }

  .portal-menu-account strong {
    font-size: 22px;
  }

  .portal-menu-link,
  .portal-menu-signout {
    min-height: 64px;
    font-size: 19px;
  }

  .portal-menu-link::before {
    left: -28px;
  }

  /* Login portrait */
  .portal-frame--login {
    grid-template-rows: var(--portal-header-height) minmax(0, 1fr) var(--portal-login-footer-height);
  }

  .portal-login-header-link span {
    display: none;
  }

  .portal-login-main {
    display: block;
    overflow: auto;
    padding: 0;
    background-size: 34px 34px;
  }

  .portal-login-panel {
    display: block;
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: rgb(255 255 255 / 68%);
  }

  .portal-login-intro,
  .portal-login-form-wrap {
    padding: 28px 22px;
  }

  .portal-login-intro {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .portal-login-intro h1 {
    margin-bottom: 16px;
    padding-bottom: 15px;
    font-size: 38px;
  }

  .portal-login-intro p {
    font-size: 16px;
  }

  .portal-login-progress {
    margin-top: 24px;
  }

  .portal-login-form-wrap {
    min-height: 340px;
    justify-content: flex-start;
  }

  .login-form {
    gap: 20px;
  }

  .login-form label {
    font-size: 14px;
  }

  .login-input-wrap input {
    height: 56px;
    font-size: 15px;
  }

  .login-submit {
    min-height: 52px;
    font-size: 15px;
  }

  .portal-footer {
    padding: 0 1rem;
    font-size: .6875rem;
  }

  .portal-footer__links {
    gap: 1rem;
  }

  .portal-login-footer {
    padding: 0 1.125rem;
    font-size: .875rem;
    text-align: center;
  }

  /* Proposals portrait */
  .proposal-ledger {
    border: 0;
    background: transparent;
  }

  .proposal-ledger__header {
    display: none;
  }

  .proposal-ledger__rows {
    display: grid;
    gap: 7px;
  }

  .proposal-ledger__row {
    display: grid;
    min-height: 128px;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 11px;
    padding: 10px 10px 8px;
    border: 1px solid var(--portal-line);
    border-radius: 5px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 2px 8px rgb(35 58 70 / 5%);
  }

  .proposal-ledger__cell {
    display: block;
    padding: 0;
    border: 0;
  }

  .proposal-ledger__cell--identity {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .proposal-identity {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .proposal-icon {
    width: 46px;
    height: 46px;
  }

  .proposal-icon .icon {
    width: 22px;
    height: 22px;
  }

  .proposal-identity h2 {
    font-size: 13px;
  }

  .proposal-identity p {
    margin-top: 3px;
    font-size: 11px;
  }

  .proposal-ledger__cell--pricing {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }

  .proposal-price {
    gap: 3px;
  }

  .proposal-price + .proposal-price {
    padding-left: 13px;
  }

  .proposal-price span {
    font-size: 9px;
  }

  .proposal-price s {
    font-size: 11px;
  }

  .proposal-price strong {
    font-size: 15px;
  }

  .proposal-ledger__cell--validity,
  .proposal-ledger__cell--status {
    display: flex;
    grid-row: 3;
    align-items: center;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e9eef1;
  }

  .proposal-ledger__cell--validity {
    grid-column: 1 / 2;
  }

  .proposal-ledger__cell--status {
    grid-column: 2 / 3;
    justify-content: flex-end;
  }

  .proposal-validity {
    display: flex;
    gap: 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  .proposal-validity__icon {
    width: 22px;
    height: 22px;
  }

  .proposal-status {
    font-size: 10px;
    white-space: nowrap;
  }

  .proposal-ledger__cell--action {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 7px;
  }

  .proposal-ledger__action {
    min-height: 32px;
    font-size: 11px;
  }

  .proposal-report-hub {
    margin-top: 10px;
    padding: 12px 10px;
  }

  .proposal-report-hub__header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .proposal-report-hub__title {
    gap: 8px;
  }

  .proposal-report-hub__title p {
    font-size: 9px;
  }

  .proposal-report-hub__all {
    font-size: 10px;
  }

  .proposal-report-link {
    min-height: 39px;
    grid-template-columns: 30px 1fr auto;
    gap: 8px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .report-icon {
    width: 28px;
    height: 28px;
  }

  .proposal-report-link__cta {
    font-size: 10px;
  }

  /* Proposal portrait */
  .proposal-detail-content {
    display: block;
    min-height: 0;
    padding-top: 22px;
  }

  .proposal-detail-heading {
    margin-bottom: 14px;
  }

  .proposal-detail-heading h1 {
    font-size: 33px;
    line-height: 1.02;
  }

  .proposal-detail-heading__meta {
    gap: 18px;
    margin-top: 15px;
    font-size: 13px;
  }

  .proposal-detail-grid {
    display: block;
  }

  .proposal-fact {
    min-height: 55px;
    grid-template-columns: 38px 94px minmax(0, 1fr);
    gap: 8px;
  }

  .proposal-fact dt {
    font-size: 10px;
  }

  .proposal-fact dd {
    font-size: 12px;
  }

  .proposal-fact dd strong {
    font-size: 15px;
  }

  .proposal-response-card {
    min-height: 0;
    margin-top: 14px;
    padding: 15px;
  }

  .proposal-response-card h2 {
    margin-bottom: 13px;
    padding-bottom: 10px;
    font-size: 21px;
  }

  .proposal-response-state {
    margin-bottom: 12px;
  }

  .proposal-response-state__icon {
    width: 32px;
    height: 32px;
  }

  .proposal-summary-response-controls {
    gap: 7px;
  }

  .proposal-summary-response-button {
    min-height: 39px;
    font-size: 12px;
  }

  .proposal-resources {
    display: block;
    margin: 12px -12px -18px;
  }

  .proposal-resource {
    min-height: 57px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .proposal-resource:last-child {
    border-bottom: 0;
  }

  .proposal-resource__copy strong {
    font-size: 11px;
  }

  .proposal-resource__copy span {
    font-size: 9px;
  }

  .proposal-resource__cta {
    min-width: 88px;
    min-height: 34px;
    font-size: 9px;
  }

  /* Presentation portrait */
  .viewer-page {
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .presentation-shell {
    grid-template-rows: minmax(0, 1fr) 150px;
    padding: 12px 9px 9px;
  }

  .presentation-workspace {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 98px;
    gap: 10px;
  }

  .presentation-workspace.is-index-hidden {
    grid-template-rows: minmax(0, 1fr);
  }

  .presentation-stage {
    grid-row: 1;
  }

  .presentation-asset--landscape {
    display: grid;
  }

  .presentation-asset--portrait {
    display: none;
  }

  .slide-thumbnails {
    display: flex;
    grid-row: 2;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 0;
    border-top: 1px solid rgb(255 255 255 / 18%);
    border-right: 0;
  }

  .slide-thumbnail {
    width: 96px;
    min-width: 96px;
    min-height: 76px;
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 0;
    padding: 5px;
  }

  .slide-thumbnail__number {
    font-size: 9px;
    text-align: center;
  }

  .slide-thumbnail__preview {
    min-height: 48px;
    font-size: 8px;
  }

  .viewer-controls {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 9px;
    margin-top: 8px;
    padding: 10px;
  }

  .viewer-controls__group {
    justify-content: center;
  }

  .viewer-controls__progress {
    display: none;
  }

  .viewer-controls__actions {
    justify-content: space-between;
  }

  .viewer-controls__actions .portal-icon-button {
    width: 31%;
  }

  /* Reports portrait */
  .reports-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .report-library {
    position: relative;
    z-index: 5;
    overflow: visible;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .report-library__heading {
    display: none;
  }

  .report-library__toggle {
    display: grid;
    width: 100%;
    min-height: 70px;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    text-align: left;
  }

  .report-library__toggle .report-icon {
    width: 40px;
    height: 40px;
    color: var(--portal-coral);
  }

  .report-library__toggle > span:not(.report-icon),
  .report-library__toggle > span:not(.report-icon) > strong,
  .report-library__toggle > span:not(.report-icon) > span {
    display: block;
  }

  .report-library__toggle strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .report-library__toggle span {
    margin-top: 3px;
    color: var(--portal-muted);
    font-size: 11px;
  }

  .report-library__list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 300px;
    overflow: auto;
    border-bottom: 1px solid var(--portal-line-strong);
    background: #fff;
    box-shadow: 0 12px 22px rgb(20 42 51 / 16%);
  }

  .report-library__item {
    min-height: 60px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .report-viewer {
    grid-template-rows: minmax(0, 1fr) 76px 104px;
    gap: 7px;
    padding: 12px 9px 9px;
  }

  .report-thumbnails {
    min-height: 70px;
  }

  .report-controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }

  .report-controls .portal-icon-button,
  .report-page-control,
  .report-zoom-label {
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  .report-controls [data-report-list-toggle],
  .report-controls [data-report-rotate],
  .report-controls [data-report-zoom-label] {
    display: none;
  }

  .report-page-control {
    grid-column: span 2;
  }

  .report-controls__secondary {
    display: contents;
  }
}

/* Proportional canvas system
   Header and footer belong to the window shell. Only the centered workspace
   carries a controlled landscape or portrait ratio. All meaningful geometry
   inside that workspace is derived from its own container dimensions. */

.portal-main,
.portal-login-main {
  --canvas-text-xs: .9cqw;
  --canvas-text-sm: 1.05cqw;
  --canvas-text: 1.2cqw;
  --canvas-text-lg: 1.4cqw;
  --canvas-heading: 3.2cqw;
}

.page-bezel {
  min-height: 6.5cqh;
  padding: 0 2.2cqw;
}

.page-bezel__label,
.page-bezel__meta {
  gap: .7cqw;
  font-size: var(--canvas-text-xs);
}

.page-bezel__label::before {
  width: .14cqw;
  height: 2.5cqh;
}

.portal-breadcrumbs {
  gap: .7cqw;
  font-size: var(--canvas-text-sm);
}

.portal-breadcrumbs li {
  gap: .7cqw;
}

.page-back {
  gap: .5cqw;
  font-size: var(--canvas-text-sm);
}

.portal-content {
  max-width: none;
  padding: 2.4cqh 2.2cqw 2.8cqh;
}

.portal-page-heading {
  margin-bottom: 1.8cqh;
  padding-bottom: 1.5cqh;
  font-size: var(--canvas-heading);
}

.portal-page-heading::after {
  width: 2.4cqw;
  height: .22cqh;
}

.section-heading {
  font-size: 1.8cqw;
}

.portal-main .portal-icon-button {
  width: 3.1cqw;
  height: 3.1cqw;
  border-radius: .35cqw;
}

/* Login canvas */
.portal-login-main {
  padding: 7.5cqh 4.8cqw;
}

.portal-login-panel {
  width: 82cqw;
  min-height: 70cqh;
  border-radius: 0 3cqw 3cqw 0;
}

.portal-login-intro,
.portal-login-form-wrap {
  padding: 5.5cqh 4cqw;
}

.portal-login-intro h1 {
  margin-bottom: 3.2cqh;
  padding-bottom: 3cqh;
  font-size: 4.6cqw;
}

.portal-login-intro h1::after {
  width: 2.8cqw;
  height: .24cqh;
}

.portal-login-intro p {
  max-width: 31cqw;
  font-size: 1.4cqw;
}

.portal-login-progress {
  width: 29cqw;
  height: .24cqh;
  margin-top: 4.8cqh;
}

.portal-login-progress::after {
  width: .75cqw;
  height: .75cqw;
}

.login-form {
  gap: 3.8cqh;
}

.login-form label {
  gap: 1.4cqh;
  font-size: 1.15cqw;
}

.login-input-wrap input {
  height: 9cqh;
  padding: 0 3.7cqw 0 1.3cqw;
  border-radius: .3cqw;
  font-size: 1.22cqw;
}

.login-password-toggle {
  right: .75cqw;
  width: 3cqw;
  height: 3cqw;
}

.login-submit {
  min-height: 8.6cqh;
  margin-top: .6cqh;
  font-size: 1.28cqw;
}

.login-form__message {
  margin-top: -1.5cqh;
  font-size: var(--canvas-text-sm);
}

/* Proposals canvas */
.proposal-ledger__header,
.proposal-ledger__row {
  grid-template-columns: 1.9fr 1.9fr 1.3fr .8fr 1.1fr;
}

.proposal-ledger__header {
  min-height: 6.8cqh;
  font-size: var(--canvas-text-xs);
}

.proposal-ledger__header > span {
  padding: 0 1.3cqw;
}

.proposal-ledger__row {
  min-height: 12.5cqh;
  transform: translateY(1.2cqh);
}

.proposal-ledger__cell {
  padding: 1.25cqh 1.25cqw;
}

.proposal-identity {
  grid-template-columns: 3.8cqw minmax(0, 1fr);
  gap: 1.05cqw;
}

.proposal-icon {
  width: 3.7cqw;
  height: 3.7cqw;
  border-radius: .55cqw;
}

.proposal-icon .icon {
  width: 1.85cqw;
  height: 1.85cqw;
}

.proposal-identity h2 {
  font-size: 1.18cqw;
}

.proposal-identity p {
  margin-top: .7cqh;
  font-size: .9cqw;
}

.proposal-price {
  gap: .85cqh;
  padding-right: 1cqw;
}

.proposal-price + .proposal-price {
  padding-left: 1cqw;
}

.proposal-price span {
  font-size: .8cqw;
}

.proposal-price s,
.proposal-price strong {
  font-size: 1.05cqw;
}

.proposal-price strong {
  font-size: 1.18cqw;
}

.proposal-validity {
  grid-template-columns: 2.4cqw 1fr;
  gap: .72cqw;
  font-size: .9cqw;
}

.proposal-validity__icon {
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: .35cqw;
}

.proposal-status {
  gap: .55cqw;
  font-size: .9cqw;
}

.proposal-status::before {
  width: .42cqw;
  height: .42cqw;
}

.proposal-ledger__action {
  min-height: 6.2cqh;
  padding: 0 .8cqw;
  font-size: .9cqw;
}

.proposal-report-hub {
  margin-top: 2cqh;
  padding: 1.3cqh 1.4cqw;
  border-radius: .4cqw;
}

.proposal-report-hub__header {
  gap: 1.4cqw;
  margin-bottom: 1.2cqh;
}

.proposal-report-hub__title {
  gap: 1.5cqw;
}

.proposal-report-hub__title p,
.proposal-report-hub__all {
  font-size: .88cqw;
}

.proposal-report-list {
  border-radius: .3cqw;
}

.proposal-report-link {
  min-height: 5.3cqh;
  grid-template-columns: 2.5cqw 1fr auto;
  gap: .85cqw;
  padding: .65cqh 1cqw;
  font-size: .95cqw;
}

.report-icon {
  width: 2.3cqw;
  height: 2.3cqw;
  border-radius: .45cqw;
}

.proposal-report-link__cta {
  gap: .45cqw;
  font-size: .8cqw;
}

.proposal-report-empty {
  padding: 1.5cqw;
  font-size: var(--canvas-text);
}

/* Proposal detail canvas */
.proposal-detail-content {
  min-height: calc(100% - 6.5cqh);
  padding-top: 4.2cqh;
}

.proposal-detail-heading {
  margin-bottom: 3cqh;
}

.proposal-detail-heading h1 {
  max-width: 72cqw;
  font-size: 3.7cqw;
}

.proposal-detail-heading__meta {
  gap: 1.8cqw;
  margin-top: 2.7cqh;
  font-size: 1.05cqw;
}

.proposal-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 28cqw);
  gap: 2cqw;
}

.proposal-fact {
  min-height: 9cqh;
  grid-template-columns: 3.2cqw 10.5cqw minmax(0, 1fr);
  gap: 1cqw;
}

.fact-icon,
.resource-icon {
  width: 2.5cqw;
  height: 2.5cqw;
  border-radius: .5cqw;
}

.proposal-fact dt {
  font-size: .82cqw;
}

.proposal-fact dd {
  font-size: 1.02cqw;
}

.proposal-fact dd strong {
  font-size: 1.25cqw;
}

.proposal-response-card {
  padding: 2cqw;
}

.proposal-response-card h2 {
  margin-bottom: 3.4cqh;
  padding-bottom: 2cqh;
  font-size: 1.9cqw;
}

.proposal-response-card h2::after {
  width: 2.5cqw;
  height: .22cqh;
}

.proposal-response-state {
  gap: .85cqw;
  margin-bottom: 3.4cqh;
}

.proposal-response-state__icon {
  width: 3cqw;
  height: 3cqw;
}

.proposal-response-state__copy strong {
  margin-top: .55cqh;
  font-size: 1.02cqw;
}

.proposal-response-state__copy em {
  margin-top: .55cqh;
  font-size: .92cqw;
}

.proposal-summary-response-controls {
  gap: 1.7cqh;
}

.proposal-summary-response-button {
  min-height: 7.8cqh;
  border-radius: .3cqw;
  font-size: 1cqw;
}

.proposal-resources {
  margin: auto -2.2cqw -2.8cqh;
}

.proposal-resource {
  min-height: 13cqh;
  grid-template-columns: 2.7cqw minmax(0, 1fr) auto;
  gap: .85cqw;
  padding: 2.2cqh 2.2cqw;
}

.proposal-resource__copy strong {
  font-size: .95cqw;
}

.proposal-resource__copy span {
  margin-top: .65cqh;
  font-size: .86cqw;
}

.proposal-resource__cta {
  min-width: 7.6cqw;
  min-height: 5.7cqh;
  padding: 0 .85cqw;
  font-size: .78cqw;
}

.proposal-response-dialog {
  padding: 2cqw;
}

.proposal-response-dialog__panel {
  width: 38cqw;
  padding: 2cqw;
  border-radius: .45cqw;
}

.proposal-response-dialog__header {
  gap: 1.4cqw;
  margin-bottom: 3cqh;
}

.proposal-response-dialog__header span {
  font-size: .72cqw;
}

.proposal-response-dialog__header strong {
  margin-top: .75cqh;
  font-size: 1.7cqw;
}

.proposal-response-dialog__close {
  width: 2.8cqw;
  height: 2.8cqw;
}

.proposal-response-dialog__copy {
  margin-bottom: 2.2cqh;
  font-size: 1cqw;
}

.proposal-response-dialog__field {
  gap: 1.3cqh;
  font-size: .95cqw;
}

.proposal-response-dialog__field textarea {
  min-height: 20cqh;
  padding: 1cqw;
  border-radius: .3cqw;
}

.proposal-response-dialog__error {
  min-height: 2.5cqh;
  margin: 1cqh 0;
  font-size: .85cqw;
}

.proposal-response-dialog__actions {
  gap: .8cqw;
}

.proposal-response-dialog .portal-button {
  min-height: 6cqh;
  padding: 0 1.35cqw;
  border-radius: .3cqw;
  font-size: .95cqw;
}

/* Presentation canvas */
.viewer-page {
  grid-template-rows: 6.5cqh minmax(0, 1fr);
}

.presentation-shell {
  grid-template-rows: minmax(0, 1fr) 13.5cqh;
  padding: 2.6cqh 1.3cqw 1.8cqh;
}

.presentation-workspace {
  grid-template-columns: 14.5cqw minmax(0, 1fr);
  gap: 1.4cqw;
}

.slide-thumbnails {
  padding: 0 .85cqw 1.2cqh 0;
}

.slide-thumbnail {
  min-height: 13cqh;
  grid-template-columns: 2.2cqw minmax(0, 1fr);
  gap: .55cqw;
  margin-bottom: 1.4cqh;
  padding: .65cqw;
  border-width: .14cqw;
  border-radius: .35cqw;
}

.slide-thumbnail__number {
  font-size: .82cqw;
}

.slide-thumbnail__preview {
  padding: .5cqw;
  border-radius: .22cqw;
  font-size: .68cqw;
}

.asset-fallback {
  min-height: 20cqh;
  padding: 2cqw;
  font-size: var(--canvas-text);
}

.viewer-controls {
  grid-template-columns: auto auto minmax(8cqw, 1fr) auto;
  gap: 1cqw;
  margin-top: 1.7cqh;
  padding: 1.4cqh 1cqw;
  border-radius: .45cqw;
}

.viewer-controls__group {
  gap: .55cqw;
}

.viewer-controls__counter {
  min-width: 5.4cqw;
  font-size: 1cqw;
}

.viewer-controls__progress {
  height: 1cqh;
  border-radius: .3cqw;
}

/* Reports canvas */
.reports-layout {
  grid-template-columns: 23cqw minmax(0, 1fr);
}

.report-library {
  padding: 4cqh 1.3cqw;
}

.report-library__heading {
  margin: 0 0 3cqh .6cqw;
}

.report-library__item {
  min-height: 10.5cqh;
  grid-template-columns: 3.3cqw minmax(0, 1fr) 1.4cqw;
  gap: .85cqw;
  padding: 1.3cqh .75cqw;
}

.report-library__item .report-icon {
  width: 3cqw;
  height: 3cqw;
}

.report-library__copy strong {
  font-size: .95cqw;
}

.report-library__copy span {
  margin-top: .65cqh;
  font-size: .78cqw;
}

.report-viewer {
  grid-template-rows: minmax(0, 1fr) 11cqh 7.5cqh;
  gap: 1.2cqh;
  padding: 2.7cqh 1.3cqw 1.8cqh;
}

.report-viewer__fallback {
  inset: 3cqh 1.5cqw;
  font-size: .9cqw;
}

.report-thumbnails {
  min-height: 10.5cqh;
  gap: .65cqw;
  padding: 1cqh .15cqw;
}

.report-thumbnail {
  width: 4.6cqw;
  min-width: 4.6cqw;
  height: 9.3cqh;
  padding: .22cqw;
  border-width: .14cqw;
  border-radius: .3cqw;
}

.report-thumbnail canvas {
  max-height: 7.5cqh;
}

.report-controls {
  min-height: 7.2cqh;
  gap: .55cqw;
}

.report-controls__secondary {
  gap: .55cqw;
}

.report-page-control,
.report-zoom-label {
  height: 6.3cqh;
  border-radius: .35cqw;
  font-size: .82cqw;
}

.report-page-control {
  min-width: 7.2cqw;
  gap: .4cqw;
}

.report-page-control input {
  width: 2.4cqw;
}

.report-zoom-label {
  min-width: 4.8cqw;
}

@media (max-aspect-ratio: 1 / 1) {
  .portal-main,
  .portal-login-main {
    --canvas-text-xs: 2.05cqw;
    --canvas-text-sm: 2.45cqw;
    --canvas-text: 2.85cqw;
    --canvas-text-lg: 3.35cqw;
    --canvas-heading: 7.2cqw;
  }

  .page-bezel {
    min-height: 5.4cqh;
    padding: 0 3cqw;
  }

  .page-bezel__label,
  .page-bezel__meta,
  .portal-breadcrumbs,
  .page-back {
    font-size: var(--canvas-text-sm);
  }

  .page-bezel__label::before {
    width: .45cqw;
    height: 2.3cqh;
  }

  .portal-content {
    padding: 1.8cqh 3cqw 2.4cqh;
  }

  .portal-page-heading {
    margin-bottom: 1.4cqh;
    padding-bottom: 1.2cqh;
    font-size: var(--canvas-heading);
  }

  .portal-page-heading::after {
    width: 7cqw;
  }

  .section-heading {
    font-size: 5.2cqw;
  }

  .portal-main .portal-icon-button {
    width: 10cqw;
    height: 10cqw;
    border-radius: 1cqw;
  }

  /* Login portrait */
  .portal-login-main {
    padding: 0;
  }

  .portal-login-panel {
    width: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .portal-login-intro,
  .portal-login-form-wrap {
    padding: 3.7cqh 5.2cqw;
  }

  .portal-login-intro {
    min-height: 31cqh;
  }

  .portal-login-intro h1 {
    margin-bottom: 2.2cqh;
    padding-bottom: 2cqh;
    font-size: 9.1cqw;
  }

  .portal-login-intro h1::after {
    width: 9cqw;
  }

  .portal-login-intro p {
    max-width: none;
    font-size: 3.8cqw;
  }

  .portal-login-progress {
    width: 100%;
    margin-top: 3.3cqh;
  }

  .portal-login-progress::after {
    width: 2.2cqw;
    height: 2.2cqw;
  }

  .portal-login-form-wrap {
    min-height: 45cqh;
  }

  .login-form {
    gap: 2.7cqh;
  }

  .login-form label {
    gap: 1.2cqh;
    font-size: 3.35cqw;
  }

  .login-input-wrap input {
    height: 7.5cqh;
    padding: 0 12cqw 0 4.4cqw;
    border-radius: .9cqw;
    font-size: 3.6cqw;
  }

  .login-password-toggle {
    right: 2.2cqw;
    width: 9cqw;
    height: 9cqw;
  }

  .login-submit {
    min-height: 7cqh;
    font-size: 3.6cqw;
  }

  /* Proposals portrait */
  .proposal-ledger__rows {
    gap: .9cqh;
  }

  .proposal-ledger__row {
    min-height: 18.4cqh;
    grid-template-columns: 11cqw minmax(0, 1fr);
    gap: 0 2.5cqw;
    padding: 1.3cqh 2.4cqw 1.1cqh;
    border-radius: 1.1cqw;
    transform: translateY(1cqh);
  }

  .proposal-identity {
    grid-template-columns: 11cqw minmax(0, 1fr);
    gap: 2.5cqw;
  }

  .proposal-icon {
    width: 10.5cqw;
    height: 10.5cqw;
    border-radius: 1.6cqw;
  }

  .proposal-icon .icon {
    width: 5.2cqw;
    height: 5.2cqw;
  }

  .proposal-identity h2 {
    font-size: 3.05cqw;
  }

  .proposal-identity p {
    margin-top: .45cqh;
    font-size: 2.45cqw;
  }

  .proposal-ledger__cell--pricing {
    margin-top: 1cqh;
  }

  .proposal-price {
    gap: .4cqh;
  }

  .proposal-price + .proposal-price {
    padding-left: 3cqw;
  }

  .proposal-price span {
    font-size: 2cqw;
  }

  .proposal-price s {
    font-size: 2.55cqw;
  }

  .proposal-price strong {
    font-size: 3.35cqw;
  }

  .proposal-ledger__cell--validity,
  .proposal-ledger__cell--status {
    margin-top: .9cqh;
    padding-top: .8cqh;
  }

  .proposal-validity {
    gap: 1.1cqw;
    font-size: 2.3cqw;
  }

  .proposal-validity__icon {
    width: 5.4cqw;
    height: 5.4cqw;
  }

  .proposal-status {
    gap: 1.2cqw;
    font-size: 2.3cqw;
  }

  .proposal-status::before {
    width: 1.3cqw;
    height: 1.3cqw;
  }

  .proposal-ledger__cell--action {
    margin-top: .9cqh;
  }

  .proposal-ledger__action {
    min-height: 4.3cqh;
    font-size: 2.5cqw;
  }

  .proposal-report-hub {
    margin-top: 1.2cqh;
    padding: 1.5cqh 2.4cqw;
    border-radius: 1cqw;
  }

  .proposal-report-hub__header {
    margin-bottom: 1cqh;
  }

  .proposal-report-hub__title {
    gap: 2cqw;
  }

  .proposal-report-hub__title p,
  .proposal-report-hub__all {
    font-size: 2.2cqw;
  }

  .proposal-report-link {
    min-height: 5.2cqh;
    grid-template-columns: 7cqw 1fr auto;
    gap: 2cqw;
    padding: .55cqh 2cqw;
    font-size: 2.75cqw;
  }

  .report-icon {
    width: 6.5cqw;
    height: 6.5cqw;
    border-radius: 1cqw;
  }

  .proposal-report-link__cta {
    font-size: 2.25cqw;
  }

  /* Proposal detail portrait */
  .proposal-detail-content {
    min-height: 0;
    padding-top: 2.8cqh;
  }

  .proposal-detail-heading {
    margin-bottom: 1.8cqh;
  }

  .proposal-detail-heading h1 {
    max-width: none;
    font-size: 7.8cqw;
  }

  .proposal-detail-heading__meta {
    gap: 4cqw;
    margin-top: 2cqh;
    font-size: 3cqw;
  }

  .proposal-fact {
    min-height: 7.4cqh;
    grid-template-columns: 9cqw 22cqw minmax(0, 1fr);
    gap: 2cqw;
  }

  .fact-icon,
  .resource-icon {
    width: 7.5cqw;
    height: 7.5cqw;
    border-radius: 1.4cqw;
  }

  .proposal-fact dt {
    font-size: 2.3cqw;
  }

  .proposal-fact dd {
    font-size: 2.8cqw;
  }

  .proposal-fact dd strong {
    font-size: 3.5cqw;
  }

  .proposal-response-card {
    margin-top: 1.8cqh;
    padding: 3.5cqw;
  }

  .proposal-response-card h2 {
    margin-bottom: 1.8cqh;
    padding-bottom: 1.4cqh;
    font-size: 5cqw;
  }

  .proposal-response-state {
    margin-bottom: 1.6cqh;
  }

  .proposal-response-state__icon {
    width: 8cqw;
    height: 8cqw;
  }

  .proposal-response-state__copy strong {
    font-size: 3.1cqw;
  }

  .proposal-response-state__copy em {
    font-size: 2.55cqw;
  }

  .proposal-summary-response-controls {
    gap: .9cqh;
  }

  .proposal-summary-response-button {
    min-height: 5.3cqh;
    font-size: 2.8cqw;
  }

  .proposal-resources {
    margin: 1.6cqh -3cqw -2.4cqh;
  }

  .proposal-resource {
    min-height: 7.6cqh;
    grid-template-columns: 8cqw minmax(0, 1fr) auto;
    gap: 2.5cqw;
    padding: 1.1cqh 3cqw;
  }

  .proposal-resource__copy strong {
    font-size: 2.7cqw;
  }

  .proposal-resource__copy span {
    font-size: 2.2cqw;
  }

  .proposal-resource__cta {
    min-width: 21cqw;
    min-height: 4.5cqh;
    font-size: 2.2cqw;
  }

  .proposal-response-dialog__panel {
    width: 88cqw;
    padding: 5cqw;
    border-radius: 1.2cqw;
  }

  .proposal-response-dialog__header span {
    font-size: 2.4cqw;
  }

  .proposal-response-dialog__header strong {
    font-size: 5.4cqw;
  }

  .proposal-response-dialog__close {
    width: 9cqw;
    height: 9cqw;
  }

  .proposal-response-dialog__copy {
    margin-bottom: 2cqh;
    font-size: 3cqw;
  }

  .proposal-response-dialog__field {
    font-size: 3cqw;
  }

  .proposal-response-dialog__field textarea {
    min-height: 18cqh;
    padding: 3cqw;
  }

  .proposal-response-dialog__error {
    min-height: 2.4cqh;
    font-size: 2.6cqw;
  }

  .proposal-response-dialog__actions {
    gap: 2cqw;
  }

  .proposal-response-dialog .portal-button {
    min-height: 5.3cqh;
    padding: 0 3.5cqw;
    font-size: 2.8cqw;
  }

  /* Presentation portrait */
  .viewer-page {
    grid-template-rows: 5.4cqh minmax(0, 1fr);
  }

  .presentation-shell {
    grid-template-rows: minmax(0, 1fr) 11cqh;
    padding: 1.6cqh 2.1cqw 1.2cqh;
  }

  .presentation-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 13.2cqh;
    gap: 1.3cqh;
  }

  .presentation-asset--landscape {
    display: grid;
  }

  .presentation-asset--portrait {
    display: none;
  }

  .slide-thumbnails {
    gap: 2cqw;
    padding: 1.1cqh 0 0;
  }

  .slide-thumbnail {
    width: 23cqw;
    min-width: 23cqw;
    min-height: 10.2cqh;
    gap: .4cqh;
    padding: 1.1cqw;
    border-width: .45cqw;
    border-radius: 1cqw;
  }

  .slide-thumbnail__number {
    font-size: 2.1cqw;
  }

  .slide-thumbnail__preview {
    min-height: 6.5cqh;
    padding: 1.3cqw;
    font-size: 1.8cqw;
  }

  .viewer-controls {
    grid-template-rows: minmax(0, 1fr);
    gap: 1.2cqh;
    margin-top: 1cqh;
    padding: 1.3cqh 2.3cqw;
    border-radius: 1.2cqw;
  }

  .viewer-controls__group {
    gap: 2cqw;
  }

  .viewer-controls__counter {
    min-width: 18cqw;
    font-size: 3.2cqw;
  }

  /* Reports portrait */
  .reports-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .report-library__toggle {
    min-height: 9.4cqh;
    grid-template-columns: 10cqw minmax(0, 1fr) 6cqw;
    gap: 2.4cqw;
    padding: 1.3cqh 3.5cqw;
  }

  .report-library__toggle .report-icon {
    width: 9.5cqw;
    height: 9.5cqw;
  }

  .report-library__toggle strong {
    font-size: 3.2cqw;
  }

  .report-library__toggle span {
    margin-top: .4cqh;
    font-size: 2.5cqw;
  }

  .report-library__list {
    max-height: 40cqh;
  }

  .report-library__item {
    min-height: 8cqh;
    padding-right: 3.5cqw;
    padding-left: 3.5cqw;
  }

  .report-viewer {
    grid-template-rows: minmax(0, 1fr) 10.2cqh 13.9cqh;
    gap: .9cqh;
    padding: 1.6cqh 2.1cqw 1.2cqh;
  }

  .report-thumbnails {
    min-height: 9.4cqh;
    gap: 2cqw;
  }

  .report-thumbnail {
    width: 14cqw;
    min-width: 14cqw;
    height: 8.4cqh;
  }

  .report-thumbnail canvas {
    max-height: 7cqh;
  }

  .report-controls {
    gap: 1.7cqw;
  }

  .report-controls .portal-icon-button,
  .report-page-control,
  .report-zoom-label {
    height: 5.7cqh;
  }

  .report-page-control {
    min-width: 0;
    font-size: 2.8cqw;
  }
}

@media (min-aspect-ratio: 1 / 1) and (max-height: 32rem) {
  :root {
    --portal-header-height: 3.375rem;
    --portal-footer-height: 2.5rem;
  }

  .portal-header {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .portal-brand {
    gap: .75rem;
  }

  .portal-brand__logo {
    width: 4.75rem;
    height: 2.25rem;
  }

  .portal-brand__divider {
    height: 1.75rem;
  }

  .portal-brand__name,
  .portal-primary-nav a,
  .portal-menu-trigger {
    font-size: .75rem;
  }

  .portal-menu-trigger {
    min-width: 5.5rem;
    height: 2.25rem;
  }

  .portal-footer {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    font-size: .6875rem;
  }
}

/* Account and help */

.portal-section-intro {
  margin-bottom: 1rem;
}

.portal-section-intro p {
  max-width: 42rem;
  margin: -.25rem 0 0;
  color: var(--portal-muted);
  font-size: .9375rem;
  line-height: 1.45;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .86fr);
  gap: 1rem;
  align-items: start;
}

.portal-form-grid--help {
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .9fr);
}

.portal-form-card {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 .25rem .9rem rgb(31 55 67 / 6%);
}

.portal-form-card__heading {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--portal-line);
  background: #fbfcfd;
}

.portal-form-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--portal-line-strong);
  border-radius: .5rem;
  background: #fff;
  color: var(--portal-teal);
}

.portal-form-card__heading h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.portal-form-card__heading p {
  margin: .25rem 0 0;
  color: var(--portal-muted);
  font-size: .8125rem;
  line-height: 1.35;
}

.portal-form {
  display: grid;
  gap: .85rem;
  padding: 1rem 1.1rem 1.1rem;
}

.portal-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.portal-field {
  display: grid;
  min-width: 0;
  gap: .35rem;
  color: var(--portal-copy);
  font-size: .8125rem;
  font-weight: 650;
}

.portal-input-wrap {
  position: relative;
  display: block;
}

.portal-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 .85rem;
  border: 1px solid #aebdca;
  border-radius: .25rem;
  background: rgb(255 255 255 / 76%);
  color: var(--portal-ink);
  font-size: .9375rem;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.portal-input[readonly] {
  background: #eef3f5;
  color: var(--portal-muted);
}

.portal-input:focus {
  border-color: var(--portal-teal);
  background: #fff;
  box-shadow: 0 0 0 .1875rem rgb(8 113 111 / 12%);
  outline: none;
}

.portal-input-wrap .portal-input {
  padding-right: 3.25rem;
}

.portal-textarea {
  min-height: 9rem;
  padding-block: .75rem;
  resize: vertical;
}

.portal-field-icon-button {
  position: absolute;
  top: 50%;
  right: .35rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: .25rem;
  background: transparent;
  color: #708195;
  transform: translateY(-50%);
}

.portal-field-icon-button:hover {
  background: var(--portal-teal-soft);
  color: var(--portal-teal);
}

.portal-form-message {
  margin: -.2rem 0 0;
  color: #a22922;
  font-size: .8125rem;
  line-height: 1.4;
}

.portal-form-message[data-tone="success"] {
  color: var(--portal-teal);
}

.portal-form-actions {
  display: flex;
  justify-content: flex-end;
}

.support-request-list {
  display: grid;
  max-height: 34rem;
  gap: .65rem;
  overflow: auto;
  padding: 1rem 1.1rem 1.1rem;
}

.support-request-empty {
  margin: 0;
  color: var(--portal-muted);
  font-size: .875rem;
}

.support-request-card {
  display: grid;
  gap: .4rem;
  padding: .85rem;
  border: 1px solid var(--portal-line);
  border-radius: .375rem;
  background: #fff;
}

.support-request-card header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.support-request-card strong {
  min-width: 0;
  font-size: .9375rem;
  line-height: 1.2;
}

.support-request-status {
  flex: 0 0 auto;
  padding: .2rem .45rem;
  border-radius: 99rem;
  background: #eaf3ff;
  color: #1c64b7;
  font-size: .6875rem;
  font-weight: 750;
  text-transform: uppercase;
}

.support-request-status[data-status="resolved"] {
  background: var(--portal-teal-soft);
  color: var(--portal-teal);
}

.support-request-meta,
.support-request-body {
  margin: 0;
  color: var(--portal-muted);
  font-size: .78125rem;
  line-height: 1.4;
}

.support-request-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Reliability and accessibility minimums */

[data-protected-portal][data-session-state="checking"] .portal-stage {
  visibility: hidden;
}

:focus-visible {
  outline: .1875rem solid #005fcc;
  outline-offset: .125rem;
}

.portal-button--primary,
.proposal-summary-response-button--accept {
  border-color: #c92f26;
  background: #c92f26;
  color: #fff;
}

.portal-button--primary:hover:not(:disabled),
.proposal-summary-response-button--accept:hover:not(:disabled) {
  border-color: #a9221b;
  background: #a9221b;
}

.portal-dashboard-state {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: start;
  padding: 8%;
}

.portal-dashboard-state__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--portal-line-strong);
  border-radius: .375rem;
  color: var(--portal-teal);
}

.portal-dashboard-state h1 {
  max-width: 40rem;
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.05;
}

.portal-dashboard-state p {
  max-width: 34rem;
  margin: 1rem 0 1.5rem;
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.portal-dashboard-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.viewer-unavailable {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  padding: 8%;
  text-align: center;
}

.viewer-unavailable .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: var(--portal-teal);
}

.viewer-unavailable h1 {
  margin: 0;
  font-size: 1.75rem;
}

.viewer-unavailable p {
  max-width: 30rem;
  margin: .75rem 0 0;
  color: var(--portal-muted);
  font-size: .9375rem;
  line-height: 1.5;
}

@media (max-aspect-ratio: 1 / 1) {
  .portal-main,
  .portal-login-main {
    --canvas-text-xs: .6875rem;
    --canvas-text-sm: .75rem;
    --canvas-text: .8125rem;
    --canvas-text-lg: .9375rem;
    --canvas-title: 2rem;
  }

  .portal-brand__logo,
  .portal-login-header-link,
  .portal-menu-trigger,
  .page-back,
  .portal-breadcrumbs a,
  .portal-footer__links a,
  .portal-login-footer a {
    min-height: 2.75rem;
  }

  .portal-brand__logo,
  .portal-login-header-link,
  .page-back,
  .portal-breadcrumbs a,
  .portal-footer__links a,
  .portal-login-footer a {
    display: inline-flex;
    align-items: center;
  }

  .portal-login-header-link {
    min-width: 2.75rem;
    justify-content: center;
  }

  .portal-menu-trigger {
    height: 2.75rem;
  }

  .page-bezel {
    min-height: 2.75rem;
  }

  .portal-breadcrumbs,
  .page-back {
    font-size: .75rem;
  }

  .portal-main .portal-icon-button,
  .login-password-toggle,
  .proposal-response-dialog__close {
    width: max(10cqw, 2.75rem);
    height: max(10cqw, 2.75rem);
  }

  .login-input-wrap input {
    padding-right: max(12cqw, 3.5rem);
  }

  .proposal-ledger__action,
  .proposal-report-link,
  .proposal-summary-response-button,
  .proposal-response-dialog .portal-button,
  .report-controls .portal-icon-button,
  .report-page-control,
  .report-zoom-label {
    min-height: 2.75rem;
  }

  .proposal-ledger__action {
    font-size: .75rem;
  }

  .proposal-report-link {
    font-size: .75rem;
  }

  .proposal-report-link__cta,
  .proposal-report-hub__title p,
  .proposal-report-hub__all {
    font-size: .6875rem;
  }

  .proposal-identity h2 {
    font-size: .9375rem;
  }

  .proposal-identity p,
  .proposal-validity,
  .proposal-status,
  .proposal-price strong,
  .proposal-price s {
    font-size: .75rem;
  }

  .proposal-price > span {
    font-size: .625rem;
  }

  .proposal-detail-heading h1 {
    font-size: 2rem;
  }

  .proposal-detail-heading__meta,
  .proposal-fact dd,
  .proposal-summary-response-button,
  .proposal-response-dialog__copy,
  .proposal-response-dialog__field,
  .proposal-response-dialog .portal-button {
    font-size: .8125rem;
  }

  .proposal-fact dt,
  .proposal-response-state__copy em,
  .proposal-resource__copy span,
  .proposal-resource__cta {
    font-size: .6875rem;
  }

  .proposal-fact dd strong,
  .proposal-response-state__copy strong,
  .proposal-resource__copy strong {
    font-size: .875rem;
  }

  .proposal-response-card h2 {
    font-size: 1.25rem;
  }

  .proposal-response-dialog__header span {
    font-size: .6875rem;
  }

  .proposal-response-dialog__header strong {
    font-size: 1.375rem;
  }

  .section-heading,
  .portal-page-heading h1,
  .portal-login-intro h1 {
    font-size: 2rem;
  }

  .portal-login-intro p,
  .login-field-label,
  .login-input-wrap input,
  .login-submit {
    font-size: .875rem;
  }

  .login-input-wrap input {
    font-size: 1rem;
  }

  .report-library__toggle strong,
  .report-library__item strong {
    font-size: .8125rem;
  }

  .report-library__toggle span,
  .report-library__item span,
  .report-page-control {
    font-size: .75rem;
  }

  .report-page-control input {
    min-width: 2rem;
    font-size: .75rem;
  }

  .portal-dashboard-state h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* phone-fluid-start */
@media (max-width: 48rem) and (max-aspect-ratio: 1 / 1) {
  :root {
    --portal-header-height: 4rem;
    --portal-footer-height: 3.5rem;
    --portal-login-footer-height: 3.5rem;
  }

  .portal-outer {
    width: 100%;
    height: 100dvh;
    padding:
      max(.3125rem, env(safe-area-inset-top, 0rem))
      max(.3125rem, env(safe-area-inset-right, 0rem))
      max(.3125rem, env(safe-area-inset-bottom, 0rem))
      max(.3125rem, env(safe-area-inset-left, 0rem));
  }

  .portal-frame,
  .portal-frame--login {
    width: 100%;
    height: 100%;
    border-width: .0625rem;
    border-radius: .25rem;
  }

  .portal-stage {
    place-items: stretch;
  }

  .portal-main,
  .portal-login-main {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    --canvas-text-xs: .6875rem;
    --canvas-text-sm: .75rem;
    --canvas-text: .8125rem;
    --canvas-text-lg: .9375rem;
    --canvas-title: 1.75rem;
  }

  .portal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 1rem;
    border-bottom-width: .125rem;
  }

  .portal-brand {
    gap: .75rem;
  }

  .portal-brand__logo {
    width: 4.375rem;
    height: 2.125rem;
  }

  .portal-brand__divider {
    width: .0625rem;
    height: 1.875rem;
  }

  .portal-brand__name {
    font-size: .8125rem;
    font-weight: 650;
  }

  .portal-menu-trigger {
    min-width: 5.5rem;
    height: 2.75rem;
    gap: .5rem;
    padding-inline: .875rem;
    border-width: .0625rem;
    border-radius: 1.5rem;
    font-size: .8125rem;
  }

  .portal-footer {
    padding-inline: 1rem;
    font-size: .6875rem;
  }

  .portal-footer__status,
  .portal-footer__links {
    gap: .625rem;
  }

  .portal-footer__status .icon {
    width: .875rem;
    height: .875rem;
  }

  .portal-footer__links a {
    min-height: 2.75rem;
  }

  .portal-menu-drawer {
    width: 100%;
    max-width: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.5rem 1.75rem 1.25rem;
  }

  .portal-menu-account {
    padding-bottom: 1.25rem;
  }

  .portal-menu-account strong {
    font-size: 1.25rem;
  }

  .portal-menu-account span {
    font-size: .875rem;
  }

  .portal-menu-link,
  .portal-menu-signout {
    min-height: 4rem;
    gap: 1rem;
    padding-inline: .875rem;
    font-size: 1.125rem;
  }

  .portal-menu-link:focus-visible,
  .portal-menu-signout:focus-visible {
    outline-color: #5dd4ce;
    outline-offset: -.1875rem;
  }

  .page-bezel {
    min-height: 3rem;
    gap: .75rem;
    padding-inline: .875rem;
    border-bottom-width: .0625rem;
  }

  .page-bezel__label,
  .page-bezel__meta,
  .portal-breadcrumbs,
  .page-back {
    font-size: .75rem;
  }

  .page-bezel__label::before {
    width: .125rem;
    height: 1.125rem;
  }

  .portal-breadcrumbs {
    flex: 1 1 auto;
    gap: .375rem;
    overflow: hidden;
  }

  .portal-breadcrumbs li {
    gap: .375rem;
  }

  .page-back {
    min-width: 3.75rem;
    min-height: 2.75rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: .375rem;
  }

  .portal-main--presentation .portal-breadcrumbs li:not(:last-child),
  .portal-main--proposal .portal-breadcrumbs li:nth-child(2) {
    display: none;
  }

  .portal-content {
    padding: .875rem .75rem 1.25rem;
  }

  .portal-page-heading {
    margin-bottom: .75rem;
    padding-bottom: .625rem;
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .portal-page-heading::after,
  .section-heading::after {
    width: 2rem;
    height: .125rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .portal-main .portal-icon-button,
  .login-password-toggle,
  .proposal-response-dialog__close {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    border-radius: .375rem;
  }

  .portal-main--proposals .portal-content {
    padding-top: .75rem;
  }

  .portal-main--proposals .proposal-ledger {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .proposal-ledger__rows {
    gap: .625rem;
  }

  .proposal-ledger__row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    gap: 0 .75rem;
    padding: .875rem .75rem .75rem;
    border-width: .0625rem;
    border-radius: .375rem;
    box-shadow: 0 .125rem .5rem rgb(35 58 70 / 6%);
  }

  .proposal-ledger__cell--identity,
  .proposal-ledger__cell--pricing,
  .proposal-ledger__cell--action {
    grid-column: 1 / -1;
  }

  .proposal-identity {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: .75rem;
  }

  .proposal-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-width: .0625rem;
    border-radius: .5rem;
  }

  .proposal-icon .icon {
    width: 1.375rem;
    height: 1.375rem;
  }

  .proposal-identity h2 {
    font-size: .9375rem;
    line-height: 1.2;
  }

  .proposal-identity p {
    margin-top: .25rem;
    font-size: .75rem;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
  }

  .proposal-ledger__cell--pricing {
    margin-top: .75rem;
  }

  .proposal-pricing {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: .5rem;
  }

  .proposal-price {
    gap: .25rem;
    padding-right: .375rem;
  }

  .proposal-price + .proposal-price {
    padding-left: .5rem;
    border-left-width: .0625rem;
  }

  .proposal-price span {
    font-size: .625rem;
  }

  .proposal-price s {
    font-size: .75rem;
  }

  .proposal-price strong {
    font-size: .9375rem;
  }

  .proposal-price s,
  .proposal-price strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .proposal-ledger__cell--validity,
  .proposal-ledger__cell--status {
    grid-row: 3;
    margin-top: .75rem;
    padding-top: .625rem;
    border-top-width: .0625rem;
  }

  .proposal-ledger__cell--validity {
    grid-column: 1;
  }

  .proposal-ledger__cell--status {
    grid-column: 2;
  }

  .proposal-validity {
    gap: .375rem;
    font-size: .6875rem;
  }

  .proposal-validity__icon {
    width: 1.5rem;
    height: 1.5rem;
    border-width: .0625rem;
    border-radius: .25rem;
  }

  .proposal-status {
    gap: .375rem;
    font-size: .6875rem;
  }

  .proposal-status::before {
    width: .375rem;
    height: .375rem;
  }

  .proposal-ledger__cell--action {
    grid-row: 4;
    margin-top: .625rem;
  }

  .proposal-ledger__action {
    min-height: 2.75rem;
    padding-inline: .75rem;
    font-size: .75rem;
  }

  .proposal-report-hub {
    margin-top: .75rem;
    padding: .875rem .75rem;
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .proposal-report-hub__header {
    align-items: center;
    gap: .75rem;
    margin-bottom: .625rem;
  }

  .proposal-report-hub__title {
    min-width: 0;
  }

  .proposal-report-hub__title p {
    display: none;
  }

  .proposal-report-hub__all {
    min-height: 2.75rem;
    flex: 0 0 auto;
    gap: .375rem;
    font-size: .75rem;
  }

  .proposal-report-link {
    min-height: 2.75rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: .625rem;
    padding: .375rem .5rem;
    font-size: .75rem;
  }

  .proposal-report-link .report-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .375rem;
  }

  .proposal-report-link__cta {
    font-size: .6875rem;
  }

  .portal-main--proposal .portal-content {
    padding-top: 1rem;
  }

  .proposal-detail-heading {
    margin-bottom: .875rem;
  }

  .proposal-detail-heading h1 {
    max-width: none;
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .proposal-detail-heading__meta {
    gap: 1rem;
    margin-top: .75rem;
    font-size: .75rem;
  }

  .proposal-fact {
    min-height: 3.5rem;
    grid-template-columns: 2rem 5.25rem minmax(0, 1fr);
    gap: .5rem;
    padding-block: .5rem;
  }

  .proposal-fact .fact-icon,
  .proposal-resource .resource-icon {
    width: 2rem;
    height: 2rem;
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .proposal-fact dt {
    font-size: .6875rem;
  }

  .proposal-fact dd {
    font-size: .8125rem;
    line-height: 1.35;
  }

  .proposal-fact dd strong {
    font-size: .9375rem;
  }

  .proposal-response-card {
    margin-top: .875rem;
    padding: .875rem;
  }

  .proposal-response-card h2 {
    font-size: 1.25rem;
  }

  .proposal-response-state {
    margin-block: .75rem;
  }

  .proposal-response-state__copy strong {
    font-size: .875rem;
  }

  .proposal-response-state__copy em {
    font-size: .6875rem;
  }

  .proposal-summary-response-controls {
    gap: .5rem;
  }

  .proposal-summary-response-button {
    min-height: 2.75rem;
    font-size: .8125rem;
  }

  .proposal-resources {
    margin: .875rem -.75rem -.875rem;
  }

  .proposal-resource {
    min-height: 3.75rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: .625rem;
    padding: .5rem .875rem;
  }

  .proposal-resource__copy strong {
    font-size: .875rem;
  }

  .proposal-resource__copy span,
  .proposal-resource__cta {
    font-size: .6875rem;
  }

  .proposal-resource__cta {
    min-width: 5.25rem;
    min-height: 2.75rem;
  }

  .proposal-response-dialog {
    padding:
      max(.75rem, env(safe-area-inset-top, 0rem))
      max(.75rem, env(safe-area-inset-right, 0rem))
      max(.75rem, env(safe-area-inset-bottom, 0rem))
      max(.75rem, env(safe-area-inset-left, 0rem));
  }

  .proposal-response-dialog__panel {
    width: 100%;
    max-height: 100%;
    padding: 1rem;
    border-radius: .5rem;
  }

  .proposal-response-dialog__header strong {
    font-size: 1.375rem;
  }

  .portal-main--presentation.viewer-page,
  .portal-main--reports.viewer-page,
  .portal-main--work-examples.viewer-page {
    grid-template-rows: 3rem minmax(0, 1fr);
  }

  .presentation-shell {
    grid-template-rows: minmax(0, 1fr) auto;
    padding: .75rem .625rem .625rem;
  }

  .presentation-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 7.5rem;
    gap: .625rem;
  }

  .presentation-workspace.is-index-hidden {
    grid-template-rows: minmax(0, 1fr);
  }

  .presentation-stage {
    grid-row: 1;
  }

  .presentation-asset--landscape {
    width: min(100cqw, calc(100cqh * 16 / 9));
    height: min(100cqh, calc(100cqw * 9 / 16));
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }

  .slide-thumbnails {
    gap: .5rem;
    padding-top: .5rem;
    border-top-width: .0625rem;
  }

  .slide-thumbnail {
    width: 6rem;
    min-width: 6rem;
    min-height: 4.75rem;
    gap: .25rem;
    padding: .3125rem;
    border-width: .125rem;
    border-radius: .375rem;
  }

  .viewer-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "transport counter"
      "actions actions";
    gap: .5rem .75rem;
    margin-top: .5rem;
    padding: .625rem;
    border-radius: .5rem;
  }

  .viewer-controls > .viewer-controls__group:not(.viewer-controls__actions) {
    grid-area: transport;
    justify-content: flex-start;
  }

  .viewer-controls__counter {
    grid-area: counter;
    min-width: 4.75rem;
    justify-content: flex-end;
    font-size: .75rem;
  }

  .viewer-controls__progress {
    display: none;
  }

  .viewer-controls__actions {
    display: grid;
    width: 100%;
    grid-area: actions;
    grid-template-columns: repeat(4, 2.75rem);
    justify-content: space-between;
    gap: .375rem;
  }

  .viewer-controls .portal-icon-button,
  .viewer-controls__actions .portal-icon-button {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
  }

  .reports-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .report-library__toggle {
    min-height: 4rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
    gap: .75rem;
    padding: .5rem 1rem;
  }

  .report-library__toggle .report-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .report-library__toggle strong {
    font-size: .875rem;
  }

  .report-library__toggle span {
    margin-top: .125rem;
    font-size: .75rem;
  }

  .report-library__list {
    right: .5rem;
    left: .5rem;
    max-height: 50dvh;
    padding: .375rem;
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .report-library__item {
    min-height: 3.5rem;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1rem;
    gap: .625rem;
    padding: .5rem .625rem;
  }

  .report-library__item[aria-pressed="true"] {
    border-color: #ff8d85;
    background: #fff5f3;
    color: var(--portal-coral-dark);
  }

  .report-viewer {
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: .5rem;
    padding: .75rem .5rem .5rem;
  }

  .report-thumbnails {
    min-height: 4.375rem;
    gap: .5rem;
    padding: .375rem .125rem;
  }

  .report-thumbnail {
    width: 3.875rem;
    min-width: 3.875rem;
    height: 3.875rem;
    padding: .1875rem;
    border-width: .125rem;
    border-radius: .25rem;
  }

  .report-thumbnail canvas {
    max-height: 3.125rem;
  }

  .report-controls {
    gap: .375rem;
    padding: .5rem;
  }

  .report-controls .portal-icon-button,
  .report-page-control,
  .report-zoom-label {
    min-height: 2.75rem;
  }

  .report-page-control input {
    width: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .portal-login-main {
    overflow: auto;
    place-items: stretch;
    padding: 0;
  }

  .portal-login-panel {
    width: 100%;
    min-height: 100%;
    grid-template-columns: 1fr;
    align-content: start;
    border: 0;
    border-radius: 0;
  }

  .portal-login-intro,
  .portal-login-form-wrap {
    padding: 1.5rem 1.25rem;
  }

  .portal-login-intro {
    border-right: 0;
    border-bottom-width: .0625rem;
  }

  .portal-login-intro h1 {
    margin-bottom: 1rem;
    padding-bottom: .875rem;
    font-size: 1.875rem;
  }

  .portal-login-intro h1::after {
    width: 2rem;
    height: .125rem;
  }

  .portal-login-intro p,
  .login-field-label,
  .login-input-wrap input,
  .login-submit {
    font-size: .875rem;
  }

  .login-input-wrap input {
    font-size: 1rem;
  }

  .portal-login-progress {
    height: .125rem;
    margin-top: 1.25rem;
  }

  .portal-login-progress::after {
    width: .625rem;
    height: .625rem;
  }

  .portal-login-form {
    gap: 1rem;
  }

  .login-input-wrap input,
  .login-submit {
    min-height: 3.25rem;
  }

  .portal-account-content,
  .portal-help-content {
    padding-top: .75rem;
  }

  .portal-section-intro {
    margin-bottom: .75rem;
  }

  .portal-section-intro p,
  .portal-form-card__heading p {
    font-size: .75rem;
  }

  .portal-form-grid,
  .portal-form-grid--help,
  .portal-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .portal-form-card {
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .portal-form-card__heading {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .75rem;
    padding: .875rem .75rem;
  }

  .portal-form-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .portal-form-card__heading h2 {
    font-size: 1.125rem;
  }

  .portal-form {
    gap: .75rem;
    padding: .875rem .75rem;
  }

  .portal-field {
    gap: .3125rem;
    font-size: .75rem;
  }

  .portal-input {
    min-height: 3rem;
    padding-inline: .75rem;
    border-width: .0625rem;
    border-radius: .3125rem;
    font-size: 1rem;
  }

  .portal-input-wrap .portal-input {
    padding-right: 3.25rem;
  }

  .portal-textarea {
    min-height: 8rem;
    padding-block: .75rem;
  }

  .portal-field-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    right: .25rem;
  }

  .portal-form-actions {
    justify-content: stretch;
  }

  .portal-form-actions .portal-button {
    width: 100%;
    min-height: 2.75rem;
  }

  .portal-form-message,
  .support-request-empty {
    font-size: .75rem;
  }

  .support-request-list {
    max-height: none;
    gap: .5rem;
    padding: .875rem .75rem;
  }

  .support-request-card {
    gap: .375rem;
    padding: .75rem;
    border-width: .0625rem;
    border-radius: .375rem;
  }

  .support-request-card strong {
    font-size: .875rem;
  }

  .support-request-status {
    font-size: .625rem;
  }

  .support-request-meta,
  .support-request-body {
    font-size: .75rem;
  }

  .portal-dashboard-state,
  .disabled-viewer-state {
    padding: 1.25rem;
  }

  .portal-dashboard-state h1,
  .disabled-viewer-state h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 48rem) and (max-aspect-ratio: 1 / 1) and (max-height: 34rem) {
  :root {
    --portal-header-height: 3.5rem;
    --portal-footer-height: 3rem;
    --portal-login-footer-height: 3rem;
  }

  .portal-header,
  .portal-footer {
    padding-inline: .75rem;
  }

  .portal-brand__logo {
    width: 4rem;
  }

  .portal-menu-trigger {
    height: 2.5rem;
    min-height: 2.5rem;
  }

  .page-bezel,
  .portal-main--presentation.viewer-page,
  .portal-main--reports.viewer-page,
  .portal-main--work-examples.viewer-page {
    min-height: 2.75rem;
    grid-template-rows: 2.75rem minmax(0, 1fr);
  }

  .report-library__toggle {
    min-height: 3.25rem;
  }

  .report-thumbnails {
    display: none;
  }

  .presentation-shell {
    padding-top: .375rem;
  }

  .viewer-controls {
    margin-top: .375rem;
    padding: .5rem;
  }
}
/* phone-fluid-end */

@media (max-width: 64rem) and (max-height: 48rem) and (min-aspect-ratio: 1 / 1) {
  .portal-outer {
    height: 100vh;
    height: 100dvh;
    padding:
      max(.3125rem, env(safe-area-inset-top, 0rem))
      max(.3125rem, env(safe-area-inset-right, 0rem))
      max(.3125rem, env(safe-area-inset-bottom, 0rem))
      max(.3125rem, env(safe-area-inset-left, 0rem));
  }

  .portal-frame,
  .portal-frame--login {
    width: 100%;
    height: 100%;
  }

  .portal-form-grid,
  .portal-form-grid--help,
  .portal-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .login-input-wrap input,
  .portal-input,
  .report-page-control input {
    font-size: 1rem;
  }
}
