
/* 20260627-3 global spacing/back/button polish */
.content-page>.content-wrap{padding-top:calc(var(--header-height,90px) + .55in)!important}.back-link-row{margin:0 0 .75rem}.btn.small{padding:.35rem .55rem;font-size:.82rem}.site-stat-card strong{word-break:break-word}.compact-admin-form{margin-bottom:1rem}

/* 20260628 follow-up: keep page cards between the lanterns and below beam */
.content-page > .content-wrap,
main.content-page > .content-wrap {
  width: min(1220px, calc(100vw - 7rem)) !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: calc(var(--header-height, 96px) + 1.1in) !important;
}
@media (max-width: 900px) {
  .content-page > .content-wrap,
  main.content-page > .content-wrap {
    width: calc(100vw - 1.25rem) !important;
    padding-top: calc(var(--header-height, 84px) + .75in) !important;
  }
}
.back-link-row { margin-bottom: .75rem; }


/* 20260628 scrolls NPC rail */
.scrolls-page .content-wrap.scrolls-layout {
  display:grid;
  grid-template-columns:minmax(0, 820px) minmax(240px, 360px);
  gap:1.5rem;
  align-items:start;
}
.scrolls-page .scrolls-main {
  min-width:0;
}
.scrolls-page .scrolls-npc-rail {
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:1.25rem;
}
.scrolls-page .scrolls-npc {
  display:block;
  width:min(100%, 360px);
  max-height:78vh;
  object-fit:contain;
  filter:drop-shadow(0 18px 32px rgba(0,0,0,.42));
}
.scrolls-page .guide-row {
  max-width:100%;
}
@media (max-width: 1040px) {
  .scrolls-page .content-wrap.scrolls-layout {
    grid-template-columns:minmax(0, 1fr);
  }
  .scrolls-page .scrolls-npc-rail {
    order:-1;
    padding-top:0;
  }
  .scrolls-page .scrolls-npc {
    width:min(100%, 300px);
    max-height:none;
  }
}


/* 20260628-14 fixed page backgrounds and bigger scroll NPC */
html,
body,
.content-page,
.hero-scene,
.error-scene,
.guild-page-bg {
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.scrolls-page .content-wrap.scrolls-layout {
  width: min(1440px, calc(100vw - 5rem)) !important;
  max-width: 1440px !important;
  grid-template-columns: minmax(0, 760px) minmax(360px, 560px);
  gap: clamp(1rem, 2.4vw, 2.4rem);
}
.scrolls-page .scrolls-npc-rail {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height, 96px) + .55rem);
  padding-top: 0;
}
.scrolls-page .scrolls-npc {
  width: min(100%, 540px);
  max-height: calc(100vh - var(--header-height, 96px) - 1rem);
}
@media (max-width: 1040px) {
  .scrolls-page .content-wrap.scrolls-layout {
    width: calc(100vw - 1.25rem) !important;
    max-width: 900px !important;
    grid-template-columns: minmax(0, 1fr);
  }
  .scrolls-page .scrolls-npc-rail {
    position: relative;
    top: auto;
    justify-content: center;
  }
  .scrolls-page .scrolls-npc {
    width: min(92vw, 420px);
    max-height: none;
  }
}


/* 20260628-17 guild hall NPC rail */
.guild-hall-page .content-wrap.guild-hall-layout {
  width: min(1450px, calc(100vw - 3rem));
  max-width: 1450px;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: clamp(.75rem, 1.8vw, 1.8rem);
  align-items: start;
}
.guild-hall-page .guild-hall-npc-rail {
  position: fixed;
  top: calc(var(--header-height, 96px) + 1.35in);
  left: clamp(1.25rem, 5vw, 6rem);
  width: min(28vw, 420px);
  height: calc(100vh - var(--header-height, 96px) - 1.5in);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
}
.guild-hall-page .guild-hall-npc {
  display: block;
  width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.46));
}
.guild-hall-page .guild-hall-main {
  position: relative;
  z-index: 3;
  margin-left: clamp(17rem, 17vw, 21rem);
}
@media (max-width: 1180px) {
  .guild-hall-page .content-wrap.guild-hall-layout {
    width: calc(100vw - 1.25rem);
    max-width: 980px;
    grid-template-columns: minmax(0, 1fr);
  }
  .guild-hall-page .guild-hall-npc-rail {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    pointer-events: auto;
    order: -1;
  }
  .guild-hall-page .guild-hall-npc {
    width: min(92vw, 360px);
    max-height: none;
  }
  .guild-hall-page .guild-hall-main {
    margin-left: 0;
  }
}


/* 20260628-18 final NPC layout overrides */
/* Scrolls page: keep elf fixed on the right and keep the cards pushed right */
.scrolls-page .content-wrap.scrolls-layout {
  width: min(1450px, calc(100vw - 3rem)) !important;
  max-width: 1450px !important;
  display: block !important;
}
.scrolls-page .scrolls-main {
  position: relative !important;
  z-index: 3 !important;
  width: min(820px, calc(100vw - 24rem)) !important;
  margin-left: clamp(17rem, 17vw, 21rem) !important;
  margin-right: auto !important;
}
.scrolls-page .scrolls-npc-rail {
  position: fixed !important;
  top: calc(var(--header-height, 96px) + 1.45in) !important;
  right: clamp(2rem, 7vw, 7rem) !important;
  left: auto !important;
  width: min(30vw, 460px) !important;
  height: calc(100vh - var(--header-height, 96px) - 1.7in) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.scrolls-page .scrolls-npc {
  width: min(100%, 460px) !important;
  max-height: 100% !important;
}

/* Guild Hall: fixed dark-elf rail on the left, wide content to the right */
.guild-hall-page .content-wrap.guild-hall-layout {
  width: min(1480px, calc(100vw - 3rem)) !important;
  max-width: 1480px !important;
  display: block !important;
}
.guild-hall-page .guild-hall-main {
  position: relative !important;
  z-index: 3 !important;
  width: min(980px, calc(100vw - 30rem)) !important;
  margin-left: clamp(27rem, 28vw, 31rem) !important;
  margin-right: auto !important;
}
.guild-hall-page .guild-hall-npc-rail {
  position: fixed !important;
  top: calc(var(--header-height, 96px) + 1.45in) !important;
  left: clamp(2.5rem, 6vw, 7rem) !important;
  right: auto !important;
  width: min(24vw, 360px) !important;
  height: calc(100vh - var(--header-height, 96px) - 1.7in) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.guild-hall-page .guild-hall-npc {
  width: min(100%, 340px) !important;
  max-height: 100% !important;
}

@media (max-width: 1180px) {
  .scrolls-page .content-wrap.scrolls-layout,
  .guild-hall-page .content-wrap.guild-hall-layout {
    width: calc(100vw - 1.25rem) !important;
    max-width: 980px !important;
    display: block !important;
  }
  .scrolls-page .scrolls-main,
  .guild-hall-page .guild-hall-main {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .scrolls-page .scrolls-npc-rail,
  .guild-hall-page .guild-hall-npc-rail {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    order: -1 !important;
    pointer-events: auto !important;
  }
  .scrolls-page .scrolls-npc,
  .guild-hall-page .guild-hall-npc {
    width: min(92vw, 420px) !important;
    max-height: none !important;
  }
}


/* 20260628-19 NPC layout fine tune */
.scrolls-page .scrolls-main {
  width: min(820px, calc(100vw - 23rem)) !important;
  margin-left: clamp(15rem, 15vw, 19rem) !important;
}

.guild-hall-page .guild-hall-npc-rail {
  left: clamp(4.5rem, 8vw, 9rem) !important;
  width: min(24vw, 360px) !important;
}

.guild-hall-page .guild-hall-main {
  width: min(820px, calc(100vw - 33rem)) !important;
  margin-left: clamp(25rem, 25vw, 29rem) !important;
}

@media (max-width: 1180px) {
  .scrolls-page .scrolls-main,
  .guild-hall-page .guild-hall-main {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* 20260628-20 NPC layout fine tune */
.scrolls-page .scrolls-main {
  margin-left: clamp(13.5rem, 13.5vw, 17.5rem) !important;
}

.guild-hall-page .guild-hall-npc-rail {
  width: min(27vw, 410px) !important;
}

.guild-hall-page .guild-hall-npc {
  width: min(100%, 390px) !important;
}


/* 20260628-21 admin log viewer */
.log-viewer-toolbar {
  align-items: end;
}
.log-viewer-details {
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: .7rem .8rem;
  border: 2px solid rgba(91,43,14,.7);
  border-radius: 8px;
  background: rgba(255,238,190,.42);
}
.log-viewer-panel {
  overflow: hidden;
}
.log-viewer-output {
  box-sizing: border-box;
  width: 100%;
  max-height: 62vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 1rem;
  border: 2px solid rgba(59,27,8,.65);
  border-radius: 10px;
  background: rgba(30,12,3,.88);
  color: #ffe7aa;
  -webkit-text-fill-color: #ffe7aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .88rem;
  line-height: 1.45;
}


/* 20260628-22 admin utilities and empty states */
.ttz-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .75rem;
  align-items: center;
  margin: .75rem 0;
  padding: .9rem 1rem;
  border: 2px dashed rgba(91,43,14,.45);
  border-radius: 12px;
  background: rgba(255,238,190,.28);
  color: #3b1b08;
}
.ttz-empty-state .material-symbols-outlined {
  font-size: 2rem;
  opacity: .85;
}
.ttz-empty-state p {
  margin: 0;
  font-weight: 700;
}
.maintenance-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1rem;
}
.maintenance-job-card {
  display: grid;
  gap: .5rem;
  padding: 1rem;
  border: 2px solid rgba(91,43,14,.55);
  border-radius: 12px;
  background: rgba(255,238,190,.32);
}
.maintenance-job-card h3,
.maintenance-job-card p {
  margin: 0;
}
.maintenance-job-card .btn {
  justify-self: start;
}
.app-table .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}


/* 20260628-23 pagination, search, canned sort polish */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-top: 1rem;
}
.result-count {
  margin-top: -.25rem;
  font-weight: 800;
  opacity: .82;
}
.scroll-search-form,
.guild-hall-search-form {
  margin-top: 1rem;
}


/* 20260628-24 full-page backgrounds, auth tablet width, and board text fit */
html,
body {
  min-height: 100%;
}
body {
  min-height: 100svh;
}
main.content-page {
  min-height: 100svh;
}
@supports (min-height: 100dvh) {
  body,
  main.content-page {
    min-height: 100dvh;
  }
}

/* Keep account/login-style cards between the lanterns on tablet sizes without touching desktop. */
@media (min-width: 761px) and (max-width: 1400px) {
  body.page-login .content-page > .content-wrap,
  body.page-signup .content-page > .content-wrap,
  body.page-reset-password .content-page > .content-wrap,
  body.page-account .content-page > .content-wrap {
    width: min(920px, calc(100vw - clamp(5rem, 15vw, 15rem))) !important;
    max-width: 920px !important;
  }
}
body.page-login .content-page > .content-wrap,
body.page-signup .content-page > .content-wrap,
body.page-reset-password .content-page > .content-wrap {
  width: min(980px, calc(100vw - 10rem)) !important;
  max-width: 980px !important;
}

/* Home board HTML often has paragraphs; make them inherit the board text sizing and remove wasted margins. */
.notice-board-text .intro p {
  margin: 0 0 .28em;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.notice-board-text .intro p:last-child {
  margin-bottom: 0;
}

@media (min-width: 761px) and (max-width: 1400px) {
  .notice-board-text {
    gap: clamp(.04rem, .14vw, .14rem) !important;
  }
  .notice-board-text h1 {
    font-size: clamp(1.25rem, 2.45vw, 2.15rem) !important;
    line-height: .86 !important;
    margin-bottom: .05rem !important;
  }
  .notice-board-text .intro {
    font-size: clamp(.56rem, .98vw, .78rem) !important;
    line-height: 1.02 !important;
  }
  .notice-board-text .intro p {
    margin-bottom: .22em !important;
  }
  .notice-board-text ul {
    font-size: clamp(.54rem, .92vw, .72rem) !important;
    line-height: 1.02 !important;
  }
  .footer-line {
    font-size: clamp(.52rem, .82vw, .66rem) !important;
    line-height: 1.02 !important;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .notice-board-text {
    gap: .03rem !important;
    inset: 25% 23% 16% 23% !important;
  }
  .notice-board-text h1 {
    font-size: clamp(1rem, 2.25vw, 1.45rem) !important;
    line-height: .82 !important;
    margin-bottom: .02rem !important;
  }
  .notice-board-text .intro {
    font-size: clamp(.48rem, 1.05vw, .62rem) !important;
    line-height: 1.0 !important;
  }
  .notice-board-text .intro p {
    margin-bottom: .16em !important;
  }
  .notice-board-text ul {
    font-size: clamp(.46rem, .96vw, .58rem) !important;
    line-height: 1.0 !important;
  }
  .footer-line {
    font-size: clamp(.44rem, .9vw, .54rem) !important;
    line-height: 1.0 !important;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .notice-board-text .intro p {
    margin-bottom: .18em !important;
  }
}


/* 20260628-25 phone landscape home placement */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
  .home-page .hero-scene {
    overflow: hidden !important;
  }

  .home-page .bartender-layer {
    bottom: -220px !important;
    width: 108vw !important;
    left: -7vw !important;
  }

  .home-page .notice-board {
    top: -20px !important;
    right: clamp(16px, 6vw, 64px) !important;
    width: clamp(330px, 39vw, 430px) !important;
  }
}

@media (orientation: landscape) and (max-height: 400px) and (max-width: 950px) {
  .home-page .bartender-layer {
    bottom: -165px !important;
  }

  .home-page .notice-board {
    top: 24px !important;
  }
}


/* 20260628-26 final pre-polish tweaks */
/* Scrolls mobile/tablet: put the high elf above the cards and let the cards start at the left edge. */
@media (max-width: 1180px) {
  .scrolls-page .content-wrap.scrolls-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
    box-sizing: border-box !important;
  }

  .scrolls-page .scrolls-npc-rail {
    order: -1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    margin: 0 0 .35rem 0 !important;
    display: flex !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  .scrolls-page .scrolls-npc {
    width: min(76vw, 320px) !important;
    max-height: 34vh !important;
    object-fit: contain !important;
  }

  .scrolls-page .scrolls-main {
    order: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Guild home mobile: keep custom guild header/beam stretched across the full viewport. */
@media (max-width: 760px) {
  .site-header.site-header-custom-guild .beam-img.guild-header-beam-img,
  .site-header-custom-guild .beam-img.guild-header-beam-img {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: var(--header-height, 108px) !important;
    margin-left: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}


/* 20260628-27 guild custom header landscape width fix */
/* Portrait was fixed at <=760px; phone landscape is wider than that, so it needs its own override. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1180px) {
  .site-header.site-header-custom-guild,
  .site-header-custom-guild {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .site-header.site-header-custom-guild .beam-img.guild-header-beam-img,
  .site-header-custom-guild .beam-img.guild-header-beam-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: var(--header-height, 82px) !important;
    margin-left: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}


/* 20260628-30 admin scroll table polish */
.admin-scrolls-table {
  table-layout: fixed;
}
.admin-scroll-title-col { width: 28%; }
.admin-scroll-category-col { width: 13%; }
.admin-scroll-slug-col { width: 25%; }
.admin-scroll-status-col { width: 14%; }
.admin-scroll-author-col { width: 12%; }
.admin-scroll-actions-col { width: 8%; }

.admin-scrolls-table th,
.admin-scrolls-table td {
  vertical-align: middle !important;
}

.admin-scrolls-table td:last-child {
  white-space: normal !important;
}

.admin-scrolls-table .clean-table-actions {
  justify-content: flex-end;
  gap: .65rem;
}

.admin-scrolls-table .tag {
  margin: .08rem .18rem .08rem 0;
}

.admin-slug-code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: .18rem .35rem;
  border-radius: 6px;
  background: rgba(50,20,5,.12);
  color: #2b1305;
  -webkit-text-fill-color: #2b1305;
  font-size: .84rem;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .admin-scrolls-table {
    min-width: 920px;
  }
}

/* 20260630-35 ads, required fields, pinned scrolls, support attachments, admin polish */
.guild-ad-banner {
  text-align: center;
  overflow: hidden;
  padding: .75rem;
}
.guild-ad-banner ins,
.guild-ad-banner amp-ad,
.guild-ad-banner iframe {
  max-width: 100%;
}
.field-required-badge {
  display: inline-flex;
  margin-left: .45rem;
  padding: .08rem .38rem;
  border-radius: 999px;
  border: 1px solid rgba(91,43,14,.38);
  background: rgba(255,238,190,.72);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-top: .55rem;
}
.support-attachment-link {
  text-decoration: none;
}
.guide-row:has(.tag.pinned-tag),
.scroll-page:has(.tag.pinned-tag),
.admin-scrolls-table tr:has(.pinned-tag) {
  border-color: rgba(149, 95, 21, .78);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 120, .35), 0 8px 18px rgba(0,0,0,.18);
  background: linear-gradient(135deg, rgba(255,244,190,.58), rgba(255,224,130,.26));
}
.pinned-tag {
  background: linear-gradient(#ffe59a,#c48422);
  color: #2b1305;
  -webkit-text-fill-color: #2b1305;
  border-color: rgba(82,36,6,.45);
}
.admin-mini-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: .65rem;
  border-radius: 8px;
  background: rgba(45,18,5,.16);
  border: 1px solid rgba(70,30,8,.28);
}
.visitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: .8rem;
}
.visitor-stats-grid > div {
  padding: .85rem;
  border: 1px solid rgba(55,24,7,.25);
  border-radius: 10px;
  background: rgba(255,238,190,.34);
}
.visitor-stats-grid strong {
  display:block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}


/* 20260630-44 pinned scroll background fix */
.guide-row,
.scroll-row {
  background: rgba(255, 238, 190, .72);
  border: 1px solid rgba(55,24,7,.26);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin: .75rem 0;
}
.guide-row.is-pinned-scroll,
.scroll-row.is-pinned-scroll,
.scroll-page.is-pinned-scroll,
.guide-row:has(.tag.pinned-tag),
.scroll-row:has(.tag.pinned-tag),
.scroll-page:has(.tag.pinned-tag) {
  background: linear-gradient(135deg, rgba(255,248,211,.96), rgba(255,226,142,.88)) !important;
  border-color: rgba(149, 95, 21, .82) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 215, 120, .38), 0 8px 18px rgba(0,0,0,.18) !important;
}


/* 20260630-48 safe fixed backgrounds for every page */
html,
body {
  min-height: 100%;
  background-color: #050302 !important;
}
body[class*="page-"] {
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
body[class*="page-"] main.content-page,
body[class*="page-"] .content-page,
body[class*="page-"] .hero-scene,
body[class*="page-"] .error-scene {
  background-image: none !important;
  background-color: transparent !important;
}
@media (max-width:1180px), (max-height:700px), (orientation:landscape) {
  body[class*="page-"] {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}




/* 20260701-63 dev mode menu and tools */
.ttz-dev-bar {
  display: none !important;
}
body.dev-mode {
  padding-top: 0 !important;
}
body.dev-mode .site-header {
  top: 0 !important;
}
.ttz-dev-button {
  width: auto;
  min-width: 128px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 74, 74, .78);
  background: linear-gradient(180deg, rgba(114, 18, 22, .96), rgba(49, 7, 10, .97));
  box-shadow: 0 0 0 1px rgba(255, 74, 74, .38), 0 6px 16px rgba(0,0,0,.58);
  color: #ffe1e1;
  -webkit-text-fill-color: #ffe1e1;
  text-shadow: 0 1px 3px #000;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
#ttz-dev-open:checked ~ .ttz-dev-panel {
  display: grid;
}
#ttz-dev-open:checked ~ .ttz-dev-button {
  filter: brightness(1.15);
  box-shadow: inset 0 0 0 2px rgba(255,225,225,.14), 0 0 15px rgba(255,74,74,.28), 0 6px 16px rgba(0,0,0,.58);
}
.ttz-dev-panel {
  border-color: rgba(173, 45, 45, .92);
  background: linear-gradient(rgba(42, 12, 14, .985), rgba(13, 5, 5, .995));
}
.ttz-dev-panel .nav-section-title {
  border-color: rgba(174, 53, 53, .9);
  background: linear-gradient(90deg, rgba(105, 20, 23, .95), rgba(54, 12, 14, .95));
}
.ttz-dev-panel .submenu a:hover {
  border-color: rgba(255, 92, 92, .75);
}
.dev-todo-list {
  display: grid;
  gap: .75rem;
}
.dev-todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgba(55,24,7,.28);
  border-radius: 10px;
  background: rgba(255,238,190,.42);
}
.dev-todo-item h3,
.dev-todo-item p {
  margin: 0 0 .35rem;
}
.dev-todo-item.is-done {
  opacity: .78;
}
.dev-todo-item.is-done h3 {
  text-decoration: line-through;
}
.dev-changelog {
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(20,8,2,.86);
  color: #f8e0a0;
  -webkit-text-fill-color: #f8e0a0;
}
.dev-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: .75rem;
}
.dev-info-grid > div {
  padding: .8rem;
  border: 1px solid rgba(55,24,7,.28);
  border-radius: 10px;
  background: rgba(255,238,190,.38);
}
.dev-info-grid strong,
.dev-info-grid span {
  display: block;
}
@media (max-width: 760px) {
  .ttz-dev-button {
    min-width: 112px;
    height: 40px;
    padding: 0 8px;
    font-size: .62rem;
  }
  .dev-todo-item {
    grid-template-columns: 1fr;
  }
}



/* 20260701-63 final dev button override */
.ttz-dev-button {
  width: auto !important;
  min-width: 128px !important;
  height: 40px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .72rem !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border-color: rgba(255, 74, 74, .78) !important;
  background: linear-gradient(180deg, rgba(114, 18, 22, .96), rgba(49, 7, 10, .97)) !important;
  color: #ffe1e1 !important;
  -webkit-text-fill-color: #ffe1e1 !important;
}
.ttz-dev-button b,
.ttz-dev-button span {
  display: inline !important;
  position: static !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 20260701-63 keep dev menu button visible */
.ttz-menu-cluster.has-dev-menu .ttz-dev-button{display:inline-flex!important;}

/* 20260701-63 dev menu visible fallback */
.ttz-menu-cluster.has-dev-menu {
  gap: .38rem !important;
}
.ttz-menu-cluster.has-dev-menu .ttz-dev-button {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* 20260701-63 restore after broken header patch */
.ttz-menu-cluster.has-dev-menu .ttz-dev-button {
  display: inline-flex !important;
}
