.guide-editor, .ge-dialog {
  --ge-ink: #2b2435;
  --ge-muted: #756c7f;
  --ge-purple: #6545a0;
  --ge-purple-deep: #4e337e;
  --ge-border: #e4ddea;
  --ge-wash: #f7f4fa;
  color: var(--ge-ink);
  font-family: inherit;
}
.guide-editor { width: 100%; padding: 6px 0 26px; }
.guide-editor *, .ge-dialog * { box-sizing: border-box; }
.guide-editor [hidden] { display: none !important; }
.ge-heading, .ge-actions, .ge-card-head,
.ge-stage-head, .ge-stage-tools, .ge-dialog-head, .ge-form-actions { display: flex; align-items: center; }
.ge-heading { justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ge-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ge-dirty-badge { font-size: 11px; line-height: 1.4; color: #835719; white-space: nowrap; }
.ge-jumps { display: none; }
.ge-title { font: inherit; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; font-weight: 760; letter-spacing: -.035em; margin: 0; }
.ge-actions, .ge-form-actions { gap: 8px; }
.ge-button { font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; appearance: none; color: inherit; border: 0; border-radius: 9px; background: transparent; -webkit-tap-highlight-color:rgba(101,69,160,.12); }
.ge-button:focus-visible, .ge-input:focus-visible { outline: 3px solid #ae93d0; outline-offset: 2px; }
.ge-button:disabled { opacity: .35; cursor: default; }
.ge-primary, .ge-secondary, .ge-custom { min-height: 40px; padding: 0 16px; font-weight: 680; white-space: nowrap; }
.ge-primary { color: white; background: var(--ge-purple); box-shadow: 0 2px 4px #402a6815; }
.ge-secondary, .ge-custom { border: 1px solid var(--ge-border); background: #fff; color: var(--ge-purple); }
.ge-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr); grid-template-areas: "board info" "augments info" "stages info"; gap: 16px; align-items: start; }
.ge-card { min-width: 0; border: 1px solid var(--ge-border); border-radius: 14px; padding: clamp(15px, 2.3vw, 24px); background: #fff; }
.ge-info { grid-area: info; }
.ge-formation { grid-area: board; }
.ge-stages { grid-area: stages; }
.ge-augments { grid-area: augments; }
.ge-card-head, .ge-dialog-head { justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ge-h2, .ge-h3 { color: var(--ge-ink); font: inherit; font-weight: 730; margin: 0; line-height: 1.4; }
.ge-h2 { font-size: 19px; }
.ge-h3 { font-size: 16px; }
.ge-kicker { font-size: 12px; color: #674784; background: #f1ebf6; border-radius: 30px; padding: 4px 10px; font-weight: 650; }
.ge-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ge-field + .ge-field, .ge-step-pair + .ge-field { margin-top: 13px; }
.ge-label { font-size: 13px; color: #514858; font-weight: 620; }
.ge-input { color: var(--ge-ink); font: inherit; font-size: 14px; line-height: 1.5; width: 100%; min-height: 41px; padding: 8px 11px; border: 1px solid #ded7e5; background: #fdfcfe; border-radius: 8px; }
.ge-input::placeholder { color: #908797; }
textarea.ge-input { resize: vertical; }
.ge-muted { color: var(--ge-muted); font-size: 12px; line-height: 1.6; }
.ge-text-button { color: var(--ge-purple); font-size: 13px; font-weight: 680; padding: 6px 4px; }
.ge-board { overflow: hidden; border: 1px solid #dbd2e5; background: linear-gradient(140deg,#f0eaf5,#e8e0ef); border-radius: 12px; padding: 11px clamp(8px, 1.6vw, 17px); }
.ge-side-label { display: block; font-size: 10px; line-height: 1; letter-spacing: .15em; font-weight: 700; color: #84738c; margin: 9px 0 7px; }
.ge-back { margin: 7px 0 2px; }
.ge-grid { --ge-offset: 6.66%; max-width: 510px; margin: 0 auto; width: 100%; }
.ge-board-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); width: calc(100% - var(--ge-offset)); gap: 2px; }
.ge-board-row + .ge-board-row { margin-top: calc(2px - 3.65%); }
.ge-board-row:nth-child(even) { margin-left: var(--ge-offset); }
.ge-cell {
  --ge-shape: polygon(50% 1%, 99% 25%, 99% 75%, 50% 99%, 1% 75%, 1% 25%);
  --ge-stroke: #ad9bb8;
  width: 100%; min-width: 0; aspect-ratio: .866; position: relative; display: grid; place-items: stretch;
  padding: 1.5px; border-radius: 0; clip-path: var(--ge-shape); background: var(--ge-stroke);
}
.ge-cell-face { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; clip-path: var(--ge-shape); background: #fbf9fc; }
.ge-cell.ge-filled { clip-path: none; background: transparent; pointer-events: none; }
.ge-cell.ge-filled::before { content: ''; position: absolute; inset: 0; background: var(--ge-stroke); clip-path: var(--ge-shape); pointer-events: auto; }
.ge-filled > .ge-cell-face { z-index: 1; pointer-events: auto; }
.ge-cell-plus { color: #8b7699; font-size: clamp(13px, 2.5vw, 21px); font-weight: 480; }
.ge-cell[data-cost="1"] { --ge-stroke: #978fa1; }
.ge-cell[data-cost="2"] { --ge-stroke: #56936f; }
.ge-cell[data-cost="3"] { --ge-stroke: #598ec0; }
.ge-cell[data-cost="4"] { --ge-stroke: #9369b8; }
.ge-cell[data-cost="5"] { --ge-stroke: #c39843; }
.ge-cell[aria-pressed="true"] { --ge-stroke: #efad20; }
.ge-cell-picture, .ge-choice-art { position: relative; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg,#8e7ca6,#54416c); color: white; font-weight: 700; }
.ge-cell-picture { width: 100%; height: 100%; }
.ge-cell-picture img, .ge-choice-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ge-monogram { display: block; }
.ge-cell-picture .ge-monogram { font-size: clamp(15px,3vw,23px); margin-top: -12%; }
.ge-cell.on-board-special::after { top: 13%; right: 13%; font-size: 7px; }
.ge-drag-board [data-unit-id] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ge-drag-board [data-unit-id] img { -webkit-user-drag: none; }
.ge-dragging, .ge-dragging [data-unit-id] { cursor: grabbing; }
.ge-cell.ge-drag-source > * { opacity: .4; }
.ge-cell.ge-drop-target { --ge-stroke: #653688; }
.ge-cell.ge-drop-target .ge-cell-face::after { position: absolute; inset: 0; content: ''; background: #8d4bb14a; pointer-events: none; }
.ge-drag-ghost { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; overflow: hidden; background: #523765; color: white; font-weight: 700; border: 2px solid #ebce8d; border-radius: 26%; box-shadow: 0 4px 12px #25162f59; will-change: transform; }
.ge-drag-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ge-drag-ghost { transition-property: none; }
.ge-board-trash { position: fixed; z-index: 28; display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; box-sizing: border-box; padding: 0 5px; border: 1.5px dashed #b77d85; border-radius: 12px; background: #fff5f5; box-shadow: 0 2px 9px #48212a23; color: #8d3749; font: 650 14px/1.2 system-ui,sans-serif; white-space: nowrap; pointer-events: auto; user-select: none; }
.ge-board-trash svg { width: 20px; height: 20px; flex: none; }
.ge-board-trash strong, .ge-board-trash[data-active="true"] span, .ge-board-trash[data-compact] span { display: none; }
.ge-board-trash[data-active="true"] { color: #fff; background: #983b50; border: 2px solid #70253a; }
.ge-board-trash[data-active="true"]:not([data-compact]) strong { display: inline; }
.ge-quick-stars { position: fixed; z-index: 18; box-sizing: border-box; width: min(258px,calc(100vw - 12px)); padding: 5px 8px 7px; border: 1px solid #b8a8c8; border-radius: 12px; background: #fff; box-shadow: 0 5px 20px #30203d29; color: #33263b; font: inherit; }
.ge-quick-heading { display:flex; align-items:center; gap:5px; }
.ge-quick-heading strong { min-width:0; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ge-quick-current { flex:none; margin-right:auto; color:#ffda35; font-size:15px; line-height:1.2; white-space:nowrap; }
.ge-quick-stars button { cursor: pointer; font: inherit; color: #624482; }
.ge-quick-heading button { flex:none; min-width:32px; min-height:32px; padding:0 3px; border:0; border-radius:8px; background:transparent; font-size:13px; font-weight:650; }
.ge-quick-heading button:last-child { background:#f4f0f7; font-size:19px; line-height:1; }
.ge-quick-stars .unit-stars { margin: 4px 0 2px; gap: 3px; }
.ge-quick-stars .unit-stars legend { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.ge-quick-stars .unit-stars button { flex: 1; min-width: 0; min-height: 44px; padding: 2px; font-size: 14px; letter-spacing: -.65px; color: #ffda35; white-space: nowrap; }
.ge-quick-equipped { display:flex; gap:4px; margin:4px 0 0; padding:0; list-style:none; color:#5b5265; font-size:12px; line-height:1.3; }
.ge-quick-equipped li { flex:1; min-width:0; display:grid; justify-items:center; align-content:center; gap:2px; padding:3px 2px; border-radius:6px; background:#f7f5fa; }
.ge-quick-equipped img { width:24px; height:24px; border-radius:4px; object-fit:cover; }
.ge-quick-equipped li span { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ge-mini, .ge-stage-tool { font-size: 12px; color: var(--ge-purple); min-height: 33px; padding: 0 8px; border: 1px solid var(--ge-border); background: #faf8fc; border-radius: 7px; }
.ge-danger { color: #97596a; }
.ge-stage-empty { margin: 0; padding: 18px 12px; line-height: 1.65; color: var(--ge-muted); font-size: 13px; border: 1px dashed var(--ge-border); border-radius: 9px; background: var(--ge-wash); }
.ge-stage { padding: 14px; background: #fbf9fc; border: 1px solid #eae4ee; border-radius: 10px; }
.ge-stage + .ge-stage { margin-top: 12px; }
.ge-step-jump { margin: 0 0 12px; }
.ge-stage-hint { margin: 0 0 9px; color: #934556; font-size: 13px; }
.ge-stage:focus-visible { outline: 2px solid #ae93d0; outline-offset: 1px; }
.ge-stage-head { justify-content: space-between; margin-bottom: 10px; }
.ge-step-num { color: var(--ge-purple); font-size: 12px; font-weight: 740; }
.ge-stage-tools { gap: 4px; }
.ge-stage-tool { min-width: 31px; min-height: 29px; background: #fff; }
.ge-step-pair { display: grid; grid-template-columns: minmax(78px, .45fr) 1fr; gap: 10px; }
.ge-step-pair .ge-field { margin: 0; }
.ge-error { color: #934556; font-size: 14px; background: #fff1f1; border-radius: 8px; margin: 0 0 14px; padding: 10px 13px; }
.ge-error-message { margin: 0; }
.ge-save-copy { margin-top: 8px; }

.ge-dialog { box-sizing: border-box; width: min(540px, calc(100vw - 32px)); max-height: min(76dvh, 690px); max-width: 100vw; padding: 0; margin: auto; overflow: hidden; border-radius: 16px; border: 1px solid var(--ge-border); background: #fff; box-shadow: 0 24px 100px #251a3933; }
.ge-dialog::backdrop { background: #21192d66; }
.ge-dialog-shell { display: flex; flex-direction: column; max-height: min(76dvh,690px); }
.ge-dialog-head { margin: 0; padding: 16px 19px 10px; }
.ge-dialog-close { width: 33px; height: 33px; color: var(--ge-muted); font-size: 22px; background: var(--ge-wash); border-radius: 50%; }
.ge-picker-content { min-height: 0; display: flex; flex-direction: column; padding: 0 19px 18px; }
.ge-lookup { display: flex; align-items: center; gap: 7px; }
.ge-lookup .ge-input { min-width: 0; }
.ge-custom { font-size: 13px; padding: 0 10px; background: var(--ge-wash); }
.ge-filters { display: flex; gap: 5px; overflow-x: auto; margin: 9px 0; scrollbar-width: thin; flex-shrink: 0; }
.ge-filter { flex: 0 0 auto; white-space: nowrap; border-radius: 20px; padding: 6px 10px; color: #6e6475; background: #f4f1f6; font-size: 12px; }
.ge-filter[aria-pressed="true"] { background: #e8def3; color: #573687; font-weight: 700; }
.ge-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ge-choice {
  display:grid; grid-template-columns:32px minmax(0,1fr); grid-template-rows:auto auto;
  grid-template-areas:"portrait name" "portrait traits"; align-items:center; align-content:center;
  min-height:53px; min-width:0; gap:3px 5px; padding:5px 6px;
  border:1px solid var(--ge-border); border-radius:9px; background:#fff; text-align:left;
}
.ge-choice-art { grid-area:portrait; width:32px; height:32px; border-radius:6px; }
.ge-choice-text { grid-area:name; min-width:0; display:flex; flex-wrap:wrap; align-self:end; align-items:baseline; gap:1px 4px; line-height:1.2; }
.ge-choice-text b { font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.ge-choice-en,.ge-choice-traits { font-size:11px; line-height:1.26; color:var(--ge-muted); overflow-wrap:anywhere; }
.ge-choice-traits { grid-area:traits; align-self:start; min-width:0; }
.ge-choice-traits > span { display:inline-block; max-width:100%; }
.ge-choice:has(.ge-choice-scene) { grid-template-columns:32px minmax(0,1fr) clamp(25px,7vw,40px); grid-template-areas:"portrait name scene" "portrait traits scene"; }
.ge-choice-scene { grid-area:scene; width:100%; height:35px; object-fit:contain; pointer-events:none; border-radius:4px; }
.ge-choice-fee,.ge-choice-unlock,.ge-choice-art .ge-on-team { position:absolute; z-index:1; padding:2px; font:650 9px/1 system-ui,sans-serif; color:white; }
.ge-choice-fee { left:0; bottom:0; background:#302b40ed; border-radius:0 3px 0 0; }
.ge-choice-unlock { right:0; top:0; background:#007876; border-radius:0 0 0 3px; }
.ge-choice-art .ge-on-team { bottom:0; right:0; background:#1b6b55; border-radius:3px 0 0 0; }
@media(max-width:350px) {
  .ge-choice { column-gap:4px; padding-inline:4px; grid-template-columns:30px minmax(0,1fr); }
  .ge-choice:has(.ge-choice-scene) { grid-template-columns:30px minmax(0,1fr) 24px; }
  .ge-choice-art { width:30px; height:30px; }
  .ge-choice-text b { font-size:13px; }
}
.ge-search-empty { grid-column: 1/-1; text-align: center; color: var(--ge-muted); padding: 15px 0; }
.ge-champion-dialog .ge-dialog-shell { height: min(76dvh,690px); }
.ge-champion-dialog .ge-picker-content { flex: 1; }
.ge-champion-dialog .ge-lookup, .ge-roster-toolbar, .ge-roster-active { flex: none; }
.ge-champion-dialog .ge-lookup .ge-custom { flex: none; }
.ge-champion-dialog .ge-results { flex:1 1 auto; align-content:start; grid-auto-rows:max-content; }
.ge-roster-heading,.ge-roster-meta { display:flex; align-items:center; gap:7px; }
.ge-roster-heading { min-width:0; flex-wrap:wrap; row-gap:1px; }
.ge-roster-heading .ge-muted { white-space:nowrap; }
.ge-roster-meta { flex:none; margin-inline-start:auto; }
.ge-roster-toolbar { display:flex; align-items:center; gap:4px; max-width:100%; margin:5px 0 6px; padding:2px 1px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
.ge-roster-toolbar::-webkit-scrollbar { display:none; }
.ge-roster-toolbar > * { flex:none; }
.ge-roster-toolbar .ge-filters { margin:0; gap:3px; overflow:visible; }
.ge-roster-toolbar .ge-filter { padding:3px 5px; min-height:33px; font-size:12px; }
.ge-roster-toolbar :is(.ge-roster-traits,.ge-roster-unlock,.ge-roster-tag) { gap:3px; padding:3px 6px; min-height:33px; }
.ge-roster-traits, .ge-roster-unlock, .ge-roster-reset, .ge-roster-tag { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 5px 9px; font-size: 12px; white-space: nowrap; }
.ge-roster-traits, .ge-roster-unlock { border: 1px solid #ded6e9; border-radius: 9px; color: #50435c; background: white; }
.ge-roster-traits::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.ge-roster-traits[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.ge-roster-traits.has-filters, .ge-roster-traits[aria-expanded=true] { color: #594078; border-color: #bea8d5; background: #f2ecf8; }
.ge-roster-unlock::before { content: '◆'; color: #167e7a; font-size: 10px; }
.ge-roster-unlock[aria-pressed=true] { border-color: #72b2ab; background: #e2f4ef; color: #146b64; }
.ge-roster-count { white-space:nowrap; color:var(--ge-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.ge-roster-reset { padding-inline: 5px; color: var(--ge-purple); }
.ge-roster-active { display:flex; align-items:center; flex-wrap:nowrap; gap:4px; }
.ge-roster-active .ge-trait-art { width:17px; height:17px; }
@media(max-width:380px) {
  .ge-roster-toolbar { gap:3px; }
  .ge-roster-toolbar .ge-filters { gap:2px; }
  .ge-roster-toolbar .ge-filter { padding-inline:3px; }
  .ge-roster-heading { gap:4px; }
  .ge-roster-meta { gap:3px; }
}
.ge-roster-tag { min-height: 31px; border-radius: 20px; gap: 4px; padding: 3px 7px 3px 4px; color: #51396a; background: #f0eaf7; }
.ge-tag-x { color: #806b93; font-size: 15px; }
.ge-trait-menu { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1px 2px 3px; }
.ge-trait-jumps { display:flex; align-items:center; margin-left:auto; gap:2px; min-width:0; }
.ge-trait-jump { padding:4px 6px; min-height:36px; font-size:12px; color:#674d80; white-space:nowrap; }
.ge-trait-jump:focus-visible { background:var(--ge-wash); }
.ge-trait-menu-head { display:flex; align-items:center; justify-content:space-between; }
.ge-team-trait-key { display:inline-flex; gap:4px; align-items:center; color:#587269; font-size:11px; }
.ge-team-trait-key::before { content:''; width:5px; height:5px; border-radius:50%; background:#299383; }
.ge-trait-group { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 12px; }
.ge-trait-group h3 { grid-column: 1/-1; margin: 0 0 2px; font-size: 12px; color: #716279; }
.ge-trait-option { display: flex; align-items: center; position: relative; gap: 5px; min-height: 38px; padding: 4px 6px; border: 1px solid #e5deeb; border-radius: 8px; text-align: left; color: #463b4e; font-size: 12px; line-height: 1.2; }
.ge-trait-option[aria-pressed=true] { background: #ede5f5; color: #573687; border-color: #9b7ab8; }
.ge-trait-option.ge-team-trait::after { content: ''; position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: #299383; }
.ge-trait-all { min-height: 33px; padding-inline: 11px; }
.ge-trait-art { flex: none; position: relative; display: grid; place-items: center; overflow: hidden; width: 21px; height: 21px; border-radius: 5px; background: #51475e; color: #faf6ff; font-size: 11px; }
.ge-trait-art img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: contain; }
.ge-trait-art:has(img) .ge-monogram { visibility: hidden; }
.ge-trait-name { min-width: 0; overflow-wrap: anywhere; }
@media (min-width:440px) { .ge-trait-group { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:500px) { .ge-champion-dialog .ge-dialog-shell { height: 85dvh; } }
.ge-form-actions { justify-content: flex-end; margin-top: 17px; }
.ge-custom-form { padding-top: 2px; overflow-y: auto; }
.ge-augment-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.ge-aug-row { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 10px; border: 1px solid var(--ge-border); border-radius: 9px; text-align: left; }
.ge-aug-art { position: relative; display: grid; place-items: center; width: 50px; height: 50px; overflow: hidden; border-radius: 8px; background: #312c3e; color: white; }
.ge-aug-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ge-aug-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.42; overflow-wrap: anywhere; }
.ge-aug-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ge-ink); }
.ge-aug-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ge-aug-grade { font-size: 10px; color: #485465; background: #e9edf2; border-radius: 4px; padding: 1px 5px; }
.ge-aug-grade[data-tier="黄金"] { color: #785319; background: #f7ebcd; }
.ge-aug-grade[data-tier="棱彩"] { color: #744c8c; background: linear-gradient(100deg,#e0f3f2,#eedff9); }
.ge-aug-en { font-size: 15px; line-height: 1.25; }
.ge-aug-zh { font-weight: 620; font-size: 13px; color: #51425e; }
.ge-aug-rounds { font-size: 12px; color: var(--ge-muted); }
.ge-aug-manual { color: #6e4e8d; font-weight: 600; font-size: 11px; }
.ge-manual-filter { margin-left: 3px; box-shadow: inset 0 0 0 1px #ddd2e4; }
.ge-aug-dialog [data-grade="白银"] { background: #edf0f4; color: #4e6172; }
.ge-aug-dialog [data-grade="黄金"] { background: #f9efd6; color: #7b5314; }
.ge-aug-dialog [data-grade="棱彩"] { background: linear-gradient(100deg,#e4f4f2,#eee4f9); color: #725088; }
.ge-aug-dialog [data-grade][aria-pressed="true"], .ge-manual-filter[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px currentColor; }
.ge-aug-effect { font-size: 13px; color: #4b4253; white-space: pre-line; }
.ge-aug-dialog { width: min(900px,calc(100vw - 32px)); }
.ge-aug-results {
  grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: max-content; align-content: start; align-items: stretch; gap: 12px; padding: 13px;
  background: radial-gradient(ellipse at 48% 12%,#342c49,#191622 75%); border-radius: 10px;
}
.ge-aug-results > .ge-secondary, .ge-aug-results > .ge-stage-empty { grid-column: 1/-1; }
.ge-aug-results > .ge-secondary { justify-self: center; margin: 4px 0; }
.ge-aug-choice {
  --aug-metal: grayscale(.92) brightness(1.6); --aug-ink: #d5e3ed;
  position: relative; isolation: isolate; min-width: 0; width: 100%; min-height: 335px; display: flex;
  flex-direction: column; align-items: center; gap: 7px; padding: 48px 9% 22px; border: 0; border-radius: 0;
  text-align: center; background: transparent; color: #f1e9f5; -webkit-tap-highlight-color: transparent;
}
.ge-aug-choice[data-tier="黄金"] { --aug-metal: sepia(1) saturate(2.1) brightness(1.55); --aug-ink: #f4d48c; }
.ge-aug-choice[data-tier="棱彩"] { --aug-metal: saturate(1.45) brightness(1.4); --aug-ink: #dec7ff; }
.ge-aug-choice::before, .ge-aug-choice::after {
  position: absolute; inset: 0; content: ''; z-index: -2; pointer-events: none;
  background: url('./assets/augments/card-face-s19.webp') center / 100% 100% no-repeat;
}
.ge-aug-choice::after {
  z-index: -1; background-image: url('./assets/augments/card-frame-s19.webp'); filter: var(--aug-metal);
}
.ge-aug-choice:is(:focus-visible,[aria-pressed="true"])::after { filter: var(--aug-metal) brightness(1.35) drop-shadow(0 0 3px #f8d19c); }
.ge-aug-choice:only-child { grid-column: 1/-1; justify-self: center; max-width: 246px; }
.ge-aug-choice .ge-aug-art { flex: none; width: 70px; height: 70px; background: #191325; border-radius: 5px; box-shadow: 0 0 14px #9e85c742; }
.ge-aug-choice .ge-aug-copy { flex: 1 0 auto; width: 100%; align-items: center; gap: 5px; }
.ge-aug-choice .ge-aug-heading { justify-content: center; }
.ge-aug-choice .ge-aug-en { font-family: Georgia,'Times New Roman',serif; font-size: 20px; line-height: 1.12; text-wrap: balance; color: #fff5de; }
.ge-aug-choice .ge-aug-zh { color: var(--aug-ink); font-size: 15px; }
.ge-aug-choice .ge-aug-effect { margin: 3px 0; font-size: 13px; line-height: 1.48; color: #efeaf2; }
.ge-aug-choice .ge-aug-rounds { margin-top: auto; font-size: 11px; color: #c6bbce; }
.ge-aug-choice .ge-aug-meta { justify-content: center; }
.ge-aug-choice .ge-aug-grade { background: transparent; color: var(--aug-ink); font-weight: 650; padding: 0; font-size: 11px; }
.ge-aug-choice .ge-aug-manual { color: #e5d8f0; }
.ge-aug-indicator { color: var(--aug-ink); border: 1px solid #9c899e; border-radius: 12px; padding: 3px 10px; font-size: 12px; line-height: 1.2; }
.ge-aug-choice[aria-pressed="true"] .ge-aug-indicator { color: #281d33; border-color: var(--aug-ink); background: var(--aug-ink); font-weight: 700; }
.ge-aug-picker-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; flex-shrink: 0; }
.ge-aug-dialog .ge-picker-content > .ge-input { flex-shrink: 0; }

@media (max-width: 760px) {
  .ge-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "board" "info" "augments" "stages"; gap: 13px; }
  .ge-toolbar { position: sticky; top: 0; z-index: 5; margin-bottom: 12px; padding-top: 5px; background: var(--page, #f6f6fa); }
  .ge-heading { margin-bottom: 4px; }
  .ge-jumps { display: flex; border-bottom: 1px solid var(--ge-border); }
  .ge-jump { position: relative; flex: 1; padding: 6px 2px 9px; min-height: 36px; color: var(--ge-muted); font-size: 13px; }
  .ge-jump[aria-current] { color: var(--ge-purple-deep); font-weight: 700; }
  .ge-jump[aria-current]::after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 2px; border-radius: 2px; background: currentColor; }
  .ge-layout > .ge-card, .ge-stage { scroll-margin-top: 100px; }
  .ge-heading .ge-primary, .ge-heading .ge-secondary { min-height: 42px; padding: 0 12px; }
  .ge-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ge-info .ge-card-head { grid-column: 1/-1; margin-bottom: 0; }
  .ge-info .ge-field { margin: 0; }
  .ge-info .ge-field:last-child { grid-column: 1/-1; }
  .ge-info textarea { min-height: 56px; height: 58px; }
  .ge-input { font-size: 16px; scroll-margin: 112px 0; }
  .ge-filters .ge-filter { min-height: 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ge-dialog[open] { animation: ge-open-picker 180ms var(--ease-native); }
  .ge-dialog[open]::backdrop { animation: ge-fade-in 140ms ease-out; }
  .ge-quick-stars { animation: ge-fade-in 100ms ease-out; }
  @keyframes ge-open-picker { from { opacity:.65; transform:translateY(12px); } to { opacity:1; transform:none; } }
  @keyframes ge-fade-in { from { opacity:0; } to { opacity:1; } }
}
@media (max-width: 620px) {
  .ge-aug-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 8px 5px; }
  .ge-aug-choice { padding: 40px 8% 21px; min-height: 274px; }
  .ge-aug-choice .ge-aug-art { width: 55px; height: 55px; }
  .ge-aug-choice .ge-aug-en { font-size: 16px; }
  .ge-aug-choice .ge-aug-zh { font-size: 14px; }
}
@media (max-width: 500px) {
  .ge-dialog { width: 100%; margin: auto 0 0; max-height: 85dvh; border-radius: 16px 16px 0 0; }
  .ge-dialog-shell { max-height: 85dvh; }
  .ge-picker-content { padding: 0 12px max(14px, env(safe-area-inset-bottom)); }
  .ge-dialog-head { padding: 14px 13px 9px; }
  .ge-card { padding: 14px; }
  .ge-formation.ge-card { margin-inline: -7px; padding-inline: 6px; }
  .ge-formation .ge-card-head { padding-inline: 5px; }
  .ge-stage { padding: 10px; }
  .ge-grid { width: 100%; }
  .ge-board { padding: 8px 2px; }
  .ge-side-label { margin-left: 4px; }
  .ge-stage-tool { min-height: 32px; }
  .ge-heading .ge-actions { gap: 4px; }
}
@media (max-width: 350px) {
  .ge-aug-results { grid-template-columns: minmax(0,1fr); }
  .ge-aug-choice { max-width: 245px; justify-self: center; }
}
@media (max-height:480px) {
  .ge-champion-dialog, .ge-champion-dialog .ge-dialog-shell { max-height:96dvh; }
  .ge-champion-dialog .ge-dialog-shell { height:96dvh; }
  .ge-champion-dialog .ge-dialog-head { padding-block:6px; }
  .ge-champion-dialog .ge-filters { margin-block:4px; }
}

.ge-equipment-rack { position:relative; margin:7px 0; padding:4px 7px; border:1px solid #d9d0e1; border-radius:11px; background:#fcfafd; }
.ge-equipment-rack [hidden],.ge-equipment-rack[hidden] { display:none!important; }
.ge-rack-head,.ge-quick-equipment,.ge-rack-controls,.ge-rack-pager { display:flex; align-items:center; }
.ge-rack-head { gap:5px; }
.ge-quick-equipment { flex:1; min-width:0; justify-content:space-evenly; }
.ge-rack-item,.ge-rack-toggle,.ge-rack-page { font:inherit; color:inherit; border:0; background:transparent; }
.ge-rack-toggle { display:inline-flex; align-items:center; gap:5px; flex:none; min-height:42px; padding:0 4px; color:#583b79; font-size:13px; font-weight:720; }
.ge-rack-toggle::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.ge-rack-toggle[aria-expanded=true]::after { transform:translateY(2px) rotate(225deg); }
.ge-rack-item { flex:1; min-width:0; min-height:42px; padding:2px; display:grid; place-items:center; gap:3px; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; border-radius:7px; }
.ge-rack-item:active { cursor:grabbing; }
.ge-rack-item[aria-pressed=true] { background:#e7dbf3; box-shadow:inset 0 0 0 2px #79539d; }
.ge-rack-art { position:relative; overflow:hidden; display:grid; place-items:center; width:31px; height:31px; border:1px solid #71627c; border-radius:6px; background:#44324f; color:white; font-size:13px; font-weight:700; }
.ge-rack-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.ge-rack-name { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; line-height:1.3; }
.ge-rack-controls { gap:6px; margin:0 2px 6px; }
.ge-rack-search,.ge-rack-category { min-width:0; min-height:38px; padding:5px 8px; font-family:inherit; font-size:16px; border:1px solid #d9d1e1; border-radius:7px; color:#42374b; background:white; }
.ge-rack-search { flex:1 1 50%; width:0; }
.ge-rack-category { flex:0 1 42%; }
.ge-rack-results { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; }
.ge-rack-results .ge-rack-item { min-height:54px; }
.ge-rack-pager { justify-content:center; gap:14px; color:#6b5c77; font-size:12px; }
.ge-rack-page { min-width:44px; min-height:40px; font-size:23px; cursor:pointer; }
.ge-rack-page:disabled { opacity:.35; }
.ge-rack-empty { grid-column:1/-1; text-align:center; font-size:13px; }
.ge-rack-status { position:absolute; z-index:3; bottom:calc(100% + 2px); left:0; max-width:100%; border-radius:7px; padding:4px 8px; background:#3b2b4c; color:white; font-size:12px; pointer-events:none; }
.ge-rack-open { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px; }
.ge-rack-open .ge-rack-panel { display:contents; }
.ge-rack-open .ge-rack-controls { margin:0; }
.ge-rack-open .ge-rack-results,.ge-rack-open .ge-rack-pager { grid-column:1/-1; }
.ge-worn-items { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding:2px 3px; border-bottom:1px solid #e8e1ee; }
.ge-worn-name { color:#64566f; font-size:12px; margin-right:3px; }
.ge-worn-slot { display:grid; place-items:center; position:relative; background:none; border:0; min-width:40px; height:40px; cursor:pointer; }
.ge-worn-slot .ge-rack-art { width:25px; height:25px; }
.ge-worn-x { position:absolute; top:0; right:0; display:grid; place-items:center; width:15px; height:15px; border-radius:50%; color:white; background:#604f69; font-size:12px; }
.ge-rack-empty .ge-custom { display:block; margin:5px auto; }
.ge-equipment-rack button { -webkit-tap-highlight-color:transparent; }
.ge-rack-toggle:active,.ge-rack-page:active { background:#eee6f4; border-radius:6px; }
.ge-picking-wearer .ge-filled { --ge-stroke:#9a64b8; }

/* Opaque foundations keep small text legible as the sheet moves over the board. */
.guide-editor, .ge-dialog, .ge-quick-stars {
  --ge-ink:#232d42;
  --ge-muted:#566378;
  --ge-purple:#514177;
  --ge-purple-deep:#393063;
  --ge-border:rgba(var(--glass-slate),.44);
  --ge-wash:#f1f4fb;
  --ge-highlight:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(var(--glass-slate),.14);
}
body:has(.guide-editor) {
  background:radial-gradient(90% 420px at 2% 0%,#e3effc,transparent),linear-gradient(#efedf9,#f7f7fb 690px);
  background-repeat:no-repeat; background-color:#f7f7fb;
}
.ge-card, .ge-dialog, .ge-quick-stars {
  background:linear-gradient(145deg,rgba(var(--glass-ice),.07),transparent 36%),#fff;
  border-color:var(--ge-border);
  box-shadow:var(--ge-highlight),0 3px 12px #26365312;
}
.ge-dialog, .ge-quick-stars { box-shadow:var(--ge-highlight),0 8px 34px #26365338; }
.ge-dialog::backdrop { background:#20283f60; }
.ge-board {
  border-color:#b9c6d7; border-radius:14px;
  background:radial-gradient(ellipse at 8% 0%,#e2f3ef 0%,transparent 65%),
             linear-gradient(128deg,#d6e5f0,#dee5f1 58%,#e9e1f0);
  box-shadow:inset 0 1px 0 #ffffffbb,inset 0 -2px 6px #71809814;
}
.ge-cell:not(.ge-filled) { --ge-stroke:#aab8cb; }
.ge-cell:not(.ge-filled) .ge-cell-face {
  background:linear-gradient(154deg,#f9fbfcd9,#eff4f9cb 57%,#dee7f1cf);
}
.ge-cell:not(.ge-filled) .ge-cell-plus { color:#66768c; }
.ge-cell:not(.ge-filled):is(:focus-visible,.ge-drop-target) { --ge-stroke:#526aa8; }
.ge-cell[data-cost="7"] { --ge-stroke:rgb(var(--glass-rose)); }
.ge-cell.ge-filled[aria-pressed=true] { --ge-stroke:#dfa21c; }
.ge-cell.ge-drop-target .ge-cell-face::after { background:rgba(var(--glass-ice),.35); box-shadow:inset 0 0 0 2px #526aa8; }
.ge-cell.ge-drop-target { --ge-stroke:#526aa8; }
.ge-cell[data-equip-blocked] .ge-cell-picture { opacity:.58; }
.ge-cell.ge-drop-target[data-equip-blocked] { --ge-stroke:#995266; }
.ge-cell.ge-drop-target[data-equip-blocked] .ge-cell-face::after {
  background:repeating-linear-gradient(135deg,#8b3d504d 0 3px,#fffbfa40 3px 8px);
  box-shadow:inset 0 0 0 2px #994e64;
}
.ge-drag-ghost[data-drag-kind="unit"] {
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  background:#ffe4a2; border:0; border-radius:0;
}
.ge-drag-ghost[data-drag-kind="unit"] img { inset:2px; width:calc(100% - 4px); height:calc(100% - 4px); clip-path:inherit; }
.ge-drag-ghost[data-drag-kind="equipment"] { border-color:#e0f6f3; border-radius:22%; }

.ge-board .formation-progress { margin:.4rem 0 0; border-radius:8px; }
.ge-board .formation-progress > summary { min-height:30px; padding:5px 7px; font-size:13px; line-height:1.4; }
.ge-board .formation-progress > summary small { margin-inline-start:5px; font-size:11px; }
.ge-board .formation-choices { gap:4px 3px; padding:0 5px 6px; }
.ge-board .formation-chip { min-height:32px; padding:2px 5px 2px 3px; gap:3px; border-radius:6px; font-size:12px; line-height:1.2; }
.ge-board .formation-chip .formation-icon { width:17px; height:18px; padding:2px; }
.ge-board .formation-chip b { font-size:12px; }
.ge-board .formation-effect-body { margin-top:1px; padding:6px 8px; border-inline-start-width:3px; }
.ge-board .formation-effect-body header { gap:4px 6px; }
.ge-board .formation-effect-body h4 { margin:.36rem 0 .12rem; }
.ge-board .formation-effect-body p { margin:.16rem 0; line-height:1.45; }
.ge-board .formation-progress > .formation-members { padding:0 6px 5px; }

/* Keep the cost rim on the button and draw the relationship inside it. */
@property --ge-orbit-angle {
  syntax:"<angle>";
  inherits:false;
  initial-value:35deg;
}
.ge-cell.is-trait-source {
  --ge-orbit-rim:2.6px;
  --ge-orbit-base:#986316;
  --ge-orbit-light:#ffdd78;
  --ge-orbit-flare:#fffbee;
}
.ge-cell.is-trait-peer {
  --ge-orbit-rim:1.9px;
  --ge-orbit-base:#267d83;
  --ge-orbit-light:#70e8df;
  --ge-orbit-flare:#e6fffa;
}
.ge-cell:is(.is-trait-source,.is-trait-peer) > .ge-cell-face::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  clip-path:polygon(evenodd, 50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%,50% 0,
    50% var(--ge-orbit-rim),var(--ge-orbit-rim) calc(25% + 1px),var(--ge-orbit-rim) calc(75% - 1px),
    50% calc(100% - var(--ge-orbit-rim)),calc(100% - var(--ge-orbit-rim)) calc(75% - 1px),
    calc(100% - var(--ge-orbit-rim)) calc(25% + 1px),50% var(--ge-orbit-rim));
  background:var(--ge-orbit-light);
  background:conic-gradient(from var(--ge-orbit-angle,35deg),var(--ge-orbit-light),
    var(--ge-orbit-flare) 19deg,var(--ge-orbit-light) 42deg,var(--ge-orbit-base) 103deg,
    var(--ge-orbit-light) 170deg,var(--ge-orbit-flare) 196deg,var(--ge-orbit-base) 270deg,var(--ge-orbit-light));
}
.ge-board :is(.formation-chip,.formation-custom).is-trait-related { position:relative; }
.ge-board :is(.formation-chip,.formation-custom).is-trait-related::after {
  content:""; position:absolute; inset:auto 4px -2px; height:2px; border-radius:3px; pointer-events:none;
  background:linear-gradient(100deg,#28787d 10%,#4ab9b6 30%,#d8fff5 50%,#4ab9b6 70%,#28787d 90%) 35% center / 190% 100%;
}
@media (prefers-reduced-motion:no-preference) {
  .ge-cell:is(.is-trait-source,.is-trait-peer):not(.ge-drag-source,.ge-drop-target) > .ge-cell-face::before {
    animation:ge-trait-orbit 3.2s linear infinite;
  }
  .ge-board :is(.formation-chip,.formation-custom).is-trait-related::after { animation:ge-trait-gleam 2.6s ease-in-out infinite alternate; }
  @keyframes ge-trait-orbit { from { --ge-orbit-angle:35deg; } to { --ge-orbit-angle:395deg; } }
  @keyframes ge-trait-gleam { from { background-position:0% center; } to { background-position:100% center; } }
}
@media (forced-colors:active) {
  .ge-cell:is(.is-trait-source,.is-trait-peer) > .ge-cell-face::before,
  .ge-board :is(.formation-chip,.formation-custom).is-trait-related::after { background:Highlight; forced-color-adjust:none; }
}
.ge-equipment-rack, .ge-stage, .ge-aug-row {
  background:linear-gradient(145deg,#fff 10%,rgba(var(--glass-ice),.08)),#f8fafd;
  border-color:var(--ge-border); box-shadow:var(--ge-highlight);
}
.ge-equipment-rack { --g:var(--glass-mint); }
.ge-input, .ge-rack-search, .ge-rack-category {
  color:var(--ge-ink); background:linear-gradient(#f9fbff,#fff 64%);
  border-color:rgba(var(--glass-slate),.64); box-shadow:inset 0 1px 2px #2837510d;
}
.ge-input::placeholder, .ge-rack-search::placeholder { color:#69758a; }
.ge-label, .ge-side-label { color:#526176; }
.ge-secondary, .ge-custom, .ge-mini, .ge-stage-tool, .ge-dialog-close, .ge-rack-toggle,
.ge-rack-page, .ge-quick-heading button, .ge-trait-jump, .ge-roster-reset, .ge-text-button {
  color:#354157; border:1px solid rgba(var(--g,var(--glass-slate)),.49);
  background:linear-gradient(152deg,#fffe 2%,#ffffff80 50%,rgba(var(--g,var(--glass-slate)),.2)),#f7f9fd;
  box-shadow:var(--ge-highlight);
}
.ge-rack-toggle, .ge-rack-page { border-radius:8px; }
.ge-text-button { --g:var(--glass-violet); padding-inline:8px; }
.ge-rack-page:disabled { box-shadow:none; }
.ge-primary {
  color:#fff; border:1px solid #66518b;
  background:linear-gradient(154deg,#8072a5 0%,#66518d 45%,#534278 100%);
  box-shadow:inset 0 1px 0 #d7c9edb8, inset 0 -1px 0 #493b66,0 2px 5px #4d3a732b;
}
@media(hover:hover) and (pointer:fine) {
  .ge-primary:hover { background:linear-gradient(154deg,#736599,#574580 65%,#47376c); }
  :is(.ge-secondary,.ge-custom,.ge-mini,.ge-trait-jump):hover { background:var(--ge-wash); }
  .ge-choice:hover { border-color:#b69bcd; }
  .ge-cell:not(.ge-filled,.ge-drop-target):hover { --ge-stroke:#8a8cae; }
  .ge-aug-choice:hover::after { filter:var(--aug-metal) brightness(1.35) drop-shadow(0 0 3px #f8d19c); }
}
.ge-choice {
  border-color:rgba(var(--glass-slate),.38);
  background:linear-gradient(150deg,#fff 48%,rgba(var(--glass-ice),.1)),#f8fafe;
  box-shadow:inset 0 1px 0 #fff;
}
.ge-choice-art, .ge-rack-art { box-shadow:0 0 0 1px rgba(var(--glass-slate),.48),0 1px 3px #25334829; }
.ge-kicker { color:#49416a; background:rgba(var(--glass-violet),.15); }
.ge-roster-reset, .ge-trait-jump { --g:var(--glass-violet); }
.ge-trait-jump { border-radius:7px; }
.ge-aug-dialog [data-grade="白银"] { --g:var(--glass-slate); }
.ge-aug-dialog [data-grade="黄金"] { --g:var(--glass-amber); }
.ge-aug-dialog [data-grade="棱彩"] { --g:var(--glass-violet); }
.ge-manual-filter { --g:var(--glass-rose); }
.ge-rack-toggle[aria-expanded=true], .ge-rack-item[aria-pressed=true], .ge-roster-traits.has-filters {
  color:#243748; background:linear-gradient(153deg,#fff8 0%,transparent 64%),rgba(var(--g,var(--glass-violet)),.32);
  border-color:rgba(var(--g,var(--glass-violet)),.95);
  box-shadow:inset 0 0 0 1.5px rgba(var(--g,var(--glass-violet)),.85),inset 0 -2px 0 #48586980;
}
.ge-quick-heading button:last-child { background:linear-gradient(#fff,#ecf0f8); }
.ge-quick-stars { width:min(278px,calc(100vw - 12px)); }
.ge-quick-stars button { -webkit-tap-highlight-color:transparent; }
.ge-quick-stars .unit-stars { display:grid; grid-template-columns:minmax(0,.73fr) minmax(0,.88fr) minmax(0,1.1fr) minmax(0,1.39fr); }
.ge-quick-current { filter:drop-shadow(0 1px 1px #7f551b); }
.ge-quick-stars .unit-stars button {
  font:500 15px/1 "Apple Color Emoji","Segoe UI Emoji",sans-serif; letter-spacing:-1px;
  border-color:rgba(var(--glass-slate),.68); background:linear-gradient(150deg,#5a6780,#38485f);
  color:#ffdf57; text-shadow:0 1px 1px #382723;
}
.ge-quick-stars .unit-stars button[aria-pressed=true] {
  border-color:#91621b; background:linear-gradient(145deg,#79602e,#64451e);
  color:#fff17b; box-shadow:inset 0 0 0 1px #ffe39c,inset 0 -2px 0 #e2ab4d;
}
.ge-danger { color:#823b4a; border-color:#d7a5af; background:linear-gradient(#fff,#fbecef); }
.ge-board-trash { color:#803446; border-color:#bb6879; background:linear-gradient(#fffafa,#ffeded); }
.ge-board-trash[data-active=true] { color:#fff; background:linear-gradient(145deg,#ae4960,#8b3148); border-color:#73243a; }
.ge-rack-status { background:#334157; }
.ge-button:focus-visible, .ge-input:focus-visible, .ge-equipment-rack :focus-visible, .ge-quick-stars button:focus-visible {
  outline:2px solid #37568b; outline-offset:2px;
}
@media(max-width:760px) {
  .ge-dialog-close { flex:none; width:44px; height:44px; }
  .ge-quick-heading button { min-width:40px; min-height:40px; }
  .ge-dialog-head { padding-block:8px 7px; }
  .ge-toolbar {
    top:env(safe-area-inset-top,0px);
    border-radius:12px; background:linear-gradient(150deg,#f8fbff,#f4f3fc 85%);
    box-shadow:0 3px 6px #3644590c;
  }
  .ge-jumps { gap:2px; padding:2px; border:1px solid var(--ge-border); border-radius:10px; background:#edf1f7; }
  .ge-jump { color:#4e5a72; padding-block:5px; }
  .ge-jump[aria-current] {
    color:#30456a; background:linear-gradient(160deg,#fff,#dce8fb);
    box-shadow:inset 0 0 0 1px rgba(var(--glass-ice),.57),inset 0 1px 0 #fff;
  }
  .ge-jump[aria-current]::after { display:none; }
}
@media(prefers-contrast:more) {
  .ge-card, .ge-dialog, .ge-quick-stars, .ge-input, .ge-equipment-rack, .ge-choice { border-color:#68788e; }
}
@media(max-width:620px) {
  .ge-aug-dialog .ge-aug-results { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:6px 3px; }
  .ge-aug-choice, .ge-aug-choice:only-child {
    grid-column:auto; justify-self:stretch; max-width:none; min-height:0;
    padding:clamp(14px,4.1vw,23px) 6% clamp(12px,3vw,18px); gap:4px;
  }
  .ge-aug-choice .ge-aug-art { width:clamp(34px,9vw,48px); height:clamp(34px,9vw,48px); }
  .ge-aug-choice .ge-aug-copy { gap:4px; }
  .ge-aug-choice .ge-aug-en { font-size:clamp(12px,3.4vw,16px); line-height:1.14; }
  .ge-aug-choice .ge-aug-zh { font-size:clamp(11px,3vw,14px); line-height:1.25; }
  .ge-aug-choice .ge-aug-effect { font-size:11px; line-height:1.45; margin:0; }
  .ge-aug-choice[aria-pressed=false] .ge-aug-effect {
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }
  .ge-aug-choice .ge-aug-rounds { font-size:10px; line-height:1.28; }
  .ge-aug-choice .ge-aug-meta { gap:3px; }
  .ge-aug-choice .ge-aug-manual, .ge-aug-choice .ge-aug-grade { font-size:10px; line-height:1.25; }
  .ge-aug-indicator { padding:2px 6px; font-size:11px; }
}
