:root {
  --ink: #111;
  --muted: #767676;
  --line: #e8e4dd;
  --paper: #fff;
  --soft: #f6f3ee;
  --green: #2f7d57;
  --tea: #b69b7e;
  --coffee: #5b4335;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ece7df;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.view {
  display: none;
  min-height: calc(100vh - 74px);
  padding-bottom: 86px;
  background: var(--paper);
}

.view.is-active {
  display: block;
}

.hero {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.hero p,
.hero h1 {
  margin: 0;
}

.hero p {
  font-size: 15px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.08;
}

.hero span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  padding: 24px 18px 12px;
}

.quick-item {
  border: 0;
  background: transparent;
  color: #555;
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
}

.quick-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d1c8;
  color: var(--green);
  background: #fbfaf7;
}

.quick-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.quick-item span {
  font-size: 14px;
}

.section-block {
  padding: 10px 20px 24px;
}

.section-title h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.note-card {
  min-height: 180px;
  border: 0;
  padding: 0;
  background: #ddd;
  overflow: hidden;
  position: relative;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.note-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.note-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.note-card strong {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 17px;
}

.map-stage {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #ded9d0;
}

.map-stage img {
  width: 720px;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.map-pin {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -100%);
  width: 44px;
  height: 44px;
  border: 4px solid #fff;
  border-radius: 999px 999px 999px 0;
  background: var(--paper);
  color: var(--tea);
  box-shadow: 0 8px 22px rgba(55, 43, 31, 0.22);
  rotate: -45deg;
  cursor: pointer;
}

.map-pin span {
  display: block;
  rotate: 45deg;
  font-weight: 800;
  font-size: 20px;
}

.map-pin.is-active {
  outline: 5px solid #ff554d;
}

.map-panel {
  background: var(--paper);
  padding-top: 14px;
}

.drag-handle {
  width: 34px;
  height: 16px;
  margin: 0 auto 16px;
  border-top: 3px solid #b8b5b0;
  border-bottom: 3px solid #b8b5b0;
  transform: skewY(24deg);
}

.search-box {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  margin: 0 18px 18px;
  border: 1px solid #d9d5ce;
  background: #fff;
}

.search-box span {
  color: #aaa;
  font-size: 30px;
  text-align: center;
}

.search-box input {
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.search-box button {
  height: 40px;
  margin-right: 6px;
  padding: 0 18px;
  border: 0;
  background: #050505;
  color: #fff;
  cursor: pointer;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  border-bottom: 1px solid var(--line);
}

.category-tabs button {
  height: 46px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.category-tabs button.is-active {
  color: var(--ink);
  box-shadow: inset 0 -4px 0 #000;
}

.map-content {
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: 330px;
  background: #f7f7f7;
}

.area-list {
  background: #fff;
  padding: 14px 0;
}

.area-list button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #666;
  padding: 14px 10px;
  font-size: 15px;
  cursor: pointer;
}

.area-list button.is-active {
  color: #b98b68;
  font-weight: 800;
}

.place-list {
  padding: 12px 16px;
}

.place-list.large {
  padding: 8px 20px 28px;
}

.place-card {
  display: grid;
  grid-template-columns: 104px 1fr 20px;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.large .place-card {
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: start;
}

.place-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.place-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.large .place-card h3 {
  font-size: 22px;
}

.place-card small {
  display: block;
  color: #c5c0bb;
  font-size: 12px;
  margin-bottom: 9px;
}

.place-card p {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card .arrow {
  font-size: 30px;
  color: #666;
}

.page-view {
  background: #f7f5f2;
}

.page-header,
.detail-header {
  height: 74px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 0 12px;
}

.page-header h1,
.detail-header h1 {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: 22px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.back-button.light {
  color: #fff;
  position: relative;
  z-index: 2;
}

.detail-view {
  background: #fff;
}

.detail-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
}

.detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.detail-body {
  padding: 24px 20px 110px;
}

.detail-body h2 {
  margin: 0;
  font-size: 28px;
}

.muted {
  margin: 3px 0 20px;
  color: #c4bdb6;
  font-weight: 700;
}

.meta-list {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-list div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 12px 0;
}

.meta-list dt {
  color: #5d5a56;
}

.meta-list dd {
  margin: 0;
  line-height: 1.5;
}

.meta-list b {
  margin-left: 12px;
  padding: 3px 9px;
  border: 1px solid #c8aa90;
  border-radius: 999px;
  color: #b98b68;
  font-size: 12px;
}

.detail-text {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.85;
  text-indent: 2em;
}

.cloud-view,
.service-view,
.mine-view {
  background: #f8f3e8;
}

.cloud-hero,
.service-hero {
  padding: 28px 22px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(50, 90, 62, 0.88), rgba(104, 75, 51, 0.84)),
    url("../docs/requirements/assets/tea-coffee-route-card.png") center/cover;
}

.service-hero {
  background:
    linear-gradient(135deg, rgba(87, 65, 50, 0.88), rgba(53, 93, 73, 0.82)),
    url("../docs/requirements/assets/tea-coffee-stamp-card.png") center/cover;
}

.cloud-hero p,
.cloud-hero h1,
.service-hero p,
.service-hero h1 {
  margin: 0;
}

.cloud-hero p,
.service-hero p {
  font-size: 14px;
}

.cloud-hero h1,
.service-hero h1 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.12;
}

.cloud-hero span {
  display: block;
  margin-top: 10px;
  max-width: 330px;
  line-height: 1.5;
  font-size: 14px;
}

.cloud-stats,
.service-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.cloud-stats article,
.service-stats article {
  padding: 14px 10px;
  background: #fffdf8;
  border: 1px solid #e8dbc8;
  text-align: center;
}

.cloud-stats strong,
.service-stats strong {
  display: block;
  font-size: 24px;
  color: var(--coffee);
}

.cloud-stats span,
.service-stats span {
  display: block;
  margin-top: 4px;
  color: #877b6f;
  font-size: 13px;
}

.tree-list {
  display: grid;
  gap: 14px;
  padding: 0 16px 24px;
}

.tree-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  width: 100%;
  border: 1px solid #eadcc6;
  background: #fffdf8;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(91, 67, 53, 0.08);
}

.tree-art {
  position: relative;
  display: block;
  width: 76px;
  height: 86px;
  border-radius: 38px 38px 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tree-accent) 40%, #fff), #fff7df);
  border: 2px solid #f3e6c9;
}

.tree-art::before,
.tree-art::after,
.tree-art i::before,
.tree-art i::after {
  content: "";
  position: absolute;
  background: var(--tree-accent);
}

.tree-art::before {
  left: 36px;
  bottom: 16px;
  width: 8px;
  height: 42px;
  border-radius: 8px;
  background: #7c563c;
}

.tree-art::after {
  left: 18px;
  top: 17px;
  width: 34px;
  height: 22px;
  border-radius: 22px 22px 6px 22px;
  transform: rotate(-22deg);
}

.tree-art i::before {
  right: 14px;
  top: 29px;
  width: 32px;
  height: 22px;
  border-radius: 22px 22px 22px 6px;
  transform: rotate(18deg);
}

.tree-art i::after {
  left: 29px;
  bottom: 8px;
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background: #cfb58f;
}

.tree-art.large {
  width: 124px;
  height: 138px;
  border-radius: 62px 62px 24px 24px;
}

.tree-art.large::before {
  left: 59px;
  bottom: 22px;
  height: 70px;
  width: 10px;
}

.tree-art.large::after {
  left: 28px;
  top: 26px;
  width: 54px;
  height: 34px;
}

.tree-art.large i::before {
  right: 22px;
  top: 48px;
  width: 50px;
  height: 34px;
}

.tree-art.large i::after {
  left: 45px;
  bottom: 12px;
  width: 38px;
  height: 14px;
}

.tree-card-body {
  min-width: 0;
}

.tree-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.tree-row b {
  font-size: 20px;
}

.tree-row em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #dcc8aa;
  border-radius: 999px;
  color: #8c745c;
  font-size: 12px;
  font-style: normal;
}

.tree-card small {
  display: block;
  margin: 5px 0 9px;
  color: #b49b80;
  font-weight: 700;
}

.tree-card p {
  margin: 0;
  color: #6f665e;
  line-height: 1.45;
  font-size: 14px;
}

.tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tree-meta mark {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1eadf;
  color: #6e5948;
  font-size: 12px;
}

.tree-detail-view {
  background: #f8f3e8;
}

.tree-detail-card,
.tree-info-panel,
.tree-action-panel,
.tree-notice {
  margin: 0 16px 14px;
  border: 1px solid #eadcc6;
  background: #fffdf8;
}

.tree-detail-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.tree-detail-copy p,
.tree-detail-copy h2 {
  margin: 0;
}

.tree-detail-copy p {
  color: #9b8065;
  font-weight: 700;
}

.tree-detail-copy h2 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.tree-detail-copy span {
  display: block;
  margin-top: 12px;
  color: #6f665e;
}

.tree-info-panel,
.tree-action-panel,
.tree-notice {
  padding: 16px;
}

.tree-info-panel h3,
.tree-action-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.tree-info-panel p,
.tree-action-panel p {
  margin: 8px 0;
  color: #665d54;
  line-height: 1.65;
}

.tree-info-panel blockquote {
  margin: 14px 0 0;
  padding: 12px;
  background: #f1eadf;
  color: #65513f;
  line-height: 1.6;
}

.tree-notice {
  background: #eef5e8;
  color: #426641;
  line-height: 1.65;
}

.alias-input {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: #6f665e;
}

.alias-input input {
  height: 46px;
  border: 1px solid #ddceb8;
  padding: 0 12px;
  background: #fff;
  outline: 0;
}

.primary-action,
.secondary-action,
.record-card button {
  min-height: 42px;
  border: 0;
  padding: 0 14px;
  cursor: pointer;
}

.primary-action {
  width: 100%;
  background: #111;
  color: #fff;
  font-weight: 800;
}

.secondary-action {
  background: #efe5d7;
  color: #5f4b3c;
  font-weight: 700;
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
}

.adoption-grid span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  align-content: center;
  padding: 8px;
  background: #f5eee4;
  color: #76695d;
  text-align: center;
  font-size: 12px;
}

.adoption-grid b {
  color: #2d2a27;
  font-size: 15px;
}

.tree-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 16px 12px;
  border: 1px solid #e6d8c4;
  background: #fffdf8;
}

.service-tabs button {
  height: 44px;
  border: 0;
  background: transparent;
  color: #8d8277;
  font-weight: 700;
  cursor: pointer;
}

.service-tabs button.is-active {
  background: #111;
  color: #fff;
}

.record-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 24px;
}

.record-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #eadcc6;
  background: #fffdf8;
}

.record-card h3,
.record-card p {
  margin: 0;
}

.record-card p {
  margin-top: 5px;
  color: #6f665e;
}

.record-card span {
  display: block;
  margin-top: 7px;
  color: #9b8065;
  font-size: 13px;
}

.record-card button {
  background: #111;
  color: #fff;
  font-weight: 800;
}

.empty-state,
.empty {
  padding: 18px;
  color: #76695d;
  line-height: 1.6;
}

.mine-profile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 28px 22px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(46, 86, 62, 0.9), rgba(91, 67, 53, 0.84)),
    url("../docs/requirements/assets/park-map-theme-overview.png") center/cover;
}

.mine-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 30px;
  font-weight: 900;
}

.mine-profile p,
.mine-profile h1 {
  margin: 0;
}

.mine-profile p {
  font-size: 14px;
}

.mine-profile h1 {
  margin-top: 5px;
  font-size: 30px;
}

.mine-profile span {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.mine-assets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}

.mine-assets button {
  min-width: 0;
  border: 1px solid #eadcc6;
  background: #fffdf8;
  padding: 12px 6px;
  color: #6f665e;
  cursor: pointer;
}

.mine-assets strong {
  display: block;
  color: var(--coffee);
  font-size: 22px;
}

.mine-assets span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.mine-reminder,
.mine-section {
  margin: 0 16px 14px;
  border: 1px solid #eadcc6;
  background: #fffdf8;
}

.mine-reminder {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.mine-reminder h2,
.mine-section h2 {
  margin: 0;
  font-size: 20px;
}

.mine-reminder p {
  margin: 7px 0 0;
  color: #6f665e;
  line-height: 1.55;
}

.mine-reminder button {
  min-height: 42px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.mine-section {
  padding: 16px;
}

.mine-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mine-link-card {
  min-height: 82px;
  border: 1px solid #eadcc6;
  background: #f8f1e7;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.mine-link-card span {
  display: block;
  color: #2d2a27;
  font-weight: 800;
}

.mine-link-card small {
  display: block;
  margin-top: 7px;
  color: #7d7167;
  line-height: 1.4;
}

.mine-records,
.mine-settings {
  display: grid;
  margin-top: 12px;
}

.mine-record-card,
.mine-settings button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid #eadcc6;
  background: transparent;
  padding: 13px 0;
  text-align: left;
  cursor: pointer;
}

.mine-record-card:first-child,
.mine-settings button:first-child {
  border-top: 0;
}

.mine-record-card b,
.mine-settings span {
  display: block;
  color: #2d2a27;
  font-weight: 800;
}

.mine-record-card small {
  display: block;
  margin-top: 5px;
  color: #7d7167;
}

.mine-record-card em {
  color: #9b8065;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.mine-settings b {
  color: #9b8065;
  font-size: 22px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #6f6b66;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 13px;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: var(--tea);
  font-weight: 700;
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

@media (max-width: 360px) {
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-left: 10px;
    padding-right: 10px;
  }

  .place-card,
  .large .place-card {
    grid-template-columns: 92px 1fr;
  }
}
