:root {
  color-scheme: light;
  --ink: #211b15;
  --muted: #766c61;
  --line: #e3dbd0;
  --paper: #fbf8f1;
  --panel: #fffdf8;
  --leaf: #2f6b4f;
  --leaf-dark: #1f4a37;
  --mint: #e4f2e8;
  --sun: #e9b75e;
  --coral: #bf5f4a;
  --sky: #e6f0ef;
  --cream: #fff8ec;
  --shadow: 0 18px 48px rgba(51, 34, 22, 0.16);
  font-family:
    "Inter", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.is-shared-view .hero,
body.is-shared-view .quick-steps,
body.is-shared-view .starter-section,
body.is-shared-view #create,
body.is-shared-view #lists {
  display: none;
}

body.is-shared-view .share-shell {
  min-height: 100svh;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
strong,
span,
a,
button {
  overflow-wrap: anywhere;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 88svh;
  padding: clamp(30px, 6vw, 72px) clamp(16px, 5vw, 64px) clamp(30px, 5vw, 58px);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(22, 17, 13, 0.78) 0%, rgba(22, 17, 13, 0.58) 48%, rgba(22, 17, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(22, 17, 13, 0.08), rgba(22, 17, 13, 0.5)),
    url("../assets/hero-cafe.png");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  max-width: 690px;
  color: #fffaf1;
}

.hero .eyebrow {
  color: #f5d891;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-share-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px;
  background: rgba(255, 250, 241, 0.14);
  box-shadow: 0 10px 28px rgba(14, 10, 7, 0.2);
  backdrop-filter: blur(14px);
}

.hero-share-strip > span {
  padding: 0 4px 0 8px;
  color: rgba(255, 250, 241, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.share-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(34, 47, 39, 0.14);
}

.share-icon.native {
  color: var(--leaf-dark);
  background: #fffaf1;
  font-size: 18px;
}

.share-icon.line {
  background: #06c755;
}

.share-icon.x {
  background: #16181c;
  font-size: 18px;
}

.share-icon.instagram {
  background:
    radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, transparent 45%),
    radial-gradient(circle at 15% 15%, #fff 0%, #fff 8%, transparent 9%),
    linear-gradient(135deg, #833ab4 0%, #c13584 45%, #e1306c 70%, #fd1d1d 100%);
}

.instagram-glyph {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 6px;
}

.instagram-glyph::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.instagram-glyph::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: 18px;
}

.hero-actions,
.share-actions,
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #6f8340);
  box-shadow: 0 14px 28px rgba(47, 107, 79, 0.24);
}

.button.primary:hover {
  background: var(--leaf-dark);
}

.button.ghost {
  border-color: var(--line);
  color: var(--leaf-dark);
  background: #fff;
}

.button.quiet {
  border-color: transparent;
  color: var(--leaf-dark);
  background: transparent;
}

.button.small {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.button.share-native {
  border-color: #cbd9d2;
  color: var(--leaf-dark);
  background: #f7fbf8;
}

.button.share-line {
  color: #fff;
  background: #06c755;
}

.button.share-x {
  color: #fff;
  background: #16181c;
}

.button.share-instagram {
  color: #fff;
  background: #c13584;
}

.button.danger {
  border-color: #f0c6bd;
  color: #9a2e1f;
  background: #fff8f6;
}

.button.full {
  width: 100%;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

[hidden] {
  display: none !important;
}

.phone-preview {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 32px;
  padding: 24px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(250, 245, 237, 0.95)),
    radial-gradient(circle at 20% 0%, rgba(233, 183, 94, 0.18), transparent 34%);
  box-shadow:
    0 30px 80px rgba(13, 9, 6, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.preview-bar {
  width: 46px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(211, 201, 188, 0.72);
}

.share-from {
  margin: 0;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
}

.phone-preview h2 {
  margin: 6px 0 6px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.preview-lead {
  margin: 0 0 14px;
  color: #675d51;
  font-size: 14px;
  font-weight: 800;
}

.mini-tags,
.card-tags,
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tags span,
.card-tags span,
.share-meta span,
.preview-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.preview-meta {
  margin-bottom: 16px;
}

.preview-meta span {
  background: rgba(238, 244, 233, 0.82);
}

.mini-card {
  margin-top: 16px;
  border: 1px solid rgba(223, 213, 199, 0.48);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 252, 246, 0.66);
  box-shadow: 0 10px 26px rgba(51, 34, 22, 0.055);
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

.mini-card p {
  margin: 12px 0 0;
  color: #39362f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
}

.mini-card em {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--leaf-dark);
  background: #e5f0eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #e8dfd3;
  border-bottom: 1px solid #e8dfd3;
  background: #e8dfd3;
}

.quick-steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 18px clamp(16px, 5vw, 44px);
  background: #fffaf3;
}

.quick-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--leaf);
  font-weight: 800;
}

.quick-steps strong {
  font-size: 17px;
}

.quick-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.trust-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: clamp(34px, 6vw, 68px) clamp(16px, 5vw, 64px);
  background: #fffaf3;
}

.trust-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.trust-content p {
  color: var(--muted);
}

.trust-content-grid {
  display: grid;
  gap: 12px;
}

.trust-content-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.trust-content-grid h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.trust-content-grid p {
  margin: 0;
}

.guide-content {
  padding: clamp(30px, 5vw, 56px) clamp(16px, 5vw, 64px);
  background: #f7f1e8;
}

.guide-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.guide-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fffaf3;
}

.guide-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-more-link {
  margin: 22px 0 0;
}

.faq-content {
  padding: clamp(30px, 5vw, 56px) clamp(16px, 5vw, 64px);
  background: #fffaf3;
}

.faq-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fffdf8;
}

.faq-list h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.starter-section {
  padding: clamp(30px, 5vw, 56px) clamp(16px, 5vw, 64px);
  background: #fffaf3;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.starter-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 12px 26px rgba(51, 34, 22, 0.07);
  cursor: pointer;
  text-align: left;
}

.starter-card:hover {
  border-color: #bdd0c4;
  background: #f7fbf8;
  transform: translateY(-1px);
}

.starter-card span {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.starter-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.create-template-row,
.note-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.create-template-row {
  margin: 2px 0 14px;
}

.create-template-row button,
.note-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--leaf-dark);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.create-template-row button:hover,
.note-suggestions button:hover {
  border-color: #bdd0c4;
  background: var(--mint);
}

.note-suggestions {
  margin: -4px 0 12px;
}

.workspace,
.share-shell {
  scroll-margin-top: 96px;
  padding: clamp(34px, 6vw, 68px) clamp(16px, 5vw, 64px);
}

#create {
  padding-top: clamp(28px, 5vw, 52px);
}

.workspace.muted {
  background: #f4efe7;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 24px;
}

.section-heading h2,
.share-intro h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.share-intro p:not(.share-from) {
  margin: 10px 0 0;
  color: var(--muted);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 16px 34px rgba(51, 34, 22, 0.08);
}

.panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.place-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding-top: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(233, 183, 94, 0.12), transparent 34%);
}

.place-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #e6ded2;
  transform: translateX(-50%);
}

.form-intro {
  margin-bottom: 20px;
}

.form-intro h3 {
  margin-bottom: 6px;
}

.form-intro p:not(.step-label) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.step-label {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

label,
.tag-field {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  color: #3d453c;
  font-weight: 800;
}

.input-field {
  gap: 8px;
}

.label-row,
.tag-field legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label-row em,
.tag-field legend em {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.is-required .label-row em {
  border-color: transparent;
  color: #fff;
  background: var(--leaf);
}

.input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #ded4c6;
  border-radius: 16px;
  padding: 0 12px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.is-required .input-shell {
  border-width: 2px;
  border-color: var(--leaf);
}

.input-shell:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.13);
}

.field-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--leaf);
  background: var(--mint);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d5cbbd;
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.input-shell input,
.input-shell textarea {
  border: 0;
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}

.input-shell input:focus,
.input-shell textarea:focus {
  outline: 0;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(47, 107, 79, 0.18);
  border-color: var(--leaf);
}

.tag-field {
  border: 0;
  padding: 0;
}

.tag-field legend {
  width: 100%;
  padding: 0 0 8px;
}

.field-help {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-tag-details,
.place-details {
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.75);
}

.custom-tag-details summary,
.place-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.custom-tag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 12px 12px;
}

.tag-chip {
  position: relative;
}

.tag-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.tag-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: #4f594d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.tag-chip input:focus-visible + span {
  outline: 3px solid rgba(47, 107, 79, 0.18);
}

.tag-chip input:checked + span {
  border-color: var(--leaf);
  color: #fff;
  background: var(--leaf);
}

.place-details p {
  margin: -4px 14px 12px;
  color: var(--muted);
  font-size: 13px;
}

.place-details label {
  margin: 0 14px 14px;
}

.after-add-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.inline-form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inline-form-message:empty {
  display: none;
}

.inline-form-message[data-type="success"] {
  color: var(--leaf-dark);
}

.inline-form-message[data-type="error"] {
  color: #9a2e1f;
}

.latest-place-preview {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid #cbd9d2;
  border-radius: 14px;
  padding: 14px;
  background: #f7fbf8;
}

.latest-place-preview span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.latest-place-preview strong {
  font-size: 18px;
}

.latest-place-preview p {
  margin: 0;
  color: #40503e;
  font-size: 14px;
  font-weight: 800;
}

.latest-place-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.latest-place-preview em {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.list-settings {
  padding: 0;
}

.list-settings > summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  padding: clamp(16px, 4vw, 22px);
  list-style: none;
}

.list-settings > summary::-webkit-details-marker {
  display: none;
}

.list-settings > summary::after {
  content: "開く";
  justify-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.list-settings[open] > summary::after {
  content: "閉じる";
}

.list-settings > summary strong {
  font-size: 19px;
}

.list-settings > summary > span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.list-settings form {
  padding: 0 clamp(16px, 4vw, 22px) clamp(16px, 4vw, 22px);
}

.save-note {
  max-width: 860px;
  margin: -8px 0 18px;
  border: 1px solid #d8e3dc;
  border-radius: 16px;
  padding: 14px 16px;
  color: #40503e;
  background: #f7fbf8;
}

.save-note strong {
  display: block;
  color: var(--leaf-dark);
}

.save-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.places-list,
.share-cards {
  display: grid;
  gap: 12px;
}

.place-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 14px 34px rgba(51, 34, 22, 0.08);
}

.share-cards .place-card {
  border-color: rgba(223, 213, 199, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(252, 247, 239, 0.82));
  box-shadow: 0 10px 28px rgba(51, 34, 22, 0.07);
}

.share-cards .place-card h3 {
  font-size: 26px;
}

.share-cards .place-note-label {
  margin-top: 14px;
}

.share-cards .place-note {
  margin-bottom: 16px;
}

.share-cards .map-link {
  min-height: 40px;
  border-color: #d5e3dc;
  background: #e5f0eb;
  color: var(--leaf-dark);
}

.place-area {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.place-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.place-note {
  margin: 8px 0 14px;
  color: #2f3830;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.place-note-label {
  display: inline-flex;
  margin: 12px 0 2px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.card-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.map-link {
  border-color: var(--line);
  color: var(--leaf-dark);
  background: var(--sky);
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid #f0c6bd;
  border-radius: 12px;
  color: #9a2e1f;
  background: #fff8f6;
  cursor: pointer;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.icon-button.edit-place,
.icon-button.move-place {
  border-color: #cbd9d2;
  color: var(--leaf-dark);
  background: #f7fbf8;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.external-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.share-shell {
  background-image:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94) 0%, rgba(247, 241, 232, 0.96) 100%),
    url("../assets/share-cafe.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.share-page {
  max-width: 860px;
  margin: 0 auto;
}

.share-intro {
  border: 1px solid rgba(223, 213, 199, 0.86);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 245, 237, 0.95));
  box-shadow: 0 24px 56px rgba(51, 34, 22, 0.13);
  backdrop-filter: blur(14px);
}

.share-sender {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sender-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--leaf);
  font-size: 20px;
  font-weight: 800;
}

.sender-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.share-intro h2 {
  max-width: 720px;
}

.share-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.share-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.share-safety span {
  border: 1px solid rgba(216, 227, 220, 0.78);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--leaf-dark);
  background: rgba(238, 244, 233, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.share-summary div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fffaf3;
}

.share-summary strong,
.share-summary span {
  display: block;
}

.share-summary strong {
  color: var(--leaf-dark);
  font-size: 17px;
}

.share-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.share-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.share-highlights span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--leaf-dark);
  background: rgba(238, 244, 233, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.share-highlights .highlight-label {
  color: #fff;
  background: var(--leaf);
}

.share-note {
  min-height: 24px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 252, 246, 0.94);
  backdrop-filter: blur(12px);
}

.share-panel strong {
  display: block;
  font-size: 18px;
}

.share-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.share-actions.compact {
  justify-content: flex-end;
  margin-top: 0;
}

.make-your-own {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(228, 242, 232, 0.94);
  backdrop-filter: blur(12px);
}

.make-your-own strong {
  display: block;
  font-size: 20px;
}

.make-your-own p {
  margin: 8px 0 16px;
  color: #40503e;
}

.empty-state {
  border: 1px dashed #b7c6b1;
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(31, 74, 55, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  background: var(--leaf-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-share-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 28;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(31, 74, 55, 0.18);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 18px 44px rgba(51, 34, 22, 0.18);
  backdrop-filter: blur(14px);
}

.mobile-share-bar strong,
.mobile-share-bar span {
  display: block;
}

.mobile-share-bar strong {
  color: var(--ink);
  font-size: 14px;
}

.mobile-share-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-share-bar .button {
  min-height: 42px;
  padding: 0 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 5vw, 64px);
  color: var(--muted);
  background: #fffaf3;
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 800;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 82px) 16px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 56px);
}

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 24px;
}

.legal-page p {
  color: var(--muted);
}

.legal-page section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 4px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-preview {
    max-width: 430px;
  }

  .quick-steps,
  .trust-content,
  .guide-grid,
  .faq-list,
  .starter-grid,
  .editor-grid,
  .place-card,
  .share-panel {
    grid-template-columns: 1fr;
  }

  .share-shell {
    background-attachment: scroll;
  }

  .card-actions {
    align-items: stretch;
  }

  .external-note {
    text-align: left;
  }

  .share-actions.compact {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .map-link {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 34px 16px 38px;
  }

  .hero-share-strip {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 6px;
  }

  .share-icon {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(34px, 9.2vw, 38px);
    line-height: 1.12;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions,
  .share-actions,
  .list-toolbar {
    margin-top: 18px;
  }

  .hero-actions .button,
  .share-actions .button,
  .list-toolbar .button {
    width: 100%;
  }

  body:not(.is-shared-view) .mobile-share-bar:not([hidden]) {
    display: grid;
  }

  body.has-mobile-share-bar {
    padding-bottom: 82px;
  }

  .create-template-row,
  .note-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .create-template-row::-webkit-scrollbar,
  .note-suggestions::-webkit-scrollbar {
    display: none;
  }

  .create-template-row button,
  .note-suggestions button {
    flex: 0 0 auto;
    min-height: 38px;
    font-size: 12px;
  }

  .custom-tag-row {
    grid-template-columns: 1fr;
  }

  .quick-steps div {
    padding: 14px 16px;
  }

  .starter-section {
    padding: 28px 14px;
  }

  .guide-content {
    padding: 28px 14px;
  }

  .faq-content {
    padding: 28px 14px;
  }

  .guide-grid {
    margin-top: 16px;
  }

  .faq-list {
    margin-top: 16px;
  }

  .guide-grid article {
    border-radius: 14px;
    padding: 14px;
  }

  .faq-list article {
    border-radius: 14px;
    padding: 14px;
  }

  .guide-grid h3 {
    font-size: 16px;
  }

  .faq-list h3 {
    font-size: 16px;
  }

  .guide-grid p {
    font-size: 13px;
    line-height: 1.7;
  }

  .faq-list p {
    font-size: 13px;
    line-height: 1.7;
  }

  .starter-card {
    min-height: auto;
    padding: 14px;
  }

  .workspace,
  .share-shell {
    padding: 32px 14px;
  }

  body.is-shared-view .share-shell {
    padding: 18px 10px 28px;
  }

  body.is-shared-view .share-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.is-shared-view .share-intro {
    order: 1;
    border-radius: 22px;
    padding: 18px;
  }

  body.is-shared-view .share-cards {
    order: 2;
    gap: 10px;
  }

  body.is-shared-view .shared-share-panel {
    order: 3;
    margin-top: 0;
  }

  body.is-shared-view .share-note {
    order: 4;
    min-height: 0;
    margin: 0;
  }

  body.is-shared-view .make-your-own {
    order: 5;
    margin-top: 0;
  }

  body.is-shared-view .share-sender {
    margin-bottom: 10px;
  }

  body.is-shared-view .sender-avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  body.is-shared-view .sender-note,
  body.is-shared-view #share-description {
    font-size: 13px;
    line-height: 1.55;
  }

  body.is-shared-view .share-intro h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  body.is-shared-view .share-summary {
    display: none;
  }

  body.is-shared-view .share-safety,
  body.is-shared-view .share-highlights {
    margin-top: 10px;
    gap: 6px;
  }

  body.is-shared-view .share-safety span,
  body.is-shared-view .share-highlights span {
    padding: 5px 8px;
    font-size: 11px;
  }

  body.is-shared-view .share-intro > .share-actions {
    display: none;
  }

  .section-heading h2,
  .share-intro h2 {
    font-size: 30px;
  }

  .panel {
    padding: 18px;
  }

  .phone-preview {
    display: none;
  }

  .place-card {
    padding: 16px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .card-actions .map-link,
  .card-actions .external-note {
    grid-column: 1 / -1;
  }

  .icon-button {
    width: 100%;
  }

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

  .place-note {
    font-size: 15px;
  }

  textarea {
    min-height: 78px;
  }

  .share-summary {
    grid-template-columns: 1fr;
  }

  body.is-shared-view .share-cards .place-card {
    border-radius: 20px;
    padding: 18px;
  }

  body.is-shared-view .share-cards .place-card h3 {
    font-size: 22px;
  }

  body.is-shared-view .share-cards .place-note {
    font-size: 15px;
    line-height: 1.65;
  }

  body.is-shared-view .share-cards .card-tags {
    gap: 6px;
  }

  body.is-shared-view .share-cards .map-link {
    min-height: 44px;
    color: #fff;
    border-color: var(--leaf);
    background: var(--leaf);
    box-shadow: 0 10px 22px rgba(31, 74, 55, 0.16);
  }

  body.is-shared-view .shared-share-panel {
    border-radius: 18px;
    padding: 16px;
  }

  body.is-shared-view .shared-share-panel p {
    font-size: 13px;
  }

  body.is-shared-view .shared-share-panel .share-actions.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.is-shared-view #share-page-native {
    grid-column: 1 / -1;
  }

  body.is-shared-view .make-your-own {
    padding: 16px;
  }

  body.is-shared-view .make-your-own strong {
    font-size: 17px;
  }

  body.is-shared-view .make-your-own p {
    font-size: 13px;
  }

  .phone-preview,
  .panel,
  .place-card,
  .make-your-own {
    border-radius: 14px;
  }
}
