/*!b:s26f50d1f*/
#tab-hitdmg{--hd-motion-bg:#f0f4fc;--hd-motion-grid:#dce5f4;--hd-motion-purple:#7355b7;--hd-motion-soft:#f3eefa}
#tab-hitdmg .hd-layout{display:grid;grid-template-columns:minmax(0,1fr) 354px;gap:24px;align-items:start}
#tab-hitdmg .hd-main,#tab-hitdmg .hd-side{min-width:0}
#tab-hitdmg .hd-mob-card{margin-bottom:18px}
#tab-hitdmg .hd-mob-card{position:relative}
#tab-hitdmg .hd-mob-card .picked{position:static}
#tab-hitdmg .hd-mob-card:has(#hd-mob-clear) .card-head .mob-mini{margin-right:44px}
#tab-hitdmg #hd-mob-clear{position:absolute;top:9px;right:14px;display:grid;place-items:center;width:34px;height:34px;margin:0;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--text);font-size:0;cursor:pointer}
#tab-hitdmg #hd-mob-clear::before,#tab-hitdmg #hd-mob-clear::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
#tab-hitdmg #hd-mob-clear::after{transform:translate(-50%,-50%) rotate(-45deg)}
#tab-hitdmg #hd-mob-clear:hover{color:var(--bad);border-color:var(--bad)}
#tab-hitdmg #hd-mob-clear:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#tab-hitdmg .hd-mob-card .card-body{display:grid;grid-template-columns:1fr 190px;gap:10px 20px}
#tab-hitdmg .hd-mob-card .picked{margin:0;align-self:center;flex-wrap:wrap;gap:8px;background:transparent;padding:0;border:0}
#tab-hitdmg .hd-mob-card .picked b{font-size:18px}
#tab-hitdmg .hd-mob-card .picked .meta{font-size:11px;flex-basis:100%;margin-left:36px}
#tab-hitdmg .monster-mark{width:28px;height:28px;background:var(--accent-soft);color:var(--accent-text);display:inline-grid;place-items:center;border-radius:8px;font-size:23px}
#tab-hitdmg .hd-mob-card .hint{grid-column:1/-1;margin:0;font-size:11px}
#tab-hitdmg .hd-mob-card .grid2{gap:10px}
#tab-hitdmg .hd-mob-card label{font-size:11px}
#tab-hitdmg .hd-mob-card input{padding:6px 9px;min-height:33px;background:var(--panel-soft)}
#tab-hitdmg .mob-empty{grid-column:1/-1}
#tab-hitdmg .motion-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel);margin-bottom:24px}
#tab-hitdmg .motion-head{display:flex;align-items:center;justify-content:space-between;padding:17px 20px}
#tab-hitdmg .section-index{font:9px system-ui;letter-spacing:1.6px;color:var(--muted)}
#tab-hitdmg .motion-head h2{font-size:16px;margin:5px 0 0}
#tab-hitdmg .motion-source{padding:12px 20px;font-size:11px;color:var(--muted);line-height:1.7}
#tab-hitdmg .motion-source summary{cursor:pointer}
#tab-hitdmg .motion-source p{margin:8px 0 0;overflow-wrap:anywhere}
#tab-hitdmg .motion-layout{display:grid;grid-template-columns:minmax(0,1fr) 208px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
#tab-hitdmg .motion-stage{min-height:288px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 85%,var(--panel),transparent 60%),var(--hd-motion-bg);overflow:hidden}
#tab-hitdmg .motion-stage::before{content:"";position:absolute;inset:70% -40% -100%;background-image:linear-gradient(var(--hd-motion-grid) 1px,transparent 1px),linear-gradient(90deg,var(--hd-motion-grid) 1px,transparent 1px);background-size:35px 35px;transform:perspective(130px) rotateX(38deg)}
#tab-hitdmg .motion-stage img{max-width:90%;max-height:220px;object-fit:contain;image-rendering:pixelated;position:relative;z-index:1;filter:drop-shadow(0 12px 5px #15204018)}
#tab-hitdmg .stage-chip{position:absolute;left:16px;top:15px;background:var(--panel);color:var(--hd-motion-purple);border:1px solid var(--line);border-radius:20px;padding:4px 10px;font-size:11px;z-index:2}
#tab-hitdmg .stage-caption{position:absolute;bottom:13px;font-size:10px;color:var(--muted)}
#tab-hitdmg .pattern-panel{padding:18px 14px;border-left:1px solid var(--line-soft);display:flex;flex-direction:column}
#tab-hitdmg .pattern-heading{font-size:12px;margin-bottom:11px}
#tab-hitdmg .pattern-heading span{font-size:11px;color:var(--muted);margin-left:3px}
#tab-hitdmg .pattern-button{display:block;text-align:left;width:100%;margin-bottom:7px;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:11px 10px;color:var(--text);font-size:12px}
#tab-hitdmg .pattern-button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text)}
#tab-hitdmg .pattern-button span{display:block;font-size:10px;color:var(--muted);margin-top:5px}
#tab-hitdmg .pattern-details{border-top:1px solid var(--line-soft);margin-top:auto;padding-top:15px;font-size:11px;color:var(--muted)}
#tab-hitdmg .pattern-details strong{font-size:22px;display:block;color:var(--text);margin-top:4px}
#tab-hitdmg .pattern-details p{font-size:10px;line-height:1.6;margin-bottom:0}
#tab-hitdmg #motion-empty{text-align:center;z-index:1;padding:32px 14px}
#tab-hitdmg #motion-empty strong{display:block;font-size:15px;color:var(--muted)}
#tab-hitdmg #motion-empty p{font-size:11px;color:var(--muted)}
#tab-hitdmg .empty-symbol{display:block;font-size:40px;color:var(--faint);margin-bottom:10px}
#tab-hitdmg .no-pattern{font-size:11px;color:var(--muted);line-height:1.7}
#tab-hitdmg .result-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;gap:10px}
#tab-hitdmg .result-heading h2{font-size:16px;margin:0}
#tab-hitdmg .result-heading>span{font-size:10px;color:var(--muted)}
#tab-hitdmg .hd-out{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#tab-hitdmg .hd-res{padding:19px;border-radius:12px;background:var(--accent-soft);border-color:var(--accent-line);min-height:106px}
#tab-hitdmg .hd-res .k{font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:6px}
#tab-hitdmg .hd-res .v{font-size:27px;color:var(--accent-text);margin-top:14px;line-height:1.4;word-break:keep-all}
#tab-hitdmg .result-tag{font-size:10px;line-height:1.5;color:var(--muted)}
#tab-hitdmg .magic-scope{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}
#tab-hitdmg .buff-heading{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
#tab-hitdmg .buff-heading h2,#tab-hitdmg .buff-heading h3{font-size:14px;margin:0}
#tab-hitdmg .buff-heading p{font-size:10px;color:var(--muted);margin:6px 0 0}
#tab-hitdmg .hd-side label{font-size:12px}
#tab-hitdmg .hd-side .grid2{gap:13px 12px}
#tab-hitdmg .hd-side input,#tab-hitdmg .hd-side select{min-height:38px;border-radius:7px}

dialog#monster-dialog{width:min(610px,calc(100vw - 28px));max-height:85vh;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);padding:22px;box-shadow:0 20px 80px #0003}
dialog#monster-dialog::backdrop{background:#14203777}
dialog#monster-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
dialog#monster-dialog .dialog-head h2{font-size:19px;margin:0}
dialog#monster-dialog .search-label{font-size:12px}
dialog#monster-dialog .search-label input{display:block;width:100%;margin-top:8px}
dialog#monster-dialog .filter-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0}
dialog#monster-dialog .filter{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:6px 9px;border-radius:20px;font-size:11px}
dialog#monster-dialog .filter.active{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent-line)}
dialog#monster-dialog #monster-count{margin-left:auto;font-size:11px;color:var(--muted)}
dialog#monster-dialog #monster-list{height:186px;overflow-y:auto;scrollbar-gutter:stable}
dialog#monster-dialog .monster-option{display:flex;align-items:center;justify-content:space-between;width:100%;height:62px;min-height:62px;gap:14px;padding:14px 9px;text-align:left;background:var(--panel);color:var(--text);border:0;border-bottom:1px solid var(--line-soft)}
dialog#monster-dialog .monster-option:hover{background:var(--accent-soft)}
dialog#monster-dialog .monster-option>div{min-width:0}
dialog#monster-dialog .monster-option strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog#monster-dialog .monster-option small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}
dialog#monster-dialog .monster-option>span{color:var(--accent-text);font-size:10px;white-space:nowrap}
dialog#monster-dialog .monster-thumb{width:30px;height:36px;object-fit:contain;image-rendering:pixelated}

html[data-theme="dark"] #tab-hitdmg{--hd-motion-bg:#1a2234;--hd-motion-grid:#2c3850;--hd-motion-purple:#bda3f2;--hd-motion-soft:#2c2541}
@media (max-width:950px){#tab-hitdmg .hd-layout{grid-template-columns:minmax(0,1fr) 310px;gap:16px}#tab-hitdmg .motion-layout{grid-template-columns:1fr}#tab-hitdmg .pattern-panel{border-left:0;border-top:1px solid var(--line-soft)}#tab-hitdmg #pattern-list{display:flex;gap:8px;flex-wrap:wrap}#tab-hitdmg .pattern-button{width:auto;flex:1;min-width:110px}#tab-hitdmg .pattern-details{display:grid;grid-template-columns:1fr auto;align-items:center;margin-top:10px;padding-top:10px}#tab-hitdmg .pattern-details p{grid-column:1/-1}#tab-hitdmg .hd-mob-card .card-body{grid-template-columns:1fr}}
@media (max-width:740px){#tab-hitdmg .hd-layout{display:flex;flex-direction:column;gap:22px}#tab-hitdmg .hd-main,#tab-hitdmg .hd-side{width:100%}#tab-hitdmg .motion-stage{min-height:270px}#tab-hitdmg .pattern-panel{padding:14px 17px}#tab-hitdmg .hd-out{gap:9px}#tab-hitdmg .hd-res{padding:15px 12px;min-height:107px}#tab-hitdmg .hd-res .k{font-size:12px;display:block}#tab-hitdmg .hd-res .v{font-size:22px;margin-top:10px}dialog#monster-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:16px}dialog#monster-dialog #monster-list{height:min(186px,calc(100vh - 220px))}}
