:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #15283a;
  background: #f3f5f5;
  font-size: 15px;
  line-height: 1.5;
  --ink: #15283a;
  --muted: #667887;
  --paper: #fff;
  --line: #dce3e7;
  --teal: #087e76;
  --mint: #d6f5e9;
  --nav: #102b3b;
  --orange: #b66d1b;
  --red: #b34040;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.95rem;
  min-height: 42px;
  border: 1px solid #cbd6dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: #edf4f4;
  border-color: #9eb7bf;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #08675f;
}
button.danger {
  color: var(--red);
  border-color: #dfb8b8;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.small {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  min-height: 34px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #139c9b;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 650;
  line-height: 1.17;
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}
h2 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin: 0;
}
h3 {
  font-size: 1rem;
}
p {
  color: var(--muted);
  margin-bottom: 1rem;
}
small {
  font-size: 0.77rem;
  color: var(--muted);
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  margin: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfccd3;
  background: #fff;
  border-radius: 7px;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  min-height: 43px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #8999a3;
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 99;
  background: white;
  padding: 0.6rem 1rem;
}
.skip:focus {
  top: 1rem;
}
.brand {
  color: inherit;
  text-decoration: none !important;
}
.brand-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.06em;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 33px;
  height: 35px;
  background: #8edac4;
  color: #123c3d;
  clip-path: polygon(50% 0, 100% 100%, 66% 100%, 50% 64%, 34% 100%, 0 100%);
  font-size: 0;
}
.app-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--nav);
  color: #e7f0f3;
  padding: 1.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail .brand {
  padding: 0 0.7rem;
}
.rail-caption {
  padding: 0.3rem 0.75rem;
  margin: 1.5rem 0 0.6rem;
  font-size: 0.66rem;
  color: #89a5b4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.navigation {
  display: grid;
  gap: 0.2rem;
  overflow-y: auto;
}
.navigation button {
  justify-content: flex-start;
  text-align: left;
  border: 0;
  background: transparent;
  color: #b9ccd6;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.65rem 0.8rem;
  min-height: 40px;
}
.navigation button:hover {
  background: #1d3d4c;
  color: white;
}
.navigation button[aria-current="page"] {
  background: #d5f2e6;
  color: #133d38;
  font-weight: 650;
}
.navigation .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.8;
}
.rail-bottom {
  margin-top: auto;
  padding: 1.3rem 0.7rem 0.3rem;
  font-size: 0.76rem;
  color: #92acb9;
}
.rail-bottom a {
  color: #c0e9df;
}
.rail-bottom p {
  color: #a6bdc9;
  margin: 0.5rem 0;
}
.content-area {
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.25rem;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.workspace-control {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.workspace-control select {
  width: 230px;
  font-size: 0.86rem;
}
.workspace-control small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar .actions {
  margin: 0;
}
.topbar .account-name {
  font-size: 0.78rem;
  color: var(--muted);
}
main.workspace {
  padding: 2.15rem 2.25rem 4rem;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}
.page-heading p {
  max-width: 720px;
  margin: 0;
  font-size: 0.93rem;
}
.overline {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 0.8rem;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1.35rem;
  margin-bottom: 1.3rem;
  min-width: 0;
  box-shadow: 0 2px 3px #1a3d4d03;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.panel > p:last-child {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.3rem;
}
.grid > .panel {
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.metric > span {
  font-size: 0.77rem;
  color: var(--muted);
}
.metric strong {
  font-size: 1.95rem;
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.3;
}
.metric small {
  font-size: 0.69rem;
}
.environment-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid #b5d9cd;
  background: #e7f5ee;
  color: #305951;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 1.4rem;
}
.environment-strip strong {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
  padding-top: 0.1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  border: 1px solid #d7e0e4;
  background: #f3f6f7;
  color: #576e7d;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  font-size: 0.69rem;
  font-weight: 650;
}
.tag::before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tag.positive {
  background: #e7f6ee;
  color: #23724f;
  border-color: #bfdfce;
}
.tag.negative {
  background: #fff0ef;
  color: #aa4141;
  border-color: #e6c4c1;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 -1.35rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
  text-align: left;
}
th,
td {
  padding: 0.8rem 1.35rem;
  border-bottom: 1px solid #e5ebee;
  vertical-align: middle;
}
th {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: 0.07em;
  color: #748692;
  white-space: nowrap;
}
td small {
  display: block;
  max-width: 450px;
  margin-top: 0.15rem;
}
td strong {
  font-weight: 600;
}
tbody tr:last-child td {
  border: 0;
}
td .actions {
  margin: 0;
  flex-wrap: nowrap;
}
.empty {
  text-align: center;
  padding: 2rem 0.75rem;
  color: var(--muted);
}
.empty p {
  font-size: 0.87rem;
  margin: 0.4rem 0 0;
}
.empty-icon {
  font-size: 1.75rem;
  color: #90aaa9;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.79rem;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  font-size: 0.72rem;
}
.wide {
  grid-column: 1/-1;
}
.form-end {
  display: flex;
  align-items: center;
  margin-top: 0.15rem;
}
.form-note {
  display: block;
  line-height: 1.5;
}
.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}
.properties {
  margin: 0;
  font-size: 0.8rem;
}
.properties > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e6ecee;
}
.properties > div:last-child {
  border: 0;
}
.properties dt {
  color: var(--muted);
}
.properties dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1rem 0;
  font-size: 0.83rem;
}
.guide-number {
  display: grid;
  place-items: center;
  background: #eaf3f2;
  color: #347570;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  font-size: 0.73rem;
  font-weight: 700;
}
.guide-step p {
  margin: 0.15rem 0 0;
  font-size: 0.79rem;
}
.guide-step strong {
  font-weight: 600;
}
.footnote {
  font-size: 0.72rem;
  margin-top: 1.7rem;
  color: #7b8d97;
}
.error-panel {
  border: 1px solid #dcb9b7;
  border-radius: 9px;
  background: #fff2f0;
  color: #913e3b;
  padding: 1rem;
  margin: 1rem 0;
}
.error-panel p {
  color: inherit;
}
.notification {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  background: #163e38;
  color: #effff7;
  border: 1px solid #488477;
  border-radius: 9px;
  padding: 1rem 1.2rem;
  max-width: min(520px, calc(100vw - 2.5rem));
  box-shadow: 0 9px 35px #183b3d25;
  font-size: 0.85rem;
}
.notification.is-error {
  background: #713b38;
  border-color: #a86a63;
}
.result-dialog {
  border: 1px solid #b1c9c8;
  border-radius: 14px;
  padding: 1.8rem;
  width: min(620px, calc(100vw - 2rem));
  box-shadow: 0 20px 100px #102e3b55;
}
.result-dialog::backdrop {
  background: #102e3bcc;
}
.result-dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.result-dialog textarea {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.boot {
  min-height: 90vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
}
.boot .brand {
  margin: auto;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.login-intro {
  background: #102b3b;
  color: #f2f7f6;
  padding: 3.5rem clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-intro::after {
  content: "";
  width: 600px;
  height: 600px;
  border: 1px solid #3a6872;
  border-radius: 50%;
  position: absolute;
  bottom: -250px;
  right: -230px;
  box-shadow:
    0 0 0 45px #365a6128,
    0 0 0 90px #365a6118;
  pointer-events: none;
}
.login-intro .brand {
  margin-bottom: 5rem;
  align-self: flex-start;
}
.login-intro h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  position: relative;
  z-index: 1;
}
.login-intro h1 em {
  font-style: normal;
  color: #9cdfc6;
}
.login-intro p {
  color: #b7ccd4;
  max-width: 420px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.login-intro .overline {
  color: #9cdfc6;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 2rem;
}
.login-box {
  max-width: 420px;
  width: 100%;
}
.login-box h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.login-box .primary {
  width: 100%;
  padding: 0.85rem;
}
.login-box details {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}
.login-box summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}
.login-box .form {
  display: block;
}
.login-box .field,
.login-box .form-end {
  margin-top: 1rem;
}
.login-box .footnote {
  line-height: 1.6;
}
.small-link {
  font-size: 0.8rem;
}
.hosted-page {
  background:
    radial-gradient(ellipse at 50% 0, #dceee7 0, transparent 55%), #f2f6f5;
  min-height: 100vh;
  padding: 2rem 1rem;
}
.hosted-top {
  display: flex;
  justify-content: center;
  margin: 0.8rem 0 1.8rem;
}
.flow-panel {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d2dfdc;
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 15px 65px #1c544310;
}
.flow-panel h1 {
  font-size: 2rem;
}
.flow-panel .mode-label {
  margin-bottom: 1.3rem;
}
.flow-panel .state-message {
  font-size: 0.92rem;
  min-height: 2.7rem;
  color: #516b70;
}
.flow-panel .choices {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.choice-button {
  justify-content: space-between;
  text-align: left;
  padding: 1.1rem 1rem;
  font-size: 0.95rem;
  background: #f7faf9;
  border-color: #ccddd7;
}
.choice-button span {
  font-size: 1.15rem;
}
.declaration {
  font-family: inherit;
  line-height: 1.7;
  font-size: 0.9rem;
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
  padding: 1.1rem;
  background: #f7f9f8;
  border: 1px solid #dce5e1;
  border-radius: 8px;
  margin: 1rem 0;
}
.qr-area {
  text-align: center;
  margin: 1.5rem 0;
}
.qr-image {
  width: 230px;
  height: 230px;
  max-width: 100%;
  background: white;
  object-fit: contain;
  border: 12px solid white;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 8px;
}
.qr-image.expanded {
  width: 360px;
  height: 360px;
}
.qr-area small {
  display: block;
  margin: 0.75rem 0;
}
.simulation-box {
  border: 1px dashed #a8c8bf;
  background: #f3faf7;
  border-radius: 9px;
  padding: 1rem;
  margin: 1.3rem 0;
}
.simulation-box h2 {
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
}
.simulation-box p {
  font-size: 0.76rem;
}
.simulation-box .actions {
  gap: 0.4rem;
}
.simulation-box button {
  font-size: 0.74rem;
  min-height: 36px;
  padding: 0.5rem 0.6rem;
}
.flow-footer {
  max-width: 520px;
  text-align: center;
  margin: 1.5rem auto;
  font-size: 0.75rem;
  color: #708a84;
}
.demo-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2.5rem;
}
.demo-hero {
  padding: 1rem 0 2rem;
  max-width: 700px;
}
.demo-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.demo-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  color: #6f858b;
  margin-bottom: 1rem;
}
.signed-state {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #277254;
  font-weight: 650;
  margin-bottom: 1rem;
}
.economic-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.economic-note {
  background: #fff7e8;
  border: 1px solid #e4cc98;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #806028;
}
.hr {
  height: 1px;
  background: var(--line);
  margin: 1.4rem 0;
}
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  .app-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .topbar {
    padding: 1rem 1.5rem;
  }
  main.workspace {
    padding: 2rem 1.5rem;
  }
  .topbar .account-name {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .rail {
    padding: 1.5rem 0.7rem;
  }
  .rail-caption {
    margin-top: 1.2rem;
  }
  .navigation button {
    font-size: 0.8rem;
  }
}
@media (max-width: 760px) {
  .app-layout {
    display: block;
  }
  .rail {
    position: static;
    height: auto;
    padding: 1rem;
    gap: 0.7rem;
  }
  .rail .brand {
    padding: 0;
  }
  .rail-caption,
  .rail-bottom {
    display: none;
  }
  .navigation {
    display: flex;
    overflow-x: auto;
    gap: 0.3rem;
  }
  .navigation button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.55rem 0.65rem;
    min-height: 40px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }
  .workspace-control select {
    width: 190px;
  }
  .workspace-control > small {
    display: none;
  }
  .topbar .actions {
    gap: 0.2rem;
  }
  .topbar .actions button {
    font-size: 0.74rem;
    padding: 0.45rem 0.6rem;
  }
  main.workspace {
    padding: 1.6rem 1rem 3rem;
  }
  .page-heading {
    display: block;
  }
  .page-heading > button {
    margin-top: 1rem;
  }
  .panel {
    padding: 1.1rem;
  }
  .table-scroll {
    margin: 0 -1.1rem;
  }
  th,
  td {
    padding: 0.8rem 1.1rem;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .environment-strip {
    display: block;
  }
  .environment-strip strong {
    display: block;
    margin-bottom: 0.3rem;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 2.3rem 1.5rem;
  }
  .login-intro .brand {
    margin-bottom: 2.5rem;
  }
  .login-intro h1 {
    font-size: 2.6rem;
  }
  .login-intro p {
    font-size: 0.9rem;
    margin: 0;
  }
  .login-side {
    padding: 2.4rem 1.5rem;
  }
  .flow-panel {
    padding: 1.5rem;
  }
  .hosted-top {
    margin-top: 0;
  }
  .economic-controls {
    grid-template-columns: 1fr 1fr;
  }
  .demo-header {
    padding-bottom: 2rem;
  }
  .result-dialog {
    padding: 1.4rem;
  }
  .panel-title {
    flex-wrap: wrap;
  }
  .properties > div {
    flex-direction: column;
    gap: 0.2rem;
  }
  .properties dd {
    text-align: left;
  }
}
@media (max-height: 850px) and (min-width: 761px) {
  .navigation button {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
  }
  .rail {
    padding-top: 1.3rem;
  }
  .rail-caption {
    margin-top: 1rem;
  }
  .rail-bottom {
    padding-top: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
