/* recolored from panel-admin-tools.css 1793362077-23689 */
/* ============================================================
   Admin tools: user profile popup (.up-*), Logs tab (.lg-*),
   changelog editor and list (.clx-*), changelog text formatting.
   Reuses .pc-tabs, .pc-icon-btn, .pc-modal-head, .pc-footer and
   .pc-error from panel-catalog.css.
   ============================================================ */

.up-muted { color: var(--td); }
.up-good { color: #8be3a5; }
.up-bad-text, .lg-bad-text { color: #ffc69a; }
.up-break { overflow-wrap: anywhere; }

.up-link {
  padding: 0;
  border: 0;
  background: none;
  color: #ffc69a;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.up-link:hover { color: #fff; text-decoration: underline; }
.up-link:focus-visible { outline: 2px solid rgba(240,136,56,.7); outline-offset: 2px; border-radius: 3px; }

/* ── Profile dialog ── */
.mb.up-modal-box {
  box-sizing: border-box;
  width: min(880px, calc(100vw - 24px));
  max-width: 880px;
  padding: 24px;
  overflow-x: hidden;
}

.up { display: grid; gap: 16px; min-width: 0; }
.up > * { min-width: 0; }

.up-head { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }

.up-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: var(--gh);
  object-fit: cover;
}

.up-id { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.up-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.up-name h3 { margin: 0; overflow: hidden; color: #fff; font-size: 22px; letter-spacing: -.4px; text-overflow: ellipsis; white-space: nowrap; }

.up-uid, .up-email {
  padding: 0;
  border: 0;
  background: none;
  color: var(--td);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: copy;
}

.up-uid:hover, .up-email:hover { color: #fff; }
.up-email { overflow: hidden; max-width: 100%; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.up-title { color: var(--tm); font-size: 12.5px; }
.up-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.up-head-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.up-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--tm);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.up-chip i { font-size: 10px; }
.up-chip.up-good { background: rgba(96, 220, 130, .12); color: #8be3a5; }
.up-chip.up-bad { background: rgba(240,136,56,.18); color: #ffc69a; }
.up-chip.up-warn { background: rgba(245, 158, 11, .13); color: #fbbf24; }
.up-chip.up-accent { background: rgba(99, 102, 241, .15); color: #a5b4fc; }
.up-chip.up-soft { background: rgba(255, 255, 255, .04); color: var(--td); font-weight: 600; }

.up-ban {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(240,136,56,.32);
  border-radius: 14px;
  background: rgba(94,53,22,.3);
  color: #ffc69a;
}

.up-ban > i { font-size: 18px; }
.up-ban > div { flex: 1 1 auto; min-width: 0; }
.up-ban strong { color: #fff; font-size: 13.5px; }
.up-ban p { margin: 3px 0 0; color: var(--tm); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }

.up-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

.up-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.up-stat-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(240,136,56,.1);
  color: #ffbe8c;
  font-size: 13px;
}

.up-stat > div { min-width: 0; }
/* Scoped to the text column: the icon box is a span too. */
.up-stat > div span { display: block; color: var(--td); font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.up-stat > div strong { display: block; color: #fff; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }

.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.up-wide { grid-column: 1 / -1; }

.up-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
}

.up-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.up-card-head h4 { margin: 0; color: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.up-card-head h4 i { margin-right: 6px; color: #ffbe8c; }
.up-empty { margin: 0; color: var(--td); font-size: 12.5px; }
.up-note { margin: 8px 0 0; color: var(--td); font-size: 11.5px; }

.up-rows { display: grid; gap: 0; margin: 0; }

.up-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.up-row:first-child { border-top: 0; }
.up-row dt { color: var(--td); font-size: 11.5px; font-weight: 600; }
.up-row dd { margin: 0; min-width: 0; color: var(--tm); font-size: 12.5px; overflow-wrap: anywhere; }
.up-row-action .btn { padding: 5px 10px; }

.up-subs, .up-logins, .up-linked, .lg-accounts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.up-subs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
}

.up-subs li.is-paused { opacity: .7; }
.up-subs strong { min-width: 0; overflow: hidden; color: #fff; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.up-subs span { flex: 0 0 auto; color: var(--td); font-size: 11.5px; }

.up-logins li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
}

.up-logins time { color: var(--td); white-space: nowrap; }

.up-linked li, .lg-accounts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: rgba(0, 0, 0, .16);
}

.up-linked-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.up-linked li, .lg-accounts li, .up-linked-main { box-sizing: border-box; max-width: 100%; }
.up-linked-main strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.up-linked-main span { overflow: hidden; color: var(--td); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.up-linked-main:hover strong { color: #ffc69a; }
.up-linked-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.up-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.up-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 720px) {
  .mb.up-modal-box { padding: 18px 14px; }
  .up-head { flex-wrap: wrap; }
  .up-avatar { width: 56px; height: 56px; border-radius: 14px; }
  .up-head-actions { order: -1; width: 100%; justify-content: flex-end; }
  .up-grid { grid-template-columns: minmax(0, 1fr); }
  .up-row { grid-template-columns: 96px minmax(0, 1fr); }
  .up-row-action { grid-column: 2; }
  .up-logins li { grid-template-columns: auto minmax(0, 1fr); }
  .up-actions > div, .up-actions > div .btn, .up-actions > .btn { flex: 1 1 auto; }
}

/* ── Logs tab ── */
.lg { display: grid; gap: 16px; min-width: 0; container: logs / inline-size; }
.lg [hidden] { display: none !important; }
.lg-head h3 { margin: 3px 0 4px; color: #fff; font-size: 20px; letter-spacing: -.3px; }
.lg-head p { margin: 0; max-width: 70ch; color: var(--td); font-size: 12.5px; line-height: 1.6; }

.lg .lg-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.lg .lg-filterbar .admin-search-field { grid-column: 1 / -1; }
.lg .lg-filterbar .admin-filter-field { flex: none; }
.lg .lg-filterbar .ig { margin: 0; }
.lg .lg-filterbar input[type="date"] { padding-left: 14px; }
.lg .lg-filterbar-ips { grid-template-columns: minmax(0, 1fr) auto; }
.lg .lg-filterbar-ips .admin-search-field { grid-column: auto; }

.lg-list { display: grid; gap: 12px; min-width: 0; }
.lg-count { margin: 0 2px; color: var(--td); font-size: 11.5px; }
.lg-sub { margin: 4px 2px 0; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }

.lg-rows {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  list-style: none;
}

.lg-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.lg-row:first-child { border-top: 0; }
.lg-row:hover { background: rgba(255, 255, 255, .02); }
.lg-when { display: grid; gap: 2px; min-width: 0; }
.lg-when strong { color: #fff; font-size: 12.5px; }
.lg-when span { color: var(--td); font-size: 11px; }
.lg-what { display: grid; gap: 6px; min-width: 0; }
.lg-line { color: var(--tm); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lg-action { color: #fff; font-weight: 650; }
.lg-arrow { margin: 0 4px; color: var(--td); font-size: 10px; }
.lg-strong { color: #fff; font-weight: 650; }
.lg-attempt { color: var(--tm); font-size: 12px; }
.lg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--td); font-size: 11.5px; min-width: 0; }

.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--tm);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.lg-chip i { font-size: 9px; }
.lg-ok { background: rgba(96, 220, 130, .12); color: #8be3a5; }
.lg-bad { background: rgba(240,136,56,.16); color: #ffc69a; }
.lg-warn { background: rgba(245, 158, 11, .13); color: #fbbf24; }
.lg-info { background: rgba(99, 102, 241, .15); color: #a5b4fc; }

.lg-details summary { color: var(--td); font-size: 11.5px; cursor: pointer; }
.lg-details p { margin: 6px 0 0; color: var(--tm); font-size: 12px; overflow-wrap: anywhere; }

.lg-details dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin: 6px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .25);
  font-size: 11.5px;
}

.lg-details dt { color: var(--td); text-transform: capitalize; }
.lg-details dd { margin: 0; color: #e4e4e7; overflow-wrap: anywhere; }

.lg-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}

.lg-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-card-head h4 { margin: 3px 0 0; color: #fff; font-size: 16px; overflow-wrap: anywhere; }

.lg-ips { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.lg-ips li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: rgba(0, 0, 0, .16);
}

.lg-ip-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 13px; }
.lg-ip-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--td); font-size: 11.5px; }
.lg-ip-stats strong { color: #fff; }
.lg-shared { white-space: nowrap; }

.lg-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--td); font-size: 12px; }
.lg-pager > div { display: flex; gap: 6px; }

.lg-empty, .lg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  border: 1px dashed rgba(255, 255, 255, .09);
  border-radius: 14px;
  color: var(--td);
  font-size: 13px;
  text-align: center;
}

.lg-empty i { color: rgba(240,136,56,.55); font-size: 24px; }
.lg-empty p { margin: 0; overflow-wrap: anywhere; }

@container logs (min-width: 900px) {
  .lg .lg-filterbar { grid-template-columns: minmax(0, 1fr) 200px 150px 150px auto; }
  .lg .lg-filterbar .admin-search-field { grid-column: auto; }
  .lg .lg-filterbar-ips { grid-template-columns: minmax(0, 1fr) 200px auto; }
}

@container logs (max-width: 560px) {
  .lg .lg-filterbar, .lg .lg-filterbar-ips { grid-template-columns: minmax(0, 1fr); }
  .lg .lg-filterbar .admin-search-button { width: 100%; }
  .lg-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lg-when { grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
  .lg-ips li { grid-template-columns: minmax(0, 1fr); }
}

/* ── Changelog list and editor ── */
.clx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.clx-head > div { min-width: 0; flex: 1 1 320px; }
.clx-head h3 { margin: 3px 0 4px; color: #fff; font-size: 20px; letter-spacing: -.3px; }
.clx-head p { margin: 0; max-width: 72ch; color: var(--td); font-size: 12.5px; line-height: 1.6; }

.clx-list {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  list-style: none;
}

.clx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.clx-item:first-child { border-top: 0; }
.clx-item:hover { background: rgba(255, 255, 255, .02); }
.clx-item-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.clx-item-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.clx-item-title strong { min-width: 0; overflow: hidden; color: #fff; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.clx-ver { flex: 0 0 auto; color: var(--td); font-size: 11.5px; }
.clx-sub { color: var(--td); font-size: 11.5px; }
.clx-item-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.mb.clx-modal-box {
  box-sizing: border-box;
  width: min(1040px, calc(100vw - 24px));
  max-width: 1040px;
  padding: 24px;
  overflow-x: hidden;
}

.clx { display: grid; gap: 14px; min-width: 0; }
.clx > * { min-width: 0; }

.clx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clx-grid > label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.clx-grid > label > span { color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 700; }
.clx-grid > label > small { color: var(--td); font-size: 10.5px; line-height: 1.4; }
.clx-grid .wide { grid-column: 1 / -1; }
.clx .ki { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.clx select.ki { padding-right: 12px; }
.clx input[type="datetime-local"].ki { color-scheme: dark; }

.clx-editor { overflow: hidden; border: 1px solid rgba(240,146,74,.3); border-radius: 12px; background: var(--g); }

.clx-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .2);
}

.clx-tool {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tm);
  cursor: pointer;
}

.clx-tool:hover { background: rgba(240,136,56,.16); color: #fff; }
.clx-tool:focus-visible { outline: 2px solid rgba(240,136,56,.7); outline-offset: 1px; }
.clx-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .1); }
.clx-hint { margin-left: auto; padding-right: 6px; color: var(--td); font-size: 11px; }

.clx-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 300px; }

.clx .clx-text {
  height: auto;
  min-height: 300px;
  padding: 14px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--mn, monospace);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.clx .clx-text:focus { transform: none; box-shadow: inset 0 0 0 2px rgba(240,136,56,.25); background: transparent; }

.clx-preview {
  min-width: 0;
  max-height: 520px;
  padding: 14px 16px;
  overflow: auto;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.clx-empty { color: var(--td); font-style: italic; }

.clx-gallery { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .018); }
.clx-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.clx-gallery-head .btn { cursor: pointer; letter-spacing: 0; text-transform: none; }

@media (max-width: 860px) {
  .clx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clx-panes { grid-template-columns: minmax(0, 1fr); }
  .clx .clx-text { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); min-height: 220px; }
  .clx-hint { display: none; }
}

@media (max-width: 520px) {
  .mb.clx-modal-box { padding: 18px 14px; }
  .clx-grid { grid-template-columns: minmax(0, 1fr); }
  .clx-item { flex-wrap: wrap; }
  .clx-item-actions { width: 100%; justify-content: flex-end; }
}

/* ── Changelog text formatting (customer view and editor preview) ── */
.cl-t-body strong { color: #fff; font-weight: 750; }
.cl-t-body em { font-style: italic; }
.cl-t-body u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cl-t-body s { opacity: .7; }

.cl-t-body code {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 5px;
  background: rgba(0, 0, 0, .3);
  color: #ffd0d5;
  font-family: var(--mn, monospace);
  font-size: .92em;
}

.cl-t-body a { color: #ffc69a; text-decoration: underline; text-underline-offset: 3px; }
.cl-t-body a:hover { color: #fff; }

.cl-t-body .cl-h {
  display: block;
  margin: 12px 0 4px;
  color: #fff;
  font-size: 1.02em;
  font-weight: 800;
  letter-spacing: -.1px;
}

.cl-t-body .cl-h:first-child { margin-top: 0; }

/* ── Admin > System > Themes ── */
.th { display: grid; gap: 16px; min-width: 0; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }

.th-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
}

.th-card.is-active { border-color: rgba(96, 220, 130, .45); box-shadow: 0 0 0 1px rgba(96, 220, 130, .2) inset; }

.th-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 45%),
    radial-gradient(circle at 15% 90%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 55%),
    linear-gradient(160deg, #120a14, var(--c2));
}

.th-art img { position: relative; z-index: 1; max-width: 62%; max-height: 96px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .5)); }
.th-art-moon { position: absolute; top: 14px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff5dc, #f4a35a); box-shadow: 0 0 30px rgba(255, 190, 110, .5); }
.th-art-bat { position: absolute; top: 22px; left: 18%; font-size: 20px; animation: th-bat 4s ease-in-out infinite; }
.th-art-ghost { position: absolute; right: 16px; bottom: 10px; font-size: 30px; animation: th-ghost 3s ease-in-out infinite; }

@keyframes th-bat { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(40px, 10px) rotate(8deg); } }
@keyframes th-ghost { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.th-body { display: grid; gap: 10px; padding: 14px 16px 16px; min-width: 0; }
.th-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-title h4 { margin: 0; color: #fff; font-size: 16px; }
.th-body p { margin: 0; color: var(--td); font-size: 12.5px; line-height: 1.55; }
.th-swatches { display: flex; gap: 6px; }
.th-swatches span { width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; }
.th-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.th-actions .btn { text-decoration: none; }

.th-settings {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.th-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; }
.th-form > label:not(.pc-toggle) { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.th-form > label > span { color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 700; }
.th-form .ki { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }

.th-coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.th-coupon > div { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.th-coupon strong { color: #fff; }
.th-coupon span { color: var(--td); }
.th-ok { background: rgba(96, 220, 130, .08); color: #8be3a5; }
.th-warn { background: rgba(245, 158, 11, .09); color: #fbbf24; }
.th-muted { background: rgba(255, 255, 255, .04); color: var(--td); }
.th-art-snow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 20%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 30% 60%, #fff, transparent 60%),
    radial-gradient(2.4px 2.4px at 52% 30%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 70% 75%, #fff, transparent 60%),
    radial-gradient(2px 2px at 86% 40%, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 92% 12%, #fff, transparent 60%);
  animation: th-snow 6s linear infinite;
}

@keyframes th-snow { from { background-position: 0 -150px; } to { background-position: 0 0; } }
.th-art-sun { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff7d6, #fbbf24); box-shadow: 0 0 34px rgba(253, 230, 138, .6); }
.th-art-grass {
  position: absolute;
  inset: auto 0 0 0;
  height: 26px;
  background:
    radial-gradient(5px 7px at 22% 40%, #f9cba8 60%, transparent 62%),
    radial-gradient(5px 7px at 64% 50%, #c4b5fd 60%, transparent 62%),
    radial-gradient(5px 7px at 82% 35%, #fde68a 60%, transparent 62%),
    linear-gradient(180deg, transparent, rgba(74, 222, 128, .45));
}
