
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Bold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/NotoSerifSC-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/NotoSerifSC-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


:root {
  --ui-bg: #090c0b;
  --ui-panel: #111513;
  --ui-panel-2: #181d1a;
  --ui-line: #29312c;
  --ui-text: #e9e7e1;
  --ui-dim: #9a9f98;
  --ui-accent: #c23b5a;
  --ui-accent-rgb: 194, 59, 90;
  --ui-accent-2: #e07a92;
  --ui-accent-dark: #8f2742;
  --ui-ok: #5cc08a;
  --ui-warn: #e0b45c;
  --ui-font: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: var(--ui-font); }
body {
  margin: 0; background: var(--ui-bg); color: var(--ui-text);
  font-family: var(--ui-font);
  font-size: 14px; overflow: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0e0d13; }
::-webkit-scrollbar-thumb { background: #332f3d; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #443e52; }


.appbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px; background: linear-gradient(180deg, #161c18, #0e1210);
  border-bottom: 1px solid var(--ui-line); position: relative; z-index: 20;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; display: block; }
.brand h1 { font-size: 16px; margin: 0; letter-spacing: 2px; font-weight: 700; }
.brand p { margin: 2px 0 0; font-size: 10px; letter-spacing: 2px; color: var(--ui-dim); }
.appbar-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.share-note {
  display: block; flex: 1 1 auto; min-width: 0; text-align: center;
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 10px; pointer-events: none;
}
@media (max-width: 1100px) { .share-note { display: none; } }
.save-state { font-size: 12px; color: var(--ui-dim); margin-right: 6px; }
.save-state.ok { color: var(--ui-ok); }

.btn {
  background: var(--ui-panel-2); border: 1px solid var(--ui-line); color: var(--ui-text);
  padding: 8px 14px; border-radius: 4px; letter-spacing: 1px; transition: .15s;
}
.btn:hover { background: #262432; border-color: #3b3748; }
.btn.primary { background: linear-gradient(100deg, var(--ui-accent), var(--ui-accent-dark)); border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.danger { color: #ffb7c2; border-color: #5a2632; }
.btn.danger:hover { background: #2a1118; }
.btn[disabled] { opacity: .45; pointer-events: none; }


.layout { display: flex; height: calc(100% - 62px); }
.sidebar {
  width: 452px; min-width: 452px; background: var(--ui-panel);
  border-right: 1px solid var(--ui-line); display: flex; flex-direction: column;
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--ui-line); background: #100f16; }
.tab {
  padding: 6px 11px; border-radius: 4px; border: 1px solid transparent;
  background: transparent; color: var(--ui-dim); letter-spacing: 1px;
}
.tab:hover { color: var(--ui-text); background: rgba(255, 255, 255, .04); }
.tab.on { background: rgba(var(--ui-accent-rgb), .16); color: #fff; border-color: rgba(var(--ui-accent-rgb), .5); }
.panels { flex: 1; overflow-y: auto; padding: 16px 16px 70px; }
.panel { display: none; }
.panel.on { display: block; }


.group { margin-bottom: 22px; }
.group > h3 {
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim); font-weight: 400;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ui-line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.field { margin-bottom: 12px; }
.field > label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ui-dim); margin-bottom: 6px; letter-spacing: 1px;
}
.field .val { color: var(--ui-accent-2); font-size: 12px; }
.inp, textarea.inp, select.inp {
  width: 100%; background: #0e0d14; border: 1px solid var(--ui-line);
  border-radius: 4px; padding: 8px 10px; outline: none; transition: .15s;
}
.inp:focus { border-color: rgba(var(--ui-accent-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--ui-accent-rgb), .12); }
textarea.inp { resize: vertical; min-height: 74px; line-height: 1.7; }
input[type=range] { width: 100%; accent-color: var(--ui-accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ui-text); margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--ui-accent); width: 15px; height: 15px; }
.hint { font-size: 11px; color: #77718a; line-height: 1.65; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--ui-line); background: #16151d; padding: 6px 10px;
  border-radius: 999px; font-size: 12px; letter-spacing: 1px; display: flex; align-items: center; gap: 7px;
}
.chip.on { border-color: rgba(var(--ui-accent-rgb), .8); background: rgba(var(--ui-accent-rgb), .15); }
.chip i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.chip:hover { background: #221f2b; }


.imgfield { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.imgthumb {
  width: 96px; height: 96px; flex: 0 0 96px; border: 1px solid var(--ui-line);
  border-radius: 4px; background:
    linear-gradient(45deg, #17161d 25%, transparent 25%, transparent 75%, #17161d 75%) 0 0/16px 16px,
    linear-gradient(45deg, #17161d 25%, transparent 25%, transparent 75%, #17161d 75%) 8px 8px/16px 16px,
    #100f16;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.imgthumb.tall { height: 128px; }
.imgthumb img { width: 100%; height: 100%; object-fit: contain; }
.imgthumb .none { font-size: 11px; color: #6a6478; }
.imgfield .col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.imgfield .btnrow { display: flex; gap: 8px; flex-wrap: wrap; }


.plate-note {
  margin-bottom: 14px; padding: 10px 12px; line-height: 1.7; font-size: 11px;
  color: #cfc7d8; border: 1px solid rgba(var(--ui-accent-rgb), .35); border-radius: 8px;
  background: rgba(var(--ui-accent-rgb), .09);
}
[data-plate-show] { display: none; }
.plate-active [data-plate-show] { display: block; }
.plate-active [data-plate-hide] { display: none; }


.reset-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px; margin-bottom: 14px; border: 1px solid rgba(var(--ui-accent-rgb), .24);
  border-radius: 10px; background: linear-gradient(110deg, rgba(var(--ui-accent-rgb), .12), #13121a 55%);
}
.reset-bar > div:first-child { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 2px; }
.reset-bar b { font-size: 13px; letter-spacing: 1px; color: #fff; }
.reset-bar span { font-size: 10.5px; color: var(--ui-dim); line-height: 1.5; }
.reset-bar .btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.group > h3 .btn.sm { font-size: 10px; padding: 3px 7px; letter-spacing: .5px; }


.stage-toolbar {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-bottom: 14px;
  border: 1px solid rgba(var(--ui-accent-rgb), .24); border-radius: 10px;
  background: linear-gradient(110deg, rgba(var(--ui-accent-rgb), .12), #13121a 55%);
}
.stage-stats { display: flex; align-items: baseline; gap: 6px; font-size: 11px; letter-spacing: 1px; color: var(--ui-dim); }
.stage-stats b { font-size: 22px; line-height: 1; color: #fff; font-weight: 700; }
.stage-stats i { width: 1px; height: 14px; background: var(--ui-line); margin: 0 4px; align-self: center; }
.stage-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-toolbar .hint { margin: 0; }
.stage-toolbar-actions .btn { flex: 0 0 auto; }

.fold { border: 1px solid var(--ui-line); border-radius: 8px; background: #0d110f; margin-bottom: 14px; overflow: hidden; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; letter-spacing: 2px; color: var(--ui-dim); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: '+'; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ui-line); border-radius: 4px; font-size: 12px; color: var(--ui-accent-2);
}
.fold[open] > summary::before { content: '−'; }
.fold > summary span { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: #6f6879; }
.fold[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, .05); margin-bottom: 12px; }
.fold-body { padding: 0 12px 12px; }

.stagecard {
  border: 1px solid rgba(255, 255, 255, .10); border-top: 3px solid var(--stage-color, var(--ui-accent));
  border-radius: 10px; margin-bottom: 18px; background: #0d0c12; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.stagecard-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.stage-num {
  flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
  color: var(--stage-color); font-size: 16px; font-weight: 700;
}
.stage-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stage-title b { font-size: 14px; color: #fff; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-title span { font-size: 10.5px; color: var(--ui-dim); letter-spacing: .5px; }
.stage-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.icon-btn {
  width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--ui-dim); font-size: 12px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--ui-line); color: #fff; }
.icon-btn.danger:hover { border-color: #6a2a38; color: #ffc0cb; background: #2a1118; }
.mini-btn {
  padding: 3px 7px; font-size: 10.5px; letter-spacing: .5px; background: transparent;
  border: 1px solid var(--ui-line); border-radius: 4px; color: var(--ui-dim);
}
.mini-btn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mini-btn.danger:hover { border-color: #6a2a38; color: #ffc0cb; background: #2a1118; }

.stagecard-body { padding: 0 12px 12px; }
.stage-settings { margin-top: 12px; border: 1px dashed rgba(255, 255, 255, .10); border-radius: 8px; background: #0a0910; overflow: hidden; }
.stage-settings > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 10.5px; letter-spacing: 2px; color: #7d7688; }
.stage-settings > summary::-webkit-details-marker { display: none; }
.stage-settings > summary::before { content: '+'; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ui-line); border-radius: 4px; font-size: 11px; color: var(--ui-accent-2); }
.stage-settings[open] > summary::before { content: '−'; }
.stage-settings > summary em { margin-left: auto; font-style: normal; font-size: 9.5px; letter-spacing: 0; color: #6f6879; }
.stage-settings[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.stage-settings-body { padding: 12px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 10.5px; letter-spacing: 2px; color: #7d7688; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-grid .field { margin-bottom: 0; }
.settings-grid .span2 { grid-column: 1 / -1; }
.settings-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.settings-colors .mini-label { flex: 0 0 auto; }
.settings-colors .colorchips { gap: 5px; }
.settings-colors .cchip { padding: 3px 7px; font-size: 10.5px; }
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.mini-check { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ui-dim); letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.mini-check input { accent-color: var(--ui-accent); width: 13px; height: 13px; }

.skills-head { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.skills-title { font-size: 10.5px; letter-spacing: 2px; color: #7d7688; }
.skills-count {
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(var(--ui-accent-rgb), .18); color: var(--ui-accent-2); font-size: 10px;
}
.skills-head .sp { flex: 1; }
.link-btn { padding: 2px 4px; background: none; border: 0; color: var(--ui-accent-2); font-size: 10.5px; letter-spacing: .5px; }
.link-btn:hover { text-decoration: underline; }

.skill-list { display: flex; flex-direction: column; gap: 8px; }
.skills-empty { margin: 4px 0; font-size: 11px; color: #6f6879; letter-spacing: 1px; }

.skillcard { border: 1px solid var(--ui-line); border-left: 3px solid var(--sk-color, var(--ui-accent)); border-radius: 7px; background: #0a0910; overflow: hidden; }
.skill-head { display: flex; align-items: center; gap: 6px; padding: 8px 9px; cursor: pointer; user-select: none; background: linear-gradient(90deg, rgba(255, 255, 255, .035), transparent 60%); }
.skillcard:not(.collapsed) .skill-head { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.skill-head:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 60%); }
.sk-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--sk-color); box-shadow: 0 0 7px var(--sk-color); }
.sk-idx { font-size: 9.5px; letter-spacing: 1px; color: #77718a; white-space: nowrap; }
.sk-name { font-size: 12.5px; font-weight: 700; color: var(--sk-color); max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-badges { display: flex; align-items: center; gap: 3px; min-width: 0; max-width: 108px; overflow: hidden; }
.mini-badge { flex: 0 0 auto; padding: 1px 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .035); color: #b9b3c2; font-size: 9px; line-height: 14px; white-space: nowrap; }
.mini-badge.sfx { border-color: rgba(var(--ui-accent-rgb), .45); color: var(--ui-accent-2); }
.mini-badge.ex { border-color: #8a3a68; color: #ffb5de; background: rgba(240, 120, 190, .12); }
.mini-badge.choice { border-color: #405a9a; color: #b9c9ff; background: rgba(70, 100, 190, .12); }
.skill-head .sp { flex: 1; }
.skill-actions { display: flex; gap: 2px; align-items: center; opacity: .55; }
.skill-head:hover .skill-actions { opacity: 1; }
.chev {
  flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.5px solid var(--ui-dim); border-bottom: 1.5px solid var(--ui-dim);
  transform: rotate(45deg) translate(-1px, -1px); transition: .15s;
}
.skillcard.collapsed .chev { transform: rotate(-45deg) translate(-1px, -1px); }
.skillcard.collapsed .skill-body { display: none; }
.skill-body { padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.sk-section { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sk-section:first-child { padding-top: 0; border-top: 0; }
.sk-section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 9.5px; letter-spacing: 2px; color: #6f6879; }
.sk-section-title::before { content: ''; width: 10px; height: 1px; background: var(--ui-accent); opacity: .7; }
.tag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tagbox { padding: 8px; border: 1px solid var(--ui-line); border-radius: 6px; background: #0d0c12; transition: .15s; }
.tagbox.is-off { opacity: .55; border-style: dashed; }
.tagbox-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; font-size: 10px; letter-spacing: .5px; color: var(--ui-dim); }
.tagbox .inp { padding: 6px 8px; font-size: 12px; }
.skill-footer { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.skill-footer select { flex: 0 1 170px; padding: 5px 8px; font-size: 12px; }
.skill-footer .sp { flex: 1; }

@media (max-width: 1280px) {
  .sk-badges { display: none; }
  .sk-name { max-width: 92px; }
}


.stage-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.colorchips { display: flex; gap: 6px; flex-wrap: wrap; }
.cchip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  border-radius: 999px; border: 1px solid var(--ui-line); background: #14131a;
  font-size: 11px; letter-spacing: .5px; color: var(--ui-dim);
}
.cchip i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.cchip.on { color: #fff; border-color: rgba(var(--ui-accent-rgb), .75); background: rgba(var(--ui-accent-rgb), .14); }
.seg {
  display: inline-flex; border: 1px solid var(--ui-line); border-radius: 4px; overflow: hidden;
}
.seg button { background: transparent; border: 0; padding: 4px 9px; color: var(--ui-dim); font-size: 11px; }
.seg button.on { background: rgba(var(--ui-accent-rgb), .28); color: #fff; }
.inline-field { display: flex; align-items: center; gap: 6px; }
.inline-field .inp { padding: 5px 7px; }
.mini-label { font-size: 11px; color: #77718a; white-space: nowrap; }
.divider-lite { height: 1px; background: var(--ui-line); margin: 10px 0; }


.preview { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #080b0a; }
.preview-bar {
  height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 1px solid var(--ui-line); background: #0e1210; font-size: 12px; color: var(--ui-dim);
}
.preview-bar .sp { flex: 1; }
.preview-bar select { background: #0e0d14; border: 1px solid var(--ui-line); border-radius: 4px; padding: 4px 8px; }
.preview-scroll { flex: 1; overflow: auto; padding: 26px 26px 90px; }
.preview-stage { margin: 0 auto; position: relative; }
#posterWrap {
  width: 1200px; transform-origin: top left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}


.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: #1c1a24; border: 1px solid var(--ui-line); color: var(--ui-text);
  padding: 12px 20px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 100; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: #7a2a3a; color: #ffc9d4; }
.toast.ok { border-color: #2f6b4a; color: #c4f0d8; }

.overlay {
  position: fixed; inset: 0; background: rgba(6, 5, 9, .78); z-index: 90;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
.overlay.show { display: flex; }
.spinner {
  width: 46px; height: 46px; border: 3px solid rgba(var(--ui-accent-rgb), .25);
  border-top-color: var(--ui-accent); border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay p { letter-spacing: 2px; color: #cfc9d8; }


body.poster-only .appbar,
body.poster-only .sidebar,
body.poster-only .preview-bar { display: none; }
body.poster-only .layout { height: 100%; }
body.poster-only .preview-scroll { padding: 0; }
body.poster-only #posterWrap { box-shadow: none; }

@media (max-width: 1280px) {
  .sidebar { width: 396px; min-width: 396px; }
}


.cropwrap { margin-bottom: 6px; }
.cropstage {
  position: relative; width: 100%; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--ui-line); background: #0b0a10; user-select: none;
  touch-action: none;
}
.cropstage > img { width: 100%; height: 100%; display: block; opacity: .55; }
.croprect {
  position: absolute; border: 2px solid var(--ui-accent);
  box-shadow: 0 0 0 2000px rgba(5, 4, 8, .55);
  cursor: move;
}
.crop-handle {
  position: absolute; width: 14px; height: 14px; background: #fff;
  border: 2px solid var(--ui-accent); border-radius: 2px;
}
.crop-handle.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.crop-handle.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.crop-handle.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.crop-handle.se { right: -8px; bottom: -8px; cursor: nwse-resize; }


.earn { color: var(--ui-accent-2); border-color: rgba(var(--ui-accent-rgb), .45); }
.earn:hover { background: rgba(var(--ui-accent-rgb), .12); }
.donate-mask {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 5, 9, .78); backdrop-filter: blur(3px);
}
.donate-mask[hidden] { display: none; }
.donate-box {
  width: 560px; max-width: calc(100vw - 48px); max-height: calc(100vh - 64px); overflow: auto;
  background: linear-gradient(180deg, #161c18, #0e1210);
  border: 1px solid rgba(var(--ui-accent-rgb), .35); border-radius: 10px;
  padding: 28px 30px 24px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.donate-box h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: 2px; }
.donate-sub { margin: 0 0 22px; font-size: 13px; line-height: 1.7; color: var(--ui-dim); }
.donate-qrs { display: flex; gap: 22px; justify-content: center; }
.donate-qrs figure { margin: 0; }
.donate-qrs img {
  width: 216px; height: 216px; object-fit: contain; display: block;
  background: #fff; border-radius: 8px; padding: 8px;
}
.donate-qrs figcaption { margin-top: 8px; font-size: 12px; letter-spacing: 2px; color: var(--ui-dim); }
.donate-tip { margin: 20px 0 18px; font-size: 11px; color: #7d7688; }
.donate-inline { display: flex; gap: 12px; margin: 10px 0; }
.donate-inline img {
  width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px;
  cursor: zoom-in;
}


.uis { position: relative; }
.uis-native { display: none; }
.uis-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: #0e0d14; border: 1px solid var(--ui-line); border-radius: 4px;
  padding: 8px 10px; color: var(--ui-text); text-align: left; transition: .15s;
}
.uis-btn:hover { border-color: #3b3748; background: #131219; }
.uis-btn:disabled { opacity: .5; pointer-events: none; }
.uis-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uis-caret {
  flex: 0 0 auto; width: 8px; height: 8px; margin-right: 2px;
  border-right: 2px solid var(--ui-dim); border-bottom: 2px solid var(--ui-dim);
  transform: rotate(45deg) translate(-2px, -2px); transition: .15s;
}
.uis-open .uis-btn { border-color: rgba(var(--ui-accent-rgb), .85); box-shadow: 0 0 0 2px rgba(var(--ui-accent-rgb), .12); }
.uis-open .uis-caret { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--ui-accent-2); }
.uis-pop {
  z-index: 200; padding: 4px; overflow-y: auto;
  overscroll-behavior: contain;
  background: #16151d; border: 1px solid var(--ui-line); border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.uis-opt {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  border-radius: 4px; padding: 8px 10px; color: var(--ui-text); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uis-opt:hover { background: rgba(255, 255, 255, .06); }
.uis-opt.is-sel { background: rgba(var(--ui-accent-rgb), .16); color: #fff; box-shadow: inset 2px 0 0 var(--ui-accent); }
.uis-compact { display: inline-block; width: auto; }
.uis-compact .uis-btn { padding: 3px 6px; gap: 6px; font-size: 12px; }
.uis-compact .uis-caret { width: 6px; height: 6px; }


.about-hero {
  text-align: center; padding: 18px 12px 22px; margin-bottom: 18px;
  border-bottom: 1px solid var(--ui-line);
  background: radial-gradient(160px 90px at 50% 20%, rgba(var(--ui-accent-rgb), .16), transparent 75%);
}
.about-hero img { width: 150px; display: block; margin: 0 auto 12px; }
.about-hero h2 { font-size: 19px; margin: 0; letter-spacing: 3px; font-weight: 700; }
.about-hero p { margin: 6px 0 0; font-size: 10px; letter-spacing: 2px; color: var(--ui-dim); }
.about-author {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 16px;
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim);
  padding: 6px 16px; border: 1px solid rgba(var(--ui-accent-rgb), .45);
  border-radius: 999px; background: rgba(var(--ui-accent-rgb), .10);
}
.about-author strong {
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #fff;
  text-shadow: 0 0 18px rgba(var(--ui-accent-rgb), .55);
}
.stat-block b { color: var(--ui-accent-2); font-size: 15px; padding: 0 2px; }


.tplrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tplrow .btn { flex: 1 1 auto; }


.themegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.themechip {
  display: flex; align-items: center; gap: 5px; padding: 7px 8px;
  border: 1px solid var(--ui-line); border-radius: 7px; background: #0f0e15;
  color: var(--ui-dim); text-align: left; transition: .15s; overflow: hidden;
}
.themechip:hover { border-color: #3b3748; background: #17151f; }
.themechip.on { border-color: rgba(var(--ui-accent-rgb), .85); background: rgba(var(--ui-accent-rgb), .13); color: #fff; }
.themechip .th-main { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px; box-shadow: 0 0 8px rgba(255, 255, 255, .18); }
.themechip .th-mini { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.themechip b { font-size: 10.5px; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.entrycard {
  border: 1px solid rgba(255, 255, 255, .10); border-left: 3px solid rgba(var(--ui-accent-rgb), .85);
  border-radius: 9px; background: #0b0f0d; margin-bottom: 14px; overflow: hidden;
}
.entrycard-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(90deg, rgba(var(--ui-accent-rgb), .10), transparent 70%);
}
.entry-num {
  flex: 0 0 30px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, .16);
  color: var(--ui-accent-2); font-size: 12px; letter-spacing: 1px;
}
.entrycard-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entrycard-title b { font-size: 14px; letter-spacing: 1px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entrycard-title span { font-size: 10.5px; color: var(--ui-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entrycard-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.entrycard-body { padding: 12px; }


.helplist { margin: 0; padding-left: 20px; color: var(--ui-text); font-size: 12.5px; line-height: 1.9; }
.helplist li { margin-bottom: 6px; }
.helplist b { color: var(--ui-accent-2); font-weight: 500; }


input[type=number].inp { -moz-appearance: textfield; }
input[type=number].inp::-webkit-outer-spin-button,
input[type=number].inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


input[type=color].inp { background: #0e0d14; cursor: pointer; }
input[type=color].inp::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color].inp::-webkit-color-swatch { border: 1px solid var(--ui-line); border-radius: 3px; }


.entrycard-body textarea.inp { min-height: 110px; }



.save-mask {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(6, 5, 9, 0.9); backdrop-filter: blur(3px);
}
.save-mask[hidden] { display: none; }
.save-box {
  width: min(760px, 100%); max-height: 100%; overflow: auto; text-align: center;
  background: linear-gradient(180deg, #161c18, #0e1210);
  border: 1px solid rgba(var(--ui-accent-rgb), .35); border-radius: 10px;
  padding: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.save-box h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: 2px; }
.save-box p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.8; color: var(--ui-dim); }
.save-box img {
  max-width: 100%; max-height: 62vh; display: block; margin: 12px auto;
  border: 1px solid var(--ui-line); border-radius: 4px; background: #0d1015;
}
.save-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

@media (max-width: 900px) {
  html, body { height: auto; }
  :root {
    --ui-font: 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', system-ui, sans-serif;
  }
  body { overflow: auto; -webkit-text-size-adjust: 100%; }
  .appbar {
    height: auto; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px; position: static;
  }
  .brand { width: 100%; gap: 10px; }
  .brand img { height: 26px; }
  .brand h1 { font-size: 15px; letter-spacing: 1px; }
  .brand p { font-size: 9px; letter-spacing: 1px; }
  .appbar-actions {
    width: 100%; display: flex; gap: 6px; flex-wrap: nowrap;
    overflow-x: auto; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .appbar-actions .btn { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
  .appbar-actions [data-act="export-png"] { order: -1; }
  .save-state, .share-note { display: none !important; }
  .layout { flex-direction: column; height: auto; }
  .preview { order: -1; height: 56vh; min-height: 300px; }
  .preview-bar { height: auto; min-height: 40px; flex-wrap: wrap; gap: 8px; padding: 8px 10px; font-size: 11px; }
  .preview-bar > span:last-child { display: none; }
  .preview-scroll { padding: 10px; }
  .sidebar { width: 100%; min-width: 0; height: auto; border-right: 0; border-top: 1px solid var(--ui-line); }
  .tabs {
    position: sticky; top: 0; z-index: 12; flex-wrap: nowrap; overflow-x: auto;
    padding: 8px 10px; -webkit-overflow-scrolling: touch;
  }
  .tab { flex: 0 0 auto; padding: 8px 12px; }
  .panels { overflow: visible; padding: 12px 12px calc(44px + env(safe-area-inset-bottom)); }
  .inp, textarea.inp, select.inp { font-size: 16px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .themegrid { grid-template-columns: 1fr 1fr; }
  .btn { padding: 9px 13px; }
  .imgthumb { width: 80px; height: 80px; flex: 0 0 80px; }
  .imgthumb.tall { height: 108px; }
  .crop-handle { width: 22px; height: 22px; }
  .crop-handle.nw { left: -12px; top: -12px; }
  .crop-handle.ne { right: -12px; top: -12px; }
  .crop-handle.sw { left: -12px; bottom: -12px; }
  .crop-handle.se { right: -12px; bottom: -12px; }
  .p-portrait { touch-action: none; }
  .donate-mask { align-items: flex-start; padding: 12px; overflow: auto; }
  .donate-box { max-height: none; padding: 20px; }
  .donate-qrs { flex-wrap: wrap; gap: 14px; }
  .donate-qrs img { width: 148px; height: 148px; }
  .save-box img { max-height: 56vh; }
  .save-actions { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 560px) {
  .brand p { display: none; }
  .appbar-actions .btn.earn,
  .appbar-actions .dl-exe,
  .appbar-actions [data-act="import-json"],
  .appbar-actions [data-act="export-json"] { display: none; }
  .row3 { grid-template-columns: 1fr; }
  .themegrid { grid-template-columns: 1fr; }
  .preview { height: 50vh; }
  .entrycard-actions .icon-btn { width: 30px; height: 30px; }
}



.wechat-note {
  padding: 8px 12px; text-align: center; font-size: 12px; line-height: 1.6;
  color: #f0d78a; background: #2a2410; border-bottom: 1px solid #4a3d18;
  letter-spacing: .5px; position: relative; z-index: 60;
}


.archive-themegrid .themechip { min-height: 40px; }
.archive-themegrid .themechip b { flex: 1 1 100%; }
.archive-themegrid .themechip em {
  flex: 0 0 auto; font-style: normal; font-size: 9px; letter-spacing: .5px;
  color: #6f786f; margin-left: 2px;
}
.archive-themegrid .themechip .th-main { width: 18px; height: 18px; flex-basis: 18px; }
.archive-themegrid .themechip .th-mini { width: 6px; height: 6px; flex-basis: 6px; }

.metarow {
  display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px;
}
.metarow-main { flex: 1; min-width: 0; }
.metarow-main > label {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px;
  font-size: 12px; color: var(--ui-dim); letter-spacing: 1px;
}
.metarow-main > label em {
  font-style: normal; font-size: 9px; letter-spacing: 1.2px; color: #626b63;
}
.metarow.wide .metarow-main { flex: 1 1 100%; }
.redactbox {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 48px; padding: 7px 0 5px; margin-bottom: 1px; cursor: pointer;
  border: 1px solid var(--ui-line); border-radius: 4px; background: #0e1210;
  color: #7c857c; font-size: 9px; letter-spacing: .5px;
}
.redactbox input { accent-color: var(--ui-accent); width: 14px; height: 14px; }
.redactbox:has(input:checked) {
  border-color: rgba(var(--ui-accent-rgb), .7);
  background: rgba(var(--ui-accent-rgb), .13); color: var(--ui-accent-2);
}

.emblem-preview {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  border: 1px solid var(--ui-line); border-radius: 8px; background:
    radial-gradient(circle at 50% 45%, rgba(var(--ui-accent-rgb), .10), transparent 68%), #0a0e0c;
  margin-bottom: 12px;
}
.emblem-preview img { width: 132px; height: 132px; object-fit: contain; flex: 0 0 132px; }
.emblem-preview b { display: block; font-size: 14px; letter-spacing: 2px; color: #fff; margin-bottom: 6px; }
.emblem-preview p { margin: 0; font-size: 10.5px; line-height: 1.7; color: #778077; }

.chiprow { display: flex; flex-wrap: wrap; gap: 7px; }

.archive-note {
  margin: 0 0 12px; padding: 9px 11px; border-radius: 6px;
  border: 1px solid rgba(var(--ui-accent-rgb), .25);
  background: rgba(var(--ui-accent-rgb), .07);
  font-size: 10.5px; line-height: 1.7; color: #a9b0a8;
}


.factiongrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin: 2px 0 12px;
}
.factionchip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 6px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--ui-line); background: #0a0e0c;
  transition: border-color .15s, background .15s, transform .15s;
}
.factionchip:hover { border-color: #3d473f; background: #101612; transform: translateY(-1px); }
.factionchip img {
  width: 62px; height: 62px; object-fit: contain;
  opacity: .82; transition: opacity .15s;
}
.factionchip:hover img { opacity: 1; }
.factionchip b {
  font-size: 10px; font-weight: 400; letter-spacing: 1px;
  color: #8b948b; white-space: nowrap;
}
.factionchip.on {
  border-color: rgba(var(--ui-accent-rgb), .82);
  background: rgba(var(--ui-accent-rgb), .12);
  box-shadow: 0 0 0 1px rgba(var(--ui-accent-rgb), .10) inset;
}
.factionchip.on img { opacity: 1; }
.factionchip.on b { color: #fff; }
@media (max-width: 560px) {
  .factionchip img { width: 52px; height: 52px; }
}



.poster {
  --font-sans: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  position: relative;
  width: var(--page-w, 1200px);
  min-height: 2600px;
  overflow: hidden;
  background: var(--bg, #0d0f0e);
  color: #f2f0ea;
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}


.p-bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: var(--bg, #0d0f0e); }
.p-mesh {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background-repeat: repeat; background-size: 96px 96px; opacity: .55; pointer-events: none;
}
.p-bg-image {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; opacity: .22; pointer-events: none;
}
.p-noise {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background-repeat: repeat; background-size: 200px 200px; opacity: .38; pointer-events: none;
}
.p-vignette {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,.30) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 4%, rgba(0,0,0,0) 96%, rgba(0,0,0,.38) 100%);
}


.p-hero { position: relative; overflow: hidden; background: var(--bg, #0d0f0e); }
.p-hero-bg {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
}
.p-art {
  position: absolute; left: 50%; bottom: 0;
  transform-origin: bottom center;
  pointer-events: auto; cursor: grab;
  z-index: 2;
}
.p-art.dragging { cursor: grabbing; }
.p-art img {
  display: block; height: 100%; width: auto; max-width: none;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, .55));
}
.p-art-empty {
  position: absolute; left: 50%; top: 46%; width: 420px; margin-left: -210px;
  text-align: center; color: rgba(236, 238, 232, .34); z-index: 2;
}
.p-art-empty span {
  display: block; font-size: 13px; letter-spacing: .42em; padding-left: .42em;
  color: rgba(236, 238, 232, .22);
}
.p-art-empty b {
  display: block; margin-top: 18px; font-size: 22px; font-weight: 400; letter-spacing: .18em;
  padding-left: .18em; color: rgba(236, 238, 232, .40);
}
.p-art-empty:before {
  content: ""; display: block; width: 108px; height: 108px; margin: 0 auto 28px;
  border: 1px solid rgba(236, 238, 232, .14); border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(236,238,232,.12) 49.7%, rgba(236,238,232,.12) 50.3%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(236,238,232,.12) 49.7%, rgba(236,238,232,.12) 50.3%, transparent 50.3%);
}
.p-hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  z-index: 3; pointer-events: none;
}
.p-hero-side {
  position: absolute; top: 0; bottom: 0; width: 18%; z-index: 3; pointer-events: none;
}
.p-hero-side.left { left: 0; width: 25%; background: linear-gradient(90deg, rgba(5,7,6,.72), rgba(5,7,6,.20) 55%, rgba(5,7,6,0)); }
.p-hero-side.right { right: 0; width: 25%; background: linear-gradient(270deg, rgba(5,7,6,.72), rgba(5,7,6,.20) 55%, rgba(5,7,6,0)); }
.p-side-code {
  position: absolute; left: 26px; top: 172px;
  font-family: "Arial Narrow", "Noto Sans SC", sans-serif;
  font-size: 148px; line-height: .86; font-weight: 900; letter-spacing: .06em;
  color: rgba(238, 242, 236, .035); white-space: nowrap;
  transform: rotate(90deg); transform-origin: top left;
  z-index: 4; pointer-events: none; text-transform: uppercase;
}


.p-hud { position: absolute; left: 0; top: 0; right: 0; height: 130px; z-index: 4; pointer-events: none; }
.p-logo { position: absolute; display: block; }
.p-warning {
  position: absolute; left: 0; top: 27px; width: 100%;
  text-align: center; font-size: 13px; font-weight: 500;
  letter-spacing: .52em; padding-left: .52em;
  color: rgba(240, 242, 236, .74);
  font-family: "Arial Narrow", "Noto Sans SC", sans-serif;
}
.p-barcode { position: absolute; right: 44px; top: 18px; width: 220px; height: 24px; opacity: .88; }
.p-hud-line { display: none; }


.p-heading { position: relative; height: 132px; padding: 26px 60px 0; }
.p-heading h2 {
  margin: 0; font-size: 50px; line-height: 1.12; font-weight: 800;
  letter-spacing: 3px; color: #f6f4ee;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}
.p-archives {
  margin-top: 2px; font-size: 17px; font-weight: 600; letter-spacing: .30em;
  color: var(--accent, #d92b5c); text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.p-archives span { opacity: .72; margin-right: 8px; letter-spacing: .08em; }
.p-heading-line {
  position: absolute; left: 60px; right: 60px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent, #d92b5c), rgba(var(--accent-rgb), .32) 42%, rgba(var(--accent-rgb), 0) 100%);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .28);
}
.p-heading-dots {
  position: absolute; left: 42%; right: 60px; bottom: -2px; height: 6px;
  background-repeat: repeat-x; background-size: 8px 6px; opacity: .8;
}


.p-info {
  position: relative; margin-left: 60px; margin-right: 60px;
  border: 1px solid rgba(212, 222, 216, .30);
  background: rgba(6, 9, 8, .46);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.p-info-top {
  position: relative; height: 54px;
  border-bottom: 1px solid rgba(212, 222, 216, .24);
}
.p-info-accent {
  position: absolute; left: -1px; top: -1px; bottom: -1px; width: 10px;
  background: var(--accent, #d92b5c);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .35);
}
.p-info-codelabel {
  position: absolute; left: 32px; top: 0; line-height: 54px;
  font-size: 23px; letter-spacing: 3px; color: #f2f0ea;
}
.p-info-codesep {
  position: absolute; left: 246px; top: 11px; width: 1px; height: 32px;
  background: rgba(212, 222, 216, .34);
}
.p-info-code {
  position: absolute; left: 270px; top: 0; line-height: 54px;
  font-size: 28px; letter-spacing: 2.4px; color: #f6f4ee; font-weight: 500;
  font-family: "Arial Narrow", "Noto Sans SC", sans-serif;
}
.p-info-tag {
  position: absolute; right: 18px; top: 7px; width: 212px; height: 40px;
  border: 1px solid rgba(236, 240, 235, .78);
  text-align: center; padding-top: 4px;
}
.p-info-tag b { display: block; font-size: 16px; line-height: 16px; letter-spacing: 2.6px; font-weight: 600; color: #f5f3ed; }
.p-info-tag i { display: block; font-style: normal; font-size: 7.5px; line-height: 10px; letter-spacing: 2px; color: rgba(236, 240, 235, .60); }

.p-info-body { position: relative; height: calc(100% - 54px); }
.p-basic-h {
  position: absolute; left: 34px; top: 12px; margin: 0;
  font-size: 38px; line-height: 1.2; font-weight: 700; letter-spacing: 3px; color: #f6f4ee;
}
.p-dotline {
  position: absolute; left: 34px; right: 34px; top: 72px; height: 6px;
  background-repeat: repeat-x; background-size: 8px 6px; opacity: .9;
}
.p-field { position: absolute; left: 0; right: 0; }
.p-field-label { position: absolute; left: 34px; top: 20px; width: 220px; }
.p-field-label b {
  display: block; font-family: var(--font-serif); font-size: 32px; line-height: 38px;
  font-weight: 600; letter-spacing: 3px; color: #f4f2ec;
}
.p-field-label span {
  display: block; margin-top: 8px; font-family: var(--font-sans);
  font-size: 10px; line-height: 12px; letter-spacing: 2.4px;
  color: rgba(232, 236, 230, .48); font-weight: 500;
}
.p-field-value {
  position: absolute; left: 254px; top: 20px;
  font-family: var(--font-serif); font-size: 39px; line-height: 46px;
  font-weight: 500; letter-spacing: 1px; color: #f5f2ea;
  white-space: nowrap;
}
.p-redact-label { font-family: var(--font-sans); font-size: 34px; letter-spacing: 2px; }
.p-blocks { display: inline-block; font-size: 0; white-space: nowrap; }
.p-blocks i {
  display: inline-block; width: 20px; height: 21px; margin-right: 7px;
  background: rgba(238, 240, 235, .92); vertical-align: top;
}

.p-emblem-cell {
  position: absolute; left: var(--info-left, 640px); top: 0; right: 0;
  border-left: 1px solid rgba(212, 222, 216, .24);
  border-bottom: 1px solid rgba(212, 222, 216, .24);
  background: rgba(0, 0, 0, .16); overflow: hidden;
}
.p-emblem-watermark {
  position: absolute; left: 0; right: 0; top: 44%;
  text-align: center; font-size: 54px; font-weight: 900; letter-spacing: 6px;
  color: rgba(238, 242, 236, .028); transform: rotate(-8deg); white-space: nowrap;
}
.p-emblem { position: absolute; display: block; }
.p-emblem-cap {
  position: absolute; left: 14px; right: 14px; bottom: 9px; height: 27px;
  border-top: 1px solid rgba(212, 222, 216, .26);
  padding-top: 4px; font-size: 8px; letter-spacing: 1.6px;
  color: rgba(232, 236, 230, .50); white-space: nowrap; overflow: hidden;
}
.p-emblem-cap b {
  position: absolute; right: 0; top: 4px; font-size: 8px; letter-spacing: 1.2px;
  color: rgba(232, 236, 230, .72); font-weight: 600;
}


.p-path { position: relative; height: 40px; margin: 30px 60px 30px; }
.p-path-line {
  position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: linear-gradient(90deg, var(--accent, #d92b5c), rgba(var(--accent-rgb), .18) 70%, rgba(var(--accent-rgb), 0));
}
.p-path-label {
  position: absolute; left: 0; top: 0; padding-right: 16px;
  background: var(--bg, #0d0f0e);
  font-size: 12px; line-height: 18px; letter-spacing: .34em; font-weight: 600;
  color: var(--accent, #d92b5c);
}
.p-path-band {
  position: absolute; left: 0; right: 0; top: 15px; height: 19px; opacity: .52;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0, rgba(255,255,255,.10) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 8px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .56), rgba(var(--accent-rgb), .16) 58%, rgba(var(--accent-rgb), 0));
}


.p-entries { position: relative; margin: 0 60px; }
.p-entry { position: relative; }
.p-entry-head {
  position: relative; height: 66px;
  background-color: var(--entry-accent, #d92b5c);
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.11) 0, rgba(255,255,255,.11) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 9px),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08));
  box-shadow: inset 12px 0 0 rgba(0, 0, 0, .22);
}
.p-entry-tab {
  position: absolute; top: 27px; width: 12px; height: 12px;
  background: rgba(242, 244, 238, .96); z-index: 3;
}
.p-entry-tab.left { left: -14px; }
.p-entry-tab.right { right: -14px; }
.p-entry-title {
  position: absolute; left: 38px; top: 11px; margin: 0;
  font-family: var(--font-sans); font-weight: 700; line-height: 42px;
  letter-spacing: 3px; color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .24);
}
.p-entry-rule {
  position: absolute; left: 230px; right: 0; top: 38px; height: 1.5px;
  background: rgba(255, 255, 255, .88);
}
.p-entry-panel {
  position: relative;
  border-left: 1px solid rgba(212, 222, 216, .22);
  border-right: 1px solid rgba(212, 222, 216, .22);
  border-bottom: 1px solid rgba(212, 222, 216, .22);
  background: rgba(0, 0, 0, .26);
  padding: 24px 34px 22px;
}
.p-entry-body {
  margin: 0; font-family: var(--font-sans); font-weight: 400;
  color: rgba(240, 238, 232, .93); letter-spacing: .4px;
  text-align: justify; text-shadow: 0 1px 2px rgba(0, 0, 0, .30);
}
.p-redacted { padding: 4px 0 2px; }
.p-redact-row { margin-bottom: 17px; font-size: 0; white-space: nowrap; }
.p-redact-row i {
  display: inline-block; width: 21px; height: 21px; margin-right: 7px;
  background: rgba(240, 241, 236, .93); vertical-align: top;
}


.p-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(4, 6, 5, .84);
  border-top: 1px solid rgba(216, 226, 220, .30);
  overflow: hidden;
}
.p-footer-left { position: absolute; left: 44px; top: 32px; }
.p-footer-crest {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; opacity: .92;
}
.p-footer-bureau { margin-left: 76px; padding-top: 1px; }
.p-footer-bureau b {
  display: block; font-size: 12px; line-height: 14px; letter-spacing: 3px;
  color: rgba(240, 242, 236, .88); font-weight: 600;
}
.p-footer-bureau i {
  display: block; width: 166px; height: 1px; margin: 6px 0 6px;
  background: rgba(220, 228, 222, .30);
}
.p-footer-bureau span {
  display: block; font-size: 6.5px; line-height: 10px; letter-spacing: 1.7px;
  color: rgba(220, 228, 222, .48);
}
.p-footer-copy {
  position: absolute; left: 0; right: 0; top: 74px; text-align: center;
  font-size: 17px; letter-spacing: 1.2px; color: rgba(240, 242, 236, .68);
}
.p-footer-right { position: absolute; right: 44px; top: 24px; width: 260px; text-align: right; }
.p-footer-barcode { display: block; width: 118px; height: 16px; margin-left: auto; opacity: .8; }
.p-footer-tags {
  margin-top: 7px; font-size: 8px; letter-spacing: 1.6px; color: rgba(232, 236, 230, .52);
}
.p-hotaru {
  display: inline-block; margin-left: 8px; padding: 2px 7px;
  border-radius: 2px; background: #e1251b; color: #fff;
  font-size: 8px; font-weight: 700; letter-spacing: .6px; vertical-align: 1px;
}
.p-footer-watermark {
  margin-top: 12px; font-size: 12px; letter-spacing: 1px;
  color: rgba(232, 236, 230, .55);
}
.p-footer-fan {
  position: absolute; left: 44px; bottom: 14px;
  font-size: 7px; letter-spacing: 2px; color: rgba(220, 228, 222, .28);
}


.p-big-code {
  position: absolute; right: -6px; z-index: 1;
  font-family: var(--font-sans); font-size: 148px; line-height: 1;
  font-weight: 900; letter-spacing: 5px; white-space: nowrap;
  color: rgba(238, 242, 236, .045); pointer-events: none;
}


.p-share-line {
  position: absolute; left: 0; right: 0; bottom: 7px; z-index: 4;
  text-align: center; font-family: var(--font-sans);
  font-size: 10.5px; line-height: 1.4; letter-spacing: 1.2px;
  color: rgba(232, 236, 230, .42); pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}




.p-info {
  border-width: 2px;
  border-color: rgba(212, 222, 216, .34);
}
.p-info-top {
  height: 48px;
  border-bottom-width: 1.5px;
  border-bottom-color: rgba(212, 222, 216, .30);
}
.p-info-codelabel { line-height: 48px; font-size: 23px; }
.p-info-codesep { top: 9px; height: 30px; }
.p-info-code { line-height: 48px; font-size: 28px; }
.p-info-tag { top: 5px; width: 212px; height: 38px; padding-top: 4px; }
.p-info-tag b { font-size: 16px; line-height: 17px; letter-spacing: 2.6px; }
.p-info-tag i { font-size: 7.5px; line-height: 9px; }
.p-info-body { height: calc(100% - 48px); }


.p-basic-h { top: 18px; font-size: 46px; line-height: 1.1; letter-spacing: 2px; }
.p-dotline { top: 90px; left: 34px; right: auto; width: calc(var(--info-left, 575px) - 68px); height: 6px; background-size: 12px 6px; opacity: .85; }
.p-field-label b { font-size: 35px; line-height: 38px; letter-spacing: 3px; }
.p-field-label span { font-size: 12px; line-height: 14px; margin-top: 7px; letter-spacing: 2.2px; }
.p-field-value { left: 268px; top: 14px; font-size: 46px; line-height: 50px; }
.p-redact-label { font-size: 40px; }


.p-emblem-cell {
  border-left-width: 1.5px;
  border-bottom-width: 1.5px;
  border-color: rgba(212, 222, 216, .28);
}
.p-emblem-cap { left: 14px; right: 14px; bottom: 8px; height: 25px; font-size: 8px; }
.p-emblem-cap b { top: 3px; }


.p-archives { font-size: 19px; letter-spacing: .30em; }


.p-path {
  height: 48px;
  margin: 4px 60px 18px;
}
.p-path:before {
  content: "";
  position: absolute; left: 14px; top: 7px; width: 58px; height: 10px;
  background: var(--accent, #d92b5c);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .30);
}
.p-path-line {
  left: 14px; right: 0; top: 7px; height: 10px;
  background-repeat: no-repeat; background-size: 100% 100%;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .22);
}
.p-path-label {
  left: 84px; top: 0; line-height: 22px;
  padding: 0 12px; font-size: 11px; letter-spacing: .45em;
  color: var(--accent, #d92b5c);
}
.p-path-band { display: none; }


.p-entry { margin-left: 14px; margin-right: 14px; }
.p-entry-head { height: 62px; background-image: none; }
.p-entry-head-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.p-entry-tab { top: 25px; width: 12px; height: 12px; }
.p-entry-title { left: 26px; top: 4px; line-height: 52px; letter-spacing: 2px; z-index: 2; }
.p-entry-rule { left: 160px; right: 24px; top: 28px; height: 3.5px; z-index: 2; }
.p-entry-panel { padding-top: 22px; padding-bottom: 20px; border-top: 1px solid rgba(212, 222, 216, .20); border-bottom-width: 1px; }
.p-entry-body { letter-spacing: .2px; }
.p-redacted { padding: 2px 0 0; }
.p-entry-panel.is-redacted { padding-top: 22px; padding-bottom: 10px; }
.p-redact-row { margin-bottom: 1px; }
.p-redact-row i { width: 21px; height: 21px; margin-right: 4px; }
.p-blocks i { width: 20px; height: 21px; margin-right: 5px; }


.p-footer {
  bottom: auto;
  border-top-width: 1px;
  border-top-color: rgba(216, 226, 220, .30);
  background: rgba(4, 6, 5, .42);
}
.p-footer-code {
  position: absolute; top: 2px; right: -6px; z-index: 1;
  font-family: var(--font-sans); font-size: 146px; line-height: 1;
  font-weight: 900; letter-spacing: 5px; white-space: nowrap;
  color: rgba(238, 242, 236, .055); pointer-events: none;
}
.p-footer-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(4, 6, 5, .94);
  border-top: 1px solid rgba(216, 226, 220, .16);
}
.p-footer-left { left: 44px; top: 24px; }
.p-footer-crest { width: 54px; height: 54px; }
.p-footer-bureau { margin-left: 70px; padding-top: 0; }
.p-footer-copy { top: 64px; font-size: 17px; }
.p-footer-right { right: 44px; top: 16px; width: 260px; }
.p-footer-fan { left: 44px; bottom: 8px; }
.p-footer-watermark { margin-top: 10px; }
.p-share-line { bottom: 7px; }


.p-heading { height: 132px; padding: 26px 60px 0; margin-top: -118px; }
.p-heading h2 { position: relative; z-index: 2; font-size: 50px; line-height: 1.12; }
.p-heading-line { display: none; }
.p-heading-band {
  position: absolute; left: 0; right: 0; top: 84px; height: 30px;
  background-repeat: no-repeat; background-size: 100% 100%;
  z-index: 1; pointer-events: none;
}
.p-archives {
  position: absolute; left: 80px; top: 84px; height: 30px; line-height: 30px;
  margin: 0; padding: 0 12px 0 0;
  font-size: 21px; font-weight: 500; letter-spacing: .62em;
  color: rgba(250, 245, 246, .96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .50);
  z-index: 2;
}
.p-archives span { opacity: .65; margin-right: 12px; letter-spacing: .08em; }
.p-heading-dots {
  left: 60px; right: 60px; top: 120px; bottom: auto; height: 6px;
  background-repeat: repeat-x; background-size: 12px 6px; opacity: .55; height: 6px;
}


.p-heading { position: relative; z-index: 5; }
.p-heading:before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(4,6,5,0) 0%, rgba(4,6,5,.35) 46%, rgba(4,6,5,.78) 100%);
  pointer-events: none;
}



.p-info-codesep2 {
  position: absolute; left: 585px; top: 9px; width: 1px; height: 30px;
  background: rgba(212, 222, 216, .30);
}
.p-info-tag {
  top: 5px; right: 18px; width: 212px; height: 38px;
  border: 1px solid rgba(246, 248, 243, .88);
  background: rgba(0, 0, 0, .30);
  padding: 2px 7px 2px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.p-info-tag .p-tag-top {
  display: block; font-size: 16px; line-height: 17px; font-weight: 600;
  letter-spacing: 2.4px; color: #f7f6f1;
  border-bottom: 1px solid rgba(255, 255, 255, .86);
  padding-bottom: 1px;
}
.p-info-tag .p-tag-bottom {
  display: flex; align-items: center; gap: 0;
  height: 12px; margin-top: 2px;
}
.p-info-tag .p-tag-bottom b {
  display: inline; font-size: 7.5px; line-height: 10px; font-weight: 500;
  letter-spacing: 1.4px; color: rgba(246, 248, 243, .86);
  white-space: nowrap;
}
.p-info-tag .p-tag-bottom em {
  font-style: normal; font-size: 11px; line-height: 1;
  color: #f7f6f1; margin-left: auto;
}
.p-info-tag .p-tag-hatch {
  display: block; width: 44px; height: 10px; flex: 0 0 44px;
  margin-right: 6px; background-repeat: repeat; background-size: 5px 10px;
  border-right: 1px solid rgba(255, 255, 255, .45); opacity: .9;
}


.p-emblem-cap {
  position: absolute; left: var(--info-left, 575px); right: 0; bottom: auto;
  height: 24px; padding: 0 10px;
  border-left: 1px solid rgba(212, 222, 216, .24);
  border-top: 1px solid rgba(212, 222, 216, .24);
  border-bottom: 1px solid rgba(212, 222, 216, .24);
  background: rgba(0, 0, 0, .26);
  display: flex; align-items: center;
  font-size: 6.5px; letter-spacing: .7px; line-height: 1;
  color: rgba(232, 236, 230, .50); white-space: nowrap; overflow: hidden;
}
.p-emblem-cap .p-cap-text { flex: 1; overflow: hidden; white-space: nowrap; }
.p-emblem-cap .p-cap-hatch {
  display: block; width: 110px; height: 10px; flex: 0 0 110px;
  margin: 0 8px; background-repeat: repeat; background-size: 5px 10px;
  opacity: .62;
}
.p-emblem-cap b {
  position: static; right: auto; top: auto; margin-left: 0;
  font-size: 8px; letter-spacing: 1.2px; color: rgba(240, 242, 236, .72);
  font-weight: 600;
}

.p-art-logo-mask { position: absolute; left: 0; top: 0; width: 380px; height: 210px; z-index: 3; pointer-events: none; }
