.sr-dialog{width:min(940px,calc(100vw - 32px));max-width:none;max-height:90dvh;padding:0;border:1px solid #728896;border-radius:9px;background:#101f2c;color:#e3edf5;box-shadow:0 20px 70px #0009;overflow:hidden}
.sr-dialog[open]{display:flex;flex-direction:column}.sr-dialog::backdrop{background:#030a13b8}
.sr-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 24px;background:#203444;border-bottom:1px solid #435b6b;flex:none}
.sr-heading small{color:#b6cad7;font-size:13px}.sr-heading h2{margin:4px 0 0;font-size:24px;color:#f2d599}.sr-heading>button{width:46px;height:46px;flex:none;padding:0;border:1px solid #657e8e;border-radius:5px;color:#e5cc95;background:#182b3a;font-size:28px}
.sr-body{padding:20px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}.sr-cautions{padding:14px 18px;border:1px solid #9c834a;border-radius:5px;background:#302d23;font-size:14px;line-height:1.65}.sr-cautions>strong{color:#ffe0a0;font-size:16px}.sr-cautions ul{margin:7px 0 0;padding-left:20px;color:#e4ddd0}
.sr-controls{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;margin:20px 0 12px}.sr-controls label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#bfd0dc}.sr-controls select,.sr-controls input{width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #546f82;border-radius:5px;background:#10212f;color:#e5eef5;font:inherit}.sr-controls input::placeholder{color:#94aebb}
.sr-count{font-size:14px;color:#bed1dd;margin:12px 0}.sr-grade h3{margin:20px 0 10px;font-size:19px}.sr-hero h3{color:#ffa0a4}.sr-legend h3{color:#d3b0f4}.sr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sr-item{display:flex;align-items:center;gap:12px;min-width:0;padding:13px;border:1px solid #3d596a;background:#192f40;border-radius:5px}.sr-item img{flex:none;width:52px;height:52px;object-fit:contain;background:#050a0e;border:1px solid #ac8294}.sr-legend .sr-item img{border-color:#af85cc}.sr-item>div{min-width:0}.sr-item strong{display:block;font-size:16px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.sr-item small{display:block;margin-top:4px;font-size:12px;color:#aec4d2}.sr-basis{margin:20px 0 0;font-size:12px;line-height:1.7;color:#aabfcf}.sr-message{padding:20px 0;font-size:15px;line-height:1.7}
.sr-skill-note{margin:12px 0;padding:13px 14px;border:1px solid #5a7788;background:#192e3d;border-radius:5px;line-height:1.65}.sr-skill-note>strong{display:block;color:#b9d9eb;font-size:15px}.sr-skill-note[data-state=included]{border-color:#ad9359;background:#302e24}.sr-skill-note[data-state=included]>strong{color:#ffe2a2}.sr-skill-note p{margin:6px 0 9px;font-size:13px;color:#d5e1e9}.sr-skill-note button,.sr-message button{min-height:38px;padding:7px 12px;border:1px solid #7c94a3;border-radius:4px;background:#203c4e;color:#ecdcaf;font-size:13px}.sr-skill-note button{width:auto!important}
body:not(.skill-guide-active) #open-skill-reroll,#open-skill-reroll[hidden]{display:none!important}
#wizard-review>.wizard-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;align-items:center}
#wizard-review .review-help-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:10px}
#planner-root #wizard-review .review-help-actions>button{min-height:48px!important;padding:11px 18px!important;border:1px solid #8ba6b8;border-radius:6px;background:#284557;color:#f2f6fa;font-size:16px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap;box-shadow:0 2px 5px #0003}
#planner-root #wizard-review .review-help-actions>#open-skill-reroll{background:#3d3525;border-color:#c8aa65;color:#ffe2a1}
#wizard-review .review-help-actions>button:hover{filter:brightness(1.15)}
#wizard-review .review-help-actions>button:focus-visible{outline:3px solid #f2d599;outline-offset:3px}
#wizard-review .wizard-heading>#save-all-result-image{grid-column:1/-1;grid-row:3;justify-self:end;margin-top:8px}
@media(max-width:760px){#wizard-review>.wizard-heading{grid-template-columns:minmax(0,1fr)}#wizard-review .review-help-actions{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;width:100%}#planner-root #wizard-review .review-help-actions>button{min-width:0;min-height:48px;padding:11px 8px!important;font-size:14px!important;white-space:normal}#wizard-review .review-help-actions>.limit-guide-button{grid-column:auto;grid-row:auto}#wizard-review .wizard-heading>#save-all-result-image{grid-row:4}}
.sr-body>.sr-cautions{margin-top:20px}.sr-hero .sr-item strong{color:#ffa0a4}.sr-legend .sr-item strong{color:#d3b0f4}
.sr-dialog button:focus-visible,.sr-dialog input:focus-visible,.sr-dialog select:focus-visible,.sr-skill-note button:focus-visible{outline:3px solid #f2d599;outline-offset:2px}
@media(max-width:760px){.sr-dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:6px}.sr-heading{padding:14px 16px;gap:12px}.sr-heading h2{font-size:21px}.sr-body{padding:14px 16px}.sr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sr-controls{grid-template-columns:130px minmax(0,1fr);gap:10px}.sr-controls select,.sr-controls input{font-size:16px}.sr-cautions{font-size:13px;padding:12px 14px}.sr-item{padding:10px;gap:9px;align-items:flex-start}.sr-item img{width:42px;height:42px}.sr-item strong{font-size:14px}.sr-item small{font-size:11px}.sr-skill-note button{min-height:44px}}
@media(max-width:480px){.sr-grid{grid-template-columns:1fr}.sr-item{align-items:center}.sr-item img{width:48px;height:48px}.sr-item strong{font-size:16px}.sr-item small{font-size:12px}.sr-controls{grid-template-columns:1fr}.sr-controls label{gap:4px}.sr-grade h3{font-size:18px}}
