/* Noir Skin — macOS Finder Style */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}
ul,
ol {
  list-style: none;
}

:root,
[data-theme="dark"] {
  --bg: #0d0d0f;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --accent: #34c759;
  --accent-hover: #30d158;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 12px;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Pretendard Variable",
    Pretendard, system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
  --max-w: 720px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --accent: #248a3d;
  --accent-hover: #1e7e34;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}
body.no-scroll {
  overflow: hidden;
}

.finder-window {
  width: 100%;
  max-width: 1200px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
}

.finder-titlebar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
  -webkit-user-select: none;
  user-select: none;
}
.titlebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.titlebar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.titlebar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 12px;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-close {
  background: #ff5f57;
}
.dot-minimize {
  background: #febc2e;
}
.dot-maximize {
  background: #28c840;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--border-strong);
  color: var(--text);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-btn--fill svg {
  fill: currentColor;
  stroke: none;
}

.search-form {
  display: flex;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 6px;
  transition: border-color 0.2s;
  width: 160px;
}
.search-box:focus-within {
  border-color: var(--accent);
}
.search-input {
  width: 100%;
  height: 28px;
  font-size: 12px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: transparent;
}
.search-input::placeholder {
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
  opacity: 1;
}
.search-btn {
  width: 22px;
  height: 22px;
}
.search-btn svg {
  width: 14px;
  height: 14px;
}

[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

.finder-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.finder-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-close {
  display: none;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 8px;
  padding: 0 8px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-link {
  display: block;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.sidebar-link:hover {
  background: var(--border-strong);
}

.sidebar-cats {
  font-size: 13px;
}
.sidebar-cats a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.sidebar-cats a:hover {
  background: var(--border-strong);
}
.sidebar-cats .link_item {
  margin-left: 0;
}
.sidebar-cats .sub_category_list {
  margin-left: 14px;
}
.sidebar-cats .c_cnt {
  color: var(--text-2);
  font-size: 11px;
  margin-left: 4px;
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
  padding: 0 8px;
}
.sidebar-stats strong {
  color: var(--text);
  margin-left: 4px;
}

.finder-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-profile {
  display: none;
}
body#tt-body-index .home-profile {
  display: block;
}

.home-profile-card {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
}
.home-profile-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.home-profile-blog {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-profile-blog a {
  color: var(--text);
}
.home-profile-blog a:hover {
  color: var(--accent);
}
.home-profile-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.list-section {
  display: none;
}
body#tt-body-category .list-section,
body#tt-body-search .list-section,
body#tt-body-archive .list-section,
body#tt-body-tag .list-section {
  display: block;
}

.list-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.list-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.list-count {
  font-size: 13px;
  color: var(--text-2);
}

.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
body#tt-body-page .article-container,
body#tt-body-entry .article-container {
  display: block;
}
body#tt-body-category .article-container,
body#tt-body-archive .article-container,
body#tt-body-search .article-container,
body#tt-body-tag .article-container {
  display: none !important;
}

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

.post-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-thumb {
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}
.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date {
  font-size: 11px;
  color: var(--text-2);
  margin-top: auto;
  padding-top: 6px;
}

.post-single {
  max-width: var(--max-w);
  width: 100%;
}

.admin-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.admin-btn:hover {
  background: var(--border-strong);
}
.admin-btn--del {
  color: #ff453a;
}
.admin-btn--del:hover {
  background: rgba(255, 69, 58, 0.12);
}

.post-head {
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.post-cat {
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(52, 199, 89, 0.1);
  border-radius: var(--r-sm);
}
.post-time {
  color: var(--text-2);
}
.post-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.post-body-wrap {
  position: relative;
}
.post-body {
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.post-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.post-body p {
  margin: 12px 0;
}
.post-body img {
  border-radius: var(--r);
  margin: 16px 0;
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: var(--accent-hover);
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.post-body pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 4px;
}
.post-body pre code {
  background: none;
  padding: 0;
}
.post-body ul,
.post-body ol {
  margin: 12px 0;
  padding-left: 24px;
}
.post-body ul {
  list-style: disc;
}
.post-body ol {
  list-style: decimal;
}
.post-body li {
  margin: 4px 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
}
.post-body th {
  background: var(--surface-2);
  font-weight: 600;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.post-body figure {
  margin: 16px 0;
}
.post-body figcaption {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  margin-top: 8px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
}
.post-tags a {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.post-tags a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav-item {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.post-nav-item:hover {
  border-color: var(--accent);
}
.post-nav-item--next {
  text-align: right;
}
.nav-dir {
  font-size: 12px;
  color: var(--text-2);
}
.nav-ttl {
  font-size: 14px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toc-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-item a {
  font-size: 13px;
  color: var(--text-2);
  display: block;
  padding: 3px 0;
  transition: color 0.15s;
}
.toc-item a:hover {
  color: var(--accent);
}
.toc-h3 {
  padding-left: 14px;
}
.toc-h4 {
  padding-left: 28px;
}

.comment-section,
.guest-section {
  margin-top: 32px;
}
.comment-window {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.win-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.win-dots {
  display: flex;
  gap: 6px;
}
.win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.win-dots span:nth-child(1) {
  background: #ff5f57;
}
.win-dots span:nth-child(2) {
  background: #febc2e;
}
.win-dots span:nth-child(3) {
  background: #28c840;
}
.win-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.win-body {
  padding: 16px;
}
.guest-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* 방명록·댓글 입력 영역 — 입력 느낌 + 다크에서 가독성 */
.tt_box_textarea,
.tt-box-textarea,
.guest-inner .tt_box_textarea,
.comment-section .tt_box_textarea {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  padding: 12px 14px !important;
  min-height: 80px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.tt_box_textarea:focus-within,
.tt-box-textarea:focus-within {
  border-color: var(--accent) !important;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(52, 199, 89, 0.25) !important;
}
[data-theme="light"] .tt_box_textarea:focus-within,
[data-theme="light"] .tt-box-textarea:focus-within {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 0 0 2px rgba(36, 138, 61, 0.2) !important;
}

.tt_box_textarea textarea,
.tt-box-textarea textarea,
.guest-inner textarea,
.comment-section textarea {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  background: transparent !important;
  min-height: 60px !important;
}

.tt_box_textarea input,
.tt-box-textarea input,
.guest-inner input,
.guest-inner input[type="text"],
.guest-inner input[type="password"],
.comment-section input,
.comment-section input[type="text"],
.comment-section input[type="password"] {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  padding: 8px 12px !important;
  height: auto !important;
  min-height: 36px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
.guest-inner input:focus,
.comment-section input:focus,
.tt_box_textarea input:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}

.tt_box_textarea input::placeholder,
.tt-box-textarea input::placeholder,
.tt_box_textarea textarea::placeholder,
.guest-inner input::placeholder,
.guest-inner textarea::placeholder,
.comment-section input::placeholder,
.comment-section textarea::placeholder {
  color: var(--text-2) !important;
  -webkit-text-fill-color: var(--text-2) !important;
  opacity: 1 !important;
}

.tt-btn_register,
.tt_btn_register {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.tt-btn_register:hover,
.tt_btn_register:hover {
  background: var(--accent-hover) !important;
}

/* 방명록·댓글 작성자 이름 — 다크 배경에서 밝은 글씨 (티스토리 클래스 넓게 덮기) */
.tt-comment-cont {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.tt-comment-cont:last-child {
  border-bottom: none;
}
/* 폼 위쪽·리스트 모두 작성자 이름 밝게 */
.guest-section .win-body .tt_txt_name,
.guest-section .win-body [class*="name"],
.guest-section .win-body .tt-wrap-cmt a,
.guest-section .tt-box-account .tt_txt_name,
.guest-section .tt-box-account [class*="name"],
.guest-section .tt-area-write .tt_txt_name,
.guest-section .tt_area_write .tt_txt_name,
.comment-section .win-body .tt_txt_name,
.comment-section .win-body [class*="name"],
.comment-section .win-body .tt-wrap-cmt a,
.comment-section .tt-box-account .tt_txt_name,
.comment-section .tt-box-account [class*="name"],
.comment-section .tt-area-write .tt_txt_name,
.comment-section .tt_area_write .tt_txt_name,
.tt_box_nameplate .tt_txt_name,
.tt-txt-name,
.guest-inner .tt_txt_name,
.guest-inner [class*="name"],
.guest-inner .comment_name,
.guest-inner .tt-wrap-cmt .tt_txt_name,
.guest-inner .tt_list_reply .tt_txt_name,
.guest-inner .tt-item-reply .tt_txt_name,
.comment-section .tt_txt_name,
.comment-section [class*="name"],
.comment-section .comment_name,
.comment-section .tt-wrap-cmt .tt_txt_name,
.win-body .tt_txt_name,
.win-body [class*="writer"],
.win-body [class*="name"],
.win-body .tt-wrap-cmt .tt_txt_name {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.tt_box_nameplate .tt_txt_date,
.tt-txt-date,
.guest-inner .tt_txt_date,
.comment-section .tt_txt_date,
.win-body .tt_txt_date,
.guest-inner .tt-wrap-cmt .tt_txt_date,
.comment-section .tt-wrap-cmt .tt_txt_date {
  color: var(--text-2) !important;
  font-size: 12px !important;
}
.tt-comment-cont .tt_desc,
.tt_box_total .tt_desc,
.guest-inner .tt_desc,
.guest-inner [class*="desc"],
.guest-inner .tt-wrap-cmt .tt_desc,
.comment-section .tt_desc,
.comment-section [class*="desc"],
.comment-section .tt-wrap-cmt .tt_desc {
  color: var(--text) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* 방명록·댓글 비밀글(secret) 체크박스 + 자물쇠 아이콘 */
.guest-section .secret-wrap,
.comment-section .secret-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding-left: 0 !important;
  margin: 8px 0 !important;
  cursor: pointer;
  font-size: 13px !important;
  color: var(--text-2) !important;
  -webkit-user-select: none;
  user-select: none;
}
.guest-section .secret-wrap input,
.comment-section .secret-wrap input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.guest-section .secret-wrap .checkmark,
.comment-section .secret-wrap .checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.guest-section .secret-wrap input:checked ~ .checkmark,
.comment-section .secret-wrap input:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.guest-section .secret-wrap .checkmark:after,
.comment-section .secret-wrap .checkmark:after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.guest-section .secret-wrap input:checked ~ .checkmark:after,
.comment-section .secret-wrap input:checked ~ .checkmark:after {
  display: block;
}
.guest-section .secret-wrap label,
.comment-section .secret-wrap label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0 !important;
}
.guest-section .secret-wrap svg,
.guest-section .secret-wrap .ico_lock,
.comment-section .secret-wrap svg,
.comment-section .secret-wrap .ico_lock {
  width: 16px !important;
  height: 16px !important;
  max-width: none !important;
  flex-shrink: 0;
  color: var(--text-2) !important;
  fill: currentColor !important;
}

/* 방명록·댓글 비밀글 — 티스토리 tt-xe-label 구조 (20x20 고정) */
.guest-section .tt-xe-label,
.comment-section .tt-xe-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px !important;
  color: var(--text-2) !important;
  margin: 0 !important;
  -webkit-user-select: none;
  user-select: none;
}
.guest-section .tt-xe-label input[type="checkbox"],
.comment-section .tt-xe-label input[type="checkbox"] {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.guest-section .tt-xe-label .tt_img_area_reply,
.guest-section .tt-xe-label .tt-xe-input-helper,
.comment-section .tt-xe-label .tt_img_area_reply,
.comment-section .tt-xe-label .tt-xe-input-helper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface) !important;
  background-size: contain !important;
  background-position: center !important;
  overflow: hidden;
  box-sizing: border-box;
}
.guest-section .tt-xe-label input:checked ~ .tt_img_area_reply,
.guest-section .tt-xe-label input:checked ~ .tt-xe-input-helper,
.comment-section .tt-xe-label input:checked ~ .tt_img_area_reply,
.comment-section .tt-xe-label input:checked ~ .tt-xe-input-helper {
  background: var(--accent) !important;
  border-color: var(--accent);
}
.guest-section .tt-xe-label .tt-xe-label-text,
.comment-section .tt-xe-label .tt-xe-label-text {
  color: var(--text-2) !important;
  font-size: 13px !important;
}

.protected-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.protected-card {
  text-align: center;
}
.lock-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-2);
}
.protected-msg {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.protect-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.protect-input {
  width: 180px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.protect-input:focus {
  border-color: var(--accent);
}
.protect-submit {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.protect-submit:hover {
  background: var(--accent-hover);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
}
body#tt-body-index .pagination {
  display: none;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-2);
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.page-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
/* 현재 페이지 — 티스토리: <a class="page-btn"><span class="selected">1</span></a> */
.pagination a.page-btn:has(span.selected) {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  font-weight: 700 !important;
  border-color: var(--accent) !important;
  background: var(--surface-2) !important;
}
.pagination .page-btn span.selected {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  font-weight: 700 !important;
}

.page-arrow {
  font-size: 16px;
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-2);
  font-size: 15px;
}

.finder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  flex-shrink: 0;
}
.footer-logo {
  font-weight: 600;
  color: var(--text);
}

body:not(#tt-body-index) .home-profile {
  display: none;
}

.tt_box_namecard {
  display: none !important;
}
.another_category {
  display: none !important;
}
#tistorySnsLayer {
  display: none !important;
}
.container_postbtn {
  display: none !important;
}
/* 최신글 마크 숨김 — 클래스 + 티스토리 주입 new_ico 이미지 */
.ico_new,
.tt_ico_new,
[class*="ico_new"],
[class*="new_icon"],
.post-card .ico_new,
.list-section .ico_new,
.h-entry .ico_new,
img[src*="new_ico"] {
  display: none !important;
}
.tt-body-page .s_ad_div {
  display: block;
}

.finder-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.finder-overlay.show {
  display: block;
}

@media (max-width: 860px) {
  body {
    padding: 0;
  }
  .finder-window {
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }
  .finder-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    border-right: 1px solid var(--border-strong);
    transition: left 0.25s ease;
  }
  .finder-sidebar.open {
    left: 0;
  }
  .sidebar-close {
    display: inline-flex;
  }
  .search-box {
    width: 120px;
  }
  .article-container {
    grid-template-columns: 1fr;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .finder-content {
    padding: 16px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-item--next {
    text-align: left;
  }
}

@media (min-width: 861px) {
  .sidebar-close {
    display: none;
  }
  .titlebar-left .icon-btn#menuBtn {
    display: none;
  }
}

@media (max-width: 480px) {
  .titlebar-title {
    font-size: 12px;
  }
  .search-box {
    width: 100px;
  }
  .traffic-lights {
    gap: 6px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .post-title {
    font-size: 22px;
  }
  .home-profile-blog {
    font-size: 18px;
  }
}

.finder-content::-webkit-scrollbar {
  width: 6px;
}
.finder-content::-webkit-scrollbar-track {
  background: transparent;
}
.finder-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.finder-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-2);
}
.finder-sidebar::-webkit-scrollbar {
  width: 4px;
}
.finder-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.finder-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

@media print {
  .finder-titlebar,
  .finder-sidebar,
  .finder-footer,
  .pagination,
  .admin-bar,
  .post-nav,
  .comment-section,
  .guest-section {
    display: none !important;
  }
  .finder-window {
    border: none;
    box-shadow: none;
  }
  .post-body {
    font-size: 12pt;
  }
}
