:root{
      --bg-base:#fbe4ee;
      --bg-panel:#ffffff;
      --bg-soft:#fff2f6;
      --bg-accent:#f8d7e3;
      --border-main:#dcaec2;
      --border-soft:#f2d1de;
      --border-strong:#c288a2;
      --text-main:#5c434f;
      --text-dim:#8b6d7a;
      --text-pink:#d16b93;
      --text-muted:#b59ba7;
      --mac-red:#ff6f7d;
      --mac-yellow:#ffce5c;
      --mac-green:#6dd28a;
      --shadow:0 10px 30px rgba(220,174,194,.18);
    }

    *{box-sizing:border-box}
    html,body{margin:0;padding:0}
    body{
      color:var(--text-main);
      background-color:var(--bg-base);
      background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
      background-repeat:repeat;
      background-size:300px 300px;
      font-family:'Pretendard',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility;
      overflow-x:hidden;
    }
    a{color:inherit;text-decoration:none}
    img{max-width:100%;height:auto}
    textarea,input,button{font:inherit}

    .shell{
      width:calc(100% - 24px);
      margin:24px auto 28px;
    }

    code {
      -webkit-user-select: text !important;
      -moz-user-select: text !important;
      -ms-user-select: text !important;
      user-select: text !important;
      }
      body {
      -webkit-user-select: none !important;
      -moz-user-select: -moz-none !important;
      -ms-user-select: none !important;
      user-select: none !important;
      }

    /* ── Mac 상태바 ── */
    .mac-statusbar{
      position:sticky;
      top:0;
      z-index:9999;
      height:28px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0 14px;
      margin-bottom:14px;
      background:rgba(255,255,255,.84);
      backdrop-filter:blur(20px);
      -webkit-backdrop-filter:blur(20px);
      border:1px solid rgba(220,174,194,.26);
      border-radius:14px;
      box-shadow:0 4px 18px rgba(220,174,194,.10);
      font-family:'Pretendard',system-ui,sans-serif;
      font-size:13px;
    }
    .mac-statusbar-left,.mac-statusbar-right{
      display:flex;align-items:center;gap:14px;
    }
    .mac-logo{font-size:16px}
    .mac-menu{
      padding:2px 6px;
      border-radius:5px;
      cursor:default;
      color:var(--text-main);
    }
    .mac-menu:hover{background:rgba(220,174,194,.25)}
    .mac-icon{font-size:13px}
    .mac-clock{
      font-family:'Galmuri9',monospace;
      font-size:12px;
      color:var(--text-pink);
      font-weight:700;
    }

    /* ── 데스크탑 ── */
    .desktop{
      position:relative;
      min-height:calc(100vh - 84px);
      padding-bottom:6px;
      overflow:visible;
    }

    /* ── 친구 배너창 커스텀 스타일 ── */
    .banner-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 10px; /* 배너 사이의 간격 */
    }
    .banner-item a { 
      display: block;
      width: 100%;
      border: 1px solid var(--border-soft);
      border-radius: 6px;
      overflow: hidden;
      background: var(--bg-soft);
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }
    /* 마우스를 올렸을 때 살짝 위로 떠오르는 맥 OS 특유의 애니메이션 */
    .banner-item a:hover {
      transform: translateY(-2px);
      border-color: var(--border-strong);
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .banner-item img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* ── 창 공통 ── */
    .tt-window{
      position:absolute;
      display:flex;
      flex-direction:column;
      background:rgba(255,255,255,.92);
      border:2px solid var(--border-main);
      border-radius:14px;
      overflow:hidden;
      box-shadow:
        0 10px 30px rgba(209, 141, 107, 0.12),
        0 2px 6px rgba(194,136,162,.12),
        inset 0 1px 0 rgba(255,255,255,.8);
      min-width:280px;
      min-height:220px;
    }

    .tt-window.active{z-index:5}
    .tt-window.is-collapsed .window-body,
    .tt-window.is-collapsed .window-footer{display:none}

    /* ── 타이틀바 ── */
    .window-titlebar{
      background:linear-gradient(to bottom, #f3ffed, var(--bg-soft));
      border-bottom:1px solid var(--border-soft);
      padding:7px 12px;
      display:flex;
      align-items:center;
      gap:10px;
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:12px;
      color:var(--text-pink);
      user-select:none;
      cursor:grab;
      flex-shrink:0;
      min-height:34px;
    }
    .window-titlebar:active{cursor:grabbing}
    .window-buttons{
      display:flex;align-items:center;gap:5px;flex-shrink:0;
    }
    .win-btn{
      width:12px;height:12px;
      border-radius:50%;
      border:1px solid rgba(0,0,0,.08);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:8px;
      color:rgba(0,0,0,.35);
      flex:0 0 auto;
      cursor:pointer;
    }
    .btn-close{background:var(--mac-red)}
    .btn-min{background:var(--mac-yellow)}
    .btn-max{background:var(--mac-green)}
    .window-title{
      flex:1;
      text-align:center;
      letter-spacing:.9px;
      font-weight:700;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .window-controls{font-size:12px;opacity:.7;flex-shrink:0}

    /* ── 창 바디 ── */
    .window-body{
      background:var(--bg-panel);
      padding:14px;
      flex:1 1 0;
      min-height:0;
      overflow-y:scroll;
      overflow-x:hidden;
      isolation:isolate;
    }

    /* ── content-inner ── */
    .content-inner{
      padding:0;
    }

    /* ── 상태바 (사이드바 내) ── */
    .status-bar{
      background:var(--bg-soft);
      border:1px dashed var(--border-main);
      border-radius:8px;
      padding:7px 10px;
      margin-bottom:12px;
      display:flex;
      gap:8px;
      align-items:center;
      flex-wrap:wrap;
      font-family:'Galmuri9',sans-serif;
      font-size:10px;
      color:var(--text-dim);
    }
    .status-led{color:var(--text-pink);font-size:12px;animation:blink 2s infinite}
    .status-sep{opacity:.3}
    @keyframes blink{50%{opacity:.3}}

    /* ── 블로그 헤더 ── */
    .blog-header{
      position:relative;
      background:var(--bg-panel);
      border:2px dashed var(--border-soft);
      border-radius:12px;
      padding:14px 14px 13px;
      margin-bottom:12px;
      box-shadow:0 2px 8px rgba(220,174,194,.08);
    }
    .corner{
      position:absolute;
      font-size:11px;
      color:rgba(107, 209, 117, 0.12);
      line-height:1;
    }
    .corner.tl{top:8px;left:10px}
    .corner.tr{top:8px;right:10px}
    .corner.bl{bottom:8px;left:10px}
    .corner.br{bottom:8px;right:10px}
    .header-cmd{
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:11px;
      color:var(--text-muted);
      margin-bottom:8px;
      letter-spacing:.03em;
    }
    .header-top{
      display:flex;
      justify-content:space-between;
      align-items:flex-end;
      gap:12px;
      flex-wrap:wrap;
      margin-bottom:10px;
    }
    .site-title{
      margin:0;
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:25px;
      line-height:1.2;
      color:var(--text-pink);
      word-break:keep-all;
    }
    .site-title a{color:var(--text-pink)}
    .cursor-blink{animation:blink 1.2s steps(1,end) infinite}
    .desc-line{
      margin-top:6px;
      color:var(--text-dim);
      font-size:13px;
      word-break:keep-all;
    }
    .site-meta{
      display:flex;
      gap:7px;
      flex-wrap:wrap;
      align-items:center;
      justify-content:flex-end;
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:11px;
      color:var(--text-pink);
    }
    .site-meta a{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:4px 9px;
      border-radius:999px;
      border:1px solid var(--border-main);
      background:#fff;
    }

    /* ── 패널 박스 (사이드바) ── */
    .panel-box,
    .content-area{
      background:rgba(255,255,255,.93);
      border:2px solid var(--border-soft);
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 2px 8px rgba(220,174,194,.08);
    }
    .panel-head{
      padding:8px 12px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      border-bottom:2px dashed var(--border-soft);
      background:linear-gradient(to bottom, #fff, #f3ffed);
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:12px;
      color:var(--text-pink);
      font-weight:700;
    }
    .panel-body{padding:10px 11px}

    /* ── 카테고리·최근글 목록 ── */
    .category-list,.recent-list{
      list-style:none;
      margin:0;
      padding:0;
      font-size:11px;
      line-height:1.65;
    }
    .category-list,
    .category-list ul{
      list-style:none;
      margin:0;
      padding-left:10px;
    }
    .category-list > li{
      margin:0;
      padding:0;
    }
    .category-list > li > a{
      font-weight:700;
    }
    .category-list ul{
      margin:3px 0 5px;
      padding-left:12px;
      border-left:1px dashed rgba(107, 209, 117, 0.12);
    }
    .category-list ul ul{
      padding-left:12px;
    }
    .category-list a,
    .recent-list a{
      display:flex;
      gap:7px;
      align-items:flex-start;
      color:var(--text-main);
      padding:3px 0;
      border-bottom:1px solid rgba(107, 209, 117, 0.12);
      word-break:break-word;
    }
    .category-list li:last-child > a,
    .recent-list li:last-child a{border-bottom:none}
    .category-list a:hover,
    .recent-list a:hover{color:var(--text-pink)}
    .recent-list .bullet{color:var(--text-pink);flex:0 0 auto}
    .recent-list .count{margin-left:auto;color:var(--text-muted);font-size:10px;flex:0 0 auto}

    /* ── 검색 ── */
    .search-area{
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:stretch;
    }
    .search-area input{
      width:100%;
      padding:8px 14px;
      border:1px solid var(--border-main);
      border-radius:999px;
      background:#fff;
      color:var(--text-main);
      font-size:12px;
      outline:none;
    }
    .search-area input:focus{
      border-color:var(--text-pink);
      box-shadow:0 0 0 2px rgba(107, 209, 117, 0.12);
    }
    .search-area button{
      align-self:flex-end;
      padding:7px 18px;
      border:1px solid var(--border-main);
      border-radius:999px;
      background:var(--text-pink);
      color:#fff;
      font-size:12px;
      cursor:pointer;
      transition:opacity .15s;
    }
    .search-area button:hover{opacity:.85}

    /* ── 글쓰기 버튼 ── */
    .write-btn-big{
      display:inline-flex;
      align-items:center;
      gap:6px;
      align-self:flex-end;
      padding:6px 11px;
      border:1px solid var(--border-main);
      border-radius:14px;
      background:linear-gradient(180deg,#fff,#f3ffed);
      color:var(--text-pink);
      box-shadow:0 6px 16px rgba(107, 209, 117, 0.12);
      font-family:'Galmuri9',sans-serif;
      font-size:11px;
      transition:transform .18s ease, box-shadow .18s ease;
    }
    .write-btn-big:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(209,107,147,.18)}

    /* ── 콘텐츠 영역 ── */
    .content-area{
      padding:14px;
      overflow:visible;
    }
    .section-title{
      margin:0 0 6px;
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:14px;
      color:var(--text-pink);
      letter-spacing:.02em;
    }
    .section-meta{
      margin:0 0 10px;
      color:var(--text-muted);
      font-size:11px;
    }

    /* ── 포스트 목록 ── */
    .post-list{
      list-style:none;
      margin:0;
      padding:0;
      display:grid;
      gap:0;
    }
    .post-card{
      padding:0;
      margin:0;
      border-bottom:1px solid var(--border-soft);
    }
    .post-card:last-child{
      border-bottom:none;
    }
    .post-card-link{
      display:block;
      padding:11px 2px 12px;
      color:inherit;
      text-decoration:none;
      transition:background-color .15s ease;
      border-radius:8px;
    }
    .post-card-link:hover{
      background:rgbargba(107, 209, 117, 0.12);
    }
    .post-meta{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
      align-items:center;
      margin-bottom:6px;
      font-size:11px;
      color:var(--text-muted);
    }
    .post-tag{
      display:inline-flex;
      align-items:center;
      padding:2px 7px;
      border-radius:999px;
      background:#fff;
      border:1px solid var(--border-soft);
      color:var(--text-pink);
    }
    .post-title{
      margin:0 0 6px;
      font-size:16px;
      line-height:1.42;
      word-break:break-word;
      overflow-wrap: break-word;
    }
    .post-title a:hover{color:var(--text-pink)}
    .post-summary{
      color:var(--text-main);
      font-size:13px;
      line-height:1.8;
      word-break:break-word;
    }
    .thumb{margin-top:10px;display:block;border-radius:10px;overflow:hidden}

    /* ── 아티클 ── */
    .article-head{
      padding:0 0 11px;
      border-bottom:1px dashed var(--border-soft);
      margin-bottom:14px;
    }
    .article-kicker{
      display:flex;
      flex-wrap:wrap;
      gap:7px;
      align-items:center;
      margin-bottom:8px;
      font-size:11px;
      color:var(--text-muted);
    }
    .article-kicker .tag{
      background:var(--bg-soft);
      border:1px solid var(--border-soft);
      border-radius:999px;
      padding:2px 7px;
      color:var(--text-pink);
    }
    .article-title{
      margin:0 0 7px;
      font-size:25px;
      line-height:1.35;
      word-break:keep-all;
      color:var(--text-main);
    }
    .article-meta{font-size:11px;color:var(--text-muted)}

    .article-content{
      font-size:14px;
      line-height:1.85;
      word-break:keep-all;
    }
    .article-content p{margin:0 0 13px}
    .article-content ul,.article-content ol{padding-left:22px}
    .article-content pre{
      padding:13px 15px;
      background:#fafafa;
      border:1px solid var(--border-soft);
      border-radius:11px;
      overflow:auto;
    }
    .article-content code{font-family:Consolas,monospace;font-size:13px}
    .article-content blockquote{
      margin:16px 0;
      padding:14px 16px;
      background:#f3ffed;
      border-left:4px solid var(--text-pink);
      border-radius:0 11px 11px 0;
      color:#6a525d;
    }

    .badge-row{
      margin-top:14px;
      display:flex;
      gap:7px;
      flex-wrap:wrap;
    }
    .badge{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:4px 9px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background:var(--bg-soft);
      color:var(--text-dim);
      font-size:11px;
      white-space:nowrap;
    }

    .guestbook-wrap{
      margin-top:20px;
      padding-top:18px;
      border-top:1px dashed var(--border-soft);
    }
    .guestbook-note{
      margin:0 0 12px;
      font-size:12px;
      color:var(--text-muted);
    }

    /* ── 페이저 ── */
    .pager{
      margin-top:14px;
      display:flex;
      gap:5px;
      flex-wrap:wrap;
      justify-content:center;
    }
    .pager a,
    .pager span{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:32px;
      height:32px;
      padding:0 9px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background:#fff;
      color:var(--text-main);
      font-size:12px;
    }
    .pager .on,
    .pager .selected{
      background:var(--text-pink);
      color:#fff;
      border-color:var(--text-pink);
    }

    .post-secret-badge{
      display:inline-flex;
      align-items:center;
      padding:2px 8px;
      border-radius:999px;
      background:var(--bg-accent);
      border:1px solid var(--border-main);
      color:var(--text-pink);
      font-size:10px;
      font-family:'Galmuri9',monospace;
    }
    .post-secret-msg{
      margin-top:4px;
      font-size:12px;
      color:var(--text-muted);
      font-style:italic;
    }

    /* ╔══════════════════════════════════════════════╗
       ║  댓글 영역 컨테이너                            ║
       ╚══════════════════════════════════════════════╝ */
    .comments{
      margin-top:24px;
      padding-top:20px;
      border-top:1px dashed var(--border-soft);
      overflow:visible;
      position:relative;
    }
    .comments h3{
      margin:0 0 14px;
      font-family:'Galmuri9', monospace;
      color:var(--text-pink);
      font-size:13px;
      letter-spacing:1px;
      display:flex;
      align-items:center;
      gap:7px;
    }
    .comments h3::before{
      content:'■ ';
      color:var(--text-pink);
    }
    .comment-count{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:20px;
      height:20px;
      padding:0 6px;
      border-radius:10px;
      background:var(--text-pink);
      color:#fff;
      font-size:11px;
      font-family:'Galmuri9', monospace;
    }

    /* ╔══════════════════════════════════════════════╗
       ║  티스토리 React 댓글 — 레트로/픽셀 스타일      ║
       ╚══════════════════════════════════════════════╝ */
    .comments .tt-comment-cont{
      font-family:'Galmuri11', 'Galmuri9', monospace;
      font-size:13px;
    }

    /* React 위젯 자동 출력 카운트 숨김 (h3로 대체) */
    .comments .tt-box-total{ display:none !important; }

    /* 티스토리 자동 주입 프로필 명함 카드 숨김 */
    [data-tistory-react-app="Namecard"]{ display:none !important; }

    /* 댓글 리스트 영역 */
    .comments .tt-area-reply{ margin-bottom:18px; }
    .comments .tt-list-reply{
      list-style:none;
      margin:0;
      padding:0;
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    /* 개별 댓글 카드 */
    .comments .tt-item-reply{
      position:relative;
      background:var(--bg-soft);
      border:2px dashed var(--border-main);
      border-radius:12px;
      padding:12px 14px;
    }
    /* 답글(대댓글) */
    .comments .tt-item-reply .tt-item-reply{
      margin-top:10px;
      margin-left:18px;
      background:#fff;
      border-style:dotted;
      border-color:var(--border-soft);
    }
    .comments .tt-item-reply .tt-item-reply::before{
      content:'└';
      position:absolute;
      left:-14px;
      top:10px;
      color:var(--text-pink);
      font-family:'Galmuri9', monospace;
      font-size:14px;
    }

    /* 작성자 썸네일 숨김 */
    .comments .tt-box-thumb{ display:none; }

    /* 작성자 라인 */
    .comments .tt-link-user{
      font-family:'Galmuri9', monospace;
      font-size:12px;
      font-weight:700;
      color:var(--text-pink);
      letter-spacing:.5px;
    }
    .comments .tt-link-user::before{
      content:'▸ ';
      color:var(--text-pink);
      opacity:.7;
    }
    .comments .tt_date{
      font-family:'Galmuri9', monospace;
      font-size:10px;
      color:var(--text-muted);
      margin-left:8px;
      letter-spacing:.3px;
    }
    .comments .tt_desc{
      font-family:'Galmuri11', 'Galmuri9', monospace;
      font-size:13px;
      line-height:1.8;
      color:var(--text-main);
      word-break:break-word;
      margin-top:6px;
      padding-left:2px;
    }

    /* ╔══════════════════════════════════════════════╗
       ║  댓글 입력폼 — 둥근 다이얼로그 박스            ║
       ╚══════════════════════════════════════════════╝ */
    .comments .tt-area-write{
      position:relative;
      margin-top:18px;
      padding:0;
      background:var(--bg-panel);
      border:2px solid var(--border-main);
      border-radius:14px;
      overflow:hidden;
    }

    /* 입력폼 상단 가짜 타이틀바 */
    .comments .tt-area-write::before{
      content:'> NEW_COMMENT.exe';
      display:block;
      padding:6px 12px;
      background:linear-gradient(to bottom, #fafff5, var(--bg-soft));
      border-bottom:1px dashed var(--border-main);
      font-family:'Galmuri9', monospace;
      font-size:11px;
      color:var(--text-pink);
      letter-spacing:.8px;
      font-weight:700;
    }

    /* 이름/비번 줄 */
    .comments .tt-box-account{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin:12px 12px 8px;
    }
    .comments .tt-box-account input[type="text"],
    .comments .tt-box-account input[type="password"]{
      flex:1 1 110px;
      min-width:90px;
      padding:7px 10px;
      border:1.5px dashed var(--border-main);
      border-radius:10px;
      background:#fff;
      color:var(--text-main);
      font-family:'Galmuri9', monospace;
      font-size:12px;
      letter-spacing:.3px;
      outline:none;
      transition:border-color .15s;
    }
    .comments .tt-box-account input::placeholder{
      color:var(--text-muted);
      font-family:'Galmuri9', monospace;
    }
    .comments .tt-box-account input:focus{
      border-style:solid;
      border-color:var(--text-pink);
    }

    /* 댓글 본문 textarea */
    .comments .tt-box-textarea{
      margin:0 12px 10px;
    }
    .comments .tt-cmt,
    .comments .tt-inner-g [contenteditable]{
      width:100%;
      min-height:88px;
      padding:10px 12px;
      border:1.5px dashed var(--border-main);
      border-radius:10px;
      background:#fff
        repeating-linear-gradient(
          to bottom,
          transparent 0,
          transparent 23px,
          rgba(220,174,194,.08) 23px,
          rgba(220,174,194,.08) 24px
        );
      color:var(--text-main);
      font-family:'Galmuri11', 'Galmuri9', monospace;
      font-size:13px;
      line-height:1.7;
      letter-spacing:.2px;
      outline:none;
      resize:vertical;
      transition:border-color .15s;
    }
    .comments .tt-cmt:focus,
    .comments .tt-inner-g [contenteditable]:focus{
      border-style:solid;
      border-color:var(--text-pink);
    }
    .comments .tt-cmt::placeholder{
      color:var(--text-muted);
      font-family:'Galmuri9', monospace;
    }

    /* 하단 줄 (비밀글 체크 + 등록 버튼) */
    .comments .tt-box-write{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      padding:0 12px 12px;
      flex-wrap:wrap;
    }

    /* 비밀글 체크박스 */
    .comments .tt-xe-label{
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-family:'Galmuri9', monospace;
      font-size:11px;
      color:var(--text-dim);
      cursor:pointer;
      letter-spacing:.3px;
    }
    .comments .tt-xe-label input[type="checkbox"]{
      accent-color:var(--text-pink);
      width:13px;
      height:13px;
    }

    /* 등록 버튼 — 둥근 픽셀 버튼 */
    .comments .tt-btn_register{
      padding:7px 18px;
      border:2px solid var(--text-pink);
      border-radius:12px;
      background:var(--text-pink);
      color:#fff;
      font-family:'Galmuri9', monospace;
      font-size:12px;
      font-weight:700;
      letter-spacing:1px;
      white-space:nowrap;
      cursor:pointer;
      transition:background .12s, color .12s;
    }
    .comments .tt-btn_register:hover{
      background:#fff;
      color:var(--text-pink);
    }
    .comments .tt-btn_register::before{ content:'[ '; }
    .comments .tt-btn_register::after{ content:' ]'; }

    /* ── 리사이즈 핸들 ── */
    .resize-handle{
      position:absolute;
      z-index:30;
      background:transparent;
      opacity:0;
      pointer-events:auto;
    }
    .resize-n{top:-4px;left:10px;right:10px;height:8px;cursor:n-resize;}
    .resize-s{bottom:-4px;left:10px;right:10px;height:8px;cursor:s-resize;}
    .resize-e{right:-4px;top:10px;bottom:10px;width:8px;cursor:e-resize;}
    .resize-w{left:-4px;top:10px;bottom:10px;width:8px;cursor:w-resize;}
    .resize-ne{top:-4px;right:-4px;width:14px;height:14px;cursor:ne-resize;}
    .resize-nw{top:-4px;left:-4px;width:14px;height:14px;cursor:nw-resize;}
    .resize-se{bottom:-4px;right:-4px;width:14px;height:14px;cursor:se-resize;}
    .resize-sw{bottom:-4px;left:-4px;width:14px;height:14px;cursor:sw-resize;}
    .tt-window.resizing{
      user-select:none;
      transition:none !important;
    }
    .tt-window.resizing .window-titlebar{
      cursor:grabbing;
    }

    /* ── Dock ── */
    .dock-bar{
      position:relative;
      bottom:auto;
      z-index:9998;
      margin-top:14px;
      padding:8px 10px;
      background:rgba(255,255,255,.84);
      backdrop-filter:blur(20px);
      -webkit-backdrop-filter:blur(20px);
      border:1px solid rgba(220,174,194,.26);
      border-radius:16px;
      box-shadow:0 4px 18px rgba(220,174,194,.10);
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
    }
    .dock-label{
      font-family:'Galmuri9',system-ui,sans-serif;
      font-size:12px;
      color:var(--text-pink);
      padding:0 6px;
      flex:0 0 auto;
    }
    .dock-items{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
      flex:1 1 auto;
    }
    .dock-empty{
      font-size:11px;
      color:var(--text-muted);
      padding:4px 6px;
    }
    .dock-item{
      border:1px solid var(--border-soft);
      background:#fff;
      color:var(--text-main);
      border-radius:999px;
      padding:6px 11px;
      font-size:12px;
      cursor:pointer;
      box-shadow:0 2px 8px rgba(220,174,194,.08);
      transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
      user-select:none;
    }
    .dock-item:hover{
      transform:translateY(-1px);
      border-color:var(--border-main);
      box-shadow:0 8px 16px rgba(209,107,147,.10);
    }
    .dock-item .dock-dot{
      display:inline-block;
      width:8px;
      height:8px;
      border-radius:50%;
      background:var(--text-pink);
      margin-right:7px;
      vertical-align:middle;
    }

    /* ── 창 푸터 ── */
    .window-footer{
      background:var(--bg-soft);
      padding:7px 12px;
      border-top:1px dashed var(--border-soft);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:6px;
      flex-wrap:wrap;
      color:var(--text-muted);
      font-size:10px;
    }

    .empty{
      padding:46px 14px;
      text-align:center;
      color:var(--text-muted);
      font-size:13px;
    }

    footer{
      margin-top:14px;
      text-align:center;
      color:var(--text-muted);
      font-size:12px;
    }

    /* ── 반응형 ── */
    @media (max-width: 980px){
      .site-title{font-size:23px}
      .article-title{font-size:22px}
      .search-area{justify-content:flex-start}
      .search-area input{min-width:100%}
      .tt-window{
        position:relative !important;
        left:auto !important;
        top:auto !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        min-width:0;
        margin-bottom:14px;
      }
      /* 모바일에서 창 바디가 내부 스크롤 없이 전체 높이로 펼쳐지게 */
      .tt-window .window-body{
        flex:none;
        overflow-y:visible;
        overflow-x:visible;
        height:auto;
        min-height:0;
      }
      /* content-window는 게시글 본문이 잘리지 않게 */
      #content-window{
        overflow:visible;
      }
      .desktop{
        display:flex;
        flex-direction:column;
        gap:0;
      }
      .dock-bar{
        position:relative;
        border-radius:14px;
        margin-top:10px;
      }
      .dock-label{display:none;}

      #banner-window.tt-window {
        order: 9999 !important; 
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 20px; /* 위쪽 본문과의 여백 조정 */
      }
    }

    @media (max-width: 640px){
      .shell{width:min(100%, calc(100% - 12px)); margin:12px auto 20px;}
      .mac-statusbar{
        padding:0 10px;
        gap:8px;
        overflow:hidden;
      }
      .mac-statusbar-left{gap:8px; min-width:0; overflow:hidden;}
      .mac-menu:nth-child(n+3){display:none;}
      .mac-statusbar-right{gap:8px;}
      .tt-window{
        border-radius:12px;
      }
      .window-titlebar{
        padding:8px 10px;
      }
      .window-body{
        padding:10px;
      }
      .blog-header{
        padding:12px;
      }
      .site-title{font-size:20px;}
      .desc-line{font-size:12px;}
      .panel-body{padding:9px 10px;}
      .content-area{padding:10px;}
      .post-card{padding:11px 12px;}
      .post-title{font-size:15px;}
      .article-title{font-size:20px;}
      .dock-bar{
        display: none;
        padding:7px 8px;
      }
      .dock-item{
        padding:6px 9px;
        font-size:11px;
      }
    }

    @media (prefers-reduced-motion: reduce){
      *,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
    }

    /* ── 보라색 연결 버튼 ── */
    .btn-link{
      background:#9b7ec8;
      border-color:rgba(0,0,0,.08);
    }
    .btn-link.is-linked{
      background:#6c3fc5;
      box-shadow:0 0 0 2px rgba(108,63,197,.35);
    }

    /* ── 글 수정/삭제 버튼 ── */
    .article-meta-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      flex-wrap:wrap;
      margin-top:4px;
    }
    .article-admin-btns{
      display:flex;
      gap:6px;
    }
    .admin-btn{
      display:inline-flex;
      align-items:center;
      padding:3px 9px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background:var(--bg-soft);
      color:var(--text-dim);
      font-size:11px;
      cursor:pointer;
      transition:border-color .15s, color .15s;
    }
    .admin-btn:hover{ border-color:var(--border-main); color:var(--text-pink); }
    .admin-btn-del:hover{ border-color:#ffb3b3; color:#e05555; }

    /* ── 비밀글 보호 화면 ── */
    .protected-wrap{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:14px;
      padding:60px 20px;
      text-align:center;
    }
    .protected-icon{ font-size:40px; }
    .protected-msg{
      margin:0;
      color:var(--text-dim);
      font-size:14px;
    }
    .protected-form{
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:center;
      width:100%;
      max-width:260px;
    }
    .protected-form input{
      width:100%;
      padding:8px 14px;
      border:1px solid var(--border-main);
      border-radius:999px;
      background:#fff;
      color:var(--text-main);
      font-size:13px;
      text-align:center;
      outline:none;
    }
    .protected-form input:focus{ border-color:var(--text-pink); box-shadow:0 0 0 2px rgba(209,107,147,.12); }
    .protected-form button{
      padding:8px 22px;
      border:1px solid var(--border-main);
      border-radius:999px;
      background:var(--text-pink);
      color:#fff;
      font-size:13px;
      cursor:pointer;
    }

    /* ── 페이지별 표시 제어 ── */
    /* 홈 페이지: s_list 숨김 */
    body#tt-body-index .post-list-category { display:none !important; }

    /* 본문/방명록 페이지: 글 목록 숨김 */
    body#tt-body-page      .post-list-index,
    body#tt-body-page      .post-list-category,
    body#tt-body-guestbook .post-list-index,
    body#tt-body-guestbook .post-list-category { display:none !important; }

    /* 목록 페이지에서 비밀번호 입력폼 숨김 */
    body#tt-body-index    .protected-wrap,
    body#tt-body-category .protected-wrap,
    body#tt-body-search   .protected-wrap,
    body#tt-body-tag      .protected-wrap { display:none !important; }

    /* 목록 페이지에서 댓글 영역 숨김 */
    body#tt-body-index    .comments,
    body#tt-body-category .comments,
    body#tt-body-search   .comments,
    body#tt-body-tag      .comments,
    body#tt-body-guestbook .comments { display:none !important; }