:root {
  --bg: #eaf3ec;
  --panel: #ffffff;
  --ink: #16241d;
  --muted: #66756d;
  --line: #dbe6de;
  --green: #0f6a43;
  --green-dark: #0a4430;
  --mint: #dff6e8;
  --coral: #f56f58;
  --amber: #f6c85f;
  --blue: #3f8ecb;
  --shadow: 0 24px 70px rgba(13, 66, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 111, 88, 0.2), transparent 24rem),
    radial-gradient(circle at 78% 4%, rgba(63, 142, 203, 0.18), transparent 26rem),
    linear-gradient(145deg, #f7fbf8 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  width: min(430px, 100%);
  height: min(880px, calc(100vh - 56px));
  min-height: 780px;
  border: 10px solid #16241d;
  border-radius: 36px;
  background: #f8fbf8;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 24px 18px 92px;
}

.topbar,
.section-head,
.location-panel,
.search,
.shop-card,
.room-card,
.nominee-card,
.budtender-card,
.deal-card,
.tabbar {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
}

.kicker,
.section-label {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2.1rem;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.age-pill,
.ghost-button,
.icon-button,
.vote-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.age-pill {
  width: 48px;
  height: 48px;
  background: var(--green-dark);
  color: white;
}

.search {
  height: 58px;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 8px 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(28, 87, 56, 0.08);
}

.search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: var(--green);
  transform: rotate(45deg);
  border-radius: 99px;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search button {
  border: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--coral);
  color: white;
  font-weight: 800;
}

.screen {
  display: none;
  max-height: calc(100% - 144px);
  overflow-y: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  animation: screen-in 180ms ease-out;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
}

.data-note {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 106, 67, 0.14);
  border-radius: 16px;
  background: var(--mint);
}

.data-note strong {
  color: var(--green-dark);
  font-size: 0.86rem;
}

.data-note span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  min-height: 36px;
  padding: 0 14px;
  font-weight: 800;
}

.quick-row button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.location-panel {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.location-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--mint);
  color: var(--green-dark);
  white-space: nowrap;
}

.shop-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shop-card,
.deal-card {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.shop-card p,
.deal-card p,
.budtender-copy p,
.chat-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.shop-card strong {
  margin-left: auto;
  color: var(--coral);
  font-size: 0.82rem;
  white-space: nowrap;
}

.shop-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  position: relative;
}

.shop-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50% 50% 50% 4px;
  background: white;
  transform: rotate(-45deg);
}

.shop-mark.sage {
  background: var(--green);
}

.shop-mark.coral {
  background: var(--coral);
}

.shop-mark.blue {
  background: var(--blue);
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.icon-button {
  width: 36px;
  height: 36px;
  background: var(--green-dark);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
}

.chat-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  margin-top: 12px;
}

.chat-card {
  min-height: 116px;
  border-radius: 18px;
  padding: 14px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.chat-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -24px;
  bottom: -34px;
  border: 18px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.chat-card p,
.chat-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-card h3 {
  max-width: 150px;
  font-size: 1rem;
}

.chat-card.strain {
  grid-row: span 2;
  background: linear-gradient(145deg, var(--green), #1c9b67);
}

.chat-card.music {
  background: linear-gradient(145deg, var(--blue), #65b4d8);
}

.chat-card.shops {
  background: linear-gradient(145deg, var(--coral), #f6a05b);
}

.chat-card.drops {
  background: linear-gradient(145deg, #3d5a40, #77a66a);
}

.budtender-card {
  align-items: stretch;
  gap: 13px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 22px;
  background: #16241d;
  color: white;
  position: relative;
}

.portrait {
  width: 86px;
  min-height: 126px;
  flex: 0 0 86px;
  border-radius: 18px;
  display: grid;
  place-items: end center;
  padding-bottom: 12px;
  color: white;
  font-weight: 900;
  background:
    radial-gradient(circle at 48% 28%, #ffd3b8 0 17px, transparent 18px),
    linear-gradient(160deg, #2f8f66 0 50%, #f56f58 50%);
}

.portrait.small {
  width: 72px;
  min-height: 92px;
  flex-basis: 72px;
  border-radius: 17px;
}

.portrait.small span {
  width: 36px;
  height: 36px;
  font-size: 0.78rem;
}

.portrait span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 36, 29, 0.72);
}

.budtender-copy {
  min-width: 0;
  flex: 1;
}

.budtender-copy .section-label {
  color: var(--amber);
}

.budtender-copy h2 {
  margin-bottom: 5px;
  font-size: 1.32rem;
}

.budtender-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.strain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.strain-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.vote-button {
  align-self: flex-start;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 13px;
}

.prices-head {
  margin-top: 24px;
}

.deal-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.deal-card {
  position: relative;
}

.deal-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  font-weight: 900;
  flex: 0 0 auto;
}

.deal-card .deal-main {
  flex: 1;
  min-width: 0;
}

.deal-card .price {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff3d1;
  color: #7d5200;
  font-weight: 900;
  white-space: nowrap;
}

.deal-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.deal-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.map-card {
  height: 280px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(15, 106, 67, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 106, 67, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #f4faf6, #dcefe5);
  background-size: 42px 42px, 42px 42px, auto;
}

.map-card::before,
.map-card::after,
.map-grid {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(63, 142, 203, 0.18);
}

.map-card::before {
  width: 220px;
  height: 46px;
  left: -38px;
  top: 88px;
  transform: rotate(-24deg);
}

.map-card::after {
  width: 250px;
  height: 54px;
  right: -34px;
  bottom: 64px;
  transform: rotate(28deg);
}

.map-grid {
  width: 180px;
  height: 40px;
  left: 90px;
  top: 170px;
  transform: rotate(-8deg);
  background: rgba(245, 111, 88, 0.16);
}

.map-pin {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50% 50% 50% 12px;
  background: var(--green);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(10, 68, 48, 0.24);
}

.map-pin.pin-one {
  left: 58px;
  top: 54px;
}

.map-pin.pin-two {
  right: 70px;
  top: 104px;
  background: var(--coral);
}

.map-pin.pin-three {
  left: 155px;
  bottom: 46px;
  background: var(--blue);
}

.map-location {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(10, 68, 48, 0.22);
}

.shop-list,
.room-list,
.nominee-list,
.submit-tabs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.directory-card {
  align-items: flex-start;
}

.directory-card span,
.room-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.room-card,
.nominee-card,
.composer-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 14px;
}

.room-card {
  gap: 12px;
  align-items: flex-start;
}

.room-card p {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.room-card strong {
  margin-left: auto;
  color: var(--coral);
  font-size: 0.74rem;
  white-space: nowrap;
}

.room-dot {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: var(--green);
}

.room-dot.music {
  background: var(--blue);
}

.room-dot.shops {
  background: var(--coral);
}

.room-dot.drops {
  background: #77a66a;
}

.composer-card {
  margin-top: 16px;
  background: var(--green-dark);
  color: white;
}

.composer-card .section-label {
  color: var(--amber);
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.composer-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: white;
  color: var(--green-dark);
  font-weight: 900;
}

.composer-actions button:first-child {
  background: var(--amber);
}

.nominee-card {
  gap: 12px;
  align-items: stretch;
}

.nominee-copy {
  min-width: 0;
  flex: 1;
}

.nominee-copy p:not(.section-label) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.submit-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.submit-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.submit-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.airtable-note,
.submission-preview {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 106, 67, 0.14);
  border-radius: 16px;
  background: var(--mint);
}

.airtable-note strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.86rem;
}

.airtable-note span,
.submission-preview div {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.airtable-note code {
  color: var(--green-dark);
  font-weight: 900;
}

.intake-form {
  display: none;
  gap: 11px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.intake-form.active {
  display: grid;
}

.intake-form label {
  display: grid;
  gap: 6px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfb;
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
}

.intake-form textarea {
  min-height: 86px;
  resize: vertical;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 106, 67, 0.12);
}

.checkbox-label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.checkbox-label input {
  margin: 2px 0 0;
  padding: 0;
  width: 16px;
  height: 16px;
}

.intake-form button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--coral);
  color: white;
  font-weight: 900;
}

.tabbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 58px;
  justify-content: space-around;
  border: 1px solid rgba(219, 230, 222, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 26px rgba(28, 87, 56, 0.1);
}

.tabbar button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.tabbar button.active {
  color: var(--green);
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
    align-items: stretch;
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
