:root {
  font-family: "Avenir Next", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  color: #242424;
  background: #ededed;
  font-synthesis: none;
  --ink: #262626;
  --muted: #626262;
  --line: #d6d6d6;
  --lime: #b1ef42;
  --lilac: #e1d8f0;
  --lilac-strong: #bc99f2;
  --pale-green: #e1edca;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.6vw, 72px);
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  border-bottom: 1px solid #d2d2d2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-13deg);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
}
.brand-copy small {
  color: #787878;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .105em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.header-actions .quiet { color: var(--ink); white-space: nowrap; }
.header-actions .quiet span { margin-left: 7px; }

main { flex: 1; padding: 36px 0 74px; }
.eyebrow, .panel-kicker, .section-bar, .contour-index, .admin-tag {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
}
.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--lime);
  box-shadow: 12px 0 0 var(--lilac-strong);
}
.panel {
  border: 1px solid #dadada;
  border-radius: 26px;
  background: var(--white);
}
.panel-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6c6c6c;
}
.panel-kicker span:first-child { color: var(--ink); }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .78fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
  min-height: min(750px, calc(100vh - 200px));
}
.intro { min-width: 0; }
.intro h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 850;
  text-transform: uppercase;
}
.intro h1 span { color: #6e4da1; }
.intro-copy {
  max-width: 590px;
  margin: 28px 0 38px;
  color: #414141;
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.52;
}
.contour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
}
.contour-card {
  position: relative;
  min-height: 162px;
  overflow: hidden;
  padding: 20px 22px 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
}
.contour-card strong {
  position: relative;
  z-index: 1;
  max-width: 290px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.contour-index { position: relative; z-index: 1; opacity: .75; }
.contour-card-dark { color: var(--ink); background: var(--white); border-color: var(--line); }
.contour-orbit {
  position: absolute;
  width: 155px;
  height: 155px;
  right: -35px;
  bottom: -65px;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  box-shadow: 0 0 0 26px #fff, 0 0 0 27px #dedede;
}
.contour-card-lime { background: var(--lime); }
.contour-card-lime::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -55px;
  bottom: -75px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #d6baf5 0, #9e74d8 38%, #6e4da1 65%, transparent 67%);
  filter: blur(1px);
  opacity: .8;
}
.contour-arrow {
  position: absolute;
  z-index: 1;
  right: 22px;
  top: 17px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.auth-panel {
  width: 100%;
  padding: clamp(27px, 3.2vw, 48px);
  box-shadow: 0 25px 55px rgba(35, 35, 35, .055);
}
.auth-panel .panel-kicker { margin-bottom: 34px; }
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tab {
  position: relative;
  padding: 0 0 16px;
  border: 0;
  background: none;
  color: #888;
  font-size: 14px;
  font-weight: 800;
}
.tab.active { color: var(--ink); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--lime);
}
.stack { display: flex; flex-direction: column; gap: 17px; }
.form-title { margin-bottom: 7px; }
.form-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.2vw, 35px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.form-title p {
  margin: 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.form-title strong { color: var(--ink); overflow-wrap: anywhere; }
.stack label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #454545;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
input:not([type="checkbox"]), select {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  outline: none;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
input:not([type="checkbox"]):focus, select:focus {
  border-color: #8e65cf;
  box-shadow: 0 0 0 3px rgba(188, 153, 242, .22);
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 49px;
  padding: 12px 17px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  transition: background .15s, transform .15s;
}
.primary:hover { background: #a2dd34; transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.primary span { font-size: 20px; line-height: .8; }
.quiet {
  border: 0;
  padding: 7px 0;
  background: none;
  color: #5a3a8c;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.quiet:hover { text-decoration: underline; }
.form-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; }
.auth-footnote {
  margin: 25px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  color: #747474;
  font-size: 12px;
  line-height: 1.45;
}
.message {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #eee6fa;
  color: #4f3377;
  font-size: 13px;
  line-height: 1.45;
}

.page-heading { margin: 4px 0 28px; }
.page-heading .eyebrow { margin-bottom: 16px; }
.page-heading h1 {
  margin: 0;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.page-heading > p:last-child {
  margin: 11px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.profile-panel {
  min-height: 226px;
  padding: 22px;
  background: var(--white);
  border-top: 4px solid var(--lime);
}
.profile-panel .panel-kicker { margin-bottom: 25px; }
.profile-panel h2 {
  margin: 0 0 7px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.profile-name {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profile-panel #profile-email { overflow-wrap: anywhere; }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px 11px;
  background: #edf5dd;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
}
.verified-dot { width: 7px; height: 7px; border-radius: 50%; background: #407b20; }
.projects-section { min-width: 0; }
.section-bar {
  display: flex;
  justify-content: space-between;
  padding: 0 1px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #cfcfcf;
}
.section-bar span:last-child { font-size: 18px; font-weight: 500; line-height: .7; }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  overflow: hidden;
  padding: 20px 21px;
  border: 1px solid #d5d5d5;
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.project-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 21px;
  background: var(--lime);
  box-shadow: 16px 0 0 #caa9f5;
}
.project-kicker {
  position: absolute;
  top: 20px;
  right: 21px;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-card:hover { border-color: #9dcf3f; box-shadow: 0 8px 18px rgba(20,20,20,.08); }
.project-card h2 {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.22;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.project-card-footer { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 9px 12px; margin-top: auto; }
.project-open { color: #454545; font-size: 11px; font-weight: 800; white-space: nowrap; }
.project-card:hover .project-open { text-decoration: underline; }
.roles { display: flex; flex-wrap: wrap; gap: 7px; }
.role {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #edf5dd;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}
.empty {
  min-height: 218px;
  padding: 27px;
  background: var(--white);
  border-top: 4px solid var(--lime);
}
.empty-symbol { display: block; margin-bottom: 24px; font-size: 28px; line-height: 1; }
.empty h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.045em; }
.empty p { margin: 0; font-size: 15px; line-height: 1.5; }

.admin-section {
  margin-top: 42px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border-top: 4px solid var(--lime);
}
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.admin-heading .eyebrow { margin: 0 0 19px; }
.admin-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.admin-tag {
  padding: 9px 12px;
  border: 1px solid #ddd3ec;
  border-radius: 100px;
  background: #f5f0fb;
  white-space: nowrap;
  font-size: 9px;
}
.admin-intro { max-width: 760px; margin: 16px 0 26px; color: #4d4d4d; font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.admin-section .stack { gap: 19px; }
.admin-section select { background: #f8f8f8; }
fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 0;
  padding: 17px 18px 19px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #f8f8f7;
}
legend { padding: 0 7px; font-size: 12px; font-weight: 850; }
.check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 12px; border: 1px solid #e1e1e1; border-radius: 9px; background: #fff; font-size: 14px; font-weight: 700; }
.check:has(input:checked) { border-color: #9dcf3f; background: #f3f9e9; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: #5f3d8b; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-actions .primary { min-width: 220px; }

.back-link { display: inline-flex; margin: 8px 0 24px; color: var(--ink); font-size: 14px; font-weight: 850; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.project-detail {
  max-width: 980px;
  min-height: 300px;
  padding: clamp(27px, 4vw, 55px);
  background: var(--white);
  color: var(--ink);
  border-top: 4px solid var(--lime);
}
.project-detail .panel-kicker { color: #777; }
.project-detail .panel-kicker span:first-child { color: var(--ink); }
.project-detail h1 {
  margin: 42px 0 18px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.project-detail > p { margin: 0 0 14px; color: #555; font-size: 14px; }
.project-detail .role { background: var(--lime); }

.service-panel {
  margin-top: 20px;
  padding: clamp(23px, 2.8vw, 38px);
}
.service-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.service-heading .eyebrow { margin: 0 0 14px; }
.service-heading h2 {
  margin: 0;
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.service-panel > p, .flow-box > p {
  max-width: 790px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}
.service-status {
  padding: 8px 11px;
  border-radius: 100px;
  background: #f3edf9;
  color: #4d3e60;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.inline-form label, .flow-box label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 210px;
  color: #454545;
  font-size: 12px;
  font-weight: 800;
}
.inline-form label:first-child { flex: 1 1 300px; }
.inline-form select { min-width: 220px; }
.inline-form .primary, .inline-form .secondary { min-height: 49px; }
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.secondary:hover { border-color: #929292; background: #f8f8f8; }
.secondary:disabled { opacity: .5; cursor: default; }
.flow-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddddda;
  border-radius: 14px;
  background: #f8f8f7;
}
.flow-box h3, .deleted-projects h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.025em; }
.flow-box p { margin: 0 0 14px; }
.flow-box .inline-form { margin-top: 12px; }
.flow-box .secondary { margin-top: 12px; }
.flow-box code {
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.text-link, .resource-item a, #delete-review-content a {
  color: #5a3a8c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#existing-mapping-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
#existing-mapping-fields label { min-width: 0; }
#existing-mapping-fields .mapping-resource {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fff;
}
#existing-mapping-fields .mapping-resource label { width: 100%; }
#existing-mapping-fields .mapping-resource input { background: #fff; }
#existing-mapping-fields .mapping-open { align-self: flex-start; font-size: 12px; }
.project-state {
  display: inline-block;
  margin: 26px 0 14px !important;
  padding: 8px 11px;
  border-radius: 8px;
  background: #edf5dd;
  color: #34451d !important;
  font-weight: 750;
}
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 8px; }
.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid #e4e4e2;
  border-radius: 9px;
  background: #fafaf9;
  font-size: 12px;
  font-weight: 700;
}
.resource-missing { color: #777; font-weight: 500; }
.deleted-projects { margin-top: 26px; padding-top: 21px; border-top: 1px solid #e0e0e0; }
.deleted-project-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; font-size: 13px; }
.deleted-project-row > span { color: #696969; }
.deleted-project-row .check { min-height: 36px; font-size: 12px; }
.danger-panel { border-top: 4px solid #dc8b74; }
.danger-button { border-color: #bf8272; color: #8e392c; }
.danger-execute { background: #a93224; color: #fff; }
.danger-execute:hover { background: #92281d; }
.danger-panel .flow-box { background: #fcf8f6; border-color: #e6d4ce; }
.danger-panel .flow-box .form-actions { margin-top: 16px; }
.danger-panel .flow-box .secondary { margin-top: 0; }

a:focus-visible, button:focus-visible, .check:focus-within { outline: 3px solid #8e65cf; outline-offset: 3px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0 31px;
  border-top: 1px solid #d2d2d2;
  color: #747474;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.footer-divider { color: #ad7bec; margin: 0 4px; }

@media (max-width: 1120px) {
  .auth-layout { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .intro h1 { font-size: clamp(49px, 7vw, 80px); }
  .intro-copy { max-width: 700px; }
  .contour-grid { max-width: none; }
  .auth-panel { max-width: 760px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 78px; }
  .brand-mark { width: 37px; height: 37px; font-size: 22px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 7px; }
  .header-actions { gap: 9px; }
  .header-actions #account-label { display: none; }
  main { padding: 33px 0 60px; }
  .intro h1 { font-size: clamp(45px, 10vw, 68px); }
  .intro-copy { margin: 21px 0 28px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-panel { min-height: 0; }
  .profile-panel .panel-kicker { margin-bottom: 24px; }
  .admin-heading { flex-direction: column; gap: 15px; }
  .admin-tag { white-space: normal; }
  .form-grid { grid-template-columns: 1fr; }
  #existing-mapping-fields, .resource-grid { grid-template-columns: 1fr; }
  .service-heading { flex-direction: column; gap: 12px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 540px) {
  .shell { padding: 0 18px; }
  .intro h1 { font-size: clamp(32px, 9.5vw, 50px); }
  .contour-grid { grid-template-columns: 1fr; }
  .contour-card { min-height: 130px; }
  .auth-panel { padding: 25px 21px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading > p:last-child { font-size: 15px; }
  .admin-section { margin-top: 42px; }
  .project-list { grid-template-columns: 1fr; }
  fieldset { grid-template-columns: 1fr; }
  .form-actions .primary { width: 100%; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label, .inline-form label:first-child { width: 100%; flex: auto; }
  .inline-form .primary, .inline-form .secondary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary, .project-card { transition: none; }
}
