:root {
  color-scheme: light;
  --canvas: #fff;
  --surface: #f6f6f3;
  --blue-surface: #edf1ed;
  --ink: #252f55;
  --muted: #4e5c75;
  --quiet: #59667a;
  --brand: #0d4a3a;
  --hover: #09382c;
  --line: #dce3ef;
  --control: #8090ac;
  --danger: #b42318;
  --success: #156c45;
  --warning: #8a4b08;
  font-family: Estedad, Manrope, Tahoma, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--hover);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  background: #edf0f5 !important;
  color: #59667a !important;
  border-color: var(--line) !important;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.9;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: var(--brand);
  flex: none;
}
input[type="file"] {
  font-size: 14px;
}
input[type="file"]::file-selector-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-surface);
  color: var(--brand);
  padding: 8px 14px;
  margin-inline-end: 12px;
}
input[dir="ltr"] {
  text-align: left;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  outline-color: var(--danger);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-block-start: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.6;
  font-weight: 800;
  margin-block-end: 12px;
}
h2 {
  font-size: 23px;
  line-height: 1.7;
  margin-block-end: 12px;
}
h3 {
  font-size: 19px;
  line-height: 1.7;
  margin-block-end: 8px;
}
p {
  margin-block-end: 16px;
}
small,
.small {
  font-size: 14px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.ltr,
bdi {
  direction: ltr;
  unicode-bidi: isolate;
}
.wrap-anywhere {
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 20;
  background: #fff;
  padding: 12px 20px;
  border: 2px solid var(--brand);
}
.skip:focus {
  inset-block-start: 8px;
}
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(16px, calc((100% - 1440px) / 2));
  border-block-end: 1px solid var(--line);
  background: #fff;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  border-radius: 8px;
}
.brand span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 10px;
}
.portal-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-header nav a {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.portal-layout {
  max-width: 1504px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
}
.side {
  width: 204px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.side .account-name {
  padding: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.side a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  margin-block: 4px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 10px;
  font-size: 15px;
}
.side a[aria-current="page"] {
  background: var(--blue-surface);
  color: var(--brand);
  font-weight: 700;
}
.side .admin-label {
  padding: 18px 12px 6px;
  border-block-start: 1px solid var(--line);
  margin-block-start: 16px;
  font-size: 13px;
  color: var(--muted);
}
.main {
  min-width: 0;
  flex: 1;
  outline: none;
}
.main.narrow {
  max-width: 560px;
  margin: 32px auto;
  flex-basis: 560px;
}
.page-intro {
  margin-block-end: 28px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-block-end: 8px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-block-end: 24px;
  min-width: 0;
}
.panel.flat {
  background: transparent;
  border: 0;
  padding: 0;
}
.auth-panel {
  padding: 32px;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 24px;
}
.auth-logo img {
  border-radius: 14px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 20px;
}
.actions.tight {
  margin-block-start: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
}
.button:hover {
  background: var(--hover);
  color: #fff;
}
.button.secondary {
  color: var(--brand);
  background: #fff;
}
.button.secondary:hover {
  background: var(--blue-surface);
}
.button.quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.button.quiet:hover {
  border-color: var(--control);
  background: var(--surface);
}
.button.danger {
  background: #fff0ed;
  border-color: #f2b3aa;
  color: var(--danger);
}
.button.full {
  width: 100%;
}
.button.small {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 14px;
}
.field {
  margin-block-end: 20px;
  min-width: 0;
}
.field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-block-end: 6px;
}
.field .help {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.field-error {
  font-size: 13px;
  color: var(--danger);
  margin-block-start: 5px;
}
.required {
  color: var(--danger);
  margin-inline-start: 3px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 10px;
  min-height: 44px;
  font-size: 14px;
}
.check input {
  margin-block-start: 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stack {
  display: grid;
  gap: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}
.badge.success {
  color: var(--success);
  background: #eaf7ef;
}
.badge.warning {
  color: var(--warning);
  background: #fff4e5;
}
.badge.error {
  color: var(--danger);
  background: #fff0ed;
}
.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  margin-block: 16px;
  overflow-wrap: anywhere;
}
.notice.info {
  background: var(--blue-surface);
  border-color: #c4d1fb;
}
.notice.success {
  background: #eaf7ef;
  color: var(--success);
  border-color: #b7dcc8;
}
.notice.error {
  background: #fff0ed;
  color: var(--danger);
  border-color: #f2b3aa;
}
.notice.warning {
  background: #fff4e5;
  color: var(--warning);
  border-color: #e6c196;
}
.notice p:last-child {
  margin: 0;
}
.notice ul {
  padding-inline-start: 22px;
  margin-block: 8px 0;
}
.notice a {
  color: inherit;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--control);
  border-radius: 16px;
  background: #fff;
}
.empty svg {
  width: 48px;
  height: 48px;
  color: var(--brand);
  margin-block-end: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.card h2 {
  font-size: 21px;
  margin-block: 12px 8px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-surface);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.public-address {
  display: block;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 13px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 8px;
  margin-block: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-block: 36px 20px;
}
.section-title h2 {
  margin: 0;
}
.portal-footer {
  max-width: 1440px;
  margin: 20px auto 0;
  padding: 24px 32px;
  border-block-start: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.portal-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.portal-footer span {
  display: flex;
  align-items: center;
}
.loading {
  padding: 48px;
  color: var(--muted);
  text-align: center;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 14px 12px;
  border-block-end: 1px solid var(--line);
  vertical-align: top;
  text-align: start;
}
.data-table th {
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
.data-table .actions {
  margin: 0;
}
.details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-inline: 16px;
  margin-block: 16px;
}
.details > summary {
  min-height: 48px;
  cursor: pointer;
  padding-block: 10px;
  font-size: 14px;
}
.details > *:last-child {
  margin-block-end: 16px;
}
.status-line {
  min-height: 36px;
  margin-block: 12px;
  font-size: 14px;
  color: var(--muted);
}
.editor-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-block-end: 24px;
}
.editor-top h1 {
  font-size: 26px;
}
.editor-top .actions {
  margin: 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
}
.editor-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}
.editor-sections button {
  min-height: 48px;
  text-align: start;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  font-size: 14px;
}
.editor-sections button[aria-current="true"] {
  background: var(--blue-surface);
  border-color: #c4d1fb;
  color: var(--brand);
  font-weight: 700;
}
.editor-content {
  min-width: 0;
}
.editor-preview {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  align-self: start;
}
.editor-preview iframe {
  border: 1px solid var(--line);
  width: 100%;
  height: 700px;
  border-radius: 12px;
  background: #fff;
}
.editor-preview p {
  font-size: 13px;
  color: var(--muted);
}
.preview-shell {
  max-width: 1200px;
  margin: auto;
}
.preview-frame {
  width: 100%;
  height: 800px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  display: block;
  margin: auto;
}
.preview-frame.mobile {
  max-width: 375px;
}
.editor-preview {
  display: none;
}
.editor-save {
  border-block-start: 1px solid var(--line);
  padding-block-start: 20px;
  margin-block-start: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.array-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-block: 16px;
  background: var(--surface);
}
.array-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-block-end: 1px solid var(--line);
  padding-block-end: 12px;
  margin-block-end: 16px;
}
.array-head h3 {
  font-size: 16px;
  margin: 0;
}
.array-head .actions {
  margin: 0;
}
.array-item .array-item {
  background: #fff;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.fieldset > legend {
  font-size: 18px;
  font-weight: 700;
  padding-block: 0 12px;
}
.asset-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  min-width: 0;
}
.asset-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.asset-card .file-symbol {
  height: 64px;
  width: 64px;
  display: grid;
  place-items: center;
  background: var(--blue-surface);
  border-radius: 12px;
  font-weight: 700;
  flex: none;
}
.asset-card p {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.asset-card h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.progress-line {
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  margin-block: 12px;
}
.progress-line progress {
  width: 100%;
  height: 100%;
  accent-color: var(--brand);
}
.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.password-row input {
  flex: 1;
  min-width: 0;
}
.password-row button {
  min-width: 80px;
  padding-inline: 10px;
}
.mfa-grid {
  display: grid;
  gap: 12px;
}
.token-box {
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
  border: 1px solid var(--control);
  background: var(--surface);
  padding: 12px;
  border-radius: 10px;
  font: 14px/1.8 monospace;
}
.grant-summary {
  padding: 16px;
  background: var(--blue-surface);
  border-radius: 12px;
  margin-block: 16px;
}
.grant-summary p {
  margin: 0;
  font-size: 14px;
}
.flow-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-end: 24px;
}
.flow-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.flow-links a[aria-current="page"] {
  background: var(--blue-surface);
  border-color: #c4d1fb;
}
.timestamp {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.counter {
  font-size: 13px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  max-width: min(600px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 44px #14213d1f;
}
dialog::backdrop {
  background: #14213d66;
}
dialog h2 {
  font-size: 23px;
}
dialog .actions {
  justify-content: flex-start;
}
.audit-item {
  padding: 16px 0;
  border-block-end: 1px solid var(--line);
}
.audit-item h3 {
  font-size: 15px;
}
.auth-help {
  border-block-start: 1px solid var(--line);
  padding-block-start: 24px;
  margin-block-start: 28px;
}
.auth-help summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--brand);
}
@media (min-width: 1440px) {
  .portal-layout:has(.editor-grid) {
    padding-inline: 24px;
    gap: 20px;
  }
  .portal-layout:has(.editor-grid) .side {
    width: 180px;
  }
  .editor-grid {
    grid-template-columns: 150px minmax(320px, 1fr) minmax(280px, 0.85fr);
  }
  .editor-preview {
    display: block;
  }
  .editor-preview iframe {
    height: 650px;
  }
}
@media (max-width: 899px) {
  .portal-layout {
    display: block;
    padding: 24px;
  }
  .side {
    width: 100%;
    margin-block-end: 24px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .side .account-name {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
  }
  .side a {
    font-size: 14px;
    margin: 0;
    padding: 8px 12px;
  }
  .side .admin-label {
    display: none;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-sections {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .editor-sections button {
    border-color: var(--line);
    background: #fff;
  }
  .main.narrow {
    margin: 16px auto;
  }
  .portal-header {
    padding: 12px 24px;
  }
  .brand span {
    display: none;
  }
  .portal-header nav {
    gap: 12px;
  }
  .editor-top {
    display: block;
  }
  .editor-top .actions {
    margin-block-start: 16px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 599px) {
  .portal-layout {
    padding: 20px 16px;
  }
  .portal-header {
    padding: 10px 16px;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 64px;
  }
  .brand {
    font-size: 21px;
  }
  .portal-header nav {
    gap: 8px;
  }
  .portal-header nav a {
    font-size: 12px;
  }
  .portal-header .button {
    min-height: 44px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .panel,
  .card {
    padding: 20px;
  }
  .auth-panel {
    padding: 24px 20px;
  }
  .main.narrow {
    margin-block: 8px;
  }
  .portal-footer {
    padding: 20px 16px;
    display: block;
  }
  .portal-footer span {
    font-size: 12px;
  }
  .editor-sections button {
    font-size: 13px;
    flex: 1 0 auto;
  }
  .editor-top h1 {
    font-size: 24px;
  }
  .actions .button {
    flex-grow: 1;
  }
  .array-item {
    padding: 14px;
  }
  .array-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .field {
    margin-block-end: 18px;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-frame {
    height: 700px;
  }
  .password-row button {
    min-width: 65px;
    font-size: 12px;
  }
  .asset-card {
    gap: 12px;
  }
  .asset-card img {
    width: 56px;
    height: 56px;
  }
  .empty {
    padding: 32px 20px;
  }
  dialog {
    padding: 22px;
  }
  .editor-save {
    position: static;
  }
  .table-wrap {
    margin-inline: -4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

[dir="ltr"], bdi { font-family: Manrope, Estedad, sans-serif; }

/* Same emblem in the header; original wordmark below it in the footer. */
.portal-header .brand img{width:100px;height:auto;border-radius:0}.portal-footer .roi-footer-lockup{display:flex;flex-direction:column;align-items:center;gap:24px;padding:22px}.roi-footer-lockup img{width:100px;height:auto;object-fit:contain}
