:root {
  color-scheme: dark;
  --bg: #20242b;
  --surface: #252a32;
  --surface-2: #2c323b;
  --text: #e7eaf0;
  --muted: #aab1bd;
  --line: rgba(255,255,255,.08);
  --accent: #78dce8;
  --accent-2: #b6e98c;
  --shadow: 0 16px 38px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.18);
  --radius: 6px;
  --content: 1060px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #fff;
  --surface-2: #eef1f5;
  --text: #1d2733;
  --muted: #66717e;
  --line: rgba(24,36,50,.1);
  --accent: #087f8c;
  --accent-2: #4f7d13;
  --shadow: 0 16px 38px rgba(30,45,60,.08), 0 2px 8px rgba(30,45,60,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.75; word-break: keep-all; transition: background .2s, color .2s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .6rem 1rem; background: var(--accent); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.topbar-inner { max-width: 1200px; min-height: 78px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(260px, 360px) auto; gap: 18px; align-items: center; }
.brand { font-size: 1.28rem; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button { width: 40px; height: 40px; padding: 9px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.icon-button:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; gap: 4px; }
.search-shell { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 14px; background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; }
.search-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-shell svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-shell input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-shell input::placeholder { color: var(--muted); }
.sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: block; }

.drawer-backdrop { position: fixed; z-index: 69; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(390px, 88vw); padding: 26px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); box-shadow: 24px 0 60px rgba(0,0,0,.28); transform: translateX(-102%); transition: transform .25s ease; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-image { width: 54px; height: 54px; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.drawer-head strong { display: block; line-height: 1.35; }
.drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.drawer-close { font-size: 1.65rem; }
.drawer-nav { padding: 18px 0; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav li a, .drawer-home { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.drawer-nav li a:hover, .drawer-home:hover { color: var(--text); background: var(--surface-2); }
.drawer-nav ul ul { padding-left: 15px; font-size: .92rem; }
.drawer-links { padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 18px; color: var(--muted); font-size: .9rem; }
body.drawer-open { overflow: hidden; }

.site-main { width: min(var(--content), calc(100% - 40px)); min-height: calc(100vh - 220px); margin: 0 auto; padding: 8px 0 80px; }
.list-heading { height: 0; margin: 0; overflow: hidden; opacity: 0; }
.list-heading h1, .tag-page h1, .guestbook-page h1 { margin: 4px 0; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.06em; line-height: 1.12; }
.list-heading p { margin: 8px 0 0; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.post-grid { display: grid; gap: 34px; }
.post-grid + .post-grid { margin-top: 32px; }
#tt-body-category .post-grid + .post-grid,
#tt-body-search .post-grid + .post-grid,
#tt-body-archive .post-grid + .post-grid,
#tt-body-tag .post-grid + .post-grid { display: none; }
.post-card { min-height: 272px; display: grid; grid-template-columns: 236px 1fr; overflow: hidden; background: var(--surface); border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); box-shadow: 0 5px 12px rgba(0,0,0,.26); transition: transform .2s ease, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.post-grid .post-card:nth-child(even) { grid-template-columns: 1fr 236px; }
.post-grid .post-card:nth-child(even) .card-thumb { order: 2; }
.card-thumb { position: relative; width: 200px; height: 200px; align-self: center; justify-self: end; overflow: hidden; border-radius: 50%; background: #fff; }
.post-grid .post-card:nth-child(even) .card-thumb { justify-self: start; }
.card-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .card-thumb img { transform: scale(1.035); }
.card-body { min-width: 0; padding: 36px 36px 30px; display: flex; flex-direction: column; }
.card-body h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.35; letter-spacing: -.035em; }
.card-body h2 a:hover { color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; color: var(--muted); font-size: .84rem; }
.post-meta > * { position: relative; }
.post-meta > * + *::before { content: ""; position: absolute; width: 3px; height: 3px; left: -10px; top: .75em; border-radius: 50%; background: currentColor; opacity: .6; }
.post-meta a:hover { color: var(--accent); }
.card-summary { margin: 15px 0 0; color: var(--text); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.read-more { display: none; }
.read-more span { display: inline-block; transition: transform .15s; }
.read-more:hover span { transform: translateX(4px); }
.empty-state { padding: 80px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.entry { max-width: 860px; margin: 0 auto; }
.entry-header { margin-bottom: 42px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.entry-header h1 { margin: 10px 0 20px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.055em; line-height: 1.2; }
.entry-category { color: var(--accent); font-weight: 700; }
.comment-jump { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.entry-content { font-size: 1.04rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2.5em 0 .75em; line-height: 1.35; letter-spacing: -.035em; }
.entry-content h2 { font-size: 1.75rem; border-bottom: 1px solid var(--line); padding-bottom: .4em; }
.entry-content p { margin: 1.1em 0; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { display: block; margin: 28px auto; border-radius: 12px; }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.25em; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.entry-content pre { overflow-x: auto; margin: 1.5em 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #171a20; color: #edf1f7; font-size: .92rem; line-height: 1.65; }
.entry-content code { padding: .15em .4em; border-radius: 5px; background: var(--surface-2); color: color-mix(in srgb,var(--accent) 80%,var(--text)); font-family: "SFMono-Regular", Consolas, monospace; }
.entry-content pre code { padding: 0; background: none; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); }
.entry-content th { background: var(--surface-2); }
.entry-tags { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.entry-tags > span { color: var(--text); font-weight: 700; margin-right: 6px; }
.entry-tags a { padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: .86rem; }
.admin-tools { margin-top: 20px; display: flex; gap: 12px; color: var(--muted); font-size: .86rem; }
.comments { margin-top: 54px; padding-top: 36px; border-top: 1px solid var(--line); }

.tag-page, .guestbook-page { max-width: 860px; margin: 0 auto; }
.tag-cloud { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); }
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent); }
.guestbook-page [data-tistory-react-app="Comment"] { margin-top: 30px; }
.pagination { margin: 52px auto 0; display: flex; justify-content: center; align-items: center; gap: 20px; color: var(--muted); }
.pagination span { display: flex; gap: 7px; }
.pagination span a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; }
.pagination a:hover { color: var(--text); background: var(--surface-2); }
.pagination .no-more-prev, .pagination .no-more-next { pointer-events: none; opacity: .3; }
.site-footer { width: min(var(--content), calc(100% - 40px)); margin: auto; padding: 34px 0 48px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer p { margin: 0; }
.to-top { position: fixed; right: 24px; bottom: calc(50% - 20px); width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: #20242b; box-shadow: var(--shadow); opacity: 1; pointer-events: auto; cursor: pointer; font-size: 0; transition: transform .2s; }
.to-top::before { content: "+"; font-size: 20px; font-weight: 800; line-height: 1; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

@media (max-width: 880px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .search-shell { grid-column: 1 / -1; grid-row: 2; margin-bottom: 14px; }
  .top-actions .icon-button:nth-child(n+3) { display: none; }
  .post-card, .post-grid .post-card:nth-child(even) { grid-template-columns: 190px 1fr; }
  .post-grid .post-card:nth-child(even) .card-thumb { order: 0; }
  .card-thumb { width: 154px; height: 154px; }
  .card-body { padding: 26px; }
}

@media (max-width: 640px) {
  .topbar-inner { min-height: 64px; padding: 0 14px; gap: 8px; }
  .brand { font-size: 1.05rem; }
  .site-main { width: min(100% - 28px, var(--content)); padding-top: 14px; }
  .post-grid { gap: 20px; }
  .post-grid + .post-grid { margin-top: 20px; }
  .post-card, .post-grid .post-card:nth-child(even) { display: flex; min-height: 0; flex-direction: column; }
  .post-grid .post-card:nth-child(even) .card-thumb { order: 0; }
  .card-thumb { width: 176px; height: 176px; margin: 24px auto 0; justify-self: center; aspect-ratio: 1; }
  .post-grid .post-card:nth-child(even) .card-thumb { justify-self: center; }
  .card-body { padding: 22px 20px 20px; }
  .card-summary { -webkit-line-clamp: 2; }
  .entry-header { margin-bottom: 30px; }
  .entry-content { font-size: 1rem; }
  .site-footer { flex-direction: column; padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* === WOW UI layer: safe to extend below this line === */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--accent) 10%, transparent) 0, transparent 26rem),
    radial-gradient(circle at 92% 38%, rgba(198,160,246,.075) 0, transparent 30rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, #000) 0%, var(--bg) 42%);
  background-attachment: fixed;
}

.topbar {
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  box-shadow: 0 12px 38px rgba(0,0,0,.1);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb,var(--accent) 55%,transparent), rgba(198,160,246,.5), transparent);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb,var(--accent) 12%,transparent), 0 0 24px var(--accent);
  animation: brand-pulse 2.8s ease-in-out infinite;
}
.brand::after {
  content: "DEV.LOG";
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 700 .56rem/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
}
@keyframes brand-pulse { 50% { box-shadow: 0 0 0 8px transparent, 0 0 32px var(--accent); } }

.search-shell {
  background: color-mix(in srgb,var(--surface-2) 82%,transparent);
  border-color: var(--line);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 8px 24px rgba(0,0,0,.08);
}

.menu-button { color: var(--accent); }
.icon-button { border: 1px solid transparent; }
.icon-button:hover { border-color: var(--line); box-shadow: 0 7px 20px rgba(0,0,0,.12); }

.list-heading {
  height: auto;
  min-height: 158px;
  margin: 8px 0 30px;
  padding: 30px 38px;
  display: grid;
  align-content: center;
  overflow: hidden;
  opacity: 1;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(115deg, color-mix(in srgb,var(--surface) 96%,transparent), color-mix(in srgb,var(--surface-2) 88%,transparent)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
}
.list-heading::before {
  content: "BUILD  ·  LEARN  ·  SHARE";
  position: absolute;
  z-index: -1;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in srgb,var(--text) 4%,transparent);
  font: 900 clamp(2.8rem,6vw,5rem)/1 "SFMono-Regular",Consolas,monospace;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.list-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -60px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb,var(--accent) 22%,transparent), transparent 68%);
}
.list-heading h1 { font-size: clamp(1.9rem,4vw,2.9rem); }
.list-heading p { margin-top: 3px; font-size: .84rem; }

.post-grid { counter-reset: wow-card; }
.post-card {
  --card-accent: var(--accent);
  counter-increment: wow-card;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: color-mix(in srgb,var(--card-accent) 14%,var(--line));
  background:
    linear-gradient(132deg, color-mix(in srgb,var(--surface) 98%,transparent), color-mix(in srgb,var(--surface-2) 80%,transparent));
  box-shadow: 0 16px 42px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
}
.post-card:nth-child(3n+2) { --card-accent: #c6a0f6; }
.post-card:nth-child(3n) { --card-accent: #a6da95; }
.post-card::before {
  content: counter(wow-card, decimal-leading-zero);
  position: absolute;
  z-index: 0;
  right: 24px;
  top: 15px;
  color: color-mix(in srgb,var(--card-accent) 13%,transparent);
  font: 900 3.6rem/1 "SFMono-Regular",Consolas,monospace;
  letter-spacing: -.08em;
  pointer-events: none;
}
.post-grid .post-card:nth-child(even)::before { right: auto; left: 24px; }
.post-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: -150px;
  border-radius: 50%;
  background: var(--card-accent);
  filter: blur(70px);
  opacity: .08;
  transition: opacity .25s, transform .3s;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb,var(--card-accent) 42%,var(--line));
  box-shadow: 0 24px 60px rgba(0,0,0,.26), 0 0 0 1px color-mix(in srgb,var(--card-accent) 12%,transparent);
}
.post-card:hover::after { opacity: .18; transform: scale(1.15); }
.post-card:not(:has(.card-thumb)) { grid-template-columns: 1fr; }

.card-thumb {
  z-index: 1;
  border: 4px solid color-mix(in srgb,var(--card-accent) 55%,var(--surface));
  outline: 8px solid color-mix(in srgb,var(--card-accent) 7%,transparent);
  box-shadow: 0 18px 34px rgba(0,0,0,.28), 0 0 36px color-mix(in srgb,var(--card-accent) 9%,transparent);
}
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.card-body { position: relative; z-index: 1; }
.card-body h2 { max-width: 88%; font-weight: 780; }
.card-body h2 a { background: linear-gradient(90deg,var(--text),color-mix(in srgb,var(--text) 82%,var(--card-accent))); background-clip: text; -webkit-background-clip: text; }
.post-meta > a:first-child {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb,var(--card-accent) 22%,var(--line));
  border-radius: 999px;
  background: color-mix(in srgb,var(--card-accent) 7%,transparent);
  color: color-mix(in srgb,var(--card-accent) 82%,var(--text));
  font-weight: 700;
}
.card-summary { color: color-mix(in srgb,var(--text) 76%,var(--muted)); }

.drawer {
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb,var(--accent) 12%,transparent), transparent 18rem),
    color-mix(in srgb,var(--surface) 96%,transparent);
}
.drawer-home { color: var(--accent); font-weight: 800; }
.drawer-nav li a { border-left: 2px solid transparent; }
.drawer-nav li a:hover { border-left-color: var(--accent); }

.entry-header {
  position: relative;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--surface-2) 80%,transparent));
  box-shadow: var(--shadow);
}
.entry-header::after {
  content: "</>";
  position: absolute;
  right: 28px;
  top: 18px;
  color: color-mix(in srgb,var(--accent) 12%,transparent);
  font: 900 4rem/1 monospace;
}
.entry-content h2 { border-image: linear-gradient(90deg,var(--accent),transparent) 1; }
.entry-content pre { border-color: color-mix(in srgb,var(--accent) 18%,var(--line)); box-shadow: 0 18px 40px rgba(0,0,0,.16); }

.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg,var(--accent),rgba(198,160,246,.55),transparent 80%);
}
.to-top { background: linear-gradient(135deg,#fff,color-mix(in srgb,var(--accent) 28%,#fff)); box-shadow: 0 8px 30px color-mix(in srgb,var(--accent) 18%,rgba(0,0,0,.2)); }

@media (max-width: 640px) {
  .brand::after { display: none; }
  .list-heading { min-height: 132px; padding: 24px; margin-top: 0; }
  .list-heading::before { right: 16px; font-size: 2.4rem; }
  .post-card::before { top: 14px; right: 18px; font-size: 2.7rem; }
  .post-grid .post-card:nth-child(even)::before { right: 18px; left: auto; }
  .card-body h2 { max-width: 100%; }
  .entry-header { padding: 26px 22px; }
  .entry-header::after { right: 14px; top: 14px; font-size: 2.5rem; }
}

/* === Seren reference layer: calm, practical dark UI === */
body { background: #22272e; }
html[data-theme="light"] body { background: #f4f6f8; }
.topbar { background: color-mix(in srgb,var(--bg) 90%,transparent); box-shadow: none; }
.topbar::after, .brand::before, .brand::after { display: none; }
.brand { gap: 0; }
.search-shell { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.menu-button { color: var(--muted); }
.icon-button { border: 0; }
.icon-button:hover { box-shadow: none; border: 0; }

.site-main { padding-top: 8px; }
.list-heading { height: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; border: 0; box-shadow: none; }
.list-heading::before, .list-heading::after { display: none; }
.post-grid { gap: 34px; }
.post-card,
.post-card:nth-child(3n+2),
.post-card:nth-child(3n) {
  --card-accent: var(--accent);
  min-height: 272px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: rgba(0,0,0,.3) 0 4px 10px 2px;
}
.post-card::before, .post-card::after { display: none; }
.post-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: rgba(0,0,0,.34) 0 8px 18px 2px; }
.card-thumb { border: 0; outline: 0; box-shadow: none; }
.card-thumb::after { display: none; }
.card-body h2 { max-width: 100%; font-weight: 700; }
.card-body h2 a { background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.post-meta > a:first-child { padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-weight: 400; }
.card-summary { color: var(--text); }

.drawer { width: min(340px,90vw); padding: 18px; background: #22272e; box-shadow: rgba(0,0,0,.3) 0 4px 10px 2px; }
html[data-theme="light"] .drawer { background: var(--surface); }
.drawer-head { grid-template-columns: 92px 1fr auto; gap: 14px; padding: 4px 0 22px; }
.profile-image { width: 92px; height: 92px; border-radius: 4px; }
.drawer-nav { padding: 22px 0; }
.drawer-nav li a, .drawer-home { padding: 6px 8px; border: 0; background: none; font-size: .88rem; }
.drawer-nav li a:hover, .drawer-home:hover { border: 0; background: var(--surface-2); }
.drawer-home { color: var(--text); font-weight: 600; }
.sidebar-sections { border-top: 1px solid var(--line); }
.sidebar-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.sidebar-section h3 { margin: 0 0 13px; font-size: .95rem; font-weight: 700; }
.sidebar-section ul { list-style: none; margin: 0; padding: 0; }
.sidebar-post-list { display: grid; gap: 12px; }
.sidebar-post-list li { min-width: 0; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; }
.sidebar-post-list li:not(:has(.sidebar-thumb)) { grid-template-columns: 1fr; }
.sidebar-thumb { width: 54px; height: 54px; display: block; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-list li > div { min-width: 0; }
.sidebar-post-title { display: block; overflow: hidden; color: var(--text); font-size: .8rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-post-list span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-comment-list { display: grid; gap: 11px; }
.sidebar-comment-list li { min-width: 0; }
.sidebar-comment-list span { display: block; color: var(--muted); font-size: .68rem; }
.sidebar-comment-list a { display: block; overflow: hidden; color: var(--text); font-size: .78rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tags a { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .7rem; }
.sidebar-tags a:hover { color: var(--text); border-color: var(--muted); }
.drawer-links { padding: 18px 0 8px; }

.entry-header { padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.entry-header::after { display: none; }

.comments { margin-top: 62px; }
.comments .tt-comment-cont { color: var(--text); font-family: inherit; }
.comments .tt-box-total { margin-bottom: 20px; padding: 0; color: var(--text); font-size: 1.05rem; font-weight: 700; }
.comments .tt-area-write { display: block; margin: 0 0 34px; padding: 0; }
.comments .tt-box-thumb { display: none; }
.comments .tt_wrap_write { width: 100%; }
.comments .tt-box-account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comments .tt-box-account input { height: 46px; padding: 0 14px; border: 0; border-radius: 8px; outline: 0; background: #343a40; color: #dee2e6; }
.comments .tt-box-textarea { margin: 0; }
.comments .tt-inner-g { border: 0 !important; background: transparent !important; }
.comments .tt-cmt { min-height: 160px; padding: 18px !important; border: 0 !important; border-radius: 8px; outline: 0; background: #343a40 !important; color: #dee2e6 !important; font-size: .9rem; line-height: 1.7; }
.comments .tt-cmt:empty::before { color: #868e96 !important; }
.comments .tt-box-write { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.comments .tt-xe-label-text { color: var(--muted); font-size: .82rem; }
.comments .tt-btn_register { min-width: 102px; height: 52px; padding: 0 18px; border: 0; border-radius: 8px; background: #5273e0; color: #fff; font-weight: 700; }
.comments .tt-btn_register:disabled { opacity: .45; }
.comments .tt-area-reply { margin-top: 8px; }
.comments .tt-list-reply { list-style: none; margin: 0; padding: 0; }
.comments .tt-item-reply { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comments .tt-wrap-cmt { display: grid; grid-template-columns: 46px 1fr; gap: 14px; }
.comments .tt-thumbnail { width: 46px !important; height: 46px !important; border-radius: 50%; background-size: cover; }
.comments .tt-box-meta { display: flex; align-items: center; gap: 7px; }
.comments .tt-link-user { color: var(--text); font-weight: 700; }
.comments .tt_desc { margin: 8px 0; color: var(--text); line-height: 1.7; }
.comments .tt_date, .comments .tt-wrap-info, .comments .tt-link-comment { color: var(--muted) !important; font-size: .75rem; }
.comment-heading h2 { margin: 0 0 20px; font-size: 1.05rem; }
.comment-heading h2 span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.comment-account { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 10px; }
.comment-account input { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 8px; outline: 0; background: #343a40; color: #dee2e6; }
.comment-secret { display: flex; width: max-content; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--muted); font-size: .8rem; }
.comment-write textarea { width: 100%; min-height: 200px; padding: 18px; resize: vertical; border: 0; border-radius: 8px; outline: 0; background: #343a40; color: #dee2e6; font: inherit; font-size: .9rem; line-height: 1.7; }
.comment-write textarea::placeholder { color: #868e96; }
.comment-submit { min-width: 102px; height: 52px; margin-top: 12px; padding: 0 18px; border: 0; border-radius: 8px; background: #5273e0; color: #fff; font-weight: 700; cursor: pointer; }
.comment-list, .comment-children { list-style: none; margin: 22px 0 0; padding: 0; }
.comment-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; }
.comment-avatar { width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: var(--surface-2); }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { min-width: 0; }
.comment-author { color: var(--text); font-weight: 700; }
.comment-body > p { margin: 7px 0 9px; color: var(--text); line-height: 1.7; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted); font-size: .75rem; }
.comment-meta a:hover { color: var(--text); }
.comment-children { margin: 18px 0 0 58px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment-children .comment-item { padding: 18px 0 0; border: 0; }

.to-top { background: #fff; box-shadow: var(--shadow); }

@media (max-width: 640px) {
  .comments .tt-box-account { grid-template-columns: 1fr; }
  .comments .tt-cmt { min-height: 130px; }
  .drawer-head { grid-template-columns: 72px 1fr auto; }
  .profile-image { width: 72px; height: 72px; }
  .comment-account { grid-template-columns: 1fr; }
  .comment-write textarea { min-height: 150px; }
  .comment-children { margin-left: 18px; }
}

/* === Reading layer: keep the author's note-like voice, improve hierarchy === */
.entry { max-width: 1040px; margin-inline: auto; }
.entry-content {
  max-width: 860px;
  margin: 42px auto 0;
  color: #d8dee9;
  font-size: 1rem;
  line-height: 1.92;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.entry-content .contents_style > p {
  margin: 0 0 1.05em;
  letter-spacing: -.012em;
}
.entry-content .contents_style > p:empty,
.entry-content .contents_style > p:has(> br:only-child) { margin: 0; min-height: .45rem; }
.entry-content .contents_style > p:first-child,
.entry-content .contents_style > p:has(+ table),
.entry-content .contents_style > p:has(+ pre) {
  margin: 2.8rem 0 .8rem;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -.035em;
}
.entry-content .contents_style > p:first-child { margin-top: 0; }
.entry-content .contents_style > p:first-child::before,
.entry-content .contents_style > p:has(+ table)::before,
.entry-content .contents_style > p:has(+ pre)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: 10px;
  border-radius: 2px;
  background: #5273e0;
  vertical-align: -.08em;
}
.entry-content pre {
  margin: 1rem 0 2rem;
  padding: 20px 22px;
  border: 1px solid #30363d;
  border-radius: 7px;
  background: #171a1f;
  box-shadow: none;
  font-size: .88rem;
  line-height: 1.72;
  tab-size: 4;
}
.entry-content table {
  display: table;
  width: 100% !important;
  margin: 1rem 0 2.2rem;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.entry-content td, .entry-content th {
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}
.entry-content tr:last-child > * { border-bottom: 0; }
.entry-content tr > *:last-child { border-right: 0; }
.entry-content td[rowspan], .entry-content th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}
.entry-content figure.imageblock {
  margin: 1.8rem auto 2.5rem !important;
  text-align: center;
}
.entry-content figure.imageblock img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.entry-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.entry-content blockquote {
  margin: 1.6rem 0;
  padding: 16px 18px;
  border-left: 3px solid #5273e0;
  border-radius: 0 6px 6px 0;
  background: var(--surface-2);
  color: var(--text);
}
.entry-tags { max-width: 860px; margin-inline: auto; }

@media (max-width: 640px) {
  .entry-content { margin-top: 30px; font-size: .96rem; line-height: 1.82; word-break: normal; }
  .entry-content .contents_style > p:first-child,
  .entry-content .contents_style > p:has(+ table),
  .entry-content .contents_style > p:has(+ pre) { margin-top: 2.2rem; font-size: 1.1rem; }
  .entry-content table { display: block; overflow-x: auto; }
  .entry-content td, .entry-content th { min-width: 120px; padding: 11px 12px; }
  .entry-content pre { padding: 16px; font-size: .82rem; }
}

