/* 공통 스타일 (T027). PC와 모바일 모두 맞춘다(4.2). 지원 브라우저는 Chrome·Safari 최신 버전(OPS-06). */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f8;
  --color-text: #1f2328;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #ff5544;
  --color-primary-text: #ffffff;
  --color-danger: #d92d20;
  --radius: 8px;
  --header-height: 56px;
  --content-width: 960px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

* {
  box-sizing: border-box;
}

/* display를 정한 요소(.button 등)에도 hidden이 먹게 한다 */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px;
}

/* 상단 메뉴 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-header__inner {
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__logo {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
}

.site-header__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__nickname {
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 종 아이콘 (알림 목록은 notifications.js, T114) */
.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.bell:hover {
  background: var(--color-surface);
}

.bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.bell__badge[hidden] {
  display: none;
}

/* 버튼 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-text);
}

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

/* 하단 (개인정보 처리방침 링크는 모든 화면에, 4.6) */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 16px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  font-weight: 600;
}

/* 오류·안내 알림 (api.js의 Api.toast) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #1f2328;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 오류 화면 (static/error, T136) */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60vh;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  color: var(--color-primary);
}

.error-page__title {
  margin: 0;
  font-size: 22px;
}

.error-page__desc {
  margin: 0;
  color: var(--color-muted);
}

.error-page__id {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  :root {
    --header-height: 52px;
  }

  main {
    padding: 16px 12px;
  }

  .site-header__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .site-header__menu {
    gap: 8px;
  }

  .site-header__nickname {
    display: none;
  }

  .button {
    padding: 0 10px;
  }
}

/* 가입·로그인 (T038, T039) */
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 24px auto;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.auth-card h1 {
  margin: 0 0 20px;
  font-size: 24px;
}

.auth-card .button--block {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.auth-links {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.steps {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 13px;
}

.steps li {
  flex: 1;
  padding-top: 6px;
  border-top: 3px solid var(--color-border);
}

.steps li.is-current,
.steps li.is-done {
  border-top-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px; /* iOS Safari가 확대하지 않게 */
}

.field input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
}

.field__row {
  display: flex;
  gap: 8px;
}

.field__row input {
  flex: 1;
  min-width: 0;
}

.field__row .button {
  min-height: 44px;
  white-space: nowrap;
}

.field__hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.form-message {
  margin: 0 0 16px;
  font-size: 14px;
}

.form-message--error {
  color: var(--color-danger);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.captcha {
  margin-bottom: 16px;
}

/* 로그인 연장 안내 (session.js, T040) */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
}

.dialog {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.dialog h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.dialog p {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.field__hint--spaced {
  margin-bottom: 16px;
}

/* 블로그 목록·만들기·첫 화면·관리 (T054~T056) */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 24px;
}

.page-head h1 a {
  text-decoration: none;
}

.search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search input,
.field textarea,
.field__row input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.field textarea {
  width: 100%;
  resize: vertical;
}

.field__prefix {
  align-self: center;
  color: var(--color-muted);
}

.field__label {
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.tabs[hidden] {
  display: none;
}

.tabs__item {
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  color: var(--color-muted);
  cursor: pointer;
}

.tabs__item.is-current {
  border-bottom-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

.tabs__item[hidden] {
  display: none;
}

.list-caption:empty {
  display: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--color-primary);
}

.blog-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  margin: auto 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 12px;
  line-height: 20px;
}

.badge--muted {
  background: var(--color-surface);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.badge--danger {
  background: var(--color-danger);
}

.badge[hidden] {
  display: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0 8px;
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 12px;
  line-height: 22px;
}

.empty {
  padding: 32px 0;
  text-align: center;
  color: var(--color-muted);
}

.empty[hidden] {
  display: none;
}

.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
}

.pager__item {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font: inherit;
  cursor: pointer;
}

.pager__item.is-current {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.pager__item:disabled:not(.is-current) {
  opacity: 0.4;
  cursor: default;
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
}

.form-card--flat {
  margin: 0;
}

.radio-group {
  border: 0;
  padding: 0;
}

.radio-group legend {
  font-weight: 600;
  margin-bottom: 4px;
}

.radio-group__hint {
  color: var(--color-muted);
}

.notice {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.notice--danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.notice[hidden],
.blocked[hidden],
.share-box[hidden],
.tab-panel[hidden],
#blog[hidden],
#admin[hidden] {
  display: none;
}

.blog-hero {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-hero__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-hero__title h1 {
  margin: 0;
}

.blog-hero__desc {
  white-space: pre-line;
}

.blog-hero__meta,
.blog-hero__state {
  color: var(--color-muted);
  font-size: 14px;
}

.blog-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.blog-hero__actions [hidden] {
  display: none;
}

.share-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.share-box h2,
.blog-posts h2,
.my-section h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.my-section {
  margin-bottom: 32px;
}

.my-section[hidden] {
  display: none;
}

.blocked {
  padding: 48px 0;
  text-align: center;
}

.request-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.request-list__who {
  display: flex;
  flex-direction: column;
}

.request-list__date {
  color: var(--color-muted);
  font-size: 13px;
}

.request-list__actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 600px) {
  .site-header__nickname {
    display: none;
  }

  .site-header__menu {
    gap: 6px;
  }

  .site-header__menu .button {
    padding: 0 10px;
  }
}

/* 대표 이미지 (BLG-01) */
.blog-card__cover {
  width: calc(100% + 32px);
  margin: -16px -16px 4px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.blog-cover {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 8px;
}

/* 대표 이미지 오른쪽 아래 블로그 관리 버튼 */
.blog-cover-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.blog-cover-wrap .blog-cover {
  margin-top: 0;
}

.blog-cover-wrap.has-cover .blog-cover-wrap__manage {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--color-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.cover-preview {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 4px 0 8px;
  border-radius: var(--radius);
}

/* 블로그 글 목록 (T071) */
.blog-posts {
  margin-top: 24px;
}

.blog-posts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.blog-posts__tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.blog-posts__tools select,
.post-edit__row select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font: inherit;
  font-size: 14px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list--notice:empty {
  display: none;
}

/* 글 목록은 칸으로 나눈다: 카테고리 · 제목 · 글쓴이 · 날짜 · 조회 · 좋아요 */
.post-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px 90px 52px 52px;
  align-items: center;
  column-gap: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.post-row--head {
  border-top: 2px solid var(--color-text);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.post-row--head > span {
  padding: 8px 0;
}

.post-row--head .post-row__cell-title {
  text-align: center;
}

.post-row--notice {
  background: var(--color-surface);
}

.post-row__category {
  padding-left: 8px;
  overflow: hidden;
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 제목 칸 전체가 링크라 줄 어디를 눌러도 들어간다 */
.post-row__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.post-row__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row__title:hover .post-row__text {
  text-decoration: underline;
}

.post-row__comments {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 13px;
}

/* 제목에 마우스를 올리면 첫 사진 (BRD-05, 썸네일은 따로 만들지 않고 CSS로 줄임) */
.post-row__thumb {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 5;
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.post-row__title:hover .post-row__thumb {
  display: block;
}

.post-row__author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row__break {
  display: none;
}

.post-row__author,
.post-row__date,
.post-row__num {
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

/* 휴대폰: 1줄은 카테고리 + 제목, 2줄은 글쓴이 · 날짜 · 조회 · 좋아요 */
@media (max-width: 600px) {
  .post-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    padding: 4px 0 10px;
  }

  .post-row--head {
    display: none;
  }

  .post-row__category {
    flex-shrink: 0;
    max-width: 30%;
    padding-left: 0;
    font-size: 12px;
  }

  .post-row__title {
    flex: 1 1 0;
    padding: 8px 0 2px;
  }

  .post-row__author,
  .post-row__date,
  .post-row__num {
    font-size: 12px;
    text-align: left;
  }

  .post-row__break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }

  .post-row__num::before {
    content: attr(data-label) " ";
  }
}

/* 글 상세 (T071) */
.post__blog {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.post__title {
  margin: 8px 0 4px;
  font-size: 28px;
}

.post__meta,
.post__counts {
  color: var(--color-muted);
  font-size: 14px;
}

.post__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.button--danger {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.post__body {
  padding: 24px 0;
  line-height: 1.8;
}

.post__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.post__body pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.post__body table {
  border-collapse: collapse;
}

.post__body th,
.post__body td {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
}

.post__body blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--color-border);
  color: var(--color-muted);
}

.post__counts {
  margin: 16px 0;
}

/* 글쓰기 (T070) */
.main--wide {
  max-width: 1100px;
}

.post-edit__blog {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-weight: 600;
}

.post-edit__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.post-edit__title {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
}

.post-edit__count {
  text-align: right;
  margin-top: 4px;
}

.post-edit__count.is-over {
  color: var(--color-danger);
}

.post-edit__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.post-edit__actions .field__hint {
  margin-right: auto;
}

.field input[type="file"] {
  font: inherit;
  font-size: 14px;
}

/* 좋아요·댓글 (T071) */
.like-button.is-on {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.comments {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.comments__title {
  font-size: 18px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.comment-form__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.comment-form__foot .field__hint {
  margin: 0 auto 0 0;
}

.comment-form--inline {
  margin-top: 8px;
}

.comment-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.comment-list--replies {
  margin: 0 0 0 24px;
}

.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-list--replies .comment:last-child {
  border-bottom: none;
}

.comment__head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.comment__meta {
  color: var(--color-muted);
  font-size: 13px;
}

.comment__text {
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment--deleted > .comment__text {
  color: var(--color-muted);
}

.comment__mention {
  color: var(--color-primary);
  font-weight: 600;
}

.comment__actions {
  display: flex;
  gap: 10px;
}

.comment__action {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.comment__action:hover {
  color: var(--color-text);
}

#comment-more {
  margin-top: 12px;
}

/* 카테고리 관리 (T066) */
.category-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.category-list__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.category-list__item input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

/* 입력 창 (form-dialog.js, T083, T084) */
.dialog--form {
  max-width: 420px;
}

.dialog--form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.dialog--form textarea,
.dialog--form select,
.dialog--form input {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.button--text {
  border-color: transparent;
  background: none;
  color: var(--color-muted);
}

/* 블로그 관리: 멤버·신고·블랙리스트 탭 (T083) */
.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.admin-list__sub {
  margin: 4px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.admin-list__body {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--color-surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.admin-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-list__perms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 14px;
}

.badge--warn {
  background: #fff1f0;
  color: var(--color-danger);
}

.admin-subhead {
  margin: 24px 0 4px;
  font-size: 16px;
}

/* ---------- 계정 찾기·내 정보 (US6) ---------- */
.auth-card--wide {
  max-width: 560px;
}

.found-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.found-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.found-list__date {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-muted);
}

.found-target {
  margin: 0 0 16px;
  font-weight: 600;
}

.profile-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-photo__img,
.profile-photo__empty {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface, #f3f3f3);
}

.profile-photo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-photo__actions .field__hint {
  width: 100%;
  margin: 0;
}

.me-fixed {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 12px;
  margin: 0 0 4px;
}

.me-fixed dt {
  color: var(--color-muted);
}

.me-fixed dd {
  margin: 0;
  word-break: break-all;
}

.me-section {
  margin: 32px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 17px;
}

.found-result {
  margin-top: 20px;
}

/* ---------- 알림 사이드바 (US8) ---------- */
.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.2);
}

.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(380px, 100vw);
  background: var(--color-bg, #fff);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
}

.notif-backdrop[hidden],
.notif-panel[hidden] {
  display: none;
}

.notif-panel__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 12px 8px 16px;
}

.notif-panel__head h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
}

.notif-panel__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.notif-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
}

.notif-tabs__item {
  flex: none;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 14px;
}

.notif-tabs__item.is-current {
  border-bottom-color: var(--color-primary);
  color: inherit;
  font-weight: 600;
}

.notif-list {
  flex: 1;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.notif-item {
  border-bottom: 1px solid var(--color-border);
}

.notif-item--unread {
  background: #fff4f2;
}

.notif-item__body {
  display: block;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}

.notif-item__message {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
}

.notif-item--unread .notif-item__message {
  font-weight: 600;
}

.notif-item__time {
  font-size: 12px;
  color: var(--color-muted);
}

.notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--color-muted);
}

.notif-empty[hidden],
.notif-more[hidden] {
  display: none;
}

.notif-more {
  margin: 12px 16px;
}

/* ---------- 메인 피드·통합 검색·프로필 (T110) ---------- */

a.site-header__nickname {
  color: inherit;
  text-decoration: none;
}

.sub-tabs {
  display: flex;
  gap: 4px;
  margin: -8px 0 12px;
}

.sub-tabs .is-current {
  color: var(--color-text);
  font-weight: 600;
}

.feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.feed-item__body {
  flex: 1;
  min-width: 0;
}

.feed-item__title {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.feed-item__title:hover {
  text-decoration: underline;
}

.feed-item__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.feed-item__meta a {
  color: inherit;
}

.feed-item__blog {
  font-weight: 600;
}

.feed-item__thumb {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--radius);
  object-fit: cover;
}

.recent {
  margin: -8px 0 16px;
}

.recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
}

.chip__word,
.chip__remove {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
}

.chip__word {
  padding: 4px 4px 4px 12px;
}

.chip__remove {
  padding: 4px 10px 4px 4px;
  color: var(--color-muted);
}

.user-hit {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.user-row__photo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface);
}

.user-row__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-row__bio {
  font-size: 13px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
}

.profile-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.profile-head__body {
  flex: 1;
  min-width: 0;
}

.profile-head__bio {
  margin: 0 0 6px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.profile-head__meta {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.me-section-tabs {
  margin-top: 32px;
}

@media (max-width: 600px) {
  .profile-head {
    flex-direction: column;
    gap: 12px;
  }

  .feed-item__thumb {
    width: 56px;
    height: 56px;
  }
}

/* ---------- 메인 관리자 화면 (T126) ---------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.admin-bar {
  display: inline-block;
  height: 8px;
  margin-left: 6px;
  border-radius: 4px;
  background: var(--color-primary, #3b82f6);
  vertical-align: middle;
}

.admin-detail {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
