@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #252823;
  --paper: #faf9f4;
  --orange: #000000;
  --muted: #797b72;
  --border: #dedfd5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
header {
  min-height: 80px;
  height: auto;
  max-width: 1400px;
  padding: 12px 5%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span:not(.brand-icon) {
  font-weight: 400;
}
.brand-icon {
  display: inline-flex;
  background: var(--orange);
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  margin-right: 9px;
  font-size: 26px;
}
.brand i {
  font-size: 11px;
  font-style: normal;
  align-self: flex-start;
  margin: 3px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav {
  border: 0;
  background: none;
  color: #777a72;
  padding: 8px 0;
  font-size: 13px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav.active {
  color: var(--ink);
}
.nav span {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 10px;
}
.button {
  border: none;
  padding: 17px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-weight: 600;
  border-radius: 7px;
  font-size: 14px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button.dark {
  color: white;
  background: var(--ink);
}
.button.orange {
  background: var(--orange);
  color: white;
}
.button.small {
  font-size: 12px;
  padding: 13px 18px;
}
.hero {
  max-width: 1400px;
  margin: auto;
  padding: 66px 7% 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  overflow: hidden;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--orange);
}
h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(62px, 6.8vw, 100px);
  line-height: 1.06;
  letter-spacing: -6px;
  margin: 25px 0 24px;
  font-weight: 600;
  position: relative;
}
h1 em,
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 em {
  color: var(--orange);
}
.spark {
  color: var(--orange);
  font-size: 65px;
  display: inline-block;
  margin-left: 21px;
  vertical-align: 10px;
  line-height: 1;
  letter-spacing: 0;
}
.hero-copy > p {
  color: #777b71;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 27px;
  align-items: center;
  margin-top: 29px;
}
.text-link {
  background: none;
  border: 0;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
}
.hero-note {
  font-size: 11px;
  color: #8c8e84;
  margin-top: 25px;
}
.hero-note span {
  color: var(--orange);
  margin-right: 7px;
}
.hero-art {
  position: relative;
  min-height: 410px;
  background: radial-gradient(ellipse at center, #e9ecdc80, transparent 68%);
}
.flag-pole {
  position: absolute;
  height: 340px;
  width: 7px;
  background: #444a3c;
  left: 25%;
  top: 40px;
  border-radius: 4px;
  transform: rotate(-7deg);
  transform-origin: bottom;
}
.flag-pole:before {
  content: "";
  position: absolute;
  top: -9px;
  left: -2px;
  background: #444a3c;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.big-flag {
  position: absolute;
  left: 23%;
  top: 48px;
  width: 67%;
  height: 220px;
  background: #d8e78d;
  transform: rotate(-7deg) skewY(3deg);
  border-radius: 0 3% 17% 0;
  box-shadow:
    inset -50px 0 55px #84974a22,
    15px 20px 40px #464b2420;
  overflow: hidden;
}
.big-flag:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #ffffff44,
    transparent 23%,
    #3b53251c 48%,
    #ffffff44 70%,
    transparent
  );
}
.flag-seam {
  height: 100%;
  width: 6px;
  background: #f7f8e766;
  position: absolute;
  left: 10px;
}
.flag-symbol {
  font-size: 180px;
  line-height: 210px;
  text-align: center;
  color: #365c46;
  font-family: Georgia, serif;
}
.sun-doodle {
  position: absolute;
  right: 0;
  top: 25px;
  color: #f5b349;
  font-size: 65px;
  transform: rotate(15deg);
}
.orbit-label {
  position: absolute;
  top: 0;
  left: 22%;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  transform: rotate(-8deg);
}
.art-ground {
  position: absolute;
  bottom: 12px;
  left: 2%;
  width: 90%;
  height: 33px;
  border: 1px solid #dddfcf;
  border-radius: 50%;
  transform: rotate(-4deg);
  background: #eef0e1;
  z-index: -1;
}
.sticker {
  position: absolute;
  left: 5%;
  bottom: 40px;
  background: #ffe4a0;
  transform: rotate(-12deg);
  border-radius: 50%;
  width: 124px;
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 0 #292c2310;
}
.sticker span {
  font-size: 35px;
  line-height: 36px;
}
.art-caption {
  position: absolute;
  right: 0;
  bottom: 35px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.6;
  transform: rotate(6deg);
}
.doodle-arrow {
  position: absolute;
  font-size: 75px;
  right: 16%;
  bottom: 67px;
  transform: rotate(20deg);
  font-family: Georgia, serif;
}
.ticker {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 45px;
  background: #eff0e6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 25px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
}
.ticker b {
  font-size: 22px;
  color: #7d8974;
}
.playground {
  max-width: 1400px;
  margin: auto;
  padding: 65px 5% 55px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -1.3px;
  font-size: 32px;
  margin: 13px 0;
}
h2 em {
  font-size: 35px;
}
.muted {
  color: #85887c;
}
.section-top p {
  color: var(--muted);
  font-size: 13px;
}
.local-pill {
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 30px;
  white-space: nowrap;
}
.local-pill .live-dot {
  background: #6a8252;
  margin-right: 5px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  color: #76796e;
}
.filter.active {
  background: var(--ink);
  color: #fff;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  padding: 0 12px;
  gap: 8px;
}
.search span {
  font-size: 23px;
}
.search input {
  width: 170px;
  border: 0;
  background: none;
  font-size: 11px;
  padding: 12px 0;
  outline: none;
}
.results-label {
  color: #95978e;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin: 24px 0 17px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px #262b2210;
}
.card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.card-art {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  background: #ffffffb0;
  padding: 6px 9px;
  border-radius: 5px;
}
.sample-flag {
  width: 54%;
  height: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 70px;
  box-shadow: 8px 12px 20px #00000017;
  border-radius: 2px;
  transform: rotate(-7deg);
  overflow: hidden;
}
.card:nth-child(2n) .sample-flag {
  transform: rotate(6deg);
}
.card-body {
  padding: 20px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  letter-spacing: -0.6px;
  margin: 0;
}
.card-top > span {
  font-size: 22px;
  font-weight: 400;
}
.card-body p {
  color: #83867b;
  font-size: 12px;
  line-height: 1.6;
  min-height: 38px;
  margin: 8px 0 18px;
}
.card-foot {
  border-top: 1px solid #eeeee8;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #93968b;
}
.card-foot strong {
  color: #646d56;
  font-weight: 400;
}
.bottom-cta {
  max-width: 1260px;
  margin: 0 auto 55px;
  padding: 30px 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f0f1e7;
}
.cta-symbol {
  font-size: 57px;
  color: var(--orange);
}
.bottom-cta h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.bottom-cta p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.bottom-cta .button {
  margin-left: auto;
  white-space: nowrap;
}
footer {
  padding: 30px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8c8e84;
  font-size: 10px;
}
footer .brand {
  font-size: 18px;
  color: var(--ink);
}
.empty {
  text-align: center;
  padding: 45px;
}
.empty[hidden] {
  display: none;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.modal-head h2 {
  font-size: 29px;
}
.icon-button {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 33px;
  height: 33px;
  background: transparent;
  font-size: 24px;
  flex-shrink: 0;
}
.steps {
  display: flex;
  gap: 8px;
  margin: 10px 0 28px;
}
.step {
  flex: 1;
  border-top: 3px solid #dadcd1;
  padding-top: 8px;
  font-size: 10px;
  color: #92968a;
}
.step.active {
  border-color: var(--orange);
  color: var(--ink);
}
.creator-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  min-height: 330px;
}
label.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}
.field input:not([type="color"]),
.field textarea,
.field select {
  display: block;
  width: 100%;
  border: 1px solid #d9dcd0;
  border-radius: 5px;
  padding: 12px;
  background: white;
  color: var(--ink);
  margin-top: 7px;
  outline-color: var(--orange);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field small,
.help {
  display: block;
  color: #878c7d;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 6px;
}
.field input[type="file"] {
  font-size: 11px;
}
.required {
  color: var(--orange);
}
.preview {
  background: #eef0e5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  align-self: start;
  text-align: center;
}
.preview > .eyebrow {
  font-size: 8px;
  justify-content: center;
}
.mini-flag {
  height: 140px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 85px;
  overflow: hidden;
  box-shadow: 5px 8px 17px #0001;
  transform: rotate(-3deg);
}
.mini-flag img,
.sample-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview h3 {
  font-size: 23px;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
.preview p {
  color: #7e8575;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.preview-note {
  font-size: 9px;
  color: #8e9683;
  margin-top: 30px;
}
.modal-foot {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 10px;
}
.modal-foot > span {
  font-size: 9px;
  color: #909587;
  margin-left: auto;
}
.error {
  font-size: 12px;
  color: #b63222;
  min-height: 16px;
}
.color-row {
  display: flex;
  gap: 22px;
}
.color-row label {
  flex: 1;
}
.color-row input {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 5px;
}
.symbols {
  display: flex;
  gap: 8px;
  margin: 10px 0 20px;
}
.symbol {
  background: white;
  border: 1px solid var(--border);
  font-size: 25px;
  padding: 9px 13px;
  border-radius: 5px;
}
.symbol.selected {
  border-color: var(--orange);
  background: #eeeeea;
}
.review-list {
  padding-left: 18px;
  color: #737b68;
  line-height: 2;
  font-size: 13px;
}
.detail-banner {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  border-radius: 7px;
}
.detail-banner .sample-flag {
  max-width: 270px;
}
.detail-text {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #6c7463;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.profile-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b8272;
  font-size: 12px;
}
.profile-line img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  font-size: 10px;
  background: #edf0df;
  padding: 5px 8px;
}
.detail-lyrics {
  white-space: pre-wrap;
  line-height: 1.8;
  padding: 18px;
  background: #eeefe5;
  border-radius: 6px;
}
audio {
  width: 100%;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(420px, calc(100vw - 32px));
  min-width: 260px;
  margin: 0;
  padding: 14px 20px;
  background: rgba(18, 22, 19, 0.95);
  color: #fafcf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--orange, #ff6347);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  cursor: pointer;
}
#toast.error {
  border-left-color: #ef4444;
  background: rgba(34, 16, 16, 0.96);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fff1f2;
}
#toast.success {
  border-left-color: #10b981;
  background: rgba(14, 28, 18, 0.96);
  border-color: rgba(16, 185, 129, 0.35);
  color: #f0fdf4;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .hero {
    padding-left: 100px;
    padding-right: 100px;
  }
}
@media (max-width: 1000px) {
  nav {
    gap: 15px;
  }
  .brand {
    font-size: 19px;
  }
  .hero {
    padding: 50px 5%;
  }
  h1 {
    font-size: 76px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-art {
    min-height: 400px;
  }
  .big-flag {
    height: 190px;
  }
  .flag-symbol {
    font-size: 155px;
    line-height: 185px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .cards {
    gap: 15px;
  }
  .bottom-cta {
    margin-left: 5%;
    margin-right: 5%;
  }
  .card-art {
    height: 160px;
  }
  .card h3 {
    font-size: 15px;
  }
  nav .nav:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    height: 77px;
    gap: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    font-size: 22px;
  }
  header nav {
    display: none;
  }
  .button.small {
    font-size: 10px;
    padding: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 25px;
    gap: 8px;
  }
  h1 {
    font-size: 76px;
    margin-top: 23px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-art {
    min-height: 345px;
    margin: 20px 5% 0;
  }
  .big-flag {
    height: 185px;
    width: 65%;
    top: 45px;
  }
  .flag-symbol {
    font-size: 145px;
  }
  .flag-pole {
    height: 280px;
  }
  .sticker {
    width: 100px;
    height: 100px;
    font-size: 14px;
    bottom: 10px;
  }
  .art-caption {
    font-size: 9px;
    bottom: 20px;
  }
  .art-ground {
    bottom: 0;
  }
  .sun-doodle {
    font-size: 50px;
  }
  .ticker {
    justify-content: flex-start;
    gap: 28px;
    font-size: 9px;
    padding: 12px 18px;
  }
  .playground {
    padding-top: 38px;
  }
  .section-top {
    align-items: flex-start;
  }
  .section-top h2 {
    font-size: 27px;
    line-height: 1.25;
  }
  .section-top h2 em {
    font-size: 30px;
  }
  .section-top p {
    line-height: 1.7;
  }
  .local-pill {
    display: none;
  }
  .filter {
    font-size: 11px;
    padding: 9px 10px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 210px;
  }
  .sample-flag {
    height: 125px;
    width: 53%;
  }
  .card h3 {
    font-size: 20px;
  }
  .card-body p {
    min-height: 0;
  }
  .bottom-cta {
    padding: 22px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .bottom-cta h2 {
    font-size: 22px;
  }
  .bottom-cta .cta-symbol {
    display: none;
  }
  .bottom-cta .button {
    margin-left: 0;
  }
  footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  footer p {
    width: 100%;
    order: 3;
  }
  .creator-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .preview {
    display: none;
  }
  .page-view {
    padding: 30px 5%;
  }
  .modal-head h2 {
    font-size: 24px;
  }
  .step {
    font-size: 9px;
  }
  .modal-foot > span {
    display: none;
  }
  .modal-foot .button {
    margin-left: auto;
  }
  .modal-foot {
    gap: 10px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
.page-view {
  max-width: 1100px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 42px 5% 70px;
}
.back-link {
  display: inline-block;
  color: #737b68;
  font-size: 12px;
  margin-bottom: 30px;
}
.back-link:hover {
  color: var(--orange);
}
.page-view .modal-head h2 {
  font-size: 38px;
}
.page-view .creator-body {
  gap: 60px;
  grid-template-columns: 1.25fr 1fr;
  min-height: 390px;
}
.page-view .steps {
  margin: 25px 0 38px;
}
.page-view .preview {
  position: sticky;
  top: 25px;
}
.page-view .modal-foot {
  margin-top: 30px;
}
#detail {
  max-width: 950px;
}
#detail .detail-banner {
  height: 260px;
}
#detail .sample-flag {
  height: 165px;
  font-size: 105px;
}
#detail .detail-text {
  max-width: 740px;
}
#detail h3 {
  margin-top: 30px;
}
h2:focus {
  outline: none;
}
@media (max-width: 700px) {
  .page-view .creator-body {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: 0;
  }
  .page-view .modal-head h2 {
    font-size: 30px;
  }
  .page-view .preview {
    display: block;
    position: static;
    order: -1;
    padding: 16px;
  }
  .page-view .preview .mini-flag {
    height: 80px;
    max-width: 170px;
    margin: 15px auto;
    font-size: 60px;
  }
  .page-view .preview h3 {
    font-size: 18px;
    margin: 10px;
  }
  .page-view .preview p {
    margin: 5px;
  }
  .page-view .preview-note {
    display: none;
  }
  header {
    flex-wrap: wrap;
    height: auto;
    padding-top: 15px;
    padding-bottom: 12px;
  }
  header nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  header nav .nav:last-child {
    display: block;
  }
  .back-link {
    margin-bottom: 25px;
  }
  #detail .detail-banner {
    height: 210px;
  }
}
.follow-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.follow-row .help {
  margin: 0;
}
.promises-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.promise-card {
  display: flex;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}
.promise-number {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  padding-top: 4px;
}
.promise-content {
  flex: 1;
  min-width: 0;
}
.promise-content h4 {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.promise-content p {
  font-size: 13px;
  color: #747c6c;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 15px;
}
.reaction-buttons {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.reaction {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 30px;
  font-size: 12px;
  padding: 9px 15px;
}
.reaction:hover {
  background: #eef0e5;
}
.reaction.selected {
  background: #252823;
  color: white;
  border-color: #252823;
}
.reaction[data-react="disagree"].selected {
  background: #8c4533;
  border-color: #8c4533;
}
.promise-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #737b68;
  margin-bottom: 15px;
}
.promise-editor-head span {
  font-size: 10px;
}
.promise-editor-card {
  padding: 18px;
  border: 1px solid var(--border);
  background: #fffdf9;
  border-radius: 7px;
  margin-bottom: 15px;
}
.promise-editor-card .field:last-child {
  margin-bottom: 0;
}
.add-promise {
  border: 1px dashed #a9af9b;
  background: #eef0e5;
  margin-bottom: 28px;
  width: 100%;
  font-size: 12px;
  padding: 12px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
#promiseEdit {
  padding: 22px;
  margin: 25px 0;
  background: #f0f1e7;
  border: 1px solid var(--border);
  border-radius: 8px;
}
#promiseEdit h4 {
  font-size: 19px;
  margin: 0 0 12px;
}
#promiseEdit .help {
  margin-bottom: 20px;
}
#promiseEdit .detail-actions {
  margin-top: 0;
}
@media (max-width: 700px) {
  .follow-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .promises-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .promises-heading .text-link {
    padding-top: 0;
  }
  .promise-card {
    gap: 13px;
  }
  .promise-content h4 {
    font-size: 17px;
  }
  #promiseEdit {
    padding: 16px;
  }
  .promise-editor-card {
    padding: 13px;
  }
}
/* Party profile: manifesto first */
#detail.party-detail {
  max-width: 1360px;
  padding-top: 30px;
}
.party-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.party-identity {
  padding: 27px;
  background: color-mix(in srgb, var(--party-color) 7%, #f7f8f0);
  border: 1px solid color-mix(in srgb, var(--party-color) 18%, #e5e7dd);
  border-radius: 9px;
  position: sticky;
  top: 24px;
}
.party-identity .eyebrow {
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1.5px;
}
.party-flag-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 175px;
  margin: 8px 0 17px;
}
.party-flag-stage .sample-flag {
  width: 95%;
  height: 135px;
  font-size: 90px;
  transform: rotate(-6deg);
  box-shadow: 7px 12px 18px #27332617;
}
.party-identity h2 {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.1px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.party-slogan {
  font-size: 14px;
  line-height: 1.8;
  color: #717b68;
  overflow-wrap: anywhere;
}
.party-follow {
  background: var(--ink);
  color: var(--paper);
}
.party-follow[aria-pressed="true"] {
  background: #e1e7d5;
  color: #35452d;
  border: 1px solid #cbd5bd;
}
.party-identity .party-follow {
  width: 100%;
  margin-top: 12px;
}
.followers-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #d9dfcd;
  background: none;
  color: #65745a;
  font-size: 12px;
  text-align: left;
}
.identity-founder {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 21px;
}
.identity-founder span {
  font-size: 10px;
  color: #8b9282;
}
.identity-founder strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.party-identity > .help {
  margin-top: 22px;
}
.party-main {
  min-width: 0;
}
.party-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 13px 0 19px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.party-section-nav button {
  font-size: 12px;
  border: 0;
  background: none;
  padding: 4px 0;
  color: #7a8271;
}
.party-section-nav button:hover {
  color: var(--orange);
}
.party-section-nav button:first-child {
  color: var(--ink);
}
.party-section {
  padding: 33px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 85px;
}
.party-section > .eyebrow {
  font-size: 9px;
  color: #8a9280;
  letter-spacing: 1.8px;
}
.party-section h3,
#detail .party-section h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 13px 0;
}
.party-section .section-intro {
  color: #7c8571;
  font-size: 13px;
  margin: 8px 0 25px;
}
.promise-total {
  color: #89917e;
  font-size: 10px;
  white-space: nowrap;
}
.party-main .promise-card {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 24px 0;
}
.party-main .promise-content h4 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.party-main .promise-content p {
  font-size: 12px;
  margin-bottom: 0;
}
.party-main .reaction-buttons {
  margin: 0;
  align-self: center;
  display: flex;
  gap: 6px;
}
.party-main .reaction {
  font-size: 11px;
  padding: 8px 10px;
  white-space: nowrap;
  min-height: 35px;
}
.party-main .promise-number {
  padding-top: 4px;
  font-family: Georgia, serif;
  font-size: 17px;
}
.party-main .promise-card:last-child {
  border-bottom: 0;
}
.party-main .detail-text {
  font-size: 14px;
  line-height: 1.9;
}
.founder-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
}
.founder-profile > img,
.founder-initial {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.founder-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecdd;
  color: #4f6645;
  font-size: 24px;
  font-family: Georgia, serif;
}
.founder-profile > div {
  min-width: 0;
}
.founder-profile strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.founder-profile > div > span {
  display: block;
  color: #929984;
  font-size: 11px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.party-main .detail-lyrics {
  font-family: Georgia, serif;
  font-style: italic;
  background: #eff1e8;
  line-height: 2;
  font-size: 16px;
  padding: 23px 25px;
}
.full-manifesto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.full-manifesto > div {
  min-width: 0;
}
.document-name {
  overflow-wrap: anywhere;
  max-width: 250px;
}
.full-manifesto details {
  width: 100%;
  font-size: 13px;
}
.full-manifesto summary {
  cursor: pointer;
  padding: 10px 0;
}
.followers-list {
  padding: 0;
  list-style: none;
  margin: 22px 0;
}
.followers-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e8de;
}
.follower-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e8ecdf;
  color: #546a48;
  font-size: 18px;
  font-family: Georgia, serif;
}
.followers-list strong {
  font-size: 13px;
  font-weight: 500;
}
.followers-list li > div > span {
  display: block;
  font-size: 11px;
  color: #929a85;
  margin-top: 4px;
}
.follower-status {
  font-size: 11px;
  color: #6d805c;
  margin-left: auto;
}
.followers-empty {
  background: #f0f2e8;
  padding: 22px 25px;
  margin-top: 20px;
  border-radius: 6px;
}
.followers-empty strong {
  font-size: 14px;
  font-weight: 500;
}
.followers-empty p {
  font-size: 12px;
  color: #859077;
  line-height: 1.8;
}
.followers-empty .text-link {
  color: #46613b;
}
.mobile-party-follow {
  display: none;
}
.party-disclaimer {
  margin-top: 25px;
}
@media (max-width: 1050px) {
  .party-layout {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 28px;
  }
  .party-identity {
    padding: 22px;
  }
  .party-identity h2 {
    font-size: 30px;
  }
  .party-main .reaction-buttons {
    flex-direction: column;
  }
  .party-section-nav {
    gap: 17px;
  }
  .party-main .promise-content h4 {
    font-size: 16px;
  }
  .promise-total {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  #detail.party-detail {
    padding-bottom: 25px;
  }
  .party-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .party-identity {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0 18px;
    padding: 24px;
  }
  .party-identity > .eyebrow {
    grid-column: 1 / -1;
  }
  .party-identity h2 {
    font-size: 33px;
    grid-column: 1;
    grid-row: 2;
    margin: 18px 0 6px;
  }
  .party-flag-stage {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-height: 100px;
    margin: 10px 0;
  }
  .party-flag-stage .sample-flag {
    height: 80px;
    font-size: 55px;
  }
  .party-slogan {
    grid-column: 1;
    margin-bottom: 12px;
    font-size: 13px;
  }
  .party-identity > .party-follow {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .followers-link {
    grid-column: 1 / -1;
    padding: 14px 0;
  }
  .identity-founder {
    grid-column: 1 / -1;
    margin-top: 15px;
  }
  .party-identity > .help {
    display: none;
  }
  .party-section-nav {
    padding-bottom: 14px;
    gap: 20px;
  }
  .party-section-nav button {
    font-size: 11px;
  }
  .party-section {
    padding: 27px 0;
  }
  .party-section h3,
  #detail .party-section h3 {
    font-size: 26px;
  }
  .party-main .promise-card {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
  }
  .party-main .reaction-buttons {
    grid-column: 2;
    flex-direction: row;
    margin-top: 3px;
    justify-content: flex-start;
  }
  .party-main .reaction {
    min-height: 38px;
    padding: 9px 14px;
  }
  .mobile-party-follow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: sticky;
    bottom: 12px;
    margin-top: 25px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 6px 25px #00000012;
    z-index: 3;
  }
  .mobile-party-follow > span {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .mobile-party-follow .button {
    flex-shrink: 0;
    font-size: 11px;
    padding: 11px 14px;
  }
  .promise-total {
    font-size: 10px;
  }
  .follower-status {
    font-size: 10px;
  }
  .party-main .local-pill {
    display: block;
    font-size: 10px;
    padding: 7px 10px;
  }
  .full-manifesto {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 400px) {
  .party-identity {
    grid-template-columns: minmax(0, 1fr) 85px;
    padding: 20px;
    gap: 0 12px;
  }
  .party-identity h2 {
    font-size: 28px;
  }
  .party-flag-stage .sample-flag {
    height: 60px;
    font-size: 45px;
  }
  .party-section-nav {
    gap: 14px;
  }
  .promise-total {
    display: none;
  }
}
/* Logos are independent of flags. */
.party-logo {
  --logo-color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--logo-color);
  color: #fffaf0;
  font-size: 15px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
}
.party-logo.uploaded-logo {
  background: #fff;
  border: 1px solid #dedfd5;
}
.party-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.card-party-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.card-party-name h3 {
  overflow-wrap: anywhere;
}
.card-party-name .party-logo {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  font-size: 12px;
}
.party-profile-logo {
  margin: 10px 0 16px;
}
.party-profile-logo .party-logo {
  width: 67px;
  height: 67px;
  font-size: 25px;
  border-radius: 18px;
  box-shadow: 0 3px 12px #27332610;
}
.live-logo {
  margin: 20px 0 0;
}
.live-logo .party-logo {
  width: 52px;
  height: 52px;
  font-size: 20px;
  border-radius: 14px;
}
.live-logo + h3 {
  margin-top: 12px;
}
.identity-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}
.logo-update {
  margin: 15px 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d9dfcd;
}
.logo-update-label {
  display: block;
  font-size: 11px;
  color: #69775d;
}
.logo-update-label input {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  max-width: 100%;
  color: #7d8772;
}
.logo-update .help {
  font-size: 9px;
}
.logo-update .text-link {
  font-size: 10px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .party-identity {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .party-identity > .eyebrow {
    grid-column: 1;
    grid-row: auto;
  }
  .party-profile-logo {
    grid-column: 1;
    grid-row: 2;
    margin-top: 20px;
    margin-bottom: 4px;
  }
  .party-profile-logo .party-logo {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }
  .party-identity h2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 15px;
  }
  .party-flag-stage {
    grid-column: 1;
    grid-row: 4;
    justify-content: flex-start;
    min-height: 0;
    margin: 20px 0;
  }
  .party-flag-stage .sample-flag {
    max-width: 190px;
    height: 100px;
    font-size: 70px;
    margin-left: 8px;
  }
  .party-slogan {
    grid-column: 1;
  }
  .logo-update {
    grid-column: 1;
    max-width: 100%;
    margin: 10px 0;
  }
  .logo-update-label input {
    font-size: 11px;
  }
  .card-party-name {
    gap: 9px;
  }
}
.bulk-promises {
  margin: 0 0 20px;
  padding: 15px;
  background: #eef0e5;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.bulk-promises summary {
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.bulk-promises .help {
  margin: 12px 0;
}
.bulk-promises .field {
  margin-top: 15px;
}
.bulk-promises textarea {
  min-height: 150px;
}
.bulk-promises .error:empty {
  display: none;
}
.bulk-promises .button {
  margin-bottom: 3px;
}
.follower-total {
  font-size: 12px;
  color: #7c876f;
  white-space: nowrap;
}
.followers-list.followers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.followers-grid li {
  min-width: 0;
  gap: 10px;
  align-items: center;
}
.followers-grid li > div {
  min-width: 0;
  flex: 1;
}
.followers-grid strong,
.followers-grid li > div > span {
  overflow-wrap: anywhere;
}
.followers-grid .follower-avatar {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  font-size: 15px;
}
.followers-grid .follower-status {
  font-size: 10px;
  white-space: nowrap;
}
.followers-search {
  display: block;
  margin: 20px 0 6px;
}
.followers-search > span {
  display: block;
  font-size: 11px;
  color: #7c876f;
  margin-bottom: 8px;
}
.followers-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fffdf8;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
}
.followers-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.followers-pagination > span,
.followers-no-match {
  font-size: 12px;
  color: #838e77;
}
.followers-no-match {
  padding: 22px 0;
}
.followers-pagination .button {
  font-size: 11px;
}
@media (max-width: 1000px) {
  .followers-list.followers-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .followers-grid li {
    padding: 16px 0;
  }
  .followers-pagination .button {
    padding: 12px 15px;
  }
  .follower-total {
    font-size: 11px;
  }
}
/* The personal workspace lives on the right of the header. */
header {
  gap: 20px;
  align-items: center;
}
header > nav {
  margin-left: auto;
  gap: 20px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: #f1f4eb;
  border: 1px solid #dce2d4;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.user-header-pill:hover {
  background: #e6ebdd;
  border-color: #cbcfc1;
}
.user-header-pill[hidden] {
  display: none !important;
}
.user-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #365c46;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.user-header-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 7px;
}
.password-input-wrap input {
  margin-top: 0 !important;
  width: 100%;
  padding-right: 44px !important;
}
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #7b8572;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 0;
  transition: color 0.15s, background-color 0.15s;
  z-index: 2;
}
.password-toggle-btn:hover {
  color: var(--ink);
  background-color: rgba(0, 0, 0, 0.06);
}
.password-toggle-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}
.profile-party {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 7px 0;
  font-size: 12px;
  color: #626a59;
  white-space: nowrap;
}
.profile-party.active {
  color: var(--ink);
}
.profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #dce1d3;
  background: #eef1e7;
  color: #5c6c50;
}
.profile-icon svg {
  width: 20px;
  height: 20px;
}
.profile-party #myCount {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
}
.login-button,
.logout-button {
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: #8c927f;
  padding: 8px 0;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  text-decoration: none;
}
.login-button:hover,
.logout-button:hover {
  color: var(--orange);
}
.login-button > span,
.logout-button > span {
  margin-left: 4px;
}
.session-view {
  text-align: center;
  min-height: 65vh;
  padding-top: 85px;
  padding-bottom: 90px;
}
.session-view .eyebrow {
  justify-content: center;
  color: #849177;
  margin-top: 25px;
}
.session-view h1 {
  font-family: Georgia, serif;
  font-size: 58px;
  letter-spacing: -2px;
  margin: 22px 0;
}
.session-view > p {
  color: #7f8973;
  font-size: 14px;
  line-height: 1.8;
}
.session-view .button {
  margin: 20px 0;
}
.session-view .help {
  font-size: 11px;
}
.session-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1e3;
  color: #5f7651;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 36px;
}
@media (max-width: 1250px) {
  header {
    gap: 12px;
    padding: 12px 3%;
  }
  .header-actions {
    gap: 12px;
  }
  header > nav {
    gap: 14px;
    flex-wrap: nowrap;
  }
  .account-actions {
    gap: 10px;
    padding-left: 10px;
  }
  .header-create {
    padding: 10px 14px !important;
    gap: 10px;
    font-size: 13px;
  }
  .brand {
    font-size: 19px;
  }
}
@media (max-width: 1040px) {
  header {
    height: auto;
    min-height: 85px;
    flex-wrap: wrap;
    padding-top: 17px;
    padding-bottom: 10px;
  }
  .header-actions {
    margin-left: auto;
  }
  header > nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
    gap: 20px;
    flex-wrap: wrap;
  }
  header > nav .nav:last-child {
    display: block;
  }
  .account-actions {
    border: 0;
    padding: 0;
  }
  .header-create {
    display: none !important;
  }
}
@media (max-width: 480px) {
  header {
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-icon {
    margin-right: 5px;
    width: 27px;
    height: 27px;
  }
  .brand i {
    font-size: 8px;
  }
  .profile-party {
    font-size: 10px;
    gap: 5px;
  }
  .profile-icon {
    width: 27px;
    height: 27px;
  }
  .profile-icon svg {
    width: 17px;
    height: 17px;
  }
  .logout-button {
    font-size: 10px;
  }
  .logout-button > span {
    display: none;
  }
  .account-actions {
    gap: 9px;
  }
  .user-header-pill {
    padding: 3px 8px 3px 5px;
    font-size: 11px;
    gap: 5px;
  }
  .user-header-name {
    max-width: 80px;
  }
  .profile-party #myCount {
    font-size: 9px;
    padding: 1px 3px;
  }
  .session-view h1 {
    font-size: 43px;
  }
}
/* A dedicated personal workspace. */
.account-view {
  max-width: 1340px;
  padding-top: 55px;
}
.account-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 38px;
}
.account-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #e8eddf;
  color: #506b42;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 36px;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-heading > div:nth-child(2) {
  min-width: 0;
}
.account-heading .eyebrow {
  font-size: 9px;
  color: #8a927e;
}
.account-heading h1 {
  font-family: "Manrope", sans-serif;
  font-size: 37px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.account-heading p {
  font-size: 13px;
  color: #89917c;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.account-heading > .button {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.account-tabs {
  display: flex;
  gap: 35px;
  border-bottom: 1px solid var(--border);
  padding: 0;
  flex-wrap: wrap;
}
.account-tabs a {
  padding: 15px 0;
  font-size: 13px;
  color: #8a927e;
}
.account-tabs a[aria-current="page"] {
  color: var(--ink);
  box-shadow: 0 2px var(--orange);
}
.account-tabs span {
  font-size: 10px;
  margin-left: 5px;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.account-panel {
  padding: 32px 0;
  min-height: 350px;
}
.account-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.account-panel-heading h2 {
  font-size: 26px;
  margin: 0;
}
.account-panel-heading > span {
  font-size: 11px;
  color: #8a927e;
}
.account-empty {
  text-align: center;
  padding: 40px 20px;
}
.account-empty > span {
  font-size: 50px;
  color: var(--orange);
}
.account-empty h3 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.account-empty p {
  font-size: 13px;
  color: #8a927e;
  margin-bottom: 25px;
}
.account-panel form {
  max-width: 570px;
  margin-top: 25px;
}
.account-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.party-share-shortcut {
  display: block;
  color: #687d58;
  text-align: left;
}
.share-workspace {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
  gap: 25px;
  margin-top: 25px;
  align-items: start;
}
.share-art {
  padding: 16px;
  background: #eaeddf;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.share-art canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 5px 15px #2c362314;
}
.share-art > span {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #8a947e;
  margin-top: 15px;
}
.share-tools .field {
  font-size: 11px;
}
.share-tools .field select {
  font-size: 11px;
  padding: 10px;
}
.share-platform-help {
  font-size: 11px;
  line-height: 1.8;
  color: #7d896d;
}
.share-tools > .button {
  width: 100%;
  margin: 7px 0;
  font-size: 11px;
  padding: 13px 16px;
}
.share-native {
  border: 1px solid var(--border);
  background: #eef0e5;
  color: var(--ink);
}
.share-caption-label {
  margin-top: 18px;
}
.share-caption-label textarea {
  font-size: 11px;
  line-height: 1.7;
  min-height: 180px;
}
.share-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-platforms > a,
.share-platforms > button {
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #657a54;
  font-size: 10px;
  padding: 9px 11px;
}
.share-platforms > a:hover,
.share-platforms > button:hover {
  background: #edf1e2;
}
.share-link-note {
  font-size: 10px;
  color: #929b83;
  line-height: 1.8;
  margin-top: 18px;
}
.share-status {
  font-size: 11px;
  line-height: 1.8;
  color: #6a7b59;
}
.share-section .help {
  line-height: 1.8;
}
.account-view .card-art {
  height: 170px;
}
@media (max-width: 1050px) {
  .account-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .share-workspace {
    grid-template-columns: 1fr;
  }
  .share-art {
    max-width: 290px;
    margin: 0 auto;
    width: 100%;
  }
  .share-tools {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .account-heading {
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
  }
  .account-avatar {
    width: 65px;
    height: 65px;
    font-size: 29px;
  }
  .account-heading > div:nth-child(2) {
    flex: 1;
  }
  .account-heading h1 {
    font-size: 28px;
  }
  .account-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .account-heading > .button {
    margin-left: 0;
    width: 100%;
  }
  .account-tabs {
    gap: 26px;
  }
  .account-tabs a {
    font-size: 12px;
  }
  .account-panel-heading {
    align-items: flex-start;
  }
  .account-panel-heading h2 {
    font-size: 22px;
  }
  .account-panel-heading > span {
    white-space: nowrap;
  }
  .account-cards {
    grid-template-columns: 1fr;
  }
  .account-view {
    padding-top: 32px;
  }
  .account-view .card-art {
    height: 200px;
  }
  .account-empty h3 {
    font-size: 22px;
  }
  .share-workspace {
    gap: 23px;
  }
  .party-share-shortcut {
    grid-column: 1;
  }
  .share-tools .field,
  .share-tools .field select,
  .share-platforms > a,
  .share-platforms > button {
    font-size: 12px;
  }
  .share-platform-help,
  .share-link-note {
    font-size: 11px;
  }
}
/* A focused, two-part identity studio. */
.identity-intro > .eyebrow {
  font-size: 9px;
  color: #8b947f;
  letter-spacing: 1.5px;
}
.identity-intro h3 {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 13px 0 8px;
}
.identity-intro p {
  font-size: 12px;
  color: #818c74;
  line-height: 1.8;
  margin-bottom: 23px;
}
.identity-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.identity-tabs > button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f3f4ec;
  color: #7c876e;
  padding: 13px 12px;
}
.identity-tabs > button[aria-selected="true"] {
  background: #fffdf8;
  border-color: #737e66;
  color: var(--ink);
  box-shadow: 0 0 0 1px #737e6615;
}
.identity-tab-mark {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}
.identity-tabs > button > span:last-child {
  font-weight: 600;
  font-size: 12px;
}
.identity-tabs small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 3px;
  color: #949b89;
}
.identity-panel {
  padding: 23px;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.identity-panel-top {
  margin-bottom: 24px;
}
.identity-panel h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 17px;
}
.identity-mode {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: #eeefe6;
  border: 1px solid #e3e5d9;
  border-radius: 6px;
  max-width: 100%;
}
.identity-mode button {
  background: transparent;
  border: 0;
  color: #8b947d;
  padding: 9px 14px;
  font-size: 11px;
  border-radius: 4px;
}
.identity-mode button[aria-pressed="true"] {
  background: #fffdf8;
  box-shadow: 0 1px 4px #28332110;
  color: var(--ink);
}
.identity-panel .field {
  font-size: 12px;
  margin-bottom: 22px;
}
.identity-panel .field input:not([type="color"]) {
  font-size: 14px;
  padding: 13px;
}
.identity-panel .field small {
  font-size: 10px;
  color: #949b88;
}
.identity-color-group {
  margin-bottom: 23px;
}
.identity-label {
  display: block;
  color: #5d6953;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.identity-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 3px solid #fffdf8;
  background: var(--swatch);
  padding: 0;
  box-shadow: 0 0 0 1px #dce1d1;
}
.color-swatch.selected {
  box-shadow: 0 0 0 2px var(--ink);
}
.custom-color {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 3px;
  color: #7c886c;
  font-size: 10px;
}
.custom-color input {
  width: 30px;
  height: 30px;
  border: 1px solid #dbe0ce;
  border-radius: 5px;
  background: #f7f8f0;
  padding: 2px;
  cursor: pointer;
}
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 23px;
}
.layout-options > button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e0e4d7;
  background: #f8f9f3;
  border-radius: 5px;
  color: #89947b;
  font-size: 10px;
  padding: 11px 5px;
}
.layout-options > button[aria-pressed="true"] {
  border-color: #657557;
  color: #37452e;
  background: #eef3e6;
}
.layout-sample {
  width: 45px;
  height: 28px;
  background: var(--layout-primary, #365c46);
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.layout-sample.layout-solid {
  background: var(--layout-primary, #365c46);
}
.layout-sample.layout-stripes {
  background: linear-gradient(
    180deg,
    var(--layout-primary, #365c46) 0%,
    var(--layout-primary, #365c46) 33.3%,
    var(--layout-secondary, #d8e88d) 33.3%,
    var(--layout-secondary, #d8e88d) 66.6%,
    var(--layout-primary, #365c46) 66.6%,
    var(--layout-primary, #365c46) 100%
  ) !important;
}
.layout-sample.layout-diagonal {
  background: linear-gradient(
    135deg,
    var(--layout-primary, #365c46) 0%,
    var(--layout-primary, #365c46) 50%,
    var(--layout-secondary, #d8e88d) 50%,
    var(--layout-secondary, #d8e88d) 100%
  ) !important;
}
.identity-panel .symbols {
  margin: 0;
  gap: 9px;
  flex-wrap: wrap;
}
.identity-panel .symbol {
  font-size: 24px;
  line-height: 1;
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #e0e5d7;
  background: #f8f9f3;
}
.identity-panel .symbol.selected {
  border-color: #849b70;
  background: #edf4e2;
  color: #385328;
}
.identity-upload {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 230px;
  padding: 25px 15px;
  background: #f5f7ee;
  border: 1px dashed #b5c1a3;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
}
.identity-upload:hover {
  background: #edf3e3;
}
.identity-upload:focus-within {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.identity-upload .upload-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe2d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffef7;
  font-size: 22px;
  color: #60734e;
}
.identity-upload strong {
  font-size: 13px;
  font-weight: 500;
}
.identity-upload > span:not(.upload-arrow) {
  color: #8b967e;
  font-size: 10px;
}
.identity-upload .upload-pick {
  background: var(--ink);
  color: white !important;
  border-radius: 4px;
  padding: 9px 15px;
  margin-top: 8px;
}
.identity-upload > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.identity-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 13px;
  font-size: 10px;
  color: #70865a;
}
.identity-file > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.identity-file .text-link {
  white-space: nowrap;
  font-size: 10px;
}
.identity-upload-tip {
  font-size: 10px;
  line-height: 1.8;
  color: #97a087;
  margin-bottom: 0;
}
.identity-bottom-hint {
  font-size: 10px;
  line-height: 1.9;
  color: #949d87;
  display: flex;
  gap: 9px;
  padding: 17px 4px;
}
.identity-bottom-hint > span {
  color: #8b9e76;
}
.identity-editing .preview {
  padding: 25px !important;
  background: #eef1e5;
}
.identity-editing .preview > :not(#identityFocusPreview),
#creator.identity-editing .preview > :not(#identityFocusPreview) {
  display: none !important;
}
#creator[data-step="0"] #liveFlag {
  display: none !important;
}
#creator:not(.identity-editing) #identityFocusPreview,
#identityFocusPreview[hidden],
#identityFocusPreview:empty {
  display: none !important;
}
#identityFocusPreview > .eyebrow {
  justify-content: center;
  font-size: 9px;
  color: #82906f;
  letter-spacing: 1.6px;
}
.identity-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0 20px;
  min-height: 175px;
  background: #f8faf3;
  border: 1px solid #dfe5d4;
  border-radius: 7px;
}
.identity-preview-stage.logo-stage .party-logo {
  width: 112px;
  height: 112px;
  font-size: 42px;
  border-radius: 28px;
  box-shadow: 0 5px 15px #3340260b;
}
.identity-preview-stage.flag-stage {
  padding: 25px 20px;
  min-height: 190px;
}
.identity-preview-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  font-size: 85px;
  transform: rotate(-4deg);
  box-shadow: 5px 10px 17px #27342115;
  overflow: hidden;
}
.identity-preview-flag img,
.identity-mini-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.identity-mini-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 43px;
  font-size: 31px;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 3px 7px #2734210d;
}
#identityFocusPreview > h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 16px 0 10px;
}
#identityFocusPreview > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 23px;
}
.identity-preview-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
  border-top: 1px solid #dce3cf;
  font-size: 11px;
  color: #8a9879;
}
.identity-preview-secondary .party-logo {
  width: 43px;
  height: 43px;
  font-size: 17px;
  border-radius: 11px;
}
.identity-editing .modal-foot {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 17px 0 5px;
  z-index: 3;
}
.identity-editing .creator-body {
  min-height: 0;
}
.identity-editing .error {
  margin-top: 0;
}
@media (max-width: 950px) {
  .identity-tabs small {
    font-size: 9px;
  }
  .identity-tabs > button {
    padding: 12px 10px;
    gap: 8px;
  }
  .identity-panel {
    padding: 18px;
  }
  .identity-color-row {
    gap: 9px;
  }
  .color-swatch {
    width: 27px;
    height: 27px;
  }
  .custom-color {
    margin-left: 0;
  }
}
@media (max-width: 700px) {
  .identity-editing .creator-body {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
  }
  .identity-editing #fields {
    width: 100%;
    order: 0;
  }
  .identity-editing .preview {
    order: 1 !important;
    width: 100%;
    position: static;
  }
  .identity-editing .preview > :not(#identityFocusPreview) {
    display: none !important;
  }
  .identity-intro h3 {
    font-size: 23px;
  }
  .identity-tabs > button {
    padding: 14px;
  }
  .identity-tabs small {
    font-size: 10px;
  }
  .identity-panel {
    padding: 20px;
  }
  .identity-mode {
    display: flex;
  }
  .identity-mode button {
    flex: 1;
    min-height: 40px;
    font-size: 12px;
    padding: 9px;
  }
  .color-swatch {
    width: 33px;
    height: 33px;
  }
  .identity-color-row {
    gap: 11px;
  }
  .identity-upload-tip,
  .identity-bottom-hint {
    font-size: 11px;
  }
  .identity-panel .field small {
    font-size: 11px;
  }
  .identity-editing .preview {
    padding: 20px !important;
  }
  .identity-preview-stage {
    min-height: 130px;
    margin: 18px 0;
  }
  .identity-preview-stage.logo-stage .party-logo {
    width: 85px;
    height: 85px;
    font-size: 33px;
    border-radius: 22px;
  }
  .identity-preview-stage.flag-stage {
    min-height: 155px;
  }
  .identity-preview-flag {
    max-width: 260px;
    height: 110px;
    font-size: 70px;
  }
  #identityFocusPreview > h3 {
    font-size: 20px;
  }
  .identity-editing .modal-foot {
    padding-bottom: 12px;
  }
  .identity-editing .modal-foot .button {
    padding: 14px 20px;
  }
}
@media (pointer: coarse) {
  .color-swatch {
    width: 36px;
    height: 36px;
  }
  .identity-color-row {
    gap: 12px;
  }
}
#creator.identity-editing {
  padding-top: 24px;
}
.identity-editing .back-link {
  margin-bottom: 20px;
}
.identity-editing .modal-head .eyebrow {
  display: none;
}
.identity-editing .modal-head h2 {
  font-size: 30px;
  margin: 6px 0;
}
.identity-editing .steps {
  margin: 18px 0 28px;
}
.identity-editing .identity-intro > .eyebrow {
  display: none;
}
.identity-editing .identity-intro h3 {
  margin-top: 0;
}
.party-logo {
  color: var(--logo-ink, #fffaf0);
}
.identity-waiting-image {
  padding: 20px;
  text-align: center;
  color: #a2ad95;
}
.identity-waiting-image > span {
  font-size: 31px;
}
.identity-waiting-image > p {
  font-size: 11px !important;
  line-height: 1.8;
  margin: 10px 0 !important;
}
.identity-editing .identity-intro {
  display: none;
}
.identity-editing .identity-panel-top {
  margin-bottom: 20px;
}
.brand.site-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  white-space: normal;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand.site-name .site-name-lead {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #7c8471;
  margin-bottom: 3px;
}
.brand.site-name .site-name-main {
  font-weight: 700;
  color: var(--ink);
}
footer .brand.site-name {
  font-size: 17px;
}
footer .brand.site-name .site-name-lead {
  font-size: 10px;
}
@media (max-width: 480px) {
  .brand.site-name {
    font-size: 16px;
  }
  .brand.site-name .site-name-lead {
    font-size: 10px;
    margin-bottom: 2px;
  }
}
.party-main .reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
}
.party-main .reaction-buttons {
  flex-direction: row;
  gap: 8px;
}
/* A shifting spectrum for the highlighted hero word and starburst. */
.hero h1 em,
.hero h1 .spark {
  color: #65528b;
  background-image: linear-gradient(
    100deg,
    #8a3b91 0%,
    #4055a8 20%,
    #17706d 40%,
    #4d7637 60%,
    #ad3d69 80%,
    #8a3b91 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: party-spectrum 10s ease-in-out infinite;
}
@keyframes party-spectrum {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em,
  .hero h1 .spark {
    animation: none;
    background-position: 50% 50%;
  }
}
.brand.site-name .site-name-main + .site-name-lead {
  margin-top: 4px;
  margin-bottom: 0;
}

footer {
  flex-wrap: wrap;
}
.footer-legal {
  flex-basis: 100%;
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 20px;
}
.footer-legal h2 {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  color: #5e6656;
  margin: 0 0 8px;
}
.footer-legal p {
  max-width: 1100px;
  font-size: 11px;
  line-height: 1.9;
  color: #7c8471;
  margin: 0;
}
@media (max-width: 700px) {
  footer .footer-legal {
    order: 4;
  }
  .footer-legal p {
    font-size: 11px;
    width: auto;
  }
}

.party-identity > h2:first-child {
  margin-top: 0;
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .party-identity > h2:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .party-identity > .eyebrow {
    grid-row: 2;
  }
  .party-identity > .party-flag-stage {
    grid-row: 3;
  }
  .party-identity > .party-profile-logo {
    grid-row: 4;
  }
}
/* Next.js application additions */
.app-wrap {
  min-height: 100vh;
}
.app-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 35px 5%;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 5%;
  border-bottom: 1px solid #ddd;
}
.app-header nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.app-header button,
.app-header a {
  cursor: pointer;
}
.auth-box,
.editor-box,
.detail-box {
  max-width: 750px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
}
.auth-box input,
.editor-box input,
.editor-box select,
.editor-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 6px 0 15px;
}
.editor-box textarea {
  min-height: 110px;
}
.app-error {
  color: #ad321e;
}
.app-success {
  color: #365c46;
}
.party-card {
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.party-card .card-art {
  min-height: 190px;
}
.party-card .card-body {
  padding: 22px;
}
.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.app-actions button {
  padding: 11px 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: white;
  cursor: pointer;
}
.app-actions .primary {
  background: #e9774e;
  color: white;
  border: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .app-header {
    flex-wrap: wrap;
  }
}

/* Authentication styles */
.auth-view {
  max-width: 520px;
  margin: 30px auto 60px;
  padding: 0 5%;
}
.auth-box {
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 30px;
  box-shadow: 0 6px 24px rgba(37, 40, 35, 0.06);
}
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.auth-tab {
  background: none;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: #eef0e5;
  color: var(--ink);
  border-color: var(--border);
}
.auth-form .modal-head {
  display: block;
  margin-bottom: 18px;
}
.auth-form .modal-head h2 {
  font-size: 26px;
  margin: 6px 0 6px;
  letter-spacing: -0.6px;
}
.auth-form .modal-head .help {
  margin: 0;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.auth-actions .button {
  width: 100%;
}
.auth-actions .text-link {
  text-align: center;
  font-size: 12px;
}
.lang-selector-wrap {
  display: inline-flex;
  align-items: center;
}
.lang-select-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 10px 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.lang-select-inner:hover,
.lang-select-inner:focus-within {
  border-color: #252823;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.lang-globe-icon {
  display: flex;
  align-items: center;
  color: #797b72;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding-right: 14px;
}
.lang-arrow {
  position: absolute;
  right: 8px;
  font-size: 9px;
  pointer-events: none;
  color: #797b72;
}
