


#tk-guest {
  flex: 1; min-height: calc(100vh - 75px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 2rem; position: relative; z-index: 1;
}
#tk-guest i { color: var(--text-dim); }
#tk-guest h1 { font-size: 1.35rem; font-weight: 800; }
#tk-guest p { color: var(--text-muted); max-width: 420px; font-size: .9rem; }


#tk-page { width: 100%; min-height: calc(100vh - 75px); position: relative; z-index: 1; }
.tk-container { max-width: 780px; margin: 0 auto; padding: 2.4rem 1.5rem 4rem; }


.tk-patchnotes { width: 100%; margin-top: 75px; position: relative; z-index: 1; }
.tk-patchnotes-container { max-width: 780px; margin: 0 auto; padding: 2.4rem 1.5rem 0; }
.tk-patchnotes-head h2 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tk-patchnotes-head p { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.2rem; }

.tk-patchnotes-tabs { display: flex; gap: 8px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.tk-patchnotes-tab {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text-muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit;
}
.tk-patchnotes-tab:hover { color: var(--text); border-color: var(--text-muted); }
.tk-patchnotes-tab.active { background: var(--blue-light, #E7E7EC); border-color: var(--blue-light, #E7E7EC); color: #0a0a0a; }

.tk-patchnotes-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.tk-patchnotes-empty { padding: 1.6rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

.tk-patchnote-card {
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--glass);
}
.tk-patchnote-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tk-patchnote-version {
  font-size: .74rem; font-weight: 700; color: var(--text-dim); background: rgba(255,255,255,.06);
  padding: 2px 8px; border-radius: 6px;
}
.tk-patchnote-date { font-size: .78rem; color: var(--text-muted); margin-left: auto; }
.tk-patchnote-title { font-weight: 700; font-size: .96rem; margin-bottom: 4px; }
.tk-patchnote-body { color: var(--text-muted); font-size: .87rem; line-height: 1.7; white-space: pre-line; }


.tk-list-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 1.8rem; flex-wrap: wrap;
}
.tk-list-head h1 { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.tk-list-head p { color: var(--text-muted); font-size: .87rem; max-width: 440px; }

.tk-card-list { display: flex; flex-direction: column; gap: 10px; }
.tk-list-empty {
  padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); font-size: .87rem; line-height: 1.6;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
}

.tk-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%; text-align: left;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, transform .15s; font-family: inherit; color: var(--text);
}
.tk-card:hover { border-color: var(--blue-light); transform: translateY(-1px); }
.tk-card-icon {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
}
.tk-card-main { flex: 1; min-width: 0; }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tk-card-subject { font-weight: 700; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-card-sub { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-card-sub .dot { opacity: .5; }
.tk-card-arrow { color: var(--text-muted); flex-shrink: 0; }

.tk-status-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; flex-shrink: 0; white-space: nowrap;
}
.tk-status-pill.open { background: rgba(234, 179, 8, .15); color: #EAB308; }
.tk-status-pill.answered { background: rgba(16, 185, 129, .15); color: var(--green); }
.tk-status-pill.closed { background: rgba(113, 113, 122, .18); color: var(--text-dim); }


.tk-back-link {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: .84rem; font-weight: 600; font-family: inherit; padding: 0; margin-bottom: 1.4rem;
  transition: color .15s;
}
.tk-back-link:hover { color: var(--text); }

.tk-detail-head {
  padding-bottom: 1.2rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--glass-border);
}
.tk-detail-head-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tk-ticket-num { font-size: .78rem; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; }
.tk-detail-head h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.tk-detail-meta { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }


.tk-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 1.6rem; }

.tkt-message {
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-border);
  border-left: 3px solid var(--glass-border); padding: 14px 16px;
}
.tkt-message.is-admin { border-left-color: var(--green); }
.tkt-message.is-user { border-left-color: var(--blue-light); }
.tkt-message-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tkt-message-author { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem; color: var(--text); }
.tkt-message-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 750; color: #fff; }
.tkt-message-badge-admin {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 20px;
  background: rgba(16, 185, 129, .15); color: var(--green); font-size: .63rem; font-weight: 700; text-transform: uppercase;
}
.tkt-message-date { font-size: .74rem; color: var(--text-muted); white-space: nowrap; }
.tkt-message-body { font-size: .89rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--text-dim); }

.tk-closed-banner {
  margin-bottom: 1.4rem; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(113, 113, 122, .12); border: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: .85rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}


.tk-reply-form { display: flex; flex-direction: column; gap: 8px; }
.tk-reply-form label { font-size: .8rem; font-weight: 650; color: var(--text-dim); }
.tk-reply-form textarea {
  width: 100%; resize: vertical; min-height: 96px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-family: inherit; font-size: .88rem; line-height: 1.5;
}
.tk-reply-form textarea:focus { outline: none; border-color: var(--blue-light); }
.tk-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }


.tk-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tk-form-row label { font-size: .8rem; font-weight: 650; color: var(--text-dim); }
.tk-form-row textarea { min-height: 110px; resize: vertical; font-family: inherit; }


.tkt-message-thread-admin { display: flex; flex-direction: column; gap: 12px; }


@media (max-width: 600px) {
  .tk-container { padding: 1.6rem 1rem 3rem; }
  .tk-list-head { flex-direction: column; align-items: stretch; }
  .tk-list-head .btn { width: 100%; justify-content: center; }
  .tk-card { flex-wrap: wrap; }
}
