:root {
  --tenx-shell-forest: #103a2e;
  --tenx-shell-forest-deep: #09291f;
  --tenx-shell-ivory: #f7f3e8;
  --tenx-shell-gold: #d3b66f;
  --tenx-shell-line: rgba(255, 255, 255, .12);
}

.tenx-original-header { display: none !important; }

.tenx-shell {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--tenx-shell-ivory);
  background: rgba(9, 41, 31, .97);
  border-bottom: 1px solid var(--tenx-shell-line);
  box-shadow: 0 12px 40px rgba(5, 25, 19, .13);
  backdrop-filter: blur(16px);
}

.tenx-shell a { text-decoration: none; }

.tenx-shell-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--tenx-shell-ivory);
  letter-spacing: -.05em;
  font: 800 29px/1 "DM Sans", Pretendard, sans-serif;
}

.tenx-shell-brand i {
  color: var(--tenx-shell-gold);
  font-style: normal;
}

.tenx-shell-brand small {
  color: rgba(247, 243, 232, .54);
  letter-spacing: .16em;
  font: 700 8px/1 "JetBrains Mono", monospace;
}

.tenx-shell-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.tenx-shell-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: rgba(247, 243, 232, .65);
  white-space: nowrap;
  font: 650 13px/1 Pretendard, sans-serif;
}

.tenx-shell-nav a:hover,
.tenx-shell-nav a.is-active { color: #fff; }

.tenx-shell-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  background: var(--tenx-shell-gold);
  content: "";
}

.tenx-shell-tools { display: flex; align-items: center; gap: 10px; }

.tenx-shell-home,
.tenx-shell-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(211, 182, 111, .3);
  border-radius: 999px;
  color: var(--tenx-shell-ivory);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  list-style: none;
  font: 650 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .08em;
}

.tenx-shell-more { position: relative; }
.tenx-shell-more summary::-webkit-details-marker { display: none; }

.tenx-shell-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(211, 182, 111, .23);
  border-radius: 15px;
  background: #0b3025;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.tenx-shell-menu a {
  padding: 11px 12px;
  border-radius: 9px;
  color: rgba(247, 243, 232, .72);
  font: 600 12px/1.2 Pretendard, sans-serif;
}

.tenx-shell-menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.tenx-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 43px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(16, 58, 46, .1);
  color: #52645c;
  background: #f4f0e4;
  font: 650 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .07em;
}

.tenx-context-strip b { color: #163f33; }
.tenx-context-strip em { color: #a17e31; font-style: normal; }
.tenx-data-state { overflow: hidden; max-width: 58vw; text-overflow: ellipsis; white-space: nowrap; }
.tenx-data-state::before { color: #d0a646; content: "●"; margin-right: 7px; }
.tenx-data-state.is-live::before { color: #4aaa7c; }

@media (max-width: 980px) {
  .tenx-shell { grid-template-columns: auto 1fr; min-height: 64px; padding: 0 18px; }
  .tenx-shell-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; gap: 22px; }
  .tenx-shell-nav a { padding: 12px 0 15px; }
  .tenx-shell-nav a.is-active::after { bottom: 8px; }
  .tenx-shell-tools { justify-self: end; }
  .tenx-shell-home { display: none; }
}

@media (max-width: 640px) {
  .tenx-shell-brand { font-size: 25px; }
  .tenx-shell { padding-top: 10px; }
  .tenx-shell-more summary { min-height: 30px; padding-inline: 10px; }
  .tenx-context-strip { align-items: flex-start; flex-direction: column; padding-block: 11px; line-height: 1.45; }
  .tenx-data-state { max-width: 100%; white-space: normal; }
}
