:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182c46;
  background: #f4f7fb;
  font-synthesis: none;
  --blue: #2467d9;
  --muted: #607189;
  --border: #dfe6ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: #19324e;
  border-radius: 10px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 650;
  display: inline-block;
}
button:hover,
.button:hover {
  border-color: #7d9cc9;
  background: #f0f5fd;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #1652b9;
  color: white;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80aeff;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin: 18px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #c6d1df;
  padding: 12px;
  border-radius: 9px;
  background: white;
  color: #182c46;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
  line-height: 1.15;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 750;
  text-transform: uppercase;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  background: #dbeaff;
  color: #1a5cbd;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 1.5rem;
}
.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at 10% 0%, #e1ecff, transparent 60%), #f4f7fb;
}
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 22px 70px #193c7310;
}
.auth-card .brand {
  margin-bottom: 35px;
}
.auth-card form > button {
  width: 100%;
  margin: 8px 0;
}
.auth-card .note {
  font-size: 0.83rem;
}
.status {
  line-height: 1.5;
  color: #324c70;
  min-height: 1.5em;
  overflow-wrap: anywhere;
}
.status.error {
  color: #a02a31;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100svh;
}
.sidebar {
  background: #122c4e;
  color: #e8effa;
  padding: 30px 23px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.sidebar .brand span {
  background: #234775;
  color: #b7d4ff;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a,
.sidebar nav button {
  border: 0;
  background: transparent;
  color: #d6e3f6;
  text-align: left;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
}
.sidebar nav a:hover,
.sidebar nav button:hover,
.sidebar nav .active {
  background: #254773;
  color: white;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #b1c4df;
}
.workspace {
  padding: 38px clamp(20px, 4vw, 60px);
  max-width: 1400px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.topline p {
  margin: 8px 0;
}
.badge {
  display: inline-block;
  background: #edf3ff;
  border: 1px solid #d7e5fc;
  color: #245999;
  border-radius: 25px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 26px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.panel p:last-child {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-heading h2 {
  margin: 0;
}
.project-summary {
  background: linear-gradient(125deg, #eaf2ff, #f6f9ff);
  border-color: #ccddf5;
}
.next-step {
  background: white;
  border: 1px solid #d7e3f5;
  border-radius: 11px;
  padding: 18px;
  margin-top: 22px;
}
.next-step p {
  white-space: pre-wrap;
}
.progress {
  display: flex;
  gap: 5px;
  padding: 0;
  list-style: none;
  margin: 26px 0;
}
.progress li {
  flex: 1;
  min-width: 0;
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 4px solid #d4deec;
}
.progress li.done {
  border-color: #3a78d7;
  color: #224d86;
}
.request-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.request-item:last-child {
  padding-bottom: 0;
}
.request-item h3 {
  font-size: 1rem;
  margin: 0;
}
.request-item p {
  white-space: pre-wrap;
}
.reply {
  background: #f0f5fc;
  border-left: 3px solid #5b8ad1;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
}
.reply p {
  margin: 7px 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.empty {
  border: 1px dashed #c7d5e7;
  border-radius: 10px;
  padding: 25px;
  color: var(--muted);
  line-height: 1.6;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 25px;
}
.tabs button[aria-pressed="true"] {
  background: #e4eeff;
  border-color: #b7cef2;
  color: #164b9b;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.setup-link {
  background: #fff9e9;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #eddfb9;
  margin-top: 20px;
}
.setup-link input {
  font-size: 0.8rem;
}
.loading {
  margin: 50px auto;
  max-width: 600px;
  padding: 30px;
}
.private-hidden {
  visibility: hidden;
}
[hidden] {
  display: none !important;
}
.auth-footer {
  text-align: center;
  font-size: 0.82rem;
  margin-top: 24px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 15px;
  top: 10px;
  background: white;
  padding: 10px;
  z-index: 2;
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .workspace {
    padding: 28px 22px;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px 20px;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar nav a,
  .sidebar nav button {
    padding: 9px 11px;
    font-size: 0.8rem;
  }
  .sidebar-foot {
    display: none;
  }
  .workspace {
    padding: 25px 16px;
  }
  .panel {
    padding: 20px;
  }
  .pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-card {
    padding: 28px 23px;
  }
  .topline {
    align-items: flex-start;
  }
  .topline > .badge {
    display: none;
  }
  .progress li {
    font-size: 0.62rem;
  }
  .row {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .panel,
  .auth-card {
    animation: arrive 0.35s ease-out;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 950px) {
  .grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .grid > div {
    display: contents;
  }
  .grid .project-summary {
    order: 1;
  }
  .grid > div:nth-child(2) > .panel:first-child {
    order: 2;
  }
  .grid #requests {
    order: 3;
  }
  .grid > div:nth-child(2) > .panel:last-child {
    order: 4;
  }
}

.payment-qr{text-align:center}.payment-qr img{max-width:100%;height:auto}
