/* Controls share an explicit height; native selects reserve room for their chevron. */
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 24px !important;
}
.filters .filter-control {
  height: 42px;
  min-height: 42px;
  margin: 0;
  box-sizing: border-box;
  font-size: 13px !important;
  line-height: 1.2;
  border: 1px solid #e1e3e5 !important;
  border-radius: 9px !important;
  padding: 0 14px !important;
}
select.field {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6268' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 40px;
}
.filters select.filter-control {
  width: auto;
  max-width: none;
  padding: 0 40px 0 13px !important;
}
.flame-tab {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.flame-tab .navicon {
  width: 17px;
  height: 19px;
  flex-shrink: 0;
}
.flame-tab.on {
  color: #cf503c;
}
.bottom {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.topnav [data-action='notifications'] {
  position: relative;
}
.topnav [data-action='notifications']:not([data-unread=''])::after {
  content: attr(data-unread);
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 16px;
  border-radius: 12px;
  background: #cf503c;
  color: white;
  padding: 1px 4px;
  font-size: 10px;
  line-height: 14px;
}
#modalRoot .notification-panel {
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: 100%;
  max-height: calc(100dvh - 90px);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 16px 48px #2222;
}
.notification-overlay {
  background: rgba(30, 35, 40, 0.08);
  align-items: flex-start;
  justify-content: flex-end;
}
.notification-panel .modal-header {
  padding-bottom: 8px;
}
.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eceef0;
  flex-shrink: 0;
}
.notification-toolbar span {
  font-size: 12px;
  color: #7a7f85;
}
.notification-toolbar .btn {
  min-height: 40px;
  flex-shrink: 0;
}
.notification-panel .notification-list {
  padding: 0;
}
.notification-panel .feeditem {
  padding: 17px 22px;
}
.notification-panel .navbutton {
  white-space: normal;
  line-height: 1.6;
  padding: 0;
  overflow-wrap: anywhere;
}
.sos-heading h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sos-heading .navicon {
  width: 25px;
  color: #cf503c;
}
.sos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 12px;
}
.sos-filters .field {
  width: auto;
}
.sos-filters .field,
.sos-filters .btn {
  min-height: 42px;
}
.sos-hint {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 13px;
  color: #777c82;
  border-bottom: 1px solid #eee;
}
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.region-tags .tag {
  white-space: normal;
  overflow-wrap: anywhere;
}
.sos-badge {
  background: #fff0eb;
  color: #b64734;
}
.sos-badge.resolved {
  background: #edf4ee;
  color: #42664c;
}
.region-section {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #ede1dc;
  border-radius: 12px;
  background: #fffaf7;
}
.region-section h3 {
  margin: 0;
  font-size: 14px;
}
.region-setting {
  gap: 12px;
}
.region-setting small {
  display: block;
  max-width: 320px;
  margin-top: 6px;
  color: #7a7f85;
  line-height: 1.7;
}
.region-input {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.region-input .field {
  min-width: 0;
  flex: 1;
}
.region-input .btn {
  flex-shrink: 0;
}
.region-chip {
  border: 1px solid #e7d4cb;
  background: #fff5f0;
  color: #8d4538;
  border-radius: 18px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.site-footer {
  max-width: 1128px;
  margin: 32px auto 0;
  padding: 28px 4px 40px;
  border-top: 1px solid #ececec;
  color: #8a8f95;
  font-size: 13px;
  line-height: 1.6;
}
.footer-brand {
  color: #26292d;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.site-footer a {
  color: #4f545a;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-company summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8a8f95;
  cursor: pointer;
  list-style: none;
}
.footer-company summary::-webkit-details-marker {
  display: none;
}
.footer-company summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.footer-company[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.footer-company p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #9a9ea3;
}
.site-footer .copyright {
  margin: 14px 0 0;
  font-size: 12px;
  color: #a5a9ad;
}
.publish-policy {
  font-size: 12px;
  line-height: 1.8;
  color: #767b82;
  margin-top: 18px;
}
.publish-policy a {
  color: #a54b3b;
  text-underline-offset: 3px;
}
@media (max-width: 1200px) {
  .site-footer {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media (max-width: 650px) {
  .filters {
    padding: 13px 17px !important;
    gap: 7px;
  }
  .filters .filter-control {
    height: 40px;
    min-height: 40px;
    font-size: 12px !important;
  }
  .filters select.filter-control {
    padding-right: 33px !important;
    background-position: right 10px center;
  }
  .filters button.filter-control {
    padding: 0 12px !important;
  }
  .bottom {
    display: grid;
  }
  .layout {
    padding-bottom: 0;
  }
  .site-footer {
    margin: 0;
    padding: 32px 24px calc(100px + env(safe-area-inset-bottom));
    background: #fff;
  }
  .footer-brand {
    font-size: 24px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    font-size: 14px;
  }
  .notification-overlay {
    padding: 72px 12px 12px;
  }
  #modalRoot .notification-panel {
    width: 100%;
    max-height: calc(100dvh - 80px);
  }
  .sos-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .sos-heading h1 {
    font-size: 20px;
  }
  .sos-heading .btn {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 12px;
  }
  .sos-filters,
  .sos-hint {
    padding-left: 17px;
    padding-right: 17px;
  }
  .region-setting small {
    max-width: 210px;
  }
}

.site-footer .privacy-link {
  font-weight: 750;
}

/* Dialogs share separated header, scrollable fields and persistent actions. */
body.modal-open {
  overflow: hidden;
}
#modalRoot .overlay {
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
#modalRoot .modal:not(.notification-panel) {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  min-width: 0;
}
.modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-shrink: 0;
  padding: 20px 24px 12px;
}
.modal-header h2 {
  flex: 1;
  min-width: 0;
  margin: 6px 0 0;
  font-size: 21px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.modal-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #656b72;
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}
.modal-body {
  min-height: 0;
  padding: 8px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-body > :first-child {
  margin-top: 0;
}
.modal-body > :last-child {
  margin-bottom: 0;
}
.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  margin: 18px 0 8px;
}
.modal-body .field {
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.modal-body textarea {
  min-height: 120px;
  resize: vertical;
}
.modal > .actions {
  flex-shrink: 0;
  margin: 0;
  padding: 16px 24px;
  justify-content: flex-end;
  border-top: 1px solid #eceef0;
  background: #fff;
}
.modal > .actions .btn {
  min-width: 76px;
  min-height: 44px;
}
.modal > .actions .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
#regionPicker {
  display: grid;
  gap: 18px;
  min-width: 0;
}
#regionPicker .footnote,
#regionPicker .region-tags {
  margin: 0;
}
.modal-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.modal-field label {
  margin: 0;
}
.region-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.region-input .btn {
  min-width: 58px;
  min-height: 44px;
}
.region-chip {
  max-width: 100%;
  min-height: 36px;
  text-align: left;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#modalRoot .notification-overlay {
  padding: 74px max(16px, calc((100vw - 1128px) / 2)) 16px;
}
@media (max-width: 650px) {
  .modal-header {
    padding: 16px 18px 10px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .modal-body {
    padding: 8px 18px 20px;
  }
  .modal-body .field {
    font-size: 16px;
  }
  .modal > .actions {
    padding: 12px 18px;
  }
  #modalRoot .notification-overlay {
    padding: 68px 12px 12px;
  }
}

/* Long user content must wrap within its own column, not widen the page. */
.profilehead > div {
  min-width: 0;
  flex: 1;
}
.profilehead .avatar {
  flex-shrink: 0;
}
.profilehead h2 {
  overflow-wrap: anywhere;
}
.setting {
  gap: 12px;
  min-width: 0;
}
.setting > span {
  flex: 1;
  min-width: 0;
}
.setting > label {
  flex-shrink: 0;
}
.setting .btn {
  max-width: 65%;
  flex-shrink: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.setting .field {
  width: min(175px, 60%);
  min-width: 0;
}
.region-setting small {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sos-filters .btn {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
#fileInput {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  font-size: 13px;
}

.toast {
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* Login · business verification */
.auth-page .auth-buttons {
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
  max-width: 360px;
}
.auth-page .auth-buttons .btn {
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.auth-page .auth-kakao {
  background: #fee500;
  border-color: #fee500;
  color: #191919;
}
.auth-page .auth-naver {
  background: #03c75a;
  border-color: #03c75a;
  color: #fff;
}
.auth-page .verify-privacy {
  margin-top: 16px;
  line-height: 1.6;
}
.auth-page .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  font-weight: 400;
  line-height: 1.55;
}
.auth-page .consent input {
  margin-top: 4px;
  flex: none;
}
.guest-banner {
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 12px;
}
.verified-badge {
  color: #438269;
}
.mock-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px dashed #d9c3b6;
  background: #fffaf6;
  line-height: 1.55;
}

/* Visitor post teaser: text → increasingly blurred words → blurred ghost lines → login prompt. */
.teaser-reading {
  position: relative;
}
.teaser-body {
  margin-bottom: 0;
}
.teaser-body .fade-1 {
  filter: blur(0.4px);
  opacity: 0.85;
}
.teaser-body .fade-2 {
  filter: blur(1px);
  opacity: 0.7;
}
.teaser-body .fade-3 {
  filter: blur(1.8px);
  opacity: 0.55;
}
.teaser-body .fade-4 {
  filter: blur(2.6px);
  opacity: 0.4;
}
/* Blurred lines that read like the post continues. The words come from CSS, not the page, so
   nothing hidden is sent to visitors or crawlers and screen readers skip it (aria-hidden). */
.teaser-ghost {
  margin-top: 2px;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 95%);
  mask-image: linear-gradient(#000 20%, transparent 95%);
  pointer-events: none;
  user-select: none;
}
.teaser-ghost p {
  margin: 0;
  color: var(--ink, #202124);
  font-size: inherit;
  line-height: 2;
  max-height: 4em;
  overflow: hidden;
}
.teaser-ghost p::before {
  content: '그래서 결국 어떻게 됐냐면요, 다음 날 다시 오셔서 사장님 어제는 제가 좀 심했다고 하시더라고요. 장사하다 보면 이런 날도 있고 저런 날도 있는데 오늘 같은 날은 정말';
}
.teaser-ghost .ghost-1 {
  filter: blur(3px);
  opacity: 0.55;
}
.teaser-ghost .ghost-2 {
  filter: blur(4.5px);
  opacity: 0.45;
}
.teaser-ghost .ghost-2::before {
  content: '다들 비슷한 경험 있으시죠? 저만 그런 거 아니라고 해 주세요. 손님 앞에서는 웃었지만 마감하고 나니까 괜히 마음이 쓰여서 한참을 앉아 있었어요. 내일은 좀 나아지겠죠';
}
.teaser-ghost .ghost-3 {
  filter: blur(6px);
  opacity: 0.35;
}
.teaser-ghost .ghost-3::before {
  content: '댓글로 사장님들 생각도 들려주세요. 이런 손님 응대는 어떻게 하시는지 정말 궁금합니다.';
}
/* The prompt rises out of the faded lines instead of sitting under a hard edge. */
.teaser-cta {
  position: relative;
  display: grid;
  gap: 14px;
  margin: -46px 0 4px;
  padding: 58px 4px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #fff 52px);
  text-align: center;
}
.teaser-cta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #202124);
}
.teaser-cta p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #85888d);
}
.teaser-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
}
@media (min-width: 560px) {
  .teaser-cta .btn {
    justify-self: center;
    width: auto;
    min-width: 240px;
  }
}
.status-tag {
  margin-left: 4px;
  background: #f3f3f2;
  color: #6f7276;
  font-weight: 600;
}
.photos-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
  padding: 7px 10px;
  border: 1px dashed #e2e3e4;
  border-radius: 8px;
  color: var(--muted, #85888d);
  font-size: 12px;
}
.photos-locked .navicon {
  width: 16px;
  height: 16px;
}
/* Formerly inline styles (CSP forbids style attributes). */
.sidebar-note {
  padding: 16px;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.profile-name {
  margin: 0 0 6px;
}
.profile-industry {
  max-width: 175px;
}

/* Layout: one write entry per screen size (header on desktop, bottom bar on phones),
   categories only in the feed tabs, and focused screens without the side column. */
.topaction {
  display: flex;
  margin-left: 6px;
}
.topaction .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.topaction .navicon {
  width: 16px;
  height: 16px;
}
body[data-view='login'] .topaction,
body[data-view='write'] .topaction {
  visibility: hidden;
}
.sidebar {
  padding-top: 10px;
}
.sidebar-note {
  margin: 10px 4px 0;
  padding: 14px 12px 6px;
  border-top: 1px solid #f1f1f1;
  line-height: 1.6;
}
.aside-note {
  margin: 0;
  padding: 0 16px 16px;
  color: #9a9da1;
  font-size: 12px;
  line-height: 1.5;
}
.heading {
  padding-bottom: 6px;
}
.heading .sub {
  margin-top: 4px;
}
.filters {
  padding: 10px 24px !important;
  gap: 6px;
}
.filters .filter-control {
  height: 36px;
  min-height: 36px;
}
.filter-refresh {
  margin-left: auto;
  width: 36px;
  height: 36px;
  color: #85888d;
}
.filter-refresh .navicon {
  width: 18px;
  height: 18px;
}
@media (min-width: 1031px) {
  body[data-view='write'] .layout,
  body[data-view='edit'] .layout,
  body[data-view='login'] .layout,
  body[data-view='verify'] .layout {
    grid-template-columns: 185px minmax(0, 1fr);
    max-width: 920px;
  }
  body[data-view='write'] .aside,
  body[data-view='edit'] .aside,
  body[data-view='login'] .aside,
  body[data-view='verify'] .aside {
    display: none;
  }
}
@media (max-width: 650px) {
  .topaction {
    display: none;
  }
  .filters {
    padding: 8px 16px !important;
  }
  .filters .filter-control {
    height: 34px;
    min-height: 34px;
  }
  .filters button.filter-refresh {
    flex: none;
    width: 34px;
    height: 34px;
  }
}

/* One control per job on each screen (2026-11-18 layout review). */
/* Visitors have no notifications: the bell only led to login, which the header/bottom bar has. */
body[data-auth='guest'] .topnav [data-action='notifications'] {
  display: none;
}
/* The sidebar already has 인기글 on tablets and desktops; the flame tab stays on phones. */
@media (min-width: 651px) {
  #app .tabs .flame-tab {
    display: none;
  }
}
/* Focused screens carry their own policy links; the site footer below would repeat them. */
body[data-view='login'] .site-footer,
body[data-view='signup'] .site-footer,
body[data-view='welcome'] .site-footer,
body[data-view='withdraw'] .site-footer,
body[data-view='verify'] .site-footer {
  display: none;
}
/* Phones use full-width white panels; a grey page below short content looks unfinished. */
@media (max-width: 650px) {
  :root,
  body {
    background: #fff;
  }
}
/* Phones: like Blind, the company footer sits only at the very end of the home feed. Other
   screens reach the terms and privacy policy from the login screen and 계정 관리. */
@media (max-width: 650px) {
  body:not([data-view='home']):not([data-view='popular']) .site-footer {
    display: none;
  }
  /* The footer used to reserve room for the fixed bottom bar; without it the page does. */
  body:not([data-view='home']):not([data-view='popular']) .layout {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Industry picker: a field-like button and a dialog of tappable industries. */
.industry-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.industry-picker.is-empty .industry-value {
  color: #9a9da1;
}
/* Same chevron as the native selects, so every dropdown looks alike. */
.industry-caret {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: -3px;
  font-size: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6268' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat center;
}
.profile-industry-field .industry-picker {
  min-width: 175px;
}
.industry-modal {
  width: min(560px, calc(100vw - 24px));
}
.industry-modal .modal-body {
  max-height: min(62vh, 560px);
  overflow: auto;
}
.industry-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 10px;
  background: #fff;
}
.industry-group h3 {
  margin: 14px 0 8px;
  font-size: 13px;
  color: #6f7276;
}
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-chip {
  padding: 7px 12px;
  border: 1px solid #e3e5e7;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #3e4247;
  cursor: pointer;
}
.industry-chip:hover {
  border-color: var(--accent, #d96552);
}
.industry-chip.on {
  border-color: var(--accent, #d96552);
  background: var(--accent-wash, #fff5f2);
  color: #bc5846;
  font-weight: 650;
}
.industry-custom {
  margin-top: 16px;
}

/* Operator removal notice ("관리자 검토 후 삭제되었습니다"). */
.removed-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink, #202124);
  font-size: 16px;
}
.removed-notice p {
  margin: 0 0 6px;
}

/* Required / optional marks on forms. */
.req,
.opt {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  vertical-align: 1px;
}
.req {
  background: var(--accent-wash, #fff5f2);
  color: #bc5846;
}
.opt {
  background: #f2f3f4;
  color: #7a7e83;
}

/* 내 판: settings rows with a short hint under each label, then one link to 계정 관리. */
.my-settings {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #efefef;
}
.my-settings h3 {
  margin: 0 0 4px;
}
.my-settings .setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}
.setting-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.setting-label,
.setting-industry label {
  font-weight: 600;
  color: var(--ink, #202124);
}
.setting-text small {
  color: #8a8f95;
  font-size: 12px;
}
.setting-industry {
  display: block !important;
}
.setting-industry .setting-text {
  grid-template-columns: 1fr;
}
.setting-industry .industry-picker {
  margin-top: 4px;
}
.my-settings .btn[disabled],
.industry-picker[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.my-links {
  margin-top: 8px;
}
.my-links .account-row,
#myReports .report-list {
  width: 100%;
}
/* My reports on 계정 관리. */
.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.report-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.report-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-meta {
  grid-column: 1;
  color: #8a8f95;
  font-size: 12px;
}
.report-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f3f4;
  color: #5f6368;
}
.report-status.is-pending {
  background: #fff6e6;
  color: #a86a00;
}
.report-status.is-removed {
  background: #fdecea;
  color: #b3402e;
}
/* Report dialog: tappable reasons with a one-line explanation each. */
.report-reasons {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.report-reasons legend {
  margin-bottom: 8px;
  font-weight: 650;
}
.report-reason {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e6e7e9;
  border-radius: 12px;
  cursor: pointer;
}
.report-reason:has(input:checked) {
  border-color: var(--accent, #d96552);
  background: var(--accent-wash, #fff5f2);
}
.report-reason input {
  margin-top: 3px;
  accent-color: var(--accent, #d96552);
}
.report-reason span {
  display: grid;
  gap: 2px;
}
.report-reason small {
  color: #7a7e83;
  font-size: 12px;
  line-height: 1.45;
}
.report-detail {
  min-height: 84px;
}
.actions .btn.danger {
  background: #c8432f;
  border-color: #c8432f;
  color: #fff;
}
.label-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 18px 0 8px;
}
.label-row label {
  margin-bottom: 0;
}
.label-row + .field {
  margin-top: 6px;
}
.modal-body .report-reason {
  display: flex;
  margin: 0;
  font-weight: 400;
}
.modal-body .report-reason strong {
  font-size: 14px;
}
.modal-body .label-row {
  margin: 18px 0 8px;
}
.modal-body .label-row label,
.label-row label {
  margin: 0;
}
.modal-body .label-row + .field {
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sales-notice {
  margin-top: 10px;
  line-height: 1.6;
}
/* Banned words popup and report-ban notice */
.banned-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.banned-words .tag {
  background: #fdecea;
  color: #b3261e;
}
.ban-notice {
  border-left: 3px solid #b3261e;
}
/* Write form: the theme's `.form .field` rule hid the select chevron; restore it. */
.form select.field {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6268' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 40px;
}
/* Photo picker: a Korean button instead of the browser's "Choose Files" control. The input stays
   in the page (keyboard, screen readers, tests) but is visually hidden. */
.upload .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.upload {
  position: relative;
}
.upload .upload-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dfe2e3;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 600;
}
.upload .upload-button::before {
  content: '+';
  font-size: 17px;
  line-height: 1;
  color: #cf503c;
}
.upload .file-input:focus-visible + .upload-button {
  outline: 2px solid #cf503c;
  outline-offset: 2px;
}
.upload .file-input:disabled + .upload-button {
  cursor: default;
  color: #9a9ea3;
}
.upload .file-input:disabled + .upload-button::before {
  content: none;
}
.upload .footnote {
  margin: 10px 0 0;
}
.upload .preview:not(:empty) {
  margin-top: 12px;
}
.empty strong {
  display: block;
  color: #4a4e53;
  font-size: 15px;
  margin-bottom: 4px;
}
.empty span {
  font-size: 13px;
}
/* 404 page (server/http/response.js) */
.not-found {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 56px;
}
.not-found .btn {
  color: #fff;
  background: #cf503c;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}
/* My page tabs: on narrow phones every tab stays visible (wraps) instead of hiding off-screen. */
@media (max-width: 380px) {
  .profile .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px;
  }
  .profile .tabs .chip {
    padding: 8px 10px;
  }
}
/* SOS scope chips: 내 동네 / 전체 지역 / 다른 지역 */
.sos-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.sos-scopes .scope-chip {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e3e5e7;
  border-radius: 999px;
  background: #fff;
  color: #555a60;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sos-scopes .scope-chip.on {
  border-color: #cf503c;
  background: #fdf1ee;
  color: #b8452f;
}
.sos-hint a {
  color: #b8452f;
  text-decoration: underline;
}
/* My page activity: compact one-line rows */
.my-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0f0f0;
}
.my-list li a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  padding: 12px 2px;
  border-bottom: 1px solid #f0f0f0;
  color: inherit;
  text-decoration: none;
}
.my-list .tag {
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 1px;
}
.my-list .my-title {
  font-weight: 650;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-list .my-meta {
  font-size: 12px;
  color: #8a8e93;
}
.my-more {
  text-align: center;
  padding: 12px 0 4px;
}
.my-empty {
  padding: 28px 0;
}
/* Infinite scroll marker: loads by itself; the button stays as a manual fallback. */
.feed-more {
  padding: 18px 0 22px;
  text-align: center;
}
.feed-more .btn {
  color: #6b7076;
}
.feed-cap strong {
  display: block;
  color: #4a4e53;
  margin-bottom: 4px;
}
.feed-cap span {
  font-size: 13px;
}

/* Keep navigation targets below the sticky header without opening the keyboard. */
#commentsTitle,
#appealsTitle {
  scroll-margin-top: 80px;
}
/* An h2 for the outline; keeps the size it had as an h3. */
#commentsTitle {
  font-size: 1.17em;
  margin: 1em 0;
}

.briefing-picks {
  border-top: 1px solid var(--line, #e4e5e6);
  margin-top: 24px;
  padding-top: 24px;
}
.briefing-picks-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.briefing-picks-heading h2 {
  margin: 0;
  font-size: 16px;
}
.briefing-picks-heading > a {
  font-size: 11px;
  color: #666;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.briefing-pick {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.briefing-pick-label {
  display: block;
  font-size: 11px;
  color: #a73b29;
  margin-bottom: 8px;
}
.briefing-pick strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.briefing-picks-empty {
  font-size: 13px;
  line-height: 1.8;
  color: #767676;
  margin: 12px 0 0;
}
@media (max-width: 650px) {
}
/* "3초 가입 · 10초 인증 · 등록증 사진 0장" — shown on the guest teaser and the login screen. */
.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  width: 100%;
}
.quick-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 12px;
  background: #fdf1ee;
}
.quick-steps b {
  color: #cf503c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.quick-steps span {
  color: #5d6268;
  font-size: 12px;
  white-space: nowrap;
}

/* 오늘지도: Seoul tile map */
.mood-region-hint {
  display: block;
  margin: 0 24px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdf1ee;
  color: #b8452f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
/* One row that scrolls sideways, like the topic tabs. */
.mood-sectors {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 24px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.mood-sectors::-webkit-scrollbar {
  display: none;
}
.mood-sectors .scope-chip {
  flex: none;
  white-space: nowrap;
  scroll-snap-align: start;
}
.mood-sectors .scope-chip {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #e3e5e7;
  border-radius: 999px;
  background: #fff;
  color: #555a60;
  font-size: 13px;
  font-weight: 600;
}
.mood-sectors .scope-chip.on {
  border-color: #cf503c;
  background: #fdf1ee;
  color: #b8452f;
}
.mood-map {
  max-width: 620px;
  margin: 0 auto;
  padding: 4px 16px 0;
}
.mood-map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 10px #2c2e3122);
}
.mood-tile {
  cursor: pointer;
  outline: none;
}
.mood-tile path {
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.15s;
}
.mood-tile text {
  text-anchor: middle;
  pointer-events: none;
  fill: #3a3d41;
}
.mood-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.mood-count {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.8;
}
.mood-tile.on path,
.mood-tile:focus-visible path {
  stroke: #2c2e31;
  stroke-width: 3;
}
.mood-tile.tone-none path {
  fill: #eceeef;
}
.mood-tile.tone-none text {
  fill: #a2a6ab;
  font-weight: 600;
}
.mood-tile.tone-flat path {
  fill: #f5e3a6;
}
.mood-tile.tone-up.level-1 path {
  fill: #a9dfc0;
}
.mood-tile.tone-up.level-2 path {
  fill: #3fae7a;
}
.mood-tile.tone-down.level-1 path {
  fill: #f6ad9d;
}
.mood-tile.tone-down.level-2 path {
  fill: #dc5540;
}
.mood-tile.level-2 text {
  fill: #fff;
}
.mood-tile.is-week path {
  fill-opacity: 0.55;
}
i.tone-none,
.mood-bar.tone-none {
  background: #eceeef;
}
i.tone-flat {
  background: #f5e3a6;
}
i.tone-up.level-1 {
  background: #a9dfc0;
}
i.tone-up.level-2 {
  background: #3fae7a;
}
i.tone-down.level-1 {
  background: #f6ad9d;
}
i.tone-down.level-2 {
  background: #dc5540;
}
.mood-legend-note {
  padding: 0 16px;
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8a8e93;
}
.mood-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  padding: 14px 24px 4px;
  font-size: 12px;
  color: #6b7076;
}
.mood-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mood-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.mood-detail {
  margin: 14px 24px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f8f7;
}
.mood-detail strong {
  font-size: 16px;
}
.mood-detail p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5d6268;
}
.mood-detail .btn {
  margin-top: 10px;
}
.mood-detail-empty {
  text-align: center;
  color: #8a8e93;
  font-size: 13px;
}
.mood-bars {
  display: flex;
  height: 8px;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
}
.mood-bar {
  display: block;
}
.mood-bar.w-1 {
  flex: 1;
}
.mood-bar.w-2 {
  flex: 2;
}
.mood-bar.w-3 {
  flex: 3;
}
.mood-bar.w-4 {
  flex: 4;
}
.mood-bar.w-5 {
  flex: 5;
}
.mood-bar.w-6 {
  flex: 6;
}
.mood-bar.w-7 {
  flex: 7;
}
.mood-bar.w-8 {
  flex: 8;
}
.mood-bar.w-9 {
  flex: 9;
}
.mood-bar.w-10 {
  flex: 10;
}
.mood-note {
  padding: 14px 24px 24px;
}
/* Round write button above the phone bottom bar */
.fab {
  display: none;
}
@media (max-width: 650px) {
  .mood-region-hint {
    margin: 0 16px 12px;
  }
  .mood-sectors {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mood-legend,
  .mood-note {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mood-detail {
    margin-left: 16px;
    margin-right: 16px;
  }
  .bottom .fab {
    position: absolute;
    right: 16px;
    bottom: calc(100% + 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cf503c;
    color: #fff;
    box-shadow: 0 6px 16px #cf503c59;
  }
  .bottom .fab .navicon {
    width: 26px;
    height: 26px;
    stroke: #fff;
  }
  body.modal-open .fab {
    display: none;
  }
}
/* 오늘지도 v2: region switch, summary card, ranking */
.mood-heading {
  align-items: center;
}
.mood-regions {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: #f1f2f3;
}
.mood-regions button {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7076;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.mood-regions button.on {
  background: #fff;
  color: #2c2e31;
  box-shadow: 0 1px 3px #0000001f;
}
.mood-summary {
  margin: 0 24px 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8f5, #fdf1ee);
  border: 1px solid #f6e0da;
}
.mood-summary.is-empty {
  background: #f8f8f7;
  border-color: #eee;
}
.mood-summary-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b8452f;
  margin-bottom: 6px;
}
.mood-summary strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.mood-summary p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #5d6268;
}
.mood-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #3a3d41;
  background: #eceeef;
  vertical-align: middle;
}
.mood-chip.tone-flat {
  background: #f5e3a6;
}
.mood-chip.tone-up.level-1 {
  background: #a9dfc0;
}
.mood-chip.tone-up.level-2 {
  background: #3fae7a;
  color: #fff;
}
.mood-chip.tone-down.level-1 {
  background: #f6ad9d;
}
.mood-chip.tone-down.level-2 {
  background: #dc5540;
  color: #fff;
}
.mood-map.is-metro {
  max-width: 560px;
}
.mood-tile.is-metro path {
  stroke-width: 1.5;
}
.mood-tile.is-metro .mood-name {
  font-size: 17px;
}
.mood-tile.is-metro .mood-count {
  font-size: 15px;
}
.mood-tile[data-area='서울'].tone-none path {
  fill: #dfe2e5;
}
.mood-tile[data-area='서울'] .mood-name {
  font-size: 18px;
  font-weight: 800;
  fill: #5d6268;
}
.mood-tile[data-area='서울'].level-2 .mood-name {
  fill: #fff;
}
.mood-ranking {
  margin: 18px 24px 0;
}
.mood-ranking h2 {
  margin: 0 0 6px;
  font-size: 15px;
}
.mood-ranking ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}
.mood-ranking li {
  counter-increment: rank;
  border-bottom: 1px solid #f0f0f0;
}
.mood-ranking button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 2px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
}
.mood-ranking button::before {
  content: counter(rank);
  width: 18px;
  color: #cf503c;
  font-weight: 800;
}
.mood-rank-name {
  font-weight: 650;
}
.mood-rank-count {
  margin-left: auto;
  color: #8a8e93;
  font-size: 13px;
}
@media (max-width: 650px) {
  .mood-summary {
    margin-left: 16px;
    margin-right: 16px;
  }
  .mood-ranking {
    margin-left: 16px;
    margin-right: 16px;
  }
}
