@font-face {
  font-family: Jua;
  src: url('/assets/fonts/Jua-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Pretendard;
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Matzip UI";
  src: url('/assets/fonts/Matzip-UI.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.reference-ui {
  --paper: #fbf9f0;
  --ink: #2a1a11;
  --muted: #716254;
  --line: #eae2d2;
  --white: #fffefd;
  --yellow: #f4c442;
  --custard: #faefca;
  --green: #e0ebd3;
  --pink: #f8dfd8;
  --red: #d96750;
  --title: Jua,"Matzip UI",Pretendard,sans-serif;
  color-scheme: light;
  font: 14px/1.45 "Matzip UI",Pretendard,system-ui,sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.reference-ui * {
  box-sizing: border-box;
}

.reference-ui {
  margin: 0;
}

.reference-ui button,.reference-ui input {
  font: inherit;
  color: inherit;
}

.reference-ui button,.reference-ui a {
  -webkit-tap-highlight-color: transparent;
}

.reference-ui button {
  cursor: pointer;
}

.reference-ui a {
  color: inherit;
  text-decoration: none;
}

.reference-ui button:focus-visible,.reference-ui a:focus-visible,.reference-ui input:focus-visible {
  outline: 2px solid #865b20;
  outline-offset: 2px;
}

.reference-ui h1,.reference-ui h2,.reference-ui h3,.reference-ui p,.reference-ui ol,.reference-ui ul,.reference-ui dl,.reference-ui dd,.reference-ui fieldset {
  margin: 0;
}

.reference-ui h1,.reference-ui h2,.reference-ui h3 {
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.15;
}

.reference-ui h1 {
  font-size: 31px;
}

.reference-ui h2 {
  font-size: 23px;
}

.reference-ui h3 {
  font-size: 18px;
}

.reference-ui small,.reference-ui .muted {
  color: var(--muted);
}

.reference-ui mark {
  background: var(--yellow);
  color: inherit;
  border-radius: 7px;
  padding: 0 .16em;
}

.reference-ui svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reference-ui button svg {
  display: block;
}

.reference-ui button,.reference-ui .pill {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
}

.reference-ui .plain {
  border: 0;
  background: none;
}

.reference-ui .pill {
  border-radius: 999px;
}

.reference-ui .primary {
  background: var(--ink);
  color: white;
  border: 0;
  font-family: var(--title);
  font-size: 20px;
  border-radius: 18px;
}

.reference-ui .selected {
  background: var(--yellow);
  border-color: transparent;
}

.reference-ui .green {
  background: var(--green);
}

.reference-ui .pink {
  background: var(--pink);
}

.reference-ui .custard {
  background: var(--custard);
}

.reference-ui #reference-screen {
  width: min(100%,520px);
  min-height: 100dvh;
  margin: auto;
  padding: 18px 20px calc(96px + env(safe-area-inset-bottom));
  outline: none;
}

.reference-ui #reference-navigation {
  position: fixed;
  z-index: 2;
  inset: auto 0 min(0px,var(--app-viewport-bottom));
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(100%,520px);
  margin: auto;
  padding: 12px 8px calc(14px + max(0px,var(--app-viewport-bottom)) + var(--app-safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.reference-ui #reference-navigation[hidden] {
  display: none;
}

.reference-ui #reference-navigation a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  color: #9d8b7e;
  font: 14px/1.2 var(--title);
}

.reference-ui #reference-navigation a[aria-current] {
  color: var(--ink);
}

.reference-ui #reference-navigation a[aria-current] svg {
  stroke-width: 2.4;
}

.reference-ui .mast {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.reference-ui .brand {
  font: 17px/1.2 var(--title);
  color: #69574a;
}

.reference-ui .mast h1 {
  margin-top: 11px;
}

.reference-ui .mast small {
  font-size: 12px;
}

.reference-ui .search {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding: 0 14px;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}

.reference-ui .search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  padding: 13px 0;
  outline: none;
}

.reference-ui .search:focus-within {
  outline: 2px solid #865b20;
  outline-offset: 2px;
}

.reference-ui .search svg {
  width: 18px;
}

.reference-ui .nearby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.reference-ui #reference-list-empty {
  margin-top: 12px;
}

.reference-ui .reference-home-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 24px 10px;
}

.reference-home-tabs button {
  min-height: 45px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  font: 17px/1.25 var(--title);
}

.reference-home-tabs button:is([data-home-tab="ratings"],[data-home-tab="collections"]) {
  grid-column: span 2;
  margin-top: 3px;
}

.reference-home-count:not([hidden]) {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font: 650 12px/1.25 "Matzip UI",Pretendard,system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
}

.reference-home-tabs button[aria-pressed="true"] {
  background: var(--yellow);
  border-color: transparent;
}

.reference-ui .reference-home-sorts:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 12px 4px;
}

.reference-ui .reference-home-sorts button {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 13px;
}

.reference-ui .reference-home-sorts button[aria-pressed="true"] {
  background: var(--custard);
  font-weight: 700;
}

#reference-home-order {
  margin: 4px 0;
  font-size: 12px;
}

.reference-ui .nearby-name strong {
  display: block;
  font: 19px/1.25 var(--title);
  overflow-wrap: anywhere;
}

.reference-rating {
  flex: none;
  color: #713f0b;
  white-space: nowrap;
  font: 700 18px/1.25 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.reference-list-rows {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

#reference-member-lists section, #reference-list-places section {
  margin-top: 22px;
}

#reference-list-search-status p {
  margin-top: 12px;
}

.reference-collection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 10px;
}

.reference-collection-actions button,
.reference-owned-row button,
.reference-more {
  min-height: 44px;
  font-weight: 700;
  color: #3e542d;
}

.reference-ui .reference-owned-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.reference-ui .reference-owned-row .nearby-row {
  flex: 1;
  min-width: 0;
  border: 0;
}

.reference-ui .reference-create-fab {
  position: fixed;
  z-index: 3;
  right: max(calc(20px + env(safe-area-inset-right)),calc((100% - 520px) / 2 + 20px));
  bottom: calc(99px + var(--app-bottom-inset));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 14px #2a1a1129;
}

.reference-ui .reference-create-fab svg {
  width: 28px;
  height: 28px;
}

.reference-ui #reference-create-actions {
  position: fixed;
  inset: auto max(calc(20px + env(safe-area-inset-right)),calc((100% - 520px) / 2 + 20px)) calc(164px + var(--app-bottom-inset)) auto;
  margin: 0;
  padding: 6px 0 6px 8px;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
}

.reference-ui #reference-create-actions:popover-open {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.reference-ui #reference-create-actions button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 15px 9px 11px;
  border-radius: 24px;
  background: var(--green);
  font: 17px/1.2 var(--title);
  box-shadow: 0 4px 15px #2a1a1126;
  transform-origin: right bottom;
}

.reference-ui #reference-create-actions button:first-child {
  background: var(--pink);
}

#reference-create-actions button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (prefers-reduced-motion: no-preference) {
  .reference-create-fab svg { transition: transform 180ms ease; }
  .reference-ui:has(#reference-create-actions:popover-open) .reference-create-fab svg { transform: rotate(45deg); }
  #reference-create-actions:popover-open button { animation: reference-create-rise 260ms cubic-bezier(.2,.85,.35,1.25) both; }
  #reference-create-actions:popover-open button:first-child { animation-delay: 55ms; }
  @keyframes reference-create-rise {
    from { opacity: 0; transform: translateY(13px) scale(.82); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

.reference-ui .stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}

.reference-ui .stat {
  display: grid;
  align-content: center;
  min-height: 77px;
  padding: 9px 14px;
  border-radius: 19px;
  font-weight: 650;
}

.reference-ui .stat strong {
  font: 35px/1 var(--title);
}

.reference-ui .between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.reference-ui .between small {
  text-align: right;
}

.reference-ui .nearby-row {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.reference-ui button.nearby-row {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: start;
}

.reference-ui .nearby-letter {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  font: 20px var(--title);
}

.reference-ui .nearby-name {
  flex: 1;
  min-width: 0;
}

.reference-ui .nearby-name small {
  display: block;
  margin-top: 4px;
}

.reference-ui .tag {
  display: inline-block;
  border-radius: 10px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.reference-ui .tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 16px;
}

.reference-ui .tools a,.reference-ui .tools button {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 40px;
}

.reference-ui .tools .back {
  justify-items: start;
}

.reference-ui .segment {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #f0e9da;
  border-radius: 14px;
}

.reference-ui .segment button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  font-size: 12px;
  background: none;
  color: var(--muted);
}

.reference-ui .segment button[aria-pressed=true] {
  background: var(--white);
  color: #176184;
}

.reference-ui .list h1 {
  font-size: 29px;
  margin: 5px 0 9px;
}

.reference-ui .filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 13px 0;
}

.reference-ui .filters button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
  color: #176184;
}

.reference-ui .filters button[aria-pressed=true] {
  background: var(--ink);
  color: white;
  border-color: transparent;
}

.reference-ui .rank-list {
  list-style: none;
  padding: 0;
}

.reference-ui .rank-row {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.reference-ui .rank-row .rank {
  font: 24px var(--title);
  color: var(--red);
}

.reference-ui .rank-row small {
  display: block;
  margin: 4px 0;
  font-size: 12px;
}

.reference-ui .rank-row .tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
}

.reference-ui .bookmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.reference-ui .bookmark[aria-pressed=true] {
  background: var(--yellow);
  border-color: transparent;
}

.reference-ui .bookmark[aria-pressed=true] svg {
  fill: currentColor;
}

.reference-ui .detail .tools {
  margin-bottom: 10px;
}

.reference-ui .detail-heading {
  overflow-wrap: anywhere;
}

.reference-ui .detail h1 {
  font-size: 36px;
  margin-top: 5px;
}

.reference-ui .detail .open {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.reference-ui .detail-visit-total {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.reference-ui .detail-visit-total strong {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.reference-ui .detail-visit-total small {
  font-size: 12px;
}

.reference-ui .summary {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 19px;
}

.reference-ui .summary .muted {
  font-size: 12px;
}

.reference-ui .summary p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.62;
}

.reference-ui .detail section {
  margin-top: 20px;
}

.reference-ui .detail section.summary {
  margin: 0;
}

.reference-ui .choices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.reference-ui .choices button {
  min-height: 42px;
  padding: 4px 10px;
  font: 15px/1.2 var(--title);
}

.reference-ui .record-choices {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.reference-ui .record-choices button {
  padding-inline: 3px;
}

.reference-ui .reference-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(54px,1fr));
  gap: 8px;
  margin-top: 8px;
}

.reference-photo-grid #reference-visit-gallery,
.reference-photo-grid .diary-photos {
  display: contents;
}

.reference-ui .reference-photo-add {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1px dashed var(--muted);
  border-radius: 10px;
  color: var(--ink);
}

.reference-photo-add svg {
  width: 22px;
  height: 22px;
}

.reference-photo-grid .reference-more {
  grid-column: 1/-1;
}

.reference-ui .reference-edit-cover {
  display: block;
}

.reference-ui .detail dl {
  margin-top: 11px;
}

.reference-ui .detail dl div {
  display: grid;
  grid-template-columns: 3em minmax(0,1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.reference-ui .detail dt {
  color: var(--muted);
  white-space: nowrap;
}

.reference-ui .detail dd {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.reference-ui .detail-button {
  padding: 0;
  margin-top: 9px;
  text-decoration: underline;
  font-weight: 700;
  font-size: 12px;
}

.reference-ui .menu-tags,
.reference-ui .reference-place-menu > .muted {
  margin-top: 9px;
}

.reference-ui .menu-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reference-ui .menu-tags span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.reference-ui .visit-actions {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.reference-ui .visit-actions .bookmark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

.reference-ui .visit-actions .primary {
  flex: 1;
}

.reference-ui .place-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 16px;
  font-weight: 700;
}

.reference-ui .naver-link-label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 700;
}

.reference-ui .activity-link,.reference-ui .detail-history {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
}

.reference-ui .activity-link svg,.reference-ui .detail-history svg {
  width: 16px;
  transform: rotate(180deg);
}

.reference-ui .detail-history {
  display: flex;
  width: fit-content;
}

.reference-ui .analysis-rows .regular-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.reference-ui .regulars section > p {
  margin-top: 8px;
}

.reference-ui .rank-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 15px 8px;
}

.reference-ui .rank-controls select {
  min-height: 40px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.reference-ui .analysis .stats,.reference-ui .analysis section,.reference-ui .analysis-summary {
  margin-block: 18px;
}

.reference-ui .analysis .stat strong {
  font-size: clamp(21px,6vw,25px);
  white-space: nowrap;
}

.reference-ui .analysis-rows {
  padding: 0;
  list-style: none;
}

.reference-ui .analysis-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.reference-ui .analysis-rows a {
  display: block;
  flex: 1;
  padding-block: 5px;
}

.reference-ui .analysis-rows small {
  display: block;
  margin-top: 2px;
}

.reference-ui .analysis-rows p {
  overflow-wrap: anywhere;
}

@media(max-width:350px) {
.reference-ui #reference-screen {
    padding-inline: 15px;
  }

.reference-ui .nearby-row .tag {
    padding-inline: 6px;
    font-size: 11px;
  }

}

@media(min-width:600px) {
.reference-ui #reference-screen {
    min-height: 100dvh;
  }

.reference-ui #reference-screen,.reference-ui #reference-navigation {
    border-inline: 1px solid var(--line);
  }

}

.product-layout {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #fbf9f0;
}
.product-layout > .app-shell {
  flex: 1;
}
.product-layout .product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: min(100%,520px);
  margin: auto;
  padding: calc(8px + env(safe-area-inset-top,0px)) 20px 8px;
  border-bottom: 1px solid var(--line);
}
.product-layout .product-header .brand {
  color: var(--ink);
  font: 25px/1.15 var(--title);
}
.product-header > button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
}
.product-layout:has(#reference-screen) > .page-back {
  display: none;
}
.product-layout:has(#reference-screen) .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}
.product-layout .reference-ui #reference-screen {
  min-height: 0;
}
.product-layout:has(#reference-screen) #app {
  padding: 0;
}
.product-layout #toast {
  bottom: calc(95px + env(safe-area-inset-bottom));
  background: #2a1a11;
}
.reference-ui:has(.reference-create-fab) #reference-screen {
  padding-bottom: calc(165px + max(0px,var(--app-bottom-inset)));
}
.reference-ui .private-list {
  --surface: var(--white);
  --surface2: var(--custard);
  --text: var(--ink);
  --mint: #3e542d;
  --selected: var(--custard);
  --selected-line: var(--line);
  --control-line: var(--line);
}
.reference-ui .private-list .my-tabs {
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-block: 14px;
  padding-bottom: 10px;
}
.reference-ui .private-list .my-tabs button {
  min-height: 40px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 13px/1.2 var(--title);
}
.reference-ui .private-list .my-tabs button.active,
.reference-ui .private-list .personal-filters .chip.active {
  border-color: transparent;
  background: var(--yellow);
  color: var(--ink);
}
.reference-ui .private-list .personal-filters .chip {
  border-radius: 999px;
}
.reference-ui .private-list .search-bar {
  min-height: 52px;
  border-color: var(--ink);
  border-radius: 16px;
}
.reference-ui .private-list .search-bar input {
  padding-block: 13px;
  font-size: 14px;
}
.reference-ui .private-list .search-bar button {
  border: 0;
  background: none;
}
.reference-ui .private-list .feed-toolbar {
  margin-top: 15px;
  padding-bottom: 10px;
}
.reference-ui .private-list .sort-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
}
.reference-ui .private-list .sort-tabs button.active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reference-ui .private-list .place-row {
  padding-top: 16px;
}
.reference-ui .private-list .place-thumb {
  width: clamp(54px,17vw,76px);
  height: clamp(54px,17vw,76px);
}
.reference-ui .private-list .place-summary {
  gap: 10px;
  min-height: 62px;
}
.reference-ui .private-list .place-row h2 {
  font-size: 19px;
}
.reference-ui .private-list :is(.place-actions button,.feed-visit-switch) {
  border: 0;
  background: none;
}
.reference-ui .private-list .place-actions {
  flex-wrap: wrap;
}
.reference-ui #reference-screen .stat {
  color: var(--ink);
}
.reference-ui #reference-screen .stat:where(a):hover {
  border-color: #bba373;
}
.reference-ui [hidden] {
  display: none !important;
}
.reference-ui .reference-signin {
  margin: 22px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
}
.reference-ui .reference-signin .primary {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
}
.reference-ui .reference-home-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.reference-ui .reference-home-tools .pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
}
.reference-ui .nearby-letter {
  position: relative;
  overflow: hidden;
}
.reference-ui .nearby-letter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reference-ui .nearby-letter img.failed {
  display: none;
}
.reference-ui #reference-nearby > .muted {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.reference-ui .list .bookmark svg {
  margin: auto;
}
.reference-ui .reference-map-label {
  display: grid;
  gap: 8px;
  max-width: 350px;
  padding: 8px 0 12px;
}
.reference-ui .reference-map-label select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.reference-ui .detail #hours-detail {
  margin-top: 10px;
}
.reference-ui .analysis .stat strong {
  font-size: clamp(20px,7vw,33px);
}
.product-layout #sheet,
#sheet[data-reference-sheet] {
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%,520px);
  max-width: none;
  max-height: min(90dvh,850px);
  border: 0;
  border-radius: 28px 28px 0 0;
  background: #fbf9f0;
  color: #2a1a11;
  box-shadow: none;
  --surface: #fbf9f0;
  --text: #2a1a11;
  --muted: #716254;
  --line: #eae2d2;
  --control-line: #eae2d2;
}
.product-layout #sheet::backdrop,
#sheet[data-reference-sheet]::backdrop {
  background: #392915b0;
  backdrop-filter: none;
}
.product-layout #sheet .sheet-head,
#sheet[data-reference-sheet] .sheet-head {
  padding: 27px 20px 7px;
}
.product-layout #sheet .sheet-head h2,
#sheet[data-reference-sheet] .sheet-head h2 {
  color: #2a1a11;
  font: 25px/1.15 Jua,"Matzip UI",Pretendard,sans-serif;
}
.product-layout #sheet .sheet-body,
#sheet[data-reference-sheet] .sheet-body {
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
}
.product-layout #sheet .primary,
#sheet[data-reference-sheet] .primary {
  background: #2a1a11;
  color: white;
  border: 0;
  border-radius: 18px;
  min-height: 54px;
  font: 20px/1.15 Jua,"Matzip UI",Pretendard,sans-serif;
}
#sheet[data-reference-sheet] .sheet-head::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 40px;
  height: 4px;
  transform: translateX(-50%);
  background: #ded3bd;
  border-radius: 8px;
}
#sheet[data-reference-sheet] :is(label,legend) {
  color: #2a1a11;
  font: 16px/1.2 Jua,"Matzip UI",Pretendard,sans-serif;
}
#sheet[data-reference-sheet] :is(input:not([type=radio]),select,textarea) {
  background: #fffefd;
}
#sheet[data-reference-sheet] .search-bar > input {
  padding: 6px 0;
  border: 0;
}

#sheet[data-reference-sheet=registration-confirm] .sheet-head {
  align-items: flex-start;
  gap: 10px;
}
#sheet[data-reference-sheet=registration-confirm] .sheet-head > div {
  min-width: 0;
  padding-top: 3px;
}
#sheet[data-reference-sheet=registration-confirm] .sheet-head :is(h2,p) {
  overflow-wrap: anywhere;
  word-break: keep-all;
}
#sheet[data-reference-sheet=registration-confirm] .sheet-head h2[tabindex="-1"]:focus {
  outline: none;
}
#sheet[data-reference-sheet=registration-confirm] .sheet-head p {
  margin-top: 7px;
  line-height: 1.5;
}
#sheet[data-reference-sheet=registration-confirm] .close-button {
  flex: none;
  width: 40px;
  height: 40px;
  background: #fffefd;
  color: #2a1a11;
}
#reference-confirm-registration .registration-options {
  min-width: 0;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}
#reference-confirm-registration legend {
  margin-bottom: 9px;
  padding: 0;
}
.registration-choice-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
#reference-confirm-registration .registration-choice {
  position: relative;
  display: grid;
  margin: 0;
  cursor: pointer;
}
#reference-confirm-registration .registration-choice input[type=radio] {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.registration-choice-card {
  display: grid;
  align-content: start;
  min-height: 106px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffefd;
}
.registration-choice-card strong {
  margin-top: 8px;
  font-weight: 400;
}
.registration-choice-card small {
  margin-top: 4px;
  color: var(--muted);
  font: 12px/1.35 "Matzip UI",Pretendard,system-ui,sans-serif;
  word-break: keep-all;
}
.registration-choice-symbol,
.registration-choice-check {
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.registration-choice-symbol {
  width: 30px;
  height: 30px;
  background: #faefca;
}
.registration-choice input[value=visited] + .registration-choice-card .registration-choice-symbol {
  background: #e0ebd3;
}
.registration-choice-symbol svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.registration-choice-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  visibility: hidden;
  background: #f4c442;
}
.registration-choice-check svg {
  width: 13px;
  height: 13px;
}
.registration-choice input:checked + .registration-choice-card {
  border-color: #a17b26;
  background: #faefca;
}
.registration-choice input:checked + .registration-choice-card .registration-choice-check {
  visibility: visible;
}
.registration-choice input:focus-visible + .registration-choice-card {
  outline: 2px solid #865b20;
  outline-offset: 2px;
}
#reference-confirm-registration .primary {
  margin-top: 16px;
}
.reference-ui .profile-screen > .page-intro {
  padding: 0 0 18px;
}

.reference-ui .profile-screen .people-handle {
  color: var(--muted);
  margin-top: 5px;
}

.reference-ui .profile-screen .people-counts {
  margin-top: 16px;
}

.reference-ui .profile-screen :is(.people-counts,.people-actions) > :is(button,a) {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
}

.reference-ui .profile-screen .people-counts strong {
  color: var(--ink);
}

.reference-ui .profile-screen > .wiki-section {
  margin: 12px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.reference-ui .profile-screen :is(.personal-links,.personal-stats),
.reference-ui .profile-screen .wiki-section > p {
  margin-top: 8px;
}

.reference-ui .profile-screen .personal-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.reference-ui .profile-screen .personal-links li {
  padding: 0;
}

.reference-ui .diary-byline a {
  color: var(--ink);
}
.reference-ui .analysis-review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.reference-ui .analysis-review-actions button {
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
}
.reference-ui .analysis-rows .analysis-visit {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
}
.reference-ui .analysis-visit .analysis-one-line {
  grid-column: 1 / -1;
}
.reference-ui .analysis-one-line small {
  margin-bottom: 3px;
}
.reference-ui button.analysis-one-line {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.reference-ui .reference-home-nickname {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.reference-ui .reference-home-nickname h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.reference-ui .reference-home-nickname button {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.reference-ui .profile-screen .reference-home-tabs {
  margin-top: 8px;
}
.reference-ui .profile-screen [data-home-tab="collections"] {
  grid-column: 1 / -1;
}
.reference-ui #profile-restaurant-rows .muted {
  padding: 12px 0;
}
