:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f3f5;
  color: #171717;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #666;
  outline-offset: 3px;
}
.shell {
  max-width: 1240px;
  min-height: 100vh;
  padding: 0 clamp(20px, 4vw, 56px);
  margin: auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 82px;
  border-bottom: 1px solid #d9d9dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.09em;
  text-decoration: none;
}
.wordmark-dot {
  color: #7b7b80;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.environment {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #9c9ca1;
  border-radius: 100px;
  padding: 7px 10px;
}
.environment:empty,
.identity:empty {
  display: none;
}
.identity {
  font-size: 13px;
  color: #595959;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #171717;
  font-weight: 600;
}
main {
  flex: 1;
  padding: clamp(32px, 5vw, 64px) 0 60px;
}
.terms-main {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}
.terms-main h1 {
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.terms-main p,
.terms-main li {
  color: #3c3c40;
}
.terms-main li {
  margin: 0 0 10px;
}
.eyebrow {
  color: #55555a;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero {
  max-width: 800px;
  margin-bottom: 44px;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 0 0 24px;
  font-weight: 780;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  color: #4d4d52;
  margin: 0;
}
.auth-card,
.surface {
  background: #fff;
  border: 1px solid #e0e0e3;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
}
.auth-card {
  max-width: 460px;
  margin: clamp(20px, 5vw, 70px) auto 0;
}
.auth-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}
.auth-card h2,
.surface h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.auth-card p,
.surface p {
  color: #55555a;
  line-height: 1.55;
}
.auth-card form {
  margin-top: 26px;
}
.field {
  display: block;
  margin: 0 0 9px;
  font-weight: 650;
  font-size: 14px;
}
.input,
.select {
  height: 48px;
  width: 100%;
  background: #fff;
  border: 1px solid #a4a4aa;
  border-radius: 9px;
  padding: 0 14px;
  color: #171717;
}
.input[readonly] {
  background: #f4f4f5;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.button {
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid #171717;
  background: #171717;
  color: white;
  padding: 11px 19px;
  font-weight: 700;
  line-height: 1.25;
}
.button:hover {
  background: #353535;
}
.button.secondary {
  background: #fff;
  color: #171717;
}
.button.secondary:hover {
  background: #f4f4f5;
}
.button.danger {
  background: #fff;
  color: #8c2727;
  border-color: #b26c6c;
}
.button.danger:hover {
  background: #fff3f3;
}
.button.small {
  font-size: 13px;
  min-height: 40px;
  padding: 8px 13px;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.fine {
  font-size: 13px !important;
  color: #69696f !important;
}
.back {
  margin-top: 22px;
}
.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.dashboard-head h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 0;
}
.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #c6c6cb;
  border-bottom: 1px solid #c6c6cb;
  margin: 30px 0 48px;
}
.summary-cell {
  padding: 22px 24px 22px 0;
  min-height: 105px;
}
.summary-cell + .summary-cell {
  border-left: 1px solid #d9d9dc;
  padding-left: 24px;
}
.summary-label {
  color: #626268;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 750;
  margin: 0 0 11px;
}
.summary-value {
  font-size: 27px;
  letter-spacing: -0.045em;
  font-weight: 730;
  margin: 0;
}
.membership-section {
  border: 1px solid #d9d9dc;
  background: #fff;
  border-radius: 13px;
  padding: 22px 24px;
  margin: -12px 0 42px;
}
.membership-section h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.membership-section p {
  margin: 0 0 12px;
}
.membership-section .button {
  margin: 4px 10px 0 0;
}
.membership-state {
  font-weight: 650;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 17px;
}
.section-head h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin: 0;
}
.section-head p {
  color: #6a6a70;
  font-size: 13px;
  margin: 6px 0 0;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
}
.list {
  border-top: 1px solid #d9d9dc;
}
.row {
  border-bottom: 1px solid #d9d9dc;
  padding: 19px 0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
}
.row-main {
  min-width: 0;
}
.row-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
}
.row-meta,
.row-detail {
  font-size: 13px;
  line-height: 1.5;
  color: #66666c;
  margin: 0;
}
.row-detail {
  margin-top: 7px;
}
.row-side {
  text-align: right;
  white-space: nowrap;
}
.balance {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  margin: 0 0 7px;
}
.pill {
  display: inline-block;
  background: #e9e9ec;
  color: #303036;
  border-radius: 100px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.pill.attention {
  background: #fff0dc;
  color: #714900;
}
.pill.disconnected {
  background: #f5e7e7;
  color: #802e2e;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.empty {
  border: 1px dashed #c3c3c8;
  border-radius: 13px;
  padding: 28px;
  color: #5c5c63;
  line-height: 1.5;
}
.note {
  border-left: 3px solid #65656b;
  padding: 11px 16px;
  background: #eaeaed;
  color: #4d4d54;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 27px;
}
.privacy-note {
  margin: 40px 0 0;
  padding-top: 17px;
  border-top: 1px solid #d9d9dc;
  color: #626268;
  font-size: 13px;
  line-height: 1.5;
}
.privacy-note + .button {
  margin-top: 14px;
}
.deletion-card {
  max-width: 580px;
}
.deletion-card .input {
  margin-bottom: 20px;
}
.deletion-card .button {
  margin: 10px 10px 0 0;
}
.receipt {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  margin: 16px 0 22px;
  border: 1px solid #c9c9cd;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.feedback {
  min-height: 0;
  margin: 0;
}
.feedback:not(:empty) {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.error:not(:empty) {
  color: #862c2c;
  background: #f9e8e8;
}
.status:not(:empty) {
  color: #1d5135;
  background: #e4f2e9;
}
.loading {
  color: #64646a;
}
footer {
  border-top: 1px solid #d9d9dc;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #717178;
  font-size: 12px;
  line-height: 1.5;
}
footer a {
  color: #434349;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.5;
}
.check-row input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0;
}
.workspace-control {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #55555a;
  font-size: 13px;
}
.workspace-control select {
  width: auto;
  min-width: 170px;
  max-width: 240px;
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .summary-strip {
    margin-bottom: 36px;
  }
  .dashboard-head {
    align-items: start;
    flex-direction: column;
  }
  .dashboard-actions {
    width: 100%;
  }
}
@media (max-width: 580px) {
  .shell {
    padding: 0 20px;
  }
  .topbar {
    min-height: 72px;
  }
  .identity {
    display: none;
  }
  .summary-strip {
    grid-template-columns: 1fr;
  }
  .summary-cell,
  .summary-cell + .summary-cell {
    min-height: 0;
    border-left: 0;
    padding: 15px 0;
  }
  .summary-cell + .summary-cell {
    border-top: 1px solid #d9d9dc;
  }
  .row {
    flex-wrap: wrap;
  }
  .row-side {
    text-align: left;
  }
  footer {
    flex-direction: column;
  }
  .environment {
    font-size: 10px;
  }
}
