.runtime-ribbon {
  height: 38px;
  background: #0b1428;
  color: #b9c6df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 11px;
}
.runtime-ribbon button {
  color: #fff;
  background: none;
  border: 0;
  padding: 7px 12px;
  cursor: pointer;
}
.runtime-ribbon button.active {
  background: #2b3d60;
  border-radius: 6px;
}
.runtime-auth {
  max-width: 520px;
  margin: 70px auto;
  padding: 0 18px;
}
.runtime-auth .join-panel {
  padding: 32px;
}
.runtime-auth h1 {
  font-size: 26px;
  letter-spacing: -0.05em;
  margin: 15px 0;
}
.runtime-auth > img {
  width: 90px;
  display: block;
  margin: 0 auto 22px;
}
.runtime-auth .form-group input {
  font-size: 16px;
}
.runtime-error {
  color: #bd2635;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.runtime-notice {
  font-size: 11px;
  line-height: 1.7;
  color: #8290a5;
  margin: 13px 0;
}
.runtime-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111c37ac;
  padding: 20px;
}
.runtime-modal {
  width: min(660px, 100%);
  max-height: 94dvh;
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}
.runtime-modal > .modal-content {
  overflow: auto;
  min-height: 0;
}
.runtime-form-footer {
  position: sticky;
  bottom: 0;
  padding: 14px 0;
  background: white;
  display: flex;
  justify-content: end;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.runtime-form-footer .btn {
  min-height: 45px;
}
.runtime-modal h3 {
  margin: 0;
}
.runtime-menu-name {
  padding: 10px;
  color: #b9c6df;
  font-size: 11px;
}
.runtime-list-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.runtime-file-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.runtime-file {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.runtime-file img {
  width: 50px;
  height: 55px;
  object-fit: cover;
  border-radius: 5px;
}
.runtime-file span {
  font-size: 11px;
  flex: 1;
  overflow-wrap: anywhere;
}
.runtime-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.runtime-profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background: #edf0f7;
}
.runtime-profile-layout .card-image {
  max-width: 100%;
  max-height: 560px;
  display: block;
  margin: auto;
}
.runtime-crop {
  width: 260px;
  height: 260px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 50%;
  border: 4px solid #24315a;
  background: #f4f1e9;
  margin: 15px auto;
}
.runtime-crop img {
  position: absolute;
  max-width: none;
}
.runtime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.runtime-audit {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.runtime-ledger-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.runtime-ledger-filters label {
  font-size: 11px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.runtime-ledger-filters input,
.runtime-ledger-filters select {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  min-height: 43px;
}
.runtime-pagination {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.runtime-table td {
  white-space: normal;
}
.runtime-table strong {
  display: block;
}
.runtime-table small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.runtime-card-note {
  font-size: 11px;
  line-height: 1.7;
  color: #758297;
}
.runtime-pill {
  display: inline-block;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #eef1f8;
  color: #47597a;
}
.runtime-setup-key {
  font-family: monospace !important;
}
.runtime-import {
  min-height: 180px !important;
  font-family: monospace !important;
}
.runtime-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: #f4f5f8;
  border-radius: 50%;
  cursor: pointer;
}
.runtime-photo-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.runtime-photo-controls .btn {
  justify-content: center;
  min-height: 48px;
}
.runtime-modal input[type="file"] {
  max-width: 100%;
}
.runtime-success {
  color: #208960;
}
.runtime-help {
  padding: 15px;
  background: #f1f4fa;
  border-radius: 10px;
  line-height: 1.7;
  font-size: 11px;
  color: #64738a;
}
.runtime-name {
  font-weight: 700;
  color: #263553;
}
.runtime-small {
  font-size: 11px;
  color: #8893a4;
}
.runtime-roles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.runtime-roles label {
  font-size: 12px;
}
.runtime-inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.runtime-inline-form .form-group {
  margin: 0;
  flex: 1;
  min-width: 130px;
}
.runtime-crop-sliders label {
  font-size: 12px;
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  min-height: 40px;
}
.runtime-crop-sliders input {
  min-width: 0;
  accent-color: #dd2f3e;
}
@media (max-width: 640px) {
  .runtime-auth {
    margin: 32px auto;
  }
  .runtime-ribbon {
    padding: 0 10px;
    font-size: 10px;
  }
  .runtime-ribbon button {
    padding: 7px;
  }
  .runtime-profile-layout {
    grid-template-columns: 1fr;
  }
  .runtime-modal-mask {
    padding: 0;
  }
  .runtime-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .runtime-modal .modal-content {
    flex: 1;
    padding: 18px;
  }
  .runtime-modal .form-group input,
  .runtime-modal .form-group select,
  .runtime-modal .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .runtime-form-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    flex-direction: column;
  }
  .runtime-form-footer .btn {
    justify-content: center;
    min-height: 49px;
  }
  .runtime-modal .modal-head {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .runtime-ledger-filters {
    gap: 10px;
    padding: 14px;
  }
  .runtime-ledger-filters label {
    flex: 1;
    min-width: 130px;
  }
  .runtime-ledger-filters input {
    font-size: 16px;
    width: 100%;
    min-width: 0;
  }
  .runtime-table-scroll {
    overflow: auto;
  }
  .runtime-table {
    min-width: 650px;
  }
  .runtime-photo-controls .btn {
    font-size: 12px;
  }
  .runtime-profile-photo {
    display: block;
    margin: auto;
  }
  .runtime-profile-layout .card-image {
    max-height: none;
  }
}
@media (max-width: 640px) {
  .runtime-table-scroll.treasury-table-scroll {
    overflow: visible;
  }
  .runtime-table.treasury-table {
    min-width: 0;
  }
  .runtime-table.treasury-table td {
    white-space: normal;
  }
  .runtime-table.treasury-table .treasury-description strong {
    font-size: 14px;
  }
  .runtime-table.treasury-table td:last-child .btn {
    min-height: 44px;
  }
}
